vendor.js 992 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353
  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 _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 3);
  11. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 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. function sortObject(obj) {
  108. var sortObj = {};
  109. if (isPlainObject(obj)) {
  110. Object.keys(obj).sort().forEach(function (key) {
  111. sortObj[key] = obj[key];
  112. });
  113. }
  114. return !Object.keys(sortObj) ? obj : sortObj;
  115. }
  116. var HOOKS = [
  117. 'invoke',
  118. 'success',
  119. 'fail',
  120. 'complete',
  121. 'returnValue'];
  122. var globalInterceptors = {};
  123. var scopedInterceptors = {};
  124. function mergeHook(parentVal, childVal) {
  125. var res = childVal ?
  126. parentVal ?
  127. parentVal.concat(childVal) :
  128. Array.isArray(childVal) ?
  129. childVal : [childVal] :
  130. parentVal;
  131. return res ?
  132. dedupeHooks(res) :
  133. res;
  134. }
  135. function dedupeHooks(hooks) {
  136. var res = [];
  137. for (var i = 0; i < hooks.length; i++) {
  138. if (res.indexOf(hooks[i]) === -1) {
  139. res.push(hooks[i]);
  140. }
  141. }
  142. return res;
  143. }
  144. function removeHook(hooks, hook) {
  145. var index = hooks.indexOf(hook);
  146. if (index !== -1) {
  147. hooks.splice(index, 1);
  148. }
  149. }
  150. function mergeInterceptorHook(interceptor, option) {
  151. Object.keys(option).forEach(function (hook) {
  152. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  153. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  154. }
  155. });
  156. }
  157. function removeInterceptorHook(interceptor, option) {
  158. if (!interceptor || !option) {
  159. return;
  160. }
  161. Object.keys(option).forEach(function (hook) {
  162. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  163. removeHook(interceptor[hook], option[hook]);
  164. }
  165. });
  166. }
  167. function addInterceptor(method, option) {
  168. if (typeof method === 'string' && isPlainObject(option)) {
  169. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  170. } else if (isPlainObject(method)) {
  171. mergeInterceptorHook(globalInterceptors, method);
  172. }
  173. }
  174. function removeInterceptor(method, option) {
  175. if (typeof method === 'string') {
  176. if (isPlainObject(option)) {
  177. removeInterceptorHook(scopedInterceptors[method], option);
  178. } else {
  179. delete scopedInterceptors[method];
  180. }
  181. } else if (isPlainObject(method)) {
  182. removeInterceptorHook(globalInterceptors, method);
  183. }
  184. }
  185. function wrapperHook(hook) {
  186. return function (data) {
  187. return hook(data) || data;
  188. };
  189. }
  190. function isPromise(obj) {
  191. return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  192. }
  193. function queue(hooks, data) {
  194. var promise = false;
  195. for (var i = 0; i < hooks.length; i++) {
  196. var hook = hooks[i];
  197. if (promise) {
  198. promise = Promise.resolve(wrapperHook(hook));
  199. } else {
  200. var res = hook(data);
  201. if (isPromise(res)) {
  202. promise = Promise.resolve(res);
  203. }
  204. if (res === false) {
  205. return {
  206. then: function then() {} };
  207. }
  208. }
  209. }
  210. return promise || {
  211. then: function then(callback) {
  212. return callback(data);
  213. } };
  214. }
  215. function wrapperOptions(interceptor) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  216. ['success', 'fail', 'complete'].forEach(function (name) {
  217. if (Array.isArray(interceptor[name])) {
  218. var oldCallback = options[name];
  219. options[name] = function callbackInterceptor(res) {
  220. queue(interceptor[name], res).then(function (res) {
  221. /* eslint-disable no-mixed-operators */
  222. return isFn(oldCallback) && oldCallback(res) || res;
  223. });
  224. };
  225. }
  226. });
  227. return options;
  228. }
  229. function wrapperReturnValue(method, returnValue) {
  230. var returnValueHooks = [];
  231. if (Array.isArray(globalInterceptors.returnValue)) {
  232. returnValueHooks.push.apply(returnValueHooks, _toConsumableArray(globalInterceptors.returnValue));
  233. }
  234. var interceptor = scopedInterceptors[method];
  235. if (interceptor && Array.isArray(interceptor.returnValue)) {
  236. returnValueHooks.push.apply(returnValueHooks, _toConsumableArray(interceptor.returnValue));
  237. }
  238. returnValueHooks.forEach(function (hook) {
  239. returnValue = hook(returnValue) || returnValue;
  240. });
  241. return returnValue;
  242. }
  243. function getApiInterceptorHooks(method) {
  244. var interceptor = Object.create(null);
  245. Object.keys(globalInterceptors).forEach(function (hook) {
  246. if (hook !== 'returnValue') {
  247. interceptor[hook] = globalInterceptors[hook].slice();
  248. }
  249. });
  250. var scopedInterceptor = scopedInterceptors[method];
  251. if (scopedInterceptor) {
  252. Object.keys(scopedInterceptor).forEach(function (hook) {
  253. if (hook !== 'returnValue') {
  254. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  255. }
  256. });
  257. }
  258. return interceptor;
  259. }
  260. 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];}
  261. var interceptor = getApiInterceptorHooks(method);
  262. if (interceptor && Object.keys(interceptor).length) {
  263. if (Array.isArray(interceptor.invoke)) {
  264. var res = queue(interceptor.invoke, options);
  265. return res.then(function (options) {
  266. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  267. });
  268. } else {
  269. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  270. }
  271. }
  272. return api.apply(void 0, [options].concat(params));
  273. }
  274. var promiseInterceptor = {
  275. returnValue: function returnValue(res) {
  276. if (!isPromise(res)) {
  277. return res;
  278. }
  279. return new Promise(function (resolve, reject) {
  280. res.then(function (res) {
  281. if (res[0]) {
  282. reject(res[0]);
  283. } else {
  284. resolve(res[1]);
  285. }
  286. });
  287. });
  288. } };
  289. var SYNC_API_RE =
  290. /^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo/;
  291. var CONTEXT_API_RE = /^create|Manager$/;
  292. // Context例外情况
  293. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  294. // 同步例外情况
  295. var ASYNC_API = ['createBLEConnection'];
  296. var CALLBACK_API_RE = /^on|^off/;
  297. function isContextApi(name) {
  298. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  299. }
  300. function isSyncApi(name) {
  301. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  302. }
  303. function isCallbackApi(name) {
  304. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  305. }
  306. function handlePromise(promise) {
  307. return promise.then(function (data) {
  308. return [null, data];
  309. }).
  310. catch(function (err) {return [err];});
  311. }
  312. function shouldPromise(name) {
  313. if (
  314. isContextApi(name) ||
  315. isSyncApi(name) ||
  316. isCallbackApi(name))
  317. {
  318. return false;
  319. }
  320. return true;
  321. }
  322. /* eslint-disable no-extend-native */
  323. if (!Promise.prototype.finally) {
  324. Promise.prototype.finally = function (callback) {
  325. var promise = this.constructor;
  326. return this.then(
  327. function (value) {return promise.resolve(callback()).then(function () {return value;});},
  328. function (reason) {return promise.resolve(callback()).then(function () {
  329. throw reason;
  330. });});
  331. };
  332. }
  333. function promisify(name, api) {
  334. if (!shouldPromise(name)) {
  335. return api;
  336. }
  337. 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];}
  338. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  339. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  340. }
  341. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  342. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  343. success: resolve,
  344. fail: reject })].concat(
  345. params));
  346. })));
  347. };
  348. }
  349. var EPS = 1e-4;
  350. var BASE_DEVICE_WIDTH = 750;
  351. var isIOS = false;
  352. var deviceWidth = 0;
  353. var deviceDPR = 0;
  354. function checkDeviceWidth() {var _wx$getSystemInfoSync =
  355. wx.getSystemInfoSync(),platform = _wx$getSystemInfoSync.platform,pixelRatio = _wx$getSystemInfoSync.pixelRatio,windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  356. deviceWidth = windowWidth;
  357. deviceDPR = pixelRatio;
  358. isIOS = platform === 'ios';
  359. }
  360. function upx2px(number, newDeviceWidth) {
  361. if (deviceWidth === 0) {
  362. checkDeviceWidth();
  363. }
  364. number = Number(number);
  365. if (number === 0) {
  366. return 0;
  367. }
  368. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  369. if (result < 0) {
  370. result = -result;
  371. }
  372. result = Math.floor(result + EPS);
  373. if (result === 0) {
  374. if (deviceDPR === 1 || !isIOS) {
  375. result = 1;
  376. } else {
  377. result = 0.5;
  378. }
  379. }
  380. return number < 0 ? -result : result;
  381. }
  382. var LOCALE_ZH_HANS = 'zh-Hans';
  383. var LOCALE_ZH_HANT = 'zh-Hant';
  384. var LOCALE_EN = 'en';
  385. var LOCALE_FR = 'fr';
  386. var LOCALE_ES = 'es';
  387. var messages = {};
  388. var locale;
  389. {
  390. locale = normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  391. }
  392. function initI18nMessages() {
  393. if (!isEnableLocale()) {
  394. return;
  395. }
  396. var localeKeys = Object.keys(__uniConfig.locales);
  397. if (localeKeys.length) {
  398. localeKeys.forEach(function (locale) {
  399. var curMessages = messages[locale];
  400. var userMessages = __uniConfig.locales[locale];
  401. if (curMessages) {
  402. Object.assign(curMessages, userMessages);
  403. } else {
  404. messages[locale] = userMessages;
  405. }
  406. });
  407. }
  408. }
  409. initI18nMessages();
  410. var i18n = (0, _uniI18n.initVueI18n)(
  411. locale,
  412. {});
  413. var t = i18n.t;
  414. var i18nMixin = i18n.mixin = {
  415. beforeCreate: function beforeCreate() {var _this = this;
  416. var unwatch = i18n.i18n.watchLocale(function () {
  417. _this.$forceUpdate();
  418. });
  419. this.$once('hook:beforeDestroy', function () {
  420. unwatch();
  421. });
  422. },
  423. methods: {
  424. $$t: function $$t(key, values) {
  425. return t(key, values);
  426. } } };
  427. var setLocale = i18n.setLocale;
  428. var getLocale = i18n.getLocale;
  429. function initAppLocale(Vue, appVm, locale) {
  430. var state = Vue.observable({
  431. locale: locale || i18n.getLocale() });
  432. var localeWatchers = [];
  433. appVm.$watchLocale = function (fn) {
  434. localeWatchers.push(fn);
  435. };
  436. Object.defineProperty(appVm, '$locale', {
  437. get: function get() {
  438. return state.locale;
  439. },
  440. set: function set(v) {
  441. state.locale = v;
  442. localeWatchers.forEach(function (watch) {return watch(v);});
  443. } });
  444. }
  445. function isEnableLocale() {
  446. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  447. }
  448. function include(str, parts) {
  449. return !!parts.find(function (part) {return str.indexOf(part) !== -1;});
  450. }
  451. function startsWith(str, parts) {
  452. return parts.find(function (part) {return str.indexOf(part) === 0;});
  453. }
  454. function normalizeLocale(locale, messages) {
  455. if (!locale) {
  456. return;
  457. }
  458. locale = locale.trim().replace(/_/g, '-');
  459. if (messages && messages[locale]) {
  460. return locale;
  461. }
  462. locale = locale.toLowerCase();
  463. if (locale === 'chinese') {
  464. // 支付宝
  465. return LOCALE_ZH_HANS;
  466. }
  467. if (locale.indexOf('zh') === 0) {
  468. if (locale.indexOf('-hans') > -1) {
  469. return LOCALE_ZH_HANS;
  470. }
  471. if (locale.indexOf('-hant') > -1) {
  472. return LOCALE_ZH_HANT;
  473. }
  474. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  475. return LOCALE_ZH_HANT;
  476. }
  477. return LOCALE_ZH_HANS;
  478. }
  479. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  480. if (lang) {
  481. return lang;
  482. }
  483. }
  484. // export function initI18n() {
  485. // const localeKeys = Object.keys(__uniConfig.locales || {})
  486. // if (localeKeys.length) {
  487. // localeKeys.forEach((locale) =>
  488. // i18n.add(locale, __uniConfig.locales[locale])
  489. // )
  490. // }
  491. // }
  492. function getLocale$1() {
  493. // 优先使用 $locale
  494. var app = getApp({
  495. allowDefault: true });
  496. if (app && app.$vm) {
  497. return app.$vm.$locale;
  498. }
  499. return normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  500. }
  501. function setLocale$1(locale) {
  502. var app = getApp();
  503. if (!app) {
  504. return false;
  505. }
  506. var oldLocale = app.$vm.$locale;
  507. if (oldLocale !== locale) {
  508. app.$vm.$locale = locale;
  509. onLocaleChangeCallbacks.forEach(function (fn) {return fn({
  510. locale: locale });});
  511. return true;
  512. }
  513. return false;
  514. }
  515. var onLocaleChangeCallbacks = [];
  516. function onLocaleChange(fn) {
  517. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  518. onLocaleChangeCallbacks.push(fn);
  519. }
  520. }
  521. if (typeof global !== 'undefined') {
  522. global.getLocale = getLocale$1;
  523. }
  524. var interceptors = {
  525. promiseInterceptor: promiseInterceptor };
  526. var baseApi = /*#__PURE__*/Object.freeze({
  527. __proto__: null,
  528. upx2px: upx2px,
  529. getLocale: getLocale$1,
  530. setLocale: setLocale$1,
  531. onLocaleChange: onLocaleChange,
  532. addInterceptor: addInterceptor,
  533. removeInterceptor: removeInterceptor,
  534. interceptors: interceptors });
  535. function findExistsPageIndex(url) {
  536. var pages = getCurrentPages();
  537. var len = pages.length;
  538. while (len--) {
  539. var page = pages[len];
  540. if (page.$page && page.$page.fullPath === url) {
  541. return len;
  542. }
  543. }
  544. return -1;
  545. }
  546. var redirectTo = {
  547. name: function name(fromArgs) {
  548. if (fromArgs.exists === 'back' && fromArgs.delta) {
  549. return 'navigateBack';
  550. }
  551. return 'redirectTo';
  552. },
  553. args: function args(fromArgs) {
  554. if (fromArgs.exists === 'back' && fromArgs.url) {
  555. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  556. if (existsPageIndex !== -1) {
  557. var delta = getCurrentPages().length - 1 - existsPageIndex;
  558. if (delta > 0) {
  559. fromArgs.delta = delta;
  560. }
  561. }
  562. }
  563. } };
  564. var previewImage = {
  565. args: function args(fromArgs) {
  566. var currentIndex = parseInt(fromArgs.current);
  567. if (isNaN(currentIndex)) {
  568. return;
  569. }
  570. var urls = fromArgs.urls;
  571. if (!Array.isArray(urls)) {
  572. return;
  573. }
  574. var len = urls.length;
  575. if (!len) {
  576. return;
  577. }
  578. if (currentIndex < 0) {
  579. currentIndex = 0;
  580. } else if (currentIndex >= len) {
  581. currentIndex = len - 1;
  582. }
  583. if (currentIndex > 0) {
  584. fromArgs.current = urls[currentIndex];
  585. fromArgs.urls = urls.filter(
  586. function (item, index) {return index < currentIndex ? item !== urls[currentIndex] : true;});
  587. } else {
  588. fromArgs.current = urls[0];
  589. }
  590. return {
  591. indicator: false,
  592. loop: false };
  593. } };
  594. var UUID_KEY = '__DC_STAT_UUID';
  595. var deviceId;
  596. function useDeviceId(result) {
  597. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  598. if (!deviceId) {
  599. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  600. wx.setStorage({
  601. key: UUID_KEY,
  602. data: deviceId });
  603. }
  604. result.deviceId = deviceId;
  605. }
  606. function addSafeAreaInsets(result) {
  607. if (result.safeArea) {
  608. var safeArea = result.safeArea;
  609. result.safeAreaInsets = {
  610. top: safeArea.top,
  611. left: safeArea.left,
  612. right: result.windowWidth - safeArea.right,
  613. bottom: result.screenHeight - safeArea.bottom };
  614. }
  615. }
  616. function populateParameters(result) {var _result$brand =
  617. result.brand,brand = _result$brand === void 0 ? '' : _result$brand,_result$model = result.model,model = _result$model === void 0 ? '' : _result$model,_result$system = result.system,system = _result$system === void 0 ? '' : _result$system,_result$language = result.language,language = _result$language === void 0 ? '' : _result$language,theme = result.theme,version = result.version,platform = result.platform,fontSizeSetting = result.fontSizeSetting,SDKVersion = result.SDKVersion,pixelRatio = result.pixelRatio,deviceOrientation = result.deviceOrientation;
  618. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  619. // osName osVersion
  620. var osName = '';
  621. var osVersion = '';
  622. {
  623. osName = system.split(' ')[0] || '';
  624. osVersion = system.split(' ')[1] || '';
  625. }
  626. var hostVersion = version;
  627. // deviceType
  628. var deviceType = getGetDeviceType(result, model);
  629. // deviceModel
  630. var deviceBrand = getDeviceBrand(brand);
  631. // hostName
  632. var _hostName = getHostName(result);
  633. // deviceOrientation
  634. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  635. // devicePixelRatio
  636. var _devicePixelRatio = pixelRatio;
  637. // SDKVersion
  638. var _SDKVersion = SDKVersion;
  639. // hostLanguage
  640. var hostLanguage = language.replace(/_/g, '-');
  641. // wx.getAccountInfoSync
  642. var parameters = {
  643. appId: "__UNI__86923A1",
  644. appName: "alhj-wx",
  645. appVersion: "1.0.0",
  646. appVersionCode: "100",
  647. appLanguage: getAppLanguage(hostLanguage),
  648. uniCompileVersion: "3.5.0",
  649. uniRuntimeVersion: "3.5.0",
  650. uniPlatform: undefined || "mp-weixin",
  651. deviceBrand: deviceBrand,
  652. deviceModel: model,
  653. deviceType: deviceType,
  654. devicePixelRatio: _devicePixelRatio,
  655. deviceOrientation: _deviceOrientation,
  656. osName: osName.toLocaleLowerCase(),
  657. osVersion: osVersion,
  658. hostTheme: theme,
  659. hostVersion: hostVersion,
  660. hostLanguage: hostLanguage,
  661. hostName: _hostName,
  662. hostSDKVersion: _SDKVersion,
  663. hostFontSizeSetting: fontSizeSetting,
  664. windowTop: 0,
  665. windowBottom: 0,
  666. // TODO
  667. osLanguage: undefined,
  668. osTheme: undefined,
  669. ua: undefined,
  670. hostPackageName: undefined,
  671. browserName: undefined,
  672. browserVersion: undefined };
  673. Object.assign(result, parameters);
  674. }
  675. function getGetDeviceType(result, model) {
  676. var deviceType = result.deviceType || 'phone';
  677. {
  678. var deviceTypeMaps = {
  679. ipad: 'pad',
  680. windows: 'pc',
  681. mac: 'pc' };
  682. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  683. var _model = model.toLocaleLowerCase();
  684. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  685. var _m = deviceTypeMapsKeys[index];
  686. if (_model.indexOf(_m) !== -1) {
  687. deviceType = deviceTypeMaps[_m];
  688. break;
  689. }
  690. }
  691. }
  692. return deviceType;
  693. }
  694. function getDeviceBrand(brand) {
  695. var deviceBrand = brand;
  696. if (deviceBrand) {
  697. deviceBrand = brand.toLocaleLowerCase();
  698. }
  699. return deviceBrand;
  700. }
  701. function getAppLanguage(defaultLanguage) {
  702. return getLocale$1 ?
  703. getLocale$1() :
  704. defaultLanguage;
  705. }
  706. function getHostName(result) {
  707. var _platform = 'WeChat';
  708. var _hostName = result.hostName || _platform; // mp-jd
  709. {
  710. if (result.environment) {
  711. _hostName = result.environment;
  712. } else if (result.host && result.host.env) {
  713. _hostName = result.host.env;
  714. }
  715. }
  716. return _hostName;
  717. }
  718. var getSystemInfo = {
  719. returnValue: function returnValue(result) {
  720. useDeviceId(result);
  721. addSafeAreaInsets(result);
  722. populateParameters(result);
  723. } };
  724. var showActionSheet = {
  725. args: function args(fromArgs) {
  726. if (typeof fromArgs === 'object') {
  727. fromArgs.alertText = fromArgs.title;
  728. }
  729. } };
  730. var getAppBaseInfo = {
  731. returnValue: function returnValue(result) {var _result =
  732. result,version = _result.version,language = _result.language,SDKVersion = _result.SDKVersion,theme = _result.theme;
  733. var _hostName = getHostName(result);
  734. var hostLanguage = language.replace('_', '-');
  735. result = sortObject(Object.assign(result, {
  736. appId: "__UNI__86923A1",
  737. appName: "alhj-wx",
  738. appVersion: "1.0.0",
  739. appVersionCode: "100",
  740. appLanguage: getAppLanguage(hostLanguage),
  741. hostVersion: version,
  742. hostLanguage: hostLanguage,
  743. hostName: _hostName,
  744. hostSDKVersion: SDKVersion,
  745. hostTheme: theme }));
  746. } };
  747. var getDeviceInfo = {
  748. returnValue: function returnValue(result) {var _result2 =
  749. result,brand = _result2.brand,model = _result2.model;
  750. var deviceType = getGetDeviceType(result, model);
  751. var deviceBrand = getDeviceBrand(brand);
  752. useDeviceId(result);
  753. result = sortObject(Object.assign(result, {
  754. deviceType: deviceType,
  755. deviceBrand: deviceBrand,
  756. deviceModel: model }));
  757. } };
  758. var getWindowInfo = {
  759. returnValue: function returnValue(result) {
  760. addSafeAreaInsets(result);
  761. result = sortObject(Object.assign(result, {
  762. windowTop: 0,
  763. windowBottom: 0 }));
  764. } };
  765. // import navigateTo from 'uni-helpers/navigate-to'
  766. var protocols = {
  767. redirectTo: redirectTo,
  768. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  769. previewImage: previewImage,
  770. getSystemInfo: getSystemInfo,
  771. getSystemInfoSync: getSystemInfo,
  772. showActionSheet: showActionSheet,
  773. getAppBaseInfo: getAppBaseInfo,
  774. getDeviceInfo: getDeviceInfo,
  775. getWindowInfo: getWindowInfo };
  776. var todos = [
  777. 'vibrate',
  778. 'preloadPage',
  779. 'unPreloadPage',
  780. 'loadSubPackage'];
  781. var canIUses = [];
  782. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  783. function processCallback(methodName, method, returnValue) {
  784. return function (res) {
  785. return method(processReturnValue(methodName, res, returnValue));
  786. };
  787. }
  788. 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;
  789. if (isPlainObject(fromArgs)) {// 一般 api 的参数解析
  790. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  791. if (isFn(argsOption)) {
  792. argsOption = argsOption(fromArgs, toArgs) || {};
  793. }
  794. for (var key in fromArgs) {
  795. if (hasOwn(argsOption, key)) {
  796. var keyOption = argsOption[key];
  797. if (isFn(keyOption)) {
  798. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  799. }
  800. if (!keyOption) {// 不支持的参数
  801. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  802. } else if (isStr(keyOption)) {// 重写参数 key
  803. toArgs[keyOption] = fromArgs[key];
  804. } else if (isPlainObject(keyOption)) {// {name:newName,value:value}可重新指定参数 key:value
  805. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  806. }
  807. } else if (CALLBACKS.indexOf(key) !== -1) {
  808. if (isFn(fromArgs[key])) {
  809. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  810. }
  811. } else {
  812. if (!keepFromArgs) {
  813. toArgs[key] = fromArgs[key];
  814. }
  815. }
  816. }
  817. return toArgs;
  818. } else if (isFn(fromArgs)) {
  819. fromArgs = processCallback(methodName, fromArgs, returnValue);
  820. }
  821. return fromArgs;
  822. }
  823. function processReturnValue(methodName, res, returnValue) {var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  824. if (isFn(protocols.returnValue)) {// 处理通用 returnValue
  825. res = protocols.returnValue(methodName, res);
  826. }
  827. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  828. }
  829. function wrapper(methodName, method) {
  830. if (hasOwn(protocols, methodName)) {
  831. var protocol = protocols[methodName];
  832. if (!protocol) {// 暂不支持的 api
  833. return function () {
  834. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  835. };
  836. }
  837. return function (arg1, arg2) {// 目前 api 最多两个参数
  838. var options = protocol;
  839. if (isFn(protocol)) {
  840. options = protocol(arg1);
  841. }
  842. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  843. var args = [arg1];
  844. if (typeof arg2 !== 'undefined') {
  845. args.push(arg2);
  846. }
  847. if (isFn(options.name)) {
  848. methodName = options.name(arg1);
  849. } else if (isStr(options.name)) {
  850. methodName = options.name;
  851. }
  852. var returnValue = wx[methodName].apply(wx, args);
  853. if (isSyncApi(methodName)) {// 同步 api
  854. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  855. }
  856. return returnValue;
  857. };
  858. }
  859. return method;
  860. }
  861. var todoApis = Object.create(null);
  862. var TODOS = [
  863. 'onTabBarMidButtonTap',
  864. 'subscribePush',
  865. 'unsubscribePush',
  866. 'onPush',
  867. 'offPush',
  868. 'share'];
  869. function createTodoApi(name) {
  870. return function todoApi(_ref)
  871. {var fail = _ref.fail,complete = _ref.complete;
  872. var res = {
  873. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported") };
  874. isFn(fail) && fail(res);
  875. isFn(complete) && complete(res);
  876. };
  877. }
  878. TODOS.forEach(function (name) {
  879. todoApis[name] = createTodoApi(name);
  880. });
  881. var providers = {
  882. oauth: ['weixin'],
  883. share: ['weixin'],
  884. payment: ['wxpay'],
  885. push: ['weixin'] };
  886. function getProvider(_ref2)
  887. {var service = _ref2.service,success = _ref2.success,fail = _ref2.fail,complete = _ref2.complete;
  888. var res = false;
  889. if (providers[service]) {
  890. res = {
  891. errMsg: 'getProvider:ok',
  892. service: service,
  893. provider: providers[service] };
  894. isFn(success) && success(res);
  895. } else {
  896. res = {
  897. errMsg: 'getProvider:fail service not found' };
  898. isFn(fail) && fail(res);
  899. }
  900. isFn(complete) && complete(res);
  901. }
  902. var extraApi = /*#__PURE__*/Object.freeze({
  903. __proto__: null,
  904. getProvider: getProvider });
  905. var getEmitter = function () {
  906. var Emitter;
  907. return function getUniEmitter() {
  908. if (!Emitter) {
  909. Emitter = new _vue.default();
  910. }
  911. return Emitter;
  912. };
  913. }();
  914. function apply(ctx, method, args) {
  915. return ctx[method].apply(ctx, args);
  916. }
  917. function $on() {
  918. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  919. }
  920. function $off() {
  921. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  922. }
  923. function $once() {
  924. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  925. }
  926. function $emit() {
  927. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  928. }
  929. var eventApi = /*#__PURE__*/Object.freeze({
  930. __proto__: null,
  931. $on: $on,
  932. $off: $off,
  933. $once: $once,
  934. $emit: $emit });
  935. /**
  936. * 框架内 try-catch
  937. */
  938. /**
  939. * 开发者 try-catch
  940. */
  941. function tryCatch(fn) {
  942. return function () {
  943. try {
  944. return fn.apply(fn, arguments);
  945. } catch (e) {
  946. // TODO
  947. console.error(e);
  948. }
  949. };
  950. }
  951. function getApiCallbacks(params) {
  952. var apiCallbacks = {};
  953. for (var name in params) {
  954. var param = params[name];
  955. if (isFn(param)) {
  956. apiCallbacks[name] = tryCatch(param);
  957. delete params[name];
  958. }
  959. }
  960. return apiCallbacks;
  961. }
  962. var cid;
  963. var cidErrMsg;
  964. var enabled;
  965. function normalizePushMessage(message) {
  966. try {
  967. return JSON.parse(message);
  968. } catch (e) {}
  969. return message;
  970. }
  971. function invokePushCallback(
  972. args)
  973. {
  974. if (args.type === 'enabled') {
  975. enabled = true;
  976. } else if (args.type === 'clientId') {
  977. cid = args.cid;
  978. cidErrMsg = args.errMsg;
  979. invokeGetPushCidCallbacks(cid, args.errMsg);
  980. } else if (args.type === 'pushMsg') {
  981. onPushMessageCallbacks.forEach(function (callback) {
  982. callback({
  983. type: 'receive',
  984. data: normalizePushMessage(args.message) });
  985. });
  986. } else if (args.type === 'click') {
  987. onPushMessageCallbacks.forEach(function (callback) {
  988. callback({
  989. type: 'click',
  990. data: normalizePushMessage(args.message) });
  991. });
  992. }
  993. }
  994. var getPushCidCallbacks = [];
  995. function invokeGetPushCidCallbacks(cid, errMsg) {
  996. getPushCidCallbacks.forEach(function (callback) {
  997. callback(cid, errMsg);
  998. });
  999. getPushCidCallbacks.length = 0;
  1000. }
  1001. function getPushClientId(args) {
  1002. if (!isPlainObject(args)) {
  1003. args = {};
  1004. }var _getApiCallbacks =
  1005. getApiCallbacks(args),success = _getApiCallbacks.success,fail = _getApiCallbacks.fail,complete = _getApiCallbacks.complete;
  1006. var hasSuccess = isFn(success);
  1007. var hasFail = isFn(fail);
  1008. var hasComplete = isFn(complete);
  1009. Promise.resolve().then(function () {
  1010. if (typeof enabled === 'undefined') {
  1011. enabled = false;
  1012. cid = '';
  1013. cidErrMsg = 'unipush is not enabled';
  1014. }
  1015. getPushCidCallbacks.push(function (cid, errMsg) {
  1016. var res;
  1017. if (cid) {
  1018. res = {
  1019. errMsg: 'getPushClientId:ok',
  1020. cid: cid };
  1021. hasSuccess && success(res);
  1022. } else {
  1023. res = {
  1024. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '') };
  1025. hasFail && fail(res);
  1026. }
  1027. hasComplete && complete(res);
  1028. });
  1029. if (typeof cid !== 'undefined') {
  1030. invokeGetPushCidCallbacks(cid, cidErrMsg);
  1031. }
  1032. });
  1033. }
  1034. var onPushMessageCallbacks = [];
  1035. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  1036. var onPushMessage = function onPushMessage(fn) {
  1037. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  1038. onPushMessageCallbacks.push(fn);
  1039. }
  1040. };
  1041. var offPushMessage = function offPushMessage(fn) {
  1042. if (!fn) {
  1043. onPushMessageCallbacks.length = 0;
  1044. } else {
  1045. var index = onPushMessageCallbacks.indexOf(fn);
  1046. if (index > -1) {
  1047. onPushMessageCallbacks.splice(index, 1);
  1048. }
  1049. }
  1050. };
  1051. var api = /*#__PURE__*/Object.freeze({
  1052. __proto__: null,
  1053. getPushClientId: getPushClientId,
  1054. onPushMessage: onPushMessage,
  1055. offPushMessage: offPushMessage,
  1056. invokePushCallback: invokePushCallback });
  1057. var MPPage = Page;
  1058. var MPComponent = Component;
  1059. var customizeRE = /:/g;
  1060. var customize = cached(function (str) {
  1061. return camelize(str.replace(customizeRE, '-'));
  1062. });
  1063. function initTriggerEvent(mpInstance) {
  1064. var oldTriggerEvent = mpInstance.triggerEvent;
  1065. var newTriggerEvent = function newTriggerEvent(event) {for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {args[_key3 - 1] = arguments[_key3];}
  1066. return oldTriggerEvent.apply(mpInstance, [customize(event)].concat(args));
  1067. };
  1068. try {
  1069. // 京东小程序 triggerEvent 为只读
  1070. mpInstance.triggerEvent = newTriggerEvent;
  1071. } catch (error) {
  1072. mpInstance._triggerEvent = newTriggerEvent;
  1073. }
  1074. }
  1075. function initHook(name, options, isComponent) {
  1076. var oldHook = options[name];
  1077. if (!oldHook) {
  1078. options[name] = function () {
  1079. initTriggerEvent(this);
  1080. };
  1081. } else {
  1082. options[name] = function () {
  1083. initTriggerEvent(this);for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {args[_key4] = arguments[_key4];}
  1084. return oldHook.apply(this, args);
  1085. };
  1086. }
  1087. }
  1088. if (!MPPage.__$wrappered) {
  1089. MPPage.__$wrappered = true;
  1090. Page = function Page() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1091. initHook('onLoad', options);
  1092. return MPPage(options);
  1093. };
  1094. Page.after = MPPage.after;
  1095. Component = function Component() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1096. initHook('created', options);
  1097. return MPComponent(options);
  1098. };
  1099. }
  1100. var PAGE_EVENT_HOOKS = [
  1101. 'onPullDownRefresh',
  1102. 'onReachBottom',
  1103. 'onAddToFavorites',
  1104. 'onShareTimeline',
  1105. 'onShareAppMessage',
  1106. 'onPageScroll',
  1107. 'onResize',
  1108. 'onTabItemTap'];
  1109. function initMocks(vm, mocks) {
  1110. var mpInstance = vm.$mp[vm.mpType];
  1111. mocks.forEach(function (mock) {
  1112. if (hasOwn(mpInstance, mock)) {
  1113. vm[mock] = mpInstance[mock];
  1114. }
  1115. });
  1116. }
  1117. function hasHook(hook, vueOptions) {
  1118. if (!vueOptions) {
  1119. return true;
  1120. }
  1121. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  1122. return true;
  1123. }
  1124. vueOptions = vueOptions.default || vueOptions;
  1125. if (isFn(vueOptions)) {
  1126. if (isFn(vueOptions.extendOptions[hook])) {
  1127. return true;
  1128. }
  1129. if (vueOptions.super &&
  1130. vueOptions.super.options &&
  1131. Array.isArray(vueOptions.super.options[hook])) {
  1132. return true;
  1133. }
  1134. return false;
  1135. }
  1136. if (isFn(vueOptions[hook])) {
  1137. return true;
  1138. }
  1139. var mixins = vueOptions.mixins;
  1140. if (Array.isArray(mixins)) {
  1141. return !!mixins.find(function (mixin) {return hasHook(hook, mixin);});
  1142. }
  1143. }
  1144. function initHooks(mpOptions, hooks, vueOptions) {
  1145. hooks.forEach(function (hook) {
  1146. if (hasHook(hook, vueOptions)) {
  1147. mpOptions[hook] = function (args) {
  1148. return this.$vm && this.$vm.__call_hook(hook, args);
  1149. };
  1150. }
  1151. });
  1152. }
  1153. function initVueComponent(Vue, vueOptions) {
  1154. vueOptions = vueOptions.default || vueOptions;
  1155. var VueComponent;
  1156. if (isFn(vueOptions)) {
  1157. VueComponent = vueOptions;
  1158. } else {
  1159. VueComponent = Vue.extend(vueOptions);
  1160. }
  1161. vueOptions = VueComponent.options;
  1162. return [VueComponent, vueOptions];
  1163. }
  1164. function initSlots(vm, vueSlots) {
  1165. if (Array.isArray(vueSlots) && vueSlots.length) {
  1166. var $slots = Object.create(null);
  1167. vueSlots.forEach(function (slotName) {
  1168. $slots[slotName] = true;
  1169. });
  1170. vm.$scopedSlots = vm.$slots = $slots;
  1171. }
  1172. }
  1173. function initVueIds(vueIds, mpInstance) {
  1174. vueIds = (vueIds || '').split(',');
  1175. var len = vueIds.length;
  1176. if (len === 1) {
  1177. mpInstance._$vueId = vueIds[0];
  1178. } else if (len === 2) {
  1179. mpInstance._$vueId = vueIds[0];
  1180. mpInstance._$vuePid = vueIds[1];
  1181. }
  1182. }
  1183. function initData(vueOptions, context) {
  1184. var data = vueOptions.data || {};
  1185. var methods = vueOptions.methods || {};
  1186. if (typeof data === 'function') {
  1187. try {
  1188. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  1189. } catch (e) {
  1190. if (Object({"VUE_APP_NAME":"alhj-wx","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  1191. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  1192. }
  1193. }
  1194. } else {
  1195. try {
  1196. // 对 data 格式化
  1197. data = JSON.parse(JSON.stringify(data));
  1198. } catch (e) {}
  1199. }
  1200. if (!isPlainObject(data)) {
  1201. data = {};
  1202. }
  1203. Object.keys(methods).forEach(function (methodName) {
  1204. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  1205. data[methodName] = methods[methodName];
  1206. }
  1207. });
  1208. return data;
  1209. }
  1210. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  1211. function createObserver(name) {
  1212. return function observer(newVal, oldVal) {
  1213. if (this.$vm) {
  1214. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  1215. }
  1216. };
  1217. }
  1218. function initBehaviors(vueOptions, initBehavior) {
  1219. var vueBehaviors = vueOptions.behaviors;
  1220. var vueExtends = vueOptions.extends;
  1221. var vueMixins = vueOptions.mixins;
  1222. var vueProps = vueOptions.props;
  1223. if (!vueProps) {
  1224. vueOptions.props = vueProps = [];
  1225. }
  1226. var behaviors = [];
  1227. if (Array.isArray(vueBehaviors)) {
  1228. vueBehaviors.forEach(function (behavior) {
  1229. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  1230. if (behavior === 'uni://form-field') {
  1231. if (Array.isArray(vueProps)) {
  1232. vueProps.push('name');
  1233. vueProps.push('value');
  1234. } else {
  1235. vueProps.name = {
  1236. type: String,
  1237. default: '' };
  1238. vueProps.value = {
  1239. type: [String, Number, Boolean, Array, Object, Date],
  1240. default: '' };
  1241. }
  1242. }
  1243. });
  1244. }
  1245. if (isPlainObject(vueExtends) && vueExtends.props) {
  1246. behaviors.push(
  1247. initBehavior({
  1248. properties: initProperties(vueExtends.props, true) }));
  1249. }
  1250. if (Array.isArray(vueMixins)) {
  1251. vueMixins.forEach(function (vueMixin) {
  1252. if (isPlainObject(vueMixin) && vueMixin.props) {
  1253. behaviors.push(
  1254. initBehavior({
  1255. properties: initProperties(vueMixin.props, true) }));
  1256. }
  1257. });
  1258. }
  1259. return behaviors;
  1260. }
  1261. function parsePropType(key, type, defaultValue, file) {
  1262. // [String]=>String
  1263. if (Array.isArray(type) && type.length === 1) {
  1264. return type[0];
  1265. }
  1266. return type;
  1267. }
  1268. function initProperties(props) {var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';var options = arguments.length > 3 ? arguments[3] : undefined;
  1269. var properties = {};
  1270. if (!isBehavior) {
  1271. properties.vueId = {
  1272. type: String,
  1273. value: '' };
  1274. {
  1275. if (options.virtualHost) {
  1276. properties.virtualHostStyle = {
  1277. type: null,
  1278. value: '' };
  1279. properties.virtualHostClass = {
  1280. type: null,
  1281. value: '' };
  1282. }
  1283. }
  1284. // scopedSlotsCompiler auto
  1285. properties.scopedSlotsCompiler = {
  1286. type: String,
  1287. value: '' };
  1288. properties.vueSlots = { // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  1289. type: null,
  1290. value: [],
  1291. observer: function observer(newVal, oldVal) {
  1292. var $slots = Object.create(null);
  1293. newVal.forEach(function (slotName) {
  1294. $slots[slotName] = true;
  1295. });
  1296. this.setData({
  1297. $slots: $slots });
  1298. } };
  1299. }
  1300. if (Array.isArray(props)) {// ['title']
  1301. props.forEach(function (key) {
  1302. properties[key] = {
  1303. type: null,
  1304. observer: createObserver(key) };
  1305. });
  1306. } else if (isPlainObject(props)) {// {title:{type:String,default:''},content:String}
  1307. Object.keys(props).forEach(function (key) {
  1308. var opts = props[key];
  1309. if (isPlainObject(opts)) {// title:{type:String,default:''}
  1310. var value = opts.default;
  1311. if (isFn(value)) {
  1312. value = value();
  1313. }
  1314. opts.type = parsePropType(key, opts.type);
  1315. properties[key] = {
  1316. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  1317. value: value,
  1318. observer: createObserver(key) };
  1319. } else {// content:String
  1320. var type = parsePropType(key, opts);
  1321. properties[key] = {
  1322. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  1323. observer: createObserver(key) };
  1324. }
  1325. });
  1326. }
  1327. return properties;
  1328. }
  1329. function wrapper$1(event) {
  1330. // TODO 又得兼容 mpvue 的 mp 对象
  1331. try {
  1332. event.mp = JSON.parse(JSON.stringify(event));
  1333. } catch (e) {}
  1334. event.stopPropagation = noop;
  1335. event.preventDefault = noop;
  1336. event.target = event.target || {};
  1337. if (!hasOwn(event, 'detail')) {
  1338. event.detail = {};
  1339. }
  1340. if (hasOwn(event, 'markerId')) {
  1341. event.detail = typeof event.detail === 'object' ? event.detail : {};
  1342. event.detail.markerId = event.markerId;
  1343. }
  1344. if (isPlainObject(event.detail)) {
  1345. event.target = Object.assign({}, event.target, event.detail);
  1346. }
  1347. return event;
  1348. }
  1349. function getExtraValue(vm, dataPathsArray) {
  1350. var context = vm;
  1351. dataPathsArray.forEach(function (dataPathArray) {
  1352. var dataPath = dataPathArray[0];
  1353. var value = dataPathArray[2];
  1354. if (dataPath || typeof value !== 'undefined') {// ['','',index,'disable']
  1355. var propPath = dataPathArray[1];
  1356. var valuePath = dataPathArray[3];
  1357. var vFor;
  1358. if (Number.isInteger(dataPath)) {
  1359. vFor = dataPath;
  1360. } else if (!dataPath) {
  1361. vFor = context;
  1362. } else if (typeof dataPath === 'string' && dataPath) {
  1363. if (dataPath.indexOf('#s#') === 0) {
  1364. vFor = dataPath.substr(3);
  1365. } else {
  1366. vFor = vm.__get_value(dataPath, context);
  1367. }
  1368. }
  1369. if (Number.isInteger(vFor)) {
  1370. context = value;
  1371. } else if (!propPath) {
  1372. context = vFor[value];
  1373. } else {
  1374. if (Array.isArray(vFor)) {
  1375. context = vFor.find(function (vForItem) {
  1376. return vm.__get_value(propPath, vForItem) === value;
  1377. });
  1378. } else if (isPlainObject(vFor)) {
  1379. context = Object.keys(vFor).find(function (vForKey) {
  1380. return vm.__get_value(propPath, vFor[vForKey]) === value;
  1381. });
  1382. } else {
  1383. console.error('v-for 暂不支持循环数据:', vFor);
  1384. }
  1385. }
  1386. if (valuePath) {
  1387. context = vm.__get_value(valuePath, context);
  1388. }
  1389. }
  1390. });
  1391. return context;
  1392. }
  1393. function processEventExtra(vm, extra, event) {
  1394. var extraObj = {};
  1395. if (Array.isArray(extra) && extra.length) {
  1396. /**
  1397. *[
  1398. * ['data.items', 'data.id', item.data.id],
  1399. * ['metas', 'id', meta.id]
  1400. *],
  1401. *[
  1402. * ['data.items', 'data.id', item.data.id],
  1403. * ['metas', 'id', meta.id]
  1404. *],
  1405. *'test'
  1406. */
  1407. extra.forEach(function (dataPath, index) {
  1408. if (typeof dataPath === 'string') {
  1409. if (!dataPath) {// model,prop.sync
  1410. extraObj['$' + index] = vm;
  1411. } else {
  1412. if (dataPath === '$event') {// $event
  1413. extraObj['$' + index] = event;
  1414. } else if (dataPath === 'arguments') {
  1415. if (event.detail && event.detail.__args__) {
  1416. extraObj['$' + index] = event.detail.__args__;
  1417. } else {
  1418. extraObj['$' + index] = [event];
  1419. }
  1420. } else if (dataPath.indexOf('$event.') === 0) {// $event.target.value
  1421. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1422. } else {
  1423. extraObj['$' + index] = vm.__get_value(dataPath);
  1424. }
  1425. }
  1426. } else {
  1427. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1428. }
  1429. });
  1430. }
  1431. return extraObj;
  1432. }
  1433. function getObjByArray(arr) {
  1434. var obj = {};
  1435. for (var i = 1; i < arr.length; i++) {
  1436. var element = arr[i];
  1437. obj[element[0]] = element[1];
  1438. }
  1439. return obj;
  1440. }
  1441. 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;
  1442. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  1443. if (isCustom) {// 自定义事件
  1444. isCustomMPEvent = event.currentTarget &&
  1445. event.currentTarget.dataset &&
  1446. event.currentTarget.dataset.comType === 'wx';
  1447. if (!args.length) {// 无参数,直接传入 event 或 detail 数组
  1448. if (isCustomMPEvent) {
  1449. return [event];
  1450. }
  1451. return event.detail.__args__ || event.detail;
  1452. }
  1453. }
  1454. var extraObj = processEventExtra(vm, extra, event);
  1455. var ret = [];
  1456. args.forEach(function (arg) {
  1457. if (arg === '$event') {
  1458. if (methodName === '__set_model' && !isCustom) {// input v-model value
  1459. ret.push(event.target.value);
  1460. } else {
  1461. if (isCustom && !isCustomMPEvent) {
  1462. ret.push(event.detail.__args__[0]);
  1463. } else {// wxcomponent 组件或内置组件
  1464. ret.push(event);
  1465. }
  1466. }
  1467. } else {
  1468. if (Array.isArray(arg) && arg[0] === 'o') {
  1469. ret.push(getObjByArray(arg));
  1470. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  1471. ret.push(extraObj[arg]);
  1472. } else {
  1473. ret.push(arg);
  1474. }
  1475. }
  1476. });
  1477. return ret;
  1478. }
  1479. var ONCE = '~';
  1480. var CUSTOM = '^';
  1481. function isMatchEventType(eventType, optType) {
  1482. return eventType === optType ||
  1483. optType === 'regionchange' && (
  1484. eventType === 'begin' ||
  1485. eventType === 'end');
  1486. }
  1487. function getContextVm(vm) {
  1488. var $parent = vm.$parent;
  1489. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  1490. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  1491. $parent = $parent.$parent;
  1492. }
  1493. return $parent && $parent.$parent;
  1494. }
  1495. function handleEvent(event) {var _this2 = this;
  1496. event = wrapper$1(event);
  1497. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  1498. var dataset = (event.currentTarget || event.target).dataset;
  1499. if (!dataset) {
  1500. return console.warn('事件信息不存在');
  1501. }
  1502. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  1503. if (!eventOpts) {
  1504. return console.warn('事件信息不存在');
  1505. }
  1506. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  1507. var eventType = event.type;
  1508. var ret = [];
  1509. eventOpts.forEach(function (eventOpt) {
  1510. var type = eventOpt[0];
  1511. var eventsArray = eventOpt[1];
  1512. var isCustom = type.charAt(0) === CUSTOM;
  1513. type = isCustom ? type.slice(1) : type;
  1514. var isOnce = type.charAt(0) === ONCE;
  1515. type = isOnce ? type.slice(1) : type;
  1516. if (eventsArray && isMatchEventType(eventType, type)) {
  1517. eventsArray.forEach(function (eventArray) {
  1518. var methodName = eventArray[0];
  1519. if (methodName) {
  1520. var handlerCtx = _this2.$vm;
  1521. if (handlerCtx.$options.generic) {// mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  1522. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  1523. }
  1524. if (methodName === '$emit') {
  1525. handlerCtx.$emit.apply(handlerCtx,
  1526. processEventArgs(
  1527. _this2.$vm,
  1528. event,
  1529. eventArray[1],
  1530. eventArray[2],
  1531. isCustom,
  1532. methodName));
  1533. return;
  1534. }
  1535. var handler = handlerCtx[methodName];
  1536. if (!isFn(handler)) {
  1537. throw new Error(" _vm.".concat(methodName, " is not a function"));
  1538. }
  1539. if (isOnce) {
  1540. if (handler.once) {
  1541. return;
  1542. }
  1543. handler.once = true;
  1544. }
  1545. var params = processEventArgs(
  1546. _this2.$vm,
  1547. event,
  1548. eventArray[1],
  1549. eventArray[2],
  1550. isCustom,
  1551. methodName);
  1552. params = Array.isArray(params) ? params : [];
  1553. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  1554. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  1555. // eslint-disable-next-line no-sparse-arrays
  1556. params = params.concat([,,,,,,,,,, event]);
  1557. }
  1558. ret.push(handler.apply(handlerCtx, params));
  1559. }
  1560. });
  1561. }
  1562. });
  1563. if (
  1564. eventType === 'input' &&
  1565. ret.length === 1 &&
  1566. typeof ret[0] !== 'undefined')
  1567. {
  1568. return ret[0];
  1569. }
  1570. }
  1571. var eventChannels = {};
  1572. var eventChannelStack = [];
  1573. function getEventChannel(id) {
  1574. if (id) {
  1575. var eventChannel = eventChannels[id];
  1576. delete eventChannels[id];
  1577. return eventChannel;
  1578. }
  1579. return eventChannelStack.shift();
  1580. }
  1581. var hooks = [
  1582. 'onShow',
  1583. 'onHide',
  1584. 'onError',
  1585. 'onPageNotFound',
  1586. 'onThemeChange',
  1587. 'onUnhandledRejection'];
  1588. function initEventChannel() {
  1589. _vue.default.prototype.getOpenerEventChannel = function () {
  1590. // 微信小程序使用自身getOpenerEventChannel
  1591. {
  1592. return this.$scope.getOpenerEventChannel();
  1593. }
  1594. };
  1595. var callHook = _vue.default.prototype.__call_hook;
  1596. _vue.default.prototype.__call_hook = function (hook, args) {
  1597. if (hook === 'onLoad' && args && args.__id__) {
  1598. this.__eventChannel__ = getEventChannel(args.__id__);
  1599. delete args.__id__;
  1600. }
  1601. return callHook.call(this, hook, args);
  1602. };
  1603. }
  1604. function initScopedSlotsParams() {
  1605. var center = {};
  1606. var parents = {};
  1607. _vue.default.prototype.$hasScopedSlotsParams = function (vueId) {
  1608. var has = center[vueId];
  1609. if (!has) {
  1610. parents[vueId] = this;
  1611. this.$on('hook:destroyed', function () {
  1612. delete parents[vueId];
  1613. });
  1614. }
  1615. return has;
  1616. };
  1617. _vue.default.prototype.$getScopedSlotsParams = function (vueId, name, key) {
  1618. var data = center[vueId];
  1619. if (data) {
  1620. var object = data[name] || {};
  1621. return key ? object[key] : object;
  1622. } else {
  1623. parents[vueId] = this;
  1624. this.$on('hook:destroyed', function () {
  1625. delete parents[vueId];
  1626. });
  1627. }
  1628. };
  1629. _vue.default.prototype.$setScopedSlotsParams = function (name, value) {
  1630. var vueIds = this.$options.propsData.vueId;
  1631. if (vueIds) {
  1632. var vueId = vueIds.split(',')[0];
  1633. var object = center[vueId] = center[vueId] || {};
  1634. object[name] = value;
  1635. if (parents[vueId]) {
  1636. parents[vueId].$forceUpdate();
  1637. }
  1638. }
  1639. };
  1640. _vue.default.mixin({
  1641. destroyed: function destroyed() {
  1642. var propsData = this.$options.propsData;
  1643. var vueId = propsData && propsData.vueId;
  1644. if (vueId) {
  1645. delete center[vueId];
  1646. delete parents[vueId];
  1647. }
  1648. } });
  1649. }
  1650. function parseBaseApp(vm, _ref3)
  1651. {var mocks = _ref3.mocks,initRefs = _ref3.initRefs;
  1652. initEventChannel();
  1653. {
  1654. initScopedSlotsParams();
  1655. }
  1656. if (vm.$options.store) {
  1657. _vue.default.prototype.$store = vm.$options.store;
  1658. }
  1659. uniIdMixin(_vue.default);
  1660. _vue.default.prototype.mpHost = "mp-weixin";
  1661. _vue.default.mixin({
  1662. beforeCreate: function beforeCreate() {
  1663. if (!this.$options.mpType) {
  1664. return;
  1665. }
  1666. this.mpType = this.$options.mpType;
  1667. this.$mp = _defineProperty({
  1668. data: {} },
  1669. this.mpType, this.$options.mpInstance);
  1670. this.$scope = this.$options.mpInstance;
  1671. delete this.$options.mpType;
  1672. delete this.$options.mpInstance;
  1673. if (this.mpType === 'page' && typeof getApp === 'function') {// hack vue-i18n
  1674. var app = getApp();
  1675. if (app.$vm && app.$vm.$i18n) {
  1676. this._i18n = app.$vm.$i18n;
  1677. }
  1678. }
  1679. if (this.mpType !== 'app') {
  1680. initRefs(this);
  1681. initMocks(this, mocks);
  1682. }
  1683. } });
  1684. var appOptions = {
  1685. onLaunch: function onLaunch(args) {
  1686. if (this.$vm) {// 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  1687. return;
  1688. }
  1689. {
  1690. if (wx.canIUse && !wx.canIUse('nextTick')) {// 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  1691. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  1692. }
  1693. }
  1694. this.$vm = vm;
  1695. this.$vm.$mp = {
  1696. app: this };
  1697. this.$vm.$scope = this;
  1698. // vm 上也挂载 globalData
  1699. this.$vm.globalData = this.globalData;
  1700. this.$vm._isMounted = true;
  1701. this.$vm.__call_hook('mounted', args);
  1702. this.$vm.__call_hook('onLaunch', args);
  1703. } };
  1704. // 兼容旧版本 globalData
  1705. appOptions.globalData = vm.$options.globalData || {};
  1706. // 将 methods 中的方法挂在 getApp() 中
  1707. var methods = vm.$options.methods;
  1708. if (methods) {
  1709. Object.keys(methods).forEach(function (name) {
  1710. appOptions[name] = methods[name];
  1711. });
  1712. }
  1713. initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
  1714. initHooks(appOptions, hooks);
  1715. return appOptions;
  1716. }
  1717. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1718. function findVmByVueId(vm, vuePid) {
  1719. var $children = vm.$children;
  1720. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1721. for (var i = $children.length - 1; i >= 0; i--) {
  1722. var childVm = $children[i];
  1723. if (childVm.$scope._$vueId === vuePid) {
  1724. return childVm;
  1725. }
  1726. }
  1727. // 反向递归查找
  1728. var parentVm;
  1729. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1730. parentVm = findVmByVueId($children[_i], vuePid);
  1731. if (parentVm) {
  1732. return parentVm;
  1733. }
  1734. }
  1735. }
  1736. function initBehavior(options) {
  1737. return Behavior(options);
  1738. }
  1739. function isPage() {
  1740. return !!this.route;
  1741. }
  1742. function initRelation(detail) {
  1743. this.triggerEvent('__l', detail);
  1744. }
  1745. function selectAllComponents(mpInstance, selector, $refs) {
  1746. var components = mpInstance.selectAllComponents(selector);
  1747. components.forEach(function (component) {
  1748. var ref = component.dataset.ref;
  1749. $refs[ref] = component.$vm || component;
  1750. {
  1751. if (component.dataset.vueGeneric === 'scoped') {
  1752. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1753. selectAllComponents(scopedComponent, selector, $refs);
  1754. });
  1755. }
  1756. }
  1757. });
  1758. }
  1759. function initRefs(vm) {
  1760. var mpInstance = vm.$scope;
  1761. Object.defineProperty(vm, '$refs', {
  1762. get: function get() {
  1763. var $refs = {};
  1764. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1765. // TODO 暂不考虑 for 中的 scoped
  1766. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for');
  1767. forComponents.forEach(function (component) {
  1768. var ref = component.dataset.ref;
  1769. if (!$refs[ref]) {
  1770. $refs[ref] = [];
  1771. }
  1772. $refs[ref].push(component.$vm || component);
  1773. });
  1774. return $refs;
  1775. } });
  1776. }
  1777. function handleLink(event) {var _ref4 =
  1778. event.detail || event.value,vuePid = _ref4.vuePid,vueOptions = _ref4.vueOptions; // detail 是微信,value 是百度(dipatch)
  1779. var parentVm;
  1780. if (vuePid) {
  1781. parentVm = findVmByVueId(this.$vm, vuePid);
  1782. }
  1783. if (!parentVm) {
  1784. parentVm = this.$vm;
  1785. }
  1786. vueOptions.parent = parentVm;
  1787. }
  1788. function parseApp(vm) {
  1789. return parseBaseApp(vm, {
  1790. mocks: mocks,
  1791. initRefs: initRefs });
  1792. }
  1793. function createApp(vm) {
  1794. App(parseApp(vm));
  1795. return vm;
  1796. }
  1797. var encodeReserveRE = /[!'()*]/g;
  1798. var encodeReserveReplacer = function encodeReserveReplacer(c) {return '%' + c.charCodeAt(0).toString(16);};
  1799. var commaRE = /%2C/g;
  1800. // fixed encodeURIComponent which is more conformant to RFC3986:
  1801. // - escapes [!'()*]
  1802. // - preserve commas
  1803. var encode = function encode(str) {return encodeURIComponent(str).
  1804. replace(encodeReserveRE, encodeReserveReplacer).
  1805. replace(commaRE, ',');};
  1806. function stringifyQuery(obj) {var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  1807. var res = obj ? Object.keys(obj).map(function (key) {
  1808. var val = obj[key];
  1809. if (val === undefined) {
  1810. return '';
  1811. }
  1812. if (val === null) {
  1813. return encodeStr(key);
  1814. }
  1815. if (Array.isArray(val)) {
  1816. var result = [];
  1817. val.forEach(function (val2) {
  1818. if (val2 === undefined) {
  1819. return;
  1820. }
  1821. if (val2 === null) {
  1822. result.push(encodeStr(key));
  1823. } else {
  1824. result.push(encodeStr(key) + '=' + encodeStr(val2));
  1825. }
  1826. });
  1827. return result.join('&');
  1828. }
  1829. return encodeStr(key) + '=' + encodeStr(val);
  1830. }).filter(function (x) {return x.length > 0;}).join('&') : null;
  1831. return res ? "?".concat(res) : '';
  1832. }
  1833. function parseBaseComponent(vueComponentOptions)
  1834. {var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},isPage = _ref5.isPage,initRelation = _ref5.initRelation;var _initVueComponent =
  1835. initVueComponent(_vue.default, vueComponentOptions),_initVueComponent2 = _slicedToArray(_initVueComponent, 2),VueComponent = _initVueComponent2[0],vueOptions = _initVueComponent2[1];
  1836. var options = _objectSpread({
  1837. multipleSlots: true,
  1838. addGlobalClass: true },
  1839. vueOptions.options || {});
  1840. {
  1841. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  1842. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  1843. Object.assign(options, vueOptions['mp-weixin'].options);
  1844. }
  1845. }
  1846. var componentOptions = {
  1847. options: options,
  1848. data: initData(vueOptions, _vue.default.prototype),
  1849. behaviors: initBehaviors(vueOptions, initBehavior),
  1850. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  1851. lifetimes: {
  1852. attached: function attached() {
  1853. var properties = this.properties;
  1854. var options = {
  1855. mpType: isPage.call(this) ? 'page' : 'component',
  1856. mpInstance: this,
  1857. propsData: properties };
  1858. initVueIds(properties.vueId, this);
  1859. // 处理父子关系
  1860. initRelation.call(this, {
  1861. vuePid: this._$vuePid,
  1862. vueOptions: options });
  1863. // 初始化 vue 实例
  1864. this.$vm = new VueComponent(options);
  1865. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  1866. initSlots(this.$vm, properties.vueSlots);
  1867. // 触发首次 setData
  1868. this.$vm.$mount();
  1869. },
  1870. ready: function ready() {
  1871. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  1872. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  1873. if (this.$vm) {
  1874. this.$vm._isMounted = true;
  1875. this.$vm.__call_hook('mounted');
  1876. this.$vm.__call_hook('onReady');
  1877. }
  1878. },
  1879. detached: function detached() {
  1880. this.$vm && this.$vm.$destroy();
  1881. } },
  1882. pageLifetimes: {
  1883. show: function show(args) {
  1884. this.$vm && this.$vm.__call_hook('onPageShow', args);
  1885. },
  1886. hide: function hide() {
  1887. this.$vm && this.$vm.__call_hook('onPageHide');
  1888. },
  1889. resize: function resize(size) {
  1890. this.$vm && this.$vm.__call_hook('onPageResize', size);
  1891. } },
  1892. methods: {
  1893. __l: handleLink,
  1894. __e: handleEvent } };
  1895. // externalClasses
  1896. if (vueOptions.externalClasses) {
  1897. componentOptions.externalClasses = vueOptions.externalClasses;
  1898. }
  1899. if (Array.isArray(vueOptions.wxsCallMethods)) {
  1900. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  1901. componentOptions.methods[callMethod] = function (args) {
  1902. return this.$vm[callMethod](args);
  1903. };
  1904. });
  1905. }
  1906. if (isPage) {
  1907. return componentOptions;
  1908. }
  1909. return [componentOptions, VueComponent];
  1910. }
  1911. function parseComponent(vueComponentOptions) {
  1912. return parseBaseComponent(vueComponentOptions, {
  1913. isPage: isPage,
  1914. initRelation: initRelation });
  1915. }
  1916. var hooks$1 = [
  1917. 'onShow',
  1918. 'onHide',
  1919. 'onUnload'];
  1920. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  1921. function parseBasePage(vuePageOptions, _ref6)
  1922. {var isPage = _ref6.isPage,initRelation = _ref6.initRelation;
  1923. var pageOptions = parseComponent(vuePageOptions);
  1924. initHooks(pageOptions.methods, hooks$1, vuePageOptions);
  1925. pageOptions.methods.onLoad = function (query) {
  1926. this.options = query;
  1927. var copyQuery = Object.assign({}, query);
  1928. delete copyQuery.__id__;
  1929. this.$page = {
  1930. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery) };
  1931. this.$vm.$mp.query = query; // 兼容 mpvue
  1932. this.$vm.__call_hook('onLoad', query);
  1933. };
  1934. return pageOptions;
  1935. }
  1936. function parsePage(vuePageOptions) {
  1937. return parseBasePage(vuePageOptions, {
  1938. isPage: isPage,
  1939. initRelation: initRelation });
  1940. }
  1941. function createPage(vuePageOptions) {
  1942. {
  1943. return Component(parsePage(vuePageOptions));
  1944. }
  1945. }
  1946. function createComponent(vueOptions) {
  1947. {
  1948. return Component(parseComponent(vueOptions));
  1949. }
  1950. }
  1951. function createSubpackageApp(vm) {
  1952. var appOptions = parseApp(vm);
  1953. var app = getApp({
  1954. allowDefault: true });
  1955. vm.$scope = app;
  1956. var globalData = app.globalData;
  1957. if (globalData) {
  1958. Object.keys(appOptions.globalData).forEach(function (name) {
  1959. if (!hasOwn(globalData, name)) {
  1960. globalData[name] = appOptions.globalData[name];
  1961. }
  1962. });
  1963. }
  1964. Object.keys(appOptions).forEach(function (name) {
  1965. if (!hasOwn(app, name)) {
  1966. app[name] = appOptions[name];
  1967. }
  1968. });
  1969. if (isFn(appOptions.onShow) && wx.onAppShow) {
  1970. wx.onAppShow(function () {for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {args[_key5] = arguments[_key5];}
  1971. vm.__call_hook('onShow', args);
  1972. });
  1973. }
  1974. if (isFn(appOptions.onHide) && wx.onAppHide) {
  1975. wx.onAppHide(function () {for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {args[_key6] = arguments[_key6];}
  1976. vm.__call_hook('onHide', args);
  1977. });
  1978. }
  1979. if (isFn(appOptions.onLaunch)) {
  1980. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  1981. vm.__call_hook('onLaunch', args);
  1982. }
  1983. return vm;
  1984. }
  1985. function createPlugin(vm) {
  1986. var appOptions = parseApp(vm);
  1987. if (isFn(appOptions.onShow) && wx.onAppShow) {
  1988. wx.onAppShow(function () {for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {args[_key7] = arguments[_key7];}
  1989. vm.__call_hook('onShow', args);
  1990. });
  1991. }
  1992. if (isFn(appOptions.onHide) && wx.onAppHide) {
  1993. wx.onAppHide(function () {for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {args[_key8] = arguments[_key8];}
  1994. vm.__call_hook('onHide', args);
  1995. });
  1996. }
  1997. if (isFn(appOptions.onLaunch)) {
  1998. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  1999. vm.__call_hook('onLaunch', args);
  2000. }
  2001. return vm;
  2002. }
  2003. todos.forEach(function (todoApi) {
  2004. protocols[todoApi] = false;
  2005. });
  2006. canIUses.forEach(function (canIUseApi) {
  2007. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name :
  2008. canIUseApi;
  2009. if (!wx.canIUse(apiName)) {
  2010. protocols[canIUseApi] = false;
  2011. }
  2012. });
  2013. var uni = {};
  2014. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  2015. uni = new Proxy({}, {
  2016. get: function get(target, name) {
  2017. if (hasOwn(target, name)) {
  2018. return target[name];
  2019. }
  2020. if (baseApi[name]) {
  2021. return baseApi[name];
  2022. }
  2023. if (api[name]) {
  2024. return promisify(name, api[name]);
  2025. }
  2026. {
  2027. if (extraApi[name]) {
  2028. return promisify(name, extraApi[name]);
  2029. }
  2030. if (todoApis[name]) {
  2031. return promisify(name, todoApis[name]);
  2032. }
  2033. }
  2034. if (eventApi[name]) {
  2035. return eventApi[name];
  2036. }
  2037. if (!hasOwn(wx, name) && !hasOwn(protocols, name)) {
  2038. return;
  2039. }
  2040. return promisify(name, wrapper(name, wx[name]));
  2041. },
  2042. set: function set(target, name, value) {
  2043. target[name] = value;
  2044. return true;
  2045. } });
  2046. } else {
  2047. Object.keys(baseApi).forEach(function (name) {
  2048. uni[name] = baseApi[name];
  2049. });
  2050. {
  2051. Object.keys(todoApis).forEach(function (name) {
  2052. uni[name] = promisify(name, todoApis[name]);
  2053. });
  2054. Object.keys(extraApi).forEach(function (name) {
  2055. uni[name] = promisify(name, todoApis[name]);
  2056. });
  2057. }
  2058. Object.keys(eventApi).forEach(function (name) {
  2059. uni[name] = eventApi[name];
  2060. });
  2061. Object.keys(api).forEach(function (name) {
  2062. uni[name] = promisify(name, api[name]);
  2063. });
  2064. Object.keys(wx).forEach(function (name) {
  2065. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  2066. uni[name] = promisify(name, wrapper(name, wx[name]));
  2067. }
  2068. });
  2069. }
  2070. wx.createApp = createApp;
  2071. wx.createPage = createPage;
  2072. wx.createComponent = createComponent;
  2073. wx.createSubpackageApp = createSubpackageApp;
  2074. wx.createPlugin = createPlugin;
  2075. var uni$1 = uni;var _default =
  2076. uni$1;exports.default = _default;
  2077. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 2)))
  2078. /***/ }),
  2079. /* 2 */
  2080. /*!***********************************!*\
  2081. !*** (webpack)/buildin/global.js ***!
  2082. \***********************************/
  2083. /*! no static exports found */
  2084. /***/ (function(module, exports) {
  2085. var g;
  2086. // This works in non-strict mode
  2087. g = (function() {
  2088. return this;
  2089. })();
  2090. try {
  2091. // This works if eval is allowed (see CSP)
  2092. g = g || new Function("return this")();
  2093. } catch (e) {
  2094. // This works if the window reference is available
  2095. if (typeof window === "object") g = window;
  2096. }
  2097. // g can still be undefined, but nothing to do about it...
  2098. // We return undefined, instead of nothing here, so it's
  2099. // easier to handle this case. if(!global) { ...}
  2100. module.exports = g;
  2101. /***/ }),
  2102. /* 3 */
  2103. /*!*************************************************************!*\
  2104. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  2105. \*************************************************************/
  2106. /*! no static exports found */
  2107. /***/ (function(module, exports, __webpack_require__) {
  2108. "use strict";
  2109. /* 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;
  2110. var isObject = function isObject(val) {return val !== null && typeof val === 'object';};
  2111. var defaultDelimiters = ['{', '}'];var
  2112. BaseFormatter = /*#__PURE__*/function () {
  2113. function BaseFormatter() {_classCallCheck(this, BaseFormatter);
  2114. this._caches = Object.create(null);
  2115. }_createClass(BaseFormatter, [{ key: "interpolate", value: function interpolate(
  2116. message, values) {var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  2117. if (!values) {
  2118. return [message];
  2119. }
  2120. var tokens = this._caches[message];
  2121. if (!tokens) {
  2122. tokens = parse(message, delimiters);
  2123. this._caches[message] = tokens;
  2124. }
  2125. return compile(tokens, values);
  2126. } }]);return BaseFormatter;}();exports.Formatter = BaseFormatter;
  2127. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  2128. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  2129. function parse(format, _ref) {var _ref2 = _slicedToArray(_ref, 2),startDelimiter = _ref2[0],endDelimiter = _ref2[1];
  2130. var tokens = [];
  2131. var position = 0;
  2132. var text = '';
  2133. while (position < format.length) {
  2134. var char = format[position++];
  2135. if (char === startDelimiter) {
  2136. if (text) {
  2137. tokens.push({ type: 'text', value: text });
  2138. }
  2139. text = '';
  2140. var sub = '';
  2141. char = format[position++];
  2142. while (char !== undefined && char !== endDelimiter) {
  2143. sub += char;
  2144. char = format[position++];
  2145. }
  2146. var isClosed = char === endDelimiter;
  2147. var type = RE_TOKEN_LIST_VALUE.test(sub) ?
  2148. 'list' :
  2149. isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ?
  2150. 'named' :
  2151. 'unknown';
  2152. tokens.push({ value: sub, type: type });
  2153. }
  2154. // else if (char === '%') {
  2155. // // when found rails i18n syntax, skip text capture
  2156. // if (format[position] !== '{') {
  2157. // text += char
  2158. // }
  2159. // }
  2160. else {
  2161. text += char;
  2162. }
  2163. }
  2164. text && tokens.push({ type: 'text', value: text });
  2165. return tokens;
  2166. }
  2167. function compile(tokens, values) {
  2168. var compiled = [];
  2169. var index = 0;
  2170. var mode = isArray(values) ?
  2171. 'list' :
  2172. isObject(values) ?
  2173. 'named' :
  2174. 'unknown';
  2175. if (mode === 'unknown') {
  2176. return compiled;
  2177. }
  2178. while (index < tokens.length) {
  2179. var token = tokens[index];
  2180. switch (token.type) {
  2181. case 'text':
  2182. compiled.push(token.value);
  2183. break;
  2184. case 'list':
  2185. compiled.push(values[parseInt(token.value, 10)]);
  2186. break;
  2187. case 'named':
  2188. if (mode === 'named') {
  2189. compiled.push(values[token.value]);
  2190. } else
  2191. {
  2192. if (true) {
  2193. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  2194. }
  2195. }
  2196. break;
  2197. case 'unknown':
  2198. if (true) {
  2199. console.warn("Detect 'unknown' type of token!");
  2200. }
  2201. break;}
  2202. index++;
  2203. }
  2204. return compiled;
  2205. }
  2206. var LOCALE_ZH_HANS = 'zh-Hans';exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  2207. var LOCALE_ZH_HANT = 'zh-Hant';exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  2208. var LOCALE_EN = 'en';exports.LOCALE_EN = LOCALE_EN;
  2209. var LOCALE_FR = 'fr';exports.LOCALE_FR = LOCALE_FR;
  2210. var LOCALE_ES = 'es';exports.LOCALE_ES = LOCALE_ES;
  2211. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2212. var hasOwn = function hasOwn(val, key) {return hasOwnProperty.call(val, key);};
  2213. var defaultFormatter = new BaseFormatter();
  2214. function include(str, parts) {
  2215. return !!parts.find(function (part) {return str.indexOf(part) !== -1;});
  2216. }
  2217. function startsWith(str, parts) {
  2218. return parts.find(function (part) {return str.indexOf(part) === 0;});
  2219. }
  2220. function normalizeLocale(locale, messages) {
  2221. if (!locale) {
  2222. return;
  2223. }
  2224. locale = locale.trim().replace(/_/g, '-');
  2225. if (messages && messages[locale]) {
  2226. return locale;
  2227. }
  2228. locale = locale.toLowerCase();
  2229. if (locale.indexOf('zh') === 0) {
  2230. if (locale.indexOf('-hans') > -1) {
  2231. return LOCALE_ZH_HANS;
  2232. }
  2233. if (locale.indexOf('-hant') > -1) {
  2234. return LOCALE_ZH_HANT;
  2235. }
  2236. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  2237. return LOCALE_ZH_HANT;
  2238. }
  2239. return LOCALE_ZH_HANS;
  2240. }
  2241. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  2242. if (lang) {
  2243. return lang;
  2244. }
  2245. }var
  2246. I18n = /*#__PURE__*/function () {
  2247. function I18n(_ref3) {var locale = _ref3.locale,fallbackLocale = _ref3.fallbackLocale,messages = _ref3.messages,watcher = _ref3.watcher,formater = _ref3.formater;_classCallCheck(this, I18n);
  2248. this.locale = LOCALE_EN;
  2249. this.fallbackLocale = LOCALE_EN;
  2250. this.message = {};
  2251. this.messages = {};
  2252. this.watchers = [];
  2253. if (fallbackLocale) {
  2254. this.fallbackLocale = fallbackLocale;
  2255. }
  2256. this.formater = formater || defaultFormatter;
  2257. this.messages = messages || {};
  2258. this.setLocale(locale || LOCALE_EN);
  2259. if (watcher) {
  2260. this.watchLocale(watcher);
  2261. }
  2262. }_createClass(I18n, [{ key: "setLocale", value: function setLocale(
  2263. locale) {var _this = this;
  2264. var oldLocale = this.locale;
  2265. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  2266. if (!this.messages[this.locale]) {
  2267. // 可能初始化时不存在
  2268. this.messages[this.locale] = {};
  2269. }
  2270. this.message = this.messages[this.locale];
  2271. // 仅发生变化时,通知
  2272. if (oldLocale !== this.locale) {
  2273. this.watchers.forEach(function (watcher) {
  2274. watcher(_this.locale, oldLocale);
  2275. });
  2276. }
  2277. } }, { key: "getLocale", value: function getLocale()
  2278. {
  2279. return this.locale;
  2280. } }, { key: "watchLocale", value: function watchLocale(
  2281. fn) {var _this2 = this;
  2282. var index = this.watchers.push(fn) - 1;
  2283. return function () {
  2284. _this2.watchers.splice(index, 1);
  2285. };
  2286. } }, { key: "add", value: function add(
  2287. locale, message) {var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  2288. var curMessages = this.messages[locale];
  2289. if (curMessages) {
  2290. if (override) {
  2291. Object.assign(curMessages, message);
  2292. } else
  2293. {
  2294. Object.keys(message).forEach(function (key) {
  2295. if (!hasOwn(curMessages, key)) {
  2296. curMessages[key] = message[key];
  2297. }
  2298. });
  2299. }
  2300. } else
  2301. {
  2302. this.messages[locale] = message;
  2303. }
  2304. } }, { key: "f", value: function f(
  2305. message, values, delimiters) {
  2306. return this.formater.interpolate(message, values, delimiters).join('');
  2307. } }, { key: "t", value: function t(
  2308. key, locale, values) {
  2309. var message = this.message;
  2310. if (typeof locale === 'string') {
  2311. locale = normalizeLocale(locale, this.messages);
  2312. locale && (message = this.messages[locale]);
  2313. } else
  2314. {
  2315. values = locale;
  2316. }
  2317. if (!hasOwn(message, key)) {
  2318. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  2319. return key;
  2320. }
  2321. return this.formater.interpolate(message[key], values).join('');
  2322. } }]);return I18n;}();exports.I18n = I18n;
  2323. function watchAppLocale(appVm, i18n) {
  2324. // 需要保证 watch 的触发在组件渲染之前
  2325. if (appVm.$watchLocale) {
  2326. // vue2
  2327. appVm.$watchLocale(function (newLocale) {
  2328. i18n.setLocale(newLocale);
  2329. });
  2330. } else
  2331. {
  2332. appVm.$watch(function () {return appVm.$locale;}, function (newLocale) {
  2333. i18n.setLocale(newLocale);
  2334. });
  2335. }
  2336. }
  2337. function getDefaultLocale() {
  2338. if (typeof uni !== 'undefined' && uni.getLocale) {
  2339. return uni.getLocale();
  2340. }
  2341. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  2342. if (typeof global !== 'undefined' && global.getLocale) {
  2343. return global.getLocale();
  2344. }
  2345. return LOCALE_EN;
  2346. }
  2347. 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;
  2348. // 兼容旧版本入参
  2349. if (typeof locale !== 'string') {var _ref4 =
  2350. [
  2351. messages,
  2352. locale];locale = _ref4[0];messages = _ref4[1];
  2353. }
  2354. if (typeof locale !== 'string') {
  2355. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  2356. locale = getDefaultLocale();
  2357. }
  2358. if (typeof fallbackLocale !== 'string') {
  2359. fallbackLocale =
  2360. typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale ||
  2361. LOCALE_EN;
  2362. }
  2363. var i18n = new I18n({
  2364. locale: locale,
  2365. fallbackLocale: fallbackLocale,
  2366. messages: messages,
  2367. watcher: watcher });
  2368. var _t = function t(key, values) {
  2369. if (typeof getApp !== 'function') {
  2370. // app view
  2371. /* eslint-disable no-func-assign */
  2372. _t = function t(key, values) {
  2373. return i18n.t(key, values);
  2374. };
  2375. } else
  2376. {
  2377. var isWatchedAppLocale = false;
  2378. _t = function t(key, values) {
  2379. var appVm = getApp().$vm;
  2380. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  2381. // options: {
  2382. // type: Array,
  2383. // default () {
  2384. // return [{
  2385. // icon: 'shop',
  2386. // text: t("uni-goods-nav.options.shop"),
  2387. // }, {
  2388. // icon: 'cart',
  2389. // text: t("uni-goods-nav.options.cart")
  2390. // }]
  2391. // }
  2392. // },
  2393. if (appVm) {
  2394. // 触发响应式
  2395. appVm.$locale;
  2396. if (!isWatchedAppLocale) {
  2397. isWatchedAppLocale = true;
  2398. watchAppLocale(appVm, i18n);
  2399. }
  2400. }
  2401. return i18n.t(key, values);
  2402. };
  2403. }
  2404. return _t(key, values);
  2405. };
  2406. return {
  2407. i18n: i18n,
  2408. f: function f(message, values, delimiters) {
  2409. return i18n.f(message, values, delimiters);
  2410. },
  2411. t: function t(key, values) {
  2412. return _t(key, values);
  2413. },
  2414. add: function add(locale, message) {var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  2415. return i18n.add(locale, message, override);
  2416. },
  2417. watch: function watch(fn) {
  2418. return i18n.watchLocale(fn);
  2419. },
  2420. getLocale: function getLocale() {
  2421. return i18n.getLocale();
  2422. },
  2423. setLocale: function setLocale(newLocale) {
  2424. return i18n.setLocale(newLocale);
  2425. } };
  2426. }
  2427. var isString = function isString(val) {return typeof val === 'string';};exports.isString = isString;
  2428. var formater;
  2429. function hasI18nJson(jsonObj, delimiters) {
  2430. if (!formater) {
  2431. formater = new BaseFormatter();
  2432. }
  2433. return walkJsonObj(jsonObj, function (jsonObj, key) {
  2434. var value = jsonObj[key];
  2435. if (isString(value)) {
  2436. if (isI18nStr(value, delimiters)) {
  2437. return true;
  2438. }
  2439. } else
  2440. {
  2441. return hasI18nJson(value, delimiters);
  2442. }
  2443. });
  2444. }
  2445. function parseI18nJson(jsonObj, values, delimiters) {
  2446. if (!formater) {
  2447. formater = new BaseFormatter();
  2448. }
  2449. walkJsonObj(jsonObj, function (jsonObj, key) {
  2450. var value = jsonObj[key];
  2451. if (isString(value)) {
  2452. if (isI18nStr(value, delimiters)) {
  2453. jsonObj[key] = compileStr(value, values, delimiters);
  2454. }
  2455. } else
  2456. {
  2457. parseI18nJson(value, values, delimiters);
  2458. }
  2459. });
  2460. return jsonObj;
  2461. }
  2462. function compileI18nJsonStr(jsonStr, _ref5) {var locale = _ref5.locale,locales = _ref5.locales,delimiters = _ref5.delimiters;
  2463. if (!isI18nStr(jsonStr, delimiters)) {
  2464. return jsonStr;
  2465. }
  2466. if (!formater) {
  2467. formater = new BaseFormatter();
  2468. }
  2469. var localeValues = [];
  2470. Object.keys(locales).forEach(function (name) {
  2471. if (name !== locale) {
  2472. localeValues.push({
  2473. locale: name,
  2474. values: locales[name] });
  2475. }
  2476. });
  2477. localeValues.unshift({ locale: locale, values: locales[locale] });
  2478. try {
  2479. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  2480. }
  2481. catch (e) {}
  2482. return jsonStr;
  2483. }
  2484. function isI18nStr(value, delimiters) {
  2485. return value.indexOf(delimiters[0]) > -1;
  2486. }
  2487. function compileStr(value, values, delimiters) {
  2488. return formater.interpolate(value, values, delimiters).join('');
  2489. }
  2490. function compileValue(jsonObj, key, localeValues, delimiters) {
  2491. var value = jsonObj[key];
  2492. if (isString(value)) {
  2493. // 存在国际化
  2494. if (isI18nStr(value, delimiters)) {
  2495. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  2496. if (localeValues.length > 1) {
  2497. // 格式化国际化语言
  2498. var valueLocales = jsonObj[key + 'Locales'] = {};
  2499. localeValues.forEach(function (localValue) {
  2500. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  2501. });
  2502. }
  2503. }
  2504. } else
  2505. {
  2506. compileJsonObj(value, localeValues, delimiters);
  2507. }
  2508. }
  2509. function compileJsonObj(jsonObj, localeValues, delimiters) {
  2510. walkJsonObj(jsonObj, function (jsonObj, key) {
  2511. compileValue(jsonObj, key, localeValues, delimiters);
  2512. });
  2513. return jsonObj;
  2514. }
  2515. function walkJsonObj(jsonObj, walk) {
  2516. if (isArray(jsonObj)) {
  2517. for (var i = 0; i < jsonObj.length; i++) {
  2518. if (walk(jsonObj, i)) {
  2519. return true;
  2520. }
  2521. }
  2522. } else
  2523. if (isObject(jsonObj)) {
  2524. for (var key in jsonObj) {
  2525. if (walk(jsonObj, key)) {
  2526. return true;
  2527. }
  2528. }
  2529. }
  2530. return false;
  2531. }
  2532. function resolveLocale(locales) {
  2533. return function (locale) {
  2534. if (!locale) {
  2535. return locale;
  2536. }
  2537. locale = normalizeLocale(locale) || locale;
  2538. return resolveLocaleChain(locale).find(function (locale) {return locales.indexOf(locale) > -1;});
  2539. };
  2540. }
  2541. function resolveLocaleChain(locale) {
  2542. var chain = [];
  2543. var tokens = locale.split('-');
  2544. while (tokens.length) {
  2545. chain.push(tokens.join('-'));
  2546. tokens.pop();
  2547. }
  2548. return chain;
  2549. }
  2550. /* 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)))
  2551. /***/ }),
  2552. /* 4 */
  2553. /*!******************************************************************************************!*\
  2554. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  2555. \******************************************************************************************/
  2556. /*! exports provided: default */
  2557. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2558. "use strict";
  2559. __webpack_require__.r(__webpack_exports__);
  2560. /* WEBPACK VAR INJECTION */(function(global) {/*!
  2561. * Vue.js v2.6.11
  2562. * (c) 2014-2022 Evan You
  2563. * Released under the MIT License.
  2564. */
  2565. /* */
  2566. var emptyObject = Object.freeze({});
  2567. // These helpers produce better VM code in JS engines due to their
  2568. // explicitness and function inlining.
  2569. function isUndef (v) {
  2570. return v === undefined || v === null
  2571. }
  2572. function isDef (v) {
  2573. return v !== undefined && v !== null
  2574. }
  2575. function isTrue (v) {
  2576. return v === true
  2577. }
  2578. function isFalse (v) {
  2579. return v === false
  2580. }
  2581. /**
  2582. * Check if value is primitive.
  2583. */
  2584. function isPrimitive (value) {
  2585. return (
  2586. typeof value === 'string' ||
  2587. typeof value === 'number' ||
  2588. // $flow-disable-line
  2589. typeof value === 'symbol' ||
  2590. typeof value === 'boolean'
  2591. )
  2592. }
  2593. /**
  2594. * Quick object check - this is primarily used to tell
  2595. * Objects from primitive values when we know the value
  2596. * is a JSON-compliant type.
  2597. */
  2598. function isObject (obj) {
  2599. return obj !== null && typeof obj === 'object'
  2600. }
  2601. /**
  2602. * Get the raw type string of a value, e.g., [object Object].
  2603. */
  2604. var _toString = Object.prototype.toString;
  2605. function toRawType (value) {
  2606. return _toString.call(value).slice(8, -1)
  2607. }
  2608. /**
  2609. * Strict object type check. Only returns true
  2610. * for plain JavaScript objects.
  2611. */
  2612. function isPlainObject (obj) {
  2613. return _toString.call(obj) === '[object Object]'
  2614. }
  2615. function isRegExp (v) {
  2616. return _toString.call(v) === '[object RegExp]'
  2617. }
  2618. /**
  2619. * Check if val is a valid array index.
  2620. */
  2621. function isValidArrayIndex (val) {
  2622. var n = parseFloat(String(val));
  2623. return n >= 0 && Math.floor(n) === n && isFinite(val)
  2624. }
  2625. function isPromise (val) {
  2626. return (
  2627. isDef(val) &&
  2628. typeof val.then === 'function' &&
  2629. typeof val.catch === 'function'
  2630. )
  2631. }
  2632. /**
  2633. * Convert a value to a string that is actually rendered.
  2634. */
  2635. function toString (val) {
  2636. return val == null
  2637. ? ''
  2638. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  2639. ? JSON.stringify(val, null, 2)
  2640. : String(val)
  2641. }
  2642. /**
  2643. * Convert an input value to a number for persistence.
  2644. * If the conversion fails, return original string.
  2645. */
  2646. function toNumber (val) {
  2647. var n = parseFloat(val);
  2648. return isNaN(n) ? val : n
  2649. }
  2650. /**
  2651. * Make a map and return a function for checking if a key
  2652. * is in that map.
  2653. */
  2654. function makeMap (
  2655. str,
  2656. expectsLowerCase
  2657. ) {
  2658. var map = Object.create(null);
  2659. var list = str.split(',');
  2660. for (var i = 0; i < list.length; i++) {
  2661. map[list[i]] = true;
  2662. }
  2663. return expectsLowerCase
  2664. ? function (val) { return map[val.toLowerCase()]; }
  2665. : function (val) { return map[val]; }
  2666. }
  2667. /**
  2668. * Check if a tag is a built-in tag.
  2669. */
  2670. var isBuiltInTag = makeMap('slot,component', true);
  2671. /**
  2672. * Check if an attribute is a reserved attribute.
  2673. */
  2674. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  2675. /**
  2676. * Remove an item from an array.
  2677. */
  2678. function remove (arr, item) {
  2679. if (arr.length) {
  2680. var index = arr.indexOf(item);
  2681. if (index > -1) {
  2682. return arr.splice(index, 1)
  2683. }
  2684. }
  2685. }
  2686. /**
  2687. * Check whether an object has the property.
  2688. */
  2689. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2690. function hasOwn (obj, key) {
  2691. return hasOwnProperty.call(obj, key)
  2692. }
  2693. /**
  2694. * Create a cached version of a pure function.
  2695. */
  2696. function cached (fn) {
  2697. var cache = Object.create(null);
  2698. return (function cachedFn (str) {
  2699. var hit = cache[str];
  2700. return hit || (cache[str] = fn(str))
  2701. })
  2702. }
  2703. /**
  2704. * Camelize a hyphen-delimited string.
  2705. */
  2706. var camelizeRE = /-(\w)/g;
  2707. var camelize = cached(function (str) {
  2708. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  2709. });
  2710. /**
  2711. * Capitalize a string.
  2712. */
  2713. var capitalize = cached(function (str) {
  2714. return str.charAt(0).toUpperCase() + str.slice(1)
  2715. });
  2716. /**
  2717. * Hyphenate a camelCase string.
  2718. */
  2719. var hyphenateRE = /\B([A-Z])/g;
  2720. var hyphenate = cached(function (str) {
  2721. return str.replace(hyphenateRE, '-$1').toLowerCase()
  2722. });
  2723. /**
  2724. * Simple bind polyfill for environments that do not support it,
  2725. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  2726. * since native bind is now performant enough in most browsers.
  2727. * But removing it would mean breaking code that was able to run in
  2728. * PhantomJS 1.x, so this must be kept for backward compatibility.
  2729. */
  2730. /* istanbul ignore next */
  2731. function polyfillBind (fn, ctx) {
  2732. function boundFn (a) {
  2733. var l = arguments.length;
  2734. return l
  2735. ? l > 1
  2736. ? fn.apply(ctx, arguments)
  2737. : fn.call(ctx, a)
  2738. : fn.call(ctx)
  2739. }
  2740. boundFn._length = fn.length;
  2741. return boundFn
  2742. }
  2743. function nativeBind (fn, ctx) {
  2744. return fn.bind(ctx)
  2745. }
  2746. var bind = Function.prototype.bind
  2747. ? nativeBind
  2748. : polyfillBind;
  2749. /**
  2750. * Convert an Array-like object to a real Array.
  2751. */
  2752. function toArray (list, start) {
  2753. start = start || 0;
  2754. var i = list.length - start;
  2755. var ret = new Array(i);
  2756. while (i--) {
  2757. ret[i] = list[i + start];
  2758. }
  2759. return ret
  2760. }
  2761. /**
  2762. * Mix properties into target object.
  2763. */
  2764. function extend (to, _from) {
  2765. for (var key in _from) {
  2766. to[key] = _from[key];
  2767. }
  2768. return to
  2769. }
  2770. /**
  2771. * Merge an Array of Objects into a single Object.
  2772. */
  2773. function toObject (arr) {
  2774. var res = {};
  2775. for (var i = 0; i < arr.length; i++) {
  2776. if (arr[i]) {
  2777. extend(res, arr[i]);
  2778. }
  2779. }
  2780. return res
  2781. }
  2782. /* eslint-disable no-unused-vars */
  2783. /**
  2784. * Perform no operation.
  2785. * Stubbing args to make Flow happy without leaving useless transpiled code
  2786. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  2787. */
  2788. function noop (a, b, c) {}
  2789. /**
  2790. * Always return false.
  2791. */
  2792. var no = function (a, b, c) { return false; };
  2793. /* eslint-enable no-unused-vars */
  2794. /**
  2795. * Return the same value.
  2796. */
  2797. var identity = function (_) { return _; };
  2798. /**
  2799. * Check if two values are loosely equal - that is,
  2800. * if they are plain objects, do they have the same shape?
  2801. */
  2802. function looseEqual (a, b) {
  2803. if (a === b) { return true }
  2804. var isObjectA = isObject(a);
  2805. var isObjectB = isObject(b);
  2806. if (isObjectA && isObjectB) {
  2807. try {
  2808. var isArrayA = Array.isArray(a);
  2809. var isArrayB = Array.isArray(b);
  2810. if (isArrayA && isArrayB) {
  2811. return a.length === b.length && a.every(function (e, i) {
  2812. return looseEqual(e, b[i])
  2813. })
  2814. } else if (a instanceof Date && b instanceof Date) {
  2815. return a.getTime() === b.getTime()
  2816. } else if (!isArrayA && !isArrayB) {
  2817. var keysA = Object.keys(a);
  2818. var keysB = Object.keys(b);
  2819. return keysA.length === keysB.length && keysA.every(function (key) {
  2820. return looseEqual(a[key], b[key])
  2821. })
  2822. } else {
  2823. /* istanbul ignore next */
  2824. return false
  2825. }
  2826. } catch (e) {
  2827. /* istanbul ignore next */
  2828. return false
  2829. }
  2830. } else if (!isObjectA && !isObjectB) {
  2831. return String(a) === String(b)
  2832. } else {
  2833. return false
  2834. }
  2835. }
  2836. /**
  2837. * Return the first index at which a loosely equal value can be
  2838. * found in the array (if value is a plain object, the array must
  2839. * contain an object of the same shape), or -1 if it is not present.
  2840. */
  2841. function looseIndexOf (arr, val) {
  2842. for (var i = 0; i < arr.length; i++) {
  2843. if (looseEqual(arr[i], val)) { return i }
  2844. }
  2845. return -1
  2846. }
  2847. /**
  2848. * Ensure a function is called only once.
  2849. */
  2850. function once (fn) {
  2851. var called = false;
  2852. return function () {
  2853. if (!called) {
  2854. called = true;
  2855. fn.apply(this, arguments);
  2856. }
  2857. }
  2858. }
  2859. var ASSET_TYPES = [
  2860. 'component',
  2861. 'directive',
  2862. 'filter'
  2863. ];
  2864. var LIFECYCLE_HOOKS = [
  2865. 'beforeCreate',
  2866. 'created',
  2867. 'beforeMount',
  2868. 'mounted',
  2869. 'beforeUpdate',
  2870. 'updated',
  2871. 'beforeDestroy',
  2872. 'destroyed',
  2873. 'activated',
  2874. 'deactivated',
  2875. 'errorCaptured',
  2876. 'serverPrefetch'
  2877. ];
  2878. /* */
  2879. var config = ({
  2880. /**
  2881. * Option merge strategies (used in core/util/options)
  2882. */
  2883. // $flow-disable-line
  2884. optionMergeStrategies: Object.create(null),
  2885. /**
  2886. * Whether to suppress warnings.
  2887. */
  2888. silent: false,
  2889. /**
  2890. * Show production mode tip message on boot?
  2891. */
  2892. productionTip: "development" !== 'production',
  2893. /**
  2894. * Whether to enable devtools
  2895. */
  2896. devtools: "development" !== 'production',
  2897. /**
  2898. * Whether to record perf
  2899. */
  2900. performance: false,
  2901. /**
  2902. * Error handler for watcher errors
  2903. */
  2904. errorHandler: null,
  2905. /**
  2906. * Warn handler for watcher warns
  2907. */
  2908. warnHandler: null,
  2909. /**
  2910. * Ignore certain custom elements
  2911. */
  2912. ignoredElements: [],
  2913. /**
  2914. * Custom user key aliases for v-on
  2915. */
  2916. // $flow-disable-line
  2917. keyCodes: Object.create(null),
  2918. /**
  2919. * Check if a tag is reserved so that it cannot be registered as a
  2920. * component. This is platform-dependent and may be overwritten.
  2921. */
  2922. isReservedTag: no,
  2923. /**
  2924. * Check if an attribute is reserved so that it cannot be used as a component
  2925. * prop. This is platform-dependent and may be overwritten.
  2926. */
  2927. isReservedAttr: no,
  2928. /**
  2929. * Check if a tag is an unknown element.
  2930. * Platform-dependent.
  2931. */
  2932. isUnknownElement: no,
  2933. /**
  2934. * Get the namespace of an element
  2935. */
  2936. getTagNamespace: noop,
  2937. /**
  2938. * Parse the real tag name for the specific platform.
  2939. */
  2940. parsePlatformTagName: identity,
  2941. /**
  2942. * Check if an attribute must be bound using property, e.g. value
  2943. * Platform-dependent.
  2944. */
  2945. mustUseProp: no,
  2946. /**
  2947. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  2948. * This will significantly reduce performance if set to false.
  2949. */
  2950. async: true,
  2951. /**
  2952. * Exposed for legacy reasons
  2953. */
  2954. _lifecycleHooks: LIFECYCLE_HOOKS
  2955. });
  2956. /* */
  2957. /**
  2958. * unicode letters used for parsing html tags, component names and property paths.
  2959. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  2960. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  2961. */
  2962. 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/;
  2963. /**
  2964. * Check if a string starts with $ or _
  2965. */
  2966. function isReserved (str) {
  2967. var c = (str + '').charCodeAt(0);
  2968. return c === 0x24 || c === 0x5F
  2969. }
  2970. /**
  2971. * Define a property.
  2972. */
  2973. function def (obj, key, val, enumerable) {
  2974. Object.defineProperty(obj, key, {
  2975. value: val,
  2976. enumerable: !!enumerable,
  2977. writable: true,
  2978. configurable: true
  2979. });
  2980. }
  2981. /**
  2982. * Parse simple path.
  2983. */
  2984. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  2985. function parsePath (path) {
  2986. if (bailRE.test(path)) {
  2987. return
  2988. }
  2989. var segments = path.split('.');
  2990. return function (obj) {
  2991. for (var i = 0; i < segments.length; i++) {
  2992. if (!obj) { return }
  2993. obj = obj[segments[i]];
  2994. }
  2995. return obj
  2996. }
  2997. }
  2998. /* */
  2999. // can we use __proto__?
  3000. var hasProto = '__proto__' in {};
  3001. // Browser environment sniffing
  3002. var inBrowser = typeof window !== 'undefined';
  3003. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  3004. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  3005. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  3006. var isIE = UA && /msie|trident/.test(UA);
  3007. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  3008. var isEdge = UA && UA.indexOf('edge/') > 0;
  3009. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  3010. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  3011. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  3012. var isPhantomJS = UA && /phantomjs/.test(UA);
  3013. var isFF = UA && UA.match(/firefox\/(\d+)/);
  3014. // Firefox has a "watch" function on Object.prototype...
  3015. var nativeWatch = ({}).watch;
  3016. if (inBrowser) {
  3017. try {
  3018. var opts = {};
  3019. Object.defineProperty(opts, 'passive', ({
  3020. get: function get () {
  3021. }
  3022. })); // https://github.com/facebook/flow/issues/285
  3023. window.addEventListener('test-passive', null, opts);
  3024. } catch (e) {}
  3025. }
  3026. // this needs to be lazy-evaled because vue may be required before
  3027. // vue-server-renderer can set VUE_ENV
  3028. var _isServer;
  3029. var isServerRendering = function () {
  3030. if (_isServer === undefined) {
  3031. /* istanbul ignore if */
  3032. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  3033. // detect presence of vue-server-renderer and avoid
  3034. // Webpack shimming the process
  3035. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  3036. } else {
  3037. _isServer = false;
  3038. }
  3039. }
  3040. return _isServer
  3041. };
  3042. // detect devtools
  3043. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  3044. /* istanbul ignore next */
  3045. function isNative (Ctor) {
  3046. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  3047. }
  3048. var hasSymbol =
  3049. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  3050. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  3051. var _Set;
  3052. /* istanbul ignore if */ // $flow-disable-line
  3053. if (typeof Set !== 'undefined' && isNative(Set)) {
  3054. // use native Set when available.
  3055. _Set = Set;
  3056. } else {
  3057. // a non-standard Set polyfill that only works with primitive keys.
  3058. _Set = /*@__PURE__*/(function () {
  3059. function Set () {
  3060. this.set = Object.create(null);
  3061. }
  3062. Set.prototype.has = function has (key) {
  3063. return this.set[key] === true
  3064. };
  3065. Set.prototype.add = function add (key) {
  3066. this.set[key] = true;
  3067. };
  3068. Set.prototype.clear = function clear () {
  3069. this.set = Object.create(null);
  3070. };
  3071. return Set;
  3072. }());
  3073. }
  3074. /* */
  3075. var warn = noop;
  3076. var tip = noop;
  3077. var generateComponentTrace = (noop); // work around flow check
  3078. var formatComponentName = (noop);
  3079. if (true) {
  3080. var hasConsole = typeof console !== 'undefined';
  3081. var classifyRE = /(?:^|[-_])(\w)/g;
  3082. var classify = function (str) { return str
  3083. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  3084. .replace(/[-_]/g, ''); };
  3085. warn = function (msg, vm) {
  3086. var trace = vm ? generateComponentTrace(vm) : '';
  3087. if (config.warnHandler) {
  3088. config.warnHandler.call(null, msg, vm, trace);
  3089. } else if (hasConsole && (!config.silent)) {
  3090. console.error(("[Vue warn]: " + msg + trace));
  3091. }
  3092. };
  3093. tip = function (msg, vm) {
  3094. if (hasConsole && (!config.silent)) {
  3095. console.warn("[Vue tip]: " + msg + (
  3096. vm ? generateComponentTrace(vm) : ''
  3097. ));
  3098. }
  3099. };
  3100. formatComponentName = function (vm, includeFile) {
  3101. if (vm.$root === vm) {
  3102. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  3103. return ('') + vm.$options.__file
  3104. }
  3105. return '<Root>'
  3106. }
  3107. var options = typeof vm === 'function' && vm.cid != null
  3108. ? vm.options
  3109. : vm._isVue
  3110. ? vm.$options || vm.constructor.options
  3111. : vm;
  3112. var name = options.name || options._componentTag;
  3113. var file = options.__file;
  3114. if (!name && file) {
  3115. var match = file.match(/([^/\\]+)\.vue$/);
  3116. name = match && match[1];
  3117. }
  3118. return (
  3119. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  3120. (file && includeFile !== false ? (" at " + file) : '')
  3121. )
  3122. };
  3123. var repeat = function (str, n) {
  3124. var res = '';
  3125. while (n) {
  3126. if (n % 2 === 1) { res += str; }
  3127. if (n > 1) { str += str; }
  3128. n >>= 1;
  3129. }
  3130. return res
  3131. };
  3132. generateComponentTrace = function (vm) {
  3133. if (vm._isVue && vm.$parent) {
  3134. var tree = [];
  3135. var currentRecursiveSequence = 0;
  3136. while (vm && vm.$options.name !== 'PageBody') {
  3137. if (tree.length > 0) {
  3138. var last = tree[tree.length - 1];
  3139. if (last.constructor === vm.constructor) {
  3140. currentRecursiveSequence++;
  3141. vm = vm.$parent;
  3142. continue
  3143. } else if (currentRecursiveSequence > 0) {
  3144. tree[tree.length - 1] = [last, currentRecursiveSequence];
  3145. currentRecursiveSequence = 0;
  3146. }
  3147. }
  3148. !vm.$options.isReserved && tree.push(vm);
  3149. vm = vm.$parent;
  3150. }
  3151. return '\n\nfound in\n\n' + tree
  3152. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  3153. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  3154. : formatComponentName(vm))); })
  3155. .join('\n')
  3156. } else {
  3157. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  3158. }
  3159. };
  3160. }
  3161. /* */
  3162. var uid = 0;
  3163. /**
  3164. * A dep is an observable that can have multiple
  3165. * directives subscribing to it.
  3166. */
  3167. var Dep = function Dep () {
  3168. this.id = uid++;
  3169. this.subs = [];
  3170. };
  3171. Dep.prototype.addSub = function addSub (sub) {
  3172. this.subs.push(sub);
  3173. };
  3174. Dep.prototype.removeSub = function removeSub (sub) {
  3175. remove(this.subs, sub);
  3176. };
  3177. Dep.prototype.depend = function depend () {
  3178. if (Dep.SharedObject.target) {
  3179. Dep.SharedObject.target.addDep(this);
  3180. }
  3181. };
  3182. Dep.prototype.notify = function notify () {
  3183. // stabilize the subscriber list first
  3184. var subs = this.subs.slice();
  3185. if ( true && !config.async) {
  3186. // subs aren't sorted in scheduler if not running async
  3187. // we need to sort them now to make sure they fire in correct
  3188. // order
  3189. subs.sort(function (a, b) { return a.id - b.id; });
  3190. }
  3191. for (var i = 0, l = subs.length; i < l; i++) {
  3192. subs[i].update();
  3193. }
  3194. };
  3195. // The current target watcher being evaluated.
  3196. // This is globally unique because only one watcher
  3197. // can be evaluated at a time.
  3198. // fixed by xxxxxx (nvue shared vuex)
  3199. /* eslint-disable no-undef */
  3200. Dep.SharedObject = {};
  3201. Dep.SharedObject.target = null;
  3202. Dep.SharedObject.targetStack = [];
  3203. function pushTarget (target) {
  3204. Dep.SharedObject.targetStack.push(target);
  3205. Dep.SharedObject.target = target;
  3206. Dep.target = target;
  3207. }
  3208. function popTarget () {
  3209. Dep.SharedObject.targetStack.pop();
  3210. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  3211. Dep.target = Dep.SharedObject.target;
  3212. }
  3213. /* */
  3214. var VNode = function VNode (
  3215. tag,
  3216. data,
  3217. children,
  3218. text,
  3219. elm,
  3220. context,
  3221. componentOptions,
  3222. asyncFactory
  3223. ) {
  3224. this.tag = tag;
  3225. this.data = data;
  3226. this.children = children;
  3227. this.text = text;
  3228. this.elm = elm;
  3229. this.ns = undefined;
  3230. this.context = context;
  3231. this.fnContext = undefined;
  3232. this.fnOptions = undefined;
  3233. this.fnScopeId = undefined;
  3234. this.key = data && data.key;
  3235. this.componentOptions = componentOptions;
  3236. this.componentInstance = undefined;
  3237. this.parent = undefined;
  3238. this.raw = false;
  3239. this.isStatic = false;
  3240. this.isRootInsert = true;
  3241. this.isComment = false;
  3242. this.isCloned = false;
  3243. this.isOnce = false;
  3244. this.asyncFactory = asyncFactory;
  3245. this.asyncMeta = undefined;
  3246. this.isAsyncPlaceholder = false;
  3247. };
  3248. var prototypeAccessors = { child: { configurable: true } };
  3249. // DEPRECATED: alias for componentInstance for backwards compat.
  3250. /* istanbul ignore next */
  3251. prototypeAccessors.child.get = function () {
  3252. return this.componentInstance
  3253. };
  3254. Object.defineProperties( VNode.prototype, prototypeAccessors );
  3255. var createEmptyVNode = function (text) {
  3256. if ( text === void 0 ) text = '';
  3257. var node = new VNode();
  3258. node.text = text;
  3259. node.isComment = true;
  3260. return node
  3261. };
  3262. function createTextVNode (val) {
  3263. return new VNode(undefined, undefined, undefined, String(val))
  3264. }
  3265. // optimized shallow clone
  3266. // used for static nodes and slot nodes because they may be reused across
  3267. // multiple renders, cloning them avoids errors when DOM manipulations rely
  3268. // on their elm reference.
  3269. function cloneVNode (vnode) {
  3270. var cloned = new VNode(
  3271. vnode.tag,
  3272. vnode.data,
  3273. // #7975
  3274. // clone children array to avoid mutating original in case of cloning
  3275. // a child.
  3276. vnode.children && vnode.children.slice(),
  3277. vnode.text,
  3278. vnode.elm,
  3279. vnode.context,
  3280. vnode.componentOptions,
  3281. vnode.asyncFactory
  3282. );
  3283. cloned.ns = vnode.ns;
  3284. cloned.isStatic = vnode.isStatic;
  3285. cloned.key = vnode.key;
  3286. cloned.isComment = vnode.isComment;
  3287. cloned.fnContext = vnode.fnContext;
  3288. cloned.fnOptions = vnode.fnOptions;
  3289. cloned.fnScopeId = vnode.fnScopeId;
  3290. cloned.asyncMeta = vnode.asyncMeta;
  3291. cloned.isCloned = true;
  3292. return cloned
  3293. }
  3294. /*
  3295. * not type checking this file because flow doesn't play well with
  3296. * dynamically accessing methods on Array prototype
  3297. */
  3298. var arrayProto = Array.prototype;
  3299. var arrayMethods = Object.create(arrayProto);
  3300. var methodsToPatch = [
  3301. 'push',
  3302. 'pop',
  3303. 'shift',
  3304. 'unshift',
  3305. 'splice',
  3306. 'sort',
  3307. 'reverse'
  3308. ];
  3309. /**
  3310. * Intercept mutating methods and emit events
  3311. */
  3312. methodsToPatch.forEach(function (method) {
  3313. // cache original method
  3314. var original = arrayProto[method];
  3315. def(arrayMethods, method, function mutator () {
  3316. var args = [], len = arguments.length;
  3317. while ( len-- ) args[ len ] = arguments[ len ];
  3318. var result = original.apply(this, args);
  3319. var ob = this.__ob__;
  3320. var inserted;
  3321. switch (method) {
  3322. case 'push':
  3323. case 'unshift':
  3324. inserted = args;
  3325. break
  3326. case 'splice':
  3327. inserted = args.slice(2);
  3328. break
  3329. }
  3330. if (inserted) { ob.observeArray(inserted); }
  3331. // notify change
  3332. ob.dep.notify();
  3333. return result
  3334. });
  3335. });
  3336. /* */
  3337. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  3338. /**
  3339. * In some cases we may want to disable observation inside a component's
  3340. * update computation.
  3341. */
  3342. var shouldObserve = true;
  3343. function toggleObserving (value) {
  3344. shouldObserve = value;
  3345. }
  3346. /**
  3347. * Observer class that is attached to each observed
  3348. * object. Once attached, the observer converts the target
  3349. * object's property keys into getter/setters that
  3350. * collect dependencies and dispatch updates.
  3351. */
  3352. var Observer = function Observer (value) {
  3353. this.value = value;
  3354. this.dep = new Dep();
  3355. this.vmCount = 0;
  3356. def(value, '__ob__', this);
  3357. if (Array.isArray(value)) {
  3358. if (hasProto) {
  3359. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  3360. if(value.push !== value.__proto__.push){
  3361. copyAugment(value, arrayMethods, arrayKeys);
  3362. } else {
  3363. protoAugment(value, arrayMethods);
  3364. }
  3365. }
  3366. } else {
  3367. copyAugment(value, arrayMethods, arrayKeys);
  3368. }
  3369. this.observeArray(value);
  3370. } else {
  3371. this.walk(value);
  3372. }
  3373. };
  3374. /**
  3375. * Walk through all properties and convert them into
  3376. * getter/setters. This method should only be called when
  3377. * value type is Object.
  3378. */
  3379. Observer.prototype.walk = function walk (obj) {
  3380. var keys = Object.keys(obj);
  3381. for (var i = 0; i < keys.length; i++) {
  3382. defineReactive$$1(obj, keys[i]);
  3383. }
  3384. };
  3385. /**
  3386. * Observe a list of Array items.
  3387. */
  3388. Observer.prototype.observeArray = function observeArray (items) {
  3389. for (var i = 0, l = items.length; i < l; i++) {
  3390. observe(items[i]);
  3391. }
  3392. };
  3393. // helpers
  3394. /**
  3395. * Augment a target Object or Array by intercepting
  3396. * the prototype chain using __proto__
  3397. */
  3398. function protoAugment (target, src) {
  3399. /* eslint-disable no-proto */
  3400. target.__proto__ = src;
  3401. /* eslint-enable no-proto */
  3402. }
  3403. /**
  3404. * Augment a target Object or Array by defining
  3405. * hidden properties.
  3406. */
  3407. /* istanbul ignore next */
  3408. function copyAugment (target, src, keys) {
  3409. for (var i = 0, l = keys.length; i < l; i++) {
  3410. var key = keys[i];
  3411. def(target, key, src[key]);
  3412. }
  3413. }
  3414. /**
  3415. * Attempt to create an observer instance for a value,
  3416. * returns the new observer if successfully observed,
  3417. * or the existing observer if the value already has one.
  3418. */
  3419. function observe (value, asRootData) {
  3420. if (!isObject(value) || value instanceof VNode) {
  3421. return
  3422. }
  3423. var ob;
  3424. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  3425. ob = value.__ob__;
  3426. } else if (
  3427. shouldObserve &&
  3428. !isServerRendering() &&
  3429. (Array.isArray(value) || isPlainObject(value)) &&
  3430. Object.isExtensible(value) &&
  3431. !value._isVue
  3432. ) {
  3433. ob = new Observer(value);
  3434. }
  3435. if (asRootData && ob) {
  3436. ob.vmCount++;
  3437. }
  3438. return ob
  3439. }
  3440. /**
  3441. * Define a reactive property on an Object.
  3442. */
  3443. function defineReactive$$1 (
  3444. obj,
  3445. key,
  3446. val,
  3447. customSetter,
  3448. shallow
  3449. ) {
  3450. var dep = new Dep();
  3451. var property = Object.getOwnPropertyDescriptor(obj, key);
  3452. if (property && property.configurable === false) {
  3453. return
  3454. }
  3455. // cater for pre-defined getter/setters
  3456. var getter = property && property.get;
  3457. var setter = property && property.set;
  3458. if ((!getter || setter) && arguments.length === 2) {
  3459. val = obj[key];
  3460. }
  3461. var childOb = !shallow && observe(val);
  3462. Object.defineProperty(obj, key, {
  3463. enumerable: true,
  3464. configurable: true,
  3465. get: function reactiveGetter () {
  3466. var value = getter ? getter.call(obj) : val;
  3467. if (Dep.SharedObject.target) { // fixed by xxxxxx
  3468. dep.depend();
  3469. if (childOb) {
  3470. childOb.dep.depend();
  3471. if (Array.isArray(value)) {
  3472. dependArray(value);
  3473. }
  3474. }
  3475. }
  3476. return value
  3477. },
  3478. set: function reactiveSetter (newVal) {
  3479. var value = getter ? getter.call(obj) : val;
  3480. /* eslint-disable no-self-compare */
  3481. if (newVal === value || (newVal !== newVal && value !== value)) {
  3482. return
  3483. }
  3484. /* eslint-enable no-self-compare */
  3485. if ( true && customSetter) {
  3486. customSetter();
  3487. }
  3488. // #7981: for accessor properties without setter
  3489. if (getter && !setter) { return }
  3490. if (setter) {
  3491. setter.call(obj, newVal);
  3492. } else {
  3493. val = newVal;
  3494. }
  3495. childOb = !shallow && observe(newVal);
  3496. dep.notify();
  3497. }
  3498. });
  3499. }
  3500. /**
  3501. * Set a property on an object. Adds the new property and
  3502. * triggers change notification if the property doesn't
  3503. * already exist.
  3504. */
  3505. function set (target, key, val) {
  3506. if ( true &&
  3507. (isUndef(target) || isPrimitive(target))
  3508. ) {
  3509. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  3510. }
  3511. if (Array.isArray(target) && isValidArrayIndex(key)) {
  3512. target.length = Math.max(target.length, key);
  3513. target.splice(key, 1, val);
  3514. return val
  3515. }
  3516. if (key in target && !(key in Object.prototype)) {
  3517. target[key] = val;
  3518. return val
  3519. }
  3520. var ob = (target).__ob__;
  3521. if (target._isVue || (ob && ob.vmCount)) {
  3522. true && warn(
  3523. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  3524. 'at runtime - declare it upfront in the data option.'
  3525. );
  3526. return val
  3527. }
  3528. if (!ob) {
  3529. target[key] = val;
  3530. return val
  3531. }
  3532. defineReactive$$1(ob.value, key, val);
  3533. ob.dep.notify();
  3534. return val
  3535. }
  3536. /**
  3537. * Delete a property and trigger change if necessary.
  3538. */
  3539. function del (target, key) {
  3540. if ( true &&
  3541. (isUndef(target) || isPrimitive(target))
  3542. ) {
  3543. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  3544. }
  3545. if (Array.isArray(target) && isValidArrayIndex(key)) {
  3546. target.splice(key, 1);
  3547. return
  3548. }
  3549. var ob = (target).__ob__;
  3550. if (target._isVue || (ob && ob.vmCount)) {
  3551. true && warn(
  3552. 'Avoid deleting properties on a Vue instance or its root $data ' +
  3553. '- just set it to null.'
  3554. );
  3555. return
  3556. }
  3557. if (!hasOwn(target, key)) {
  3558. return
  3559. }
  3560. delete target[key];
  3561. if (!ob) {
  3562. return
  3563. }
  3564. ob.dep.notify();
  3565. }
  3566. /**
  3567. * Collect dependencies on array elements when the array is touched, since
  3568. * we cannot intercept array element access like property getters.
  3569. */
  3570. function dependArray (value) {
  3571. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  3572. e = value[i];
  3573. e && e.__ob__ && e.__ob__.dep.depend();
  3574. if (Array.isArray(e)) {
  3575. dependArray(e);
  3576. }
  3577. }
  3578. }
  3579. /* */
  3580. /**
  3581. * Option overwriting strategies are functions that handle
  3582. * how to merge a parent option value and a child option
  3583. * value into the final value.
  3584. */
  3585. var strats = config.optionMergeStrategies;
  3586. /**
  3587. * Options with restrictions
  3588. */
  3589. if (true) {
  3590. strats.el = strats.propsData = function (parent, child, vm, key) {
  3591. if (!vm) {
  3592. warn(
  3593. "option \"" + key + "\" can only be used during instance " +
  3594. 'creation with the `new` keyword.'
  3595. );
  3596. }
  3597. return defaultStrat(parent, child)
  3598. };
  3599. }
  3600. /**
  3601. * Helper that recursively merges two data objects together.
  3602. */
  3603. function mergeData (to, from) {
  3604. if (!from) { return to }
  3605. var key, toVal, fromVal;
  3606. var keys = hasSymbol
  3607. ? Reflect.ownKeys(from)
  3608. : Object.keys(from);
  3609. for (var i = 0; i < keys.length; i++) {
  3610. key = keys[i];
  3611. // in case the object is already observed...
  3612. if (key === '__ob__') { continue }
  3613. toVal = to[key];
  3614. fromVal = from[key];
  3615. if (!hasOwn(to, key)) {
  3616. set(to, key, fromVal);
  3617. } else if (
  3618. toVal !== fromVal &&
  3619. isPlainObject(toVal) &&
  3620. isPlainObject(fromVal)
  3621. ) {
  3622. mergeData(toVal, fromVal);
  3623. }
  3624. }
  3625. return to
  3626. }
  3627. /**
  3628. * Data
  3629. */
  3630. function mergeDataOrFn (
  3631. parentVal,
  3632. childVal,
  3633. vm
  3634. ) {
  3635. if (!vm) {
  3636. // in a Vue.extend merge, both should be functions
  3637. if (!childVal) {
  3638. return parentVal
  3639. }
  3640. if (!parentVal) {
  3641. return childVal
  3642. }
  3643. // when parentVal & childVal are both present,
  3644. // we need to return a function that returns the
  3645. // merged result of both functions... no need to
  3646. // check if parentVal is a function here because
  3647. // it has to be a function to pass previous merges.
  3648. return function mergedDataFn () {
  3649. return mergeData(
  3650. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  3651. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  3652. )
  3653. }
  3654. } else {
  3655. return function mergedInstanceDataFn () {
  3656. // instance merge
  3657. var instanceData = typeof childVal === 'function'
  3658. ? childVal.call(vm, vm)
  3659. : childVal;
  3660. var defaultData = typeof parentVal === 'function'
  3661. ? parentVal.call(vm, vm)
  3662. : parentVal;
  3663. if (instanceData) {
  3664. return mergeData(instanceData, defaultData)
  3665. } else {
  3666. return defaultData
  3667. }
  3668. }
  3669. }
  3670. }
  3671. strats.data = function (
  3672. parentVal,
  3673. childVal,
  3674. vm
  3675. ) {
  3676. if (!vm) {
  3677. if (childVal && typeof childVal !== 'function') {
  3678. true && warn(
  3679. 'The "data" option should be a function ' +
  3680. 'that returns a per-instance value in component ' +
  3681. 'definitions.',
  3682. vm
  3683. );
  3684. return parentVal
  3685. }
  3686. return mergeDataOrFn(parentVal, childVal)
  3687. }
  3688. return mergeDataOrFn(parentVal, childVal, vm)
  3689. };
  3690. /**
  3691. * Hooks and props are merged as arrays.
  3692. */
  3693. function mergeHook (
  3694. parentVal,
  3695. childVal
  3696. ) {
  3697. var res = childVal
  3698. ? parentVal
  3699. ? parentVal.concat(childVal)
  3700. : Array.isArray(childVal)
  3701. ? childVal
  3702. : [childVal]
  3703. : parentVal;
  3704. return res
  3705. ? dedupeHooks(res)
  3706. : res
  3707. }
  3708. function dedupeHooks (hooks) {
  3709. var res = [];
  3710. for (var i = 0; i < hooks.length; i++) {
  3711. if (res.indexOf(hooks[i]) === -1) {
  3712. res.push(hooks[i]);
  3713. }
  3714. }
  3715. return res
  3716. }
  3717. LIFECYCLE_HOOKS.forEach(function (hook) {
  3718. strats[hook] = mergeHook;
  3719. });
  3720. /**
  3721. * Assets
  3722. *
  3723. * When a vm is present (instance creation), we need to do
  3724. * a three-way merge between constructor options, instance
  3725. * options and parent options.
  3726. */
  3727. function mergeAssets (
  3728. parentVal,
  3729. childVal,
  3730. vm,
  3731. key
  3732. ) {
  3733. var res = Object.create(parentVal || null);
  3734. if (childVal) {
  3735. true && assertObjectType(key, childVal, vm);
  3736. return extend(res, childVal)
  3737. } else {
  3738. return res
  3739. }
  3740. }
  3741. ASSET_TYPES.forEach(function (type) {
  3742. strats[type + 's'] = mergeAssets;
  3743. });
  3744. /**
  3745. * Watchers.
  3746. *
  3747. * Watchers hashes should not overwrite one
  3748. * another, so we merge them as arrays.
  3749. */
  3750. strats.watch = function (
  3751. parentVal,
  3752. childVal,
  3753. vm,
  3754. key
  3755. ) {
  3756. // work around Firefox's Object.prototype.watch...
  3757. if (parentVal === nativeWatch) { parentVal = undefined; }
  3758. if (childVal === nativeWatch) { childVal = undefined; }
  3759. /* istanbul ignore if */
  3760. if (!childVal) { return Object.create(parentVal || null) }
  3761. if (true) {
  3762. assertObjectType(key, childVal, vm);
  3763. }
  3764. if (!parentVal) { return childVal }
  3765. var ret = {};
  3766. extend(ret, parentVal);
  3767. for (var key$1 in childVal) {
  3768. var parent = ret[key$1];
  3769. var child = childVal[key$1];
  3770. if (parent && !Array.isArray(parent)) {
  3771. parent = [parent];
  3772. }
  3773. ret[key$1] = parent
  3774. ? parent.concat(child)
  3775. : Array.isArray(child) ? child : [child];
  3776. }
  3777. return ret
  3778. };
  3779. /**
  3780. * Other object hashes.
  3781. */
  3782. strats.props =
  3783. strats.methods =
  3784. strats.inject =
  3785. strats.computed = function (
  3786. parentVal,
  3787. childVal,
  3788. vm,
  3789. key
  3790. ) {
  3791. if (childVal && "development" !== 'production') {
  3792. assertObjectType(key, childVal, vm);
  3793. }
  3794. if (!parentVal) { return childVal }
  3795. var ret = Object.create(null);
  3796. extend(ret, parentVal);
  3797. if (childVal) { extend(ret, childVal); }
  3798. return ret
  3799. };
  3800. strats.provide = mergeDataOrFn;
  3801. /**
  3802. * Default strategy.
  3803. */
  3804. var defaultStrat = function (parentVal, childVal) {
  3805. return childVal === undefined
  3806. ? parentVal
  3807. : childVal
  3808. };
  3809. /**
  3810. * Validate component names
  3811. */
  3812. function checkComponents (options) {
  3813. for (var key in options.components) {
  3814. validateComponentName(key);
  3815. }
  3816. }
  3817. function validateComponentName (name) {
  3818. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  3819. warn(
  3820. 'Invalid component name: "' + name + '". Component names ' +
  3821. 'should conform to valid custom element name in html5 specification.'
  3822. );
  3823. }
  3824. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  3825. warn(
  3826. 'Do not use built-in or reserved HTML elements as component ' +
  3827. 'id: ' + name
  3828. );
  3829. }
  3830. }
  3831. /**
  3832. * Ensure all props option syntax are normalized into the
  3833. * Object-based format.
  3834. */
  3835. function normalizeProps (options, vm) {
  3836. var props = options.props;
  3837. if (!props) { return }
  3838. var res = {};
  3839. var i, val, name;
  3840. if (Array.isArray(props)) {
  3841. i = props.length;
  3842. while (i--) {
  3843. val = props[i];
  3844. if (typeof val === 'string') {
  3845. name = camelize(val);
  3846. res[name] = { type: null };
  3847. } else if (true) {
  3848. warn('props must be strings when using array syntax.');
  3849. }
  3850. }
  3851. } else if (isPlainObject(props)) {
  3852. for (var key in props) {
  3853. val = props[key];
  3854. name = camelize(key);
  3855. res[name] = isPlainObject(val)
  3856. ? val
  3857. : { type: val };
  3858. }
  3859. } else if (true) {
  3860. warn(
  3861. "Invalid value for option \"props\": expected an Array or an Object, " +
  3862. "but got " + (toRawType(props)) + ".",
  3863. vm
  3864. );
  3865. }
  3866. options.props = res;
  3867. }
  3868. /**
  3869. * Normalize all injections into Object-based format
  3870. */
  3871. function normalizeInject (options, vm) {
  3872. var inject = options.inject;
  3873. if (!inject) { return }
  3874. var normalized = options.inject = {};
  3875. if (Array.isArray(inject)) {
  3876. for (var i = 0; i < inject.length; i++) {
  3877. normalized[inject[i]] = { from: inject[i] };
  3878. }
  3879. } else if (isPlainObject(inject)) {
  3880. for (var key in inject) {
  3881. var val = inject[key];
  3882. normalized[key] = isPlainObject(val)
  3883. ? extend({ from: key }, val)
  3884. : { from: val };
  3885. }
  3886. } else if (true) {
  3887. warn(
  3888. "Invalid value for option \"inject\": expected an Array or an Object, " +
  3889. "but got " + (toRawType(inject)) + ".",
  3890. vm
  3891. );
  3892. }
  3893. }
  3894. /**
  3895. * Normalize raw function directives into object format.
  3896. */
  3897. function normalizeDirectives (options) {
  3898. var dirs = options.directives;
  3899. if (dirs) {
  3900. for (var key in dirs) {
  3901. var def$$1 = dirs[key];
  3902. if (typeof def$$1 === 'function') {
  3903. dirs[key] = { bind: def$$1, update: def$$1 };
  3904. }
  3905. }
  3906. }
  3907. }
  3908. function assertObjectType (name, value, vm) {
  3909. if (!isPlainObject(value)) {
  3910. warn(
  3911. "Invalid value for option \"" + name + "\": expected an Object, " +
  3912. "but got " + (toRawType(value)) + ".",
  3913. vm
  3914. );
  3915. }
  3916. }
  3917. /**
  3918. * Merge two option objects into a new one.
  3919. * Core utility used in both instantiation and inheritance.
  3920. */
  3921. function mergeOptions (
  3922. parent,
  3923. child,
  3924. vm
  3925. ) {
  3926. if (true) {
  3927. checkComponents(child);
  3928. }
  3929. if (typeof child === 'function') {
  3930. child = child.options;
  3931. }
  3932. normalizeProps(child, vm);
  3933. normalizeInject(child, vm);
  3934. normalizeDirectives(child);
  3935. // Apply extends and mixins on the child options,
  3936. // but only if it is a raw options object that isn't
  3937. // the result of another mergeOptions call.
  3938. // Only merged options has the _base property.
  3939. if (!child._base) {
  3940. if (child.extends) {
  3941. parent = mergeOptions(parent, child.extends, vm);
  3942. }
  3943. if (child.mixins) {
  3944. for (var i = 0, l = child.mixins.length; i < l; i++) {
  3945. parent = mergeOptions(parent, child.mixins[i], vm);
  3946. }
  3947. }
  3948. }
  3949. var options = {};
  3950. var key;
  3951. for (key in parent) {
  3952. mergeField(key);
  3953. }
  3954. for (key in child) {
  3955. if (!hasOwn(parent, key)) {
  3956. mergeField(key);
  3957. }
  3958. }
  3959. function mergeField (key) {
  3960. var strat = strats[key] || defaultStrat;
  3961. options[key] = strat(parent[key], child[key], vm, key);
  3962. }
  3963. return options
  3964. }
  3965. /**
  3966. * Resolve an asset.
  3967. * This function is used because child instances need access
  3968. * to assets defined in its ancestor chain.
  3969. */
  3970. function resolveAsset (
  3971. options,
  3972. type,
  3973. id,
  3974. warnMissing
  3975. ) {
  3976. /* istanbul ignore if */
  3977. if (typeof id !== 'string') {
  3978. return
  3979. }
  3980. var assets = options[type];
  3981. // check local registration variations first
  3982. if (hasOwn(assets, id)) { return assets[id] }
  3983. var camelizedId = camelize(id);
  3984. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  3985. var PascalCaseId = capitalize(camelizedId);
  3986. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  3987. // fallback to prototype chain
  3988. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  3989. if ( true && warnMissing && !res) {
  3990. warn(
  3991. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  3992. options
  3993. );
  3994. }
  3995. return res
  3996. }
  3997. /* */
  3998. function validateProp (
  3999. key,
  4000. propOptions,
  4001. propsData,
  4002. vm
  4003. ) {
  4004. var prop = propOptions[key];
  4005. var absent = !hasOwn(propsData, key);
  4006. var value = propsData[key];
  4007. // boolean casting
  4008. var booleanIndex = getTypeIndex(Boolean, prop.type);
  4009. if (booleanIndex > -1) {
  4010. if (absent && !hasOwn(prop, 'default')) {
  4011. value = false;
  4012. } else if (value === '' || value === hyphenate(key)) {
  4013. // only cast empty string / same name to boolean if
  4014. // boolean has higher priority
  4015. var stringIndex = getTypeIndex(String, prop.type);
  4016. if (stringIndex < 0 || booleanIndex < stringIndex) {
  4017. value = true;
  4018. }
  4019. }
  4020. }
  4021. // check default value
  4022. if (value === undefined) {
  4023. value = getPropDefaultValue(vm, prop, key);
  4024. // since the default value is a fresh copy,
  4025. // make sure to observe it.
  4026. var prevShouldObserve = shouldObserve;
  4027. toggleObserving(true);
  4028. observe(value);
  4029. toggleObserving(prevShouldObserve);
  4030. }
  4031. if (
  4032. true
  4033. ) {
  4034. assertProp(prop, key, value, vm, absent);
  4035. }
  4036. return value
  4037. }
  4038. /**
  4039. * Get the default value of a prop.
  4040. */
  4041. function getPropDefaultValue (vm, prop, key) {
  4042. // no default, return undefined
  4043. if (!hasOwn(prop, 'default')) {
  4044. return undefined
  4045. }
  4046. var def = prop.default;
  4047. // warn against non-factory defaults for Object & Array
  4048. if ( true && isObject(def)) {
  4049. warn(
  4050. 'Invalid default value for prop "' + key + '": ' +
  4051. 'Props with type Object/Array must use a factory function ' +
  4052. 'to return the default value.',
  4053. vm
  4054. );
  4055. }
  4056. // the raw prop value was also undefined from previous render,
  4057. // return previous default value to avoid unnecessary watcher trigger
  4058. if (vm && vm.$options.propsData &&
  4059. vm.$options.propsData[key] === undefined &&
  4060. vm._props[key] !== undefined
  4061. ) {
  4062. return vm._props[key]
  4063. }
  4064. // call factory function for non-Function types
  4065. // a value is Function if its prototype is function even across different execution context
  4066. return typeof def === 'function' && getType(prop.type) !== 'Function'
  4067. ? def.call(vm)
  4068. : def
  4069. }
  4070. /**
  4071. * Assert whether a prop is valid.
  4072. */
  4073. function assertProp (
  4074. prop,
  4075. name,
  4076. value,
  4077. vm,
  4078. absent
  4079. ) {
  4080. if (prop.required && absent) {
  4081. warn(
  4082. 'Missing required prop: "' + name + '"',
  4083. vm
  4084. );
  4085. return
  4086. }
  4087. if (value == null && !prop.required) {
  4088. return
  4089. }
  4090. var type = prop.type;
  4091. var valid = !type || type === true;
  4092. var expectedTypes = [];
  4093. if (type) {
  4094. if (!Array.isArray(type)) {
  4095. type = [type];
  4096. }
  4097. for (var i = 0; i < type.length && !valid; i++) {
  4098. var assertedType = assertType(value, type[i]);
  4099. expectedTypes.push(assertedType.expectedType || '');
  4100. valid = assertedType.valid;
  4101. }
  4102. }
  4103. if (!valid) {
  4104. warn(
  4105. getInvalidTypeMessage(name, value, expectedTypes),
  4106. vm
  4107. );
  4108. return
  4109. }
  4110. var validator = prop.validator;
  4111. if (validator) {
  4112. if (!validator(value)) {
  4113. warn(
  4114. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  4115. vm
  4116. );
  4117. }
  4118. }
  4119. }
  4120. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  4121. function assertType (value, type) {
  4122. var valid;
  4123. var expectedType = getType(type);
  4124. if (simpleCheckRE.test(expectedType)) {
  4125. var t = typeof value;
  4126. valid = t === expectedType.toLowerCase();
  4127. // for primitive wrapper objects
  4128. if (!valid && t === 'object') {
  4129. valid = value instanceof type;
  4130. }
  4131. } else if (expectedType === 'Object') {
  4132. valid = isPlainObject(value);
  4133. } else if (expectedType === 'Array') {
  4134. valid = Array.isArray(value);
  4135. } else {
  4136. valid = value instanceof type;
  4137. }
  4138. return {
  4139. valid: valid,
  4140. expectedType: expectedType
  4141. }
  4142. }
  4143. /**
  4144. * Use function string name to check built-in types,
  4145. * because a simple equality check will fail when running
  4146. * across different vms / iframes.
  4147. */
  4148. function getType (fn) {
  4149. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  4150. return match ? match[1] : ''
  4151. }
  4152. function isSameType (a, b) {
  4153. return getType(a) === getType(b)
  4154. }
  4155. function getTypeIndex (type, expectedTypes) {
  4156. if (!Array.isArray(expectedTypes)) {
  4157. return isSameType(expectedTypes, type) ? 0 : -1
  4158. }
  4159. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  4160. if (isSameType(expectedTypes[i], type)) {
  4161. return i
  4162. }
  4163. }
  4164. return -1
  4165. }
  4166. function getInvalidTypeMessage (name, value, expectedTypes) {
  4167. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  4168. " Expected " + (expectedTypes.map(capitalize).join(', '));
  4169. var expectedType = expectedTypes[0];
  4170. var receivedType = toRawType(value);
  4171. var expectedValue = styleValue(value, expectedType);
  4172. var receivedValue = styleValue(value, receivedType);
  4173. // check if we need to specify expected value
  4174. if (expectedTypes.length === 1 &&
  4175. isExplicable(expectedType) &&
  4176. !isBoolean(expectedType, receivedType)) {
  4177. message += " with value " + expectedValue;
  4178. }
  4179. message += ", got " + receivedType + " ";
  4180. // check if we need to specify received value
  4181. if (isExplicable(receivedType)) {
  4182. message += "with value " + receivedValue + ".";
  4183. }
  4184. return message
  4185. }
  4186. function styleValue (value, type) {
  4187. if (type === 'String') {
  4188. return ("\"" + value + "\"")
  4189. } else if (type === 'Number') {
  4190. return ("" + (Number(value)))
  4191. } else {
  4192. return ("" + value)
  4193. }
  4194. }
  4195. function isExplicable (value) {
  4196. var explicitTypes = ['string', 'number', 'boolean'];
  4197. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  4198. }
  4199. function isBoolean () {
  4200. var args = [], len = arguments.length;
  4201. while ( len-- ) args[ len ] = arguments[ len ];
  4202. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  4203. }
  4204. /* */
  4205. function handleError (err, vm, info) {
  4206. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  4207. // See: https://github.com/vuejs/vuex/issues/1505
  4208. pushTarget();
  4209. try {
  4210. if (vm) {
  4211. var cur = vm;
  4212. while ((cur = cur.$parent)) {
  4213. var hooks = cur.$options.errorCaptured;
  4214. if (hooks) {
  4215. for (var i = 0; i < hooks.length; i++) {
  4216. try {
  4217. var capture = hooks[i].call(cur, err, vm, info) === false;
  4218. if (capture) { return }
  4219. } catch (e) {
  4220. globalHandleError(e, cur, 'errorCaptured hook');
  4221. }
  4222. }
  4223. }
  4224. }
  4225. }
  4226. globalHandleError(err, vm, info);
  4227. } finally {
  4228. popTarget();
  4229. }
  4230. }
  4231. function invokeWithErrorHandling (
  4232. handler,
  4233. context,
  4234. args,
  4235. vm,
  4236. info
  4237. ) {
  4238. var res;
  4239. try {
  4240. res = args ? handler.apply(context, args) : handler.call(context);
  4241. if (res && !res._isVue && isPromise(res) && !res._handled) {
  4242. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  4243. // issue #9511
  4244. // avoid catch triggering multiple times when nested calls
  4245. res._handled = true;
  4246. }
  4247. } catch (e) {
  4248. handleError(e, vm, info);
  4249. }
  4250. return res
  4251. }
  4252. function globalHandleError (err, vm, info) {
  4253. if (config.errorHandler) {
  4254. try {
  4255. return config.errorHandler.call(null, err, vm, info)
  4256. } catch (e) {
  4257. // if the user intentionally throws the original error in the handler,
  4258. // do not log it twice
  4259. if (e !== err) {
  4260. logError(e, null, 'config.errorHandler');
  4261. }
  4262. }
  4263. }
  4264. logError(err, vm, info);
  4265. }
  4266. function logError (err, vm, info) {
  4267. if (true) {
  4268. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  4269. }
  4270. /* istanbul ignore else */
  4271. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  4272. console.error(err);
  4273. } else {
  4274. throw err
  4275. }
  4276. }
  4277. /* */
  4278. var callbacks = [];
  4279. var pending = false;
  4280. function flushCallbacks () {
  4281. pending = false;
  4282. var copies = callbacks.slice(0);
  4283. callbacks.length = 0;
  4284. for (var i = 0; i < copies.length; i++) {
  4285. copies[i]();
  4286. }
  4287. }
  4288. // Here we have async deferring wrappers using microtasks.
  4289. // In 2.5 we used (macro) tasks (in combination with microtasks).
  4290. // However, it has subtle problems when state is changed right before repaint
  4291. // (e.g. #6813, out-in transitions).
  4292. // Also, using (macro) tasks in event handler would cause some weird behaviors
  4293. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  4294. // So we now use microtasks everywhere, again.
  4295. // A major drawback of this tradeoff is that there are some scenarios
  4296. // where microtasks have too high a priority and fire in between supposedly
  4297. // sequential events (e.g. #4521, #6690, which have workarounds)
  4298. // or even between bubbling of the same event (#6566).
  4299. var timerFunc;
  4300. // The nextTick behavior leverages the microtask queue, which can be accessed
  4301. // via either native Promise.then or MutationObserver.
  4302. // MutationObserver has wider support, however it is seriously bugged in
  4303. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  4304. // completely stops working after triggering a few times... so, if native
  4305. // Promise is available, we will use it:
  4306. /* istanbul ignore next, $flow-disable-line */
  4307. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  4308. var p = Promise.resolve();
  4309. timerFunc = function () {
  4310. p.then(flushCallbacks);
  4311. // In problematic UIWebViews, Promise.then doesn't completely break, but
  4312. // it can get stuck in a weird state where callbacks are pushed into the
  4313. // microtask queue but the queue isn't being flushed, until the browser
  4314. // needs to do some other work, e.g. handle a timer. Therefore we can
  4315. // "force" the microtask queue to be flushed by adding an empty timer.
  4316. if (isIOS) { setTimeout(noop); }
  4317. };
  4318. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  4319. isNative(MutationObserver) ||
  4320. // PhantomJS and iOS 7.x
  4321. MutationObserver.toString() === '[object MutationObserverConstructor]'
  4322. )) {
  4323. // Use MutationObserver where native Promise is not available,
  4324. // e.g. PhantomJS, iOS7, Android 4.4
  4325. // (#6466 MutationObserver is unreliable in IE11)
  4326. var counter = 1;
  4327. var observer = new MutationObserver(flushCallbacks);
  4328. var textNode = document.createTextNode(String(counter));
  4329. observer.observe(textNode, {
  4330. characterData: true
  4331. });
  4332. timerFunc = function () {
  4333. counter = (counter + 1) % 2;
  4334. textNode.data = String(counter);
  4335. };
  4336. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  4337. // Fallback to setImmediate.
  4338. // Technically it leverages the (macro) task queue,
  4339. // but it is still a better choice than setTimeout.
  4340. timerFunc = function () {
  4341. setImmediate(flushCallbacks);
  4342. };
  4343. } else {
  4344. // Fallback to setTimeout.
  4345. timerFunc = function () {
  4346. setTimeout(flushCallbacks, 0);
  4347. };
  4348. }
  4349. function nextTick (cb, ctx) {
  4350. var _resolve;
  4351. callbacks.push(function () {
  4352. if (cb) {
  4353. try {
  4354. cb.call(ctx);
  4355. } catch (e) {
  4356. handleError(e, ctx, 'nextTick');
  4357. }
  4358. } else if (_resolve) {
  4359. _resolve(ctx);
  4360. }
  4361. });
  4362. if (!pending) {
  4363. pending = true;
  4364. timerFunc();
  4365. }
  4366. // $flow-disable-line
  4367. if (!cb && typeof Promise !== 'undefined') {
  4368. return new Promise(function (resolve) {
  4369. _resolve = resolve;
  4370. })
  4371. }
  4372. }
  4373. /* */
  4374. /* not type checking this file because flow doesn't play well with Proxy */
  4375. var initProxy;
  4376. if (true) {
  4377. var allowedGlobals = makeMap(
  4378. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  4379. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  4380. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  4381. 'require' // for Webpack/Browserify
  4382. );
  4383. var warnNonPresent = function (target, key) {
  4384. warn(
  4385. "Property or method \"" + key + "\" is not defined on the instance but " +
  4386. 'referenced during render. Make sure that this property is reactive, ' +
  4387. 'either in the data option, or for class-based components, by ' +
  4388. 'initializing the property. ' +
  4389. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  4390. target
  4391. );
  4392. };
  4393. var warnReservedPrefix = function (target, key) {
  4394. warn(
  4395. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  4396. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  4397. 'prevent conflicts with Vue internals. ' +
  4398. 'See: https://vuejs.org/v2/api/#data',
  4399. target
  4400. );
  4401. };
  4402. var hasProxy =
  4403. typeof Proxy !== 'undefined' && isNative(Proxy);
  4404. if (hasProxy) {
  4405. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  4406. config.keyCodes = new Proxy(config.keyCodes, {
  4407. set: function set (target, key, value) {
  4408. if (isBuiltInModifier(key)) {
  4409. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  4410. return false
  4411. } else {
  4412. target[key] = value;
  4413. return true
  4414. }
  4415. }
  4416. });
  4417. }
  4418. var hasHandler = {
  4419. has: function has (target, key) {
  4420. var has = key in target;
  4421. var isAllowed = allowedGlobals(key) ||
  4422. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  4423. if (!has && !isAllowed) {
  4424. if (key in target.$data) { warnReservedPrefix(target, key); }
  4425. else { warnNonPresent(target, key); }
  4426. }
  4427. return has || !isAllowed
  4428. }
  4429. };
  4430. var getHandler = {
  4431. get: function get (target, key) {
  4432. if (typeof key === 'string' && !(key in target)) {
  4433. if (key in target.$data) { warnReservedPrefix(target, key); }
  4434. else { warnNonPresent(target, key); }
  4435. }
  4436. return target[key]
  4437. }
  4438. };
  4439. initProxy = function initProxy (vm) {
  4440. if (hasProxy) {
  4441. // determine which proxy handler to use
  4442. var options = vm.$options;
  4443. var handlers = options.render && options.render._withStripped
  4444. ? getHandler
  4445. : hasHandler;
  4446. vm._renderProxy = new Proxy(vm, handlers);
  4447. } else {
  4448. vm._renderProxy = vm;
  4449. }
  4450. };
  4451. }
  4452. /* */
  4453. var seenObjects = new _Set();
  4454. /**
  4455. * Recursively traverse an object to evoke all converted
  4456. * getters, so that every nested property inside the object
  4457. * is collected as a "deep" dependency.
  4458. */
  4459. function traverse (val) {
  4460. _traverse(val, seenObjects);
  4461. seenObjects.clear();
  4462. }
  4463. function _traverse (val, seen) {
  4464. var i, keys;
  4465. var isA = Array.isArray(val);
  4466. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  4467. return
  4468. }
  4469. if (val.__ob__) {
  4470. var depId = val.__ob__.dep.id;
  4471. if (seen.has(depId)) {
  4472. return
  4473. }
  4474. seen.add(depId);
  4475. }
  4476. if (isA) {
  4477. i = val.length;
  4478. while (i--) { _traverse(val[i], seen); }
  4479. } else {
  4480. keys = Object.keys(val);
  4481. i = keys.length;
  4482. while (i--) { _traverse(val[keys[i]], seen); }
  4483. }
  4484. }
  4485. var mark;
  4486. var measure;
  4487. if (true) {
  4488. var perf = inBrowser && window.performance;
  4489. /* istanbul ignore if */
  4490. if (
  4491. perf &&
  4492. perf.mark &&
  4493. perf.measure &&
  4494. perf.clearMarks &&
  4495. perf.clearMeasures
  4496. ) {
  4497. mark = function (tag) { return perf.mark(tag); };
  4498. measure = function (name, startTag, endTag) {
  4499. perf.measure(name, startTag, endTag);
  4500. perf.clearMarks(startTag);
  4501. perf.clearMarks(endTag);
  4502. // perf.clearMeasures(name)
  4503. };
  4504. }
  4505. }
  4506. /* */
  4507. var normalizeEvent = cached(function (name) {
  4508. var passive = name.charAt(0) === '&';
  4509. name = passive ? name.slice(1) : name;
  4510. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  4511. name = once$$1 ? name.slice(1) : name;
  4512. var capture = name.charAt(0) === '!';
  4513. name = capture ? name.slice(1) : name;
  4514. return {
  4515. name: name,
  4516. once: once$$1,
  4517. capture: capture,
  4518. passive: passive
  4519. }
  4520. });
  4521. function createFnInvoker (fns, vm) {
  4522. function invoker () {
  4523. var arguments$1 = arguments;
  4524. var fns = invoker.fns;
  4525. if (Array.isArray(fns)) {
  4526. var cloned = fns.slice();
  4527. for (var i = 0; i < cloned.length; i++) {
  4528. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  4529. }
  4530. } else {
  4531. // return handler return value for single handlers
  4532. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  4533. }
  4534. }
  4535. invoker.fns = fns;
  4536. return invoker
  4537. }
  4538. function updateListeners (
  4539. on,
  4540. oldOn,
  4541. add,
  4542. remove$$1,
  4543. createOnceHandler,
  4544. vm
  4545. ) {
  4546. var name, def$$1, cur, old, event;
  4547. for (name in on) {
  4548. def$$1 = cur = on[name];
  4549. old = oldOn[name];
  4550. event = normalizeEvent(name);
  4551. if (isUndef(cur)) {
  4552. true && warn(
  4553. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  4554. vm
  4555. );
  4556. } else if (isUndef(old)) {
  4557. if (isUndef(cur.fns)) {
  4558. cur = on[name] = createFnInvoker(cur, vm);
  4559. }
  4560. if (isTrue(event.once)) {
  4561. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  4562. }
  4563. add(event.name, cur, event.capture, event.passive, event.params);
  4564. } else if (cur !== old) {
  4565. old.fns = cur;
  4566. on[name] = old;
  4567. }
  4568. }
  4569. for (name in oldOn) {
  4570. if (isUndef(on[name])) {
  4571. event = normalizeEvent(name);
  4572. remove$$1(event.name, oldOn[name], event.capture);
  4573. }
  4574. }
  4575. }
  4576. /* */
  4577. /* */
  4578. // fixed by xxxxxx (mp properties)
  4579. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  4580. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  4581. if (isUndef(propOptions)) {
  4582. return res
  4583. }
  4584. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  4585. var attrs = data.attrs;
  4586. var props = data.props;
  4587. if (isDef(attrs) || isDef(props)) {
  4588. for (var key in propOptions) {
  4589. var altKey = hyphenate(key);
  4590. var result = checkProp(res, props, key, altKey, true) ||
  4591. checkProp(res, attrs, key, altKey, false);
  4592. // externalClass
  4593. if (
  4594. result &&
  4595. res[key] &&
  4596. externalClasses.indexOf(altKey) !== -1 &&
  4597. context[camelize(res[key])]
  4598. ) {
  4599. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  4600. res[key] = context[camelize(res[key])];
  4601. }
  4602. }
  4603. }
  4604. return res
  4605. }
  4606. function extractPropsFromVNodeData (
  4607. data,
  4608. Ctor,
  4609. tag,
  4610. context// fixed by xxxxxx
  4611. ) {
  4612. // we are only extracting raw values here.
  4613. // validation and default values are handled in the child
  4614. // component itself.
  4615. var propOptions = Ctor.options.props;
  4616. if (isUndef(propOptions)) {
  4617. // fixed by xxxxxx
  4618. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  4619. }
  4620. var res = {};
  4621. var attrs = data.attrs;
  4622. var props = data.props;
  4623. if (isDef(attrs) || isDef(props)) {
  4624. for (var key in propOptions) {
  4625. var altKey = hyphenate(key);
  4626. if (true) {
  4627. var keyInLowerCase = key.toLowerCase();
  4628. if (
  4629. key !== keyInLowerCase &&
  4630. attrs && hasOwn(attrs, keyInLowerCase)
  4631. ) {
  4632. tip(
  4633. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  4634. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  4635. " \"" + key + "\". " +
  4636. "Note that HTML attributes are case-insensitive and camelCased " +
  4637. "props need to use their kebab-case equivalents when using in-DOM " +
  4638. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  4639. );
  4640. }
  4641. }
  4642. checkProp(res, props, key, altKey, true) ||
  4643. checkProp(res, attrs, key, altKey, false);
  4644. }
  4645. }
  4646. // fixed by xxxxxx
  4647. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  4648. }
  4649. function checkProp (
  4650. res,
  4651. hash,
  4652. key,
  4653. altKey,
  4654. preserve
  4655. ) {
  4656. if (isDef(hash)) {
  4657. if (hasOwn(hash, key)) {
  4658. res[key] = hash[key];
  4659. if (!preserve) {
  4660. delete hash[key];
  4661. }
  4662. return true
  4663. } else if (hasOwn(hash, altKey)) {
  4664. res[key] = hash[altKey];
  4665. if (!preserve) {
  4666. delete hash[altKey];
  4667. }
  4668. return true
  4669. }
  4670. }
  4671. return false
  4672. }
  4673. /* */
  4674. // The template compiler attempts to minimize the need for normalization by
  4675. // statically analyzing the template at compile time.
  4676. //
  4677. // For plain HTML markup, normalization can be completely skipped because the
  4678. // generated render function is guaranteed to return Array<VNode>. There are
  4679. // two cases where extra normalization is needed:
  4680. // 1. When the children contains components - because a functional component
  4681. // may return an Array instead of a single root. In this case, just a simple
  4682. // normalization is needed - if any child is an Array, we flatten the whole
  4683. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  4684. // because functional components already normalize their own children.
  4685. function simpleNormalizeChildren (children) {
  4686. for (var i = 0; i < children.length; i++) {
  4687. if (Array.isArray(children[i])) {
  4688. return Array.prototype.concat.apply([], children)
  4689. }
  4690. }
  4691. return children
  4692. }
  4693. // 2. When the children contains constructs that always generated nested Arrays,
  4694. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  4695. // with hand-written render functions / JSX. In such cases a full normalization
  4696. // is needed to cater to all possible types of children values.
  4697. function normalizeChildren (children) {
  4698. return isPrimitive(children)
  4699. ? [createTextVNode(children)]
  4700. : Array.isArray(children)
  4701. ? normalizeArrayChildren(children)
  4702. : undefined
  4703. }
  4704. function isTextNode (node) {
  4705. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  4706. }
  4707. function normalizeArrayChildren (children, nestedIndex) {
  4708. var res = [];
  4709. var i, c, lastIndex, last;
  4710. for (i = 0; i < children.length; i++) {
  4711. c = children[i];
  4712. if (isUndef(c) || typeof c === 'boolean') { continue }
  4713. lastIndex = res.length - 1;
  4714. last = res[lastIndex];
  4715. // nested
  4716. if (Array.isArray(c)) {
  4717. if (c.length > 0) {
  4718. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  4719. // merge adjacent text nodes
  4720. if (isTextNode(c[0]) && isTextNode(last)) {
  4721. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  4722. c.shift();
  4723. }
  4724. res.push.apply(res, c);
  4725. }
  4726. } else if (isPrimitive(c)) {
  4727. if (isTextNode(last)) {
  4728. // merge adjacent text nodes
  4729. // this is necessary for SSR hydration because text nodes are
  4730. // essentially merged when rendered to HTML strings
  4731. res[lastIndex] = createTextVNode(last.text + c);
  4732. } else if (c !== '') {
  4733. // convert primitive to vnode
  4734. res.push(createTextVNode(c));
  4735. }
  4736. } else {
  4737. if (isTextNode(c) && isTextNode(last)) {
  4738. // merge adjacent text nodes
  4739. res[lastIndex] = createTextVNode(last.text + c.text);
  4740. } else {
  4741. // default key for nested array children (likely generated by v-for)
  4742. if (isTrue(children._isVList) &&
  4743. isDef(c.tag) &&
  4744. isUndef(c.key) &&
  4745. isDef(nestedIndex)) {
  4746. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  4747. }
  4748. res.push(c);
  4749. }
  4750. }
  4751. }
  4752. return res
  4753. }
  4754. /* */
  4755. function initProvide (vm) {
  4756. var provide = vm.$options.provide;
  4757. if (provide) {
  4758. vm._provided = typeof provide === 'function'
  4759. ? provide.call(vm)
  4760. : provide;
  4761. }
  4762. }
  4763. function initInjections (vm) {
  4764. var result = resolveInject(vm.$options.inject, vm);
  4765. if (result) {
  4766. toggleObserving(false);
  4767. Object.keys(result).forEach(function (key) {
  4768. /* istanbul ignore else */
  4769. if (true) {
  4770. defineReactive$$1(vm, key, result[key], function () {
  4771. warn(
  4772. "Avoid mutating an injected value directly since the changes will be " +
  4773. "overwritten whenever the provided component re-renders. " +
  4774. "injection being mutated: \"" + key + "\"",
  4775. vm
  4776. );
  4777. });
  4778. } else {}
  4779. });
  4780. toggleObserving(true);
  4781. }
  4782. }
  4783. function resolveInject (inject, vm) {
  4784. if (inject) {
  4785. // inject is :any because flow is not smart enough to figure out cached
  4786. var result = Object.create(null);
  4787. var keys = hasSymbol
  4788. ? Reflect.ownKeys(inject)
  4789. : Object.keys(inject);
  4790. for (var i = 0; i < keys.length; i++) {
  4791. var key = keys[i];
  4792. // #6574 in case the inject object is observed...
  4793. if (key === '__ob__') { continue }
  4794. var provideKey = inject[key].from;
  4795. var source = vm;
  4796. while (source) {
  4797. if (source._provided && hasOwn(source._provided, provideKey)) {
  4798. result[key] = source._provided[provideKey];
  4799. break
  4800. }
  4801. source = source.$parent;
  4802. }
  4803. if (!source) {
  4804. if ('default' in inject[key]) {
  4805. var provideDefault = inject[key].default;
  4806. result[key] = typeof provideDefault === 'function'
  4807. ? provideDefault.call(vm)
  4808. : provideDefault;
  4809. } else if (true) {
  4810. warn(("Injection \"" + key + "\" not found"), vm);
  4811. }
  4812. }
  4813. }
  4814. return result
  4815. }
  4816. }
  4817. /* */
  4818. /**
  4819. * Runtime helper for resolving raw children VNodes into a slot object.
  4820. */
  4821. function resolveSlots (
  4822. children,
  4823. context
  4824. ) {
  4825. if (!children || !children.length) {
  4826. return {}
  4827. }
  4828. var slots = {};
  4829. for (var i = 0, l = children.length; i < l; i++) {
  4830. var child = children[i];
  4831. var data = child.data;
  4832. // remove slot attribute if the node is resolved as a Vue slot node
  4833. if (data && data.attrs && data.attrs.slot) {
  4834. delete data.attrs.slot;
  4835. }
  4836. // named slots should only be respected if the vnode was rendered in the
  4837. // same context.
  4838. if ((child.context === context || child.fnContext === context) &&
  4839. data && data.slot != null
  4840. ) {
  4841. var name = data.slot;
  4842. var slot = (slots[name] || (slots[name] = []));
  4843. if (child.tag === 'template') {
  4844. slot.push.apply(slot, child.children || []);
  4845. } else {
  4846. slot.push(child);
  4847. }
  4848. } else {
  4849. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  4850. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  4851. (slots['page'] || (slots['page'] = [])).push(child);
  4852. }else{
  4853. (slots.default || (slots.default = [])).push(child);
  4854. }
  4855. }
  4856. }
  4857. // ignore slots that contains only whitespace
  4858. for (var name$1 in slots) {
  4859. if (slots[name$1].every(isWhitespace)) {
  4860. delete slots[name$1];
  4861. }
  4862. }
  4863. return slots
  4864. }
  4865. function isWhitespace (node) {
  4866. return (node.isComment && !node.asyncFactory) || node.text === ' '
  4867. }
  4868. /* */
  4869. function normalizeScopedSlots (
  4870. slots,
  4871. normalSlots,
  4872. prevSlots
  4873. ) {
  4874. var res;
  4875. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  4876. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  4877. var key = slots && slots.$key;
  4878. if (!slots) {
  4879. res = {};
  4880. } else if (slots._normalized) {
  4881. // fast path 1: child component re-render only, parent did not change
  4882. return slots._normalized
  4883. } else if (
  4884. isStable &&
  4885. prevSlots &&
  4886. prevSlots !== emptyObject &&
  4887. key === prevSlots.$key &&
  4888. !hasNormalSlots &&
  4889. !prevSlots.$hasNormal
  4890. ) {
  4891. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  4892. // only need to normalize once
  4893. return prevSlots
  4894. } else {
  4895. res = {};
  4896. for (var key$1 in slots) {
  4897. if (slots[key$1] && key$1[0] !== '$') {
  4898. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  4899. }
  4900. }
  4901. }
  4902. // expose normal slots on scopedSlots
  4903. for (var key$2 in normalSlots) {
  4904. if (!(key$2 in res)) {
  4905. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  4906. }
  4907. }
  4908. // avoriaz seems to mock a non-extensible $scopedSlots object
  4909. // and when that is passed down this would cause an error
  4910. if (slots && Object.isExtensible(slots)) {
  4911. (slots)._normalized = res;
  4912. }
  4913. def(res, '$stable', isStable);
  4914. def(res, '$key', key);
  4915. def(res, '$hasNormal', hasNormalSlots);
  4916. return res
  4917. }
  4918. function normalizeScopedSlot(normalSlots, key, fn) {
  4919. var normalized = function () {
  4920. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  4921. res = res && typeof res === 'object' && !Array.isArray(res)
  4922. ? [res] // single vnode
  4923. : normalizeChildren(res);
  4924. return res && (
  4925. res.length === 0 ||
  4926. (res.length === 1 && res[0].isComment) // #9658
  4927. ) ? undefined
  4928. : res
  4929. };
  4930. // this is a slot using the new v-slot syntax without scope. although it is
  4931. // compiled as a scoped slot, render fn users would expect it to be present
  4932. // on this.$slots because the usage is semantically a normal slot.
  4933. if (fn.proxy) {
  4934. Object.defineProperty(normalSlots, key, {
  4935. get: normalized,
  4936. enumerable: true,
  4937. configurable: true
  4938. });
  4939. }
  4940. return normalized
  4941. }
  4942. function proxyNormalSlot(slots, key) {
  4943. return function () { return slots[key]; }
  4944. }
  4945. /* */
  4946. /**
  4947. * Runtime helper for rendering v-for lists.
  4948. */
  4949. function renderList (
  4950. val,
  4951. render
  4952. ) {
  4953. var ret, i, l, keys, key;
  4954. if (Array.isArray(val) || typeof val === 'string') {
  4955. ret = new Array(val.length);
  4956. for (i = 0, l = val.length; i < l; i++) {
  4957. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  4958. }
  4959. } else if (typeof val === 'number') {
  4960. ret = new Array(val);
  4961. for (i = 0; i < val; i++) {
  4962. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  4963. }
  4964. } else if (isObject(val)) {
  4965. if (hasSymbol && val[Symbol.iterator]) {
  4966. ret = [];
  4967. var iterator = val[Symbol.iterator]();
  4968. var result = iterator.next();
  4969. while (!result.done) {
  4970. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  4971. result = iterator.next();
  4972. }
  4973. } else {
  4974. keys = Object.keys(val);
  4975. ret = new Array(keys.length);
  4976. for (i = 0, l = keys.length; i < l; i++) {
  4977. key = keys[i];
  4978. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  4979. }
  4980. }
  4981. }
  4982. if (!isDef(ret)) {
  4983. ret = [];
  4984. }
  4985. (ret)._isVList = true;
  4986. return ret
  4987. }
  4988. /* */
  4989. /**
  4990. * Runtime helper for rendering <slot>
  4991. */
  4992. function renderSlot (
  4993. name,
  4994. fallback,
  4995. props,
  4996. bindObject
  4997. ) {
  4998. var scopedSlotFn = this.$scopedSlots[name];
  4999. var nodes;
  5000. if (scopedSlotFn) { // scoped slot
  5001. props = props || {};
  5002. if (bindObject) {
  5003. if ( true && !isObject(bindObject)) {
  5004. warn(
  5005. 'slot v-bind without argument expects an Object',
  5006. this
  5007. );
  5008. }
  5009. props = extend(extend({}, bindObject), props);
  5010. }
  5011. // fixed by xxxxxx app-plus scopedSlot
  5012. nodes = scopedSlotFn(props, this, props._i) || fallback;
  5013. } else {
  5014. nodes = this.$slots[name] || fallback;
  5015. }
  5016. var target = props && props.slot;
  5017. if (target) {
  5018. return this.$createElement('template', { slot: target }, nodes)
  5019. } else {
  5020. return nodes
  5021. }
  5022. }
  5023. /* */
  5024. /**
  5025. * Runtime helper for resolving filters
  5026. */
  5027. function resolveFilter (id) {
  5028. return resolveAsset(this.$options, 'filters', id, true) || identity
  5029. }
  5030. /* */
  5031. function isKeyNotMatch (expect, actual) {
  5032. if (Array.isArray(expect)) {
  5033. return expect.indexOf(actual) === -1
  5034. } else {
  5035. return expect !== actual
  5036. }
  5037. }
  5038. /**
  5039. * Runtime helper for checking keyCodes from config.
  5040. * exposed as Vue.prototype._k
  5041. * passing in eventKeyName as last argument separately for backwards compat
  5042. */
  5043. function checkKeyCodes (
  5044. eventKeyCode,
  5045. key,
  5046. builtInKeyCode,
  5047. eventKeyName,
  5048. builtInKeyName
  5049. ) {
  5050. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  5051. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  5052. return isKeyNotMatch(builtInKeyName, eventKeyName)
  5053. } else if (mappedKeyCode) {
  5054. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  5055. } else if (eventKeyName) {
  5056. return hyphenate(eventKeyName) !== key
  5057. }
  5058. }
  5059. /* */
  5060. /**
  5061. * Runtime helper for merging v-bind="object" into a VNode's data.
  5062. */
  5063. function bindObjectProps (
  5064. data,
  5065. tag,
  5066. value,
  5067. asProp,
  5068. isSync
  5069. ) {
  5070. if (value) {
  5071. if (!isObject(value)) {
  5072. true && warn(
  5073. 'v-bind without argument expects an Object or Array value',
  5074. this
  5075. );
  5076. } else {
  5077. if (Array.isArray(value)) {
  5078. value = toObject(value);
  5079. }
  5080. var hash;
  5081. var loop = function ( key ) {
  5082. if (
  5083. key === 'class' ||
  5084. key === 'style' ||
  5085. isReservedAttribute(key)
  5086. ) {
  5087. hash = data;
  5088. } else {
  5089. var type = data.attrs && data.attrs.type;
  5090. hash = asProp || config.mustUseProp(tag, type, key)
  5091. ? data.domProps || (data.domProps = {})
  5092. : data.attrs || (data.attrs = {});
  5093. }
  5094. var camelizedKey = camelize(key);
  5095. var hyphenatedKey = hyphenate(key);
  5096. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  5097. hash[key] = value[key];
  5098. if (isSync) {
  5099. var on = data.on || (data.on = {});
  5100. on[("update:" + key)] = function ($event) {
  5101. value[key] = $event;
  5102. };
  5103. }
  5104. }
  5105. };
  5106. for (var key in value) loop( key );
  5107. }
  5108. }
  5109. return data
  5110. }
  5111. /* */
  5112. /**
  5113. * Runtime helper for rendering static trees.
  5114. */
  5115. function renderStatic (
  5116. index,
  5117. isInFor
  5118. ) {
  5119. var cached = this._staticTrees || (this._staticTrees = []);
  5120. var tree = cached[index];
  5121. // if has already-rendered static tree and not inside v-for,
  5122. // we can reuse the same tree.
  5123. if (tree && !isInFor) {
  5124. return tree
  5125. }
  5126. // otherwise, render a fresh tree.
  5127. tree = cached[index] = this.$options.staticRenderFns[index].call(
  5128. this._renderProxy,
  5129. null,
  5130. this // for render fns generated for functional component templates
  5131. );
  5132. markStatic(tree, ("__static__" + index), false);
  5133. return tree
  5134. }
  5135. /**
  5136. * Runtime helper for v-once.
  5137. * Effectively it means marking the node as static with a unique key.
  5138. */
  5139. function markOnce (
  5140. tree,
  5141. index,
  5142. key
  5143. ) {
  5144. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  5145. return tree
  5146. }
  5147. function markStatic (
  5148. tree,
  5149. key,
  5150. isOnce
  5151. ) {
  5152. if (Array.isArray(tree)) {
  5153. for (var i = 0; i < tree.length; i++) {
  5154. if (tree[i] && typeof tree[i] !== 'string') {
  5155. markStaticNode(tree[i], (key + "_" + i), isOnce);
  5156. }
  5157. }
  5158. } else {
  5159. markStaticNode(tree, key, isOnce);
  5160. }
  5161. }
  5162. function markStaticNode (node, key, isOnce) {
  5163. node.isStatic = true;
  5164. node.key = key;
  5165. node.isOnce = isOnce;
  5166. }
  5167. /* */
  5168. function bindObjectListeners (data, value) {
  5169. if (value) {
  5170. if (!isPlainObject(value)) {
  5171. true && warn(
  5172. 'v-on without argument expects an Object value',
  5173. this
  5174. );
  5175. } else {
  5176. var on = data.on = data.on ? extend({}, data.on) : {};
  5177. for (var key in value) {
  5178. var existing = on[key];
  5179. var ours = value[key];
  5180. on[key] = existing ? [].concat(existing, ours) : ours;
  5181. }
  5182. }
  5183. }
  5184. return data
  5185. }
  5186. /* */
  5187. function resolveScopedSlots (
  5188. fns, // see flow/vnode
  5189. res,
  5190. // the following are added in 2.6
  5191. hasDynamicKeys,
  5192. contentHashKey
  5193. ) {
  5194. res = res || { $stable: !hasDynamicKeys };
  5195. for (var i = 0; i < fns.length; i++) {
  5196. var slot = fns[i];
  5197. if (Array.isArray(slot)) {
  5198. resolveScopedSlots(slot, res, hasDynamicKeys);
  5199. } else if (slot) {
  5200. // marker for reverse proxying v-slot without scope on this.$slots
  5201. if (slot.proxy) {
  5202. slot.fn.proxy = true;
  5203. }
  5204. res[slot.key] = slot.fn;
  5205. }
  5206. }
  5207. if (contentHashKey) {
  5208. (res).$key = contentHashKey;
  5209. }
  5210. return res
  5211. }
  5212. /* */
  5213. function bindDynamicKeys (baseObj, values) {
  5214. for (var i = 0; i < values.length; i += 2) {
  5215. var key = values[i];
  5216. if (typeof key === 'string' && key) {
  5217. baseObj[values[i]] = values[i + 1];
  5218. } else if ( true && key !== '' && key !== null) {
  5219. // null is a special value for explicitly removing a binding
  5220. warn(
  5221. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  5222. this
  5223. );
  5224. }
  5225. }
  5226. return baseObj
  5227. }
  5228. // helper to dynamically append modifier runtime markers to event names.
  5229. // ensure only append when value is already string, otherwise it will be cast
  5230. // to string and cause the type check to miss.
  5231. function prependModifier (value, symbol) {
  5232. return typeof value === 'string' ? symbol + value : value
  5233. }
  5234. /* */
  5235. function installRenderHelpers (target) {
  5236. target._o = markOnce;
  5237. target._n = toNumber;
  5238. target._s = toString;
  5239. target._l = renderList;
  5240. target._t = renderSlot;
  5241. target._q = looseEqual;
  5242. target._i = looseIndexOf;
  5243. target._m = renderStatic;
  5244. target._f = resolveFilter;
  5245. target._k = checkKeyCodes;
  5246. target._b = bindObjectProps;
  5247. target._v = createTextVNode;
  5248. target._e = createEmptyVNode;
  5249. target._u = resolveScopedSlots;
  5250. target._g = bindObjectListeners;
  5251. target._d = bindDynamicKeys;
  5252. target._p = prependModifier;
  5253. }
  5254. /* */
  5255. function FunctionalRenderContext (
  5256. data,
  5257. props,
  5258. children,
  5259. parent,
  5260. Ctor
  5261. ) {
  5262. var this$1 = this;
  5263. var options = Ctor.options;
  5264. // ensure the createElement function in functional components
  5265. // gets a unique context - this is necessary for correct named slot check
  5266. var contextVm;
  5267. if (hasOwn(parent, '_uid')) {
  5268. contextVm = Object.create(parent);
  5269. // $flow-disable-line
  5270. contextVm._original = parent;
  5271. } else {
  5272. // the context vm passed in is a functional context as well.
  5273. // in this case we want to make sure we are able to get a hold to the
  5274. // real context instance.
  5275. contextVm = parent;
  5276. // $flow-disable-line
  5277. parent = parent._original;
  5278. }
  5279. var isCompiled = isTrue(options._compiled);
  5280. var needNormalization = !isCompiled;
  5281. this.data = data;
  5282. this.props = props;
  5283. this.children = children;
  5284. this.parent = parent;
  5285. this.listeners = data.on || emptyObject;
  5286. this.injections = resolveInject(options.inject, parent);
  5287. this.slots = function () {
  5288. if (!this$1.$slots) {
  5289. normalizeScopedSlots(
  5290. data.scopedSlots,
  5291. this$1.$slots = resolveSlots(children, parent)
  5292. );
  5293. }
  5294. return this$1.$slots
  5295. };
  5296. Object.defineProperty(this, 'scopedSlots', ({
  5297. enumerable: true,
  5298. get: function get () {
  5299. return normalizeScopedSlots(data.scopedSlots, this.slots())
  5300. }
  5301. }));
  5302. // support for compiled functional template
  5303. if (isCompiled) {
  5304. // exposing $options for renderStatic()
  5305. this.$options = options;
  5306. // pre-resolve slots for renderSlot()
  5307. this.$slots = this.slots();
  5308. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  5309. }
  5310. if (options._scopeId) {
  5311. this._c = function (a, b, c, d) {
  5312. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  5313. if (vnode && !Array.isArray(vnode)) {
  5314. vnode.fnScopeId = options._scopeId;
  5315. vnode.fnContext = parent;
  5316. }
  5317. return vnode
  5318. };
  5319. } else {
  5320. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  5321. }
  5322. }
  5323. installRenderHelpers(FunctionalRenderContext.prototype);
  5324. function createFunctionalComponent (
  5325. Ctor,
  5326. propsData,
  5327. data,
  5328. contextVm,
  5329. children
  5330. ) {
  5331. var options = Ctor.options;
  5332. var props = {};
  5333. var propOptions = options.props;
  5334. if (isDef(propOptions)) {
  5335. for (var key in propOptions) {
  5336. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  5337. }
  5338. } else {
  5339. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  5340. if (isDef(data.props)) { mergeProps(props, data.props); }
  5341. }
  5342. var renderContext = new FunctionalRenderContext(
  5343. data,
  5344. props,
  5345. children,
  5346. contextVm,
  5347. Ctor
  5348. );
  5349. var vnode = options.render.call(null, renderContext._c, renderContext);
  5350. if (vnode instanceof VNode) {
  5351. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  5352. } else if (Array.isArray(vnode)) {
  5353. var vnodes = normalizeChildren(vnode) || [];
  5354. var res = new Array(vnodes.length);
  5355. for (var i = 0; i < vnodes.length; i++) {
  5356. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  5357. }
  5358. return res
  5359. }
  5360. }
  5361. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  5362. // #7817 clone node before setting fnContext, otherwise if the node is reused
  5363. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  5364. // that should not be matched to match.
  5365. var clone = cloneVNode(vnode);
  5366. clone.fnContext = contextVm;
  5367. clone.fnOptions = options;
  5368. if (true) {
  5369. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  5370. }
  5371. if (data.slot) {
  5372. (clone.data || (clone.data = {})).slot = data.slot;
  5373. }
  5374. return clone
  5375. }
  5376. function mergeProps (to, from) {
  5377. for (var key in from) {
  5378. to[camelize(key)] = from[key];
  5379. }
  5380. }
  5381. /* */
  5382. /* */
  5383. /* */
  5384. /* */
  5385. // inline hooks to be invoked on component VNodes during patch
  5386. var componentVNodeHooks = {
  5387. init: function init (vnode, hydrating) {
  5388. if (
  5389. vnode.componentInstance &&
  5390. !vnode.componentInstance._isDestroyed &&
  5391. vnode.data.keepAlive
  5392. ) {
  5393. // kept-alive components, treat as a patch
  5394. var mountedNode = vnode; // work around flow
  5395. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  5396. } else {
  5397. var child = vnode.componentInstance = createComponentInstanceForVnode(
  5398. vnode,
  5399. activeInstance
  5400. );
  5401. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  5402. }
  5403. },
  5404. prepatch: function prepatch (oldVnode, vnode) {
  5405. var options = vnode.componentOptions;
  5406. var child = vnode.componentInstance = oldVnode.componentInstance;
  5407. updateChildComponent(
  5408. child,
  5409. options.propsData, // updated props
  5410. options.listeners, // updated listeners
  5411. vnode, // new parent vnode
  5412. options.children // new children
  5413. );
  5414. },
  5415. insert: function insert (vnode) {
  5416. var context = vnode.context;
  5417. var componentInstance = vnode.componentInstance;
  5418. if (!componentInstance._isMounted) {
  5419. callHook(componentInstance, 'onServiceCreated');
  5420. callHook(componentInstance, 'onServiceAttached');
  5421. componentInstance._isMounted = true;
  5422. callHook(componentInstance, 'mounted');
  5423. }
  5424. if (vnode.data.keepAlive) {
  5425. if (context._isMounted) {
  5426. // vue-router#1212
  5427. // During updates, a kept-alive component's child components may
  5428. // change, so directly walking the tree here may call activated hooks
  5429. // on incorrect children. Instead we push them into a queue which will
  5430. // be processed after the whole patch process ended.
  5431. queueActivatedComponent(componentInstance);
  5432. } else {
  5433. activateChildComponent(componentInstance, true /* direct */);
  5434. }
  5435. }
  5436. },
  5437. destroy: function destroy (vnode) {
  5438. var componentInstance = vnode.componentInstance;
  5439. if (!componentInstance._isDestroyed) {
  5440. if (!vnode.data.keepAlive) {
  5441. componentInstance.$destroy();
  5442. } else {
  5443. deactivateChildComponent(componentInstance, true /* direct */);
  5444. }
  5445. }
  5446. }
  5447. };
  5448. var hooksToMerge = Object.keys(componentVNodeHooks);
  5449. function createComponent (
  5450. Ctor,
  5451. data,
  5452. context,
  5453. children,
  5454. tag
  5455. ) {
  5456. if (isUndef(Ctor)) {
  5457. return
  5458. }
  5459. var baseCtor = context.$options._base;
  5460. // plain options object: turn it into a constructor
  5461. if (isObject(Ctor)) {
  5462. Ctor = baseCtor.extend(Ctor);
  5463. }
  5464. // if at this stage it's not a constructor or an async component factory,
  5465. // reject.
  5466. if (typeof Ctor !== 'function') {
  5467. if (true) {
  5468. warn(("Invalid Component definition: " + (String(Ctor))), context);
  5469. }
  5470. return
  5471. }
  5472. // async component
  5473. var asyncFactory;
  5474. if (isUndef(Ctor.cid)) {
  5475. asyncFactory = Ctor;
  5476. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  5477. if (Ctor === undefined) {
  5478. // return a placeholder node for async component, which is rendered
  5479. // as a comment node but preserves all the raw information for the node.
  5480. // the information will be used for async server-rendering and hydration.
  5481. return createAsyncPlaceholder(
  5482. asyncFactory,
  5483. data,
  5484. context,
  5485. children,
  5486. tag
  5487. )
  5488. }
  5489. }
  5490. data = data || {};
  5491. // resolve constructor options in case global mixins are applied after
  5492. // component constructor creation
  5493. resolveConstructorOptions(Ctor);
  5494. // transform component v-model data into props & events
  5495. if (isDef(data.model)) {
  5496. transformModel(Ctor.options, data);
  5497. }
  5498. // extract props
  5499. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  5500. // functional component
  5501. if (isTrue(Ctor.options.functional)) {
  5502. return createFunctionalComponent(Ctor, propsData, data, context, children)
  5503. }
  5504. // extract listeners, since these needs to be treated as
  5505. // child component listeners instead of DOM listeners
  5506. var listeners = data.on;
  5507. // replace with listeners with .native modifier
  5508. // so it gets processed during parent component patch.
  5509. data.on = data.nativeOn;
  5510. if (isTrue(Ctor.options.abstract)) {
  5511. // abstract components do not keep anything
  5512. // other than props & listeners & slot
  5513. // work around flow
  5514. var slot = data.slot;
  5515. data = {};
  5516. if (slot) {
  5517. data.slot = slot;
  5518. }
  5519. }
  5520. // install component management hooks onto the placeholder node
  5521. installComponentHooks(data);
  5522. // return a placeholder vnode
  5523. var name = Ctor.options.name || tag;
  5524. var vnode = new VNode(
  5525. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  5526. data, undefined, undefined, undefined, context,
  5527. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  5528. asyncFactory
  5529. );
  5530. return vnode
  5531. }
  5532. function createComponentInstanceForVnode (
  5533. vnode, // we know it's MountedComponentVNode but flow doesn't
  5534. parent // activeInstance in lifecycle state
  5535. ) {
  5536. var options = {
  5537. _isComponent: true,
  5538. _parentVnode: vnode,
  5539. parent: parent
  5540. };
  5541. // check inline-template render functions
  5542. var inlineTemplate = vnode.data.inlineTemplate;
  5543. if (isDef(inlineTemplate)) {
  5544. options.render = inlineTemplate.render;
  5545. options.staticRenderFns = inlineTemplate.staticRenderFns;
  5546. }
  5547. return new vnode.componentOptions.Ctor(options)
  5548. }
  5549. function installComponentHooks (data) {
  5550. var hooks = data.hook || (data.hook = {});
  5551. for (var i = 0; i < hooksToMerge.length; i++) {
  5552. var key = hooksToMerge[i];
  5553. var existing = hooks[key];
  5554. var toMerge = componentVNodeHooks[key];
  5555. if (existing !== toMerge && !(existing && existing._merged)) {
  5556. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  5557. }
  5558. }
  5559. }
  5560. function mergeHook$1 (f1, f2) {
  5561. var merged = function (a, b) {
  5562. // flow complains about extra args which is why we use any
  5563. f1(a, b);
  5564. f2(a, b);
  5565. };
  5566. merged._merged = true;
  5567. return merged
  5568. }
  5569. // transform component v-model info (value and callback) into
  5570. // prop and event handler respectively.
  5571. function transformModel (options, data) {
  5572. var prop = (options.model && options.model.prop) || 'value';
  5573. var event = (options.model && options.model.event) || 'input'
  5574. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  5575. var on = data.on || (data.on = {});
  5576. var existing = on[event];
  5577. var callback = data.model.callback;
  5578. if (isDef(existing)) {
  5579. if (
  5580. Array.isArray(existing)
  5581. ? existing.indexOf(callback) === -1
  5582. : existing !== callback
  5583. ) {
  5584. on[event] = [callback].concat(existing);
  5585. }
  5586. } else {
  5587. on[event] = callback;
  5588. }
  5589. }
  5590. /* */
  5591. var SIMPLE_NORMALIZE = 1;
  5592. var ALWAYS_NORMALIZE = 2;
  5593. // wrapper function for providing a more flexible interface
  5594. // without getting yelled at by flow
  5595. function createElement (
  5596. context,
  5597. tag,
  5598. data,
  5599. children,
  5600. normalizationType,
  5601. alwaysNormalize
  5602. ) {
  5603. if (Array.isArray(data) || isPrimitive(data)) {
  5604. normalizationType = children;
  5605. children = data;
  5606. data = undefined;
  5607. }
  5608. if (isTrue(alwaysNormalize)) {
  5609. normalizationType = ALWAYS_NORMALIZE;
  5610. }
  5611. return _createElement(context, tag, data, children, normalizationType)
  5612. }
  5613. function _createElement (
  5614. context,
  5615. tag,
  5616. data,
  5617. children,
  5618. normalizationType
  5619. ) {
  5620. if (isDef(data) && isDef((data).__ob__)) {
  5621. true && warn(
  5622. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  5623. 'Always create fresh vnode data objects in each render!',
  5624. context
  5625. );
  5626. return createEmptyVNode()
  5627. }
  5628. // object syntax in v-bind
  5629. if (isDef(data) && isDef(data.is)) {
  5630. tag = data.is;
  5631. }
  5632. if (!tag) {
  5633. // in case of component :is set to falsy value
  5634. return createEmptyVNode()
  5635. }
  5636. // warn against non-primitive key
  5637. if ( true &&
  5638. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  5639. ) {
  5640. {
  5641. warn(
  5642. 'Avoid using non-primitive value as key, ' +
  5643. 'use string/number value instead.',
  5644. context
  5645. );
  5646. }
  5647. }
  5648. // support single function children as default scoped slot
  5649. if (Array.isArray(children) &&
  5650. typeof children[0] === 'function'
  5651. ) {
  5652. data = data || {};
  5653. data.scopedSlots = { default: children[0] };
  5654. children.length = 0;
  5655. }
  5656. if (normalizationType === ALWAYS_NORMALIZE) {
  5657. children = normalizeChildren(children);
  5658. } else if (normalizationType === SIMPLE_NORMALIZE) {
  5659. children = simpleNormalizeChildren(children);
  5660. }
  5661. var vnode, ns;
  5662. if (typeof tag === 'string') {
  5663. var Ctor;
  5664. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  5665. if (config.isReservedTag(tag)) {
  5666. // platform built-in elements
  5667. if ( true && isDef(data) && isDef(data.nativeOn)) {
  5668. warn(
  5669. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  5670. context
  5671. );
  5672. }
  5673. vnode = new VNode(
  5674. config.parsePlatformTagName(tag), data, children,
  5675. undefined, undefined, context
  5676. );
  5677. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  5678. // component
  5679. vnode = createComponent(Ctor, data, context, children, tag);
  5680. } else {
  5681. // unknown or unlisted namespaced elements
  5682. // check at runtime because it may get assigned a namespace when its
  5683. // parent normalizes children
  5684. vnode = new VNode(
  5685. tag, data, children,
  5686. undefined, undefined, context
  5687. );
  5688. }
  5689. } else {
  5690. // direct component options / constructor
  5691. vnode = createComponent(tag, data, context, children);
  5692. }
  5693. if (Array.isArray(vnode)) {
  5694. return vnode
  5695. } else if (isDef(vnode)) {
  5696. if (isDef(ns)) { applyNS(vnode, ns); }
  5697. if (isDef(data)) { registerDeepBindings(data); }
  5698. return vnode
  5699. } else {
  5700. return createEmptyVNode()
  5701. }
  5702. }
  5703. function applyNS (vnode, ns, force) {
  5704. vnode.ns = ns;
  5705. if (vnode.tag === 'foreignObject') {
  5706. // use default namespace inside foreignObject
  5707. ns = undefined;
  5708. force = true;
  5709. }
  5710. if (isDef(vnode.children)) {
  5711. for (var i = 0, l = vnode.children.length; i < l; i++) {
  5712. var child = vnode.children[i];
  5713. if (isDef(child.tag) && (
  5714. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  5715. applyNS(child, ns, force);
  5716. }
  5717. }
  5718. }
  5719. }
  5720. // ref #5318
  5721. // necessary to ensure parent re-render when deep bindings like :style and
  5722. // :class are used on slot nodes
  5723. function registerDeepBindings (data) {
  5724. if (isObject(data.style)) {
  5725. traverse(data.style);
  5726. }
  5727. if (isObject(data.class)) {
  5728. traverse(data.class);
  5729. }
  5730. }
  5731. /* */
  5732. function initRender (vm) {
  5733. vm._vnode = null; // the root of the child tree
  5734. vm._staticTrees = null; // v-once cached trees
  5735. var options = vm.$options;
  5736. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  5737. var renderContext = parentVnode && parentVnode.context;
  5738. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  5739. vm.$scopedSlots = emptyObject;
  5740. // bind the createElement fn to this instance
  5741. // so that we get proper render context inside it.
  5742. // args order: tag, data, children, normalizationType, alwaysNormalize
  5743. // internal version is used by render functions compiled from templates
  5744. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  5745. // normalization is always applied for the public version, used in
  5746. // user-written render functions.
  5747. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  5748. // $attrs & $listeners are exposed for easier HOC creation.
  5749. // they need to be reactive so that HOCs using them are always updated
  5750. var parentData = parentVnode && parentVnode.data;
  5751. /* istanbul ignore else */
  5752. if (true) {
  5753. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  5754. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  5755. }, true);
  5756. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  5757. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  5758. }, true);
  5759. } else {}
  5760. }
  5761. var currentRenderingInstance = null;
  5762. function renderMixin (Vue) {
  5763. // install runtime convenience helpers
  5764. installRenderHelpers(Vue.prototype);
  5765. Vue.prototype.$nextTick = function (fn) {
  5766. return nextTick(fn, this)
  5767. };
  5768. Vue.prototype._render = function () {
  5769. var vm = this;
  5770. var ref = vm.$options;
  5771. var render = ref.render;
  5772. var _parentVnode = ref._parentVnode;
  5773. if (_parentVnode) {
  5774. vm.$scopedSlots = normalizeScopedSlots(
  5775. _parentVnode.data.scopedSlots,
  5776. vm.$slots,
  5777. vm.$scopedSlots
  5778. );
  5779. }
  5780. // set parent vnode. this allows render functions to have access
  5781. // to the data on the placeholder node.
  5782. vm.$vnode = _parentVnode;
  5783. // render self
  5784. var vnode;
  5785. try {
  5786. // There's no need to maintain a stack because all render fns are called
  5787. // separately from one another. Nested component's render fns are called
  5788. // when parent component is patched.
  5789. currentRenderingInstance = vm;
  5790. vnode = render.call(vm._renderProxy, vm.$createElement);
  5791. } catch (e) {
  5792. handleError(e, vm, "render");
  5793. // return error render result,
  5794. // or previous vnode to prevent render error causing blank component
  5795. /* istanbul ignore else */
  5796. if ( true && vm.$options.renderError) {
  5797. try {
  5798. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  5799. } catch (e) {
  5800. handleError(e, vm, "renderError");
  5801. vnode = vm._vnode;
  5802. }
  5803. } else {
  5804. vnode = vm._vnode;
  5805. }
  5806. } finally {
  5807. currentRenderingInstance = null;
  5808. }
  5809. // if the returned array contains only a single node, allow it
  5810. if (Array.isArray(vnode) && vnode.length === 1) {
  5811. vnode = vnode[0];
  5812. }
  5813. // return empty vnode in case the render function errored out
  5814. if (!(vnode instanceof VNode)) {
  5815. if ( true && Array.isArray(vnode)) {
  5816. warn(
  5817. 'Multiple root nodes returned from render function. Render function ' +
  5818. 'should return a single root node.',
  5819. vm
  5820. );
  5821. }
  5822. vnode = createEmptyVNode();
  5823. }
  5824. // set parent
  5825. vnode.parent = _parentVnode;
  5826. return vnode
  5827. };
  5828. }
  5829. /* */
  5830. function ensureCtor (comp, base) {
  5831. if (
  5832. comp.__esModule ||
  5833. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  5834. ) {
  5835. comp = comp.default;
  5836. }
  5837. return isObject(comp)
  5838. ? base.extend(comp)
  5839. : comp
  5840. }
  5841. function createAsyncPlaceholder (
  5842. factory,
  5843. data,
  5844. context,
  5845. children,
  5846. tag
  5847. ) {
  5848. var node = createEmptyVNode();
  5849. node.asyncFactory = factory;
  5850. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  5851. return node
  5852. }
  5853. function resolveAsyncComponent (
  5854. factory,
  5855. baseCtor
  5856. ) {
  5857. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  5858. return factory.errorComp
  5859. }
  5860. if (isDef(factory.resolved)) {
  5861. return factory.resolved
  5862. }
  5863. var owner = currentRenderingInstance;
  5864. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  5865. // already pending
  5866. factory.owners.push(owner);
  5867. }
  5868. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  5869. return factory.loadingComp
  5870. }
  5871. if (owner && !isDef(factory.owners)) {
  5872. var owners = factory.owners = [owner];
  5873. var sync = true;
  5874. var timerLoading = null;
  5875. var timerTimeout = null
  5876. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  5877. var forceRender = function (renderCompleted) {
  5878. for (var i = 0, l = owners.length; i < l; i++) {
  5879. (owners[i]).$forceUpdate();
  5880. }
  5881. if (renderCompleted) {
  5882. owners.length = 0;
  5883. if (timerLoading !== null) {
  5884. clearTimeout(timerLoading);
  5885. timerLoading = null;
  5886. }
  5887. if (timerTimeout !== null) {
  5888. clearTimeout(timerTimeout);
  5889. timerTimeout = null;
  5890. }
  5891. }
  5892. };
  5893. var resolve = once(function (res) {
  5894. // cache resolved
  5895. factory.resolved = ensureCtor(res, baseCtor);
  5896. // invoke callbacks only if this is not a synchronous resolve
  5897. // (async resolves are shimmed as synchronous during SSR)
  5898. if (!sync) {
  5899. forceRender(true);
  5900. } else {
  5901. owners.length = 0;
  5902. }
  5903. });
  5904. var reject = once(function (reason) {
  5905. true && warn(
  5906. "Failed to resolve async component: " + (String(factory)) +
  5907. (reason ? ("\nReason: " + reason) : '')
  5908. );
  5909. if (isDef(factory.errorComp)) {
  5910. factory.error = true;
  5911. forceRender(true);
  5912. }
  5913. });
  5914. var res = factory(resolve, reject);
  5915. if (isObject(res)) {
  5916. if (isPromise(res)) {
  5917. // () => Promise
  5918. if (isUndef(factory.resolved)) {
  5919. res.then(resolve, reject);
  5920. }
  5921. } else if (isPromise(res.component)) {
  5922. res.component.then(resolve, reject);
  5923. if (isDef(res.error)) {
  5924. factory.errorComp = ensureCtor(res.error, baseCtor);
  5925. }
  5926. if (isDef(res.loading)) {
  5927. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  5928. if (res.delay === 0) {
  5929. factory.loading = true;
  5930. } else {
  5931. timerLoading = setTimeout(function () {
  5932. timerLoading = null;
  5933. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  5934. factory.loading = true;
  5935. forceRender(false);
  5936. }
  5937. }, res.delay || 200);
  5938. }
  5939. }
  5940. if (isDef(res.timeout)) {
  5941. timerTimeout = setTimeout(function () {
  5942. timerTimeout = null;
  5943. if (isUndef(factory.resolved)) {
  5944. reject(
  5945. true
  5946. ? ("timeout (" + (res.timeout) + "ms)")
  5947. : undefined
  5948. );
  5949. }
  5950. }, res.timeout);
  5951. }
  5952. }
  5953. }
  5954. sync = false;
  5955. // return in case resolved synchronously
  5956. return factory.loading
  5957. ? factory.loadingComp
  5958. : factory.resolved
  5959. }
  5960. }
  5961. /* */
  5962. function isAsyncPlaceholder (node) {
  5963. return node.isComment && node.asyncFactory
  5964. }
  5965. /* */
  5966. function getFirstComponentChild (children) {
  5967. if (Array.isArray(children)) {
  5968. for (var i = 0; i < children.length; i++) {
  5969. var c = children[i];
  5970. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  5971. return c
  5972. }
  5973. }
  5974. }
  5975. }
  5976. /* */
  5977. /* */
  5978. function initEvents (vm) {
  5979. vm._events = Object.create(null);
  5980. vm._hasHookEvent = false;
  5981. // init parent attached events
  5982. var listeners = vm.$options._parentListeners;
  5983. if (listeners) {
  5984. updateComponentListeners(vm, listeners);
  5985. }
  5986. }
  5987. var target;
  5988. function add (event, fn) {
  5989. target.$on(event, fn);
  5990. }
  5991. function remove$1 (event, fn) {
  5992. target.$off(event, fn);
  5993. }
  5994. function createOnceHandler (event, fn) {
  5995. var _target = target;
  5996. return function onceHandler () {
  5997. var res = fn.apply(null, arguments);
  5998. if (res !== null) {
  5999. _target.$off(event, onceHandler);
  6000. }
  6001. }
  6002. }
  6003. function updateComponentListeners (
  6004. vm,
  6005. listeners,
  6006. oldListeners
  6007. ) {
  6008. target = vm;
  6009. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  6010. target = undefined;
  6011. }
  6012. function eventsMixin (Vue) {
  6013. var hookRE = /^hook:/;
  6014. Vue.prototype.$on = function (event, fn) {
  6015. var vm = this;
  6016. if (Array.isArray(event)) {
  6017. for (var i = 0, l = event.length; i < l; i++) {
  6018. vm.$on(event[i], fn);
  6019. }
  6020. } else {
  6021. (vm._events[event] || (vm._events[event] = [])).push(fn);
  6022. // optimize hook:event cost by using a boolean flag marked at registration
  6023. // instead of a hash lookup
  6024. if (hookRE.test(event)) {
  6025. vm._hasHookEvent = true;
  6026. }
  6027. }
  6028. return vm
  6029. };
  6030. Vue.prototype.$once = function (event, fn) {
  6031. var vm = this;
  6032. function on () {
  6033. vm.$off(event, on);
  6034. fn.apply(vm, arguments);
  6035. }
  6036. on.fn = fn;
  6037. vm.$on(event, on);
  6038. return vm
  6039. };
  6040. Vue.prototype.$off = function (event, fn) {
  6041. var vm = this;
  6042. // all
  6043. if (!arguments.length) {
  6044. vm._events = Object.create(null);
  6045. return vm
  6046. }
  6047. // array of events
  6048. if (Array.isArray(event)) {
  6049. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  6050. vm.$off(event[i$1], fn);
  6051. }
  6052. return vm
  6053. }
  6054. // specific event
  6055. var cbs = vm._events[event];
  6056. if (!cbs) {
  6057. return vm
  6058. }
  6059. if (!fn) {
  6060. vm._events[event] = null;
  6061. return vm
  6062. }
  6063. // specific handler
  6064. var cb;
  6065. var i = cbs.length;
  6066. while (i--) {
  6067. cb = cbs[i];
  6068. if (cb === fn || cb.fn === fn) {
  6069. cbs.splice(i, 1);
  6070. break
  6071. }
  6072. }
  6073. return vm
  6074. };
  6075. Vue.prototype.$emit = function (event) {
  6076. var vm = this;
  6077. if (true) {
  6078. var lowerCaseEvent = event.toLowerCase();
  6079. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  6080. tip(
  6081. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  6082. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  6083. "Note that HTML attributes are case-insensitive and you cannot use " +
  6084. "v-on to listen to camelCase events when using in-DOM templates. " +
  6085. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  6086. );
  6087. }
  6088. }
  6089. var cbs = vm._events[event];
  6090. if (cbs) {
  6091. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  6092. var args = toArray(arguments, 1);
  6093. var info = "event handler for \"" + event + "\"";
  6094. for (var i = 0, l = cbs.length; i < l; i++) {
  6095. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  6096. }
  6097. }
  6098. return vm
  6099. };
  6100. }
  6101. /* */
  6102. var activeInstance = null;
  6103. var isUpdatingChildComponent = false;
  6104. function setActiveInstance(vm) {
  6105. var prevActiveInstance = activeInstance;
  6106. activeInstance = vm;
  6107. return function () {
  6108. activeInstance = prevActiveInstance;
  6109. }
  6110. }
  6111. function initLifecycle (vm) {
  6112. var options = vm.$options;
  6113. // locate first non-abstract parent
  6114. var parent = options.parent;
  6115. if (parent && !options.abstract) {
  6116. while (parent.$options.abstract && parent.$parent) {
  6117. parent = parent.$parent;
  6118. }
  6119. parent.$children.push(vm);
  6120. }
  6121. vm.$parent = parent;
  6122. vm.$root = parent ? parent.$root : vm;
  6123. vm.$children = [];
  6124. vm.$refs = {};
  6125. vm._watcher = null;
  6126. vm._inactive = null;
  6127. vm._directInactive = false;
  6128. vm._isMounted = false;
  6129. vm._isDestroyed = false;
  6130. vm._isBeingDestroyed = false;
  6131. }
  6132. function lifecycleMixin (Vue) {
  6133. Vue.prototype._update = function (vnode, hydrating) {
  6134. var vm = this;
  6135. var prevEl = vm.$el;
  6136. var prevVnode = vm._vnode;
  6137. var restoreActiveInstance = setActiveInstance(vm);
  6138. vm._vnode = vnode;
  6139. // Vue.prototype.__patch__ is injected in entry points
  6140. // based on the rendering backend used.
  6141. if (!prevVnode) {
  6142. // initial render
  6143. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  6144. } else {
  6145. // updates
  6146. vm.$el = vm.__patch__(prevVnode, vnode);
  6147. }
  6148. restoreActiveInstance();
  6149. // update __vue__ reference
  6150. if (prevEl) {
  6151. prevEl.__vue__ = null;
  6152. }
  6153. if (vm.$el) {
  6154. vm.$el.__vue__ = vm;
  6155. }
  6156. // if parent is an HOC, update its $el as well
  6157. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  6158. vm.$parent.$el = vm.$el;
  6159. }
  6160. // updated hook is called by the scheduler to ensure that children are
  6161. // updated in a parent's updated hook.
  6162. };
  6163. Vue.prototype.$forceUpdate = function () {
  6164. var vm = this;
  6165. if (vm._watcher) {
  6166. vm._watcher.update();
  6167. }
  6168. };
  6169. Vue.prototype.$destroy = function () {
  6170. var vm = this;
  6171. if (vm._isBeingDestroyed) {
  6172. return
  6173. }
  6174. callHook(vm, 'beforeDestroy');
  6175. vm._isBeingDestroyed = true;
  6176. // remove self from parent
  6177. var parent = vm.$parent;
  6178. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  6179. remove(parent.$children, vm);
  6180. }
  6181. // teardown watchers
  6182. if (vm._watcher) {
  6183. vm._watcher.teardown();
  6184. }
  6185. var i = vm._watchers.length;
  6186. while (i--) {
  6187. vm._watchers[i].teardown();
  6188. }
  6189. // remove reference from data ob
  6190. // frozen object may not have observer.
  6191. if (vm._data.__ob__) {
  6192. vm._data.__ob__.vmCount--;
  6193. }
  6194. // call the last hook...
  6195. vm._isDestroyed = true;
  6196. // invoke destroy hooks on current rendered tree
  6197. vm.__patch__(vm._vnode, null);
  6198. // fire destroyed hook
  6199. callHook(vm, 'destroyed');
  6200. // turn off all instance listeners.
  6201. vm.$off();
  6202. // remove __vue__ reference
  6203. if (vm.$el) {
  6204. vm.$el.__vue__ = null;
  6205. }
  6206. // release circular reference (#6759)
  6207. if (vm.$vnode) {
  6208. vm.$vnode.parent = null;
  6209. }
  6210. };
  6211. }
  6212. function updateChildComponent (
  6213. vm,
  6214. propsData,
  6215. listeners,
  6216. parentVnode,
  6217. renderChildren
  6218. ) {
  6219. if (true) {
  6220. isUpdatingChildComponent = true;
  6221. }
  6222. // determine whether component has slot children
  6223. // we need to do this before overwriting $options._renderChildren.
  6224. // check if there are dynamic scopedSlots (hand-written or compiled but with
  6225. // dynamic slot names). Static scoped slots compiled from template has the
  6226. // "$stable" marker.
  6227. var newScopedSlots = parentVnode.data.scopedSlots;
  6228. var oldScopedSlots = vm.$scopedSlots;
  6229. var hasDynamicScopedSlot = !!(
  6230. (newScopedSlots && !newScopedSlots.$stable) ||
  6231. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  6232. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  6233. );
  6234. // Any static slot children from the parent may have changed during parent's
  6235. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  6236. // update is necessary to ensure correctness.
  6237. var needsForceUpdate = !!(
  6238. renderChildren || // has new static slots
  6239. vm.$options._renderChildren || // has old static slots
  6240. hasDynamicScopedSlot
  6241. );
  6242. vm.$options._parentVnode = parentVnode;
  6243. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  6244. if (vm._vnode) { // update child tree's parent
  6245. vm._vnode.parent = parentVnode;
  6246. }
  6247. vm.$options._renderChildren = renderChildren;
  6248. // update $attrs and $listeners hash
  6249. // these are also reactive so they may trigger child update if the child
  6250. // used them during render
  6251. vm.$attrs = parentVnode.data.attrs || emptyObject;
  6252. vm.$listeners = listeners || emptyObject;
  6253. // update props
  6254. if (propsData && vm.$options.props) {
  6255. toggleObserving(false);
  6256. var props = vm._props;
  6257. var propKeys = vm.$options._propKeys || [];
  6258. for (var i = 0; i < propKeys.length; i++) {
  6259. var key = propKeys[i];
  6260. var propOptions = vm.$options.props; // wtf flow?
  6261. props[key] = validateProp(key, propOptions, propsData, vm);
  6262. }
  6263. toggleObserving(true);
  6264. // keep a copy of raw propsData
  6265. vm.$options.propsData = propsData;
  6266. }
  6267. // fixed by xxxxxx update properties(mp runtime)
  6268. vm._$updateProperties && vm._$updateProperties(vm);
  6269. // update listeners
  6270. listeners = listeners || emptyObject;
  6271. var oldListeners = vm.$options._parentListeners;
  6272. vm.$options._parentListeners = listeners;
  6273. updateComponentListeners(vm, listeners, oldListeners);
  6274. // resolve slots + force update if has children
  6275. if (needsForceUpdate) {
  6276. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  6277. vm.$forceUpdate();
  6278. }
  6279. if (true) {
  6280. isUpdatingChildComponent = false;
  6281. }
  6282. }
  6283. function isInInactiveTree (vm) {
  6284. while (vm && (vm = vm.$parent)) {
  6285. if (vm._inactive) { return true }
  6286. }
  6287. return false
  6288. }
  6289. function activateChildComponent (vm, direct) {
  6290. if (direct) {
  6291. vm._directInactive = false;
  6292. if (isInInactiveTree(vm)) {
  6293. return
  6294. }
  6295. } else if (vm._directInactive) {
  6296. return
  6297. }
  6298. if (vm._inactive || vm._inactive === null) {
  6299. vm._inactive = false;
  6300. for (var i = 0; i < vm.$children.length; i++) {
  6301. activateChildComponent(vm.$children[i]);
  6302. }
  6303. callHook(vm, 'activated');
  6304. }
  6305. }
  6306. function deactivateChildComponent (vm, direct) {
  6307. if (direct) {
  6308. vm._directInactive = true;
  6309. if (isInInactiveTree(vm)) {
  6310. return
  6311. }
  6312. }
  6313. if (!vm._inactive) {
  6314. vm._inactive = true;
  6315. for (var i = 0; i < vm.$children.length; i++) {
  6316. deactivateChildComponent(vm.$children[i]);
  6317. }
  6318. callHook(vm, 'deactivated');
  6319. }
  6320. }
  6321. function callHook (vm, hook) {
  6322. // #7573 disable dep collection when invoking lifecycle hooks
  6323. pushTarget();
  6324. var handlers = vm.$options[hook];
  6325. var info = hook + " hook";
  6326. if (handlers) {
  6327. for (var i = 0, j = handlers.length; i < j; i++) {
  6328. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  6329. }
  6330. }
  6331. if (vm._hasHookEvent) {
  6332. vm.$emit('hook:' + hook);
  6333. }
  6334. popTarget();
  6335. }
  6336. /* */
  6337. var MAX_UPDATE_COUNT = 100;
  6338. var queue = [];
  6339. var activatedChildren = [];
  6340. var has = {};
  6341. var circular = {};
  6342. var waiting = false;
  6343. var flushing = false;
  6344. var index = 0;
  6345. /**
  6346. * Reset the scheduler's state.
  6347. */
  6348. function resetSchedulerState () {
  6349. index = queue.length = activatedChildren.length = 0;
  6350. has = {};
  6351. if (true) {
  6352. circular = {};
  6353. }
  6354. waiting = flushing = false;
  6355. }
  6356. // Async edge case #6566 requires saving the timestamp when event listeners are
  6357. // attached. However, calling performance.now() has a perf overhead especially
  6358. // if the page has thousands of event listeners. Instead, we take a timestamp
  6359. // every time the scheduler flushes and use that for all event listeners
  6360. // attached during that flush.
  6361. var currentFlushTimestamp = 0;
  6362. // Async edge case fix requires storing an event listener's attach timestamp.
  6363. var getNow = Date.now;
  6364. // Determine what event timestamp the browser is using. Annoyingly, the
  6365. // timestamp can either be hi-res (relative to page load) or low-res
  6366. // (relative to UNIX epoch), so in order to compare time we have to use the
  6367. // same timestamp type when saving the flush timestamp.
  6368. // All IE versions use low-res event timestamps, and have problematic clock
  6369. // implementations (#9632)
  6370. if (inBrowser && !isIE) {
  6371. var performance = window.performance;
  6372. if (
  6373. performance &&
  6374. typeof performance.now === 'function' &&
  6375. getNow() > document.createEvent('Event').timeStamp
  6376. ) {
  6377. // if the event timestamp, although evaluated AFTER the Date.now(), is
  6378. // smaller than it, it means the event is using a hi-res timestamp,
  6379. // and we need to use the hi-res version for event listener timestamps as
  6380. // well.
  6381. getNow = function () { return performance.now(); };
  6382. }
  6383. }
  6384. /**
  6385. * Flush both queues and run the watchers.
  6386. */
  6387. function flushSchedulerQueue () {
  6388. currentFlushTimestamp = getNow();
  6389. flushing = true;
  6390. var watcher, id;
  6391. // Sort queue before flush.
  6392. // This ensures that:
  6393. // 1. Components are updated from parent to child. (because parent is always
  6394. // created before the child)
  6395. // 2. A component's user watchers are run before its render watcher (because
  6396. // user watchers are created before the render watcher)
  6397. // 3. If a component is destroyed during a parent component's watcher run,
  6398. // its watchers can be skipped.
  6399. queue.sort(function (a, b) { return a.id - b.id; });
  6400. // do not cache length because more watchers might be pushed
  6401. // as we run existing watchers
  6402. for (index = 0; index < queue.length; index++) {
  6403. watcher = queue[index];
  6404. if (watcher.before) {
  6405. watcher.before();
  6406. }
  6407. id = watcher.id;
  6408. has[id] = null;
  6409. watcher.run();
  6410. // in dev build, check and stop circular updates.
  6411. if ( true && has[id] != null) {
  6412. circular[id] = (circular[id] || 0) + 1;
  6413. if (circular[id] > MAX_UPDATE_COUNT) {
  6414. warn(
  6415. 'You may have an infinite update loop ' + (
  6416. watcher.user
  6417. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  6418. : "in a component render function."
  6419. ),
  6420. watcher.vm
  6421. );
  6422. break
  6423. }
  6424. }
  6425. }
  6426. // keep copies of post queues before resetting state
  6427. var activatedQueue = activatedChildren.slice();
  6428. var updatedQueue = queue.slice();
  6429. resetSchedulerState();
  6430. // call component updated and activated hooks
  6431. callActivatedHooks(activatedQueue);
  6432. callUpdatedHooks(updatedQueue);
  6433. // devtool hook
  6434. /* istanbul ignore if */
  6435. if (devtools && config.devtools) {
  6436. devtools.emit('flush');
  6437. }
  6438. }
  6439. function callUpdatedHooks (queue) {
  6440. var i = queue.length;
  6441. while (i--) {
  6442. var watcher = queue[i];
  6443. var vm = watcher.vm;
  6444. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  6445. callHook(vm, 'updated');
  6446. }
  6447. }
  6448. }
  6449. /**
  6450. * Queue a kept-alive component that was activated during patch.
  6451. * The queue will be processed after the entire tree has been patched.
  6452. */
  6453. function queueActivatedComponent (vm) {
  6454. // setting _inactive to false here so that a render function can
  6455. // rely on checking whether it's in an inactive tree (e.g. router-view)
  6456. vm._inactive = false;
  6457. activatedChildren.push(vm);
  6458. }
  6459. function callActivatedHooks (queue) {
  6460. for (var i = 0; i < queue.length; i++) {
  6461. queue[i]._inactive = true;
  6462. activateChildComponent(queue[i], true /* true */);
  6463. }
  6464. }
  6465. /**
  6466. * Push a watcher into the watcher queue.
  6467. * Jobs with duplicate IDs will be skipped unless it's
  6468. * pushed when the queue is being flushed.
  6469. */
  6470. function queueWatcher (watcher) {
  6471. var id = watcher.id;
  6472. if (has[id] == null) {
  6473. has[id] = true;
  6474. if (!flushing) {
  6475. queue.push(watcher);
  6476. } else {
  6477. // if already flushing, splice the watcher based on its id
  6478. // if already past its id, it will be run next immediately.
  6479. var i = queue.length - 1;
  6480. while (i > index && queue[i].id > watcher.id) {
  6481. i--;
  6482. }
  6483. queue.splice(i + 1, 0, watcher);
  6484. }
  6485. // queue the flush
  6486. if (!waiting) {
  6487. waiting = true;
  6488. if ( true && !config.async) {
  6489. flushSchedulerQueue();
  6490. return
  6491. }
  6492. nextTick(flushSchedulerQueue);
  6493. }
  6494. }
  6495. }
  6496. /* */
  6497. var uid$2 = 0;
  6498. /**
  6499. * A watcher parses an expression, collects dependencies,
  6500. * and fires callback when the expression value changes.
  6501. * This is used for both the $watch() api and directives.
  6502. */
  6503. var Watcher = function Watcher (
  6504. vm,
  6505. expOrFn,
  6506. cb,
  6507. options,
  6508. isRenderWatcher
  6509. ) {
  6510. this.vm = vm;
  6511. if (isRenderWatcher) {
  6512. vm._watcher = this;
  6513. }
  6514. vm._watchers.push(this);
  6515. // options
  6516. if (options) {
  6517. this.deep = !!options.deep;
  6518. this.user = !!options.user;
  6519. this.lazy = !!options.lazy;
  6520. this.sync = !!options.sync;
  6521. this.before = options.before;
  6522. } else {
  6523. this.deep = this.user = this.lazy = this.sync = false;
  6524. }
  6525. this.cb = cb;
  6526. this.id = ++uid$2; // uid for batching
  6527. this.active = true;
  6528. this.dirty = this.lazy; // for lazy watchers
  6529. this.deps = [];
  6530. this.newDeps = [];
  6531. this.depIds = new _Set();
  6532. this.newDepIds = new _Set();
  6533. this.expression = true
  6534. ? expOrFn.toString()
  6535. : undefined;
  6536. // parse expression for getter
  6537. if (typeof expOrFn === 'function') {
  6538. this.getter = expOrFn;
  6539. } else {
  6540. this.getter = parsePath(expOrFn);
  6541. if (!this.getter) {
  6542. this.getter = noop;
  6543. true && warn(
  6544. "Failed watching path: \"" + expOrFn + "\" " +
  6545. 'Watcher only accepts simple dot-delimited paths. ' +
  6546. 'For full control, use a function instead.',
  6547. vm
  6548. );
  6549. }
  6550. }
  6551. this.value = this.lazy
  6552. ? undefined
  6553. : this.get();
  6554. };
  6555. /**
  6556. * Evaluate the getter, and re-collect dependencies.
  6557. */
  6558. Watcher.prototype.get = function get () {
  6559. pushTarget(this);
  6560. var value;
  6561. var vm = this.vm;
  6562. try {
  6563. value = this.getter.call(vm, vm);
  6564. } catch (e) {
  6565. if (this.user) {
  6566. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  6567. } else {
  6568. throw e
  6569. }
  6570. } finally {
  6571. // "touch" every property so they are all tracked as
  6572. // dependencies for deep watching
  6573. if (this.deep) {
  6574. traverse(value);
  6575. }
  6576. popTarget();
  6577. this.cleanupDeps();
  6578. }
  6579. return value
  6580. };
  6581. /**
  6582. * Add a dependency to this directive.
  6583. */
  6584. Watcher.prototype.addDep = function addDep (dep) {
  6585. var id = dep.id;
  6586. if (!this.newDepIds.has(id)) {
  6587. this.newDepIds.add(id);
  6588. this.newDeps.push(dep);
  6589. if (!this.depIds.has(id)) {
  6590. dep.addSub(this);
  6591. }
  6592. }
  6593. };
  6594. /**
  6595. * Clean up for dependency collection.
  6596. */
  6597. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  6598. var i = this.deps.length;
  6599. while (i--) {
  6600. var dep = this.deps[i];
  6601. if (!this.newDepIds.has(dep.id)) {
  6602. dep.removeSub(this);
  6603. }
  6604. }
  6605. var tmp = this.depIds;
  6606. this.depIds = this.newDepIds;
  6607. this.newDepIds = tmp;
  6608. this.newDepIds.clear();
  6609. tmp = this.deps;
  6610. this.deps = this.newDeps;
  6611. this.newDeps = tmp;
  6612. this.newDeps.length = 0;
  6613. };
  6614. /**
  6615. * Subscriber interface.
  6616. * Will be called when a dependency changes.
  6617. */
  6618. Watcher.prototype.update = function update () {
  6619. /* istanbul ignore else */
  6620. if (this.lazy) {
  6621. this.dirty = true;
  6622. } else if (this.sync) {
  6623. this.run();
  6624. } else {
  6625. queueWatcher(this);
  6626. }
  6627. };
  6628. /**
  6629. * Scheduler job interface.
  6630. * Will be called by the scheduler.
  6631. */
  6632. Watcher.prototype.run = function run () {
  6633. if (this.active) {
  6634. var value = this.get();
  6635. if (
  6636. value !== this.value ||
  6637. // Deep watchers and watchers on Object/Arrays should fire even
  6638. // when the value is the same, because the value may
  6639. // have mutated.
  6640. isObject(value) ||
  6641. this.deep
  6642. ) {
  6643. // set new value
  6644. var oldValue = this.value;
  6645. this.value = value;
  6646. if (this.user) {
  6647. try {
  6648. this.cb.call(this.vm, value, oldValue);
  6649. } catch (e) {
  6650. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  6651. }
  6652. } else {
  6653. this.cb.call(this.vm, value, oldValue);
  6654. }
  6655. }
  6656. }
  6657. };
  6658. /**
  6659. * Evaluate the value of the watcher.
  6660. * This only gets called for lazy watchers.
  6661. */
  6662. Watcher.prototype.evaluate = function evaluate () {
  6663. this.value = this.get();
  6664. this.dirty = false;
  6665. };
  6666. /**
  6667. * Depend on all deps collected by this watcher.
  6668. */
  6669. Watcher.prototype.depend = function depend () {
  6670. var i = this.deps.length;
  6671. while (i--) {
  6672. this.deps[i].depend();
  6673. }
  6674. };
  6675. /**
  6676. * Remove self from all dependencies' subscriber list.
  6677. */
  6678. Watcher.prototype.teardown = function teardown () {
  6679. if (this.active) {
  6680. // remove self from vm's watcher list
  6681. // this is a somewhat expensive operation so we skip it
  6682. // if the vm is being destroyed.
  6683. if (!this.vm._isBeingDestroyed) {
  6684. remove(this.vm._watchers, this);
  6685. }
  6686. var i = this.deps.length;
  6687. while (i--) {
  6688. this.deps[i].removeSub(this);
  6689. }
  6690. this.active = false;
  6691. }
  6692. };
  6693. /* */
  6694. var sharedPropertyDefinition = {
  6695. enumerable: true,
  6696. configurable: true,
  6697. get: noop,
  6698. set: noop
  6699. };
  6700. function proxy (target, sourceKey, key) {
  6701. sharedPropertyDefinition.get = function proxyGetter () {
  6702. return this[sourceKey][key]
  6703. };
  6704. sharedPropertyDefinition.set = function proxySetter (val) {
  6705. this[sourceKey][key] = val;
  6706. };
  6707. Object.defineProperty(target, key, sharedPropertyDefinition);
  6708. }
  6709. function initState (vm) {
  6710. vm._watchers = [];
  6711. var opts = vm.$options;
  6712. if (opts.props) { initProps(vm, opts.props); }
  6713. if (opts.methods) { initMethods(vm, opts.methods); }
  6714. if (opts.data) {
  6715. initData(vm);
  6716. } else {
  6717. observe(vm._data = {}, true /* asRootData */);
  6718. }
  6719. if (opts.computed) { initComputed(vm, opts.computed); }
  6720. if (opts.watch && opts.watch !== nativeWatch) {
  6721. initWatch(vm, opts.watch);
  6722. }
  6723. }
  6724. function initProps (vm, propsOptions) {
  6725. var propsData = vm.$options.propsData || {};
  6726. var props = vm._props = {};
  6727. // cache prop keys so that future props updates can iterate using Array
  6728. // instead of dynamic object key enumeration.
  6729. var keys = vm.$options._propKeys = [];
  6730. var isRoot = !vm.$parent;
  6731. // root instance props should be converted
  6732. if (!isRoot) {
  6733. toggleObserving(false);
  6734. }
  6735. var loop = function ( key ) {
  6736. keys.push(key);
  6737. var value = validateProp(key, propsOptions, propsData, vm);
  6738. /* istanbul ignore else */
  6739. if (true) {
  6740. var hyphenatedKey = hyphenate(key);
  6741. if (isReservedAttribute(hyphenatedKey) ||
  6742. config.isReservedAttr(hyphenatedKey)) {
  6743. warn(
  6744. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  6745. vm
  6746. );
  6747. }
  6748. defineReactive$$1(props, key, value, function () {
  6749. if (!isRoot && !isUpdatingChildComponent) {
  6750. {
  6751. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  6752. return
  6753. }
  6754. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  6755. if(
  6756. key === 'value' &&
  6757. Array.isArray(vm.$options.behaviors) &&
  6758. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  6759. ){
  6760. return
  6761. }
  6762. if(vm._getFormData){
  6763. return
  6764. }
  6765. var $parent = vm.$parent;
  6766. while($parent){
  6767. if($parent.__next_tick_pending){
  6768. return
  6769. }
  6770. $parent = $parent.$parent;
  6771. }
  6772. }
  6773. warn(
  6774. "Avoid mutating a prop directly since the value will be " +
  6775. "overwritten whenever the parent component re-renders. " +
  6776. "Instead, use a data or computed property based on the prop's " +
  6777. "value. Prop being mutated: \"" + key + "\"",
  6778. vm
  6779. );
  6780. }
  6781. });
  6782. } else {}
  6783. // static props are already proxied on the component's prototype
  6784. // during Vue.extend(). We only need to proxy props defined at
  6785. // instantiation here.
  6786. if (!(key in vm)) {
  6787. proxy(vm, "_props", key);
  6788. }
  6789. };
  6790. for (var key in propsOptions) loop( key );
  6791. toggleObserving(true);
  6792. }
  6793. function initData (vm) {
  6794. var data = vm.$options.data;
  6795. data = vm._data = typeof data === 'function'
  6796. ? getData(data, vm)
  6797. : data || {};
  6798. if (!isPlainObject(data)) {
  6799. data = {};
  6800. true && warn(
  6801. 'data functions should return an object:\n' +
  6802. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  6803. vm
  6804. );
  6805. }
  6806. // proxy data on instance
  6807. var keys = Object.keys(data);
  6808. var props = vm.$options.props;
  6809. var methods = vm.$options.methods;
  6810. var i = keys.length;
  6811. while (i--) {
  6812. var key = keys[i];
  6813. if (true) {
  6814. if (methods && hasOwn(methods, key)) {
  6815. warn(
  6816. ("Method \"" + key + "\" has already been defined as a data property."),
  6817. vm
  6818. );
  6819. }
  6820. }
  6821. if (props && hasOwn(props, key)) {
  6822. true && warn(
  6823. "The data property \"" + key + "\" is already declared as a prop. " +
  6824. "Use prop default value instead.",
  6825. vm
  6826. );
  6827. } else if (!isReserved(key)) {
  6828. proxy(vm, "_data", key);
  6829. }
  6830. }
  6831. // observe data
  6832. observe(data, true /* asRootData */);
  6833. }
  6834. function getData (data, vm) {
  6835. // #7573 disable dep collection when invoking data getters
  6836. pushTarget();
  6837. try {
  6838. return data.call(vm, vm)
  6839. } catch (e) {
  6840. handleError(e, vm, "data()");
  6841. return {}
  6842. } finally {
  6843. popTarget();
  6844. }
  6845. }
  6846. var computedWatcherOptions = { lazy: true };
  6847. function initComputed (vm, computed) {
  6848. // $flow-disable-line
  6849. var watchers = vm._computedWatchers = Object.create(null);
  6850. // computed properties are just getters during SSR
  6851. var isSSR = isServerRendering();
  6852. for (var key in computed) {
  6853. var userDef = computed[key];
  6854. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  6855. if ( true && getter == null) {
  6856. warn(
  6857. ("Getter is missing for computed property \"" + key + "\"."),
  6858. vm
  6859. );
  6860. }
  6861. if (!isSSR) {
  6862. // create internal watcher for the computed property.
  6863. watchers[key] = new Watcher(
  6864. vm,
  6865. getter || noop,
  6866. noop,
  6867. computedWatcherOptions
  6868. );
  6869. }
  6870. // component-defined computed properties are already defined on the
  6871. // component prototype. We only need to define computed properties defined
  6872. // at instantiation here.
  6873. if (!(key in vm)) {
  6874. defineComputed(vm, key, userDef);
  6875. } else if (true) {
  6876. if (key in vm.$data) {
  6877. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  6878. } else if (vm.$options.props && key in vm.$options.props) {
  6879. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  6880. }
  6881. }
  6882. }
  6883. }
  6884. function defineComputed (
  6885. target,
  6886. key,
  6887. userDef
  6888. ) {
  6889. var shouldCache = !isServerRendering();
  6890. if (typeof userDef === 'function') {
  6891. sharedPropertyDefinition.get = shouldCache
  6892. ? createComputedGetter(key)
  6893. : createGetterInvoker(userDef);
  6894. sharedPropertyDefinition.set = noop;
  6895. } else {
  6896. sharedPropertyDefinition.get = userDef.get
  6897. ? shouldCache && userDef.cache !== false
  6898. ? createComputedGetter(key)
  6899. : createGetterInvoker(userDef.get)
  6900. : noop;
  6901. sharedPropertyDefinition.set = userDef.set || noop;
  6902. }
  6903. if ( true &&
  6904. sharedPropertyDefinition.set === noop) {
  6905. sharedPropertyDefinition.set = function () {
  6906. warn(
  6907. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  6908. this
  6909. );
  6910. };
  6911. }
  6912. Object.defineProperty(target, key, sharedPropertyDefinition);
  6913. }
  6914. function createComputedGetter (key) {
  6915. return function computedGetter () {
  6916. var watcher = this._computedWatchers && this._computedWatchers[key];
  6917. if (watcher) {
  6918. if (watcher.dirty) {
  6919. watcher.evaluate();
  6920. }
  6921. if (Dep.SharedObject.target) {// fixed by xxxxxx
  6922. watcher.depend();
  6923. }
  6924. return watcher.value
  6925. }
  6926. }
  6927. }
  6928. function createGetterInvoker(fn) {
  6929. return function computedGetter () {
  6930. return fn.call(this, this)
  6931. }
  6932. }
  6933. function initMethods (vm, methods) {
  6934. var props = vm.$options.props;
  6935. for (var key in methods) {
  6936. if (true) {
  6937. if (typeof methods[key] !== 'function') {
  6938. warn(
  6939. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  6940. "Did you reference the function correctly?",
  6941. vm
  6942. );
  6943. }
  6944. if (props && hasOwn(props, key)) {
  6945. warn(
  6946. ("Method \"" + key + "\" has already been defined as a prop."),
  6947. vm
  6948. );
  6949. }
  6950. if ((key in vm) && isReserved(key)) {
  6951. warn(
  6952. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  6953. "Avoid defining component methods that start with _ or $."
  6954. );
  6955. }
  6956. }
  6957. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  6958. }
  6959. }
  6960. function initWatch (vm, watch) {
  6961. for (var key in watch) {
  6962. var handler = watch[key];
  6963. if (Array.isArray(handler)) {
  6964. for (var i = 0; i < handler.length; i++) {
  6965. createWatcher(vm, key, handler[i]);
  6966. }
  6967. } else {
  6968. createWatcher(vm, key, handler);
  6969. }
  6970. }
  6971. }
  6972. function createWatcher (
  6973. vm,
  6974. expOrFn,
  6975. handler,
  6976. options
  6977. ) {
  6978. if (isPlainObject(handler)) {
  6979. options = handler;
  6980. handler = handler.handler;
  6981. }
  6982. if (typeof handler === 'string') {
  6983. handler = vm[handler];
  6984. }
  6985. return vm.$watch(expOrFn, handler, options)
  6986. }
  6987. function stateMixin (Vue) {
  6988. // flow somehow has problems with directly declared definition object
  6989. // when using Object.defineProperty, so we have to procedurally build up
  6990. // the object here.
  6991. var dataDef = {};
  6992. dataDef.get = function () { return this._data };
  6993. var propsDef = {};
  6994. propsDef.get = function () { return this._props };
  6995. if (true) {
  6996. dataDef.set = function () {
  6997. warn(
  6998. 'Avoid replacing instance root $data. ' +
  6999. 'Use nested data properties instead.',
  7000. this
  7001. );
  7002. };
  7003. propsDef.set = function () {
  7004. warn("$props is readonly.", this);
  7005. };
  7006. }
  7007. Object.defineProperty(Vue.prototype, '$data', dataDef);
  7008. Object.defineProperty(Vue.prototype, '$props', propsDef);
  7009. Vue.prototype.$set = set;
  7010. Vue.prototype.$delete = del;
  7011. Vue.prototype.$watch = function (
  7012. expOrFn,
  7013. cb,
  7014. options
  7015. ) {
  7016. var vm = this;
  7017. if (isPlainObject(cb)) {
  7018. return createWatcher(vm, expOrFn, cb, options)
  7019. }
  7020. options = options || {};
  7021. options.user = true;
  7022. var watcher = new Watcher(vm, expOrFn, cb, options);
  7023. if (options.immediate) {
  7024. try {
  7025. cb.call(vm, watcher.value);
  7026. } catch (error) {
  7027. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  7028. }
  7029. }
  7030. return function unwatchFn () {
  7031. watcher.teardown();
  7032. }
  7033. };
  7034. }
  7035. /* */
  7036. var uid$3 = 0;
  7037. function initMixin (Vue) {
  7038. Vue.prototype._init = function (options) {
  7039. var vm = this;
  7040. // a uid
  7041. vm._uid = uid$3++;
  7042. var startTag, endTag;
  7043. /* istanbul ignore if */
  7044. if ( true && config.performance && mark) {
  7045. startTag = "vue-perf-start:" + (vm._uid);
  7046. endTag = "vue-perf-end:" + (vm._uid);
  7047. mark(startTag);
  7048. }
  7049. // a flag to avoid this being observed
  7050. vm._isVue = true;
  7051. // merge options
  7052. if (options && options._isComponent) {
  7053. // optimize internal component instantiation
  7054. // since dynamic options merging is pretty slow, and none of the
  7055. // internal component options needs special treatment.
  7056. initInternalComponent(vm, options);
  7057. } else {
  7058. vm.$options = mergeOptions(
  7059. resolveConstructorOptions(vm.constructor),
  7060. options || {},
  7061. vm
  7062. );
  7063. }
  7064. /* istanbul ignore else */
  7065. if (true) {
  7066. initProxy(vm);
  7067. } else {}
  7068. // expose real self
  7069. vm._self = vm;
  7070. initLifecycle(vm);
  7071. initEvents(vm);
  7072. initRender(vm);
  7073. callHook(vm, 'beforeCreate');
  7074. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  7075. initState(vm);
  7076. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  7077. !vm._$fallback && callHook(vm, 'created');
  7078. /* istanbul ignore if */
  7079. if ( true && config.performance && mark) {
  7080. vm._name = formatComponentName(vm, false);
  7081. mark(endTag);
  7082. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  7083. }
  7084. if (vm.$options.el) {
  7085. vm.$mount(vm.$options.el);
  7086. }
  7087. };
  7088. }
  7089. function initInternalComponent (vm, options) {
  7090. var opts = vm.$options = Object.create(vm.constructor.options);
  7091. // doing this because it's faster than dynamic enumeration.
  7092. var parentVnode = options._parentVnode;
  7093. opts.parent = options.parent;
  7094. opts._parentVnode = parentVnode;
  7095. var vnodeComponentOptions = parentVnode.componentOptions;
  7096. opts.propsData = vnodeComponentOptions.propsData;
  7097. opts._parentListeners = vnodeComponentOptions.listeners;
  7098. opts._renderChildren = vnodeComponentOptions.children;
  7099. opts._componentTag = vnodeComponentOptions.tag;
  7100. if (options.render) {
  7101. opts.render = options.render;
  7102. opts.staticRenderFns = options.staticRenderFns;
  7103. }
  7104. }
  7105. function resolveConstructorOptions (Ctor) {
  7106. var options = Ctor.options;
  7107. if (Ctor.super) {
  7108. var superOptions = resolveConstructorOptions(Ctor.super);
  7109. var cachedSuperOptions = Ctor.superOptions;
  7110. if (superOptions !== cachedSuperOptions) {
  7111. // super option changed,
  7112. // need to resolve new options.
  7113. Ctor.superOptions = superOptions;
  7114. // check if there are any late-modified/attached options (#4976)
  7115. var modifiedOptions = resolveModifiedOptions(Ctor);
  7116. // update base extend options
  7117. if (modifiedOptions) {
  7118. extend(Ctor.extendOptions, modifiedOptions);
  7119. }
  7120. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  7121. if (options.name) {
  7122. options.components[options.name] = Ctor;
  7123. }
  7124. }
  7125. }
  7126. return options
  7127. }
  7128. function resolveModifiedOptions (Ctor) {
  7129. var modified;
  7130. var latest = Ctor.options;
  7131. var sealed = Ctor.sealedOptions;
  7132. for (var key in latest) {
  7133. if (latest[key] !== sealed[key]) {
  7134. if (!modified) { modified = {}; }
  7135. modified[key] = latest[key];
  7136. }
  7137. }
  7138. return modified
  7139. }
  7140. function Vue (options) {
  7141. if ( true &&
  7142. !(this instanceof Vue)
  7143. ) {
  7144. warn('Vue is a constructor and should be called with the `new` keyword');
  7145. }
  7146. this._init(options);
  7147. }
  7148. initMixin(Vue);
  7149. stateMixin(Vue);
  7150. eventsMixin(Vue);
  7151. lifecycleMixin(Vue);
  7152. renderMixin(Vue);
  7153. /* */
  7154. function initUse (Vue) {
  7155. Vue.use = function (plugin) {
  7156. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  7157. if (installedPlugins.indexOf(plugin) > -1) {
  7158. return this
  7159. }
  7160. // additional parameters
  7161. var args = toArray(arguments, 1);
  7162. args.unshift(this);
  7163. if (typeof plugin.install === 'function') {
  7164. plugin.install.apply(plugin, args);
  7165. } else if (typeof plugin === 'function') {
  7166. plugin.apply(null, args);
  7167. }
  7168. installedPlugins.push(plugin);
  7169. return this
  7170. };
  7171. }
  7172. /* */
  7173. function initMixin$1 (Vue) {
  7174. Vue.mixin = function (mixin) {
  7175. this.options = mergeOptions(this.options, mixin);
  7176. return this
  7177. };
  7178. }
  7179. /* */
  7180. function initExtend (Vue) {
  7181. /**
  7182. * Each instance constructor, including Vue, has a unique
  7183. * cid. This enables us to create wrapped "child
  7184. * constructors" for prototypal inheritance and cache them.
  7185. */
  7186. Vue.cid = 0;
  7187. var cid = 1;
  7188. /**
  7189. * Class inheritance
  7190. */
  7191. Vue.extend = function (extendOptions) {
  7192. extendOptions = extendOptions || {};
  7193. var Super = this;
  7194. var SuperId = Super.cid;
  7195. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  7196. if (cachedCtors[SuperId]) {
  7197. return cachedCtors[SuperId]
  7198. }
  7199. var name = extendOptions.name || Super.options.name;
  7200. if ( true && name) {
  7201. validateComponentName(name);
  7202. }
  7203. var Sub = function VueComponent (options) {
  7204. this._init(options);
  7205. };
  7206. Sub.prototype = Object.create(Super.prototype);
  7207. Sub.prototype.constructor = Sub;
  7208. Sub.cid = cid++;
  7209. Sub.options = mergeOptions(
  7210. Super.options,
  7211. extendOptions
  7212. );
  7213. Sub['super'] = Super;
  7214. // For props and computed properties, we define the proxy getters on
  7215. // the Vue instances at extension time, on the extended prototype. This
  7216. // avoids Object.defineProperty calls for each instance created.
  7217. if (Sub.options.props) {
  7218. initProps$1(Sub);
  7219. }
  7220. if (Sub.options.computed) {
  7221. initComputed$1(Sub);
  7222. }
  7223. // allow further extension/mixin/plugin usage
  7224. Sub.extend = Super.extend;
  7225. Sub.mixin = Super.mixin;
  7226. Sub.use = Super.use;
  7227. // create asset registers, so extended classes
  7228. // can have their private assets too.
  7229. ASSET_TYPES.forEach(function (type) {
  7230. Sub[type] = Super[type];
  7231. });
  7232. // enable recursive self-lookup
  7233. if (name) {
  7234. Sub.options.components[name] = Sub;
  7235. }
  7236. // keep a reference to the super options at extension time.
  7237. // later at instantiation we can check if Super's options have
  7238. // been updated.
  7239. Sub.superOptions = Super.options;
  7240. Sub.extendOptions = extendOptions;
  7241. Sub.sealedOptions = extend({}, Sub.options);
  7242. // cache constructor
  7243. cachedCtors[SuperId] = Sub;
  7244. return Sub
  7245. };
  7246. }
  7247. function initProps$1 (Comp) {
  7248. var props = Comp.options.props;
  7249. for (var key in props) {
  7250. proxy(Comp.prototype, "_props", key);
  7251. }
  7252. }
  7253. function initComputed$1 (Comp) {
  7254. var computed = Comp.options.computed;
  7255. for (var key in computed) {
  7256. defineComputed(Comp.prototype, key, computed[key]);
  7257. }
  7258. }
  7259. /* */
  7260. function initAssetRegisters (Vue) {
  7261. /**
  7262. * Create asset registration methods.
  7263. */
  7264. ASSET_TYPES.forEach(function (type) {
  7265. Vue[type] = function (
  7266. id,
  7267. definition
  7268. ) {
  7269. if (!definition) {
  7270. return this.options[type + 's'][id]
  7271. } else {
  7272. /* istanbul ignore if */
  7273. if ( true && type === 'component') {
  7274. validateComponentName(id);
  7275. }
  7276. if (type === 'component' && isPlainObject(definition)) {
  7277. definition.name = definition.name || id;
  7278. definition = this.options._base.extend(definition);
  7279. }
  7280. if (type === 'directive' && typeof definition === 'function') {
  7281. definition = { bind: definition, update: definition };
  7282. }
  7283. this.options[type + 's'][id] = definition;
  7284. return definition
  7285. }
  7286. };
  7287. });
  7288. }
  7289. /* */
  7290. function getComponentName (opts) {
  7291. return opts && (opts.Ctor.options.name || opts.tag)
  7292. }
  7293. function matches (pattern, name) {
  7294. if (Array.isArray(pattern)) {
  7295. return pattern.indexOf(name) > -1
  7296. } else if (typeof pattern === 'string') {
  7297. return pattern.split(',').indexOf(name) > -1
  7298. } else if (isRegExp(pattern)) {
  7299. return pattern.test(name)
  7300. }
  7301. /* istanbul ignore next */
  7302. return false
  7303. }
  7304. function pruneCache (keepAliveInstance, filter) {
  7305. var cache = keepAliveInstance.cache;
  7306. var keys = keepAliveInstance.keys;
  7307. var _vnode = keepAliveInstance._vnode;
  7308. for (var key in cache) {
  7309. var cachedNode = cache[key];
  7310. if (cachedNode) {
  7311. var name = getComponentName(cachedNode.componentOptions);
  7312. if (name && !filter(name)) {
  7313. pruneCacheEntry(cache, key, keys, _vnode);
  7314. }
  7315. }
  7316. }
  7317. }
  7318. function pruneCacheEntry (
  7319. cache,
  7320. key,
  7321. keys,
  7322. current
  7323. ) {
  7324. var cached$$1 = cache[key];
  7325. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  7326. cached$$1.componentInstance.$destroy();
  7327. }
  7328. cache[key] = null;
  7329. remove(keys, key);
  7330. }
  7331. var patternTypes = [String, RegExp, Array];
  7332. var KeepAlive = {
  7333. name: 'keep-alive',
  7334. abstract: true,
  7335. props: {
  7336. include: patternTypes,
  7337. exclude: patternTypes,
  7338. max: [String, Number]
  7339. },
  7340. created: function created () {
  7341. this.cache = Object.create(null);
  7342. this.keys = [];
  7343. },
  7344. destroyed: function destroyed () {
  7345. for (var key in this.cache) {
  7346. pruneCacheEntry(this.cache, key, this.keys);
  7347. }
  7348. },
  7349. mounted: function mounted () {
  7350. var this$1 = this;
  7351. this.$watch('include', function (val) {
  7352. pruneCache(this$1, function (name) { return matches(val, name); });
  7353. });
  7354. this.$watch('exclude', function (val) {
  7355. pruneCache(this$1, function (name) { return !matches(val, name); });
  7356. });
  7357. },
  7358. render: function render () {
  7359. var slot = this.$slots.default;
  7360. var vnode = getFirstComponentChild(slot);
  7361. var componentOptions = vnode && vnode.componentOptions;
  7362. if (componentOptions) {
  7363. // check pattern
  7364. var name = getComponentName(componentOptions);
  7365. var ref = this;
  7366. var include = ref.include;
  7367. var exclude = ref.exclude;
  7368. if (
  7369. // not included
  7370. (include && (!name || !matches(include, name))) ||
  7371. // excluded
  7372. (exclude && name && matches(exclude, name))
  7373. ) {
  7374. return vnode
  7375. }
  7376. var ref$1 = this;
  7377. var cache = ref$1.cache;
  7378. var keys = ref$1.keys;
  7379. var key = vnode.key == null
  7380. // same constructor may get registered as different local components
  7381. // so cid alone is not enough (#3269)
  7382. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  7383. : vnode.key;
  7384. if (cache[key]) {
  7385. vnode.componentInstance = cache[key].componentInstance;
  7386. // make current key freshest
  7387. remove(keys, key);
  7388. keys.push(key);
  7389. } else {
  7390. cache[key] = vnode;
  7391. keys.push(key);
  7392. // prune oldest entry
  7393. if (this.max && keys.length > parseInt(this.max)) {
  7394. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  7395. }
  7396. }
  7397. vnode.data.keepAlive = true;
  7398. }
  7399. return vnode || (slot && slot[0])
  7400. }
  7401. };
  7402. var builtInComponents = {
  7403. KeepAlive: KeepAlive
  7404. };
  7405. /* */
  7406. function initGlobalAPI (Vue) {
  7407. // config
  7408. var configDef = {};
  7409. configDef.get = function () { return config; };
  7410. if (true) {
  7411. configDef.set = function () {
  7412. warn(
  7413. 'Do not replace the Vue.config object, set individual fields instead.'
  7414. );
  7415. };
  7416. }
  7417. Object.defineProperty(Vue, 'config', configDef);
  7418. // exposed util methods.
  7419. // NOTE: these are not considered part of the public API - avoid relying on
  7420. // them unless you are aware of the risk.
  7421. Vue.util = {
  7422. warn: warn,
  7423. extend: extend,
  7424. mergeOptions: mergeOptions,
  7425. defineReactive: defineReactive$$1
  7426. };
  7427. Vue.set = set;
  7428. Vue.delete = del;
  7429. Vue.nextTick = nextTick;
  7430. // 2.6 explicit observable API
  7431. Vue.observable = function (obj) {
  7432. observe(obj);
  7433. return obj
  7434. };
  7435. Vue.options = Object.create(null);
  7436. ASSET_TYPES.forEach(function (type) {
  7437. Vue.options[type + 's'] = Object.create(null);
  7438. });
  7439. // this is used to identify the "base" constructor to extend all plain-object
  7440. // components with in Weex's multi-instance scenarios.
  7441. Vue.options._base = Vue;
  7442. extend(Vue.options.components, builtInComponents);
  7443. initUse(Vue);
  7444. initMixin$1(Vue);
  7445. initExtend(Vue);
  7446. initAssetRegisters(Vue);
  7447. }
  7448. initGlobalAPI(Vue);
  7449. Object.defineProperty(Vue.prototype, '$isServer', {
  7450. get: isServerRendering
  7451. });
  7452. Object.defineProperty(Vue.prototype, '$ssrContext', {
  7453. get: function get () {
  7454. /* istanbul ignore next */
  7455. return this.$vnode && this.$vnode.ssrContext
  7456. }
  7457. });
  7458. // expose FunctionalRenderContext for ssr runtime helper installation
  7459. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  7460. value: FunctionalRenderContext
  7461. });
  7462. Vue.version = '2.6.11';
  7463. /**
  7464. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  7465. */
  7466. var ARRAYTYPE = '[object Array]';
  7467. var OBJECTTYPE = '[object Object]';
  7468. // const FUNCTIONTYPE = '[object Function]'
  7469. function diff(current, pre) {
  7470. var result = {};
  7471. syncKeys(current, pre);
  7472. _diff(current, pre, '', result);
  7473. return result
  7474. }
  7475. function syncKeys(current, pre) {
  7476. if (current === pre) { return }
  7477. var rootCurrentType = type(current);
  7478. var rootPreType = type(pre);
  7479. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  7480. if(Object.keys(current).length >= Object.keys(pre).length){
  7481. for (var key in pre) {
  7482. var currentValue = current[key];
  7483. if (currentValue === undefined) {
  7484. current[key] = null;
  7485. } else {
  7486. syncKeys(currentValue, pre[key]);
  7487. }
  7488. }
  7489. }
  7490. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  7491. if (current.length >= pre.length) {
  7492. pre.forEach(function (item, index) {
  7493. syncKeys(current[index], item);
  7494. });
  7495. }
  7496. }
  7497. }
  7498. function _diff(current, pre, path, result) {
  7499. if (current === pre) { return }
  7500. var rootCurrentType = type(current);
  7501. var rootPreType = type(pre);
  7502. if (rootCurrentType == OBJECTTYPE) {
  7503. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  7504. setResult(result, path, current);
  7505. } else {
  7506. var loop = function ( key ) {
  7507. var currentValue = current[key];
  7508. var preValue = pre[key];
  7509. var currentType = type(currentValue);
  7510. var preType = type(preValue);
  7511. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  7512. if (currentValue !== pre[key]) {
  7513. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  7514. }
  7515. } else if (currentType == ARRAYTYPE) {
  7516. if (preType != ARRAYTYPE) {
  7517. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  7518. } else {
  7519. if (currentValue.length < preValue.length) {
  7520. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  7521. } else {
  7522. currentValue.forEach(function (item, index) {
  7523. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  7524. });
  7525. }
  7526. }
  7527. } else if (currentType == OBJECTTYPE) {
  7528. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  7529. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  7530. } else {
  7531. for (var subKey in currentValue) {
  7532. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  7533. }
  7534. }
  7535. }
  7536. };
  7537. for (var key in current) loop( key );
  7538. }
  7539. } else if (rootCurrentType == ARRAYTYPE) {
  7540. if (rootPreType != ARRAYTYPE) {
  7541. setResult(result, path, current);
  7542. } else {
  7543. if (current.length < pre.length) {
  7544. setResult(result, path, current);
  7545. } else {
  7546. current.forEach(function (item, index) {
  7547. _diff(item, pre[index], path + '[' + index + ']', result);
  7548. });
  7549. }
  7550. }
  7551. } else {
  7552. setResult(result, path, current);
  7553. }
  7554. }
  7555. function setResult(result, k, v) {
  7556. // if (type(v) != FUNCTIONTYPE) {
  7557. result[k] = v;
  7558. // }
  7559. }
  7560. function type(obj) {
  7561. return Object.prototype.toString.call(obj)
  7562. }
  7563. /* */
  7564. function flushCallbacks$1(vm) {
  7565. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  7566. if (Object({"VUE_APP_NAME":"alhj-wx","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  7567. var mpInstance = vm.$scope;
  7568. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  7569. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  7570. }
  7571. var copies = vm.__next_tick_callbacks.slice(0);
  7572. vm.__next_tick_callbacks.length = 0;
  7573. for (var i = 0; i < copies.length; i++) {
  7574. copies[i]();
  7575. }
  7576. }
  7577. }
  7578. function hasRenderWatcher(vm) {
  7579. return queue.find(function (watcher) { return vm._watcher === watcher; })
  7580. }
  7581. function nextTick$1(vm, cb) {
  7582. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  7583. //2.nextTick 之前存在 render watcher
  7584. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  7585. if(Object({"VUE_APP_NAME":"alhj-wx","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  7586. var mpInstance = vm.$scope;
  7587. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  7588. ']:nextVueTick');
  7589. }
  7590. return nextTick(cb, vm)
  7591. }else{
  7592. if(Object({"VUE_APP_NAME":"alhj-wx","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  7593. var mpInstance$1 = vm.$scope;
  7594. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  7595. ']:nextMPTick');
  7596. }
  7597. }
  7598. var _resolve;
  7599. if (!vm.__next_tick_callbacks) {
  7600. vm.__next_tick_callbacks = [];
  7601. }
  7602. vm.__next_tick_callbacks.push(function () {
  7603. if (cb) {
  7604. try {
  7605. cb.call(vm);
  7606. } catch (e) {
  7607. handleError(e, vm, 'nextTick');
  7608. }
  7609. } else if (_resolve) {
  7610. _resolve(vm);
  7611. }
  7612. });
  7613. // $flow-disable-line
  7614. if (!cb && typeof Promise !== 'undefined') {
  7615. return new Promise(function (resolve) {
  7616. _resolve = resolve;
  7617. })
  7618. }
  7619. }
  7620. /* */
  7621. function cloneWithData(vm) {
  7622. // 确保当前 vm 所有数据被同步
  7623. var ret = Object.create(null);
  7624. var dataKeys = [].concat(
  7625. Object.keys(vm._data || {}),
  7626. Object.keys(vm._computedWatchers || {}));
  7627. dataKeys.reduce(function(ret, key) {
  7628. ret[key] = vm[key];
  7629. return ret
  7630. }, ret);
  7631. // vue-composition-api
  7632. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  7633. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  7634. if (rawBindings) {
  7635. Object.keys(rawBindings).forEach(function (key) {
  7636. ret[key] = vm[key];
  7637. });
  7638. }
  7639. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  7640. Object.assign(ret, vm.$mp.data || {});
  7641. if (
  7642. Array.isArray(vm.$options.behaviors) &&
  7643. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  7644. ) { //form-field
  7645. ret['name'] = vm.name;
  7646. ret['value'] = vm.value;
  7647. }
  7648. return JSON.parse(JSON.stringify(ret))
  7649. }
  7650. var patch = function(oldVnode, vnode) {
  7651. var this$1 = this;
  7652. if (vnode === null) { //destroy
  7653. return
  7654. }
  7655. if (this.mpType === 'page' || this.mpType === 'component') {
  7656. var mpInstance = this.$scope;
  7657. var data = Object.create(null);
  7658. try {
  7659. data = cloneWithData(this);
  7660. } catch (err) {
  7661. console.error(err);
  7662. }
  7663. data.__webviewId__ = mpInstance.data.__webviewId__;
  7664. var mpData = Object.create(null);
  7665. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  7666. mpData[key] = mpInstance.data[key];
  7667. });
  7668. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  7669. if (Object.keys(diffData).length) {
  7670. if (Object({"VUE_APP_NAME":"alhj-wx","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  7671. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  7672. ']差量更新',
  7673. JSON.stringify(diffData));
  7674. }
  7675. this.__next_tick_pending = true;
  7676. mpInstance.setData(diffData, function () {
  7677. this$1.__next_tick_pending = false;
  7678. flushCallbacks$1(this$1);
  7679. });
  7680. } else {
  7681. flushCallbacks$1(this);
  7682. }
  7683. }
  7684. };
  7685. /* */
  7686. function createEmptyRender() {
  7687. }
  7688. function mountComponent$1(
  7689. vm,
  7690. el,
  7691. hydrating
  7692. ) {
  7693. if (!vm.mpType) {//main.js 中的 new Vue
  7694. return vm
  7695. }
  7696. if (vm.mpType === 'app') {
  7697. vm.$options.render = createEmptyRender;
  7698. }
  7699. if (!vm.$options.render) {
  7700. vm.$options.render = createEmptyRender;
  7701. if (true) {
  7702. /* istanbul ignore if */
  7703. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  7704. vm.$options.el || el) {
  7705. warn(
  7706. 'You are using the runtime-only build of Vue where the template ' +
  7707. 'compiler is not available. Either pre-compile the templates into ' +
  7708. 'render functions, or use the compiler-included build.',
  7709. vm
  7710. );
  7711. } else {
  7712. warn(
  7713. 'Failed to mount component: template or render function not defined.',
  7714. vm
  7715. );
  7716. }
  7717. }
  7718. }
  7719. !vm._$fallback && callHook(vm, 'beforeMount');
  7720. var updateComponent = function () {
  7721. vm._update(vm._render(), hydrating);
  7722. };
  7723. // we set this to vm._watcher inside the watcher's constructor
  7724. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  7725. // component's mounted hook), which relies on vm._watcher being already defined
  7726. new Watcher(vm, updateComponent, noop, {
  7727. before: function before() {
  7728. if (vm._isMounted && !vm._isDestroyed) {
  7729. callHook(vm, 'beforeUpdate');
  7730. }
  7731. }
  7732. }, true /* isRenderWatcher */);
  7733. hydrating = false;
  7734. return vm
  7735. }
  7736. /* */
  7737. function renderClass (
  7738. staticClass,
  7739. dynamicClass
  7740. ) {
  7741. if (isDef(staticClass) || isDef(dynamicClass)) {
  7742. return concat(staticClass, stringifyClass(dynamicClass))
  7743. }
  7744. /* istanbul ignore next */
  7745. return ''
  7746. }
  7747. function concat (a, b) {
  7748. return a ? b ? (a + ' ' + b) : a : (b || '')
  7749. }
  7750. function stringifyClass (value) {
  7751. if (Array.isArray(value)) {
  7752. return stringifyArray(value)
  7753. }
  7754. if (isObject(value)) {
  7755. return stringifyObject(value)
  7756. }
  7757. if (typeof value === 'string') {
  7758. return value
  7759. }
  7760. /* istanbul ignore next */
  7761. return ''
  7762. }
  7763. function stringifyArray (value) {
  7764. var res = '';
  7765. var stringified;
  7766. for (var i = 0, l = value.length; i < l; i++) {
  7767. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  7768. if (res) { res += ' '; }
  7769. res += stringified;
  7770. }
  7771. }
  7772. return res
  7773. }
  7774. function stringifyObject (value) {
  7775. var res = '';
  7776. for (var key in value) {
  7777. if (value[key]) {
  7778. if (res) { res += ' '; }
  7779. res += key;
  7780. }
  7781. }
  7782. return res
  7783. }
  7784. /* */
  7785. var parseStyleText = cached(function (cssText) {
  7786. var res = {};
  7787. var listDelimiter = /;(?![^(]*\))/g;
  7788. var propertyDelimiter = /:(.+)/;
  7789. cssText.split(listDelimiter).forEach(function (item) {
  7790. if (item) {
  7791. var tmp = item.split(propertyDelimiter);
  7792. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  7793. }
  7794. });
  7795. return res
  7796. });
  7797. // normalize possible array / string values into Object
  7798. function normalizeStyleBinding (bindingStyle) {
  7799. if (Array.isArray(bindingStyle)) {
  7800. return toObject(bindingStyle)
  7801. }
  7802. if (typeof bindingStyle === 'string') {
  7803. return parseStyleText(bindingStyle)
  7804. }
  7805. return bindingStyle
  7806. }
  7807. /* */
  7808. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  7809. function getTarget(obj, path) {
  7810. var parts = path.split('.');
  7811. var key = parts[0];
  7812. if (key.indexOf('__$n') === 0) { //number index
  7813. key = parseInt(key.replace('__$n', ''));
  7814. }
  7815. if (parts.length === 1) {
  7816. return obj[key]
  7817. }
  7818. return getTarget(obj[key], parts.slice(1).join('.'))
  7819. }
  7820. function internalMixin(Vue) {
  7821. Vue.config.errorHandler = function(err, vm, info) {
  7822. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  7823. console.error(err);
  7824. /* eslint-disable no-undef */
  7825. var app = typeof getApp === 'function' && getApp();
  7826. if (app && app.onError) {
  7827. app.onError(err);
  7828. }
  7829. };
  7830. var oldEmit = Vue.prototype.$emit;
  7831. Vue.prototype.$emit = function(event) {
  7832. if (this.$scope && event) {
  7833. (this.$scope['_triggerEvent'] || this.$scope['triggerEvent']).call(this.$scope, event, {
  7834. __args__: toArray(arguments, 1)
  7835. });
  7836. }
  7837. return oldEmit.apply(this, arguments)
  7838. };
  7839. Vue.prototype.$nextTick = function(fn) {
  7840. return nextTick$1(this, fn)
  7841. };
  7842. MP_METHODS.forEach(function (method) {
  7843. Vue.prototype[method] = function(args) {
  7844. if (this.$scope && this.$scope[method]) {
  7845. return this.$scope[method](args)
  7846. }
  7847. // mp-alipay
  7848. if (typeof my === 'undefined') {
  7849. return
  7850. }
  7851. if (method === 'createSelectorQuery') {
  7852. /* eslint-disable no-undef */
  7853. return my.createSelectorQuery(args)
  7854. } else if (method === 'createIntersectionObserver') {
  7855. /* eslint-disable no-undef */
  7856. return my.createIntersectionObserver(args)
  7857. }
  7858. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  7859. };
  7860. });
  7861. Vue.prototype.__init_provide = initProvide;
  7862. Vue.prototype.__init_injections = initInjections;
  7863. Vue.prototype.__call_hook = function(hook, args) {
  7864. var vm = this;
  7865. // #7573 disable dep collection when invoking lifecycle hooks
  7866. pushTarget();
  7867. var handlers = vm.$options[hook];
  7868. var info = hook + " hook";
  7869. var ret;
  7870. if (handlers) {
  7871. for (var i = 0, j = handlers.length; i < j; i++) {
  7872. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  7873. }
  7874. }
  7875. if (vm._hasHookEvent) {
  7876. vm.$emit('hook:' + hook, args);
  7877. }
  7878. popTarget();
  7879. return ret
  7880. };
  7881. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  7882. if (Array.isArray(modifiers)) {
  7883. if (modifiers.indexOf('trim') !== -1) {
  7884. value = value.trim();
  7885. }
  7886. if (modifiers.indexOf('number') !== -1) {
  7887. value = this._n(value);
  7888. }
  7889. }
  7890. if (!target) {
  7891. target = this;
  7892. }
  7893. // 解决动态属性添加
  7894. Vue.set(target, key, value);
  7895. };
  7896. Vue.prototype.__set_sync = function(target, key, value) {
  7897. if (!target) {
  7898. target = this;
  7899. }
  7900. // 解决动态属性添加
  7901. Vue.set(target, key, value);
  7902. };
  7903. Vue.prototype.__get_orig = function(item) {
  7904. if (isPlainObject(item)) {
  7905. return item['$orig'] || item
  7906. }
  7907. return item
  7908. };
  7909. Vue.prototype.__get_value = function(dataPath, target) {
  7910. return getTarget(target || this, dataPath)
  7911. };
  7912. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  7913. return renderClass(staticClass, dynamicClass)
  7914. };
  7915. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  7916. if (!dynamicStyle && !staticStyle) {
  7917. return ''
  7918. }
  7919. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  7920. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  7921. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  7922. };
  7923. Vue.prototype.__map = function(val, iteratee) {
  7924. //TODO 暂不考虑 string
  7925. var ret, i, l, keys, key;
  7926. if (Array.isArray(val)) {
  7927. ret = new Array(val.length);
  7928. for (i = 0, l = val.length; i < l; i++) {
  7929. ret[i] = iteratee(val[i], i);
  7930. }
  7931. return ret
  7932. } else if (isObject(val)) {
  7933. keys = Object.keys(val);
  7934. ret = Object.create(null);
  7935. for (i = 0, l = keys.length; i < l; i++) {
  7936. key = keys[i];
  7937. ret[key] = iteratee(val[key], key, i);
  7938. }
  7939. return ret
  7940. } else if (typeof val === 'number') {
  7941. ret = new Array(val);
  7942. for (i = 0, l = val; i < l; i++) {
  7943. // 第一个参数暂时仍和小程序一致
  7944. ret[i] = iteratee(i, i);
  7945. }
  7946. return ret
  7947. }
  7948. return []
  7949. };
  7950. }
  7951. /* */
  7952. var LIFECYCLE_HOOKS$1 = [
  7953. //App
  7954. 'onLaunch',
  7955. 'onShow',
  7956. 'onHide',
  7957. 'onUniNViewMessage',
  7958. 'onPageNotFound',
  7959. 'onThemeChange',
  7960. 'onError',
  7961. 'onUnhandledRejection',
  7962. //Page
  7963. 'onInit',
  7964. 'onLoad',
  7965. // 'onShow',
  7966. 'onReady',
  7967. // 'onHide',
  7968. 'onUnload',
  7969. 'onPullDownRefresh',
  7970. 'onReachBottom',
  7971. 'onTabItemTap',
  7972. 'onAddToFavorites',
  7973. 'onShareTimeline',
  7974. 'onShareAppMessage',
  7975. 'onResize',
  7976. 'onPageScroll',
  7977. 'onNavigationBarButtonTap',
  7978. 'onBackPress',
  7979. 'onNavigationBarSearchInputChanged',
  7980. 'onNavigationBarSearchInputConfirmed',
  7981. 'onNavigationBarSearchInputClicked',
  7982. //Component
  7983. // 'onReady', // 兼容旧版本,应该移除该事件
  7984. 'onPageShow',
  7985. 'onPageHide',
  7986. 'onPageResize'
  7987. ];
  7988. function lifecycleMixin$1(Vue) {
  7989. //fixed vue-class-component
  7990. var oldExtend = Vue.extend;
  7991. Vue.extend = function(extendOptions) {
  7992. extendOptions = extendOptions || {};
  7993. var methods = extendOptions.methods;
  7994. if (methods) {
  7995. Object.keys(methods).forEach(function (methodName) {
  7996. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  7997. extendOptions[methodName] = methods[methodName];
  7998. delete methods[methodName];
  7999. }
  8000. });
  8001. }
  8002. return oldExtend.call(this, extendOptions)
  8003. };
  8004. var strategies = Vue.config.optionMergeStrategies;
  8005. var mergeHook = strategies.created;
  8006. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  8007. strategies[hook] = mergeHook;
  8008. });
  8009. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  8010. }
  8011. /* */
  8012. // install platform patch function
  8013. Vue.prototype.__patch__ = patch;
  8014. // public mount method
  8015. Vue.prototype.$mount = function(
  8016. el ,
  8017. hydrating
  8018. ) {
  8019. return mountComponent$1(this, el, hydrating)
  8020. };
  8021. lifecycleMixin$1(Vue);
  8022. internalMixin(Vue);
  8023. /* */
  8024. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  8025. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 2)))
  8026. /***/ }),
  8027. /* 5 */
  8028. /*!***********************************************!*\
  8029. !*** C:/shop-program/alhj/alhj-wx/pages.json ***!
  8030. \***********************************************/
  8031. /*! no static exports found */
  8032. /***/ (function(module, exports) {
  8033. /***/ }),
  8034. /* 6 */,
  8035. /* 7 */,
  8036. /* 8 */,
  8037. /* 9 */,
  8038. /* 10 */,
  8039. /* 11 */
  8040. /*!**********************************************************************************************************!*\
  8041. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  8042. \**********************************************************************************************************/
  8043. /*! exports provided: default */
  8044. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8045. "use strict";
  8046. __webpack_require__.r(__webpack_exports__);
  8047. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  8048. /* globals __VUE_SSR_CONTEXT__ */
  8049. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  8050. // This module is a runtime utility for cleaner component module output and will
  8051. // be included in the final webpack user bundle.
  8052. function normalizeComponent (
  8053. scriptExports,
  8054. render,
  8055. staticRenderFns,
  8056. functionalTemplate,
  8057. injectStyles,
  8058. scopeId,
  8059. moduleIdentifier, /* server only */
  8060. shadowMode, /* vue-cli only */
  8061. components, // fixed by xxxxxx auto components
  8062. renderjs // fixed by xxxxxx renderjs
  8063. ) {
  8064. // Vue.extend constructor export interop
  8065. var options = typeof scriptExports === 'function'
  8066. ? scriptExports.options
  8067. : scriptExports
  8068. // fixed by xxxxxx auto components
  8069. if (components) {
  8070. if (!options.components) {
  8071. options.components = {}
  8072. }
  8073. var hasOwn = Object.prototype.hasOwnProperty
  8074. for (var name in components) {
  8075. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  8076. options.components[name] = components[name]
  8077. }
  8078. }
  8079. }
  8080. // fixed by xxxxxx renderjs
  8081. if (renderjs) {
  8082. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  8083. this[renderjs.__module] = this
  8084. });
  8085. (options.mixins || (options.mixins = [])).push(renderjs)
  8086. }
  8087. // render functions
  8088. if (render) {
  8089. options.render = render
  8090. options.staticRenderFns = staticRenderFns
  8091. options._compiled = true
  8092. }
  8093. // functional template
  8094. if (functionalTemplate) {
  8095. options.functional = true
  8096. }
  8097. // scopedId
  8098. if (scopeId) {
  8099. options._scopeId = 'data-v-' + scopeId
  8100. }
  8101. var hook
  8102. if (moduleIdentifier) { // server build
  8103. hook = function (context) {
  8104. // 2.3 injection
  8105. context =
  8106. context || // cached call
  8107. (this.$vnode && this.$vnode.ssrContext) || // stateful
  8108. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  8109. // 2.2 with runInNewContext: true
  8110. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  8111. context = __VUE_SSR_CONTEXT__
  8112. }
  8113. // inject component styles
  8114. if (injectStyles) {
  8115. injectStyles.call(this, context)
  8116. }
  8117. // register component module identifier for async chunk inferrence
  8118. if (context && context._registeredComponents) {
  8119. context._registeredComponents.add(moduleIdentifier)
  8120. }
  8121. }
  8122. // used by ssr in case component is cached and beforeCreate
  8123. // never gets called
  8124. options._ssrRegister = hook
  8125. } else if (injectStyles) {
  8126. hook = shadowMode
  8127. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  8128. : injectStyles
  8129. }
  8130. if (hook) {
  8131. if (options.functional) {
  8132. // for template-only hot-reload because in that case the render fn doesn't
  8133. // go through the normalizer
  8134. options._injectStyles = hook
  8135. // register for functioal component in vue file
  8136. var originalRender = options.render
  8137. options.render = function renderWithStyleInjection (h, context) {
  8138. hook.call(context)
  8139. return originalRender(h, context)
  8140. }
  8141. } else {
  8142. // inject component registration as beforeCreate hook
  8143. var existing = options.beforeCreate
  8144. options.beforeCreate = existing
  8145. ? [].concat(existing, hook)
  8146. : [hook]
  8147. }
  8148. }
  8149. return {
  8150. exports: scriptExports,
  8151. options: options
  8152. }
  8153. }
  8154. /***/ }),
  8155. /* 12 */
  8156. /*!***************************************************!*\
  8157. !*** C:/shop-program/alhj/alhj-wx/store/index.js ***!
  8158. \***************************************************/
  8159. /*! no static exports found */
  8160. /***/ (function(module, exports, __webpack_require__) {
  8161. "use strict";
  8162. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 4));
  8163. var _vuex = _interopRequireDefault(__webpack_require__(/*! vuex */ 13));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  8164. //1.安装插件
  8165. _vue.default.use(_vuex.default);
  8166. //2.创建对象
  8167. var store = new _vuex.default.Store({
  8168. state: {
  8169. userinfo: '',
  8170. admin: 0 },
  8171. mutations: {
  8172. // 获取用户信息
  8173. getUserInfo: function getUserInfo(state, data) {
  8174. state.userinfo = data;
  8175. },
  8176. getAdmin: function getAdmin(state, data) {
  8177. state.admin = data;
  8178. } } });
  8179. //3.导出使用
  8180. var _default = store;exports.default = _default;
  8181. /***/ }),
  8182. /* 13 */
  8183. /*!**************************************************************************************!*\
  8184. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vuex3/dist/vuex.common.js ***!
  8185. \**************************************************************************************/
  8186. /*! no static exports found */
  8187. /***/ (function(module, exports, __webpack_require__) {
  8188. "use strict";
  8189. /* WEBPACK VAR INJECTION */(function(global) {/*!
  8190. * vuex v3.6.2
  8191. * (c) 2021 Evan You
  8192. * @license MIT
  8193. */
  8194. function applyMixin (Vue) {
  8195. var version = Number(Vue.version.split('.')[0]);
  8196. if (version >= 2) {
  8197. Vue.mixin({ beforeCreate: vuexInit });
  8198. } else {
  8199. // override init and inject vuex init procedure
  8200. // for 1.x backwards compatibility.
  8201. var _init = Vue.prototype._init;
  8202. Vue.prototype._init = function (options) {
  8203. if ( options === void 0 ) options = {};
  8204. options.init = options.init
  8205. ? [vuexInit].concat(options.init)
  8206. : vuexInit;
  8207. _init.call(this, options);
  8208. };
  8209. }
  8210. /**
  8211. * Vuex init hook, injected into each instances init hooks list.
  8212. */
  8213. function vuexInit () {
  8214. var options = this.$options;
  8215. // store injection
  8216. if (options.store) {
  8217. this.$store = typeof options.store === 'function'
  8218. ? options.store()
  8219. : options.store;
  8220. } else if (options.parent && options.parent.$store) {
  8221. this.$store = options.parent.$store;
  8222. }
  8223. }
  8224. }
  8225. var target = typeof window !== 'undefined'
  8226. ? window
  8227. : typeof global !== 'undefined'
  8228. ? global
  8229. : {};
  8230. var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  8231. function devtoolPlugin (store) {
  8232. if (!devtoolHook) { return }
  8233. store._devtoolHook = devtoolHook;
  8234. devtoolHook.emit('vuex:init', store);
  8235. devtoolHook.on('vuex:travel-to-state', function (targetState) {
  8236. store.replaceState(targetState);
  8237. });
  8238. store.subscribe(function (mutation, state) {
  8239. devtoolHook.emit('vuex:mutation', mutation, state);
  8240. }, { prepend: true });
  8241. store.subscribeAction(function (action, state) {
  8242. devtoolHook.emit('vuex:action', action, state);
  8243. }, { prepend: true });
  8244. }
  8245. /**
  8246. * Get the first item that pass the test
  8247. * by second argument function
  8248. *
  8249. * @param {Array} list
  8250. * @param {Function} f
  8251. * @return {*}
  8252. */
  8253. function find (list, f) {
  8254. return list.filter(f)[0]
  8255. }
  8256. /**
  8257. * Deep copy the given object considering circular structure.
  8258. * This function caches all nested objects and its copies.
  8259. * If it detects circular structure, use cached copy to avoid infinite loop.
  8260. *
  8261. * @param {*} obj
  8262. * @param {Array<Object>} cache
  8263. * @return {*}
  8264. */
  8265. function deepCopy (obj, cache) {
  8266. if ( cache === void 0 ) cache = [];
  8267. // just return if obj is immutable value
  8268. if (obj === null || typeof obj !== 'object') {
  8269. return obj
  8270. }
  8271. // if obj is hit, it is in circular structure
  8272. var hit = find(cache, function (c) { return c.original === obj; });
  8273. if (hit) {
  8274. return hit.copy
  8275. }
  8276. var copy = Array.isArray(obj) ? [] : {};
  8277. // put the copy into cache at first
  8278. // because we want to refer it in recursive deepCopy
  8279. cache.push({
  8280. original: obj,
  8281. copy: copy
  8282. });
  8283. Object.keys(obj).forEach(function (key) {
  8284. copy[key] = deepCopy(obj[key], cache);
  8285. });
  8286. return copy
  8287. }
  8288. /**
  8289. * forEach for object
  8290. */
  8291. function forEachValue (obj, fn) {
  8292. Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
  8293. }
  8294. function isObject (obj) {
  8295. return obj !== null && typeof obj === 'object'
  8296. }
  8297. function isPromise (val) {
  8298. return val && typeof val.then === 'function'
  8299. }
  8300. function assert (condition, msg) {
  8301. if (!condition) { throw new Error(("[vuex] " + msg)) }
  8302. }
  8303. function partial (fn, arg) {
  8304. return function () {
  8305. return fn(arg)
  8306. }
  8307. }
  8308. // Base data struct for store's module, package with some attribute and method
  8309. var Module = function Module (rawModule, runtime) {
  8310. this.runtime = runtime;
  8311. // Store some children item
  8312. this._children = Object.create(null);
  8313. // Store the origin module object which passed by programmer
  8314. this._rawModule = rawModule;
  8315. var rawState = rawModule.state;
  8316. // Store the origin module's state
  8317. this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
  8318. };
  8319. var prototypeAccessors = { namespaced: { configurable: true } };
  8320. prototypeAccessors.namespaced.get = function () {
  8321. return !!this._rawModule.namespaced
  8322. };
  8323. Module.prototype.addChild = function addChild (key, module) {
  8324. this._children[key] = module;
  8325. };
  8326. Module.prototype.removeChild = function removeChild (key) {
  8327. delete this._children[key];
  8328. };
  8329. Module.prototype.getChild = function getChild (key) {
  8330. return this._children[key]
  8331. };
  8332. Module.prototype.hasChild = function hasChild (key) {
  8333. return key in this._children
  8334. };
  8335. Module.prototype.update = function update (rawModule) {
  8336. this._rawModule.namespaced = rawModule.namespaced;
  8337. if (rawModule.actions) {
  8338. this._rawModule.actions = rawModule.actions;
  8339. }
  8340. if (rawModule.mutations) {
  8341. this._rawModule.mutations = rawModule.mutations;
  8342. }
  8343. if (rawModule.getters) {
  8344. this._rawModule.getters = rawModule.getters;
  8345. }
  8346. };
  8347. Module.prototype.forEachChild = function forEachChild (fn) {
  8348. forEachValue(this._children, fn);
  8349. };
  8350. Module.prototype.forEachGetter = function forEachGetter (fn) {
  8351. if (this._rawModule.getters) {
  8352. forEachValue(this._rawModule.getters, fn);
  8353. }
  8354. };
  8355. Module.prototype.forEachAction = function forEachAction (fn) {
  8356. if (this._rawModule.actions) {
  8357. forEachValue(this._rawModule.actions, fn);
  8358. }
  8359. };
  8360. Module.prototype.forEachMutation = function forEachMutation (fn) {
  8361. if (this._rawModule.mutations) {
  8362. forEachValue(this._rawModule.mutations, fn);
  8363. }
  8364. };
  8365. Object.defineProperties( Module.prototype, prototypeAccessors );
  8366. var ModuleCollection = function ModuleCollection (rawRootModule) {
  8367. // register root module (Vuex.Store options)
  8368. this.register([], rawRootModule, false);
  8369. };
  8370. ModuleCollection.prototype.get = function get (path) {
  8371. return path.reduce(function (module, key) {
  8372. return module.getChild(key)
  8373. }, this.root)
  8374. };
  8375. ModuleCollection.prototype.getNamespace = function getNamespace (path) {
  8376. var module = this.root;
  8377. return path.reduce(function (namespace, key) {
  8378. module = module.getChild(key);
  8379. return namespace + (module.namespaced ? key + '/' : '')
  8380. }, '')
  8381. };
  8382. ModuleCollection.prototype.update = function update$1 (rawRootModule) {
  8383. update([], this.root, rawRootModule);
  8384. };
  8385. ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
  8386. var this$1 = this;
  8387. if ( runtime === void 0 ) runtime = true;
  8388. if ((true)) {
  8389. assertRawModule(path, rawModule);
  8390. }
  8391. var newModule = new Module(rawModule, runtime);
  8392. if (path.length === 0) {
  8393. this.root = newModule;
  8394. } else {
  8395. var parent = this.get(path.slice(0, -1));
  8396. parent.addChild(path[path.length - 1], newModule);
  8397. }
  8398. // register nested modules
  8399. if (rawModule.modules) {
  8400. forEachValue(rawModule.modules, function (rawChildModule, key) {
  8401. this$1.register(path.concat(key), rawChildModule, runtime);
  8402. });
  8403. }
  8404. };
  8405. ModuleCollection.prototype.unregister = function unregister (path) {
  8406. var parent = this.get(path.slice(0, -1));
  8407. var key = path[path.length - 1];
  8408. var child = parent.getChild(key);
  8409. if (!child) {
  8410. if ((true)) {
  8411. console.warn(
  8412. "[vuex] trying to unregister module '" + key + "', which is " +
  8413. "not registered"
  8414. );
  8415. }
  8416. return
  8417. }
  8418. if (!child.runtime) {
  8419. return
  8420. }
  8421. parent.removeChild(key);
  8422. };
  8423. ModuleCollection.prototype.isRegistered = function isRegistered (path) {
  8424. var parent = this.get(path.slice(0, -1));
  8425. var key = path[path.length - 1];
  8426. if (parent) {
  8427. return parent.hasChild(key)
  8428. }
  8429. return false
  8430. };
  8431. function update (path, targetModule, newModule) {
  8432. if ((true)) {
  8433. assertRawModule(path, newModule);
  8434. }
  8435. // update target module
  8436. targetModule.update(newModule);
  8437. // update nested modules
  8438. if (newModule.modules) {
  8439. for (var key in newModule.modules) {
  8440. if (!targetModule.getChild(key)) {
  8441. if ((true)) {
  8442. console.warn(
  8443. "[vuex] trying to add a new module '" + key + "' on hot reloading, " +
  8444. 'manual reload is needed'
  8445. );
  8446. }
  8447. return
  8448. }
  8449. update(
  8450. path.concat(key),
  8451. targetModule.getChild(key),
  8452. newModule.modules[key]
  8453. );
  8454. }
  8455. }
  8456. }
  8457. var functionAssert = {
  8458. assert: function (value) { return typeof value === 'function'; },
  8459. expected: 'function'
  8460. };
  8461. var objectAssert = {
  8462. assert: function (value) { return typeof value === 'function' ||
  8463. (typeof value === 'object' && typeof value.handler === 'function'); },
  8464. expected: 'function or object with "handler" function'
  8465. };
  8466. var assertTypes = {
  8467. getters: functionAssert,
  8468. mutations: functionAssert,
  8469. actions: objectAssert
  8470. };
  8471. function assertRawModule (path, rawModule) {
  8472. Object.keys(assertTypes).forEach(function (key) {
  8473. if (!rawModule[key]) { return }
  8474. var assertOptions = assertTypes[key];
  8475. forEachValue(rawModule[key], function (value, type) {
  8476. assert(
  8477. assertOptions.assert(value),
  8478. makeAssertionMessage(path, key, type, value, assertOptions.expected)
  8479. );
  8480. });
  8481. });
  8482. }
  8483. function makeAssertionMessage (path, key, type, value, expected) {
  8484. var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
  8485. if (path.length > 0) {
  8486. buf += " in module \"" + (path.join('.')) + "\"";
  8487. }
  8488. buf += " is " + (JSON.stringify(value)) + ".";
  8489. return buf
  8490. }
  8491. var Vue; // bind on install
  8492. var Store = function Store (options) {
  8493. var this$1 = this;
  8494. if ( options === void 0 ) options = {};
  8495. // Auto install if it is not done yet and `window` has `Vue`.
  8496. // To allow users to avoid auto-installation in some cases,
  8497. // this code should be placed here. See #731
  8498. if (!Vue && typeof window !== 'undefined' && window.Vue) {
  8499. install(window.Vue);
  8500. }
  8501. if ((true)) {
  8502. assert(Vue, "must call Vue.use(Vuex) before creating a store instance.");
  8503. assert(typeof Promise !== 'undefined', "vuex requires a Promise polyfill in this browser.");
  8504. assert(this instanceof Store, "store must be called with the new operator.");
  8505. }
  8506. var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
  8507. var strict = options.strict; if ( strict === void 0 ) strict = false;
  8508. // store internal state
  8509. this._committing = false;
  8510. this._actions = Object.create(null);
  8511. this._actionSubscribers = [];
  8512. this._mutations = Object.create(null);
  8513. this._wrappedGetters = Object.create(null);
  8514. this._modules = new ModuleCollection(options);
  8515. this._modulesNamespaceMap = Object.create(null);
  8516. this._subscribers = [];
  8517. this._watcherVM = new Vue();
  8518. this._makeLocalGettersCache = Object.create(null);
  8519. // bind commit and dispatch to self
  8520. var store = this;
  8521. var ref = this;
  8522. var dispatch = ref.dispatch;
  8523. var commit = ref.commit;
  8524. this.dispatch = function boundDispatch (type, payload) {
  8525. return dispatch.call(store, type, payload)
  8526. };
  8527. this.commit = function boundCommit (type, payload, options) {
  8528. return commit.call(store, type, payload, options)
  8529. };
  8530. // strict mode
  8531. this.strict = strict;
  8532. var state = this._modules.root.state;
  8533. // init root module.
  8534. // this also recursively registers all sub-modules
  8535. // and collects all module getters inside this._wrappedGetters
  8536. installModule(this, state, [], this._modules.root);
  8537. // initialize the store vm, which is responsible for the reactivity
  8538. // (also registers _wrappedGetters as computed properties)
  8539. resetStoreVM(this, state);
  8540. // apply plugins
  8541. plugins.forEach(function (plugin) { return plugin(this$1); });
  8542. var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
  8543. if (useDevtools) {
  8544. devtoolPlugin(this);
  8545. }
  8546. };
  8547. var prototypeAccessors$1 = { state: { configurable: true } };
  8548. prototypeAccessors$1.state.get = function () {
  8549. return this._vm._data.$$state
  8550. };
  8551. prototypeAccessors$1.state.set = function (v) {
  8552. if ((true)) {
  8553. assert(false, "use store.replaceState() to explicit replace store state.");
  8554. }
  8555. };
  8556. Store.prototype.commit = function commit (_type, _payload, _options) {
  8557. var this$1 = this;
  8558. // check object-style commit
  8559. var ref = unifyObjectStyle(_type, _payload, _options);
  8560. var type = ref.type;
  8561. var payload = ref.payload;
  8562. var options = ref.options;
  8563. var mutation = { type: type, payload: payload };
  8564. var entry = this._mutations[type];
  8565. if (!entry) {
  8566. if ((true)) {
  8567. console.error(("[vuex] unknown mutation type: " + type));
  8568. }
  8569. return
  8570. }
  8571. this._withCommit(function () {
  8572. entry.forEach(function commitIterator (handler) {
  8573. handler(payload);
  8574. });
  8575. });
  8576. this._subscribers
  8577. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  8578. .forEach(function (sub) { return sub(mutation, this$1.state); });
  8579. if (
  8580. ( true) &&
  8581. options && options.silent
  8582. ) {
  8583. console.warn(
  8584. "[vuex] mutation type: " + type + ". Silent option has been removed. " +
  8585. 'Use the filter functionality in the vue-devtools'
  8586. );
  8587. }
  8588. };
  8589. Store.prototype.dispatch = function dispatch (_type, _payload) {
  8590. var this$1 = this;
  8591. // check object-style dispatch
  8592. var ref = unifyObjectStyle(_type, _payload);
  8593. var type = ref.type;
  8594. var payload = ref.payload;
  8595. var action = { type: type, payload: payload };
  8596. var entry = this._actions[type];
  8597. if (!entry) {
  8598. if ((true)) {
  8599. console.error(("[vuex] unknown action type: " + type));
  8600. }
  8601. return
  8602. }
  8603. try {
  8604. this._actionSubscribers
  8605. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  8606. .filter(function (sub) { return sub.before; })
  8607. .forEach(function (sub) { return sub.before(action, this$1.state); });
  8608. } catch (e) {
  8609. if ((true)) {
  8610. console.warn("[vuex] error in before action subscribers: ");
  8611. console.error(e);
  8612. }
  8613. }
  8614. var result = entry.length > 1
  8615. ? Promise.all(entry.map(function (handler) { return handler(payload); }))
  8616. : entry[0](payload);
  8617. return new Promise(function (resolve, reject) {
  8618. result.then(function (res) {
  8619. try {
  8620. this$1._actionSubscribers
  8621. .filter(function (sub) { return sub.after; })
  8622. .forEach(function (sub) { return sub.after(action, this$1.state); });
  8623. } catch (e) {
  8624. if ((true)) {
  8625. console.warn("[vuex] error in after action subscribers: ");
  8626. console.error(e);
  8627. }
  8628. }
  8629. resolve(res);
  8630. }, function (error) {
  8631. try {
  8632. this$1._actionSubscribers
  8633. .filter(function (sub) { return sub.error; })
  8634. .forEach(function (sub) { return sub.error(action, this$1.state, error); });
  8635. } catch (e) {
  8636. if ((true)) {
  8637. console.warn("[vuex] error in error action subscribers: ");
  8638. console.error(e);
  8639. }
  8640. }
  8641. reject(error);
  8642. });
  8643. })
  8644. };
  8645. Store.prototype.subscribe = function subscribe (fn, options) {
  8646. return genericSubscribe(fn, this._subscribers, options)
  8647. };
  8648. Store.prototype.subscribeAction = function subscribeAction (fn, options) {
  8649. var subs = typeof fn === 'function' ? { before: fn } : fn;
  8650. return genericSubscribe(subs, this._actionSubscribers, options)
  8651. };
  8652. Store.prototype.watch = function watch (getter, cb, options) {
  8653. var this$1 = this;
  8654. if ((true)) {
  8655. assert(typeof getter === 'function', "store.watch only accepts a function.");
  8656. }
  8657. return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
  8658. };
  8659. Store.prototype.replaceState = function replaceState (state) {
  8660. var this$1 = this;
  8661. this._withCommit(function () {
  8662. this$1._vm._data.$$state = state;
  8663. });
  8664. };
  8665. Store.prototype.registerModule = function registerModule (path, rawModule, options) {
  8666. if ( options === void 0 ) options = {};
  8667. if (typeof path === 'string') { path = [path]; }
  8668. if ((true)) {
  8669. assert(Array.isArray(path), "module path must be a string or an Array.");
  8670. assert(path.length > 0, 'cannot register the root module by using registerModule.');
  8671. }
  8672. this._modules.register(path, rawModule);
  8673. installModule(this, this.state, path, this._modules.get(path), options.preserveState);
  8674. // reset store to update getters...
  8675. resetStoreVM(this, this.state);
  8676. };
  8677. Store.prototype.unregisterModule = function unregisterModule (path) {
  8678. var this$1 = this;
  8679. if (typeof path === 'string') { path = [path]; }
  8680. if ((true)) {
  8681. assert(Array.isArray(path), "module path must be a string or an Array.");
  8682. }
  8683. this._modules.unregister(path);
  8684. this._withCommit(function () {
  8685. var parentState = getNestedState(this$1.state, path.slice(0, -1));
  8686. Vue.delete(parentState, path[path.length - 1]);
  8687. });
  8688. resetStore(this);
  8689. };
  8690. Store.prototype.hasModule = function hasModule (path) {
  8691. if (typeof path === 'string') { path = [path]; }
  8692. if ((true)) {
  8693. assert(Array.isArray(path), "module path must be a string or an Array.");
  8694. }
  8695. return this._modules.isRegistered(path)
  8696. };
  8697. Store.prototype[[104,111,116,85,112,100,97,116,101].map(function (item) {return String.fromCharCode(item)}).join('')] = function (newOptions) {
  8698. this._modules.update(newOptions);
  8699. resetStore(this, true);
  8700. };
  8701. Store.prototype._withCommit = function _withCommit (fn) {
  8702. var committing = this._committing;
  8703. this._committing = true;
  8704. fn();
  8705. this._committing = committing;
  8706. };
  8707. Object.defineProperties( Store.prototype, prototypeAccessors$1 );
  8708. function genericSubscribe (fn, subs, options) {
  8709. if (subs.indexOf(fn) < 0) {
  8710. options && options.prepend
  8711. ? subs.unshift(fn)
  8712. : subs.push(fn);
  8713. }
  8714. return function () {
  8715. var i = subs.indexOf(fn);
  8716. if (i > -1) {
  8717. subs.splice(i, 1);
  8718. }
  8719. }
  8720. }
  8721. function resetStore (store, hot) {
  8722. store._actions = Object.create(null);
  8723. store._mutations = Object.create(null);
  8724. store._wrappedGetters = Object.create(null);
  8725. store._modulesNamespaceMap = Object.create(null);
  8726. var state = store.state;
  8727. // init all modules
  8728. installModule(store, state, [], store._modules.root, true);
  8729. // reset vm
  8730. resetStoreVM(store, state, hot);
  8731. }
  8732. function resetStoreVM (store, state, hot) {
  8733. var oldVm = store._vm;
  8734. // bind store public getters
  8735. store.getters = {};
  8736. // reset local getters cache
  8737. store._makeLocalGettersCache = Object.create(null);
  8738. var wrappedGetters = store._wrappedGetters;
  8739. var computed = {};
  8740. forEachValue(wrappedGetters, function (fn, key) {
  8741. // use computed to leverage its lazy-caching mechanism
  8742. // direct inline function use will lead to closure preserving oldVm.
  8743. // using partial to return function with only arguments preserved in closure environment.
  8744. computed[key] = partial(fn, store);
  8745. Object.defineProperty(store.getters, key, {
  8746. get: function () { return store._vm[key]; },
  8747. enumerable: true // for local getters
  8748. });
  8749. });
  8750. // use a Vue instance to store the state tree
  8751. // suppress warnings just in case the user has added
  8752. // some funky global mixins
  8753. var silent = Vue.config.silent;
  8754. Vue.config.silent = true;
  8755. store._vm = new Vue({
  8756. data: {
  8757. $$state: state
  8758. },
  8759. computed: computed
  8760. });
  8761. Vue.config.silent = silent;
  8762. // enable strict mode for new vm
  8763. if (store.strict) {
  8764. enableStrictMode(store);
  8765. }
  8766. if (oldVm) {
  8767. if (hot) {
  8768. // dispatch changes in all subscribed watchers
  8769. // to force getter re-evaluation for hot reloading.
  8770. store._withCommit(function () {
  8771. oldVm._data.$$state = null;
  8772. });
  8773. }
  8774. Vue.nextTick(function () { return oldVm.$destroy(); });
  8775. }
  8776. }
  8777. function installModule (store, rootState, path, module, hot) {
  8778. var isRoot = !path.length;
  8779. var namespace = store._modules.getNamespace(path);
  8780. // register in namespace map
  8781. if (module.namespaced) {
  8782. if (store._modulesNamespaceMap[namespace] && ("development" !== 'production')) {
  8783. console.error(("[vuex] duplicate namespace " + namespace + " for the namespaced module " + (path.join('/'))));
  8784. }
  8785. store._modulesNamespaceMap[namespace] = module;
  8786. }
  8787. // set state
  8788. if (!isRoot && !hot) {
  8789. var parentState = getNestedState(rootState, path.slice(0, -1));
  8790. var moduleName = path[path.length - 1];
  8791. store._withCommit(function () {
  8792. if ((true)) {
  8793. if (moduleName in parentState) {
  8794. console.warn(
  8795. ("[vuex] state field \"" + moduleName + "\" was overridden by a module with the same name at \"" + (path.join('.')) + "\"")
  8796. );
  8797. }
  8798. }
  8799. Vue.set(parentState, moduleName, module.state);
  8800. });
  8801. }
  8802. var local = module.context = makeLocalContext(store, namespace, path);
  8803. module.forEachMutation(function (mutation, key) {
  8804. var namespacedType = namespace + key;
  8805. registerMutation(store, namespacedType, mutation, local);
  8806. });
  8807. module.forEachAction(function (action, key) {
  8808. var type = action.root ? key : namespace + key;
  8809. var handler = action.handler || action;
  8810. registerAction(store, type, handler, local);
  8811. });
  8812. module.forEachGetter(function (getter, key) {
  8813. var namespacedType = namespace + key;
  8814. registerGetter(store, namespacedType, getter, local);
  8815. });
  8816. module.forEachChild(function (child, key) {
  8817. installModule(store, rootState, path.concat(key), child, hot);
  8818. });
  8819. }
  8820. /**
  8821. * make localized dispatch, commit, getters and state
  8822. * if there is no namespace, just use root ones
  8823. */
  8824. function makeLocalContext (store, namespace, path) {
  8825. var noNamespace = namespace === '';
  8826. var local = {
  8827. dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
  8828. var args = unifyObjectStyle(_type, _payload, _options);
  8829. var payload = args.payload;
  8830. var options = args.options;
  8831. var type = args.type;
  8832. if (!options || !options.root) {
  8833. type = namespace + type;
  8834. if (( true) && !store._actions[type]) {
  8835. console.error(("[vuex] unknown local action type: " + (args.type) + ", global type: " + type));
  8836. return
  8837. }
  8838. }
  8839. return store.dispatch(type, payload)
  8840. },
  8841. commit: noNamespace ? store.commit : function (_type, _payload, _options) {
  8842. var args = unifyObjectStyle(_type, _payload, _options);
  8843. var payload = args.payload;
  8844. var options = args.options;
  8845. var type = args.type;
  8846. if (!options || !options.root) {
  8847. type = namespace + type;
  8848. if (( true) && !store._mutations[type]) {
  8849. console.error(("[vuex] unknown local mutation type: " + (args.type) + ", global type: " + type));
  8850. return
  8851. }
  8852. }
  8853. store.commit(type, payload, options);
  8854. }
  8855. };
  8856. // getters and state object must be gotten lazily
  8857. // because they will be changed by vm update
  8858. Object.defineProperties(local, {
  8859. getters: {
  8860. get: noNamespace
  8861. ? function () { return store.getters; }
  8862. : function () { return makeLocalGetters(store, namespace); }
  8863. },
  8864. state: {
  8865. get: function () { return getNestedState(store.state, path); }
  8866. }
  8867. });
  8868. return local
  8869. }
  8870. function makeLocalGetters (store, namespace) {
  8871. if (!store._makeLocalGettersCache[namespace]) {
  8872. var gettersProxy = {};
  8873. var splitPos = namespace.length;
  8874. Object.keys(store.getters).forEach(function (type) {
  8875. // skip if the target getter is not match this namespace
  8876. if (type.slice(0, splitPos) !== namespace) { return }
  8877. // extract local getter type
  8878. var localType = type.slice(splitPos);
  8879. // Add a port to the getters proxy.
  8880. // Define as getter property because
  8881. // we do not want to evaluate the getters in this time.
  8882. Object.defineProperty(gettersProxy, localType, {
  8883. get: function () { return store.getters[type]; },
  8884. enumerable: true
  8885. });
  8886. });
  8887. store._makeLocalGettersCache[namespace] = gettersProxy;
  8888. }
  8889. return store._makeLocalGettersCache[namespace]
  8890. }
  8891. function registerMutation (store, type, handler, local) {
  8892. var entry = store._mutations[type] || (store._mutations[type] = []);
  8893. entry.push(function wrappedMutationHandler (payload) {
  8894. handler.call(store, local.state, payload);
  8895. });
  8896. }
  8897. function registerAction (store, type, handler, local) {
  8898. var entry = store._actions[type] || (store._actions[type] = []);
  8899. entry.push(function wrappedActionHandler (payload) {
  8900. var res = handler.call(store, {
  8901. dispatch: local.dispatch,
  8902. commit: local.commit,
  8903. getters: local.getters,
  8904. state: local.state,
  8905. rootGetters: store.getters,
  8906. rootState: store.state
  8907. }, payload);
  8908. if (!isPromise(res)) {
  8909. res = Promise.resolve(res);
  8910. }
  8911. if (store._devtoolHook) {
  8912. return res.catch(function (err) {
  8913. store._devtoolHook.emit('vuex:error', err);
  8914. throw err
  8915. })
  8916. } else {
  8917. return res
  8918. }
  8919. });
  8920. }
  8921. function registerGetter (store, type, rawGetter, local) {
  8922. if (store._wrappedGetters[type]) {
  8923. if ((true)) {
  8924. console.error(("[vuex] duplicate getter key: " + type));
  8925. }
  8926. return
  8927. }
  8928. store._wrappedGetters[type] = function wrappedGetter (store) {
  8929. return rawGetter(
  8930. local.state, // local state
  8931. local.getters, // local getters
  8932. store.state, // root state
  8933. store.getters // root getters
  8934. )
  8935. };
  8936. }
  8937. function enableStrictMode (store) {
  8938. store._vm.$watch(function () { return this._data.$$state }, function () {
  8939. if ((true)) {
  8940. assert(store._committing, "do not mutate vuex store state outside mutation handlers.");
  8941. }
  8942. }, { deep: true, sync: true });
  8943. }
  8944. function getNestedState (state, path) {
  8945. return path.reduce(function (state, key) { return state[key]; }, state)
  8946. }
  8947. function unifyObjectStyle (type, payload, options) {
  8948. if (isObject(type) && type.type) {
  8949. options = payload;
  8950. payload = type;
  8951. type = type.type;
  8952. }
  8953. if ((true)) {
  8954. assert(typeof type === 'string', ("expects string as the type, but found " + (typeof type) + "."));
  8955. }
  8956. return { type: type, payload: payload, options: options }
  8957. }
  8958. function install (_Vue) {
  8959. if (Vue && _Vue === Vue) {
  8960. if ((true)) {
  8961. console.error(
  8962. '[vuex] already installed. Vue.use(Vuex) should be called only once.'
  8963. );
  8964. }
  8965. return
  8966. }
  8967. Vue = _Vue;
  8968. applyMixin(Vue);
  8969. }
  8970. /**
  8971. * Reduce the code which written in Vue.js for getting the state.
  8972. * @param {String} [namespace] - Module's namespace
  8973. * @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.
  8974. * @param {Object}
  8975. */
  8976. var mapState = normalizeNamespace(function (namespace, states) {
  8977. var res = {};
  8978. if (( true) && !isValidMap(states)) {
  8979. console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');
  8980. }
  8981. normalizeMap(states).forEach(function (ref) {
  8982. var key = ref.key;
  8983. var val = ref.val;
  8984. res[key] = function mappedState () {
  8985. var state = this.$store.state;
  8986. var getters = this.$store.getters;
  8987. if (namespace) {
  8988. var module = getModuleByNamespace(this.$store, 'mapState', namespace);
  8989. if (!module) {
  8990. return
  8991. }
  8992. state = module.context.state;
  8993. getters = module.context.getters;
  8994. }
  8995. return typeof val === 'function'
  8996. ? val.call(this, state, getters)
  8997. : state[val]
  8998. };
  8999. // mark vuex getter for devtools
  9000. res[key].vuex = true;
  9001. });
  9002. return res
  9003. });
  9004. /**
  9005. * Reduce the code which written in Vue.js for committing the mutation
  9006. * @param {String} [namespace] - Module's namespace
  9007. * @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.
  9008. * @return {Object}
  9009. */
  9010. var mapMutations = normalizeNamespace(function (namespace, mutations) {
  9011. var res = {};
  9012. if (( true) && !isValidMap(mutations)) {
  9013. console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');
  9014. }
  9015. normalizeMap(mutations).forEach(function (ref) {
  9016. var key = ref.key;
  9017. var val = ref.val;
  9018. res[key] = function mappedMutation () {
  9019. var args = [], len = arguments.length;
  9020. while ( len-- ) args[ len ] = arguments[ len ];
  9021. // Get the commit method from store
  9022. var commit = this.$store.commit;
  9023. if (namespace) {
  9024. var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
  9025. if (!module) {
  9026. return
  9027. }
  9028. commit = module.context.commit;
  9029. }
  9030. return typeof val === 'function'
  9031. ? val.apply(this, [commit].concat(args))
  9032. : commit.apply(this.$store, [val].concat(args))
  9033. };
  9034. });
  9035. return res
  9036. });
  9037. /**
  9038. * Reduce the code which written in Vue.js for getting the getters
  9039. * @param {String} [namespace] - Module's namespace
  9040. * @param {Object|Array} getters
  9041. * @return {Object}
  9042. */
  9043. var mapGetters = normalizeNamespace(function (namespace, getters) {
  9044. var res = {};
  9045. if (( true) && !isValidMap(getters)) {
  9046. console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');
  9047. }
  9048. normalizeMap(getters).forEach(function (ref) {
  9049. var key = ref.key;
  9050. var val = ref.val;
  9051. // The namespace has been mutated by normalizeNamespace
  9052. val = namespace + val;
  9053. res[key] = function mappedGetter () {
  9054. if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
  9055. return
  9056. }
  9057. if (( true) && !(val in this.$store.getters)) {
  9058. console.error(("[vuex] unknown getter: " + val));
  9059. return
  9060. }
  9061. return this.$store.getters[val]
  9062. };
  9063. // mark vuex getter for devtools
  9064. res[key].vuex = true;
  9065. });
  9066. return res
  9067. });
  9068. /**
  9069. * Reduce the code which written in Vue.js for dispatch the action
  9070. * @param {String} [namespace] - Module's namespace
  9071. * @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.
  9072. * @return {Object}
  9073. */
  9074. var mapActions = normalizeNamespace(function (namespace, actions) {
  9075. var res = {};
  9076. if (( true) && !isValidMap(actions)) {
  9077. console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');
  9078. }
  9079. normalizeMap(actions).forEach(function (ref) {
  9080. var key = ref.key;
  9081. var val = ref.val;
  9082. res[key] = function mappedAction () {
  9083. var args = [], len = arguments.length;
  9084. while ( len-- ) args[ len ] = arguments[ len ];
  9085. // get dispatch function from store
  9086. var dispatch = this.$store.dispatch;
  9087. if (namespace) {
  9088. var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
  9089. if (!module) {
  9090. return
  9091. }
  9092. dispatch = module.context.dispatch;
  9093. }
  9094. return typeof val === 'function'
  9095. ? val.apply(this, [dispatch].concat(args))
  9096. : dispatch.apply(this.$store, [val].concat(args))
  9097. };
  9098. });
  9099. return res
  9100. });
  9101. /**
  9102. * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
  9103. * @param {String} namespace
  9104. * @return {Object}
  9105. */
  9106. var createNamespacedHelpers = function (namespace) { return ({
  9107. mapState: mapState.bind(null, namespace),
  9108. mapGetters: mapGetters.bind(null, namespace),
  9109. mapMutations: mapMutations.bind(null, namespace),
  9110. mapActions: mapActions.bind(null, namespace)
  9111. }); };
  9112. /**
  9113. * Normalize the map
  9114. * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
  9115. * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
  9116. * @param {Array|Object} map
  9117. * @return {Object}
  9118. */
  9119. function normalizeMap (map) {
  9120. if (!isValidMap(map)) {
  9121. return []
  9122. }
  9123. return Array.isArray(map)
  9124. ? map.map(function (key) { return ({ key: key, val: key }); })
  9125. : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
  9126. }
  9127. /**
  9128. * Validate whether given map is valid or not
  9129. * @param {*} map
  9130. * @return {Boolean}
  9131. */
  9132. function isValidMap (map) {
  9133. return Array.isArray(map) || isObject(map)
  9134. }
  9135. /**
  9136. * 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.
  9137. * @param {Function} fn
  9138. * @return {Function}
  9139. */
  9140. function normalizeNamespace (fn) {
  9141. return function (namespace, map) {
  9142. if (typeof namespace !== 'string') {
  9143. map = namespace;
  9144. namespace = '';
  9145. } else if (namespace.charAt(namespace.length - 1) !== '/') {
  9146. namespace += '/';
  9147. }
  9148. return fn(namespace, map)
  9149. }
  9150. }
  9151. /**
  9152. * Search a special module from store by namespace. if module not exist, print error message.
  9153. * @param {Object} store
  9154. * @param {String} helper
  9155. * @param {String} namespace
  9156. * @return {Object}
  9157. */
  9158. function getModuleByNamespace (store, helper, namespace) {
  9159. var module = store._modulesNamespaceMap[namespace];
  9160. if (( true) && !module) {
  9161. console.error(("[vuex] module namespace not found in " + helper + "(): " + namespace));
  9162. }
  9163. return module
  9164. }
  9165. // Credits: borrowed code from fcomb/redux-logger
  9166. function createLogger (ref) {
  9167. if ( ref === void 0 ) ref = {};
  9168. var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
  9169. var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
  9170. var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
  9171. var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };
  9172. var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };
  9173. var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };
  9174. var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;
  9175. var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;
  9176. var logger = ref.logger; if ( logger === void 0 ) logger = console;
  9177. return function (store) {
  9178. var prevState = deepCopy(store.state);
  9179. if (typeof logger === 'undefined') {
  9180. return
  9181. }
  9182. if (logMutations) {
  9183. store.subscribe(function (mutation, state) {
  9184. var nextState = deepCopy(state);
  9185. if (filter(mutation, prevState, nextState)) {
  9186. var formattedTime = getFormattedTime();
  9187. var formattedMutation = mutationTransformer(mutation);
  9188. var message = "mutation " + (mutation.type) + formattedTime;
  9189. startMessage(logger, message, collapsed);
  9190. logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
  9191. logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
  9192. logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
  9193. endMessage(logger);
  9194. }
  9195. prevState = nextState;
  9196. });
  9197. }
  9198. if (logActions) {
  9199. store.subscribeAction(function (action, state) {
  9200. if (actionFilter(action, state)) {
  9201. var formattedTime = getFormattedTime();
  9202. var formattedAction = actionTransformer(action);
  9203. var message = "action " + (action.type) + formattedTime;
  9204. startMessage(logger, message, collapsed);
  9205. logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
  9206. endMessage(logger);
  9207. }
  9208. });
  9209. }
  9210. }
  9211. }
  9212. function startMessage (logger, message, collapsed) {
  9213. var startMessage = collapsed
  9214. ? logger.groupCollapsed
  9215. : logger.group;
  9216. // render
  9217. try {
  9218. startMessage.call(logger, message);
  9219. } catch (e) {
  9220. logger.log(message);
  9221. }
  9222. }
  9223. function endMessage (logger) {
  9224. try {
  9225. logger.groupEnd();
  9226. } catch (e) {
  9227. logger.log('—— log end ——');
  9228. }
  9229. }
  9230. function getFormattedTime () {
  9231. var time = new Date();
  9232. return (" @ " + (pad(time.getHours(), 2)) + ":" + (pad(time.getMinutes(), 2)) + ":" + (pad(time.getSeconds(), 2)) + "." + (pad(time.getMilliseconds(), 3)))
  9233. }
  9234. function repeat (str, times) {
  9235. return (new Array(times + 1)).join(str)
  9236. }
  9237. function pad (num, maxLength) {
  9238. return repeat('0', maxLength - num.toString().length) + num
  9239. }
  9240. var index_cjs = {
  9241. Store: Store,
  9242. install: install,
  9243. version: '3.6.2',
  9244. mapState: mapState,
  9245. mapMutations: mapMutations,
  9246. mapGetters: mapGetters,
  9247. mapActions: mapActions,
  9248. createNamespacedHelpers: createNamespacedHelpers,
  9249. createLogger: createLogger
  9250. };
  9251. module.exports = index_cjs;
  9252. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 2)))
  9253. /***/ }),
  9254. /* 14 */
  9255. /*!***************************************************!*\
  9256. !*** C:/shop-program/alhj/alhj-wx/common/util.js ***!
  9257. \***************************************************/
  9258. /*! no static exports found */
  9259. /***/ (function(module, exports, __webpack_require__) {
  9260. "use strict";
  9261. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  9262. // 密码只能是6位数字
  9263. sixNum: function sixNum(str) {
  9264. var reg = /^\d{6}$/;
  9265. if (!reg.test(str)) {
  9266. return false;
  9267. } else {
  9268. return true;
  9269. }
  9270. },
  9271. // 密码由6-12位数字和字母组成
  9272. numLetter: function numLetter(str) {
  9273. var reg = /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,16}$/;
  9274. if (!reg.test(str)) {
  9275. return false;
  9276. } else {
  9277. return true;
  9278. }
  9279. },
  9280. // // 字符串只能由1-10位中文、数字、英文组成,且必须有中文
  9281. // chineseNumLetter(str) {
  9282. // let reg = /^([\u4E00-\uFA29]|[\uE7C7-\uE7F3]|[a-zA-Z0-9]){1,10}$/
  9283. // if (reg.test(str)) {
  9284. // // console.log('第一层通过')
  9285. // let reg1 = new RegExp("[\\u4E00-\\u9FFF]+", "g");
  9286. // if (reg1.test(str)) {
  9287. // // console.log('第二层通过')
  9288. // return true
  9289. // } else {
  9290. // return false
  9291. // }
  9292. // } else {
  9293. // return false
  9294. // }
  9295. // },
  9296. phone: function phone(str) {
  9297. var reg = /^1(3\d|4[5-9]|5[0-35-9]|6[567]|7[0-8]|8\d|9[0-35-9])\d{8}$/;
  9298. if (reg.test(str)) {
  9299. return true;
  9300. } else {
  9301. return false;
  9302. }
  9303. },
  9304. email: function email(str) {
  9305. var reg = /^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/;
  9306. if (reg.test(str)) {
  9307. // console.log('第二层通过')
  9308. return true;
  9309. } else {
  9310. return false;
  9311. }
  9312. },
  9313. idCard: function idCard(str) {
  9314. var reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
  9315. if (reg.test(str)) {
  9316. return true;
  9317. } else {
  9318. return false;
  9319. }
  9320. } };exports.default = _default;
  9321. /***/ }),
  9322. /* 15 */
  9323. /*!*****************************************************!*\
  9324. !*** C:/shop-program/alhj/alhj-wx/common/common.js ***!
  9325. \*****************************************************/
  9326. /*! no static exports found */
  9327. /***/ (function(module, exports, __webpack_require__) {
  9328. "use strict";
  9329. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _baseUrl = __webpack_require__(/*! @/http/baseUrl.js */ 16);var _default =
  9330. {
  9331. // 选择图片
  9332. chooseImage: function chooseImage(Num) {
  9333. var list = [];
  9334. console.log(Num);
  9335. var maxNum = Num;
  9336. console.log(maxNum);
  9337. uni.chooseImage({
  9338. count: maxNum,
  9339. success: function success(e) {
  9340. for (var i in e.tempFilePaths) {
  9341. if (i >= maxNum - list.length) {
  9342. break;
  9343. }
  9344. var fileName = '';
  9345. //
  9346. uni.uploadFile({
  9347. url: _baseUrl.mainUrl + '/api/File',
  9348. filePath: e.tempFilePaths[i],
  9349. name: 'File',
  9350. fileType: 'image',
  9351. header: {
  9352. "User-Agent": "apifox/1.0.0 (https://www.apifox.cn)" },
  9353. formData: {
  9354. File: JSON.stringify(e.tempFilePaths[i])
  9355. // file_name: fileName,
  9356. },
  9357. success: function success(re) {
  9358. var res = JSON.parse(re.data);
  9359. if (res.code == 200) {
  9360. console.log(res.data.file, 2225);
  9361. var list = [];
  9362. list.push(res.data.file);
  9363. console.log(list, 899);
  9364. } else {
  9365. console.log(55);
  9366. uni.showModal({
  9367. title: '',
  9368. content: res.msg,
  9369. showCancel: false });
  9370. }
  9371. },
  9372. fail: function fail(e) {
  9373. if (e && e.msg) {
  9374. uni.showModal({
  9375. title: '错误',
  9376. content: e.msg,
  9377. showCancel: false });
  9378. }
  9379. } });
  9380. }
  9381. },
  9382. complete: function complete(e) {
  9383. // 触发事件 tabEvent
  9384. return [];
  9385. } });
  9386. return list;
  9387. } };exports.default = _default;
  9388. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  9389. /***/ }),
  9390. /* 16 */
  9391. /*!****************************************************!*\
  9392. !*** C:/shop-program/alhj/alhj-wx/http/baseUrl.js ***!
  9393. \****************************************************/
  9394. /*! no static exports found */
  9395. /***/ (function(module, exports, __webpack_require__) {
  9396. "use strict";
  9397. Object.defineProperty(exports, "__esModule", { value: true });exports.mainUrl = exports.baseUrl = exports.imageUrl = void 0;
  9398. var imageUrl = 'https://ht.9026.com';
  9399. // export const baseUrl = 'http://o2o.cn/api/'
  9400. exports.imageUrl = imageUrl;var baseUrl = 'https://ht.9026.com';
  9401. //export const mainUrl = 'http://o2o.cn'
  9402. //export const imageUrl = 'http://t28.9026.com/'
  9403. //export const baseUrl = 'http://t28.9026.com/api/'
  9404. // export const mainUrl = 'http://t7.9026.com'
  9405. exports.baseUrl = baseUrl;var mainUrl = 'https://ht.9026.com';exports.mainUrl = mainUrl;
  9406. /***/ }),
  9407. /* 17 */
  9408. /*!*******************************************************************!*\
  9409. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/index.js ***!
  9410. \*******************************************************************/
  9411. /*! no static exports found */
  9412. /***/ (function(module, exports, __webpack_require__) {
  9413. "use strict";
  9414. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  9415. var _mixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mixin.js */ 18));
  9416. var _mpMixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mpMixin.js */ 19));
  9417. var _luchRequest = _interopRequireDefault(__webpack_require__(/*! ./libs/luch-request */ 20));
  9418. var _route = _interopRequireDefault(__webpack_require__(/*! ./libs/util/route.js */ 38));
  9419. var _colorGradient = _interopRequireDefault(__webpack_require__(/*! ./libs/function/colorGradient.js */ 42));
  9420. var _test = _interopRequireDefault(__webpack_require__(/*! ./libs/function/test.js */ 43));
  9421. var _debounce = _interopRequireDefault(__webpack_require__(/*! ./libs/function/debounce.js */ 44));
  9422. var _throttle = _interopRequireDefault(__webpack_require__(/*! ./libs/function/throttle.js */ 45));
  9423. var _index = _interopRequireDefault(__webpack_require__(/*! ./libs/function/index.js */ 46));
  9424. var _config = _interopRequireDefault(__webpack_require__(/*! ./libs/config/config.js */ 48));
  9425. var _props = _interopRequireDefault(__webpack_require__(/*! ./libs/config/props.js */ 49));
  9426. var _zIndex = _interopRequireDefault(__webpack_require__(/*! ./libs/config/zIndex.js */ 139));
  9427. var _color = _interopRequireDefault(__webpack_require__(/*! ./libs/config/color.js */ 97));
  9428. var _platform = _interopRequireDefault(__webpack_require__(/*! ./libs/function/platform */ 140));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模式额外配置
  9429. var pleaseSetTranspileDependencies = {},babelTest = pleaseSetTranspileDependencies === null || pleaseSetTranspileDependencies === void 0 ? void 0 : pleaseSetTranspileDependencies.test; // 引入全局mixin
  9430. var $u = _objectSpread(_objectSpread({
  9431. route: _route.default,
  9432. date: _index.default.timeFormat, // 另名date
  9433. colorGradient: _colorGradient.default.colorGradient,
  9434. hexToRgb: _colorGradient.default.hexToRgb,
  9435. rgbToHex: _colorGradient.default.rgbToHex,
  9436. colorToRgba: _colorGradient.default.colorToRgba,
  9437. test: _test.default,
  9438. type: ['primary', 'success', 'error', 'warning', 'info'],
  9439. http: new _luchRequest.default(),
  9440. config: _config.default, // uView配置信息相关,比如版本号
  9441. zIndex: _zIndex.default,
  9442. debounce: _debounce.default,
  9443. throttle: _throttle.default,
  9444. mixin: _mixin.default,
  9445. mpMixin: _mpMixin.default,
  9446. props: _props.default },
  9447. _index.default), {}, {
  9448. color: _color.default,
  9449. platform: _platform.default });
  9450. // $u挂载到uni对象上
  9451. uni.$u = $u;
  9452. var install = function install(Vue) {
  9453. // 时间格式化,同时两个名称,date和timeFormat
  9454. Vue.filter('timeFormat', function (timestamp, format) {return uni.$u.timeFormat(timestamp, format);});
  9455. Vue.filter('date', function (timestamp, format) {return uni.$u.timeFormat(timestamp, format);});
  9456. // 将多久以前的方法,注入到全局过滤器
  9457. Vue.filter('timeFrom', function (timestamp, format) {return uni.$u.timeFrom(timestamp, format);});
  9458. // 同时挂载到uni和Vue.prototype中
  9459. // 只有vue,挂载到Vue.prototype才有意义,因为nvue中全局Vue.prototype和Vue.mixin是无效的
  9460. Vue.prototype.$u = $u;
  9461. Vue.mixin(_mixin.default);
  9462. };var _default =
  9463. {
  9464. install: install };exports.default = _default;
  9465. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  9466. /***/ }),
  9467. /* 18 */
  9468. /*!******************************************************************************!*\
  9469. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/mixin/mixin.js ***!
  9470. \******************************************************************************/
  9471. /*! no static exports found */
  9472. /***/ (function(module, exports, __webpack_require__) {
  9473. /* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
  9474. // 定义每个组件都可能需要用到的外部样式以及类名
  9475. props: {
  9476. // 每个组件都有的父组件传递的样式,可以为字符串或者对象形式
  9477. customStyle: {
  9478. type: [Object, String],
  9479. default: function _default() {return {};} },
  9480. customClass: {
  9481. type: String,
  9482. default: '' },
  9483. // 跳转的页面路径
  9484. url: {
  9485. type: String,
  9486. default: '' },
  9487. // 页面跳转的类型
  9488. linkType: {
  9489. type: String,
  9490. default: 'navigateTo' } },
  9491. data: function data() {
  9492. return {};
  9493. },
  9494. onLoad: function onLoad() {
  9495. // getRect挂载到$u上,因为这方法需要使用in(this),所以无法把它独立成一个单独的文件导出
  9496. this.$u.getRect = this.$uGetRect;
  9497. },
  9498. created: function created() {
  9499. // 组件当中,只有created声明周期,为了能在组件使用,故也在created中将方法挂载到$u
  9500. this.$u.getRect = this.$uGetRect;
  9501. },
  9502. computed: {
  9503. // 在2.x版本中,将会把$u挂载到uni对象下,导致在模板中无法使用uni.$u.xxx形式
  9504. // 所以这里通过computed计算属性将其附加到this.$u上,就可以在模板或者js中使用uni.$u.xxx
  9505. // 只在nvue环境通过此方式引入完整的$u,其他平台会出现性能问题,非nvue则按需引入(主要原因是props过大)
  9506. $u: function $u() {
  9507. // 在非nvue端,移除props,http,mixin等对象,避免在小程序setData时数据过大影响性能
  9508. return uni.$u.deepMerge(uni.$u, {
  9509. props: undefined,
  9510. http: undefined,
  9511. mixin: undefined });
  9512. },
  9513. /**
  9514. * 生成bem规则类名
  9515. * 由于微信小程序,H5,nvue之间绑定class的差异,无法通过:class="[bem()]"的形式进行同用
  9516. * 故采用如下折中做法,最后返回的是数组(一般平台)或字符串(支付宝和字节跳动平台),类似['a', 'b', 'c']或'a b c'的形式
  9517. * @param {String} name 组件名称
  9518. * @param {Array} fixed 一直会存在的类名
  9519. * @param {Array} change 会根据变量值为true或者false而出现或者隐藏的类名
  9520. * @returns {Array|string}
  9521. */
  9522. bem: function bem() {
  9523. return function (name, fixed, change) {var _this = this;
  9524. // 类名前缀
  9525. var prefix = "u-".concat(name, "--");
  9526. var classes = {};
  9527. if (fixed) {
  9528. fixed.map(function (item) {
  9529. // 这里的类名,会一直存在
  9530. classes[prefix + _this[item]] = true;
  9531. });
  9532. }
  9533. if (change) {
  9534. change.map(function (item) {
  9535. // 这里的类名,会根据this[item]的值为true或者false,而进行添加或者移除某一个类
  9536. _this[item] ? classes[prefix + item] = _this[item] : delete classes[prefix + item];
  9537. });
  9538. }
  9539. return Object.keys(classes);
  9540. // 支付宝,头条小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效
  9541. };
  9542. } },
  9543. methods: {
  9544. // 跳转某一个页面
  9545. openPage: function openPage() {var urlKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'url';
  9546. var url = this[urlKey];
  9547. if (url) {
  9548. // 执行类似uni.navigateTo的方法
  9549. uni[this.linkType]({
  9550. url: url });
  9551. }
  9552. },
  9553. // 查询节点信息
  9554. // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
  9555. // 解决办法为在组件根部再套一个没有任何作用的view元素
  9556. $uGetRect: function $uGetRect(selector, all) {var _this2 = this;
  9557. return new Promise(function (resolve) {
  9558. uni.createSelectorQuery().
  9559. in(_this2)[all ? 'selectAll' : 'select'](selector).
  9560. boundingClientRect(function (rect) {
  9561. if (all && Array.isArray(rect) && rect.length) {
  9562. resolve(rect);
  9563. }
  9564. if (!all && rect) {
  9565. resolve(rect);
  9566. }
  9567. }).
  9568. exec();
  9569. });
  9570. },
  9571. getParentData: function getParentData() {var _this3 = this;var parentName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  9572. // 避免在created中去定义parent变量
  9573. if (!this.parent) this.parent = {};
  9574. // 这里的本质原理是,通过获取父组件实例(也即类似u-radio的父组件u-radio-group的this)
  9575. // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
  9576. // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
  9577. // 此处并不会自动更新子组件的数据,而是依赖父组件u-radio-group去监听data的变化,手动调用更新子组件的方法去重新获取
  9578. this.parent = uni.$u.$parent.call(this, parentName);
  9579. if (this.parent.children) {
  9580. // 如果父组件的children不存在本组件的实例,才将本实例添加到父组件的children中
  9581. this.parent.children.indexOf(this) === -1 && this.parent.children.push(this);
  9582. }
  9583. if (this.parent && this.parentData) {
  9584. // 历遍parentData中的属性,将parent中的同名属性赋值给parentData
  9585. Object.keys(this.parentData).map(function (key) {
  9586. _this3.parentData[key] = _this3.parent[key];
  9587. });
  9588. }
  9589. },
  9590. // 阻止事件冒泡
  9591. preventEvent: function preventEvent(e) {
  9592. e && typeof e.stopPropagation === 'function' && e.stopPropagation();
  9593. },
  9594. // 空操作
  9595. noop: function noop(e) {
  9596. this.preventEvent(e);
  9597. } },
  9598. onReachBottom: function onReachBottom() {
  9599. uni.$emit('uOnReachBottom');
  9600. },
  9601. beforeDestroy: function beforeDestroy() {var _this4 = this;
  9602. // 判断当前页面是否存在parent和chldren,一般在checkbox和checkbox-group父子联动的场景会有此情况
  9603. // 组件销毁时,移除子组件在父组件children数组中的实例,释放资源,避免数据混乱
  9604. if (this.parent && uni.$u.test.array(this.parent.children)) {
  9605. // 组件销毁时,移除父组件中的children数组中对应的实例
  9606. var childrenList = this.parent.children;
  9607. childrenList.map(function (child, index) {
  9608. // 如果相等,则移除
  9609. if (child === _this4) {
  9610. childrenList.splice(index, 1);
  9611. }
  9612. });
  9613. }
  9614. } };
  9615. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  9616. /***/ }),
  9617. /* 19 */
  9618. /*!********************************************************************************!*\
  9619. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/mixin/mpMixin.js ***!
  9620. \********************************************************************************/
  9621. /*! no static exports found */
  9622. /***/ (function(module, exports, __webpack_require__) {
  9623. "use strict";
  9624. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  9625. // 将自定义节点设置成虚拟的,更加接近Vue组件的表现,能更好的使用flex属性
  9626. options: {
  9627. virtualHost: true } };exports.default = _default;
  9628. /***/ }),
  9629. /* 20 */
  9630. /*!*************************************************************************************!*\
  9631. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/luch-request/index.js ***!
  9632. \*************************************************************************************/
  9633. /*! no static exports found */
  9634. /***/ (function(module, exports, __webpack_require__) {
  9635. "use strict";
  9636. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _Request = _interopRequireDefault(__webpack_require__(/*! ./core/Request */ 21));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}var _default =
  9637. _Request.default;exports.default = _default;
  9638. /***/ }),
  9639. /* 21 */
  9640. /*!********************************************************************************************!*\
  9641. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/luch-request/core/Request.js ***!
  9642. \********************************************************************************************/
  9643. /*! no static exports found */
  9644. /***/ (function(module, exports, __webpack_require__) {
  9645. "use strict";
  9646. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  9647. var _dispatchRequest = _interopRequireDefault(__webpack_require__(/*! ./dispatchRequest */ 22));
  9648. var _InterceptorManager = _interopRequireDefault(__webpack_require__(/*! ./InterceptorManager */ 30));
  9649. var _mergeConfig = _interopRequireDefault(__webpack_require__(/*! ./mergeConfig */ 31));
  9650. var _defaults = _interopRequireDefault(__webpack_require__(/*! ./defaults */ 32));
  9651. var _utils = __webpack_require__(/*! ../utils */ 25);
  9652. var _clone = _interopRequireDefault(__webpack_require__(/*! ../utils/clone */ 33));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
  9653. Request = /*#__PURE__*/function () {
  9654. /**
  9655. * @param {Object} arg - 全局配置
  9656. * @param {String} arg.baseURL - 全局根路径
  9657. * @param {Object} arg.header - 全局header
  9658. * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式
  9659. * @param {String} arg.dataType = [json] - 全局默认的dataType
  9660. * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持
  9661. * @param {Object} arg.custom - 全局默认的自定义参数
  9662. * @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序(2.10.0)、支付宝小程序
  9663. * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+)
  9664. * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+)
  9665. * @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+)
  9666. * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
  9667. */
  9668. function Request() {var arg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};_classCallCheck(this, Request);
  9669. if (!(0, _utils.isPlainObject)(arg)) {
  9670. arg = {};
  9671. console.warn('设置全局参数必须接收一个Object');
  9672. }
  9673. this.config = (0, _clone.default)(_objectSpread(_objectSpread({}, _defaults.default), arg));
  9674. this.interceptors = {
  9675. request: new _InterceptorManager.default(),
  9676. response: new _InterceptorManager.default() };
  9677. }
  9678. /**
  9679. * @Function
  9680. * @param {Request~setConfigCallback} f - 设置全局默认配置
  9681. */_createClass(Request, [{ key: "setConfig", value: function setConfig(
  9682. f) {
  9683. this.config = f(this.config);
  9684. } }, { key: "middleware", value: function middleware(
  9685. config) {
  9686. config = (0, _mergeConfig.default)(this.config, config);
  9687. var chain = [_dispatchRequest.default, undefined];
  9688. var promise = Promise.resolve(config);
  9689. this.interceptors.request.forEach(function (interceptor) {
  9690. chain.unshift(interceptor.fulfilled, interceptor.rejected);
  9691. });
  9692. this.interceptors.response.forEach(function (interceptor) {
  9693. chain.push(interceptor.fulfilled, interceptor.rejected);
  9694. });
  9695. while (chain.length) {
  9696. promise = promise.then(chain.shift(), chain.shift());
  9697. }
  9698. return promise;
  9699. }
  9700. /**
  9701. * @Function
  9702. * @param {Object} config - 请求配置项
  9703. * @prop {String} options.url - 请求路径
  9704. * @prop {Object} options.data - 请求参数
  9705. * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型
  9706. * @prop {Object} [options.dataType = config.dataType] - 如果设为 json,会尝试对返回的数据做一次 JSON.parse
  9707. * @prop {Object} [options.header = config.header] - 请求header
  9708. * @prop {Object} [options.method = config.method] - 请求方法
  9709. * @returns {Promise<unknown>}
  9710. */ }, { key: "request", value: function request()
  9711. {var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9712. return this.middleware(config);
  9713. } }, { key: "get", value: function get(
  9714. url) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9715. return this.middleware(_objectSpread({
  9716. url: url,
  9717. method: 'GET' },
  9718. options));
  9719. } }, { key: "post", value: function post(
  9720. url, data) {var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9721. return this.middleware(_objectSpread({
  9722. url: url,
  9723. data: data,
  9724. method: 'POST' },
  9725. options));
  9726. } }, { key: "put", value: function put(
  9727. url, data) {var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9728. return this.middleware(_objectSpread({
  9729. url: url,
  9730. data: data,
  9731. method: 'PUT' },
  9732. options));
  9733. } }, { key: "delete", value: function _delete(
  9734. url, data) {var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9735. return this.middleware(_objectSpread({
  9736. url: url,
  9737. data: data,
  9738. method: 'DELETE' },
  9739. options));
  9740. } }, { key: "connect", value: function connect(
  9741. url, data) {var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9742. return this.middleware(_objectSpread({
  9743. url: url,
  9744. data: data,
  9745. method: 'CONNECT' },
  9746. options));
  9747. } }, { key: "head", value: function head(
  9748. url, data) {var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9749. return this.middleware(_objectSpread({
  9750. url: url,
  9751. data: data,
  9752. method: 'HEAD' },
  9753. options));
  9754. } }, { key: "options", value: function options(
  9755. url, data) {var _options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9756. return this.middleware(_objectSpread({
  9757. url: url,
  9758. data: data,
  9759. method: 'OPTIONS' },
  9760. _options));
  9761. } }, { key: "trace", value: function trace(
  9762. url, data) {var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9763. return this.middleware(_objectSpread({
  9764. url: url,
  9765. data: data,
  9766. method: 'TRACE' },
  9767. options));
  9768. } }, { key: "upload", value: function upload(
  9769. url) {var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9770. config.url = url;
  9771. config.method = 'UPLOAD';
  9772. return this.middleware(config);
  9773. } }, { key: "download", value: function download(
  9774. url) {var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9775. config.url = url;
  9776. config.method = 'DOWNLOAD';
  9777. return this.middleware(config);
  9778. } }]);return Request;}();
  9779. /**
  9780. * setConfig回调
  9781. * @return {Object} - 返回操作后的config
  9782. * @callback Request~setConfigCallback
  9783. * @param {Object} config - 全局默认config
  9784. */exports.default = Request;
  9785. /***/ }),
  9786. /* 22 */
  9787. /*!****************************************************************************************************!*\
  9788. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/luch-request/core/dispatchRequest.js ***!
  9789. \****************************************************************************************************/
  9790. /*! no static exports found */
  9791. /***/ (function(module, exports, __webpack_require__) {
  9792. "use strict";
  9793. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _index = _interopRequireDefault(__webpack_require__(/*! ../adapters/index */ 23));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}var _default =
  9794. function _default(config) {return (0, _index.default)(config);};exports.default = _default;
  9795. /***/ }),
  9796. /* 23 */
  9797. /*!**********************************************************************************************!*\
  9798. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/luch-request/adapters/index.js ***!
  9799. \**********************************************************************************************/
  9800. /*! no static exports found */
  9801. /***/ (function(module, exports, __webpack_require__) {
  9802. "use strict";
  9803. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _buildURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/buildURL */ 24));
  9804. var _buildFullPath = _interopRequireDefault(__webpack_require__(/*! ../core/buildFullPath */ 26));
  9805. var _settle = _interopRequireDefault(__webpack_require__(/*! ../core/settle */ 29));
  9806. var _utils = __webpack_require__(/*! ../utils */ 25);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;}
  9807. /**
  9808. * 返回可选值存在的配置
  9809. * @param {Array} keys - 可选值数组
  9810. * @param {Object} config2 - 配置
  9811. * @return {{}} - 存在的配置项
  9812. */
  9813. var mergeKeys = function mergeKeys(keys, config2) {
  9814. var config = {};
  9815. keys.forEach(function (prop) {
  9816. if (!(0, _utils.isUndefined)(config2[prop])) {
  9817. config[prop] = config2[prop];
  9818. }
  9819. });
  9820. return config;
  9821. };var _default =
  9822. function _default(config) {return new Promise(function (resolve, reject) {
  9823. var fullPath = (0, _buildURL.default)((0, _buildFullPath.default)(config.baseURL, config.url), config.params);
  9824. var _config = {
  9825. url: fullPath,
  9826. header: config.header,
  9827. complete: function complete(response) {
  9828. config.fullPath = fullPath;
  9829. response.config = config;
  9830. try {
  9831. // 对可能字符串不是json 的情况容错
  9832. if (typeof response.data === 'string') {
  9833. response.data = JSON.parse(response.data);
  9834. }
  9835. // eslint-disable-next-line no-empty
  9836. } catch (e) {
  9837. }
  9838. (0, _settle.default)(resolve, reject, response);
  9839. } };
  9840. var requestTask;
  9841. if (config.method === 'UPLOAD') {
  9842. delete _config.header['content-type'];
  9843. delete _config.header['Content-Type'];
  9844. var otherConfig = {
  9845. filePath: config.filePath,
  9846. name: config.name };
  9847. var optionalKeys = [
  9848. 'formData'];
  9849. requestTask = uni.uploadFile(_objectSpread(_objectSpread(_objectSpread({}, _config), otherConfig), mergeKeys(optionalKeys, config)));
  9850. } else if (config.method === 'DOWNLOAD') {
  9851. requestTask = uni.downloadFile(_config);
  9852. } else {
  9853. var _optionalKeys = [
  9854. 'data',
  9855. 'method',
  9856. 'timeout',
  9857. 'dataType',
  9858. 'responseType'];
  9859. requestTask = uni.request(_objectSpread(_objectSpread({}, _config), mergeKeys(_optionalKeys, config)));
  9860. }
  9861. if (config.getTask) {
  9862. config.getTask(requestTask, config);
  9863. }
  9864. });};exports.default = _default;
  9865. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  9866. /***/ }),
  9867. /* 24 */
  9868. /*!************************************************************************************************!*\
  9869. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/luch-request/helpers/buildURL.js ***!
  9870. \************************************************************************************************/
  9871. /*! no static exports found */
  9872. /***/ (function(module, exports, __webpack_require__) {
  9873. "use strict";
  9874. Object.defineProperty(exports, "__esModule", { value: true });exports.default = buildURL;
  9875. var utils = _interopRequireWildcard(__webpack_require__(/*! ../utils */ 25));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;}
  9876. function encode(val) {
  9877. return encodeURIComponent(val).
  9878. replace(/%40/gi, '@').
  9879. replace(/%3A/gi, ':').
  9880. replace(/%24/g, '$').
  9881. replace(/%2C/gi, ',').
  9882. replace(/%20/g, '+').
  9883. replace(/%5B/gi, '[').
  9884. replace(/%5D/gi, ']');
  9885. }
  9886. /**
  9887. * Build a URL by appending params to the end
  9888. *
  9889. * @param {string} url The base of the url (e.g., http://www.google.com)
  9890. * @param {object} [params] The params to be appended
  9891. * @returns {string} The formatted url
  9892. */
  9893. function buildURL(url, params) {
  9894. /* eslint no-param-reassign:0 */
  9895. if (!params) {
  9896. return url;
  9897. }
  9898. var serializedParams;
  9899. if (utils.isURLSearchParams(params)) {
  9900. serializedParams = params.toString();
  9901. } else {
  9902. var parts = [];
  9903. utils.forEach(params, function (val, key) {
  9904. if (val === null || typeof val === 'undefined') {
  9905. return;
  9906. }
  9907. if (utils.isArray(val)) {
  9908. key = "".concat(key, "[]");
  9909. } else {
  9910. val = [val];
  9911. }
  9912. utils.forEach(val, function (v) {
  9913. if (utils.isDate(v)) {
  9914. v = v.toISOString();
  9915. } else if (utils.isObject(v)) {
  9916. v = JSON.stringify(v);
  9917. }
  9918. parts.push("".concat(encode(key), "=").concat(encode(v)));
  9919. });
  9920. });
  9921. serializedParams = parts.join('&');
  9922. }
  9923. if (serializedParams) {
  9924. var hashmarkIndex = url.indexOf('#');
  9925. if (hashmarkIndex !== -1) {
  9926. url = url.slice(0, hashmarkIndex);
  9927. }
  9928. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  9929. }
  9930. return url;
  9931. }
  9932. /***/ }),
  9933. /* 25 */
  9934. /*!*************************************************************************************!*\
  9935. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/luch-request/utils.js ***!
  9936. \*************************************************************************************/
  9937. /*! no static exports found */
  9938. /***/ (function(module, exports, __webpack_require__) {
  9939. "use strict";
  9940. // utils is a library of generic helper functions non-specific to axios
  9941. 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
  9942. toString = Object.prototype.toString;
  9943. /**
  9944. * Determine if a value is an Array
  9945. *
  9946. * @param {Object} val The value to test
  9947. * @returns {boolean} True if value is an Array, otherwise false
  9948. */
  9949. function isArray(val) {
  9950. return toString.call(val) === '[object Array]';
  9951. }
  9952. /**
  9953. * Determine if a value is an Object
  9954. *
  9955. * @param {Object} val The value to test
  9956. * @returns {boolean} True if value is an Object, otherwise false
  9957. */
  9958. function isObject(val) {
  9959. return val !== null && typeof val === 'object';
  9960. }
  9961. /**
  9962. * Determine if a value is a Date
  9963. *
  9964. * @param {Object} val The value to test
  9965. * @returns {boolean} True if value is a Date, otherwise false
  9966. */
  9967. function isDate(val) {
  9968. return toString.call(val) === '[object Date]';
  9969. }
  9970. /**
  9971. * Determine if a value is a URLSearchParams object
  9972. *
  9973. * @param {Object} val The value to test
  9974. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  9975. */
  9976. function isURLSearchParams(val) {
  9977. return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  9978. }
  9979. /**
  9980. * Iterate over an Array or an Object invoking a function for each item.
  9981. *
  9982. * If `obj` is an Array callback will be called passing
  9983. * the value, index, and complete array for each item.
  9984. *
  9985. * If 'obj' is an Object callback will be called passing
  9986. * the value, key, and complete object for each property.
  9987. *
  9988. * @param {Object|Array} obj The object to iterate
  9989. * @param {Function} fn The callback to invoke for each item
  9990. */
  9991. function forEach(obj, fn) {
  9992. // Don't bother if no value provided
  9993. if (obj === null || typeof obj === 'undefined') {
  9994. return;
  9995. }
  9996. // Force an array if not already something iterable
  9997. if (typeof obj !== 'object') {
  9998. /* eslint no-param-reassign:0 */
  9999. obj = [obj];
  10000. }
  10001. if (isArray(obj)) {
  10002. // Iterate over array values
  10003. for (var i = 0, l = obj.length; i < l; i++) {
  10004. fn.call(null, obj[i], i, obj);
  10005. }
  10006. } else {
  10007. // Iterate over object keys
  10008. for (var key in obj) {
  10009. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  10010. fn.call(null, obj[key], key, obj);
  10011. }
  10012. }
  10013. }
  10014. }
  10015. /**
  10016. * 是否为boolean 值
  10017. * @param val
  10018. * @returns {boolean}
  10019. */
  10020. function isBoolean(val) {
  10021. return typeof val === 'boolean';
  10022. }
  10023. /**
  10024. * 是否为真正的对象{} new Object
  10025. * @param {any} obj - 检测的对象
  10026. * @returns {boolean}
  10027. */
  10028. function isPlainObject(obj) {
  10029. return Object.prototype.toString.call(obj) === '[object Object]';
  10030. }
  10031. /**
  10032. * Function equal to merge with the difference being that no reference
  10033. * to original objects is kept.
  10034. *
  10035. * @see merge
  10036. * @param {Object} obj1 Object to merge
  10037. * @returns {Object} Result of all merge properties
  10038. */
  10039. function deepMerge() /* obj1, obj2, obj3, ... */{
  10040. var result = {};
  10041. function assignValue(val, key) {
  10042. if (typeof result[key] === 'object' && typeof val === 'object') {
  10043. result[key] = deepMerge(result[key], val);
  10044. } else if (typeof val === 'object') {
  10045. result[key] = deepMerge({}, val);
  10046. } else {
  10047. result[key] = val;
  10048. }
  10049. }
  10050. for (var i = 0, l = arguments.length; i < l; i++) {
  10051. forEach(arguments[i], assignValue);
  10052. }
  10053. return result;
  10054. }
  10055. function isUndefined(val) {
  10056. return typeof val === 'undefined';
  10057. }
  10058. /***/ }),
  10059. /* 26 */
  10060. /*!**************************************************************************************************!*\
  10061. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/luch-request/core/buildFullPath.js ***!
  10062. \**************************************************************************************************/
  10063. /*! no static exports found */
  10064. /***/ (function(module, exports, __webpack_require__) {
  10065. "use strict";
  10066. Object.defineProperty(exports, "__esModule", { value: true });exports.default = buildFullPath;
  10067. var _isAbsoluteURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/isAbsoluteURL */ 27));
  10068. var _combineURLs = _interopRequireDefault(__webpack_require__(/*! ../helpers/combineURLs */ 28));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  10069. /**
  10070. * Creates a new URL by combining the baseURL with the requestedURL,
  10071. * only when the requestedURL is not already an absolute URL.
  10072. * If the requestURL is absolute, this function returns the requestedURL untouched.
  10073. *
  10074. * @param {string} baseURL The base URL
  10075. * @param {string} requestedURL Absolute or relative URL to combine
  10076. * @returns {string} The combined full path
  10077. */
  10078. function buildFullPath(baseURL, requestedURL) {
  10079. if (baseURL && !(0, _isAbsoluteURL.default)(requestedURL)) {
  10080. return (0, _combineURLs.default)(baseURL, requestedURL);
  10081. }
  10082. return requestedURL;
  10083. }
  10084. /***/ }),
  10085. /* 27 */
  10086. /*!*****************************************************************************************************!*\
  10087. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js ***!
  10088. \*****************************************************************************************************/
  10089. /*! no static exports found */
  10090. /***/ (function(module, exports, __webpack_require__) {
  10091. "use strict";
  10092. /**
  10093. * Determines whether the specified URL is absolute
  10094. *
  10095. * @param {string} url The URL to test
  10096. * @returns {boolean} True if the specified URL is absolute, otherwise false
  10097. */Object.defineProperty(exports, "__esModule", { value: true });exports.default = isAbsoluteURL;
  10098. function isAbsoluteURL(url) {
  10099. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  10100. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  10101. // by any combination of letters, digits, plus, period, or hyphen.
  10102. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
  10103. }
  10104. /***/ }),
  10105. /* 28 */
  10106. /*!***************************************************************************************************!*\
  10107. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/luch-request/helpers/combineURLs.js ***!
  10108. \***************************************************************************************************/
  10109. /*! no static exports found */
  10110. /***/ (function(module, exports, __webpack_require__) {
  10111. "use strict";
  10112. /**
  10113. * Creates a new URL by combining the specified URLs
  10114. *
  10115. * @param {string} baseURL The base URL
  10116. * @param {string} relativeURL The relative URL
  10117. * @returns {string} The combined URL
  10118. */Object.defineProperty(exports, "__esModule", { value: true });exports.default = combineURLs;
  10119. function combineURLs(baseURL, relativeURL) {
  10120. return relativeURL ? "".concat(
  10121. baseURL.replace(/\/+$/, ''), "/").concat(relativeURL.replace(/^\/+/, '')) :
  10122. baseURL;
  10123. }
  10124. /***/ }),
  10125. /* 29 */
  10126. /*!*******************************************************************************************!*\
  10127. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/luch-request/core/settle.js ***!
  10128. \*******************************************************************************************/
  10129. /*! no static exports found */
  10130. /***/ (function(module, exports, __webpack_require__) {
  10131. "use strict";
  10132. Object.defineProperty(exports, "__esModule", { value: true });exports.default = settle; /**
  10133. * Resolve or reject a Promise based on response status.
  10134. *
  10135. * @param {Function} resolve A function that resolves the promise.
  10136. * @param {Function} reject A function that rejects the promise.
  10137. * @param {object} response The response.
  10138. */
  10139. function settle(resolve, reject, response) {var
  10140. validateStatus = response.config.validateStatus;
  10141. var status = response.statusCode;
  10142. if (status && (!validateStatus || validateStatus(status))) {
  10143. resolve(response);
  10144. } else {
  10145. reject(response);
  10146. }
  10147. }
  10148. /***/ }),
  10149. /* 30 */
  10150. /*!*******************************************************************************************************!*\
  10151. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/luch-request/core/InterceptorManager.js ***!
  10152. \*******************************************************************************************************/
  10153. /*! no static exports found */
  10154. /***/ (function(module, exports, __webpack_require__) {
  10155. "use strict";
  10156. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  10157. function InterceptorManager() {
  10158. this.handlers = [];
  10159. }
  10160. /**
  10161. * Add a new interceptor to the stack
  10162. *
  10163. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  10164. * @param {Function} rejected The function to handle `reject` for a `Promise`
  10165. *
  10166. * @return {Number} An ID used to remove interceptor later
  10167. */
  10168. InterceptorManager.prototype.use = function use(fulfilled, rejected) {
  10169. this.handlers.push({
  10170. fulfilled: fulfilled,
  10171. rejected: rejected });
  10172. return this.handlers.length - 1;
  10173. };
  10174. /**
  10175. * Remove an interceptor from the stack
  10176. *
  10177. * @param {Number} id The ID that was returned by `use`
  10178. */
  10179. InterceptorManager.prototype.eject = function eject(id) {
  10180. if (this.handlers[id]) {
  10181. this.handlers[id] = null;
  10182. }
  10183. };
  10184. /**
  10185. * Iterate over all the registered interceptors
  10186. *
  10187. * This method is particularly useful for skipping over any
  10188. * interceptors that may have become `null` calling `eject`.
  10189. *
  10190. * @param {Function} fn The function to call for each interceptor
  10191. */
  10192. InterceptorManager.prototype.forEach = function forEach(fn) {
  10193. this.handlers.forEach(function (h) {
  10194. if (h !== null) {
  10195. fn(h);
  10196. }
  10197. });
  10198. };var _default =
  10199. InterceptorManager;exports.default = _default;
  10200. /***/ }),
  10201. /* 31 */
  10202. /*!************************************************************************************************!*\
  10203. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/luch-request/core/mergeConfig.js ***!
  10204. \************************************************************************************************/
  10205. /*! no static exports found */
  10206. /***/ (function(module, exports, __webpack_require__) {
  10207. "use strict";
  10208. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _utils = __webpack_require__(/*! ../utils */ 25);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;}
  10209. /**
  10210. * 合并局部配置优先的配置,如果局部有该配置项则用局部,如果全局有该配置项则用全局
  10211. * @param {Array} keys - 配置项
  10212. * @param {Object} globalsConfig - 当前的全局配置
  10213. * @param {Object} config2 - 局部配置
  10214. * @return {{}}
  10215. */
  10216. var mergeKeys = function mergeKeys(keys, globalsConfig, config2) {
  10217. var config = {};
  10218. keys.forEach(function (prop) {
  10219. if (!(0, _utils.isUndefined)(config2[prop])) {
  10220. config[prop] = config2[prop];
  10221. } else if (!(0, _utils.isUndefined)(globalsConfig[prop])) {
  10222. config[prop] = globalsConfig[prop];
  10223. }
  10224. });
  10225. return config;
  10226. };
  10227. /**
  10228. *
  10229. * @param globalsConfig - 当前实例的全局配置
  10230. * @param config2 - 当前的局部配置
  10231. * @return - 合并后的配置
  10232. */var _default =
  10233. function _default(globalsConfig) {var config2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  10234. var method = config2.method || globalsConfig.method || 'GET';
  10235. var config = {
  10236. baseURL: globalsConfig.baseURL || '',
  10237. method: method,
  10238. url: config2.url || '',
  10239. params: config2.params || {},
  10240. custom: _objectSpread(_objectSpread({}, globalsConfig.custom || {}), config2.custom || {}),
  10241. header: (0, _utils.deepMerge)(globalsConfig.header || {}, config2.header || {}) };
  10242. var defaultToConfig2Keys = ['getTask', 'validateStatus'];
  10243. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultToConfig2Keys, globalsConfig, config2));
  10244. // eslint-disable-next-line no-empty
  10245. if (method === 'DOWNLOAD') {
  10246. } else if (method === 'UPLOAD') {
  10247. delete config.header['content-type'];
  10248. delete config.header['Content-Type'];
  10249. var uploadKeys = [
  10250. 'filePath',
  10251. 'name',
  10252. 'formData'];
  10253. uploadKeys.forEach(function (prop) {
  10254. if (!(0, _utils.isUndefined)(config2[prop])) {
  10255. config[prop] = config2[prop];
  10256. }
  10257. });
  10258. } else {
  10259. var defaultsKeys = [
  10260. 'data',
  10261. 'timeout',
  10262. 'dataType',
  10263. 'responseType'];
  10264. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultsKeys, globalsConfig, config2));
  10265. }
  10266. return config;
  10267. };exports.default = _default;
  10268. /***/ }),
  10269. /* 32 */
  10270. /*!*********************************************************************************************!*\
  10271. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/luch-request/core/defaults.js ***!
  10272. \*********************************************************************************************/
  10273. /*! no static exports found */
  10274. /***/ (function(module, exports, __webpack_require__) {
  10275. "use strict";
  10276. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /**
  10277. * 默认的全局配置
  10278. */var _default =
  10279. {
  10280. baseURL: '',
  10281. header: {},
  10282. method: 'GET',
  10283. dataType: 'json',
  10284. responseType: 'text',
  10285. custom: {},
  10286. timeout: 60000,
  10287. validateStatus: function validateStatus(status) {
  10288. return status >= 200 && status < 300;
  10289. } };exports.default = _default;
  10290. /***/ }),
  10291. /* 33 */
  10292. /*!*******************************************************************************************!*\
  10293. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/luch-request/utils/clone.js ***!
  10294. \*******************************************************************************************/
  10295. /*! no static exports found */
  10296. /***/ (function(module, exports, __webpack_require__) {
  10297. "use strict";
  10298. /* WEBPACK VAR INJECTION */(function(Buffer) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /* eslint-disable */
  10299. var clone = function () {
  10300. 'use strict';
  10301. function _instanceof(obj, type) {
  10302. return type != null && obj instanceof type;
  10303. }
  10304. var nativeMap;
  10305. try {
  10306. nativeMap = Map;
  10307. } catch (_) {
  10308. // maybe a reference error because no `Map`. Give it a dummy value that no
  10309. // value will ever be an instanceof.
  10310. nativeMap = function nativeMap() {};
  10311. }
  10312. var nativeSet;
  10313. try {
  10314. nativeSet = Set;
  10315. } catch (_) {
  10316. nativeSet = function nativeSet() {};
  10317. }
  10318. var nativePromise;
  10319. try {
  10320. nativePromise = Promise;
  10321. } catch (_) {
  10322. nativePromise = function nativePromise() {};
  10323. }
  10324. /**
  10325. * Clones (copies) an Object using deep copying.
  10326. *
  10327. * This function supports circular references by default, but if you are certain
  10328. * there are no circular references in your object, you can save some CPU time
  10329. * by calling clone(obj, false).
  10330. *
  10331. * Caution: if `circular` is false and `parent` contains circular references,
  10332. * your program may enter an infinite loop and crash.
  10333. *
  10334. * @param `parent` - the object to be cloned
  10335. * @param `circular` - set to true if the object to be cloned may contain
  10336. * circular references. (optional - true by default)
  10337. * @param `depth` - set to a number if the object is only to be cloned to
  10338. * a particular depth. (optional - defaults to Infinity)
  10339. * @param `prototype` - sets the prototype to be used when cloning an object.
  10340. * (optional - defaults to parent prototype).
  10341. * @param `includeNonEnumerable` - set to true if the non-enumerable properties
  10342. * should be cloned as well. Non-enumerable properties on the prototype
  10343. * chain will be ignored. (optional - false by default)
  10344. */
  10345. function clone(parent, circular, depth, prototype, includeNonEnumerable) {
  10346. if (typeof circular === 'object') {
  10347. depth = circular.depth;
  10348. prototype = circular.prototype;
  10349. includeNonEnumerable = circular.includeNonEnumerable;
  10350. circular = circular.circular;
  10351. }
  10352. // maintain two arrays for circular references, where corresponding parents
  10353. // and children have the same index
  10354. var allParents = [];
  10355. var allChildren = [];
  10356. var useBuffer = typeof Buffer != 'undefined';
  10357. if (typeof circular == 'undefined')
  10358. circular = true;
  10359. if (typeof depth == 'undefined')
  10360. depth = Infinity;
  10361. // recurse this function so we don't reset allParents and allChildren
  10362. function _clone(parent, depth) {
  10363. // cloning null always returns null
  10364. if (parent === null)
  10365. return null;
  10366. if (depth === 0)
  10367. return parent;
  10368. var child;
  10369. var proto;
  10370. if (typeof parent != 'object') {
  10371. return parent;
  10372. }
  10373. if (_instanceof(parent, nativeMap)) {
  10374. child = new nativeMap();
  10375. } else if (_instanceof(parent, nativeSet)) {
  10376. child = new nativeSet();
  10377. } else if (_instanceof(parent, nativePromise)) {
  10378. child = new nativePromise(function (resolve, reject) {
  10379. parent.then(function (value) {
  10380. resolve(_clone(value, depth - 1));
  10381. }, function (err) {
  10382. reject(_clone(err, depth - 1));
  10383. });
  10384. });
  10385. } else if (clone.__isArray(parent)) {
  10386. child = [];
  10387. } else if (clone.__isRegExp(parent)) {
  10388. child = new RegExp(parent.source, __getRegExpFlags(parent));
  10389. if (parent.lastIndex) child.lastIndex = parent.lastIndex;
  10390. } else if (clone.__isDate(parent)) {
  10391. child = new Date(parent.getTime());
  10392. } else if (useBuffer && Buffer.isBuffer(parent)) {
  10393. if (Buffer.from) {
  10394. // Node.js >= 5.10.0
  10395. child = Buffer.from(parent);
  10396. } else {
  10397. // Older Node.js versions
  10398. child = new Buffer(parent.length);
  10399. parent.copy(child);
  10400. }
  10401. return child;
  10402. } else if (_instanceof(parent, Error)) {
  10403. child = Object.create(parent);
  10404. } else {
  10405. if (typeof prototype == 'undefined') {
  10406. proto = Object.getPrototypeOf(parent);
  10407. child = Object.create(proto);
  10408. } else
  10409. {
  10410. child = Object.create(prototype);
  10411. proto = prototype;
  10412. }
  10413. }
  10414. if (circular) {
  10415. var index = allParents.indexOf(parent);
  10416. if (index != -1) {
  10417. return allChildren[index];
  10418. }
  10419. allParents.push(parent);
  10420. allChildren.push(child);
  10421. }
  10422. if (_instanceof(parent, nativeMap)) {
  10423. parent.forEach(function (value, key) {
  10424. var keyChild = _clone(key, depth - 1);
  10425. var valueChild = _clone(value, depth - 1);
  10426. child.set(keyChild, valueChild);
  10427. });
  10428. }
  10429. if (_instanceof(parent, nativeSet)) {
  10430. parent.forEach(function (value) {
  10431. var entryChild = _clone(value, depth - 1);
  10432. child.add(entryChild);
  10433. });
  10434. }
  10435. for (var i in parent) {
  10436. var attrs = Object.getOwnPropertyDescriptor(parent, i);
  10437. if (attrs) {
  10438. child[i] = _clone(parent[i], depth - 1);
  10439. }
  10440. try {
  10441. var objProperty = Object.getOwnPropertyDescriptor(parent, i);
  10442. if (objProperty.set === 'undefined') {
  10443. // no setter defined. Skip cloning this property
  10444. continue;
  10445. }
  10446. child[i] = _clone(parent[i], depth - 1);
  10447. } catch (e) {
  10448. if (e instanceof TypeError) {
  10449. // when in strict mode, TypeError will be thrown if child[i] property only has a getter
  10450. // we can't do anything about this, other than inform the user that this property cannot be set.
  10451. continue;
  10452. } else if (e instanceof ReferenceError) {
  10453. //this may happen in non strict mode
  10454. continue;
  10455. }
  10456. }
  10457. }
  10458. if (Object.getOwnPropertySymbols) {
  10459. var symbols = Object.getOwnPropertySymbols(parent);
  10460. for (var i = 0; i < symbols.length; i++) {
  10461. // Don't need to worry about cloning a symbol because it is a primitive,
  10462. // like a number or string.
  10463. var symbol = symbols[i];
  10464. var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
  10465. if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
  10466. continue;
  10467. }
  10468. child[symbol] = _clone(parent[symbol], depth - 1);
  10469. Object.defineProperty(child, symbol, descriptor);
  10470. }
  10471. }
  10472. if (includeNonEnumerable) {
  10473. var allPropertyNames = Object.getOwnPropertyNames(parent);
  10474. for (var i = 0; i < allPropertyNames.length; i++) {
  10475. var propertyName = allPropertyNames[i];
  10476. var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
  10477. if (descriptor && descriptor.enumerable) {
  10478. continue;
  10479. }
  10480. child[propertyName] = _clone(parent[propertyName], depth - 1);
  10481. Object.defineProperty(child, propertyName, descriptor);
  10482. }
  10483. }
  10484. return child;
  10485. }
  10486. return _clone(parent, depth);
  10487. }
  10488. /**
  10489. * Simple flat clone using prototype, accepts only objects, usefull for property
  10490. * override on FLAT configuration object (no nested props).
  10491. *
  10492. * USE WITH CAUTION! This may not behave as you wish if you do not know how this
  10493. * works.
  10494. */
  10495. clone.clonePrototype = function clonePrototype(parent) {
  10496. if (parent === null)
  10497. return null;
  10498. var c = function c() {};
  10499. c.prototype = parent;
  10500. return new c();
  10501. };
  10502. // private utility functions
  10503. function __objToStr(o) {
  10504. return Object.prototype.toString.call(o);
  10505. }
  10506. clone.__objToStr = __objToStr;
  10507. function __isDate(o) {
  10508. return typeof o === 'object' && __objToStr(o) === '[object Date]';
  10509. }
  10510. clone.__isDate = __isDate;
  10511. function __isArray(o) {
  10512. return typeof o === 'object' && __objToStr(o) === '[object Array]';
  10513. }
  10514. clone.__isArray = __isArray;
  10515. function __isRegExp(o) {
  10516. return typeof o === 'object' && __objToStr(o) === '[object RegExp]';
  10517. }
  10518. clone.__isRegExp = __isRegExp;
  10519. function __getRegExpFlags(re) {
  10520. var flags = '';
  10521. if (re.global) flags += 'g';
  10522. if (re.ignoreCase) flags += 'i';
  10523. if (re.multiline) flags += 'm';
  10524. return flags;
  10525. }
  10526. clone.__getRegExpFlags = __getRegExpFlags;
  10527. return clone;
  10528. }();var _default =
  10529. clone;exports.default = _default;
  10530. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../../../hbuilderx/HBuilderX.3.5.0.20220623-alpha/HBuilderX/plugins/uniapp-cli/node_modules/buffer/index.js */ 34).Buffer))
  10531. /***/ }),
  10532. /* 34 */
  10533. /*!**************************************!*\
  10534. !*** ./node_modules/buffer/index.js ***!
  10535. \**************************************/
  10536. /*! no static exports found */
  10537. /***/ (function(module, exports, __webpack_require__) {
  10538. "use strict";
  10539. /* WEBPACK VAR INJECTION */(function(global) {/*!
  10540. * The buffer module from node.js, for the browser.
  10541. *
  10542. * @author Feross Aboukhadijeh <http://feross.org>
  10543. * @license MIT
  10544. */
  10545. /* eslint-disable no-proto */
  10546. var base64 = __webpack_require__(/*! base64-js */ 35)
  10547. var ieee754 = __webpack_require__(/*! ieee754 */ 36)
  10548. var isArray = __webpack_require__(/*! isarray */ 37)
  10549. exports.Buffer = Buffer
  10550. exports.SlowBuffer = SlowBuffer
  10551. exports.INSPECT_MAX_BYTES = 50
  10552. /**
  10553. * If `Buffer.TYPED_ARRAY_SUPPORT`:
  10554. * === true Use Uint8Array implementation (fastest)
  10555. * === false Use Object implementation (most compatible, even IE6)
  10556. *
  10557. * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
  10558. * Opera 11.6+, iOS 4.2+.
  10559. *
  10560. * Due to various browser bugs, sometimes the Object implementation will be used even
  10561. * when the browser supports typed arrays.
  10562. *
  10563. * Note:
  10564. *
  10565. * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
  10566. * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
  10567. *
  10568. * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
  10569. *
  10570. * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
  10571. * incorrect length in some situations.
  10572. * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
  10573. * get the Object implementation, which is slower but behaves correctly.
  10574. */
  10575. Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
  10576. ? global.TYPED_ARRAY_SUPPORT
  10577. : typedArraySupport()
  10578. /*
  10579. * Export kMaxLength after typed array support is determined.
  10580. */
  10581. exports.kMaxLength = kMaxLength()
  10582. function typedArraySupport () {
  10583. try {
  10584. var arr = new Uint8Array(1)
  10585. arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
  10586. return arr.foo() === 42 && // typed array instances can be augmented
  10587. typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
  10588. arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  10589. } catch (e) {
  10590. return false
  10591. }
  10592. }
  10593. function kMaxLength () {
  10594. return Buffer.TYPED_ARRAY_SUPPORT
  10595. ? 0x7fffffff
  10596. : 0x3fffffff
  10597. }
  10598. function createBuffer (that, length) {
  10599. if (kMaxLength() < length) {
  10600. throw new RangeError('Invalid typed array length')
  10601. }
  10602. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10603. // Return an augmented `Uint8Array` instance, for best performance
  10604. that = new Uint8Array(length)
  10605. that.__proto__ = Buffer.prototype
  10606. } else {
  10607. // Fallback: Return an object instance of the Buffer class
  10608. if (that === null) {
  10609. that = new Buffer(length)
  10610. }
  10611. that.length = length
  10612. }
  10613. return that
  10614. }
  10615. /**
  10616. * The Buffer constructor returns instances of `Uint8Array` that have their
  10617. * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
  10618. * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
  10619. * and the `Uint8Array` methods. Square bracket notation works as expected -- it
  10620. * returns a single octet.
  10621. *
  10622. * The `Uint8Array` prototype remains unmodified.
  10623. */
  10624. function Buffer (arg, encodingOrOffset, length) {
  10625. if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
  10626. return new Buffer(arg, encodingOrOffset, length)
  10627. }
  10628. // Common case.
  10629. if (typeof arg === 'number') {
  10630. if (typeof encodingOrOffset === 'string') {
  10631. throw new Error(
  10632. 'If encoding is specified then the first argument must be a string'
  10633. )
  10634. }
  10635. return allocUnsafe(this, arg)
  10636. }
  10637. return from(this, arg, encodingOrOffset, length)
  10638. }
  10639. Buffer.poolSize = 8192 // not used by this implementation
  10640. // TODO: Legacy, not needed anymore. Remove in next major version.
  10641. Buffer._augment = function (arr) {
  10642. arr.__proto__ = Buffer.prototype
  10643. return arr
  10644. }
  10645. function from (that, value, encodingOrOffset, length) {
  10646. if (typeof value === 'number') {
  10647. throw new TypeError('"value" argument must not be a number')
  10648. }
  10649. if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
  10650. return fromArrayBuffer(that, value, encodingOrOffset, length)
  10651. }
  10652. if (typeof value === 'string') {
  10653. return fromString(that, value, encodingOrOffset)
  10654. }
  10655. return fromObject(that, value)
  10656. }
  10657. /**
  10658. * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
  10659. * if value is a number.
  10660. * Buffer.from(str[, encoding])
  10661. * Buffer.from(array)
  10662. * Buffer.from(buffer)
  10663. * Buffer.from(arrayBuffer[, byteOffset[, length]])
  10664. **/
  10665. Buffer.from = function (value, encodingOrOffset, length) {
  10666. return from(null, value, encodingOrOffset, length)
  10667. }
  10668. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10669. Buffer.prototype.__proto__ = Uint8Array.prototype
  10670. Buffer.__proto__ = Uint8Array
  10671. if (typeof Symbol !== 'undefined' && Symbol.species &&
  10672. Buffer[Symbol.species] === Buffer) {
  10673. // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
  10674. Object.defineProperty(Buffer, Symbol.species, {
  10675. value: null,
  10676. configurable: true
  10677. })
  10678. }
  10679. }
  10680. function assertSize (size) {
  10681. if (typeof size !== 'number') {
  10682. throw new TypeError('"size" argument must be a number')
  10683. } else if (size < 0) {
  10684. throw new RangeError('"size" argument must not be negative')
  10685. }
  10686. }
  10687. function alloc (that, size, fill, encoding) {
  10688. assertSize(size)
  10689. if (size <= 0) {
  10690. return createBuffer(that, size)
  10691. }
  10692. if (fill !== undefined) {
  10693. // Only pay attention to encoding if it's a string. This
  10694. // prevents accidentally sending in a number that would
  10695. // be interpretted as a start offset.
  10696. return typeof encoding === 'string'
  10697. ? createBuffer(that, size).fill(fill, encoding)
  10698. : createBuffer(that, size).fill(fill)
  10699. }
  10700. return createBuffer(that, size)
  10701. }
  10702. /**
  10703. * Creates a new filled Buffer instance.
  10704. * alloc(size[, fill[, encoding]])
  10705. **/
  10706. Buffer.alloc = function (size, fill, encoding) {
  10707. return alloc(null, size, fill, encoding)
  10708. }
  10709. function allocUnsafe (that, size) {
  10710. assertSize(size)
  10711. that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  10712. if (!Buffer.TYPED_ARRAY_SUPPORT) {
  10713. for (var i = 0; i < size; ++i) {
  10714. that[i] = 0
  10715. }
  10716. }
  10717. return that
  10718. }
  10719. /**
  10720. * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
  10721. * */
  10722. Buffer.allocUnsafe = function (size) {
  10723. return allocUnsafe(null, size)
  10724. }
  10725. /**
  10726. * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
  10727. */
  10728. Buffer.allocUnsafeSlow = function (size) {
  10729. return allocUnsafe(null, size)
  10730. }
  10731. function fromString (that, string, encoding) {
  10732. if (typeof encoding !== 'string' || encoding === '') {
  10733. encoding = 'utf8'
  10734. }
  10735. if (!Buffer.isEncoding(encoding)) {
  10736. throw new TypeError('"encoding" must be a valid string encoding')
  10737. }
  10738. var length = byteLength(string, encoding) | 0
  10739. that = createBuffer(that, length)
  10740. var actual = that.write(string, encoding)
  10741. if (actual !== length) {
  10742. // Writing a hex string, for example, that contains invalid characters will
  10743. // cause everything after the first invalid character to be ignored. (e.g.
  10744. // 'abxxcd' will be treated as 'ab')
  10745. that = that.slice(0, actual)
  10746. }
  10747. return that
  10748. }
  10749. function fromArrayLike (that, array) {
  10750. var length = array.length < 0 ? 0 : checked(array.length) | 0
  10751. that = createBuffer(that, length)
  10752. for (var i = 0; i < length; i += 1) {
  10753. that[i] = array[i] & 255
  10754. }
  10755. return that
  10756. }
  10757. function fromArrayBuffer (that, array, byteOffset, length) {
  10758. array.byteLength // this throws if `array` is not a valid ArrayBuffer
  10759. if (byteOffset < 0 || array.byteLength < byteOffset) {
  10760. throw new RangeError('\'offset\' is out of bounds')
  10761. }
  10762. if (array.byteLength < byteOffset + (length || 0)) {
  10763. throw new RangeError('\'length\' is out of bounds')
  10764. }
  10765. if (byteOffset === undefined && length === undefined) {
  10766. array = new Uint8Array(array)
  10767. } else if (length === undefined) {
  10768. array = new Uint8Array(array, byteOffset)
  10769. } else {
  10770. array = new Uint8Array(array, byteOffset, length)
  10771. }
  10772. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10773. // Return an augmented `Uint8Array` instance, for best performance
  10774. that = array
  10775. that.__proto__ = Buffer.prototype
  10776. } else {
  10777. // Fallback: Return an object instance of the Buffer class
  10778. that = fromArrayLike(that, array)
  10779. }
  10780. return that
  10781. }
  10782. function fromObject (that, obj) {
  10783. if (Buffer.isBuffer(obj)) {
  10784. var len = checked(obj.length) | 0
  10785. that = createBuffer(that, len)
  10786. if (that.length === 0) {
  10787. return that
  10788. }
  10789. obj.copy(that, 0, 0, len)
  10790. return that
  10791. }
  10792. if (obj) {
  10793. if ((typeof ArrayBuffer !== 'undefined' &&
  10794. obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
  10795. if (typeof obj.length !== 'number' || isnan(obj.length)) {
  10796. return createBuffer(that, 0)
  10797. }
  10798. return fromArrayLike(that, obj)
  10799. }
  10800. if (obj.type === 'Buffer' && isArray(obj.data)) {
  10801. return fromArrayLike(that, obj.data)
  10802. }
  10803. }
  10804. throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
  10805. }
  10806. function checked (length) {
  10807. // Note: cannot use `length < kMaxLength()` here because that fails when
  10808. // length is NaN (which is otherwise coerced to zero.)
  10809. if (length >= kMaxLength()) {
  10810. throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
  10811. 'size: 0x' + kMaxLength().toString(16) + ' bytes')
  10812. }
  10813. return length | 0
  10814. }
  10815. function SlowBuffer (length) {
  10816. if (+length != length) { // eslint-disable-line eqeqeq
  10817. length = 0
  10818. }
  10819. return Buffer.alloc(+length)
  10820. }
  10821. Buffer.isBuffer = function isBuffer (b) {
  10822. return !!(b != null && b._isBuffer)
  10823. }
  10824. Buffer.compare = function compare (a, b) {
  10825. if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
  10826. throw new TypeError('Arguments must be Buffers')
  10827. }
  10828. if (a === b) return 0
  10829. var x = a.length
  10830. var y = b.length
  10831. for (var i = 0, len = Math.min(x, y); i < len; ++i) {
  10832. if (a[i] !== b[i]) {
  10833. x = a[i]
  10834. y = b[i]
  10835. break
  10836. }
  10837. }
  10838. if (x < y) return -1
  10839. if (y < x) return 1
  10840. return 0
  10841. }
  10842. Buffer.isEncoding = function isEncoding (encoding) {
  10843. switch (String(encoding).toLowerCase()) {
  10844. case 'hex':
  10845. case 'utf8':
  10846. case 'utf-8':
  10847. case 'ascii':
  10848. case 'latin1':
  10849. case 'binary':
  10850. case 'base64':
  10851. case 'ucs2':
  10852. case 'ucs-2':
  10853. case 'utf16le':
  10854. case 'utf-16le':
  10855. return true
  10856. default:
  10857. return false
  10858. }
  10859. }
  10860. Buffer.concat = function concat (list, length) {
  10861. if (!isArray(list)) {
  10862. throw new TypeError('"list" argument must be an Array of Buffers')
  10863. }
  10864. if (list.length === 0) {
  10865. return Buffer.alloc(0)
  10866. }
  10867. var i
  10868. if (length === undefined) {
  10869. length = 0
  10870. for (i = 0; i < list.length; ++i) {
  10871. length += list[i].length
  10872. }
  10873. }
  10874. var buffer = Buffer.allocUnsafe(length)
  10875. var pos = 0
  10876. for (i = 0; i < list.length; ++i) {
  10877. var buf = list[i]
  10878. if (!Buffer.isBuffer(buf)) {
  10879. throw new TypeError('"list" argument must be an Array of Buffers')
  10880. }
  10881. buf.copy(buffer, pos)
  10882. pos += buf.length
  10883. }
  10884. return buffer
  10885. }
  10886. function byteLength (string, encoding) {
  10887. if (Buffer.isBuffer(string)) {
  10888. return string.length
  10889. }
  10890. if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
  10891. (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
  10892. return string.byteLength
  10893. }
  10894. if (typeof string !== 'string') {
  10895. string = '' + string
  10896. }
  10897. var len = string.length
  10898. if (len === 0) return 0
  10899. // Use a for loop to avoid recursion
  10900. var loweredCase = false
  10901. for (;;) {
  10902. switch (encoding) {
  10903. case 'ascii':
  10904. case 'latin1':
  10905. case 'binary':
  10906. return len
  10907. case 'utf8':
  10908. case 'utf-8':
  10909. case undefined:
  10910. return utf8ToBytes(string).length
  10911. case 'ucs2':
  10912. case 'ucs-2':
  10913. case 'utf16le':
  10914. case 'utf-16le':
  10915. return len * 2
  10916. case 'hex':
  10917. return len >>> 1
  10918. case 'base64':
  10919. return base64ToBytes(string).length
  10920. default:
  10921. if (loweredCase) return utf8ToBytes(string).length // assume utf8
  10922. encoding = ('' + encoding).toLowerCase()
  10923. loweredCase = true
  10924. }
  10925. }
  10926. }
  10927. Buffer.byteLength = byteLength
  10928. function slowToString (encoding, start, end) {
  10929. var loweredCase = false
  10930. // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
  10931. // property of a typed array.
  10932. // This behaves neither like String nor Uint8Array in that we set start/end
  10933. // to their upper/lower bounds if the value passed is out of range.
  10934. // undefined is handled specially as per ECMA-262 6th Edition,
  10935. // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
  10936. if (start === undefined || start < 0) {
  10937. start = 0
  10938. }
  10939. // Return early if start > this.length. Done here to prevent potential uint32
  10940. // coercion fail below.
  10941. if (start > this.length) {
  10942. return ''
  10943. }
  10944. if (end === undefined || end > this.length) {
  10945. end = this.length
  10946. }
  10947. if (end <= 0) {
  10948. return ''
  10949. }
  10950. // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
  10951. end >>>= 0
  10952. start >>>= 0
  10953. if (end <= start) {
  10954. return ''
  10955. }
  10956. if (!encoding) encoding = 'utf8'
  10957. while (true) {
  10958. switch (encoding) {
  10959. case 'hex':
  10960. return hexSlice(this, start, end)
  10961. case 'utf8':
  10962. case 'utf-8':
  10963. return utf8Slice(this, start, end)
  10964. case 'ascii':
  10965. return asciiSlice(this, start, end)
  10966. case 'latin1':
  10967. case 'binary':
  10968. return latin1Slice(this, start, end)
  10969. case 'base64':
  10970. return base64Slice(this, start, end)
  10971. case 'ucs2':
  10972. case 'ucs-2':
  10973. case 'utf16le':
  10974. case 'utf-16le':
  10975. return utf16leSlice(this, start, end)
  10976. default:
  10977. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  10978. encoding = (encoding + '').toLowerCase()
  10979. loweredCase = true
  10980. }
  10981. }
  10982. }
  10983. // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
  10984. // Buffer instances.
  10985. Buffer.prototype._isBuffer = true
  10986. function swap (b, n, m) {
  10987. var i = b[n]
  10988. b[n] = b[m]
  10989. b[m] = i
  10990. }
  10991. Buffer.prototype.swap16 = function swap16 () {
  10992. var len = this.length
  10993. if (len % 2 !== 0) {
  10994. throw new RangeError('Buffer size must be a multiple of 16-bits')
  10995. }
  10996. for (var i = 0; i < len; i += 2) {
  10997. swap(this, i, i + 1)
  10998. }
  10999. return this
  11000. }
  11001. Buffer.prototype.swap32 = function swap32 () {
  11002. var len = this.length
  11003. if (len % 4 !== 0) {
  11004. throw new RangeError('Buffer size must be a multiple of 32-bits')
  11005. }
  11006. for (var i = 0; i < len; i += 4) {
  11007. swap(this, i, i + 3)
  11008. swap(this, i + 1, i + 2)
  11009. }
  11010. return this
  11011. }
  11012. Buffer.prototype.swap64 = function swap64 () {
  11013. var len = this.length
  11014. if (len % 8 !== 0) {
  11015. throw new RangeError('Buffer size must be a multiple of 64-bits')
  11016. }
  11017. for (var i = 0; i < len; i += 8) {
  11018. swap(this, i, i + 7)
  11019. swap(this, i + 1, i + 6)
  11020. swap(this, i + 2, i + 5)
  11021. swap(this, i + 3, i + 4)
  11022. }
  11023. return this
  11024. }
  11025. Buffer.prototype.toString = function toString () {
  11026. var length = this.length | 0
  11027. if (length === 0) return ''
  11028. if (arguments.length === 0) return utf8Slice(this, 0, length)
  11029. return slowToString.apply(this, arguments)
  11030. }
  11031. Buffer.prototype.equals = function equals (b) {
  11032. if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  11033. if (this === b) return true
  11034. return Buffer.compare(this, b) === 0
  11035. }
  11036. Buffer.prototype.inspect = function inspect () {
  11037. var str = ''
  11038. var max = exports.INSPECT_MAX_BYTES
  11039. if (this.length > 0) {
  11040. str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
  11041. if (this.length > max) str += ' ... '
  11042. }
  11043. return '<Buffer ' + str + '>'
  11044. }
  11045. Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  11046. if (!Buffer.isBuffer(target)) {
  11047. throw new TypeError('Argument must be a Buffer')
  11048. }
  11049. if (start === undefined) {
  11050. start = 0
  11051. }
  11052. if (end === undefined) {
  11053. end = target ? target.length : 0
  11054. }
  11055. if (thisStart === undefined) {
  11056. thisStart = 0
  11057. }
  11058. if (thisEnd === undefined) {
  11059. thisEnd = this.length
  11060. }
  11061. if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
  11062. throw new RangeError('out of range index')
  11063. }
  11064. if (thisStart >= thisEnd && start >= end) {
  11065. return 0
  11066. }
  11067. if (thisStart >= thisEnd) {
  11068. return -1
  11069. }
  11070. if (start >= end) {
  11071. return 1
  11072. }
  11073. start >>>= 0
  11074. end >>>= 0
  11075. thisStart >>>= 0
  11076. thisEnd >>>= 0
  11077. if (this === target) return 0
  11078. var x = thisEnd - thisStart
  11079. var y = end - start
  11080. var len = Math.min(x, y)
  11081. var thisCopy = this.slice(thisStart, thisEnd)
  11082. var targetCopy = target.slice(start, end)
  11083. for (var i = 0; i < len; ++i) {
  11084. if (thisCopy[i] !== targetCopy[i]) {
  11085. x = thisCopy[i]
  11086. y = targetCopy[i]
  11087. break
  11088. }
  11089. }
  11090. if (x < y) return -1
  11091. if (y < x) return 1
  11092. return 0
  11093. }
  11094. // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
  11095. // OR the last index of `val` in `buffer` at offset <= `byteOffset`.
  11096. //
  11097. // Arguments:
  11098. // - buffer - a Buffer to search
  11099. // - val - a string, Buffer, or number
  11100. // - byteOffset - an index into `buffer`; will be clamped to an int32
  11101. // - encoding - an optional encoding, relevant is val is a string
  11102. // - dir - true for indexOf, false for lastIndexOf
  11103. function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
  11104. // Empty buffer means no match
  11105. if (buffer.length === 0) return -1
  11106. // Normalize byteOffset
  11107. if (typeof byteOffset === 'string') {
  11108. encoding = byteOffset
  11109. byteOffset = 0
  11110. } else if (byteOffset > 0x7fffffff) {
  11111. byteOffset = 0x7fffffff
  11112. } else if (byteOffset < -0x80000000) {
  11113. byteOffset = -0x80000000
  11114. }
  11115. byteOffset = +byteOffset // Coerce to Number.
  11116. if (isNaN(byteOffset)) {
  11117. // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
  11118. byteOffset = dir ? 0 : (buffer.length - 1)
  11119. }
  11120. // Normalize byteOffset: negative offsets start from the end of the buffer
  11121. if (byteOffset < 0) byteOffset = buffer.length + byteOffset
  11122. if (byteOffset >= buffer.length) {
  11123. if (dir) return -1
  11124. else byteOffset = buffer.length - 1
  11125. } else if (byteOffset < 0) {
  11126. if (dir) byteOffset = 0
  11127. else return -1
  11128. }
  11129. // Normalize val
  11130. if (typeof val === 'string') {
  11131. val = Buffer.from(val, encoding)
  11132. }
  11133. // Finally, search either indexOf (if dir is true) or lastIndexOf
  11134. if (Buffer.isBuffer(val)) {
  11135. // Special case: looking for empty string/buffer always fails
  11136. if (val.length === 0) {
  11137. return -1
  11138. }
  11139. return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
  11140. } else if (typeof val === 'number') {
  11141. val = val & 0xFF // Search for a byte value [0-255]
  11142. if (Buffer.TYPED_ARRAY_SUPPORT &&
  11143. typeof Uint8Array.prototype.indexOf === 'function') {
  11144. if (dir) {
  11145. return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
  11146. } else {
  11147. return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
  11148. }
  11149. }
  11150. return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
  11151. }
  11152. throw new TypeError('val must be string, number or Buffer')
  11153. }
  11154. function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
  11155. var indexSize = 1
  11156. var arrLength = arr.length
  11157. var valLength = val.length
  11158. if (encoding !== undefined) {
  11159. encoding = String(encoding).toLowerCase()
  11160. if (encoding === 'ucs2' || encoding === 'ucs-2' ||
  11161. encoding === 'utf16le' || encoding === 'utf-16le') {
  11162. if (arr.length < 2 || val.length < 2) {
  11163. return -1
  11164. }
  11165. indexSize = 2
  11166. arrLength /= 2
  11167. valLength /= 2
  11168. byteOffset /= 2
  11169. }
  11170. }
  11171. function read (buf, i) {
  11172. if (indexSize === 1) {
  11173. return buf[i]
  11174. } else {
  11175. return buf.readUInt16BE(i * indexSize)
  11176. }
  11177. }
  11178. var i
  11179. if (dir) {
  11180. var foundIndex = -1
  11181. for (i = byteOffset; i < arrLength; i++) {
  11182. if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
  11183. if (foundIndex === -1) foundIndex = i
  11184. if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
  11185. } else {
  11186. if (foundIndex !== -1) i -= i - foundIndex
  11187. foundIndex = -1
  11188. }
  11189. }
  11190. } else {
  11191. if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
  11192. for (i = byteOffset; i >= 0; i--) {
  11193. var found = true
  11194. for (var j = 0; j < valLength; j++) {
  11195. if (read(arr, i + j) !== read(val, j)) {
  11196. found = false
  11197. break
  11198. }
  11199. }
  11200. if (found) return i
  11201. }
  11202. }
  11203. return -1
  11204. }
  11205. Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
  11206. return this.indexOf(val, byteOffset, encoding) !== -1
  11207. }
  11208. Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
  11209. return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
  11210. }
  11211. Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
  11212. return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
  11213. }
  11214. function hexWrite (buf, string, offset, length) {
  11215. offset = Number(offset) || 0
  11216. var remaining = buf.length - offset
  11217. if (!length) {
  11218. length = remaining
  11219. } else {
  11220. length = Number(length)
  11221. if (length > remaining) {
  11222. length = remaining
  11223. }
  11224. }
  11225. // must be an even number of digits
  11226. var strLen = string.length
  11227. if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
  11228. if (length > strLen / 2) {
  11229. length = strLen / 2
  11230. }
  11231. for (var i = 0; i < length; ++i) {
  11232. var parsed = parseInt(string.substr(i * 2, 2), 16)
  11233. if (isNaN(parsed)) return i
  11234. buf[offset + i] = parsed
  11235. }
  11236. return i
  11237. }
  11238. function utf8Write (buf, string, offset, length) {
  11239. return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
  11240. }
  11241. function asciiWrite (buf, string, offset, length) {
  11242. return blitBuffer(asciiToBytes(string), buf, offset, length)
  11243. }
  11244. function latin1Write (buf, string, offset, length) {
  11245. return asciiWrite(buf, string, offset, length)
  11246. }
  11247. function base64Write (buf, string, offset, length) {
  11248. return blitBuffer(base64ToBytes(string), buf, offset, length)
  11249. }
  11250. function ucs2Write (buf, string, offset, length) {
  11251. return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
  11252. }
  11253. Buffer.prototype.write = function write (string, offset, length, encoding) {
  11254. // Buffer#write(string)
  11255. if (offset === undefined) {
  11256. encoding = 'utf8'
  11257. length = this.length
  11258. offset = 0
  11259. // Buffer#write(string, encoding)
  11260. } else if (length === undefined && typeof offset === 'string') {
  11261. encoding = offset
  11262. length = this.length
  11263. offset = 0
  11264. // Buffer#write(string, offset[, length][, encoding])
  11265. } else if (isFinite(offset)) {
  11266. offset = offset | 0
  11267. if (isFinite(length)) {
  11268. length = length | 0
  11269. if (encoding === undefined) encoding = 'utf8'
  11270. } else {
  11271. encoding = length
  11272. length = undefined
  11273. }
  11274. // legacy write(string, encoding, offset, length) - remove in v0.13
  11275. } else {
  11276. throw new Error(
  11277. 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
  11278. )
  11279. }
  11280. var remaining = this.length - offset
  11281. if (length === undefined || length > remaining) length = remaining
  11282. if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
  11283. throw new RangeError('Attempt to write outside buffer bounds')
  11284. }
  11285. if (!encoding) encoding = 'utf8'
  11286. var loweredCase = false
  11287. for (;;) {
  11288. switch (encoding) {
  11289. case 'hex':
  11290. return hexWrite(this, string, offset, length)
  11291. case 'utf8':
  11292. case 'utf-8':
  11293. return utf8Write(this, string, offset, length)
  11294. case 'ascii':
  11295. return asciiWrite(this, string, offset, length)
  11296. case 'latin1':
  11297. case 'binary':
  11298. return latin1Write(this, string, offset, length)
  11299. case 'base64':
  11300. // Warning: maxLength not taken into account in base64Write
  11301. return base64Write(this, string, offset, length)
  11302. case 'ucs2':
  11303. case 'ucs-2':
  11304. case 'utf16le':
  11305. case 'utf-16le':
  11306. return ucs2Write(this, string, offset, length)
  11307. default:
  11308. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  11309. encoding = ('' + encoding).toLowerCase()
  11310. loweredCase = true
  11311. }
  11312. }
  11313. }
  11314. Buffer.prototype.toJSON = function toJSON () {
  11315. return {
  11316. type: 'Buffer',
  11317. data: Array.prototype.slice.call(this._arr || this, 0)
  11318. }
  11319. }
  11320. function base64Slice (buf, start, end) {
  11321. if (start === 0 && end === buf.length) {
  11322. return base64.fromByteArray(buf)
  11323. } else {
  11324. return base64.fromByteArray(buf.slice(start, end))
  11325. }
  11326. }
  11327. function utf8Slice (buf, start, end) {
  11328. end = Math.min(buf.length, end)
  11329. var res = []
  11330. var i = start
  11331. while (i < end) {
  11332. var firstByte = buf[i]
  11333. var codePoint = null
  11334. var bytesPerSequence = (firstByte > 0xEF) ? 4
  11335. : (firstByte > 0xDF) ? 3
  11336. : (firstByte > 0xBF) ? 2
  11337. : 1
  11338. if (i + bytesPerSequence <= end) {
  11339. var secondByte, thirdByte, fourthByte, tempCodePoint
  11340. switch (bytesPerSequence) {
  11341. case 1:
  11342. if (firstByte < 0x80) {
  11343. codePoint = firstByte
  11344. }
  11345. break
  11346. case 2:
  11347. secondByte = buf[i + 1]
  11348. if ((secondByte & 0xC0) === 0x80) {
  11349. tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
  11350. if (tempCodePoint > 0x7F) {
  11351. codePoint = tempCodePoint
  11352. }
  11353. }
  11354. break
  11355. case 3:
  11356. secondByte = buf[i + 1]
  11357. thirdByte = buf[i + 2]
  11358. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
  11359. tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
  11360. if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
  11361. codePoint = tempCodePoint
  11362. }
  11363. }
  11364. break
  11365. case 4:
  11366. secondByte = buf[i + 1]
  11367. thirdByte = buf[i + 2]
  11368. fourthByte = buf[i + 3]
  11369. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
  11370. tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
  11371. if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
  11372. codePoint = tempCodePoint
  11373. }
  11374. }
  11375. }
  11376. }
  11377. if (codePoint === null) {
  11378. // we did not generate a valid codePoint so insert a
  11379. // replacement char (U+FFFD) and advance only 1 byte
  11380. codePoint = 0xFFFD
  11381. bytesPerSequence = 1
  11382. } else if (codePoint > 0xFFFF) {
  11383. // encode to utf16 (surrogate pair dance)
  11384. codePoint -= 0x10000
  11385. res.push(codePoint >>> 10 & 0x3FF | 0xD800)
  11386. codePoint = 0xDC00 | codePoint & 0x3FF
  11387. }
  11388. res.push(codePoint)
  11389. i += bytesPerSequence
  11390. }
  11391. return decodeCodePointsArray(res)
  11392. }
  11393. // Based on http://stackoverflow.com/a/22747272/680742, the browser with
  11394. // the lowest limit is Chrome, with 0x10000 args.
  11395. // We go 1 magnitude less, for safety
  11396. var MAX_ARGUMENTS_LENGTH = 0x1000
  11397. function decodeCodePointsArray (codePoints) {
  11398. var len = codePoints.length
  11399. if (len <= MAX_ARGUMENTS_LENGTH) {
  11400. return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
  11401. }
  11402. // Decode in chunks to avoid "call stack size exceeded".
  11403. var res = ''
  11404. var i = 0
  11405. while (i < len) {
  11406. res += String.fromCharCode.apply(
  11407. String,
  11408. codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
  11409. )
  11410. }
  11411. return res
  11412. }
  11413. function asciiSlice (buf, start, end) {
  11414. var ret = ''
  11415. end = Math.min(buf.length, end)
  11416. for (var i = start; i < end; ++i) {
  11417. ret += String.fromCharCode(buf[i] & 0x7F)
  11418. }
  11419. return ret
  11420. }
  11421. function latin1Slice (buf, start, end) {
  11422. var ret = ''
  11423. end = Math.min(buf.length, end)
  11424. for (var i = start; i < end; ++i) {
  11425. ret += String.fromCharCode(buf[i])
  11426. }
  11427. return ret
  11428. }
  11429. function hexSlice (buf, start, end) {
  11430. var len = buf.length
  11431. if (!start || start < 0) start = 0
  11432. if (!end || end < 0 || end > len) end = len
  11433. var out = ''
  11434. for (var i = start; i < end; ++i) {
  11435. out += toHex(buf[i])
  11436. }
  11437. return out
  11438. }
  11439. function utf16leSlice (buf, start, end) {
  11440. var bytes = buf.slice(start, end)
  11441. var res = ''
  11442. for (var i = 0; i < bytes.length; i += 2) {
  11443. res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  11444. }
  11445. return res
  11446. }
  11447. Buffer.prototype.slice = function slice (start, end) {
  11448. var len = this.length
  11449. start = ~~start
  11450. end = end === undefined ? len : ~~end
  11451. if (start < 0) {
  11452. start += len
  11453. if (start < 0) start = 0
  11454. } else if (start > len) {
  11455. start = len
  11456. }
  11457. if (end < 0) {
  11458. end += len
  11459. if (end < 0) end = 0
  11460. } else if (end > len) {
  11461. end = len
  11462. }
  11463. if (end < start) end = start
  11464. var newBuf
  11465. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11466. newBuf = this.subarray(start, end)
  11467. newBuf.__proto__ = Buffer.prototype
  11468. } else {
  11469. var sliceLen = end - start
  11470. newBuf = new Buffer(sliceLen, undefined)
  11471. for (var i = 0; i < sliceLen; ++i) {
  11472. newBuf[i] = this[i + start]
  11473. }
  11474. }
  11475. return newBuf
  11476. }
  11477. /*
  11478. * Need to make sure that buffer isn't trying to write out of bounds.
  11479. */
  11480. function checkOffset (offset, ext, length) {
  11481. if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  11482. if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
  11483. }
  11484. Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  11485. offset = offset | 0
  11486. byteLength = byteLength | 0
  11487. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11488. var val = this[offset]
  11489. var mul = 1
  11490. var i = 0
  11491. while (++i < byteLength && (mul *= 0x100)) {
  11492. val += this[offset + i] * mul
  11493. }
  11494. return val
  11495. }
  11496. Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  11497. offset = offset | 0
  11498. byteLength = byteLength | 0
  11499. if (!noAssert) {
  11500. checkOffset(offset, byteLength, this.length)
  11501. }
  11502. var val = this[offset + --byteLength]
  11503. var mul = 1
  11504. while (byteLength > 0 && (mul *= 0x100)) {
  11505. val += this[offset + --byteLength] * mul
  11506. }
  11507. return val
  11508. }
  11509. Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  11510. if (!noAssert) checkOffset(offset, 1, this.length)
  11511. return this[offset]
  11512. }
  11513. Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  11514. if (!noAssert) checkOffset(offset, 2, this.length)
  11515. return this[offset] | (this[offset + 1] << 8)
  11516. }
  11517. Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  11518. if (!noAssert) checkOffset(offset, 2, this.length)
  11519. return (this[offset] << 8) | this[offset + 1]
  11520. }
  11521. Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  11522. if (!noAssert) checkOffset(offset, 4, this.length)
  11523. return ((this[offset]) |
  11524. (this[offset + 1] << 8) |
  11525. (this[offset + 2] << 16)) +
  11526. (this[offset + 3] * 0x1000000)
  11527. }
  11528. Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  11529. if (!noAssert) checkOffset(offset, 4, this.length)
  11530. return (this[offset] * 0x1000000) +
  11531. ((this[offset + 1] << 16) |
  11532. (this[offset + 2] << 8) |
  11533. this[offset + 3])
  11534. }
  11535. Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  11536. offset = offset | 0
  11537. byteLength = byteLength | 0
  11538. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11539. var val = this[offset]
  11540. var mul = 1
  11541. var i = 0
  11542. while (++i < byteLength && (mul *= 0x100)) {
  11543. val += this[offset + i] * mul
  11544. }
  11545. mul *= 0x80
  11546. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11547. return val
  11548. }
  11549. Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  11550. offset = offset | 0
  11551. byteLength = byteLength | 0
  11552. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11553. var i = byteLength
  11554. var mul = 1
  11555. var val = this[offset + --i]
  11556. while (i > 0 && (mul *= 0x100)) {
  11557. val += this[offset + --i] * mul
  11558. }
  11559. mul *= 0x80
  11560. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11561. return val
  11562. }
  11563. Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  11564. if (!noAssert) checkOffset(offset, 1, this.length)
  11565. if (!(this[offset] & 0x80)) return (this[offset])
  11566. return ((0xff - this[offset] + 1) * -1)
  11567. }
  11568. Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  11569. if (!noAssert) checkOffset(offset, 2, this.length)
  11570. var val = this[offset] | (this[offset + 1] << 8)
  11571. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11572. }
  11573. Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  11574. if (!noAssert) checkOffset(offset, 2, this.length)
  11575. var val = this[offset + 1] | (this[offset] << 8)
  11576. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11577. }
  11578. Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  11579. if (!noAssert) checkOffset(offset, 4, this.length)
  11580. return (this[offset]) |
  11581. (this[offset + 1] << 8) |
  11582. (this[offset + 2] << 16) |
  11583. (this[offset + 3] << 24)
  11584. }
  11585. Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  11586. if (!noAssert) checkOffset(offset, 4, this.length)
  11587. return (this[offset] << 24) |
  11588. (this[offset + 1] << 16) |
  11589. (this[offset + 2] << 8) |
  11590. (this[offset + 3])
  11591. }
  11592. Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  11593. if (!noAssert) checkOffset(offset, 4, this.length)
  11594. return ieee754.read(this, offset, true, 23, 4)
  11595. }
  11596. Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  11597. if (!noAssert) checkOffset(offset, 4, this.length)
  11598. return ieee754.read(this, offset, false, 23, 4)
  11599. }
  11600. Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  11601. if (!noAssert) checkOffset(offset, 8, this.length)
  11602. return ieee754.read(this, offset, true, 52, 8)
  11603. }
  11604. Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  11605. if (!noAssert) checkOffset(offset, 8, this.length)
  11606. return ieee754.read(this, offset, false, 52, 8)
  11607. }
  11608. function checkInt (buf, value, offset, ext, max, min) {
  11609. if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
  11610. if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
  11611. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11612. }
  11613. Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  11614. value = +value
  11615. offset = offset | 0
  11616. byteLength = byteLength | 0
  11617. if (!noAssert) {
  11618. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11619. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11620. }
  11621. var mul = 1
  11622. var i = 0
  11623. this[offset] = value & 0xFF
  11624. while (++i < byteLength && (mul *= 0x100)) {
  11625. this[offset + i] = (value / mul) & 0xFF
  11626. }
  11627. return offset + byteLength
  11628. }
  11629. Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  11630. value = +value
  11631. offset = offset | 0
  11632. byteLength = byteLength | 0
  11633. if (!noAssert) {
  11634. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11635. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11636. }
  11637. var i = byteLength - 1
  11638. var mul = 1
  11639. this[offset + i] = value & 0xFF
  11640. while (--i >= 0 && (mul *= 0x100)) {
  11641. this[offset + i] = (value / mul) & 0xFF
  11642. }
  11643. return offset + byteLength
  11644. }
  11645. Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  11646. value = +value
  11647. offset = offset | 0
  11648. if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  11649. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  11650. this[offset] = (value & 0xff)
  11651. return offset + 1
  11652. }
  11653. function objectWriteUInt16 (buf, value, offset, littleEndian) {
  11654. if (value < 0) value = 0xffff + value + 1
  11655. for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
  11656. buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
  11657. (littleEndian ? i : 1 - i) * 8
  11658. }
  11659. }
  11660. Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  11661. value = +value
  11662. offset = offset | 0
  11663. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  11664. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11665. this[offset] = (value & 0xff)
  11666. this[offset + 1] = (value >>> 8)
  11667. } else {
  11668. objectWriteUInt16(this, value, offset, true)
  11669. }
  11670. return offset + 2
  11671. }
  11672. Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  11673. value = +value
  11674. offset = offset | 0
  11675. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  11676. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11677. this[offset] = (value >>> 8)
  11678. this[offset + 1] = (value & 0xff)
  11679. } else {
  11680. objectWriteUInt16(this, value, offset, false)
  11681. }
  11682. return offset + 2
  11683. }
  11684. function objectWriteUInt32 (buf, value, offset, littleEndian) {
  11685. if (value < 0) value = 0xffffffff + value + 1
  11686. for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
  11687. buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  11688. }
  11689. }
  11690. Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  11691. value = +value
  11692. offset = offset | 0
  11693. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  11694. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11695. this[offset + 3] = (value >>> 24)
  11696. this[offset + 2] = (value >>> 16)
  11697. this[offset + 1] = (value >>> 8)
  11698. this[offset] = (value & 0xff)
  11699. } else {
  11700. objectWriteUInt32(this, value, offset, true)
  11701. }
  11702. return offset + 4
  11703. }
  11704. Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  11705. value = +value
  11706. offset = offset | 0
  11707. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  11708. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11709. this[offset] = (value >>> 24)
  11710. this[offset + 1] = (value >>> 16)
  11711. this[offset + 2] = (value >>> 8)
  11712. this[offset + 3] = (value & 0xff)
  11713. } else {
  11714. objectWriteUInt32(this, value, offset, false)
  11715. }
  11716. return offset + 4
  11717. }
  11718. Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  11719. value = +value
  11720. offset = offset | 0
  11721. if (!noAssert) {
  11722. var limit = Math.pow(2, 8 * byteLength - 1)
  11723. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  11724. }
  11725. var i = 0
  11726. var mul = 1
  11727. var sub = 0
  11728. this[offset] = value & 0xFF
  11729. while (++i < byteLength && (mul *= 0x100)) {
  11730. if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
  11731. sub = 1
  11732. }
  11733. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  11734. }
  11735. return offset + byteLength
  11736. }
  11737. Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  11738. value = +value
  11739. offset = offset | 0
  11740. if (!noAssert) {
  11741. var limit = Math.pow(2, 8 * byteLength - 1)
  11742. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  11743. }
  11744. var i = byteLength - 1
  11745. var mul = 1
  11746. var sub = 0
  11747. this[offset + i] = value & 0xFF
  11748. while (--i >= 0 && (mul *= 0x100)) {
  11749. if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
  11750. sub = 1
  11751. }
  11752. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  11753. }
  11754. return offset + byteLength
  11755. }
  11756. Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  11757. value = +value
  11758. offset = offset | 0
  11759. if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  11760. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  11761. if (value < 0) value = 0xff + value + 1
  11762. this[offset] = (value & 0xff)
  11763. return offset + 1
  11764. }
  11765. Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  11766. value = +value
  11767. offset = offset | 0
  11768. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  11769. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11770. this[offset] = (value & 0xff)
  11771. this[offset + 1] = (value >>> 8)
  11772. } else {
  11773. objectWriteUInt16(this, value, offset, true)
  11774. }
  11775. return offset + 2
  11776. }
  11777. Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  11778. value = +value
  11779. offset = offset | 0
  11780. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  11781. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11782. this[offset] = (value >>> 8)
  11783. this[offset + 1] = (value & 0xff)
  11784. } else {
  11785. objectWriteUInt16(this, value, offset, false)
  11786. }
  11787. return offset + 2
  11788. }
  11789. Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  11790. value = +value
  11791. offset = offset | 0
  11792. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  11793. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11794. this[offset] = (value & 0xff)
  11795. this[offset + 1] = (value >>> 8)
  11796. this[offset + 2] = (value >>> 16)
  11797. this[offset + 3] = (value >>> 24)
  11798. } else {
  11799. objectWriteUInt32(this, value, offset, true)
  11800. }
  11801. return offset + 4
  11802. }
  11803. Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  11804. value = +value
  11805. offset = offset | 0
  11806. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  11807. if (value < 0) value = 0xffffffff + value + 1
  11808. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11809. this[offset] = (value >>> 24)
  11810. this[offset + 1] = (value >>> 16)
  11811. this[offset + 2] = (value >>> 8)
  11812. this[offset + 3] = (value & 0xff)
  11813. } else {
  11814. objectWriteUInt32(this, value, offset, false)
  11815. }
  11816. return offset + 4
  11817. }
  11818. function checkIEEE754 (buf, value, offset, ext, max, min) {
  11819. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11820. if (offset < 0) throw new RangeError('Index out of range')
  11821. }
  11822. function writeFloat (buf, value, offset, littleEndian, noAssert) {
  11823. if (!noAssert) {
  11824. checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  11825. }
  11826. ieee754.write(buf, value, offset, littleEndian, 23, 4)
  11827. return offset + 4
  11828. }
  11829. Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  11830. return writeFloat(this, value, offset, true, noAssert)
  11831. }
  11832. Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  11833. return writeFloat(this, value, offset, false, noAssert)
  11834. }
  11835. function writeDouble (buf, value, offset, littleEndian, noAssert) {
  11836. if (!noAssert) {
  11837. checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  11838. }
  11839. ieee754.write(buf, value, offset, littleEndian, 52, 8)
  11840. return offset + 8
  11841. }
  11842. Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  11843. return writeDouble(this, value, offset, true, noAssert)
  11844. }
  11845. Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  11846. return writeDouble(this, value, offset, false, noAssert)
  11847. }
  11848. // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
  11849. Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  11850. if (!start) start = 0
  11851. if (!end && end !== 0) end = this.length
  11852. if (targetStart >= target.length) targetStart = target.length
  11853. if (!targetStart) targetStart = 0
  11854. if (end > 0 && end < start) end = start
  11855. // Copy 0 bytes; we're done
  11856. if (end === start) return 0
  11857. if (target.length === 0 || this.length === 0) return 0
  11858. // Fatal error conditions
  11859. if (targetStart < 0) {
  11860. throw new RangeError('targetStart out of bounds')
  11861. }
  11862. if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  11863. if (end < 0) throw new RangeError('sourceEnd out of bounds')
  11864. // Are we oob?
  11865. if (end > this.length) end = this.length
  11866. if (target.length - targetStart < end - start) {
  11867. end = target.length - targetStart + start
  11868. }
  11869. var len = end - start
  11870. var i
  11871. if (this === target && start < targetStart && targetStart < end) {
  11872. // descending copy from end
  11873. for (i = len - 1; i >= 0; --i) {
  11874. target[i + targetStart] = this[i + start]
  11875. }
  11876. } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
  11877. // ascending copy from start
  11878. for (i = 0; i < len; ++i) {
  11879. target[i + targetStart] = this[i + start]
  11880. }
  11881. } else {
  11882. Uint8Array.prototype.set.call(
  11883. target,
  11884. this.subarray(start, start + len),
  11885. targetStart
  11886. )
  11887. }
  11888. return len
  11889. }
  11890. // Usage:
  11891. // buffer.fill(number[, offset[, end]])
  11892. // buffer.fill(buffer[, offset[, end]])
  11893. // buffer.fill(string[, offset[, end]][, encoding])
  11894. Buffer.prototype.fill = function fill (val, start, end, encoding) {
  11895. // Handle string cases:
  11896. if (typeof val === 'string') {
  11897. if (typeof start === 'string') {
  11898. encoding = start
  11899. start = 0
  11900. end = this.length
  11901. } else if (typeof end === 'string') {
  11902. encoding = end
  11903. end = this.length
  11904. }
  11905. if (val.length === 1) {
  11906. var code = val.charCodeAt(0)
  11907. if (code < 256) {
  11908. val = code
  11909. }
  11910. }
  11911. if (encoding !== undefined && typeof encoding !== 'string') {
  11912. throw new TypeError('encoding must be a string')
  11913. }
  11914. if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
  11915. throw new TypeError('Unknown encoding: ' + encoding)
  11916. }
  11917. } else if (typeof val === 'number') {
  11918. val = val & 255
  11919. }
  11920. // Invalid ranges are not set to a default, so can range check early.
  11921. if (start < 0 || this.length < start || this.length < end) {
  11922. throw new RangeError('Out of range index')
  11923. }
  11924. if (end <= start) {
  11925. return this
  11926. }
  11927. start = start >>> 0
  11928. end = end === undefined ? this.length : end >>> 0
  11929. if (!val) val = 0
  11930. var i
  11931. if (typeof val === 'number') {
  11932. for (i = start; i < end; ++i) {
  11933. this[i] = val
  11934. }
  11935. } else {
  11936. var bytes = Buffer.isBuffer(val)
  11937. ? val
  11938. : utf8ToBytes(new Buffer(val, encoding).toString())
  11939. var len = bytes.length
  11940. for (i = 0; i < end - start; ++i) {
  11941. this[i + start] = bytes[i % len]
  11942. }
  11943. }
  11944. return this
  11945. }
  11946. // HELPER FUNCTIONS
  11947. // ================
  11948. var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
  11949. function base64clean (str) {
  11950. // Node strips out invalid characters like \n and \t from the string, base64-js does not
  11951. str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  11952. // Node converts strings with length < 2 to ''
  11953. if (str.length < 2) return ''
  11954. // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  11955. while (str.length % 4 !== 0) {
  11956. str = str + '='
  11957. }
  11958. return str
  11959. }
  11960. function stringtrim (str) {
  11961. if (str.trim) return str.trim()
  11962. return str.replace(/^\s+|\s+$/g, '')
  11963. }
  11964. function toHex (n) {
  11965. if (n < 16) return '0' + n.toString(16)
  11966. return n.toString(16)
  11967. }
  11968. function utf8ToBytes (string, units) {
  11969. units = units || Infinity
  11970. var codePoint
  11971. var length = string.length
  11972. var leadSurrogate = null
  11973. var bytes = []
  11974. for (var i = 0; i < length; ++i) {
  11975. codePoint = string.charCodeAt(i)
  11976. // is surrogate component
  11977. if (codePoint > 0xD7FF && codePoint < 0xE000) {
  11978. // last char was a lead
  11979. if (!leadSurrogate) {
  11980. // no lead yet
  11981. if (codePoint > 0xDBFF) {
  11982. // unexpected trail
  11983. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11984. continue
  11985. } else if (i + 1 === length) {
  11986. // unpaired lead
  11987. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11988. continue
  11989. }
  11990. // valid lead
  11991. leadSurrogate = codePoint
  11992. continue
  11993. }
  11994. // 2 leads in a row
  11995. if (codePoint < 0xDC00) {
  11996. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11997. leadSurrogate = codePoint
  11998. continue
  11999. }
  12000. // valid surrogate pair
  12001. codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
  12002. } else if (leadSurrogate) {
  12003. // valid bmp char, but last char was a lead
  12004. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  12005. }
  12006. leadSurrogate = null
  12007. // encode utf8
  12008. if (codePoint < 0x80) {
  12009. if ((units -= 1) < 0) break
  12010. bytes.push(codePoint)
  12011. } else if (codePoint < 0x800) {
  12012. if ((units -= 2) < 0) break
  12013. bytes.push(
  12014. codePoint >> 0x6 | 0xC0,
  12015. codePoint & 0x3F | 0x80
  12016. )
  12017. } else if (codePoint < 0x10000) {
  12018. if ((units -= 3) < 0) break
  12019. bytes.push(
  12020. codePoint >> 0xC | 0xE0,
  12021. codePoint >> 0x6 & 0x3F | 0x80,
  12022. codePoint & 0x3F | 0x80
  12023. )
  12024. } else if (codePoint < 0x110000) {
  12025. if ((units -= 4) < 0) break
  12026. bytes.push(
  12027. codePoint >> 0x12 | 0xF0,
  12028. codePoint >> 0xC & 0x3F | 0x80,
  12029. codePoint >> 0x6 & 0x3F | 0x80,
  12030. codePoint & 0x3F | 0x80
  12031. )
  12032. } else {
  12033. throw new Error('Invalid code point')
  12034. }
  12035. }
  12036. return bytes
  12037. }
  12038. function asciiToBytes (str) {
  12039. var byteArray = []
  12040. for (var i = 0; i < str.length; ++i) {
  12041. // Node's code seems to be doing this and not & 0x7F..
  12042. byteArray.push(str.charCodeAt(i) & 0xFF)
  12043. }
  12044. return byteArray
  12045. }
  12046. function utf16leToBytes (str, units) {
  12047. var c, hi, lo
  12048. var byteArray = []
  12049. for (var i = 0; i < str.length; ++i) {
  12050. if ((units -= 2) < 0) break
  12051. c = str.charCodeAt(i)
  12052. hi = c >> 8
  12053. lo = c % 256
  12054. byteArray.push(lo)
  12055. byteArray.push(hi)
  12056. }
  12057. return byteArray
  12058. }
  12059. function base64ToBytes (str) {
  12060. return base64.toByteArray(base64clean(str))
  12061. }
  12062. function blitBuffer (src, dst, offset, length) {
  12063. for (var i = 0; i < length; ++i) {
  12064. if ((i + offset >= dst.length) || (i >= src.length)) break
  12065. dst[i + offset] = src[i]
  12066. }
  12067. return i
  12068. }
  12069. function isnan (val) {
  12070. return val !== val // eslint-disable-line no-self-compare
  12071. }
  12072. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 2)))
  12073. /***/ }),
  12074. /* 35 */
  12075. /*!*****************************************!*\
  12076. !*** ./node_modules/base64-js/index.js ***!
  12077. \*****************************************/
  12078. /*! no static exports found */
  12079. /***/ (function(module, exports, __webpack_require__) {
  12080. "use strict";
  12081. exports.byteLength = byteLength
  12082. exports.toByteArray = toByteArray
  12083. exports.fromByteArray = fromByteArray
  12084. var lookup = []
  12085. var revLookup = []
  12086. var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
  12087. var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  12088. for (var i = 0, len = code.length; i < len; ++i) {
  12089. lookup[i] = code[i]
  12090. revLookup[code.charCodeAt(i)] = i
  12091. }
  12092. // Support decoding URL-safe base64 strings, as Node.js does.
  12093. // See: https://en.wikipedia.org/wiki/Base64#URL_applications
  12094. revLookup['-'.charCodeAt(0)] = 62
  12095. revLookup['_'.charCodeAt(0)] = 63
  12096. function getLens (b64) {
  12097. var len = b64.length
  12098. if (len % 4 > 0) {
  12099. throw new Error('Invalid string. Length must be a multiple of 4')
  12100. }
  12101. // Trim off extra bytes after placeholder bytes are found
  12102. // See: https://github.com/beatgammit/base64-js/issues/42
  12103. var validLen = b64.indexOf('=')
  12104. if (validLen === -1) validLen = len
  12105. var placeHoldersLen = validLen === len
  12106. ? 0
  12107. : 4 - (validLen % 4)
  12108. return [validLen, placeHoldersLen]
  12109. }
  12110. // base64 is 4/3 + up to two characters of the original data
  12111. function byteLength (b64) {
  12112. var lens = getLens(b64)
  12113. var validLen = lens[0]
  12114. var placeHoldersLen = lens[1]
  12115. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  12116. }
  12117. function _byteLength (b64, validLen, placeHoldersLen) {
  12118. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  12119. }
  12120. function toByteArray (b64) {
  12121. var tmp
  12122. var lens = getLens(b64)
  12123. var validLen = lens[0]
  12124. var placeHoldersLen = lens[1]
  12125. var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
  12126. var curByte = 0
  12127. // if there are placeholders, only get up to the last complete 4 chars
  12128. var len = placeHoldersLen > 0
  12129. ? validLen - 4
  12130. : validLen
  12131. var i
  12132. for (i = 0; i < len; i += 4) {
  12133. tmp =
  12134. (revLookup[b64.charCodeAt(i)] << 18) |
  12135. (revLookup[b64.charCodeAt(i + 1)] << 12) |
  12136. (revLookup[b64.charCodeAt(i + 2)] << 6) |
  12137. revLookup[b64.charCodeAt(i + 3)]
  12138. arr[curByte++] = (tmp >> 16) & 0xFF
  12139. arr[curByte++] = (tmp >> 8) & 0xFF
  12140. arr[curByte++] = tmp & 0xFF
  12141. }
  12142. if (placeHoldersLen === 2) {
  12143. tmp =
  12144. (revLookup[b64.charCodeAt(i)] << 2) |
  12145. (revLookup[b64.charCodeAt(i + 1)] >> 4)
  12146. arr[curByte++] = tmp & 0xFF
  12147. }
  12148. if (placeHoldersLen === 1) {
  12149. tmp =
  12150. (revLookup[b64.charCodeAt(i)] << 10) |
  12151. (revLookup[b64.charCodeAt(i + 1)] << 4) |
  12152. (revLookup[b64.charCodeAt(i + 2)] >> 2)
  12153. arr[curByte++] = (tmp >> 8) & 0xFF
  12154. arr[curByte++] = tmp & 0xFF
  12155. }
  12156. return arr
  12157. }
  12158. function tripletToBase64 (num) {
  12159. return lookup[num >> 18 & 0x3F] +
  12160. lookup[num >> 12 & 0x3F] +
  12161. lookup[num >> 6 & 0x3F] +
  12162. lookup[num & 0x3F]
  12163. }
  12164. function encodeChunk (uint8, start, end) {
  12165. var tmp
  12166. var output = []
  12167. for (var i = start; i < end; i += 3) {
  12168. tmp =
  12169. ((uint8[i] << 16) & 0xFF0000) +
  12170. ((uint8[i + 1] << 8) & 0xFF00) +
  12171. (uint8[i + 2] & 0xFF)
  12172. output.push(tripletToBase64(tmp))
  12173. }
  12174. return output.join('')
  12175. }
  12176. function fromByteArray (uint8) {
  12177. var tmp
  12178. var len = uint8.length
  12179. var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
  12180. var parts = []
  12181. var maxChunkLength = 16383 // must be multiple of 3
  12182. // go through the array every three bytes, we'll deal with trailing stuff later
  12183. for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
  12184. parts.push(encodeChunk(
  12185. uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)
  12186. ))
  12187. }
  12188. // pad the end with zeros, but make sure to not forget the extra bytes
  12189. if (extraBytes === 1) {
  12190. tmp = uint8[len - 1]
  12191. parts.push(
  12192. lookup[tmp >> 2] +
  12193. lookup[(tmp << 4) & 0x3F] +
  12194. '=='
  12195. )
  12196. } else if (extraBytes === 2) {
  12197. tmp = (uint8[len - 2] << 8) + uint8[len - 1]
  12198. parts.push(
  12199. lookup[tmp >> 10] +
  12200. lookup[(tmp >> 4) & 0x3F] +
  12201. lookup[(tmp << 2) & 0x3F] +
  12202. '='
  12203. )
  12204. }
  12205. return parts.join('')
  12206. }
  12207. /***/ }),
  12208. /* 36 */
  12209. /*!***************************************!*\
  12210. !*** ./node_modules/ieee754/index.js ***!
  12211. \***************************************/
  12212. /*! no static exports found */
  12213. /***/ (function(module, exports) {
  12214. exports.read = function (buffer, offset, isLE, mLen, nBytes) {
  12215. var e, m
  12216. var eLen = (nBytes * 8) - mLen - 1
  12217. var eMax = (1 << eLen) - 1
  12218. var eBias = eMax >> 1
  12219. var nBits = -7
  12220. var i = isLE ? (nBytes - 1) : 0
  12221. var d = isLE ? -1 : 1
  12222. var s = buffer[offset + i]
  12223. i += d
  12224. e = s & ((1 << (-nBits)) - 1)
  12225. s >>= (-nBits)
  12226. nBits += eLen
  12227. for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  12228. m = e & ((1 << (-nBits)) - 1)
  12229. e >>= (-nBits)
  12230. nBits += mLen
  12231. for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  12232. if (e === 0) {
  12233. e = 1 - eBias
  12234. } else if (e === eMax) {
  12235. return m ? NaN : ((s ? -1 : 1) * Infinity)
  12236. } else {
  12237. m = m + Math.pow(2, mLen)
  12238. e = e - eBias
  12239. }
  12240. return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
  12241. }
  12242. exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
  12243. var e, m, c
  12244. var eLen = (nBytes * 8) - mLen - 1
  12245. var eMax = (1 << eLen) - 1
  12246. var eBias = eMax >> 1
  12247. var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
  12248. var i = isLE ? 0 : (nBytes - 1)
  12249. var d = isLE ? 1 : -1
  12250. var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
  12251. value = Math.abs(value)
  12252. if (isNaN(value) || value === Infinity) {
  12253. m = isNaN(value) ? 1 : 0
  12254. e = eMax
  12255. } else {
  12256. e = Math.floor(Math.log(value) / Math.LN2)
  12257. if (value * (c = Math.pow(2, -e)) < 1) {
  12258. e--
  12259. c *= 2
  12260. }
  12261. if (e + eBias >= 1) {
  12262. value += rt / c
  12263. } else {
  12264. value += rt * Math.pow(2, 1 - eBias)
  12265. }
  12266. if (value * c >= 2) {
  12267. e++
  12268. c /= 2
  12269. }
  12270. if (e + eBias >= eMax) {
  12271. m = 0
  12272. e = eMax
  12273. } else if (e + eBias >= 1) {
  12274. m = ((value * c) - 1) * Math.pow(2, mLen)
  12275. e = e + eBias
  12276. } else {
  12277. m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
  12278. e = 0
  12279. }
  12280. }
  12281. for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
  12282. e = (e << mLen) | m
  12283. eLen += mLen
  12284. for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
  12285. buffer[offset + i - d] |= s * 128
  12286. }
  12287. /***/ }),
  12288. /* 37 */
  12289. /*!***************************************!*\
  12290. !*** ./node_modules/isarray/index.js ***!
  12291. \***************************************/
  12292. /*! no static exports found */
  12293. /***/ (function(module, exports) {
  12294. var toString = {}.toString;
  12295. module.exports = Array.isArray || function (arr) {
  12296. return toString.call(arr) == '[object Array]';
  12297. };
  12298. /***/ }),
  12299. /* 38 */
  12300. /*!*****************************************************************************!*\
  12301. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/util/route.js ***!
  12302. \*****************************************************************************/
  12303. /*! no static exports found */
  12304. /***/ (function(module, exports, __webpack_require__) {
  12305. "use strict";
  12306. /* 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 */ 39));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;} /**
  12307. * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
  12308. * 并且带有路由拦截功能
  12309. */var
  12310. Router = /*#__PURE__*/function () {
  12311. function Router() {_classCallCheck(this, Router);
  12312. // 原始属性定义
  12313. this.config = {
  12314. type: 'navigateTo',
  12315. url: '',
  12316. delta: 1, // navigateBack页面后退时,回退的层数
  12317. params: {}, // 传递的参数
  12318. animationType: 'pop-in', // 窗口动画,只在APP有效
  12319. animationDuration: 300, // 窗口动画持续时间,单位毫秒,只在APP有效
  12320. intercept: false // 是否需要拦截
  12321. };
  12322. // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
  12323. // 这里在构造函数中进行this绑定
  12324. this.route = this.route.bind(this);
  12325. }
  12326. // 判断url前面是否有"/",如果没有则加上,否则无法跳转
  12327. _createClass(Router, [{ key: "addRootPath", value: function addRootPath(url) {
  12328. return url[0] === '/' ? url : "/".concat(url);
  12329. }
  12330. // 整合路由参数
  12331. }, { key: "mixinParam", value: function mixinParam(url, params) {
  12332. url = url && this.addRootPath(url);
  12333. // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
  12334. // 如果有url中有get参数,转换后无需带上"?"
  12335. var query = '';
  12336. if (/.*\/.*\?.*=.*/.test(url)) {
  12337. // object对象转为get类型的参数
  12338. query = uni.$u.queryParams(params, false);
  12339. // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
  12340. return url += "&".concat(query);
  12341. }
  12342. // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
  12343. query = uni.$u.queryParams(params);
  12344. return url += query;
  12345. }
  12346. // 对外的方法名称
  12347. }, { 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] : {};
  12348. // 合并用户的配置和内部的默认配置
  12349. mergeConfig = {};
  12350. if (typeof options === 'string') {
  12351. // 如果options为字符串,则为route(url, params)的形式
  12352. mergeConfig.url = this.mixinParam(options, params);
  12353. mergeConfig.type = 'navigateTo';
  12354. } else {
  12355. mergeConfig = uni.$u.deepClone(options, this.config);
  12356. // 否则正常使用mergeConfig中的url和params进行拼接
  12357. mergeConfig.url = this.mixinParam(options.url, options.params);
  12358. }
  12359. // 如果本次跳转的路径和本页面路径一致,不执行跳转,防止用户快速点击跳转按钮,造成多次跳转同一个页面的问题
  12360. if (!(mergeConfig.url === uni.$u.page())) {_context.next = 6;break;}return _context.abrupt("return");case 6:
  12361. if (params.intercept) {
  12362. this.config.intercept = params.intercept;
  12363. }
  12364. // params参数也带给拦截器
  12365. mergeConfig.params = params;
  12366. // 合并内外部参数
  12367. mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
  12368. // 判断用户是否定义了拦截器
  12369. if (!(typeof uni.$u.routeIntercept === 'function')) {_context.next = 16;break;}_context.next = 12;return (
  12370. new Promise(function (resolve, reject) {
  12371. uni.$u.routeIntercept(mergeConfig, resolve);
  12372. }));case 12:isNext = _context.sent;
  12373. // 如果isNext为true,则执行路由跳转
  12374. isNext && this.openPage(mergeConfig);_context.next = 17;break;case 16:
  12375. this.openPage(mergeConfig);case 17:case "end":return _context.stop();}}}, _callee, this);}));function route() {return _route.apply(this, arguments);}return route;}()
  12376. // 执行路由跳转
  12377. }, { key: "openPage", value: function openPage(config) {
  12378. // 解构参数
  12379. var
  12380. url =
  12381. config.url,type = config.type,delta = config.delta,animationType = config.animationType,animationDuration = config.animationDuration;
  12382. if (config.type == 'navigateTo' || config.type == 'to') {
  12383. uni.navigateTo({
  12384. url: url,
  12385. animationType: animationType,
  12386. animationDuration: animationDuration });
  12387. }
  12388. if (config.type == 'redirectTo' || config.type == 'redirect') {
  12389. uni.redirectTo({
  12390. url: url });
  12391. }
  12392. if (config.type == 'switchTab' || config.type == 'tab') {
  12393. uni.switchTab({
  12394. url: url });
  12395. }
  12396. if (config.type == 'reLaunch' || config.type == 'launch') {
  12397. uni.reLaunch({
  12398. url: url });
  12399. }
  12400. if (config.type == 'navigateBack' || config.type == 'back') {
  12401. uni.navigateBack({
  12402. delta: delta });
  12403. }
  12404. } }]);return Router;}();var _default =
  12405. new Router().route;exports.default = _default;
  12406. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  12407. /***/ }),
  12408. /* 39 */
  12409. /*!**********************************************************!*\
  12410. !*** ./node_modules/@babel/runtime/regenerator/index.js ***!
  12411. \**********************************************************/
  12412. /*! no static exports found */
  12413. /***/ (function(module, exports, __webpack_require__) {
  12414. module.exports = __webpack_require__(/*! regenerator-runtime */ 40);
  12415. /***/ }),
  12416. /* 40 */
  12417. /*!************************************************************!*\
  12418. !*** ./node_modules/regenerator-runtime/runtime-module.js ***!
  12419. \************************************************************/
  12420. /*! no static exports found */
  12421. /***/ (function(module, exports, __webpack_require__) {
  12422. /**
  12423. * Copyright (c) 2014-present, Facebook, Inc.
  12424. *
  12425. * This source code is licensed under the MIT license found in the
  12426. * LICENSE file in the root directory of this source tree.
  12427. */
  12428. // This method of obtaining a reference to the global object needs to be
  12429. // kept identical to the way it is obtained in runtime.js
  12430. var g = (function() {
  12431. return this || (typeof self === "object" && self);
  12432. })() || Function("return this")();
  12433. // Use `getOwnPropertyNames` because not all browsers support calling
  12434. // `hasOwnProperty` on the global `self` object in a worker. See #183.
  12435. var hadRuntime = g.regeneratorRuntime &&
  12436. Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0;
  12437. // Save the old regeneratorRuntime in case it needs to be restored later.
  12438. var oldRuntime = hadRuntime && g.regeneratorRuntime;
  12439. // Force reevalutation of runtime.js.
  12440. g.regeneratorRuntime = undefined;
  12441. module.exports = __webpack_require__(/*! ./runtime */ 41);
  12442. if (hadRuntime) {
  12443. // Restore the original runtime.
  12444. g.regeneratorRuntime = oldRuntime;
  12445. } else {
  12446. // Remove the global property added by runtime.js.
  12447. try {
  12448. delete g.regeneratorRuntime;
  12449. } catch(e) {
  12450. g.regeneratorRuntime = undefined;
  12451. }
  12452. }
  12453. /***/ }),
  12454. /* 41 */
  12455. /*!*****************************************************!*\
  12456. !*** ./node_modules/regenerator-runtime/runtime.js ***!
  12457. \*****************************************************/
  12458. /*! no static exports found */
  12459. /***/ (function(module, exports) {
  12460. /**
  12461. * Copyright (c) 2014-present, Facebook, Inc.
  12462. *
  12463. * This source code is licensed under the MIT license found in the
  12464. * LICENSE file in the root directory of this source tree.
  12465. */
  12466. !(function(global) {
  12467. "use strict";
  12468. var Op = Object.prototype;
  12469. var hasOwn = Op.hasOwnProperty;
  12470. var undefined; // More compressible than void 0.
  12471. var $Symbol = typeof Symbol === "function" ? Symbol : {};
  12472. var iteratorSymbol = $Symbol.iterator || "@@iterator";
  12473. var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
  12474. var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  12475. var inModule = typeof module === "object";
  12476. var runtime = global.regeneratorRuntime;
  12477. if (runtime) {
  12478. if (inModule) {
  12479. // If regeneratorRuntime is defined globally and we're in a module,
  12480. // make the exports object identical to regeneratorRuntime.
  12481. module.exports = runtime;
  12482. }
  12483. // Don't bother evaluating the rest of this file if the runtime was
  12484. // already defined globally.
  12485. return;
  12486. }
  12487. // Define the runtime globally (as expected by generated code) as either
  12488. // module.exports (if we're in a module) or a new, empty object.
  12489. runtime = global.regeneratorRuntime = inModule ? module.exports : {};
  12490. function wrap(innerFn, outerFn, self, tryLocsList) {
  12491. // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
  12492. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
  12493. var generator = Object.create(protoGenerator.prototype);
  12494. var context = new Context(tryLocsList || []);
  12495. // The ._invoke method unifies the implementations of the .next,
  12496. // .throw, and .return methods.
  12497. generator._invoke = makeInvokeMethod(innerFn, self, context);
  12498. return generator;
  12499. }
  12500. runtime.wrap = wrap;
  12501. // Try/catch helper to minimize deoptimizations. Returns a completion
  12502. // record like context.tryEntries[i].completion. This interface could
  12503. // have been (and was previously) designed to take a closure to be
  12504. // invoked without arguments, but in all the cases we care about we
  12505. // already have an existing method we want to call, so there's no need
  12506. // to create a new function object. We can even get away with assuming
  12507. // the method takes exactly one argument, since that happens to be true
  12508. // in every case, so we don't have to touch the arguments object. The
  12509. // only additional allocation required is the completion record, which
  12510. // has a stable shape and so hopefully should be cheap to allocate.
  12511. function tryCatch(fn, obj, arg) {
  12512. try {
  12513. return { type: "normal", arg: fn.call(obj, arg) };
  12514. } catch (err) {
  12515. return { type: "throw", arg: err };
  12516. }
  12517. }
  12518. var GenStateSuspendedStart = "suspendedStart";
  12519. var GenStateSuspendedYield = "suspendedYield";
  12520. var GenStateExecuting = "executing";
  12521. var GenStateCompleted = "completed";
  12522. // Returning this object from the innerFn has the same effect as
  12523. // breaking out of the dispatch switch statement.
  12524. var ContinueSentinel = {};
  12525. // Dummy constructor functions that we use as the .constructor and
  12526. // .constructor.prototype properties for functions that return Generator
  12527. // objects. For full spec compliance, you may wish to configure your
  12528. // minifier not to mangle the names of these two functions.
  12529. function Generator() {}
  12530. function GeneratorFunction() {}
  12531. function GeneratorFunctionPrototype() {}
  12532. // This is a polyfill for %IteratorPrototype% for environments that
  12533. // don't natively support it.
  12534. var IteratorPrototype = {};
  12535. IteratorPrototype[iteratorSymbol] = function () {
  12536. return this;
  12537. };
  12538. var getProto = Object.getPrototypeOf;
  12539. var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  12540. if (NativeIteratorPrototype &&
  12541. NativeIteratorPrototype !== Op &&
  12542. hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
  12543. // This environment has a native %IteratorPrototype%; use it instead
  12544. // of the polyfill.
  12545. IteratorPrototype = NativeIteratorPrototype;
  12546. }
  12547. var Gp = GeneratorFunctionPrototype.prototype =
  12548. Generator.prototype = Object.create(IteratorPrototype);
  12549. GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
  12550. GeneratorFunctionPrototype.constructor = GeneratorFunction;
  12551. GeneratorFunctionPrototype[toStringTagSymbol] =
  12552. GeneratorFunction.displayName = "GeneratorFunction";
  12553. // Helper for defining the .next, .throw, and .return methods of the
  12554. // Iterator interface in terms of a single ._invoke method.
  12555. function defineIteratorMethods(prototype) {
  12556. ["next", "throw", "return"].forEach(function(method) {
  12557. prototype[method] = function(arg) {
  12558. return this._invoke(method, arg);
  12559. };
  12560. });
  12561. }
  12562. runtime.isGeneratorFunction = function(genFun) {
  12563. var ctor = typeof genFun === "function" && genFun.constructor;
  12564. return ctor
  12565. ? ctor === GeneratorFunction ||
  12566. // For the native GeneratorFunction constructor, the best we can
  12567. // do is to check its .name property.
  12568. (ctor.displayName || ctor.name) === "GeneratorFunction"
  12569. : false;
  12570. };
  12571. runtime.mark = function(genFun) {
  12572. if (Object.setPrototypeOf) {
  12573. Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
  12574. } else {
  12575. genFun.__proto__ = GeneratorFunctionPrototype;
  12576. if (!(toStringTagSymbol in genFun)) {
  12577. genFun[toStringTagSymbol] = "GeneratorFunction";
  12578. }
  12579. }
  12580. genFun.prototype = Object.create(Gp);
  12581. return genFun;
  12582. };
  12583. // Within the body of any async function, `await x` is transformed to
  12584. // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
  12585. // `hasOwn.call(value, "__await")` to determine if the yielded value is
  12586. // meant to be awaited.
  12587. runtime.awrap = function(arg) {
  12588. return { __await: arg };
  12589. };
  12590. function AsyncIterator(generator) {
  12591. function invoke(method, arg, resolve, reject) {
  12592. var record = tryCatch(generator[method], generator, arg);
  12593. if (record.type === "throw") {
  12594. reject(record.arg);
  12595. } else {
  12596. var result = record.arg;
  12597. var value = result.value;
  12598. if (value &&
  12599. typeof value === "object" &&
  12600. hasOwn.call(value, "__await")) {
  12601. return Promise.resolve(value.__await).then(function(value) {
  12602. invoke("next", value, resolve, reject);
  12603. }, function(err) {
  12604. invoke("throw", err, resolve, reject);
  12605. });
  12606. }
  12607. return Promise.resolve(value).then(function(unwrapped) {
  12608. // When a yielded Promise is resolved, its final value becomes
  12609. // the .value of the Promise<{value,done}> result for the
  12610. // current iteration.
  12611. result.value = unwrapped;
  12612. resolve(result);
  12613. }, function(error) {
  12614. // If a rejected Promise was yielded, throw the rejection back
  12615. // into the async generator function so it can be handled there.
  12616. return invoke("throw", error, resolve, reject);
  12617. });
  12618. }
  12619. }
  12620. var previousPromise;
  12621. function enqueue(method, arg) {
  12622. function callInvokeWithMethodAndArg() {
  12623. return new Promise(function(resolve, reject) {
  12624. invoke(method, arg, resolve, reject);
  12625. });
  12626. }
  12627. return previousPromise =
  12628. // If enqueue has been called before, then we want to wait until
  12629. // all previous Promises have been resolved before calling invoke,
  12630. // so that results are always delivered in the correct order. If
  12631. // enqueue has not been called before, then it is important to
  12632. // call invoke immediately, without waiting on a callback to fire,
  12633. // so that the async generator function has the opportunity to do
  12634. // any necessary setup in a predictable way. This predictability
  12635. // is why the Promise constructor synchronously invokes its
  12636. // executor callback, and why async functions synchronously
  12637. // execute code before the first await. Since we implement simple
  12638. // async functions in terms of async generators, it is especially
  12639. // important to get this right, even though it requires care.
  12640. previousPromise ? previousPromise.then(
  12641. callInvokeWithMethodAndArg,
  12642. // Avoid propagating failures to Promises returned by later
  12643. // invocations of the iterator.
  12644. callInvokeWithMethodAndArg
  12645. ) : callInvokeWithMethodAndArg();
  12646. }
  12647. // Define the unified helper method that is used to implement .next,
  12648. // .throw, and .return (see defineIteratorMethods).
  12649. this._invoke = enqueue;
  12650. }
  12651. defineIteratorMethods(AsyncIterator.prototype);
  12652. AsyncIterator.prototype[asyncIteratorSymbol] = function () {
  12653. return this;
  12654. };
  12655. runtime.AsyncIterator = AsyncIterator;
  12656. // Note that simple async functions are implemented on top of
  12657. // AsyncIterator objects; they just return a Promise for the value of
  12658. // the final result produced by the iterator.
  12659. runtime.async = function(innerFn, outerFn, self, tryLocsList) {
  12660. var iter = new AsyncIterator(
  12661. wrap(innerFn, outerFn, self, tryLocsList)
  12662. );
  12663. return runtime.isGeneratorFunction(outerFn)
  12664. ? iter // If outerFn is a generator, return the full iterator.
  12665. : iter.next().then(function(result) {
  12666. return result.done ? result.value : iter.next();
  12667. });
  12668. };
  12669. function makeInvokeMethod(innerFn, self, context) {
  12670. var state = GenStateSuspendedStart;
  12671. return function invoke(method, arg) {
  12672. if (state === GenStateExecuting) {
  12673. throw new Error("Generator is already running");
  12674. }
  12675. if (state === GenStateCompleted) {
  12676. if (method === "throw") {
  12677. throw arg;
  12678. }
  12679. // Be forgiving, per 25.3.3.3.3 of the spec:
  12680. // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
  12681. return doneResult();
  12682. }
  12683. context.method = method;
  12684. context.arg = arg;
  12685. while (true) {
  12686. var delegate = context.delegate;
  12687. if (delegate) {
  12688. var delegateResult = maybeInvokeDelegate(delegate, context);
  12689. if (delegateResult) {
  12690. if (delegateResult === ContinueSentinel) continue;
  12691. return delegateResult;
  12692. }
  12693. }
  12694. if (context.method === "next") {
  12695. // Setting context._sent for legacy support of Babel's
  12696. // function.sent implementation.
  12697. context.sent = context._sent = context.arg;
  12698. } else if (context.method === "throw") {
  12699. if (state === GenStateSuspendedStart) {
  12700. state = GenStateCompleted;
  12701. throw context.arg;
  12702. }
  12703. context.dispatchException(context.arg);
  12704. } else if (context.method === "return") {
  12705. context.abrupt("return", context.arg);
  12706. }
  12707. state = GenStateExecuting;
  12708. var record = tryCatch(innerFn, self, context);
  12709. if (record.type === "normal") {
  12710. // If an exception is thrown from innerFn, we leave state ===
  12711. // GenStateExecuting and loop back for another invocation.
  12712. state = context.done
  12713. ? GenStateCompleted
  12714. : GenStateSuspendedYield;
  12715. if (record.arg === ContinueSentinel) {
  12716. continue;
  12717. }
  12718. return {
  12719. value: record.arg,
  12720. done: context.done
  12721. };
  12722. } else if (record.type === "throw") {
  12723. state = GenStateCompleted;
  12724. // Dispatch the exception by looping back around to the
  12725. // context.dispatchException(context.arg) call above.
  12726. context.method = "throw";
  12727. context.arg = record.arg;
  12728. }
  12729. }
  12730. };
  12731. }
  12732. // Call delegate.iterator[context.method](context.arg) and handle the
  12733. // result, either by returning a { value, done } result from the
  12734. // delegate iterator, or by modifying context.method and context.arg,
  12735. // setting context.delegate to null, and returning the ContinueSentinel.
  12736. function maybeInvokeDelegate(delegate, context) {
  12737. var method = delegate.iterator[context.method];
  12738. if (method === undefined) {
  12739. // A .throw or .return when the delegate iterator has no .throw
  12740. // method always terminates the yield* loop.
  12741. context.delegate = null;
  12742. if (context.method === "throw") {
  12743. if (delegate.iterator.return) {
  12744. // If the delegate iterator has a return method, give it a
  12745. // chance to clean up.
  12746. context.method = "return";
  12747. context.arg = undefined;
  12748. maybeInvokeDelegate(delegate, context);
  12749. if (context.method === "throw") {
  12750. // If maybeInvokeDelegate(context) changed context.method from
  12751. // "return" to "throw", let that override the TypeError below.
  12752. return ContinueSentinel;
  12753. }
  12754. }
  12755. context.method = "throw";
  12756. context.arg = new TypeError(
  12757. "The iterator does not provide a 'throw' method");
  12758. }
  12759. return ContinueSentinel;
  12760. }
  12761. var record = tryCatch(method, delegate.iterator, context.arg);
  12762. if (record.type === "throw") {
  12763. context.method = "throw";
  12764. context.arg = record.arg;
  12765. context.delegate = null;
  12766. return ContinueSentinel;
  12767. }
  12768. var info = record.arg;
  12769. if (! info) {
  12770. context.method = "throw";
  12771. context.arg = new TypeError("iterator result is not an object");
  12772. context.delegate = null;
  12773. return ContinueSentinel;
  12774. }
  12775. if (info.done) {
  12776. // Assign the result of the finished delegate to the temporary
  12777. // variable specified by delegate.resultName (see delegateYield).
  12778. context[delegate.resultName] = info.value;
  12779. // Resume execution at the desired location (see delegateYield).
  12780. context.next = delegate.nextLoc;
  12781. // If context.method was "throw" but the delegate handled the
  12782. // exception, let the outer generator proceed normally. If
  12783. // context.method was "next", forget context.arg since it has been
  12784. // "consumed" by the delegate iterator. If context.method was
  12785. // "return", allow the original .return call to continue in the
  12786. // outer generator.
  12787. if (context.method !== "return") {
  12788. context.method = "next";
  12789. context.arg = undefined;
  12790. }
  12791. } else {
  12792. // Re-yield the result returned by the delegate method.
  12793. return info;
  12794. }
  12795. // The delegate iterator is finished, so forget it and continue with
  12796. // the outer generator.
  12797. context.delegate = null;
  12798. return ContinueSentinel;
  12799. }
  12800. // Define Generator.prototype.{next,throw,return} in terms of the
  12801. // unified ._invoke helper method.
  12802. defineIteratorMethods(Gp);
  12803. Gp[toStringTagSymbol] = "Generator";
  12804. // A Generator should always return itself as the iterator object when the
  12805. // @@iterator function is called on it. Some browsers' implementations of the
  12806. // iterator prototype chain incorrectly implement this, causing the Generator
  12807. // object to not be returned from this call. This ensures that doesn't happen.
  12808. // See https://github.com/facebook/regenerator/issues/274 for more details.
  12809. Gp[iteratorSymbol] = function() {
  12810. return this;
  12811. };
  12812. Gp.toString = function() {
  12813. return "[object Generator]";
  12814. };
  12815. function pushTryEntry(locs) {
  12816. var entry = { tryLoc: locs[0] };
  12817. if (1 in locs) {
  12818. entry.catchLoc = locs[1];
  12819. }
  12820. if (2 in locs) {
  12821. entry.finallyLoc = locs[2];
  12822. entry.afterLoc = locs[3];
  12823. }
  12824. this.tryEntries.push(entry);
  12825. }
  12826. function resetTryEntry(entry) {
  12827. var record = entry.completion || {};
  12828. record.type = "normal";
  12829. delete record.arg;
  12830. entry.completion = record;
  12831. }
  12832. function Context(tryLocsList) {
  12833. // The root entry object (effectively a try statement without a catch
  12834. // or a finally block) gives us a place to store values thrown from
  12835. // locations where there is no enclosing try statement.
  12836. this.tryEntries = [{ tryLoc: "root" }];
  12837. tryLocsList.forEach(pushTryEntry, this);
  12838. this.reset(true);
  12839. }
  12840. runtime.keys = function(object) {
  12841. var keys = [];
  12842. for (var key in object) {
  12843. keys.push(key);
  12844. }
  12845. keys.reverse();
  12846. // Rather than returning an object with a next method, we keep
  12847. // things simple and return the next function itself.
  12848. return function next() {
  12849. while (keys.length) {
  12850. var key = keys.pop();
  12851. if (key in object) {
  12852. next.value = key;
  12853. next.done = false;
  12854. return next;
  12855. }
  12856. }
  12857. // To avoid creating an additional object, we just hang the .value
  12858. // and .done properties off the next function object itself. This
  12859. // also ensures that the minifier will not anonymize the function.
  12860. next.done = true;
  12861. return next;
  12862. };
  12863. };
  12864. function values(iterable) {
  12865. if (iterable) {
  12866. var iteratorMethod = iterable[iteratorSymbol];
  12867. if (iteratorMethod) {
  12868. return iteratorMethod.call(iterable);
  12869. }
  12870. if (typeof iterable.next === "function") {
  12871. return iterable;
  12872. }
  12873. if (!isNaN(iterable.length)) {
  12874. var i = -1, next = function next() {
  12875. while (++i < iterable.length) {
  12876. if (hasOwn.call(iterable, i)) {
  12877. next.value = iterable[i];
  12878. next.done = false;
  12879. return next;
  12880. }
  12881. }
  12882. next.value = undefined;
  12883. next.done = true;
  12884. return next;
  12885. };
  12886. return next.next = next;
  12887. }
  12888. }
  12889. // Return an iterator with no values.
  12890. return { next: doneResult };
  12891. }
  12892. runtime.values = values;
  12893. function doneResult() {
  12894. return { value: undefined, done: true };
  12895. }
  12896. Context.prototype = {
  12897. constructor: Context,
  12898. reset: function(skipTempReset) {
  12899. this.prev = 0;
  12900. this.next = 0;
  12901. // Resetting context._sent for legacy support of Babel's
  12902. // function.sent implementation.
  12903. this.sent = this._sent = undefined;
  12904. this.done = false;
  12905. this.delegate = null;
  12906. this.method = "next";
  12907. this.arg = undefined;
  12908. this.tryEntries.forEach(resetTryEntry);
  12909. if (!skipTempReset) {
  12910. for (var name in this) {
  12911. // Not sure about the optimal order of these conditions:
  12912. if (name.charAt(0) === "t" &&
  12913. hasOwn.call(this, name) &&
  12914. !isNaN(+name.slice(1))) {
  12915. this[name] = undefined;
  12916. }
  12917. }
  12918. }
  12919. },
  12920. stop: function() {
  12921. this.done = true;
  12922. var rootEntry = this.tryEntries[0];
  12923. var rootRecord = rootEntry.completion;
  12924. if (rootRecord.type === "throw") {
  12925. throw rootRecord.arg;
  12926. }
  12927. return this.rval;
  12928. },
  12929. dispatchException: function(exception) {
  12930. if (this.done) {
  12931. throw exception;
  12932. }
  12933. var context = this;
  12934. function handle(loc, caught) {
  12935. record.type = "throw";
  12936. record.arg = exception;
  12937. context.next = loc;
  12938. if (caught) {
  12939. // If the dispatched exception was caught by a catch block,
  12940. // then let that catch block handle the exception normally.
  12941. context.method = "next";
  12942. context.arg = undefined;
  12943. }
  12944. return !! caught;
  12945. }
  12946. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  12947. var entry = this.tryEntries[i];
  12948. var record = entry.completion;
  12949. if (entry.tryLoc === "root") {
  12950. // Exception thrown outside of any try block that could handle
  12951. // it, so set the completion value of the entire function to
  12952. // throw the exception.
  12953. return handle("end");
  12954. }
  12955. if (entry.tryLoc <= this.prev) {
  12956. var hasCatch = hasOwn.call(entry, "catchLoc");
  12957. var hasFinally = hasOwn.call(entry, "finallyLoc");
  12958. if (hasCatch && hasFinally) {
  12959. if (this.prev < entry.catchLoc) {
  12960. return handle(entry.catchLoc, true);
  12961. } else if (this.prev < entry.finallyLoc) {
  12962. return handle(entry.finallyLoc);
  12963. }
  12964. } else if (hasCatch) {
  12965. if (this.prev < entry.catchLoc) {
  12966. return handle(entry.catchLoc, true);
  12967. }
  12968. } else if (hasFinally) {
  12969. if (this.prev < entry.finallyLoc) {
  12970. return handle(entry.finallyLoc);
  12971. }
  12972. } else {
  12973. throw new Error("try statement without catch or finally");
  12974. }
  12975. }
  12976. }
  12977. },
  12978. abrupt: function(type, arg) {
  12979. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  12980. var entry = this.tryEntries[i];
  12981. if (entry.tryLoc <= this.prev &&
  12982. hasOwn.call(entry, "finallyLoc") &&
  12983. this.prev < entry.finallyLoc) {
  12984. var finallyEntry = entry;
  12985. break;
  12986. }
  12987. }
  12988. if (finallyEntry &&
  12989. (type === "break" ||
  12990. type === "continue") &&
  12991. finallyEntry.tryLoc <= arg &&
  12992. arg <= finallyEntry.finallyLoc) {
  12993. // Ignore the finally entry if control is not jumping to a
  12994. // location outside the try/catch block.
  12995. finallyEntry = null;
  12996. }
  12997. var record = finallyEntry ? finallyEntry.completion : {};
  12998. record.type = type;
  12999. record.arg = arg;
  13000. if (finallyEntry) {
  13001. this.method = "next";
  13002. this.next = finallyEntry.finallyLoc;
  13003. return ContinueSentinel;
  13004. }
  13005. return this.complete(record);
  13006. },
  13007. complete: function(record, afterLoc) {
  13008. if (record.type === "throw") {
  13009. throw record.arg;
  13010. }
  13011. if (record.type === "break" ||
  13012. record.type === "continue") {
  13013. this.next = record.arg;
  13014. } else if (record.type === "return") {
  13015. this.rval = this.arg = record.arg;
  13016. this.method = "return";
  13017. this.next = "end";
  13018. } else if (record.type === "normal" && afterLoc) {
  13019. this.next = afterLoc;
  13020. }
  13021. return ContinueSentinel;
  13022. },
  13023. finish: function(finallyLoc) {
  13024. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  13025. var entry = this.tryEntries[i];
  13026. if (entry.finallyLoc === finallyLoc) {
  13027. this.complete(entry.completion, entry.afterLoc);
  13028. resetTryEntry(entry);
  13029. return ContinueSentinel;
  13030. }
  13031. }
  13032. },
  13033. "catch": function(tryLoc) {
  13034. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  13035. var entry = this.tryEntries[i];
  13036. if (entry.tryLoc === tryLoc) {
  13037. var record = entry.completion;
  13038. if (record.type === "throw") {
  13039. var thrown = record.arg;
  13040. resetTryEntry(entry);
  13041. }
  13042. return thrown;
  13043. }
  13044. }
  13045. // The context.catch method must only be called with a location
  13046. // argument that corresponds to a known catch block.
  13047. throw new Error("illegal catch attempt");
  13048. },
  13049. delegateYield: function(iterable, resultName, nextLoc) {
  13050. this.delegate = {
  13051. iterator: values(iterable),
  13052. resultName: resultName,
  13053. nextLoc: nextLoc
  13054. };
  13055. if (this.method === "next") {
  13056. // Deliberately forget the last sent value so that we don't
  13057. // accidentally pass it on to the delegate.
  13058. this.arg = undefined;
  13059. }
  13060. return ContinueSentinel;
  13061. }
  13062. };
  13063. })(
  13064. // In sloppy mode, unbound `this` refers to the global object, fallback to
  13065. // Function constructor if we're in global strict mode. That is sadly a form
  13066. // of indirect eval which violates Content Security Policy.
  13067. (function() {
  13068. return this || (typeof self === "object" && self);
  13069. })() || Function("return this")()
  13070. );
  13071. /***/ }),
  13072. /* 42 */
  13073. /*!*****************************************************************************************!*\
  13074. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/function/colorGradient.js ***!
  13075. \*****************************************************************************************/
  13076. /*! no static exports found */
  13077. /***/ (function(module, exports, __webpack_require__) {
  13078. "use strict";
  13079. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /**
  13080. * 求两个颜色之间的渐变值
  13081. * @param {string} startColor 开始的颜色
  13082. * @param {string} endColor 结束的颜色
  13083. * @param {number} step 颜色等分的份额
  13084. * */
  13085. 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;
  13086. var startRGB = hexToRgb(startColor, false); // 转换为rgb数组模式
  13087. var startR = startRGB[0];
  13088. var startG = startRGB[1];
  13089. var startB = startRGB[2];
  13090. var endRGB = hexToRgb(endColor, false);
  13091. var endR = endRGB[0];
  13092. var endG = endRGB[1];
  13093. var endB = endRGB[2];
  13094. var sR = (endR - startR) / step; // 总差值
  13095. var sG = (endG - startG) / step;
  13096. var sB = (endB - startB) / step;
  13097. var colorArr = [];
  13098. for (var i = 0; i < step; i++) {
  13099. // 计算每一步的hex值
  13100. var hex = rgbToHex("rgb(".concat(Math.round(sR * i + startR), ",").concat(Math.round(sG * i + startG), ",").concat(Math.round(sB *
  13101. i + startB), ")"));
  13102. // 确保第一个颜色值为startColor的值
  13103. if (i === 0) hex = rgbToHex(startColor);
  13104. // 确保最后一个颜色值为endColor的值
  13105. if (i === step - 1) hex = rgbToHex(endColor);
  13106. colorArr.push(hex);
  13107. }
  13108. return colorArr;
  13109. }
  13110. // 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
  13111. function hexToRgb(sColor) {var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13112. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  13113. sColor = String(sColor).toLowerCase();
  13114. if (sColor && reg.test(sColor)) {
  13115. if (sColor.length === 4) {
  13116. var sColorNew = '#';
  13117. for (var i = 1; i < 4; i += 1) {
  13118. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  13119. }
  13120. sColor = sColorNew;
  13121. }
  13122. // 处理六位的颜色值
  13123. var sColorChange = [];
  13124. for (var _i = 1; _i < 7; _i += 2) {
  13125. sColorChange.push(parseInt("0x".concat(sColor.slice(_i, _i + 2))));
  13126. }
  13127. if (!str) {
  13128. return sColorChange;
  13129. }
  13130. return "rgb(".concat(sColorChange[0], ",").concat(sColorChange[1], ",").concat(sColorChange[2], ")");
  13131. }if (/^(rgb|RGB)/.test(sColor)) {
  13132. var arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  13133. return arr.map(function (val) {return Number(val);});
  13134. }
  13135. return sColor;
  13136. }
  13137. // 将rgb表示方式转换为hex表示方式
  13138. function rgbToHex(rgb) {
  13139. var _this = rgb;
  13140. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  13141. if (/^(rgb|RGB)/.test(_this)) {
  13142. var aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  13143. var strHex = '#';
  13144. for (var i = 0; i < aColor.length; i++) {
  13145. var hex = Number(aColor[i]).toString(16);
  13146. hex = String(hex).length == 1 ? "".concat(0, hex) : hex; // 保证每个rgb的值为2位
  13147. if (hex === '0') {
  13148. hex += hex;
  13149. }
  13150. strHex += hex;
  13151. }
  13152. if (strHex.length !== 7) {
  13153. strHex = _this;
  13154. }
  13155. return strHex;
  13156. }if (reg.test(_this)) {
  13157. var aNum = _this.replace(/#/, '').split('');
  13158. if (aNum.length === 6) {
  13159. return _this;
  13160. }if (aNum.length === 3) {
  13161. var numHex = '#';
  13162. for (var _i2 = 0; _i2 < aNum.length; _i2 += 1) {
  13163. numHex += aNum[_i2] + aNum[_i2];
  13164. }
  13165. return numHex;
  13166. }
  13167. } else {
  13168. return _this;
  13169. }
  13170. }
  13171. /**
  13172. * JS颜色十六进制转换为rgb或rgba,返回的格式为 rgba(255,255,255,0.5)字符串
  13173. * sHex为传入的十六进制的色值
  13174. * alpha为rgba的透明度
  13175. */
  13176. function colorToRgba(color, alpha) {
  13177. color = rgbToHex(color);
  13178. // 十六进制颜色值的正则表达式
  13179. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  13180. /* 16进制颜色转为RGB格式 */
  13181. var sColor = String(color).toLowerCase();
  13182. if (sColor && reg.test(sColor)) {
  13183. if (sColor.length === 4) {
  13184. var sColorNew = '#';
  13185. for (var i = 1; i < 4; i += 1) {
  13186. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  13187. }
  13188. sColor = sColorNew;
  13189. }
  13190. // 处理六位的颜色值
  13191. var sColorChange = [];
  13192. for (var _i3 = 1; _i3 < 7; _i3 += 2) {
  13193. sColorChange.push(parseInt("0x".concat(sColor.slice(_i3, _i3 + 2))));
  13194. }
  13195. // return sColorChange.join(',')
  13196. return "rgba(".concat(sColorChange.join(','), ",").concat(alpha, ")");
  13197. }
  13198. return sColor;
  13199. }var _default =
  13200. {
  13201. colorGradient: colorGradient,
  13202. hexToRgb: hexToRgb,
  13203. rgbToHex: rgbToHex,
  13204. colorToRgba: colorToRgba };exports.default = _default;
  13205. /***/ }),
  13206. /* 43 */
  13207. /*!********************************************************************************!*\
  13208. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/function/test.js ***!
  13209. \********************************************************************************/
  13210. /*! no static exports found */
  13211. /***/ (function(module, exports, __webpack_require__) {
  13212. "use strict";
  13213. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /**
  13214. * 验证电子邮箱格式
  13215. */
  13216. function email(value) {
  13217. return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
  13218. }
  13219. /**
  13220. * 验证手机格式
  13221. */
  13222. function mobile(value) {
  13223. return /^1[23456789]\d{9}$/.test(value);
  13224. }
  13225. /**
  13226. * 验证URL格式
  13227. */
  13228. function url(value) {
  13229. 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_!~*'().;?:@&=+$,%#-]+)+\/?)$/.
  13230. test(value);
  13231. }
  13232. /**
  13233. * 验证日期格式
  13234. */
  13235. function date(value) {
  13236. if (!value) return false;
  13237. // 判断是否数值或者字符串数值(意味着为时间戳),转为数值,否则new Date无法识别字符串时间戳
  13238. if (number(value)) value = +value;
  13239. return !/Invalid|NaN/.test(new Date(value).toString());
  13240. }
  13241. /**
  13242. * 验证ISO类型的日期格式
  13243. */
  13244. function dateISO(value) {
  13245. return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
  13246. }
  13247. /**
  13248. * 验证十进制数字
  13249. */
  13250. function number(value) {
  13251. return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value);
  13252. }
  13253. /**
  13254. * 验证字符串
  13255. */
  13256. function string(value) {
  13257. return typeof value === 'string';
  13258. }
  13259. /**
  13260. * 验证整数
  13261. */
  13262. function digits(value) {
  13263. return /^\d+$/.test(value);
  13264. }
  13265. /**
  13266. * 验证身份证号码
  13267. */
  13268. function idCard(value) {
  13269. 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(
  13270. value);
  13271. }
  13272. /**
  13273. * 是否车牌号
  13274. */
  13275. function carNo(value) {
  13276. // 新能源车牌
  13277. var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
  13278. // 旧车牌
  13279. var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
  13280. if (value.length === 7) {
  13281. return creg.test(value);
  13282. }if (value.length === 8) {
  13283. return xreg.test(value);
  13284. }
  13285. return false;
  13286. }
  13287. /**
  13288. * 金额,只允许2位小数
  13289. */
  13290. function amount(value) {
  13291. // 金额,只允许保留两位小数
  13292. return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
  13293. }
  13294. /**
  13295. * 中文
  13296. */
  13297. function chinese(value) {
  13298. var reg = /^[\u4e00-\u9fa5]+$/gi;
  13299. return reg.test(value);
  13300. }
  13301. /**
  13302. * 只能输入字母
  13303. */
  13304. function letter(value) {
  13305. return /^[a-zA-Z]*$/.test(value);
  13306. }
  13307. /**
  13308. * 只能是字母或者数字
  13309. */
  13310. function enOrNum(value) {
  13311. // 英文或者数字
  13312. var reg = /^[0-9a-zA-Z]*$/g;
  13313. return reg.test(value);
  13314. }
  13315. /**
  13316. * 验证是否包含某个值
  13317. */
  13318. function contains(value, param) {
  13319. return value.indexOf(param) >= 0;
  13320. }
  13321. /**
  13322. * 验证一个值范围[min, max]
  13323. */
  13324. function range(value, param) {
  13325. return value >= param[0] && value <= param[1];
  13326. }
  13327. /**
  13328. * 验证一个长度范围[min, max]
  13329. */
  13330. function rangeLength(value, param) {
  13331. return value.length >= param[0] && value.length <= param[1];
  13332. }
  13333. /**
  13334. * 是否固定电话
  13335. */
  13336. function landline(value) {
  13337. var reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
  13338. return reg.test(value);
  13339. }
  13340. /**
  13341. * 判断是否为空
  13342. */
  13343. function empty(value) {
  13344. switch (typeof value) {
  13345. case 'undefined':
  13346. return true;
  13347. case 'string':
  13348. if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true;
  13349. break;
  13350. case 'boolean':
  13351. if (!value) return true;
  13352. break;
  13353. case 'number':
  13354. if (value === 0 || isNaN(value)) return true;
  13355. break;
  13356. case 'object':
  13357. if (value === null || value.length === 0) return true;
  13358. for (var i in value) {
  13359. return false;
  13360. }
  13361. return true;}
  13362. return false;
  13363. }
  13364. /**
  13365. * 是否json字符串
  13366. */
  13367. function jsonString(value) {
  13368. if (typeof value === 'string') {
  13369. try {
  13370. var obj = JSON.parse(value);
  13371. if (typeof obj === 'object' && obj) {
  13372. return true;
  13373. }
  13374. return false;
  13375. } catch (e) {
  13376. return false;
  13377. }
  13378. }
  13379. return false;
  13380. }
  13381. /**
  13382. * 是否数组
  13383. */
  13384. function array(value) {
  13385. if (typeof Array.isArray === 'function') {
  13386. return Array.isArray(value);
  13387. }
  13388. return Object.prototype.toString.call(value) === '[object Array]';
  13389. }
  13390. /**
  13391. * 是否对象
  13392. */
  13393. function object(value) {
  13394. return Object.prototype.toString.call(value) === '[object Object]';
  13395. }
  13396. /**
  13397. * 是否短信验证码
  13398. */
  13399. function code(value) {var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  13400. return new RegExp("^\\d{".concat(len, "}$")).test(value);
  13401. }
  13402. /**
  13403. * 是否函数方法
  13404. * @param {Object} value
  13405. */
  13406. function func(value) {
  13407. return typeof value === 'function';
  13408. }
  13409. /**
  13410. * 是否promise对象
  13411. * @param {Object} value
  13412. */
  13413. function promise(value) {
  13414. return object(value) && func(value.then) && func(value.catch);
  13415. }
  13416. /** 是否图片格式
  13417. * @param {Object} value
  13418. */
  13419. function image(value) {
  13420. var newValue = value.split('?')[0];
  13421. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  13422. return IMAGE_REGEXP.test(newValue);
  13423. }
  13424. /**
  13425. * 是否视频格式
  13426. * @param {Object} value
  13427. */
  13428. function video(value) {
  13429. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;
  13430. return VIDEO_REGEXP.test(value);
  13431. }
  13432. /**
  13433. * 是否为正则对象
  13434. * @param {Object}
  13435. * @return {Boolean}
  13436. */
  13437. function regExp(o) {
  13438. return o && Object.prototype.toString.call(o) === '[object RegExp]';
  13439. }var _default =
  13440. {
  13441. email: email,
  13442. mobile: mobile,
  13443. url: url,
  13444. date: date,
  13445. dateISO: dateISO,
  13446. number: number,
  13447. digits: digits,
  13448. idCard: idCard,
  13449. carNo: carNo,
  13450. amount: amount,
  13451. chinese: chinese,
  13452. letter: letter,
  13453. enOrNum: enOrNum,
  13454. contains: contains,
  13455. range: range,
  13456. rangeLength: rangeLength,
  13457. empty: empty,
  13458. isEmpty: empty,
  13459. jsonString: jsonString,
  13460. landline: landline,
  13461. object: object,
  13462. array: array,
  13463. code: code,
  13464. func: func,
  13465. promise: promise,
  13466. video: video,
  13467. image: image,
  13468. regExp: regExp,
  13469. string: string };exports.default = _default;
  13470. /***/ }),
  13471. /* 44 */
  13472. /*!************************************************************************************!*\
  13473. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/function/debounce.js ***!
  13474. \************************************************************************************/
  13475. /*! no static exports found */
  13476. /***/ (function(module, exports, __webpack_require__) {
  13477. "use strict";
  13478. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var timeout = null;
  13479. /**
  13480. * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
  13481. *
  13482. * @param {Function} func 要执行的回调函数
  13483. * @param {Number} wait 延时的时间
  13484. * @param {Boolean} immediate 是否立即执行
  13485. * @return null
  13486. */
  13487. 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;
  13488. // 清除定时器
  13489. if (timeout !== null) clearTimeout(timeout);
  13490. // 立即执行,此类情况一般用不到
  13491. if (immediate) {
  13492. var callNow = !timeout;
  13493. timeout = setTimeout(function () {
  13494. timeout = null;
  13495. }, wait);
  13496. if (callNow) typeof func === 'function' && func();
  13497. } else {
  13498. // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
  13499. timeout = setTimeout(function () {
  13500. typeof func === 'function' && func();
  13501. }, wait);
  13502. }
  13503. }var _default =
  13504. debounce;exports.default = _default;
  13505. /***/ }),
  13506. /* 45 */
  13507. /*!************************************************************************************!*\
  13508. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/function/throttle.js ***!
  13509. \************************************************************************************/
  13510. /*! no static exports found */
  13511. /***/ (function(module, exports, __webpack_require__) {
  13512. "use strict";
  13513. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var timer;var
  13514. flag;
  13515. /**
  13516. * 节流原理:在一定时间内,只能触发一次
  13517. *
  13518. * @param {Function} func 要执行的回调函数
  13519. * @param {Number} wait 延时的时间
  13520. * @param {Boolean} immediate 是否立即执行
  13521. * @return null
  13522. */
  13523. 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;
  13524. if (immediate) {
  13525. if (!flag) {
  13526. flag = true;
  13527. // 如果是立即执行,则在wait毫秒内开始时执行
  13528. typeof func === 'function' && func();
  13529. timer = setTimeout(function () {
  13530. flag = false;
  13531. }, wait);
  13532. }
  13533. } else if (!flag) {
  13534. flag = true;
  13535. // 如果是非立即执行,则在wait毫秒内的结束处执行
  13536. timer = setTimeout(function () {
  13537. flag = false;
  13538. typeof func === 'function' && func();
  13539. }, wait);
  13540. }
  13541. }var _default =
  13542. throttle;exports.default = _default;
  13543. /***/ }),
  13544. /* 46 */
  13545. /*!*********************************************************************************!*\
  13546. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/function/index.js ***!
  13547. \*********************************************************************************/
  13548. /*! no static exports found */
  13549. /***/ (function(module, exports, __webpack_require__) {
  13550. "use strict";
  13551. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _test = _interopRequireDefault(__webpack_require__(/*! ./test.js */ 43));
  13552. var _digit = __webpack_require__(/*! ./digit.js */ 47);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;}
  13553. /**
  13554. * @description 如果value小于min,取min;如果value大于max,取max
  13555. * @param {number} min
  13556. * @param {number} max
  13557. * @param {number} value
  13558. */
  13559. 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;
  13560. return Math.max(min, Math.min(max, Number(value)));
  13561. }
  13562. /**
  13563. * @description 用于获取用户传递值的px值 如果用户传递了"xxpx"或者"xxrpx",取出其数值部分,如果是"xxxrpx"还需要用过uni.upx2px进行转换
  13564. * @param {number|string} value 用户传递值的px值
  13565. * @param {boolean} unit
  13566. * @returns {number|string}
  13567. */
  13568. function getPx(value) {var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13569. if (_test.default.number(value)) {
  13570. return unit ? "".concat(value, "px") : Number(value);
  13571. }
  13572. // 如果带有rpx,先取出其数值部分,再转为px值
  13573. if (/(rpx|upx)$/.test(value)) {
  13574. return unit ? "".concat(uni.upx2px(parseInt(value)), "px") : Number(uni.upx2px(parseInt(value)));
  13575. }
  13576. return unit ? "".concat(parseInt(value), "px") : parseInt(value);
  13577. }
  13578. /**
  13579. * @description 进行延时,以达到可以简写代码的目的 比如: await uni.$u.sleep(20)将会阻塞20ms
  13580. * @param {number} value 堵塞时间 单位ms 毫秒
  13581. * @returns {Promise} 返回promise
  13582. */
  13583. function sleep() {var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 30;
  13584. return new Promise(function (resolve) {
  13585. setTimeout(function () {
  13586. resolve();
  13587. }, value);
  13588. });
  13589. }
  13590. /**
  13591. * @description 运行期判断平台
  13592. * @returns {string} 返回所在平台(小写)
  13593. * @link 运行期判断平台 https://uniapp.dcloud.io/frame?id=判断平台
  13594. */
  13595. function os() {
  13596. return uni.getSystemInfoSync().platform.toLowerCase();
  13597. }
  13598. /**
  13599. * @description 获取系统信息同步接口
  13600. * @link 获取系统信息同步接口 https://uniapp.dcloud.io/api/system/info?id=getsysteminfosync
  13601. */
  13602. function sys() {
  13603. return uni.getSystemInfoSync();
  13604. }
  13605. /**
  13606. * @description 取一个区间数
  13607. * @param {Number} min 最小值
  13608. * @param {Number} max 最大值
  13609. */
  13610. function random(min, max) {
  13611. if (min >= 0 && max > 0 && max >= min) {
  13612. var gab = max - min + 1;
  13613. return Math.floor(Math.random() * gab + min);
  13614. }
  13615. return 0;
  13616. }
  13617. /**
  13618. * @param {Number} len uuid的长度
  13619. * @param {Boolean} firstU 将返回的首字母置为"u"
  13620. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  13621. */
  13622. 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;
  13623. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  13624. var uuid = [];
  13625. radix = radix || chars.length;
  13626. if (len) {
  13627. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  13628. for (var i = 0; i < len; i++) {uuid[i] = chars[0 | Math.random() * radix];}
  13629. } else {
  13630. var r;
  13631. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  13632. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  13633. uuid[14] = '4';
  13634. for (var _i = 0; _i < 36; _i++) {
  13635. if (!uuid[_i]) {
  13636. r = 0 | Math.random() * 16;
  13637. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  13638. }
  13639. }
  13640. }
  13641. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  13642. if (firstU) {
  13643. uuid.shift();
  13644. return "u".concat(uuid.join(''));
  13645. }
  13646. return uuid.join('');
  13647. }
  13648. /**
  13649. * @description 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  13650. this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  13651. 这里默认值等于undefined有它的含义,因为最顶层元素(组件)的$parent就是undefined,意味着不传name
  13652. 值(默认为undefined),就是查找最顶层的$parent
  13653. * @param {string|undefined} name 父组件的参数名
  13654. */
  13655. function $parent() {var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  13656. var parent = this.$parent;
  13657. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  13658. while (parent) {
  13659. // 父组件
  13660. if (parent.$options && parent.$options.name !== name) {
  13661. // 如果组件的name不相等,继续上一级寻找
  13662. parent = parent.$parent;
  13663. } else {
  13664. return parent;
  13665. }
  13666. }
  13667. return false;
  13668. }
  13669. /**
  13670. * @description 样式转换
  13671. * 对象转字符串,或者字符串转对象
  13672. * @param {object | string} customStyle 需要转换的目标
  13673. * @param {String} target 转换的目的,object-转为对象,string-转为字符串
  13674. * @returns {object|string}
  13675. */
  13676. function addStyle(customStyle) {var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'object';
  13677. // 字符串转字符串,对象转对象情形,直接返回
  13678. if (_test.default.empty(customStyle) || typeof customStyle === 'object' && target === 'object' || target === 'string' &&
  13679. typeof customStyle === 'string') {
  13680. return customStyle;
  13681. }
  13682. // 字符串转对象
  13683. if (target === 'object') {
  13684. // 去除字符串样式中的两端空格(中间的空格不能去掉,比如padding: 20px 0如果去掉了就错了),空格是无用的
  13685. customStyle = trim(customStyle);
  13686. // 根据";"将字符串转为数组形式
  13687. var styleArray = customStyle.split(';');
  13688. var style = {};
  13689. // 历遍数组,拼接成对象
  13690. for (var i = 0; i < styleArray.length; i++) {
  13691. // 'font-size:20px;color:red;',如此最后字符串有";"的话,会导致styleArray最后一个元素为空字符串,这里需要过滤
  13692. if (styleArray[i]) {
  13693. var item = styleArray[i].split(':');
  13694. style[trim(item[0])] = trim(item[1]);
  13695. }
  13696. }
  13697. return style;
  13698. }
  13699. // 这里为对象转字符串形式
  13700. var string = '';
  13701. for (var _i2 in customStyle) {
  13702. // 驼峰转为中划线的形式,否则css内联样式,无法识别驼峰样式属性名
  13703. var key = _i2.replace(/([A-Z])/g, '-$1').toLowerCase();
  13704. string += "".concat(key, ":").concat(customStyle[_i2], ";");
  13705. }
  13706. // 去除两端空格
  13707. return trim(string);
  13708. }
  13709. /**
  13710. * @description 添加单位,如果有rpx,upx,%,px等单位结尾或者值为auto,直接返回,否则加上px单位结尾
  13711. * @param {string|number} value 需要添加单位的值
  13712. * @param {string} unit 添加的单位名 比如px
  13713. */
  13714. 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';
  13715. value = String(value);
  13716. // 用uView内置验证规则中的number判断是否为数值
  13717. return _test.default.number(value) ? "".concat(value).concat(unit) : value;
  13718. }
  13719. /**
  13720. * @description 深度克隆
  13721. * @param {object} obj 需要深度克隆的对象
  13722. * @returns {*} 克隆后的对象或者原值(不是对象)
  13723. */
  13724. function deepClone(obj) {
  13725. // 对常见的“非”值,直接返回原来值
  13726. if ([null, undefined, NaN, false].includes(obj)) return obj;
  13727. if (typeof obj !== 'object' && typeof obj !== 'function') {
  13728. // 原始类型直接返回
  13729. return obj;
  13730. }
  13731. var o = _test.default.array(obj) ? [] : {};
  13732. for (var i in obj) {
  13733. if (obj.hasOwnProperty(i)) {
  13734. o[i] = typeof obj[i] === 'object' ? deepClone(obj[i]) : obj[i];
  13735. }
  13736. }
  13737. return o;
  13738. }
  13739. /**
  13740. * @description JS对象深度合并
  13741. * @param {object} target 需要拷贝的对象
  13742. * @param {object} source 拷贝的来源对象
  13743. * @returns {object|boolean} 深度合并后的对象或者false(入参有不是对象)
  13744. */
  13745. function deepMerge() {var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  13746. target = deepClone(target);
  13747. if (typeof target !== 'object' || typeof source !== 'object') return false;
  13748. for (var prop in source) {
  13749. if (!source.hasOwnProperty(prop)) continue;
  13750. if (prop in target) {
  13751. if (typeof target[prop] !== 'object') {
  13752. target[prop] = source[prop];
  13753. } else if (typeof source[prop] !== 'object') {
  13754. target[prop] = source[prop];
  13755. } else if (target[prop].concat && source[prop].concat) {
  13756. target[prop] = target[prop].concat(source[prop]);
  13757. } else {
  13758. target[prop] = deepMerge(target[prop], source[prop]);
  13759. }
  13760. } else {
  13761. target[prop] = source[prop];
  13762. }
  13763. }
  13764. return target;
  13765. }
  13766. /**
  13767. * @description error提示
  13768. * @param {*} err 错误内容
  13769. */
  13770. function error(err) {
  13771. // 开发环境才提示,生产环境不会提示
  13772. if (true) {
  13773. console.error("uView\u63D0\u793A\uFF1A".concat(err));
  13774. }
  13775. }
  13776. /**
  13777. * @description 打乱数组
  13778. * @param {array} array 需要打乱的数组
  13779. * @returns {array} 打乱后的数组
  13780. */
  13781. function randomArray() {var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  13782. // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
  13783. return array.sort(function () {return Math.random() - 0.5;});
  13784. }
  13785. // padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
  13786. // 所以这里做一个兼容polyfill的兼容处理
  13787. if (!String.prototype.padStart) {
  13788. // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
  13789. String.prototype.padStart = function (maxLength) {var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
  13790. if (Object.prototype.toString.call(fillString) !== '[object String]') {
  13791. throw new TypeError(
  13792. 'fillString must be String');
  13793. }
  13794. var str = this;
  13795. // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
  13796. if (str.length >= maxLength) return String(str);
  13797. var fillLength = maxLength - str.length;
  13798. var times = Math.ceil(fillLength / fillString.length);
  13799. while (times >>= 1) {
  13800. fillString += fillString;
  13801. if (times === 1) {
  13802. fillString += fillString;
  13803. }
  13804. }
  13805. return fillString.slice(0, fillLength) + str;
  13806. };
  13807. }
  13808. /**
  13809. * @description 格式化时间
  13810. * @param {String|Number} dateTime 需要格式化的时间戳
  13811. * @param {String} fmt 格式化规则 yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合 默认yyyy-mm-dd
  13812. * @returns {string} 返回格式化后的字符串
  13813. */
  13814. 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';
  13815. var date;
  13816. // 若传入时间为假值,则取当前时间
  13817. if (!dateTime) {
  13818. date = new Date();
  13819. }
  13820. // 若为unix秒时间戳,则转为毫秒时间戳(逻辑有点奇怪,但不敢改,以保证历史兼容)
  13821. else if (/^\d{10}$/.test(dateTime === null || dateTime === void 0 ? void 0 : dateTime.toString().trim())) {
  13822. date = new Date(dateTime * 1000);
  13823. }
  13824. // 若用户传入字符串格式时间戳,new Date无法解析,需做兼容
  13825. else if (typeof dateTime === 'string' && /^\d+$/.test(dateTime.trim())) {
  13826. date = new Date(Number(dateTime));
  13827. }
  13828. // 其他都认为符合 RFC 2822 规范
  13829. else {
  13830. // 处理平台性差异,在Safari/Webkit中,new Date仅支持/作为分割符的字符串时间
  13831. date = new Date(
  13832. typeof dateTime === 'string' ?
  13833. dateTime.replace(/-/g, '/') :
  13834. dateTime);
  13835. }
  13836. var timeSource = {
  13837. 'y': date.getFullYear().toString(), // 年
  13838. 'm': (date.getMonth() + 1).toString().padStart(2, '0'), // 月
  13839. 'd': date.getDate().toString().padStart(2, '0'), // 日
  13840. 'h': date.getHours().toString().padStart(2, '0'), // 时
  13841. 'M': date.getMinutes().toString().padStart(2, '0'), // 分
  13842. 's': date.getSeconds().toString().padStart(2, '0') // 秒
  13843. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  13844. };
  13845. for (var key in timeSource) {var _ref =
  13846. new RegExp("".concat(key, "+")).exec(formatStr) || [],_ref2 = _slicedToArray(_ref, 1),ret = _ref2[0];
  13847. if (ret) {
  13848. // 年可能只需展示两位
  13849. var beginIndex = key === 'y' && ret.length === 2 ? 2 : 0;
  13850. formatStr = formatStr.replace(ret, timeSource[key].slice(beginIndex));
  13851. }
  13852. }
  13853. return formatStr;
  13854. }
  13855. /**
  13856. * @description 时间戳转为多久之前
  13857. * @param {String|Number} timestamp 时间戳
  13858. * @param {String|Boolean} format
  13859. * 格式化规则如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
  13860. * 如果为布尔值false,无论什么时间,都返回多久以前的格式
  13861. * @returns {string} 转化后的内容
  13862. */
  13863. 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';
  13864. if (timestamp == null) timestamp = Number(new Date());
  13865. timestamp = parseInt(timestamp);
  13866. // 判断用户输入的时间戳是秒还是毫秒,一般前端js获取的时间戳是毫秒(13位),后端传过来的为秒(10位)
  13867. if (timestamp.toString().length == 10) timestamp *= 1000;
  13868. var timer = new Date().getTime() - timestamp;
  13869. timer = parseInt(timer / 1000);
  13870. // 如果小于5分钟,则返回"刚刚",其他以此类推
  13871. var tips = '';
  13872. switch (true) {
  13873. case timer < 300:
  13874. tips = '刚刚';
  13875. break;
  13876. case timer >= 300 && timer < 3600:
  13877. tips = "".concat(parseInt(timer / 60), "\u5206\u949F\u524D");
  13878. break;
  13879. case timer >= 3600 && timer < 86400:
  13880. tips = "".concat(parseInt(timer / 3600), "\u5C0F\u65F6\u524D");
  13881. break;
  13882. case timer >= 86400 && timer < 2592000:
  13883. tips = "".concat(parseInt(timer / 86400), "\u5929\u524D");
  13884. break;
  13885. default:
  13886. // 如果format为false,则无论什么时间戳,都显示xx之前
  13887. if (format === false) {
  13888. if (timer >= 2592000 && timer < 365 * 86400) {
  13889. tips = "".concat(parseInt(timer / (86400 * 30)), "\u4E2A\u6708\u524D");
  13890. } else {
  13891. tips = "".concat(parseInt(timer / (86400 * 365)), "\u5E74\u524D");
  13892. }
  13893. } else {
  13894. tips = timeFormat(timestamp, format);
  13895. }}
  13896. return tips;
  13897. }
  13898. /**
  13899. * @description 去除空格
  13900. * @param String str 需要去除空格的字符串
  13901. * @param String pos both(左右)|left|right|all 默认both
  13902. */
  13903. function trim(str) {var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
  13904. str = String(str);
  13905. if (pos == 'both') {
  13906. return str.replace(/^\s+|\s+$/g, '');
  13907. }
  13908. if (pos == 'left') {
  13909. return str.replace(/^\s*/, '');
  13910. }
  13911. if (pos == 'right') {
  13912. return str.replace(/(\s*$)/g, '');
  13913. }
  13914. if (pos == 'all') {
  13915. return str.replace(/\s+/g, '');
  13916. }
  13917. return str;
  13918. }
  13919. /**
  13920. * @description 对象转url参数
  13921. * @param {object} data,对象
  13922. * @param {Boolean} isPrefix,是否自动加上"?"
  13923. * @param {string} arrayFormat 规则 indices|brackets|repeat|comma
  13924. */
  13925. 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';
  13926. var prefix = isPrefix ? '?' : '';
  13927. var _result = [];
  13928. if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';var _loop = function _loop(
  13929. key) {
  13930. var value = data[key];
  13931. // 去掉为空的参数
  13932. if (['', undefined, null].indexOf(value) >= 0) {
  13933. return "continue";
  13934. }
  13935. // 如果值为数组,另行处理
  13936. if (value.constructor === Array) {
  13937. // e.g. {ids: [1, 2, 3]}
  13938. switch (arrayFormat) {
  13939. case 'indices':
  13940. // 结果: ids[0]=1&ids[1]=2&ids[2]=3
  13941. for (var i = 0; i < value.length; i++) {
  13942. _result.push("".concat(key, "[").concat(i, "]=").concat(value[i]));
  13943. }
  13944. break;
  13945. case 'brackets':
  13946. // 结果: ids[]=1&ids[]=2&ids[]=3
  13947. value.forEach(function (_value) {
  13948. _result.push("".concat(key, "[]=").concat(_value));
  13949. });
  13950. break;
  13951. case 'repeat':
  13952. // 结果: ids=1&ids=2&ids=3
  13953. value.forEach(function (_value) {
  13954. _result.push("".concat(key, "=").concat(_value));
  13955. });
  13956. break;
  13957. case 'comma':
  13958. // 结果: ids=1,2,3
  13959. var commaStr = '';
  13960. value.forEach(function (_value) {
  13961. commaStr += (commaStr ? ',' : '') + _value;
  13962. });
  13963. _result.push("".concat(key, "=").concat(commaStr));
  13964. break;
  13965. default:
  13966. value.forEach(function (_value) {
  13967. _result.push("".concat(key, "[]=").concat(_value));
  13968. });}
  13969. } else {
  13970. _result.push("".concat(key, "=").concat(value));
  13971. }};for (var key in data) {var _ret = _loop(key);if (_ret === "continue") continue;
  13972. }
  13973. return _result.length ? prefix + _result.join('&') : '';
  13974. }
  13975. /**
  13976. * 显示消息提示框
  13977. * @param {String} title 提示的内容,长度与 icon 取值有关。
  13978. * @param {Number} duration 提示的延迟时间,单位毫秒,默认:2000
  13979. */
  13980. function toast(title) {var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
  13981. uni.showToast({
  13982. title: String(title),
  13983. icon: 'none',
  13984. duration: duration });
  13985. }
  13986. /**
  13987. * @description 根据主题type值,获取对应的图标
  13988. * @param {String} type 主题名称,primary|info|error|warning|success
  13989. * @param {boolean} fill 是否使用fill填充实体的图标
  13990. */
  13991. function type2icon() {var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';var fill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13992. // 如果非预置值,默认为success
  13993. if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success';
  13994. var iconName = '';
  13995. // 目前(2019-12-12),info和primary使用同一个图标
  13996. switch (type) {
  13997. case 'primary':
  13998. iconName = 'info-circle';
  13999. break;
  14000. case 'info':
  14001. iconName = 'info-circle';
  14002. break;
  14003. case 'error':
  14004. iconName = 'close-circle';
  14005. break;
  14006. case 'warning':
  14007. iconName = 'error-circle';
  14008. break;
  14009. case 'success':
  14010. iconName = 'checkmark-circle';
  14011. break;
  14012. default:
  14013. iconName = 'checkmark-circle';}
  14014. // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的
  14015. if (fill) iconName += '-fill';
  14016. return iconName;
  14017. }
  14018. /**
  14019. * @description 数字格式化
  14020. * @param {number|string} number 要格式化的数字
  14021. * @param {number} decimals 保留几位小数
  14022. * @param {string} decimalPoint 小数点符号
  14023. * @param {string} thousandsSeparator 千分位符号
  14024. * @returns {string} 格式化后的数字
  14025. */
  14026. 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] : ',';
  14027. number = "".concat(number).replace(/[^0-9+-Ee.]/g, '');
  14028. var n = !isFinite(+number) ? 0 : +number;
  14029. var prec = !isFinite(+decimals) ? 0 : Math.abs(decimals);
  14030. var sep = typeof thousandsSeparator === 'undefined' ? ',' : thousandsSeparator;
  14031. var dec = typeof decimalPoint === 'undefined' ? '.' : decimalPoint;
  14032. var s = '';
  14033. s = (prec ? (0, _digit.round)(n, prec) + '' : "".concat(Math.round(n))).split('.');
  14034. var re = /(-?\d+)(\d{3})/;
  14035. while (re.test(s[0])) {
  14036. s[0] = s[0].replace(re, "$1".concat(sep, "$2"));
  14037. }
  14038. if ((s[1] || '').length < prec) {
  14039. s[1] = s[1] || '';
  14040. s[1] += new Array(prec - s[1].length + 1).join('0');
  14041. }
  14042. return s.join(dec);
  14043. }
  14044. /**
  14045. * @description 获取duration值
  14046. * 如果带有ms或者s直接返回,如果大于一定值,认为是ms单位,小于一定值,认为是s单位
  14047. * 比如以30位阈值,那么300大于30,可以理解为用户想要的是300ms,而不是想花300s去执行一个动画
  14048. * @param {String|number} value 比如: "1s"|"100ms"|1|100
  14049. * @param {boolean} unit 提示: 如果是false 默认返回number
  14050. * @return {string|number}
  14051. */
  14052. function getDuration(value) {var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  14053. var valueNum = parseInt(value);
  14054. if (unit) {
  14055. if (/s$/.test(value)) return value;
  14056. return value > 30 ? "".concat(value, "ms") : "".concat(value, "s");
  14057. }
  14058. if (/ms$/.test(value)) return valueNum;
  14059. if (/s$/.test(value)) return valueNum > 30 ? valueNum : valueNum * 1000;
  14060. return valueNum;
  14061. }
  14062. /**
  14063. * @description 日期的月或日补零操作
  14064. * @param {String} value 需要补零的值
  14065. */
  14066. function padZero(value) {
  14067. return "00".concat(value).slice(-2);
  14068. }
  14069. /**
  14070. * @description 在u-form的子组件内容发生变化,或者失去焦点时,尝试通知u-form执行校验方法
  14071. * @param {*} instance
  14072. * @param {*} event
  14073. */
  14074. function formValidate(instance, event) {
  14075. var formItem = uni.$u.$parent.call(instance, 'u-form-item');
  14076. var form = uni.$u.$parent.call(instance, 'u-form');
  14077. // 如果发生变化的input或者textarea等,其父组件中有u-form-item或者u-form等,就执行form的validate方法
  14078. // 同时将form-item的pros传递给form,让其进行精确对象验证
  14079. if (formItem && form) {
  14080. form.validateField(formItem.prop, function () {}, event);
  14081. }
  14082. }
  14083. /**
  14084. * @description 获取某个对象下的属性,用于通过类似'a.b.c'的形式去获取一个对象的的属性的形式
  14085. * @param {object} obj 对象
  14086. * @param {string} key 需要获取的属性字段
  14087. * @returns {*}
  14088. */
  14089. function getProperty(obj, key) {
  14090. if (!obj) {
  14091. return;
  14092. }
  14093. if (typeof key !== 'string' || key === '') {
  14094. return '';
  14095. }
  14096. if (key.indexOf('.') !== -1) {
  14097. var keys = key.split('.');
  14098. var firstObj = obj[keys[0]] || {};
  14099. for (var i = 1; i < keys.length; i++) {
  14100. if (firstObj) {
  14101. firstObj = firstObj[keys[i]];
  14102. }
  14103. }
  14104. return firstObj;
  14105. }
  14106. return obj[key];
  14107. }
  14108. /**
  14109. * @description 设置对象的属性值,如果'a.b.c'的形式进行设置
  14110. * @param {object} obj 对象
  14111. * @param {string} key 需要设置的属性
  14112. * @param {string} value 设置的值
  14113. */
  14114. function setProperty(obj, key, value) {
  14115. if (!obj) {
  14116. return;
  14117. }
  14118. // 递归赋值
  14119. var inFn = function inFn(_obj, keys, v) {
  14120. // 最后一个属性key
  14121. if (keys.length === 1) {
  14122. _obj[keys[0]] = v;
  14123. return;
  14124. }
  14125. // 0~length-1个key
  14126. while (keys.length > 1) {
  14127. var k = keys[0];
  14128. if (!_obj[k] || typeof _obj[k] !== 'object') {
  14129. _obj[k] = {};
  14130. }
  14131. var _key = keys.shift();
  14132. // 自调用判断是否存在属性,不存在则自动创建对象
  14133. inFn(_obj[k], keys, v);
  14134. }
  14135. };
  14136. if (typeof key !== 'string' || key === '') {
  14137. } else if (key.indexOf('.') !== -1) {// 支持多层级赋值操作
  14138. var keys = key.split('.');
  14139. inFn(obj, keys, value);
  14140. } else {
  14141. obj[key] = value;
  14142. }
  14143. }
  14144. /**
  14145. * @description 获取当前页面路径
  14146. */
  14147. function page() {var _pages$route, _pages;
  14148. var pages = getCurrentPages();
  14149. // 某些特殊情况下(比如页面进行redirectTo时的一些时机),pages可能为空数组
  14150. return "/".concat((_pages$route = (_pages = pages[pages.length - 1]) === null || _pages === void 0 ? void 0 : _pages.route) !== null && _pages$route !== void 0 ? _pages$route : '');
  14151. }
  14152. /**
  14153. * @description 获取当前路由栈实例数组
  14154. */
  14155. function pages() {
  14156. var pages = getCurrentPages();
  14157. return pages;
  14158. }
  14159. /**
  14160. * @description 修改uView内置属性值
  14161. * @param {object} props 修改内置props属性
  14162. * @param {object} config 修改内置config属性
  14163. * @param {object} color 修改内置color属性
  14164. * @param {object} zIndex 修改内置zIndex属性
  14165. */
  14166. function setConfig(_ref3)
  14167. {var _ref3$props = _ref3.props,props = _ref3$props === void 0 ? {} : _ref3$props,_ref3$config = _ref3.config,config = _ref3$config === void 0 ? {} : _ref3$config,_ref3$color = _ref3.color,color = _ref3$color === void 0 ? {} : _ref3$color,_ref3$zIndex = _ref3.zIndex,zIndex = _ref3$zIndex === void 0 ? {} : _ref3$zIndex;var
  14168. deepMerge =
  14169. uni.$u.deepMerge;
  14170. uni.$u.config = deepMerge(uni.$u.config, config);
  14171. uni.$u.props = deepMerge(uni.$u.props, props);
  14172. uni.$u.color = deepMerge(uni.$u.color, color);
  14173. uni.$u.zIndex = deepMerge(uni.$u.zIndex, zIndex);
  14174. }var _default =
  14175. {
  14176. range: range,
  14177. getPx: getPx,
  14178. sleep: sleep,
  14179. os: os,
  14180. sys: sys,
  14181. random: random,
  14182. guid: guid,
  14183. $parent: $parent,
  14184. addStyle: addStyle,
  14185. addUnit: addUnit,
  14186. deepClone: deepClone,
  14187. deepMerge: deepMerge,
  14188. error: error,
  14189. randomArray: randomArray,
  14190. timeFormat: timeFormat,
  14191. timeFrom: timeFrom,
  14192. trim: trim,
  14193. queryParams: queryParams,
  14194. toast: toast,
  14195. type2icon: type2icon,
  14196. priceFormat: priceFormat,
  14197. getDuration: getDuration,
  14198. padZero: padZero,
  14199. formValidate: formValidate,
  14200. getProperty: getProperty,
  14201. setProperty: setProperty,
  14202. page: page,
  14203. pages: pages,
  14204. setConfig: setConfig };exports.default = _default;
  14205. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  14206. /***/ }),
  14207. /* 47 */
  14208. /*!*********************************************************************************!*\
  14209. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/function/digit.js ***!
  14210. \*********************************************************************************/
  14211. /*! no static exports found */
  14212. /***/ (function(module, exports, __webpack_require__) {
  14213. "use strict";
  14214. 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; // 是否进行越界检查的全局开关
  14215. /**
  14216. * 把错误的数据转正
  14217. * @private
  14218. * @example strip(0.09999999999999998)=0.1
  14219. */
  14220. function strip(num) {var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 15;
  14221. return +parseFloat(Number(num).toPrecision(precision));
  14222. }
  14223. /**
  14224. * Return digits length of a number
  14225. * @private
  14226. * @param {*number} num Input number
  14227. */
  14228. function digitLength(num) {
  14229. // Get digit length of e
  14230. var eSplit = num.toString().split(/[eE]/);
  14231. var len = (eSplit[0].split('.')[1] || '').length - +(eSplit[1] || 0);
  14232. return len > 0 ? len : 0;
  14233. }
  14234. /**
  14235. * 把小数转成整数,如果是小数则放大成整数
  14236. * @private
  14237. * @param {*number} num 输入数
  14238. */
  14239. function float2Fixed(num) {
  14240. if (num.toString().indexOf('e') === -1) {
  14241. return Number(num.toString().replace('.', ''));
  14242. }
  14243. var dLen = digitLength(num);
  14244. return dLen > 0 ? strip(Number(num) * Math.pow(10, dLen)) : Number(num);
  14245. }
  14246. /**
  14247. * 检测数字是否越界,如果越界给出提示
  14248. * @private
  14249. * @param {*number} num 输入数
  14250. */
  14251. function checkBoundary(num) {
  14252. if (_boundaryCheckingState) {
  14253. if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) {
  14254. console.warn("".concat(num, " \u8D85\u51FA\u4E86\u7CBE\u5EA6\u9650\u5236\uFF0C\u7ED3\u679C\u53EF\u80FD\u4E0D\u6B63\u786E"));
  14255. }
  14256. }
  14257. }
  14258. /**
  14259. * 把递归操作扁平迭代化
  14260. * @param {number[]} arr 要操作的数字数组
  14261. * @param {function} operation 迭代操作
  14262. * @private
  14263. */
  14264. function iteratorOperation(arr, operation) {var _arr = _toArray(
  14265. arr),num1 = _arr[0],num2 = _arr[1],others = _arr.slice(2);
  14266. var res = operation(num1, num2);
  14267. others.forEach(function (num) {
  14268. res = operation(res, num);
  14269. });
  14270. return res;
  14271. }
  14272. /**
  14273. * 高精度乘法
  14274. * @export
  14275. */
  14276. function times() {for (var _len = arguments.length, nums = new Array(_len), _key = 0; _key < _len; _key++) {nums[_key] = arguments[_key];}
  14277. if (nums.length > 2) {
  14278. return iteratorOperation(nums, times);
  14279. }var
  14280. num1 = nums[0],num2 = nums[1];
  14281. var num1Changed = float2Fixed(num1);
  14282. var num2Changed = float2Fixed(num2);
  14283. var baseNum = digitLength(num1) + digitLength(num2);
  14284. var leftValue = num1Changed * num2Changed;
  14285. checkBoundary(leftValue);
  14286. return leftValue / Math.pow(10, baseNum);
  14287. }
  14288. /**
  14289. * 高精度加法
  14290. * @export
  14291. */
  14292. function plus() {for (var _len2 = arguments.length, nums = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {nums[_key2] = arguments[_key2];}
  14293. if (nums.length > 2) {
  14294. return iteratorOperation(nums, plus);
  14295. }var
  14296. num1 = nums[0],num2 = nums[1];
  14297. // 取最大的小数位
  14298. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  14299. // 把小数都转为整数然后再计算
  14300. return (times(num1, baseNum) + times(num2, baseNum)) / baseNum;
  14301. }
  14302. /**
  14303. * 高精度减法
  14304. * @export
  14305. */
  14306. function minus() {for (var _len3 = arguments.length, nums = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {nums[_key3] = arguments[_key3];}
  14307. if (nums.length > 2) {
  14308. return iteratorOperation(nums, minus);
  14309. }var
  14310. num1 = nums[0],num2 = nums[1];
  14311. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  14312. return (times(num1, baseNum) - times(num2, baseNum)) / baseNum;
  14313. }
  14314. /**
  14315. * 高精度除法
  14316. * @export
  14317. */
  14318. function divide() {for (var _len4 = arguments.length, nums = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {nums[_key4] = arguments[_key4];}
  14319. if (nums.length > 2) {
  14320. return iteratorOperation(nums, divide);
  14321. }var
  14322. num1 = nums[0],num2 = nums[1];
  14323. var num1Changed = float2Fixed(num1);
  14324. var num2Changed = float2Fixed(num2);
  14325. checkBoundary(num1Changed);
  14326. checkBoundary(num2Changed);
  14327. // 重要,这里必须用strip进行修正
  14328. return times(num1Changed / num2Changed, strip(Math.pow(10, digitLength(num2) - digitLength(num1))));
  14329. }
  14330. /**
  14331. * 四舍五入
  14332. * @export
  14333. */
  14334. function round(num, ratio) {
  14335. var base = Math.pow(10, ratio);
  14336. var result = divide(Math.round(Math.abs(times(num, base))), base);
  14337. if (num < 0 && result !== 0) {
  14338. result = times(result, -1);
  14339. }
  14340. // 位数不足则补0
  14341. return result;
  14342. }
  14343. /**
  14344. * 是否进行边界检查,默认开启
  14345. * @param flag 标记开关,true 为开启,false 为关闭,默认为 true
  14346. * @export
  14347. */
  14348. function enableBoundaryChecking() {var flag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  14349. _boundaryCheckingState = flag;
  14350. }var _default =
  14351. {
  14352. times: times,
  14353. plus: plus,
  14354. minus: minus,
  14355. divide: divide,
  14356. round: round,
  14357. enableBoundaryChecking: enableBoundaryChecking };exports.default = _default;
  14358. /***/ }),
  14359. /* 48 */
  14360. /*!********************************************************************************!*\
  14361. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/config.js ***!
  14362. \********************************************************************************/
  14363. /*! no static exports found */
  14364. /***/ (function(module, exports, __webpack_require__) {
  14365. "use strict";
  14366. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; // 此版本发布于2022-04-19
  14367. var version = '2.0.31';
  14368. // 开发环境才提示,生产环境不会提示
  14369. if (true) {
  14370. console.log("\n %c uView V".concat(version, " %c https://www.uviewui.com/ \n\n"), 'color: #ffffff; background: #3c9cff; padding:5px 0;', 'color: #3c9cff;background: #ffffff; padding:5px 0;');
  14371. }var _default =
  14372. {
  14373. v: version,
  14374. version: version,
  14375. // 主题名称
  14376. type: [
  14377. 'primary',
  14378. 'success',
  14379. 'info',
  14380. 'error',
  14381. 'warning'],
  14382. // 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持
  14383. color: {
  14384. 'u-primary': '#2979ff',
  14385. 'u-warning': '#ff9900',
  14386. 'u-success': '#19be6b',
  14387. 'u-error': '#fa3534',
  14388. 'u-info': '#909399',
  14389. 'u-main-color': '#303133',
  14390. 'u-content-color': '#606266',
  14391. 'u-tips-color': '#909399',
  14392. 'u-light-color': '#c0c4cc' },
  14393. // 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx
  14394. unit: 'px' };exports.default = _default;
  14395. /***/ }),
  14396. /* 49 */
  14397. /*!*******************************************************************************!*\
  14398. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props.js ***!
  14399. \*******************************************************************************/
  14400. /*! no static exports found */
  14401. /***/ (function(module, exports, __webpack_require__) {
  14402. "use strict";
  14403. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  14404. var _config = _interopRequireDefault(__webpack_require__(/*! ./config */ 48));
  14405. var _actionSheet = _interopRequireDefault(__webpack_require__(/*! ./props/actionSheet.js */ 50));
  14406. var _album = _interopRequireDefault(__webpack_require__(/*! ./props/album.js */ 51));
  14407. var _alert = _interopRequireDefault(__webpack_require__(/*! ./props/alert.js */ 52));
  14408. var _avatar = _interopRequireDefault(__webpack_require__(/*! ./props/avatar */ 53));
  14409. var _avatarGroup = _interopRequireDefault(__webpack_require__(/*! ./props/avatarGroup */ 54));
  14410. var _backtop = _interopRequireDefault(__webpack_require__(/*! ./props/backtop */ 55));
  14411. var _badge = _interopRequireDefault(__webpack_require__(/*! ./props/badge */ 56));
  14412. var _button = _interopRequireDefault(__webpack_require__(/*! ./props/button */ 57));
  14413. var _calendar = _interopRequireDefault(__webpack_require__(/*! ./props/calendar */ 58));
  14414. var _carKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/carKeyboard */ 59));
  14415. var _cell = _interopRequireDefault(__webpack_require__(/*! ./props/cell */ 60));
  14416. var _cellGroup = _interopRequireDefault(__webpack_require__(/*! ./props/cellGroup */ 61));
  14417. var _checkbox = _interopRequireDefault(__webpack_require__(/*! ./props/checkbox */ 62));
  14418. var _checkboxGroup = _interopRequireDefault(__webpack_require__(/*! ./props/checkboxGroup */ 63));
  14419. var _circleProgress = _interopRequireDefault(__webpack_require__(/*! ./props/circleProgress */ 64));
  14420. var _code = _interopRequireDefault(__webpack_require__(/*! ./props/code */ 65));
  14421. var _codeInput = _interopRequireDefault(__webpack_require__(/*! ./props/codeInput */ 66));
  14422. var _col = _interopRequireDefault(__webpack_require__(/*! ./props/col */ 67));
  14423. var _collapse = _interopRequireDefault(__webpack_require__(/*! ./props/collapse */ 68));
  14424. var _collapseItem = _interopRequireDefault(__webpack_require__(/*! ./props/collapseItem */ 69));
  14425. var _columnNotice = _interopRequireDefault(__webpack_require__(/*! ./props/columnNotice */ 70));
  14426. var _countDown = _interopRequireDefault(__webpack_require__(/*! ./props/countDown */ 71));
  14427. var _countTo = _interopRequireDefault(__webpack_require__(/*! ./props/countTo */ 72));
  14428. var _datetimePicker = _interopRequireDefault(__webpack_require__(/*! ./props/datetimePicker */ 73));
  14429. var _divider = _interopRequireDefault(__webpack_require__(/*! ./props/divider */ 74));
  14430. var _empty = _interopRequireDefault(__webpack_require__(/*! ./props/empty */ 75));
  14431. var _form = _interopRequireDefault(__webpack_require__(/*! ./props/form */ 76));
  14432. var _formItem = _interopRequireDefault(__webpack_require__(/*! ./props/formItem */ 77));
  14433. var _gap = _interopRequireDefault(__webpack_require__(/*! ./props/gap */ 78));
  14434. var _grid = _interopRequireDefault(__webpack_require__(/*! ./props/grid */ 79));
  14435. var _gridItem = _interopRequireDefault(__webpack_require__(/*! ./props/gridItem */ 80));
  14436. var _icon = _interopRequireDefault(__webpack_require__(/*! ./props/icon */ 81));
  14437. var _image = _interopRequireDefault(__webpack_require__(/*! ./props/image */ 82));
  14438. var _indexAnchor = _interopRequireDefault(__webpack_require__(/*! ./props/indexAnchor */ 83));
  14439. var _indexList = _interopRequireDefault(__webpack_require__(/*! ./props/indexList */ 84));
  14440. var _input = _interopRequireDefault(__webpack_require__(/*! ./props/input */ 85));
  14441. var _keyboard = _interopRequireDefault(__webpack_require__(/*! ./props/keyboard */ 86));
  14442. var _line = _interopRequireDefault(__webpack_require__(/*! ./props/line */ 87));
  14443. var _lineProgress = _interopRequireDefault(__webpack_require__(/*! ./props/lineProgress */ 88));
  14444. var _link = _interopRequireDefault(__webpack_require__(/*! ./props/link */ 89));
  14445. var _list = _interopRequireDefault(__webpack_require__(/*! ./props/list */ 90));
  14446. var _listItem = _interopRequireDefault(__webpack_require__(/*! ./props/listItem */ 91));
  14447. var _loadingIcon = _interopRequireDefault(__webpack_require__(/*! ./props/loadingIcon */ 92));
  14448. var _loadingPage = _interopRequireDefault(__webpack_require__(/*! ./props/loadingPage */ 93));
  14449. var _loadmore = _interopRequireDefault(__webpack_require__(/*! ./props/loadmore */ 94));
  14450. var _modal = _interopRequireDefault(__webpack_require__(/*! ./props/modal */ 95));
  14451. var _navbar = _interopRequireDefault(__webpack_require__(/*! ./props/navbar */ 96));
  14452. var _noNetwork = _interopRequireDefault(__webpack_require__(/*! ./props/noNetwork */ 98));
  14453. var _noticeBar = _interopRequireDefault(__webpack_require__(/*! ./props/noticeBar */ 99));
  14454. var _notify = _interopRequireDefault(__webpack_require__(/*! ./props/notify */ 100));
  14455. var _numberBox = _interopRequireDefault(__webpack_require__(/*! ./props/numberBox */ 101));
  14456. var _numberKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/numberKeyboard */ 102));
  14457. var _overlay = _interopRequireDefault(__webpack_require__(/*! ./props/overlay */ 103));
  14458. var _parse = _interopRequireDefault(__webpack_require__(/*! ./props/parse */ 104));
  14459. var _picker = _interopRequireDefault(__webpack_require__(/*! ./props/picker */ 105));
  14460. var _popup = _interopRequireDefault(__webpack_require__(/*! ./props/popup */ 106));
  14461. var _radio = _interopRequireDefault(__webpack_require__(/*! ./props/radio */ 107));
  14462. var _radioGroup = _interopRequireDefault(__webpack_require__(/*! ./props/radioGroup */ 108));
  14463. var _rate = _interopRequireDefault(__webpack_require__(/*! ./props/rate */ 109));
  14464. var _readMore = _interopRequireDefault(__webpack_require__(/*! ./props/readMore */ 110));
  14465. var _row = _interopRequireDefault(__webpack_require__(/*! ./props/row */ 111));
  14466. var _rowNotice = _interopRequireDefault(__webpack_require__(/*! ./props/rowNotice */ 112));
  14467. var _scrollList = _interopRequireDefault(__webpack_require__(/*! ./props/scrollList */ 113));
  14468. var _search = _interopRequireDefault(__webpack_require__(/*! ./props/search */ 114));
  14469. var _section = _interopRequireDefault(__webpack_require__(/*! ./props/section */ 115));
  14470. var _skeleton = _interopRequireDefault(__webpack_require__(/*! ./props/skeleton */ 116));
  14471. var _slider = _interopRequireDefault(__webpack_require__(/*! ./props/slider */ 117));
  14472. var _statusBar = _interopRequireDefault(__webpack_require__(/*! ./props/statusBar */ 118));
  14473. var _steps = _interopRequireDefault(__webpack_require__(/*! ./props/steps */ 119));
  14474. var _stepsItem = _interopRequireDefault(__webpack_require__(/*! ./props/stepsItem */ 120));
  14475. var _sticky = _interopRequireDefault(__webpack_require__(/*! ./props/sticky */ 121));
  14476. var _subsection = _interopRequireDefault(__webpack_require__(/*! ./props/subsection */ 122));
  14477. var _swipeAction = _interopRequireDefault(__webpack_require__(/*! ./props/swipeAction */ 123));
  14478. var _swipeActionItem = _interopRequireDefault(__webpack_require__(/*! ./props/swipeActionItem */ 124));
  14479. var _swiper = _interopRequireDefault(__webpack_require__(/*! ./props/swiper */ 125));
  14480. var _swipterIndicator = _interopRequireDefault(__webpack_require__(/*! ./props/swipterIndicator */ 126));
  14481. var _switch2 = _interopRequireDefault(__webpack_require__(/*! ./props/switch */ 127));
  14482. var _tabbar = _interopRequireDefault(__webpack_require__(/*! ./props/tabbar */ 128));
  14483. var _tabbarItem = _interopRequireDefault(__webpack_require__(/*! ./props/tabbarItem */ 129));
  14484. var _tabs = _interopRequireDefault(__webpack_require__(/*! ./props/tabs */ 130));
  14485. var _tag = _interopRequireDefault(__webpack_require__(/*! ./props/tag */ 131));
  14486. var _text = _interopRequireDefault(__webpack_require__(/*! ./props/text */ 132));
  14487. var _textarea = _interopRequireDefault(__webpack_require__(/*! ./props/textarea */ 133));
  14488. var _toast = _interopRequireDefault(__webpack_require__(/*! ./props/toast */ 134));
  14489. var _toolbar = _interopRequireDefault(__webpack_require__(/*! ./props/toolbar */ 135));
  14490. var _tooltip = _interopRequireDefault(__webpack_require__(/*! ./props/tooltip */ 136));
  14491. var _transition = _interopRequireDefault(__webpack_require__(/*! ./props/transition */ 137));
  14492. var _upload = _interopRequireDefault(__webpack_require__(/*! ./props/upload */ 138));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
  14493. color =
  14494. _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({},
  14495. _actionSheet.default),
  14496. _album.default),
  14497. _alert.default),
  14498. _avatar.default),
  14499. _avatarGroup.default),
  14500. _backtop.default),
  14501. _badge.default),
  14502. _button.default),
  14503. _calendar.default),
  14504. _carKeyboard.default),
  14505. _cell.default),
  14506. _cellGroup.default),
  14507. _checkbox.default),
  14508. _checkboxGroup.default),
  14509. _circleProgress.default),
  14510. _code.default),
  14511. _codeInput.default),
  14512. _col.default),
  14513. _collapse.default),
  14514. _collapseItem.default),
  14515. _columnNotice.default),
  14516. _countDown.default),
  14517. _countTo.default),
  14518. _datetimePicker.default),
  14519. _divider.default),
  14520. _empty.default),
  14521. _form.default),
  14522. _formItem.default),
  14523. _gap.default),
  14524. _grid.default),
  14525. _gridItem.default),
  14526. _icon.default),
  14527. _image.default),
  14528. _indexAnchor.default),
  14529. _indexList.default),
  14530. _input.default),
  14531. _keyboard.default),
  14532. _line.default),
  14533. _lineProgress.default),
  14534. _link.default),
  14535. _list.default),
  14536. _listItem.default),
  14537. _loadingIcon.default),
  14538. _loadingPage.default),
  14539. _loadmore.default),
  14540. _modal.default),
  14541. _navbar.default),
  14542. _noNetwork.default),
  14543. _noticeBar.default),
  14544. _notify.default),
  14545. _numberBox.default),
  14546. _numberKeyboard.default),
  14547. _overlay.default),
  14548. _parse.default),
  14549. _picker.default),
  14550. _popup.default),
  14551. _radio.default),
  14552. _radioGroup.default),
  14553. _rate.default),
  14554. _readMore.default),
  14555. _row.default),
  14556. _rowNotice.default),
  14557. _scrollList.default),
  14558. _search.default),
  14559. _section.default),
  14560. _skeleton.default),
  14561. _slider.default),
  14562. _statusBar.default),
  14563. _steps.default),
  14564. _stepsItem.default),
  14565. _sticky.default),
  14566. _subsection.default),
  14567. _swipeAction.default),
  14568. _swipeActionItem.default),
  14569. _swiper.default),
  14570. _swipterIndicator.default),
  14571. _switch2.default),
  14572. _tabbar.default),
  14573. _tabbarItem.default),
  14574. _tabs.default),
  14575. _tag.default),
  14576. _text.default),
  14577. _textarea.default),
  14578. _toast.default),
  14579. _toolbar.default),
  14580. _tooltip.default),
  14581. _transition.default),
  14582. _upload.default);exports.default = _default;
  14583. /***/ }),
  14584. /* 50 */
  14585. /*!*******************************************************************************************!*\
  14586. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/actionSheet.js ***!
  14587. \*******************************************************************************************/
  14588. /*! no static exports found */
  14589. /***/ (function(module, exports, __webpack_require__) {
  14590. "use strict";
  14591. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14592. * @Author : LQ
  14593. * @Description :
  14594. * @version : 1.0
  14595. * @Date : 2021-08-20 16:44:21
  14596. * @LastAuthor : LQ
  14597. * @lastTime : 2021-08-20 16:44:35
  14598. * @FilePath : /u-view2.0/uview-ui/libs/config/props/actionSheet.js
  14599. */var _default =
  14600. {
  14601. // action-sheet组件
  14602. actionSheet: {
  14603. show: false,
  14604. title: '',
  14605. description: '',
  14606. actions: function actions() {return [];},
  14607. index: '',
  14608. cancelText: '',
  14609. closeOnClickAction: true,
  14610. safeAreaInsetBottom: true,
  14611. openType: '',
  14612. closeOnClickOverlay: true,
  14613. round: 0 } };exports.default = _default;
  14614. /***/ }),
  14615. /* 51 */
  14616. /*!*************************************************************************************!*\
  14617. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/album.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. * @Author : LQ
  14624. * @Description :
  14625. * @version : 1.0
  14626. * @Date : 2021-08-20 16:44:21
  14627. * @LastAuthor : LQ
  14628. * @lastTime : 2021-08-20 16:47:24
  14629. * @FilePath : /u-view2.0/uview-ui/libs/config/props/album.js
  14630. */var _default =
  14631. {
  14632. // album 组件
  14633. album: {
  14634. urls: function urls() {return [];},
  14635. keyName: '',
  14636. singleSize: 180,
  14637. multipleSize: 70,
  14638. space: 6,
  14639. singleMode: 'scaleToFill',
  14640. multipleMode: 'aspectFill',
  14641. maxCount: 9,
  14642. previewFullImage: true,
  14643. rowCount: 3,
  14644. showMore: true } };exports.default = _default;
  14645. /***/ }),
  14646. /* 52 */
  14647. /*!*************************************************************************************!*\
  14648. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/alert.js ***!
  14649. \*************************************************************************************/
  14650. /*! no static exports found */
  14651. /***/ (function(module, exports, __webpack_require__) {
  14652. "use strict";
  14653. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14654. * @Author : LQ
  14655. * @Description :
  14656. * @version : 1.0
  14657. * @Date : 2021-08-20 16:44:21
  14658. * @LastAuthor : LQ
  14659. * @lastTime : 2021-08-20 16:48:53
  14660. * @FilePath : /u-view2.0/uview-ui/libs/config/props/alert.js
  14661. */var _default =
  14662. {
  14663. // alert警告组件
  14664. alert: {
  14665. title: '',
  14666. type: 'warning',
  14667. description: '',
  14668. closable: false,
  14669. showIcon: false,
  14670. effect: 'light',
  14671. center: false,
  14672. fontSize: 14 } };exports.default = _default;
  14673. /***/ }),
  14674. /* 53 */
  14675. /*!**************************************************************************************!*\
  14676. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/avatar.js ***!
  14677. \**************************************************************************************/
  14678. /*! no static exports found */
  14679. /***/ (function(module, exports, __webpack_require__) {
  14680. "use strict";
  14681. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14682. * @Author : LQ
  14683. * @Description :
  14684. * @version : 1.0
  14685. * @Date : 2021-08-20 16:44:21
  14686. * @LastAuthor : LQ
  14687. * @lastTime : 2021-08-20 16:49:22
  14688. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatar.js
  14689. */var _default =
  14690. {
  14691. // avatar 组件
  14692. avatar: {
  14693. src: '',
  14694. shape: 'circle',
  14695. size: 40,
  14696. mode: 'scaleToFill',
  14697. text: '',
  14698. bgColor: '#c0c4cc',
  14699. color: '#ffffff',
  14700. fontSize: 18,
  14701. icon: '',
  14702. mpAvatar: false,
  14703. randomBgColor: false,
  14704. defaultUrl: '',
  14705. colorIndex: '',
  14706. name: '' } };exports.default = _default;
  14707. /***/ }),
  14708. /* 54 */
  14709. /*!*******************************************************************************************!*\
  14710. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/avatarGroup.js ***!
  14711. \*******************************************************************************************/
  14712. /*! no static exports found */
  14713. /***/ (function(module, exports, __webpack_require__) {
  14714. "use strict";
  14715. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14716. * @Author : LQ
  14717. * @Description :
  14718. * @version : 1.0
  14719. * @Date : 2021-08-20 16:44:21
  14720. * @LastAuthor : LQ
  14721. * @lastTime : 2021-08-20 16:49:55
  14722. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatarGroup.js
  14723. */var _default =
  14724. {
  14725. // avatarGroup 组件
  14726. avatarGroup: {
  14727. urls: function urls() {return [];},
  14728. maxCount: 5,
  14729. shape: 'circle',
  14730. mode: 'scaleToFill',
  14731. showMore: true,
  14732. size: 40,
  14733. keyName: '',
  14734. gap: 0.5,
  14735. extraValue: 0 } };exports.default = _default;
  14736. /***/ }),
  14737. /* 55 */
  14738. /*!***************************************************************************************!*\
  14739. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/backtop.js ***!
  14740. \***************************************************************************************/
  14741. /*! no static exports found */
  14742. /***/ (function(module, exports, __webpack_require__) {
  14743. "use strict";
  14744. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14745. * @Author : LQ
  14746. * @Description :
  14747. * @version : 1.0
  14748. * @Date : 2021-08-20 16:44:21
  14749. * @LastAuthor : LQ
  14750. * @lastTime : 2021-08-20 16:50:18
  14751. * @FilePath : /u-view2.0/uview-ui/libs/config/props/backtop.js
  14752. */var _default =
  14753. {
  14754. // backtop组件
  14755. backtop: {
  14756. mode: 'circle',
  14757. icon: 'arrow-upward',
  14758. text: '',
  14759. duration: 100,
  14760. scrollTop: 0,
  14761. top: 400,
  14762. bottom: 100,
  14763. right: 20,
  14764. zIndex: 9,
  14765. iconStyle: function iconStyle() {return {
  14766. color: '#909399',
  14767. fontSize: '19px' };} } };exports.default = _default;
  14768. /***/ }),
  14769. /* 56 */
  14770. /*!*************************************************************************************!*\
  14771. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/badge.js ***!
  14772. \*************************************************************************************/
  14773. /*! no static exports found */
  14774. /***/ (function(module, exports, __webpack_require__) {
  14775. "use strict";
  14776. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14777. * @Author : LQ
  14778. * @Description :
  14779. * @version : 1.0
  14780. * @Date : 2021-08-20 16:44:21
  14781. * @LastAuthor : LQ
  14782. * @lastTime : 2021-08-23 19:51:50
  14783. * @FilePath : /u-view2.0/uview-ui/libs/config/props/badge.js
  14784. */var _default =
  14785. {
  14786. // 徽标数组件
  14787. badge: {
  14788. isDot: false,
  14789. value: '',
  14790. show: true,
  14791. max: 999,
  14792. type: 'error',
  14793. showZero: false,
  14794. bgColor: null,
  14795. color: null,
  14796. shape: 'circle',
  14797. numberType: 'overflow',
  14798. offset: function offset() {return [];},
  14799. inverted: false,
  14800. absolute: false } };exports.default = _default;
  14801. /***/ }),
  14802. /* 57 */
  14803. /*!**************************************************************************************!*\
  14804. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/button.js ***!
  14805. \**************************************************************************************/
  14806. /*! no static exports found */
  14807. /***/ (function(module, exports, __webpack_require__) {
  14808. "use strict";
  14809. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14810. * @Author : LQ
  14811. * @Description :
  14812. * @version : 1.0
  14813. * @Date : 2021-08-20 16:44:21
  14814. * @LastAuthor : LQ
  14815. * @lastTime : 2021-08-20 16:51:27
  14816. * @FilePath : /u-view2.0/uview-ui/libs/config/props/button.js
  14817. */var _default =
  14818. {
  14819. // button组件
  14820. button: {
  14821. hairline: false,
  14822. type: 'info',
  14823. size: 'normal',
  14824. shape: 'square',
  14825. plain: false,
  14826. disabled: false,
  14827. loading: false,
  14828. loadingText: '',
  14829. loadingMode: 'spinner',
  14830. loadingSize: 15,
  14831. openType: '',
  14832. formType: '',
  14833. appParameter: '',
  14834. hoverStopPropagation: true,
  14835. lang: 'en',
  14836. sessionFrom: '',
  14837. sendMessageTitle: '',
  14838. sendMessagePath: '',
  14839. sendMessageImg: '',
  14840. showMessageCard: false,
  14841. dataName: '',
  14842. throttleTime: 0,
  14843. hoverStartTime: 0,
  14844. hoverStayTime: 200,
  14845. text: '',
  14846. icon: '',
  14847. iconColor: '',
  14848. color: '' } };exports.default = _default;
  14849. /***/ }),
  14850. /* 58 */
  14851. /*!****************************************************************************************!*\
  14852. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/calendar.js ***!
  14853. \****************************************************************************************/
  14854. /*! no static exports found */
  14855. /***/ (function(module, exports, __webpack_require__) {
  14856. "use strict";
  14857. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14858. * @Author : LQ
  14859. * @Description :
  14860. * @version : 1.0
  14861. * @Date : 2021-08-20 16:44:21
  14862. * @LastAuthor : LQ
  14863. * @lastTime : 2021-08-20 16:52:43
  14864. * @FilePath : /u-view2.0/uview-ui/libs/config/props/calendar.js
  14865. */var _default =
  14866. {
  14867. // calendar 组件
  14868. calendar: {
  14869. title: '日期选择',
  14870. showTitle: true,
  14871. showSubtitle: true,
  14872. mode: 'single',
  14873. startText: '开始',
  14874. endText: '结束',
  14875. customList: function customList() {return [];},
  14876. color: '#3c9cff',
  14877. minDate: 0,
  14878. maxDate: 0,
  14879. defaultDate: null,
  14880. maxCount: Number.MAX_SAFE_INTEGER, // Infinity
  14881. rowHeight: 56,
  14882. formatter: null,
  14883. showLunar: false,
  14884. showMark: true,
  14885. confirmText: '确定',
  14886. confirmDisabledText: '确定',
  14887. show: false,
  14888. closeOnClickOverlay: false,
  14889. readonly: false,
  14890. showConfirm: true,
  14891. maxRange: Number.MAX_SAFE_INTEGER, // Infinity
  14892. rangePrompt: '',
  14893. showRangePrompt: true,
  14894. allowSameDay: false,
  14895. round: 0,
  14896. monthNum: 3 } };exports.default = _default;
  14897. /***/ }),
  14898. /* 59 */
  14899. /*!*******************************************************************************************!*\
  14900. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/carKeyboard.js ***!
  14901. \*******************************************************************************************/
  14902. /*! no static exports found */
  14903. /***/ (function(module, exports, __webpack_require__) {
  14904. "use strict";
  14905. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14906. * @Author : LQ
  14907. * @Description :
  14908. * @version : 1.0
  14909. * @Date : 2021-08-20 16:44:21
  14910. * @LastAuthor : LQ
  14911. * @lastTime : 2021-08-20 16:53:20
  14912. * @FilePath : /u-view2.0/uview-ui/libs/config/props/carKeyboard.js
  14913. */var _default =
  14914. {
  14915. // 车牌号键盘
  14916. carKeyboard: {
  14917. random: false } };exports.default = _default;
  14918. /***/ }),
  14919. /* 60 */
  14920. /*!************************************************************************************!*\
  14921. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/cell.js ***!
  14922. \************************************************************************************/
  14923. /*! no static exports found */
  14924. /***/ (function(module, exports, __webpack_require__) {
  14925. "use strict";
  14926. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14927. * @Author : LQ
  14928. * @Description :
  14929. * @version : 1.0
  14930. * @Date : 2021-08-20 16:44:21
  14931. * @LastAuthor : LQ
  14932. * @lastTime : 2021-08-23 20:53:09
  14933. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cell.js
  14934. */var _default =
  14935. {
  14936. // cell组件的props
  14937. cell: {
  14938. customClass: '',
  14939. title: '',
  14940. label: '',
  14941. value: '',
  14942. icon: '',
  14943. disabled: false,
  14944. border: true,
  14945. center: false,
  14946. url: '',
  14947. linkType: 'navigateTo',
  14948. clickable: false,
  14949. isLink: false,
  14950. required: false,
  14951. arrowDirection: '',
  14952. iconStyle: {},
  14953. rightIconStyle: {},
  14954. rightIcon: 'arrow-right',
  14955. titleStyle: {},
  14956. size: '',
  14957. stop: true,
  14958. name: '' } };exports.default = _default;
  14959. /***/ }),
  14960. /* 61 */
  14961. /*!*****************************************************************************************!*\
  14962. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/cellGroup.js ***!
  14963. \*****************************************************************************************/
  14964. /*! no static exports found */
  14965. /***/ (function(module, exports, __webpack_require__) {
  14966. "use strict";
  14967. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14968. * @Author : LQ
  14969. * @Description :
  14970. * @version : 1.0
  14971. * @Date : 2021-08-20 16:44:21
  14972. * @LastAuthor : LQ
  14973. * @lastTime : 2021-08-20 16:54:16
  14974. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cellGroup.js
  14975. */var _default =
  14976. {
  14977. // cell-group组件的props
  14978. cellGroup: {
  14979. title: '',
  14980. border: true,
  14981. customStyle: {} } };exports.default = _default;
  14982. /***/ }),
  14983. /* 62 */
  14984. /*!****************************************************************************************!*\
  14985. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/checkbox.js ***!
  14986. \****************************************************************************************/
  14987. /*! no static exports found */
  14988. /***/ (function(module, exports, __webpack_require__) {
  14989. "use strict";
  14990. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14991. * @Author : LQ
  14992. * @Description :
  14993. * @version : 1.0
  14994. * @Date : 2021-08-20 16:44:21
  14995. * @LastAuthor : LQ
  14996. * @lastTime : 2021-08-23 21:06:59
  14997. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkbox.js
  14998. */var _default =
  14999. {
  15000. // checkbox组件
  15001. checkbox: {
  15002. name: '',
  15003. shape: '',
  15004. size: '',
  15005. checkbox: false,
  15006. disabled: '',
  15007. activeColor: '',
  15008. inactiveColor: '',
  15009. iconSize: '',
  15010. iconColor: '',
  15011. label: '',
  15012. labelSize: '',
  15013. labelColor: '',
  15014. labelDisabled: '' } };exports.default = _default;
  15015. /***/ }),
  15016. /* 63 */
  15017. /*!*********************************************************************************************!*\
  15018. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/checkboxGroup.js ***!
  15019. \*********************************************************************************************/
  15020. /*! no static exports found */
  15021. /***/ (function(module, exports, __webpack_require__) {
  15022. "use strict";
  15023. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15024. * @Author : LQ
  15025. * @Description :
  15026. * @version : 1.0
  15027. * @Date : 2021-08-20 16:44:21
  15028. * @LastAuthor : LQ
  15029. * @lastTime : 2021-08-20 16:54:47
  15030. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkboxGroup.js
  15031. */var _default =
  15032. {
  15033. // checkbox-group组件
  15034. checkboxGroup: {
  15035. name: '',
  15036. value: function value() {return [];},
  15037. shape: 'square',
  15038. disabled: false,
  15039. activeColor: '#2979ff',
  15040. inactiveColor: '#c8c9cc',
  15041. size: 18,
  15042. placement: 'row',
  15043. labelSize: 14,
  15044. labelColor: '#303133',
  15045. labelDisabled: false,
  15046. iconColor: '#ffffff',
  15047. iconSize: 12,
  15048. iconPlacement: 'left',
  15049. borderBottom: false } };exports.default = _default;
  15050. /***/ }),
  15051. /* 64 */
  15052. /*!**********************************************************************************************!*\
  15053. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/circleProgress.js ***!
  15054. \**********************************************************************************************/
  15055. /*! no static exports found */
  15056. /***/ (function(module, exports, __webpack_require__) {
  15057. "use strict";
  15058. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15059. * @Author : LQ
  15060. * @Description :
  15061. * @version : 1.0
  15062. * @Date : 2021-08-20 16:44:21
  15063. * @LastAuthor : LQ
  15064. * @lastTime : 2021-08-20 16:55:02
  15065. * @FilePath : /u-view2.0/uview-ui/libs/config/props/circleProgress.js
  15066. */var _default =
  15067. {
  15068. // circleProgress 组件
  15069. circleProgress: {
  15070. percentage: 30 } };exports.default = _default;
  15071. /***/ }),
  15072. /* 65 */
  15073. /*!************************************************************************************!*\
  15074. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/code.js ***!
  15075. \************************************************************************************/
  15076. /*! no static exports found */
  15077. /***/ (function(module, exports, __webpack_require__) {
  15078. "use strict";
  15079. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15080. * @Author : LQ
  15081. * @Description :
  15082. * @version : 1.0
  15083. * @Date : 2021-08-20 16:44:21
  15084. * @LastAuthor : LQ
  15085. * @lastTime : 2021-08-20 16:55:27
  15086. * @FilePath : /u-view2.0/uview-ui/libs/config/props/code.js
  15087. */var _default =
  15088. {
  15089. // code 组件
  15090. code: {
  15091. seconds: 60,
  15092. startText: '获取验证码',
  15093. changeText: 'X秒重新获取',
  15094. endText: '重新获取',
  15095. keepRunning: false,
  15096. uniqueKey: '' } };exports.default = _default;
  15097. /***/ }),
  15098. /* 66 */
  15099. /*!*****************************************************************************************!*\
  15100. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/codeInput.js ***!
  15101. \*****************************************************************************************/
  15102. /*! no static exports found */
  15103. /***/ (function(module, exports, __webpack_require__) {
  15104. "use strict";
  15105. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15106. * @Author : LQ
  15107. * @Description :
  15108. * @version : 1.0
  15109. * @Date : 2021-08-20 16:44:21
  15110. * @LastAuthor : LQ
  15111. * @lastTime : 2021-08-20 16:55:58
  15112. * @FilePath : /u-view2.0/uview-ui/libs/config/props/codeInput.js
  15113. */var _default =
  15114. {
  15115. // codeInput 组件
  15116. codeInput: {
  15117. maxlength: 6,
  15118. dot: false,
  15119. mode: 'box',
  15120. hairline: false,
  15121. space: 10,
  15122. value: '',
  15123. focus: false,
  15124. bold: false,
  15125. color: '#606266',
  15126. fontSize: 18,
  15127. size: 35,
  15128. disabledKeyboard: false,
  15129. borderColor: '#c9cacc',
  15130. disabledDot: true } };exports.default = _default;
  15131. /***/ }),
  15132. /* 67 */
  15133. /*!***********************************************************************************!*\
  15134. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/col.js ***!
  15135. \***********************************************************************************/
  15136. /*! no static exports found */
  15137. /***/ (function(module, exports, __webpack_require__) {
  15138. "use strict";
  15139. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15140. * @Author : LQ
  15141. * @Description :
  15142. * @version : 1.0
  15143. * @Date : 2021-08-20 16:44:21
  15144. * @LastAuthor : LQ
  15145. * @lastTime : 2021-08-20 16:56:12
  15146. * @FilePath : /u-view2.0/uview-ui/libs/config/props/col.js
  15147. */var _default =
  15148. {
  15149. // col 组件
  15150. col: {
  15151. span: 12,
  15152. offset: 0,
  15153. justify: 'start',
  15154. align: 'stretch',
  15155. textAlign: 'left' } };exports.default = _default;
  15156. /***/ }),
  15157. /* 68 */
  15158. /*!****************************************************************************************!*\
  15159. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/collapse.js ***!
  15160. \****************************************************************************************/
  15161. /*! no static exports found */
  15162. /***/ (function(module, exports, __webpack_require__) {
  15163. "use strict";
  15164. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15165. * @Author : LQ
  15166. * @Description :
  15167. * @version : 1.0
  15168. * @Date : 2021-08-20 16:44:21
  15169. * @LastAuthor : LQ
  15170. * @lastTime : 2021-08-20 16:56:30
  15171. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapse.js
  15172. */var _default =
  15173. {
  15174. // collapse 组件
  15175. collapse: {
  15176. value: null,
  15177. accordion: false,
  15178. border: true } };exports.default = _default;
  15179. /***/ }),
  15180. /* 69 */
  15181. /*!********************************************************************************************!*\
  15182. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/collapseItem.js ***!
  15183. \********************************************************************************************/
  15184. /*! no static exports found */
  15185. /***/ (function(module, exports, __webpack_require__) {
  15186. "use strict";
  15187. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15188. * @Author : LQ
  15189. * @Description :
  15190. * @version : 1.0
  15191. * @Date : 2021-08-20 16:44:21
  15192. * @LastAuthor : LQ
  15193. * @lastTime : 2021-08-20 16:56:42
  15194. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapseItem.js
  15195. */var _default =
  15196. {
  15197. // collapseItem 组件
  15198. collapseItem: {
  15199. title: '',
  15200. value: '',
  15201. label: '',
  15202. disabled: false,
  15203. isLink: true,
  15204. clickable: true,
  15205. border: true,
  15206. align: 'left',
  15207. name: '',
  15208. icon: '',
  15209. duration: 300 } };exports.default = _default;
  15210. /***/ }),
  15211. /* 70 */
  15212. /*!********************************************************************************************!*\
  15213. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/columnNotice.js ***!
  15214. \********************************************************************************************/
  15215. /*! no static exports found */
  15216. /***/ (function(module, exports, __webpack_require__) {
  15217. "use strict";
  15218. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15219. * @Author : LQ
  15220. * @Description :
  15221. * @version : 1.0
  15222. * @Date : 2021-08-20 16:44:21
  15223. * @LastAuthor : LQ
  15224. * @lastTime : 2021-08-20 16:57:16
  15225. * @FilePath : /u-view2.0/uview-ui/libs/config/props/columnNotice.js
  15226. */var _default =
  15227. {
  15228. // columnNotice 组件
  15229. columnNotice: {
  15230. text: '',
  15231. icon: 'volume',
  15232. mode: '',
  15233. color: '#f9ae3d',
  15234. bgColor: '#fdf6ec',
  15235. fontSize: 14,
  15236. speed: 80,
  15237. step: false,
  15238. duration: 1500,
  15239. disableTouch: true } };exports.default = _default;
  15240. /***/ }),
  15241. /* 71 */
  15242. /*!*****************************************************************************************!*\
  15243. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/countDown.js ***!
  15244. \*****************************************************************************************/
  15245. /*! no static exports found */
  15246. /***/ (function(module, exports, __webpack_require__) {
  15247. "use strict";
  15248. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15249. * @Author : LQ
  15250. * @Description :
  15251. * @version : 1.0
  15252. * @Date : 2021-08-20 16:44:21
  15253. * @LastAuthor : LQ
  15254. * @lastTime : 2021-08-20 17:11:29
  15255. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countDown.js
  15256. */var _default =
  15257. {
  15258. // u-count-down 计时器组件
  15259. countDown: {
  15260. time: 0,
  15261. format: 'HH:mm:ss',
  15262. autoStart: true,
  15263. millisecond: false } };exports.default = _default;
  15264. /***/ }),
  15265. /* 72 */
  15266. /*!***************************************************************************************!*\
  15267. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/countTo.js ***!
  15268. \***************************************************************************************/
  15269. /*! no static exports found */
  15270. /***/ (function(module, exports, __webpack_require__) {
  15271. "use strict";
  15272. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15273. * @Author : LQ
  15274. * @Description :
  15275. * @version : 1.0
  15276. * @Date : 2021-08-20 16:44:21
  15277. * @LastAuthor : LQ
  15278. * @lastTime : 2021-08-20 16:57:32
  15279. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countTo.js
  15280. */var _default =
  15281. {
  15282. // countTo 组件
  15283. countTo: {
  15284. startVal: 0,
  15285. endVal: 0,
  15286. duration: 2000,
  15287. autoplay: true,
  15288. decimals: 0,
  15289. useEasing: true,
  15290. decimal: '.',
  15291. color: '#606266',
  15292. fontSize: 22,
  15293. bold: false,
  15294. separator: '' } };exports.default = _default;
  15295. /***/ }),
  15296. /* 73 */
  15297. /*!**********************************************************************************************!*\
  15298. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/datetimePicker.js ***!
  15299. \**********************************************************************************************/
  15300. /*! no static exports found */
  15301. /***/ (function(module, exports, __webpack_require__) {
  15302. "use strict";
  15303. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15304. * @Author : LQ
  15305. * @Description :
  15306. * @version : 1.0
  15307. * @Date : 2021-08-20 16:44:21
  15308. * @LastAuthor : LQ
  15309. * @lastTime : 2021-08-20 16:57:48
  15310. * @FilePath : /u-view2.0/uview-ui/libs/config/props/datetimePicker.js
  15311. */var _default =
  15312. {
  15313. // datetimePicker 组件
  15314. datetimePicker: {
  15315. show: false,
  15316. showToolbar: true,
  15317. value: '',
  15318. title: '',
  15319. mode: 'datetime',
  15320. maxDate: new Date(new Date().getFullYear() + 10, 0, 1).getTime(),
  15321. minDate: new Date(new Date().getFullYear() - 10, 0, 1).getTime(),
  15322. minHour: 0,
  15323. maxHour: 23,
  15324. minMinute: 0,
  15325. maxMinute: 59,
  15326. filter: null,
  15327. formatter: null,
  15328. loading: false,
  15329. itemHeight: 44,
  15330. cancelText: '取消',
  15331. confirmText: '确认',
  15332. cancelColor: '#909193',
  15333. confirmColor: '#3c9cff',
  15334. visibleItemCount: 5,
  15335. closeOnClickOverlay: false,
  15336. defaultIndex: function defaultIndex() {return [];} } };exports.default = _default;
  15337. /***/ }),
  15338. /* 74 */
  15339. /*!***************************************************************************************!*\
  15340. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/divider.js ***!
  15341. \***************************************************************************************/
  15342. /*! no static exports found */
  15343. /***/ (function(module, exports, __webpack_require__) {
  15344. "use strict";
  15345. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15346. * @Author : LQ
  15347. * @Description :
  15348. * @version : 1.0
  15349. * @Date : 2021-08-20 16:44:21
  15350. * @LastAuthor : LQ
  15351. * @lastTime : 2021-08-20 16:58:03
  15352. * @FilePath : /u-view2.0/uview-ui/libs/config/props/divider.js
  15353. */var _default =
  15354. {
  15355. // divider组件
  15356. divider: {
  15357. dashed: false,
  15358. hairline: true,
  15359. dot: false,
  15360. textPosition: 'center',
  15361. text: '',
  15362. textSize: 14,
  15363. textColor: '#909399',
  15364. lineColor: '#dcdfe6' } };exports.default = _default;
  15365. /***/ }),
  15366. /* 75 */
  15367. /*!*************************************************************************************!*\
  15368. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/empty.js ***!
  15369. \*************************************************************************************/
  15370. /*! no static exports found */
  15371. /***/ (function(module, exports, __webpack_require__) {
  15372. "use strict";
  15373. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15374. * @Author : LQ
  15375. * @Description :
  15376. * @version : 1.0
  15377. * @Date : 2021-08-20 16:44:21
  15378. * @LastAuthor : LQ
  15379. * @lastTime : 2021-08-20 17:03:27
  15380. * @FilePath : /u-view2.0/uview-ui/libs/config/props/empty.js
  15381. */var _default =
  15382. {
  15383. // empty组件
  15384. empty: {
  15385. icon: '',
  15386. text: '',
  15387. textColor: '#c0c4cc',
  15388. textSize: 14,
  15389. iconColor: '#c0c4cc',
  15390. iconSize: 90,
  15391. mode: 'data',
  15392. width: 160,
  15393. height: 160,
  15394. show: true,
  15395. marginTop: 0 } };exports.default = _default;
  15396. /***/ }),
  15397. /* 76 */
  15398. /*!************************************************************************************!*\
  15399. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/form.js ***!
  15400. \************************************************************************************/
  15401. /*! no static exports found */
  15402. /***/ (function(module, exports, __webpack_require__) {
  15403. "use strict";
  15404. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15405. * @Author : LQ
  15406. * @Description :
  15407. * @version : 1.0
  15408. * @Date : 2021-08-20 16:44:21
  15409. * @LastAuthor : LQ
  15410. * @lastTime : 2021-08-20 17:03:49
  15411. * @FilePath : /u-view2.0/uview-ui/libs/config/props/form.js
  15412. */var _default =
  15413. {
  15414. // form 组件
  15415. form: {
  15416. model: function model() {return {};},
  15417. rules: function rules() {return {};},
  15418. errorType: 'message',
  15419. borderBottom: true,
  15420. labelPosition: 'left',
  15421. labelWidth: 45,
  15422. labelAlign: 'left',
  15423. labelStyle: function labelStyle() {return {};} } };exports.default = _default;
  15424. /***/ }),
  15425. /* 77 */
  15426. /*!****************************************************************************************!*\
  15427. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/formItem.js ***!
  15428. \****************************************************************************************/
  15429. /*! no static exports found */
  15430. /***/ (function(module, exports, __webpack_require__) {
  15431. "use strict";
  15432. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15433. * @Author : LQ
  15434. * @Description :
  15435. * @version : 1.0
  15436. * @Date : 2021-08-20 16:44:21
  15437. * @LastAuthor : LQ
  15438. * @lastTime : 2021-08-20 17:04:32
  15439. * @FilePath : /u-view2.0/uview-ui/libs/config/props/formItem.js
  15440. */var _default =
  15441. {
  15442. // formItem 组件
  15443. formItem: {
  15444. label: '',
  15445. prop: '',
  15446. borderBottom: '',
  15447. labelWidth: '',
  15448. rightIcon: '',
  15449. leftIcon: '',
  15450. required: false,
  15451. leftIconStyle: '' } };exports.default = _default;
  15452. /***/ }),
  15453. /* 78 */
  15454. /*!***********************************************************************************!*\
  15455. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/gap.js ***!
  15456. \***********************************************************************************/
  15457. /*! no static exports found */
  15458. /***/ (function(module, exports, __webpack_require__) {
  15459. "use strict";
  15460. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15461. * @Author : LQ
  15462. * @Description :
  15463. * @version : 1.0
  15464. * @Date : 2021-08-20 16:44:21
  15465. * @LastAuthor : LQ
  15466. * @lastTime : 2021-08-20 17:05:25
  15467. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gap.js
  15468. */var _default =
  15469. {
  15470. // gap组件
  15471. gap: {
  15472. bgColor: 'transparent',
  15473. height: 20,
  15474. marginTop: 0,
  15475. marginBottom: 0,
  15476. customStyle: {} } };exports.default = _default;
  15477. /***/ }),
  15478. /* 79 */
  15479. /*!************************************************************************************!*\
  15480. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/grid.js ***!
  15481. \************************************************************************************/
  15482. /*! no static exports found */
  15483. /***/ (function(module, exports, __webpack_require__) {
  15484. "use strict";
  15485. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15486. * @Author : LQ
  15487. * @Description :
  15488. * @version : 1.0
  15489. * @Date : 2021-08-20 16:44:21
  15490. * @LastAuthor : LQ
  15491. * @lastTime : 2021-08-20 17:05:57
  15492. * @FilePath : /u-view2.0/uview-ui/libs/config/props/grid.js
  15493. */var _default =
  15494. {
  15495. // grid组件
  15496. grid: {
  15497. col: 3,
  15498. border: false,
  15499. align: 'left' } };exports.default = _default;
  15500. /***/ }),
  15501. /* 80 */
  15502. /*!****************************************************************************************!*\
  15503. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/gridItem.js ***!
  15504. \****************************************************************************************/
  15505. /*! no static exports found */
  15506. /***/ (function(module, exports, __webpack_require__) {
  15507. "use strict";
  15508. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15509. * @Author : LQ
  15510. * @Description :
  15511. * @version : 1.0
  15512. * @Date : 2021-08-20 16:44:21
  15513. * @LastAuthor : LQ
  15514. * @lastTime : 2021-08-20 17:06:13
  15515. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gridItem.js
  15516. */var _default =
  15517. {
  15518. // grid-item组件
  15519. gridItem: {
  15520. name: null,
  15521. bgColor: 'transparent' } };exports.default = _default;
  15522. /***/ }),
  15523. /* 81 */
  15524. /*!************************************************************************************!*\
  15525. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/icon.js ***!
  15526. \************************************************************************************/
  15527. /*! no static exports found */
  15528. /***/ (function(module, exports, __webpack_require__) {
  15529. "use strict";
  15530. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  15531. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 48));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} /*
  15532. * @Author : LQ
  15533. * @Description :
  15534. * @version : 1.0
  15535. * @Date : 2021-08-20 16:44:21
  15536. * @LastAuthor : LQ
  15537. * @lastTime : 2021-08-20 18:00:14
  15538. * @FilePath : /u-view2.0/uview-ui/libs/config/props/icon.js
  15539. */var color = _config.default.color;var _default = { // icon组件
  15540. icon: { name: '', color: color['u-content-color'],
  15541. size: '16px',
  15542. bold: false,
  15543. index: '',
  15544. hoverClass: '',
  15545. customPrefix: 'uicon',
  15546. label: '',
  15547. labelPos: 'right',
  15548. labelSize: '15px',
  15549. labelColor: color['u-content-color'],
  15550. space: '3px',
  15551. imgMode: '',
  15552. width: '',
  15553. height: '',
  15554. top: 0,
  15555. stop: false } };exports.default = _default;
  15556. /***/ }),
  15557. /* 82 */
  15558. /*!*************************************************************************************!*\
  15559. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/image.js ***!
  15560. \*************************************************************************************/
  15561. /*! no static exports found */
  15562. /***/ (function(module, exports, __webpack_require__) {
  15563. "use strict";
  15564. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15565. * @Author : LQ
  15566. * @Description :
  15567. * @version : 1.0
  15568. * @Date : 2021-08-20 16:44:21
  15569. * @LastAuthor : LQ
  15570. * @lastTime : 2021-08-20 17:01:51
  15571. * @FilePath : /u-view2.0/uview-ui/libs/config/props/image.js
  15572. */var _default =
  15573. {
  15574. // image组件
  15575. image: {
  15576. src: '',
  15577. mode: 'aspectFill',
  15578. width: '300',
  15579. height: '225',
  15580. shape: 'square',
  15581. radius: 0,
  15582. lazyLoad: true,
  15583. showMenuByLongpress: true,
  15584. loadingIcon: 'photo',
  15585. errorIcon: 'error-circle',
  15586. showLoading: true,
  15587. showError: true,
  15588. fade: true,
  15589. webp: false,
  15590. duration: 500,
  15591. bgColor: '#f3f4f6' } };exports.default = _default;
  15592. /***/ }),
  15593. /* 83 */
  15594. /*!*******************************************************************************************!*\
  15595. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/indexAnchor.js ***!
  15596. \*******************************************************************************************/
  15597. /*! no static exports found */
  15598. /***/ (function(module, exports, __webpack_require__) {
  15599. "use strict";
  15600. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15601. * @Author : LQ
  15602. * @Description :
  15603. * @version : 1.0
  15604. * @Date : 2021-08-20 16:44:21
  15605. * @LastAuthor : LQ
  15606. * @lastTime : 2021-08-20 17:13:15
  15607. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexAnchor.js
  15608. */var _default =
  15609. {
  15610. // indexAnchor 组件
  15611. indexAnchor: {
  15612. text: '',
  15613. color: '#606266',
  15614. size: 14,
  15615. bgColor: '#dedede',
  15616. height: 32 } };exports.default = _default;
  15617. /***/ }),
  15618. /* 84 */
  15619. /*!*****************************************************************************************!*\
  15620. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/indexList.js ***!
  15621. \*****************************************************************************************/
  15622. /*! no static exports found */
  15623. /***/ (function(module, exports, __webpack_require__) {
  15624. "use strict";
  15625. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15626. * @Author : LQ
  15627. * @Description :
  15628. * @version : 1.0
  15629. * @Date : 2021-08-20 16:44:21
  15630. * @LastAuthor : LQ
  15631. * @lastTime : 2021-08-20 17:13:35
  15632. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexList.js
  15633. */var _default =
  15634. {
  15635. // indexList 组件
  15636. indexList: {
  15637. inactiveColor: '#606266',
  15638. activeColor: '#5677fc',
  15639. indexList: function indexList() {return [];},
  15640. sticky: true,
  15641. customNavHeight: 0 } };exports.default = _default;
  15642. /***/ }),
  15643. /* 85 */
  15644. /*!*************************************************************************************!*\
  15645. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/input.js ***!
  15646. \*************************************************************************************/
  15647. /*! no static exports found */
  15648. /***/ (function(module, exports, __webpack_require__) {
  15649. "use strict";
  15650. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15651. * @Author : LQ
  15652. * @Description :
  15653. * @version : 1.0
  15654. * @Date : 2021-08-20 16:44:21
  15655. * @LastAuthor : LQ
  15656. * @lastTime : 2021-08-20 17:13:55
  15657. * @FilePath : /u-view2.0/uview-ui/libs/config/props/input.js
  15658. */var _default =
  15659. {
  15660. // index 组件
  15661. input: {
  15662. value: '',
  15663. type: 'text',
  15664. fixed: false,
  15665. disabled: false,
  15666. disabledColor: '#f5f7fa',
  15667. clearable: false,
  15668. password: false,
  15669. maxlength: -1,
  15670. placeholder: null,
  15671. placeholderClass: 'input-placeholder',
  15672. placeholderStyle: 'color: #c0c4cc',
  15673. showWordLimit: false,
  15674. confirmType: 'done',
  15675. confirmHold: false,
  15676. holdKeyboard: false,
  15677. focus: false,
  15678. autoBlur: false,
  15679. disableDefaultPadding: false,
  15680. cursor: -1,
  15681. cursorSpacing: 30,
  15682. selectionStart: -1,
  15683. selectionEnd: -1,
  15684. adjustPosition: true,
  15685. inputAlign: 'left',
  15686. fontSize: '15px',
  15687. color: '#303133',
  15688. prefixIcon: '',
  15689. prefixIconStyle: '',
  15690. suffixIcon: '',
  15691. suffixIconStyle: '',
  15692. border: 'surround',
  15693. readonly: false,
  15694. shape: 'square',
  15695. formatter: null } };exports.default = _default;
  15696. /***/ }),
  15697. /* 86 */
  15698. /*!****************************************************************************************!*\
  15699. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/keyboard.js ***!
  15700. \****************************************************************************************/
  15701. /*! no static exports found */
  15702. /***/ (function(module, exports, __webpack_require__) {
  15703. "use strict";
  15704. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15705. * @Author : LQ
  15706. * @Description :
  15707. * @version : 1.0
  15708. * @Date : 2021-08-20 16:44:21
  15709. * @LastAuthor : LQ
  15710. * @lastTime : 2021-08-20 17:07:49
  15711. * @FilePath : /u-view2.0/uview-ui/libs/config/props/keyboard.js
  15712. */var _default =
  15713. {
  15714. // 键盘组件
  15715. keyboard: {
  15716. mode: 'number',
  15717. dotDisabled: false,
  15718. tooltip: true,
  15719. showTips: true,
  15720. tips: '',
  15721. showCancel: true,
  15722. showConfirm: true,
  15723. random: false,
  15724. safeAreaInsetBottom: true,
  15725. closeOnClickOverlay: true,
  15726. show: false,
  15727. overlay: true,
  15728. zIndex: 10075,
  15729. cancelText: '取消',
  15730. confirmText: '确定',
  15731. autoChange: false } };exports.default = _default;
  15732. /***/ }),
  15733. /* 87 */
  15734. /*!************************************************************************************!*\
  15735. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/line.js ***!
  15736. \************************************************************************************/
  15737. /*! no static exports found */
  15738. /***/ (function(module, exports, __webpack_require__) {
  15739. "use strict";
  15740. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15741. * @Author : LQ
  15742. * @Description :
  15743. * @version : 1.0
  15744. * @Date : 2021-08-20 16:44:21
  15745. * @LastAuthor : LQ
  15746. * @lastTime : 2021-08-20 17:04:49
  15747. * @FilePath : /u-view2.0/uview-ui/libs/config/props/line.js
  15748. */var _default =
  15749. {
  15750. // line组件
  15751. line: {
  15752. color: '#d6d7d9',
  15753. length: '100%',
  15754. direction: 'row',
  15755. hairline: true,
  15756. margin: 0,
  15757. dashed: false } };exports.default = _default;
  15758. /***/ }),
  15759. /* 88 */
  15760. /*!********************************************************************************************!*\
  15761. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/lineProgress.js ***!
  15762. \********************************************************************************************/
  15763. /*! no static exports found */
  15764. /***/ (function(module, exports, __webpack_require__) {
  15765. "use strict";
  15766. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15767. * @Author : LQ
  15768. * @Description :
  15769. * @version : 1.0
  15770. * @Date : 2021-08-20 16:44:21
  15771. * @LastAuthor : LQ
  15772. * @lastTime : 2021-08-20 17:14:11
  15773. * @FilePath : /u-view2.0/uview-ui/libs/config/props/lineProgress.js
  15774. */var _default =
  15775. {
  15776. // lineProgress 组件
  15777. lineProgress: {
  15778. activeColor: '#19be6b',
  15779. inactiveColor: '#ececec',
  15780. percentage: 0,
  15781. showText: true,
  15782. height: 12 } };exports.default = _default;
  15783. /***/ }),
  15784. /* 89 */
  15785. /*!************************************************************************************!*\
  15786. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/link.js ***!
  15787. \************************************************************************************/
  15788. /*! no static exports found */
  15789. /***/ (function(module, exports, __webpack_require__) {
  15790. "use strict";
  15791. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  15792. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 48));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} /*
  15793. * @Author : LQ
  15794. * @Description :
  15795. * @version : 1.0
  15796. * @Date : 2021-08-20 16:44:21
  15797. * @LastAuthor : LQ
  15798. * @lastTime : 2021-08-20 17:45:36
  15799. * @FilePath : /u-view2.0/uview-ui/libs/config/props/link.js
  15800. */var color = _config.default.color;var _default = { // link超链接组件props参数
  15801. link: { color: color['u-primary'], fontSize: 15,
  15802. underLine: false,
  15803. href: '',
  15804. mpTips: '链接已复制,请在浏览器打开',
  15805. lineColor: '',
  15806. text: '' } };exports.default = _default;
  15807. /***/ }),
  15808. /* 90 */
  15809. /*!************************************************************************************!*\
  15810. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/list.js ***!
  15811. \************************************************************************************/
  15812. /*! no static exports found */
  15813. /***/ (function(module, exports, __webpack_require__) {
  15814. "use strict";
  15815. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15816. * @Author : LQ
  15817. * @Description :
  15818. * @version : 1.0
  15819. * @Date : 2021-08-20 16:44:21
  15820. * @LastAuthor : LQ
  15821. * @lastTime : 2021-08-20 17:14:53
  15822. * @FilePath : /u-view2.0/uview-ui/libs/config/props/list.js
  15823. */var _default =
  15824. {
  15825. // list 组件
  15826. list: {
  15827. showScrollbar: false,
  15828. lowerThreshold: 50,
  15829. upperThreshold: 0,
  15830. scrollTop: 0,
  15831. offsetAccuracy: 10,
  15832. enableFlex: false,
  15833. pagingEnabled: false,
  15834. scrollable: true,
  15835. scrollIntoView: '',
  15836. scrollWithAnimation: false,
  15837. enableBackToTop: false,
  15838. height: 0,
  15839. width: 0,
  15840. preLoadScreen: 1 } };exports.default = _default;
  15841. /***/ }),
  15842. /* 91 */
  15843. /*!****************************************************************************************!*\
  15844. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/listItem.js ***!
  15845. \****************************************************************************************/
  15846. /*! no static exports found */
  15847. /***/ (function(module, exports, __webpack_require__) {
  15848. "use strict";
  15849. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15850. * @Author : LQ
  15851. * @Description :
  15852. * @version : 1.0
  15853. * @Date : 2021-08-20 16:44:21
  15854. * @LastAuthor : LQ
  15855. * @lastTime : 2021-08-20 17:15:40
  15856. * @FilePath : /u-view2.0/uview-ui/libs/config/props/listItem.js
  15857. */var _default =
  15858. {
  15859. // listItem 组件
  15860. listItem: {
  15861. anchor: '' } };exports.default = _default;
  15862. /***/ }),
  15863. /* 92 */
  15864. /*!*******************************************************************************************!*\
  15865. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/loadingIcon.js ***!
  15866. \*******************************************************************************************/
  15867. /*! no static exports found */
  15868. /***/ (function(module, exports, __webpack_require__) {
  15869. "use strict";
  15870. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  15871. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 48));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} /*
  15872. * @Author : LQ
  15873. * @Description :
  15874. * @version : 1.0
  15875. * @Date : 2021-08-20 16:44:21
  15876. * @LastAuthor : LQ
  15877. * @lastTime : 2021-08-20 17:45:47
  15878. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingIcon.js
  15879. */var color = _config.default.color;var _default = { // loading-icon加载中图标组件
  15880. loadingIcon: { show: true, color: color['u-tips-color'],
  15881. textColor: color['u-tips-color'],
  15882. vertical: false,
  15883. mode: 'spinner',
  15884. size: 24,
  15885. textSize: 15,
  15886. text: '',
  15887. timingFunction: 'ease-in-out',
  15888. duration: 1200,
  15889. inactiveColor: '' } };exports.default = _default;
  15890. /***/ }),
  15891. /* 93 */
  15892. /*!*******************************************************************************************!*\
  15893. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/loadingPage.js ***!
  15894. \*******************************************************************************************/
  15895. /*! no static exports found */
  15896. /***/ (function(module, exports, __webpack_require__) {
  15897. "use strict";
  15898. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15899. * @Author : LQ
  15900. * @Description :
  15901. * @version : 1.0
  15902. * @Date : 2021-08-20 16:44:21
  15903. * @LastAuthor : LQ
  15904. * @lastTime : 2021-08-20 17:00:23
  15905. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingPage.js
  15906. */var _default =
  15907. {
  15908. // loading-page组件
  15909. loadingPage: {
  15910. loadingText: '正在加载',
  15911. image: '',
  15912. loadingMode: 'circle',
  15913. loading: false,
  15914. bgColor: '#ffffff',
  15915. color: '#C8C8C8',
  15916. fontSize: 19,
  15917. loadingColor: '#C8C8C8' } };exports.default = _default;
  15918. /***/ }),
  15919. /* 94 */
  15920. /*!****************************************************************************************!*\
  15921. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/loadmore.js ***!
  15922. \****************************************************************************************/
  15923. /*! no static exports found */
  15924. /***/ (function(module, exports, __webpack_require__) {
  15925. "use strict";
  15926. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15927. * @Author : LQ
  15928. * @Description :
  15929. * @version : 1.0
  15930. * @Date : 2021-08-20 16:44:21
  15931. * @LastAuthor : LQ
  15932. * @lastTime : 2021-08-20 17:15:26
  15933. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadmore.js
  15934. */var _default =
  15935. {
  15936. // loadmore 组件
  15937. loadmore: {
  15938. status: 'loadmore',
  15939. bgColor: 'transparent',
  15940. icon: true,
  15941. fontSize: 14,
  15942. color: '#606266',
  15943. loadingIcon: 'spinner',
  15944. loadmoreText: '加载更多',
  15945. loadingText: '正在加载...',
  15946. nomoreText: '没有更多了',
  15947. isDot: false,
  15948. iconColor: '#b7b7b7',
  15949. marginTop: 10,
  15950. marginBottom: 10,
  15951. height: 'auto',
  15952. line: false } };exports.default = _default;
  15953. /***/ }),
  15954. /* 95 */
  15955. /*!*************************************************************************************!*\
  15956. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/modal.js ***!
  15957. \*************************************************************************************/
  15958. /*! no static exports found */
  15959. /***/ (function(module, exports, __webpack_require__) {
  15960. "use strict";
  15961. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15962. * @Author : LQ
  15963. * @Description :
  15964. * @version : 1.0
  15965. * @Date : 2021-08-20 16:44:21
  15966. * @LastAuthor : LQ
  15967. * @lastTime : 2021-08-20 17:15:59
  15968. * @FilePath : /u-view2.0/uview-ui/libs/config/props/modal.js
  15969. */var _default =
  15970. {
  15971. // modal 组件
  15972. modal: {
  15973. show: false,
  15974. title: '',
  15975. content: '',
  15976. confirmText: '确认',
  15977. cancelText: '取消',
  15978. showConfirmButton: true,
  15979. showCancelButton: false,
  15980. confirmColor: '#2979ff',
  15981. cancelColor: '#606266',
  15982. buttonReverse: false,
  15983. zoom: true,
  15984. asyncClose: false,
  15985. closeOnClickOverlay: false,
  15986. negativeTop: 0,
  15987. width: '650rpx',
  15988. confirmButtonShape: '' } };exports.default = _default;
  15989. /***/ }),
  15990. /* 96 */
  15991. /*!**************************************************************************************!*\
  15992. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/navbar.js ***!
  15993. \**************************************************************************************/
  15994. /*! no static exports found */
  15995. /***/ (function(module, exports, __webpack_require__) {
  15996. "use strict";
  15997. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  15998. var _color = _interopRequireDefault(__webpack_require__(/*! ../color */ 97));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} /*
  15999. * @Author : LQ
  16000. * @Description :
  16001. * @version : 1.0
  16002. * @Date : 2021-08-20 16:44:21
  16003. * @LastAuthor : LQ
  16004. * @lastTime : 2021-08-20 17:16:18
  16005. * @FilePath : /u-view2.0/uview-ui/libs/config/props/navbar.js
  16006. */var _default = { // navbar 组件
  16007. navbar: { safeAreaInsetTop: true, placeholder: false, fixed: true, border: false, leftIcon: 'arrow-left', leftText: '',
  16008. rightText: '',
  16009. rightIcon: '',
  16010. title: '',
  16011. bgColor: '#ffffff',
  16012. titleWidth: '400rpx',
  16013. height: '44px',
  16014. leftIconSize: 20,
  16015. leftIconColor: _color.default.mainColor,
  16016. autoBack: false,
  16017. titleStyle: '' } };exports.default = _default;
  16018. /***/ }),
  16019. /* 97 */
  16020. /*!*******************************************************************************!*\
  16021. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/color.js ***!
  16022. \*******************************************************************************/
  16023. /*! no static exports found */
  16024. /***/ (function(module, exports, __webpack_require__) {
  16025. "use strict";
  16026. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; // 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供
  16027. // 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)
  16028. var color = {
  16029. primary: '#3c9cff',
  16030. info: '#909399',
  16031. default: '#909399',
  16032. warning: '#f9ae3d',
  16033. error: '#f56c6c',
  16034. success: '#5ac725',
  16035. mainColor: '#303133',
  16036. contentColor: '#606266',
  16037. tipsColor: '#909399',
  16038. lightColor: '#c0c4cc',
  16039. borderColor: '#e4e7ed' };var _default =
  16040. color;exports.default = _default;
  16041. /***/ }),
  16042. /* 98 */
  16043. /*!*****************************************************************************************!*\
  16044. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/noNetwork.js ***!
  16045. \*****************************************************************************************/
  16046. /*! no static exports found */
  16047. /***/ (function(module, exports, __webpack_require__) {
  16048. "use strict";
  16049. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16050. * @Author : LQ
  16051. * @Description :
  16052. * @version : 1.0
  16053. * @Date : 2021-08-20 16:44:21
  16054. * @LastAuthor : LQ
  16055. * @lastTime : 2021-08-20 17:16:39
  16056. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noNetwork.js
  16057. */var _default =
  16058. {
  16059. // noNetwork
  16060. noNetwork: {
  16061. tips: '哎呀,网络信号丢失',
  16062. zIndex: '',
  16063. 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;
  16064. /***/ }),
  16065. /* 99 */
  16066. /*!*****************************************************************************************!*\
  16067. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/noticeBar.js ***!
  16068. \*****************************************************************************************/
  16069. /*! no static exports found */
  16070. /***/ (function(module, exports, __webpack_require__) {
  16071. "use strict";
  16072. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16073. * @Author : LQ
  16074. * @Description :
  16075. * @version : 1.0
  16076. * @Date : 2021-08-20 16:44:21
  16077. * @LastAuthor : LQ
  16078. * @lastTime : 2021-08-20 17:17:13
  16079. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noticeBar.js
  16080. */var _default =
  16081. {
  16082. // noticeBar
  16083. noticeBar: {
  16084. text: function text() {return [];},
  16085. direction: 'row',
  16086. step: false,
  16087. icon: 'volume',
  16088. mode: '',
  16089. color: '#f9ae3d',
  16090. bgColor: '#fdf6ec',
  16091. speed: 80,
  16092. fontSize: 14,
  16093. duration: 2000,
  16094. disableTouch: true,
  16095. url: '',
  16096. linkType: 'navigateTo' } };exports.default = _default;
  16097. /***/ }),
  16098. /* 100 */
  16099. /*!**************************************************************************************!*\
  16100. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/notify.js ***!
  16101. \**************************************************************************************/
  16102. /*! no static exports found */
  16103. /***/ (function(module, exports, __webpack_require__) {
  16104. "use strict";
  16105. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16106. * @Author : LQ
  16107. * @Description :
  16108. * @version : 1.0
  16109. * @Date : 2021-08-20 16:44:21
  16110. * @LastAuthor : LQ
  16111. * @lastTime : 2021-08-20 17:10:21
  16112. * @FilePath : /u-view2.0/uview-ui/libs/config/props/notify.js
  16113. */var _default =
  16114. {
  16115. // notify组件
  16116. notify: {
  16117. top: 0,
  16118. type: 'primary',
  16119. color: '#ffffff',
  16120. bgColor: '',
  16121. message: '',
  16122. duration: 3000,
  16123. fontSize: 15,
  16124. safeAreaInsetTop: false } };exports.default = _default;
  16125. /***/ }),
  16126. /* 101 */
  16127. /*!*****************************************************************************************!*\
  16128. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/numberBox.js ***!
  16129. \*****************************************************************************************/
  16130. /*! no static exports found */
  16131. /***/ (function(module, exports, __webpack_require__) {
  16132. "use strict";
  16133. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16134. * @Author : LQ
  16135. * @Description :
  16136. * @version : 1.0
  16137. * @Date : 2021-08-20 16:44:21
  16138. * @LastAuthor : LQ
  16139. * @lastTime : 2021-08-20 17:11:46
  16140. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberBox.js
  16141. */var _default =
  16142. {
  16143. // 步进器组件
  16144. numberBox: {
  16145. name: '',
  16146. value: 0,
  16147. min: 1,
  16148. max: Number.MAX_SAFE_INTEGER,
  16149. step: 1,
  16150. integer: false,
  16151. disabled: false,
  16152. disabledInput: false,
  16153. asyncChange: false,
  16154. inputWidth: 35,
  16155. showMinus: true,
  16156. showPlus: true,
  16157. decimalLength: null,
  16158. longPress: true,
  16159. color: '#323233',
  16160. buttonSize: 30,
  16161. bgColor: '#EBECEE',
  16162. cursorSpacing: 100,
  16163. disableMinus: false,
  16164. disablePlus: false,
  16165. iconStyle: '' } };exports.default = _default;
  16166. /***/ }),
  16167. /* 102 */
  16168. /*!**********************************************************************************************!*\
  16169. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/numberKeyboard.js ***!
  16170. \**********************************************************************************************/
  16171. /*! no static exports found */
  16172. /***/ (function(module, exports, __webpack_require__) {
  16173. "use strict";
  16174. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16175. * @Author : LQ
  16176. * @Description :
  16177. * @version : 1.0
  16178. * @Date : 2021-08-20 16:44:21
  16179. * @LastAuthor : LQ
  16180. * @lastTime : 2021-08-20 17:08:05
  16181. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberKeyboard.js
  16182. */var _default =
  16183. {
  16184. // 数字键盘
  16185. numberKeyboard: {
  16186. mode: 'number',
  16187. dotDisabled: false,
  16188. random: false } };exports.default = _default;
  16189. /***/ }),
  16190. /* 103 */
  16191. /*!***************************************************************************************!*\
  16192. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/overlay.js ***!
  16193. \***************************************************************************************/
  16194. /*! no static exports found */
  16195. /***/ (function(module, exports, __webpack_require__) {
  16196. "use strict";
  16197. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16198. * @Author : LQ
  16199. * @Description :
  16200. * @version : 1.0
  16201. * @Date : 2021-08-20 16:44:21
  16202. * @LastAuthor : LQ
  16203. * @lastTime : 2021-08-20 17:06:50
  16204. * @FilePath : /u-view2.0/uview-ui/libs/config/props/overlay.js
  16205. */var _default =
  16206. {
  16207. // overlay组件
  16208. overlay: {
  16209. show: false,
  16210. zIndex: 10070,
  16211. duration: 300,
  16212. opacity: 0.5 } };exports.default = _default;
  16213. /***/ }),
  16214. /* 104 */
  16215. /*!*************************************************************************************!*\
  16216. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/parse.js ***!
  16217. \*************************************************************************************/
  16218. /*! no static exports found */
  16219. /***/ (function(module, exports, __webpack_require__) {
  16220. "use strict";
  16221. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16222. * @Author : LQ
  16223. * @Description :
  16224. * @version : 1.0
  16225. * @Date : 2021-08-20 16:44:21
  16226. * @LastAuthor : LQ
  16227. * @lastTime : 2021-08-20 17:17:33
  16228. * @FilePath : /u-view2.0/uview-ui/libs/config/props/parse.js
  16229. */var _default =
  16230. {
  16231. // parse
  16232. parse: {
  16233. copyLink: true,
  16234. errorImg: '',
  16235. lazyLoad: false,
  16236. loadingImg: '',
  16237. pauseVideo: true,
  16238. previewImg: true,
  16239. setTitle: true,
  16240. showImgMenu: true } };exports.default = _default;
  16241. /***/ }),
  16242. /* 105 */
  16243. /*!**************************************************************************************!*\
  16244. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/picker.js ***!
  16245. \**************************************************************************************/
  16246. /*! no static exports found */
  16247. /***/ (function(module, exports, __webpack_require__) {
  16248. "use strict";
  16249. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16250. * @Author : LQ
  16251. * @Description :
  16252. * @version : 1.0
  16253. * @Date : 2021-08-20 16:44:21
  16254. * @LastAuthor : LQ
  16255. * @lastTime : 2021-08-20 17:18:20
  16256. * @FilePath : /u-view2.0/uview-ui/libs/config/props/picker.js
  16257. */var _default =
  16258. {
  16259. // picker
  16260. picker: {
  16261. show: false,
  16262. showToolbar: true,
  16263. title: '',
  16264. columns: function columns() {return [];},
  16265. loading: false,
  16266. itemHeight: 44,
  16267. cancelText: '取消',
  16268. confirmText: '确定',
  16269. cancelColor: '#909193',
  16270. confirmColor: '#3c9cff',
  16271. singleIndex: 0,
  16272. visibleItemCount: 5,
  16273. keyName: 'text',
  16274. closeOnClickOverlay: false,
  16275. defaultIndex: function defaultIndex() {return [];},
  16276. immediateChange: false } };exports.default = _default;
  16277. /***/ }),
  16278. /* 106 */
  16279. /*!*************************************************************************************!*\
  16280. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/popup.js ***!
  16281. \*************************************************************************************/
  16282. /*! no static exports found */
  16283. /***/ (function(module, exports, __webpack_require__) {
  16284. "use strict";
  16285. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16286. * @Author : LQ
  16287. * @Description :
  16288. * @version : 1.0
  16289. * @Date : 2021-08-20 16:44:21
  16290. * @LastAuthor : LQ
  16291. * @lastTime : 2021-08-20 17:06:33
  16292. * @FilePath : /u-view2.0/uview-ui/libs/config/props/popup.js
  16293. */var _default =
  16294. {
  16295. // popup组件
  16296. popup: {
  16297. show: false,
  16298. overlay: true,
  16299. mode: 'bottom',
  16300. duration: 300,
  16301. closeable: false,
  16302. overlayStyle: function overlayStyle() {},
  16303. closeOnClickOverlay: true,
  16304. zIndex: 10075,
  16305. safeAreaInsetBottom: true,
  16306. safeAreaInsetTop: false,
  16307. closeIconPos: 'top-right',
  16308. round: 0,
  16309. zoom: true,
  16310. bgColor: '',
  16311. overlayOpacity: 0.5 } };exports.default = _default;
  16312. /***/ }),
  16313. /* 107 */
  16314. /*!*************************************************************************************!*\
  16315. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/radio.js ***!
  16316. \*************************************************************************************/
  16317. /*! no static exports found */
  16318. /***/ (function(module, exports, __webpack_require__) {
  16319. "use strict";
  16320. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16321. * @Author : LQ
  16322. * @Description :
  16323. * @version : 1.0
  16324. * @Date : 2021-08-20 16:44:21
  16325. * @LastAuthor : LQ
  16326. * @lastTime : 2021-08-20 17:02:34
  16327. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radio.js
  16328. */var _default =
  16329. {
  16330. // radio组件
  16331. radio: {
  16332. name: '',
  16333. shape: '',
  16334. disabled: '',
  16335. labelDisabled: '',
  16336. activeColor: '',
  16337. inactiveColor: '',
  16338. iconSize: '',
  16339. labelSize: '',
  16340. label: '',
  16341. labelColor: '',
  16342. size: '',
  16343. iconColor: '',
  16344. placement: '' } };exports.default = _default;
  16345. /***/ }),
  16346. /* 108 */
  16347. /*!******************************************************************************************!*\
  16348. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/radioGroup.js ***!
  16349. \******************************************************************************************/
  16350. /*! no static exports found */
  16351. /***/ (function(module, exports, __webpack_require__) {
  16352. "use strict";
  16353. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16354. * @Author : LQ
  16355. * @Description :
  16356. * @version : 1.0
  16357. * @Date : 2021-08-20 16:44:21
  16358. * @LastAuthor : LQ
  16359. * @lastTime : 2021-08-20 17:03:12
  16360. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radioGroup.js
  16361. */var _default =
  16362. {
  16363. // radio-group组件
  16364. radioGroup: {
  16365. value: '',
  16366. disabled: false,
  16367. shape: 'circle',
  16368. activeColor: '#2979ff',
  16369. inactiveColor: '#c8c9cc',
  16370. name: '',
  16371. size: 18,
  16372. placement: 'row',
  16373. label: '',
  16374. labelColor: '#303133',
  16375. labelSize: 14,
  16376. labelDisabled: false,
  16377. iconColor: '#ffffff',
  16378. iconSize: 12,
  16379. borderBottom: false,
  16380. iconPlacement: 'left' } };exports.default = _default;
  16381. /***/ }),
  16382. /* 109 */
  16383. /*!************************************************************************************!*\
  16384. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/rate.js ***!
  16385. \************************************************************************************/
  16386. /*! no static exports found */
  16387. /***/ (function(module, exports, __webpack_require__) {
  16388. "use strict";
  16389. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16390. * @Author : LQ
  16391. * @Description :
  16392. * @version : 1.0
  16393. * @Date : 2021-08-20 16:44:21
  16394. * @LastAuthor : LQ
  16395. * @lastTime : 2021-08-20 17:05:09
  16396. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rate.js
  16397. */var _default =
  16398. {
  16399. // rate组件
  16400. rate: {
  16401. value: 1,
  16402. count: 5,
  16403. disabled: false,
  16404. size: 18,
  16405. inactiveColor: '#b2b2b2',
  16406. activeColor: '#FA3534',
  16407. gutter: 4,
  16408. minCount: 1,
  16409. allowHalf: false,
  16410. activeIcon: 'star-fill',
  16411. inactiveIcon: 'star',
  16412. touchable: true } };exports.default = _default;
  16413. /***/ }),
  16414. /* 110 */
  16415. /*!****************************************************************************************!*\
  16416. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/readMore.js ***!
  16417. \****************************************************************************************/
  16418. /*! no static exports found */
  16419. /***/ (function(module, exports, __webpack_require__) {
  16420. "use strict";
  16421. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16422. * @Author : LQ
  16423. * @Description :
  16424. * @version : 1.0
  16425. * @Date : 2021-08-20 16:44:21
  16426. * @LastAuthor : LQ
  16427. * @lastTime : 2021-08-20 17:18:41
  16428. * @FilePath : /u-view2.0/uview-ui/libs/config/props/readMore.js
  16429. */var _default =
  16430. {
  16431. // readMore
  16432. readMore: {
  16433. showHeight: 400,
  16434. toggle: false,
  16435. closeText: '展开阅读全文',
  16436. openText: '收起',
  16437. color: '#2979ff',
  16438. fontSize: 14,
  16439. textIndent: '2em',
  16440. name: '' } };exports.default = _default;
  16441. /***/ }),
  16442. /* 111 */
  16443. /*!***********************************************************************************!*\
  16444. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/row.js ***!
  16445. \***********************************************************************************/
  16446. /*! no static exports found */
  16447. /***/ (function(module, exports, __webpack_require__) {
  16448. "use strict";
  16449. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16450. * @Author : LQ
  16451. * @Description :
  16452. * @version : 1.0
  16453. * @Date : 2021-08-20 16:44:21
  16454. * @LastAuthor : LQ
  16455. * @lastTime : 2021-08-20 17:18:58
  16456. * @FilePath : /u-view2.0/uview-ui/libs/config/props/row.js
  16457. */var _default =
  16458. {
  16459. // row
  16460. row: {
  16461. gutter: 0,
  16462. justify: 'start',
  16463. align: 'center' } };exports.default = _default;
  16464. /***/ }),
  16465. /* 112 */
  16466. /*!*****************************************************************************************!*\
  16467. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/rowNotice.js ***!
  16468. \*****************************************************************************************/
  16469. /*! no static exports found */
  16470. /***/ (function(module, exports, __webpack_require__) {
  16471. "use strict";
  16472. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16473. * @Author : LQ
  16474. * @Description :
  16475. * @version : 1.0
  16476. * @Date : 2021-08-20 16:44:21
  16477. * @LastAuthor : LQ
  16478. * @lastTime : 2021-08-20 17:19:13
  16479. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rowNotice.js
  16480. */var _default =
  16481. {
  16482. // rowNotice
  16483. rowNotice: {
  16484. text: '',
  16485. icon: 'volume',
  16486. mode: '',
  16487. color: '#f9ae3d',
  16488. bgColor: '#fdf6ec',
  16489. fontSize: 14,
  16490. speed: 80 } };exports.default = _default;
  16491. /***/ }),
  16492. /* 113 */
  16493. /*!******************************************************************************************!*\
  16494. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/scrollList.js ***!
  16495. \******************************************************************************************/
  16496. /*! no static exports found */
  16497. /***/ (function(module, exports, __webpack_require__) {
  16498. "use strict";
  16499. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16500. * @Author : LQ
  16501. * @Description :
  16502. * @version : 1.0
  16503. * @Date : 2021-08-20 16:44:21
  16504. * @LastAuthor : LQ
  16505. * @lastTime : 2021-08-20 17:19:28
  16506. * @FilePath : /u-view2.0/uview-ui/libs/config/props/scrollList.js
  16507. */var _default =
  16508. {
  16509. // scrollList
  16510. scrollList: {
  16511. indicatorWidth: 50,
  16512. indicatorBarWidth: 20,
  16513. indicator: true,
  16514. indicatorColor: '#f2f2f2',
  16515. indicatorActiveColor: '#3c9cff',
  16516. indicatorStyle: '' } };exports.default = _default;
  16517. /***/ }),
  16518. /* 114 */
  16519. /*!**************************************************************************************!*\
  16520. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/search.js ***!
  16521. \**************************************************************************************/
  16522. /*! no static exports found */
  16523. /***/ (function(module, exports, __webpack_require__) {
  16524. "use strict";
  16525. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16526. * @Author : LQ
  16527. * @Description :
  16528. * @version : 1.0
  16529. * @Date : 2021-08-20 16:44:21
  16530. * @LastAuthor : LQ
  16531. * @lastTime : 2021-08-20 17:19:45
  16532. * @FilePath : /u-view2.0/uview-ui/libs/config/props/search.js
  16533. */var _default =
  16534. {
  16535. // search
  16536. search: {
  16537. shape: 'round',
  16538. bgColor: '#f2f2f2',
  16539. placeholder: '请输入关键字',
  16540. clearabled: true,
  16541. focus: false,
  16542. showAction: true,
  16543. actionStyle: function actionStyle() {return {};},
  16544. actionText: '搜索',
  16545. inputAlign: 'left',
  16546. inputStyle: function inputStyle() {return {};},
  16547. disabled: false,
  16548. borderColor: 'transparent',
  16549. searchIconColor: '#909399',
  16550. searchIconSize: 22,
  16551. color: '#606266',
  16552. placeholderColor: '#909399',
  16553. searchIcon: 'search',
  16554. margin: '0',
  16555. animation: false,
  16556. value: '',
  16557. maxlength: '-1',
  16558. height: 32,
  16559. label: null } };exports.default = _default;
  16560. /***/ }),
  16561. /* 115 */
  16562. /*!***************************************************************************************!*\
  16563. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/section.js ***!
  16564. \***************************************************************************************/
  16565. /*! no static exports found */
  16566. /***/ (function(module, exports, __webpack_require__) {
  16567. "use strict";
  16568. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16569. * @Author : LQ
  16570. * @Description :
  16571. * @version : 1.0
  16572. * @Date : 2021-08-20 16:44:21
  16573. * @LastAuthor : LQ
  16574. * @lastTime : 2021-08-20 17:07:33
  16575. * @FilePath : /u-view2.0/uview-ui/libs/config/props/section.js
  16576. */var _default =
  16577. {
  16578. // u-section组件
  16579. section: {
  16580. title: '',
  16581. subTitle: '更多',
  16582. right: true,
  16583. fontSize: 15,
  16584. bold: true,
  16585. color: '#303133',
  16586. subColor: '#909399',
  16587. showLine: true,
  16588. lineColor: '',
  16589. arrow: true } };exports.default = _default;
  16590. /***/ }),
  16591. /* 116 */
  16592. /*!****************************************************************************************!*\
  16593. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/skeleton.js ***!
  16594. \****************************************************************************************/
  16595. /*! no static exports found */
  16596. /***/ (function(module, exports, __webpack_require__) {
  16597. "use strict";
  16598. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16599. * @Author : LQ
  16600. * @Description :
  16601. * @version : 1.0
  16602. * @Date : 2021-08-20 16:44:21
  16603. * @LastAuthor : LQ
  16604. * @lastTime : 2021-08-20 17:20:14
  16605. * @FilePath : /u-view2.0/uview-ui/libs/config/props/skeleton.js
  16606. */var _default =
  16607. {
  16608. // skeleton
  16609. skeleton: {
  16610. loading: true,
  16611. animate: true,
  16612. rows: 0,
  16613. rowsWidth: '100%',
  16614. rowsHeight: 18,
  16615. title: true,
  16616. titleWidth: '50%',
  16617. titleHeight: 18,
  16618. avatar: false,
  16619. avatarSize: 32,
  16620. avatarShape: 'circle' } };exports.default = _default;
  16621. /***/ }),
  16622. /* 117 */
  16623. /*!**************************************************************************************!*\
  16624. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/slider.js ***!
  16625. \**************************************************************************************/
  16626. /*! no static exports found */
  16627. /***/ (function(module, exports, __webpack_require__) {
  16628. "use strict";
  16629. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16630. * @Author : LQ
  16631. * @Description :
  16632. * @version : 1.0
  16633. * @Date : 2021-08-20 16:44:21
  16634. * @LastAuthor : LQ
  16635. * @lastTime : 2021-08-20 17:08:25
  16636. * @FilePath : /u-view2.0/uview-ui/libs/config/props/slider.js
  16637. */var _default =
  16638. {
  16639. // slider组件
  16640. slider: {
  16641. value: 0,
  16642. blockSize: 18,
  16643. min: 0,
  16644. max: 100,
  16645. step: 1,
  16646. activeColor: '#2979ff',
  16647. inactiveColor: '#c0c4cc',
  16648. blockColor: '#ffffff',
  16649. showValue: false,
  16650. disabled: false,
  16651. blockStyle: function blockStyle() {} } };exports.default = _default;
  16652. /***/ }),
  16653. /* 118 */
  16654. /*!*****************************************************************************************!*\
  16655. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/statusBar.js ***!
  16656. \*****************************************************************************************/
  16657. /*! no static exports found */
  16658. /***/ (function(module, exports, __webpack_require__) {
  16659. "use strict";
  16660. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16661. * @Author : LQ
  16662. * @Description :
  16663. * @version : 1.0
  16664. * @Date : 2021-08-20 16:44:21
  16665. * @LastAuthor : LQ
  16666. * @lastTime : 2021-08-20 17:20:39
  16667. * @FilePath : /u-view2.0/uview-ui/libs/config/props/statusBar.js
  16668. */var _default =
  16669. {
  16670. // statusBar
  16671. statusBar: {
  16672. bgColor: 'transparent' } };exports.default = _default;
  16673. /***/ }),
  16674. /* 119 */
  16675. /*!*************************************************************************************!*\
  16676. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/steps.js ***!
  16677. \*************************************************************************************/
  16678. /*! no static exports found */
  16679. /***/ (function(module, exports, __webpack_require__) {
  16680. "use strict";
  16681. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16682. * @Author : LQ
  16683. * @Description :
  16684. * @version : 1.0
  16685. * @Date : 2021-08-20 16:44:21
  16686. * @LastAuthor : LQ
  16687. * @lastTime : 2021-08-20 17:12:37
  16688. * @FilePath : /u-view2.0/uview-ui/libs/config/props/steps.js
  16689. */var _default =
  16690. {
  16691. // steps组件
  16692. steps: {
  16693. direction: 'row',
  16694. current: 0,
  16695. activeColor: '#3c9cff',
  16696. inactiveColor: '#969799',
  16697. activeIcon: '',
  16698. inactiveIcon: '',
  16699. dot: false } };exports.default = _default;
  16700. /***/ }),
  16701. /* 120 */
  16702. /*!*****************************************************************************************!*\
  16703. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/stepsItem.js ***!
  16704. \*****************************************************************************************/
  16705. /*! no static exports found */
  16706. /***/ (function(module, exports, __webpack_require__) {
  16707. "use strict";
  16708. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16709. * @Author : LQ
  16710. * @Description :
  16711. * @version : 1.0
  16712. * @Date : 2021-08-20 16:44:21
  16713. * @LastAuthor : LQ
  16714. * @lastTime : 2021-08-20 17:12:55
  16715. * @FilePath : /u-view2.0/uview-ui/libs/config/props/stepsItem.js
  16716. */var _default =
  16717. {
  16718. // steps-item组件
  16719. stepsItem: {
  16720. title: '',
  16721. desc: '',
  16722. iconSize: 17,
  16723. error: false } };exports.default = _default;
  16724. /***/ }),
  16725. /* 121 */
  16726. /*!**************************************************************************************!*\
  16727. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/sticky.js ***!
  16728. \**************************************************************************************/
  16729. /*! no static exports found */
  16730. /***/ (function(module, exports, __webpack_require__) {
  16731. "use strict";
  16732. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16733. * @Author : LQ
  16734. * @Description :
  16735. * @version : 1.0
  16736. * @Date : 2021-08-20 16:44:21
  16737. * @LastAuthor : LQ
  16738. * @lastTime : 2021-08-20 17:01:30
  16739. * @FilePath : /u-view2.0/uview-ui/libs/config/props/sticky.js
  16740. */var _default =
  16741. {
  16742. // sticky组件
  16743. sticky: {
  16744. offsetTop: 0,
  16745. customNavHeight: 0,
  16746. disabled: false,
  16747. bgColor: 'transparent',
  16748. zIndex: '',
  16749. index: '' } };exports.default = _default;
  16750. /***/ }),
  16751. /* 122 */
  16752. /*!******************************************************************************************!*\
  16753. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/subsection.js ***!
  16754. \******************************************************************************************/
  16755. /*! no static exports found */
  16756. /***/ (function(module, exports, __webpack_require__) {
  16757. "use strict";
  16758. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16759. * @Author : LQ
  16760. * @Description :
  16761. * @version : 1.0
  16762. * @Date : 2021-08-20 16:44:21
  16763. * @LastAuthor : LQ
  16764. * @lastTime : 2021-08-20 17:12:20
  16765. * @FilePath : /u-view2.0/uview-ui/libs/config/props/subsection.js
  16766. */var _default =
  16767. {
  16768. // subsection组件
  16769. subsection: {
  16770. list: [],
  16771. current: 0,
  16772. activeColor: '#3c9cff',
  16773. inactiveColor: '#303133',
  16774. mode: 'button',
  16775. fontSize: 12,
  16776. bold: true,
  16777. bgColor: '#eeeeef',
  16778. keyName: 'name' } };exports.default = _default;
  16779. /***/ }),
  16780. /* 123 */
  16781. /*!*******************************************************************************************!*\
  16782. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/swipeAction.js ***!
  16783. \*******************************************************************************************/
  16784. /*! no static exports found */
  16785. /***/ (function(module, exports, __webpack_require__) {
  16786. "use strict";
  16787. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16788. * @Author : LQ
  16789. * @Description :
  16790. * @version : 1.0
  16791. * @Date : 2021-08-20 16:44:21
  16792. * @LastAuthor : LQ
  16793. * @lastTime : 2021-08-20 17:00:42
  16794. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeAction.js
  16795. */var _default =
  16796. {
  16797. // swipe-action组件
  16798. swipeAction: {
  16799. autoClose: true } };exports.default = _default;
  16800. /***/ }),
  16801. /* 124 */
  16802. /*!***********************************************************************************************!*\
  16803. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/swipeActionItem.js ***!
  16804. \***********************************************************************************************/
  16805. /*! no static exports found */
  16806. /***/ (function(module, exports, __webpack_require__) {
  16807. "use strict";
  16808. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16809. * @Author : LQ
  16810. * @Description :
  16811. * @version : 1.0
  16812. * @Date : 2021-08-20 16:44:21
  16813. * @LastAuthor : LQ
  16814. * @lastTime : 2021-08-20 17:01:13
  16815. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeActionItem.js
  16816. */var _default =
  16817. {
  16818. // swipeActionItem 组件
  16819. swipeActionItem: {
  16820. show: false,
  16821. name: '',
  16822. disabled: false,
  16823. threshold: 20,
  16824. autoClose: true,
  16825. options: [],
  16826. duration: 300 } };exports.default = _default;
  16827. /***/ }),
  16828. /* 125 */
  16829. /*!**************************************************************************************!*\
  16830. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/swiper.js ***!
  16831. \**************************************************************************************/
  16832. /*! no static exports found */
  16833. /***/ (function(module, exports, __webpack_require__) {
  16834. "use strict";
  16835. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16836. * @Author : LQ
  16837. * @Description :
  16838. * @version : 1.0
  16839. * @Date : 2021-08-20 16:44:21
  16840. * @LastAuthor : LQ
  16841. * @lastTime : 2021-08-20 17:21:38
  16842. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiper.js
  16843. */var _default =
  16844. {
  16845. // swiper 组件
  16846. swiper: {
  16847. list: function list() {return [];},
  16848. indicator: false,
  16849. indicatorActiveColor: '#FFFFFF',
  16850. indicatorInactiveColor: 'rgba(255, 255, 255, 0.35)',
  16851. indicatorStyle: '',
  16852. indicatorMode: 'line',
  16853. autoplay: true,
  16854. current: 0,
  16855. currentItemId: '',
  16856. interval: 3000,
  16857. duration: 300,
  16858. circular: false,
  16859. previousMargin: 0,
  16860. nextMargin: 0,
  16861. acceleration: false,
  16862. displayMultipleItems: 1,
  16863. easingFunction: 'default',
  16864. keyName: 'url',
  16865. imgMode: 'aspectFill',
  16866. height: 130,
  16867. bgColor: '#f3f4f6',
  16868. radius: 4,
  16869. loading: false,
  16870. showTitle: false } };exports.default = _default;
  16871. /***/ }),
  16872. /* 126 */
  16873. /*!************************************************************************************************!*\
  16874. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/swipterIndicator.js ***!
  16875. \************************************************************************************************/
  16876. /*! no static exports found */
  16877. /***/ (function(module, exports, __webpack_require__) {
  16878. "use strict";
  16879. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16880. * @Author : LQ
  16881. * @Description :
  16882. * @version : 1.0
  16883. * @Date : 2021-08-20 16:44:21
  16884. * @LastAuthor : LQ
  16885. * @lastTime : 2021-08-20 17:22:07
  16886. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiperIndicator.js
  16887. */var _default =
  16888. {
  16889. // swiperIndicator 组件
  16890. swiperIndicator: {
  16891. length: 0,
  16892. current: 0,
  16893. indicatorActiveColor: '',
  16894. indicatorInactiveColor: '',
  16895. indicatorMode: 'line' } };exports.default = _default;
  16896. /***/ }),
  16897. /* 127 */
  16898. /*!**************************************************************************************!*\
  16899. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/switch.js ***!
  16900. \**************************************************************************************/
  16901. /*! no static exports found */
  16902. /***/ (function(module, exports, __webpack_require__) {
  16903. "use strict";
  16904. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16905. * @Author : LQ
  16906. * @Description :
  16907. * @version : 1.0
  16908. * @Date : 2021-08-20 16:44:21
  16909. * @LastAuthor : LQ
  16910. * @lastTime : 2021-08-20 17:22:24
  16911. * @FilePath : /u-view2.0/uview-ui/libs/config/props/switch.js
  16912. */var _default =
  16913. {
  16914. // switch
  16915. switch: {
  16916. loading: false,
  16917. disabled: false,
  16918. size: 25,
  16919. activeColor: '#2979ff',
  16920. inactiveColor: '#ffffff',
  16921. value: false,
  16922. activeValue: true,
  16923. inactiveValue: false,
  16924. asyncChange: false,
  16925. space: 0 } };exports.default = _default;
  16926. /***/ }),
  16927. /* 128 */
  16928. /*!**************************************************************************************!*\
  16929. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/tabbar.js ***!
  16930. \**************************************************************************************/
  16931. /*! no static exports found */
  16932. /***/ (function(module, exports, __webpack_require__) {
  16933. "use strict";
  16934. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16935. * @Author : LQ
  16936. * @Description :
  16937. * @version : 1.0
  16938. * @Date : 2021-08-20 16:44:21
  16939. * @LastAuthor : LQ
  16940. * @lastTime : 2021-08-20 17:22:40
  16941. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbar.js
  16942. */var _default =
  16943. {
  16944. // tabbar
  16945. tabbar: {
  16946. value: null,
  16947. safeAreaInsetBottom: true,
  16948. border: true,
  16949. zIndex: 1,
  16950. activeColor: '#1989fa',
  16951. inactiveColor: '#7d7e80',
  16952. fixed: true,
  16953. placeholder: true } };exports.default = _default;
  16954. /***/ }),
  16955. /* 129 */
  16956. /*!******************************************************************************************!*\
  16957. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/tabbarItem.js ***!
  16958. \******************************************************************************************/
  16959. /*! no static exports found */
  16960. /***/ (function(module, exports, __webpack_require__) {
  16961. "use strict";
  16962. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16963. * @Author : LQ
  16964. * @Description :
  16965. * @version : 1.0
  16966. * @Date : 2021-08-20 16:44:21
  16967. * @LastAuthor : LQ
  16968. * @lastTime : 2021-08-20 17:22:55
  16969. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbarItem.js
  16970. */var _default =
  16971. {
  16972. //
  16973. tabbarItem: {
  16974. name: null,
  16975. icon: '',
  16976. badge: null,
  16977. dot: false,
  16978. text: '',
  16979. badgeStyle: 'top: 6px;right:2px;' } };exports.default = _default;
  16980. /***/ }),
  16981. /* 130 */
  16982. /*!************************************************************************************!*\
  16983. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/tabs.js ***!
  16984. \************************************************************************************/
  16985. /*! no static exports found */
  16986. /***/ (function(module, exports, __webpack_require__) {
  16987. "use strict";
  16988. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16989. * @Author : LQ
  16990. * @Description :
  16991. * @version : 1.0
  16992. * @Date : 2021-08-20 16:44:21
  16993. * @LastAuthor : LQ
  16994. * @lastTime : 2021-08-20 17:23:14
  16995. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabs.js
  16996. */var _default =
  16997. {
  16998. //
  16999. tabs: {
  17000. duration: 300,
  17001. list: function list() {return [];},
  17002. lineColor: '#3c9cff',
  17003. activeStyle: function activeStyle() {return {
  17004. color: '#303133' };},
  17005. inactiveStyle: function inactiveStyle() {return {
  17006. color: '#606266' };},
  17007. lineWidth: 20,
  17008. lineHeight: 3,
  17009. lineBgSize: 'cover',
  17010. itemStyle: function itemStyle() {return {
  17011. height: '44px' };},
  17012. scrollable: true,
  17013. current: 0,
  17014. keyName: 'name' } };exports.default = _default;
  17015. /***/ }),
  17016. /* 131 */
  17017. /*!***********************************************************************************!*\
  17018. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/tag.js ***!
  17019. \***********************************************************************************/
  17020. /*! no static exports found */
  17021. /***/ (function(module, exports, __webpack_require__) {
  17022. "use strict";
  17023. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17024. * @Author : LQ
  17025. * @Description :
  17026. * @version : 1.0
  17027. * @Date : 2021-08-20 16:44:21
  17028. * @LastAuthor : LQ
  17029. * @lastTime : 2021-08-20 17:23:37
  17030. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tag.js
  17031. */var _default =
  17032. {
  17033. // tag 组件
  17034. tag: {
  17035. type: 'primary',
  17036. disabled: false,
  17037. size: 'medium',
  17038. shape: 'square',
  17039. text: '',
  17040. bgColor: '',
  17041. color: '',
  17042. borderColor: '',
  17043. closeColor: '#C6C7CB',
  17044. name: '',
  17045. plainFill: false,
  17046. plain: false,
  17047. closable: false,
  17048. show: true,
  17049. icon: '' } };exports.default = _default;
  17050. /***/ }),
  17051. /* 132 */
  17052. /*!************************************************************************************!*\
  17053. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/text.js ***!
  17054. \************************************************************************************/
  17055. /*! no static exports found */
  17056. /***/ (function(module, exports, __webpack_require__) {
  17057. "use strict";
  17058. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17059. * @Author : LQ
  17060. * @Description :
  17061. * @version : 1.0
  17062. * @Date : 2021-08-20 16:44:21
  17063. * @LastAuthor : LQ
  17064. * @lastTime : 2021-08-20 17:23:58
  17065. * @FilePath : /u-view2.0/uview-ui/libs/config/props/text.js
  17066. */var _default =
  17067. {
  17068. // text 组件
  17069. text: {
  17070. type: '',
  17071. show: true,
  17072. text: '',
  17073. prefixIcon: '',
  17074. suffixIcon: '',
  17075. mode: '',
  17076. href: '',
  17077. format: '',
  17078. call: false,
  17079. openType: '',
  17080. bold: false,
  17081. block: false,
  17082. lines: '',
  17083. color: '#303133',
  17084. size: 15,
  17085. iconStyle: function iconStyle() {return {
  17086. fontSize: '15px' };},
  17087. decoration: 'none',
  17088. margin: 0,
  17089. lineHeight: '',
  17090. align: 'left',
  17091. wordWrap: 'normal' } };exports.default = _default;
  17092. /***/ }),
  17093. /* 133 */
  17094. /*!****************************************************************************************!*\
  17095. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/textarea.js ***!
  17096. \****************************************************************************************/
  17097. /*! no static exports found */
  17098. /***/ (function(module, exports, __webpack_require__) {
  17099. "use strict";
  17100. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17101. * @Author : LQ
  17102. * @Description :
  17103. * @version : 1.0
  17104. * @Date : 2021-08-20 16:44:21
  17105. * @LastAuthor : LQ
  17106. * @lastTime : 2021-08-20 17:24:32
  17107. * @FilePath : /u-view2.0/uview-ui/libs/config/props/textarea.js
  17108. */var _default =
  17109. {
  17110. // textarea 组件
  17111. textarea: {
  17112. value: '',
  17113. placeholder: '',
  17114. placeholderClass: 'textarea-placeholder',
  17115. placeholderStyle: 'color: #c0c4cc',
  17116. height: 70,
  17117. confirmType: '',
  17118. disabled: false,
  17119. count: false,
  17120. focus: false,
  17121. autoHeight: false,
  17122. fixed: false,
  17123. cursorSpacing: 0,
  17124. cursor: '',
  17125. showConfirmBar: true,
  17126. selectionStart: -1,
  17127. selectionEnd: -1,
  17128. adjustPosition: true,
  17129. disableDefaultPadding: false,
  17130. holdKeyboard: false,
  17131. maxlength: 140,
  17132. border: 'surround',
  17133. formatter: null } };exports.default = _default;
  17134. /***/ }),
  17135. /* 134 */
  17136. /*!*************************************************************************************!*\
  17137. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/toast.js ***!
  17138. \*************************************************************************************/
  17139. /*! no static exports found */
  17140. /***/ (function(module, exports, __webpack_require__) {
  17141. "use strict";
  17142. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17143. * @Author : LQ
  17144. * @Description :
  17145. * @version : 1.0
  17146. * @Date : 2021-08-20 16:44:21
  17147. * @LastAuthor : LQ
  17148. * @lastTime : 2021-08-20 17:07:07
  17149. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toast.js
  17150. */var _default =
  17151. {
  17152. // toast组件
  17153. toast: {
  17154. zIndex: 10090,
  17155. loading: false,
  17156. text: '',
  17157. icon: '',
  17158. type: '',
  17159. loadingMode: '',
  17160. show: '',
  17161. overlay: false,
  17162. position: 'center',
  17163. params: function params() {},
  17164. duration: 2000,
  17165. isTab: false,
  17166. url: '',
  17167. callback: null,
  17168. back: false } };exports.default = _default;
  17169. /***/ }),
  17170. /* 135 */
  17171. /*!***************************************************************************************!*\
  17172. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/toolbar.js ***!
  17173. \***************************************************************************************/
  17174. /*! no static exports found */
  17175. /***/ (function(module, exports, __webpack_require__) {
  17176. "use strict";
  17177. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17178. * @Author : LQ
  17179. * @Description :
  17180. * @version : 1.0
  17181. * @Date : 2021-08-20 16:44:21
  17182. * @LastAuthor : LQ
  17183. * @lastTime : 2021-08-20 17:24:55
  17184. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toolbar.js
  17185. */var _default =
  17186. {
  17187. // toolbar 组件
  17188. toolbar: {
  17189. show: true,
  17190. cancelText: '取消',
  17191. confirmText: '确认',
  17192. cancelColor: '#909193',
  17193. confirmColor: '#3c9cff',
  17194. title: '' } };exports.default = _default;
  17195. /***/ }),
  17196. /* 136 */
  17197. /*!***************************************************************************************!*\
  17198. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/tooltip.js ***!
  17199. \***************************************************************************************/
  17200. /*! no static exports found */
  17201. /***/ (function(module, exports, __webpack_require__) {
  17202. "use strict";
  17203. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17204. * @Author : LQ
  17205. * @Description :
  17206. * @version : 1.0
  17207. * @Date : 2021-08-20 16:44:21
  17208. * @LastAuthor : LQ
  17209. * @lastTime : 2021-08-20 17:25:14
  17210. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tooltip.js
  17211. */var _default =
  17212. {
  17213. // tooltip 组件
  17214. tooltip: {
  17215. text: '',
  17216. copyText: '',
  17217. size: 14,
  17218. color: '#606266',
  17219. bgColor: 'transparent',
  17220. direction: 'top',
  17221. zIndex: 10071,
  17222. showCopy: true,
  17223. buttons: function buttons() {return [];},
  17224. overlay: true,
  17225. showToast: true } };exports.default = _default;
  17226. /***/ }),
  17227. /* 137 */
  17228. /*!******************************************************************************************!*\
  17229. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/transition.js ***!
  17230. \******************************************************************************************/
  17231. /*! no static exports found */
  17232. /***/ (function(module, exports, __webpack_require__) {
  17233. "use strict";
  17234. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17235. * @Author : LQ
  17236. * @Description :
  17237. * @version : 1.0
  17238. * @Date : 2021-08-20 16:44:21
  17239. * @LastAuthor : LQ
  17240. * @lastTime : 2021-08-20 16:59:00
  17241. * @FilePath : /u-view2.0/uview-ui/libs/config/props/transition.js
  17242. */var _default =
  17243. {
  17244. // transition动画组件的props
  17245. transition: {
  17246. show: false,
  17247. mode: 'fade',
  17248. duration: '300',
  17249. timingFunction: 'ease-out' } };exports.default = _default;
  17250. /***/ }),
  17251. /* 138 */
  17252. /*!**************************************************************************************!*\
  17253. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/props/upload.js ***!
  17254. \**************************************************************************************/
  17255. /*! no static exports found */
  17256. /***/ (function(module, exports, __webpack_require__) {
  17257. "use strict";
  17258. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17259. * @Author : LQ
  17260. * @Description :
  17261. * @version : 1.0
  17262. * @Date : 2021-08-20 16:44:21
  17263. * @LastAuthor : LQ
  17264. * @lastTime : 2021-08-20 17:09:50
  17265. * @FilePath : /u-view2.0/uview-ui/libs/config/props/upload.js
  17266. */var _default =
  17267. {
  17268. // upload组件
  17269. upload: {
  17270. accept: 'image',
  17271. capture: function capture() {return ['album', 'camera'];},
  17272. compressed: true,
  17273. camera: 'back',
  17274. maxDuration: 60,
  17275. uploadIcon: 'camera-fill',
  17276. uploadIconColor: '#D3D4D6',
  17277. useBeforeRead: false,
  17278. previewFullImage: true,
  17279. maxCount: 52,
  17280. disabled: false,
  17281. imageMode: 'aspectFill',
  17282. name: '',
  17283. sizeType: function sizeType() {return ['original', 'compressed'];},
  17284. multiple: false,
  17285. deletable: true,
  17286. maxSize: Number.MAX_VALUE,
  17287. fileList: function fileList() {return [];},
  17288. uploadText: '',
  17289. width: 80,
  17290. height: 80,
  17291. previewImage: true } };exports.default = _default;
  17292. /***/ }),
  17293. /* 139 */
  17294. /*!********************************************************************************!*\
  17295. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/config/zIndex.js ***!
  17296. \********************************************************************************/
  17297. /*! no static exports found */
  17298. /***/ (function(module, exports, __webpack_require__) {
  17299. "use strict";
  17300. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; // uniapp在H5中各API的z-index值如下:
  17301. /**
  17302. * actionsheet: 999
  17303. * modal: 999
  17304. * navigate: 998
  17305. * tabbar: 998
  17306. * toast: 999
  17307. */var _default =
  17308. {
  17309. toast: 10090,
  17310. noNetwork: 10080,
  17311. // popup包含popup,actionsheet,keyboard,picker的值
  17312. popup: 10075,
  17313. mask: 10070,
  17314. navbar: 980,
  17315. topTips: 975,
  17316. sticky: 970,
  17317. indexListSticky: 965 };exports.default = _default;
  17318. /***/ }),
  17319. /* 140 */
  17320. /*!************************************************************************************!*\
  17321. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/function/platform.js ***!
  17322. \************************************************************************************/
  17323. /*! no static exports found */
  17324. /***/ (function(module, exports, __webpack_require__) {
  17325. "use strict";
  17326. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /**
  17327. * 注意:
  17328. * 此部分内容,在vue-cli模式下,需要在vue.config.js加入如下内容才有效:
  17329. * module.exports = {
  17330. * transpileDependencies: ['uview-v2']
  17331. * }
  17332. */
  17333. var platform = 'none';
  17334. platform = 'vue2';
  17335. platform = 'weixin';
  17336. platform = 'mp';var _default =
  17337. platform;exports.default = _default;
  17338. /***/ }),
  17339. /* 141 */
  17340. /*!****************************************************!*\
  17341. !*** C:/shop-program/alhj/alhj-wx/http/request.js ***!
  17342. \****************************************************/
  17343. /*! no static exports found */
  17344. /***/ (function(module, exports, __webpack_require__) {
  17345. "use strict";
  17346. /* WEBPACK VAR INJECTION */(function(uni) {
  17347. var _baseUrl = __webpack_require__(/*! ./baseUrl */ 16); // 此vm参数为页面的实例,可以通过它引用vuex中的变量
  17348. module.exports = function (vm) {
  17349. // 初始化请求配置
  17350. uni.$u.http.setConfig(function (config) {
  17351. /* config 为默认全局配置*/
  17352. config.baseURL = _baseUrl.mainUrl; //'http://t28.9026.com'; /* 根域名 */ //本地测试环境
  17353. //config.baseURL = 'http://gift.cn'; /* 根域名 */ //演示测试环境
  17354. //config.baseURL = 'http://gift.cn'; /* 根域名 */ //生成环境
  17355. return config;
  17356. });
  17357. // 请求拦截
  17358. uni.$u.http.interceptors.request.use(function (config) {// 可使用async await 做异步操作
  17359. var token = uni.getStorageSync("token");
  17360. config.header = {
  17361. // "User-Agent":"apifox/1.0.0 (https://www.apifox.cn)",
  17362. "Content-Type": "application/json",
  17363. // ...config.header,
  17364. // Authorization: `Bearer ${vm.$store.state.token}`
  17365. Authorization: token };
  17366. return config;
  17367. }, function (config) {// 可使用async await 做异步操作
  17368. return Promise.reject(config);
  17369. });
  17370. // 响应拦截
  17371. uni.$u.http.interceptors.response.use(function (response) {var _response$config;
  17372. /* 对响应成功做点什么 可使用async await 做异步操作*/
  17373. var data = response.data;
  17374. var header = response.header;
  17375. // if (header.token) {
  17376. // vm.$store.commit('user/setToken', header.token)
  17377. // }
  17378. //
  17379. // 自定义参数
  17380. var custom = (_response$config = response.config) === null || _response$config === void 0 ? void 0 : _response$config.custom;
  17381. if (data.code !== 200) {
  17382. if (data.code == 400) {
  17383. vm.$store.commit('setToken', null);
  17384. return Promise.reject(data);
  17385. }
  17386. // 如果没有显式定义custom的toast参数为false的话,默认对报错进行toast弹出提示
  17387. if (custom.toast !== false) {
  17388. //uni.$u.toast(data.message)
  17389. }
  17390. return Promise.reject(data);
  17391. // 如果需要catch返回,则进行reject
  17392. if (custom === null || custom === void 0 ? void 0 : custom.catch) {
  17393. return Promise.reject(data);
  17394. } else {
  17395. // 否则返回一个pending中的promise,请求不会进入catch中
  17396. return new Promise(function () {});
  17397. }
  17398. }
  17399. return data.data === undefined ? {} : data.data;
  17400. }, function (response) {
  17401. // 对响应错误做点什么 (statusCode !== 200)
  17402. return Promise.reject(response);
  17403. });
  17404. };
  17405. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  17406. /***/ }),
  17407. /* 142 */,
  17408. /* 143 */,
  17409. /* 144 */,
  17410. /* 145 */,
  17411. /* 146 */,
  17412. /* 147 */,
  17413. /* 148 */,
  17414. /* 149 */,
  17415. /* 150 */,
  17416. /* 151 */,
  17417. /* 152 */,
  17418. /* 153 */,
  17419. /* 154 */,
  17420. /* 155 */,
  17421. /* 156 */,
  17422. /* 157 */,
  17423. /* 158 */,
  17424. /* 159 */,
  17425. /* 160 */,
  17426. /* 161 */,
  17427. /* 162 */,
  17428. /* 163 */,
  17429. /* 164 */,
  17430. /* 165 */,
  17431. /* 166 */,
  17432. /* 167 */,
  17433. /* 168 */,
  17434. /* 169 */,
  17435. /* 170 */,
  17436. /* 171 */,
  17437. /* 172 */,
  17438. /* 173 */,
  17439. /* 174 */,
  17440. /* 175 */,
  17441. /* 176 */,
  17442. /* 177 */,
  17443. /* 178 */,
  17444. /* 179 */,
  17445. /* 180 */,
  17446. /* 181 */,
  17447. /* 182 */,
  17448. /* 183 */,
  17449. /* 184 */,
  17450. /* 185 */,
  17451. /* 186 */,
  17452. /* 187 */,
  17453. /* 188 */,
  17454. /* 189 */,
  17455. /* 190 */,
  17456. /* 191 */,
  17457. /* 192 */,
  17458. /* 193 */,
  17459. /* 194 */,
  17460. /* 195 */,
  17461. /* 196 */,
  17462. /* 197 */,
  17463. /* 198 */,
  17464. /* 199 */,
  17465. /* 200 */,
  17466. /* 201 */,
  17467. /* 202 */,
  17468. /* 203 */,
  17469. /* 204 */,
  17470. /* 205 */,
  17471. /* 206 */,
  17472. /* 207 */,
  17473. /* 208 */,
  17474. /* 209 */,
  17475. /* 210 */,
  17476. /* 211 */,
  17477. /* 212 */,
  17478. /* 213 */,
  17479. /* 214 */,
  17480. /* 215 */,
  17481. /* 216 */,
  17482. /* 217 */,
  17483. /* 218 */,
  17484. /* 219 */,
  17485. /* 220 */,
  17486. /* 221 */,
  17487. /* 222 */,
  17488. /* 223 */,
  17489. /* 224 */,
  17490. /* 225 */,
  17491. /* 226 */,
  17492. /* 227 */,
  17493. /* 228 */,
  17494. /* 229 */,
  17495. /* 230 */,
  17496. /* 231 */,
  17497. /* 232 */,
  17498. /* 233 */,
  17499. /* 234 */,
  17500. /* 235 */,
  17501. /* 236 */,
  17502. /* 237 */,
  17503. /* 238 */,
  17504. /* 239 */,
  17505. /* 240 */,
  17506. /* 241 */,
  17507. /* 242 */,
  17508. /* 243 */,
  17509. /* 244 */,
  17510. /* 245 */,
  17511. /* 246 */,
  17512. /* 247 */,
  17513. /* 248 */,
  17514. /* 249 */,
  17515. /* 250 */,
  17516. /* 251 */,
  17517. /* 252 */,
  17518. /* 253 */,
  17519. /* 254 */,
  17520. /* 255 */,
  17521. /* 256 */,
  17522. /* 257 */,
  17523. /* 258 */,
  17524. /* 259 */,
  17525. /* 260 */,
  17526. /* 261 */,
  17527. /* 262 */,
  17528. /* 263 */,
  17529. /* 264 */,
  17530. /* 265 */,
  17531. /* 266 */,
  17532. /* 267 */,
  17533. /* 268 */,
  17534. /* 269 */,
  17535. /* 270 */,
  17536. /* 271 */,
  17537. /* 272 */,
  17538. /* 273 */,
  17539. /* 274 */,
  17540. /* 275 */,
  17541. /* 276 */,
  17542. /* 277 */,
  17543. /* 278 */,
  17544. /* 279 */,
  17545. /* 280 */,
  17546. /* 281 */,
  17547. /* 282 */,
  17548. /* 283 */,
  17549. /* 284 */,
  17550. /* 285 */,
  17551. /* 286 */,
  17552. /* 287 */,
  17553. /* 288 */,
  17554. /* 289 */,
  17555. /* 290 */,
  17556. /* 291 */,
  17557. /* 292 */,
  17558. /* 293 */,
  17559. /* 294 */,
  17560. /* 295 */,
  17561. /* 296 */,
  17562. /* 297 */,
  17563. /* 298 */,
  17564. /* 299 */,
  17565. /* 300 */,
  17566. /* 301 */,
  17567. /* 302 */,
  17568. /* 303 */,
  17569. /* 304 */,
  17570. /* 305 */,
  17571. /* 306 */,
  17572. /* 307 */,
  17573. /* 308 */,
  17574. /* 309 */,
  17575. /* 310 */,
  17576. /* 311 */,
  17577. /* 312 */,
  17578. /* 313 */,
  17579. /* 314 */,
  17580. /* 315 */,
  17581. /* 316 */,
  17582. /* 317 */,
  17583. /* 318 */,
  17584. /* 319 */,
  17585. /* 320 */,
  17586. /* 321 */,
  17587. /* 322 */,
  17588. /* 323 */,
  17589. /* 324 */,
  17590. /* 325 */,
  17591. /* 326 */,
  17592. /* 327 */,
  17593. /* 328 */,
  17594. /* 329 */,
  17595. /* 330 */,
  17596. /* 331 */,
  17597. /* 332 */,
  17598. /* 333 */,
  17599. /* 334 */,
  17600. /* 335 */
  17601. /*!***********************************************************************************************!*\
  17602. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/components/u-checkbox-group/props.js ***!
  17603. \***********************************************************************************************/
  17604. /*! no static exports found */
  17605. /***/ (function(module, exports, __webpack_require__) {
  17606. "use strict";
  17607. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  17608. props: {
  17609. // 标识符
  17610. name: {
  17611. type: String,
  17612. default: uni.$u.props.checkboxGroup.name },
  17613. // 绑定的值
  17614. value: {
  17615. type: Array,
  17616. default: uni.$u.props.checkboxGroup.value },
  17617. // 形状,circle-圆形,square-方形
  17618. shape: {
  17619. type: String,
  17620. default: uni.$u.props.checkboxGroup.shape },
  17621. // 是否禁用全部checkbox
  17622. disabled: {
  17623. type: Boolean,
  17624. default: uni.$u.props.checkboxGroup.disabled },
  17625. // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
  17626. activeColor: {
  17627. type: String,
  17628. default: uni.$u.props.checkboxGroup.activeColor },
  17629. // 未选中的颜色
  17630. inactiveColor: {
  17631. type: String,
  17632. default: uni.$u.props.checkboxGroup.inactiveColor },
  17633. // 整个组件的尺寸,默认px
  17634. size: {
  17635. type: [String, Number],
  17636. default: uni.$u.props.checkboxGroup.size },
  17637. // 布局方式,row-横向,column-纵向
  17638. placement: {
  17639. type: String,
  17640. default: uni.$u.props.checkboxGroup.placement },
  17641. // label的字体大小,px单位
  17642. labelSize: {
  17643. type: [String, Number],
  17644. default: uni.$u.props.checkboxGroup.labelSize },
  17645. // label的字体颜色
  17646. labelColor: {
  17647. type: [String],
  17648. default: uni.$u.props.checkboxGroup.labelColor },
  17649. // 是否禁止点击文本操作
  17650. labelDisabled: {
  17651. type: Boolean,
  17652. default: uni.$u.props.checkboxGroup.labelDisabled },
  17653. // 图标颜色
  17654. iconColor: {
  17655. type: String,
  17656. default: uni.$u.props.checkboxGroup.iconColor },
  17657. // 图标的大小,单位px
  17658. iconSize: {
  17659. type: [String, Number],
  17660. default: uni.$u.props.checkboxGroup.iconSize },
  17661. // 勾选图标的对齐方式,left-左边,right-右边
  17662. iconPlacement: {
  17663. type: String,
  17664. default: uni.$u.props.checkboxGroup.iconPlacement },
  17665. // 竖向配列时,是否显示下划线
  17666. borderBottom: {
  17667. type: Boolean,
  17668. default: uni.$u.props.checkboxGroup.borderBottom } } };exports.default = _default;
  17669. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  17670. /***/ }),
  17671. /* 336 */,
  17672. /* 337 */,
  17673. /* 338 */,
  17674. /* 339 */,
  17675. /* 340 */,
  17676. /* 341 */,
  17677. /* 342 */,
  17678. /* 343 */
  17679. /*!*****************************************************************************************!*\
  17680. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/components/u-checkbox/props.js ***!
  17681. \*****************************************************************************************/
  17682. /*! no static exports found */
  17683. /***/ (function(module, exports, __webpack_require__) {
  17684. "use strict";
  17685. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  17686. props: {
  17687. // checkbox的名称
  17688. name: {
  17689. type: [String, Number, Boolean],
  17690. default: uni.$u.props.checkbox.name },
  17691. // 形状,square为方形,circle为圆型
  17692. shape: {
  17693. type: String,
  17694. default: uni.$u.props.checkbox.shape },
  17695. // 整体的大小
  17696. size: {
  17697. type: [String, Number],
  17698. default: uni.$u.props.checkbox.size },
  17699. // 是否默认选中
  17700. checked: {
  17701. type: Boolean,
  17702. default: uni.$u.props.checkbox.checked },
  17703. // 是否禁用
  17704. disabled: {
  17705. type: [String, Boolean],
  17706. default: uni.$u.props.checkbox.disabled },
  17707. // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
  17708. activeColor: {
  17709. type: String,
  17710. default: uni.$u.props.checkbox.activeColor },
  17711. // 未选中的颜色
  17712. inactiveColor: {
  17713. type: String,
  17714. default: uni.$u.props.checkbox.inactiveColor },
  17715. // 图标的大小,单位px
  17716. iconSize: {
  17717. type: [String, Number],
  17718. default: uni.$u.props.checkbox.iconSize },
  17719. // 图标颜色
  17720. iconColor: {
  17721. type: String,
  17722. default: uni.$u.props.checkbox.iconColor },
  17723. // label提示文字,因为nvue下,直接slot进来的文字,由于特殊的结构,无法修改样式
  17724. label: {
  17725. type: [String, Number],
  17726. default: uni.$u.props.checkbox.label },
  17727. // label的字体大小,px单位
  17728. labelSize: {
  17729. type: [String, Number],
  17730. default: uni.$u.props.checkbox.labelSize },
  17731. // label的颜色
  17732. labelColor: {
  17733. type: String,
  17734. default: uni.$u.props.checkbox.labelColor },
  17735. // 是否禁止点击提示语选中复选框
  17736. labelDisabled: {
  17737. type: [String, Boolean],
  17738. default: uni.$u.props.checkbox.labelDisabled } } };exports.default = _default;
  17739. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  17740. /***/ }),
  17741. /* 344 */,
  17742. /* 345 */,
  17743. /* 346 */,
  17744. /* 347 */,
  17745. /* 348 */,
  17746. /* 349 */,
  17747. /* 350 */,
  17748. /* 351 */
  17749. /*!**************************************************************************************!*\
  17750. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/components/u-popup/props.js ***!
  17751. \**************************************************************************************/
  17752. /*! no static exports found */
  17753. /***/ (function(module, exports, __webpack_require__) {
  17754. "use strict";
  17755. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  17756. props: {
  17757. // 是否展示弹窗
  17758. show: {
  17759. type: Boolean,
  17760. default: uni.$u.props.popup.show },
  17761. // 是否显示遮罩
  17762. overlay: {
  17763. type: Boolean,
  17764. default: uni.$u.props.popup.overlay },
  17765. // 弹出的方向,可选值为 top bottom right left center
  17766. mode: {
  17767. type: String,
  17768. default: uni.$u.props.popup.mode },
  17769. // 动画时长,单位ms
  17770. duration: {
  17771. type: [String, Number],
  17772. default: uni.$u.props.popup.duration },
  17773. // 是否显示关闭图标
  17774. closeable: {
  17775. type: Boolean,
  17776. default: uni.$u.props.popup.closeable },
  17777. // 自定义遮罩的样式
  17778. overlayStyle: {
  17779. type: [Object, String],
  17780. default: uni.$u.props.popup.overlayStyle },
  17781. // 点击遮罩是否关闭弹窗
  17782. closeOnClickOverlay: {
  17783. type: Boolean,
  17784. default: uni.$u.props.popup.closeOnClickOverlay },
  17785. // 层级
  17786. zIndex: {
  17787. type: [String, Number],
  17788. default: uni.$u.props.popup.zIndex },
  17789. // 是否为iPhoneX留出底部安全距离
  17790. safeAreaInsetBottom: {
  17791. type: Boolean,
  17792. default: uni.$u.props.popup.safeAreaInsetBottom },
  17793. // 是否留出顶部安全距离(状态栏高度)
  17794. safeAreaInsetTop: {
  17795. type: Boolean,
  17796. default: uni.$u.props.popup.safeAreaInsetTop },
  17797. // 自定义关闭图标位置,top-left为左上角,top-right为右上角,bottom-left为左下角,bottom-right为右下角
  17798. closeIconPos: {
  17799. type: String,
  17800. default: uni.$u.props.popup.closeIconPos },
  17801. // 是否显示圆角
  17802. round: {
  17803. type: [Boolean, String, Number],
  17804. default: uni.$u.props.popup.round },
  17805. // mode=center,也即中部弹出时,是否使用缩放模式
  17806. zoom: {
  17807. type: Boolean,
  17808. default: uni.$u.props.popup.zoom },
  17809. // 弹窗背景色,设置为transparent可去除白色背景
  17810. bgColor: {
  17811. type: String,
  17812. default: uni.$u.props.popup.bgColor },
  17813. // 遮罩的透明度,0-1之间
  17814. overlayOpacity: {
  17815. type: [Number, String],
  17816. default: uni.$u.props.popup.overlayOpacity } } };exports.default = _default;
  17817. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  17818. /***/ }),
  17819. /* 352 */,
  17820. /* 353 */,
  17821. /* 354 */,
  17822. /* 355 */,
  17823. /* 356 */,
  17824. /* 357 */,
  17825. /* 358 */,
  17826. /* 359 */
  17827. /*!*************************************************************************************!*\
  17828. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/components/u-icon/icons.js ***!
  17829. \*************************************************************************************/
  17830. /*! no static exports found */
  17831. /***/ (function(module, exports, __webpack_require__) {
  17832. "use strict";
  17833. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  17834. 'uicon-level': "\uE693",
  17835. 'uicon-column-line': "\uE68E",
  17836. 'uicon-checkbox-mark': "\uE807",
  17837. 'uicon-folder': "\uE7F5",
  17838. 'uicon-movie': "\uE7F6",
  17839. 'uicon-star-fill': "\uE669",
  17840. 'uicon-star': "\uE65F",
  17841. 'uicon-phone-fill': "\uE64F",
  17842. 'uicon-phone': "\uE622",
  17843. 'uicon-apple-fill': "\uE881",
  17844. 'uicon-chrome-circle-fill': "\uE885",
  17845. 'uicon-backspace': "\uE67B",
  17846. 'uicon-attach': "\uE632",
  17847. 'uicon-cut': "\uE948",
  17848. 'uicon-empty-car': "\uE602",
  17849. 'uicon-empty-coupon': "\uE682",
  17850. 'uicon-empty-address': "\uE646",
  17851. 'uicon-empty-favor': "\uE67C",
  17852. 'uicon-empty-permission': "\uE686",
  17853. 'uicon-empty-news': "\uE687",
  17854. 'uicon-empty-search': "\uE664",
  17855. 'uicon-github-circle-fill': "\uE887",
  17856. 'uicon-rmb': "\uE608",
  17857. 'uicon-person-delete-fill': "\uE66A",
  17858. 'uicon-reload': "\uE788",
  17859. 'uicon-order': "\uE68F",
  17860. 'uicon-server-man': "\uE6BC",
  17861. 'uicon-search': "\uE62A",
  17862. 'uicon-fingerprint': "\uE955",
  17863. 'uicon-more-dot-fill': "\uE630",
  17864. 'uicon-scan': "\uE662",
  17865. 'uicon-share-square': "\uE60B",
  17866. 'uicon-map': "\uE61D",
  17867. 'uicon-map-fill': "\uE64E",
  17868. 'uicon-tags': "\uE629",
  17869. 'uicon-tags-fill': "\uE651",
  17870. 'uicon-bookmark-fill': "\uE63B",
  17871. 'uicon-bookmark': "\uE60A",
  17872. 'uicon-eye': "\uE613",
  17873. 'uicon-eye-fill': "\uE641",
  17874. 'uicon-mic': "\uE64A",
  17875. 'uicon-mic-off': "\uE649",
  17876. 'uicon-calendar': "\uE66E",
  17877. 'uicon-calendar-fill': "\uE634",
  17878. 'uicon-trash': "\uE623",
  17879. 'uicon-trash-fill': "\uE658",
  17880. 'uicon-play-left': "\uE66D",
  17881. 'uicon-play-right': "\uE610",
  17882. 'uicon-minus': "\uE618",
  17883. 'uicon-plus': "\uE62D",
  17884. 'uicon-info': "\uE653",
  17885. 'uicon-info-circle': "\uE7D2",
  17886. 'uicon-info-circle-fill': "\uE64B",
  17887. 'uicon-question': "\uE715",
  17888. 'uicon-error': "\uE6D3",
  17889. 'uicon-close': "\uE685",
  17890. 'uicon-checkmark': "\uE6A8",
  17891. 'uicon-android-circle-fill': "\uE67E",
  17892. 'uicon-android-fill': "\uE67D",
  17893. 'uicon-ie': "\uE87B",
  17894. 'uicon-IE-circle-fill': "\uE889",
  17895. 'uicon-google': "\uE87A",
  17896. 'uicon-google-circle-fill': "\uE88A",
  17897. 'uicon-setting-fill': "\uE872",
  17898. 'uicon-setting': "\uE61F",
  17899. 'uicon-minus-square-fill': "\uE855",
  17900. 'uicon-plus-square-fill': "\uE856",
  17901. 'uicon-heart': "\uE7DF",
  17902. 'uicon-heart-fill': "\uE851",
  17903. 'uicon-camera': "\uE7D7",
  17904. 'uicon-camera-fill': "\uE870",
  17905. 'uicon-more-circle': "\uE63E",
  17906. 'uicon-more-circle-fill': "\uE645",
  17907. 'uicon-chat': "\uE620",
  17908. 'uicon-chat-fill': "\uE61E",
  17909. 'uicon-bag-fill': "\uE617",
  17910. 'uicon-bag': "\uE619",
  17911. 'uicon-error-circle-fill': "\uE62C",
  17912. 'uicon-error-circle': "\uE624",
  17913. 'uicon-close-circle': "\uE63F",
  17914. 'uicon-close-circle-fill': "\uE637",
  17915. 'uicon-checkmark-circle': "\uE63D",
  17916. 'uicon-checkmark-circle-fill': "\uE635",
  17917. 'uicon-question-circle-fill': "\uE666",
  17918. 'uicon-question-circle': "\uE625",
  17919. 'uicon-share': "\uE631",
  17920. 'uicon-share-fill': "\uE65E",
  17921. 'uicon-shopping-cart': "\uE621",
  17922. 'uicon-shopping-cart-fill': "\uE65D",
  17923. 'uicon-bell': "\uE609",
  17924. 'uicon-bell-fill': "\uE640",
  17925. 'uicon-list': "\uE650",
  17926. 'uicon-list-dot': "\uE616",
  17927. 'uicon-zhihu': "\uE6BA",
  17928. 'uicon-zhihu-circle-fill': "\uE709",
  17929. 'uicon-zhifubao': "\uE6B9",
  17930. 'uicon-zhifubao-circle-fill': "\uE6B8",
  17931. 'uicon-weixin-circle-fill': "\uE6B1",
  17932. 'uicon-weixin-fill': "\uE6B2",
  17933. 'uicon-twitter-circle-fill': "\uE6AB",
  17934. 'uicon-twitter': "\uE6AA",
  17935. 'uicon-taobao-circle-fill': "\uE6A7",
  17936. 'uicon-taobao': "\uE6A6",
  17937. 'uicon-weibo-circle-fill': "\uE6A5",
  17938. 'uicon-weibo': "\uE6A4",
  17939. 'uicon-qq-fill': "\uE6A1",
  17940. 'uicon-qq-circle-fill': "\uE6A0",
  17941. 'uicon-moments-circel-fill': "\uE69A",
  17942. 'uicon-moments': "\uE69B",
  17943. 'uicon-qzone': "\uE695",
  17944. 'uicon-qzone-circle-fill': "\uE696",
  17945. 'uicon-baidu-circle-fill': "\uE680",
  17946. 'uicon-baidu': "\uE681",
  17947. 'uicon-facebook-circle-fill': "\uE68A",
  17948. 'uicon-facebook': "\uE689",
  17949. 'uicon-car': "\uE60C",
  17950. 'uicon-car-fill': "\uE636",
  17951. 'uicon-warning-fill': "\uE64D",
  17952. 'uicon-warning': "\uE694",
  17953. 'uicon-clock-fill': "\uE638",
  17954. 'uicon-clock': "\uE60F",
  17955. 'uicon-edit-pen': "\uE612",
  17956. 'uicon-edit-pen-fill': "\uE66B",
  17957. 'uicon-email': "\uE611",
  17958. 'uicon-email-fill': "\uE642",
  17959. 'uicon-minus-circle': "\uE61B",
  17960. 'uicon-minus-circle-fill': "\uE652",
  17961. 'uicon-plus-circle': "\uE62E",
  17962. 'uicon-plus-circle-fill': "\uE661",
  17963. 'uicon-file-text': "\uE663",
  17964. 'uicon-file-text-fill': "\uE665",
  17965. 'uicon-pushpin': "\uE7E3",
  17966. 'uicon-pushpin-fill': "\uE86E",
  17967. 'uicon-grid': "\uE673",
  17968. 'uicon-grid-fill': "\uE678",
  17969. 'uicon-play-circle': "\uE647",
  17970. 'uicon-play-circle-fill': "\uE655",
  17971. 'uicon-pause-circle-fill': "\uE654",
  17972. 'uicon-pause': "\uE8FA",
  17973. 'uicon-pause-circle': "\uE643",
  17974. 'uicon-eye-off': "\uE648",
  17975. 'uicon-eye-off-outline': "\uE62B",
  17976. 'uicon-gift-fill': "\uE65C",
  17977. 'uicon-gift': "\uE65B",
  17978. 'uicon-rmb-circle-fill': "\uE657",
  17979. 'uicon-rmb-circle': "\uE677",
  17980. 'uicon-kefu-ermai': "\uE656",
  17981. 'uicon-server-fill': "\uE751",
  17982. 'uicon-coupon-fill': "\uE8C4",
  17983. 'uicon-coupon': "\uE8AE",
  17984. 'uicon-integral': "\uE704",
  17985. 'uicon-integral-fill': "\uE703",
  17986. 'uicon-home-fill': "\uE964",
  17987. 'uicon-home': "\uE965",
  17988. 'uicon-hourglass-half-fill': "\uE966",
  17989. 'uicon-hourglass': "\uE967",
  17990. 'uicon-account': "\uE628",
  17991. 'uicon-plus-people-fill': "\uE626",
  17992. 'uicon-minus-people-fill': "\uE615",
  17993. 'uicon-account-fill': "\uE614",
  17994. 'uicon-thumb-down-fill': "\uE726",
  17995. 'uicon-thumb-down': "\uE727",
  17996. 'uicon-thumb-up': "\uE733",
  17997. 'uicon-thumb-up-fill': "\uE72F",
  17998. 'uicon-lock-fill': "\uE979",
  17999. 'uicon-lock-open': "\uE973",
  18000. 'uicon-lock-opened-fill': "\uE974",
  18001. 'uicon-lock': "\uE97A",
  18002. 'uicon-red-packet-fill': "\uE690",
  18003. 'uicon-photo-fill': "\uE98B",
  18004. 'uicon-photo': "\uE98D",
  18005. 'uicon-volume-off-fill': "\uE659",
  18006. 'uicon-volume-off': "\uE644",
  18007. 'uicon-volume-fill': "\uE670",
  18008. 'uicon-volume': "\uE633",
  18009. 'uicon-red-packet': "\uE691",
  18010. 'uicon-download': "\uE63C",
  18011. 'uicon-arrow-up-fill': "\uE6B0",
  18012. 'uicon-arrow-down-fill': "\uE600",
  18013. 'uicon-play-left-fill': "\uE675",
  18014. 'uicon-play-right-fill': "\uE676",
  18015. 'uicon-rewind-left-fill': "\uE679",
  18016. 'uicon-rewind-right-fill': "\uE67A",
  18017. 'uicon-arrow-downward': "\uE604",
  18018. 'uicon-arrow-leftward': "\uE601",
  18019. 'uicon-arrow-rightward': "\uE603",
  18020. 'uicon-arrow-upward': "\uE607",
  18021. 'uicon-arrow-down': "\uE60D",
  18022. 'uicon-arrow-right': "\uE605",
  18023. 'uicon-arrow-left': "\uE60E",
  18024. 'uicon-arrow-up': "\uE606",
  18025. 'uicon-skip-back-left': "\uE674",
  18026. 'uicon-skip-forward-right': "\uE672",
  18027. 'uicon-rewind-right': "\uE66F",
  18028. 'uicon-rewind-left': "\uE671",
  18029. 'uicon-arrow-right-double': "\uE68D",
  18030. 'uicon-arrow-left-double': "\uE68C",
  18031. 'uicon-wifi-off': "\uE668",
  18032. 'uicon-wifi': "\uE667",
  18033. 'uicon-empty-data': "\uE62F",
  18034. 'uicon-empty-history': "\uE684",
  18035. 'uicon-empty-list': "\uE68B",
  18036. 'uicon-empty-page': "\uE627",
  18037. 'uicon-empty-order': "\uE639",
  18038. 'uicon-man': "\uE697",
  18039. 'uicon-woman': "\uE69C",
  18040. 'uicon-man-add': "\uE61C",
  18041. 'uicon-man-add-fill': "\uE64C",
  18042. 'uicon-man-delete': "\uE61A",
  18043. 'uicon-man-delete-fill': "\uE66A",
  18044. 'uicon-zh': "\uE70A",
  18045. 'uicon-en': "\uE692" };exports.default = _default;
  18046. /***/ }),
  18047. /* 360 */
  18048. /*!*************************************************************************************!*\
  18049. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/components/u-icon/props.js ***!
  18050. \*************************************************************************************/
  18051. /*! no static exports found */
  18052. /***/ (function(module, exports, __webpack_require__) {
  18053. "use strict";
  18054. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  18055. props: {
  18056. // 图标类名
  18057. name: {
  18058. type: String,
  18059. default: uni.$u.props.icon.name },
  18060. // 图标颜色,可接受主题色
  18061. color: {
  18062. type: String,
  18063. default: uni.$u.props.icon.color },
  18064. // 字体大小,单位px
  18065. size: {
  18066. type: [String, Number],
  18067. default: uni.$u.props.icon.size },
  18068. // 是否显示粗体
  18069. bold: {
  18070. type: Boolean,
  18071. default: uni.$u.props.icon.bold },
  18072. // 点击图标的时候传递事件出去的index(用于区分点击了哪一个)
  18073. index: {
  18074. type: [String, Number],
  18075. default: uni.$u.props.icon.index },
  18076. // 触摸图标时的类名
  18077. hoverClass: {
  18078. type: String,
  18079. default: uni.$u.props.icon.hoverClass },
  18080. // 自定义扩展前缀,方便用户扩展自己的图标库
  18081. customPrefix: {
  18082. type: String,
  18083. default: uni.$u.props.icon.customPrefix },
  18084. // 图标右边或者下面的文字
  18085. label: {
  18086. type: [String, Number],
  18087. default: uni.$u.props.icon.label },
  18088. // label的位置,只能右边或者下边
  18089. labelPos: {
  18090. type: String,
  18091. default: uni.$u.props.icon.labelPos },
  18092. // label的大小
  18093. labelSize: {
  18094. type: [String, Number],
  18095. default: uni.$u.props.icon.labelSize },
  18096. // label的颜色
  18097. labelColor: {
  18098. type: String,
  18099. default: uni.$u.props.icon.labelColor },
  18100. // label与图标的距离
  18101. space: {
  18102. type: [String, Number],
  18103. default: uni.$u.props.icon.space },
  18104. // 图片的mode
  18105. imgMode: {
  18106. type: String,
  18107. default: uni.$u.props.icon.imgMode },
  18108. // 用于显示图片小图标时,图片的宽度
  18109. width: {
  18110. type: [String, Number],
  18111. default: uni.$u.props.icon.width },
  18112. // 用于显示图片小图标时,图片的高度
  18113. height: {
  18114. type: [String, Number],
  18115. default: uni.$u.props.icon.height },
  18116. // 用于解决某些情况下,让图标垂直居中的用途
  18117. top: {
  18118. type: [String, Number],
  18119. default: uni.$u.props.icon.top },
  18120. // 是否阻止事件传播
  18121. stop: {
  18122. type: Boolean,
  18123. default: uni.$u.props.icon.stop } } };exports.default = _default;
  18124. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  18125. /***/ }),
  18126. /* 361 */,
  18127. /* 362 */,
  18128. /* 363 */,
  18129. /* 364 */,
  18130. /* 365 */,
  18131. /* 366 */,
  18132. /* 367 */,
  18133. /* 368 */
  18134. /*!************************************************************************************!*\
  18135. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/uni-cloud/dist/index.js ***!
  18136. \************************************************************************************/
  18137. /*! no static exports found */
  18138. /***/ (function(module, exports, __webpack_require__) {
  18139. "use strict";
  18140. /* WEBPACK VAR INJECTION */(function(global, uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _regenerator = _interopRequireDefault(__webpack_require__(/*! ./node_modules/@babel/runtime/regenerator */ 39));var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 3);var _pages = _interopRequireDefault(__webpack_require__(/*! @/pages.json */ 369));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 _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 _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 _createForOfIteratorHelper(o, allowArrayLike) {var it;if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {if (it) o = it;var i = 0;var F = function F() {};return { s: F, n: function n() {if (i >= o.length) return { done: true };return { done: false, value: o[i++] };}, e: function e(_e31) {throw _e31;}, f: F };}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion = true,didErr = false,err;return { s: function s() {it = o[Symbol.iterator]();}, n: function n() {var step = it.next();normalCompletion = step.done;return step;}, e: function e(_e32) {didErr = true;err = _e32;}, f: function f() {try {if (!normalCompletion && it.return != null) it.return();} finally {if (didErr) throw err;}} };}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 _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;}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 _inherits(subClass, superClass) {if (typeof superClass !== "function" && superClass !== null) {throw new TypeError("Super expression must either be null or a function");}subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });if (superClass) _setPrototypeOf(subClass, superClass);}function _createSuper(Derived) {var hasNativeReflectConstruct = _isNativeReflectConstruct();return function _createSuperInternal() {var Super = _getPrototypeOf(Derived),result;if (hasNativeReflectConstruct) {var NewTarget = _getPrototypeOf(this).constructor;result = Reflect.construct(Super, arguments, NewTarget);} else {result = Super.apply(this, arguments);}return _possibleConstructorReturn(this, result);};}function _possibleConstructorReturn(self, call) {if (call && (typeof call === "object" || typeof call === "function")) {return call;}return _assertThisInitialized(self);}function _assertThisInitialized(self) {if (self === void 0) {throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _wrapNativeSuper(Class) {var _cache = typeof Map === "function" ? new Map() : undefined;_wrapNativeSuper = function _wrapNativeSuper(Class) {if (Class === null || !_isNativeFunction(Class)) return Class;if (typeof Class !== "function") {throw new TypeError("Super expression must either be null or a function");}if (typeof _cache !== "undefined") {if (_cache.has(Class)) return _cache.get(Class);_cache.set(Class, Wrapper);}function Wrapper() {return _construct(Class, arguments, _getPrototypeOf(this).constructor);}Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } });return _setPrototypeOf(Wrapper, Class);};return _wrapNativeSuper(Class);}function _construct(Parent, args, Class) {if (_isNativeReflectConstruct()) {_construct = Reflect.construct;} else {_construct = function _construct(Parent, args, Class) {var a = [null];a.push.apply(a, args);var Constructor = Function.bind.apply(Parent, a);var instance = new Constructor();if (Class) _setPrototypeOf(instance, Class.prototype);return instance;};}return _construct.apply(null, arguments);}function _isNativeReflectConstruct() {if (typeof Reflect === "undefined" || !Reflect.construct) return false;if (Reflect.construct.sham) return false;if (typeof Proxy === "function") return true;try {Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));return true;} catch (e) {return false;}}function _isNativeFunction(fn) {return Function.toString.call(fn).indexOf("[native code]") !== -1;}function _setPrototypeOf(o, p) {_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {o.__proto__ = p;return o;};return _setPrototypeOf(o, p);}function _getPrototypeOf(o) {_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {return o.__proto__ || Object.getPrototypeOf(o);};return _getPrototypeOf(o);}"undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self && self;function n(e) {return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;}function s(e, t, n) {return e(n = { path: t, exports: {}, require: function require(e, t) {return function () {throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");}(null == t && n.path);} }, n.exports), n.exports;}var o = s(function (e, t) {var n;e.exports = (n = n || function (e, t) {var n = Object.create || function () {function e() {}return function (t) {var n;return e.prototype = t, n = new e(), e.prototype = null, n;};}(),s = {},o = s.lib = {},r = o.Base = { extend: function extend(e) {var t = n(this);return e && t.mixIn(e), t.hasOwnProperty("init") && this.init !== t.init || (t.init = function () {t.$super.init.apply(this, arguments);}), t.init.prototype = t, t.$super = this, t;}, create: function create() {var e = this.extend();return e.init.apply(e, arguments), e;}, init: function init() {}, mixIn: function mixIn(e) {for (var t in e) {e.hasOwnProperty(t) && (this[t] = e[t]);}e.hasOwnProperty("toString") && (this.toString = e.toString);}, clone: function clone() {return this.init.prototype.extend(this);} },i = o.WordArray = r.extend({ init: function init(e, n) {e = this.words = e || [], this.sigBytes = n != t ? n : 4 * e.length;}, toString: function toString(e) {return (e || c).stringify(this);}, concat: function concat(e) {var t = this.words,n = e.words,s = this.sigBytes,o = e.sigBytes;if (this.clamp(), s % 4) for (var r = 0; r < o; r++) {var i = n[r >>> 2] >>> 24 - r % 4 * 8 & 255;t[s + r >>> 2] |= i << 24 - (s + r) % 4 * 8;} else for (r = 0; r < o; r += 4) {t[s + r >>> 2] = n[r >>> 2];}return this.sigBytes += o, this;}, clamp: function clamp() {var t = this.words,n = this.sigBytes;t[n >>> 2] &= 4294967295 << 32 - n % 4 * 8, t.length = e.ceil(n / 4);}, clone: function clone() {var e = r.clone.call(this);return e.words = this.words.slice(0), e;}, random: function random(t) {for (var n, s = [], o = function o(t) {t = t;var n = 987654321,s = 4294967295;return function () {var o = ((n = 36969 * (65535 & n) + (n >> 16) & s) << 16) + (t = 18e3 * (65535 & t) + (t >> 16) & s) & s;return o /= 4294967296, (o += .5) * (e.random() > .5 ? 1 : -1);};}, r = 0; r < t; r += 4) {var a = o(4294967296 * (n || e.random()));n = 987654071 * a(), s.push(4294967296 * a() | 0);}return new i.init(s, t);} }),a = s.enc = {},c = a.Hex = { stringify: function stringify(e) {for (var t = e.words, n = e.sigBytes, s = [], o = 0; o < n; o++) {var r = t[o >>> 2] >>> 24 - o % 4 * 8 & 255;s.push((r >>> 4).toString(16)), s.push((15 & r).toString(16));}return s.join("");}, parse: function parse(e) {for (var t = e.length, n = [], s = 0; s < t; s += 2) {n[s >>> 3] |= parseInt(e.substr(s, 2), 16) << 24 - s % 8 * 4;}return new i.init(n, t / 2);} },u = a.Latin1 = { stringify: function stringify(e) {for (var t = e.words, n = e.sigBytes, s = [], o = 0; o < n; o++) {var r = t[o >>> 2] >>> 24 - o % 4 * 8 & 255;s.push(String.fromCharCode(r));}return s.join("");}, parse: function parse(e) {for (var t = e.length, n = [], s = 0; s < t; s++) {n[s >>> 2] |= (255 & e.charCodeAt(s)) << 24 - s % 4 * 8;}return new i.init(n, t);} },l = a.Utf8 = { stringify: function stringify(e) {try {return decodeURIComponent(escape(u.stringify(e)));} catch (e) {throw new Error("Malformed UTF-8 data");}}, parse: function parse(e) {return u.parse(unescape(encodeURIComponent(e)));} },h = o.BufferedBlockAlgorithm = r.extend({ reset: function reset() {this._data = new i.init(), this._nDataBytes = 0;}, _append: function _append(e) {"string" == typeof e && (e = l.parse(e)), this._data.concat(e), this._nDataBytes += e.sigBytes;}, _process: function _process(t) {var n = this._data,s = n.words,o = n.sigBytes,r = this.blockSize,a = o / (4 * r),c = (a = t ? e.ceil(a) : e.max((0 | a) - this._minBufferSize, 0)) * r,u = e.min(4 * c, o);if (c) {for (var l = 0; l < c; l += r) {this._doProcessBlock(s, l);}var h = s.splice(0, c);n.sigBytes -= u;}return new i.init(h, u);}, clone: function clone() {var e = r.clone.call(this);return e._data = this._data.clone(), e;}, _minBufferSize: 0 });o.Hasher = h.extend({ cfg: r.extend(), init: function init(e) {this.cfg = this.cfg.extend(e), this.reset();}, reset: function reset() {h.reset.call(this), this._doReset();}, update: function update(e) {return this._append(e), this._process(), this;}, finalize: function finalize(e) {return e && this._append(e), this._doFinalize();}, blockSize: 16, _createHelper: function _createHelper(e) {return function (t, n) {return new e.init(n).finalize(t);};}, _createHmacHelper: function _createHmacHelper(e) {return function (t, n) {return new d.HMAC.init(e, n).finalize(t);};} });var d = s.algo = {};return s;}(Math), n);}),r = (s(function (e, t) {var n;e.exports = (n = o, function (e) {var t = n,s = t.lib,o = s.WordArray,r = s.Hasher,i = t.algo,a = [];!function () {for (var t = 0; t < 64; t++) {a[t] = 4294967296 * e.abs(e.sin(t + 1)) | 0;}}();var c = i.MD5 = r.extend({ _doReset: function _doReset() {this._hash = new o.init([1732584193, 4023233417, 2562383102, 271733878]);}, _doProcessBlock: function _doProcessBlock(e, t) {for (var n = 0; n < 16; n++) {var s = t + n,o = e[s];e[s] = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8);}var r = this._hash.words,i = e[t + 0],c = e[t + 1],f = e[t + 2],g = e[t + 3],p = e[t + 4],m = e[t + 5],y = e[t + 6],_ = e[t + 7],w = e[t + 8],k = e[t + 9],S = e[t + 10],T = e[t + 11],v = e[t + 12],A = e[t + 13],P = e[t + 14],I = e[t + 15],O = r[0],b = r[1],C = r[2],E = r[3];O = u(O, b, C, E, i, 7, a[0]), E = u(E, O, b, C, c, 12, a[1]), C = u(C, E, O, b, f, 17, a[2]), b = u(b, C, E, O, g, 22, a[3]), O = u(O, b, C, E, p, 7, a[4]), E = u(E, O, b, C, m, 12, a[5]), C = u(C, E, O, b, y, 17, a[6]), b = u(b, C, E, O, _, 22, a[7]), O = u(O, b, C, E, w, 7, a[8]), E = u(E, O, b, C, k, 12, a[9]), C = u(C, E, O, b, S, 17, a[10]), b = u(b, C, E, O, T, 22, a[11]), O = u(O, b, C, E, v, 7, a[12]), E = u(E, O, b, C, A, 12, a[13]), C = u(C, E, O, b, P, 17, a[14]), O = l(O, b = u(b, C, E, O, I, 22, a[15]), C, E, c, 5, a[16]), E = l(E, O, b, C, y, 9, a[17]), C = l(C, E, O, b, T, 14, a[18]), b = l(b, C, E, O, i, 20, a[19]), O = l(O, b, C, E, m, 5, a[20]), E = l(E, O, b, C, S, 9, a[21]), C = l(C, E, O, b, I, 14, a[22]), b = l(b, C, E, O, p, 20, a[23]), O = l(O, b, C, E, k, 5, a[24]), E = l(E, O, b, C, P, 9, a[25]), C = l(C, E, O, b, g, 14, a[26]), b = l(b, C, E, O, w, 20, a[27]), O = l(O, b, C, E, A, 5, a[28]), E = l(E, O, b, C, f, 9, a[29]), C = l(C, E, O, b, _, 14, a[30]), O = h(O, b = l(b, C, E, O, v, 20, a[31]), C, E, m, 4, a[32]), E = h(E, O, b, C, w, 11, a[33]), C = h(C, E, O, b, T, 16, a[34]), b = h(b, C, E, O, P, 23, a[35]), O = h(O, b, C, E, c, 4, a[36]), E = h(E, O, b, C, p, 11, a[37]), C = h(C, E, O, b, _, 16, a[38]), b = h(b, C, E, O, S, 23, a[39]), O = h(O, b, C, E, A, 4, a[40]), E = h(E, O, b, C, i, 11, a[41]), C = h(C, E, O, b, g, 16, a[42]), b = h(b, C, E, O, y, 23, a[43]), O = h(O, b, C, E, k, 4, a[44]), E = h(E, O, b, C, v, 11, a[45]), C = h(C, E, O, b, I, 16, a[46]), O = d(O, b = h(b, C, E, O, f, 23, a[47]), C, E, i, 6, a[48]), E = d(E, O, b, C, _, 10, a[49]), C = d(C, E, O, b, P, 15, a[50]), b = d(b, C, E, O, m, 21, a[51]), O = d(O, b, C, E, v, 6, a[52]), E = d(E, O, b, C, g, 10, a[53]), C = d(C, E, O, b, S, 15, a[54]), b = d(b, C, E, O, c, 21, a[55]), O = d(O, b, C, E, w, 6, a[56]), E = d(E, O, b, C, I, 10, a[57]), C = d(C, E, O, b, y, 15, a[58]), b = d(b, C, E, O, A, 21, a[59]), O = d(O, b, C, E, p, 6, a[60]), E = d(E, O, b, C, T, 10, a[61]), C = d(C, E, O, b, f, 15, a[62]), b = d(b, C, E, O, k, 21, a[63]), r[0] = r[0] + O | 0, r[1] = r[1] + b | 0, r[2] = r[2] + C | 0, r[3] = r[3] + E | 0;}, _doFinalize: function _doFinalize() {var t = this._data,n = t.words,s = 8 * this._nDataBytes,o = 8 * t.sigBytes;n[o >>> 5] |= 128 << 24 - o % 32;var r = e.floor(s / 4294967296),i = s;n[15 + (o + 64 >>> 9 << 4)] = 16711935 & (r << 8 | r >>> 24) | 4278255360 & (r << 24 | r >>> 8), n[14 + (o + 64 >>> 9 << 4)] = 16711935 & (i << 8 | i >>> 24) | 4278255360 & (i << 24 | i >>> 8), t.sigBytes = 4 * (n.length + 1), this._process();for (var a = this._hash, c = a.words, u = 0; u < 4; u++) {var l = c[u];c[u] = 16711935 & (l << 8 | l >>> 24) | 4278255360 & (l << 24 | l >>> 8);}return a;}, clone: function clone() {var e = r.clone.call(this);return e._hash = this._hash.clone(), e;} });function u(e, t, n, s, o, r, i) {var a = e + (t & n | ~t & s) + o + i;return (a << r | a >>> 32 - r) + t;}function l(e, t, n, s, o, r, i) {var a = e + (t & s | n & ~s) + o + i;return (a << r | a >>> 32 - r) + t;}function h(e, t, n, s, o, r, i) {var a = e + (t ^ n ^ s) + o + i;return (a << r | a >>> 32 - r) + t;}function d(e, t, n, s, o, r, i) {var a = e + (n ^ (t | ~s)) + o + i;return (a << r | a >>> 32 - r) + t;}t.MD5 = r._createHelper(c), t.HmacMD5 = r._createHmacHelper(c);}(Math), n.MD5);}), s(function (e, t) {var n, s, r;e.exports = (s = (n = o).lib.Base, r = n.enc.Utf8, void (n.algo.HMAC = s.extend({ init: function init(e, t) {e = this._hasher = new e.init(), "string" == typeof t && (t = r.parse(t));var n = e.blockSize,s = 4 * n;t.sigBytes > s && (t = e.finalize(t)), t.clamp();for (var o = this._oKey = t.clone(), i = this._iKey = t.clone(), a = o.words, c = i.words, u = 0; u < n; u++) {a[u] ^= 1549556828, c[u] ^= 909522486;}o.sigBytes = i.sigBytes = s, this.reset();}, reset: function reset() {var e = this._hasher;e.reset(), e.update(this._iKey);}, update: function update(e) {return this._hasher.update(e), this;}, finalize: function finalize(e) {var t = this._hasher,n = t.finalize(e);return t.reset(), t.finalize(this._oKey.clone().concat(n));} })));}), s(function (e, t) {e.exports = o.HmacMD5;}));var i = "FUNCTION",a = "OBJECT",c = "CLIENT_DB";function u(e) {return Object.prototype.toString.call(e).slice(8, -1).toLowerCase();}function l(e) {return "object" === u(e);}function h(e) {return e && "string" == typeof e ? JSON.parse(e) : e;}var d = "development" === "development",f = "mp-weixin",g = h(undefined),p = h([]),m = true;var y = "";try {{var _e2 = __webpack_require__(/*! uni-stat-config */ 370).default || __webpack_require__(/*! uni-stat-config */ 370);y = _e2.appid;}} catch (e) {}var _ = {};function w(e) {var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};var n, s;return n = _, s = e, Object.prototype.hasOwnProperty.call(n, s) || (_[e] = t), _[e];}"app-plus" === f && (_ = uni._globalUniCloudObj ? uni._globalUniCloudObj : uni._globalUniCloudObj = {});var k = ["invoke", "success", "fail", "complete"],S = w("_globalUniCloudInterceptor");function T(e, t) {S[e] || (S[e] = {}), l(t) && Object.keys(t).forEach(function (n) {k.indexOf(n) > -1 && function (e, t, n) {var s = S[e][t];s || (s = S[e][t] = []), -1 === s.indexOf(n) && "function" == typeof n && s.push(n);}(e, n, t[n]);});}function v(e, t) {S[e] || (S[e] = {}), l(t) ? Object.keys(t).forEach(function (n) {k.indexOf(n) > -1 && function (e, t, n) {var s = S[e][t];if (!s) return;var o = s.indexOf(n);o > -1 && s.splice(o, 1);}(e, n, t[n]);}) : delete S[e];}function A(e, t) {return e && 0 !== e.length ? e.reduce(function (e, n) {return e.then(function () {return n(t);});}, Promise.resolve()) : Promise.resolve();}function P(e, t) {return S[e] && S[e][t] || [];}var I = w("_globalUniCloudListener"),O = "response",b = "needLogin",C = "refreshToken",E = "clientdb",R = "cloudfunction",U = "cloudobject";function x(e) {return I[e] || (I[e] = []), I[e];}function L(e, t) {var n = x(e);n.includes(t) || n.push(t);}function D(e, t) {var n = x(e),s = n.indexOf(t);-1 !== s && n.splice(s, 1);}function q(e, t) {var n = x(e);for (var _e3 = 0; _e3 < n.length; _e3++) {(0, n[_e3])(t);}}function N(e, t) {return t ? function (n) {var _this = this;var s = !1;if ("callFunction" === t) {var _e4 = n && n.type || i;s = _e4 !== i;}var o = "callFunction" === t && !s;var r;r = this.isReady ? Promise.resolve() : this.initUniCloud, n = n || {};var a = r.then(function () {return s ? Promise.resolve() : A(P(t, "invoke"), n);}).then(function () {return e.call(_this, n);}).then(function (e) {return s ? Promise.resolve(e) : A(P(t, "success"), e).then(function () {return A(P(t, "complete"), e);}).then(function () {return o && q(O, { type: R, content: e }), Promise.resolve(e);});}, function (e) {return s ? Promise.reject(e) : A(P(t, "fail"), e).then(function () {return A(P(t, "complete"), e);}).then(function () {return q(O, { type: R, content: e }), Promise.reject(e);});});if (!(n.success || n.fail || n.complete)) return a;a.then(function (e) {n.success && n.success(e), n.complete && n.complete(e), o && q(O, { type: R, content: e });}, function (e) {n.fail && n.fail(e), n.complete && n.complete(e), o && q(O, { type: R, content: e });});} : function (t) {if (!((t = t || {}).success || t.fail || t.complete)) return e.call(this, t);e.call(this, t).then(function (e) {t.success && t.success(e), t.complete && t.complete(e);}, function (e) {t.fail && t.fail(e), t.complete && t.complete(e);});};}var F = /*#__PURE__*/function (_Error) {_inherits(F, _Error);var _super = _createSuper(F);function F(e) {var _this2;_classCallCheck(this, F);_this2 = _super.call(this, e.message), _this2.errMsg = e.message || "", _this2.errCode = _this2.code = e.code || "SYSTEM_ERROR", _this2.requestId = e.requestId;return _this2;}return F;}( /*#__PURE__*/_wrapNativeSuper(Error));function M() {var e;try {if (uni.getLaunchOptionsSync) {if (uni.getLaunchOptionsSync.toString().indexOf("not yet implemented") > -1) return;var _uni$getLaunchOptions = uni.getLaunchOptionsSync(),_t2 = _uni$getLaunchOptions.scene,_n = _uni$getLaunchOptions.channel;e = _t2 || _n;}} catch (e) {}return e;}var j;function $() {var e = uni.getLocale && uni.getLocale() || "en";if (j) return _objectSpread(_objectSpread({}, j), {}, { locale: e, LOCALE: e });var t = uni.getSystemInfoSync(),n = t.deviceId,s = t.platform,o = t.osName,r = t.uniPlatform,i = t.appId,a = ["pixelRatio", "brand", "model", "system", "language", "version", "platform", "host", "SDKVersion", "swanNativeVersion", "app", "AppPlatform", "fontSizeSettin"];for (var _e5 = 0; _e5 < a.length; _e5++) {delete t[a[_e5]];}return j = _objectSpread({ PLATFORM: r || f, OS: o || s, APPID: i || y, DEVICEID: n, channel: M() }, t), _objectSpread(_objectSpread({}, j), {}, { locale: e, LOCALE: e });}var K = { sign: function sign(e, t) {var n = "";return Object.keys(e).sort().forEach(function (t) {e[t] && (n = n + "&" + t + "=" + e[t]);}), n = n.slice(1), r(n, t).toString();}, wrappedRequest: function wrappedRequest(e, t) {return new Promise(function (n, s) {t(Object.assign(e, { complete: function complete(e) {e || (e = {}), d && "h5" === f && e.errMsg && 0 === e.errMsg.indexOf("request:fail") && console.warn("发布H5,需要在uniCloud后台操作,绑定安全域名,否则会因为跨域问题而无法访问。教程参考:https://uniapp.dcloud.io/uniCloud/quickstart?id=useinh5");var t = e.data && e.data.header && e.data.header["x-serverless-request-id"] || e.header && e.header["request-id"];if (!e.statusCode || e.statusCode >= 400) return s(new F({ code: "SYS_ERR", message: e.errMsg || "request:fail", requestId: t }));var o = e.data;if (o.error) return s(new F({ code: o.error.code, message: o.error.message, requestId: t }));o.result = o.data, o.requestId = t, delete o.data, n(o);} }));});} };var B = { request: function request(e) {return uni.request(e);}, uploadFile: function uploadFile(e) {return uni.uploadFile(e);}, setStorageSync: function setStorageSync(e, t) {return uni.setStorageSync(e, t);}, getStorageSync: function getStorageSync(e) {return uni.getStorageSync(e);}, removeStorageSync: function removeStorageSync(e) {return uni.removeStorageSync(e);}, clearStorageSync: function clearStorageSync() {return uni.clearStorageSync();} },H = { "uniCloud.init.paramRequired": "{param} required", "uniCloud.uploadFile.fileError": "filePath should be instance of File" };var _e6 = (0, _uniI18n.initVueI18n)({ "zh-Hans": { "uniCloud.init.paramRequired": "缺少参数:{param}", "uniCloud.uploadFile.fileError": "filePath应为File对象" }, "zh-Hant": { "uniCloud.init.paramRequired": "缺少参数:{param}", "uniCloud.uploadFile.fileError": "filePath应为File对象" }, en: H, fr: { "uniCloud.init.paramRequired": "{param} required", "uniCloud.uploadFile.fileError": "filePath should be instance of File" }, es: { "uniCloud.init.paramRequired": "{param} required", "uniCloud.uploadFile.fileError": "filePath should be instance of File" }, ja: H }, "zh-Hans"),W = _e6.t;var z = /*#__PURE__*/function () {function z(e) {_classCallCheck(this, z);["spaceId", "clientSecret"].forEach(function (t) {if (!Object.prototype.hasOwnProperty.call(e, t)) throw new Error(W("uniCloud.init.paramRequired", { param: t }));}), this.config = Object.assign({}, { endpoint: "https://api.bspapp.com" }, e), this.config.provider = "aliyun", this.config.requestUrl = this.config.endpoint + "/client", this.config.envType = this.config.envType || "public", this.config.accessTokenKey = "access_token_" + this.config.spaceId, this.adapter = B, this._getAccessTokenPromise = null, this._getAccessTokenPromiseStatus = null;}_createClass(z, [{ key: "setAccessToken", value: function setAccessToken(e) {this.accessToken = e;} }, { key: "requestWrapped", value: function requestWrapped(e) {return K.wrappedRequest(e, this.adapter.request);} }, { key: "requestAuth", value: function requestAuth(e) {return this.requestWrapped(e);} }, { key: "request", value: function request(e, t) {var _this3 = this;return Promise.resolve().then(function () {return _this3.hasAccessToken ? t ? _this3.requestWrapped(e) : _this3.requestWrapped(e).catch(function (t) {return new Promise(function (e, n) {!t || "GATEWAY_INVALID_TOKEN" !== t.code && "InvalidParameter.InvalidToken" !== t.code ? n(t) : e();}).then(function () {return _this3.getAccessToken();}).then(function () {var t = _this3.rebuildRequest(e);return _this3.request(t, !0);});}) : _this3.getAccessToken().then(function () {var t = _this3.rebuildRequest(e);return _this3.request(t, !0);});});} }, { key: "rebuildRequest", value: function rebuildRequest(e) {var t = Object.assign({}, e);return t.data.token = this.accessToken, t.header["x-basement-token"] = this.accessToken, t.header["x-serverless-sign"] = K.sign(t.data, this.config.clientSecret), t;} }, { key: "setupRequest", value: function setupRequest(e, t) {var n = Object.assign({}, e, { spaceId: this.config.spaceId, timestamp: Date.now() }),s = { "Content-Type": "application/json" };return "auth" !== t && (n.token = this.accessToken, s["x-basement-token"] = this.accessToken), s["x-serverless-sign"] = K.sign(n, this.config.clientSecret), { url: this.config.requestUrl, method: "POST", data: n, dataType: "json", header: s };} }, { key: "getAccessToken", value: function getAccessToken() {var _this4 = this;if ("pending" === this._getAccessTokenPromiseStatus) return this._getAccessTokenPromise;this._getAccessTokenPromiseStatus = "pending";return this._getAccessTokenPromise = this.requestAuth(this.setupRequest({ method: "serverless.auth.user.anonymousAuthorize", params: "{}" }, "auth")).then(function (e) {return new Promise(function (t, n) {e.result && e.result.accessToken ? (_this4.setAccessToken(e.result.accessToken), _this4._getAccessTokenPromiseStatus = "fulfilled", t(_this4.accessToken)) : (_this4._getAccessTokenPromiseStatus = "rejected", n(new F({ code: "AUTH_FAILED", message: "获取accessToken失败" })));});}, function (e) {return _this4._getAccessTokenPromiseStatus = "rejected", Promise.reject(e);}), this._getAccessTokenPromise;} }, { key: "authorize", value: function authorize() {this.getAccessToken();} }, { key: "callFunction", value: function callFunction(e) {var t = { method: "serverless.function.runtime.invoke", params: JSON.stringify({ functionTarget: e.name, functionArgs: e.data || {} }) };return this.request(this.setupRequest(t));} }, { key: "getOSSUploadOptionsFromPath", value: function getOSSUploadOptionsFromPath(e) {var t = { method: "serverless.file.resource.generateProximalSign", params: JSON.stringify(e) };return this.request(this.setupRequest(t));} }, { key: "uploadFileToOSS", value: function uploadFileToOSS(_ref) {var _this5 = this;var e = _ref.url,t = _ref.formData,n = _ref.name,s = _ref.filePath,o = _ref.fileType,r = _ref.onUploadProgress;return new Promise(function (i, a) {var c = _this5.adapter.uploadFile({ url: e, formData: t, name: n, filePath: s, fileType: o, header: { "X-OSS-server-side-encrpytion": "AES256" }, success: function success(e) {e && e.statusCode < 400 ? i(e) : a(new F({ code: "UPLOAD_FAILED", message: "文件上传失败" }));}, fail: function fail(e) {a(new F({ code: e.code || "UPLOAD_FAILED", message: e.message || e.errMsg || "文件上传失败" }));} });"function" == typeof r && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (e) {r({ loaded: e.totalBytesSent, total: e.totalBytesExpectedToSend });});});} }, { key: "reportOSSUpload", value: function reportOSSUpload(e) {var t = { method: "serverless.file.resource.report", params: JSON.stringify(e) };return this.request(this.setupRequest(t));} }, { key: "uploadFile", value: function uploadFile(_ref2) {var _this6 = this;var e = _ref2.filePath,t = _ref2.cloudPath,_ref2$fileType = _ref2.fileType,n = _ref2$fileType === void 0 ? "image" : _ref2$fileType,s = _ref2.onUploadProgress,o = _ref2.config;if ("string" !== u(t)) throw new F({ code: "INVALID_PARAM", message: "cloudPath必须为字符串类型" });if (!(t = t.trim())) throw new F({ code: "CLOUDPATH_REQUIRED", message: "cloudPath不可为空" });if (/:\/\//.test(t)) throw new F({ code: "INVALID_PARAM", message: "cloudPath不合法" });var r = o && o.envType || this.config.envType;var i, a;return this.getOSSUploadOptionsFromPath({ env: r, filename: t }).then(function (t) {var o = t.result;i = o.id, a = "https://" + o.cdnDomain + "/" + o.ossPath;var r = { url: "https://" + o.host, formData: { "Cache-Control": "max-age=2592000", "Content-Disposition": "attachment", OSSAccessKeyId: o.accessKeyId, Signature: o.signature, host: o.host, id: i, key: o.ossPath, policy: o.policy, success_action_status: 200 }, fileName: "file", name: "file", filePath: e, fileType: n };return _this6.uploadFileToOSS(Object.assign({}, r, { onUploadProgress: s }));}).then(function () {return _this6.reportOSSUpload({ id: i });}).then(function (t) {return new Promise(function (n, s) {t.success ? n({ success: !0, filePath: e, fileID: a }) : s(new F({ code: "UPLOAD_FAILED", message: "文件上传失败" }));});});} }, { key: "deleteFile", value: function deleteFile(_ref3) {var e = _ref3.fileList;var t = { method: "serverless.file.resource.delete", params: JSON.stringify({ id: e[0] }) };return this.request(this.setupRequest(t));} }, { key: "getTempFileURL", value: function getTempFileURL() {var _ref4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},e = _ref4.fileList;return new Promise(function (t, n) {Array.isArray(e) && 0 !== e.length || n(new F({ code: "INVALID_PARAM", message: "fileList的元素必须是非空的字符串" })), t({ fileList: e.map(function (e) {return { fileID: e, tempFileURL: e };}) });});} }, { key: "hasAccessToken", get: function get() {return !!this.accessToken;} }]);return z;}();var V = { init: function init(e) {var t = new z(e),n = { signInAnonymously: function signInAnonymously() {return t.authorize();}, getLoginState: function getLoginState() {return Promise.resolve(!1);} };return t.auth = function () {return n;}, t.customAuth = t.auth, t;} };var J = "undefined" != typeof location && "http:" === location.protocol ? "http:" : "https:";var Y;!function (e) {e.local = "local", e.none = "none", e.session = "session";}(Y || (Y = {}));var X = function X() {};var G = function G() {var e;if (!Promise) {e = function e() {}, e.promise = {};var _t3 = function _t3() {throw new F({ message: 'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.' });};return Object.defineProperty(e.promise, "then", { get: _t3 }), Object.defineProperty(e.promise, "catch", { get: _t3 }), e;}var t = new Promise(function (t, n) {e = function e(_e7, s) {return _e7 ? n(_e7) : t(s);};});return e.promise = t, e;};function Q(e) {return void 0 === e;}function Z(e) {return "[object Null]" === Object.prototype.toString.call(e);}var ee;function te(e) {var t = (n = e, "[object Array]" === Object.prototype.toString.call(n) ? e : [e]);var n;var _iterator = _createForOfIteratorHelper(t),_step;try {for (_iterator.s(); !(_step = _iterator.n()).done;) {var _e8 = _step.value;var _t4 = _e8.isMatch,_n2 = _e8.genAdapter,_s = _e8.runtime;if (_t4()) return { adapter: _n2(), runtime: _s };}} catch (err) {_iterator.e(err);} finally {_iterator.f();}}!function (e) {e.WEB = "web", e.WX_MP = "wx_mp";}(ee || (ee = {}));var ne = { adapter: null, runtime: void 0 },se = ["anonymousUuidKey"];var oe = /*#__PURE__*/function (_X) {_inherits(oe, _X);var _super2 = _createSuper(oe);function oe() {var _this7;_classCallCheck(this, oe);_this7 = _super2.call(this), ne.adapter.root.tcbObject || (ne.adapter.root.tcbObject = {});return _this7;}_createClass(oe, [{ key: "setItem", value: function setItem(e, t) {ne.adapter.root.tcbObject[e] = t;} }, { key: "getItem", value: function getItem(e) {return ne.adapter.root.tcbObject[e];} }, { key: "removeItem", value: function removeItem(e) {delete ne.adapter.root.tcbObject[e];} }, { key: "clear", value: function clear() {delete ne.adapter.root.tcbObject;} }]);return oe;}(X);function re(e, t) {switch (e) {case "local":return t.localStorage || new oe();case "none":return new oe();default:return t.sessionStorage || new oe();}}var ie = /*#__PURE__*/function () {function ie(e) {_classCallCheck(this, ie);if (!this._storage) {this._persistence = ne.adapter.primaryStorage || e.persistence, this._storage = re(this._persistence, ne.adapter);var _t5 = "access_token_".concat(e.env),_n3 = "access_token_expire_".concat(e.env),_s2 = "refresh_token_".concat(e.env),_o = "anonymous_uuid_".concat(e.env),_r = "login_type_".concat(e.env),_i = "user_info_".concat(e.env);this.keys = { accessTokenKey: _t5, accessTokenExpireKey: _n3, refreshTokenKey: _s2, anonymousUuidKey: _o, loginTypeKey: _r, userInfoKey: _i };}}_createClass(ie, [{ key: "updatePersistence", value: function updatePersistence(e) {if (e === this._persistence) return;var t = "local" === this._persistence;this._persistence = e;var n = re(e, ne.adapter);for (var _e9 in this.keys) {var _s3 = this.keys[_e9];if (t && se.includes(_e9)) continue;var _o2 = this._storage.getItem(_s3);Q(_o2) || Z(_o2) || (n.setItem(_s3, _o2), this._storage.removeItem(_s3));}this._storage = n;} }, { key: "setStore", value: function setStore(e, t, n) {if (!this._storage) return;var s = { version: n || "localCachev1", content: t },o = JSON.stringify(s);try {this._storage.setItem(e, o);} catch (e) {throw e;}} }, { key: "getStore", value: function getStore(e, t) {try {if (!this._storage) return;} catch (e) {return "";}t = t || "localCachev1";var n = this._storage.getItem(e);if (!n) return "";if (n.indexOf(t) >= 0) {return JSON.parse(n).content;}return "";} }, { key: "removeStore", value: function removeStore(e) {this._storage.removeItem(e);} }]);return ie;}();var ae = {},ce = {};function ue(e) {return ae[e];}var le = function le(e, t) {_classCallCheck(this, le);this.data = t || null, this.name = e;};var he = /*#__PURE__*/function (_le) {_inherits(he, _le);var _super3 = _createSuper(he);function he(e, t) {var _this8;_classCallCheck(this, he);_this8 = _super3.call(this, "error", { error: e, data: t }), _this8.error = e;return _this8;}return he;}(le);var de = new ( /*#__PURE__*/function () {function _class() {_classCallCheck(this, _class);this._listeners = {};}_createClass(_class, [{ key: "on", value: function on(e, t) {return function (e, t, n) {n[e] = n[e] || [], n[e].push(t);}(e, t, this._listeners), this;} }, { key: "off", value: function off(e, t) {return function (e, t, n) {if (n && n[e]) {var _s4 = n[e].indexOf(t);-1 !== _s4 && n[e].splice(_s4, 1);}}(e, t, this._listeners), this;} }, { key: "fire", value: function fire(e, t) {if (e instanceof he) return console.error(e.error), this;var n = "string" == typeof e ? new le(e, t || {}) : e;var s = n.name;if (this._listens(s)) {n.target = this;var _e10 = this._listeners[s] ? _toConsumableArray(this._listeners[s]) : [];var _iterator2 = _createForOfIteratorHelper(_e10),_step2;try {for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {var _t6 = _step2.value;_t6.call(this, n);}} catch (err) {_iterator2.e(err);} finally {_iterator2.f();}}return this;} }, { key: "_listens", value: function _listens(e) {return this._listeners[e] && this._listeners[e].length > 0;} }]);return _class;}())();function fe(e, t) {de.on(e, t);}function ge(e) {var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};de.fire(e, t);}function pe(e, t) {de.off(e, t);}var me = "loginStateChanged",ye = "loginStateExpire",_e = "loginTypeChanged",we = "anonymousConverted",ke = "refreshAccessToken";var Se;!function (e) {e.ANONYMOUS = "ANONYMOUS", e.WECHAT = "WECHAT", e.WECHAT_PUBLIC = "WECHAT-PUBLIC", e.WECHAT_OPEN = "WECHAT-OPEN", e.CUSTOM = "CUSTOM", e.EMAIL = "EMAIL", e.USERNAME = "USERNAME", e.NULL = "NULL";}(Se || (Se = {}));var Te = ["auth.getJwt", "auth.logout", "auth.signInWithTicket", "auth.signInAnonymously", "auth.signIn", "auth.fetchAccessTokenWithRefreshToken", "auth.signUpWithEmailAndPassword", "auth.activateEndUserMail", "auth.sendPasswordResetEmail", "auth.resetPasswordWithToken", "auth.isUsernameRegistered"],ve = { "X-SDK-Version": "1.3.5" };function Ae(e, t, n) {var s = e[t];e[t] = function (t) {var o = {},r = {};n.forEach(function (n) {var _n$call = n.call(e, t),s = _n$call.data,i = _n$call.headers;Object.assign(o, s), Object.assign(r, i);});var i = t.data;return i && function () {var e;if (e = i, "[object FormData]" !== Object.prototype.toString.call(e)) t.data = _objectSpread(_objectSpread({}, i), o);else for (var _e11 in o) {i.append(_e11, o[_e11]);}}(), t.headers = _objectSpread(_objectSpread({}, t.headers || {}), r), s.call(e, t);};}function Pe() {var e = Math.random().toString(16).slice(2);return { data: { seqId: e }, headers: _objectSpread(_objectSpread({}, ve), {}, { "x-seqid": e }) };}var Ie = /*#__PURE__*/function () {function Ie() {var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};_classCallCheck(this, Ie);var t;this.config = e, this._reqClass = new ne.adapter.reqClass({ timeout: this.config.timeout, timeoutMsg: "\u8BF7\u6C42\u5728".concat(this.config.timeout / 1e3, "s\u5185\u672A\u5B8C\u6210\uFF0C\u5DF2\u4E2D\u65AD"), restrictedMethods: ["post"] }), this._cache = ue(this.config.env), this._localCache = (t = this.config.env, ce[t]), Ae(this._reqClass, "post", [Pe]), Ae(this._reqClass, "upload", [Pe]), Ae(this._reqClass, "download", [Pe]);}_createClass(Ie, [{ key: "post", value: function () {var _post = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee(e) {return _regenerator.default.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:_context.next = 2;return this._reqClass.post(e);case 2:return _context.abrupt("return", _context.sent);case 3:case "end":return _context.stop();}}}, _callee, this);}));function post(_x) {return _post.apply(this, arguments);}return post;}() }, { key: "upload", value: function () {var _upload = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee2(e) {return _regenerator.default.wrap(function _callee2$(_context2) {while (1) {switch (_context2.prev = _context2.next) {case 0:_context2.next = 2;return this._reqClass.upload(e);case 2:return _context2.abrupt("return", _context2.sent);case 3:case "end":return _context2.stop();}}}, _callee2, this);}));function upload(_x2) {return _upload.apply(this, arguments);}return upload;}() }, { key: "download", value: function () {var _download = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee3(e) {return _regenerator.default.wrap(function _callee3$(_context3) {while (1) {switch (_context3.prev = _context3.next) {case 0:_context3.next = 2;return this._reqClass.download(e);case 2:return _context3.abrupt("return", _context3.sent);case 3:case "end":return _context3.stop();}}}, _callee3, this);}));function download(_x3) {return _download.apply(this, arguments);}return download;}() }, { key: "refreshAccessToken", value: function () {var _refreshAccessToken2 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee4() {var e, t;return _regenerator.default.wrap(function _callee4$(_context4) {while (1) {switch (_context4.prev = _context4.next) {case 0:this._refreshAccessTokenPromise || (this._refreshAccessTokenPromise = this._refreshAccessToken());_context4.prev = 1;_context4.next = 4;return this._refreshAccessTokenPromise;case 4:e = _context4.sent;_context4.next = 10;break;case 7:_context4.prev = 7;_context4.t0 = _context4["catch"](1);t = _context4.t0;case 10:if (!(this._refreshAccessTokenPromise = null, this._shouldRefreshAccessTokenHook = null, t)) {_context4.next = 12;break;}throw t;case 12:return _context4.abrupt("return", e);case 13:case "end":return _context4.stop();}}}, _callee4, this, [[1, 7]]);}));function refreshAccessToken() {return _refreshAccessToken2.apply(this, arguments);}return refreshAccessToken;}() }, { key: "_refreshAccessToken", value: function () {var _refreshAccessToken3 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee5() {var _this$_cache$keys, e, t, n, s, o, r, i, a, _e12, _e13, _t7, _s5;return _regenerator.default.wrap(function _callee5$(_context5) {while (1) {switch (_context5.prev = _context5.next) {case 0:_this$_cache$keys = this._cache.keys, e = _this$_cache$keys.accessTokenKey, t = _this$_cache$keys.accessTokenExpireKey, n = _this$_cache$keys.refreshTokenKey, s = _this$_cache$keys.loginTypeKey, o = _this$_cache$keys.anonymousUuidKey;this._cache.removeStore(e), this._cache.removeStore(t);r = this._cache.getStore(n);if (r) {_context5.next = 5;break;}throw new F({ message: "未登录CloudBase" });case 5:i = { refresh_token: r };_context5.next = 8;return this.request("auth.fetchAccessTokenWithRefreshToken", i);case 8:a = _context5.sent;if (!a.data.code) {_context5.next = 21;break;}_e12 = a.data.code;if (!("SIGN_PARAM_INVALID" === _e12 || "REFRESH_TOKEN_EXPIRED" === _e12 || "INVALID_REFRESH_TOKEN" === _e12)) {_context5.next = 20;break;}if (!(this._cache.getStore(s) === Se.ANONYMOUS && "INVALID_REFRESH_TOKEN" === _e12)) {_context5.next = 19;break;}_e13 = this._cache.getStore(o);_t7 = this._cache.getStore(n);_context5.next = 17;return this.send("auth.signInAnonymously", { anonymous_uuid: _e13, refresh_token: _t7 });case 17:_s5 = _context5.sent;return _context5.abrupt("return", (this.setRefreshToken(_s5.refresh_token), this._refreshAccessToken()));case 19:ge(ye), this._cache.removeStore(n);case 20:throw new F({ code: a.data.code, message: "\u5237\u65B0access token\u5931\u8D25\uFF1A".concat(a.data.code) });case 21:if (!a.data.access_token) {_context5.next = 23;break;}return _context5.abrupt("return", (ge(ke), this._cache.setStore(e, a.data.access_token), this._cache.setStore(t, a.data.access_token_expire + Date.now()), { accessToken: a.data.access_token, accessTokenExpire: a.data.access_token_expire }));case 23:a.data.refresh_token && (this._cache.removeStore(n), this._cache.setStore(n, a.data.refresh_token), this._refreshAccessToken());case 24:case "end":return _context5.stop();}}}, _callee5, this);}));function _refreshAccessToken() {return _refreshAccessToken3.apply(this, arguments);}return _refreshAccessToken;}() }, { key: "getAccessToken", value: function () {var _getAccessToken = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee6() {var _this$_cache$keys2, e, t, n, s, o, r;return _regenerator.default.wrap(function _callee6$(_context6) {while (1) {switch (_context6.prev = _context6.next) {case 0:_this$_cache$keys2 = this._cache.keys, e = _this$_cache$keys2.accessTokenKey, t = _this$_cache$keys2.accessTokenExpireKey, n = _this$_cache$keys2.refreshTokenKey;if (this._cache.getStore(n)) {_context6.next = 3;break;}throw new F({ message: "refresh token不存在,登录状态异常" });case 3:s = this._cache.getStore(e), o = this._cache.getStore(t), r = !0;_context6.t0 = this._shouldRefreshAccessTokenHook;if (!_context6.t0) {_context6.next = 9;break;}_context6.next = 8;return this._shouldRefreshAccessTokenHook(s, o);case 8:_context6.t0 = !_context6.sent;case 9:_context6.t1 = _context6.t0;if (!_context6.t1) {_context6.next = 12;break;}r = !1;case 12:return _context6.abrupt("return", (!s || !o || o < Date.now()) && r ? this.refreshAccessToken() : { accessToken: s, accessTokenExpire: o });case 13:case "end":return _context6.stop();}}}, _callee6, this);}));function getAccessToken() {return _getAccessToken.apply(this, arguments);}return getAccessToken;}() }, { key: "request", value: function () {var _request = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee7(e, t, n) {var s, o, r, _e14, i, _e15, _e16, a, c, u, l, h, d, f, g, p;return _regenerator.default.wrap(function _callee7$(_context7) {while (1) {switch (_context7.prev = _context7.next) {case 0:s = "x-tcb-trace_".concat(this.config.env);o = "application/x-www-form-urlencoded";r = _objectSpread({ action: e, env: this.config.env, dataVersion: "2019-08-16" }, t);if (!(-1 === Te.indexOf(e))) {_context7.next = 10;break;}_e14 = this._cache.keys.refreshTokenKey;_context7.t0 = this._cache.getStore(_e14);if (!_context7.t0) {_context7.next = 10;break;}_context7.next = 9;return this.getAccessToken();case 9:r.access_token = _context7.sent.accessToken;case 10:if ("storage.uploadFile" === e) {i = new FormData();for (_e15 in i) {i.hasOwnProperty(_e15) && void 0 !== i[_e15] && i.append(_e15, r[_e15]);}o = "multipart/form-data";} else {o = "application/json", i = {};for (_e16 in r) {void 0 !== r[_e16] && (i[_e16] = r[_e16]);}}a = { headers: { "content-type": o } };n && n.onUploadProgress && (a.onUploadProgress = n.onUploadProgress);c = this._localCache.getStore(s);c && (a.headers["X-TCB-Trace"] = c);u = t.parse, l = t.inQuery, h = t.search;d = { env: this.config.env };u && (d.parse = !0), l && (d = _objectSpread(_objectSpread({}, l), d));f = function (e, t) {var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};var s = /\?/.test(t);var o = "";for (var _e17 in n) {"" === o ? !s && (t += "?") : o += "&", o += "".concat(_e17, "=").concat(encodeURIComponent(n[_e17]));}return /^http(s)?\:\/\//.test(t += o) ? t : "".concat(e).concat(t);}(J, "//tcb-api.tencentcloudapi.com/web", d);h && (f += h);_context7.next = 22;return this.post(_objectSpread({ url: f, data: i }, a));case 22:g = _context7.sent;p = g.header && g.header["x-tcb-trace"];if (!(p && this._localCache.setStore(s, p), 200 !== Number(g.status) && 200 !== Number(g.statusCode) || !g.data)) {_context7.next = 26;break;}throw new F({ code: "NETWORK_ERROR", message: "network request error" });case 26:return _context7.abrupt("return", g);case 27:case "end":return _context7.stop();}}}, _callee7, this);}));function request(_x4, _x5, _x6) {return _request.apply(this, arguments);}return request;}() }, { key: "send", value: function () {var _send = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee8(e) {var t,n,_n4,_args8 = arguments;return _regenerator.default.wrap(function _callee8$(_context8) {while (1) {switch (_context8.prev = _context8.next) {case 0:t = _args8.length > 1 && _args8[1] !== undefined ? _args8[1] : {};_context8.next = 3;return this.request(e, t, { onUploadProgress: t.onUploadProgress });case 3:n = _context8.sent;if (!("ACCESS_TOKEN_EXPIRED" === n.data.code && -1 === Te.indexOf(e))) {_context8.next = 13;break;}_context8.next = 7;return this.refreshAccessToken();case 7:_context8.next = 9;return this.request(e, t, { onUploadProgress: t.onUploadProgress });case 9:_n4 = _context8.sent;if (!_n4.data.code) {_context8.next = 12;break;}throw new F({ code: _n4.data.code, message: _n4.data.message });case 12:return _context8.abrupt("return", _n4.data);case 13:if (!n.data.code) {_context8.next = 15;break;}throw new F({ code: n.data.code, message: n.data.message });case 15:return _context8.abrupt("return", n.data);case 16:case "end":return _context8.stop();}}}, _callee8, this);}));function send(_x7) {return _send.apply(this, arguments);}return send;}() }, { key: "setRefreshToken", value: function setRefreshToken(e) {var _this$_cache$keys3 = this._cache.keys,t = _this$_cache$keys3.accessTokenKey,n = _this$_cache$keys3.accessTokenExpireKey,s = _this$_cache$keys3.refreshTokenKey;this._cache.removeStore(t), this._cache.removeStore(n), this._cache.setStore(s, e);} }]);return Ie;}();var Oe = {};function be(e) {return Oe[e];}var Ce = /*#__PURE__*/function () {function Ce(e) {_classCallCheck(this, Ce);this.config = e, this._cache = ue(e.env), this._request = be(e.env);}_createClass(Ce, [{ key: "setRefreshToken", value: function setRefreshToken(e) {var _this$_cache$keys4 = this._cache.keys,t = _this$_cache$keys4.accessTokenKey,n = _this$_cache$keys4.accessTokenExpireKey,s = _this$_cache$keys4.refreshTokenKey;this._cache.removeStore(t), this._cache.removeStore(n), this._cache.setStore(s, e);} }, { key: "setAccessToken", value: function setAccessToken(e, t) {var _this$_cache$keys5 = this._cache.keys,n = _this$_cache$keys5.accessTokenKey,s = _this$_cache$keys5.accessTokenExpireKey;this._cache.setStore(n, e), this._cache.setStore(s, t);} }, { key: "refreshUserInfo", value: function () {var _refreshUserInfo = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee9() {var _yield$this$_request$, e;return _regenerator.default.wrap(function _callee9$(_context9) {while (1) {switch (_context9.prev = _context9.next) {case 0:_context9.next = 2;return this._request.send("auth.getUserInfo", {});case 2:_yield$this$_request$ = _context9.sent;e = _yield$this$_request$.data;return _context9.abrupt("return", (this.setLocalUserInfo(e), e));case 5:case "end":return _context9.stop();}}}, _callee9, this);}));function refreshUserInfo() {return _refreshUserInfo.apply(this, arguments);}return refreshUserInfo;}() }, { key: "setLocalUserInfo", value: function setLocalUserInfo(e) {var t = this._cache.keys.userInfoKey;this._cache.setStore(t, e);} }]);return Ce;}();var Ee = /*#__PURE__*/function () {function Ee(e) {_classCallCheck(this, Ee);if (!e) throw new F({ code: "PARAM_ERROR", message: "envId is not defined" });this._envId = e, this._cache = ue(this._envId), this._request = be(this._envId), this.setUserInfo();}_createClass(Ee, [{ key: "linkWithTicket", value: function linkWithTicket(e) {if ("string" != typeof e) throw new F({ code: "PARAM_ERROR", message: "ticket must be string" });return this._request.send("auth.linkWithTicket", { ticket: e });} }, { key: "linkWithRedirect", value: function linkWithRedirect(e) {e.signInWithRedirect();} }, { key: "updatePassword", value: function updatePassword(e, t) {return this._request.send("auth.updatePassword", { oldPassword: t, newPassword: e });} }, { key: "updateEmail", value: function updateEmail(e) {return this._request.send("auth.updateEmail", { newEmail: e });} }, { key: "updateUsername", value: function updateUsername(e) {if ("string" != typeof e) throw new F({ code: "PARAM_ERROR", message: "username must be a string" });return this._request.send("auth.updateUsername", { username: e });} }, { key: "getLinkedUidList", value: function () {var _getLinkedUidList = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee10() {var _yield$this$_request$2, e, t, n;return _regenerator.default.wrap(function _callee10$(_context10) {while (1) {switch (_context10.prev = _context10.next) {case 0:_context10.next = 2;return this._request.send("auth.getLinkedUidList", {});case 2:_yield$this$_request$2 = _context10.sent;e = _yield$this$_request$2.data;t = !1;n = e.users;return _context10.abrupt("return", (n.forEach(function (e) {e.wxOpenId && e.wxPublicId && (t = !0);}), { users: n, hasPrimaryUid: t }));case 7:case "end":return _context10.stop();}}}, _callee10, this);}));function getLinkedUidList() {return _getLinkedUidList.apply(this, arguments);}return getLinkedUidList;}() }, { key: "setPrimaryUid", value: function setPrimaryUid(e) {return this._request.send("auth.setPrimaryUid", { uid: e });} }, { key: "unlink", value: function unlink(e) {return this._request.send("auth.unlink", { platform: e });} }, { key: "update", value: function () {var _update = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee11(e) {var t, n, s, o, r, i, _yield$this$_request$3, a;return _regenerator.default.wrap(function _callee11$(_context11) {while (1) {switch (_context11.prev = _context11.next) {case 0:t = e.nickName;n = e.gender;s = e.avatarUrl;o = e.province;r = e.country;i = e.city;_context11.next = 8;return this._request.send("auth.updateUserInfo", { nickName: t, gender: n, avatarUrl: s, province: o, country: r, city: i });case 8:_yield$this$_request$3 = _context11.sent;a = _yield$this$_request$3.data;this.setLocalUserInfo(a);case 11:case "end":return _context11.stop();}}}, _callee11, this);}));function update(_x8) {return _update.apply(this, arguments);}return update;}() }, { key: "refresh", value: function () {var _refresh = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee12() {var _yield$this$_request$4, e;return _regenerator.default.wrap(function _callee12$(_context12) {while (1) {switch (_context12.prev = _context12.next) {case 0:_context12.next = 2;return this._request.send("auth.getUserInfo", {});case 2:_yield$this$_request$4 = _context12.sent;e = _yield$this$_request$4.data;return _context12.abrupt("return", (this.setLocalUserInfo(e), e));case 5:case "end":return _context12.stop();}}}, _callee12, this);}));function refresh() {return _refresh.apply(this, arguments);}return refresh;}() }, { key: "setUserInfo", value: function setUserInfo() {var _this9 = this;var e = this._cache.keys.userInfoKey,t = this._cache.getStore(e);["uid", "loginType", "openid", "wxOpenId", "wxPublicId", "unionId", "qqMiniOpenId", "email", "hasPassword", "customUserId", "nickName", "gender", "avatarUrl"].forEach(function (e) {_this9[e] = t[e];}), this.location = { country: t.country, province: t.province, city: t.city };} }, { key: "setLocalUserInfo", value: function setLocalUserInfo(e) {var t = this._cache.keys.userInfoKey;this._cache.setStore(t, e), this.setUserInfo();} }]);return Ee;}();var Re = /*#__PURE__*/function () {function Re(e) {_classCallCheck(this, Re);if (!e) throw new F({ code: "PARAM_ERROR", message: "envId is not defined" });this._cache = ue(e);var _this$_cache$keys6 = this._cache.keys,t = _this$_cache$keys6.refreshTokenKey,n = _this$_cache$keys6.accessTokenKey,s = _this$_cache$keys6.accessTokenExpireKey,o = this._cache.getStore(t),r = this._cache.getStore(n),i = this._cache.getStore(s);this.credential = { refreshToken: o, accessToken: r, accessTokenExpire: i }, this.user = new Ee(e);}_createClass(Re, [{ key: "isAnonymousAuth", get: function get() {return this.loginType === Se.ANONYMOUS;} }, { key: "isCustomAuth", get: function get() {return this.loginType === Se.CUSTOM;} }, { key: "isWeixinAuth", get: function get() {return this.loginType === Se.WECHAT || this.loginType === Se.WECHAT_OPEN || this.loginType === Se.WECHAT_PUBLIC;} }, { key: "loginType", get: function get() {return this._cache.getStore(this._cache.keys.loginTypeKey);} }]);return Re;}();var Ue = /*#__PURE__*/function (_Ce) {_inherits(Ue, _Ce);var _super4 = _createSuper(Ue);function Ue() {_classCallCheck(this, Ue);return _super4.apply(this, arguments);}_createClass(Ue, [{ key: "signIn", value: function () {var _signIn = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee13() {var _this$_cache$keys7, e, t, n, s, o, _e18;return _regenerator.default.wrap(function _callee13$(_context13) {while (1) {switch (_context13.prev = _context13.next) {case 0:this._cache.updatePersistence("local");_this$_cache$keys7 = this._cache.keys;e = _this$_cache$keys7.anonymousUuidKey;t = _this$_cache$keys7.refreshTokenKey;n = this._cache.getStore(e) || void 0;s = this._cache.getStore(t) || void 0;_context13.next = 8;return this._request.send("auth.signInAnonymously", { anonymous_uuid: n, refresh_token: s });case 8:o = _context13.sent;if (!(o.uuid && o.refresh_token)) {_context13.next = 20;break;}this._setAnonymousUUID(o.uuid);this.setRefreshToken(o.refresh_token);_context13.next = 14;return this._request.refreshAccessToken();case 14:ge(me);ge(_e, { env: this.config.env, loginType: Se.ANONYMOUS, persistence: "local" });_e18 = new Re(this.config.env);_context13.next = 19;return _e18.user.refresh();case 19:return _context13.abrupt("return", _e18);case 20:throw new F({ message: "匿名登录失败" });case 21:case "end":return _context13.stop();}}}, _callee13, this);}));function signIn() {return _signIn.apply(this, arguments);}return signIn;}() }, { key: "linkAndRetrieveDataWithTicket", value: function () {var _linkAndRetrieveDataWithTicket = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee14(e) {var _this$_cache$keys8, t, n, s, o, r;return _regenerator.default.wrap(function _callee14$(_context14) {while (1) {switch (_context14.prev = _context14.next) {case 0:_this$_cache$keys8 = this._cache.keys;t = _this$_cache$keys8.anonymousUuidKey;n = _this$_cache$keys8.refreshTokenKey;s = this._cache.getStore(t);o = this._cache.getStore(n);_context14.next = 7;return this._request.send("auth.linkAndRetrieveDataWithTicket", { anonymous_uuid: s, refresh_token: o, ticket: e });case 7:r = _context14.sent;if (!r.refresh_token) {_context14.next = 16;break;}this._clearAnonymousUUID();this.setRefreshToken(r.refresh_token);_context14.next = 13;return this._request.refreshAccessToken();case 13:ge(we, { env: this.config.env });ge(_e, { loginType: Se.CUSTOM, persistence: "local" });return _context14.abrupt("return", { credential: { refreshToken: r.refresh_token } });case 16:throw new F({ message: "匿名转化失败" });case 17:case "end":return _context14.stop();}}}, _callee14, this);}));function linkAndRetrieveDataWithTicket(_x9) {return _linkAndRetrieveDataWithTicket.apply(this, arguments);}return linkAndRetrieveDataWithTicket;}() }, { key: "_setAnonymousUUID", value: function _setAnonymousUUID(e) {var _this$_cache$keys9 = this._cache.keys,t = _this$_cache$keys9.anonymousUuidKey,n = _this$_cache$keys9.loginTypeKey;this._cache.removeStore(t), this._cache.setStore(t, e), this._cache.setStore(n, Se.ANONYMOUS);} }, { key: "_clearAnonymousUUID", value: function _clearAnonymousUUID() {this._cache.removeStore(this._cache.keys.anonymousUuidKey);} }]);return Ue;}(Ce);var xe = /*#__PURE__*/function (_Ce2) {_inherits(xe, _Ce2);var _super5 = _createSuper(xe);function xe() {_classCallCheck(this, xe);return _super5.apply(this, arguments);}_createClass(xe, [{ key: "signIn", value: function () {var _signIn2 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee15(e) {var t, n;return _regenerator.default.wrap(function _callee15$(_context15) {while (1) {switch (_context15.prev = _context15.next) {case 0:if (!("string" != typeof e)) {_context15.next = 2;break;}throw new F({ param: "PARAM_ERROR", message: "ticket must be a string" });case 2:t = this._cache.keys.refreshTokenKey;_context15.next = 5;return this._request.send("auth.signInWithTicket", { ticket: e, refresh_token: this._cache.getStore(t) || "" });case 5:n = _context15.sent;if (!n.refresh_token) {_context15.next = 15;break;}this.setRefreshToken(n.refresh_token);_context15.next = 10;return this._request.refreshAccessToken();case 10:ge(me);ge(_e, { env: this.config.env, loginType: Se.CUSTOM, persistence: this.config.persistence });_context15.next = 14;return this.refreshUserInfo();case 14:return _context15.abrupt("return", new Re(this.config.env));case 15:throw new F({ message: "自定义登录失败" });case 16:case "end":return _context15.stop();}}}, _callee15, this);}));function signIn(_x10) {return _signIn2.apply(this, arguments);}return signIn;}() }]);return xe;}(Ce);var Le = /*#__PURE__*/function (_Ce3) {_inherits(Le, _Ce3);var _super6 = _createSuper(Le);function Le() {_classCallCheck(this, Le);return _super6.apply(this, arguments);}_createClass(Le, [{ key: "signIn", value: function () {var _signIn3 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee16(e, t) {var n, s, o, r, i;return _regenerator.default.wrap(function _callee16$(_context16) {while (1) {switch (_context16.prev = _context16.next) {case 0:if (!("string" != typeof e)) {_context16.next = 2;break;}throw new F({ code: "PARAM_ERROR", message: "email must be a string" });case 2:n = this._cache.keys.refreshTokenKey;_context16.next = 5;return this._request.send("auth.signIn", { loginType: "EMAIL", email: e, password: t, refresh_token: this._cache.getStore(n) || "" });case 5:s = _context16.sent;o = s.refresh_token;r = s.access_token;i = s.access_token_expire;if (!o) {_context16.next = 22;break;}this.setRefreshToken(o);if (!(r && i)) {_context16.next = 15;break;}this.setAccessToken(r, i);_context16.next = 17;break;case 15:_context16.next = 17;return this._request.refreshAccessToken();case 17:_context16.next = 19;return this.refreshUserInfo();case 19:ge(me);ge(_e, { env: this.config.env, loginType: Se.EMAIL, persistence: this.config.persistence });return _context16.abrupt("return", new Re(this.config.env));case 22:throw s.code ? new F({ code: s.code, message: "\u90AE\u7BB1\u767B\u5F55\u5931\u8D25: ".concat(s.message) }) : new F({ message: "邮箱登录失败" });case 23:case "end":return _context16.stop();}}}, _callee16, this);}));function signIn(_x11, _x12) {return _signIn3.apply(this, arguments);}return signIn;}() }, { key: "activate", value: function () {var _activate = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee17(e) {return _regenerator.default.wrap(function _callee17$(_context17) {while (1) {switch (_context17.prev = _context17.next) {case 0:return _context17.abrupt("return", this._request.send("auth.activateEndUserMail", { token: e }));case 1:case "end":return _context17.stop();}}}, _callee17, this);}));function activate(_x13) {return _activate.apply(this, arguments);}return activate;}() }, { key: "resetPasswordWithToken", value: function () {var _resetPasswordWithToken = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee18(e, t) {return _regenerator.default.wrap(function _callee18$(_context18) {while (1) {switch (_context18.prev = _context18.next) {case 0:return _context18.abrupt("return", this._request.send("auth.resetPasswordWithToken", { token: e, newPassword: t }));case 1:case "end":return _context18.stop();}}}, _callee18, this);}));function resetPasswordWithToken(_x14, _x15) {return _resetPasswordWithToken.apply(this, arguments);}return resetPasswordWithToken;}() }]);return Le;}(Ce);var De = /*#__PURE__*/function (_Ce4) {_inherits(De, _Ce4);var _super7 = _createSuper(De);function De() {_classCallCheck(this, De);return _super7.apply(this, arguments);}_createClass(De, [{ key: "signIn", value: function () {var _signIn4 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee19(e, t) {var n, s, o, r, i;return _regenerator.default.wrap(function _callee19$(_context19) {while (1) {switch (_context19.prev = _context19.next) {case 0:if (!("string" != typeof e)) {_context19.next = 2;break;}throw new F({ code: "PARAM_ERROR", message: "username must be a string" });case 2:"string" != typeof t && (t = "", console.warn("password is empty"));n = this._cache.keys.refreshTokenKey;_context19.next = 6;return this._request.send("auth.signIn", { loginType: Se.USERNAME, username: e, password: t, refresh_token: this._cache.getStore(n) || "" });case 6:s = _context19.sent;o = s.refresh_token;r = s.access_token_expire;i = s.access_token;if (!o) {_context19.next = 23;break;}this.setRefreshToken(o);if (!(i && r)) {_context19.next = 16;break;}this.setAccessToken(i, r);_context19.next = 18;break;case 16:_context19.next = 18;return this._request.refreshAccessToken();case 18:_context19.next = 20;return this.refreshUserInfo();case 20:ge(me);ge(_e, { env: this.config.env, loginType: Se.USERNAME, persistence: this.config.persistence });return _context19.abrupt("return", new Re(this.config.env));case 23:throw s.code ? new F({ code: s.code, message: "\u7528\u6237\u540D\u5BC6\u7801\u767B\u5F55\u5931\u8D25: ".concat(s.message) }) : new F({ message: "用户名密码登录失败" });case 24:case "end":return _context19.stop();}}}, _callee19, this);}));function signIn(_x16, _x17) {return _signIn4.apply(this, arguments);}return signIn;}() }]);return De;}(Ce);var qe = /*#__PURE__*/function () {function qe(e) {_classCallCheck(this, qe);this.config = e, this._cache = ue(e.env), this._request = be(e.env), this._onAnonymousConverted = this._onAnonymousConverted.bind(this), this._onLoginTypeChanged = this._onLoginTypeChanged.bind(this), fe(_e, this._onLoginTypeChanged);}_createClass(qe, [{ key: "anonymousAuthProvider", value: function anonymousAuthProvider() {return new Ue(this.config);} }, { key: "customAuthProvider", value: function customAuthProvider() {return new xe(this.config);} }, { key: "emailAuthProvider", value: function emailAuthProvider() {return new Le(this.config);} }, { key: "usernameAuthProvider", value: function usernameAuthProvider() {return new De(this.config);} }, { key: "signInAnonymously", value: function () {var _signInAnonymously = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee20() {return _regenerator.default.wrap(function _callee20$(_context20) {while (1) {switch (_context20.prev = _context20.next) {case 0:return _context20.abrupt("return", new Ue(this.config).signIn());case 1:case "end":return _context20.stop();}}}, _callee20, this);}));function signInAnonymously() {return _signInAnonymously.apply(this, arguments);}return signInAnonymously;}() }, { key: "signInWithEmailAndPassword", value: function () {var _signInWithEmailAndPassword = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee21(e, t) {return _regenerator.default.wrap(function _callee21$(_context21) {while (1) {switch (_context21.prev = _context21.next) {case 0:return _context21.abrupt("return", new Le(this.config).signIn(e, t));case 1:case "end":return _context21.stop();}}}, _callee21, this);}));function signInWithEmailAndPassword(_x18, _x19) {return _signInWithEmailAndPassword.apply(this, arguments);}return signInWithEmailAndPassword;}() }, { key: "signInWithUsernameAndPassword", value: function signInWithUsernameAndPassword(e, t) {return new De(this.config).signIn(e, t);} }, { key: "linkAndRetrieveDataWithTicket", value: function () {var _linkAndRetrieveDataWithTicket2 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee22(e) {return _regenerator.default.wrap(function _callee22$(_context22) {while (1) {switch (_context22.prev = _context22.next) {case 0:this._anonymousAuthProvider || (this._anonymousAuthProvider = new Ue(this.config)), fe(we, this._onAnonymousConverted);_context22.next = 3;return this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e);case 3:return _context22.abrupt("return", _context22.sent);case 4:case "end":return _context22.stop();}}}, _callee22, this);}));function linkAndRetrieveDataWithTicket(_x20) {return _linkAndRetrieveDataWithTicket2.apply(this, arguments);}return linkAndRetrieveDataWithTicket;}() }, { key: "signOut", value: function () {var _signOut = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee23() {var _this$_cache$keys10, e, t, n, s, o;return _regenerator.default.wrap(function _callee23$(_context23) {while (1) {switch (_context23.prev = _context23.next) {case 0:if (!(this.loginType === Se.ANONYMOUS)) {_context23.next = 2;break;}throw new F({ message: "匿名用户不支持登出操作" });case 2:_this$_cache$keys10 = this._cache.keys, e = _this$_cache$keys10.refreshTokenKey, t = _this$_cache$keys10.accessTokenKey, n = _this$_cache$keys10.accessTokenExpireKey, s = this._cache.getStore(e);if (s) {_context23.next = 5;break;}return _context23.abrupt("return");case 5:_context23.next = 7;return this._request.send("auth.logout", { refresh_token: s });case 7:o = _context23.sent;return _context23.abrupt("return", (this._cache.removeStore(e), this._cache.removeStore(t), this._cache.removeStore(n), ge(me), ge(_e, { env: this.config.env, loginType: Se.NULL, persistence: this.config.persistence }), o));case 9:case "end":return _context23.stop();}}}, _callee23, this);}));function signOut() {return _signOut.apply(this, arguments);}return signOut;}() }, { key: "signUpWithEmailAndPassword", value: function () {var _signUpWithEmailAndPassword = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee24(e, t) {return _regenerator.default.wrap(function _callee24$(_context24) {while (1) {switch (_context24.prev = _context24.next) {case 0:return _context24.abrupt("return", this._request.send("auth.signUpWithEmailAndPassword", { email: e, password: t }));case 1:case "end":return _context24.stop();}}}, _callee24, this);}));function signUpWithEmailAndPassword(_x21, _x22) {return _signUpWithEmailAndPassword.apply(this, arguments);}return signUpWithEmailAndPassword;}() }, { key: "sendPasswordResetEmail", value: function () {var _sendPasswordResetEmail = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee25(e) {return _regenerator.default.wrap(function _callee25$(_context25) {while (1) {switch (_context25.prev = _context25.next) {case 0:return _context25.abrupt("return", this._request.send("auth.sendPasswordResetEmail", { email: e }));case 1:case "end":return _context25.stop();}}}, _callee25, this);}));function sendPasswordResetEmail(_x23) {return _sendPasswordResetEmail.apply(this, arguments);}return sendPasswordResetEmail;}() }, { key: "onLoginStateChanged", value: function onLoginStateChanged(e) {var _this10 = this;fe(me, function () {var t = _this10.hasLoginState();e.call(_this10, t);});var t = this.hasLoginState();e.call(this, t);} }, { key: "onLoginStateExpired", value: function onLoginStateExpired(e) {fe(ye, e.bind(this));} }, { key: "onAccessTokenRefreshed", value: function onAccessTokenRefreshed(e) {fe(ke, e.bind(this));} }, { key: "onAnonymousConverted", value: function onAnonymousConverted(e) {fe(we, e.bind(this));} }, { key: "onLoginTypeChanged", value: function onLoginTypeChanged(e) {var _this11 = this;fe(_e, function () {var t = _this11.hasLoginState();e.call(_this11, t);});} }, { key: "getAccessToken", value: function () {var _getAccessToken2 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee26() {return _regenerator.default.wrap(function _callee26$(_context26) {while (1) {switch (_context26.prev = _context26.next) {case 0:_context26.next = 2;return this._request.getAccessToken();case 2:_context26.t0 = _context26.sent.accessToken;_context26.t1 = this.config.env;return _context26.abrupt("return", { accessToken: _context26.t0, env: _context26.t1 });case 5:case "end":return _context26.stop();}}}, _callee26, this);}));function getAccessToken() {return _getAccessToken2.apply(this, arguments);}return getAccessToken;}() }, { key: "hasLoginState", value: function hasLoginState() {var e = this._cache.keys.refreshTokenKey;return this._cache.getStore(e) ? new Re(this.config.env) : null;} }, { key: "isUsernameRegistered", value: function () {var _isUsernameRegistered = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee27(e) {var _yield$this$_request$5, t;return _regenerator.default.wrap(function _callee27$(_context27) {while (1) {switch (_context27.prev = _context27.next) {case 0:if (!("string" != typeof e)) {_context27.next = 2;break;}throw new F({ code: "PARAM_ERROR", message: "username must be a string" });case 2:_context27.next = 4;return this._request.send("auth.isUsernameRegistered", { username: e });case 4:_yield$this$_request$5 = _context27.sent;t = _yield$this$_request$5.data;return _context27.abrupt("return", t && t.isRegistered);case 7:case "end":return _context27.stop();}}}, _callee27, this);}));function isUsernameRegistered(_x24) {return _isUsernameRegistered.apply(this, arguments);}return isUsernameRegistered;}() }, { key: "getLoginState", value: function getLoginState() {return Promise.resolve(this.hasLoginState());} }, { key: "signInWithTicket", value: function () {var _signInWithTicket = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee28(e) {return _regenerator.default.wrap(function _callee28$(_context28) {while (1) {switch (_context28.prev = _context28.next) {case 0:return _context28.abrupt("return", new xe(this.config).signIn(e));case 1:case "end":return _context28.stop();}}}, _callee28, this);}));function signInWithTicket(_x25) {return _signInWithTicket.apply(this, arguments);}return signInWithTicket;}() }, { key: "shouldRefreshAccessToken", value: function shouldRefreshAccessToken(e) {this._request._shouldRefreshAccessTokenHook = e.bind(this);} }, { key: "getUserInfo", value: function getUserInfo() {return this._request.send("auth.getUserInfo", {}).then(function (e) {return e.code ? e : _objectSpread(_objectSpread({}, e.data), {}, { requestId: e.seqId });});} }, { key: "getAuthHeader", value: function getAuthHeader() {var _this$_cache$keys11 = this._cache.keys,e = _this$_cache$keys11.refreshTokenKey,t = _this$_cache$keys11.accessTokenKey,n = this._cache.getStore(e);return { "x-cloudbase-credentials": this._cache.getStore(t) + "/@@/" + n };} }, { key: "_onAnonymousConverted", value: function _onAnonymousConverted(e) {var t = e.data.env;t === this.config.env && this._cache.updatePersistence(this.config.persistence);} }, { key: "_onLoginTypeChanged", value: function _onLoginTypeChanged(e) {var _e$data = e.data,t = _e$data.loginType,n = _e$data.persistence,s = _e$data.env;s === this.config.env && (this._cache.updatePersistence(n), this._cache.setStore(this._cache.keys.loginTypeKey, t));} }, { key: "currentUser", get: function get() {var e = this.hasLoginState();return e && e.user || null;} }, { key: "loginType", get: function get() {return this._cache.getStore(this._cache.keys.loginTypeKey);} }]);return qe;}();var Ne = function Ne(e, t) {t = t || G();var n = be(this.config.env),s = e.cloudPath,o = e.filePath,r = e.onUploadProgress,_e$fileType = e.fileType,i = _e$fileType === void 0 ? "image" : _e$fileType;return n.send("storage.getUploadMetadata", { path: s }).then(function (e) {var _e$data2 = e.data,a = _e$data2.url,c = _e$data2.authorization,u = _e$data2.token,l = _e$data2.fileId,h = _e$data2.cosFileId,d = e.requestId,f = { key: s, signature: c, "x-cos-meta-fileid": h, success_action_status: "201", "x-cos-security-token": u };n.upload({ url: a, data: f, file: o, name: s, fileType: i, onUploadProgress: r }).then(function (e) {201 === e.statusCode ? t(null, { fileID: l, requestId: d }) : t(new F({ code: "STORAGE_REQUEST_FAIL", message: "STORAGE_REQUEST_FAIL: ".concat(e.data) }));}).catch(function (e) {t(e);});}).catch(function (e) {t(e);}), t.promise;},Fe = function Fe(e, t) {t = t || G();var n = be(this.config.env),s = e.cloudPath;return n.send("storage.getUploadMetadata", { path: s }).then(function (e) {t(null, e);}).catch(function (e) {t(e);}), t.promise;},Me = function Me(_ref5, t) {var e = _ref5.fileList;if (t = t || G(), !e || !Array.isArray(e)) return { code: "INVALID_PARAM", message: "fileList必须是非空的数组" };var _iterator3 = _createForOfIteratorHelper(e),_step3;try {for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {var _t8 = _step3.value;if (!_t8 || "string" != typeof _t8) return { code: "INVALID_PARAM", message: "fileList的元素必须是非空的字符串" };}} catch (err) {_iterator3.e(err);} finally {_iterator3.f();}var n = { fileid_list: e };return be(this.config.env).send("storage.batchDeleteFile", n).then(function (e) {e.code ? t(null, e) : t(null, { fileList: e.data.delete_list, requestId: e.requestId });}).catch(function (e) {t(e);}), t.promise;},je = function je(_ref6, t) {var e = _ref6.fileList;t = t || G(), e && Array.isArray(e) || t(null, { code: "INVALID_PARAM", message: "fileList必须是非空的数组" });var n = [];var _iterator4 = _createForOfIteratorHelper(e),_step4;try {for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {var _s6 = _step4.value;"object" == typeof _s6 ? (_s6.hasOwnProperty("fileID") && _s6.hasOwnProperty("maxAge") || t(null, { code: "INVALID_PARAM", message: "fileList的元素必须是包含fileID和maxAge的对象" }), n.push({ fileid: _s6.fileID, max_age: _s6.maxAge })) : "string" == typeof _s6 ? n.push({ fileid: _s6 }) : t(null, { code: "INVALID_PARAM", message: "fileList的元素必须是字符串" });}} catch (err) {_iterator4.e(err);} finally {_iterator4.f();}var s = { file_list: n };return be(this.config.env).send("storage.batchGetDownloadUrl", s).then(function (e) {e.code ? t(null, e) : t(null, { fileList: e.data.download_list, requestId: e.requestId });}).catch(function (e) {t(e);}), t.promise;},$e = /*#__PURE__*/function () {var _ref8 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee29(_ref7, t) {var e, n, s, o;return _regenerator.default.wrap(function _callee29$(_context29) {while (1) {switch (_context29.prev = _context29.next) {case 0:e = _ref7.fileID;_context29.next = 3;return je.call(this, { fileList: [{ fileID: e, maxAge: 600 }] });case 3:n = _context29.sent.fileList[0];if (!("SUCCESS" !== n.code)) {_context29.next = 6;break;}return _context29.abrupt("return", t ? t(n) : new Promise(function (e) {e(n);}));case 6:s = be(this.config.env);o = n.download_url;if (!(o = encodeURI(o), !t)) {_context29.next = 10;break;}return _context29.abrupt("return", s.download({ url: o }));case 10:_context29.t0 = t;_context29.next = 13;return s.download({ url: o });case 13:_context29.t1 = _context29.sent;(0, _context29.t0)(_context29.t1);case 15:case "end":return _context29.stop();}}}, _callee29, this);}));return function $e(_x26, _x27) {return _ref8.apply(this, arguments);};}(),Ke = function Ke(_ref9, r) {var e = _ref9.name,t = _ref9.data,n = _ref9.query,s = _ref9.parse,o = _ref9.search;var i = r || G();var a;try {a = t ? JSON.stringify(t) : "";} catch (e) {return Promise.reject(e);}if (!e) return Promise.reject(new F({ code: "PARAM_ERROR", message: "函数名不能为空" }));var c = { inQuery: n, parse: s, search: o, function_name: e, request_data: a };return be(this.config.env).send("functions.invokeFunction", c).then(function (e) {if (e.code) i(null, e);else {var _t9 = e.data.response_data;if (s) i(null, { result: _t9, requestId: e.requestId });else try {_t9 = JSON.parse(e.data.response_data), i(null, { result: _t9, requestId: e.requestId });} catch (e) {i(new F({ message: "response data must be json" }));}}return i.promise;}).catch(function (e) {i(e);}), i.promise;},Be = { timeout: 15e3, persistence: "session" },He = {};var We = /*#__PURE__*/function () {function We(e) {_classCallCheck(this, We);this.config = e || this.config, this.authObj = void 0;}_createClass(We, [{ key: "init", value: function init(e) {switch (ne.adapter || (this.requestClient = new ne.adapter.reqClass({ timeout: e.timeout || 5e3, timeoutMsg: "\u8BF7\u6C42\u5728".concat((e.timeout || 5e3) / 1e3, "s\u5185\u672A\u5B8C\u6210\uFF0C\u5DF2\u4E2D\u65AD") })), this.config = _objectSpread(_objectSpread({}, Be), e), !0) {case this.config.timeout > 6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"), this.config.timeout = 6e5;break;case this.config.timeout < 100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"), this.config.timeout = 100;}return new We(this.config);} }, { key: "auth", value: function auth() {var _ref10 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},e = _ref10.persistence;if (this.authObj) return this.authObj;var t = e || ne.adapter.primaryStorage || Be.persistence;var n;return t !== this.config.persistence && (this.config.persistence = t), function (e) {var t = e.env;ae[t] = new ie(e), ce[t] = new ie(_objectSpread(_objectSpread({}, e), {}, { persistence: "local" }));}(this.config), n = this.config, Oe[n.env] = new Ie(n), this.authObj = new qe(this.config), this.authObj;} }, { key: "on", value: function on(e, t) {return fe.apply(this, [e, t]);} }, { key: "off", value: function off(e, t) {return pe.apply(this, [e, t]);} }, { key: "callFunction", value: function callFunction(e, t) {return Ke.apply(this, [e, t]);} }, { key: "deleteFile", value: function deleteFile(e, t) {return Me.apply(this, [e, t]);} }, { key: "getTempFileURL", value: function getTempFileURL(e, t) {return je.apply(this, [e, t]);} }, { key: "downloadFile", value: function downloadFile(e, t) {return $e.apply(this, [e, t]);} }, { key: "uploadFile", value: function uploadFile(e, t) {return Ne.apply(this, [e, t]);} }, { key: "getUploadMetadata", value: function getUploadMetadata(e, t) {return Fe.apply(this, [e, t]);} }, { key: "registerExtension", value: function registerExtension(e) {He[e.name] = e;} }, { key: "invokeExtension", value: function () {var _invokeExtension = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee30(e, t) {var n;return _regenerator.default.wrap(function _callee30$(_context30) {while (1) {switch (_context30.prev = _context30.next) {case 0:n = He[e];if (n) {_context30.next = 3;break;}throw new F({ message: "\u6269\u5C55".concat(e, " \u5FC5\u987B\u5148\u6CE8\u518C") });case 3:_context30.next = 5;return n.invoke(t, this);case 5:return _context30.abrupt("return", _context30.sent);case 6:case "end":return _context30.stop();}}}, _callee30, this);}));function invokeExtension(_x28, _x29) {return _invokeExtension.apply(this, arguments);}return invokeExtension;}() }, { key: "useAdapters", value: function useAdapters(e) {var _ref11 = te(e) || {},t = _ref11.adapter,n = _ref11.runtime;t && (ne.adapter = t), n && (ne.runtime = n);} }]);return We;}();var ze = new We();function Ve(e, t, n) {void 0 === n && (n = {});var s = /\?/.test(t),o = "";for (var r in n) {"" === o ? !s && (t += "?") : o += "&", o += r + "=" + encodeURIComponent(n[r]);}return /^http(s)?:\/\//.test(t += o) ? t : "" + e + t;}var Je = /*#__PURE__*/function () {function Je() {_classCallCheck(this, Je);}_createClass(Je, [{ key: "post", value: function post(e) {var t = e.url,n = e.data,s = e.headers;return new Promise(function (e, o) {B.request({ url: Ve("https:", t), data: n, method: "POST", header: s, success: function success(t) {e(t);}, fail: function fail(e) {o(e);} });});} }, { key: "upload", value: function upload(e) {return new Promise(function (t, n) {var s = e.url,o = e.file,r = e.data,i = e.headers,a = e.fileType,c = B.uploadFile({ url: Ve("https:", s), name: "file", formData: Object.assign({}, r), filePath: o, fileType: a, header: i, success: function success(e) {var n = { statusCode: e.statusCode, data: e.data || {} };200 === e.statusCode && r.success_action_status && (n.statusCode = parseInt(r.success_action_status, 10)), t(n);}, fail: function fail(e) {d && "mp-alipay" === f && console.warn("支付宝小程序开发工具上传腾讯云时无法准确判断是否上传成功,请使用真机测试"), n(new Error(e.errMsg || "uploadFile:fail"));} });"function" == typeof e.onUploadProgress && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (t) {e.onUploadProgress({ loaded: t.totalBytesSent, total: t.totalBytesExpectedToSend });});});} }]);return Je;}();var Ye = { setItem: function setItem(e, t) {B.setStorageSync(e, t);}, getItem: function getItem(e) {return B.getStorageSync(e);}, removeItem: function removeItem(e) {B.removeStorageSync(e);}, clear: function clear() {B.clearStorageSync();} };var Xe = { genAdapter: function genAdapter() {return { root: {}, reqClass: Je, localStorage: Ye, primaryStorage: "local" };}, isMatch: function isMatch() {return !0;}, runtime: "uni_app" };ze.useAdapters(Xe);var Ge = ze,Qe = Ge.init;Ge.init = function (e) {e.env = e.spaceId;var t = Qe.call(this, e);t.config.provider = "tencent", t.config.spaceId = e.spaceId;var n = t.auth;return t.auth = function (e) {var t = n.call(this, e);return ["linkAndRetrieveDataWithTicket", "signInAnonymously", "signOut", "getAccessToken", "getLoginState", "signInWithTicket", "getUserInfo"].forEach(function (e) {t[e] = N(t[e]).bind(t);}), t;}, t.customAuth = t.auth, t;};var Ze = Ge;function et() {return { token: B.getStorageSync("uni_id_token") || B.getStorageSync("uniIdToken"), tokenExpired: B.getStorageSync("uni_id_token_expired") };}function tt() {var _ref12 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},e = _ref12.token,t = _ref12.tokenExpired;e && B.setStorageSync("uni_id_token", e), t && B.setStorageSync("uni_id_token_expired", t);}function nt() {if (!d || "h5" !== f) return;uni.getStorageSync("__LAST_DCLOUD_APPID") !== y && (uni.setStorageSync("__LAST_DCLOUD_APPID", y), console.warn("检测到当前项目与上次运行到此端口的项目不一致,自动清理uni-id保存的token信息(仅开发调试时生效)"), B.removeStorageSync("uni_id_token"), B.removeStorageSync("uniIdToken"), B.removeStorageSync("uni_id_token_expired"));}var st = /*#__PURE__*/function (_z) {_inherits(st, _z);var _super8 = _createSuper(st);function st() {_classCallCheck(this, st);return _super8.apply(this, arguments);}_createClass(st, [{ key: "getAccessToken", value: function getAccessToken() {var _this12 = this;return new Promise(function (e, t) {var n = "Anonymous_Access_token";_this12.setAccessToken(n), e(n);});} }, { key: "setupRequest", value: function setupRequest(e, t) {var n = Object.assign({}, e, { spaceId: this.config.spaceId, timestamp: Date.now() }),s = { "Content-Type": "application/json" };"auth" !== t && (n.token = this.accessToken, s["x-basement-token"] = this.accessToken), s["x-serverless-sign"] = K.sign(n, this.config.clientSecret);var o = $();s["x-client-info"] = JSON.stringify(o);var _et = et(),r = _et.token;return s["x-client-token"] = r, { url: this.config.requestUrl, method: "POST", data: n, dataType: "json", header: JSON.parse(JSON.stringify(s)) };} }, { key: "uploadFileToOSS", value: function uploadFileToOSS(_ref13) {var _this13 = this;var e = _ref13.url,t = _ref13.formData,n = _ref13.name,s = _ref13.filePath,o = _ref13.fileType,r = _ref13.onUploadProgress;return new Promise(function (i, a) {var c = _this13.adapter.uploadFile({ url: e, formData: t, name: n, filePath: s, fileType: o, success: function success(e) {e && e.statusCode < 400 ? i(e) : a(new F({ code: "UPLOAD_FAILED", message: "文件上传失败" }));}, fail: function fail(e) {a(new F({ code: e.code || "UPLOAD_FAILED", message: e.message || e.errMsg || "文件上传失败" }));} });"function" == typeof r && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (e) {r({ loaded: e.totalBytesSent, total: e.totalBytesExpectedToSend });});});} }, { key: "uploadFile", value: function uploadFile(_ref14) {var _this14 = this;var e = _ref14.filePath,t = _ref14.cloudPath,_ref14$fileType = _ref14.fileType,n = _ref14$fileType === void 0 ? "image" : _ref14$fileType,s = _ref14.onUploadProgress;if (!t) throw new F({ code: "CLOUDPATH_REQUIRED", message: "cloudPath不可为空" });var o;return this.getOSSUploadOptionsFromPath({ cloudPath: t }).then(function (t) {var _t$result = t.result,r = _t$result.url,i = _t$result.formData,a = _t$result.name;o = t.result.fileUrl;var c = { url: r, formData: i, name: a, filePath: e, fileType: n };return _this14.uploadFileToOSS(Object.assign({}, c, { onUploadProgress: s }));}).then(function () {return _this14.reportOSSUpload({ cloudPath: t });}).then(function (t) {return new Promise(function (n, s) {t.success ? n({ success: !0, filePath: e, fileID: o }) : s(new F({ code: "UPLOAD_FAILED", message: "文件上传失败" }));});});} }, { key: "deleteFile", value: function deleteFile(_ref15) {var e = _ref15.fileList;var t = { method: "serverless.file.resource.delete", params: JSON.stringify({ fileList: e }) };return this.request(this.setupRequest(t));} }, { key: "getTempFileURL", value: function getTempFileURL() {var _ref16 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},e = _ref16.fileList;var t = { method: "serverless.file.resource.getTempFileURL", params: JSON.stringify({ fileList: e }) };return this.request(this.setupRequest(t));} }]);return st;}(z);var ot = { init: function init(e) {var t = new st(e),n = { signInAnonymously: function signInAnonymously() {return t.authorize();}, getLoginState: function getLoginState() {return Promise.resolve(!1);} };return t.auth = function () {return n;}, t.customAuth = t.auth, t;} };function rt(_ref17) {var e = _ref17.data;var t;t = $();var n = JSON.parse(JSON.stringify(e || {}));if (Object.assign(n, { clientInfo: t }), !n.uniIdToken) {var _et2 = et(),_e19 = _et2.token;_e19 && (n.uniIdToken = _e19);}return n;}function it(_ref18) {var _this15 = this;var e = _ref18.name,t = _ref18.data;var n = this.localAddress,s = this.localPort,o = { aliyun: "aliyun", tencent: "tcb" }[this.config.provider],r = this.config.spaceId,i = "http://".concat(n, ":").concat(s, "/system/check-function"),a = "http://".concat(n, ":").concat(s, "/cloudfunctions/").concat(e);return new Promise(function (t, n) {B.request({ method: "POST", url: i, data: { name: e, platform: f, provider: o, spaceId: r }, timeout: 3e3, success: function success(e) {t(e);}, fail: function fail() {t({ data: { code: "NETWORK_ERROR", message: "连接本地调试服务失败,请检查客户端是否和主机在同一局域网下,自动切换为已部署的云函数。" } });} });}).then(function () {var _ref19 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},e = _ref19.data;var _ref20 = e || {},t = _ref20.code,n = _ref20.message;return { code: 0 === t ? 0 : t || "SYS_ERR", message: n || "SYS_ERR" };}).then(function (_ref21) {var n = _ref21.code,s = _ref21.message;if (0 !== n) {switch (n) {case "MODULE_ENCRYPTED":console.error("\u6B64\u4E91\u51FD\u6570\uFF08".concat(e, "\uFF09\u4F9D\u8D56\u52A0\u5BC6\u516C\u5171\u6A21\u5757\u4E0D\u53EF\u672C\u5730\u8C03\u8BD5\uFF0C\u81EA\u52A8\u5207\u6362\u4E3A\u4E91\u7AEF\u5DF2\u90E8\u7F72\u7684\u4E91\u51FD\u6570"));break;case "FUNCTION_ENCRYPTED":console.error("\u6B64\u4E91\u51FD\u6570\uFF08".concat(e, "\uFF09\u5DF2\u52A0\u5BC6\u4E0D\u53EF\u672C\u5730\u8C03\u8BD5\uFF0C\u81EA\u52A8\u5207\u6362\u4E3A\u4E91\u7AEF\u5DF2\u90E8\u7F72\u7684\u4E91\u51FD\u6570"));break;case "ACTION_ENCRYPTED":console.error(s || "需要访问加密的uni-clientDB-action,自动切换为云端环境");break;case "NETWORK_ERROR":{var _e20 = "连接本地调试服务失败,请检查客户端是否和主机在同一局域网下";throw console.error(_e20), new Error(_e20);}case "SWITCH_TO_CLOUD":break;default:{var _e21 = "\u68C0\u6D4B\u672C\u5730\u8C03\u8BD5\u670D\u52A1\u51FA\u73B0\u9519\u8BEF\uFF1A".concat(s, "\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u73AF\u5883\u6216\u91CD\u542F\u5BA2\u6237\u7AEF\u518D\u8BD5");throw console.error(_e21), new Error(_e21);}}return _this15._originCallFunction({ name: e, data: t });}return new Promise(function (e, n) {var s = rt.call(_this15, { data: t });B.request({ method: "POST", url: a, data: { provider: o, platform: f, param: s }, success: function success() {var _ref22 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},t = _ref22.statusCode,s = _ref22.data;return !t || t >= 400 ? n(new F({ code: s.code || "SYS_ERR", message: s.message || "request:fail" })) : e({ result: s });}, fail: function fail(e) {n(new F({ code: e.code || e.errCode || "SYS_ERR", message: e.message || e.errMsg || "request:fail" }));} });});});}var at = [{ rule: /fc_function_not_found|FUNCTION_NOT_FOUND/, content: ",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间", mode: "append" }];var ct = /[\\^$.*+?()[\]{}|]/g,ut = RegExp(ct.source);function lt(e, t, n) {return e.replace(new RegExp((s = t) && ut.test(s) ? s.replace(ct, "\\$&") : s, "g"), n);var s;}function ht(_ref23) {var e = _ref23.functionName,t = _ref23.result,n = _ref23.logPvd;if (this.config.useDebugFunction && t && t.requestId) {var _s7 = JSON.stringify({ spaceId: this.config.spaceId, functionName: e, requestId: t.requestId });console.log("[".concat(n, "-request]").concat(_s7, "[/").concat(n, "-request]"));}}function dt(e) {var t = e.callFunction,n = function n(_n5) {var _this16 = this;var s = _n5.name;_n5.data = rt.call(e, { data: _n5.data });var o = { aliyun: "aliyun", tencent: "tcb", tcb: "tcb" }[this.config.provider];return t.call(this, _n5).then(function (e) {return e.errCode = 0, ht.call(_this16, { functionName: s, result: e, logPvd: o }), Promise.resolve(e);}, function (e) {return ht.call(_this16, { functionName: s, result: e, logPvd: o }), e && e.message && (e.message = function () {var _ref24 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},_ref24$message = _ref24.message,e = _ref24$message === void 0 ? "" : _ref24$message,_ref24$extraInfo = _ref24.extraInfo,t = _ref24$extraInfo === void 0 ? {} : _ref24$extraInfo,_ref24$formatter = _ref24.formatter,n = _ref24$formatter === void 0 ? [] : _ref24$formatter;for (var _s8 = 0; _s8 < n.length; _s8++) {var _n$_s = n[_s8],_o3 = _n$_s.rule,_r2 = _n$_s.content,i = _n$_s.mode,_a = e.match(_o3);if (!_a) continue;var _c = _r2;for (var _e22 = 1; _e22 < _a.length; _e22++) {_c = lt(_c, "{$".concat(_e22, "}"), _a[_e22]);}for (var _e23 in t) {_c = lt(_c, "{".concat(_e23, "}"), t[_e23]);}return "replace" === i ? _c : e + _c;}return e;}({ message: "[".concat(_n5.name, "]: ").concat(e.message), formatter: at, extraInfo: { functionName: s } })), Promise.reject(e);});};e.callFunction = function (t) {var s;return d && e.debugInfo && !e.debugInfo.forceRemote && p ? (e._originCallFunction || (e._originCallFunction = n), s = it.call(this, t)) : s = n.call(this, t), Object.defineProperty(s, "result", { get: function get() {return console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"), {};} }), s;};}var ft = Symbol("CLIENT_DB_INTERNAL");function gt(e, t) {return e.then = "DoNotReturnProxyWithAFunctionNamedThen", e._internalType = ft, e.__ob__ = void 0, new Proxy(e, { get: function get(e, n, s) {if ("_uniClient" === n) return null;if (n in e || "string" != typeof n) {var _t10 = e[n];return "function" == typeof _t10 ? _t10.bind(e) : _t10;}return t.get(e, n, s);} });}function pt(e) {return { on: function on(t, n) {e[t] = e[t] || [], e[t].indexOf(n) > -1 || e[t].push(n);}, off: function off(t, n) {e[t] = e[t] || [];var s = e[t].indexOf(n);-1 !== s && e[t].splice(s, 1);} };}var mt = ["db.Geo", "db.command", "command.aggregate"];function yt(e, t) {return mt.indexOf("".concat(e, ".").concat(t)) > -1;}function _t(e) {switch (u(e)) {case "array":return e.map(function (e) {return _t(e);});case "object":return e._internalType === ft || Object.keys(e).forEach(function (t) {e[t] = _t(e[t]);}), e;case "regexp":return { $regexp: { source: e.source, flags: e.flags } };case "date":return { $date: e.toISOString() };default:return e;}}var wt = /*#__PURE__*/function () {function wt(e, t, n) {_classCallCheck(this, wt);this.content = e, this.prevStage = t || null, this.udb = null, this._database = n;}_createClass(wt, [{ key: "toJSON", value: function toJSON() {var e = this;var t = [e.content];for (; e.prevStage;) {e = e.prevStage, t.push(e.content);}return { $db: t.reverse().map(function (e) {return { $method: e.$method, $param: _t(e.$param) };}) };} }, { key: "getAction", value: function getAction() {var e = this.toJSON().$db.find(function (e) {return "action" === e.$method;});return e && e.$param && e.$param[0];} }, { key: "getCommand", value: function getCommand() {return { $db: this.toJSON().$db.filter(function (e) {return "action" !== e.$method;}) };} }, { key: "get", value: function get() {return this._send("get", Array.from(arguments));} }, { key: "add", value: function add() {return this._send("add", Array.from(arguments));} }, { key: "remove", value: function remove() {return this._send("remove", Array.from(arguments));} }, { key: "update", value: function update() {return this._send("update", Array.from(arguments));} }, { key: "end", value: function end() {return this._send("end", Array.from(arguments));} }, { key: "set", value: function set() {throw new Error("clientDB禁止使用set方法");} }, { key: "_send", value: function _send(e, t) {var n = this.getAction(),s = this.getCommand();if (s.$db.push({ $method: e, $param: _t(t) }), d) {var _e24 = s.$db.find(function (e) {return "collection" === e.$method;}),_t11 = _e24 && _e24.$param;_t11 && 1 === _t11.length && "string" == typeof _e24.$param[0] && _e24.$param[0].indexOf(",") > -1 && console.warn("检测到使用JQL语法联表查询时,未使用getTemp先过滤主表数据,在主表数据量大的情况下可能会查询缓慢。\n- 如何优化请参考此文档:https://uniapp.dcloud.net.cn/uniCloud/jql?id=lookup-with-temp \n- 如果主表数据量很小请忽略此信息,项目发行时不会出现此提示。");}return this._database._callCloudFunction({ action: n, command: s });} }, { key: "useAggregate", get: function get() {var e = this,t = !1;for (; e.prevStage;) {e = e.prevStage;var _n6 = e.content.$method;if ("aggregate" === _n6 || "pipeline" === _n6) {t = !0;break;}}return t;} }, { key: "count", get: function get() {if (!this.useAggregate) return function () {return this._send("count", Array.from(arguments));};var e = this;return function () {return kt({ $method: "count", $param: _t(Array.from(arguments)) }, e, this._database);};} }]);return wt;}();function kt(e, t, n) {return gt(new wt(e, t, n), { get: function get(e, t) {var s = "db";return e && e.content && (s = e.content.$method), yt(s, t) ? kt({ $method: t }, e, n) : function () {return kt({ $method: t, $param: _t(Array.from(arguments)) }, e, n);};} });}function St(_ref25) {var e = _ref25.path,t = _ref25.method;return /*#__PURE__*/function () {function _class2() {_classCallCheck(this, _class2);this.param = Array.from(arguments);}_createClass(_class2, [{ key: "toJSON", value: function toJSON() {return { $newDb: [].concat(_toConsumableArray(e.map(function (e) {return { $method: e };})), [{ $method: t, $param: this.param }]) };} }]);return _class2;}();}var Tt = /*#__PURE__*/function (_ref26) {_inherits(Tt, _ref26);var _super9 = _createSuper(Tt);function Tt() {_classCallCheck(this, Tt);return _super9.apply(this, arguments);}_createClass(Tt, [{ key: "_callCloudFunction", value: function _callCloudFunction(_ref27) {var _this17 = this;var e = _ref27.action,t = _ref27.command,n = _ref27.multiCommand,s = _ref27.queryList;function o(e, t) {if (n && s) for (var _n7 = 0; _n7 < s.length; _n7++) {var _o4 = s[_n7];_o4.udb && "function" == typeof _o4.udb.setResult && (t ? _o4.udb.setResult(t) : _o4.udb.setResult(e.result.dataList[_n7]));}}var r = this;function i(e) {return r._callback("error", [e]), A(P("database", "fail"), e).then(function () {return A(P("database", "complete"), e);}).then(function () {return o(null, e), q(O, { type: E, content: e }), Promise.reject(e);});}var a = A(P("database", "invoke")),u = this._uniClient;return a.then(function () {return u.callFunction({ name: "DCloud-clientDB", type: c, data: { action: e, command: t, multiCommand: n } });}).then(function (e) {var _e$result = e.result,t = _e$result.code,n = _e$result.message,s = _e$result.token,r = _e$result.tokenExpired,_e$result$systemInfo = _e$result.systemInfo,a = _e$result$systemInfo === void 0 ? [] : _e$result$systemInfo;if (a) for (var _e25 = 0; _e25 < a.length; _e25++) {var _a$_e = a[_e25],_t12 = _a$_e.level,_n8 = _a$_e.message,_s9 = _a$_e.detail,_o5 = console["app-plus" === f && "warn" === _t12 ? "error" : _t12] || console.log;var _r3 = "[System Info]" + _n8;_s9 && (_r3 = "".concat(_r3, "\n\u8BE6\u7EC6\u4FE1\u606F\uFF1A").concat(_s9)), _o5(_r3);}if (t) {return i(new F({ code: t, message: n, requestId: e.requestId }));}e.result.errCode = e.result.code, e.result.errMsg = e.result.message, s && r && (tt({ token: s, tokenExpired: r }), _this17._callbackAuth("refreshToken", [{ token: s, tokenExpired: r }]), _this17._callback("refreshToken", [{ token: s, tokenExpired: r }]), q(C, { token: s, tokenExpired: r }));var c = [{ prop: "affectedDocs", tips: "affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代" }, { prop: "code", tips: "code不再推荐使用,请使用errCode替代" }, { prop: "message", tips: "message不再推荐使用,请使用errMsg替代" }];var _loop = function _loop(_t13) {var _c$_t = c[_t13],n = _c$_t.prop,s = _c$_t.tips;if (n in e.result) {var _t14 = e.result[n];Object.defineProperty(e.result, n, { get: function get() {return console.warn(s), _t14;} });}};for (var _t13 = 0; _t13 < c.length; _t13++) {_loop(_t13);}return function (e) {return A(P("database", "success"), e).then(function () {return A(P("database", "complete"), e);}).then(function () {return o(e, null), q(O, { type: E, content: e }), Promise.resolve(e);});}(e);}, function (e) {/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message) && console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB");return i(new F({ code: e.code || "SYSTEM_ERROR", message: e.message, requestId: e.requestId }));});} }]);return Tt;}( /*#__PURE__*/function () {function _class3() {var _ref28 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},_ref28$uniClient = _ref28.uniClient,e = _ref28$uniClient === void 0 ? {} : _ref28$uniClient;_classCallCheck(this, _class3);this._uniClient = e, this._authCallBacks = {}, this._dbCallBacks = {}, e.isDefault && (this._dbCallBacks = w("_globalUniCloudDatabaseCallback")), this.auth = pt(this._authCallBacks), Object.assign(this, pt(this._dbCallBacks)), this.env = gt({}, { get: function get(e, t) {return { $env: t };} }), this.Geo = gt({}, { get: function get(e, t) {return St({ path: ["Geo"], method: t });} }), this.serverDate = St({ path: [], method: "serverDate" }), this.RegExp = St({ path: [], method: "RegExp" });}_createClass(_class3, [{ key: "getCloudEnv", value: function getCloudEnv(e) {if ("string" != typeof e || !e.trim()) throw new Error("getCloudEnv参数错误");return { $env: e.replace("$cloudEnv_", "") };} }, { key: "_callback", value: function _callback(e, t) {var n = this._dbCallBacks;n[e] && n[e].forEach(function (e) {e.apply(void 0, _toConsumableArray(t));});} }, { key: "_callbackAuth", value: function _callbackAuth(e, t) {var n = this._authCallBacks;n[e] && n[e].forEach(function (e) {e.apply(void 0, _toConsumableArray(t));});} }, { key: "multiSend", value: function multiSend() {var e = Array.from(arguments),t = e.map(function (e) {var t = e.getAction(),n = e.getCommand();if ("getTemp" !== n.$db[n.$db.length - 1].$method) throw new Error("multiSend只支持子命令内使用getTemp");return { action: t, command: n };});return this._callCloudFunction({ multiCommand: t, queryList: e });} }]);return _class3;}());function vt(e) {e.database = function (t) {if (t && Object.keys(t).length > 0) return e.init(t).database();if (this._database) return this._database;var n = function (e) {var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};return gt(new e(t), { get: function get(e, t) {return yt("db", t) ? kt({ $method: t }, null, e) : function () {return kt({ $method: t, $param: _t(Array.from(arguments)) }, null, e);};} });}(Tt, { uniClient: e });return this._database = n, n;};}var At = "token无效,跳转登录页面",Pt = "token过期,跳转登录页面",It = { TOKEN_INVALID_TOKEN_EXPIRED: Pt, TOKEN_INVALID_INVALID_CLIENTID: At, TOKEN_INVALID: At, TOKEN_INVALID_WRONG_TOKEN: At, TOKEN_INVALID_ANONYMOUS_USER: At },Ot = { "uni-id-token-expired": Pt, "uni-id-check-token-failed": At, "uni-id-token-not-exist": At, "uni-id-check-device-feature-failed": At };function bt(e, t) {var n = "";return n = e ? "".concat(e, "/").concat(t) : t, n.replace(/^\//, "");}function Ct() {var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";var n = [],s = [];return e.forEach(function (e) {!0 === e.needLogin ? n.push(bt(t, e.path)) : !1 === e.needLogin && s.push(bt(t, e.path));}), { needLoginPage: n, notNeedLoginPage: s };}var Et = !!_pages.default.uniIdRouter;var _ref29 = function () {var _ref30 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _pages.default,_ref30$pages = _ref30.pages,e = _ref30$pages === void 0 ? [] : _ref30$pages,_ref30$subPackages = _ref30.subPackages,n = _ref30$subPackages === void 0 ? [] : _ref30$subPackages,_ref30$uniIdRouter = _ref30.uniIdRouter,s = _ref30$uniIdRouter === void 0 ? {} : _ref30$uniIdRouter;var o = s.loginPage,_s$needLogin = s.needLogin,r = _s$needLogin === void 0 ? [] : _s$needLogin,_s$resToLogin = s.resToLogin,i = _s$resToLogin === void 0 ? !0 : _s$resToLogin,_Ct = Ct(e),a = _Ct.needLoginPage,c = _Ct.notNeedLoginPage,_ref31 = function () {var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];var t = [],n = [];return e.forEach(function (e) {var s = e.root,_e$pages = e.pages,o = _e$pages === void 0 ? [] : _e$pages,_Ct2 = Ct(o, s),r = _Ct2.needLoginPage,i = _Ct2.notNeedLoginPage;t.push.apply(t, _toConsumableArray(r)), n.push.apply(n, _toConsumableArray(i));}), { needLoginPage: t, notNeedLoginPage: n };}(n),u = _ref31.needLoginPage,l = _ref31.notNeedLoginPage;return { loginPage: o, routerNeedLogin: r, resToLogin: i, needLoginPage: [].concat(_toConsumableArray(a), _toConsumableArray(u)), notNeedLoginPage: [].concat(_toConsumableArray(c), _toConsumableArray(l)) };}(),Rt = _ref29.loginPage,Ut = _ref29.routerNeedLogin,xt = _ref29.resToLogin,Lt = _ref29.needLoginPage,Dt = _ref29.notNeedLoginPage;function qt(e) {var t = function (e) {var t = getCurrentPages(),n = t[t.length - 1].route,s = e.charAt(0),o = e.split("?")[0];if ("/" === s) return o;var r = o.replace(/^\//, "").split("/"),i = n.split("/");i.pop();for (var _e26 = 0; _e26 < r.length; _e26++) {var _t15 = r[_e26];".." === _t15 ? i.pop() : "." !== _t15 && i.push(_t15);}return "" === i[0] && i.shift(), i.join("/");}(e).replace(/^\//, "");return !(Dt.indexOf(t) > -1) && (Lt.indexOf(t) > -1 || Ut.some(function (t) {return function (e, t) {return new RegExp(t).test(e);}(e, t);}));}function Nt(e, t) {return "/" !== e.charAt(0) && (e = "/" + e), t ? e.indexOf("?") > -1 ? e + "&uniIdRedirectUrl=".concat(encodeURIComponent(t)) : e + "?uniIdRedirectUrl=".concat(encodeURIComponent(t)) : e;}function Ft() {var e = ["navigateTo", "redirectTo", "reLaunch", "switchTab"];for (var _t16 = 0; _t16 < e.length; _t16++) {var _n9 = e[_t16];uni.addInterceptor(_n9, { invoke: function invoke(e) {var _et3 = et(),t = _et3.token,n = _et3.tokenExpired;var s;if (t) {if (n < Date.now()) {var _e27 = "uni-id-token-expired";s = { errCode: _e27, errMsg: Ot[_e27] };}} else {var _e28 = "uni-id-check-token-failed";s = { errCode: _e28, errMsg: Ot[_e28] };}if (qt(e.url) && s) {s.uniIdRedirectUrl = e.url;if (x(b).length > 0) return setTimeout(function () {q(b, s);}, 0), e.url = "", !1;if (!Rt) return e;e.url = Nt(Rt, s.uniIdRedirectUrl);}return e;} });}}function Mt() {this.onResponse(function (e) {var t = e.type,n = e.content;var s = !1;switch (t) {case "cloudobject":s = function (e) {var t = e.errCode;return t in Ot;}(n);break;case "clientdb":s = function (e) {var t = e.errCode;return t in It;}(n);}s && function () {var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};var t = x(b),n = getCurrentPages(),s = n[n.length - 1],o = s && s.$page && s.$page.fullPath;if (t.length > 0) return q(b, Object.assign({ uniIdRedirectUrl: o }, e));Rt && uni.navigateTo({ url: Nt(Rt, o) });}(n);});}function jt(e) {e.onNeedLogin = function (e) {L(b, e);}, e.offNeedLogin = function (e) {D(b, e);}, Et && (w("uni-cloud-status").needLoginInit || (w("uni-cloud-status").needLoginInit = !0, function t() {var n = getCurrentPages();n && n[0] ? Ft.call(e) : setTimeout(function () {t();}, 30);}(), xt && Mt.call(e)));}function $t(e) {!function (e) {e.onResponse = function (e) {L(O, e);}, e.offResponse = function (e) {D(O, e);};}(e), jt(e), function (e) {e.onRefreshToken = function (e) {L(C, e);}, e.offRefreshToken = function (e) {D(C, e);};}(e);}var Kt;var Bt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Ht = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Wt() {var e = et().token || "",t = e.split(".");if (!e || 3 !== t.length) return { uid: null, role: [], permission: [], tokenExpired: 0 };var n;try {n = JSON.parse((s = t[1], decodeURIComponent(Kt(s).split("").map(function (e) {return "%" + ("00" + e.charCodeAt(0).toString(16)).slice(-2);}).join(""))));} catch (e) {throw new Error("获取当前用户信息出错,详细错误信息为:" + e.message);}var s;return n.tokenExpired = 1e3 * n.exp, delete n.exp, delete n.iat, n;}Kt = "function" != typeof atob ? function (e) {if (e = String(e).replace(/[\t\n\f\r ]+/g, ""), !Ht.test(e)) throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e += "==".slice(2 - (3 & e.length));for (var n, s, o = "", r = 0; r < e.length;) {t = Bt.indexOf(e.charAt(r++)) << 18 | Bt.indexOf(e.charAt(r++)) << 12 | (n = Bt.indexOf(e.charAt(r++))) << 6 | (s = Bt.indexOf(e.charAt(r++))), o += 64 === n ? String.fromCharCode(t >> 16 & 255) : 64 === s ? String.fromCharCode(t >> 16 & 255, t >> 8 & 255) : String.fromCharCode(t >> 16 & 255, t >> 8 & 255, 255 & t);}return o;} : atob;var zt = s(function (e, t) {Object.defineProperty(t, "__esModule", { value: !0 });var n = "chooseAndUploadFile:ok",s = "chooseAndUploadFile:fail";function o(e, t) {return e.tempFiles.forEach(function (e, n) {e.name || (e.name = e.path.substring(e.path.lastIndexOf("/") + 1)), t && (e.fileType = t), e.cloudPath = Date.now() + "_" + n + e.name.substring(e.name.lastIndexOf("."));}), e.tempFilePaths || (e.tempFilePaths = e.tempFiles.map(function (e) {return e.path;})), e;}function r(e, t, _ref32) {var s = _ref32.onChooseFile,o = _ref32.onUploadProgress;return t.then(function (e) {if (s) {var _t17 = s(e);if (void 0 !== _t17) return Promise.resolve(_t17).then(function (t) {return void 0 === t ? e : t;});}return e;}).then(function (t) {return !1 === t ? { errMsg: n, tempFilePaths: [], tempFiles: [] } : function (e, t) {var s = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 5;var o = arguments.length > 3 ? arguments[3] : undefined;(t = Object.assign({}, t)).errMsg = n;var r = t.tempFiles,i = r.length;var a = 0;return new Promise(function (n) {for (; a < s;) {c();}function c() {var s = a++;if (s >= i) return void (!r.find(function (e) {return !e.url && !e.errMsg;}) && n(t));var u = r[s];e.uploadFile({ filePath: u.path, cloudPath: u.cloudPath, fileType: u.fileType, onUploadProgress: function onUploadProgress(e) {e.index = s, e.tempFile = u, e.tempFilePath = u.path, o && o(e);} }).then(function (e) {u.url = e.fileID, s < i && c();}).catch(function (e) {u.errMsg = e.errMsg || e.message, s < i && c();});}});}(e, t, 5, o);});}t.initChooseAndUploadFile = function (e) {return function () {var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { type: "all" };return "image" === t.type ? r(e, function (e) {var t = e.count,n = e.sizeType,_e$sourceType = e.sourceType,r = _e$sourceType === void 0 ? ["album", "camera"] : _e$sourceType,i = e.extension;return new Promise(function (e, a) {uni.chooseImage({ count: t, sizeType: n, sourceType: r, extension: i, success: function success(t) {e(o(t, "image"));}, fail: function fail(e) {a({ errMsg: e.errMsg.replace("chooseImage:fail", s) });} });});}(t), t) : "video" === t.type ? r(e, function (e) {var t = e.camera,n = e.compressed,r = e.maxDuration,_e$sourceType2 = e.sourceType,i = _e$sourceType2 === void 0 ? ["album", "camera"] : _e$sourceType2,a = e.extension;return new Promise(function (e, c) {uni.chooseVideo({ camera: t, compressed: n, maxDuration: r, sourceType: i, extension: a, success: function success(t) {var n = t.tempFilePath,s = t.duration,r = t.size,i = t.height,a = t.width;e(o({ errMsg: "chooseVideo:ok", tempFilePaths: [n], tempFiles: [{ name: t.tempFile && t.tempFile.name || "", path: n, size: r, type: t.tempFile && t.tempFile.type || "", width: a, height: i, duration: s, fileType: "video", cloudPath: "" }] }, "video"));}, fail: function fail(e) {c({ errMsg: e.errMsg.replace("chooseVideo:fail", s) });} });});}(t), t) : r(e, function (e) {var t = e.count,n = e.extension;return new Promise(function (e, r) {var i = uni.chooseFile;if ("undefined" != typeof wx && "function" == typeof wx.chooseMessageFile && (i = wx.chooseMessageFile), "function" != typeof i) return r({ errMsg: s + " 请指定 type 类型,该平台仅支持选择 image 或 video。" });i({ type: "all", count: t, extension: n, success: function success(t) {e(o(t));}, fail: function fail(e) {r({ errMsg: e.errMsg.replace("chooseFile:fail", s) });} });});}(t), t);};};}),Vt = n(zt);var Jt = "manual";function Yt(e) {return { props: { localdata: { type: Array, default: function _default() {return [];} }, options: { type: [Object, Array], default: function _default() {return {};} }, spaceInfo: { type: Object, default: function _default() {return {};} }, collection: { type: [String, Array], default: "" }, action: { type: String, default: "" }, field: { type: String, default: "" }, orderby: { type: String, default: "" }, where: { type: [String, Object], default: "" }, pageData: { type: String, default: "add" }, pageCurrent: { type: Number, default: 1 }, pageSize: { type: Number, default: 20 }, getcount: { type: [Boolean, String], default: !1 }, gettree: { type: [Boolean, String], default: !1 }, gettreepath: { type: [Boolean, String], default: !1 }, startwith: { type: String, default: "" }, limitlevel: { type: Number, default: 10 }, groupby: { type: String, default: "" }, groupField: { type: String, default: "" }, distinct: { type: [Boolean, String], default: !1 }, foreignKey: { type: String, default: "" }, loadtime: { type: String, default: "auto" }, manual: { type: Boolean, default: !1 } }, data: function data() {return { mixinDatacomLoading: !1, mixinDatacomHasMore: !1, mixinDatacomResData: [], mixinDatacomErrorMessage: "", mixinDatacomPage: {} };}, created: function created() {var _this18 = this;this.mixinDatacomPage = { current: this.pageCurrent, size: this.pageSize, count: 0 }, this.$watch(function () {var e = [];return ["pageCurrent", "pageSize", "localdata", "collection", "action", "field", "orderby", "where", "getont", "getcount", "gettree", "groupby", "groupField", "distinct"].forEach(function (t) {e.push(_this18[t]);}), e;}, function (e, t) {if (_this18.loadtime === Jt) return;var n = !1;var s = [];for (var _o6 = 2; _o6 < e.length; _o6++) {e[_o6] !== t[_o6] && (s.push(e[_o6]), n = !0);}e[0] !== t[0] && (_this18.mixinDatacomPage.current = _this18.pageCurrent), _this18.mixinDatacomPage.size = _this18.pageSize, _this18.onMixinDatacomPropsChange(n, s);});}, methods: { onMixinDatacomPropsChange: function onMixinDatacomPropsChange(e, t) {}, mixinDatacomEasyGet: function mixinDatacomEasyGet() {var _this19 = this;var _ref33 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},_ref33$getone = _ref33.getone,e = _ref33$getone === void 0 ? !1 : _ref33$getone,t = _ref33.success,n = _ref33.fail;this.mixinDatacomLoading || (this.mixinDatacomLoading = !0, this.mixinDatacomErrorMessage = "", this.mixinDatacomGet().then(function (n) {_this19.mixinDatacomLoading = !1;var _n$result = n.result,s = _n$result.data,o = _n$result.count;_this19.getcount && (_this19.mixinDatacomPage.count = o), _this19.mixinDatacomHasMore = s.length < _this19.pageSize;var r = e ? s.length ? s[0] : void 0 : s;_this19.mixinDatacomResData = r, t && t(r);}).catch(function (e) {_this19.mixinDatacomLoading = !1, _this19.mixinDatacomErrorMessage = e, n && n(e);}));}, mixinDatacomGet: function mixinDatacomGet() {var _n10;var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};var n = e.database(this.spaceInfo);var s = t.action || this.action;s && (n = n.action(s));var o = t.collection || this.collection;n = Array.isArray(o) ? (_n10 = n).collection.apply(_n10, _toConsumableArray(o)) : n.collection(o);var r = t.where || this.where;r && Object.keys(r).length && (n = n.where(r));var i = t.field || this.field;i && (n = n.field(i));var a = t.foreignKey || this.foreignKey;a && (n = n.foreignKey(a));var c = t.groupby || this.groupby;c && (n = n.groupBy(c));var u = t.groupField || this.groupField;u && (n = n.groupField(u));!0 === (void 0 !== t.distinct ? t.distinct : this.distinct) && (n = n.distinct());var l = t.orderby || this.orderby;l && (n = n.orderBy(l));var h = void 0 !== t.pageCurrent ? t.pageCurrent : this.mixinDatacomPage.current,d = void 0 !== t.pageSize ? t.pageSize : this.mixinDatacomPage.size,f = void 0 !== t.getcount ? t.getcount : this.getcount,g = void 0 !== t.gettree ? t.gettree : this.gettree,p = void 0 !== t.gettreepath ? t.gettreepath : this.gettreepath,m = { getCount: f },y = { limitLevel: void 0 !== t.limitlevel ? t.limitlevel : this.limitlevel, startWith: void 0 !== t.startwith ? t.startwith : this.startwith };return g && (m.getTree = y), p && (m.getTreePath = y), n = n.skip(d * (h - 1)).limit(d).get(m), n;} } };}function Xt(e) {return function (t) {var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};n = function (e) {var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};return e.customUI = t.customUI || e.customUI, Object.assign(e.loadingOptions, t.loadingOptions), Object.assign(e.errorOptions, t.errorOptions), e;}({ customUI: !1, loadingOptions: { title: "加载中...", mask: !0 }, errorOptions: { type: "modal", retry: !1 } }, n);var _n11 = n,s = _n11.customUI,o = _n11.loadingOptions,r = _n11.errorOptions,i = !s;return new Proxy({}, { get: function get(n, s) {return /*#__PURE__*/function () {var _n12 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee32() {var u,_len,c,_key,_ref34,l,h,d,_yield,_e30,_e29,_args32 = arguments;return _regenerator.default.wrap(function _callee32$(_context32) {while (1) {switch (_context32.prev = _context32.next) {case 0:i && uni.showLoading({ title: o.title, mask: o.mask });for (_len = _args32.length, c = new Array(_len), _key = 0; _key < _len; _key++) {c[_key] = _args32[_key];}_context32.prev = 2;_context32.next = 5;return e.callFunction({ name: t, type: a, data: { method: s, params: c } });case 5:u = _context32.sent;_context32.next = 11;break;case 8:_context32.prev = 8;_context32.t0 = _context32["catch"](2);u = { result: _context32.t0 };case 11:_ref34 = u.result || {}, l = _ref34.errCode, h = _ref34.errMsg, d = _ref34.newToken;if (!(i && uni.hideLoading(), d && d.token && d.tokenExpired && (tt(d), q(C, _objectSpread({}, d))), l)) {_context32.next = 28;break;}if (!i) {_context32.next = 26;break;}if (!("toast" === r.type)) {_context32.next = 18;break;}uni.showToast({ title: h, icon: "none" });_context32.next = 26;break;case 18:if (!("modal" !== r.type)) {_context32.next = 20;break;}throw new Error("Invalid errorOptions.type: ".concat(r.type));case 20:_context32.next = 22;return _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee31() {var _ref36,e,t,n,s,o,_args31 = arguments;return _regenerator.default.wrap(function _callee31$(_context31) {while (1) {switch (_context31.prev = _context31.next) {case 0:_ref36 = _args31.length > 0 && _args31[0] !== undefined ? _args31[0] : {}, e = _ref36.title, t = _ref36.content, n = _ref36.showCancel, s = _ref36.cancelText, o = _ref36.confirmText;return _context31.abrupt("return", new Promise(function (r, i) {uni.showModal({ title: e, content: t, showCancel: n, cancelText: s, confirmText: o, success: function success(e) {r(e);}, fail: function fail() {r({ confirm: !1, cancel: !0 });} });}));case 2:case "end":return _context31.stop();}}}, _callee31);}))({ title: "提示", content: h, showCancel: r.retry, cancelText: "取消", confirmText: r.retry ? "重试" : "确定" });case 22:_yield = _context32.sent;_e30 = _yield.confirm;if (!(r.retry && _e30)) {_context32.next = 26;break;}return _context32.abrupt("return", n.apply(void 0, c));case 26:_e29 = new F({ code: l, message: h, requestId: u.requestId });throw _e29.detail = u.result, q(O, { type: U, content: _e29 }), _e29;case 28:return _context32.abrupt("return", (q(O, { type: U, content: u.result }), u.result));case 29:case "end":return _context32.stop();}}}, _callee32, null, [[2, 8]]);}));function n() {return _n12.apply(this, arguments);}return n;}();} });};}function Gt(_x30, _x31) {return _Gt.apply(this, arguments);}function _Gt() {_Gt = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee34(e, t) {var n, _e33, s;return _regenerator.default.wrap(function _callee34$(_context34) {while (1) {switch (_context34.prev = _context34.next) {case 0:n = "http://".concat(e, ":").concat(t, "/system/ping");_context34.prev = 1;_context34.next = 4;return s = { url: n, timeout: 500 }, new Promise(function (e, t) {B.request(_objectSpread(_objectSpread({}, s), {}, { success: function success(t) {e(t);}, fail: function fail(e) {t(e);} }));});case 4:_e33 = _context34.sent;return _context34.abrupt("return", !(!_e33.data || 0 !== _e33.data.code));case 8:_context34.prev = 8;_context34.t0 = _context34["catch"](1);return _context34.abrupt("return", !1);case 11:case "end":return _context34.stop();}}}, _callee34, null, [[1, 8]]);}));return _Gt.apply(this, arguments);}function Qt(e) {if (e.initUniCloudStatus && "rejected" !== e.initUniCloudStatus) return;var t = Promise.resolve();var n;n = 1, t = new Promise(function (e, t) {setTimeout(function () {e();}, n);}), e.isReady = !1, e.isDefault = !1;var s = e.auth();e.initUniCloudStatus = "pending", e.initUniCloud = t.then(function () {return s.getLoginState();}).then(function (e) {return e ? Promise.resolve() : s.signInAnonymously();}).then(function () {if (!d) return Promise.resolve();if (d && e.debugInfo) {var _e$debugInfo = e.debugInfo,_t18 = _e$debugInfo.address,_n13 = _e$debugInfo.servePort;return function () {var _ref37 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee33(e, t) {var n, _s10, _o7;return _regenerator.default.wrap(function _callee33$(_context33) {while (1) {switch (_context33.prev = _context33.next) {case 0:_s10 = 0;case 1:if (!(_s10 < e.length)) {_context33.next = 11;break;}_o7 = e[_s10];_context33.next = 5;return Gt(_o7, t);case 5:if (!_context33.sent) {_context33.next = 8;break;}n = _o7;return _context33.abrupt("break", 11);case 8:_s10++;_context33.next = 1;break;case 11:return _context33.abrupt("return", { address: n, port: t });case 12:case "end":return _context33.stop();}}}, _callee33);}));return function (_x32, _x33) {return _ref37.apply(this, arguments);};}()(_t18, _n13);}}).then(function () {var _ref38 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},t = _ref38.address,n = _ref38.port;if (!d) return Promise.resolve();if (t) e.localAddress = t, e.localPort = n;else if (e.debugInfo) {var _t19 = console["app-plus" === f ? "error" : "warn"];var _n14 = "";"remote" === e.debugInfo.initialLaunchType ? (e.debugInfo.forceRemote = !0, _n14 = "当前客户端和HBuilderX不在同一局域网下(或其他网络原因无法连接HBuilderX),uniCloud本地调试服务不对当前客户端生效。\n- 如果不使用uniCloud本地调试服务,请直接忽略此信息。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs") : _n14 = "无法连接uniCloud本地调试服务,请检查当前客户端是否与主机在同一局域网下。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs", "h5" === f && (_n14 += "\n- 部分浏览器开启节流模式之后访问本地地址受限,请检查是否启用了节流模式"), _t19(_n14);}}).then(function () {nt(), e.isReady = !0, e.initUniCloudStatus = "fulfilled";}).catch(function (t) {console.error(t), e.initUniCloudStatus = "rejected";});}var Zt = new ( /*#__PURE__*/function () {function _class4() {_classCallCheck(this, _class4);}_createClass(_class4, [{ key: "init", value: function init(e) {var t = {};var n = !1 !== e.debugFunction && d && ("h5" === f && navigator.userAgent.indexOf("HBuilderX") > 0 || "app-plus" === f);switch (e.provider) {case "tcb":case "tencent":t = Ze.init(Object.assign(e, { useDebugFunction: n }));break;case "aliyun":t = V.init(Object.assign(e, { useDebugFunction: n }));break;case "private":t = ot.init(Object.assign(e, { useDebugFunction: n }));break;default:throw new Error("未提供正确的provider参数");}var s = g;d && s && !s.code && (t.debugInfo = s), Qt(t), t.reInit = function () {Qt(this);}, dt(t), function (e) {var t = e.uploadFile;e.uploadFile = function (e) {return t.call(this, e);};}(t), vt(t), function (e) {e.getCurrentUserInfo = Wt, e.chooseAndUploadFile = Vt.initChooseAndUploadFile(e), Object.assign(e, { get mixinDatacom() {return Yt(e);} }), e.importObject = Xt(e);}(t);return ["callFunction", "uploadFile", "deleteFile", "getTempFileURL", "downloadFile", "chooseAndUploadFile"].forEach(function (e) {if (!t[e]) return;var n = t[e];t[e] = function () {return t.reInit(), n.apply(t, Array.from(arguments));}, t[e] = N(t[e], e).bind(t);}), t.init = this.init, t;} }]);return _class4;}())();(function () {{var e = p;var _t20 = {};if (1 === e.length) _t20 = e[0], Zt = Zt.init(_t20), Zt.isDefault = !0;else {var _t21 = ["auth", "callFunction", "uploadFile", "deleteFile", "getTempFileURL", "downloadFile", "database", "getCurrentUSerInfo", "importObject"];var _n15;_n15 = e && e.length > 0 ? "应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间" : m ? "应用未关联服务空间,请在uniCloud目录右键关联服务空间" : "uni-app cli项目内使用uniCloud需要使用HBuilderX的运行菜单运行项目,且需要在uniCloud目录关联服务空间", _t21.forEach(function (e) {Zt[e] = function () {return console.error(_n15), Promise.reject(new F({ code: "SYS_ERR", message: _n15 }));};});}Object.assign(Zt, { get mixinDatacom() {return Yt(Zt);} }), $t(Zt), Zt.addInterceptor = T, Zt.removeInterceptor = v, d && "h5" === f && (window.uniCloud = Zt);}})();var en = Zt;exports.default = en;
  18141. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 2), __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  18142. /***/ }),
  18143. /* 369 */
  18144. /*!****************************************************************************!*\
  18145. !*** C:/shop-program/alhj/alhj-wx/pages.json?{"type":"origin-pages-json"} ***!
  18146. \****************************************************************************/
  18147. /*! no static exports found */
  18148. /***/ (function(module, exports, __webpack_require__) {
  18149. "use strict";
  18150. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = { "easycom": { "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue" }, "pages": [{ "path": "pages/login/login", "style": { "navigationBarTitleText": "", "enablePullDownRefresh": false, "navigationStyle": "custom" } }, { "path": "pages/index/index", "style": { "navigationBarTitleText": "", "app-plus": { "animationType": "pop-out", "animationDuration": "slide-in-right", "enablePullDownRefresh": true } } }, { "path": "pages/acceptor/acceptor", "style": { "navigationBarTitleText": "", "app-plus": { "animationType": "slide-in-right" } } }, { "path": "pages/drawer/drawer", "style": { "navigationBarTitleText": "", "app-plus": { "animationType": "slide-in-right" } } }, { "path": "pages/supplier/supplier", "style": { "navigationBarTitleText": "", "app-plus": { "animationType": "none" } } }, { "path": "pages/mine/mine", "style": { "navigationBarTitleText": "", "app-plus": { "animationType": "none" }, "navigationStyle": "custom" } }], "subPackages": [{ "root": "pages/bsinessadmin", "pages": [{ "path": "register", "style": { "navigationBarTextStyle": "black", "navigationBarTitleText": "" } }, { "path": "supplierges", "style": { "navigationBarTextStyle": "black", "navigationBarTitleText": "" } }, { "path": "useragreement", "style": { "navigationBarTextStyle": "black", "navigationBarTitleText": "用户协议" } }, { "path": "privacypolicy", "style": { "navigationBarTextStyle": "black", "navigationBarTitleText": "隐私政策" } }, { "path": "setpassword", "style": { "navigationBarTextStyle": "black", "navigationBarTitleText": "设置密码" } }] }, { "root": "pages/other", "pages": [{ "path": "homepage", "style": { "navigationBarTextStyle": "black", "navigationBarTitleText": "", "navigationStyle": "custom" } }] }, { "root": "pages/spladmin", "pages": [{ "path": "index", "style": { "navigationBarTextStyle": "black", "navigationBarTitleText": "" } }] }, { "root": "pages/alldeatil", "pages": [{ "path": "acptdetail", "style": { "navigationBarTextStyle": "black", "navigationBarTitleText": "承兑人详情" } }, { "path": "drawerdetail", "style": { "navigationBarTextStyle": "black", "navigationBarTitleText": "出票人详情" } }, { "path": "supplierdetail", "style": { "navigationBarTextStyle": "black", "navigationBarTitleText": "供应商详情" } }, { "path": "identifypic", "style": { "navigationBarTextStyle": "black", "navigationBarTitleText": "认证照片" } }, { "path": "proxypic", "style": { "navigationBarTextStyle": "black", "navigationBarTitleText": "授权委托书" } }, { "path": "contractdetail", "style": { "navigationBarTextStyle": "black", "navigationBarTitleText": "合同详情" } }, { "path": "addbill", "style": { "navigationBarTextStyle": "black", "navigationBarTitleText": "新增汇票" } }, { "path": "billdetail", "style": { "navigationBarTextStyle": "black", "navigationBarTitleText": "汇票详情" } }, { "path": "addnewacpt", "style": { "navigationBarTextStyle": "black", "navigationBarTitleText": "新增承兑人" } }, { "path": "addnewdrawer", "style": { "navigationBarTextStyle": "black", "navigationBarTitleText": "新增出票人" } }, { "path": "upcontract", "style": { "navigationBarTextStyle": "black", "navigationBarTitleText": "上传合同" } }] }], "globalStyle": { "navigationBarTextStyle": "black", "navigationBarTitleText": "uni-app", "navigationBarBackgroundColor": "#fff", "backgroundColor": "#fff" } };exports.default = _default;
  18151. /***/ }),
  18152. /* 370 */
  18153. /*!***************************************************************!*\
  18154. !*** C:/shop-program/alhj/alhj-wx/pages.json?{"type":"stat"} ***!
  18155. \***************************************************************/
  18156. /*! no static exports found */
  18157. /***/ (function(module, exports, __webpack_require__) {
  18158. "use strict";
  18159. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = { "appid": "__UNI__86923A1" };exports.default = _default;
  18160. /***/ }),
  18161. /* 371 */,
  18162. /* 372 */,
  18163. /* 373 */,
  18164. /* 374 */,
  18165. /* 375 */,
  18166. /* 376 */,
  18167. /* 377 */,
  18168. /* 378 */
  18169. /*!************************************************************************************************!*\
  18170. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/components/u-datetime-picker/props.js ***!
  18171. \************************************************************************************************/
  18172. /*! no static exports found */
  18173. /***/ (function(module, exports, __webpack_require__) {
  18174. "use strict";
  18175. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  18176. props: {
  18177. // 是否打开组件
  18178. show: {
  18179. type: Boolean,
  18180. default: uni.$u.props.datetimePicker.show },
  18181. // 是否展示顶部的操作栏
  18182. showToolbar: {
  18183. type: Boolean,
  18184. default: uni.$u.props.datetimePicker.showToolbar },
  18185. // 绑定值
  18186. value: {
  18187. type: [String, Number],
  18188. default: uni.$u.props.datetimePicker.value },
  18189. // 顶部标题
  18190. title: {
  18191. type: String,
  18192. default: uni.$u.props.datetimePicker.title },
  18193. // 展示格式,mode=date为日期选择,mode=time为时间选择,mode=year-month为年月选择,mode=datetime为日期时间选择
  18194. mode: {
  18195. type: String,
  18196. default: uni.$u.props.datetimePicker.mode },
  18197. // 可选的最大时间
  18198. maxDate: {
  18199. type: Number,
  18200. // 最大默认值为后10年
  18201. default: uni.$u.props.datetimePicker.maxDate },
  18202. // 可选的最小时间
  18203. minDate: {
  18204. type: Number,
  18205. // 最小默认值为前10年
  18206. default: uni.$u.props.datetimePicker.minDate },
  18207. // 可选的最小小时,仅mode=time有效
  18208. minHour: {
  18209. type: Number,
  18210. default: uni.$u.props.datetimePicker.minHour },
  18211. // 可选的最大小时,仅mode=time有效
  18212. maxHour: {
  18213. type: Number,
  18214. default: uni.$u.props.datetimePicker.maxHour },
  18215. // 可选的最小分钟,仅mode=time有效
  18216. minMinute: {
  18217. type: Number,
  18218. default: uni.$u.props.datetimePicker.minMinute },
  18219. // 可选的最大分钟,仅mode=time有效
  18220. maxMinute: {
  18221. type: Number,
  18222. default: uni.$u.props.datetimePicker.maxMinute },
  18223. // 选项过滤函数
  18224. filter: {
  18225. type: [Function, null],
  18226. default: uni.$u.props.datetimePicker.filter },
  18227. // 选项格式化函数
  18228. formatter: {
  18229. type: [Function, null],
  18230. default: uni.$u.props.datetimePicker.formatter },
  18231. // 是否显示加载中状态
  18232. loading: {
  18233. type: Boolean,
  18234. default: uni.$u.props.datetimePicker.loading },
  18235. // 各列中,单个选项的高度
  18236. itemHeight: {
  18237. type: [String, Number],
  18238. default: uni.$u.props.datetimePicker.itemHeight },
  18239. // 取消按钮的文字
  18240. cancelText: {
  18241. type: String,
  18242. default: uni.$u.props.datetimePicker.cancelText },
  18243. // 确认按钮的文字
  18244. confirmText: {
  18245. type: String,
  18246. default: uni.$u.props.datetimePicker.confirmText },
  18247. // 取消按钮的颜色
  18248. cancelColor: {
  18249. type: String,
  18250. default: uni.$u.props.datetimePicker.cancelColor },
  18251. // 确认按钮的颜色
  18252. confirmColor: {
  18253. type: String,
  18254. default: uni.$u.props.datetimePicker.confirmColor },
  18255. // 每列中可见选项的数量
  18256. visibleItemCount: {
  18257. type: [String, Number],
  18258. default: uni.$u.props.datetimePicker.visibleItemCount },
  18259. // 是否允许点击遮罩关闭选择器
  18260. closeOnClickOverlay: {
  18261. type: Boolean,
  18262. default: uni.$u.props.datetimePicker.closeOnClickOverlay },
  18263. // 各列的默认索引
  18264. defaultIndex: {
  18265. type: Array,
  18266. default: uni.$u.props.datetimePicker.defaultIndex } } };exports.default = _default;
  18267. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  18268. /***/ }),
  18269. /* 379 */
  18270. /*!*****************************************************************************!*\
  18271. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/util/dayjs.js ***!
  18272. \*****************************************************************************/
  18273. /*! no static exports found */
  18274. /***/ (function(module, exports, __webpack_require__) {
  18275. !function (t, e) {
  18276. true ? module.exports = e() : undefined;
  18277. }(this, function () {
  18278. 'use strict';
  18279. var t = 'millisecond';
  18280. var e = 'second';
  18281. var n = 'minute';
  18282. var r = 'hour';
  18283. var i = 'day';
  18284. var s = 'week';
  18285. var u = 'month';
  18286. var a = 'quarter';
  18287. var o = 'year';
  18288. var f = 'date';
  18289. var h = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/;
  18290. var c = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;
  18291. var d = {
  18292. name: 'en',
  18293. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  18294. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_') };
  18295. var $ = function $(t, e, n) {
  18296. var r = String(t);
  18297. return !r || r.length >= e ? t : "".concat(Array(e + 1 - r.length).join(n)).concat(t);
  18298. };
  18299. var l = {
  18300. s: $,
  18301. z: function z(t) {
  18302. var e = -t.utcOffset();
  18303. var n = Math.abs(e);
  18304. var r = Math.floor(n / 60);
  18305. var i = n % 60;
  18306. return "".concat((e <= 0 ? '+' : '-') + $(r, 2, '0'), ":").concat($(i, 2, '0'));
  18307. },
  18308. m: function t(e, n) {
  18309. if (e.date() < n.date()) return -t(n, e);
  18310. var r = 12 * (n.year() - e.year()) + (n.month() - e.month());
  18311. var i = e.clone().add(r, u);
  18312. var s = n - i < 0;
  18313. var a = e.clone().add(r + (s ? -1 : 1), u);
  18314. return +(-(r + (n - i) / (s ? i - a : a - i)) || 0);
  18315. },
  18316. a: function a(t) {
  18317. return t < 0 ? Math.ceil(t) || 0 : Math.floor(t);
  18318. },
  18319. p: function p(h) {
  18320. return {
  18321. M: u,
  18322. y: o,
  18323. w: s,
  18324. d: i,
  18325. D: f,
  18326. h: r,
  18327. m: n,
  18328. s: e,
  18329. ms: t,
  18330. Q: a }[
  18331. h] || String(h || '').toLowerCase().replace(/s$/, '');
  18332. },
  18333. u: function u(t) {
  18334. return void 0 === t;
  18335. } };
  18336. var y = 'en';
  18337. var M = {};
  18338. M[y] = d;
  18339. var m = function m(t) {
  18340. return t instanceof S;
  18341. };
  18342. var D = function D(t, e, n) {
  18343. var r;
  18344. if (!t) return y;
  18345. if (typeof t === 'string') M[t] && (r = t), e && (M[t] = e, r = t);else
  18346. {
  18347. var _i = t.name;
  18348. M[_i] = t, r = _i;
  18349. }
  18350. return !n && r && (y = r), r || !n && y;
  18351. };
  18352. var v = function v(t, e) {
  18353. if (m(t)) return t.clone();
  18354. var n = typeof e === 'object' ? e : {};
  18355. return n.date = t, n.args = arguments, new S(n);
  18356. };
  18357. var g = l;
  18358. g.l = D, g.i = m, g.w = function (t, e) {
  18359. return v(t, {
  18360. locale: e.$L,
  18361. utc: e.$u,
  18362. x: e.$x,
  18363. $offset: e.$offset });
  18364. };
  18365. var S = function () {
  18366. function d(t) {
  18367. this.$L = D(t.locale, null, !0), this.parse(t);
  18368. }
  18369. var $ = d.prototype;
  18370. return $.parse = function (t) {
  18371. this.$d = function (t) {
  18372. var e = t.date;
  18373. var n = t.utc;
  18374. if (e === null) return new Date(NaN);
  18375. if (g.u(e)) return new Date();
  18376. if (e instanceof Date) return new Date(e);
  18377. if (typeof e === 'string' && !/Z$/i.test(e)) {
  18378. var _r = e.match(h);
  18379. if (_r) {
  18380. var _i2 = _r[2] - 1 || 0;
  18381. var _s = (_r[7] || '0').substring(0, 3);
  18382. return n ? new Date(Date.UTC(_r[1], _i2, _r[3] || 1, _r[4] || 0, _r[5] || 0, _r[6] || 0, _s)) : new Date(_r[1], _i2, _r[3] ||
  18383. 1, _r[4] || 0, _r[5] || 0, _r[6] || 0, _s);
  18384. }
  18385. }
  18386. return new Date(e);
  18387. }(t), this.$x = t.x || {}, this.init();
  18388. }, $.init = function () {
  18389. var t = this.$d;
  18390. this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(),
  18391. this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
  18392. }, $.$utils = function () {
  18393. return g;
  18394. }, $.isValid = function () {
  18395. return !(this.$d.toString() === 'Invalid Date');
  18396. }, $.isSame = function (t, e) {
  18397. var n = v(t);
  18398. return this.startOf(e) <= n && n <= this.endOf(e);
  18399. }, $.isAfter = function (t, e) {
  18400. return v(t) < this.startOf(e);
  18401. }, $.isBefore = function (t, e) {
  18402. return this.endOf(e) < v(t);
  18403. }, $.$g = function (t, e, n) {
  18404. return g.u(t) ? this[e] : this.set(n, t);
  18405. }, $.unix = function () {
  18406. return Math.floor(this.valueOf() / 1e3);
  18407. }, $.valueOf = function () {
  18408. return this.$d.getTime();
  18409. }, $.startOf = function (t, a) {
  18410. var h = this;
  18411. var c = !!g.u(a) || a;
  18412. var d = g.p(t);
  18413. var $ = function $(t, e) {
  18414. var n = g.w(h.$u ? Date.UTC(h.$y, e, t) : new Date(h.$y, e, t), h);
  18415. return c ? n : n.endOf(i);
  18416. };
  18417. var l = function l(t, e) {
  18418. return g.w(h.toDate()[t].apply(h.toDate('s'), (c ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e)), h);
  18419. };
  18420. var y = this.$W;
  18421. var M = this.$M;
  18422. var m = this.$D;
  18423. var D = "set".concat(this.$u ? 'UTC' : '');
  18424. switch (d) {
  18425. case o:
  18426. return c ? $(1, 0) : $(31, 11);
  18427. case u:
  18428. return c ? $(1, M) : $(0, M + 1);
  18429. case s:
  18430. var v = this.$locale().weekStart || 0;
  18431. var S = (y < v ? y + 7 : y) - v;
  18432. return $(c ? m - S : m + (6 - S), M);
  18433. case i:
  18434. case f:
  18435. return l("".concat(D, "Hours"), 0);
  18436. case r:
  18437. return l("".concat(D, "Minutes"), 1);
  18438. case n:
  18439. return l("".concat(D, "Seconds"), 2);
  18440. case e:
  18441. return l("".concat(D, "Milliseconds"), 3);
  18442. default:
  18443. return this.clone();}
  18444. }, $.endOf = function (t) {
  18445. return this.startOf(t, !1);
  18446. }, $.$set = function (s, a) {
  18447. var h;var c = g.p(s);
  18448. var d = "set".concat(this.$u ? 'UTC' : '');
  18449. var $ = (h = {}, h[i] = "".concat(d, "Date"), h[f] = "".concat(d, "Date"), h[u] = "".concat(d, "Month"), h[o] = "".concat(d, "FullYear"), h[r] = "".concat(d, "Hours"),
  18450. h[n] = "".concat(d, "Minutes"), h[e] = "".concat(d, "Seconds"), h[t] = "".concat(d, "Milliseconds"), h)[c];
  18451. var l = c === i ? this.$D + (a - this.$W) : a;
  18452. if (c === u || c === o) {
  18453. var _y = this.clone().set(f, 1);
  18454. _y.$d[$](l), _y.init(), this.$d = _y.set(f, Math.min(this.$D, _y.daysInMonth())).$d;
  18455. } else $ && this.$d[$](l);
  18456. return this.init(), this;
  18457. }, $.set = function (t, e) {
  18458. return this.clone().$set(t, e);
  18459. }, $.get = function (t) {
  18460. return this[g.p(t)]();
  18461. }, $.add = function (t, a) {
  18462. var f;var
  18463. h = this;
  18464. t = Number(t);
  18465. var c = g.p(a);
  18466. var d = function d(e) {
  18467. var n = v(h);
  18468. return g.w(n.date(n.date() + Math.round(e * t)), h);
  18469. };
  18470. if (c === u) return this.set(u, this.$M + t);
  18471. if (c === o) return this.set(o, this.$y + t);
  18472. if (c === i) return d(1);
  18473. if (c === s) return d(7);
  18474. var $ = (f = {}, f[n] = 6e4, f[r] = 36e5, f[e] = 1e3, f)[c] || 1;
  18475. var l = this.$d.getTime() + t * $;
  18476. return g.w(l, this);
  18477. }, $.subtract = function (t, e) {
  18478. return this.add(-1 * t, e);
  18479. }, $.format = function (t) {
  18480. var e = this;
  18481. if (!this.isValid()) return 'Invalid Date';
  18482. var n = t || 'YYYY-MM-DDTHH:mm:ssZ';
  18483. var r = g.z(this);
  18484. var i = this.$locale();
  18485. var s = this.$H;
  18486. var u = this.$m;
  18487. var a = this.$M;
  18488. var o = i.weekdays;
  18489. var f = i.months;
  18490. var h = function h(t, r, i, s) {
  18491. return t && (t[r] || t(e, n)) || i[r].substr(0, s);
  18492. };
  18493. var d = function d(t) {
  18494. return g.s(s % 12 || 12, t, '0');
  18495. };
  18496. var $ = i.meridiem || function (t, e, n) {
  18497. var r = t < 12 ? 'AM' : 'PM';
  18498. return n ? r.toLowerCase() : r;
  18499. };
  18500. var l = {
  18501. YY: String(this.$y).slice(-2),
  18502. YYYY: this.$y,
  18503. M: a + 1,
  18504. MM: g.s(a + 1, 2, '0'),
  18505. MMM: h(i.monthsShort, a, f, 3),
  18506. MMMM: h(f, a),
  18507. D: this.$D,
  18508. DD: g.s(this.$D, 2, '0'),
  18509. d: String(this.$W),
  18510. dd: h(i.weekdaysMin, this.$W, o, 2),
  18511. ddd: h(i.weekdaysShort, this.$W, o, 3),
  18512. dddd: o[this.$W],
  18513. H: String(s),
  18514. HH: g.s(s, 2, '0'),
  18515. h: d(1),
  18516. hh: d(2),
  18517. a: $(s, u, !0),
  18518. A: $(s, u, !1),
  18519. m: String(u),
  18520. mm: g.s(u, 2, '0'),
  18521. s: String(this.$s),
  18522. ss: g.s(this.$s, 2, '0'),
  18523. SSS: g.s(this.$ms, 3, '0'),
  18524. Z: r };
  18525. return n.replace(c, function (t, e) {return e || l[t] || r.replace(':', '');});
  18526. }, $.utcOffset = function () {
  18527. return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
  18528. }, $.diff = function (t, f, h) {
  18529. var c;var d = g.p(f);
  18530. var $ = v(t);
  18531. var l = 6e4 * ($.utcOffset() - this.utcOffset());
  18532. var y = this - $;
  18533. var M = g.m(this, $);
  18534. return M = (c = {}, c[o] = M / 12, c[u] = M, c[a] = M / 3, c[s] = (y - l) / 6048e5, c[i] = (y - l) / 864e5, c[r] = y / 36e5, c[n] = y / 6e4, c[e] = y / 1e3, c)[d] || y, h ? M : g.a(M);
  18535. }, $.daysInMonth = function () {
  18536. return this.endOf(u).$D;
  18537. }, $.$locale = function () {
  18538. return M[this.$L];
  18539. }, $.locale = function (t, e) {
  18540. if (!t) return this.$L;
  18541. var n = this.clone();
  18542. var r = D(t, e, !0);
  18543. return r && (n.$L = r), n;
  18544. }, $.clone = function () {
  18545. return g.w(this.$d, this);
  18546. }, $.toDate = function () {
  18547. return new Date(this.valueOf());
  18548. }, $.toJSON = function () {
  18549. return this.isValid() ? this.toISOString() : null;
  18550. }, $.toISOString = function () {
  18551. return this.$d.toISOString();
  18552. }, $.toString = function () {
  18553. return this.$d.toUTCString();
  18554. }, d;
  18555. }();
  18556. var p = S.prototype;
  18557. return v.prototype = p, [
  18558. ['$ms', t],
  18559. ['$s', e],
  18560. ['$m', n],
  18561. ['$H', r],
  18562. ['$W', i],
  18563. ['$M', u],
  18564. ['$y', o],
  18565. ['$D', f]].
  18566. forEach(function (t) {
  18567. p[t[1]] = function (e) {
  18568. return this.$g(e, t[0], t[1]);
  18569. };
  18570. }), v.extend = function (t, e) {
  18571. return t.$i || (t(e, S, v), t.$i = !0), v;
  18572. }, v.locale = D, v.isDayjs = m, v.unix = function (t) {
  18573. return v(1e3 * t);
  18574. }, v.en = M[y], v.Ls = M, v.p = {}, v;
  18575. });
  18576. /***/ }),
  18577. /* 380 */,
  18578. /* 381 */,
  18579. /* 382 */,
  18580. /* 383 */,
  18581. /* 384 */,
  18582. /* 385 */,
  18583. /* 386 */,
  18584. /* 387 */,
  18585. /* 388 */,
  18586. /* 389 */,
  18587. /* 390 */,
  18588. /* 391 */,
  18589. /* 392 */,
  18590. /* 393 */,
  18591. /* 394 */
  18592. /*!*************************************************************************************!*\
  18593. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/components/u-form/props.js ***!
  18594. \*************************************************************************************/
  18595. /*! no static exports found */
  18596. /***/ (function(module, exports, __webpack_require__) {
  18597. "use strict";
  18598. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  18599. props: {
  18600. // 当前form的需要验证字段的集合
  18601. model: {
  18602. type: Object,
  18603. default: uni.$u.props.form.model },
  18604. // 验证规则
  18605. rules: {
  18606. type: [Object, Function, Array],
  18607. default: uni.$u.props.form.rules },
  18608. // 有错误时的提示方式,message-提示信息,toast-进行toast提示
  18609. // border-bottom-下边框呈现红色,none-无提示
  18610. errorType: {
  18611. type: String,
  18612. default: uni.$u.props.form.errorType },
  18613. // 是否显示表单域的下划线边框
  18614. borderBottom: {
  18615. type: Boolean,
  18616. default: uni.$u.props.form.borderBottom },
  18617. // label的位置,left-左边,top-上边
  18618. labelPosition: {
  18619. type: String,
  18620. default: uni.$u.props.form.labelPosition },
  18621. // label的宽度,单位px
  18622. labelWidth: {
  18623. type: [String, Number],
  18624. default: uni.$u.props.form.labelWidth },
  18625. // lable字体的对齐方式
  18626. labelAlign: {
  18627. type: String,
  18628. default: uni.$u.props.form.labelAlign },
  18629. // lable的样式,对象形式
  18630. labelStyle: {
  18631. type: Object,
  18632. default: uni.$u.props.form.labelStyle } } };exports.default = _default;
  18633. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  18634. /***/ }),
  18635. /* 395 */,
  18636. /* 396 */,
  18637. /* 397 */,
  18638. /* 398 */,
  18639. /* 399 */,
  18640. /* 400 */
  18641. /*!******************************************************************************************!*\
  18642. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/components/u-form-item/props.js ***!
  18643. \******************************************************************************************/
  18644. /*! no static exports found */
  18645. /***/ (function(module, exports, __webpack_require__) {
  18646. "use strict";
  18647. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  18648. props: {
  18649. // input的label提示语
  18650. label: {
  18651. type: String,
  18652. default: uni.$u.props.formItem.label },
  18653. // 绑定的值
  18654. prop: {
  18655. type: String,
  18656. default: uni.$u.props.formItem.prop },
  18657. // 是否显示表单域的下划线边框
  18658. borderBottom: {
  18659. type: [String, Boolean],
  18660. default: uni.$u.props.formItem.borderBottom },
  18661. // label的宽度,单位px
  18662. labelWidth: {
  18663. type: [String, Number],
  18664. default: uni.$u.props.formItem.labelWidth },
  18665. // 右侧图标
  18666. rightIcon: {
  18667. type: String,
  18668. default: uni.$u.props.formItem.rightIcon },
  18669. // 左侧图标
  18670. leftIcon: {
  18671. type: String,
  18672. default: uni.$u.props.formItem.leftIcon },
  18673. // 是否显示左边的必填星号,只作显示用,具体校验必填的逻辑,请在rules中配置
  18674. required: {
  18675. type: Boolean,
  18676. default: uni.$u.props.formItem.required },
  18677. leftIconStyle: {
  18678. type: [String, Object],
  18679. default: uni.$u.props.formItem.leftIconStyle } } };exports.default = _default;
  18680. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  18681. /***/ }),
  18682. /* 401 */,
  18683. /* 402 */,
  18684. /* 403 */,
  18685. /* 404 */,
  18686. /* 405 */,
  18687. /* 406 */,
  18688. /* 407 */,
  18689. /* 408 */
  18690. /*!**************************************************************************************!*\
  18691. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/components/u-input/props.js ***!
  18692. \**************************************************************************************/
  18693. /*! no static exports found */
  18694. /***/ (function(module, exports, __webpack_require__) {
  18695. "use strict";
  18696. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  18697. props: {
  18698. // 输入的值
  18699. value: {
  18700. type: [String, Number],
  18701. default: uni.$u.props.input.value },
  18702. // 输入框类型
  18703. // number-数字输入键盘,app-vue下可以输入浮点数,app-nvue和小程序平台下只能输入整数
  18704. // idcard-身份证输入键盘,微信、支付宝、百度、QQ小程序
  18705. // digit-带小数点的数字键盘,App的nvue页面、微信、支付宝、百度、头条、QQ小程序
  18706. // text-文本输入键盘
  18707. type: {
  18708. type: String,
  18709. default: uni.$u.props.input.type },
  18710. // 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true,
  18711. // 兼容性:微信小程序、百度小程序、字节跳动小程序、QQ小程序
  18712. fixed: {
  18713. type: Boolean,
  18714. default: uni.$u.props.input.fixed },
  18715. // 是否禁用输入框
  18716. disabled: {
  18717. type: Boolean,
  18718. default: uni.$u.props.input.disabled },
  18719. // 禁用状态时的背景色
  18720. disabledColor: {
  18721. type: String,
  18722. default: uni.$u.props.input.disabledColor },
  18723. // 是否显示清除控件
  18724. clearable: {
  18725. type: Boolean,
  18726. default: uni.$u.props.input.clearable },
  18727. // 是否密码类型
  18728. password: {
  18729. type: Boolean,
  18730. default: uni.$u.props.input.password },
  18731. // 最大输入长度,设置为 -1 的时候不限制最大长度
  18732. maxlength: {
  18733. type: [String, Number],
  18734. default: uni.$u.props.input.maxlength },
  18735. // 输入框为空时的占位符
  18736. placeholder: {
  18737. type: String,
  18738. default: uni.$u.props.input.placeholder },
  18739. // 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
  18740. placeholderClass: {
  18741. type: String,
  18742. default: uni.$u.props.input.placeholderClass },
  18743. // 指定placeholder的样式
  18744. placeholderStyle: {
  18745. type: [String, Object],
  18746. default: uni.$u.props.input.placeholderStyle },
  18747. // 是否显示输入字数统计,只在 type ="text"或type ="textarea"时有效
  18748. showWordLimit: {
  18749. type: Boolean,
  18750. default: uni.$u.props.input.showWordLimit },
  18751. // 设置右下角按钮的文字,有效值:send|search|next|go|done,兼容性详见uni-app文档
  18752. // https://uniapp.dcloud.io/component/input
  18753. // https://uniapp.dcloud.io/component/textarea
  18754. confirmType: {
  18755. type: String,
  18756. default: uni.$u.props.input.confirmType },
  18757. // 点击键盘右下角按钮时是否保持键盘不收起,H5无效
  18758. confirmHold: {
  18759. type: Boolean,
  18760. default: uni.$u.props.input.confirmHold },
  18761. // focus时,点击页面的时候不收起键盘,微信小程序有效
  18762. holdKeyboard: {
  18763. type: Boolean,
  18764. default: uni.$u.props.input.holdKeyboard },
  18765. // 自动获取焦点
  18766. // 在 H5 平台能否聚焦以及软键盘是否跟随弹出,取决于当前浏览器本身的实现。nvue 页面不支持,需使用组件的 focus()、blur() 方法控制焦点
  18767. focus: {
  18768. type: Boolean,
  18769. default: uni.$u.props.input.focus },
  18770. // 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效
  18771. autoBlur: {
  18772. type: Boolean,
  18773. default: uni.$u.props.input.autoBlur },
  18774. // 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效
  18775. disableDefaultPadding: {
  18776. type: Boolean,
  18777. default: uni.$u.props.input.disableDefaultPadding },
  18778. // 指定focus时光标的位置
  18779. cursor: {
  18780. type: [String, Number],
  18781. default: uni.$u.props.input.cursor },
  18782. // 输入框聚焦时底部与键盘的距离
  18783. cursorSpacing: {
  18784. type: [String, Number],
  18785. default: uni.$u.props.input.cursorSpacing },
  18786. // 光标起始位置,自动聚集时有效,需与selection-end搭配使用
  18787. selectionStart: {
  18788. type: [String, Number],
  18789. default: uni.$u.props.input.selectionStart },
  18790. // 光标结束位置,自动聚集时有效,需与selection-start搭配使用
  18791. selectionEnd: {
  18792. type: [String, Number],
  18793. default: uni.$u.props.input.selectionEnd },
  18794. // 键盘弹起时,是否自动上推页面
  18795. adjustPosition: {
  18796. type: Boolean,
  18797. default: uni.$u.props.input.adjustPosition },
  18798. // 输入框内容对齐方式,可选值为:left|center|right
  18799. inputAlign: {
  18800. type: String,
  18801. default: uni.$u.props.input.inputAlign },
  18802. // 输入框字体的大小
  18803. fontSize: {
  18804. type: [String, Number],
  18805. default: uni.$u.props.input.fontSize },
  18806. // 输入框字体颜色
  18807. color: {
  18808. type: String,
  18809. default: uni.$u.props.input.color },
  18810. // 输入框前置图标
  18811. prefixIcon: {
  18812. type: String,
  18813. default: uni.$u.props.input.prefixIcon },
  18814. // 前置图标样式,对象或字符串
  18815. prefixIconStyle: {
  18816. type: [String, Object],
  18817. default: uni.$u.props.input.prefixIconStyle },
  18818. // 输入框后置图标
  18819. suffixIcon: {
  18820. type: String,
  18821. default: uni.$u.props.input.suffixIcon },
  18822. // 后置图标样式,对象或字符串
  18823. suffixIconStyle: {
  18824. type: [String, Object],
  18825. default: uni.$u.props.input.suffixIconStyle },
  18826. // 边框类型,surround-四周边框,bottom-底部边框,none-无边框
  18827. border: {
  18828. type: String,
  18829. default: uni.$u.props.input.border },
  18830. // 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会
  18831. readonly: {
  18832. type: Boolean,
  18833. default: uni.$u.props.input.readonly },
  18834. // 输入框形状,circle-圆形,square-方形
  18835. shape: {
  18836. type: String,
  18837. default: uni.$u.props.input.shape },
  18838. // 用于处理或者过滤输入框内容的方法
  18839. formatter: {
  18840. type: [Function, null],
  18841. default: uni.$u.props.input.formatter } } };exports.default = _default;
  18842. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  18843. /***/ }),
  18844. /* 409 */,
  18845. /* 410 */,
  18846. /* 411 */,
  18847. /* 412 */,
  18848. /* 413 */,
  18849. /* 414 */
  18850. /*!***************************************************************************************!*\
  18851. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/components/u-upload/utils.js ***!
  18852. \***************************************************************************************/
  18853. /*! no static exports found */
  18854. /***/ (function(module, exports, __webpack_require__) {
  18855. "use strict";
  18856. /* 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) {
  18857. // 某些情况下,type可能会为
  18858. if (!['[object Object]', '[object File]'].includes(Object.prototype.toString.call(obj))) {
  18859. return {};
  18860. }
  18861. return Object.keys(obj).reduce(function (prev, key) {
  18862. if (!keys.includes(key)) {
  18863. prev[key] = obj[key];
  18864. }
  18865. return prev;
  18866. }, {});
  18867. }
  18868. function formatImage(res) {
  18869. return res.tempFiles.map(function (item) {return _objectSpread(_objectSpread({},
  18870. pickExclude(item, ['path'])), {}, {
  18871. type: 'image',
  18872. url: item.path,
  18873. thumb: item.path,
  18874. size: item.size });});
  18875. }
  18876. function formatVideo(res) {
  18877. return [_objectSpread(_objectSpread({},
  18878. pickExclude(res, ['tempFilePath', 'thumbTempFilePath', 'errMsg'])), {}, {
  18879. type: 'video',
  18880. url: res.tempFilePath,
  18881. thumb: res.thumbTempFilePath,
  18882. size: res.size })];
  18883. }
  18884. function formatMedia(res) {
  18885. return res.tempFiles.map(function (item) {return _objectSpread(_objectSpread({},
  18886. pickExclude(item, ['fileType', 'thumbTempFilePath', 'tempFilePath'])), {}, {
  18887. type: res.type,
  18888. url: item.tempFilePath,
  18889. thumb: res.type === 'video' ? item.thumbTempFilePath : item.tempFilePath,
  18890. size: item.size });});
  18891. }
  18892. function formatFile(res) {
  18893. return res.tempFiles.map(function (item) {return _objectSpread(_objectSpread({},
  18894. pickExclude(item, ['path'])), {}, {
  18895. url: item.path,
  18896. size: item.size });});
  18897. }
  18898. function chooseFile(_ref)
  18899. {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;
  18900. return new Promise(function (resolve, reject) {
  18901. switch (accept) {
  18902. case 'image':
  18903. uni.chooseImage({
  18904. count: multiple ? Math.min(maxCount, 9) : 1,
  18905. sourceType: capture,
  18906. sizeType: sizeType,
  18907. success: function success(res) {return resolve(formatImage(res));},
  18908. fail: reject });
  18909. break;
  18910. // 只有微信小程序才支持chooseMedia接口
  18911. case 'media':
  18912. wx.chooseMedia({
  18913. count: multiple ? Math.min(maxCount, 9) : 1,
  18914. sourceType: capture,
  18915. maxDuration: maxDuration,
  18916. sizeType: sizeType,
  18917. camera: camera,
  18918. success: function success(res) {return resolve(formatMedia(res));},
  18919. fail: reject });
  18920. break;
  18921. case 'video':
  18922. uni.chooseVideo({
  18923. sourceType: capture,
  18924. compressed: compressed,
  18925. maxDuration: maxDuration,
  18926. camera: camera,
  18927. success: function success(res) {return resolve(formatVideo(res));},
  18928. fail: reject });
  18929. break;
  18930. // 只有微信小程序才支持chooseMessageFile接口
  18931. case 'file':
  18932. wx.chooseMessageFile({
  18933. count: multiple ? maxCount : 1,
  18934. type: accept,
  18935. success: function success(res) {return resolve(formatFile(res));},
  18936. fail: reject });
  18937. break;
  18938. default:
  18939. // 此为保底选项,在accept不为上面任意一项的时候选取全部文件
  18940. wx.chooseMessageFile({
  18941. count: multiple ? maxCount : 1,
  18942. type: 'all',
  18943. success: function success(res) {return resolve(formatFile(res));},
  18944. fail: reject });}
  18945. });
  18946. }
  18947. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  18948. /***/ }),
  18949. /* 415 */
  18950. /*!***************************************************************************************!*\
  18951. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/components/u-upload/mixin.js ***!
  18952. \***************************************************************************************/
  18953. /*! no static exports found */
  18954. /***/ (function(module, exports, __webpack_require__) {
  18955. "use strict";
  18956. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  18957. watch: {
  18958. // 监听accept的变化,判断是否符合个平台要求
  18959. // 只有微信小程序才支持选择媒体,文件类型,所以这里做一个判断提示
  18960. accept: {
  18961. immediate: true,
  18962. handler: function handler(val) {
  18963. } } } };exports.default = _default;
  18964. /***/ }),
  18965. /* 416 */
  18966. /*!***************************************************************************************!*\
  18967. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/components/u-upload/props.js ***!
  18968. \***************************************************************************************/
  18969. /*! no static exports found */
  18970. /***/ (function(module, exports, __webpack_require__) {
  18971. "use strict";
  18972. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  18973. props: {
  18974. // 接受的文件类型, 可选值为all media image file video
  18975. accept: {
  18976. type: String,
  18977. default: uni.$u.props.upload.accept },
  18978. // 图片或视频拾取模式,当accept为image类型时设置capture可选额外camera可以直接调起摄像头
  18979. capture: {
  18980. type: [String, Array],
  18981. default: uni.$u.props.upload.capture },
  18982. // 当accept为video时生效,是否压缩视频,默认为true
  18983. compressed: {
  18984. type: Boolean,
  18985. default: uni.$u.props.upload.compressed },
  18986. // 当accept为video时生效,可选值为back或front
  18987. camera: {
  18988. type: String,
  18989. default: uni.$u.props.upload.camera },
  18990. // 当accept为video时生效,拍摄视频最长拍摄时间,单位秒
  18991. maxDuration: {
  18992. type: Number,
  18993. default: uni.$u.props.upload.maxDuration },
  18994. // 上传区域的图标,只能内置图标
  18995. uploadIcon: {
  18996. type: String,
  18997. default: uni.$u.props.upload.uploadIcon },
  18998. // 上传区域的图标的颜色,默认
  18999. uploadIconColor: {
  19000. type: String,
  19001. default: uni.$u.props.upload.uploadIconColor },
  19002. // 是否开启文件读取前事件
  19003. useBeforeRead: {
  19004. type: Boolean,
  19005. default: uni.$u.props.upload.useBeforeRead },
  19006. // 读取后的处理函数
  19007. afterRead: {
  19008. type: Function,
  19009. default: null },
  19010. // 读取前的处理函数
  19011. beforeRead: {
  19012. type: Function,
  19013. default: null },
  19014. // 是否显示组件自带的图片预览功能
  19015. previewFullImage: {
  19016. type: Boolean,
  19017. default: uni.$u.props.upload.previewFullImage },
  19018. // 最大上传数量
  19019. maxCount: {
  19020. type: [String, Number],
  19021. default: uni.$u.props.upload.maxCount },
  19022. // 是否启用
  19023. disabled: {
  19024. type: Boolean,
  19025. default: uni.$u.props.upload.disabled },
  19026. // 预览上传的图片时的裁剪模式,和image组件mode属性一致
  19027. imageMode: {
  19028. type: String,
  19029. default: uni.$u.props.upload.imageMode },
  19030. // 标识符,可以在回调函数的第二项参数中获取
  19031. name: {
  19032. type: String,
  19033. default: uni.$u.props.upload.name },
  19034. // 所选的图片的尺寸, 可选值为original compressed
  19035. sizeType: {
  19036. type: Array,
  19037. default: uni.$u.props.upload.sizeType },
  19038. // 是否开启图片多选,部分安卓机型不支持
  19039. multiple: {
  19040. type: Boolean,
  19041. default: uni.$u.props.upload.multiple },
  19042. // 是否展示删除按钮
  19043. deletable: {
  19044. type: Boolean,
  19045. default: uni.$u.props.upload.deletable },
  19046. // 文件大小限制,单位为byte
  19047. maxSize: {
  19048. type: [String, Number],
  19049. default: uni.$u.props.upload.maxSize },
  19050. // 显示已上传的文件列表
  19051. fileList: {
  19052. type: Array,
  19053. default: uni.$u.props.upload.fileList },
  19054. // 上传区域的提示文字
  19055. uploadText: {
  19056. type: String,
  19057. default: uni.$u.props.upload.uploadText },
  19058. // 内部预览图片区域和选择图片按钮的区域宽度
  19059. width: {
  19060. type: [String, Number],
  19061. default: uni.$u.props.upload.width },
  19062. // 内部预览图片区域和选择图片按钮的区域高度
  19063. height: {
  19064. type: [String, Number],
  19065. default: uni.$u.props.upload.height },
  19066. // 是否在上传完成后展示预览图
  19067. previewImage: {
  19068. type: Boolean,
  19069. default: uni.$u.props.upload.previewImage } } };exports.default = _default;
  19070. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  19071. /***/ }),
  19072. /* 417 */,
  19073. /* 418 */,
  19074. /* 419 */,
  19075. /* 420 */,
  19076. /* 421 */,
  19077. /* 422 */,
  19078. /* 423 */,
  19079. /* 424 */,
  19080. /* 425 */,
  19081. /* 426 */,
  19082. /* 427 */,
  19083. /* 428 */,
  19084. /* 429 */
  19085. /*!*************************************************************************!*\
  19086. !*** C:/shop-program/alhj/alhj-wx/components/file-img-upload/upload.js ***!
  19087. \*************************************************************************/
  19088. /*! no static exports found */
  19089. /***/ (function(module, exports, __webpack_require__) {
  19090. "use strict";
  19091. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.WUpload = void 0; // 文件上传
  19092. var WUpload = function WUpload(url, uploadName, token) {var data = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};var source = arguments.length > 4 ? arguments[4] : undefined;
  19093. return new Promise(function (resolve, reject) {
  19094. uni.showLoading({
  19095. title: '上传中...',
  19096. mask: true });
  19097. // data['token'] = token
  19098. var tempFilePaths = source.tempFiles[0].path;
  19099. // let is_test = ''
  19100. // data['is_test'] = 1
  19101. uni.uploadFile({
  19102. url: url, //仅为示例,非真实的接口地址
  19103. filePath: tempFilePaths,
  19104. // name值需要根据项目自己配置
  19105. name: uploadName || 'file',
  19106. header: {
  19107. 'content-type': 'multipart/form-data',
  19108. "Authorization": token },
  19109. formData: data,
  19110. success: function success(res) {
  19111. uni.hideLoading();
  19112. // 如果返回json格式,转换成字符串
  19113. if (IsJsonString(res.data)) {
  19114. res.data = JSON.parse(res.data);
  19115. }
  19116. resolve(res.data);
  19117. },
  19118. fail: function fail(err) {
  19119. uni.hideLoading();
  19120. uni.showToast({
  19121. title: '上传失败,请稍后重试!',
  19122. icon: 'none',
  19123. duration: 2000 });
  19124. },
  19125. complete: function complete() {} });
  19126. });
  19127. };
  19128. // 判断是否未json
  19129. exports.WUpload = WUpload;var IsJsonString = function IsJsonString(str) {
  19130. try {
  19131. JSON.parse(str);
  19132. } catch (e) {
  19133. return false;
  19134. }
  19135. return true;
  19136. };
  19137. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  19138. /***/ }),
  19139. /* 430 */,
  19140. /* 431 */,
  19141. /* 432 */,
  19142. /* 433 */,
  19143. /* 434 */,
  19144. /* 435 */,
  19145. /* 436 */,
  19146. /* 437 */
  19147. /*!****************************************************************************************!*\
  19148. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/components/u-overlay/props.js ***!
  19149. \****************************************************************************************/
  19150. /*! no static exports found */
  19151. /***/ (function(module, exports, __webpack_require__) {
  19152. "use strict";
  19153. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  19154. props: {
  19155. // 是否显示遮罩
  19156. show: {
  19157. type: Boolean,
  19158. default: uni.$u.props.overlay.show },
  19159. // 层级z-index
  19160. zIndex: {
  19161. type: [String, Number],
  19162. default: uni.$u.props.overlay.zIndex },
  19163. // 遮罩的过渡时间,单位为ms
  19164. duration: {
  19165. type: [String, Number],
  19166. default: uni.$u.props.overlay.duration },
  19167. // 不透明度值,当做rgba的第四个参数
  19168. opacity: {
  19169. type: [String, Number],
  19170. default: uni.$u.props.overlay.opacity } } };exports.default = _default;
  19171. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  19172. /***/ }),
  19173. /* 438 */,
  19174. /* 439 */,
  19175. /* 440 */,
  19176. /* 441 */,
  19177. /* 442 */,
  19178. /* 443 */,
  19179. /* 444 */,
  19180. /* 445 */
  19181. /*!*******************************************************************************************!*\
  19182. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/components/u-transition/props.js ***!
  19183. \*******************************************************************************************/
  19184. /*! no static exports found */
  19185. /***/ (function(module, exports, __webpack_require__) {
  19186. "use strict";
  19187. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  19188. props: {
  19189. // 是否展示组件
  19190. show: {
  19191. type: Boolean,
  19192. default: uni.$u.props.transition.show },
  19193. // 使用的动画模式
  19194. mode: {
  19195. type: String,
  19196. default: uni.$u.props.transition.mode },
  19197. // 动画的执行时间,单位ms
  19198. duration: {
  19199. type: [String, Number],
  19200. default: uni.$u.props.transition.duration },
  19201. // 使用的动画过渡函数
  19202. timingFunction: {
  19203. type: String,
  19204. default: uni.$u.props.transition.timingFunction } } };exports.default = _default;
  19205. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  19206. /***/ }),
  19207. /* 446 */
  19208. /*!************************************************************************************************!*\
  19209. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/components/u-transition/transition.js ***!
  19210. \************************************************************************************************/
  19211. /*! no static exports found */
  19212. /***/ (function(module, exports, __webpack_require__) {
  19213. "use strict";
  19214. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _regenerator = _interopRequireDefault(__webpack_require__(/*! ./node_modules/@babel/runtime/regenerator */ 39));
  19215. var _nvueAniMap = _interopRequireDefault(__webpack_require__(/*! ./nvue.ani-map.js */ 447));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);});};} // 定义一个一定时间后自动成功的promise,让调用nextTick方法处,进入下一个then方法
  19216. var nextTick = function nextTick() {return new Promise(function (resolve) {return setTimeout(resolve, 1000 / 50);});}; // nvue动画模块实现细节抽离在外部文件
  19217. // 定义类名,通过给元素动态切换类名,赋予元素一定的css动画样式
  19218. var getClassNames = function getClassNames(name) {return {
  19219. enter: "u-".concat(name, "-enter u-").concat(name, "-enter-active"),
  19220. 'enter-to': "u-".concat(name, "-enter-to u-").concat(name, "-enter-active"),
  19221. leave: "u-".concat(name, "-leave u-").concat(name, "-leave-active"),
  19222. 'leave-to': "u-".concat(name, "-leave-to u-").concat(name, "-leave-active") };};var _default =
  19223. {
  19224. methods: {
  19225. // 组件被点击发出事件
  19226. clickHandler: function clickHandler() {
  19227. this.$emit('click');
  19228. },
  19229. // vue版本的组件进场处理
  19230. vueEnter: function vueEnter() {var _this = this;
  19231. // 动画进入时的类名
  19232. var classNames = getClassNames(this.mode);
  19233. // 定义状态和发出动画进入前事件
  19234. this.status = 'enter';
  19235. this.$emit('beforeEnter');
  19236. this.inited = true;
  19237. this.display = true;
  19238. this.classes = classNames.enter;
  19239. this.$nextTick( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee() {return _regenerator.default.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:
  19240. // 标识动画尚未结束
  19241. _this.$emit('enter');
  19242. _this.transitionEnded = false;
  19243. // 组件动画进入后触发的事件
  19244. _this.$emit('afterEnter');
  19245. // 赋予组件enter-to类名
  19246. _this.classes = classNames['enter-to'];case 4:case "end":return _context.stop();}}}, _callee);})));
  19247. },
  19248. // 动画离场处理
  19249. vueLeave: function vueLeave() {var _this2 = this;
  19250. // 如果不是展示状态,无需执行逻辑
  19251. if (!this.display) return;
  19252. var classNames = getClassNames(this.mode);
  19253. // 标记离开状态和发出事件
  19254. this.status = 'leave';
  19255. this.$emit('beforeLeave');
  19256. // 获得类名
  19257. this.classes = classNames.leave;
  19258. this.$nextTick(function () {
  19259. // 动画正在离场的状态
  19260. _this2.transitionEnded = false;
  19261. _this2.$emit('leave');
  19262. // 组件执行动画,到了执行的执行时间后,执行一些额外处理
  19263. setTimeout(_this2.onTransitionEnd, _this2.duration);
  19264. _this2.classes = classNames['leave-to'];
  19265. });
  19266. },
  19267. // 完成过渡后触发
  19268. onTransitionEnd: function onTransitionEnd() {
  19269. // 如果已经是结束的状态,无需再处理
  19270. if (this.transitionEnded) return;
  19271. this.transitionEnded = true;
  19272. // 发出组件动画执行后的事件
  19273. this.$emit(this.status === 'leave' ? 'afterLeave' : 'afterEnter');
  19274. if (!this.show && this.display) {
  19275. this.display = false;
  19276. this.inited = false;
  19277. }
  19278. } } };exports.default = _default;
  19279. /***/ }),
  19280. /* 447 */
  19281. /*!**************************************************************************************************!*\
  19282. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/components/u-transition/nvue.ani-map.js ***!
  19283. \**************************************************************************************************/
  19284. /*! no static exports found */
  19285. /***/ (function(module, exports, __webpack_require__) {
  19286. "use strict";
  19287. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  19288. fade: {
  19289. enter: { opacity: 0 },
  19290. 'enter-to': { opacity: 1 },
  19291. leave: { opacity: 1 },
  19292. 'leave-to': { opacity: 0 } },
  19293. 'fade-up': {
  19294. enter: { opacity: 0, transform: 'translateY(100%)' },
  19295. 'enter-to': { opacity: 1, transform: 'translateY(0)' },
  19296. leave: { opacity: 1, transform: 'translateY(0)' },
  19297. 'leave-to': { opacity: 0, transform: 'translateY(100%)' } },
  19298. 'fade-down': {
  19299. enter: { opacity: 0, transform: 'translateY(-100%)' },
  19300. 'enter-to': { opacity: 1, transform: 'translateY(0)' },
  19301. leave: { opacity: 1, transform: 'translateY(0)' },
  19302. 'leave-to': { opacity: 0, transform: 'translateY(-100%)' } },
  19303. 'fade-left': {
  19304. enter: { opacity: 0, transform: 'translateX(-100%)' },
  19305. 'enter-to': { opacity: 1, transform: 'translateY(0)' },
  19306. leave: { opacity: 1, transform: 'translateY(0)' },
  19307. 'leave-to': { opacity: 0, transform: 'translateX(-100%)' } },
  19308. 'fade-right': {
  19309. enter: { opacity: 0, transform: 'translateX(100%)' },
  19310. 'enter-to': { opacity: 1, transform: 'translateY(0)' },
  19311. leave: { opacity: 1, transform: 'translateY(0)' },
  19312. 'leave-to': { opacity: 0, transform: 'translateX(100%)' } },
  19313. 'slide-up': {
  19314. enter: { transform: 'translateY(100%)' },
  19315. 'enter-to': { transform: 'translateY(0)' },
  19316. leave: { transform: 'translateY(0)' },
  19317. 'leave-to': { transform: 'translateY(100%)' } },
  19318. 'slide-down': {
  19319. enter: { transform: 'translateY(-100%)' },
  19320. 'enter-to': { transform: 'translateY(0)' },
  19321. leave: { transform: 'translateY(0)' },
  19322. 'leave-to': { transform: 'translateY(-100%)' } },
  19323. 'slide-left': {
  19324. enter: { transform: 'translateX(-100%)' },
  19325. 'enter-to': { transform: 'translateY(0)' },
  19326. leave: { transform: 'translateY(0)' },
  19327. 'leave-to': { transform: 'translateX(-100%)' } },
  19328. 'slide-right': {
  19329. enter: { transform: 'translateX(100%)' },
  19330. 'enter-to': { transform: 'translateY(0)' },
  19331. leave: { transform: 'translateY(0)' },
  19332. 'leave-to': { transform: 'translateX(100%)' } },
  19333. zoom: {
  19334. enter: { transform: 'scale(0.95)' },
  19335. 'enter-to': { transform: 'scale(1)' },
  19336. leave: { transform: 'scale(1)' },
  19337. 'leave-to': { transform: 'scale(0.95)' } },
  19338. 'fade-zoom': {
  19339. enter: { opacity: 0, transform: 'scale(0.95)' },
  19340. 'enter-to': { opacity: 1, transform: 'scale(1)' },
  19341. leave: { opacity: 1, transform: 'scale(1)' },
  19342. 'leave-to': { opacity: 0, transform: 'scale(0.95)' } } };exports.default = _default;
  19343. /***/ }),
  19344. /* 448 */,
  19345. /* 449 */,
  19346. /* 450 */,
  19347. /* 451 */,
  19348. /* 452 */,
  19349. /* 453 */,
  19350. /* 454 */,
  19351. /* 455 */
  19352. /*!*******************************************************************************************!*\
  19353. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/components/u-status-bar/props.js ***!
  19354. \*******************************************************************************************/
  19355. /*! no static exports found */
  19356. /***/ (function(module, exports, __webpack_require__) {
  19357. "use strict";
  19358. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  19359. props: {
  19360. bgColor: {
  19361. type: String,
  19362. default: uni.$u.props.statusBar.bgColor } } };exports.default = _default;
  19363. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  19364. /***/ }),
  19365. /* 456 */,
  19366. /* 457 */,
  19367. /* 458 */,
  19368. /* 459 */,
  19369. /* 460 */,
  19370. /* 461 */,
  19371. /* 462 */,
  19372. /* 463 */
  19373. /*!********************************************************************************************!*\
  19374. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/components/u-safe-bottom/props.js ***!
  19375. \********************************************************************************************/
  19376. /*! no static exports found */
  19377. /***/ (function(module, exports, __webpack_require__) {
  19378. "use strict";
  19379. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  19380. props: {} };exports.default = _default;
  19381. /***/ }),
  19382. /* 464 */,
  19383. /* 465 */,
  19384. /* 466 */,
  19385. /* 467 */,
  19386. /* 468 */,
  19387. /* 469 */,
  19388. /* 470 */,
  19389. /* 471 */
  19390. /*!****************************************************************************************!*\
  19391. !*** C:/shop-program/alhj/alhj-wx/uni_modules/uni-icons/components/uni-icons/icons.js ***!
  19392. \****************************************************************************************/
  19393. /*! no static exports found */
  19394. /***/ (function(module, exports, __webpack_require__) {
  19395. "use strict";
  19396. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  19397. "id": "2852637",
  19398. "name": "uniui图标库",
  19399. "font_family": "uniicons",
  19400. "css_prefix_text": "uniui-",
  19401. "description": "",
  19402. "glyphs": [
  19403. {
  19404. "icon_id": "25027049",
  19405. "name": "yanse",
  19406. "font_class": "color",
  19407. "unicode": "e6cf",
  19408. "unicode_decimal": 59087 },
  19409. {
  19410. "icon_id": "25027048",
  19411. "name": "wallet",
  19412. "font_class": "wallet",
  19413. "unicode": "e6b1",
  19414. "unicode_decimal": 59057 },
  19415. {
  19416. "icon_id": "25015720",
  19417. "name": "settings-filled",
  19418. "font_class": "settings-filled",
  19419. "unicode": "e6ce",
  19420. "unicode_decimal": 59086 },
  19421. {
  19422. "icon_id": "25015434",
  19423. "name": "shimingrenzheng-filled",
  19424. "font_class": "auth-filled",
  19425. "unicode": "e6cc",
  19426. "unicode_decimal": 59084 },
  19427. {
  19428. "icon_id": "24934246",
  19429. "name": "shop-filled",
  19430. "font_class": "shop-filled",
  19431. "unicode": "e6cd",
  19432. "unicode_decimal": 59085 },
  19433. {
  19434. "icon_id": "24934159",
  19435. "name": "staff-filled-01",
  19436. "font_class": "staff-filled",
  19437. "unicode": "e6cb",
  19438. "unicode_decimal": 59083 },
  19439. {
  19440. "icon_id": "24932461",
  19441. "name": "VIP-filled",
  19442. "font_class": "vip-filled",
  19443. "unicode": "e6c6",
  19444. "unicode_decimal": 59078 },
  19445. {
  19446. "icon_id": "24932462",
  19447. "name": "plus_circle_fill",
  19448. "font_class": "plus-filled",
  19449. "unicode": "e6c7",
  19450. "unicode_decimal": 59079 },
  19451. {
  19452. "icon_id": "24932463",
  19453. "name": "folder_add-filled",
  19454. "font_class": "folder-add-filled",
  19455. "unicode": "e6c8",
  19456. "unicode_decimal": 59080 },
  19457. {
  19458. "icon_id": "24932464",
  19459. "name": "yanse-filled",
  19460. "font_class": "color-filled",
  19461. "unicode": "e6c9",
  19462. "unicode_decimal": 59081 },
  19463. {
  19464. "icon_id": "24932465",
  19465. "name": "tune-filled",
  19466. "font_class": "tune-filled",
  19467. "unicode": "e6ca",
  19468. "unicode_decimal": 59082 },
  19469. {
  19470. "icon_id": "24932455",
  19471. "name": "a-rilidaka-filled",
  19472. "font_class": "calendar-filled",
  19473. "unicode": "e6c0",
  19474. "unicode_decimal": 59072 },
  19475. {
  19476. "icon_id": "24932456",
  19477. "name": "notification-filled",
  19478. "font_class": "notification-filled",
  19479. "unicode": "e6c1",
  19480. "unicode_decimal": 59073 },
  19481. {
  19482. "icon_id": "24932457",
  19483. "name": "wallet-filled",
  19484. "font_class": "wallet-filled",
  19485. "unicode": "e6c2",
  19486. "unicode_decimal": 59074 },
  19487. {
  19488. "icon_id": "24932458",
  19489. "name": "paihangbang-filled",
  19490. "font_class": "medal-filled",
  19491. "unicode": "e6c3",
  19492. "unicode_decimal": 59075 },
  19493. {
  19494. "icon_id": "24932459",
  19495. "name": "gift-filled",
  19496. "font_class": "gift-filled",
  19497. "unicode": "e6c4",
  19498. "unicode_decimal": 59076 },
  19499. {
  19500. "icon_id": "24932460",
  19501. "name": "fire-filled",
  19502. "font_class": "fire-filled",
  19503. "unicode": "e6c5",
  19504. "unicode_decimal": 59077 },
  19505. {
  19506. "icon_id": "24928001",
  19507. "name": "refreshempty",
  19508. "font_class": "refreshempty",
  19509. "unicode": "e6bf",
  19510. "unicode_decimal": 59071 },
  19511. {
  19512. "icon_id": "24926853",
  19513. "name": "location-ellipse",
  19514. "font_class": "location-filled",
  19515. "unicode": "e6af",
  19516. "unicode_decimal": 59055 },
  19517. {
  19518. "icon_id": "24926735",
  19519. "name": "person-filled",
  19520. "font_class": "person-filled",
  19521. "unicode": "e69d",
  19522. "unicode_decimal": 59037 },
  19523. {
  19524. "icon_id": "24926703",
  19525. "name": "personadd-filled",
  19526. "font_class": "personadd-filled",
  19527. "unicode": "e698",
  19528. "unicode_decimal": 59032 },
  19529. {
  19530. "icon_id": "24923351",
  19531. "name": "back",
  19532. "font_class": "back",
  19533. "unicode": "e6b9",
  19534. "unicode_decimal": 59065 },
  19535. {
  19536. "icon_id": "24923352",
  19537. "name": "forward",
  19538. "font_class": "forward",
  19539. "unicode": "e6ba",
  19540. "unicode_decimal": 59066 },
  19541. {
  19542. "icon_id": "24923353",
  19543. "name": "arrowthinright",
  19544. "font_class": "arrow-right",
  19545. "unicode": "e6bb",
  19546. "unicode_decimal": 59067 },
  19547. {
  19548. "icon_id": "24923353",
  19549. "name": "arrowthinright",
  19550. "font_class": "arrowthinright",
  19551. "unicode": "e6bb",
  19552. "unicode_decimal": 59067 },
  19553. {
  19554. "icon_id": "24923354",
  19555. "name": "arrowthinleft",
  19556. "font_class": "arrow-left",
  19557. "unicode": "e6bc",
  19558. "unicode_decimal": 59068 },
  19559. {
  19560. "icon_id": "24923354",
  19561. "name": "arrowthinleft",
  19562. "font_class": "arrowthinleft",
  19563. "unicode": "e6bc",
  19564. "unicode_decimal": 59068 },
  19565. {
  19566. "icon_id": "24923355",
  19567. "name": "arrowthinup",
  19568. "font_class": "arrow-up",
  19569. "unicode": "e6bd",
  19570. "unicode_decimal": 59069 },
  19571. {
  19572. "icon_id": "24923355",
  19573. "name": "arrowthinup",
  19574. "font_class": "arrowthinup",
  19575. "unicode": "e6bd",
  19576. "unicode_decimal": 59069 },
  19577. {
  19578. "icon_id": "24923356",
  19579. "name": "arrowthindown",
  19580. "font_class": "arrow-down",
  19581. "unicode": "e6be",
  19582. "unicode_decimal": 59070 },
  19583. {
  19584. "icon_id": "24923356",
  19585. "name": "arrowthindown",
  19586. "font_class": "arrowthindown",
  19587. "unicode": "e6be",
  19588. "unicode_decimal": 59070 },
  19589. {
  19590. "icon_id": "24923349",
  19591. "name": "arrowdown",
  19592. "font_class": "bottom",
  19593. "unicode": "e6b8",
  19594. "unicode_decimal": 59064 },
  19595. {
  19596. "icon_id": "24923349",
  19597. "name": "arrowdown",
  19598. "font_class": "arrowdown",
  19599. "unicode": "e6b8",
  19600. "unicode_decimal": 59064 },
  19601. {
  19602. "icon_id": "24923346",
  19603. "name": "arrowright",
  19604. "font_class": "right",
  19605. "unicode": "e6b5",
  19606. "unicode_decimal": 59061 },
  19607. {
  19608. "icon_id": "24923346",
  19609. "name": "arrowright",
  19610. "font_class": "arrowright",
  19611. "unicode": "e6b5",
  19612. "unicode_decimal": 59061 },
  19613. {
  19614. "icon_id": "24923347",
  19615. "name": "arrowup",
  19616. "font_class": "top",
  19617. "unicode": "e6b6",
  19618. "unicode_decimal": 59062 },
  19619. {
  19620. "icon_id": "24923347",
  19621. "name": "arrowup",
  19622. "font_class": "arrowup",
  19623. "unicode": "e6b6",
  19624. "unicode_decimal": 59062 },
  19625. {
  19626. "icon_id": "24923348",
  19627. "name": "arrowleft",
  19628. "font_class": "left",
  19629. "unicode": "e6b7",
  19630. "unicode_decimal": 59063 },
  19631. {
  19632. "icon_id": "24923348",
  19633. "name": "arrowleft",
  19634. "font_class": "arrowleft",
  19635. "unicode": "e6b7",
  19636. "unicode_decimal": 59063 },
  19637. {
  19638. "icon_id": "24923334",
  19639. "name": "eye",
  19640. "font_class": "eye",
  19641. "unicode": "e651",
  19642. "unicode_decimal": 58961 },
  19643. {
  19644. "icon_id": "24923335",
  19645. "name": "eye-filled",
  19646. "font_class": "eye-filled",
  19647. "unicode": "e66a",
  19648. "unicode_decimal": 58986 },
  19649. {
  19650. "icon_id": "24923336",
  19651. "name": "eye-slash",
  19652. "font_class": "eye-slash",
  19653. "unicode": "e6b3",
  19654. "unicode_decimal": 59059 },
  19655. {
  19656. "icon_id": "24923337",
  19657. "name": "eye-slash-filled",
  19658. "font_class": "eye-slash-filled",
  19659. "unicode": "e6b4",
  19660. "unicode_decimal": 59060 },
  19661. {
  19662. "icon_id": "24923305",
  19663. "name": "info-filled",
  19664. "font_class": "info-filled",
  19665. "unicode": "e649",
  19666. "unicode_decimal": 58953 },
  19667. {
  19668. "icon_id": "24923299",
  19669. "name": "reload-01",
  19670. "font_class": "reload",
  19671. "unicode": "e6b2",
  19672. "unicode_decimal": 59058 },
  19673. {
  19674. "icon_id": "24923195",
  19675. "name": "mic_slash_fill",
  19676. "font_class": "micoff-filled",
  19677. "unicode": "e6b0",
  19678. "unicode_decimal": 59056 },
  19679. {
  19680. "icon_id": "24923165",
  19681. "name": "map-pin-ellipse",
  19682. "font_class": "map-pin-ellipse",
  19683. "unicode": "e6ac",
  19684. "unicode_decimal": 59052 },
  19685. {
  19686. "icon_id": "24923166",
  19687. "name": "map-pin",
  19688. "font_class": "map-pin",
  19689. "unicode": "e6ad",
  19690. "unicode_decimal": 59053 },
  19691. {
  19692. "icon_id": "24923167",
  19693. "name": "location",
  19694. "font_class": "location",
  19695. "unicode": "e6ae",
  19696. "unicode_decimal": 59054 },
  19697. {
  19698. "icon_id": "24923064",
  19699. "name": "starhalf",
  19700. "font_class": "starhalf",
  19701. "unicode": "e683",
  19702. "unicode_decimal": 59011 },
  19703. {
  19704. "icon_id": "24923065",
  19705. "name": "star",
  19706. "font_class": "star",
  19707. "unicode": "e688",
  19708. "unicode_decimal": 59016 },
  19709. {
  19710. "icon_id": "24923066",
  19711. "name": "star-filled",
  19712. "font_class": "star-filled",
  19713. "unicode": "e68f",
  19714. "unicode_decimal": 59023 },
  19715. {
  19716. "icon_id": "24899646",
  19717. "name": "a-rilidaka",
  19718. "font_class": "calendar",
  19719. "unicode": "e6a0",
  19720. "unicode_decimal": 59040 },
  19721. {
  19722. "icon_id": "24899647",
  19723. "name": "fire",
  19724. "font_class": "fire",
  19725. "unicode": "e6a1",
  19726. "unicode_decimal": 59041 },
  19727. {
  19728. "icon_id": "24899648",
  19729. "name": "paihangbang",
  19730. "font_class": "medal",
  19731. "unicode": "e6a2",
  19732. "unicode_decimal": 59042 },
  19733. {
  19734. "icon_id": "24899649",
  19735. "name": "font",
  19736. "font_class": "font",
  19737. "unicode": "e6a3",
  19738. "unicode_decimal": 59043 },
  19739. {
  19740. "icon_id": "24899650",
  19741. "name": "gift",
  19742. "font_class": "gift",
  19743. "unicode": "e6a4",
  19744. "unicode_decimal": 59044 },
  19745. {
  19746. "icon_id": "24899651",
  19747. "name": "link",
  19748. "font_class": "link",
  19749. "unicode": "e6a5",
  19750. "unicode_decimal": 59045 },
  19751. {
  19752. "icon_id": "24899652",
  19753. "name": "notification",
  19754. "font_class": "notification",
  19755. "unicode": "e6a6",
  19756. "unicode_decimal": 59046 },
  19757. {
  19758. "icon_id": "24899653",
  19759. "name": "staff",
  19760. "font_class": "staff",
  19761. "unicode": "e6a7",
  19762. "unicode_decimal": 59047 },
  19763. {
  19764. "icon_id": "24899654",
  19765. "name": "VIP",
  19766. "font_class": "vip",
  19767. "unicode": "e6a8",
  19768. "unicode_decimal": 59048 },
  19769. {
  19770. "icon_id": "24899655",
  19771. "name": "folder_add",
  19772. "font_class": "folder-add",
  19773. "unicode": "e6a9",
  19774. "unicode_decimal": 59049 },
  19775. {
  19776. "icon_id": "24899656",
  19777. "name": "tune",
  19778. "font_class": "tune",
  19779. "unicode": "e6aa",
  19780. "unicode_decimal": 59050 },
  19781. {
  19782. "icon_id": "24899657",
  19783. "name": "shimingrenzheng",
  19784. "font_class": "auth",
  19785. "unicode": "e6ab",
  19786. "unicode_decimal": 59051 },
  19787. {
  19788. "icon_id": "24899565",
  19789. "name": "person",
  19790. "font_class": "person",
  19791. "unicode": "e699",
  19792. "unicode_decimal": 59033 },
  19793. {
  19794. "icon_id": "24899566",
  19795. "name": "email-filled",
  19796. "font_class": "email-filled",
  19797. "unicode": "e69a",
  19798. "unicode_decimal": 59034 },
  19799. {
  19800. "icon_id": "24899567",
  19801. "name": "phone-filled",
  19802. "font_class": "phone-filled",
  19803. "unicode": "e69b",
  19804. "unicode_decimal": 59035 },
  19805. {
  19806. "icon_id": "24899568",
  19807. "name": "phone",
  19808. "font_class": "phone",
  19809. "unicode": "e69c",
  19810. "unicode_decimal": 59036 },
  19811. {
  19812. "icon_id": "24899570",
  19813. "name": "email",
  19814. "font_class": "email",
  19815. "unicode": "e69e",
  19816. "unicode_decimal": 59038 },
  19817. {
  19818. "icon_id": "24899571",
  19819. "name": "personadd",
  19820. "font_class": "personadd",
  19821. "unicode": "e69f",
  19822. "unicode_decimal": 59039 },
  19823. {
  19824. "icon_id": "24899558",
  19825. "name": "chatboxes-filled",
  19826. "font_class": "chatboxes-filled",
  19827. "unicode": "e692",
  19828. "unicode_decimal": 59026 },
  19829. {
  19830. "icon_id": "24899559",
  19831. "name": "contact",
  19832. "font_class": "contact",
  19833. "unicode": "e693",
  19834. "unicode_decimal": 59027 },
  19835. {
  19836. "icon_id": "24899560",
  19837. "name": "chatbubble-filled",
  19838. "font_class": "chatbubble-filled",
  19839. "unicode": "e694",
  19840. "unicode_decimal": 59028 },
  19841. {
  19842. "icon_id": "24899561",
  19843. "name": "contact-filled",
  19844. "font_class": "contact-filled",
  19845. "unicode": "e695",
  19846. "unicode_decimal": 59029 },
  19847. {
  19848. "icon_id": "24899562",
  19849. "name": "chatboxes",
  19850. "font_class": "chatboxes",
  19851. "unicode": "e696",
  19852. "unicode_decimal": 59030 },
  19853. {
  19854. "icon_id": "24899563",
  19855. "name": "chatbubble",
  19856. "font_class": "chatbubble",
  19857. "unicode": "e697",
  19858. "unicode_decimal": 59031 },
  19859. {
  19860. "icon_id": "24881290",
  19861. "name": "upload-filled",
  19862. "font_class": "upload-filled",
  19863. "unicode": "e68e",
  19864. "unicode_decimal": 59022 },
  19865. {
  19866. "icon_id": "24881292",
  19867. "name": "upload",
  19868. "font_class": "upload",
  19869. "unicode": "e690",
  19870. "unicode_decimal": 59024 },
  19871. {
  19872. "icon_id": "24881293",
  19873. "name": "weixin",
  19874. "font_class": "weixin",
  19875. "unicode": "e691",
  19876. "unicode_decimal": 59025 },
  19877. {
  19878. "icon_id": "24881274",
  19879. "name": "compose",
  19880. "font_class": "compose",
  19881. "unicode": "e67f",
  19882. "unicode_decimal": 59007 },
  19883. {
  19884. "icon_id": "24881275",
  19885. "name": "qq",
  19886. "font_class": "qq",
  19887. "unicode": "e680",
  19888. "unicode_decimal": 59008 },
  19889. {
  19890. "icon_id": "24881276",
  19891. "name": "download-filled",
  19892. "font_class": "download-filled",
  19893. "unicode": "e681",
  19894. "unicode_decimal": 59009 },
  19895. {
  19896. "icon_id": "24881277",
  19897. "name": "pengyouquan",
  19898. "font_class": "pyq",
  19899. "unicode": "e682",
  19900. "unicode_decimal": 59010 },
  19901. {
  19902. "icon_id": "24881279",
  19903. "name": "sound",
  19904. "font_class": "sound",
  19905. "unicode": "e684",
  19906. "unicode_decimal": 59012 },
  19907. {
  19908. "icon_id": "24881280",
  19909. "name": "trash-filled",
  19910. "font_class": "trash-filled",
  19911. "unicode": "e685",
  19912. "unicode_decimal": 59013 },
  19913. {
  19914. "icon_id": "24881281",
  19915. "name": "sound-filled",
  19916. "font_class": "sound-filled",
  19917. "unicode": "e686",
  19918. "unicode_decimal": 59014 },
  19919. {
  19920. "icon_id": "24881282",
  19921. "name": "trash",
  19922. "font_class": "trash",
  19923. "unicode": "e687",
  19924. "unicode_decimal": 59015 },
  19925. {
  19926. "icon_id": "24881284",
  19927. "name": "videocam-filled",
  19928. "font_class": "videocam-filled",
  19929. "unicode": "e689",
  19930. "unicode_decimal": 59017 },
  19931. {
  19932. "icon_id": "24881285",
  19933. "name": "spinner-cycle",
  19934. "font_class": "spinner-cycle",
  19935. "unicode": "e68a",
  19936. "unicode_decimal": 59018 },
  19937. {
  19938. "icon_id": "24881286",
  19939. "name": "weibo",
  19940. "font_class": "weibo",
  19941. "unicode": "e68b",
  19942. "unicode_decimal": 59019 },
  19943. {
  19944. "icon_id": "24881288",
  19945. "name": "videocam",
  19946. "font_class": "videocam",
  19947. "unicode": "e68c",
  19948. "unicode_decimal": 59020 },
  19949. {
  19950. "icon_id": "24881289",
  19951. "name": "download",
  19952. "font_class": "download",
  19953. "unicode": "e68d",
  19954. "unicode_decimal": 59021 },
  19955. {
  19956. "icon_id": "24879601",
  19957. "name": "help",
  19958. "font_class": "help",
  19959. "unicode": "e679",
  19960. "unicode_decimal": 59001 },
  19961. {
  19962. "icon_id": "24879602",
  19963. "name": "navigate-filled",
  19964. "font_class": "navigate-filled",
  19965. "unicode": "e67a",
  19966. "unicode_decimal": 59002 },
  19967. {
  19968. "icon_id": "24879603",
  19969. "name": "plusempty",
  19970. "font_class": "plusempty",
  19971. "unicode": "e67b",
  19972. "unicode_decimal": 59003 },
  19973. {
  19974. "icon_id": "24879604",
  19975. "name": "smallcircle",
  19976. "font_class": "smallcircle",
  19977. "unicode": "e67c",
  19978. "unicode_decimal": 59004 },
  19979. {
  19980. "icon_id": "24879605",
  19981. "name": "minus-filled",
  19982. "font_class": "minus-filled",
  19983. "unicode": "e67d",
  19984. "unicode_decimal": 59005 },
  19985. {
  19986. "icon_id": "24879606",
  19987. "name": "micoff",
  19988. "font_class": "micoff",
  19989. "unicode": "e67e",
  19990. "unicode_decimal": 59006 },
  19991. {
  19992. "icon_id": "24879588",
  19993. "name": "closeempty",
  19994. "font_class": "closeempty",
  19995. "unicode": "e66c",
  19996. "unicode_decimal": 58988 },
  19997. {
  19998. "icon_id": "24879589",
  19999. "name": "clear",
  20000. "font_class": "clear",
  20001. "unicode": "e66d",
  20002. "unicode_decimal": 58989 },
  20003. {
  20004. "icon_id": "24879590",
  20005. "name": "navigate",
  20006. "font_class": "navigate",
  20007. "unicode": "e66e",
  20008. "unicode_decimal": 58990 },
  20009. {
  20010. "icon_id": "24879591",
  20011. "name": "minus",
  20012. "font_class": "minus",
  20013. "unicode": "e66f",
  20014. "unicode_decimal": 58991 },
  20015. {
  20016. "icon_id": "24879592",
  20017. "name": "image",
  20018. "font_class": "image",
  20019. "unicode": "e670",
  20020. "unicode_decimal": 58992 },
  20021. {
  20022. "icon_id": "24879593",
  20023. "name": "mic",
  20024. "font_class": "mic",
  20025. "unicode": "e671",
  20026. "unicode_decimal": 58993 },
  20027. {
  20028. "icon_id": "24879594",
  20029. "name": "paperplane",
  20030. "font_class": "paperplane",
  20031. "unicode": "e672",
  20032. "unicode_decimal": 58994 },
  20033. {
  20034. "icon_id": "24879595",
  20035. "name": "close",
  20036. "font_class": "close",
  20037. "unicode": "e673",
  20038. "unicode_decimal": 58995 },
  20039. {
  20040. "icon_id": "24879596",
  20041. "name": "help-filled",
  20042. "font_class": "help-filled",
  20043. "unicode": "e674",
  20044. "unicode_decimal": 58996 },
  20045. {
  20046. "icon_id": "24879597",
  20047. "name": "plus-filled",
  20048. "font_class": "paperplane-filled",
  20049. "unicode": "e675",
  20050. "unicode_decimal": 58997 },
  20051. {
  20052. "icon_id": "24879598",
  20053. "name": "plus",
  20054. "font_class": "plus",
  20055. "unicode": "e676",
  20056. "unicode_decimal": 58998 },
  20057. {
  20058. "icon_id": "24879599",
  20059. "name": "mic-filled",
  20060. "font_class": "mic-filled",
  20061. "unicode": "e677",
  20062. "unicode_decimal": 58999 },
  20063. {
  20064. "icon_id": "24879600",
  20065. "name": "image-filled",
  20066. "font_class": "image-filled",
  20067. "unicode": "e678",
  20068. "unicode_decimal": 59000 },
  20069. {
  20070. "icon_id": "24855900",
  20071. "name": "locked-filled",
  20072. "font_class": "locked-filled",
  20073. "unicode": "e668",
  20074. "unicode_decimal": 58984 },
  20075. {
  20076. "icon_id": "24855901",
  20077. "name": "info",
  20078. "font_class": "info",
  20079. "unicode": "e669",
  20080. "unicode_decimal": 58985 },
  20081. {
  20082. "icon_id": "24855903",
  20083. "name": "locked",
  20084. "font_class": "locked",
  20085. "unicode": "e66b",
  20086. "unicode_decimal": 58987 },
  20087. {
  20088. "icon_id": "24855884",
  20089. "name": "camera-filled",
  20090. "font_class": "camera-filled",
  20091. "unicode": "e658",
  20092. "unicode_decimal": 58968 },
  20093. {
  20094. "icon_id": "24855885",
  20095. "name": "chat-filled",
  20096. "font_class": "chat-filled",
  20097. "unicode": "e659",
  20098. "unicode_decimal": 58969 },
  20099. {
  20100. "icon_id": "24855886",
  20101. "name": "camera",
  20102. "font_class": "camera",
  20103. "unicode": "e65a",
  20104. "unicode_decimal": 58970 },
  20105. {
  20106. "icon_id": "24855887",
  20107. "name": "circle",
  20108. "font_class": "circle",
  20109. "unicode": "e65b",
  20110. "unicode_decimal": 58971 },
  20111. {
  20112. "icon_id": "24855888",
  20113. "name": "checkmarkempty",
  20114. "font_class": "checkmarkempty",
  20115. "unicode": "e65c",
  20116. "unicode_decimal": 58972 },
  20117. {
  20118. "icon_id": "24855889",
  20119. "name": "chat",
  20120. "font_class": "chat",
  20121. "unicode": "e65d",
  20122. "unicode_decimal": 58973 },
  20123. {
  20124. "icon_id": "24855890",
  20125. "name": "circle-filled",
  20126. "font_class": "circle-filled",
  20127. "unicode": "e65e",
  20128. "unicode_decimal": 58974 },
  20129. {
  20130. "icon_id": "24855891",
  20131. "name": "flag",
  20132. "font_class": "flag",
  20133. "unicode": "e65f",
  20134. "unicode_decimal": 58975 },
  20135. {
  20136. "icon_id": "24855892",
  20137. "name": "flag-filled",
  20138. "font_class": "flag-filled",
  20139. "unicode": "e660",
  20140. "unicode_decimal": 58976 },
  20141. {
  20142. "icon_id": "24855893",
  20143. "name": "gear-filled",
  20144. "font_class": "gear-filled",
  20145. "unicode": "e661",
  20146. "unicode_decimal": 58977 },
  20147. {
  20148. "icon_id": "24855894",
  20149. "name": "home",
  20150. "font_class": "home",
  20151. "unicode": "e662",
  20152. "unicode_decimal": 58978 },
  20153. {
  20154. "icon_id": "24855895",
  20155. "name": "home-filled",
  20156. "font_class": "home-filled",
  20157. "unicode": "e663",
  20158. "unicode_decimal": 58979 },
  20159. {
  20160. "icon_id": "24855896",
  20161. "name": "gear",
  20162. "font_class": "gear",
  20163. "unicode": "e664",
  20164. "unicode_decimal": 58980 },
  20165. {
  20166. "icon_id": "24855897",
  20167. "name": "smallcircle-filled",
  20168. "font_class": "smallcircle-filled",
  20169. "unicode": "e665",
  20170. "unicode_decimal": 58981 },
  20171. {
  20172. "icon_id": "24855898",
  20173. "name": "map-filled",
  20174. "font_class": "map-filled",
  20175. "unicode": "e666",
  20176. "unicode_decimal": 58982 },
  20177. {
  20178. "icon_id": "24855899",
  20179. "name": "map",
  20180. "font_class": "map",
  20181. "unicode": "e667",
  20182. "unicode_decimal": 58983 },
  20183. {
  20184. "icon_id": "24855825",
  20185. "name": "refresh-filled",
  20186. "font_class": "refresh-filled",
  20187. "unicode": "e656",
  20188. "unicode_decimal": 58966 },
  20189. {
  20190. "icon_id": "24855826",
  20191. "name": "refresh",
  20192. "font_class": "refresh",
  20193. "unicode": "e657",
  20194. "unicode_decimal": 58967 },
  20195. {
  20196. "icon_id": "24855808",
  20197. "name": "cloud-upload",
  20198. "font_class": "cloud-upload",
  20199. "unicode": "e645",
  20200. "unicode_decimal": 58949 },
  20201. {
  20202. "icon_id": "24855809",
  20203. "name": "cloud-download-filled",
  20204. "font_class": "cloud-download-filled",
  20205. "unicode": "e646",
  20206. "unicode_decimal": 58950 },
  20207. {
  20208. "icon_id": "24855810",
  20209. "name": "cloud-download",
  20210. "font_class": "cloud-download",
  20211. "unicode": "e647",
  20212. "unicode_decimal": 58951 },
  20213. {
  20214. "icon_id": "24855811",
  20215. "name": "cloud-upload-filled",
  20216. "font_class": "cloud-upload-filled",
  20217. "unicode": "e648",
  20218. "unicode_decimal": 58952 },
  20219. {
  20220. "icon_id": "24855813",
  20221. "name": "redo",
  20222. "font_class": "redo",
  20223. "unicode": "e64a",
  20224. "unicode_decimal": 58954 },
  20225. {
  20226. "icon_id": "24855814",
  20227. "name": "images-filled",
  20228. "font_class": "images-filled",
  20229. "unicode": "e64b",
  20230. "unicode_decimal": 58955 },
  20231. {
  20232. "icon_id": "24855815",
  20233. "name": "undo-filled",
  20234. "font_class": "undo-filled",
  20235. "unicode": "e64c",
  20236. "unicode_decimal": 58956 },
  20237. {
  20238. "icon_id": "24855816",
  20239. "name": "more",
  20240. "font_class": "more",
  20241. "unicode": "e64d",
  20242. "unicode_decimal": 58957 },
  20243. {
  20244. "icon_id": "24855817",
  20245. "name": "more-filled",
  20246. "font_class": "more-filled",
  20247. "unicode": "e64e",
  20248. "unicode_decimal": 58958 },
  20249. {
  20250. "icon_id": "24855818",
  20251. "name": "undo",
  20252. "font_class": "undo",
  20253. "unicode": "e64f",
  20254. "unicode_decimal": 58959 },
  20255. {
  20256. "icon_id": "24855819",
  20257. "name": "images",
  20258. "font_class": "images",
  20259. "unicode": "e650",
  20260. "unicode_decimal": 58960 },
  20261. {
  20262. "icon_id": "24855821",
  20263. "name": "paperclip",
  20264. "font_class": "paperclip",
  20265. "unicode": "e652",
  20266. "unicode_decimal": 58962 },
  20267. {
  20268. "icon_id": "24855822",
  20269. "name": "settings",
  20270. "font_class": "settings",
  20271. "unicode": "e653",
  20272. "unicode_decimal": 58963 },
  20273. {
  20274. "icon_id": "24855823",
  20275. "name": "search",
  20276. "font_class": "search",
  20277. "unicode": "e654",
  20278. "unicode_decimal": 58964 },
  20279. {
  20280. "icon_id": "24855824",
  20281. "name": "redo-filled",
  20282. "font_class": "redo-filled",
  20283. "unicode": "e655",
  20284. "unicode_decimal": 58965 },
  20285. {
  20286. "icon_id": "24841702",
  20287. "name": "list",
  20288. "font_class": "list",
  20289. "unicode": "e644",
  20290. "unicode_decimal": 58948 },
  20291. {
  20292. "icon_id": "24841489",
  20293. "name": "mail-open-filled",
  20294. "font_class": "mail-open-filled",
  20295. "unicode": "e63a",
  20296. "unicode_decimal": 58938 },
  20297. {
  20298. "icon_id": "24841491",
  20299. "name": "hand-thumbsdown-filled",
  20300. "font_class": "hand-down-filled",
  20301. "unicode": "e63c",
  20302. "unicode_decimal": 58940 },
  20303. {
  20304. "icon_id": "24841492",
  20305. "name": "hand-thumbsdown",
  20306. "font_class": "hand-down",
  20307. "unicode": "e63d",
  20308. "unicode_decimal": 58941 },
  20309. {
  20310. "icon_id": "24841493",
  20311. "name": "hand-thumbsup-filled",
  20312. "font_class": "hand-up-filled",
  20313. "unicode": "e63e",
  20314. "unicode_decimal": 58942 },
  20315. {
  20316. "icon_id": "24841494",
  20317. "name": "hand-thumbsup",
  20318. "font_class": "hand-up",
  20319. "unicode": "e63f",
  20320. "unicode_decimal": 58943 },
  20321. {
  20322. "icon_id": "24841496",
  20323. "name": "heart-filled",
  20324. "font_class": "heart-filled",
  20325. "unicode": "e641",
  20326. "unicode_decimal": 58945 },
  20327. {
  20328. "icon_id": "24841498",
  20329. "name": "mail-open",
  20330. "font_class": "mail-open",
  20331. "unicode": "e643",
  20332. "unicode_decimal": 58947 },
  20333. {
  20334. "icon_id": "24841488",
  20335. "name": "heart",
  20336. "font_class": "heart",
  20337. "unicode": "e639",
  20338. "unicode_decimal": 58937 },
  20339. {
  20340. "icon_id": "24839963",
  20341. "name": "loop",
  20342. "font_class": "loop",
  20343. "unicode": "e633",
  20344. "unicode_decimal": 58931 },
  20345. {
  20346. "icon_id": "24839866",
  20347. "name": "pulldown",
  20348. "font_class": "pulldown",
  20349. "unicode": "e632",
  20350. "unicode_decimal": 58930 },
  20351. {
  20352. "icon_id": "24813798",
  20353. "name": "scan",
  20354. "font_class": "scan",
  20355. "unicode": "e62a",
  20356. "unicode_decimal": 58922 },
  20357. {
  20358. "icon_id": "24813786",
  20359. "name": "bars",
  20360. "font_class": "bars",
  20361. "unicode": "e627",
  20362. "unicode_decimal": 58919 },
  20363. {
  20364. "icon_id": "24813788",
  20365. "name": "cart-filled",
  20366. "font_class": "cart-filled",
  20367. "unicode": "e629",
  20368. "unicode_decimal": 58921 },
  20369. {
  20370. "icon_id": "24813790",
  20371. "name": "checkbox",
  20372. "font_class": "checkbox",
  20373. "unicode": "e62b",
  20374. "unicode_decimal": 58923 },
  20375. {
  20376. "icon_id": "24813791",
  20377. "name": "checkbox-filled",
  20378. "font_class": "checkbox-filled",
  20379. "unicode": "e62c",
  20380. "unicode_decimal": 58924 },
  20381. {
  20382. "icon_id": "24813794",
  20383. "name": "shop",
  20384. "font_class": "shop",
  20385. "unicode": "e62f",
  20386. "unicode_decimal": 58927 },
  20387. {
  20388. "icon_id": "24813795",
  20389. "name": "headphones",
  20390. "font_class": "headphones",
  20391. "unicode": "e630",
  20392. "unicode_decimal": 58928 },
  20393. {
  20394. "icon_id": "24813796",
  20395. "name": "cart",
  20396. "font_class": "cart",
  20397. "unicode": "e631",
  20398. "unicode_decimal": 58929 }] };exports.default = _default;
  20399. /***/ }),
  20400. /* 472 */,
  20401. /* 473 */,
  20402. /* 474 */,
  20403. /* 475 */,
  20404. /* 476 */,
  20405. /* 477 */,
  20406. /* 478 */,
  20407. /* 479 */
  20408. /*!***************************************************************************************!*\
  20409. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/components/u-picker/props.js ***!
  20410. \***************************************************************************************/
  20411. /*! no static exports found */
  20412. /***/ (function(module, exports, __webpack_require__) {
  20413. "use strict";
  20414. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  20415. props: {
  20416. // 是否展示picker弹窗
  20417. show: {
  20418. type: Boolean,
  20419. default: uni.$u.props.picker.show },
  20420. // 是否展示顶部的操作栏
  20421. showToolbar: {
  20422. type: Boolean,
  20423. default: uni.$u.props.picker.showToolbar },
  20424. // 顶部标题
  20425. title: {
  20426. type: String,
  20427. default: uni.$u.props.picker.title },
  20428. // 对象数组,设置每一列的数据
  20429. columns: {
  20430. type: Array,
  20431. default: uni.$u.props.picker.columns },
  20432. // 是否显示加载中状态
  20433. loading: {
  20434. type: Boolean,
  20435. default: uni.$u.props.picker.loading },
  20436. // 各列中,单个选项的高度
  20437. itemHeight: {
  20438. type: [String, Number],
  20439. default: uni.$u.props.picker.itemHeight },
  20440. // 取消按钮的文字
  20441. cancelText: {
  20442. type: String,
  20443. default: uni.$u.props.picker.cancelText },
  20444. // 确认按钮的文字
  20445. confirmText: {
  20446. type: String,
  20447. default: uni.$u.props.picker.confirmText },
  20448. // 取消按钮的颜色
  20449. cancelColor: {
  20450. type: String,
  20451. default: uni.$u.props.picker.cancelColor },
  20452. // 确认按钮的颜色
  20453. confirmColor: {
  20454. type: String,
  20455. default: uni.$u.props.picker.confirmColor },
  20456. // 选择器只有一列时,默认选中项的索引,从0开始
  20457. singleIndex: {
  20458. type: [String, Number],
  20459. default: uni.$u.props.picker.singleIndex },
  20460. // 每列中可见选项的数量
  20461. visibleItemCount: {
  20462. type: [String, Number],
  20463. default: uni.$u.props.picker.visibleItemCount },
  20464. // 选项对象中,需要展示的属性键名
  20465. keyName: {
  20466. type: String,
  20467. default: uni.$u.props.picker.keyName },
  20468. // 是否允许点击遮罩关闭选择器
  20469. closeOnClickOverlay: {
  20470. type: Boolean,
  20471. default: uni.$u.props.picker.closeOnClickOverlay },
  20472. // 各列的默认索引
  20473. defaultIndex: {
  20474. type: Array,
  20475. default: uni.$u.props.picker.defaultIndex },
  20476. // 是否在手指松开时立即触发 change 事件。若不开启则会在滚动动画结束后触发 change 事件,只在微信2.21.1及以上有效
  20477. immediateChange: {
  20478. type: Boolean,
  20479. default: uni.$u.props.picker.immediateChange } } };exports.default = _default;
  20480. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  20481. /***/ }),
  20482. /* 480 */,
  20483. /* 481 */,
  20484. /* 482 */,
  20485. /* 483 */,
  20486. /* 484 */,
  20487. /* 485 */,
  20488. /* 486 */,
  20489. /* 487 */
  20490. /*!***************************************************************************************!*\
  20491. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/libs/util/async-validator.js ***!
  20492. \***************************************************************************************/
  20493. /*! no static exports found */
  20494. /***/ (function(module, exports, __webpack_require__) {
  20495. "use strict";
  20496. /* 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() {
  20497. _extends = Object.assign || function (target) {
  20498. for (var i = 1; i < arguments.length; i++) {
  20499. var source = arguments[i];
  20500. for (var key in source) {
  20501. if (Object.prototype.hasOwnProperty.call(source, key)) {
  20502. target[key] = source[key];
  20503. }
  20504. }
  20505. }
  20506. return target;
  20507. };
  20508. return _extends.apply(this, arguments);
  20509. }
  20510. /* eslint no-console:0 */
  20511. var formatRegExp = /%[sdj%]/g;
  20512. var warning = function warning() {}; // don't print warning message when in production env or node runtime
  20513. if (typeof process !== 'undefined' && Object({"VUE_APP_NAME":"alhj-wx","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}) && "development" !== 'production' && typeof window !==
  20514. 'undefined' && typeof document !== 'undefined') {
  20515. warning = function warning(type, errors) {
  20516. if (typeof console !== 'undefined' && console.warn) {
  20517. if (errors.every(function (e) {return typeof e === 'string';})) {
  20518. console.warn(type, errors);
  20519. }
  20520. }
  20521. };
  20522. }
  20523. function convertFieldsError(errors) {
  20524. if (!errors || !errors.length) return null;
  20525. var fields = {};
  20526. errors.forEach(function (error) {var
  20527. field = error.field;
  20528. fields[field] = fields[field] || [];
  20529. fields[field].push(error);
  20530. });
  20531. return fields;
  20532. }
  20533. function format() {
  20534. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  20535. args[_key] = arguments[_key];
  20536. }
  20537. var i = 1;
  20538. var f = args[0];
  20539. var len = args.length;
  20540. if (typeof f === 'function') {
  20541. return f.apply(null, args.slice(1));
  20542. }
  20543. if (typeof f === 'string') {
  20544. var str = String(f).replace(formatRegExp, function (x) {
  20545. if (x === '%%') {
  20546. return '%';
  20547. }
  20548. if (i >= len) {
  20549. return x;
  20550. }
  20551. switch (x) {
  20552. case '%s':
  20553. return String(args[i++]);
  20554. case '%d':
  20555. return Number(args[i++]);
  20556. case '%j':
  20557. try {
  20558. return JSON.stringify(args[i++]);
  20559. } catch (_) {
  20560. return '[Circular]';
  20561. }
  20562. break;
  20563. default:
  20564. return x;}
  20565. });
  20566. for (var arg = args[i]; i < len; arg = args[++i]) {
  20567. str += " ".concat(arg);
  20568. }
  20569. return str;
  20570. }
  20571. return f;
  20572. }
  20573. function isNativeStringType(type) {
  20574. return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern';
  20575. }
  20576. function isEmptyValue(value, type) {
  20577. if (value === undefined || value === null) {
  20578. return true;
  20579. }
  20580. if (type === 'array' && Array.isArray(value) && !value.length) {
  20581. return true;
  20582. }
  20583. if (isNativeStringType(type) && typeof value === 'string' && !value) {
  20584. return true;
  20585. }
  20586. return false;
  20587. }
  20588. function asyncParallelArray(arr, func, callback) {
  20589. var results = [];
  20590. var total = 0;
  20591. var arrLength = arr.length;
  20592. function count(errors) {
  20593. results.push.apply(results, errors);
  20594. total++;
  20595. if (total === arrLength) {
  20596. callback(results);
  20597. }
  20598. }
  20599. arr.forEach(function (a) {
  20600. func(a, count);
  20601. });
  20602. }
  20603. function asyncSerialArray(arr, func, callback) {
  20604. var index = 0;
  20605. var arrLength = arr.length;
  20606. function next(errors) {
  20607. if (errors && errors.length) {
  20608. callback(errors);
  20609. return;
  20610. }
  20611. var original = index;
  20612. index += 1;
  20613. if (original < arrLength) {
  20614. func(arr[original], next);
  20615. } else {
  20616. callback([]);
  20617. }
  20618. }
  20619. next([]);
  20620. }
  20621. function flattenObjArr(objArr) {
  20622. var ret = [];
  20623. Object.keys(objArr).forEach(function (k) {
  20624. ret.push.apply(ret, objArr[k]);
  20625. });
  20626. return ret;
  20627. }
  20628. function asyncMap(objArr, option, func, callback) {
  20629. if (option.first) {
  20630. var _pending = new Promise(function (resolve, reject) {
  20631. var next = function next(errors) {
  20632. callback(errors);
  20633. return errors.length ? reject({
  20634. errors: errors,
  20635. fields: convertFieldsError(errors) }) :
  20636. resolve();
  20637. };
  20638. var flattenArr = flattenObjArr(objArr);
  20639. asyncSerialArray(flattenArr, func, next);
  20640. });
  20641. _pending.catch(function (e) {return e;});
  20642. return _pending;
  20643. }
  20644. var firstFields = option.firstFields || [];
  20645. if (firstFields === true) {
  20646. firstFields = Object.keys(objArr);
  20647. }
  20648. var objArrKeys = Object.keys(objArr);
  20649. var objArrLength = objArrKeys.length;
  20650. var total = 0;
  20651. var results = [];
  20652. var pending = new Promise(function (resolve, reject) {
  20653. var next = function next(errors) {
  20654. results.push.apply(results, errors);
  20655. total++;
  20656. if (total === objArrLength) {
  20657. callback(results);
  20658. return results.length ? reject({
  20659. errors: results,
  20660. fields: convertFieldsError(results) }) :
  20661. resolve();
  20662. }
  20663. };
  20664. if (!objArrKeys.length) {
  20665. callback(results);
  20666. resolve();
  20667. }
  20668. objArrKeys.forEach(function (key) {
  20669. var arr = objArr[key];
  20670. if (firstFields.indexOf(key) !== -1) {
  20671. asyncSerialArray(arr, func, next);
  20672. } else {
  20673. asyncParallelArray(arr, func, next);
  20674. }
  20675. });
  20676. });
  20677. pending.catch(function (e) {return e;});
  20678. return pending;
  20679. }
  20680. function complementError(rule) {
  20681. return function (oe) {
  20682. if (oe && oe.message) {
  20683. oe.field = oe.field || rule.fullField;
  20684. return oe;
  20685. }
  20686. return {
  20687. message: typeof oe === 'function' ? oe() : oe,
  20688. field: oe.field || rule.fullField };
  20689. };
  20690. }
  20691. function deepMerge(target, source) {
  20692. if (source) {
  20693. for (var s in source) {
  20694. if (source.hasOwnProperty(s)) {
  20695. var value = source[s];
  20696. if (typeof value === 'object' && typeof target[s] === 'object') {
  20697. target[s] = _objectSpread(_objectSpread({}, target[s]), value);
  20698. } else {
  20699. target[s] = value;
  20700. }
  20701. }
  20702. }
  20703. }
  20704. return target;
  20705. }
  20706. /**
  20707. * Rule for validating required fields.
  20708. *
  20709. * @param rule The validation rule.
  20710. * @param value The value of the field on the source object.
  20711. * @param source The source object being validated.
  20712. * @param errors An array of errors that this rule may add
  20713. * validation errors to.
  20714. * @param options The validation options.
  20715. * @param options.messages The validation messages.
  20716. */
  20717. function required(rule, value, source, errors, options, type) {
  20718. if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) {
  20719. errors.push(format(options.messages.required, rule.fullField));
  20720. }
  20721. }
  20722. /**
  20723. * Rule for validating whitespace.
  20724. *
  20725. * @param rule The validation rule.
  20726. * @param value The value of the field on the source object.
  20727. * @param source The source object being validated.
  20728. * @param errors An array of errors that this rule may add
  20729. * validation errors to.
  20730. * @param options The validation options.
  20731. * @param options.messages The validation messages.
  20732. */
  20733. function whitespace(rule, value, source, errors, options) {
  20734. if (/^\s+$/.test(value) || value === '') {
  20735. errors.push(format(options.messages.whitespace, rule.fullField));
  20736. }
  20737. }
  20738. /* eslint max-len:0 */
  20739. var pattern = {
  20740. // http://emailregex.com/
  20741. 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,}))$/,
  20742. url: new RegExp(
  20743. "^(?!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]*)?$",
  20744. 'i'),
  20745. hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i };
  20746. var types = {
  20747. integer: function integer(value) {
  20748. return /^(-)?\d+$/.test(value);
  20749. },
  20750. float: function float(value) {
  20751. return /^(-)?\d+(\.\d+)?$/.test(value);
  20752. },
  20753. array: function array(value) {
  20754. return Array.isArray(value);
  20755. },
  20756. regexp: function regexp(value) {
  20757. if (value instanceof RegExp) {
  20758. return true;
  20759. }
  20760. try {
  20761. return !!new RegExp(value);
  20762. } catch (e) {
  20763. return false;
  20764. }
  20765. },
  20766. date: function date(value) {
  20767. return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear ===
  20768. 'function';
  20769. },
  20770. number: function number(value) {
  20771. if (isNaN(value)) {
  20772. return false;
  20773. }
  20774. // 修改源码,将字符串数值先转为数值
  20775. return typeof +value === 'number';
  20776. },
  20777. object: function object(value) {
  20778. return typeof value === 'object' && !types.array(value);
  20779. },
  20780. method: function method(value) {
  20781. return typeof value === 'function';
  20782. },
  20783. email: function email(value) {
  20784. return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
  20785. },
  20786. url: function url(value) {
  20787. return typeof value === 'string' && !!value.match(pattern.url);
  20788. },
  20789. hex: function hex(value) {
  20790. return typeof value === 'string' && !!value.match(pattern.hex);
  20791. } };
  20792. /**
  20793. * Rule for validating the type of a value.
  20794. *
  20795. * @param rule The validation rule.
  20796. * @param value The value of the field on the source object.
  20797. * @param source The source object being validated.
  20798. * @param errors An array of errors that this rule may add
  20799. * validation errors to.
  20800. * @param options The validation options.
  20801. * @param options.messages The validation messages.
  20802. */
  20803. function type(rule, value, source, errors, options) {
  20804. if (rule.required && value === undefined) {
  20805. required(rule, value, source, errors, options);
  20806. return;
  20807. }
  20808. var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];
  20809. var ruleType = rule.type;
  20810. if (custom.indexOf(ruleType) > -1) {
  20811. if (!types[ruleType](value)) {
  20812. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  20813. } // straight typeof check
  20814. } else if (ruleType && typeof value !== rule.type) {
  20815. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  20816. }
  20817. }
  20818. /**
  20819. * Rule for validating minimum and maximum allowed values.
  20820. *
  20821. * @param rule The validation rule.
  20822. * @param value The value of the field on the source object.
  20823. * @param source The source object being validated.
  20824. * @param errors An array of errors that this rule may add
  20825. * validation errors to.
  20826. * @param options The validation options.
  20827. * @param options.messages The validation messages.
  20828. */
  20829. function range(rule, value, source, errors, options) {
  20830. var len = typeof rule.len === 'number';
  20831. var min = typeof rule.min === 'number';
  20832. var max = typeof rule.max === 'number'; // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane)
  20833. var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
  20834. var val = value;
  20835. var key = null;
  20836. var num = typeof value === 'number';
  20837. var str = typeof value === 'string';
  20838. var arr = Array.isArray(value);
  20839. if (num) {
  20840. key = 'number';
  20841. } else if (str) {
  20842. key = 'string';
  20843. } else if (arr) {
  20844. key = 'array';
  20845. } // if the value is not of a supported type for range validation
  20846. // the validation rule rule should use the
  20847. // type property to also test for a particular type
  20848. if (!key) {
  20849. return false;
  20850. }
  20851. if (arr) {
  20852. val = value.length;
  20853. }
  20854. if (str) {
  20855. // 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3
  20856. val = value.replace(spRegexp, '_').length;
  20857. }
  20858. if (len) {
  20859. if (val !== rule.len) {
  20860. errors.push(format(options.messages[key].len, rule.fullField, rule.len));
  20861. }
  20862. } else if (min && !max && val < rule.min) {
  20863. errors.push(format(options.messages[key].min, rule.fullField, rule.min));
  20864. } else if (max && !min && val > rule.max) {
  20865. errors.push(format(options.messages[key].max, rule.fullField, rule.max));
  20866. } else if (min && max && (val < rule.min || val > rule.max)) {
  20867. errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));
  20868. }
  20869. }
  20870. var ENUM = 'enum';
  20871. /**
  20872. * Rule for validating a value exists in an enumerable list.
  20873. *
  20874. * @param rule The validation rule.
  20875. * @param value The value of the field on the source object.
  20876. * @param source The source object being validated.
  20877. * @param errors An array of errors that this rule may add
  20878. * validation errors to.
  20879. * @param options The validation options.
  20880. * @param options.messages The validation messages.
  20881. */
  20882. function enumerable(rule, value, source, errors, options) {
  20883. rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : [];
  20884. if (rule[ENUM].indexOf(value) === -1) {
  20885. errors.push(format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', ')));
  20886. }
  20887. }
  20888. /**
  20889. * Rule for validating a regular expression pattern.
  20890. *
  20891. * @param rule The validation rule.
  20892. * @param value The value of the field on the source object.
  20893. * @param source The source object being validated.
  20894. * @param errors An array of errors that this rule may add
  20895. * validation errors to.
  20896. * @param options The validation options.
  20897. * @param options.messages The validation messages.
  20898. */
  20899. function pattern$1(rule, value, source, errors, options) {
  20900. if (rule.pattern) {
  20901. if (rule.pattern instanceof RegExp) {
  20902. // if a RegExp instance is passed, reset `lastIndex` in case its `global`
  20903. // flag is accidentally set to `true`, which in a validation scenario
  20904. // is not necessary and the result might be misleading
  20905. rule.pattern.lastIndex = 0;
  20906. if (!rule.pattern.test(value)) {
  20907. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  20908. }
  20909. } else if (typeof rule.pattern === 'string') {
  20910. var _pattern = new RegExp(rule.pattern);
  20911. if (!_pattern.test(value)) {
  20912. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  20913. }
  20914. }
  20915. }
  20916. }
  20917. var rules = {
  20918. required: required,
  20919. whitespace: whitespace,
  20920. type: type,
  20921. range: range,
  20922. enum: enumerable,
  20923. pattern: pattern$1 };
  20924. /**
  20925. * Performs validation for string types.
  20926. *
  20927. * @param rule The validation rule.
  20928. * @param value The value of the field on the source object.
  20929. * @param callback The callback function.
  20930. * @param source The source object being validated.
  20931. * @param options The validation options.
  20932. * @param options.messages The validation messages.
  20933. */
  20934. function string(rule, value, callback, source, options) {
  20935. var errors = [];
  20936. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20937. if (validate) {
  20938. if (isEmptyValue(value, 'string') && !rule.required) {
  20939. return callback();
  20940. }
  20941. rules.required(rule, value, source, errors, options, 'string');
  20942. if (!isEmptyValue(value, 'string')) {
  20943. rules.type(rule, value, source, errors, options);
  20944. rules.range(rule, value, source, errors, options);
  20945. rules.pattern(rule, value, source, errors, options);
  20946. if (rule.whitespace === true) {
  20947. rules.whitespace(rule, value, source, errors, options);
  20948. }
  20949. }
  20950. }
  20951. callback(errors);
  20952. }
  20953. /**
  20954. * Validates a function.
  20955. *
  20956. * @param rule The validation rule.
  20957. * @param value The value of the field on the source object.
  20958. * @param callback The callback function.
  20959. * @param source The source object being validated.
  20960. * @param options The validation options.
  20961. * @param options.messages The validation messages.
  20962. */
  20963. function method(rule, value, callback, source, options) {
  20964. var errors = [];
  20965. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20966. if (validate) {
  20967. if (isEmptyValue(value) && !rule.required) {
  20968. return callback();
  20969. }
  20970. rules.required(rule, value, source, errors, options);
  20971. if (value !== undefined) {
  20972. rules.type(rule, value, source, errors, options);
  20973. }
  20974. }
  20975. callback(errors);
  20976. }
  20977. /**
  20978. * Validates a number.
  20979. *
  20980. * @param rule The validation rule.
  20981. * @param value The value of the field on the source object.
  20982. * @param callback The callback function.
  20983. * @param source The source object being validated.
  20984. * @param options The validation options.
  20985. * @param options.messages The validation messages.
  20986. */
  20987. function number(rule, value, callback, source, options) {
  20988. var errors = [];
  20989. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20990. if (validate) {
  20991. if (value === '') {
  20992. value = undefined;
  20993. }
  20994. if (isEmptyValue(value) && !rule.required) {
  20995. return callback();
  20996. }
  20997. rules.required(rule, value, source, errors, options);
  20998. if (value !== undefined) {
  20999. rules.type(rule, value, source, errors, options);
  21000. rules.range(rule, value, source, errors, options);
  21001. }
  21002. }
  21003. callback(errors);
  21004. }
  21005. /**
  21006. * Validates a boolean.
  21007. *
  21008. * @param rule The validation rule.
  21009. * @param value The value of the field on the source object.
  21010. * @param callback The callback function.
  21011. * @param source The source object being validated.
  21012. * @param options The validation options.
  21013. * @param options.messages The validation messages.
  21014. */
  21015. function _boolean(rule, value, callback, source, options) {
  21016. var errors = [];
  21017. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21018. if (validate) {
  21019. if (isEmptyValue(value) && !rule.required) {
  21020. return callback();
  21021. }
  21022. rules.required(rule, value, source, errors, options);
  21023. if (value !== undefined) {
  21024. rules.type(rule, value, source, errors, options);
  21025. }
  21026. }
  21027. callback(errors);
  21028. }
  21029. /**
  21030. * Validates the regular expression type.
  21031. *
  21032. * @param rule The validation rule.
  21033. * @param value The value of the field on the source object.
  21034. * @param callback The callback function.
  21035. * @param source The source object being validated.
  21036. * @param options The validation options.
  21037. * @param options.messages The validation messages.
  21038. */
  21039. function regexp(rule, value, callback, source, options) {
  21040. var errors = [];
  21041. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21042. if (validate) {
  21043. if (isEmptyValue(value) && !rule.required) {
  21044. return callback();
  21045. }
  21046. rules.required(rule, value, source, errors, options);
  21047. if (!isEmptyValue(value)) {
  21048. rules.type(rule, value, source, errors, options);
  21049. }
  21050. }
  21051. callback(errors);
  21052. }
  21053. /**
  21054. * Validates a number is an integer.
  21055. *
  21056. * @param rule The validation rule.
  21057. * @param value The value of the field on the source object.
  21058. * @param callback The callback function.
  21059. * @param source The source object being validated.
  21060. * @param options The validation options.
  21061. * @param options.messages The validation messages.
  21062. */
  21063. function integer(rule, value, callback, source, options) {
  21064. var errors = [];
  21065. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21066. if (validate) {
  21067. if (isEmptyValue(value) && !rule.required) {
  21068. return callback();
  21069. }
  21070. rules.required(rule, value, source, errors, options);
  21071. if (value !== undefined) {
  21072. rules.type(rule, value, source, errors, options);
  21073. rules.range(rule, value, source, errors, options);
  21074. }
  21075. }
  21076. callback(errors);
  21077. }
  21078. /**
  21079. * Validates a number is a floating point number.
  21080. *
  21081. * @param rule The validation rule.
  21082. * @param value The value of the field on the source object.
  21083. * @param callback The callback function.
  21084. * @param source The source object being validated.
  21085. * @param options The validation options.
  21086. * @param options.messages The validation messages.
  21087. */
  21088. function floatFn(rule, value, callback, source, options) {
  21089. var errors = [];
  21090. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21091. if (validate) {
  21092. if (isEmptyValue(value) && !rule.required) {
  21093. return callback();
  21094. }
  21095. rules.required(rule, value, source, errors, options);
  21096. if (value !== undefined) {
  21097. rules.type(rule, value, source, errors, options);
  21098. rules.range(rule, value, source, errors, options);
  21099. }
  21100. }
  21101. callback(errors);
  21102. }
  21103. /**
  21104. * Validates an array.
  21105. *
  21106. * @param rule The validation rule.
  21107. * @param value The value of the field on the source object.
  21108. * @param callback The callback function.
  21109. * @param source The source object being validated.
  21110. * @param options The validation options.
  21111. * @param options.messages The validation messages.
  21112. */
  21113. function array(rule, value, callback, source, options) {
  21114. var errors = [];
  21115. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21116. if (validate) {
  21117. if (isEmptyValue(value, 'array') && !rule.required) {
  21118. return callback();
  21119. }
  21120. rules.required(rule, value, source, errors, options, 'array');
  21121. if (!isEmptyValue(value, 'array')) {
  21122. rules.type(rule, value, source, errors, options);
  21123. rules.range(rule, value, source, errors, options);
  21124. }
  21125. }
  21126. callback(errors);
  21127. }
  21128. /**
  21129. * Validates an object.
  21130. *
  21131. * @param rule The validation rule.
  21132. * @param value The value of the field on the source object.
  21133. * @param callback The callback function.
  21134. * @param source The source object being validated.
  21135. * @param options The validation options.
  21136. * @param options.messages The validation messages.
  21137. */
  21138. function object(rule, value, callback, source, options) {
  21139. var errors = [];
  21140. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21141. if (validate) {
  21142. if (isEmptyValue(value) && !rule.required) {
  21143. return callback();
  21144. }
  21145. rules.required(rule, value, source, errors, options);
  21146. if (value !== undefined) {
  21147. rules.type(rule, value, source, errors, options);
  21148. }
  21149. }
  21150. callback(errors);
  21151. }
  21152. var ENUM$1 = 'enum';
  21153. /**
  21154. * Validates an enumerable list.
  21155. *
  21156. * @param rule The validation rule.
  21157. * @param value The value of the field on the source object.
  21158. * @param callback The callback function.
  21159. * @param source The source object being validated.
  21160. * @param options The validation options.
  21161. * @param options.messages The validation messages.
  21162. */
  21163. function enumerable$1(rule, value, callback, source, options) {
  21164. var errors = [];
  21165. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21166. if (validate) {
  21167. if (isEmptyValue(value) && !rule.required) {
  21168. return callback();
  21169. }
  21170. rules.required(rule, value, source, errors, options);
  21171. if (value !== undefined) {
  21172. rules[ENUM$1](rule, value, source, errors, options);
  21173. }
  21174. }
  21175. callback(errors);
  21176. }
  21177. /**
  21178. * Validates a regular expression pattern.
  21179. *
  21180. * Performs validation when a rule only contains
  21181. * a pattern property but is not declared as a string type.
  21182. *
  21183. * @param rule The validation rule.
  21184. * @param value The value of the field on the source object.
  21185. * @param callback The callback function.
  21186. * @param source The source object being validated.
  21187. * @param options The validation options.
  21188. * @param options.messages The validation messages.
  21189. */
  21190. function pattern$2(rule, value, callback, source, options) {
  21191. var errors = [];
  21192. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21193. if (validate) {
  21194. if (isEmptyValue(value, 'string') && !rule.required) {
  21195. return callback();
  21196. }
  21197. rules.required(rule, value, source, errors, options);
  21198. if (!isEmptyValue(value, 'string')) {
  21199. rules.pattern(rule, value, source, errors, options);
  21200. }
  21201. }
  21202. callback(errors);
  21203. }
  21204. function date(rule, value, callback, source, options) {
  21205. var errors = [];
  21206. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21207. if (validate) {
  21208. if (isEmptyValue(value) && !rule.required) {
  21209. return callback();
  21210. }
  21211. rules.required(rule, value, source, errors, options);
  21212. if (!isEmptyValue(value)) {
  21213. var dateObject;
  21214. if (typeof value === 'number') {
  21215. dateObject = new Date(value);
  21216. } else {
  21217. dateObject = value;
  21218. }
  21219. rules.type(rule, dateObject, source, errors, options);
  21220. if (dateObject) {
  21221. rules.range(rule, dateObject.getTime(), source, errors, options);
  21222. }
  21223. }
  21224. }
  21225. callback(errors);
  21226. }
  21227. function required$1(rule, value, callback, source, options) {
  21228. var errors = [];
  21229. var type = Array.isArray(value) ? 'array' : typeof value;
  21230. rules.required(rule, value, source, errors, options, type);
  21231. callback(errors);
  21232. }
  21233. function type$1(rule, value, callback, source, options) {
  21234. var ruleType = rule.type;
  21235. var errors = [];
  21236. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21237. if (validate) {
  21238. if (isEmptyValue(value, ruleType) && !rule.required) {
  21239. return callback();
  21240. }
  21241. rules.required(rule, value, source, errors, options, ruleType);
  21242. if (!isEmptyValue(value, ruleType)) {
  21243. rules.type(rule, value, source, errors, options);
  21244. }
  21245. }
  21246. callback(errors);
  21247. }
  21248. /**
  21249. * Performs validation for any type.
  21250. *
  21251. * @param rule The validation rule.
  21252. * @param value The value of the field on the source object.
  21253. * @param callback The callback function.
  21254. * @param source The source object being validated.
  21255. * @param options The validation options.
  21256. * @param options.messages The validation messages.
  21257. */
  21258. function any(rule, value, callback, source, options) {
  21259. var errors = [];
  21260. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21261. if (validate) {
  21262. if (isEmptyValue(value) && !rule.required) {
  21263. return callback();
  21264. }
  21265. rules.required(rule, value, source, errors, options);
  21266. }
  21267. callback(errors);
  21268. }
  21269. var validators = {
  21270. string: string,
  21271. method: method,
  21272. number: number,
  21273. boolean: _boolean,
  21274. regexp: regexp,
  21275. integer: integer,
  21276. float: floatFn,
  21277. array: array,
  21278. object: object,
  21279. enum: enumerable$1,
  21280. pattern: pattern$2,
  21281. date: date,
  21282. url: type$1,
  21283. hex: type$1,
  21284. email: type$1,
  21285. required: required$1,
  21286. any: any };
  21287. function newMessages() {
  21288. return {
  21289. default: 'Validation error on field %s',
  21290. required: '%s is required',
  21291. enum: '%s must be one of %s',
  21292. whitespace: '%s cannot be empty',
  21293. date: {
  21294. format: '%s date %s is invalid for format %s',
  21295. parse: '%s date could not be parsed, %s is invalid ',
  21296. invalid: '%s date %s is invalid' },
  21297. types: {
  21298. string: '%s is not a %s',
  21299. method: '%s is not a %s (function)',
  21300. array: '%s is not an %s',
  21301. object: '%s is not an %s',
  21302. number: '%s is not a %s',
  21303. date: '%s is not a %s',
  21304. boolean: '%s is not a %s',
  21305. integer: '%s is not an %s',
  21306. float: '%s is not a %s',
  21307. regexp: '%s is not a valid %s',
  21308. email: '%s is not a valid %s',
  21309. url: '%s is not a valid %s',
  21310. hex: '%s is not a valid %s' },
  21311. string: {
  21312. len: '%s must be exactly %s characters',
  21313. min: '%s must be at least %s characters',
  21314. max: '%s cannot be longer than %s characters',
  21315. range: '%s must be between %s and %s characters' },
  21316. number: {
  21317. len: '%s must equal %s',
  21318. min: '%s cannot be less than %s',
  21319. max: '%s cannot be greater than %s',
  21320. range: '%s must be between %s and %s' },
  21321. array: {
  21322. len: '%s must be exactly %s in length',
  21323. min: '%s cannot be less than %s in length',
  21324. max: '%s cannot be greater than %s in length',
  21325. range: '%s must be between %s and %s in length' },
  21326. pattern: {
  21327. mismatch: '%s value %s does not match pattern %s' },
  21328. clone: function clone() {
  21329. var cloned = JSON.parse(JSON.stringify(this));
  21330. cloned.clone = this.clone;
  21331. return cloned;
  21332. } };
  21333. }
  21334. var messages = newMessages();
  21335. /**
  21336. * Encapsulates a validation schema.
  21337. *
  21338. * @param descriptor An object declaring validation rules
  21339. * for this schema.
  21340. */
  21341. function Schema(descriptor) {
  21342. this.rules = null;
  21343. this._messages = messages;
  21344. this.define(descriptor);
  21345. }
  21346. Schema.prototype = {
  21347. messages: function messages(_messages) {
  21348. if (_messages) {
  21349. this._messages = deepMerge(newMessages(), _messages);
  21350. }
  21351. return this._messages;
  21352. },
  21353. define: function define(rules) {
  21354. if (!rules) {
  21355. throw new Error('Cannot configure a schema with no rules');
  21356. }
  21357. if (typeof rules !== 'object' || Array.isArray(rules)) {
  21358. throw new Error('Rules must be an object');
  21359. }
  21360. this.rules = {};
  21361. var z;
  21362. var item;
  21363. for (z in rules) {
  21364. if (rules.hasOwnProperty(z)) {
  21365. item = rules[z];
  21366. this.rules[z] = Array.isArray(item) ? item : [item];
  21367. }
  21368. }
  21369. },
  21370. validate: function validate(source_, o, oc) {
  21371. var _this = this;
  21372. if (o === void 0) {
  21373. o = {};
  21374. }
  21375. if (oc === void 0) {
  21376. oc = function oc() {};
  21377. }
  21378. var source = source_;
  21379. var options = o;
  21380. var callback = oc;
  21381. if (typeof options === 'function') {
  21382. callback = options;
  21383. options = {};
  21384. }
  21385. if (!this.rules || Object.keys(this.rules).length === 0) {
  21386. if (callback) {
  21387. callback();
  21388. }
  21389. return Promise.resolve();
  21390. }
  21391. function complete(results) {
  21392. var i;
  21393. var errors = [];
  21394. var fields = {};
  21395. function add(e) {
  21396. if (Array.isArray(e)) {
  21397. var _errors;
  21398. errors = (_errors = errors).concat.apply(_errors, e);
  21399. } else {
  21400. errors.push(e);
  21401. }
  21402. }
  21403. for (i = 0; i < results.length; i++) {
  21404. add(results[i]);
  21405. }
  21406. if (!errors.length) {
  21407. errors = null;
  21408. fields = null;
  21409. } else {
  21410. fields = convertFieldsError(errors);
  21411. }
  21412. callback(errors, fields);
  21413. }
  21414. if (options.messages) {
  21415. var messages$1 = this.messages();
  21416. if (messages$1 === messages) {
  21417. messages$1 = newMessages();
  21418. }
  21419. deepMerge(messages$1, options.messages);
  21420. options.messages = messages$1;
  21421. } else {
  21422. options.messages = this.messages();
  21423. }
  21424. var arr;
  21425. var value;
  21426. var series = {};
  21427. var keys = options.keys || Object.keys(this.rules);
  21428. keys.forEach(function (z) {
  21429. arr = _this.rules[z];
  21430. value = source[z];
  21431. arr.forEach(function (r) {
  21432. var rule = r;
  21433. if (typeof rule.transform === 'function') {
  21434. if (source === source_) {
  21435. source = _objectSpread({}, source);
  21436. }
  21437. value = source[z] = rule.transform(value);
  21438. }
  21439. if (typeof rule === 'function') {
  21440. rule = {
  21441. validator: rule };
  21442. } else {
  21443. rule = _objectSpread({}, rule);
  21444. }
  21445. rule.validator = _this.getValidationMethod(rule);
  21446. rule.field = z;
  21447. rule.fullField = rule.fullField || z;
  21448. rule.type = _this.getType(rule);
  21449. if (!rule.validator) {
  21450. return;
  21451. }
  21452. series[z] = series[z] || [];
  21453. series[z].push({
  21454. rule: rule,
  21455. value: value,
  21456. source: source,
  21457. field: z });
  21458. });
  21459. });
  21460. var errorFields = {};
  21461. return asyncMap(series, options, function (data, doIt) {var
  21462. rule = data.rule;
  21463. var deep = (rule.type === 'object' || rule.type === 'array') && (typeof rule.fields === 'object' || typeof rule.defaultField ===
  21464. 'object');
  21465. deep = deep && (rule.required || !rule.required && data.value);
  21466. rule.field = data.field;
  21467. function addFullfield(key, schema) {
  21468. return _objectSpread(_objectSpread({}, schema), {}, { fullField: "".concat(rule.fullField, ".").concat(key) });
  21469. }
  21470. function cb(e) {
  21471. if (e === void 0) {
  21472. e = [];
  21473. }
  21474. var errors = e;
  21475. if (!Array.isArray(errors)) {
  21476. errors = [errors];
  21477. }
  21478. if (!options.suppressWarning && errors.length) {
  21479. Schema.warning('async-validator:', errors);
  21480. }
  21481. if (errors.length && rule.message) {
  21482. errors = [].concat(rule.message);
  21483. }
  21484. errors = errors.map(complementError(rule));
  21485. if (options.first && errors.length) {
  21486. errorFields[rule.field] = 1;
  21487. return doIt(errors);
  21488. }
  21489. if (!deep) {
  21490. doIt(errors);
  21491. } else {
  21492. // if rule is required but the target object
  21493. // does not exist fail at the rule level and don't
  21494. // go deeper
  21495. if (rule.required && !data.value) {
  21496. if (rule.message) {
  21497. errors = [].concat(rule.message).map(complementError(rule));
  21498. } else if (options.error) {
  21499. errors = [options.error(rule, format(options.messages.required, rule.field))];
  21500. } else {
  21501. errors = [];
  21502. }
  21503. return doIt(errors);
  21504. }
  21505. var fieldsSchema = {};
  21506. if (rule.defaultField) {
  21507. for (var k in data.value) {
  21508. if (data.value.hasOwnProperty(k)) {
  21509. fieldsSchema[k] = rule.defaultField;
  21510. }
  21511. }
  21512. }
  21513. fieldsSchema = _objectSpread(_objectSpread({}, fieldsSchema), data.rule.fields);
  21514. for (var f in fieldsSchema) {
  21515. if (fieldsSchema.hasOwnProperty(f)) {
  21516. var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]];
  21517. fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f));
  21518. }
  21519. }
  21520. var schema = new Schema(fieldsSchema);
  21521. schema.messages(options.messages);
  21522. if (data.rule.options) {
  21523. data.rule.options.messages = options.messages;
  21524. data.rule.options.error = options.error;
  21525. }
  21526. schema.validate(data.value, data.rule.options || options, function (errs) {
  21527. var finalErrors = [];
  21528. if (errors && errors.length) {
  21529. finalErrors.push.apply(finalErrors, errors);
  21530. }
  21531. if (errs && errs.length) {
  21532. finalErrors.push.apply(finalErrors, errs);
  21533. }
  21534. doIt(finalErrors.length ? finalErrors : null);
  21535. });
  21536. }
  21537. }
  21538. var res;
  21539. if (rule.asyncValidator) {
  21540. res = rule.asyncValidator(rule, data.value, cb, data.source, options);
  21541. } else if (rule.validator) {
  21542. res = rule.validator(rule, data.value, cb, data.source, options);
  21543. if (res === true) {
  21544. cb();
  21545. } else if (res === false) {
  21546. cb(rule.message || "".concat(rule.field, " fails"));
  21547. } else if (res instanceof Array) {
  21548. cb(res);
  21549. } else if (res instanceof Error) {
  21550. cb(res.message);
  21551. }
  21552. }
  21553. if (res && res.then) {
  21554. res.then(function () {return cb();}, function (e) {return cb(e);});
  21555. }
  21556. }, function (results) {
  21557. complete(results);
  21558. });
  21559. },
  21560. getType: function getType(rule) {
  21561. if (rule.type === undefined && rule.pattern instanceof RegExp) {
  21562. rule.type = 'pattern';
  21563. }
  21564. if (typeof rule.validator !== 'function' && rule.type && !validators.hasOwnProperty(rule.type)) {
  21565. throw new Error(format('Unknown rule type %s', rule.type));
  21566. }
  21567. return rule.type || 'string';
  21568. },
  21569. getValidationMethod: function getValidationMethod(rule) {
  21570. if (typeof rule.validator === 'function') {
  21571. return rule.validator;
  21572. }
  21573. var keys = Object.keys(rule);
  21574. var messageIndex = keys.indexOf('message');
  21575. if (messageIndex !== -1) {
  21576. keys.splice(messageIndex, 1);
  21577. }
  21578. if (keys.length === 1 && keys[0] === 'required') {
  21579. return validators.required;
  21580. }
  21581. return validators[this.getType(rule)] || false;
  21582. } };
  21583. Schema.register = function register(type, validator) {
  21584. if (typeof validator !== 'function') {
  21585. throw new Error('Cannot register a validator by type, validator is not a function');
  21586. }
  21587. validators[type] = validator;
  21588. };
  21589. Schema.warning = warning;
  21590. Schema.messages = messages;var _default =
  21591. Schema;
  21592. // # sourceMappingURL=index.js.map
  21593. exports.default = _default;
  21594. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../../hbuilderx/HBuilderX.3.5.0.20220623-alpha/HBuilderX/plugins/uniapp-cli/node_modules/node-libs-browser/mock/process.js */ 488)))
  21595. /***/ }),
  21596. /* 488 */
  21597. /*!********************************************************!*\
  21598. !*** ./node_modules/node-libs-browser/mock/process.js ***!
  21599. \********************************************************/
  21600. /*! no static exports found */
  21601. /***/ (function(module, exports, __webpack_require__) {
  21602. exports.nextTick = function nextTick(fn) {
  21603. var args = Array.prototype.slice.call(arguments);
  21604. args.shift();
  21605. setTimeout(function () {
  21606. fn.apply(null, args);
  21607. }, 0);
  21608. };
  21609. exports.platform = exports.arch =
  21610. exports.execPath = exports.title = 'browser';
  21611. exports.pid = 1;
  21612. exports.browser = true;
  21613. exports.env = {};
  21614. exports.argv = [];
  21615. exports.binding = function (name) {
  21616. throw new Error('No such module. (Possibly not yet loaded)')
  21617. };
  21618. (function () {
  21619. var cwd = '/';
  21620. var path;
  21621. exports.cwd = function () { return cwd };
  21622. exports.chdir = function (dir) {
  21623. if (!path) path = __webpack_require__(/*! path */ 489);
  21624. cwd = path.resolve(dir, cwd);
  21625. };
  21626. })();
  21627. exports.exit = exports.kill =
  21628. exports.umask = exports.dlopen =
  21629. exports.uptime = exports.memoryUsage =
  21630. exports.uvCounters = function() {};
  21631. exports.features = {};
  21632. /***/ }),
  21633. /* 489 */
  21634. /*!***********************************************!*\
  21635. !*** ./node_modules/path-browserify/index.js ***!
  21636. \***********************************************/
  21637. /*! no static exports found */
  21638. /***/ (function(module, exports, __webpack_require__) {
  21639. /* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
  21640. // backported and transplited with Babel, with backwards-compat fixes
  21641. // Copyright Joyent, Inc. and other Node contributors.
  21642. //
  21643. // Permission is hereby granted, free of charge, to any person obtaining a
  21644. // copy of this software and associated documentation files (the
  21645. // "Software"), to deal in the Software without restriction, including
  21646. // without limitation the rights to use, copy, modify, merge, publish,
  21647. // distribute, sublicense, and/or sell copies of the Software, and to permit
  21648. // persons to whom the Software is furnished to do so, subject to the
  21649. // following conditions:
  21650. //
  21651. // The above copyright notice and this permission notice shall be included
  21652. // in all copies or substantial portions of the Software.
  21653. //
  21654. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  21655. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  21656. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  21657. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  21658. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  21659. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  21660. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  21661. // resolves . and .. elements in a path array with directory names there
  21662. // must be no slashes, empty elements, or device names (c:\) in the array
  21663. // (so also no leading and trailing slashes - it does not distinguish
  21664. // relative and absolute paths)
  21665. function normalizeArray(parts, allowAboveRoot) {
  21666. // if the path tries to go above the root, `up` ends up > 0
  21667. var up = 0;
  21668. for (var i = parts.length - 1; i >= 0; i--) {
  21669. var last = parts[i];
  21670. if (last === '.') {
  21671. parts.splice(i, 1);
  21672. } else if (last === '..') {
  21673. parts.splice(i, 1);
  21674. up++;
  21675. } else if (up) {
  21676. parts.splice(i, 1);
  21677. up--;
  21678. }
  21679. }
  21680. // if the path is allowed to go above the root, restore leading ..s
  21681. if (allowAboveRoot) {
  21682. for (; up--; up) {
  21683. parts.unshift('..');
  21684. }
  21685. }
  21686. return parts;
  21687. }
  21688. // path.resolve([from ...], to)
  21689. // posix version
  21690. exports.resolve = function() {
  21691. var resolvedPath = '',
  21692. resolvedAbsolute = false;
  21693. for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
  21694. var path = (i >= 0) ? arguments[i] : process.cwd();
  21695. // Skip empty and invalid entries
  21696. if (typeof path !== 'string') {
  21697. throw new TypeError('Arguments to path.resolve must be strings');
  21698. } else if (!path) {
  21699. continue;
  21700. }
  21701. resolvedPath = path + '/' + resolvedPath;
  21702. resolvedAbsolute = path.charAt(0) === '/';
  21703. }
  21704. // At this point the path should be resolved to a full absolute path, but
  21705. // handle relative paths to be safe (might happen when process.cwd() fails)
  21706. // Normalize the path
  21707. resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
  21708. return !!p;
  21709. }), !resolvedAbsolute).join('/');
  21710. return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
  21711. };
  21712. // path.normalize(path)
  21713. // posix version
  21714. exports.normalize = function(path) {
  21715. var isAbsolute = exports.isAbsolute(path),
  21716. trailingSlash = substr(path, -1) === '/';
  21717. // Normalize the path
  21718. path = normalizeArray(filter(path.split('/'), function(p) {
  21719. return !!p;
  21720. }), !isAbsolute).join('/');
  21721. if (!path && !isAbsolute) {
  21722. path = '.';
  21723. }
  21724. if (path && trailingSlash) {
  21725. path += '/';
  21726. }
  21727. return (isAbsolute ? '/' : '') + path;
  21728. };
  21729. // posix version
  21730. exports.isAbsolute = function(path) {
  21731. return path.charAt(0) === '/';
  21732. };
  21733. // posix version
  21734. exports.join = function() {
  21735. var paths = Array.prototype.slice.call(arguments, 0);
  21736. return exports.normalize(filter(paths, function(p, index) {
  21737. if (typeof p !== 'string') {
  21738. throw new TypeError('Arguments to path.join must be strings');
  21739. }
  21740. return p;
  21741. }).join('/'));
  21742. };
  21743. // path.relative(from, to)
  21744. // posix version
  21745. exports.relative = function(from, to) {
  21746. from = exports.resolve(from).substr(1);
  21747. to = exports.resolve(to).substr(1);
  21748. function trim(arr) {
  21749. var start = 0;
  21750. for (; start < arr.length; start++) {
  21751. if (arr[start] !== '') break;
  21752. }
  21753. var end = arr.length - 1;
  21754. for (; end >= 0; end--) {
  21755. if (arr[end] !== '') break;
  21756. }
  21757. if (start > end) return [];
  21758. return arr.slice(start, end - start + 1);
  21759. }
  21760. var fromParts = trim(from.split('/'));
  21761. var toParts = trim(to.split('/'));
  21762. var length = Math.min(fromParts.length, toParts.length);
  21763. var samePartsLength = length;
  21764. for (var i = 0; i < length; i++) {
  21765. if (fromParts[i] !== toParts[i]) {
  21766. samePartsLength = i;
  21767. break;
  21768. }
  21769. }
  21770. var outputParts = [];
  21771. for (var i = samePartsLength; i < fromParts.length; i++) {
  21772. outputParts.push('..');
  21773. }
  21774. outputParts = outputParts.concat(toParts.slice(samePartsLength));
  21775. return outputParts.join('/');
  21776. };
  21777. exports.sep = '/';
  21778. exports.delimiter = ':';
  21779. exports.dirname = function (path) {
  21780. if (typeof path !== 'string') path = path + '';
  21781. if (path.length === 0) return '.';
  21782. var code = path.charCodeAt(0);
  21783. var hasRoot = code === 47 /*/*/;
  21784. var end = -1;
  21785. var matchedSlash = true;
  21786. for (var i = path.length - 1; i >= 1; --i) {
  21787. code = path.charCodeAt(i);
  21788. if (code === 47 /*/*/) {
  21789. if (!matchedSlash) {
  21790. end = i;
  21791. break;
  21792. }
  21793. } else {
  21794. // We saw the first non-path separator
  21795. matchedSlash = false;
  21796. }
  21797. }
  21798. if (end === -1) return hasRoot ? '/' : '.';
  21799. if (hasRoot && end === 1) {
  21800. // return '//';
  21801. // Backwards-compat fix:
  21802. return '/';
  21803. }
  21804. return path.slice(0, end);
  21805. };
  21806. function basename(path) {
  21807. if (typeof path !== 'string') path = path + '';
  21808. var start = 0;
  21809. var end = -1;
  21810. var matchedSlash = true;
  21811. var i;
  21812. for (i = path.length - 1; i >= 0; --i) {
  21813. if (path.charCodeAt(i) === 47 /*/*/) {
  21814. // If we reached a path separator that was not part of a set of path
  21815. // separators at the end of the string, stop now
  21816. if (!matchedSlash) {
  21817. start = i + 1;
  21818. break;
  21819. }
  21820. } else if (end === -1) {
  21821. // We saw the first non-path separator, mark this as the end of our
  21822. // path component
  21823. matchedSlash = false;
  21824. end = i + 1;
  21825. }
  21826. }
  21827. if (end === -1) return '';
  21828. return path.slice(start, end);
  21829. }
  21830. // Uses a mixed approach for backwards-compatibility, as ext behavior changed
  21831. // in new Node.js versions, so only basename() above is backported here
  21832. exports.basename = function (path, ext) {
  21833. var f = basename(path);
  21834. if (ext && f.substr(-1 * ext.length) === ext) {
  21835. f = f.substr(0, f.length - ext.length);
  21836. }
  21837. return f;
  21838. };
  21839. exports.extname = function (path) {
  21840. if (typeof path !== 'string') path = path + '';
  21841. var startDot = -1;
  21842. var startPart = 0;
  21843. var end = -1;
  21844. var matchedSlash = true;
  21845. // Track the state of characters (if any) we see before our first dot and
  21846. // after any path separator we find
  21847. var preDotState = 0;
  21848. for (var i = path.length - 1; i >= 0; --i) {
  21849. var code = path.charCodeAt(i);
  21850. if (code === 47 /*/*/) {
  21851. // If we reached a path separator that was not part of a set of path
  21852. // separators at the end of the string, stop now
  21853. if (!matchedSlash) {
  21854. startPart = i + 1;
  21855. break;
  21856. }
  21857. continue;
  21858. }
  21859. if (end === -1) {
  21860. // We saw the first non-path separator, mark this as the end of our
  21861. // extension
  21862. matchedSlash = false;
  21863. end = i + 1;
  21864. }
  21865. if (code === 46 /*.*/) {
  21866. // If this is our first dot, mark it as the start of our extension
  21867. if (startDot === -1)
  21868. startDot = i;
  21869. else if (preDotState !== 1)
  21870. preDotState = 1;
  21871. } else if (startDot !== -1) {
  21872. // We saw a non-dot and non-path separator before our dot, so we should
  21873. // have a good chance at having a non-empty extension
  21874. preDotState = -1;
  21875. }
  21876. }
  21877. if (startDot === -1 || end === -1 ||
  21878. // We saw a non-dot character immediately before the dot
  21879. preDotState === 0 ||
  21880. // The (right-most) trimmed path component is exactly '..'
  21881. preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
  21882. return '';
  21883. }
  21884. return path.slice(startDot, end);
  21885. };
  21886. function filter (xs, f) {
  21887. if (xs.filter) return xs.filter(f);
  21888. var res = [];
  21889. for (var i = 0; i < xs.length; i++) {
  21890. if (f(xs[i], i, xs)) res.push(xs[i]);
  21891. }
  21892. return res;
  21893. }
  21894. // String.prototype.substr - negative index don't work in IE8
  21895. var substr = 'ab'.substr(-1) === 'b'
  21896. ? function (str, start, len) { return str.substr(start, len) }
  21897. : function (str, start, len) {
  21898. if (start < 0) start = str.length + start;
  21899. return str.substr(start, len);
  21900. }
  21901. ;
  21902. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ 488)))
  21903. /***/ }),
  21904. /* 490 */,
  21905. /* 491 */,
  21906. /* 492 */,
  21907. /* 493 */,
  21908. /* 494 */,
  21909. /* 495 */
  21910. /*!*************************************************************************************!*\
  21911. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/components/u-line/props.js ***!
  21912. \*************************************************************************************/
  21913. /*! no static exports found */
  21914. /***/ (function(module, exports, __webpack_require__) {
  21915. "use strict";
  21916. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  21917. props: {
  21918. color: {
  21919. type: String,
  21920. default: uni.$u.props.line.color },
  21921. // 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等
  21922. length: {
  21923. type: [String, Number],
  21924. default: uni.$u.props.line.length },
  21925. // 线条方向,col-竖向,row-横向
  21926. direction: {
  21927. type: String,
  21928. default: uni.$u.props.line.direction },
  21929. // 是否显示细边框
  21930. hairline: {
  21931. type: Boolean,
  21932. default: uni.$u.props.line.hairline },
  21933. // 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
  21934. margin: {
  21935. type: [String, Number],
  21936. default: uni.$u.props.line.margin },
  21937. // 是否虚线,true-实线,false-虚线
  21938. dashed: {
  21939. type: Boolean,
  21940. default: uni.$u.props.line.dashed } } };exports.default = _default;
  21941. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  21942. /***/ }),
  21943. /* 496 */,
  21944. /* 497 */,
  21945. /* 498 */,
  21946. /* 499 */,
  21947. /* 500 */,
  21948. /* 501 */,
  21949. /* 502 */,
  21950. /* 503 */,
  21951. /* 504 */,
  21952. /* 505 */,
  21953. /* 506 */,
  21954. /* 507 */,
  21955. /* 508 */,
  21956. /* 509 */,
  21957. /* 510 */
  21958. /*!*********************************************************************************************!*\
  21959. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/components/u-loading-icon/props.js ***!
  21960. \*********************************************************************************************/
  21961. /*! no static exports found */
  21962. /***/ (function(module, exports, __webpack_require__) {
  21963. "use strict";
  21964. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  21965. props: {
  21966. // 是否显示组件
  21967. show: {
  21968. type: Boolean,
  21969. default: uni.$u.props.loadingIcon.show },
  21970. // 颜色
  21971. color: {
  21972. type: String,
  21973. default: uni.$u.props.loadingIcon.color },
  21974. // 提示文字颜色
  21975. textColor: {
  21976. type: String,
  21977. default: uni.$u.props.loadingIcon.textColor },
  21978. // 文字和图标是否垂直排列
  21979. vertical: {
  21980. type: Boolean,
  21981. default: uni.$u.props.loadingIcon.vertical },
  21982. // 模式选择,circle-圆形,spinner-花朵形,semicircle-半圆形
  21983. mode: {
  21984. type: String,
  21985. default: uni.$u.props.loadingIcon.mode },
  21986. // 图标大小,单位默认px
  21987. size: {
  21988. type: [String, Number],
  21989. default: uni.$u.props.loadingIcon.size },
  21990. // 文字大小
  21991. textSize: {
  21992. type: [String, Number],
  21993. default: uni.$u.props.loadingIcon.textSize },
  21994. // 文字内容
  21995. text: {
  21996. type: [String, Number],
  21997. default: uni.$u.props.loadingIcon.text },
  21998. // 动画模式
  21999. timingFunction: {
  22000. type: String,
  22001. default: uni.$u.props.loadingIcon.timingFunction },
  22002. // 动画执行周期时间
  22003. duration: {
  22004. type: [String, Number],
  22005. default: uni.$u.props.loadingIcon.duration },
  22006. // mode=circle时的暗边颜色
  22007. inactiveColor: {
  22008. type: String,
  22009. default: uni.$u.props.loadingIcon.inactiveColor } } };exports.default = _default;
  22010. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  22011. /***/ }),
  22012. /* 511 */,
  22013. /* 512 */,
  22014. /* 513 */,
  22015. /* 514 */,
  22016. /* 515 */,
  22017. /* 516 */,
  22018. /* 517 */,
  22019. /* 518 */
  22020. /*!****************************************************************************************!*\
  22021. !*** C:/shop-program/alhj/alhj-wx/node_modules/uview-ui/components/u-toolbar/props.js ***!
  22022. \****************************************************************************************/
  22023. /*! no static exports found */
  22024. /***/ (function(module, exports, __webpack_require__) {
  22025. "use strict";
  22026. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  22027. props: {
  22028. // 是否展示工具条
  22029. show: {
  22030. type: Boolean,
  22031. default: uni.$u.props.toolbar.show },
  22032. // 取消按钮的文字
  22033. cancelText: {
  22034. type: String,
  22035. default: uni.$u.props.toolbar.cancelText },
  22036. // 确认按钮的文字
  22037. confirmText: {
  22038. type: String,
  22039. default: uni.$u.props.toolbar.confirmText },
  22040. // 取消按钮的颜色
  22041. cancelColor: {
  22042. type: String,
  22043. default: uni.$u.props.toolbar.cancelColor },
  22044. // 确认按钮的颜色
  22045. confirmColor: {
  22046. type: String,
  22047. default: uni.$u.props.toolbar.confirmColor },
  22048. // 标题文字
  22049. title: {
  22050. type: String,
  22051. default: uni.$u.props.toolbar.title } } };exports.default = _default;
  22052. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  22053. /***/ })
  22054. ]]);
  22055. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map