vendor.js 711 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],[
  2. /* 0 */,
  3. /* 1 */
  4. /*!*********************************************************!*\
  5. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js ***!
  6. \*********************************************************/
  7. /*! no static exports found */
  8. /***/ (function(module, exports, __webpack_require__) {
  9. "use strict";
  10. Object.defineProperty(exports, "__esModule", {
  11. value: true
  12. });
  13. exports.default = void 0;
  14. var objectKeys = ['qy', 'env', 'error', 'version', 'lanDebug', 'cloud', 'serviceMarket', 'router', 'worklet', '__webpack_require_UNI_MP_PLUGIN__'];
  15. var singlePageDisableKey = ['lanDebug', 'router', 'worklet'];
  16. var target = typeof globalThis !== 'undefined' ? globalThis : function () {
  17. return this;
  18. }();
  19. var key = ['w', 'x'].join('');
  20. var oldWx = target[key];
  21. var launchOption = oldWx.getLaunchOptionsSync ? oldWx.getLaunchOptionsSync() : null;
  22. function isWxKey(key) {
  23. if (launchOption && launchOption.scene === 1154 && singlePageDisableKey.includes(key)) {
  24. return false;
  25. }
  26. return objectKeys.indexOf(key) > -1 || typeof oldWx[key] === 'function';
  27. }
  28. function initWx() {
  29. var newWx = {};
  30. for (var _key in oldWx) {
  31. if (isWxKey(_key)) {
  32. // TODO wrapper function
  33. newWx[_key] = oldWx[_key];
  34. }
  35. }
  36. return newWx;
  37. }
  38. target[key] = initWx();
  39. var _default = target[key];
  40. exports.default = _default;
  41. /***/ }),
  42. /* 2 */
  43. /*!************************************************************!*\
  44. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  45. \************************************************************/
  46. /*! no static exports found */
  47. /***/ (function(module, exports, __webpack_require__) {
  48. "use strict";
  49. /* WEBPACK VAR INJECTION */(function(wx, global) {
  50. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  51. Object.defineProperty(exports, "__esModule", {
  52. value: true
  53. });
  54. exports.createApp = createApp;
  55. exports.createComponent = createComponent;
  56. exports.createPage = createPage;
  57. exports.createPlugin = createPlugin;
  58. exports.createSubpackageApp = createSubpackageApp;
  59. exports.default = void 0;
  60. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  61. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  62. var _construct2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/construct */ 15));
  63. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  64. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  65. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 22);
  66. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  67. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  68. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  69. var realAtob;
  70. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  71. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  72. if (typeof atob !== 'function') {
  73. realAtob = function realAtob(str) {
  74. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  75. if (!b64re.test(str)) {
  76. throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  77. }
  78. // Adding the padding if missing, for semplicity
  79. str += '=='.slice(2 - (str.length & 3));
  80. var bitmap;
  81. var result = '';
  82. var r1;
  83. var r2;
  84. var i = 0;
  85. for (; i < str.length;) {
  86. bitmap = b64.indexOf(str.charAt(i++)) << 18 | b64.indexOf(str.charAt(i++)) << 12 | (r1 = b64.indexOf(str.charAt(i++))) << 6 | (r2 = b64.indexOf(str.charAt(i++)));
  87. result += r1 === 64 ? String.fromCharCode(bitmap >> 16 & 255) : r2 === 64 ? String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255) : String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255, bitmap & 255);
  88. }
  89. return result;
  90. };
  91. } else {
  92. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  93. realAtob = atob;
  94. }
  95. function b64DecodeUnicode(str) {
  96. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  97. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  98. }).join(''));
  99. }
  100. function getCurrentUserInfo() {
  101. var token = wx.getStorageSync('uni_id_token') || '';
  102. var tokenArr = token.split('.');
  103. if (!token || tokenArr.length !== 3) {
  104. return {
  105. uid: null,
  106. role: [],
  107. permission: [],
  108. tokenExpired: 0
  109. };
  110. }
  111. var userInfo;
  112. try {
  113. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  114. } catch (error) {
  115. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  116. }
  117. userInfo.tokenExpired = userInfo.exp * 1000;
  118. delete userInfo.exp;
  119. delete userInfo.iat;
  120. return userInfo;
  121. }
  122. function uniIdMixin(Vue) {
  123. Vue.prototype.uniIDHasRole = function (roleId) {
  124. var _getCurrentUserInfo = getCurrentUserInfo(),
  125. role = _getCurrentUserInfo.role;
  126. return role.indexOf(roleId) > -1;
  127. };
  128. Vue.prototype.uniIDHasPermission = function (permissionId) {
  129. var _getCurrentUserInfo2 = getCurrentUserInfo(),
  130. permission = _getCurrentUserInfo2.permission;
  131. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  132. };
  133. Vue.prototype.uniIDTokenValid = function () {
  134. var _getCurrentUserInfo3 = getCurrentUserInfo(),
  135. tokenExpired = _getCurrentUserInfo3.tokenExpired;
  136. return tokenExpired > Date.now();
  137. };
  138. }
  139. var _toString = Object.prototype.toString;
  140. var hasOwnProperty = Object.prototype.hasOwnProperty;
  141. function isFn(fn) {
  142. return typeof fn === 'function';
  143. }
  144. function isStr(str) {
  145. return typeof str === 'string';
  146. }
  147. function isObject(obj) {
  148. return obj !== null && (0, _typeof2.default)(obj) === 'object';
  149. }
  150. function isPlainObject(obj) {
  151. return _toString.call(obj) === '[object Object]';
  152. }
  153. function hasOwn(obj, key) {
  154. return hasOwnProperty.call(obj, key);
  155. }
  156. function noop() {}
  157. /**
  158. * Create a cached version of a pure function.
  159. */
  160. function cached(fn) {
  161. var cache = Object.create(null);
  162. return function cachedFn(str) {
  163. var hit = cache[str];
  164. return hit || (cache[str] = fn(str));
  165. };
  166. }
  167. /**
  168. * Camelize a hyphen-delimited string.
  169. */
  170. var camelizeRE = /-(\w)/g;
  171. var camelize = cached(function (str) {
  172. return str.replace(camelizeRE, function (_, c) {
  173. return c ? c.toUpperCase() : '';
  174. });
  175. });
  176. function sortObject(obj) {
  177. var sortObj = {};
  178. if (isPlainObject(obj)) {
  179. Object.keys(obj).sort().forEach(function (key) {
  180. sortObj[key] = obj[key];
  181. });
  182. }
  183. return !Object.keys(sortObj) ? obj : sortObj;
  184. }
  185. var HOOKS = ['invoke', 'success', 'fail', 'complete', 'returnValue'];
  186. var globalInterceptors = {};
  187. var scopedInterceptors = {};
  188. function mergeHook(parentVal, childVal) {
  189. var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal;
  190. return res ? dedupeHooks(res) : res;
  191. }
  192. function dedupeHooks(hooks) {
  193. var res = [];
  194. for (var i = 0; i < hooks.length; i++) {
  195. if (res.indexOf(hooks[i]) === -1) {
  196. res.push(hooks[i]);
  197. }
  198. }
  199. return res;
  200. }
  201. function removeHook(hooks, hook) {
  202. var index = hooks.indexOf(hook);
  203. if (index !== -1) {
  204. hooks.splice(index, 1);
  205. }
  206. }
  207. function mergeInterceptorHook(interceptor, option) {
  208. Object.keys(option).forEach(function (hook) {
  209. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  210. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  211. }
  212. });
  213. }
  214. function removeInterceptorHook(interceptor, option) {
  215. if (!interceptor || !option) {
  216. return;
  217. }
  218. Object.keys(option).forEach(function (hook) {
  219. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  220. removeHook(interceptor[hook], option[hook]);
  221. }
  222. });
  223. }
  224. function addInterceptor(method, option) {
  225. if (typeof method === 'string' && isPlainObject(option)) {
  226. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  227. } else if (isPlainObject(method)) {
  228. mergeInterceptorHook(globalInterceptors, method);
  229. }
  230. }
  231. function removeInterceptor(method, option) {
  232. if (typeof method === 'string') {
  233. if (isPlainObject(option)) {
  234. removeInterceptorHook(scopedInterceptors[method], option);
  235. } else {
  236. delete scopedInterceptors[method];
  237. }
  238. } else if (isPlainObject(method)) {
  239. removeInterceptorHook(globalInterceptors, method);
  240. }
  241. }
  242. function wrapperHook(hook, params) {
  243. return function (data) {
  244. return hook(data, params) || data;
  245. };
  246. }
  247. function isPromise(obj) {
  248. return !!obj && ((0, _typeof2.default)(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  249. }
  250. function queue(hooks, data, params) {
  251. var promise = false;
  252. for (var i = 0; i < hooks.length; i++) {
  253. var hook = hooks[i];
  254. if (promise) {
  255. promise = Promise.resolve(wrapperHook(hook, params));
  256. } else {
  257. var res = hook(data, params);
  258. if (isPromise(res)) {
  259. promise = Promise.resolve(res);
  260. }
  261. if (res === false) {
  262. return {
  263. then: function then() {}
  264. };
  265. }
  266. }
  267. }
  268. return promise || {
  269. then: function then(callback) {
  270. return callback(data);
  271. }
  272. };
  273. }
  274. function wrapperOptions(interceptor) {
  275. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  276. ['success', 'fail', 'complete'].forEach(function (name) {
  277. if (Array.isArray(interceptor[name])) {
  278. var oldCallback = options[name];
  279. options[name] = function callbackInterceptor(res) {
  280. queue(interceptor[name], res, options).then(function (res) {
  281. /* eslint-disable no-mixed-operators */
  282. return isFn(oldCallback) && oldCallback(res) || res;
  283. });
  284. };
  285. }
  286. });
  287. return options;
  288. }
  289. function wrapperReturnValue(method, returnValue) {
  290. var returnValueHooks = [];
  291. if (Array.isArray(globalInterceptors.returnValue)) {
  292. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(globalInterceptors.returnValue));
  293. }
  294. var interceptor = scopedInterceptors[method];
  295. if (interceptor && Array.isArray(interceptor.returnValue)) {
  296. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(interceptor.returnValue));
  297. }
  298. returnValueHooks.forEach(function (hook) {
  299. returnValue = hook(returnValue) || returnValue;
  300. });
  301. return returnValue;
  302. }
  303. function getApiInterceptorHooks(method) {
  304. var interceptor = Object.create(null);
  305. Object.keys(globalInterceptors).forEach(function (hook) {
  306. if (hook !== 'returnValue') {
  307. interceptor[hook] = globalInterceptors[hook].slice();
  308. }
  309. });
  310. var scopedInterceptor = scopedInterceptors[method];
  311. if (scopedInterceptor) {
  312. Object.keys(scopedInterceptor).forEach(function (hook) {
  313. if (hook !== 'returnValue') {
  314. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  315. }
  316. });
  317. }
  318. return interceptor;
  319. }
  320. function invokeApi(method, api, options) {
  321. for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
  322. params[_key - 3] = arguments[_key];
  323. }
  324. var interceptor = getApiInterceptorHooks(method);
  325. if (interceptor && Object.keys(interceptor).length) {
  326. if (Array.isArray(interceptor.invoke)) {
  327. var res = queue(interceptor.invoke, options);
  328. return res.then(function (options) {
  329. // 重新访问 getApiInterceptorHooks, 允许 invoke 中再次调用 addInterceptor,removeInterceptor
  330. return api.apply(void 0, [wrapperOptions(getApiInterceptorHooks(method), options)].concat(params));
  331. });
  332. } else {
  333. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  334. }
  335. }
  336. return api.apply(void 0, [options].concat(params));
  337. }
  338. var promiseInterceptor = {
  339. returnValue: function returnValue(res) {
  340. if (!isPromise(res)) {
  341. return res;
  342. }
  343. return new Promise(function (resolve, reject) {
  344. res.then(function (res) {
  345. if (res[0]) {
  346. reject(res[0]);
  347. } else {
  348. resolve(res[1]);
  349. }
  350. });
  351. });
  352. }
  353. };
  354. var SYNC_API_RE = /^\$|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|getSystemSetting|getAppAuthorizeSetting|initUTS|requireUTS|registerUTS/;
  355. var CONTEXT_API_RE = /^create|Manager$/;
  356. // Context例外情况
  357. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  358. // 同步例外情况
  359. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  360. var CALLBACK_API_RE = /^on|^off/;
  361. function isContextApi(name) {
  362. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  363. }
  364. function isSyncApi(name) {
  365. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  366. }
  367. function isCallbackApi(name) {
  368. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  369. }
  370. function handlePromise(promise) {
  371. return promise.then(function (data) {
  372. return [null, data];
  373. }).catch(function (err) {
  374. return [err];
  375. });
  376. }
  377. function shouldPromise(name) {
  378. if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) {
  379. return false;
  380. }
  381. return true;
  382. }
  383. /* eslint-disable no-extend-native */
  384. if (!Promise.prototype.finally) {
  385. Promise.prototype.finally = function (callback) {
  386. var promise = this.constructor;
  387. return this.then(function (value) {
  388. return promise.resolve(callback()).then(function () {
  389. return value;
  390. });
  391. }, function (reason) {
  392. return promise.resolve(callback()).then(function () {
  393. throw reason;
  394. });
  395. });
  396. };
  397. }
  398. function promisify(name, api) {
  399. if (!shouldPromise(name) || !isFn(api)) {
  400. return api;
  401. }
  402. return function promiseApi() {
  403. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  404. for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  405. params[_key2 - 1] = arguments[_key2];
  406. }
  407. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  408. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  409. }
  410. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  411. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  412. success: resolve,
  413. fail: reject
  414. })].concat(params));
  415. })));
  416. };
  417. }
  418. var EPS = 1e-4;
  419. var BASE_DEVICE_WIDTH = 750;
  420. var isIOS = false;
  421. var deviceWidth = 0;
  422. var deviceDPR = 0;
  423. function checkDeviceWidth() {
  424. var _wx$getSystemInfoSync = wx.getSystemInfoSync(),
  425. platform = _wx$getSystemInfoSync.platform,
  426. pixelRatio = _wx$getSystemInfoSync.pixelRatio,
  427. windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  428. deviceWidth = windowWidth;
  429. deviceDPR = pixelRatio;
  430. isIOS = platform === 'ios';
  431. }
  432. function upx2px(number, newDeviceWidth) {
  433. if (deviceWidth === 0) {
  434. checkDeviceWidth();
  435. }
  436. number = Number(number);
  437. if (number === 0) {
  438. return 0;
  439. }
  440. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  441. if (result < 0) {
  442. result = -result;
  443. }
  444. result = Math.floor(result + EPS);
  445. if (result === 0) {
  446. if (deviceDPR === 1 || !isIOS) {
  447. result = 1;
  448. } else {
  449. result = 0.5;
  450. }
  451. }
  452. return number < 0 ? -result : result;
  453. }
  454. var LOCALE_ZH_HANS = 'zh-Hans';
  455. var LOCALE_ZH_HANT = 'zh-Hant';
  456. var LOCALE_EN = 'en';
  457. var LOCALE_FR = 'fr';
  458. var LOCALE_ES = 'es';
  459. var messages = {};
  460. var locale;
  461. {
  462. locale = normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  463. }
  464. function initI18nMessages() {
  465. if (!isEnableLocale()) {
  466. return;
  467. }
  468. var localeKeys = Object.keys(__uniConfig.locales);
  469. if (localeKeys.length) {
  470. localeKeys.forEach(function (locale) {
  471. var curMessages = messages[locale];
  472. var userMessages = __uniConfig.locales[locale];
  473. if (curMessages) {
  474. Object.assign(curMessages, userMessages);
  475. } else {
  476. messages[locale] = userMessages;
  477. }
  478. });
  479. }
  480. }
  481. initI18nMessages();
  482. var i18n = (0, _uniI18n.initVueI18n)(locale, {});
  483. var t = i18n.t;
  484. var i18nMixin = i18n.mixin = {
  485. beforeCreate: function beforeCreate() {
  486. var _this = this;
  487. var unwatch = i18n.i18n.watchLocale(function () {
  488. _this.$forceUpdate();
  489. });
  490. this.$once('hook:beforeDestroy', function () {
  491. unwatch();
  492. });
  493. },
  494. methods: {
  495. $$t: function $$t(key, values) {
  496. return t(key, values);
  497. }
  498. }
  499. };
  500. var setLocale = i18n.setLocale;
  501. var getLocale = i18n.getLocale;
  502. function initAppLocale(Vue, appVm, locale) {
  503. var state = Vue.observable({
  504. locale: locale || i18n.getLocale()
  505. });
  506. var localeWatchers = [];
  507. appVm.$watchLocale = function (fn) {
  508. localeWatchers.push(fn);
  509. };
  510. Object.defineProperty(appVm, '$locale', {
  511. get: function get() {
  512. return state.locale;
  513. },
  514. set: function set(v) {
  515. state.locale = v;
  516. localeWatchers.forEach(function (watch) {
  517. return watch(v);
  518. });
  519. }
  520. });
  521. }
  522. function isEnableLocale() {
  523. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  524. }
  525. function include(str, parts) {
  526. return !!parts.find(function (part) {
  527. return str.indexOf(part) !== -1;
  528. });
  529. }
  530. function startsWith(str, parts) {
  531. return parts.find(function (part) {
  532. return str.indexOf(part) === 0;
  533. });
  534. }
  535. function normalizeLocale(locale, messages) {
  536. if (!locale) {
  537. return;
  538. }
  539. locale = locale.trim().replace(/_/g, '-');
  540. if (messages && messages[locale]) {
  541. return locale;
  542. }
  543. locale = locale.toLowerCase();
  544. if (locale === 'chinese') {
  545. // 支付宝
  546. return LOCALE_ZH_HANS;
  547. }
  548. if (locale.indexOf('zh') === 0) {
  549. if (locale.indexOf('-hans') > -1) {
  550. return LOCALE_ZH_HANS;
  551. }
  552. if (locale.indexOf('-hant') > -1) {
  553. return LOCALE_ZH_HANT;
  554. }
  555. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  556. return LOCALE_ZH_HANT;
  557. }
  558. return LOCALE_ZH_HANS;
  559. }
  560. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  561. if (lang) {
  562. return lang;
  563. }
  564. }
  565. // export function initI18n() {
  566. // const localeKeys = Object.keys(__uniConfig.locales || {})
  567. // if (localeKeys.length) {
  568. // localeKeys.forEach((locale) =>
  569. // i18n.add(locale, __uniConfig.locales[locale])
  570. // )
  571. // }
  572. // }
  573. function getLocale$1() {
  574. // 优先使用 $locale
  575. if (isFn(getApp)) {
  576. var app = getApp({
  577. allowDefault: true
  578. });
  579. if (app && app.$vm) {
  580. return app.$vm.$locale;
  581. }
  582. }
  583. return normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  584. }
  585. function setLocale$1(locale) {
  586. var app = isFn(getApp) ? getApp() : false;
  587. if (!app) {
  588. return false;
  589. }
  590. var oldLocale = app.$vm.$locale;
  591. if (oldLocale !== locale) {
  592. app.$vm.$locale = locale;
  593. onLocaleChangeCallbacks.forEach(function (fn) {
  594. return fn({
  595. locale: locale
  596. });
  597. });
  598. return true;
  599. }
  600. return false;
  601. }
  602. var onLocaleChangeCallbacks = [];
  603. function onLocaleChange(fn) {
  604. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  605. onLocaleChangeCallbacks.push(fn);
  606. }
  607. }
  608. if (typeof global !== 'undefined') {
  609. global.getLocale = getLocale$1;
  610. }
  611. var interceptors = {
  612. promiseInterceptor: promiseInterceptor
  613. };
  614. var baseApi = /*#__PURE__*/Object.freeze({
  615. __proto__: null,
  616. upx2px: upx2px,
  617. getLocale: getLocale$1,
  618. setLocale: setLocale$1,
  619. onLocaleChange: onLocaleChange,
  620. addInterceptor: addInterceptor,
  621. removeInterceptor: removeInterceptor,
  622. interceptors: interceptors
  623. });
  624. function findExistsPageIndex(url) {
  625. var pages = getCurrentPages();
  626. var len = pages.length;
  627. while (len--) {
  628. var page = pages[len];
  629. if (page.$page && page.$page.fullPath === url) {
  630. return len;
  631. }
  632. }
  633. return -1;
  634. }
  635. var redirectTo = {
  636. name: function name(fromArgs) {
  637. if (fromArgs.exists === 'back' && fromArgs.delta) {
  638. return 'navigateBack';
  639. }
  640. return 'redirectTo';
  641. },
  642. args: function args(fromArgs) {
  643. if (fromArgs.exists === 'back' && fromArgs.url) {
  644. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  645. if (existsPageIndex !== -1) {
  646. var delta = getCurrentPages().length - 1 - existsPageIndex;
  647. if (delta > 0) {
  648. fromArgs.delta = delta;
  649. }
  650. }
  651. }
  652. }
  653. };
  654. var previewImage = {
  655. args: function args(fromArgs) {
  656. var currentIndex = parseInt(fromArgs.current);
  657. if (isNaN(currentIndex)) {
  658. return;
  659. }
  660. var urls = fromArgs.urls;
  661. if (!Array.isArray(urls)) {
  662. return;
  663. }
  664. var len = urls.length;
  665. if (!len) {
  666. return;
  667. }
  668. if (currentIndex < 0) {
  669. currentIndex = 0;
  670. } else if (currentIndex >= len) {
  671. currentIndex = len - 1;
  672. }
  673. if (currentIndex > 0) {
  674. fromArgs.current = urls[currentIndex];
  675. fromArgs.urls = urls.filter(function (item, index) {
  676. return index < currentIndex ? item !== urls[currentIndex] : true;
  677. });
  678. } else {
  679. fromArgs.current = urls[0];
  680. }
  681. return {
  682. indicator: false,
  683. loop: false
  684. };
  685. }
  686. };
  687. var UUID_KEY = '__DC_STAT_UUID';
  688. var deviceId;
  689. function useDeviceId(result) {
  690. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  691. if (!deviceId) {
  692. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  693. wx.setStorage({
  694. key: UUID_KEY,
  695. data: deviceId
  696. });
  697. }
  698. result.deviceId = deviceId;
  699. }
  700. function addSafeAreaInsets(result) {
  701. if (result.safeArea) {
  702. var safeArea = result.safeArea;
  703. result.safeAreaInsets = {
  704. top: safeArea.top,
  705. left: safeArea.left,
  706. right: result.windowWidth - safeArea.right,
  707. bottom: result.screenHeight - safeArea.bottom
  708. };
  709. }
  710. }
  711. function populateParameters(result) {
  712. var _result$brand = result.brand,
  713. brand = _result$brand === void 0 ? '' : _result$brand,
  714. _result$model = result.model,
  715. model = _result$model === void 0 ? '' : _result$model,
  716. _result$system = result.system,
  717. system = _result$system === void 0 ? '' : _result$system,
  718. _result$language = result.language,
  719. language = _result$language === void 0 ? '' : _result$language,
  720. theme = result.theme,
  721. version = result.version,
  722. platform = result.platform,
  723. fontSizeSetting = result.fontSizeSetting,
  724. SDKVersion = result.SDKVersion,
  725. pixelRatio = result.pixelRatio,
  726. deviceOrientation = result.deviceOrientation;
  727. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  728. var extraParam = {};
  729. // osName osVersion
  730. var osName = '';
  731. var osVersion = '';
  732. {
  733. osName = system.split(' ')[0] || '';
  734. osVersion = system.split(' ')[1] || '';
  735. }
  736. var hostVersion = version;
  737. // deviceType
  738. var deviceType = getGetDeviceType(result, model);
  739. // deviceModel
  740. var deviceBrand = getDeviceBrand(brand);
  741. // hostName
  742. var _hostName = getHostName(result);
  743. // deviceOrientation
  744. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  745. // devicePixelRatio
  746. var _devicePixelRatio = pixelRatio;
  747. // SDKVersion
  748. var _SDKVersion = SDKVersion;
  749. // hostLanguage
  750. var hostLanguage = language.replace(/_/g, '-');
  751. // wx.getAccountInfoSync
  752. var parameters = {
  753. appId: "__UNI__5ADCEDA",
  754. appName: "娇骄儿技师端",
  755. appVersion: "1.0.0",
  756. appVersionCode: "100",
  757. appLanguage: getAppLanguage(hostLanguage),
  758. uniCompileVersion: "3.98",
  759. uniRuntimeVersion: "3.98",
  760. uniPlatform: undefined || "mp-weixin",
  761. deviceBrand: deviceBrand,
  762. deviceModel: model,
  763. deviceType: deviceType,
  764. devicePixelRatio: _devicePixelRatio,
  765. deviceOrientation: _deviceOrientation,
  766. osName: osName.toLocaleLowerCase(),
  767. osVersion: osVersion,
  768. hostTheme: theme,
  769. hostVersion: hostVersion,
  770. hostLanguage: hostLanguage,
  771. hostName: _hostName,
  772. hostSDKVersion: _SDKVersion,
  773. hostFontSizeSetting: fontSizeSetting,
  774. windowTop: 0,
  775. windowBottom: 0,
  776. // TODO
  777. osLanguage: undefined,
  778. osTheme: undefined,
  779. ua: undefined,
  780. hostPackageName: undefined,
  781. browserName: undefined,
  782. browserVersion: undefined
  783. };
  784. Object.assign(result, parameters, extraParam);
  785. }
  786. function getGetDeviceType(result, model) {
  787. var deviceType = result.deviceType || 'phone';
  788. {
  789. var deviceTypeMaps = {
  790. ipad: 'pad',
  791. windows: 'pc',
  792. mac: 'pc'
  793. };
  794. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  795. var _model = model.toLocaleLowerCase();
  796. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  797. var _m = deviceTypeMapsKeys[index];
  798. if (_model.indexOf(_m) !== -1) {
  799. deviceType = deviceTypeMaps[_m];
  800. break;
  801. }
  802. }
  803. }
  804. return deviceType;
  805. }
  806. function getDeviceBrand(brand) {
  807. var deviceBrand = brand;
  808. if (deviceBrand) {
  809. deviceBrand = brand.toLocaleLowerCase();
  810. }
  811. return deviceBrand;
  812. }
  813. function getAppLanguage(defaultLanguage) {
  814. return getLocale$1 ? getLocale$1() : defaultLanguage;
  815. }
  816. function getHostName(result) {
  817. var _platform = 'WeChat';
  818. var _hostName = result.hostName || _platform; // mp-jd
  819. {
  820. if (result.environment) {
  821. _hostName = result.environment;
  822. } else if (result.host && result.host.env) {
  823. _hostName = result.host.env;
  824. }
  825. }
  826. return _hostName;
  827. }
  828. var getSystemInfo = {
  829. returnValue: function returnValue(result) {
  830. useDeviceId(result);
  831. addSafeAreaInsets(result);
  832. populateParameters(result);
  833. }
  834. };
  835. var showActionSheet = {
  836. args: function args(fromArgs) {
  837. if ((0, _typeof2.default)(fromArgs) === 'object') {
  838. fromArgs.alertText = fromArgs.title;
  839. }
  840. }
  841. };
  842. var getAppBaseInfo = {
  843. returnValue: function returnValue(result) {
  844. var _result = result,
  845. version = _result.version,
  846. language = _result.language,
  847. SDKVersion = _result.SDKVersion,
  848. theme = _result.theme;
  849. var _hostName = getHostName(result);
  850. var hostLanguage = language.replace('_', '-');
  851. result = sortObject(Object.assign(result, {
  852. appId: "__UNI__5ADCEDA",
  853. appName: "娇骄儿技师端",
  854. appVersion: "1.0.0",
  855. appVersionCode: "100",
  856. appLanguage: getAppLanguage(hostLanguage),
  857. hostVersion: version,
  858. hostLanguage: hostLanguage,
  859. hostName: _hostName,
  860. hostSDKVersion: SDKVersion,
  861. hostTheme: theme
  862. }));
  863. }
  864. };
  865. var getDeviceInfo = {
  866. returnValue: function returnValue(result) {
  867. var _result2 = result,
  868. brand = _result2.brand,
  869. model = _result2.model;
  870. var deviceType = getGetDeviceType(result, model);
  871. var deviceBrand = getDeviceBrand(brand);
  872. useDeviceId(result);
  873. result = sortObject(Object.assign(result, {
  874. deviceType: deviceType,
  875. deviceBrand: deviceBrand,
  876. deviceModel: model
  877. }));
  878. }
  879. };
  880. var getWindowInfo = {
  881. returnValue: function returnValue(result) {
  882. addSafeAreaInsets(result);
  883. result = sortObject(Object.assign(result, {
  884. windowTop: 0,
  885. windowBottom: 0
  886. }));
  887. }
  888. };
  889. var getAppAuthorizeSetting = {
  890. returnValue: function returnValue(result) {
  891. var locationReducedAccuracy = result.locationReducedAccuracy;
  892. result.locationAccuracy = 'unsupported';
  893. if (locationReducedAccuracy === true) {
  894. result.locationAccuracy = 'reduced';
  895. } else if (locationReducedAccuracy === false) {
  896. result.locationAccuracy = 'full';
  897. }
  898. }
  899. };
  900. // import navigateTo from 'uni-helpers/navigate-to'
  901. var compressImage = {
  902. args: function args(fromArgs) {
  903. // https://developers.weixin.qq.com/community/develop/doc/000c08940c865011298e0a43256800?highLine=compressHeight
  904. if (fromArgs.compressedHeight && !fromArgs.compressHeight) {
  905. fromArgs.compressHeight = fromArgs.compressedHeight;
  906. }
  907. if (fromArgs.compressedWidth && !fromArgs.compressWidth) {
  908. fromArgs.compressWidth = fromArgs.compressedWidth;
  909. }
  910. }
  911. };
  912. var protocols = {
  913. redirectTo: redirectTo,
  914. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  915. previewImage: previewImage,
  916. getSystemInfo: getSystemInfo,
  917. getSystemInfoSync: getSystemInfo,
  918. showActionSheet: showActionSheet,
  919. getAppBaseInfo: getAppBaseInfo,
  920. getDeviceInfo: getDeviceInfo,
  921. getWindowInfo: getWindowInfo,
  922. getAppAuthorizeSetting: getAppAuthorizeSetting,
  923. compressImage: compressImage
  924. };
  925. var todos = ['vibrate', 'preloadPage', 'unPreloadPage', 'loadSubPackage'];
  926. var canIUses = [];
  927. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  928. function processCallback(methodName, method, returnValue) {
  929. return function (res) {
  930. return method(processReturnValue(methodName, res, returnValue));
  931. };
  932. }
  933. function processArgs(methodName, fromArgs) {
  934. var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  935. var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  936. var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  937. if (isPlainObject(fromArgs)) {
  938. // 一般 api 的参数解析
  939. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  940. if (isFn(argsOption)) {
  941. argsOption = argsOption(fromArgs, toArgs) || {};
  942. }
  943. for (var key in fromArgs) {
  944. if (hasOwn(argsOption, key)) {
  945. var keyOption = argsOption[key];
  946. if (isFn(keyOption)) {
  947. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  948. }
  949. if (!keyOption) {
  950. // 不支持的参数
  951. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  952. } else if (isStr(keyOption)) {
  953. // 重写参数 key
  954. toArgs[keyOption] = fromArgs[key];
  955. } else if (isPlainObject(keyOption)) {
  956. // {name:newName,value:value}可重新指定参数 key:value
  957. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  958. }
  959. } else if (CALLBACKS.indexOf(key) !== -1) {
  960. if (isFn(fromArgs[key])) {
  961. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  962. }
  963. } else {
  964. if (!keepFromArgs) {
  965. toArgs[key] = fromArgs[key];
  966. }
  967. }
  968. }
  969. return toArgs;
  970. } else if (isFn(fromArgs)) {
  971. fromArgs = processCallback(methodName, fromArgs, returnValue);
  972. }
  973. return fromArgs;
  974. }
  975. function processReturnValue(methodName, res, returnValue) {
  976. var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  977. if (isFn(protocols.returnValue)) {
  978. // 处理通用 returnValue
  979. res = protocols.returnValue(methodName, res);
  980. }
  981. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  982. }
  983. function wrapper(methodName, method) {
  984. if (hasOwn(protocols, methodName)) {
  985. var protocol = protocols[methodName];
  986. if (!protocol) {
  987. // 暂不支持的 api
  988. return function () {
  989. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  990. };
  991. }
  992. return function (arg1, arg2) {
  993. // 目前 api 最多两个参数
  994. var options = protocol;
  995. if (isFn(protocol)) {
  996. options = protocol(arg1);
  997. }
  998. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  999. var args = [arg1];
  1000. if (typeof arg2 !== 'undefined') {
  1001. args.push(arg2);
  1002. }
  1003. if (isFn(options.name)) {
  1004. methodName = options.name(arg1);
  1005. } else if (isStr(options.name)) {
  1006. methodName = options.name;
  1007. }
  1008. var returnValue = wx[methodName].apply(wx, args);
  1009. if (isSyncApi(methodName)) {
  1010. // 同步 api
  1011. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  1012. }
  1013. return returnValue;
  1014. };
  1015. }
  1016. return method;
  1017. }
  1018. var todoApis = Object.create(null);
  1019. var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
  1020. function createTodoApi(name) {
  1021. return function todoApi(_ref) {
  1022. var fail = _ref.fail,
  1023. complete = _ref.complete;
  1024. var res = {
  1025. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
  1026. };
  1027. isFn(fail) && fail(res);
  1028. isFn(complete) && complete(res);
  1029. };
  1030. }
  1031. TODOS.forEach(function (name) {
  1032. todoApis[name] = createTodoApi(name);
  1033. });
  1034. var providers = {
  1035. oauth: ['weixin'],
  1036. share: ['weixin'],
  1037. payment: ['wxpay'],
  1038. push: ['weixin']
  1039. };
  1040. function getProvider(_ref2) {
  1041. var service = _ref2.service,
  1042. success = _ref2.success,
  1043. fail = _ref2.fail,
  1044. complete = _ref2.complete;
  1045. var res = false;
  1046. if (providers[service]) {
  1047. res = {
  1048. errMsg: 'getProvider:ok',
  1049. service: service,
  1050. provider: providers[service]
  1051. };
  1052. isFn(success) && success(res);
  1053. } else {
  1054. res = {
  1055. errMsg: 'getProvider:fail service not found'
  1056. };
  1057. isFn(fail) && fail(res);
  1058. }
  1059. isFn(complete) && complete(res);
  1060. }
  1061. var extraApi = /*#__PURE__*/Object.freeze({
  1062. __proto__: null,
  1063. getProvider: getProvider
  1064. });
  1065. var getEmitter = function () {
  1066. var Emitter;
  1067. return function getUniEmitter() {
  1068. if (!Emitter) {
  1069. Emitter = new _vue.default();
  1070. }
  1071. return Emitter;
  1072. };
  1073. }();
  1074. function apply(ctx, method, args) {
  1075. return ctx[method].apply(ctx, args);
  1076. }
  1077. function $on() {
  1078. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  1079. }
  1080. function $off() {
  1081. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  1082. }
  1083. function $once() {
  1084. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  1085. }
  1086. function $emit() {
  1087. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  1088. }
  1089. var eventApi = /*#__PURE__*/Object.freeze({
  1090. __proto__: null,
  1091. $on: $on,
  1092. $off: $off,
  1093. $once: $once,
  1094. $emit: $emit
  1095. });
  1096. /**
  1097. * 框架内 try-catch
  1098. */
  1099. /**
  1100. * 开发者 try-catch
  1101. */
  1102. function tryCatch(fn) {
  1103. return function () {
  1104. try {
  1105. return fn.apply(fn, arguments);
  1106. } catch (e) {
  1107. // TODO
  1108. console.error(e);
  1109. }
  1110. };
  1111. }
  1112. function getApiCallbacks(params) {
  1113. var apiCallbacks = {};
  1114. for (var name in params) {
  1115. var param = params[name];
  1116. if (isFn(param)) {
  1117. apiCallbacks[name] = tryCatch(param);
  1118. delete params[name];
  1119. }
  1120. }
  1121. return apiCallbacks;
  1122. }
  1123. var cid;
  1124. var cidErrMsg;
  1125. var enabled;
  1126. function normalizePushMessage(message) {
  1127. try {
  1128. return JSON.parse(message);
  1129. } catch (e) {}
  1130. return message;
  1131. }
  1132. function invokePushCallback(args) {
  1133. if (args.type === 'enabled') {
  1134. enabled = true;
  1135. } else if (args.type === 'clientId') {
  1136. cid = args.cid;
  1137. cidErrMsg = args.errMsg;
  1138. invokeGetPushCidCallbacks(cid, args.errMsg);
  1139. } else if (args.type === 'pushMsg') {
  1140. var message = {
  1141. type: 'receive',
  1142. data: normalizePushMessage(args.message)
  1143. };
  1144. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  1145. var callback = onPushMessageCallbacks[i];
  1146. callback(message);
  1147. // 该消息已被阻止
  1148. if (message.stopped) {
  1149. break;
  1150. }
  1151. }
  1152. } else if (args.type === 'click') {
  1153. onPushMessageCallbacks.forEach(function (callback) {
  1154. callback({
  1155. type: 'click',
  1156. data: normalizePushMessage(args.message)
  1157. });
  1158. });
  1159. }
  1160. }
  1161. var getPushCidCallbacks = [];
  1162. function invokeGetPushCidCallbacks(cid, errMsg) {
  1163. getPushCidCallbacks.forEach(function (callback) {
  1164. callback(cid, errMsg);
  1165. });
  1166. getPushCidCallbacks.length = 0;
  1167. }
  1168. function getPushClientId(args) {
  1169. if (!isPlainObject(args)) {
  1170. args = {};
  1171. }
  1172. var _getApiCallbacks = getApiCallbacks(args),
  1173. success = _getApiCallbacks.success,
  1174. fail = _getApiCallbacks.fail,
  1175. complete = _getApiCallbacks.complete;
  1176. var hasSuccess = isFn(success);
  1177. var hasFail = isFn(fail);
  1178. var hasComplete = isFn(complete);
  1179. Promise.resolve().then(function () {
  1180. if (typeof enabled === 'undefined') {
  1181. enabled = false;
  1182. cid = '';
  1183. cidErrMsg = 'uniPush is not enabled';
  1184. }
  1185. getPushCidCallbacks.push(function (cid, errMsg) {
  1186. var res;
  1187. if (cid) {
  1188. res = {
  1189. errMsg: 'getPushClientId:ok',
  1190. cid: cid
  1191. };
  1192. hasSuccess && success(res);
  1193. } else {
  1194. res = {
  1195. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
  1196. };
  1197. hasFail && fail(res);
  1198. }
  1199. hasComplete && complete(res);
  1200. });
  1201. if (typeof cid !== 'undefined') {
  1202. invokeGetPushCidCallbacks(cid, cidErrMsg);
  1203. }
  1204. });
  1205. }
  1206. var onPushMessageCallbacks = [];
  1207. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  1208. var onPushMessage = function onPushMessage(fn) {
  1209. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  1210. onPushMessageCallbacks.push(fn);
  1211. }
  1212. };
  1213. var offPushMessage = function offPushMessage(fn) {
  1214. if (!fn) {
  1215. onPushMessageCallbacks.length = 0;
  1216. } else {
  1217. var index = onPushMessageCallbacks.indexOf(fn);
  1218. if (index > -1) {
  1219. onPushMessageCallbacks.splice(index, 1);
  1220. }
  1221. }
  1222. };
  1223. var baseInfo = wx.getAppBaseInfo && wx.getAppBaseInfo();
  1224. if (!baseInfo) {
  1225. baseInfo = wx.getSystemInfoSync();
  1226. }
  1227. var host = baseInfo ? baseInfo.host : null;
  1228. var shareVideoMessage = host && host.env === 'SAAASDK' ? wx.miniapp.shareVideoMessage : wx.shareVideoMessage;
  1229. var api = /*#__PURE__*/Object.freeze({
  1230. __proto__: null,
  1231. shareVideoMessage: shareVideoMessage,
  1232. getPushClientId: getPushClientId,
  1233. onPushMessage: onPushMessage,
  1234. offPushMessage: offPushMessage,
  1235. invokePushCallback: invokePushCallback
  1236. });
  1237. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1238. function findVmByVueId(vm, vuePid) {
  1239. var $children = vm.$children;
  1240. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1241. for (var i = $children.length - 1; i >= 0; i--) {
  1242. var childVm = $children[i];
  1243. if (childVm.$scope._$vueId === vuePid) {
  1244. return childVm;
  1245. }
  1246. }
  1247. // 反向递归查找
  1248. var parentVm;
  1249. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1250. parentVm = findVmByVueId($children[_i], vuePid);
  1251. if (parentVm) {
  1252. return parentVm;
  1253. }
  1254. }
  1255. }
  1256. function initBehavior(options) {
  1257. return Behavior(options);
  1258. }
  1259. function isPage() {
  1260. return !!this.route;
  1261. }
  1262. function initRelation(detail) {
  1263. this.triggerEvent('__l', detail);
  1264. }
  1265. function selectAllComponents(mpInstance, selector, $refs) {
  1266. var components = mpInstance.selectAllComponents(selector) || [];
  1267. components.forEach(function (component) {
  1268. var ref = component.dataset.ref;
  1269. $refs[ref] = component.$vm || toSkip(component);
  1270. {
  1271. if (component.dataset.vueGeneric === 'scoped') {
  1272. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1273. selectAllComponents(scopedComponent, selector, $refs);
  1274. });
  1275. }
  1276. }
  1277. });
  1278. }
  1279. function syncRefs(refs, newRefs) {
  1280. var oldKeys = (0, _construct2.default)(Set, (0, _toConsumableArray2.default)(Object.keys(refs)));
  1281. var newKeys = Object.keys(newRefs);
  1282. newKeys.forEach(function (key) {
  1283. var oldValue = refs[key];
  1284. var newValue = newRefs[key];
  1285. if (Array.isArray(oldValue) && Array.isArray(newValue) && oldValue.length === newValue.length && newValue.every(function (value) {
  1286. return oldValue.includes(value);
  1287. })) {
  1288. return;
  1289. }
  1290. refs[key] = newValue;
  1291. oldKeys.delete(key);
  1292. });
  1293. oldKeys.forEach(function (key) {
  1294. delete refs[key];
  1295. });
  1296. return refs;
  1297. }
  1298. function initRefs(vm) {
  1299. var mpInstance = vm.$scope;
  1300. var refs = {};
  1301. Object.defineProperty(vm, '$refs', {
  1302. get: function get() {
  1303. var $refs = {};
  1304. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1305. // TODO 暂不考虑 for 中的 scoped
  1306. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for') || [];
  1307. forComponents.forEach(function (component) {
  1308. var ref = component.dataset.ref;
  1309. if (!$refs[ref]) {
  1310. $refs[ref] = [];
  1311. }
  1312. $refs[ref].push(component.$vm || toSkip(component));
  1313. });
  1314. return syncRefs(refs, $refs);
  1315. }
  1316. });
  1317. }
  1318. function handleLink(event) {
  1319. var _ref3 = event.detail || event.value,
  1320. vuePid = _ref3.vuePid,
  1321. vueOptions = _ref3.vueOptions; // detail 是微信,value 是百度(dipatch)
  1322. var parentVm;
  1323. if (vuePid) {
  1324. parentVm = findVmByVueId(this.$vm, vuePid);
  1325. }
  1326. if (!parentVm) {
  1327. parentVm = this.$vm;
  1328. }
  1329. vueOptions.parent = parentVm;
  1330. }
  1331. function markMPComponent(component) {
  1332. // 在 Vue 中标记为小程序组件
  1333. var IS_MP = '__v_isMPComponent';
  1334. Object.defineProperty(component, IS_MP, {
  1335. configurable: true,
  1336. enumerable: false,
  1337. value: true
  1338. });
  1339. return component;
  1340. }
  1341. function toSkip(obj) {
  1342. var OB = '__ob__';
  1343. var SKIP = '__v_skip';
  1344. if (isObject(obj) && Object.isExtensible(obj)) {
  1345. // 避免被 @vue/composition-api 观测
  1346. Object.defineProperty(obj, OB, {
  1347. configurable: true,
  1348. enumerable: false,
  1349. value: (0, _defineProperty2.default)({}, SKIP, true)
  1350. });
  1351. }
  1352. return obj;
  1353. }
  1354. var WORKLET_RE = /_(.*)_worklet_factory_/;
  1355. function initWorkletMethods(mpMethods, vueMethods) {
  1356. if (vueMethods) {
  1357. Object.keys(vueMethods).forEach(function (name) {
  1358. var matches = name.match(WORKLET_RE);
  1359. if (matches) {
  1360. var workletName = matches[1];
  1361. mpMethods[name] = vueMethods[name];
  1362. mpMethods[workletName] = vueMethods[workletName];
  1363. }
  1364. });
  1365. }
  1366. }
  1367. var MPPage = Page;
  1368. var MPComponent = Component;
  1369. var customizeRE = /:/g;
  1370. var customize = cached(function (str) {
  1371. return camelize(str.replace(customizeRE, '-'));
  1372. });
  1373. function initTriggerEvent(mpInstance) {
  1374. var oldTriggerEvent = mpInstance.triggerEvent;
  1375. var newTriggerEvent = function newTriggerEvent(event) {
  1376. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
  1377. args[_key3 - 1] = arguments[_key3];
  1378. }
  1379. // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
  1380. if (this.$vm || this.dataset && this.dataset.comType) {
  1381. event = customize(event);
  1382. } else {
  1383. // 针对微信/QQ小程序单独补充驼峰格式事件,以兼容历史项目
  1384. var newEvent = customize(event);
  1385. if (newEvent !== event) {
  1386. oldTriggerEvent.apply(this, [newEvent].concat(args));
  1387. }
  1388. }
  1389. return oldTriggerEvent.apply(this, [event].concat(args));
  1390. };
  1391. try {
  1392. // 京东小程序 triggerEvent 为只读
  1393. mpInstance.triggerEvent = newTriggerEvent;
  1394. } catch (error) {
  1395. mpInstance._triggerEvent = newTriggerEvent;
  1396. }
  1397. }
  1398. function initHook(name, options, isComponent) {
  1399. var oldHook = options[name];
  1400. options[name] = function () {
  1401. markMPComponent(this);
  1402. initTriggerEvent(this);
  1403. if (oldHook) {
  1404. for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  1405. args[_key4] = arguments[_key4];
  1406. }
  1407. return oldHook.apply(this, args);
  1408. }
  1409. };
  1410. }
  1411. if (!MPPage.__$wrappered) {
  1412. MPPage.__$wrappered = true;
  1413. Page = function Page() {
  1414. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1415. initHook('onLoad', options);
  1416. return MPPage(options);
  1417. };
  1418. Page.after = MPPage.after;
  1419. Component = function Component() {
  1420. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1421. initHook('created', options);
  1422. return MPComponent(options);
  1423. };
  1424. }
  1425. var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
  1426. function initMocks(vm, mocks) {
  1427. var mpInstance = vm.$mp[vm.mpType];
  1428. mocks.forEach(function (mock) {
  1429. if (hasOwn(mpInstance, mock)) {
  1430. vm[mock] = mpInstance[mock];
  1431. }
  1432. });
  1433. }
  1434. function hasHook(hook, vueOptions) {
  1435. if (!vueOptions) {
  1436. return true;
  1437. }
  1438. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  1439. return true;
  1440. }
  1441. vueOptions = vueOptions.default || vueOptions;
  1442. if (isFn(vueOptions)) {
  1443. if (isFn(vueOptions.extendOptions[hook])) {
  1444. return true;
  1445. }
  1446. if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
  1447. return true;
  1448. }
  1449. return false;
  1450. }
  1451. if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
  1452. return true;
  1453. }
  1454. var mixins = vueOptions.mixins;
  1455. if (Array.isArray(mixins)) {
  1456. return !!mixins.find(function (mixin) {
  1457. return hasHook(hook, mixin);
  1458. });
  1459. }
  1460. }
  1461. function initHooks(mpOptions, hooks, vueOptions) {
  1462. hooks.forEach(function (hook) {
  1463. if (hasHook(hook, vueOptions)) {
  1464. mpOptions[hook] = function (args) {
  1465. return this.$vm && this.$vm.__call_hook(hook, args);
  1466. };
  1467. }
  1468. });
  1469. }
  1470. function initUnknownHooks(mpOptions, vueOptions) {
  1471. var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1472. findHooks(vueOptions).forEach(function (hook) {
  1473. return initHook$1(mpOptions, hook, excludes);
  1474. });
  1475. }
  1476. function findHooks(vueOptions) {
  1477. var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  1478. if (vueOptions) {
  1479. Object.keys(vueOptions).forEach(function (name) {
  1480. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  1481. hooks.push(name);
  1482. }
  1483. });
  1484. }
  1485. return hooks;
  1486. }
  1487. function initHook$1(mpOptions, hook, excludes) {
  1488. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  1489. mpOptions[hook] = function (args) {
  1490. return this.$vm && this.$vm.__call_hook(hook, args);
  1491. };
  1492. }
  1493. }
  1494. function initVueComponent(Vue, vueOptions) {
  1495. vueOptions = vueOptions.default || vueOptions;
  1496. var VueComponent;
  1497. if (isFn(vueOptions)) {
  1498. VueComponent = vueOptions;
  1499. } else {
  1500. VueComponent = Vue.extend(vueOptions);
  1501. }
  1502. vueOptions = VueComponent.options;
  1503. return [VueComponent, vueOptions];
  1504. }
  1505. function initSlots(vm, vueSlots) {
  1506. if (Array.isArray(vueSlots) && vueSlots.length) {
  1507. var $slots = Object.create(null);
  1508. vueSlots.forEach(function (slotName) {
  1509. $slots[slotName] = true;
  1510. });
  1511. vm.$scopedSlots = vm.$slots = $slots;
  1512. }
  1513. }
  1514. function initVueIds(vueIds, mpInstance) {
  1515. vueIds = (vueIds || '').split(',');
  1516. var len = vueIds.length;
  1517. if (len === 1) {
  1518. mpInstance._$vueId = vueIds[0];
  1519. } else if (len === 2) {
  1520. mpInstance._$vueId = vueIds[0];
  1521. mpInstance._$vuePid = vueIds[1];
  1522. }
  1523. }
  1524. function initData(vueOptions, context) {
  1525. var data = vueOptions.data || {};
  1526. var methods = vueOptions.methods || {};
  1527. if (typeof data === 'function') {
  1528. try {
  1529. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  1530. } catch (e) {
  1531. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"娇骄儿技师端","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  1532. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  1533. }
  1534. }
  1535. } else {
  1536. try {
  1537. // 对 data 格式化
  1538. data = JSON.parse(JSON.stringify(data));
  1539. } catch (e) {}
  1540. }
  1541. if (!isPlainObject(data)) {
  1542. data = {};
  1543. }
  1544. Object.keys(methods).forEach(function (methodName) {
  1545. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  1546. data[methodName] = methods[methodName];
  1547. }
  1548. });
  1549. return data;
  1550. }
  1551. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  1552. function createObserver(name) {
  1553. return function observer(newVal, oldVal) {
  1554. if (this.$vm) {
  1555. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  1556. }
  1557. };
  1558. }
  1559. function initBehaviors(vueOptions, initBehavior) {
  1560. var vueBehaviors = vueOptions.behaviors;
  1561. var vueExtends = vueOptions.extends;
  1562. var vueMixins = vueOptions.mixins;
  1563. var vueProps = vueOptions.props;
  1564. if (!vueProps) {
  1565. vueOptions.props = vueProps = [];
  1566. }
  1567. var behaviors = [];
  1568. if (Array.isArray(vueBehaviors)) {
  1569. vueBehaviors.forEach(function (behavior) {
  1570. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  1571. if (behavior === 'uni://form-field') {
  1572. if (Array.isArray(vueProps)) {
  1573. vueProps.push('name');
  1574. vueProps.push('value');
  1575. } else {
  1576. vueProps.name = {
  1577. type: String,
  1578. default: ''
  1579. };
  1580. vueProps.value = {
  1581. type: [String, Number, Boolean, Array, Object, Date],
  1582. default: ''
  1583. };
  1584. }
  1585. }
  1586. });
  1587. }
  1588. if (isPlainObject(vueExtends) && vueExtends.props) {
  1589. behaviors.push(initBehavior({
  1590. properties: initProperties(vueExtends.props, true)
  1591. }));
  1592. }
  1593. if (Array.isArray(vueMixins)) {
  1594. vueMixins.forEach(function (vueMixin) {
  1595. if (isPlainObject(vueMixin) && vueMixin.props) {
  1596. behaviors.push(initBehavior({
  1597. properties: initProperties(vueMixin.props, true)
  1598. }));
  1599. }
  1600. });
  1601. }
  1602. return behaviors;
  1603. }
  1604. function parsePropType(key, type, defaultValue, file) {
  1605. // [String]=>String
  1606. if (Array.isArray(type) && type.length === 1) {
  1607. return type[0];
  1608. }
  1609. return type;
  1610. }
  1611. function initProperties(props) {
  1612. var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  1613. var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  1614. var options = arguments.length > 3 ? arguments[3] : undefined;
  1615. var properties = {};
  1616. if (!isBehavior) {
  1617. properties.vueId = {
  1618. type: String,
  1619. value: ''
  1620. };
  1621. {
  1622. if (options.virtualHost) {
  1623. properties.virtualHostStyle = {
  1624. type: null,
  1625. value: ''
  1626. };
  1627. properties.virtualHostClass = {
  1628. type: null,
  1629. value: ''
  1630. };
  1631. }
  1632. }
  1633. // scopedSlotsCompiler auto
  1634. properties.scopedSlotsCompiler = {
  1635. type: String,
  1636. value: ''
  1637. };
  1638. properties.vueSlots = {
  1639. // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  1640. type: null,
  1641. value: [],
  1642. observer: function observer(newVal, oldVal) {
  1643. var $slots = Object.create(null);
  1644. newVal.forEach(function (slotName) {
  1645. $slots[slotName] = true;
  1646. });
  1647. this.setData({
  1648. $slots: $slots
  1649. });
  1650. }
  1651. };
  1652. }
  1653. if (Array.isArray(props)) {
  1654. // ['title']
  1655. props.forEach(function (key) {
  1656. properties[key] = {
  1657. type: null,
  1658. observer: createObserver(key)
  1659. };
  1660. });
  1661. } else if (isPlainObject(props)) {
  1662. // {title:{type:String,default:''},content:String}
  1663. Object.keys(props).forEach(function (key) {
  1664. var opts = props[key];
  1665. if (isPlainObject(opts)) {
  1666. // title:{type:String,default:''}
  1667. var value = opts.default;
  1668. if (isFn(value)) {
  1669. value = value();
  1670. }
  1671. opts.type = parsePropType(key, opts.type);
  1672. properties[key] = {
  1673. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  1674. value: value,
  1675. observer: createObserver(key)
  1676. };
  1677. } else {
  1678. // content:String
  1679. var type = parsePropType(key, opts);
  1680. properties[key] = {
  1681. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  1682. observer: createObserver(key)
  1683. };
  1684. }
  1685. });
  1686. }
  1687. return properties;
  1688. }
  1689. function wrapper$1(event) {
  1690. // TODO 又得兼容 mpvue 的 mp 对象
  1691. try {
  1692. event.mp = JSON.parse(JSON.stringify(event));
  1693. } catch (e) {}
  1694. event.stopPropagation = noop;
  1695. event.preventDefault = noop;
  1696. event.target = event.target || {};
  1697. if (!hasOwn(event, 'detail')) {
  1698. event.detail = {};
  1699. }
  1700. if (hasOwn(event, 'markerId')) {
  1701. event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
  1702. event.detail.markerId = event.markerId;
  1703. }
  1704. if (isPlainObject(event.detail)) {
  1705. event.target = Object.assign({}, event.target, event.detail);
  1706. }
  1707. return event;
  1708. }
  1709. function getExtraValue(vm, dataPathsArray) {
  1710. var context = vm;
  1711. dataPathsArray.forEach(function (dataPathArray) {
  1712. var dataPath = dataPathArray[0];
  1713. var value = dataPathArray[2];
  1714. if (dataPath || typeof value !== 'undefined') {
  1715. // ['','',index,'disable']
  1716. var propPath = dataPathArray[1];
  1717. var valuePath = dataPathArray[3];
  1718. var vFor;
  1719. if (Number.isInteger(dataPath)) {
  1720. vFor = dataPath;
  1721. } else if (!dataPath) {
  1722. vFor = context;
  1723. } else if (typeof dataPath === 'string' && dataPath) {
  1724. if (dataPath.indexOf('#s#') === 0) {
  1725. vFor = dataPath.substr(3);
  1726. } else {
  1727. vFor = vm.__get_value(dataPath, context);
  1728. }
  1729. }
  1730. if (Number.isInteger(vFor)) {
  1731. context = value;
  1732. } else if (!propPath) {
  1733. context = vFor[value];
  1734. } else {
  1735. if (Array.isArray(vFor)) {
  1736. context = vFor.find(function (vForItem) {
  1737. return vm.__get_value(propPath, vForItem) === value;
  1738. });
  1739. } else if (isPlainObject(vFor)) {
  1740. context = Object.keys(vFor).find(function (vForKey) {
  1741. return vm.__get_value(propPath, vFor[vForKey]) === value;
  1742. });
  1743. } else {
  1744. console.error('v-for 暂不支持循环数据:', vFor);
  1745. }
  1746. }
  1747. if (valuePath) {
  1748. context = vm.__get_value(valuePath, context);
  1749. }
  1750. }
  1751. });
  1752. return context;
  1753. }
  1754. function processEventExtra(vm, extra, event, __args__) {
  1755. var extraObj = {};
  1756. if (Array.isArray(extra) && extra.length) {
  1757. /**
  1758. *[
  1759. * ['data.items', 'data.id', item.data.id],
  1760. * ['metas', 'id', meta.id]
  1761. *],
  1762. *[
  1763. * ['data.items', 'data.id', item.data.id],
  1764. * ['metas', 'id', meta.id]
  1765. *],
  1766. *'test'
  1767. */
  1768. extra.forEach(function (dataPath, index) {
  1769. if (typeof dataPath === 'string') {
  1770. if (!dataPath) {
  1771. // model,prop.sync
  1772. extraObj['$' + index] = vm;
  1773. } else {
  1774. if (dataPath === '$event') {
  1775. // $event
  1776. extraObj['$' + index] = event;
  1777. } else if (dataPath === 'arguments') {
  1778. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  1779. } else if (dataPath.indexOf('$event.') === 0) {
  1780. // $event.target.value
  1781. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1782. } else {
  1783. extraObj['$' + index] = vm.__get_value(dataPath);
  1784. }
  1785. }
  1786. } else {
  1787. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1788. }
  1789. });
  1790. }
  1791. return extraObj;
  1792. }
  1793. function getObjByArray(arr) {
  1794. var obj = {};
  1795. for (var i = 1; i < arr.length; i++) {
  1796. var element = arr[i];
  1797. obj[element[0]] = element[1];
  1798. }
  1799. return obj;
  1800. }
  1801. function processEventArgs(vm, event) {
  1802. var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1803. var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  1804. var isCustom = arguments.length > 4 ? arguments[4] : undefined;
  1805. var methodName = arguments.length > 5 ? arguments[5] : undefined;
  1806. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  1807. // fixed 用户直接触发 mpInstance.triggerEvent
  1808. var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
  1809. if (isCustom) {
  1810. // 自定义事件
  1811. isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
  1812. if (!args.length) {
  1813. // 无参数,直接传入 event 或 detail 数组
  1814. if (isCustomMPEvent) {
  1815. return [event];
  1816. }
  1817. return __args__;
  1818. }
  1819. }
  1820. var extraObj = processEventExtra(vm, extra, event, __args__);
  1821. var ret = [];
  1822. args.forEach(function (arg) {
  1823. if (arg === '$event') {
  1824. if (methodName === '__set_model' && !isCustom) {
  1825. // input v-model value
  1826. ret.push(event.target.value);
  1827. } else {
  1828. if (isCustom && !isCustomMPEvent) {
  1829. ret.push(__args__[0]);
  1830. } else {
  1831. // wxcomponent 组件或内置组件
  1832. ret.push(event);
  1833. }
  1834. }
  1835. } else {
  1836. if (Array.isArray(arg) && arg[0] === 'o') {
  1837. ret.push(getObjByArray(arg));
  1838. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  1839. ret.push(extraObj[arg]);
  1840. } else {
  1841. ret.push(arg);
  1842. }
  1843. }
  1844. });
  1845. return ret;
  1846. }
  1847. var ONCE = '~';
  1848. var CUSTOM = '^';
  1849. function isMatchEventType(eventType, optType) {
  1850. return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
  1851. }
  1852. function getContextVm(vm) {
  1853. var $parent = vm.$parent;
  1854. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  1855. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  1856. $parent = $parent.$parent;
  1857. }
  1858. return $parent && $parent.$parent;
  1859. }
  1860. function handleEvent(event) {
  1861. var _this2 = this;
  1862. event = wrapper$1(event);
  1863. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  1864. var dataset = (event.currentTarget || event.target).dataset;
  1865. if (!dataset) {
  1866. return console.warn('事件信息不存在');
  1867. }
  1868. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  1869. if (!eventOpts) {
  1870. return console.warn('事件信息不存在');
  1871. }
  1872. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  1873. var eventType = event.type;
  1874. var ret = [];
  1875. eventOpts.forEach(function (eventOpt) {
  1876. var type = eventOpt[0];
  1877. var eventsArray = eventOpt[1];
  1878. var isCustom = type.charAt(0) === CUSTOM;
  1879. type = isCustom ? type.slice(1) : type;
  1880. var isOnce = type.charAt(0) === ONCE;
  1881. type = isOnce ? type.slice(1) : type;
  1882. if (eventsArray && isMatchEventType(eventType, type)) {
  1883. eventsArray.forEach(function (eventArray) {
  1884. var methodName = eventArray[0];
  1885. if (methodName) {
  1886. var handlerCtx = _this2.$vm;
  1887. if (handlerCtx.$options.generic) {
  1888. // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  1889. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  1890. }
  1891. if (methodName === '$emit') {
  1892. handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
  1893. return;
  1894. }
  1895. var handler = handlerCtx[methodName];
  1896. if (!isFn(handler)) {
  1897. var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
  1898. var path = _this2.route || _this2.is;
  1899. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  1900. }
  1901. if (isOnce) {
  1902. if (handler.once) {
  1903. return;
  1904. }
  1905. handler.once = true;
  1906. }
  1907. var params = processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
  1908. params = Array.isArray(params) ? params : [];
  1909. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  1910. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  1911. // eslint-disable-next-line no-sparse-arrays
  1912. params = params.concat([,,,,,,,,,, event]);
  1913. }
  1914. ret.push(handler.apply(handlerCtx, params));
  1915. }
  1916. });
  1917. }
  1918. });
  1919. if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
  1920. return ret[0];
  1921. }
  1922. }
  1923. var eventChannels = {};
  1924. function getEventChannel(id) {
  1925. var eventChannel = eventChannels[id];
  1926. delete eventChannels[id];
  1927. return eventChannel;
  1928. }
  1929. var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
  1930. function initEventChannel() {
  1931. _vue.default.prototype.getOpenerEventChannel = function () {
  1932. // 微信小程序使用自身getOpenerEventChannel
  1933. {
  1934. return this.$scope.getOpenerEventChannel();
  1935. }
  1936. };
  1937. var callHook = _vue.default.prototype.__call_hook;
  1938. _vue.default.prototype.__call_hook = function (hook, args) {
  1939. if (hook === 'onLoad' && args && args.__id__) {
  1940. this.__eventChannel__ = getEventChannel(args.__id__);
  1941. delete args.__id__;
  1942. }
  1943. return callHook.call(this, hook, args);
  1944. };
  1945. }
  1946. function initScopedSlotsParams() {
  1947. var center = {};
  1948. var parents = {};
  1949. function currentId(fn) {
  1950. var vueIds = this.$options.propsData.vueId;
  1951. if (vueIds) {
  1952. var vueId = vueIds.split(',')[0];
  1953. fn(vueId);
  1954. }
  1955. }
  1956. _vue.default.prototype.$hasSSP = function (vueId) {
  1957. var slot = center[vueId];
  1958. if (!slot) {
  1959. parents[vueId] = this;
  1960. this.$on('hook:destroyed', function () {
  1961. delete parents[vueId];
  1962. });
  1963. }
  1964. return slot;
  1965. };
  1966. _vue.default.prototype.$getSSP = function (vueId, name, needAll) {
  1967. var slot = center[vueId];
  1968. if (slot) {
  1969. var params = slot[name] || [];
  1970. if (needAll) {
  1971. return params;
  1972. }
  1973. return params[0];
  1974. }
  1975. };
  1976. _vue.default.prototype.$setSSP = function (name, value) {
  1977. var index = 0;
  1978. currentId.call(this, function (vueId) {
  1979. var slot = center[vueId];
  1980. var params = slot[name] = slot[name] || [];
  1981. params.push(value);
  1982. index = params.length - 1;
  1983. });
  1984. return index;
  1985. };
  1986. _vue.default.prototype.$initSSP = function () {
  1987. currentId.call(this, function (vueId) {
  1988. center[vueId] = {};
  1989. });
  1990. };
  1991. _vue.default.prototype.$callSSP = function () {
  1992. currentId.call(this, function (vueId) {
  1993. if (parents[vueId]) {
  1994. parents[vueId].$forceUpdate();
  1995. }
  1996. });
  1997. };
  1998. _vue.default.mixin({
  1999. destroyed: function destroyed() {
  2000. var propsData = this.$options.propsData;
  2001. var vueId = propsData && propsData.vueId;
  2002. if (vueId) {
  2003. delete center[vueId];
  2004. delete parents[vueId];
  2005. }
  2006. }
  2007. });
  2008. }
  2009. function parseBaseApp(vm, _ref4) {
  2010. var mocks = _ref4.mocks,
  2011. initRefs = _ref4.initRefs;
  2012. initEventChannel();
  2013. {
  2014. initScopedSlotsParams();
  2015. }
  2016. if (vm.$options.store) {
  2017. _vue.default.prototype.$store = vm.$options.store;
  2018. }
  2019. uniIdMixin(_vue.default);
  2020. _vue.default.prototype.mpHost = "mp-weixin";
  2021. _vue.default.mixin({
  2022. beforeCreate: function beforeCreate() {
  2023. if (!this.$options.mpType) {
  2024. return;
  2025. }
  2026. this.mpType = this.$options.mpType;
  2027. this.$mp = (0, _defineProperty2.default)({
  2028. data: {}
  2029. }, this.mpType, this.$options.mpInstance);
  2030. this.$scope = this.$options.mpInstance;
  2031. delete this.$options.mpType;
  2032. delete this.$options.mpInstance;
  2033. if (this.mpType === 'page' && typeof getApp === 'function') {
  2034. // hack vue-i18n
  2035. var app = getApp();
  2036. if (app.$vm && app.$vm.$i18n) {
  2037. this._i18n = app.$vm.$i18n;
  2038. }
  2039. }
  2040. if (this.mpType !== 'app') {
  2041. initRefs(this);
  2042. initMocks(this, mocks);
  2043. }
  2044. }
  2045. });
  2046. var appOptions = {
  2047. onLaunch: function onLaunch(args) {
  2048. if (this.$vm) {
  2049. // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  2050. return;
  2051. }
  2052. {
  2053. if (wx.canIUse && !wx.canIUse('nextTick')) {
  2054. // 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  2055. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  2056. }
  2057. }
  2058. this.$vm = vm;
  2059. this.$vm.$mp = {
  2060. app: this
  2061. };
  2062. this.$vm.$scope = this;
  2063. // vm 上也挂载 globalData
  2064. this.$vm.globalData = this.globalData;
  2065. this.$vm._isMounted = true;
  2066. this.$vm.__call_hook('mounted', args);
  2067. this.$vm.__call_hook('onLaunch', args);
  2068. }
  2069. };
  2070. // 兼容旧版本 globalData
  2071. appOptions.globalData = vm.$options.globalData || {};
  2072. // 将 methods 中的方法挂在 getApp() 中
  2073. var methods = vm.$options.methods;
  2074. if (methods) {
  2075. Object.keys(methods).forEach(function (name) {
  2076. appOptions[name] = methods[name];
  2077. });
  2078. }
  2079. initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
  2080. initHooks(appOptions, hooks);
  2081. initUnknownHooks(appOptions, vm.$options);
  2082. return appOptions;
  2083. }
  2084. function parseApp(vm) {
  2085. return parseBaseApp(vm, {
  2086. mocks: mocks,
  2087. initRefs: initRefs
  2088. });
  2089. }
  2090. function createApp(vm) {
  2091. App(parseApp(vm));
  2092. return vm;
  2093. }
  2094. var encodeReserveRE = /[!'()*]/g;
  2095. var encodeReserveReplacer = function encodeReserveReplacer(c) {
  2096. return '%' + c.charCodeAt(0).toString(16);
  2097. };
  2098. var commaRE = /%2C/g;
  2099. // fixed encodeURIComponent which is more conformant to RFC3986:
  2100. // - escapes [!'()*]
  2101. // - preserve commas
  2102. var encode = function encode(str) {
  2103. return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
  2104. };
  2105. function stringifyQuery(obj) {
  2106. var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  2107. var res = obj ? Object.keys(obj).map(function (key) {
  2108. var val = obj[key];
  2109. if (val === undefined) {
  2110. return '';
  2111. }
  2112. if (val === null) {
  2113. return encodeStr(key);
  2114. }
  2115. if (Array.isArray(val)) {
  2116. var result = [];
  2117. val.forEach(function (val2) {
  2118. if (val2 === undefined) {
  2119. return;
  2120. }
  2121. if (val2 === null) {
  2122. result.push(encodeStr(key));
  2123. } else {
  2124. result.push(encodeStr(key) + '=' + encodeStr(val2));
  2125. }
  2126. });
  2127. return result.join('&');
  2128. }
  2129. return encodeStr(key) + '=' + encodeStr(val);
  2130. }).filter(function (x) {
  2131. return x.length > 0;
  2132. }).join('&') : null;
  2133. return res ? "?".concat(res) : '';
  2134. }
  2135. function parseBaseComponent(vueComponentOptions) {
  2136. var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  2137. isPage = _ref5.isPage,
  2138. initRelation = _ref5.initRelation;
  2139. var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
  2140. var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
  2141. _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
  2142. VueComponent = _initVueComponent2[0],
  2143. vueOptions = _initVueComponent2[1];
  2144. var options = _objectSpread({
  2145. multipleSlots: true,
  2146. // styleIsolation: 'apply-shared',
  2147. addGlobalClass: true
  2148. }, vueOptions.options || {});
  2149. {
  2150. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  2151. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  2152. Object.assign(options, vueOptions['mp-weixin'].options);
  2153. }
  2154. }
  2155. var componentOptions = {
  2156. options: options,
  2157. data: initData(vueOptions, _vue.default.prototype),
  2158. behaviors: initBehaviors(vueOptions, initBehavior),
  2159. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  2160. lifetimes: {
  2161. attached: function attached() {
  2162. var properties = this.properties;
  2163. var options = {
  2164. mpType: isPage.call(this) ? 'page' : 'component',
  2165. mpInstance: this,
  2166. propsData: properties
  2167. };
  2168. initVueIds(properties.vueId, this);
  2169. // 处理父子关系
  2170. initRelation.call(this, {
  2171. vuePid: this._$vuePid,
  2172. vueOptions: options
  2173. });
  2174. // 初始化 vue 实例
  2175. this.$vm = new VueComponent(options);
  2176. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  2177. initSlots(this.$vm, properties.vueSlots);
  2178. // 触发首次 setData
  2179. this.$vm.$mount();
  2180. },
  2181. ready: function ready() {
  2182. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  2183. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  2184. if (this.$vm) {
  2185. this.$vm._isMounted = true;
  2186. this.$vm.__call_hook('mounted');
  2187. this.$vm.__call_hook('onReady');
  2188. }
  2189. },
  2190. detached: function detached() {
  2191. this.$vm && this.$vm.$destroy();
  2192. }
  2193. },
  2194. pageLifetimes: {
  2195. show: function show(args) {
  2196. this.$vm && this.$vm.__call_hook('onPageShow', args);
  2197. },
  2198. hide: function hide() {
  2199. this.$vm && this.$vm.__call_hook('onPageHide');
  2200. },
  2201. resize: function resize(size) {
  2202. this.$vm && this.$vm.__call_hook('onPageResize', size);
  2203. }
  2204. },
  2205. methods: {
  2206. __l: handleLink,
  2207. __e: handleEvent
  2208. }
  2209. };
  2210. // externalClasses
  2211. if (vueOptions.externalClasses) {
  2212. componentOptions.externalClasses = vueOptions.externalClasses;
  2213. }
  2214. if (Array.isArray(vueOptions.wxsCallMethods)) {
  2215. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  2216. componentOptions.methods[callMethod] = function (args) {
  2217. return this.$vm[callMethod](args);
  2218. };
  2219. });
  2220. }
  2221. if (needVueOptions) {
  2222. return [componentOptions, vueOptions, VueComponent];
  2223. }
  2224. if (isPage) {
  2225. return componentOptions;
  2226. }
  2227. return [componentOptions, VueComponent];
  2228. }
  2229. function parseComponent(vueComponentOptions, needVueOptions) {
  2230. return parseBaseComponent(vueComponentOptions, {
  2231. isPage: isPage,
  2232. initRelation: initRelation
  2233. }, needVueOptions);
  2234. }
  2235. var hooks$1 = ['onShow', 'onHide', 'onUnload'];
  2236. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  2237. function parseBasePage(vuePageOptions) {
  2238. var _parseComponent = parseComponent(vuePageOptions, true),
  2239. _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
  2240. pageOptions = _parseComponent2[0],
  2241. vueOptions = _parseComponent2[1];
  2242. initHooks(pageOptions.methods, hooks$1, vueOptions);
  2243. pageOptions.methods.onLoad = function (query) {
  2244. this.options = query;
  2245. var copyQuery = Object.assign({}, query);
  2246. delete copyQuery.__id__;
  2247. this.$page = {
  2248. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
  2249. };
  2250. this.$vm.$mp.query = query; // 兼容 mpvue
  2251. this.$vm.__call_hook('onLoad', query);
  2252. };
  2253. {
  2254. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  2255. }
  2256. {
  2257. initWorkletMethods(pageOptions.methods, vueOptions.methods);
  2258. }
  2259. return pageOptions;
  2260. }
  2261. function parsePage(vuePageOptions) {
  2262. return parseBasePage(vuePageOptions);
  2263. }
  2264. function createPage(vuePageOptions) {
  2265. {
  2266. return Component(parsePage(vuePageOptions));
  2267. }
  2268. }
  2269. function createComponent(vueOptions) {
  2270. {
  2271. return Component(parseComponent(vueOptions));
  2272. }
  2273. }
  2274. function createSubpackageApp(vm) {
  2275. var appOptions = parseApp(vm);
  2276. var app = getApp({
  2277. allowDefault: true
  2278. });
  2279. vm.$scope = app;
  2280. var globalData = app.globalData;
  2281. if (globalData) {
  2282. Object.keys(appOptions.globalData).forEach(function (name) {
  2283. if (!hasOwn(globalData, name)) {
  2284. globalData[name] = appOptions.globalData[name];
  2285. }
  2286. });
  2287. }
  2288. Object.keys(appOptions).forEach(function (name) {
  2289. if (!hasOwn(app, name)) {
  2290. app[name] = appOptions[name];
  2291. }
  2292. });
  2293. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2294. wx.onAppShow(function () {
  2295. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  2296. args[_key5] = arguments[_key5];
  2297. }
  2298. vm.__call_hook('onShow', args);
  2299. });
  2300. }
  2301. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2302. wx.onAppHide(function () {
  2303. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  2304. args[_key6] = arguments[_key6];
  2305. }
  2306. vm.__call_hook('onHide', args);
  2307. });
  2308. }
  2309. if (isFn(appOptions.onLaunch)) {
  2310. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2311. vm.__call_hook('onLaunch', args);
  2312. }
  2313. return vm;
  2314. }
  2315. function createPlugin(vm) {
  2316. var appOptions = parseApp(vm);
  2317. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2318. wx.onAppShow(function () {
  2319. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  2320. args[_key7] = arguments[_key7];
  2321. }
  2322. vm.__call_hook('onShow', args);
  2323. });
  2324. }
  2325. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2326. wx.onAppHide(function () {
  2327. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  2328. args[_key8] = arguments[_key8];
  2329. }
  2330. vm.__call_hook('onHide', args);
  2331. });
  2332. }
  2333. if (isFn(appOptions.onLaunch)) {
  2334. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2335. vm.__call_hook('onLaunch', args);
  2336. }
  2337. return vm;
  2338. }
  2339. todos.forEach(function (todoApi) {
  2340. protocols[todoApi] = false;
  2341. });
  2342. canIUses.forEach(function (canIUseApi) {
  2343. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  2344. if (!wx.canIUse(apiName)) {
  2345. protocols[canIUseApi] = false;
  2346. }
  2347. });
  2348. var uni = {};
  2349. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  2350. uni = new Proxy({}, {
  2351. get: function get(target, name) {
  2352. if (hasOwn(target, name)) {
  2353. return target[name];
  2354. }
  2355. if (baseApi[name]) {
  2356. return baseApi[name];
  2357. }
  2358. if (api[name]) {
  2359. return promisify(name, api[name]);
  2360. }
  2361. {
  2362. if (extraApi[name]) {
  2363. return promisify(name, extraApi[name]);
  2364. }
  2365. if (todoApis[name]) {
  2366. return promisify(name, todoApis[name]);
  2367. }
  2368. }
  2369. if (eventApi[name]) {
  2370. return eventApi[name];
  2371. }
  2372. return promisify(name, wrapper(name, wx[name]));
  2373. },
  2374. set: function set(target, name, value) {
  2375. target[name] = value;
  2376. return true;
  2377. }
  2378. });
  2379. } else {
  2380. Object.keys(baseApi).forEach(function (name) {
  2381. uni[name] = baseApi[name];
  2382. });
  2383. {
  2384. Object.keys(todoApis).forEach(function (name) {
  2385. uni[name] = promisify(name, todoApis[name]);
  2386. });
  2387. Object.keys(extraApi).forEach(function (name) {
  2388. uni[name] = promisify(name, extraApi[name]);
  2389. });
  2390. }
  2391. Object.keys(eventApi).forEach(function (name) {
  2392. uni[name] = eventApi[name];
  2393. });
  2394. Object.keys(api).forEach(function (name) {
  2395. uni[name] = promisify(name, api[name]);
  2396. });
  2397. Object.keys(wx).forEach(function (name) {
  2398. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  2399. uni[name] = promisify(name, wrapper(name, wx[name]));
  2400. }
  2401. });
  2402. }
  2403. wx.createApp = createApp;
  2404. wx.createPage = createPage;
  2405. wx.createComponent = createComponent;
  2406. wx.createSubpackageApp = createSubpackageApp;
  2407. wx.createPlugin = createPlugin;
  2408. var uni$1 = uni;
  2409. var _default = uni$1;
  2410. exports.default = _default;
  2411. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 3)))
  2412. /***/ }),
  2413. /* 3 */
  2414. /*!***********************************!*\
  2415. !*** (webpack)/buildin/global.js ***!
  2416. \***********************************/
  2417. /*! no static exports found */
  2418. /***/ (function(module, exports) {
  2419. var g;
  2420. // This works in non-strict mode
  2421. g = (function() {
  2422. return this;
  2423. })();
  2424. try {
  2425. // This works if eval is allowed (see CSP)
  2426. g = g || new Function("return this")();
  2427. } catch (e) {
  2428. // This works if the window reference is available
  2429. if (typeof window === "object") g = window;
  2430. }
  2431. // g can still be undefined, but nothing to do about it...
  2432. // We return undefined, instead of nothing here, so it's
  2433. // easier to handle this case. if(!global) { ...}
  2434. module.exports = g;
  2435. /***/ }),
  2436. /* 4 */
  2437. /*!**********************************************************************!*\
  2438. !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  2439. \**********************************************************************/
  2440. /*! no static exports found */
  2441. /***/ (function(module, exports) {
  2442. function _interopRequireDefault(obj) {
  2443. return obj && obj.__esModule ? obj : {
  2444. "default": obj
  2445. };
  2446. }
  2447. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2448. /***/ }),
  2449. /* 5 */
  2450. /*!**************************************************************!*\
  2451. !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  2452. \**************************************************************/
  2453. /*! no static exports found */
  2454. /***/ (function(module, exports, __webpack_require__) {
  2455. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  2456. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 7);
  2457. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2458. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  2459. function _slicedToArray(arr, i) {
  2460. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
  2461. }
  2462. module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2463. /***/ }),
  2464. /* 6 */
  2465. /*!***************************************************************!*\
  2466. !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  2467. \***************************************************************/
  2468. /*! no static exports found */
  2469. /***/ (function(module, exports) {
  2470. function _arrayWithHoles(arr) {
  2471. if (Array.isArray(arr)) return arr;
  2472. }
  2473. module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2474. /***/ }),
  2475. /* 7 */
  2476. /*!*********************************************************************!*\
  2477. !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  2478. \*********************************************************************/
  2479. /*! no static exports found */
  2480. /***/ (function(module, exports) {
  2481. function _iterableToArrayLimit(arr, i) {
  2482. var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
  2483. if (null != _i) {
  2484. var _s,
  2485. _e,
  2486. _x,
  2487. _r,
  2488. _arr = [],
  2489. _n = !0,
  2490. _d = !1;
  2491. try {
  2492. if (_x = (_i = _i.call(arr)).next, 0 === i) {
  2493. if (Object(_i) !== _i) return;
  2494. _n = !1;
  2495. } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
  2496. ;
  2497. }
  2498. } catch (err) {
  2499. _d = !0, _e = err;
  2500. } finally {
  2501. try {
  2502. if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
  2503. } finally {
  2504. if (_d) throw _e;
  2505. }
  2506. }
  2507. return _arr;
  2508. }
  2509. }
  2510. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2511. /***/ }),
  2512. /* 8 */
  2513. /*!***************************************************************************!*\
  2514. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  2515. \***************************************************************************/
  2516. /*! no static exports found */
  2517. /***/ (function(module, exports, __webpack_require__) {
  2518. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2519. function _unsupportedIterableToArray(o, minLen) {
  2520. if (!o) return;
  2521. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  2522. var n = Object.prototype.toString.call(o).slice(8, -1);
  2523. if (n === "Object" && o.constructor) n = o.constructor.name;
  2524. if (n === "Map" || n === "Set") return Array.from(o);
  2525. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  2526. }
  2527. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2528. /***/ }),
  2529. /* 9 */
  2530. /*!*****************************************************************!*\
  2531. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  2532. \*****************************************************************/
  2533. /*! no static exports found */
  2534. /***/ (function(module, exports) {
  2535. function _arrayLikeToArray(arr, len) {
  2536. if (len == null || len > arr.length) len = arr.length;
  2537. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  2538. arr2[i] = arr[i];
  2539. }
  2540. return arr2;
  2541. }
  2542. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2543. /***/ }),
  2544. /* 10 */
  2545. /*!****************************************************************!*\
  2546. !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
  2547. \****************************************************************/
  2548. /*! no static exports found */
  2549. /***/ (function(module, exports) {
  2550. function _nonIterableRest() {
  2551. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2552. }
  2553. module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2554. /***/ }),
  2555. /* 11 */
  2556. /*!***************************************************************!*\
  2557. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  2558. \***************************************************************/
  2559. /*! no static exports found */
  2560. /***/ (function(module, exports, __webpack_require__) {
  2561. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  2562. function _defineProperty(obj, key, value) {
  2563. key = toPropertyKey(key);
  2564. if (key in obj) {
  2565. Object.defineProperty(obj, key, {
  2566. value: value,
  2567. enumerable: true,
  2568. configurable: true,
  2569. writable: true
  2570. });
  2571. } else {
  2572. obj[key] = value;
  2573. }
  2574. return obj;
  2575. }
  2576. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2577. /***/ }),
  2578. /* 12 */
  2579. /*!**************************************************************!*\
  2580. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  2581. \**************************************************************/
  2582. /*! no static exports found */
  2583. /***/ (function(module, exports, __webpack_require__) {
  2584. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2585. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
  2586. function _toPropertyKey(arg) {
  2587. var key = toPrimitive(arg, "string");
  2588. return _typeof(key) === "symbol" ? key : String(key);
  2589. }
  2590. module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2591. /***/ }),
  2592. /* 13 */
  2593. /*!*******************************************************!*\
  2594. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  2595. \*******************************************************/
  2596. /*! no static exports found */
  2597. /***/ (function(module, exports) {
  2598. function _typeof(obj) {
  2599. "@babel/helpers - typeof";
  2600. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
  2601. return typeof obj;
  2602. } : function (obj) {
  2603. return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  2604. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
  2605. }
  2606. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2607. /***/ }),
  2608. /* 14 */
  2609. /*!************************************************************!*\
  2610. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  2611. \************************************************************/
  2612. /*! no static exports found */
  2613. /***/ (function(module, exports, __webpack_require__) {
  2614. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2615. function _toPrimitive(input, hint) {
  2616. if (_typeof(input) !== "object" || input === null) return input;
  2617. var prim = input[Symbol.toPrimitive];
  2618. if (prim !== undefined) {
  2619. var res = prim.call(input, hint || "default");
  2620. if (_typeof(res) !== "object") return res;
  2621. throw new TypeError("@@toPrimitive must return a primitive value.");
  2622. }
  2623. return (hint === "string" ? String : Number)(input);
  2624. }
  2625. module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2626. /***/ }),
  2627. /* 15 */
  2628. /*!**********************************************************!*\
  2629. !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  2630. \**********************************************************/
  2631. /*! no static exports found */
  2632. /***/ (function(module, exports, __webpack_require__) {
  2633. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  2634. var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 17);
  2635. function _construct(Parent, args, Class) {
  2636. if (isNativeReflectConstruct()) {
  2637. module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
  2638. } else {
  2639. module.exports = _construct = function _construct(Parent, args, Class) {
  2640. var a = [null];
  2641. a.push.apply(a, args);
  2642. var Constructor = Function.bind.apply(Parent, a);
  2643. var instance = new Constructor();
  2644. if (Class) setPrototypeOf(instance, Class.prototype);
  2645. return instance;
  2646. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2647. }
  2648. return _construct.apply(null, arguments);
  2649. }
  2650. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2651. /***/ }),
  2652. /* 16 */
  2653. /*!***************************************************************!*\
  2654. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  2655. \***************************************************************/
  2656. /*! no static exports found */
  2657. /***/ (function(module, exports) {
  2658. function _setPrototypeOf(o, p) {
  2659. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  2660. o.__proto__ = p;
  2661. return o;
  2662. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2663. return _setPrototypeOf(o, p);
  2664. }
  2665. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2666. /***/ }),
  2667. /* 17 */
  2668. /*!*************************************************************************!*\
  2669. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  2670. \*************************************************************************/
  2671. /*! no static exports found */
  2672. /***/ (function(module, exports) {
  2673. function _isNativeReflectConstruct() {
  2674. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  2675. if (Reflect.construct.sham) return false;
  2676. if (typeof Proxy === "function") return true;
  2677. try {
  2678. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  2679. return true;
  2680. } catch (e) {
  2681. return false;
  2682. }
  2683. }
  2684. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2685. /***/ }),
  2686. /* 18 */
  2687. /*!******************************************************************!*\
  2688. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  2689. \******************************************************************/
  2690. /*! no static exports found */
  2691. /***/ (function(module, exports, __webpack_require__) {
  2692. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
  2693. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  2694. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2695. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
  2696. function _toConsumableArray(arr) {
  2697. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  2698. }
  2699. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2700. /***/ }),
  2701. /* 19 */
  2702. /*!******************************************************************!*\
  2703. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  2704. \******************************************************************/
  2705. /*! no static exports found */
  2706. /***/ (function(module, exports, __webpack_require__) {
  2707. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2708. function _arrayWithoutHoles(arr) {
  2709. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  2710. }
  2711. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2712. /***/ }),
  2713. /* 20 */
  2714. /*!****************************************************************!*\
  2715. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  2716. \****************************************************************/
  2717. /*! no static exports found */
  2718. /***/ (function(module, exports) {
  2719. function _iterableToArray(iter) {
  2720. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  2721. }
  2722. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2723. /***/ }),
  2724. /* 21 */
  2725. /*!******************************************************************!*\
  2726. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  2727. \******************************************************************/
  2728. /*! no static exports found */
  2729. /***/ (function(module, exports) {
  2730. function _nonIterableSpread() {
  2731. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2732. }
  2733. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2734. /***/ }),
  2735. /* 22 */
  2736. /*!*************************************************************!*\
  2737. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  2738. \*************************************************************/
  2739. /*! no static exports found */
  2740. /***/ (function(module, exports, __webpack_require__) {
  2741. "use strict";
  2742. /* WEBPACK VAR INJECTION */(function(uni, global) {
  2743. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  2744. Object.defineProperty(exports, "__esModule", {
  2745. value: true
  2746. });
  2747. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  2748. exports.compileI18nJsonStr = compileI18nJsonStr;
  2749. exports.hasI18nJson = hasI18nJson;
  2750. exports.initVueI18n = initVueI18n;
  2751. exports.isI18nStr = isI18nStr;
  2752. exports.isString = void 0;
  2753. exports.normalizeLocale = normalizeLocale;
  2754. exports.parseI18nJson = parseI18nJson;
  2755. exports.resolveLocale = resolveLocale;
  2756. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  2757. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  2758. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  2759. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  2760. var isObject = function isObject(val) {
  2761. return val !== null && (0, _typeof2.default)(val) === 'object';
  2762. };
  2763. var defaultDelimiters = ['{', '}'];
  2764. var BaseFormatter = /*#__PURE__*/function () {
  2765. function BaseFormatter() {
  2766. (0, _classCallCheck2.default)(this, BaseFormatter);
  2767. this._caches = Object.create(null);
  2768. }
  2769. (0, _createClass2.default)(BaseFormatter, [{
  2770. key: "interpolate",
  2771. value: function interpolate(message, values) {
  2772. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  2773. if (!values) {
  2774. return [message];
  2775. }
  2776. var tokens = this._caches[message];
  2777. if (!tokens) {
  2778. tokens = parse(message, delimiters);
  2779. this._caches[message] = tokens;
  2780. }
  2781. return compile(tokens, values);
  2782. }
  2783. }]);
  2784. return BaseFormatter;
  2785. }();
  2786. exports.Formatter = BaseFormatter;
  2787. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  2788. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  2789. function parse(format, _ref) {
  2790. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  2791. startDelimiter = _ref2[0],
  2792. endDelimiter = _ref2[1];
  2793. var tokens = [];
  2794. var position = 0;
  2795. var text = '';
  2796. while (position < format.length) {
  2797. var char = format[position++];
  2798. if (char === startDelimiter) {
  2799. if (text) {
  2800. tokens.push({
  2801. type: 'text',
  2802. value: text
  2803. });
  2804. }
  2805. text = '';
  2806. var sub = '';
  2807. char = format[position++];
  2808. while (char !== undefined && char !== endDelimiter) {
  2809. sub += char;
  2810. char = format[position++];
  2811. }
  2812. var isClosed = char === endDelimiter;
  2813. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  2814. tokens.push({
  2815. value: sub,
  2816. type: type
  2817. });
  2818. }
  2819. // else if (char === '%') {
  2820. // // when found rails i18n syntax, skip text capture
  2821. // if (format[position] !== '{') {
  2822. // text += char
  2823. // }
  2824. // }
  2825. else {
  2826. text += char;
  2827. }
  2828. }
  2829. text && tokens.push({
  2830. type: 'text',
  2831. value: text
  2832. });
  2833. return tokens;
  2834. }
  2835. function compile(tokens, values) {
  2836. var compiled = [];
  2837. var index = 0;
  2838. var mode = Array.isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  2839. if (mode === 'unknown') {
  2840. return compiled;
  2841. }
  2842. while (index < tokens.length) {
  2843. var token = tokens[index];
  2844. switch (token.type) {
  2845. case 'text':
  2846. compiled.push(token.value);
  2847. break;
  2848. case 'list':
  2849. compiled.push(values[parseInt(token.value, 10)]);
  2850. break;
  2851. case 'named':
  2852. if (mode === 'named') {
  2853. compiled.push(values[token.value]);
  2854. } else {
  2855. if (true) {
  2856. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  2857. }
  2858. }
  2859. break;
  2860. case 'unknown':
  2861. if (true) {
  2862. console.warn("Detect 'unknown' type of token!");
  2863. }
  2864. break;
  2865. }
  2866. index++;
  2867. }
  2868. return compiled;
  2869. }
  2870. var LOCALE_ZH_HANS = 'zh-Hans';
  2871. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  2872. var LOCALE_ZH_HANT = 'zh-Hant';
  2873. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  2874. var LOCALE_EN = 'en';
  2875. exports.LOCALE_EN = LOCALE_EN;
  2876. var LOCALE_FR = 'fr';
  2877. exports.LOCALE_FR = LOCALE_FR;
  2878. var LOCALE_ES = 'es';
  2879. exports.LOCALE_ES = LOCALE_ES;
  2880. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2881. var hasOwn = function hasOwn(val, key) {
  2882. return hasOwnProperty.call(val, key);
  2883. };
  2884. var defaultFormatter = new BaseFormatter();
  2885. function include(str, parts) {
  2886. return !!parts.find(function (part) {
  2887. return str.indexOf(part) !== -1;
  2888. });
  2889. }
  2890. function startsWith(str, parts) {
  2891. return parts.find(function (part) {
  2892. return str.indexOf(part) === 0;
  2893. });
  2894. }
  2895. function normalizeLocale(locale, messages) {
  2896. if (!locale) {
  2897. return;
  2898. }
  2899. locale = locale.trim().replace(/_/g, '-');
  2900. if (messages && messages[locale]) {
  2901. return locale;
  2902. }
  2903. locale = locale.toLowerCase();
  2904. if (locale === 'chinese') {
  2905. // 支付宝
  2906. return LOCALE_ZH_HANS;
  2907. }
  2908. if (locale.indexOf('zh') === 0) {
  2909. if (locale.indexOf('-hans') > -1) {
  2910. return LOCALE_ZH_HANS;
  2911. }
  2912. if (locale.indexOf('-hant') > -1) {
  2913. return LOCALE_ZH_HANT;
  2914. }
  2915. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  2916. return LOCALE_ZH_HANT;
  2917. }
  2918. return LOCALE_ZH_HANS;
  2919. }
  2920. var locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES];
  2921. if (messages && Object.keys(messages).length > 0) {
  2922. locales = Object.keys(messages);
  2923. }
  2924. var lang = startsWith(locale, locales);
  2925. if (lang) {
  2926. return lang;
  2927. }
  2928. }
  2929. var I18n = /*#__PURE__*/function () {
  2930. function I18n(_ref3) {
  2931. var locale = _ref3.locale,
  2932. fallbackLocale = _ref3.fallbackLocale,
  2933. messages = _ref3.messages,
  2934. watcher = _ref3.watcher,
  2935. formater = _ref3.formater;
  2936. (0, _classCallCheck2.default)(this, I18n);
  2937. this.locale = LOCALE_EN;
  2938. this.fallbackLocale = LOCALE_EN;
  2939. this.message = {};
  2940. this.messages = {};
  2941. this.watchers = [];
  2942. if (fallbackLocale) {
  2943. this.fallbackLocale = fallbackLocale;
  2944. }
  2945. this.formater = formater || defaultFormatter;
  2946. this.messages = messages || {};
  2947. this.setLocale(locale || LOCALE_EN);
  2948. if (watcher) {
  2949. this.watchLocale(watcher);
  2950. }
  2951. }
  2952. (0, _createClass2.default)(I18n, [{
  2953. key: "setLocale",
  2954. value: function setLocale(locale) {
  2955. var _this = this;
  2956. var oldLocale = this.locale;
  2957. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  2958. if (!this.messages[this.locale]) {
  2959. // 可能初始化时不存在
  2960. this.messages[this.locale] = {};
  2961. }
  2962. this.message = this.messages[this.locale];
  2963. // 仅发生变化时,通知
  2964. if (oldLocale !== this.locale) {
  2965. this.watchers.forEach(function (watcher) {
  2966. watcher(_this.locale, oldLocale);
  2967. });
  2968. }
  2969. }
  2970. }, {
  2971. key: "getLocale",
  2972. value: function getLocale() {
  2973. return this.locale;
  2974. }
  2975. }, {
  2976. key: "watchLocale",
  2977. value: function watchLocale(fn) {
  2978. var _this2 = this;
  2979. var index = this.watchers.push(fn) - 1;
  2980. return function () {
  2981. _this2.watchers.splice(index, 1);
  2982. };
  2983. }
  2984. }, {
  2985. key: "add",
  2986. value: function add(locale, message) {
  2987. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  2988. var curMessages = this.messages[locale];
  2989. if (curMessages) {
  2990. if (override) {
  2991. Object.assign(curMessages, message);
  2992. } else {
  2993. Object.keys(message).forEach(function (key) {
  2994. if (!hasOwn(curMessages, key)) {
  2995. curMessages[key] = message[key];
  2996. }
  2997. });
  2998. }
  2999. } else {
  3000. this.messages[locale] = message;
  3001. }
  3002. }
  3003. }, {
  3004. key: "f",
  3005. value: function f(message, values, delimiters) {
  3006. return this.formater.interpolate(message, values, delimiters).join('');
  3007. }
  3008. }, {
  3009. key: "t",
  3010. value: function t(key, locale, values) {
  3011. var message = this.message;
  3012. if (typeof locale === 'string') {
  3013. locale = normalizeLocale(locale, this.messages);
  3014. locale && (message = this.messages[locale]);
  3015. } else {
  3016. values = locale;
  3017. }
  3018. if (!hasOwn(message, key)) {
  3019. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  3020. return key;
  3021. }
  3022. return this.formater.interpolate(message[key], values).join('');
  3023. }
  3024. }]);
  3025. return I18n;
  3026. }();
  3027. exports.I18n = I18n;
  3028. function watchAppLocale(appVm, i18n) {
  3029. // 需要保证 watch 的触发在组件渲染之前
  3030. if (appVm.$watchLocale) {
  3031. // vue2
  3032. appVm.$watchLocale(function (newLocale) {
  3033. i18n.setLocale(newLocale);
  3034. });
  3035. } else {
  3036. appVm.$watch(function () {
  3037. return appVm.$locale;
  3038. }, function (newLocale) {
  3039. i18n.setLocale(newLocale);
  3040. });
  3041. }
  3042. }
  3043. function getDefaultLocale() {
  3044. if (typeof uni !== 'undefined' && uni.getLocale) {
  3045. return uni.getLocale();
  3046. }
  3047. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  3048. if (typeof global !== 'undefined' && global.getLocale) {
  3049. return global.getLocale();
  3050. }
  3051. return LOCALE_EN;
  3052. }
  3053. function initVueI18n(locale) {
  3054. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3055. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  3056. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  3057. // 兼容旧版本入参
  3058. if (typeof locale !== 'string') {
  3059. var _ref4 = [messages, locale];
  3060. locale = _ref4[0];
  3061. messages = _ref4[1];
  3062. }
  3063. if (typeof locale !== 'string') {
  3064. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  3065. locale = getDefaultLocale();
  3066. }
  3067. if (typeof fallbackLocale !== 'string') {
  3068. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  3069. }
  3070. var i18n = new I18n({
  3071. locale: locale,
  3072. fallbackLocale: fallbackLocale,
  3073. messages: messages,
  3074. watcher: watcher
  3075. });
  3076. var _t = function t(key, values) {
  3077. if (typeof getApp !== 'function') {
  3078. // app view
  3079. /* eslint-disable no-func-assign */
  3080. _t = function t(key, values) {
  3081. return i18n.t(key, values);
  3082. };
  3083. } else {
  3084. var isWatchedAppLocale = false;
  3085. _t = function t(key, values) {
  3086. var appVm = getApp().$vm;
  3087. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  3088. // options: {
  3089. // type: Array,
  3090. // default () {
  3091. // return [{
  3092. // icon: 'shop',
  3093. // text: t("uni-goods-nav.options.shop"),
  3094. // }, {
  3095. // icon: 'cart',
  3096. // text: t("uni-goods-nav.options.cart")
  3097. // }]
  3098. // }
  3099. // },
  3100. if (appVm) {
  3101. // 触发响应式
  3102. appVm.$locale;
  3103. if (!isWatchedAppLocale) {
  3104. isWatchedAppLocale = true;
  3105. watchAppLocale(appVm, i18n);
  3106. }
  3107. }
  3108. return i18n.t(key, values);
  3109. };
  3110. }
  3111. return _t(key, values);
  3112. };
  3113. return {
  3114. i18n: i18n,
  3115. f: function f(message, values, delimiters) {
  3116. return i18n.f(message, values, delimiters);
  3117. },
  3118. t: function t(key, values) {
  3119. return _t(key, values);
  3120. },
  3121. add: function add(locale, message) {
  3122. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3123. return i18n.add(locale, message, override);
  3124. },
  3125. watch: function watch(fn) {
  3126. return i18n.watchLocale(fn);
  3127. },
  3128. getLocale: function getLocale() {
  3129. return i18n.getLocale();
  3130. },
  3131. setLocale: function setLocale(newLocale) {
  3132. return i18n.setLocale(newLocale);
  3133. }
  3134. };
  3135. }
  3136. var isString = function isString(val) {
  3137. return typeof val === 'string';
  3138. };
  3139. exports.isString = isString;
  3140. var formater;
  3141. function hasI18nJson(jsonObj, delimiters) {
  3142. if (!formater) {
  3143. formater = new BaseFormatter();
  3144. }
  3145. return walkJsonObj(jsonObj, function (jsonObj, key) {
  3146. var value = jsonObj[key];
  3147. if (isString(value)) {
  3148. if (isI18nStr(value, delimiters)) {
  3149. return true;
  3150. }
  3151. } else {
  3152. return hasI18nJson(value, delimiters);
  3153. }
  3154. });
  3155. }
  3156. function parseI18nJson(jsonObj, values, delimiters) {
  3157. if (!formater) {
  3158. formater = new BaseFormatter();
  3159. }
  3160. walkJsonObj(jsonObj, function (jsonObj, key) {
  3161. var value = jsonObj[key];
  3162. if (isString(value)) {
  3163. if (isI18nStr(value, delimiters)) {
  3164. jsonObj[key] = compileStr(value, values, delimiters);
  3165. }
  3166. } else {
  3167. parseI18nJson(value, values, delimiters);
  3168. }
  3169. });
  3170. return jsonObj;
  3171. }
  3172. function compileI18nJsonStr(jsonStr, _ref5) {
  3173. var locale = _ref5.locale,
  3174. locales = _ref5.locales,
  3175. delimiters = _ref5.delimiters;
  3176. if (!isI18nStr(jsonStr, delimiters)) {
  3177. return jsonStr;
  3178. }
  3179. if (!formater) {
  3180. formater = new BaseFormatter();
  3181. }
  3182. var localeValues = [];
  3183. Object.keys(locales).forEach(function (name) {
  3184. if (name !== locale) {
  3185. localeValues.push({
  3186. locale: name,
  3187. values: locales[name]
  3188. });
  3189. }
  3190. });
  3191. localeValues.unshift({
  3192. locale: locale,
  3193. values: locales[locale]
  3194. });
  3195. try {
  3196. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  3197. } catch (e) {}
  3198. return jsonStr;
  3199. }
  3200. function isI18nStr(value, delimiters) {
  3201. return value.indexOf(delimiters[0]) > -1;
  3202. }
  3203. function compileStr(value, values, delimiters) {
  3204. return formater.interpolate(value, values, delimiters).join('');
  3205. }
  3206. function compileValue(jsonObj, key, localeValues, delimiters) {
  3207. var value = jsonObj[key];
  3208. if (isString(value)) {
  3209. // 存在国际化
  3210. if (isI18nStr(value, delimiters)) {
  3211. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  3212. if (localeValues.length > 1) {
  3213. // 格式化国际化语言
  3214. var valueLocales = jsonObj[key + 'Locales'] = {};
  3215. localeValues.forEach(function (localValue) {
  3216. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  3217. });
  3218. }
  3219. }
  3220. } else {
  3221. compileJsonObj(value, localeValues, delimiters);
  3222. }
  3223. }
  3224. function compileJsonObj(jsonObj, localeValues, delimiters) {
  3225. walkJsonObj(jsonObj, function (jsonObj, key) {
  3226. compileValue(jsonObj, key, localeValues, delimiters);
  3227. });
  3228. return jsonObj;
  3229. }
  3230. function walkJsonObj(jsonObj, walk) {
  3231. if (Array.isArray(jsonObj)) {
  3232. for (var i = 0; i < jsonObj.length; i++) {
  3233. if (walk(jsonObj, i)) {
  3234. return true;
  3235. }
  3236. }
  3237. } else if (isObject(jsonObj)) {
  3238. for (var key in jsonObj) {
  3239. if (walk(jsonObj, key)) {
  3240. return true;
  3241. }
  3242. }
  3243. }
  3244. return false;
  3245. }
  3246. function resolveLocale(locales) {
  3247. return function (locale) {
  3248. if (!locale) {
  3249. return locale;
  3250. }
  3251. locale = normalizeLocale(locale) || locale;
  3252. return resolveLocaleChain(locale).find(function (locale) {
  3253. return locales.indexOf(locale) > -1;
  3254. });
  3255. };
  3256. }
  3257. function resolveLocaleChain(locale) {
  3258. var chain = [];
  3259. var tokens = locale.split('-');
  3260. while (tokens.length) {
  3261. chain.push(tokens.join('-'));
  3262. tokens.pop();
  3263. }
  3264. return chain;
  3265. }
  3266. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 3)))
  3267. /***/ }),
  3268. /* 23 */
  3269. /*!***************************************************************!*\
  3270. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  3271. \***************************************************************/
  3272. /*! no static exports found */
  3273. /***/ (function(module, exports) {
  3274. function _classCallCheck(instance, Constructor) {
  3275. if (!(instance instanceof Constructor)) {
  3276. throw new TypeError("Cannot call a class as a function");
  3277. }
  3278. }
  3279. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3280. /***/ }),
  3281. /* 24 */
  3282. /*!************************************************************!*\
  3283. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  3284. \************************************************************/
  3285. /*! no static exports found */
  3286. /***/ (function(module, exports, __webpack_require__) {
  3287. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  3288. function _defineProperties(target, props) {
  3289. for (var i = 0; i < props.length; i++) {
  3290. var descriptor = props[i];
  3291. descriptor.enumerable = descriptor.enumerable || false;
  3292. descriptor.configurable = true;
  3293. if ("value" in descriptor) descriptor.writable = true;
  3294. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  3295. }
  3296. }
  3297. function _createClass(Constructor, protoProps, staticProps) {
  3298. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  3299. if (staticProps) _defineProperties(Constructor, staticProps);
  3300. Object.defineProperty(Constructor, "prototype", {
  3301. writable: false
  3302. });
  3303. return Constructor;
  3304. }
  3305. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3306. /***/ }),
  3307. /* 25 */
  3308. /*!******************************************************************************************!*\
  3309. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  3310. \******************************************************************************************/
  3311. /*! exports provided: default */
  3312. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3313. "use strict";
  3314. __webpack_require__.r(__webpack_exports__);
  3315. /* WEBPACK VAR INJECTION */(function(global) {/*!
  3316. * Vue.js v2.6.11
  3317. * (c) 2014-2023 Evan You
  3318. * Released under the MIT License.
  3319. */
  3320. /* */
  3321. var emptyObject = Object.freeze({});
  3322. // These helpers produce better VM code in JS engines due to their
  3323. // explicitness and function inlining.
  3324. function isUndef (v) {
  3325. return v === undefined || v === null
  3326. }
  3327. function isDef (v) {
  3328. return v !== undefined && v !== null
  3329. }
  3330. function isTrue (v) {
  3331. return v === true
  3332. }
  3333. function isFalse (v) {
  3334. return v === false
  3335. }
  3336. /**
  3337. * Check if value is primitive.
  3338. */
  3339. function isPrimitive (value) {
  3340. return (
  3341. typeof value === 'string' ||
  3342. typeof value === 'number' ||
  3343. // $flow-disable-line
  3344. typeof value === 'symbol' ||
  3345. typeof value === 'boolean'
  3346. )
  3347. }
  3348. /**
  3349. * Quick object check - this is primarily used to tell
  3350. * Objects from primitive values when we know the value
  3351. * is a JSON-compliant type.
  3352. */
  3353. function isObject (obj) {
  3354. return obj !== null && typeof obj === 'object'
  3355. }
  3356. /**
  3357. * Get the raw type string of a value, e.g., [object Object].
  3358. */
  3359. var _toString = Object.prototype.toString;
  3360. function toRawType (value) {
  3361. return _toString.call(value).slice(8, -1)
  3362. }
  3363. /**
  3364. * Strict object type check. Only returns true
  3365. * for plain JavaScript objects.
  3366. */
  3367. function isPlainObject (obj) {
  3368. return _toString.call(obj) === '[object Object]'
  3369. }
  3370. function isRegExp (v) {
  3371. return _toString.call(v) === '[object RegExp]'
  3372. }
  3373. /**
  3374. * Check if val is a valid array index.
  3375. */
  3376. function isValidArrayIndex (val) {
  3377. var n = parseFloat(String(val));
  3378. return n >= 0 && Math.floor(n) === n && isFinite(val)
  3379. }
  3380. function isPromise (val) {
  3381. return (
  3382. isDef(val) &&
  3383. typeof val.then === 'function' &&
  3384. typeof val.catch === 'function'
  3385. )
  3386. }
  3387. /**
  3388. * Convert a value to a string that is actually rendered.
  3389. */
  3390. function toString (val) {
  3391. return val == null
  3392. ? ''
  3393. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  3394. ? JSON.stringify(val, null, 2)
  3395. : String(val)
  3396. }
  3397. /**
  3398. * Convert an input value to a number for persistence.
  3399. * If the conversion fails, return original string.
  3400. */
  3401. function toNumber (val) {
  3402. var n = parseFloat(val);
  3403. return isNaN(n) ? val : n
  3404. }
  3405. /**
  3406. * Make a map and return a function for checking if a key
  3407. * is in that map.
  3408. */
  3409. function makeMap (
  3410. str,
  3411. expectsLowerCase
  3412. ) {
  3413. var map = Object.create(null);
  3414. var list = str.split(',');
  3415. for (var i = 0; i < list.length; i++) {
  3416. map[list[i]] = true;
  3417. }
  3418. return expectsLowerCase
  3419. ? function (val) { return map[val.toLowerCase()]; }
  3420. : function (val) { return map[val]; }
  3421. }
  3422. /**
  3423. * Check if a tag is a built-in tag.
  3424. */
  3425. var isBuiltInTag = makeMap('slot,component', true);
  3426. /**
  3427. * Check if an attribute is a reserved attribute.
  3428. */
  3429. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  3430. /**
  3431. * Remove an item from an array.
  3432. */
  3433. function remove (arr, item) {
  3434. if (arr.length) {
  3435. var index = arr.indexOf(item);
  3436. if (index > -1) {
  3437. return arr.splice(index, 1)
  3438. }
  3439. }
  3440. }
  3441. /**
  3442. * Check whether an object has the property.
  3443. */
  3444. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3445. function hasOwn (obj, key) {
  3446. return hasOwnProperty.call(obj, key)
  3447. }
  3448. /**
  3449. * Create a cached version of a pure function.
  3450. */
  3451. function cached (fn) {
  3452. var cache = Object.create(null);
  3453. return (function cachedFn (str) {
  3454. var hit = cache[str];
  3455. return hit || (cache[str] = fn(str))
  3456. })
  3457. }
  3458. /**
  3459. * Camelize a hyphen-delimited string.
  3460. */
  3461. var camelizeRE = /-(\w)/g;
  3462. var camelize = cached(function (str) {
  3463. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  3464. });
  3465. /**
  3466. * Capitalize a string.
  3467. */
  3468. var capitalize = cached(function (str) {
  3469. return str.charAt(0).toUpperCase() + str.slice(1)
  3470. });
  3471. /**
  3472. * Hyphenate a camelCase string.
  3473. */
  3474. var hyphenateRE = /\B([A-Z])/g;
  3475. var hyphenate = cached(function (str) {
  3476. return str.replace(hyphenateRE, '-$1').toLowerCase()
  3477. });
  3478. /**
  3479. * Simple bind polyfill for environments that do not support it,
  3480. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  3481. * since native bind is now performant enough in most browsers.
  3482. * But removing it would mean breaking code that was able to run in
  3483. * PhantomJS 1.x, so this must be kept for backward compatibility.
  3484. */
  3485. /* istanbul ignore next */
  3486. function polyfillBind (fn, ctx) {
  3487. function boundFn (a) {
  3488. var l = arguments.length;
  3489. return l
  3490. ? l > 1
  3491. ? fn.apply(ctx, arguments)
  3492. : fn.call(ctx, a)
  3493. : fn.call(ctx)
  3494. }
  3495. boundFn._length = fn.length;
  3496. return boundFn
  3497. }
  3498. function nativeBind (fn, ctx) {
  3499. return fn.bind(ctx)
  3500. }
  3501. var bind = Function.prototype.bind
  3502. ? nativeBind
  3503. : polyfillBind;
  3504. /**
  3505. * Convert an Array-like object to a real Array.
  3506. */
  3507. function toArray (list, start) {
  3508. start = start || 0;
  3509. var i = list.length - start;
  3510. var ret = new Array(i);
  3511. while (i--) {
  3512. ret[i] = list[i + start];
  3513. }
  3514. return ret
  3515. }
  3516. /**
  3517. * Mix properties into target object.
  3518. */
  3519. function extend (to, _from) {
  3520. for (var key in _from) {
  3521. to[key] = _from[key];
  3522. }
  3523. return to
  3524. }
  3525. /**
  3526. * Merge an Array of Objects into a single Object.
  3527. */
  3528. function toObject (arr) {
  3529. var res = {};
  3530. for (var i = 0; i < arr.length; i++) {
  3531. if (arr[i]) {
  3532. extend(res, arr[i]);
  3533. }
  3534. }
  3535. return res
  3536. }
  3537. /* eslint-disable no-unused-vars */
  3538. /**
  3539. * Perform no operation.
  3540. * Stubbing args to make Flow happy without leaving useless transpiled code
  3541. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  3542. */
  3543. function noop (a, b, c) {}
  3544. /**
  3545. * Always return false.
  3546. */
  3547. var no = function (a, b, c) { return false; };
  3548. /* eslint-enable no-unused-vars */
  3549. /**
  3550. * Return the same value.
  3551. */
  3552. var identity = function (_) { return _; };
  3553. /**
  3554. * Check if two values are loosely equal - that is,
  3555. * if they are plain objects, do they have the same shape?
  3556. */
  3557. function looseEqual (a, b) {
  3558. if (a === b) { return true }
  3559. var isObjectA = isObject(a);
  3560. var isObjectB = isObject(b);
  3561. if (isObjectA && isObjectB) {
  3562. try {
  3563. var isArrayA = Array.isArray(a);
  3564. var isArrayB = Array.isArray(b);
  3565. if (isArrayA && isArrayB) {
  3566. return a.length === b.length && a.every(function (e, i) {
  3567. return looseEqual(e, b[i])
  3568. })
  3569. } else if (a instanceof Date && b instanceof Date) {
  3570. return a.getTime() === b.getTime()
  3571. } else if (!isArrayA && !isArrayB) {
  3572. var keysA = Object.keys(a);
  3573. var keysB = Object.keys(b);
  3574. return keysA.length === keysB.length && keysA.every(function (key) {
  3575. return looseEqual(a[key], b[key])
  3576. })
  3577. } else {
  3578. /* istanbul ignore next */
  3579. return false
  3580. }
  3581. } catch (e) {
  3582. /* istanbul ignore next */
  3583. return false
  3584. }
  3585. } else if (!isObjectA && !isObjectB) {
  3586. return String(a) === String(b)
  3587. } else {
  3588. return false
  3589. }
  3590. }
  3591. /**
  3592. * Return the first index at which a loosely equal value can be
  3593. * found in the array (if value is a plain object, the array must
  3594. * contain an object of the same shape), or -1 if it is not present.
  3595. */
  3596. function looseIndexOf (arr, val) {
  3597. for (var i = 0; i < arr.length; i++) {
  3598. if (looseEqual(arr[i], val)) { return i }
  3599. }
  3600. return -1
  3601. }
  3602. /**
  3603. * Ensure a function is called only once.
  3604. */
  3605. function once (fn) {
  3606. var called = false;
  3607. return function () {
  3608. if (!called) {
  3609. called = true;
  3610. fn.apply(this, arguments);
  3611. }
  3612. }
  3613. }
  3614. var ASSET_TYPES = [
  3615. 'component',
  3616. 'directive',
  3617. 'filter'
  3618. ];
  3619. var LIFECYCLE_HOOKS = [
  3620. 'beforeCreate',
  3621. 'created',
  3622. 'beforeMount',
  3623. 'mounted',
  3624. 'beforeUpdate',
  3625. 'updated',
  3626. 'beforeDestroy',
  3627. 'destroyed',
  3628. 'activated',
  3629. 'deactivated',
  3630. 'errorCaptured',
  3631. 'serverPrefetch'
  3632. ];
  3633. /* */
  3634. var config = ({
  3635. /**
  3636. * Option merge strategies (used in core/util/options)
  3637. */
  3638. // $flow-disable-line
  3639. optionMergeStrategies: Object.create(null),
  3640. /**
  3641. * Whether to suppress warnings.
  3642. */
  3643. silent: false,
  3644. /**
  3645. * Show production mode tip message on boot?
  3646. */
  3647. productionTip: "development" !== 'production',
  3648. /**
  3649. * Whether to enable devtools
  3650. */
  3651. devtools: "development" !== 'production',
  3652. /**
  3653. * Whether to record perf
  3654. */
  3655. performance: false,
  3656. /**
  3657. * Error handler for watcher errors
  3658. */
  3659. errorHandler: null,
  3660. /**
  3661. * Warn handler for watcher warns
  3662. */
  3663. warnHandler: null,
  3664. /**
  3665. * Ignore certain custom elements
  3666. */
  3667. ignoredElements: [],
  3668. /**
  3669. * Custom user key aliases for v-on
  3670. */
  3671. // $flow-disable-line
  3672. keyCodes: Object.create(null),
  3673. /**
  3674. * Check if a tag is reserved so that it cannot be registered as a
  3675. * component. This is platform-dependent and may be overwritten.
  3676. */
  3677. isReservedTag: no,
  3678. /**
  3679. * Check if an attribute is reserved so that it cannot be used as a component
  3680. * prop. This is platform-dependent and may be overwritten.
  3681. */
  3682. isReservedAttr: no,
  3683. /**
  3684. * Check if a tag is an unknown element.
  3685. * Platform-dependent.
  3686. */
  3687. isUnknownElement: no,
  3688. /**
  3689. * Get the namespace of an element
  3690. */
  3691. getTagNamespace: noop,
  3692. /**
  3693. * Parse the real tag name for the specific platform.
  3694. */
  3695. parsePlatformTagName: identity,
  3696. /**
  3697. * Check if an attribute must be bound using property, e.g. value
  3698. * Platform-dependent.
  3699. */
  3700. mustUseProp: no,
  3701. /**
  3702. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  3703. * This will significantly reduce performance if set to false.
  3704. */
  3705. async: true,
  3706. /**
  3707. * Exposed for legacy reasons
  3708. */
  3709. _lifecycleHooks: LIFECYCLE_HOOKS
  3710. });
  3711. /* */
  3712. /**
  3713. * unicode letters used for parsing html tags, component names and property paths.
  3714. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  3715. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  3716. */
  3717. 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/;
  3718. /**
  3719. * Check if a string starts with $ or _
  3720. */
  3721. function isReserved (str) {
  3722. var c = (str + '').charCodeAt(0);
  3723. return c === 0x24 || c === 0x5F
  3724. }
  3725. /**
  3726. * Define a property.
  3727. */
  3728. function def (obj, key, val, enumerable) {
  3729. Object.defineProperty(obj, key, {
  3730. value: val,
  3731. enumerable: !!enumerable,
  3732. writable: true,
  3733. configurable: true
  3734. });
  3735. }
  3736. /**
  3737. * Parse simple path.
  3738. */
  3739. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  3740. function parsePath (path) {
  3741. if (bailRE.test(path)) {
  3742. return
  3743. }
  3744. var segments = path.split('.');
  3745. return function (obj) {
  3746. for (var i = 0; i < segments.length; i++) {
  3747. if (!obj) { return }
  3748. obj = obj[segments[i]];
  3749. }
  3750. return obj
  3751. }
  3752. }
  3753. /* */
  3754. // can we use __proto__?
  3755. var hasProto = '__proto__' in {};
  3756. // Browser environment sniffing
  3757. var inBrowser = typeof window !== 'undefined';
  3758. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  3759. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  3760. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  3761. var isIE = UA && /msie|trident/.test(UA);
  3762. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  3763. var isEdge = UA && UA.indexOf('edge/') > 0;
  3764. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  3765. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  3766. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  3767. var isPhantomJS = UA && /phantomjs/.test(UA);
  3768. var isFF = UA && UA.match(/firefox\/(\d+)/);
  3769. // Firefox has a "watch" function on Object.prototype...
  3770. var nativeWatch = ({}).watch;
  3771. if (inBrowser) {
  3772. try {
  3773. var opts = {};
  3774. Object.defineProperty(opts, 'passive', ({
  3775. get: function get () {
  3776. }
  3777. })); // https://github.com/facebook/flow/issues/285
  3778. window.addEventListener('test-passive', null, opts);
  3779. } catch (e) {}
  3780. }
  3781. // this needs to be lazy-evaled because vue may be required before
  3782. // vue-server-renderer can set VUE_ENV
  3783. var _isServer;
  3784. var isServerRendering = function () {
  3785. if (_isServer === undefined) {
  3786. /* istanbul ignore if */
  3787. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  3788. // detect presence of vue-server-renderer and avoid
  3789. // Webpack shimming the process
  3790. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  3791. } else {
  3792. _isServer = false;
  3793. }
  3794. }
  3795. return _isServer
  3796. };
  3797. // detect devtools
  3798. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  3799. /* istanbul ignore next */
  3800. function isNative (Ctor) {
  3801. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  3802. }
  3803. var hasSymbol =
  3804. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  3805. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  3806. var _Set;
  3807. /* istanbul ignore if */ // $flow-disable-line
  3808. if (typeof Set !== 'undefined' && isNative(Set)) {
  3809. // use native Set when available.
  3810. _Set = Set;
  3811. } else {
  3812. // a non-standard Set polyfill that only works with primitive keys.
  3813. _Set = /*@__PURE__*/(function () {
  3814. function Set () {
  3815. this.set = Object.create(null);
  3816. }
  3817. Set.prototype.has = function has (key) {
  3818. return this.set[key] === true
  3819. };
  3820. Set.prototype.add = function add (key) {
  3821. this.set[key] = true;
  3822. };
  3823. Set.prototype.clear = function clear () {
  3824. this.set = Object.create(null);
  3825. };
  3826. return Set;
  3827. }());
  3828. }
  3829. /* */
  3830. var warn = noop;
  3831. var tip = noop;
  3832. var generateComponentTrace = (noop); // work around flow check
  3833. var formatComponentName = (noop);
  3834. if (true) {
  3835. var hasConsole = typeof console !== 'undefined';
  3836. var classifyRE = /(?:^|[-_])(\w)/g;
  3837. var classify = function (str) { return str
  3838. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  3839. .replace(/[-_]/g, ''); };
  3840. warn = function (msg, vm) {
  3841. var trace = vm ? generateComponentTrace(vm) : '';
  3842. if (config.warnHandler) {
  3843. config.warnHandler.call(null, msg, vm, trace);
  3844. } else if (hasConsole && (!config.silent)) {
  3845. console.error(("[Vue warn]: " + msg + trace));
  3846. }
  3847. };
  3848. tip = function (msg, vm) {
  3849. if (hasConsole && (!config.silent)) {
  3850. console.warn("[Vue tip]: " + msg + (
  3851. vm ? generateComponentTrace(vm) : ''
  3852. ));
  3853. }
  3854. };
  3855. formatComponentName = function (vm, includeFile) {
  3856. if (vm.$root === vm) {
  3857. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  3858. return ('') + vm.$options.__file
  3859. }
  3860. return '<Root>'
  3861. }
  3862. var options = typeof vm === 'function' && vm.cid != null
  3863. ? vm.options
  3864. : vm._isVue
  3865. ? vm.$options || vm.constructor.options
  3866. : vm;
  3867. var name = options.name || options._componentTag;
  3868. var file = options.__file;
  3869. if (!name && file) {
  3870. var match = file.match(/([^/\\]+)\.vue$/);
  3871. name = match && match[1];
  3872. }
  3873. return (
  3874. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  3875. (file && includeFile !== false ? (" at " + file) : '')
  3876. )
  3877. };
  3878. var repeat = function (str, n) {
  3879. var res = '';
  3880. while (n) {
  3881. if (n % 2 === 1) { res += str; }
  3882. if (n > 1) { str += str; }
  3883. n >>= 1;
  3884. }
  3885. return res
  3886. };
  3887. generateComponentTrace = function (vm) {
  3888. if (vm._isVue && vm.$parent) {
  3889. var tree = [];
  3890. var currentRecursiveSequence = 0;
  3891. while (vm && vm.$options.name !== 'PageBody') {
  3892. if (tree.length > 0) {
  3893. var last = tree[tree.length - 1];
  3894. if (last.constructor === vm.constructor) {
  3895. currentRecursiveSequence++;
  3896. vm = vm.$parent;
  3897. continue
  3898. } else if (currentRecursiveSequence > 0) {
  3899. tree[tree.length - 1] = [last, currentRecursiveSequence];
  3900. currentRecursiveSequence = 0;
  3901. }
  3902. }
  3903. !vm.$options.isReserved && tree.push(vm);
  3904. vm = vm.$parent;
  3905. }
  3906. return '\n\nfound in\n\n' + tree
  3907. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  3908. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  3909. : formatComponentName(vm))); })
  3910. .join('\n')
  3911. } else {
  3912. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  3913. }
  3914. };
  3915. }
  3916. /* */
  3917. var uid = 0;
  3918. /**
  3919. * A dep is an observable that can have multiple
  3920. * directives subscribing to it.
  3921. */
  3922. var Dep = function Dep () {
  3923. this.id = uid++;
  3924. this.subs = [];
  3925. };
  3926. Dep.prototype.addSub = function addSub (sub) {
  3927. this.subs.push(sub);
  3928. };
  3929. Dep.prototype.removeSub = function removeSub (sub) {
  3930. remove(this.subs, sub);
  3931. };
  3932. Dep.prototype.depend = function depend () {
  3933. if (Dep.SharedObject.target) {
  3934. Dep.SharedObject.target.addDep(this);
  3935. }
  3936. };
  3937. Dep.prototype.notify = function notify () {
  3938. // stabilize the subscriber list first
  3939. var subs = this.subs.slice();
  3940. if ( true && !config.async) {
  3941. // subs aren't sorted in scheduler if not running async
  3942. // we need to sort them now to make sure they fire in correct
  3943. // order
  3944. subs.sort(function (a, b) { return a.id - b.id; });
  3945. }
  3946. for (var i = 0, l = subs.length; i < l; i++) {
  3947. subs[i].update();
  3948. }
  3949. };
  3950. // The current target watcher being evaluated.
  3951. // This is globally unique because only one watcher
  3952. // can be evaluated at a time.
  3953. // fixed by xxxxxx (nvue shared vuex)
  3954. /* eslint-disable no-undef */
  3955. Dep.SharedObject = {};
  3956. Dep.SharedObject.target = null;
  3957. Dep.SharedObject.targetStack = [];
  3958. function pushTarget (target) {
  3959. Dep.SharedObject.targetStack.push(target);
  3960. Dep.SharedObject.target = target;
  3961. Dep.target = target;
  3962. }
  3963. function popTarget () {
  3964. Dep.SharedObject.targetStack.pop();
  3965. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  3966. Dep.target = Dep.SharedObject.target;
  3967. }
  3968. /* */
  3969. var VNode = function VNode (
  3970. tag,
  3971. data,
  3972. children,
  3973. text,
  3974. elm,
  3975. context,
  3976. componentOptions,
  3977. asyncFactory
  3978. ) {
  3979. this.tag = tag;
  3980. this.data = data;
  3981. this.children = children;
  3982. this.text = text;
  3983. this.elm = elm;
  3984. this.ns = undefined;
  3985. this.context = context;
  3986. this.fnContext = undefined;
  3987. this.fnOptions = undefined;
  3988. this.fnScopeId = undefined;
  3989. this.key = data && data.key;
  3990. this.componentOptions = componentOptions;
  3991. this.componentInstance = undefined;
  3992. this.parent = undefined;
  3993. this.raw = false;
  3994. this.isStatic = false;
  3995. this.isRootInsert = true;
  3996. this.isComment = false;
  3997. this.isCloned = false;
  3998. this.isOnce = false;
  3999. this.asyncFactory = asyncFactory;
  4000. this.asyncMeta = undefined;
  4001. this.isAsyncPlaceholder = false;
  4002. };
  4003. var prototypeAccessors = { child: { configurable: true } };
  4004. // DEPRECATED: alias for componentInstance for backwards compat.
  4005. /* istanbul ignore next */
  4006. prototypeAccessors.child.get = function () {
  4007. return this.componentInstance
  4008. };
  4009. Object.defineProperties( VNode.prototype, prototypeAccessors );
  4010. var createEmptyVNode = function (text) {
  4011. if ( text === void 0 ) text = '';
  4012. var node = new VNode();
  4013. node.text = text;
  4014. node.isComment = true;
  4015. return node
  4016. };
  4017. function createTextVNode (val) {
  4018. return new VNode(undefined, undefined, undefined, String(val))
  4019. }
  4020. // optimized shallow clone
  4021. // used for static nodes and slot nodes because they may be reused across
  4022. // multiple renders, cloning them avoids errors when DOM manipulations rely
  4023. // on their elm reference.
  4024. function cloneVNode (vnode) {
  4025. var cloned = new VNode(
  4026. vnode.tag,
  4027. vnode.data,
  4028. // #7975
  4029. // clone children array to avoid mutating original in case of cloning
  4030. // a child.
  4031. vnode.children && vnode.children.slice(),
  4032. vnode.text,
  4033. vnode.elm,
  4034. vnode.context,
  4035. vnode.componentOptions,
  4036. vnode.asyncFactory
  4037. );
  4038. cloned.ns = vnode.ns;
  4039. cloned.isStatic = vnode.isStatic;
  4040. cloned.key = vnode.key;
  4041. cloned.isComment = vnode.isComment;
  4042. cloned.fnContext = vnode.fnContext;
  4043. cloned.fnOptions = vnode.fnOptions;
  4044. cloned.fnScopeId = vnode.fnScopeId;
  4045. cloned.asyncMeta = vnode.asyncMeta;
  4046. cloned.isCloned = true;
  4047. return cloned
  4048. }
  4049. /*
  4050. * not type checking this file because flow doesn't play well with
  4051. * dynamically accessing methods on Array prototype
  4052. */
  4053. var arrayProto = Array.prototype;
  4054. var arrayMethods = Object.create(arrayProto);
  4055. var methodsToPatch = [
  4056. 'push',
  4057. 'pop',
  4058. 'shift',
  4059. 'unshift',
  4060. 'splice',
  4061. 'sort',
  4062. 'reverse'
  4063. ];
  4064. /**
  4065. * Intercept mutating methods and emit events
  4066. */
  4067. methodsToPatch.forEach(function (method) {
  4068. // cache original method
  4069. var original = arrayProto[method];
  4070. def(arrayMethods, method, function mutator () {
  4071. var args = [], len = arguments.length;
  4072. while ( len-- ) args[ len ] = arguments[ len ];
  4073. var result = original.apply(this, args);
  4074. var ob = this.__ob__;
  4075. var inserted;
  4076. switch (method) {
  4077. case 'push':
  4078. case 'unshift':
  4079. inserted = args;
  4080. break
  4081. case 'splice':
  4082. inserted = args.slice(2);
  4083. break
  4084. }
  4085. if (inserted) { ob.observeArray(inserted); }
  4086. // notify change
  4087. ob.dep.notify();
  4088. return result
  4089. });
  4090. });
  4091. /* */
  4092. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  4093. /**
  4094. * In some cases we may want to disable observation inside a component's
  4095. * update computation.
  4096. */
  4097. var shouldObserve = true;
  4098. function toggleObserving (value) {
  4099. shouldObserve = value;
  4100. }
  4101. /**
  4102. * Observer class that is attached to each observed
  4103. * object. Once attached, the observer converts the target
  4104. * object's property keys into getter/setters that
  4105. * collect dependencies and dispatch updates.
  4106. */
  4107. var Observer = function Observer (value) {
  4108. this.value = value;
  4109. this.dep = new Dep();
  4110. this.vmCount = 0;
  4111. def(value, '__ob__', this);
  4112. if (Array.isArray(value)) {
  4113. if (hasProto) {
  4114. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  4115. if(value.push !== value.__proto__.push){
  4116. copyAugment(value, arrayMethods, arrayKeys);
  4117. } else {
  4118. protoAugment(value, arrayMethods);
  4119. }
  4120. }
  4121. } else {
  4122. copyAugment(value, arrayMethods, arrayKeys);
  4123. }
  4124. this.observeArray(value);
  4125. } else {
  4126. this.walk(value);
  4127. }
  4128. };
  4129. /**
  4130. * Walk through all properties and convert them into
  4131. * getter/setters. This method should only be called when
  4132. * value type is Object.
  4133. */
  4134. Observer.prototype.walk = function walk (obj) {
  4135. var keys = Object.keys(obj);
  4136. for (var i = 0; i < keys.length; i++) {
  4137. defineReactive$$1(obj, keys[i]);
  4138. }
  4139. };
  4140. /**
  4141. * Observe a list of Array items.
  4142. */
  4143. Observer.prototype.observeArray = function observeArray (items) {
  4144. for (var i = 0, l = items.length; i < l; i++) {
  4145. observe(items[i]);
  4146. }
  4147. };
  4148. // helpers
  4149. /**
  4150. * Augment a target Object or Array by intercepting
  4151. * the prototype chain using __proto__
  4152. */
  4153. function protoAugment (target, src) {
  4154. /* eslint-disable no-proto */
  4155. target.__proto__ = src;
  4156. /* eslint-enable no-proto */
  4157. }
  4158. /**
  4159. * Augment a target Object or Array by defining
  4160. * hidden properties.
  4161. */
  4162. /* istanbul ignore next */
  4163. function copyAugment (target, src, keys) {
  4164. for (var i = 0, l = keys.length; i < l; i++) {
  4165. var key = keys[i];
  4166. def(target, key, src[key]);
  4167. }
  4168. }
  4169. /**
  4170. * Attempt to create an observer instance for a value,
  4171. * returns the new observer if successfully observed,
  4172. * or the existing observer if the value already has one.
  4173. */
  4174. function observe (value, asRootData) {
  4175. if (!isObject(value) || value instanceof VNode) {
  4176. return
  4177. }
  4178. var ob;
  4179. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  4180. ob = value.__ob__;
  4181. } else if (
  4182. shouldObserve &&
  4183. !isServerRendering() &&
  4184. (Array.isArray(value) || isPlainObject(value)) &&
  4185. Object.isExtensible(value) &&
  4186. !value._isVue &&
  4187. !value.__v_isMPComponent
  4188. ) {
  4189. ob = new Observer(value);
  4190. }
  4191. if (asRootData && ob) {
  4192. ob.vmCount++;
  4193. }
  4194. return ob
  4195. }
  4196. /**
  4197. * Define a reactive property on an Object.
  4198. */
  4199. function defineReactive$$1 (
  4200. obj,
  4201. key,
  4202. val,
  4203. customSetter,
  4204. shallow
  4205. ) {
  4206. var dep = new Dep();
  4207. var property = Object.getOwnPropertyDescriptor(obj, key);
  4208. if (property && property.configurable === false) {
  4209. return
  4210. }
  4211. // cater for pre-defined getter/setters
  4212. var getter = property && property.get;
  4213. var setter = property && property.set;
  4214. if ((!getter || setter) && arguments.length === 2) {
  4215. val = obj[key];
  4216. }
  4217. var childOb = !shallow && observe(val);
  4218. Object.defineProperty(obj, key, {
  4219. enumerable: true,
  4220. configurable: true,
  4221. get: function reactiveGetter () {
  4222. var value = getter ? getter.call(obj) : val;
  4223. if (Dep.SharedObject.target) { // fixed by xxxxxx
  4224. dep.depend();
  4225. if (childOb) {
  4226. childOb.dep.depend();
  4227. if (Array.isArray(value)) {
  4228. dependArray(value);
  4229. }
  4230. }
  4231. }
  4232. return value
  4233. },
  4234. set: function reactiveSetter (newVal) {
  4235. var value = getter ? getter.call(obj) : val;
  4236. /* eslint-disable no-self-compare */
  4237. if (newVal === value || (newVal !== newVal && value !== value)) {
  4238. return
  4239. }
  4240. /* eslint-enable no-self-compare */
  4241. if ( true && customSetter) {
  4242. customSetter();
  4243. }
  4244. // #7981: for accessor properties without setter
  4245. if (getter && !setter) { return }
  4246. if (setter) {
  4247. setter.call(obj, newVal);
  4248. } else {
  4249. val = newVal;
  4250. }
  4251. childOb = !shallow && observe(newVal);
  4252. dep.notify();
  4253. }
  4254. });
  4255. }
  4256. /**
  4257. * Set a property on an object. Adds the new property and
  4258. * triggers change notification if the property doesn't
  4259. * already exist.
  4260. */
  4261. function set (target, key, val) {
  4262. if ( true &&
  4263. (isUndef(target) || isPrimitive(target))
  4264. ) {
  4265. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  4266. }
  4267. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4268. target.length = Math.max(target.length, key);
  4269. target.splice(key, 1, val);
  4270. return val
  4271. }
  4272. if (key in target && !(key in Object.prototype)) {
  4273. target[key] = val;
  4274. return val
  4275. }
  4276. var ob = (target).__ob__;
  4277. if (target._isVue || (ob && ob.vmCount)) {
  4278. true && warn(
  4279. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  4280. 'at runtime - declare it upfront in the data option.'
  4281. );
  4282. return val
  4283. }
  4284. if (!ob) {
  4285. target[key] = val;
  4286. return val
  4287. }
  4288. defineReactive$$1(ob.value, key, val);
  4289. ob.dep.notify();
  4290. return val
  4291. }
  4292. /**
  4293. * Delete a property and trigger change if necessary.
  4294. */
  4295. function del (target, key) {
  4296. if ( true &&
  4297. (isUndef(target) || isPrimitive(target))
  4298. ) {
  4299. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  4300. }
  4301. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4302. target.splice(key, 1);
  4303. return
  4304. }
  4305. var ob = (target).__ob__;
  4306. if (target._isVue || (ob && ob.vmCount)) {
  4307. true && warn(
  4308. 'Avoid deleting properties on a Vue instance or its root $data ' +
  4309. '- just set it to null.'
  4310. );
  4311. return
  4312. }
  4313. if (!hasOwn(target, key)) {
  4314. return
  4315. }
  4316. delete target[key];
  4317. if (!ob) {
  4318. return
  4319. }
  4320. ob.dep.notify();
  4321. }
  4322. /**
  4323. * Collect dependencies on array elements when the array is touched, since
  4324. * we cannot intercept array element access like property getters.
  4325. */
  4326. function dependArray (value) {
  4327. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  4328. e = value[i];
  4329. e && e.__ob__ && e.__ob__.dep.depend();
  4330. if (Array.isArray(e)) {
  4331. dependArray(e);
  4332. }
  4333. }
  4334. }
  4335. /* */
  4336. /**
  4337. * Option overwriting strategies are functions that handle
  4338. * how to merge a parent option value and a child option
  4339. * value into the final value.
  4340. */
  4341. var strats = config.optionMergeStrategies;
  4342. /**
  4343. * Options with restrictions
  4344. */
  4345. if (true) {
  4346. strats.el = strats.propsData = function (parent, child, vm, key) {
  4347. if (!vm) {
  4348. warn(
  4349. "option \"" + key + "\" can only be used during instance " +
  4350. 'creation with the `new` keyword.'
  4351. );
  4352. }
  4353. return defaultStrat(parent, child)
  4354. };
  4355. }
  4356. /**
  4357. * Helper that recursively merges two data objects together.
  4358. */
  4359. function mergeData (to, from) {
  4360. if (!from) { return to }
  4361. var key, toVal, fromVal;
  4362. var keys = hasSymbol
  4363. ? Reflect.ownKeys(from)
  4364. : Object.keys(from);
  4365. for (var i = 0; i < keys.length; i++) {
  4366. key = keys[i];
  4367. // in case the object is already observed...
  4368. if (key === '__ob__') { continue }
  4369. toVal = to[key];
  4370. fromVal = from[key];
  4371. if (!hasOwn(to, key)) {
  4372. set(to, key, fromVal);
  4373. } else if (
  4374. toVal !== fromVal &&
  4375. isPlainObject(toVal) &&
  4376. isPlainObject(fromVal)
  4377. ) {
  4378. mergeData(toVal, fromVal);
  4379. }
  4380. }
  4381. return to
  4382. }
  4383. /**
  4384. * Data
  4385. */
  4386. function mergeDataOrFn (
  4387. parentVal,
  4388. childVal,
  4389. vm
  4390. ) {
  4391. if (!vm) {
  4392. // in a Vue.extend merge, both should be functions
  4393. if (!childVal) {
  4394. return parentVal
  4395. }
  4396. if (!parentVal) {
  4397. return childVal
  4398. }
  4399. // when parentVal & childVal are both present,
  4400. // we need to return a function that returns the
  4401. // merged result of both functions... no need to
  4402. // check if parentVal is a function here because
  4403. // it has to be a function to pass previous merges.
  4404. return function mergedDataFn () {
  4405. return mergeData(
  4406. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  4407. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  4408. )
  4409. }
  4410. } else {
  4411. return function mergedInstanceDataFn () {
  4412. // instance merge
  4413. var instanceData = typeof childVal === 'function'
  4414. ? childVal.call(vm, vm)
  4415. : childVal;
  4416. var defaultData = typeof parentVal === 'function'
  4417. ? parentVal.call(vm, vm)
  4418. : parentVal;
  4419. if (instanceData) {
  4420. return mergeData(instanceData, defaultData)
  4421. } else {
  4422. return defaultData
  4423. }
  4424. }
  4425. }
  4426. }
  4427. strats.data = function (
  4428. parentVal,
  4429. childVal,
  4430. vm
  4431. ) {
  4432. if (!vm) {
  4433. if (childVal && typeof childVal !== 'function') {
  4434. true && warn(
  4435. 'The "data" option should be a function ' +
  4436. 'that returns a per-instance value in component ' +
  4437. 'definitions.',
  4438. vm
  4439. );
  4440. return parentVal
  4441. }
  4442. return mergeDataOrFn(parentVal, childVal)
  4443. }
  4444. return mergeDataOrFn(parentVal, childVal, vm)
  4445. };
  4446. /**
  4447. * Hooks and props are merged as arrays.
  4448. */
  4449. function mergeHook (
  4450. parentVal,
  4451. childVal
  4452. ) {
  4453. var res = childVal
  4454. ? parentVal
  4455. ? parentVal.concat(childVal)
  4456. : Array.isArray(childVal)
  4457. ? childVal
  4458. : [childVal]
  4459. : parentVal;
  4460. return res
  4461. ? dedupeHooks(res)
  4462. : res
  4463. }
  4464. function dedupeHooks (hooks) {
  4465. var res = [];
  4466. for (var i = 0; i < hooks.length; i++) {
  4467. if (res.indexOf(hooks[i]) === -1) {
  4468. res.push(hooks[i]);
  4469. }
  4470. }
  4471. return res
  4472. }
  4473. LIFECYCLE_HOOKS.forEach(function (hook) {
  4474. strats[hook] = mergeHook;
  4475. });
  4476. /**
  4477. * Assets
  4478. *
  4479. * When a vm is present (instance creation), we need to do
  4480. * a three-way merge between constructor options, instance
  4481. * options and parent options.
  4482. */
  4483. function mergeAssets (
  4484. parentVal,
  4485. childVal,
  4486. vm,
  4487. key
  4488. ) {
  4489. var res = Object.create(parentVal || null);
  4490. if (childVal) {
  4491. true && assertObjectType(key, childVal, vm);
  4492. return extend(res, childVal)
  4493. } else {
  4494. return res
  4495. }
  4496. }
  4497. ASSET_TYPES.forEach(function (type) {
  4498. strats[type + 's'] = mergeAssets;
  4499. });
  4500. /**
  4501. * Watchers.
  4502. *
  4503. * Watchers hashes should not overwrite one
  4504. * another, so we merge them as arrays.
  4505. */
  4506. strats.watch = function (
  4507. parentVal,
  4508. childVal,
  4509. vm,
  4510. key
  4511. ) {
  4512. // work around Firefox's Object.prototype.watch...
  4513. if (parentVal === nativeWatch) { parentVal = undefined; }
  4514. if (childVal === nativeWatch) { childVal = undefined; }
  4515. /* istanbul ignore if */
  4516. if (!childVal) { return Object.create(parentVal || null) }
  4517. if (true) {
  4518. assertObjectType(key, childVal, vm);
  4519. }
  4520. if (!parentVal) { return childVal }
  4521. var ret = {};
  4522. extend(ret, parentVal);
  4523. for (var key$1 in childVal) {
  4524. var parent = ret[key$1];
  4525. var child = childVal[key$1];
  4526. if (parent && !Array.isArray(parent)) {
  4527. parent = [parent];
  4528. }
  4529. ret[key$1] = parent
  4530. ? parent.concat(child)
  4531. : Array.isArray(child) ? child : [child];
  4532. }
  4533. return ret
  4534. };
  4535. /**
  4536. * Other object hashes.
  4537. */
  4538. strats.props =
  4539. strats.methods =
  4540. strats.inject =
  4541. strats.computed = function (
  4542. parentVal,
  4543. childVal,
  4544. vm,
  4545. key
  4546. ) {
  4547. if (childVal && "development" !== 'production') {
  4548. assertObjectType(key, childVal, vm);
  4549. }
  4550. if (!parentVal) { return childVal }
  4551. var ret = Object.create(null);
  4552. extend(ret, parentVal);
  4553. if (childVal) { extend(ret, childVal); }
  4554. return ret
  4555. };
  4556. strats.provide = mergeDataOrFn;
  4557. /**
  4558. * Default strategy.
  4559. */
  4560. var defaultStrat = function (parentVal, childVal) {
  4561. return childVal === undefined
  4562. ? parentVal
  4563. : childVal
  4564. };
  4565. /**
  4566. * Validate component names
  4567. */
  4568. function checkComponents (options) {
  4569. for (var key in options.components) {
  4570. validateComponentName(key);
  4571. }
  4572. }
  4573. function validateComponentName (name) {
  4574. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  4575. warn(
  4576. 'Invalid component name: "' + name + '". Component names ' +
  4577. 'should conform to valid custom element name in html5 specification.'
  4578. );
  4579. }
  4580. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  4581. warn(
  4582. 'Do not use built-in or reserved HTML elements as component ' +
  4583. 'id: ' + name
  4584. );
  4585. }
  4586. }
  4587. /**
  4588. * Ensure all props option syntax are normalized into the
  4589. * Object-based format.
  4590. */
  4591. function normalizeProps (options, vm) {
  4592. var props = options.props;
  4593. if (!props) { return }
  4594. var res = {};
  4595. var i, val, name;
  4596. if (Array.isArray(props)) {
  4597. i = props.length;
  4598. while (i--) {
  4599. val = props[i];
  4600. if (typeof val === 'string') {
  4601. name = camelize(val);
  4602. res[name] = { type: null };
  4603. } else if (true) {
  4604. warn('props must be strings when using array syntax.');
  4605. }
  4606. }
  4607. } else if (isPlainObject(props)) {
  4608. for (var key in props) {
  4609. val = props[key];
  4610. name = camelize(key);
  4611. res[name] = isPlainObject(val)
  4612. ? val
  4613. : { type: val };
  4614. }
  4615. } else if (true) {
  4616. warn(
  4617. "Invalid value for option \"props\": expected an Array or an Object, " +
  4618. "but got " + (toRawType(props)) + ".",
  4619. vm
  4620. );
  4621. }
  4622. options.props = res;
  4623. }
  4624. /**
  4625. * Normalize all injections into Object-based format
  4626. */
  4627. function normalizeInject (options, vm) {
  4628. var inject = options.inject;
  4629. if (!inject) { return }
  4630. var normalized = options.inject = {};
  4631. if (Array.isArray(inject)) {
  4632. for (var i = 0; i < inject.length; i++) {
  4633. normalized[inject[i]] = { from: inject[i] };
  4634. }
  4635. } else if (isPlainObject(inject)) {
  4636. for (var key in inject) {
  4637. var val = inject[key];
  4638. normalized[key] = isPlainObject(val)
  4639. ? extend({ from: key }, val)
  4640. : { from: val };
  4641. }
  4642. } else if (true) {
  4643. warn(
  4644. "Invalid value for option \"inject\": expected an Array or an Object, " +
  4645. "but got " + (toRawType(inject)) + ".",
  4646. vm
  4647. );
  4648. }
  4649. }
  4650. /**
  4651. * Normalize raw function directives into object format.
  4652. */
  4653. function normalizeDirectives (options) {
  4654. var dirs = options.directives;
  4655. if (dirs) {
  4656. for (var key in dirs) {
  4657. var def$$1 = dirs[key];
  4658. if (typeof def$$1 === 'function') {
  4659. dirs[key] = { bind: def$$1, update: def$$1 };
  4660. }
  4661. }
  4662. }
  4663. }
  4664. function assertObjectType (name, value, vm) {
  4665. if (!isPlainObject(value)) {
  4666. warn(
  4667. "Invalid value for option \"" + name + "\": expected an Object, " +
  4668. "but got " + (toRawType(value)) + ".",
  4669. vm
  4670. );
  4671. }
  4672. }
  4673. /**
  4674. * Merge two option objects into a new one.
  4675. * Core utility used in both instantiation and inheritance.
  4676. */
  4677. function mergeOptions (
  4678. parent,
  4679. child,
  4680. vm
  4681. ) {
  4682. if (true) {
  4683. checkComponents(child);
  4684. }
  4685. if (typeof child === 'function') {
  4686. child = child.options;
  4687. }
  4688. normalizeProps(child, vm);
  4689. normalizeInject(child, vm);
  4690. normalizeDirectives(child);
  4691. // Apply extends and mixins on the child options,
  4692. // but only if it is a raw options object that isn't
  4693. // the result of another mergeOptions call.
  4694. // Only merged options has the _base property.
  4695. if (!child._base) {
  4696. if (child.extends) {
  4697. parent = mergeOptions(parent, child.extends, vm);
  4698. }
  4699. if (child.mixins) {
  4700. for (var i = 0, l = child.mixins.length; i < l; i++) {
  4701. parent = mergeOptions(parent, child.mixins[i], vm);
  4702. }
  4703. }
  4704. }
  4705. var options = {};
  4706. var key;
  4707. for (key in parent) {
  4708. mergeField(key);
  4709. }
  4710. for (key in child) {
  4711. if (!hasOwn(parent, key)) {
  4712. mergeField(key);
  4713. }
  4714. }
  4715. function mergeField (key) {
  4716. var strat = strats[key] || defaultStrat;
  4717. options[key] = strat(parent[key], child[key], vm, key);
  4718. }
  4719. return options
  4720. }
  4721. /**
  4722. * Resolve an asset.
  4723. * This function is used because child instances need access
  4724. * to assets defined in its ancestor chain.
  4725. */
  4726. function resolveAsset (
  4727. options,
  4728. type,
  4729. id,
  4730. warnMissing
  4731. ) {
  4732. /* istanbul ignore if */
  4733. if (typeof id !== 'string') {
  4734. return
  4735. }
  4736. var assets = options[type];
  4737. // check local registration variations first
  4738. if (hasOwn(assets, id)) { return assets[id] }
  4739. var camelizedId = camelize(id);
  4740. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  4741. var PascalCaseId = capitalize(camelizedId);
  4742. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  4743. // fallback to prototype chain
  4744. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  4745. if ( true && warnMissing && !res) {
  4746. warn(
  4747. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  4748. options
  4749. );
  4750. }
  4751. return res
  4752. }
  4753. /* */
  4754. function validateProp (
  4755. key,
  4756. propOptions,
  4757. propsData,
  4758. vm
  4759. ) {
  4760. var prop = propOptions[key];
  4761. var absent = !hasOwn(propsData, key);
  4762. var value = propsData[key];
  4763. // boolean casting
  4764. var booleanIndex = getTypeIndex(Boolean, prop.type);
  4765. if (booleanIndex > -1) {
  4766. if (absent && !hasOwn(prop, 'default')) {
  4767. value = false;
  4768. } else if (value === '' || value === hyphenate(key)) {
  4769. // only cast empty string / same name to boolean if
  4770. // boolean has higher priority
  4771. var stringIndex = getTypeIndex(String, prop.type);
  4772. if (stringIndex < 0 || booleanIndex < stringIndex) {
  4773. value = true;
  4774. }
  4775. }
  4776. }
  4777. // check default value
  4778. if (value === undefined) {
  4779. value = getPropDefaultValue(vm, prop, key);
  4780. // since the default value is a fresh copy,
  4781. // make sure to observe it.
  4782. var prevShouldObserve = shouldObserve;
  4783. toggleObserving(true);
  4784. observe(value);
  4785. toggleObserving(prevShouldObserve);
  4786. }
  4787. if (
  4788. true
  4789. ) {
  4790. assertProp(prop, key, value, vm, absent);
  4791. }
  4792. return value
  4793. }
  4794. /**
  4795. * Get the default value of a prop.
  4796. */
  4797. function getPropDefaultValue (vm, prop, key) {
  4798. // no default, return undefined
  4799. if (!hasOwn(prop, 'default')) {
  4800. return undefined
  4801. }
  4802. var def = prop.default;
  4803. // warn against non-factory defaults for Object & Array
  4804. if ( true && isObject(def)) {
  4805. warn(
  4806. 'Invalid default value for prop "' + key + '": ' +
  4807. 'Props with type Object/Array must use a factory function ' +
  4808. 'to return the default value.',
  4809. vm
  4810. );
  4811. }
  4812. // the raw prop value was also undefined from previous render,
  4813. // return previous default value to avoid unnecessary watcher trigger
  4814. if (vm && vm.$options.propsData &&
  4815. vm.$options.propsData[key] === undefined &&
  4816. vm._props[key] !== undefined
  4817. ) {
  4818. return vm._props[key]
  4819. }
  4820. // call factory function for non-Function types
  4821. // a value is Function if its prototype is function even across different execution context
  4822. return typeof def === 'function' && getType(prop.type) !== 'Function'
  4823. ? def.call(vm)
  4824. : def
  4825. }
  4826. /**
  4827. * Assert whether a prop is valid.
  4828. */
  4829. function assertProp (
  4830. prop,
  4831. name,
  4832. value,
  4833. vm,
  4834. absent
  4835. ) {
  4836. if (prop.required && absent) {
  4837. warn(
  4838. 'Missing required prop: "' + name + '"',
  4839. vm
  4840. );
  4841. return
  4842. }
  4843. if (value == null && !prop.required) {
  4844. return
  4845. }
  4846. var type = prop.type;
  4847. var valid = !type || type === true;
  4848. var expectedTypes = [];
  4849. if (type) {
  4850. if (!Array.isArray(type)) {
  4851. type = [type];
  4852. }
  4853. for (var i = 0; i < type.length && !valid; i++) {
  4854. var assertedType = assertType(value, type[i]);
  4855. expectedTypes.push(assertedType.expectedType || '');
  4856. valid = assertedType.valid;
  4857. }
  4858. }
  4859. if (!valid) {
  4860. warn(
  4861. getInvalidTypeMessage(name, value, expectedTypes),
  4862. vm
  4863. );
  4864. return
  4865. }
  4866. var validator = prop.validator;
  4867. if (validator) {
  4868. if (!validator(value)) {
  4869. warn(
  4870. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  4871. vm
  4872. );
  4873. }
  4874. }
  4875. }
  4876. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  4877. function assertType (value, type) {
  4878. var valid;
  4879. var expectedType = getType(type);
  4880. if (simpleCheckRE.test(expectedType)) {
  4881. var t = typeof value;
  4882. valid = t === expectedType.toLowerCase();
  4883. // for primitive wrapper objects
  4884. if (!valid && t === 'object') {
  4885. valid = value instanceof type;
  4886. }
  4887. } else if (expectedType === 'Object') {
  4888. valid = isPlainObject(value);
  4889. } else if (expectedType === 'Array') {
  4890. valid = Array.isArray(value);
  4891. } else {
  4892. valid = value instanceof type;
  4893. }
  4894. return {
  4895. valid: valid,
  4896. expectedType: expectedType
  4897. }
  4898. }
  4899. /**
  4900. * Use function string name to check built-in types,
  4901. * because a simple equality check will fail when running
  4902. * across different vms / iframes.
  4903. */
  4904. function getType (fn) {
  4905. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  4906. return match ? match[1] : ''
  4907. }
  4908. function isSameType (a, b) {
  4909. return getType(a) === getType(b)
  4910. }
  4911. function getTypeIndex (type, expectedTypes) {
  4912. if (!Array.isArray(expectedTypes)) {
  4913. return isSameType(expectedTypes, type) ? 0 : -1
  4914. }
  4915. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  4916. if (isSameType(expectedTypes[i], type)) {
  4917. return i
  4918. }
  4919. }
  4920. return -1
  4921. }
  4922. function getInvalidTypeMessage (name, value, expectedTypes) {
  4923. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  4924. " Expected " + (expectedTypes.map(capitalize).join(', '));
  4925. var expectedType = expectedTypes[0];
  4926. var receivedType = toRawType(value);
  4927. var expectedValue = styleValue(value, expectedType);
  4928. var receivedValue = styleValue(value, receivedType);
  4929. // check if we need to specify expected value
  4930. if (expectedTypes.length === 1 &&
  4931. isExplicable(expectedType) &&
  4932. !isBoolean(expectedType, receivedType)) {
  4933. message += " with value " + expectedValue;
  4934. }
  4935. message += ", got " + receivedType + " ";
  4936. // check if we need to specify received value
  4937. if (isExplicable(receivedType)) {
  4938. message += "with value " + receivedValue + ".";
  4939. }
  4940. return message
  4941. }
  4942. function styleValue (value, type) {
  4943. if (type === 'String') {
  4944. return ("\"" + value + "\"")
  4945. } else if (type === 'Number') {
  4946. return ("" + (Number(value)))
  4947. } else {
  4948. return ("" + value)
  4949. }
  4950. }
  4951. function isExplicable (value) {
  4952. var explicitTypes = ['string', 'number', 'boolean'];
  4953. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  4954. }
  4955. function isBoolean () {
  4956. var args = [], len = arguments.length;
  4957. while ( len-- ) args[ len ] = arguments[ len ];
  4958. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  4959. }
  4960. /* */
  4961. function handleError (err, vm, info) {
  4962. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  4963. // See: https://github.com/vuejs/vuex/issues/1505
  4964. pushTarget();
  4965. try {
  4966. if (vm) {
  4967. var cur = vm;
  4968. while ((cur = cur.$parent)) {
  4969. var hooks = cur.$options.errorCaptured;
  4970. if (hooks) {
  4971. for (var i = 0; i < hooks.length; i++) {
  4972. try {
  4973. var capture = hooks[i].call(cur, err, vm, info) === false;
  4974. if (capture) { return }
  4975. } catch (e) {
  4976. globalHandleError(e, cur, 'errorCaptured hook');
  4977. }
  4978. }
  4979. }
  4980. }
  4981. }
  4982. globalHandleError(err, vm, info);
  4983. } finally {
  4984. popTarget();
  4985. }
  4986. }
  4987. function invokeWithErrorHandling (
  4988. handler,
  4989. context,
  4990. args,
  4991. vm,
  4992. info
  4993. ) {
  4994. var res;
  4995. try {
  4996. res = args ? handler.apply(context, args) : handler.call(context);
  4997. if (res && !res._isVue && isPromise(res) && !res._handled) {
  4998. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  4999. // issue #9511
  5000. // avoid catch triggering multiple times when nested calls
  5001. res._handled = true;
  5002. }
  5003. } catch (e) {
  5004. handleError(e, vm, info);
  5005. }
  5006. return res
  5007. }
  5008. function globalHandleError (err, vm, info) {
  5009. if (config.errorHandler) {
  5010. try {
  5011. return config.errorHandler.call(null, err, vm, info)
  5012. } catch (e) {
  5013. // if the user intentionally throws the original error in the handler,
  5014. // do not log it twice
  5015. if (e !== err) {
  5016. logError(e, null, 'config.errorHandler');
  5017. }
  5018. }
  5019. }
  5020. logError(err, vm, info);
  5021. }
  5022. function logError (err, vm, info) {
  5023. if (true) {
  5024. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  5025. }
  5026. /* istanbul ignore else */
  5027. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  5028. console.error(err);
  5029. } else {
  5030. throw err
  5031. }
  5032. }
  5033. /* */
  5034. var callbacks = [];
  5035. var pending = false;
  5036. function flushCallbacks () {
  5037. pending = false;
  5038. var copies = callbacks.slice(0);
  5039. callbacks.length = 0;
  5040. for (var i = 0; i < copies.length; i++) {
  5041. copies[i]();
  5042. }
  5043. }
  5044. // Here we have async deferring wrappers using microtasks.
  5045. // In 2.5 we used (macro) tasks (in combination with microtasks).
  5046. // However, it has subtle problems when state is changed right before repaint
  5047. // (e.g. #6813, out-in transitions).
  5048. // Also, using (macro) tasks in event handler would cause some weird behaviors
  5049. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  5050. // So we now use microtasks everywhere, again.
  5051. // A major drawback of this tradeoff is that there are some scenarios
  5052. // where microtasks have too high a priority and fire in between supposedly
  5053. // sequential events (e.g. #4521, #6690, which have workarounds)
  5054. // or even between bubbling of the same event (#6566).
  5055. var timerFunc;
  5056. // The nextTick behavior leverages the microtask queue, which can be accessed
  5057. // via either native Promise.then or MutationObserver.
  5058. // MutationObserver has wider support, however it is seriously bugged in
  5059. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  5060. // completely stops working after triggering a few times... so, if native
  5061. // Promise is available, we will use it:
  5062. /* istanbul ignore next, $flow-disable-line */
  5063. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  5064. var p = Promise.resolve();
  5065. timerFunc = function () {
  5066. p.then(flushCallbacks);
  5067. // In problematic UIWebViews, Promise.then doesn't completely break, but
  5068. // it can get stuck in a weird state where callbacks are pushed into the
  5069. // microtask queue but the queue isn't being flushed, until the browser
  5070. // needs to do some other work, e.g. handle a timer. Therefore we can
  5071. // "force" the microtask queue to be flushed by adding an empty timer.
  5072. if (isIOS) { setTimeout(noop); }
  5073. };
  5074. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  5075. isNative(MutationObserver) ||
  5076. // PhantomJS and iOS 7.x
  5077. MutationObserver.toString() === '[object MutationObserverConstructor]'
  5078. )) {
  5079. // Use MutationObserver where native Promise is not available,
  5080. // e.g. PhantomJS, iOS7, Android 4.4
  5081. // (#6466 MutationObserver is unreliable in IE11)
  5082. var counter = 1;
  5083. var observer = new MutationObserver(flushCallbacks);
  5084. var textNode = document.createTextNode(String(counter));
  5085. observer.observe(textNode, {
  5086. characterData: true
  5087. });
  5088. timerFunc = function () {
  5089. counter = (counter + 1) % 2;
  5090. textNode.data = String(counter);
  5091. };
  5092. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  5093. // Fallback to setImmediate.
  5094. // Technically it leverages the (macro) task queue,
  5095. // but it is still a better choice than setTimeout.
  5096. timerFunc = function () {
  5097. setImmediate(flushCallbacks);
  5098. };
  5099. } else {
  5100. // Fallback to setTimeout.
  5101. timerFunc = function () {
  5102. setTimeout(flushCallbacks, 0);
  5103. };
  5104. }
  5105. function nextTick (cb, ctx) {
  5106. var _resolve;
  5107. callbacks.push(function () {
  5108. if (cb) {
  5109. try {
  5110. cb.call(ctx);
  5111. } catch (e) {
  5112. handleError(e, ctx, 'nextTick');
  5113. }
  5114. } else if (_resolve) {
  5115. _resolve(ctx);
  5116. }
  5117. });
  5118. if (!pending) {
  5119. pending = true;
  5120. timerFunc();
  5121. }
  5122. // $flow-disable-line
  5123. if (!cb && typeof Promise !== 'undefined') {
  5124. return new Promise(function (resolve) {
  5125. _resolve = resolve;
  5126. })
  5127. }
  5128. }
  5129. /* */
  5130. /* not type checking this file because flow doesn't play well with Proxy */
  5131. var initProxy;
  5132. if (true) {
  5133. var allowedGlobals = makeMap(
  5134. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  5135. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  5136. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  5137. 'require' // for Webpack/Browserify
  5138. );
  5139. var warnNonPresent = function (target, key) {
  5140. warn(
  5141. "Property or method \"" + key + "\" is not defined on the instance but " +
  5142. 'referenced during render. Make sure that this property is reactive, ' +
  5143. 'either in the data option, or for class-based components, by ' +
  5144. 'initializing the property. ' +
  5145. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  5146. target
  5147. );
  5148. };
  5149. var warnReservedPrefix = function (target, key) {
  5150. warn(
  5151. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  5152. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  5153. 'prevent conflicts with Vue internals. ' +
  5154. 'See: https://vuejs.org/v2/api/#data',
  5155. target
  5156. );
  5157. };
  5158. var hasProxy =
  5159. typeof Proxy !== 'undefined' && isNative(Proxy);
  5160. if (hasProxy) {
  5161. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  5162. config.keyCodes = new Proxy(config.keyCodes, {
  5163. set: function set (target, key, value) {
  5164. if (isBuiltInModifier(key)) {
  5165. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  5166. return false
  5167. } else {
  5168. target[key] = value;
  5169. return true
  5170. }
  5171. }
  5172. });
  5173. }
  5174. var hasHandler = {
  5175. has: function has (target, key) {
  5176. var has = key in target;
  5177. var isAllowed = allowedGlobals(key) ||
  5178. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  5179. if (!has && !isAllowed) {
  5180. if (key in target.$data) { warnReservedPrefix(target, key); }
  5181. else { warnNonPresent(target, key); }
  5182. }
  5183. return has || !isAllowed
  5184. }
  5185. };
  5186. var getHandler = {
  5187. get: function get (target, key) {
  5188. if (typeof key === 'string' && !(key in target)) {
  5189. if (key in target.$data) { warnReservedPrefix(target, key); }
  5190. else { warnNonPresent(target, key); }
  5191. }
  5192. return target[key]
  5193. }
  5194. };
  5195. initProxy = function initProxy (vm) {
  5196. if (hasProxy) {
  5197. // determine which proxy handler to use
  5198. var options = vm.$options;
  5199. var handlers = options.render && options.render._withStripped
  5200. ? getHandler
  5201. : hasHandler;
  5202. vm._renderProxy = new Proxy(vm, handlers);
  5203. } else {
  5204. vm._renderProxy = vm;
  5205. }
  5206. };
  5207. }
  5208. /* */
  5209. var seenObjects = new _Set();
  5210. /**
  5211. * Recursively traverse an object to evoke all converted
  5212. * getters, so that every nested property inside the object
  5213. * is collected as a "deep" dependency.
  5214. */
  5215. function traverse (val) {
  5216. _traverse(val, seenObjects);
  5217. seenObjects.clear();
  5218. }
  5219. function _traverse (val, seen) {
  5220. var i, keys;
  5221. var isA = Array.isArray(val);
  5222. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  5223. return
  5224. }
  5225. if (val.__ob__) {
  5226. var depId = val.__ob__.dep.id;
  5227. if (seen.has(depId)) {
  5228. return
  5229. }
  5230. seen.add(depId);
  5231. }
  5232. if (isA) {
  5233. i = val.length;
  5234. while (i--) { _traverse(val[i], seen); }
  5235. } else {
  5236. keys = Object.keys(val);
  5237. i = keys.length;
  5238. while (i--) { _traverse(val[keys[i]], seen); }
  5239. }
  5240. }
  5241. var mark;
  5242. var measure;
  5243. if (true) {
  5244. var perf = inBrowser && window.performance;
  5245. /* istanbul ignore if */
  5246. if (
  5247. perf &&
  5248. perf.mark &&
  5249. perf.measure &&
  5250. perf.clearMarks &&
  5251. perf.clearMeasures
  5252. ) {
  5253. mark = function (tag) { return perf.mark(tag); };
  5254. measure = function (name, startTag, endTag) {
  5255. perf.measure(name, startTag, endTag);
  5256. perf.clearMarks(startTag);
  5257. perf.clearMarks(endTag);
  5258. // perf.clearMeasures(name)
  5259. };
  5260. }
  5261. }
  5262. /* */
  5263. var normalizeEvent = cached(function (name) {
  5264. var passive = name.charAt(0) === '&';
  5265. name = passive ? name.slice(1) : name;
  5266. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  5267. name = once$$1 ? name.slice(1) : name;
  5268. var capture = name.charAt(0) === '!';
  5269. name = capture ? name.slice(1) : name;
  5270. return {
  5271. name: name,
  5272. once: once$$1,
  5273. capture: capture,
  5274. passive: passive
  5275. }
  5276. });
  5277. function createFnInvoker (fns, vm) {
  5278. function invoker () {
  5279. var arguments$1 = arguments;
  5280. var fns = invoker.fns;
  5281. if (Array.isArray(fns)) {
  5282. var cloned = fns.slice();
  5283. for (var i = 0; i < cloned.length; i++) {
  5284. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  5285. }
  5286. } else {
  5287. // return handler return value for single handlers
  5288. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  5289. }
  5290. }
  5291. invoker.fns = fns;
  5292. return invoker
  5293. }
  5294. function updateListeners (
  5295. on,
  5296. oldOn,
  5297. add,
  5298. remove$$1,
  5299. createOnceHandler,
  5300. vm
  5301. ) {
  5302. var name, def$$1, cur, old, event;
  5303. for (name in on) {
  5304. def$$1 = cur = on[name];
  5305. old = oldOn[name];
  5306. event = normalizeEvent(name);
  5307. if (isUndef(cur)) {
  5308. true && warn(
  5309. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  5310. vm
  5311. );
  5312. } else if (isUndef(old)) {
  5313. if (isUndef(cur.fns)) {
  5314. cur = on[name] = createFnInvoker(cur, vm);
  5315. }
  5316. if (isTrue(event.once)) {
  5317. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  5318. }
  5319. add(event.name, cur, event.capture, event.passive, event.params);
  5320. } else if (cur !== old) {
  5321. old.fns = cur;
  5322. on[name] = old;
  5323. }
  5324. }
  5325. for (name in oldOn) {
  5326. if (isUndef(on[name])) {
  5327. event = normalizeEvent(name);
  5328. remove$$1(event.name, oldOn[name], event.capture);
  5329. }
  5330. }
  5331. }
  5332. /* */
  5333. /* */
  5334. // fixed by xxxxxx (mp properties)
  5335. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  5336. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  5337. if (isUndef(propOptions)) {
  5338. return res
  5339. }
  5340. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  5341. var attrs = data.attrs;
  5342. var props = data.props;
  5343. if (isDef(attrs) || isDef(props)) {
  5344. for (var key in propOptions) {
  5345. var altKey = hyphenate(key);
  5346. var result = checkProp(res, props, key, altKey, true) ||
  5347. checkProp(res, attrs, key, altKey, false);
  5348. // externalClass
  5349. if (
  5350. result &&
  5351. res[key] &&
  5352. externalClasses.indexOf(altKey) !== -1 &&
  5353. context[camelize(res[key])]
  5354. ) {
  5355. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  5356. res[key] = context[camelize(res[key])];
  5357. }
  5358. }
  5359. }
  5360. return res
  5361. }
  5362. function extractPropsFromVNodeData (
  5363. data,
  5364. Ctor,
  5365. tag,
  5366. context// fixed by xxxxxx
  5367. ) {
  5368. // we are only extracting raw values here.
  5369. // validation and default values are handled in the child
  5370. // component itself.
  5371. var propOptions = Ctor.options.props;
  5372. if (isUndef(propOptions)) {
  5373. // fixed by xxxxxx
  5374. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  5375. }
  5376. var res = {};
  5377. var attrs = data.attrs;
  5378. var props = data.props;
  5379. if (isDef(attrs) || isDef(props)) {
  5380. for (var key in propOptions) {
  5381. var altKey = hyphenate(key);
  5382. if (true) {
  5383. var keyInLowerCase = key.toLowerCase();
  5384. if (
  5385. key !== keyInLowerCase &&
  5386. attrs && hasOwn(attrs, keyInLowerCase)
  5387. ) {
  5388. tip(
  5389. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  5390. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  5391. " \"" + key + "\". " +
  5392. "Note that HTML attributes are case-insensitive and camelCased " +
  5393. "props need to use their kebab-case equivalents when using in-DOM " +
  5394. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  5395. );
  5396. }
  5397. }
  5398. checkProp(res, props, key, altKey, true) ||
  5399. checkProp(res, attrs, key, altKey, false);
  5400. }
  5401. }
  5402. // fixed by xxxxxx
  5403. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  5404. }
  5405. function checkProp (
  5406. res,
  5407. hash,
  5408. key,
  5409. altKey,
  5410. preserve
  5411. ) {
  5412. if (isDef(hash)) {
  5413. if (hasOwn(hash, key)) {
  5414. res[key] = hash[key];
  5415. if (!preserve) {
  5416. delete hash[key];
  5417. }
  5418. return true
  5419. } else if (hasOwn(hash, altKey)) {
  5420. res[key] = hash[altKey];
  5421. if (!preserve) {
  5422. delete hash[altKey];
  5423. }
  5424. return true
  5425. }
  5426. }
  5427. return false
  5428. }
  5429. /* */
  5430. // The template compiler attempts to minimize the need for normalization by
  5431. // statically analyzing the template at compile time.
  5432. //
  5433. // For plain HTML markup, normalization can be completely skipped because the
  5434. // generated render function is guaranteed to return Array<VNode>. There are
  5435. // two cases where extra normalization is needed:
  5436. // 1. When the children contains components - because a functional component
  5437. // may return an Array instead of a single root. In this case, just a simple
  5438. // normalization is needed - if any child is an Array, we flatten the whole
  5439. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  5440. // because functional components already normalize their own children.
  5441. function simpleNormalizeChildren (children) {
  5442. for (var i = 0; i < children.length; i++) {
  5443. if (Array.isArray(children[i])) {
  5444. return Array.prototype.concat.apply([], children)
  5445. }
  5446. }
  5447. return children
  5448. }
  5449. // 2. When the children contains constructs that always generated nested Arrays,
  5450. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  5451. // with hand-written render functions / JSX. In such cases a full normalization
  5452. // is needed to cater to all possible types of children values.
  5453. function normalizeChildren (children) {
  5454. return isPrimitive(children)
  5455. ? [createTextVNode(children)]
  5456. : Array.isArray(children)
  5457. ? normalizeArrayChildren(children)
  5458. : undefined
  5459. }
  5460. function isTextNode (node) {
  5461. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  5462. }
  5463. function normalizeArrayChildren (children, nestedIndex) {
  5464. var res = [];
  5465. var i, c, lastIndex, last;
  5466. for (i = 0; i < children.length; i++) {
  5467. c = children[i];
  5468. if (isUndef(c) || typeof c === 'boolean') { continue }
  5469. lastIndex = res.length - 1;
  5470. last = res[lastIndex];
  5471. // nested
  5472. if (Array.isArray(c)) {
  5473. if (c.length > 0) {
  5474. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  5475. // merge adjacent text nodes
  5476. if (isTextNode(c[0]) && isTextNode(last)) {
  5477. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  5478. c.shift();
  5479. }
  5480. res.push.apply(res, c);
  5481. }
  5482. } else if (isPrimitive(c)) {
  5483. if (isTextNode(last)) {
  5484. // merge adjacent text nodes
  5485. // this is necessary for SSR hydration because text nodes are
  5486. // essentially merged when rendered to HTML strings
  5487. res[lastIndex] = createTextVNode(last.text + c);
  5488. } else if (c !== '') {
  5489. // convert primitive to vnode
  5490. res.push(createTextVNode(c));
  5491. }
  5492. } else {
  5493. if (isTextNode(c) && isTextNode(last)) {
  5494. // merge adjacent text nodes
  5495. res[lastIndex] = createTextVNode(last.text + c.text);
  5496. } else {
  5497. // default key for nested array children (likely generated by v-for)
  5498. if (isTrue(children._isVList) &&
  5499. isDef(c.tag) &&
  5500. isUndef(c.key) &&
  5501. isDef(nestedIndex)) {
  5502. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  5503. }
  5504. res.push(c);
  5505. }
  5506. }
  5507. }
  5508. return res
  5509. }
  5510. /* */
  5511. function initProvide (vm) {
  5512. var provide = vm.$options.provide;
  5513. if (provide) {
  5514. vm._provided = typeof provide === 'function'
  5515. ? provide.call(vm)
  5516. : provide;
  5517. }
  5518. }
  5519. function initInjections (vm) {
  5520. var result = resolveInject(vm.$options.inject, vm);
  5521. if (result) {
  5522. toggleObserving(false);
  5523. Object.keys(result).forEach(function (key) {
  5524. /* istanbul ignore else */
  5525. if (true) {
  5526. defineReactive$$1(vm, key, result[key], function () {
  5527. warn(
  5528. "Avoid mutating an injected value directly since the changes will be " +
  5529. "overwritten whenever the provided component re-renders. " +
  5530. "injection being mutated: \"" + key + "\"",
  5531. vm
  5532. );
  5533. });
  5534. } else {}
  5535. });
  5536. toggleObserving(true);
  5537. }
  5538. }
  5539. function resolveInject (inject, vm) {
  5540. if (inject) {
  5541. // inject is :any because flow is not smart enough to figure out cached
  5542. var result = Object.create(null);
  5543. var keys = hasSymbol
  5544. ? Reflect.ownKeys(inject)
  5545. : Object.keys(inject);
  5546. for (var i = 0; i < keys.length; i++) {
  5547. var key = keys[i];
  5548. // #6574 in case the inject object is observed...
  5549. if (key === '__ob__') { continue }
  5550. var provideKey = inject[key].from;
  5551. var source = vm;
  5552. while (source) {
  5553. if (source._provided && hasOwn(source._provided, provideKey)) {
  5554. result[key] = source._provided[provideKey];
  5555. break
  5556. }
  5557. source = source.$parent;
  5558. }
  5559. if (!source) {
  5560. if ('default' in inject[key]) {
  5561. var provideDefault = inject[key].default;
  5562. result[key] = typeof provideDefault === 'function'
  5563. ? provideDefault.call(vm)
  5564. : provideDefault;
  5565. } else if (true) {
  5566. warn(("Injection \"" + key + "\" not found"), vm);
  5567. }
  5568. }
  5569. }
  5570. return result
  5571. }
  5572. }
  5573. /* */
  5574. /**
  5575. * Runtime helper for resolving raw children VNodes into a slot object.
  5576. */
  5577. function resolveSlots (
  5578. children,
  5579. context
  5580. ) {
  5581. if (!children || !children.length) {
  5582. return {}
  5583. }
  5584. var slots = {};
  5585. for (var i = 0, l = children.length; i < l; i++) {
  5586. var child = children[i];
  5587. var data = child.data;
  5588. // remove slot attribute if the node is resolved as a Vue slot node
  5589. if (data && data.attrs && data.attrs.slot) {
  5590. delete data.attrs.slot;
  5591. }
  5592. // named slots should only be respected if the vnode was rendered in the
  5593. // same context.
  5594. if ((child.context === context || child.fnContext === context) &&
  5595. data && data.slot != null
  5596. ) {
  5597. var name = data.slot;
  5598. var slot = (slots[name] || (slots[name] = []));
  5599. if (child.tag === 'template') {
  5600. slot.push.apply(slot, child.children || []);
  5601. } else {
  5602. slot.push(child);
  5603. }
  5604. } else {
  5605. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  5606. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  5607. (slots['page'] || (slots['page'] = [])).push(child);
  5608. }else{
  5609. (slots.default || (slots.default = [])).push(child);
  5610. }
  5611. }
  5612. }
  5613. // ignore slots that contains only whitespace
  5614. for (var name$1 in slots) {
  5615. if (slots[name$1].every(isWhitespace)) {
  5616. delete slots[name$1];
  5617. }
  5618. }
  5619. return slots
  5620. }
  5621. function isWhitespace (node) {
  5622. return (node.isComment && !node.asyncFactory) || node.text === ' '
  5623. }
  5624. /* */
  5625. function normalizeScopedSlots (
  5626. slots,
  5627. normalSlots,
  5628. prevSlots
  5629. ) {
  5630. var res;
  5631. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  5632. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  5633. var key = slots && slots.$key;
  5634. if (!slots) {
  5635. res = {};
  5636. } else if (slots._normalized) {
  5637. // fast path 1: child component re-render only, parent did not change
  5638. return slots._normalized
  5639. } else if (
  5640. isStable &&
  5641. prevSlots &&
  5642. prevSlots !== emptyObject &&
  5643. key === prevSlots.$key &&
  5644. !hasNormalSlots &&
  5645. !prevSlots.$hasNormal
  5646. ) {
  5647. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  5648. // only need to normalize once
  5649. return prevSlots
  5650. } else {
  5651. res = {};
  5652. for (var key$1 in slots) {
  5653. if (slots[key$1] && key$1[0] !== '$') {
  5654. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  5655. }
  5656. }
  5657. }
  5658. // expose normal slots on scopedSlots
  5659. for (var key$2 in normalSlots) {
  5660. if (!(key$2 in res)) {
  5661. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  5662. }
  5663. }
  5664. // avoriaz seems to mock a non-extensible $scopedSlots object
  5665. // and when that is passed down this would cause an error
  5666. if (slots && Object.isExtensible(slots)) {
  5667. (slots)._normalized = res;
  5668. }
  5669. def(res, '$stable', isStable);
  5670. def(res, '$key', key);
  5671. def(res, '$hasNormal', hasNormalSlots);
  5672. return res
  5673. }
  5674. function normalizeScopedSlot(normalSlots, key, fn) {
  5675. var normalized = function () {
  5676. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  5677. res = res && typeof res === 'object' && !Array.isArray(res)
  5678. ? [res] // single vnode
  5679. : normalizeChildren(res);
  5680. return res && (
  5681. res.length === 0 ||
  5682. (res.length === 1 && res[0].isComment) // #9658
  5683. ) ? undefined
  5684. : res
  5685. };
  5686. // this is a slot using the new v-slot syntax without scope. although it is
  5687. // compiled as a scoped slot, render fn users would expect it to be present
  5688. // on this.$slots because the usage is semantically a normal slot.
  5689. if (fn.proxy) {
  5690. Object.defineProperty(normalSlots, key, {
  5691. get: normalized,
  5692. enumerable: true,
  5693. configurable: true
  5694. });
  5695. }
  5696. return normalized
  5697. }
  5698. function proxyNormalSlot(slots, key) {
  5699. return function () { return slots[key]; }
  5700. }
  5701. /* */
  5702. /**
  5703. * Runtime helper for rendering v-for lists.
  5704. */
  5705. function renderList (
  5706. val,
  5707. render
  5708. ) {
  5709. var ret, i, l, keys, key;
  5710. if (Array.isArray(val) || typeof val === 'string') {
  5711. ret = new Array(val.length);
  5712. for (i = 0, l = val.length; i < l; i++) {
  5713. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  5714. }
  5715. } else if (typeof val === 'number') {
  5716. ret = new Array(val);
  5717. for (i = 0; i < val; i++) {
  5718. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  5719. }
  5720. } else if (isObject(val)) {
  5721. if (hasSymbol && val[Symbol.iterator]) {
  5722. ret = [];
  5723. var iterator = val[Symbol.iterator]();
  5724. var result = iterator.next();
  5725. while (!result.done) {
  5726. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  5727. result = iterator.next();
  5728. }
  5729. } else {
  5730. keys = Object.keys(val);
  5731. ret = new Array(keys.length);
  5732. for (i = 0, l = keys.length; i < l; i++) {
  5733. key = keys[i];
  5734. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  5735. }
  5736. }
  5737. }
  5738. if (!isDef(ret)) {
  5739. ret = [];
  5740. }
  5741. (ret)._isVList = true;
  5742. return ret
  5743. }
  5744. /* */
  5745. /**
  5746. * Runtime helper for rendering <slot>
  5747. */
  5748. function renderSlot (
  5749. name,
  5750. fallback,
  5751. props,
  5752. bindObject
  5753. ) {
  5754. var scopedSlotFn = this.$scopedSlots[name];
  5755. var nodes;
  5756. if (scopedSlotFn) { // scoped slot
  5757. props = props || {};
  5758. if (bindObject) {
  5759. if ( true && !isObject(bindObject)) {
  5760. warn(
  5761. 'slot v-bind without argument expects an Object',
  5762. this
  5763. );
  5764. }
  5765. props = extend(extend({}, bindObject), props);
  5766. }
  5767. // fixed by xxxxxx app-plus scopedSlot
  5768. nodes = scopedSlotFn(props, this, props._i) || fallback;
  5769. } else {
  5770. nodes = this.$slots[name] || fallback;
  5771. }
  5772. var target = props && props.slot;
  5773. if (target) {
  5774. return this.$createElement('template', { slot: target }, nodes)
  5775. } else {
  5776. return nodes
  5777. }
  5778. }
  5779. /* */
  5780. /**
  5781. * Runtime helper for resolving filters
  5782. */
  5783. function resolveFilter (id) {
  5784. return resolveAsset(this.$options, 'filters', id, true) || identity
  5785. }
  5786. /* */
  5787. function isKeyNotMatch (expect, actual) {
  5788. if (Array.isArray(expect)) {
  5789. return expect.indexOf(actual) === -1
  5790. } else {
  5791. return expect !== actual
  5792. }
  5793. }
  5794. /**
  5795. * Runtime helper for checking keyCodes from config.
  5796. * exposed as Vue.prototype._k
  5797. * passing in eventKeyName as last argument separately for backwards compat
  5798. */
  5799. function checkKeyCodes (
  5800. eventKeyCode,
  5801. key,
  5802. builtInKeyCode,
  5803. eventKeyName,
  5804. builtInKeyName
  5805. ) {
  5806. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  5807. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  5808. return isKeyNotMatch(builtInKeyName, eventKeyName)
  5809. } else if (mappedKeyCode) {
  5810. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  5811. } else if (eventKeyName) {
  5812. return hyphenate(eventKeyName) !== key
  5813. }
  5814. }
  5815. /* */
  5816. /**
  5817. * Runtime helper for merging v-bind="object" into a VNode's data.
  5818. */
  5819. function bindObjectProps (
  5820. data,
  5821. tag,
  5822. value,
  5823. asProp,
  5824. isSync
  5825. ) {
  5826. if (value) {
  5827. if (!isObject(value)) {
  5828. true && warn(
  5829. 'v-bind without argument expects an Object or Array value',
  5830. this
  5831. );
  5832. } else {
  5833. if (Array.isArray(value)) {
  5834. value = toObject(value);
  5835. }
  5836. var hash;
  5837. var loop = function ( key ) {
  5838. if (
  5839. key === 'class' ||
  5840. key === 'style' ||
  5841. isReservedAttribute(key)
  5842. ) {
  5843. hash = data;
  5844. } else {
  5845. var type = data.attrs && data.attrs.type;
  5846. hash = asProp || config.mustUseProp(tag, type, key)
  5847. ? data.domProps || (data.domProps = {})
  5848. : data.attrs || (data.attrs = {});
  5849. }
  5850. var camelizedKey = camelize(key);
  5851. var hyphenatedKey = hyphenate(key);
  5852. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  5853. hash[key] = value[key];
  5854. if (isSync) {
  5855. var on = data.on || (data.on = {});
  5856. on[("update:" + key)] = function ($event) {
  5857. value[key] = $event;
  5858. };
  5859. }
  5860. }
  5861. };
  5862. for (var key in value) loop( key );
  5863. }
  5864. }
  5865. return data
  5866. }
  5867. /* */
  5868. /**
  5869. * Runtime helper for rendering static trees.
  5870. */
  5871. function renderStatic (
  5872. index,
  5873. isInFor
  5874. ) {
  5875. var cached = this._staticTrees || (this._staticTrees = []);
  5876. var tree = cached[index];
  5877. // if has already-rendered static tree and not inside v-for,
  5878. // we can reuse the same tree.
  5879. if (tree && !isInFor) {
  5880. return tree
  5881. }
  5882. // otherwise, render a fresh tree.
  5883. tree = cached[index] = this.$options.staticRenderFns[index].call(
  5884. this._renderProxy,
  5885. null,
  5886. this // for render fns generated for functional component templates
  5887. );
  5888. markStatic(tree, ("__static__" + index), false);
  5889. return tree
  5890. }
  5891. /**
  5892. * Runtime helper for v-once.
  5893. * Effectively it means marking the node as static with a unique key.
  5894. */
  5895. function markOnce (
  5896. tree,
  5897. index,
  5898. key
  5899. ) {
  5900. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  5901. return tree
  5902. }
  5903. function markStatic (
  5904. tree,
  5905. key,
  5906. isOnce
  5907. ) {
  5908. if (Array.isArray(tree)) {
  5909. for (var i = 0; i < tree.length; i++) {
  5910. if (tree[i] && typeof tree[i] !== 'string') {
  5911. markStaticNode(tree[i], (key + "_" + i), isOnce);
  5912. }
  5913. }
  5914. } else {
  5915. markStaticNode(tree, key, isOnce);
  5916. }
  5917. }
  5918. function markStaticNode (node, key, isOnce) {
  5919. node.isStatic = true;
  5920. node.key = key;
  5921. node.isOnce = isOnce;
  5922. }
  5923. /* */
  5924. function bindObjectListeners (data, value) {
  5925. if (value) {
  5926. if (!isPlainObject(value)) {
  5927. true && warn(
  5928. 'v-on without argument expects an Object value',
  5929. this
  5930. );
  5931. } else {
  5932. var on = data.on = data.on ? extend({}, data.on) : {};
  5933. for (var key in value) {
  5934. var existing = on[key];
  5935. var ours = value[key];
  5936. on[key] = existing ? [].concat(existing, ours) : ours;
  5937. }
  5938. }
  5939. }
  5940. return data
  5941. }
  5942. /* */
  5943. function resolveScopedSlots (
  5944. fns, // see flow/vnode
  5945. res,
  5946. // the following are added in 2.6
  5947. hasDynamicKeys,
  5948. contentHashKey
  5949. ) {
  5950. res = res || { $stable: !hasDynamicKeys };
  5951. for (var i = 0; i < fns.length; i++) {
  5952. var slot = fns[i];
  5953. if (Array.isArray(slot)) {
  5954. resolveScopedSlots(slot, res, hasDynamicKeys);
  5955. } else if (slot) {
  5956. // marker for reverse proxying v-slot without scope on this.$slots
  5957. if (slot.proxy) {
  5958. slot.fn.proxy = true;
  5959. }
  5960. res[slot.key] = slot.fn;
  5961. }
  5962. }
  5963. if (contentHashKey) {
  5964. (res).$key = contentHashKey;
  5965. }
  5966. return res
  5967. }
  5968. /* */
  5969. function bindDynamicKeys (baseObj, values) {
  5970. for (var i = 0; i < values.length; i += 2) {
  5971. var key = values[i];
  5972. if (typeof key === 'string' && key) {
  5973. baseObj[values[i]] = values[i + 1];
  5974. } else if ( true && key !== '' && key !== null) {
  5975. // null is a special value for explicitly removing a binding
  5976. warn(
  5977. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  5978. this
  5979. );
  5980. }
  5981. }
  5982. return baseObj
  5983. }
  5984. // helper to dynamically append modifier runtime markers to event names.
  5985. // ensure only append when value is already string, otherwise it will be cast
  5986. // to string and cause the type check to miss.
  5987. function prependModifier (value, symbol) {
  5988. return typeof value === 'string' ? symbol + value : value
  5989. }
  5990. /* */
  5991. function installRenderHelpers (target) {
  5992. target._o = markOnce;
  5993. target._n = toNumber;
  5994. target._s = toString;
  5995. target._l = renderList;
  5996. target._t = renderSlot;
  5997. target._q = looseEqual;
  5998. target._i = looseIndexOf;
  5999. target._m = renderStatic;
  6000. target._f = resolveFilter;
  6001. target._k = checkKeyCodes;
  6002. target._b = bindObjectProps;
  6003. target._v = createTextVNode;
  6004. target._e = createEmptyVNode;
  6005. target._u = resolveScopedSlots;
  6006. target._g = bindObjectListeners;
  6007. target._d = bindDynamicKeys;
  6008. target._p = prependModifier;
  6009. }
  6010. /* */
  6011. function FunctionalRenderContext (
  6012. data,
  6013. props,
  6014. children,
  6015. parent,
  6016. Ctor
  6017. ) {
  6018. var this$1 = this;
  6019. var options = Ctor.options;
  6020. // ensure the createElement function in functional components
  6021. // gets a unique context - this is necessary for correct named slot check
  6022. var contextVm;
  6023. if (hasOwn(parent, '_uid')) {
  6024. contextVm = Object.create(parent);
  6025. // $flow-disable-line
  6026. contextVm._original = parent;
  6027. } else {
  6028. // the context vm passed in is a functional context as well.
  6029. // in this case we want to make sure we are able to get a hold to the
  6030. // real context instance.
  6031. contextVm = parent;
  6032. // $flow-disable-line
  6033. parent = parent._original;
  6034. }
  6035. var isCompiled = isTrue(options._compiled);
  6036. var needNormalization = !isCompiled;
  6037. this.data = data;
  6038. this.props = props;
  6039. this.children = children;
  6040. this.parent = parent;
  6041. this.listeners = data.on || emptyObject;
  6042. this.injections = resolveInject(options.inject, parent);
  6043. this.slots = function () {
  6044. if (!this$1.$slots) {
  6045. normalizeScopedSlots(
  6046. data.scopedSlots,
  6047. this$1.$slots = resolveSlots(children, parent)
  6048. );
  6049. }
  6050. return this$1.$slots
  6051. };
  6052. Object.defineProperty(this, 'scopedSlots', ({
  6053. enumerable: true,
  6054. get: function get () {
  6055. return normalizeScopedSlots(data.scopedSlots, this.slots())
  6056. }
  6057. }));
  6058. // support for compiled functional template
  6059. if (isCompiled) {
  6060. // exposing $options for renderStatic()
  6061. this.$options = options;
  6062. // pre-resolve slots for renderSlot()
  6063. this.$slots = this.slots();
  6064. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  6065. }
  6066. if (options._scopeId) {
  6067. this._c = function (a, b, c, d) {
  6068. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  6069. if (vnode && !Array.isArray(vnode)) {
  6070. vnode.fnScopeId = options._scopeId;
  6071. vnode.fnContext = parent;
  6072. }
  6073. return vnode
  6074. };
  6075. } else {
  6076. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  6077. }
  6078. }
  6079. installRenderHelpers(FunctionalRenderContext.prototype);
  6080. function createFunctionalComponent (
  6081. Ctor,
  6082. propsData,
  6083. data,
  6084. contextVm,
  6085. children
  6086. ) {
  6087. var options = Ctor.options;
  6088. var props = {};
  6089. var propOptions = options.props;
  6090. if (isDef(propOptions)) {
  6091. for (var key in propOptions) {
  6092. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  6093. }
  6094. } else {
  6095. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  6096. if (isDef(data.props)) { mergeProps(props, data.props); }
  6097. }
  6098. var renderContext = new FunctionalRenderContext(
  6099. data,
  6100. props,
  6101. children,
  6102. contextVm,
  6103. Ctor
  6104. );
  6105. var vnode = options.render.call(null, renderContext._c, renderContext);
  6106. if (vnode instanceof VNode) {
  6107. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  6108. } else if (Array.isArray(vnode)) {
  6109. var vnodes = normalizeChildren(vnode) || [];
  6110. var res = new Array(vnodes.length);
  6111. for (var i = 0; i < vnodes.length; i++) {
  6112. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  6113. }
  6114. return res
  6115. }
  6116. }
  6117. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  6118. // #7817 clone node before setting fnContext, otherwise if the node is reused
  6119. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  6120. // that should not be matched to match.
  6121. var clone = cloneVNode(vnode);
  6122. clone.fnContext = contextVm;
  6123. clone.fnOptions = options;
  6124. if (true) {
  6125. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  6126. }
  6127. if (data.slot) {
  6128. (clone.data || (clone.data = {})).slot = data.slot;
  6129. }
  6130. return clone
  6131. }
  6132. function mergeProps (to, from) {
  6133. for (var key in from) {
  6134. to[camelize(key)] = from[key];
  6135. }
  6136. }
  6137. /* */
  6138. /* */
  6139. /* */
  6140. /* */
  6141. // inline hooks to be invoked on component VNodes during patch
  6142. var componentVNodeHooks = {
  6143. init: function init (vnode, hydrating) {
  6144. if (
  6145. vnode.componentInstance &&
  6146. !vnode.componentInstance._isDestroyed &&
  6147. vnode.data.keepAlive
  6148. ) {
  6149. // kept-alive components, treat as a patch
  6150. var mountedNode = vnode; // work around flow
  6151. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  6152. } else {
  6153. var child = vnode.componentInstance = createComponentInstanceForVnode(
  6154. vnode,
  6155. activeInstance
  6156. );
  6157. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  6158. }
  6159. },
  6160. prepatch: function prepatch (oldVnode, vnode) {
  6161. var options = vnode.componentOptions;
  6162. var child = vnode.componentInstance = oldVnode.componentInstance;
  6163. updateChildComponent(
  6164. child,
  6165. options.propsData, // updated props
  6166. options.listeners, // updated listeners
  6167. vnode, // new parent vnode
  6168. options.children // new children
  6169. );
  6170. },
  6171. insert: function insert (vnode) {
  6172. var context = vnode.context;
  6173. var componentInstance = vnode.componentInstance;
  6174. if (!componentInstance._isMounted) {
  6175. callHook(componentInstance, 'onServiceCreated');
  6176. callHook(componentInstance, 'onServiceAttached');
  6177. componentInstance._isMounted = true;
  6178. callHook(componentInstance, 'mounted');
  6179. }
  6180. if (vnode.data.keepAlive) {
  6181. if (context._isMounted) {
  6182. // vue-router#1212
  6183. // During updates, a kept-alive component's child components may
  6184. // change, so directly walking the tree here may call activated hooks
  6185. // on incorrect children. Instead we push them into a queue which will
  6186. // be processed after the whole patch process ended.
  6187. queueActivatedComponent(componentInstance);
  6188. } else {
  6189. activateChildComponent(componentInstance, true /* direct */);
  6190. }
  6191. }
  6192. },
  6193. destroy: function destroy (vnode) {
  6194. var componentInstance = vnode.componentInstance;
  6195. if (!componentInstance._isDestroyed) {
  6196. if (!vnode.data.keepAlive) {
  6197. componentInstance.$destroy();
  6198. } else {
  6199. deactivateChildComponent(componentInstance, true /* direct */);
  6200. }
  6201. }
  6202. }
  6203. };
  6204. var hooksToMerge = Object.keys(componentVNodeHooks);
  6205. function createComponent (
  6206. Ctor,
  6207. data,
  6208. context,
  6209. children,
  6210. tag
  6211. ) {
  6212. if (isUndef(Ctor)) {
  6213. return
  6214. }
  6215. var baseCtor = context.$options._base;
  6216. // plain options object: turn it into a constructor
  6217. if (isObject(Ctor)) {
  6218. Ctor = baseCtor.extend(Ctor);
  6219. }
  6220. // if at this stage it's not a constructor or an async component factory,
  6221. // reject.
  6222. if (typeof Ctor !== 'function') {
  6223. if (true) {
  6224. warn(("Invalid Component definition: " + (String(Ctor))), context);
  6225. }
  6226. return
  6227. }
  6228. // async component
  6229. var asyncFactory;
  6230. if (isUndef(Ctor.cid)) {
  6231. asyncFactory = Ctor;
  6232. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  6233. if (Ctor === undefined) {
  6234. // return a placeholder node for async component, which is rendered
  6235. // as a comment node but preserves all the raw information for the node.
  6236. // the information will be used for async server-rendering and hydration.
  6237. return createAsyncPlaceholder(
  6238. asyncFactory,
  6239. data,
  6240. context,
  6241. children,
  6242. tag
  6243. )
  6244. }
  6245. }
  6246. data = data || {};
  6247. // resolve constructor options in case global mixins are applied after
  6248. // component constructor creation
  6249. resolveConstructorOptions(Ctor);
  6250. // transform component v-model data into props & events
  6251. if (isDef(data.model)) {
  6252. transformModel(Ctor.options, data);
  6253. }
  6254. // extract props
  6255. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  6256. // functional component
  6257. if (isTrue(Ctor.options.functional)) {
  6258. return createFunctionalComponent(Ctor, propsData, data, context, children)
  6259. }
  6260. // extract listeners, since these needs to be treated as
  6261. // child component listeners instead of DOM listeners
  6262. var listeners = data.on;
  6263. // replace with listeners with .native modifier
  6264. // so it gets processed during parent component patch.
  6265. data.on = data.nativeOn;
  6266. if (isTrue(Ctor.options.abstract)) {
  6267. // abstract components do not keep anything
  6268. // other than props & listeners & slot
  6269. // work around flow
  6270. var slot = data.slot;
  6271. data = {};
  6272. if (slot) {
  6273. data.slot = slot;
  6274. }
  6275. }
  6276. // install component management hooks onto the placeholder node
  6277. installComponentHooks(data);
  6278. // return a placeholder vnode
  6279. var name = Ctor.options.name || tag;
  6280. var vnode = new VNode(
  6281. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  6282. data, undefined, undefined, undefined, context,
  6283. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  6284. asyncFactory
  6285. );
  6286. return vnode
  6287. }
  6288. function createComponentInstanceForVnode (
  6289. vnode, // we know it's MountedComponentVNode but flow doesn't
  6290. parent // activeInstance in lifecycle state
  6291. ) {
  6292. var options = {
  6293. _isComponent: true,
  6294. _parentVnode: vnode,
  6295. parent: parent
  6296. };
  6297. // check inline-template render functions
  6298. var inlineTemplate = vnode.data.inlineTemplate;
  6299. if (isDef(inlineTemplate)) {
  6300. options.render = inlineTemplate.render;
  6301. options.staticRenderFns = inlineTemplate.staticRenderFns;
  6302. }
  6303. return new vnode.componentOptions.Ctor(options)
  6304. }
  6305. function installComponentHooks (data) {
  6306. var hooks = data.hook || (data.hook = {});
  6307. for (var i = 0; i < hooksToMerge.length; i++) {
  6308. var key = hooksToMerge[i];
  6309. var existing = hooks[key];
  6310. var toMerge = componentVNodeHooks[key];
  6311. if (existing !== toMerge && !(existing && existing._merged)) {
  6312. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  6313. }
  6314. }
  6315. }
  6316. function mergeHook$1 (f1, f2) {
  6317. var merged = function (a, b) {
  6318. // flow complains about extra args which is why we use any
  6319. f1(a, b);
  6320. f2(a, b);
  6321. };
  6322. merged._merged = true;
  6323. return merged
  6324. }
  6325. // transform component v-model info (value and callback) into
  6326. // prop and event handler respectively.
  6327. function transformModel (options, data) {
  6328. var prop = (options.model && options.model.prop) || 'value';
  6329. var event = (options.model && options.model.event) || 'input'
  6330. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  6331. var on = data.on || (data.on = {});
  6332. var existing = on[event];
  6333. var callback = data.model.callback;
  6334. if (isDef(existing)) {
  6335. if (
  6336. Array.isArray(existing)
  6337. ? existing.indexOf(callback) === -1
  6338. : existing !== callback
  6339. ) {
  6340. on[event] = [callback].concat(existing);
  6341. }
  6342. } else {
  6343. on[event] = callback;
  6344. }
  6345. }
  6346. /* */
  6347. var SIMPLE_NORMALIZE = 1;
  6348. var ALWAYS_NORMALIZE = 2;
  6349. // wrapper function for providing a more flexible interface
  6350. // without getting yelled at by flow
  6351. function createElement (
  6352. context,
  6353. tag,
  6354. data,
  6355. children,
  6356. normalizationType,
  6357. alwaysNormalize
  6358. ) {
  6359. if (Array.isArray(data) || isPrimitive(data)) {
  6360. normalizationType = children;
  6361. children = data;
  6362. data = undefined;
  6363. }
  6364. if (isTrue(alwaysNormalize)) {
  6365. normalizationType = ALWAYS_NORMALIZE;
  6366. }
  6367. return _createElement(context, tag, data, children, normalizationType)
  6368. }
  6369. function _createElement (
  6370. context,
  6371. tag,
  6372. data,
  6373. children,
  6374. normalizationType
  6375. ) {
  6376. if (isDef(data) && isDef((data).__ob__)) {
  6377. true && warn(
  6378. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  6379. 'Always create fresh vnode data objects in each render!',
  6380. context
  6381. );
  6382. return createEmptyVNode()
  6383. }
  6384. // object syntax in v-bind
  6385. if (isDef(data) && isDef(data.is)) {
  6386. tag = data.is;
  6387. }
  6388. if (!tag) {
  6389. // in case of component :is set to falsy value
  6390. return createEmptyVNode()
  6391. }
  6392. // warn against non-primitive key
  6393. if ( true &&
  6394. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  6395. ) {
  6396. {
  6397. warn(
  6398. 'Avoid using non-primitive value as key, ' +
  6399. 'use string/number value instead.',
  6400. context
  6401. );
  6402. }
  6403. }
  6404. // support single function children as default scoped slot
  6405. if (Array.isArray(children) &&
  6406. typeof children[0] === 'function'
  6407. ) {
  6408. data = data || {};
  6409. data.scopedSlots = { default: children[0] };
  6410. children.length = 0;
  6411. }
  6412. if (normalizationType === ALWAYS_NORMALIZE) {
  6413. children = normalizeChildren(children);
  6414. } else if (normalizationType === SIMPLE_NORMALIZE) {
  6415. children = simpleNormalizeChildren(children);
  6416. }
  6417. var vnode, ns;
  6418. if (typeof tag === 'string') {
  6419. var Ctor;
  6420. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  6421. if (config.isReservedTag(tag)) {
  6422. // platform built-in elements
  6423. if ( true && isDef(data) && isDef(data.nativeOn)) {
  6424. warn(
  6425. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  6426. context
  6427. );
  6428. }
  6429. vnode = new VNode(
  6430. config.parsePlatformTagName(tag), data, children,
  6431. undefined, undefined, context
  6432. );
  6433. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  6434. // component
  6435. vnode = createComponent(Ctor, data, context, children, tag);
  6436. } else {
  6437. // unknown or unlisted namespaced elements
  6438. // check at runtime because it may get assigned a namespace when its
  6439. // parent normalizes children
  6440. vnode = new VNode(
  6441. tag, data, children,
  6442. undefined, undefined, context
  6443. );
  6444. }
  6445. } else {
  6446. // direct component options / constructor
  6447. vnode = createComponent(tag, data, context, children);
  6448. }
  6449. if (Array.isArray(vnode)) {
  6450. return vnode
  6451. } else if (isDef(vnode)) {
  6452. if (isDef(ns)) { applyNS(vnode, ns); }
  6453. if (isDef(data)) { registerDeepBindings(data); }
  6454. return vnode
  6455. } else {
  6456. return createEmptyVNode()
  6457. }
  6458. }
  6459. function applyNS (vnode, ns, force) {
  6460. vnode.ns = ns;
  6461. if (vnode.tag === 'foreignObject') {
  6462. // use default namespace inside foreignObject
  6463. ns = undefined;
  6464. force = true;
  6465. }
  6466. if (isDef(vnode.children)) {
  6467. for (var i = 0, l = vnode.children.length; i < l; i++) {
  6468. var child = vnode.children[i];
  6469. if (isDef(child.tag) && (
  6470. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  6471. applyNS(child, ns, force);
  6472. }
  6473. }
  6474. }
  6475. }
  6476. // ref #5318
  6477. // necessary to ensure parent re-render when deep bindings like :style and
  6478. // :class are used on slot nodes
  6479. function registerDeepBindings (data) {
  6480. if (isObject(data.style)) {
  6481. traverse(data.style);
  6482. }
  6483. if (isObject(data.class)) {
  6484. traverse(data.class);
  6485. }
  6486. }
  6487. /* */
  6488. function initRender (vm) {
  6489. vm._vnode = null; // the root of the child tree
  6490. vm._staticTrees = null; // v-once cached trees
  6491. var options = vm.$options;
  6492. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  6493. var renderContext = parentVnode && parentVnode.context;
  6494. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  6495. vm.$scopedSlots = emptyObject;
  6496. // bind the createElement fn to this instance
  6497. // so that we get proper render context inside it.
  6498. // args order: tag, data, children, normalizationType, alwaysNormalize
  6499. // internal version is used by render functions compiled from templates
  6500. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  6501. // normalization is always applied for the public version, used in
  6502. // user-written render functions.
  6503. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  6504. // $attrs & $listeners are exposed for easier HOC creation.
  6505. // they need to be reactive so that HOCs using them are always updated
  6506. var parentData = parentVnode && parentVnode.data;
  6507. /* istanbul ignore else */
  6508. if (true) {
  6509. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  6510. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  6511. }, true);
  6512. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  6513. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  6514. }, true);
  6515. } else {}
  6516. }
  6517. var currentRenderingInstance = null;
  6518. function renderMixin (Vue) {
  6519. // install runtime convenience helpers
  6520. installRenderHelpers(Vue.prototype);
  6521. Vue.prototype.$nextTick = function (fn) {
  6522. return nextTick(fn, this)
  6523. };
  6524. Vue.prototype._render = function () {
  6525. var vm = this;
  6526. var ref = vm.$options;
  6527. var render = ref.render;
  6528. var _parentVnode = ref._parentVnode;
  6529. if (_parentVnode) {
  6530. vm.$scopedSlots = normalizeScopedSlots(
  6531. _parentVnode.data.scopedSlots,
  6532. vm.$slots,
  6533. vm.$scopedSlots
  6534. );
  6535. }
  6536. // set parent vnode. this allows render functions to have access
  6537. // to the data on the placeholder node.
  6538. vm.$vnode = _parentVnode;
  6539. // render self
  6540. var vnode;
  6541. try {
  6542. // There's no need to maintain a stack because all render fns are called
  6543. // separately from one another. Nested component's render fns are called
  6544. // when parent component is patched.
  6545. currentRenderingInstance = vm;
  6546. vnode = render.call(vm._renderProxy, vm.$createElement);
  6547. } catch (e) {
  6548. handleError(e, vm, "render");
  6549. // return error render result,
  6550. // or previous vnode to prevent render error causing blank component
  6551. /* istanbul ignore else */
  6552. if ( true && vm.$options.renderError) {
  6553. try {
  6554. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  6555. } catch (e) {
  6556. handleError(e, vm, "renderError");
  6557. vnode = vm._vnode;
  6558. }
  6559. } else {
  6560. vnode = vm._vnode;
  6561. }
  6562. } finally {
  6563. currentRenderingInstance = null;
  6564. }
  6565. // if the returned array contains only a single node, allow it
  6566. if (Array.isArray(vnode) && vnode.length === 1) {
  6567. vnode = vnode[0];
  6568. }
  6569. // return empty vnode in case the render function errored out
  6570. if (!(vnode instanceof VNode)) {
  6571. if ( true && Array.isArray(vnode)) {
  6572. warn(
  6573. 'Multiple root nodes returned from render function. Render function ' +
  6574. 'should return a single root node.',
  6575. vm
  6576. );
  6577. }
  6578. vnode = createEmptyVNode();
  6579. }
  6580. // set parent
  6581. vnode.parent = _parentVnode;
  6582. return vnode
  6583. };
  6584. }
  6585. /* */
  6586. function ensureCtor (comp, base) {
  6587. if (
  6588. comp.__esModule ||
  6589. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  6590. ) {
  6591. comp = comp.default;
  6592. }
  6593. return isObject(comp)
  6594. ? base.extend(comp)
  6595. : comp
  6596. }
  6597. function createAsyncPlaceholder (
  6598. factory,
  6599. data,
  6600. context,
  6601. children,
  6602. tag
  6603. ) {
  6604. var node = createEmptyVNode();
  6605. node.asyncFactory = factory;
  6606. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  6607. return node
  6608. }
  6609. function resolveAsyncComponent (
  6610. factory,
  6611. baseCtor
  6612. ) {
  6613. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  6614. return factory.errorComp
  6615. }
  6616. if (isDef(factory.resolved)) {
  6617. return factory.resolved
  6618. }
  6619. var owner = currentRenderingInstance;
  6620. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  6621. // already pending
  6622. factory.owners.push(owner);
  6623. }
  6624. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  6625. return factory.loadingComp
  6626. }
  6627. if (owner && !isDef(factory.owners)) {
  6628. var owners = factory.owners = [owner];
  6629. var sync = true;
  6630. var timerLoading = null;
  6631. var timerTimeout = null
  6632. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  6633. var forceRender = function (renderCompleted) {
  6634. for (var i = 0, l = owners.length; i < l; i++) {
  6635. (owners[i]).$forceUpdate();
  6636. }
  6637. if (renderCompleted) {
  6638. owners.length = 0;
  6639. if (timerLoading !== null) {
  6640. clearTimeout(timerLoading);
  6641. timerLoading = null;
  6642. }
  6643. if (timerTimeout !== null) {
  6644. clearTimeout(timerTimeout);
  6645. timerTimeout = null;
  6646. }
  6647. }
  6648. };
  6649. var resolve = once(function (res) {
  6650. // cache resolved
  6651. factory.resolved = ensureCtor(res, baseCtor);
  6652. // invoke callbacks only if this is not a synchronous resolve
  6653. // (async resolves are shimmed as synchronous during SSR)
  6654. if (!sync) {
  6655. forceRender(true);
  6656. } else {
  6657. owners.length = 0;
  6658. }
  6659. });
  6660. var reject = once(function (reason) {
  6661. true && warn(
  6662. "Failed to resolve async component: " + (String(factory)) +
  6663. (reason ? ("\nReason: " + reason) : '')
  6664. );
  6665. if (isDef(factory.errorComp)) {
  6666. factory.error = true;
  6667. forceRender(true);
  6668. }
  6669. });
  6670. var res = factory(resolve, reject);
  6671. if (isObject(res)) {
  6672. if (isPromise(res)) {
  6673. // () => Promise
  6674. if (isUndef(factory.resolved)) {
  6675. res.then(resolve, reject);
  6676. }
  6677. } else if (isPromise(res.component)) {
  6678. res.component.then(resolve, reject);
  6679. if (isDef(res.error)) {
  6680. factory.errorComp = ensureCtor(res.error, baseCtor);
  6681. }
  6682. if (isDef(res.loading)) {
  6683. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  6684. if (res.delay === 0) {
  6685. factory.loading = true;
  6686. } else {
  6687. timerLoading = setTimeout(function () {
  6688. timerLoading = null;
  6689. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  6690. factory.loading = true;
  6691. forceRender(false);
  6692. }
  6693. }, res.delay || 200);
  6694. }
  6695. }
  6696. if (isDef(res.timeout)) {
  6697. timerTimeout = setTimeout(function () {
  6698. timerTimeout = null;
  6699. if (isUndef(factory.resolved)) {
  6700. reject(
  6701. true
  6702. ? ("timeout (" + (res.timeout) + "ms)")
  6703. : undefined
  6704. );
  6705. }
  6706. }, res.timeout);
  6707. }
  6708. }
  6709. }
  6710. sync = false;
  6711. // return in case resolved synchronously
  6712. return factory.loading
  6713. ? factory.loadingComp
  6714. : factory.resolved
  6715. }
  6716. }
  6717. /* */
  6718. function isAsyncPlaceholder (node) {
  6719. return node.isComment && node.asyncFactory
  6720. }
  6721. /* */
  6722. function getFirstComponentChild (children) {
  6723. if (Array.isArray(children)) {
  6724. for (var i = 0; i < children.length; i++) {
  6725. var c = children[i];
  6726. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  6727. return c
  6728. }
  6729. }
  6730. }
  6731. }
  6732. /* */
  6733. /* */
  6734. function initEvents (vm) {
  6735. vm._events = Object.create(null);
  6736. vm._hasHookEvent = false;
  6737. // init parent attached events
  6738. var listeners = vm.$options._parentListeners;
  6739. if (listeners) {
  6740. updateComponentListeners(vm, listeners);
  6741. }
  6742. }
  6743. var target;
  6744. function add (event, fn) {
  6745. target.$on(event, fn);
  6746. }
  6747. function remove$1 (event, fn) {
  6748. target.$off(event, fn);
  6749. }
  6750. function createOnceHandler (event, fn) {
  6751. var _target = target;
  6752. return function onceHandler () {
  6753. var res = fn.apply(null, arguments);
  6754. if (res !== null) {
  6755. _target.$off(event, onceHandler);
  6756. }
  6757. }
  6758. }
  6759. function updateComponentListeners (
  6760. vm,
  6761. listeners,
  6762. oldListeners
  6763. ) {
  6764. target = vm;
  6765. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  6766. target = undefined;
  6767. }
  6768. function eventsMixin (Vue) {
  6769. var hookRE = /^hook:/;
  6770. Vue.prototype.$on = function (event, fn) {
  6771. var vm = this;
  6772. if (Array.isArray(event)) {
  6773. for (var i = 0, l = event.length; i < l; i++) {
  6774. vm.$on(event[i], fn);
  6775. }
  6776. } else {
  6777. (vm._events[event] || (vm._events[event] = [])).push(fn);
  6778. // optimize hook:event cost by using a boolean flag marked at registration
  6779. // instead of a hash lookup
  6780. if (hookRE.test(event)) {
  6781. vm._hasHookEvent = true;
  6782. }
  6783. }
  6784. return vm
  6785. };
  6786. Vue.prototype.$once = function (event, fn) {
  6787. var vm = this;
  6788. function on () {
  6789. vm.$off(event, on);
  6790. fn.apply(vm, arguments);
  6791. }
  6792. on.fn = fn;
  6793. vm.$on(event, on);
  6794. return vm
  6795. };
  6796. Vue.prototype.$off = function (event, fn) {
  6797. var vm = this;
  6798. // all
  6799. if (!arguments.length) {
  6800. vm._events = Object.create(null);
  6801. return vm
  6802. }
  6803. // array of events
  6804. if (Array.isArray(event)) {
  6805. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  6806. vm.$off(event[i$1], fn);
  6807. }
  6808. return vm
  6809. }
  6810. // specific event
  6811. var cbs = vm._events[event];
  6812. if (!cbs) {
  6813. return vm
  6814. }
  6815. if (!fn) {
  6816. vm._events[event] = null;
  6817. return vm
  6818. }
  6819. // specific handler
  6820. var cb;
  6821. var i = cbs.length;
  6822. while (i--) {
  6823. cb = cbs[i];
  6824. if (cb === fn || cb.fn === fn) {
  6825. cbs.splice(i, 1);
  6826. break
  6827. }
  6828. }
  6829. return vm
  6830. };
  6831. Vue.prototype.$emit = function (event) {
  6832. var vm = this;
  6833. if (true) {
  6834. var lowerCaseEvent = event.toLowerCase();
  6835. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  6836. tip(
  6837. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  6838. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  6839. "Note that HTML attributes are case-insensitive and you cannot use " +
  6840. "v-on to listen to camelCase events when using in-DOM templates. " +
  6841. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  6842. );
  6843. }
  6844. }
  6845. var cbs = vm._events[event];
  6846. if (cbs) {
  6847. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  6848. var args = toArray(arguments, 1);
  6849. var info = "event handler for \"" + event + "\"";
  6850. for (var i = 0, l = cbs.length; i < l; i++) {
  6851. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  6852. }
  6853. }
  6854. return vm
  6855. };
  6856. }
  6857. /* */
  6858. var activeInstance = null;
  6859. var isUpdatingChildComponent = false;
  6860. function setActiveInstance(vm) {
  6861. var prevActiveInstance = activeInstance;
  6862. activeInstance = vm;
  6863. return function () {
  6864. activeInstance = prevActiveInstance;
  6865. }
  6866. }
  6867. function initLifecycle (vm) {
  6868. var options = vm.$options;
  6869. // locate first non-abstract parent
  6870. var parent = options.parent;
  6871. if (parent && !options.abstract) {
  6872. while (parent.$options.abstract && parent.$parent) {
  6873. parent = parent.$parent;
  6874. }
  6875. parent.$children.push(vm);
  6876. }
  6877. vm.$parent = parent;
  6878. vm.$root = parent ? parent.$root : vm;
  6879. vm.$children = [];
  6880. vm.$refs = {};
  6881. vm._watcher = null;
  6882. vm._inactive = null;
  6883. vm._directInactive = false;
  6884. vm._isMounted = false;
  6885. vm._isDestroyed = false;
  6886. vm._isBeingDestroyed = false;
  6887. }
  6888. function lifecycleMixin (Vue) {
  6889. Vue.prototype._update = function (vnode, hydrating) {
  6890. var vm = this;
  6891. var prevEl = vm.$el;
  6892. var prevVnode = vm._vnode;
  6893. var restoreActiveInstance = setActiveInstance(vm);
  6894. vm._vnode = vnode;
  6895. // Vue.prototype.__patch__ is injected in entry points
  6896. // based on the rendering backend used.
  6897. if (!prevVnode) {
  6898. // initial render
  6899. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  6900. } else {
  6901. // updates
  6902. vm.$el = vm.__patch__(prevVnode, vnode);
  6903. }
  6904. restoreActiveInstance();
  6905. // update __vue__ reference
  6906. if (prevEl) {
  6907. prevEl.__vue__ = null;
  6908. }
  6909. if (vm.$el) {
  6910. vm.$el.__vue__ = vm;
  6911. }
  6912. // if parent is an HOC, update its $el as well
  6913. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  6914. vm.$parent.$el = vm.$el;
  6915. }
  6916. // updated hook is called by the scheduler to ensure that children are
  6917. // updated in a parent's updated hook.
  6918. };
  6919. Vue.prototype.$forceUpdate = function () {
  6920. var vm = this;
  6921. if (vm._watcher) {
  6922. vm._watcher.update();
  6923. }
  6924. };
  6925. Vue.prototype.$destroy = function () {
  6926. var vm = this;
  6927. if (vm._isBeingDestroyed) {
  6928. return
  6929. }
  6930. callHook(vm, 'beforeDestroy');
  6931. vm._isBeingDestroyed = true;
  6932. // remove self from parent
  6933. var parent = vm.$parent;
  6934. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  6935. remove(parent.$children, vm);
  6936. }
  6937. // teardown watchers
  6938. if (vm._watcher) {
  6939. vm._watcher.teardown();
  6940. }
  6941. var i = vm._watchers.length;
  6942. while (i--) {
  6943. vm._watchers[i].teardown();
  6944. }
  6945. // remove reference from data ob
  6946. // frozen object may not have observer.
  6947. if (vm._data.__ob__) {
  6948. vm._data.__ob__.vmCount--;
  6949. }
  6950. // call the last hook...
  6951. vm._isDestroyed = true;
  6952. // invoke destroy hooks on current rendered tree
  6953. vm.__patch__(vm._vnode, null);
  6954. // fire destroyed hook
  6955. callHook(vm, 'destroyed');
  6956. // turn off all instance listeners.
  6957. vm.$off();
  6958. // remove __vue__ reference
  6959. if (vm.$el) {
  6960. vm.$el.__vue__ = null;
  6961. }
  6962. // release circular reference (#6759)
  6963. if (vm.$vnode) {
  6964. vm.$vnode.parent = null;
  6965. }
  6966. };
  6967. }
  6968. function updateChildComponent (
  6969. vm,
  6970. propsData,
  6971. listeners,
  6972. parentVnode,
  6973. renderChildren
  6974. ) {
  6975. if (true) {
  6976. isUpdatingChildComponent = true;
  6977. }
  6978. // determine whether component has slot children
  6979. // we need to do this before overwriting $options._renderChildren.
  6980. // check if there are dynamic scopedSlots (hand-written or compiled but with
  6981. // dynamic slot names). Static scoped slots compiled from template has the
  6982. // "$stable" marker.
  6983. var newScopedSlots = parentVnode.data.scopedSlots;
  6984. var oldScopedSlots = vm.$scopedSlots;
  6985. var hasDynamicScopedSlot = !!(
  6986. (newScopedSlots && !newScopedSlots.$stable) ||
  6987. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  6988. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  6989. );
  6990. // Any static slot children from the parent may have changed during parent's
  6991. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  6992. // update is necessary to ensure correctness.
  6993. var needsForceUpdate = !!(
  6994. renderChildren || // has new static slots
  6995. vm.$options._renderChildren || // has old static slots
  6996. hasDynamicScopedSlot
  6997. );
  6998. vm.$options._parentVnode = parentVnode;
  6999. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  7000. if (vm._vnode) { // update child tree's parent
  7001. vm._vnode.parent = parentVnode;
  7002. }
  7003. vm.$options._renderChildren = renderChildren;
  7004. // update $attrs and $listeners hash
  7005. // these are also reactive so they may trigger child update if the child
  7006. // used them during render
  7007. vm.$attrs = parentVnode.data.attrs || emptyObject;
  7008. vm.$listeners = listeners || emptyObject;
  7009. // update props
  7010. if (propsData && vm.$options.props) {
  7011. toggleObserving(false);
  7012. var props = vm._props;
  7013. var propKeys = vm.$options._propKeys || [];
  7014. for (var i = 0; i < propKeys.length; i++) {
  7015. var key = propKeys[i];
  7016. var propOptions = vm.$options.props; // wtf flow?
  7017. props[key] = validateProp(key, propOptions, propsData, vm);
  7018. }
  7019. toggleObserving(true);
  7020. // keep a copy of raw propsData
  7021. vm.$options.propsData = propsData;
  7022. }
  7023. // fixed by xxxxxx update properties(mp runtime)
  7024. vm._$updateProperties && vm._$updateProperties(vm);
  7025. // update listeners
  7026. listeners = listeners || emptyObject;
  7027. var oldListeners = vm.$options._parentListeners;
  7028. vm.$options._parentListeners = listeners;
  7029. updateComponentListeners(vm, listeners, oldListeners);
  7030. // resolve slots + force update if has children
  7031. if (needsForceUpdate) {
  7032. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  7033. vm.$forceUpdate();
  7034. }
  7035. if (true) {
  7036. isUpdatingChildComponent = false;
  7037. }
  7038. }
  7039. function isInInactiveTree (vm) {
  7040. while (vm && (vm = vm.$parent)) {
  7041. if (vm._inactive) { return true }
  7042. }
  7043. return false
  7044. }
  7045. function activateChildComponent (vm, direct) {
  7046. if (direct) {
  7047. vm._directInactive = false;
  7048. if (isInInactiveTree(vm)) {
  7049. return
  7050. }
  7051. } else if (vm._directInactive) {
  7052. return
  7053. }
  7054. if (vm._inactive || vm._inactive === null) {
  7055. vm._inactive = false;
  7056. for (var i = 0; i < vm.$children.length; i++) {
  7057. activateChildComponent(vm.$children[i]);
  7058. }
  7059. callHook(vm, 'activated');
  7060. }
  7061. }
  7062. function deactivateChildComponent (vm, direct) {
  7063. if (direct) {
  7064. vm._directInactive = true;
  7065. if (isInInactiveTree(vm)) {
  7066. return
  7067. }
  7068. }
  7069. if (!vm._inactive) {
  7070. vm._inactive = true;
  7071. for (var i = 0; i < vm.$children.length; i++) {
  7072. deactivateChildComponent(vm.$children[i]);
  7073. }
  7074. callHook(vm, 'deactivated');
  7075. }
  7076. }
  7077. function callHook (vm, hook) {
  7078. // #7573 disable dep collection when invoking lifecycle hooks
  7079. pushTarget();
  7080. var handlers = vm.$options[hook];
  7081. var info = hook + " hook";
  7082. if (handlers) {
  7083. for (var i = 0, j = handlers.length; i < j; i++) {
  7084. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  7085. }
  7086. }
  7087. if (vm._hasHookEvent) {
  7088. vm.$emit('hook:' + hook);
  7089. }
  7090. popTarget();
  7091. }
  7092. /* */
  7093. var MAX_UPDATE_COUNT = 100;
  7094. var queue = [];
  7095. var activatedChildren = [];
  7096. var has = {};
  7097. var circular = {};
  7098. var waiting = false;
  7099. var flushing = false;
  7100. var index = 0;
  7101. /**
  7102. * Reset the scheduler's state.
  7103. */
  7104. function resetSchedulerState () {
  7105. index = queue.length = activatedChildren.length = 0;
  7106. has = {};
  7107. if (true) {
  7108. circular = {};
  7109. }
  7110. waiting = flushing = false;
  7111. }
  7112. // Async edge case #6566 requires saving the timestamp when event listeners are
  7113. // attached. However, calling performance.now() has a perf overhead especially
  7114. // if the page has thousands of event listeners. Instead, we take a timestamp
  7115. // every time the scheduler flushes and use that for all event listeners
  7116. // attached during that flush.
  7117. var currentFlushTimestamp = 0;
  7118. // Async edge case fix requires storing an event listener's attach timestamp.
  7119. var getNow = Date.now;
  7120. // Determine what event timestamp the browser is using. Annoyingly, the
  7121. // timestamp can either be hi-res (relative to page load) or low-res
  7122. // (relative to UNIX epoch), so in order to compare time we have to use the
  7123. // same timestamp type when saving the flush timestamp.
  7124. // All IE versions use low-res event timestamps, and have problematic clock
  7125. // implementations (#9632)
  7126. if (inBrowser && !isIE) {
  7127. var performance = window.performance;
  7128. if (
  7129. performance &&
  7130. typeof performance.now === 'function' &&
  7131. getNow() > document.createEvent('Event').timeStamp
  7132. ) {
  7133. // if the event timestamp, although evaluated AFTER the Date.now(), is
  7134. // smaller than it, it means the event is using a hi-res timestamp,
  7135. // and we need to use the hi-res version for event listener timestamps as
  7136. // well.
  7137. getNow = function () { return performance.now(); };
  7138. }
  7139. }
  7140. /**
  7141. * Flush both queues and run the watchers.
  7142. */
  7143. function flushSchedulerQueue () {
  7144. currentFlushTimestamp = getNow();
  7145. flushing = true;
  7146. var watcher, id;
  7147. // Sort queue before flush.
  7148. // This ensures that:
  7149. // 1. Components are updated from parent to child. (because parent is always
  7150. // created before the child)
  7151. // 2. A component's user watchers are run before its render watcher (because
  7152. // user watchers are created before the render watcher)
  7153. // 3. If a component is destroyed during a parent component's watcher run,
  7154. // its watchers can be skipped.
  7155. queue.sort(function (a, b) { return a.id - b.id; });
  7156. // do not cache length because more watchers might be pushed
  7157. // as we run existing watchers
  7158. for (index = 0; index < queue.length; index++) {
  7159. watcher = queue[index];
  7160. if (watcher.before) {
  7161. watcher.before();
  7162. }
  7163. id = watcher.id;
  7164. has[id] = null;
  7165. watcher.run();
  7166. // in dev build, check and stop circular updates.
  7167. if ( true && has[id] != null) {
  7168. circular[id] = (circular[id] || 0) + 1;
  7169. if (circular[id] > MAX_UPDATE_COUNT) {
  7170. warn(
  7171. 'You may have an infinite update loop ' + (
  7172. watcher.user
  7173. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  7174. : "in a component render function."
  7175. ),
  7176. watcher.vm
  7177. );
  7178. break
  7179. }
  7180. }
  7181. }
  7182. // keep copies of post queues before resetting state
  7183. var activatedQueue = activatedChildren.slice();
  7184. var updatedQueue = queue.slice();
  7185. resetSchedulerState();
  7186. // call component updated and activated hooks
  7187. callActivatedHooks(activatedQueue);
  7188. callUpdatedHooks(updatedQueue);
  7189. // devtool hook
  7190. /* istanbul ignore if */
  7191. if (devtools && config.devtools) {
  7192. devtools.emit('flush');
  7193. }
  7194. }
  7195. function callUpdatedHooks (queue) {
  7196. var i = queue.length;
  7197. while (i--) {
  7198. var watcher = queue[i];
  7199. var vm = watcher.vm;
  7200. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  7201. callHook(vm, 'updated');
  7202. }
  7203. }
  7204. }
  7205. /**
  7206. * Queue a kept-alive component that was activated during patch.
  7207. * The queue will be processed after the entire tree has been patched.
  7208. */
  7209. function queueActivatedComponent (vm) {
  7210. // setting _inactive to false here so that a render function can
  7211. // rely on checking whether it's in an inactive tree (e.g. router-view)
  7212. vm._inactive = false;
  7213. activatedChildren.push(vm);
  7214. }
  7215. function callActivatedHooks (queue) {
  7216. for (var i = 0; i < queue.length; i++) {
  7217. queue[i]._inactive = true;
  7218. activateChildComponent(queue[i], true /* true */);
  7219. }
  7220. }
  7221. /**
  7222. * Push a watcher into the watcher queue.
  7223. * Jobs with duplicate IDs will be skipped unless it's
  7224. * pushed when the queue is being flushed.
  7225. */
  7226. function queueWatcher (watcher) {
  7227. var id = watcher.id;
  7228. if (has[id] == null) {
  7229. has[id] = true;
  7230. if (!flushing) {
  7231. queue.push(watcher);
  7232. } else {
  7233. // if already flushing, splice the watcher based on its id
  7234. // if already past its id, it will be run next immediately.
  7235. var i = queue.length - 1;
  7236. while (i > index && queue[i].id > watcher.id) {
  7237. i--;
  7238. }
  7239. queue.splice(i + 1, 0, watcher);
  7240. }
  7241. // queue the flush
  7242. if (!waiting) {
  7243. waiting = true;
  7244. if ( true && !config.async) {
  7245. flushSchedulerQueue();
  7246. return
  7247. }
  7248. nextTick(flushSchedulerQueue);
  7249. }
  7250. }
  7251. }
  7252. /* */
  7253. var uid$2 = 0;
  7254. /**
  7255. * A watcher parses an expression, collects dependencies,
  7256. * and fires callback when the expression value changes.
  7257. * This is used for both the $watch() api and directives.
  7258. */
  7259. var Watcher = function Watcher (
  7260. vm,
  7261. expOrFn,
  7262. cb,
  7263. options,
  7264. isRenderWatcher
  7265. ) {
  7266. this.vm = vm;
  7267. if (isRenderWatcher) {
  7268. vm._watcher = this;
  7269. }
  7270. vm._watchers.push(this);
  7271. // options
  7272. if (options) {
  7273. this.deep = !!options.deep;
  7274. this.user = !!options.user;
  7275. this.lazy = !!options.lazy;
  7276. this.sync = !!options.sync;
  7277. this.before = options.before;
  7278. } else {
  7279. this.deep = this.user = this.lazy = this.sync = false;
  7280. }
  7281. this.cb = cb;
  7282. this.id = ++uid$2; // uid for batching
  7283. this.active = true;
  7284. this.dirty = this.lazy; // for lazy watchers
  7285. this.deps = [];
  7286. this.newDeps = [];
  7287. this.depIds = new _Set();
  7288. this.newDepIds = new _Set();
  7289. this.expression = true
  7290. ? expOrFn.toString()
  7291. : undefined;
  7292. // parse expression for getter
  7293. if (typeof expOrFn === 'function') {
  7294. this.getter = expOrFn;
  7295. } else {
  7296. this.getter = parsePath(expOrFn);
  7297. if (!this.getter) {
  7298. this.getter = noop;
  7299. true && warn(
  7300. "Failed watching path: \"" + expOrFn + "\" " +
  7301. 'Watcher only accepts simple dot-delimited paths. ' +
  7302. 'For full control, use a function instead.',
  7303. vm
  7304. );
  7305. }
  7306. }
  7307. this.value = this.lazy
  7308. ? undefined
  7309. : this.get();
  7310. };
  7311. /**
  7312. * Evaluate the getter, and re-collect dependencies.
  7313. */
  7314. Watcher.prototype.get = function get () {
  7315. pushTarget(this);
  7316. var value;
  7317. var vm = this.vm;
  7318. try {
  7319. value = this.getter.call(vm, vm);
  7320. } catch (e) {
  7321. if (this.user) {
  7322. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  7323. } else {
  7324. throw e
  7325. }
  7326. } finally {
  7327. // "touch" every property so they are all tracked as
  7328. // dependencies for deep watching
  7329. if (this.deep) {
  7330. traverse(value);
  7331. }
  7332. popTarget();
  7333. this.cleanupDeps();
  7334. }
  7335. return value
  7336. };
  7337. /**
  7338. * Add a dependency to this directive.
  7339. */
  7340. Watcher.prototype.addDep = function addDep (dep) {
  7341. var id = dep.id;
  7342. if (!this.newDepIds.has(id)) {
  7343. this.newDepIds.add(id);
  7344. this.newDeps.push(dep);
  7345. if (!this.depIds.has(id)) {
  7346. dep.addSub(this);
  7347. }
  7348. }
  7349. };
  7350. /**
  7351. * Clean up for dependency collection.
  7352. */
  7353. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  7354. var i = this.deps.length;
  7355. while (i--) {
  7356. var dep = this.deps[i];
  7357. if (!this.newDepIds.has(dep.id)) {
  7358. dep.removeSub(this);
  7359. }
  7360. }
  7361. var tmp = this.depIds;
  7362. this.depIds = this.newDepIds;
  7363. this.newDepIds = tmp;
  7364. this.newDepIds.clear();
  7365. tmp = this.deps;
  7366. this.deps = this.newDeps;
  7367. this.newDeps = tmp;
  7368. this.newDeps.length = 0;
  7369. };
  7370. /**
  7371. * Subscriber interface.
  7372. * Will be called when a dependency changes.
  7373. */
  7374. Watcher.prototype.update = function update () {
  7375. /* istanbul ignore else */
  7376. if (this.lazy) {
  7377. this.dirty = true;
  7378. } else if (this.sync) {
  7379. this.run();
  7380. } else {
  7381. queueWatcher(this);
  7382. }
  7383. };
  7384. /**
  7385. * Scheduler job interface.
  7386. * Will be called by the scheduler.
  7387. */
  7388. Watcher.prototype.run = function run () {
  7389. if (this.active) {
  7390. var value = this.get();
  7391. if (
  7392. value !== this.value ||
  7393. // Deep watchers and watchers on Object/Arrays should fire even
  7394. // when the value is the same, because the value may
  7395. // have mutated.
  7396. isObject(value) ||
  7397. this.deep
  7398. ) {
  7399. // set new value
  7400. var oldValue = this.value;
  7401. this.value = value;
  7402. if (this.user) {
  7403. try {
  7404. this.cb.call(this.vm, value, oldValue);
  7405. } catch (e) {
  7406. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  7407. }
  7408. } else {
  7409. this.cb.call(this.vm, value, oldValue);
  7410. }
  7411. }
  7412. }
  7413. };
  7414. /**
  7415. * Evaluate the value of the watcher.
  7416. * This only gets called for lazy watchers.
  7417. */
  7418. Watcher.prototype.evaluate = function evaluate () {
  7419. this.value = this.get();
  7420. this.dirty = false;
  7421. };
  7422. /**
  7423. * Depend on all deps collected by this watcher.
  7424. */
  7425. Watcher.prototype.depend = function depend () {
  7426. var i = this.deps.length;
  7427. while (i--) {
  7428. this.deps[i].depend();
  7429. }
  7430. };
  7431. /**
  7432. * Remove self from all dependencies' subscriber list.
  7433. */
  7434. Watcher.prototype.teardown = function teardown () {
  7435. if (this.active) {
  7436. // remove self from vm's watcher list
  7437. // this is a somewhat expensive operation so we skip it
  7438. // if the vm is being destroyed.
  7439. if (!this.vm._isBeingDestroyed) {
  7440. remove(this.vm._watchers, this);
  7441. }
  7442. var i = this.deps.length;
  7443. while (i--) {
  7444. this.deps[i].removeSub(this);
  7445. }
  7446. this.active = false;
  7447. }
  7448. };
  7449. /* */
  7450. var sharedPropertyDefinition = {
  7451. enumerable: true,
  7452. configurable: true,
  7453. get: noop,
  7454. set: noop
  7455. };
  7456. function proxy (target, sourceKey, key) {
  7457. sharedPropertyDefinition.get = function proxyGetter () {
  7458. return this[sourceKey][key]
  7459. };
  7460. sharedPropertyDefinition.set = function proxySetter (val) {
  7461. this[sourceKey][key] = val;
  7462. };
  7463. Object.defineProperty(target, key, sharedPropertyDefinition);
  7464. }
  7465. function initState (vm) {
  7466. vm._watchers = [];
  7467. var opts = vm.$options;
  7468. if (opts.props) { initProps(vm, opts.props); }
  7469. if (opts.methods) { initMethods(vm, opts.methods); }
  7470. if (opts.data) {
  7471. initData(vm);
  7472. } else {
  7473. observe(vm._data = {}, true /* asRootData */);
  7474. }
  7475. if (opts.computed) { initComputed(vm, opts.computed); }
  7476. if (opts.watch && opts.watch !== nativeWatch) {
  7477. initWatch(vm, opts.watch);
  7478. }
  7479. }
  7480. function initProps (vm, propsOptions) {
  7481. var propsData = vm.$options.propsData || {};
  7482. var props = vm._props = {};
  7483. // cache prop keys so that future props updates can iterate using Array
  7484. // instead of dynamic object key enumeration.
  7485. var keys = vm.$options._propKeys = [];
  7486. var isRoot = !vm.$parent;
  7487. // root instance props should be converted
  7488. if (!isRoot) {
  7489. toggleObserving(false);
  7490. }
  7491. var loop = function ( key ) {
  7492. keys.push(key);
  7493. var value = validateProp(key, propsOptions, propsData, vm);
  7494. /* istanbul ignore else */
  7495. if (true) {
  7496. var hyphenatedKey = hyphenate(key);
  7497. if (isReservedAttribute(hyphenatedKey) ||
  7498. config.isReservedAttr(hyphenatedKey)) {
  7499. warn(
  7500. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  7501. vm
  7502. );
  7503. }
  7504. defineReactive$$1(props, key, value, function () {
  7505. if (!isRoot && !isUpdatingChildComponent) {
  7506. {
  7507. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  7508. return
  7509. }
  7510. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  7511. if(
  7512. key === 'value' &&
  7513. Array.isArray(vm.$options.behaviors) &&
  7514. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  7515. ){
  7516. return
  7517. }
  7518. if(vm._getFormData){
  7519. return
  7520. }
  7521. var $parent = vm.$parent;
  7522. while($parent){
  7523. if($parent.__next_tick_pending){
  7524. return
  7525. }
  7526. $parent = $parent.$parent;
  7527. }
  7528. }
  7529. warn(
  7530. "Avoid mutating a prop directly since the value will be " +
  7531. "overwritten whenever the parent component re-renders. " +
  7532. "Instead, use a data or computed property based on the prop's " +
  7533. "value. Prop being mutated: \"" + key + "\"",
  7534. vm
  7535. );
  7536. }
  7537. });
  7538. } else {}
  7539. // static props are already proxied on the component's prototype
  7540. // during Vue.extend(). We only need to proxy props defined at
  7541. // instantiation here.
  7542. if (!(key in vm)) {
  7543. proxy(vm, "_props", key);
  7544. }
  7545. };
  7546. for (var key in propsOptions) loop( key );
  7547. toggleObserving(true);
  7548. }
  7549. function initData (vm) {
  7550. var data = vm.$options.data;
  7551. data = vm._data = typeof data === 'function'
  7552. ? getData(data, vm)
  7553. : data || {};
  7554. if (!isPlainObject(data)) {
  7555. data = {};
  7556. true && warn(
  7557. 'data functions should return an object:\n' +
  7558. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  7559. vm
  7560. );
  7561. }
  7562. // proxy data on instance
  7563. var keys = Object.keys(data);
  7564. var props = vm.$options.props;
  7565. var methods = vm.$options.methods;
  7566. var i = keys.length;
  7567. while (i--) {
  7568. var key = keys[i];
  7569. if (true) {
  7570. if (methods && hasOwn(methods, key)) {
  7571. warn(
  7572. ("Method \"" + key + "\" has already been defined as a data property."),
  7573. vm
  7574. );
  7575. }
  7576. }
  7577. if (props && hasOwn(props, key)) {
  7578. true && warn(
  7579. "The data property \"" + key + "\" is already declared as a prop. " +
  7580. "Use prop default value instead.",
  7581. vm
  7582. );
  7583. } else if (!isReserved(key)) {
  7584. proxy(vm, "_data", key);
  7585. }
  7586. }
  7587. // observe data
  7588. observe(data, true /* asRootData */);
  7589. }
  7590. function getData (data, vm) {
  7591. // #7573 disable dep collection when invoking data getters
  7592. pushTarget();
  7593. try {
  7594. return data.call(vm, vm)
  7595. } catch (e) {
  7596. handleError(e, vm, "data()");
  7597. return {}
  7598. } finally {
  7599. popTarget();
  7600. }
  7601. }
  7602. var computedWatcherOptions = { lazy: true };
  7603. function initComputed (vm, computed) {
  7604. // $flow-disable-line
  7605. var watchers = vm._computedWatchers = Object.create(null);
  7606. // computed properties are just getters during SSR
  7607. var isSSR = isServerRendering();
  7608. for (var key in computed) {
  7609. var userDef = computed[key];
  7610. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  7611. if ( true && getter == null) {
  7612. warn(
  7613. ("Getter is missing for computed property \"" + key + "\"."),
  7614. vm
  7615. );
  7616. }
  7617. if (!isSSR) {
  7618. // create internal watcher for the computed property.
  7619. watchers[key] = new Watcher(
  7620. vm,
  7621. getter || noop,
  7622. noop,
  7623. computedWatcherOptions
  7624. );
  7625. }
  7626. // component-defined computed properties are already defined on the
  7627. // component prototype. We only need to define computed properties defined
  7628. // at instantiation here.
  7629. if (!(key in vm)) {
  7630. defineComputed(vm, key, userDef);
  7631. } else if (true) {
  7632. if (key in vm.$data) {
  7633. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  7634. } else if (vm.$options.props && key in vm.$options.props) {
  7635. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  7636. }
  7637. }
  7638. }
  7639. }
  7640. function defineComputed (
  7641. target,
  7642. key,
  7643. userDef
  7644. ) {
  7645. var shouldCache = !isServerRendering();
  7646. if (typeof userDef === 'function') {
  7647. sharedPropertyDefinition.get = shouldCache
  7648. ? createComputedGetter(key)
  7649. : createGetterInvoker(userDef);
  7650. sharedPropertyDefinition.set = noop;
  7651. } else {
  7652. sharedPropertyDefinition.get = userDef.get
  7653. ? shouldCache && userDef.cache !== false
  7654. ? createComputedGetter(key)
  7655. : createGetterInvoker(userDef.get)
  7656. : noop;
  7657. sharedPropertyDefinition.set = userDef.set || noop;
  7658. }
  7659. if ( true &&
  7660. sharedPropertyDefinition.set === noop) {
  7661. sharedPropertyDefinition.set = function () {
  7662. warn(
  7663. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  7664. this
  7665. );
  7666. };
  7667. }
  7668. Object.defineProperty(target, key, sharedPropertyDefinition);
  7669. }
  7670. function createComputedGetter (key) {
  7671. return function computedGetter () {
  7672. var watcher = this._computedWatchers && this._computedWatchers[key];
  7673. if (watcher) {
  7674. if (watcher.dirty) {
  7675. watcher.evaluate();
  7676. }
  7677. if (Dep.SharedObject.target) {// fixed by xxxxxx
  7678. watcher.depend();
  7679. }
  7680. return watcher.value
  7681. }
  7682. }
  7683. }
  7684. function createGetterInvoker(fn) {
  7685. return function computedGetter () {
  7686. return fn.call(this, this)
  7687. }
  7688. }
  7689. function initMethods (vm, methods) {
  7690. var props = vm.$options.props;
  7691. for (var key in methods) {
  7692. if (true) {
  7693. if (typeof methods[key] !== 'function') {
  7694. warn(
  7695. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  7696. "Did you reference the function correctly?",
  7697. vm
  7698. );
  7699. }
  7700. if (props && hasOwn(props, key)) {
  7701. warn(
  7702. ("Method \"" + key + "\" has already been defined as a prop."),
  7703. vm
  7704. );
  7705. }
  7706. if ((key in vm) && isReserved(key)) {
  7707. warn(
  7708. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  7709. "Avoid defining component methods that start with _ or $."
  7710. );
  7711. }
  7712. }
  7713. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  7714. }
  7715. }
  7716. function initWatch (vm, watch) {
  7717. for (var key in watch) {
  7718. var handler = watch[key];
  7719. if (Array.isArray(handler)) {
  7720. for (var i = 0; i < handler.length; i++) {
  7721. createWatcher(vm, key, handler[i]);
  7722. }
  7723. } else {
  7724. createWatcher(vm, key, handler);
  7725. }
  7726. }
  7727. }
  7728. function createWatcher (
  7729. vm,
  7730. expOrFn,
  7731. handler,
  7732. options
  7733. ) {
  7734. if (isPlainObject(handler)) {
  7735. options = handler;
  7736. handler = handler.handler;
  7737. }
  7738. if (typeof handler === 'string') {
  7739. handler = vm[handler];
  7740. }
  7741. return vm.$watch(expOrFn, handler, options)
  7742. }
  7743. function stateMixin (Vue) {
  7744. // flow somehow has problems with directly declared definition object
  7745. // when using Object.defineProperty, so we have to procedurally build up
  7746. // the object here.
  7747. var dataDef = {};
  7748. dataDef.get = function () { return this._data };
  7749. var propsDef = {};
  7750. propsDef.get = function () { return this._props };
  7751. if (true) {
  7752. dataDef.set = function () {
  7753. warn(
  7754. 'Avoid replacing instance root $data. ' +
  7755. 'Use nested data properties instead.',
  7756. this
  7757. );
  7758. };
  7759. propsDef.set = function () {
  7760. warn("$props is readonly.", this);
  7761. };
  7762. }
  7763. Object.defineProperty(Vue.prototype, '$data', dataDef);
  7764. Object.defineProperty(Vue.prototype, '$props', propsDef);
  7765. Vue.prototype.$set = set;
  7766. Vue.prototype.$delete = del;
  7767. Vue.prototype.$watch = function (
  7768. expOrFn,
  7769. cb,
  7770. options
  7771. ) {
  7772. var vm = this;
  7773. if (isPlainObject(cb)) {
  7774. return createWatcher(vm, expOrFn, cb, options)
  7775. }
  7776. options = options || {};
  7777. options.user = true;
  7778. var watcher = new Watcher(vm, expOrFn, cb, options);
  7779. if (options.immediate) {
  7780. try {
  7781. cb.call(vm, watcher.value);
  7782. } catch (error) {
  7783. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  7784. }
  7785. }
  7786. return function unwatchFn () {
  7787. watcher.teardown();
  7788. }
  7789. };
  7790. }
  7791. /* */
  7792. var uid$3 = 0;
  7793. function initMixin (Vue) {
  7794. Vue.prototype._init = function (options) {
  7795. var vm = this;
  7796. // a uid
  7797. vm._uid = uid$3++;
  7798. var startTag, endTag;
  7799. /* istanbul ignore if */
  7800. if ( true && config.performance && mark) {
  7801. startTag = "vue-perf-start:" + (vm._uid);
  7802. endTag = "vue-perf-end:" + (vm._uid);
  7803. mark(startTag);
  7804. }
  7805. // a flag to avoid this being observed
  7806. vm._isVue = true;
  7807. // merge options
  7808. if (options && options._isComponent) {
  7809. // optimize internal component instantiation
  7810. // since dynamic options merging is pretty slow, and none of the
  7811. // internal component options needs special treatment.
  7812. initInternalComponent(vm, options);
  7813. } else {
  7814. vm.$options = mergeOptions(
  7815. resolveConstructorOptions(vm.constructor),
  7816. options || {},
  7817. vm
  7818. );
  7819. }
  7820. /* istanbul ignore else */
  7821. if (true) {
  7822. initProxy(vm);
  7823. } else {}
  7824. // expose real self
  7825. vm._self = vm;
  7826. initLifecycle(vm);
  7827. initEvents(vm);
  7828. initRender(vm);
  7829. callHook(vm, 'beforeCreate');
  7830. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  7831. initState(vm);
  7832. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  7833. !vm._$fallback && callHook(vm, 'created');
  7834. /* istanbul ignore if */
  7835. if ( true && config.performance && mark) {
  7836. vm._name = formatComponentName(vm, false);
  7837. mark(endTag);
  7838. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  7839. }
  7840. if (vm.$options.el) {
  7841. vm.$mount(vm.$options.el);
  7842. }
  7843. };
  7844. }
  7845. function initInternalComponent (vm, options) {
  7846. var opts = vm.$options = Object.create(vm.constructor.options);
  7847. // doing this because it's faster than dynamic enumeration.
  7848. var parentVnode = options._parentVnode;
  7849. opts.parent = options.parent;
  7850. opts._parentVnode = parentVnode;
  7851. var vnodeComponentOptions = parentVnode.componentOptions;
  7852. opts.propsData = vnodeComponentOptions.propsData;
  7853. opts._parentListeners = vnodeComponentOptions.listeners;
  7854. opts._renderChildren = vnodeComponentOptions.children;
  7855. opts._componentTag = vnodeComponentOptions.tag;
  7856. if (options.render) {
  7857. opts.render = options.render;
  7858. opts.staticRenderFns = options.staticRenderFns;
  7859. }
  7860. }
  7861. function resolveConstructorOptions (Ctor) {
  7862. var options = Ctor.options;
  7863. if (Ctor.super) {
  7864. var superOptions = resolveConstructorOptions(Ctor.super);
  7865. var cachedSuperOptions = Ctor.superOptions;
  7866. if (superOptions !== cachedSuperOptions) {
  7867. // super option changed,
  7868. // need to resolve new options.
  7869. Ctor.superOptions = superOptions;
  7870. // check if there are any late-modified/attached options (#4976)
  7871. var modifiedOptions = resolveModifiedOptions(Ctor);
  7872. // update base extend options
  7873. if (modifiedOptions) {
  7874. extend(Ctor.extendOptions, modifiedOptions);
  7875. }
  7876. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  7877. if (options.name) {
  7878. options.components[options.name] = Ctor;
  7879. }
  7880. }
  7881. }
  7882. return options
  7883. }
  7884. function resolveModifiedOptions (Ctor) {
  7885. var modified;
  7886. var latest = Ctor.options;
  7887. var sealed = Ctor.sealedOptions;
  7888. for (var key in latest) {
  7889. if (latest[key] !== sealed[key]) {
  7890. if (!modified) { modified = {}; }
  7891. modified[key] = latest[key];
  7892. }
  7893. }
  7894. return modified
  7895. }
  7896. function Vue (options) {
  7897. if ( true &&
  7898. !(this instanceof Vue)
  7899. ) {
  7900. warn('Vue is a constructor and should be called with the `new` keyword');
  7901. }
  7902. this._init(options);
  7903. }
  7904. initMixin(Vue);
  7905. stateMixin(Vue);
  7906. eventsMixin(Vue);
  7907. lifecycleMixin(Vue);
  7908. renderMixin(Vue);
  7909. /* */
  7910. function initUse (Vue) {
  7911. Vue.use = function (plugin) {
  7912. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  7913. if (installedPlugins.indexOf(plugin) > -1) {
  7914. return this
  7915. }
  7916. // additional parameters
  7917. var args = toArray(arguments, 1);
  7918. args.unshift(this);
  7919. if (typeof plugin.install === 'function') {
  7920. plugin.install.apply(plugin, args);
  7921. } else if (typeof plugin === 'function') {
  7922. plugin.apply(null, args);
  7923. }
  7924. installedPlugins.push(plugin);
  7925. return this
  7926. };
  7927. }
  7928. /* */
  7929. function initMixin$1 (Vue) {
  7930. Vue.mixin = function (mixin) {
  7931. this.options = mergeOptions(this.options, mixin);
  7932. return this
  7933. };
  7934. }
  7935. /* */
  7936. function initExtend (Vue) {
  7937. /**
  7938. * Each instance constructor, including Vue, has a unique
  7939. * cid. This enables us to create wrapped "child
  7940. * constructors" for prototypal inheritance and cache them.
  7941. */
  7942. Vue.cid = 0;
  7943. var cid = 1;
  7944. /**
  7945. * Class inheritance
  7946. */
  7947. Vue.extend = function (extendOptions) {
  7948. extendOptions = extendOptions || {};
  7949. var Super = this;
  7950. var SuperId = Super.cid;
  7951. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  7952. if (cachedCtors[SuperId]) {
  7953. return cachedCtors[SuperId]
  7954. }
  7955. var name = extendOptions.name || Super.options.name;
  7956. if ( true && name) {
  7957. validateComponentName(name);
  7958. }
  7959. var Sub = function VueComponent (options) {
  7960. this._init(options);
  7961. };
  7962. Sub.prototype = Object.create(Super.prototype);
  7963. Sub.prototype.constructor = Sub;
  7964. Sub.cid = cid++;
  7965. Sub.options = mergeOptions(
  7966. Super.options,
  7967. extendOptions
  7968. );
  7969. Sub['super'] = Super;
  7970. // For props and computed properties, we define the proxy getters on
  7971. // the Vue instances at extension time, on the extended prototype. This
  7972. // avoids Object.defineProperty calls for each instance created.
  7973. if (Sub.options.props) {
  7974. initProps$1(Sub);
  7975. }
  7976. if (Sub.options.computed) {
  7977. initComputed$1(Sub);
  7978. }
  7979. // allow further extension/mixin/plugin usage
  7980. Sub.extend = Super.extend;
  7981. Sub.mixin = Super.mixin;
  7982. Sub.use = Super.use;
  7983. // create asset registers, so extended classes
  7984. // can have their private assets too.
  7985. ASSET_TYPES.forEach(function (type) {
  7986. Sub[type] = Super[type];
  7987. });
  7988. // enable recursive self-lookup
  7989. if (name) {
  7990. Sub.options.components[name] = Sub;
  7991. }
  7992. // keep a reference to the super options at extension time.
  7993. // later at instantiation we can check if Super's options have
  7994. // been updated.
  7995. Sub.superOptions = Super.options;
  7996. Sub.extendOptions = extendOptions;
  7997. Sub.sealedOptions = extend({}, Sub.options);
  7998. // cache constructor
  7999. cachedCtors[SuperId] = Sub;
  8000. return Sub
  8001. };
  8002. }
  8003. function initProps$1 (Comp) {
  8004. var props = Comp.options.props;
  8005. for (var key in props) {
  8006. proxy(Comp.prototype, "_props", key);
  8007. }
  8008. }
  8009. function initComputed$1 (Comp) {
  8010. var computed = Comp.options.computed;
  8011. for (var key in computed) {
  8012. defineComputed(Comp.prototype, key, computed[key]);
  8013. }
  8014. }
  8015. /* */
  8016. function initAssetRegisters (Vue) {
  8017. /**
  8018. * Create asset registration methods.
  8019. */
  8020. ASSET_TYPES.forEach(function (type) {
  8021. Vue[type] = function (
  8022. id,
  8023. definition
  8024. ) {
  8025. if (!definition) {
  8026. return this.options[type + 's'][id]
  8027. } else {
  8028. /* istanbul ignore if */
  8029. if ( true && type === 'component') {
  8030. validateComponentName(id);
  8031. }
  8032. if (type === 'component' && isPlainObject(definition)) {
  8033. definition.name = definition.name || id;
  8034. definition = this.options._base.extend(definition);
  8035. }
  8036. if (type === 'directive' && typeof definition === 'function') {
  8037. definition = { bind: definition, update: definition };
  8038. }
  8039. this.options[type + 's'][id] = definition;
  8040. return definition
  8041. }
  8042. };
  8043. });
  8044. }
  8045. /* */
  8046. function getComponentName (opts) {
  8047. return opts && (opts.Ctor.options.name || opts.tag)
  8048. }
  8049. function matches (pattern, name) {
  8050. if (Array.isArray(pattern)) {
  8051. return pattern.indexOf(name) > -1
  8052. } else if (typeof pattern === 'string') {
  8053. return pattern.split(',').indexOf(name) > -1
  8054. } else if (isRegExp(pattern)) {
  8055. return pattern.test(name)
  8056. }
  8057. /* istanbul ignore next */
  8058. return false
  8059. }
  8060. function pruneCache (keepAliveInstance, filter) {
  8061. var cache = keepAliveInstance.cache;
  8062. var keys = keepAliveInstance.keys;
  8063. var _vnode = keepAliveInstance._vnode;
  8064. for (var key in cache) {
  8065. var cachedNode = cache[key];
  8066. if (cachedNode) {
  8067. var name = getComponentName(cachedNode.componentOptions);
  8068. if (name && !filter(name)) {
  8069. pruneCacheEntry(cache, key, keys, _vnode);
  8070. }
  8071. }
  8072. }
  8073. }
  8074. function pruneCacheEntry (
  8075. cache,
  8076. key,
  8077. keys,
  8078. current
  8079. ) {
  8080. var cached$$1 = cache[key];
  8081. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  8082. cached$$1.componentInstance.$destroy();
  8083. }
  8084. cache[key] = null;
  8085. remove(keys, key);
  8086. }
  8087. var patternTypes = [String, RegExp, Array];
  8088. var KeepAlive = {
  8089. name: 'keep-alive',
  8090. abstract: true,
  8091. props: {
  8092. include: patternTypes,
  8093. exclude: patternTypes,
  8094. max: [String, Number]
  8095. },
  8096. created: function created () {
  8097. this.cache = Object.create(null);
  8098. this.keys = [];
  8099. },
  8100. destroyed: function destroyed () {
  8101. for (var key in this.cache) {
  8102. pruneCacheEntry(this.cache, key, this.keys);
  8103. }
  8104. },
  8105. mounted: function mounted () {
  8106. var this$1 = this;
  8107. this.$watch('include', function (val) {
  8108. pruneCache(this$1, function (name) { return matches(val, name); });
  8109. });
  8110. this.$watch('exclude', function (val) {
  8111. pruneCache(this$1, function (name) { return !matches(val, name); });
  8112. });
  8113. },
  8114. render: function render () {
  8115. var slot = this.$slots.default;
  8116. var vnode = getFirstComponentChild(slot);
  8117. var componentOptions = vnode && vnode.componentOptions;
  8118. if (componentOptions) {
  8119. // check pattern
  8120. var name = getComponentName(componentOptions);
  8121. var ref = this;
  8122. var include = ref.include;
  8123. var exclude = ref.exclude;
  8124. if (
  8125. // not included
  8126. (include && (!name || !matches(include, name))) ||
  8127. // excluded
  8128. (exclude && name && matches(exclude, name))
  8129. ) {
  8130. return vnode
  8131. }
  8132. var ref$1 = this;
  8133. var cache = ref$1.cache;
  8134. var keys = ref$1.keys;
  8135. var key = vnode.key == null
  8136. // same constructor may get registered as different local components
  8137. // so cid alone is not enough (#3269)
  8138. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  8139. : vnode.key;
  8140. if (cache[key]) {
  8141. vnode.componentInstance = cache[key].componentInstance;
  8142. // make current key freshest
  8143. remove(keys, key);
  8144. keys.push(key);
  8145. } else {
  8146. cache[key] = vnode;
  8147. keys.push(key);
  8148. // prune oldest entry
  8149. if (this.max && keys.length > parseInt(this.max)) {
  8150. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  8151. }
  8152. }
  8153. vnode.data.keepAlive = true;
  8154. }
  8155. return vnode || (slot && slot[0])
  8156. }
  8157. };
  8158. var builtInComponents = {
  8159. KeepAlive: KeepAlive
  8160. };
  8161. /* */
  8162. function initGlobalAPI (Vue) {
  8163. // config
  8164. var configDef = {};
  8165. configDef.get = function () { return config; };
  8166. if (true) {
  8167. configDef.set = function () {
  8168. warn(
  8169. 'Do not replace the Vue.config object, set individual fields instead.'
  8170. );
  8171. };
  8172. }
  8173. Object.defineProperty(Vue, 'config', configDef);
  8174. // exposed util methods.
  8175. // NOTE: these are not considered part of the public API - avoid relying on
  8176. // them unless you are aware of the risk.
  8177. Vue.util = {
  8178. warn: warn,
  8179. extend: extend,
  8180. mergeOptions: mergeOptions,
  8181. defineReactive: defineReactive$$1
  8182. };
  8183. Vue.set = set;
  8184. Vue.delete = del;
  8185. Vue.nextTick = nextTick;
  8186. // 2.6 explicit observable API
  8187. Vue.observable = function (obj) {
  8188. observe(obj);
  8189. return obj
  8190. };
  8191. Vue.options = Object.create(null);
  8192. ASSET_TYPES.forEach(function (type) {
  8193. Vue.options[type + 's'] = Object.create(null);
  8194. });
  8195. // this is used to identify the "base" constructor to extend all plain-object
  8196. // components with in Weex's multi-instance scenarios.
  8197. Vue.options._base = Vue;
  8198. extend(Vue.options.components, builtInComponents);
  8199. initUse(Vue);
  8200. initMixin$1(Vue);
  8201. initExtend(Vue);
  8202. initAssetRegisters(Vue);
  8203. }
  8204. initGlobalAPI(Vue);
  8205. Object.defineProperty(Vue.prototype, '$isServer', {
  8206. get: isServerRendering
  8207. });
  8208. Object.defineProperty(Vue.prototype, '$ssrContext', {
  8209. get: function get () {
  8210. /* istanbul ignore next */
  8211. return this.$vnode && this.$vnode.ssrContext
  8212. }
  8213. });
  8214. // expose FunctionalRenderContext for ssr runtime helper installation
  8215. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  8216. value: FunctionalRenderContext
  8217. });
  8218. Vue.version = '2.6.11';
  8219. /**
  8220. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  8221. */
  8222. var ARRAYTYPE = '[object Array]';
  8223. var OBJECTTYPE = '[object Object]';
  8224. var NULLTYPE = '[object Null]';
  8225. var UNDEFINEDTYPE = '[object Undefined]';
  8226. // const FUNCTIONTYPE = '[object Function]'
  8227. function diff(current, pre) {
  8228. var result = {};
  8229. syncKeys(current, pre);
  8230. _diff(current, pre, '', result);
  8231. return result
  8232. }
  8233. function syncKeys(current, pre) {
  8234. if (current === pre) { return }
  8235. var rootCurrentType = type(current);
  8236. var rootPreType = type(pre);
  8237. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  8238. if(Object.keys(current).length >= Object.keys(pre).length){
  8239. for (var key in pre) {
  8240. var currentValue = current[key];
  8241. if (currentValue === undefined) {
  8242. current[key] = null;
  8243. } else {
  8244. syncKeys(currentValue, pre[key]);
  8245. }
  8246. }
  8247. }
  8248. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  8249. if (current.length >= pre.length) {
  8250. pre.forEach(function (item, index) {
  8251. syncKeys(current[index], item);
  8252. });
  8253. }
  8254. }
  8255. }
  8256. function nullOrUndefined(currentType, preType) {
  8257. if(
  8258. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  8259. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  8260. ) {
  8261. return false
  8262. }
  8263. return true
  8264. }
  8265. function _diff(current, pre, path, result) {
  8266. if (current === pre) { return }
  8267. var rootCurrentType = type(current);
  8268. var rootPreType = type(pre);
  8269. if (rootCurrentType == OBJECTTYPE) {
  8270. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  8271. setResult(result, path, current);
  8272. } else {
  8273. var loop = function ( key ) {
  8274. var currentValue = current[key];
  8275. var preValue = pre[key];
  8276. var currentType = type(currentValue);
  8277. var preType = type(preValue);
  8278. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  8279. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  8280. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8281. }
  8282. } else if (currentType == ARRAYTYPE) {
  8283. if (preType != ARRAYTYPE) {
  8284. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8285. } else {
  8286. if (currentValue.length < preValue.length) {
  8287. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8288. } else {
  8289. currentValue.forEach(function (item, index) {
  8290. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  8291. });
  8292. }
  8293. }
  8294. } else if (currentType == OBJECTTYPE) {
  8295. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  8296. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8297. } else {
  8298. for (var subKey in currentValue) {
  8299. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  8300. }
  8301. }
  8302. }
  8303. };
  8304. for (var key in current) loop( key );
  8305. }
  8306. } else if (rootCurrentType == ARRAYTYPE) {
  8307. if (rootPreType != ARRAYTYPE) {
  8308. setResult(result, path, current);
  8309. } else {
  8310. if (current.length < pre.length) {
  8311. setResult(result, path, current);
  8312. } else {
  8313. current.forEach(function (item, index) {
  8314. _diff(item, pre[index], path + '[' + index + ']', result);
  8315. });
  8316. }
  8317. }
  8318. } else {
  8319. setResult(result, path, current);
  8320. }
  8321. }
  8322. function setResult(result, k, v) {
  8323. // if (type(v) != FUNCTIONTYPE) {
  8324. result[k] = v;
  8325. // }
  8326. }
  8327. function type(obj) {
  8328. return Object.prototype.toString.call(obj)
  8329. }
  8330. /* */
  8331. function flushCallbacks$1(vm) {
  8332. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  8333. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"娇骄儿技师端","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8334. var mpInstance = vm.$scope;
  8335. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8336. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  8337. }
  8338. var copies = vm.__next_tick_callbacks.slice(0);
  8339. vm.__next_tick_callbacks.length = 0;
  8340. for (var i = 0; i < copies.length; i++) {
  8341. copies[i]();
  8342. }
  8343. }
  8344. }
  8345. function hasRenderWatcher(vm) {
  8346. return queue.find(function (watcher) { return vm._watcher === watcher; })
  8347. }
  8348. function nextTick$1(vm, cb) {
  8349. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  8350. //2.nextTick 之前存在 render watcher
  8351. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  8352. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"娇骄儿技师端","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8353. var mpInstance = vm.$scope;
  8354. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8355. ']:nextVueTick');
  8356. }
  8357. return nextTick(cb, vm)
  8358. }else{
  8359. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"娇骄儿技师端","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8360. var mpInstance$1 = vm.$scope;
  8361. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  8362. ']:nextMPTick');
  8363. }
  8364. }
  8365. var _resolve;
  8366. if (!vm.__next_tick_callbacks) {
  8367. vm.__next_tick_callbacks = [];
  8368. }
  8369. vm.__next_tick_callbacks.push(function () {
  8370. if (cb) {
  8371. try {
  8372. cb.call(vm);
  8373. } catch (e) {
  8374. handleError(e, vm, 'nextTick');
  8375. }
  8376. } else if (_resolve) {
  8377. _resolve(vm);
  8378. }
  8379. });
  8380. // $flow-disable-line
  8381. if (!cb && typeof Promise !== 'undefined') {
  8382. return new Promise(function (resolve) {
  8383. _resolve = resolve;
  8384. })
  8385. }
  8386. }
  8387. /* */
  8388. function clearInstance(key, value) {
  8389. // 简易去除 Vue 和小程序组件实例
  8390. if (value) {
  8391. if (value._isVue || value.__v_isMPComponent) {
  8392. return {}
  8393. }
  8394. }
  8395. return value
  8396. }
  8397. function cloneWithData(vm) {
  8398. // 确保当前 vm 所有数据被同步
  8399. var ret = Object.create(null);
  8400. var dataKeys = [].concat(
  8401. Object.keys(vm._data || {}),
  8402. Object.keys(vm._computedWatchers || {}));
  8403. dataKeys.reduce(function(ret, key) {
  8404. ret[key] = vm[key];
  8405. return ret
  8406. }, ret);
  8407. // vue-composition-api
  8408. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  8409. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  8410. if (rawBindings) {
  8411. Object.keys(rawBindings).forEach(function (key) {
  8412. ret[key] = vm[key];
  8413. });
  8414. }
  8415. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  8416. Object.assign(ret, vm.$mp.data || {});
  8417. if (
  8418. Array.isArray(vm.$options.behaviors) &&
  8419. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  8420. ) { //form-field
  8421. ret['name'] = vm.name;
  8422. ret['value'] = vm.value;
  8423. }
  8424. return JSON.parse(JSON.stringify(ret, clearInstance))
  8425. }
  8426. var patch = function(oldVnode, vnode) {
  8427. var this$1 = this;
  8428. if (vnode === null) { //destroy
  8429. return
  8430. }
  8431. if (this.mpType === 'page' || this.mpType === 'component') {
  8432. var mpInstance = this.$scope;
  8433. var data = Object.create(null);
  8434. try {
  8435. data = cloneWithData(this);
  8436. } catch (err) {
  8437. console.error(err);
  8438. }
  8439. data.__webviewId__ = mpInstance.data.__webviewId__;
  8440. var mpData = Object.create(null);
  8441. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  8442. mpData[key] = mpInstance.data[key];
  8443. });
  8444. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  8445. if (Object.keys(diffData).length) {
  8446. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"娇骄儿技师端","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8447. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  8448. ']差量更新',
  8449. JSON.stringify(diffData));
  8450. }
  8451. this.__next_tick_pending = true;
  8452. mpInstance.setData(diffData, function () {
  8453. this$1.__next_tick_pending = false;
  8454. flushCallbacks$1(this$1);
  8455. });
  8456. } else {
  8457. flushCallbacks$1(this);
  8458. }
  8459. }
  8460. };
  8461. /* */
  8462. function createEmptyRender() {
  8463. }
  8464. function mountComponent$1(
  8465. vm,
  8466. el,
  8467. hydrating
  8468. ) {
  8469. if (!vm.mpType) {//main.js 中的 new Vue
  8470. return vm
  8471. }
  8472. if (vm.mpType === 'app') {
  8473. vm.$options.render = createEmptyRender;
  8474. }
  8475. if (!vm.$options.render) {
  8476. vm.$options.render = createEmptyRender;
  8477. if (true) {
  8478. /* istanbul ignore if */
  8479. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  8480. vm.$options.el || el) {
  8481. warn(
  8482. 'You are using the runtime-only build of Vue where the template ' +
  8483. 'compiler is not available. Either pre-compile the templates into ' +
  8484. 'render functions, or use the compiler-included build.',
  8485. vm
  8486. );
  8487. } else {
  8488. warn(
  8489. 'Failed to mount component: template or render function not defined.',
  8490. vm
  8491. );
  8492. }
  8493. }
  8494. }
  8495. !vm._$fallback && callHook(vm, 'beforeMount');
  8496. var updateComponent = function () {
  8497. vm._update(vm._render(), hydrating);
  8498. };
  8499. // we set this to vm._watcher inside the watcher's constructor
  8500. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  8501. // component's mounted hook), which relies on vm._watcher being already defined
  8502. new Watcher(vm, updateComponent, noop, {
  8503. before: function before() {
  8504. if (vm._isMounted && !vm._isDestroyed) {
  8505. callHook(vm, 'beforeUpdate');
  8506. }
  8507. }
  8508. }, true /* isRenderWatcher */);
  8509. hydrating = false;
  8510. return vm
  8511. }
  8512. /* */
  8513. function renderClass (
  8514. staticClass,
  8515. dynamicClass
  8516. ) {
  8517. if (isDef(staticClass) || isDef(dynamicClass)) {
  8518. return concat(staticClass, stringifyClass(dynamicClass))
  8519. }
  8520. /* istanbul ignore next */
  8521. return ''
  8522. }
  8523. function concat (a, b) {
  8524. return a ? b ? (a + ' ' + b) : a : (b || '')
  8525. }
  8526. function stringifyClass (value) {
  8527. if (Array.isArray(value)) {
  8528. return stringifyArray(value)
  8529. }
  8530. if (isObject(value)) {
  8531. return stringifyObject(value)
  8532. }
  8533. if (typeof value === 'string') {
  8534. return value
  8535. }
  8536. /* istanbul ignore next */
  8537. return ''
  8538. }
  8539. function stringifyArray (value) {
  8540. var res = '';
  8541. var stringified;
  8542. for (var i = 0, l = value.length; i < l; i++) {
  8543. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  8544. if (res) { res += ' '; }
  8545. res += stringified;
  8546. }
  8547. }
  8548. return res
  8549. }
  8550. function stringifyObject (value) {
  8551. var res = '';
  8552. for (var key in value) {
  8553. if (value[key]) {
  8554. if (res) { res += ' '; }
  8555. res += key;
  8556. }
  8557. }
  8558. return res
  8559. }
  8560. /* */
  8561. var parseStyleText = cached(function (cssText) {
  8562. var res = {};
  8563. var listDelimiter = /;(?![^(]*\))/g;
  8564. var propertyDelimiter = /:(.+)/;
  8565. cssText.split(listDelimiter).forEach(function (item) {
  8566. if (item) {
  8567. var tmp = item.split(propertyDelimiter);
  8568. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  8569. }
  8570. });
  8571. return res
  8572. });
  8573. // normalize possible array / string values into Object
  8574. function normalizeStyleBinding (bindingStyle) {
  8575. if (Array.isArray(bindingStyle)) {
  8576. return toObject(bindingStyle)
  8577. }
  8578. if (typeof bindingStyle === 'string') {
  8579. return parseStyleText(bindingStyle)
  8580. }
  8581. return bindingStyle
  8582. }
  8583. /* */
  8584. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  8585. function getTarget(obj, path) {
  8586. var parts = path.split('.');
  8587. var key = parts[0];
  8588. if (key.indexOf('__$n') === 0) { //number index
  8589. key = parseInt(key.replace('__$n', ''));
  8590. }
  8591. if (parts.length === 1) {
  8592. return obj[key]
  8593. }
  8594. return getTarget(obj[key], parts.slice(1).join('.'))
  8595. }
  8596. function internalMixin(Vue) {
  8597. Vue.config.errorHandler = function(err, vm, info) {
  8598. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  8599. console.error(err);
  8600. /* eslint-disable no-undef */
  8601. var app = typeof getApp === 'function' && getApp();
  8602. if (app && app.onError) {
  8603. app.onError(err);
  8604. }
  8605. };
  8606. var oldEmit = Vue.prototype.$emit;
  8607. Vue.prototype.$emit = function(event) {
  8608. if (this.$scope && event) {
  8609. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  8610. if (triggerEvent) {
  8611. try {
  8612. triggerEvent.call(this.$scope, event, {
  8613. __args__: toArray(arguments, 1)
  8614. });
  8615. } catch (error) {
  8616. }
  8617. }
  8618. }
  8619. return oldEmit.apply(this, arguments)
  8620. };
  8621. Vue.prototype.$nextTick = function(fn) {
  8622. return nextTick$1(this, fn)
  8623. };
  8624. MP_METHODS.forEach(function (method) {
  8625. Vue.prototype[method] = function(args) {
  8626. if (this.$scope && this.$scope[method]) {
  8627. return this.$scope[method](args)
  8628. }
  8629. // mp-alipay
  8630. if (typeof my === 'undefined') {
  8631. return
  8632. }
  8633. if (method === 'createSelectorQuery') {
  8634. /* eslint-disable no-undef */
  8635. return my.createSelectorQuery(args)
  8636. } else if (method === 'createIntersectionObserver') {
  8637. /* eslint-disable no-undef */
  8638. return my.createIntersectionObserver(args)
  8639. }
  8640. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  8641. };
  8642. });
  8643. Vue.prototype.__init_provide = initProvide;
  8644. Vue.prototype.__init_injections = initInjections;
  8645. Vue.prototype.__call_hook = function(hook, args) {
  8646. var vm = this;
  8647. // #7573 disable dep collection when invoking lifecycle hooks
  8648. pushTarget();
  8649. var handlers = vm.$options[hook];
  8650. var info = hook + " hook";
  8651. var ret;
  8652. if (handlers) {
  8653. for (var i = 0, j = handlers.length; i < j; i++) {
  8654. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  8655. }
  8656. }
  8657. if (vm._hasHookEvent) {
  8658. vm.$emit('hook:' + hook, args);
  8659. }
  8660. popTarget();
  8661. return ret
  8662. };
  8663. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  8664. if (Array.isArray(modifiers)) {
  8665. if (modifiers.indexOf('trim') !== -1) {
  8666. value = value.trim();
  8667. }
  8668. if (modifiers.indexOf('number') !== -1) {
  8669. value = this._n(value);
  8670. }
  8671. }
  8672. if (!target) {
  8673. target = this;
  8674. }
  8675. // 解决动态属性添加
  8676. Vue.set(target, key, value);
  8677. };
  8678. Vue.prototype.__set_sync = function(target, key, value) {
  8679. if (!target) {
  8680. target = this;
  8681. }
  8682. // 解决动态属性添加
  8683. Vue.set(target, key, value);
  8684. };
  8685. Vue.prototype.__get_orig = function(item) {
  8686. if (isPlainObject(item)) {
  8687. return item['$orig'] || item
  8688. }
  8689. return item
  8690. };
  8691. Vue.prototype.__get_value = function(dataPath, target) {
  8692. return getTarget(target || this, dataPath)
  8693. };
  8694. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  8695. return renderClass(staticClass, dynamicClass)
  8696. };
  8697. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  8698. if (!dynamicStyle && !staticStyle) {
  8699. return ''
  8700. }
  8701. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  8702. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  8703. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  8704. };
  8705. Vue.prototype.__map = function(val, iteratee) {
  8706. //TODO 暂不考虑 string
  8707. var ret, i, l, keys, key;
  8708. if (Array.isArray(val)) {
  8709. ret = new Array(val.length);
  8710. for (i = 0, l = val.length; i < l; i++) {
  8711. ret[i] = iteratee(val[i], i);
  8712. }
  8713. return ret
  8714. } else if (isObject(val)) {
  8715. keys = Object.keys(val);
  8716. ret = Object.create(null);
  8717. for (i = 0, l = keys.length; i < l; i++) {
  8718. key = keys[i];
  8719. ret[key] = iteratee(val[key], key, i);
  8720. }
  8721. return ret
  8722. } else if (typeof val === 'number') {
  8723. ret = new Array(val);
  8724. for (i = 0, l = val; i < l; i++) {
  8725. // 第一个参数暂时仍和小程序一致
  8726. ret[i] = iteratee(i, i);
  8727. }
  8728. return ret
  8729. }
  8730. return []
  8731. };
  8732. }
  8733. /* */
  8734. var LIFECYCLE_HOOKS$1 = [
  8735. //App
  8736. 'onLaunch',
  8737. 'onShow',
  8738. 'onHide',
  8739. 'onUniNViewMessage',
  8740. 'onPageNotFound',
  8741. 'onThemeChange',
  8742. 'onError',
  8743. 'onUnhandledRejection',
  8744. //Page
  8745. 'onInit',
  8746. 'onLoad',
  8747. // 'onShow',
  8748. 'onReady',
  8749. // 'onHide',
  8750. 'onUnload',
  8751. 'onPullDownRefresh',
  8752. 'onReachBottom',
  8753. 'onTabItemTap',
  8754. 'onAddToFavorites',
  8755. 'onShareTimeline',
  8756. 'onShareAppMessage',
  8757. 'onResize',
  8758. 'onPageScroll',
  8759. 'onNavigationBarButtonTap',
  8760. 'onBackPress',
  8761. 'onNavigationBarSearchInputChanged',
  8762. 'onNavigationBarSearchInputConfirmed',
  8763. 'onNavigationBarSearchInputClicked',
  8764. 'onUploadDouyinVideo',
  8765. 'onNFCReadMessage',
  8766. //Component
  8767. // 'onReady', // 兼容旧版本,应该移除该事件
  8768. 'onPageShow',
  8769. 'onPageHide',
  8770. 'onPageResize'
  8771. ];
  8772. function lifecycleMixin$1(Vue) {
  8773. //fixed vue-class-component
  8774. var oldExtend = Vue.extend;
  8775. Vue.extend = function(extendOptions) {
  8776. extendOptions = extendOptions || {};
  8777. var methods = extendOptions.methods;
  8778. if (methods) {
  8779. Object.keys(methods).forEach(function (methodName) {
  8780. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  8781. extendOptions[methodName] = methods[methodName];
  8782. delete methods[methodName];
  8783. }
  8784. });
  8785. }
  8786. return oldExtend.call(this, extendOptions)
  8787. };
  8788. var strategies = Vue.config.optionMergeStrategies;
  8789. var mergeHook = strategies.created;
  8790. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  8791. strategies[hook] = mergeHook;
  8792. });
  8793. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  8794. }
  8795. /* */
  8796. // install platform patch function
  8797. Vue.prototype.__patch__ = patch;
  8798. // public mount method
  8799. Vue.prototype.$mount = function(
  8800. el ,
  8801. hydrating
  8802. ) {
  8803. return mountComponent$1(this, el, hydrating)
  8804. };
  8805. lifecycleMixin$1(Vue);
  8806. internalMixin(Vue);
  8807. /* */
  8808. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  8809. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  8810. /***/ }),
  8811. /* 26 */
  8812. /*!**************************************!*\
  8813. !*** D:/jje_staff_uniapp/pages.json ***!
  8814. \**************************************/
  8815. /*! no static exports found */
  8816. /***/ (function(module, exports) {
  8817. /***/ }),
  8818. /* 27 */,
  8819. /* 28 */,
  8820. /* 29 */,
  8821. /* 30 */,
  8822. /* 31 */,
  8823. /* 32 */
  8824. /*!**********************************************************************************************************!*\
  8825. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  8826. \**********************************************************************************************************/
  8827. /*! exports provided: default */
  8828. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8829. "use strict";
  8830. __webpack_require__.r(__webpack_exports__);
  8831. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  8832. /* globals __VUE_SSR_CONTEXT__ */
  8833. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  8834. // This module is a runtime utility for cleaner component module output and will
  8835. // be included in the final webpack user bundle.
  8836. function normalizeComponent (
  8837. scriptExports,
  8838. render,
  8839. staticRenderFns,
  8840. functionalTemplate,
  8841. injectStyles,
  8842. scopeId,
  8843. moduleIdentifier, /* server only */
  8844. shadowMode, /* vue-cli only */
  8845. components, // fixed by xxxxxx auto components
  8846. renderjs // fixed by xxxxxx renderjs
  8847. ) {
  8848. // Vue.extend constructor export interop
  8849. var options = typeof scriptExports === 'function'
  8850. ? scriptExports.options
  8851. : scriptExports
  8852. // fixed by xxxxxx auto components
  8853. if (components) {
  8854. if (!options.components) {
  8855. options.components = {}
  8856. }
  8857. var hasOwn = Object.prototype.hasOwnProperty
  8858. for (var name in components) {
  8859. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  8860. options.components[name] = components[name]
  8861. }
  8862. }
  8863. }
  8864. // fixed by xxxxxx renderjs
  8865. if (renderjs) {
  8866. if(typeof renderjs.beforeCreate === 'function'){
  8867. renderjs.beforeCreate = [renderjs.beforeCreate]
  8868. }
  8869. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  8870. this[renderjs.__module] = this
  8871. });
  8872. (options.mixins || (options.mixins = [])).push(renderjs)
  8873. }
  8874. // render functions
  8875. if (render) {
  8876. options.render = render
  8877. options.staticRenderFns = staticRenderFns
  8878. options._compiled = true
  8879. }
  8880. // functional template
  8881. if (functionalTemplate) {
  8882. options.functional = true
  8883. }
  8884. // scopedId
  8885. if (scopeId) {
  8886. options._scopeId = 'data-v-' + scopeId
  8887. }
  8888. var hook
  8889. if (moduleIdentifier) { // server build
  8890. hook = function (context) {
  8891. // 2.3 injection
  8892. context =
  8893. context || // cached call
  8894. (this.$vnode && this.$vnode.ssrContext) || // stateful
  8895. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  8896. // 2.2 with runInNewContext: true
  8897. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  8898. context = __VUE_SSR_CONTEXT__
  8899. }
  8900. // inject component styles
  8901. if (injectStyles) {
  8902. injectStyles.call(this, context)
  8903. }
  8904. // register component module identifier for async chunk inferrence
  8905. if (context && context._registeredComponents) {
  8906. context._registeredComponents.add(moduleIdentifier)
  8907. }
  8908. }
  8909. // used by ssr in case component is cached and beforeCreate
  8910. // never gets called
  8911. options._ssrRegister = hook
  8912. } else if (injectStyles) {
  8913. hook = shadowMode
  8914. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  8915. : injectStyles
  8916. }
  8917. if (hook) {
  8918. if (options.functional) {
  8919. // for template-only hot-reload because in that case the render fn doesn't
  8920. // go through the normalizer
  8921. options._injectStyles = hook
  8922. // register for functioal component in vue file
  8923. var originalRender = options.render
  8924. options.render = function renderWithStyleInjection (h, context) {
  8925. hook.call(context)
  8926. return originalRender(h, context)
  8927. }
  8928. } else {
  8929. // inject component registration as beforeCreate hook
  8930. var existing = options.beforeCreate
  8931. options.beforeCreate = existing
  8932. ? [].concat(existing, hook)
  8933. : [hook]
  8934. }
  8935. }
  8936. return {
  8937. exports: scriptExports,
  8938. options: options
  8939. }
  8940. }
  8941. /***/ }),
  8942. /* 33 */
  8943. /*!****************************************************!*\
  8944. !*** D:/jje_staff_uniapp/uni.promisify.adaptor.js ***!
  8945. \****************************************************/
  8946. /*! no static exports found */
  8947. /***/ (function(module, exports, __webpack_require__) {
  8948. /* WEBPACK VAR INJECTION */(function(uni) {var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  8949. uni.addInterceptor({
  8950. returnValue: function returnValue(res) {
  8951. if (!(!!res && (_typeof(res) === "object" || typeof res === "function") && typeof res.then === "function")) {
  8952. return res;
  8953. }
  8954. return new Promise(function (resolve, reject) {
  8955. res.then(function (res) {
  8956. return res[0] ? reject(res[0]) : resolve(res[1]);
  8957. });
  8958. });
  8959. }
  8960. });
  8961. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  8962. /***/ }),
  8963. /* 34 */
  8964. /*!********************************************!*\
  8965. !*** D:/jje_staff_uniapp/common/js/api.js ***!
  8966. \********************************************/
  8967. /*! no static exports found */
  8968. /***/ (function(module, exports, __webpack_require__) {
  8969. "use strict";
  8970. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  8971. Object.defineProperty(exports, "__esModule", {
  8972. value: true
  8973. });
  8974. exports.default = void 0;
  8975. var _login = _interopRequireDefault(__webpack_require__(/*! ../js/login.js */ 35));
  8976. // 引用网络请求中间件
  8977. var _default = {
  8978. login: _login.default
  8979. };
  8980. exports.default = _default;
  8981. /***/ }),
  8982. /* 35 */
  8983. /*!**********************************************!*\
  8984. !*** D:/jje_staff_uniapp/common/js/login.js ***!
  8985. \**********************************************/
  8986. /*! no static exports found */
  8987. /***/ (function(module, exports, __webpack_require__) {
  8988. "use strict";
  8989. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  8990. Object.defineProperty(exports, "__esModule", {
  8991. value: true
  8992. });
  8993. exports.default = void 0;
  8994. var _request = _interopRequireDefault(__webpack_require__(/*! ../js/request.js */ 36));
  8995. var _default = {
  8996. //账号密码登录
  8997. techLogin: function techLogin(param) {
  8998. return (0, _request.default)({
  8999. url: '/auth/tech/login',
  9000. method: 'POST',
  9001. data: param
  9002. });
  9003. }
  9004. };
  9005. exports.default = _default;
  9006. /***/ }),
  9007. /* 36 */
  9008. /*!************************************************!*\
  9009. !*** D:/jje_staff_uniapp/common/js/request.js ***!
  9010. \************************************************/
  9011. /*! no static exports found */
  9012. /***/ (function(module, exports, __webpack_require__) {
  9013. "use strict";
  9014. /* WEBPACK VAR INJECTION */(function(uni) {
  9015. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9016. Object.defineProperty(exports, "__esModule", {
  9017. value: true
  9018. });
  9019. exports.default = void 0;
  9020. var _env = _interopRequireDefault(__webpack_require__(/*! ../js/env.js */ 37));
  9021. function service() {
  9022. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9023. options.url = "".concat(_env.default.baseUrl).concat(options.url);
  9024. // 判断本地是否存在token,如果存在则带上请求头
  9025. var access_token = uni.getStorageSync('accessToken');
  9026. var refresh_token = uni.getStorageSync('refresh_token');
  9027. if (options.header && options.header['content-type']) {
  9028. options.header['Authorization'] = 'Bearer ' + access_token;
  9029. } else {
  9030. options.header = {
  9031. 'Authorization': 'Bearer ' + access_token,
  9032. 'content-type': 'application/json'
  9033. };
  9034. }
  9035. // resolved是返回成功数据,rejected返回错误数据
  9036. return new Promise(function (resolved, rejected) {
  9037. options.success = function (res) {
  9038. // 如果请求回来的状态码不是200则执行以下操作
  9039. if (res.data.code !== 200) {
  9040. // 非成功状态码弹窗
  9041. console.log('错误信息:+++', res.data.msg);
  9042. // 这里可以做一些状态码判断以及操作
  9043. if (res.data.code === 401) {
  9044. uni.showToast({
  9045. icon: 'none',
  9046. duration: 3000,
  9047. title: '登录过期,即将跳转登录页'
  9048. });
  9049. setTimeout(function () {
  9050. uni.navigateTo({
  9051. url: '/pages/login/login'
  9052. });
  9053. }, 3000);
  9054. } else {
  9055. uni.showToast({
  9056. icon: 'none',
  9057. duration: 3000,
  9058. title: res.data.msg || '系统繁忙,请重试!'
  9059. });
  9060. }
  9061. // 返回错误信息
  9062. rejected(res);
  9063. } else {
  9064. // 请求回来的状态码为200则返回内容
  9065. resolved(res);
  9066. }
  9067. };
  9068. options.fail = function (err) {
  9069. console.log('错误信息:+++', err);
  9070. // 请求失败弹窗
  9071. uni.showToast({
  9072. icon: 'none',
  9073. duration: 3000,
  9074. title: '服务器连接失败,请检查网络'
  9075. });
  9076. rejected(err);
  9077. };
  9078. uni.request(options);
  9079. });
  9080. }
  9081. var _default = service;
  9082. exports.default = _default;
  9083. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9084. /***/ }),
  9085. /* 37 */
  9086. /*!********************************************!*\
  9087. !*** D:/jje_staff_uniapp/common/js/env.js ***!
  9088. \********************************************/
  9089. /*! no static exports found */
  9090. /***/ (function(module, exports, __webpack_require__) {
  9091. "use strict";
  9092. // let baseUrl = `https://jje.admin.xinyuekj.com.cn`
  9093. Object.defineProperty(exports, "__esModule", {
  9094. value: true
  9095. });
  9096. exports.default = void 0;
  9097. var baseUrl = "https://jje.admin.xinyuekj.com.cn/test-api";
  9098. // let baseUrl = `http://65i1sxopd9qp.ngrok.xiaomiqiu123.top`
  9099. // 变量可自行添加修改
  9100. var _default = {
  9101. //存放变量的容器
  9102. appid: '__UNI__1EEA945',
  9103. baseUrl: baseUrl,
  9104. uploadUrl: '/v1/file/put-file'
  9105. };
  9106. exports.default = _default;
  9107. /***/ }),
  9108. /* 38 */
  9109. /*!**********************************************************!*\
  9110. !*** D:/jje_staff_uniapp/node_modules/uview-ui/index.js ***!
  9111. \**********************************************************/
  9112. /*! no static exports found */
  9113. /***/ (function(module, exports, __webpack_require__) {
  9114. "use strict";
  9115. /* WEBPACK VAR INJECTION */(function(uni) {
  9116. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9117. Object.defineProperty(exports, "__esModule", {
  9118. value: true
  9119. });
  9120. exports.default = void 0;
  9121. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9122. var _mixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mixin.js */ 39));
  9123. var _mpMixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mpMixin.js */ 40));
  9124. var _luchRequest = _interopRequireDefault(__webpack_require__(/*! ./libs/luch-request */ 41));
  9125. var _route = _interopRequireDefault(__webpack_require__(/*! ./libs/util/route.js */ 59));
  9126. var _colorGradient = _interopRequireDefault(__webpack_require__(/*! ./libs/function/colorGradient.js */ 63));
  9127. var _test = _interopRequireDefault(__webpack_require__(/*! ./libs/function/test.js */ 64));
  9128. var _debounce = _interopRequireDefault(__webpack_require__(/*! ./libs/function/debounce.js */ 65));
  9129. var _throttle = _interopRequireDefault(__webpack_require__(/*! ./libs/function/throttle.js */ 66));
  9130. var _index = _interopRequireDefault(__webpack_require__(/*! ./libs/function/index.js */ 67));
  9131. var _config = _interopRequireDefault(__webpack_require__(/*! ./libs/config/config.js */ 70));
  9132. var _props = _interopRequireDefault(__webpack_require__(/*! ./libs/config/props.js */ 71));
  9133. var _zIndex = _interopRequireDefault(__webpack_require__(/*! ./libs/config/zIndex.js */ 161));
  9134. var _color = _interopRequireDefault(__webpack_require__(/*! ./libs/config/color.js */ 119));
  9135. var _platform = _interopRequireDefault(__webpack_require__(/*! ./libs/function/platform */ 162));
  9136. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  9137. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  9138. // 看到此报错,是因为没有配置vue.config.js的【transpileDependencies】,详见:https://www.uviewui.com/components/npmSetting.html#_5-cli模式额外配置
  9139. var pleaseSetTranspileDependencies = {},
  9140. babelTest = pleaseSetTranspileDependencies === null || pleaseSetTranspileDependencies === void 0 ? void 0 : pleaseSetTranspileDependencies.test;
  9141. // 引入全局mixin
  9142. var $u = _objectSpread(_objectSpread({
  9143. route: _route.default,
  9144. date: _index.default.timeFormat,
  9145. // 另名date
  9146. colorGradient: _colorGradient.default.colorGradient,
  9147. hexToRgb: _colorGradient.default.hexToRgb,
  9148. rgbToHex: _colorGradient.default.rgbToHex,
  9149. colorToRgba: _colorGradient.default.colorToRgba,
  9150. test: _test.default,
  9151. type: ['primary', 'success', 'error', 'warning', 'info'],
  9152. http: new _luchRequest.default(),
  9153. config: _config.default,
  9154. // uView配置信息相关,比如版本号
  9155. zIndex: _zIndex.default,
  9156. debounce: _debounce.default,
  9157. throttle: _throttle.default,
  9158. mixin: _mixin.default,
  9159. mpMixin: _mpMixin.default,
  9160. props: _props.default
  9161. }, _index.default), {}, {
  9162. color: _color.default,
  9163. platform: _platform.default
  9164. });
  9165. // $u挂载到uni对象上
  9166. uni.$u = $u;
  9167. var install = function install(Vue) {
  9168. // 时间格式化,同时两个名称,date和timeFormat
  9169. Vue.filter('timeFormat', function (timestamp, format) {
  9170. return uni.$u.timeFormat(timestamp, format);
  9171. });
  9172. Vue.filter('date', function (timestamp, format) {
  9173. return uni.$u.timeFormat(timestamp, format);
  9174. });
  9175. // 将多久以前的方法,注入到全局过滤器
  9176. Vue.filter('timeFrom', function (timestamp, format) {
  9177. return uni.$u.timeFrom(timestamp, format);
  9178. });
  9179. // 同时挂载到uni和Vue.prototype中
  9180. // 只有vue,挂载到Vue.prototype才有意义,因为nvue中全局Vue.prototype和Vue.mixin是无效的
  9181. Vue.prototype.$u = $u;
  9182. Vue.mixin(_mixin.default);
  9183. };
  9184. var _default = {
  9185. install: install
  9186. };
  9187. exports.default = _default;
  9188. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9189. /***/ }),
  9190. /* 39 */
  9191. /*!*********************************************************************!*\
  9192. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/mixin/mixin.js ***!
  9193. \*********************************************************************/
  9194. /*! no static exports found */
  9195. /***/ (function(module, exports, __webpack_require__) {
  9196. /* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
  9197. // 定义每个组件都可能需要用到的外部样式以及类名
  9198. props: {
  9199. // 每个组件都有的父组件传递的样式,可以为字符串或者对象形式
  9200. customStyle: {
  9201. type: [Object, String],
  9202. default: function _default() {
  9203. return {};
  9204. }
  9205. },
  9206. customClass: {
  9207. type: String,
  9208. default: ''
  9209. },
  9210. // 跳转的页面路径
  9211. url: {
  9212. type: String,
  9213. default: ''
  9214. },
  9215. // 页面跳转的类型
  9216. linkType: {
  9217. type: String,
  9218. default: 'navigateTo'
  9219. }
  9220. },
  9221. data: function data() {
  9222. return {};
  9223. },
  9224. onLoad: function onLoad() {
  9225. // getRect挂载到$u上,因为这方法需要使用in(this),所以无法把它独立成一个单独的文件导出
  9226. this.$u.getRect = this.$uGetRect;
  9227. },
  9228. created: function created() {
  9229. // 组件当中,只有created声明周期,为了能在组件使用,故也在created中将方法挂载到$u
  9230. this.$u.getRect = this.$uGetRect;
  9231. },
  9232. computed: {
  9233. // 在2.x版本中,将会把$u挂载到uni对象下,导致在模板中无法使用uni.$u.xxx形式
  9234. // 所以这里通过computed计算属性将其附加到this.$u上,就可以在模板或者js中使用uni.$u.xxx
  9235. // 只在nvue环境通过此方式引入完整的$u,其他平台会出现性能问题,非nvue则按需引入(主要原因是props过大)
  9236. $u: function $u() {
  9237. // 在非nvue端,移除props,http,mixin等对象,避免在小程序setData时数据过大影响性能
  9238. return uni.$u.deepMerge(uni.$u, {
  9239. props: undefined,
  9240. http: undefined,
  9241. mixin: undefined
  9242. });
  9243. },
  9244. /**
  9245. * 生成bem规则类名
  9246. * 由于微信小程序,H5,nvue之间绑定class的差异,无法通过:class="[bem()]"的形式进行同用
  9247. * 故采用如下折中做法,最后返回的是数组(一般平台)或字符串(支付宝和字节跳动平台),类似['a', 'b', 'c']或'a b c'的形式
  9248. * @param {String} name 组件名称
  9249. * @param {Array} fixed 一直会存在的类名
  9250. * @param {Array} change 会根据变量值为true或者false而出现或者隐藏的类名
  9251. * @returns {Array|string}
  9252. */
  9253. bem: function bem() {
  9254. return function (name, fixed, change) {
  9255. var _this = this;
  9256. // 类名前缀
  9257. var prefix = "u-".concat(name, "--");
  9258. var classes = {};
  9259. if (fixed) {
  9260. fixed.map(function (item) {
  9261. // 这里的类名,会一直存在
  9262. classes[prefix + _this[item]] = true;
  9263. });
  9264. }
  9265. if (change) {
  9266. change.map(function (item) {
  9267. // 这里的类名,会根据this[item]的值为true或者false,而进行添加或者移除某一个类
  9268. _this[item] ? classes[prefix + item] = _this[item] : delete classes[prefix + item];
  9269. });
  9270. }
  9271. return Object.keys(classes);
  9272. // 支付宝,头条小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效
  9273. };
  9274. }
  9275. },
  9276. methods: {
  9277. // 跳转某一个页面
  9278. openPage: function openPage() {
  9279. var urlKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'url';
  9280. var url = this[urlKey];
  9281. if (url) {
  9282. // 执行类似uni.navigateTo的方法
  9283. uni[this.linkType]({
  9284. url: url
  9285. });
  9286. }
  9287. },
  9288. // 查询节点信息
  9289. // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
  9290. // 解决办法为在组件根部再套一个没有任何作用的view元素
  9291. $uGetRect: function $uGetRect(selector, all) {
  9292. var _this2 = this;
  9293. return new Promise(function (resolve) {
  9294. uni.createSelectorQuery().in(_this2)[all ? 'selectAll' : 'select'](selector).boundingClientRect(function (rect) {
  9295. if (all && Array.isArray(rect) && rect.length) {
  9296. resolve(rect);
  9297. }
  9298. if (!all && rect) {
  9299. resolve(rect);
  9300. }
  9301. }).exec();
  9302. });
  9303. },
  9304. getParentData: function getParentData() {
  9305. var _this3 = this;
  9306. var parentName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  9307. // 避免在created中去定义parent变量
  9308. if (!this.parent) this.parent = {};
  9309. // 这里的本质原理是,通过获取父组件实例(也即类似u-radio的父组件u-radio-group的this)
  9310. // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
  9311. // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
  9312. // 此处并不会自动更新子组件的数据,而是依赖父组件u-radio-group去监听data的变化,手动调用更新子组件的方法去重新获取
  9313. this.parent = uni.$u.$parent.call(this, parentName);
  9314. if (this.parent.children) {
  9315. // 如果父组件的children不存在本组件的实例,才将本实例添加到父组件的children中
  9316. this.parent.children.indexOf(this) === -1 && this.parent.children.push(this);
  9317. }
  9318. if (this.parent && this.parentData) {
  9319. // 历遍parentData中的属性,将parent中的同名属性赋值给parentData
  9320. Object.keys(this.parentData).map(function (key) {
  9321. _this3.parentData[key] = _this3.parent[key];
  9322. });
  9323. }
  9324. },
  9325. // 阻止事件冒泡
  9326. preventEvent: function preventEvent(e) {
  9327. e && typeof e.stopPropagation === 'function' && e.stopPropagation();
  9328. },
  9329. // 空操作
  9330. noop: function noop(e) {
  9331. this.preventEvent(e);
  9332. }
  9333. },
  9334. onReachBottom: function onReachBottom() {
  9335. uni.$emit('uOnReachBottom');
  9336. },
  9337. beforeDestroy: function beforeDestroy() {
  9338. var _this4 = this;
  9339. // 判断当前页面是否存在parent和chldren,一般在checkbox和checkbox-group父子联动的场景会有此情况
  9340. // 组件销毁时,移除子组件在父组件children数组中的实例,释放资源,避免数据混乱
  9341. if (this.parent && uni.$u.test.array(this.parent.children)) {
  9342. // 组件销毁时,移除父组件中的children数组中对应的实例
  9343. var childrenList = this.parent.children;
  9344. childrenList.map(function (child, index) {
  9345. // 如果相等,则移除
  9346. if (child === _this4) {
  9347. childrenList.splice(index, 1);
  9348. }
  9349. });
  9350. }
  9351. }
  9352. };
  9353. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9354. /***/ }),
  9355. /* 40 */
  9356. /*!***********************************************************************!*\
  9357. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/mixin/mpMixin.js ***!
  9358. \***********************************************************************/
  9359. /*! no static exports found */
  9360. /***/ (function(module, exports, __webpack_require__) {
  9361. "use strict";
  9362. Object.defineProperty(exports, "__esModule", {
  9363. value: true
  9364. });
  9365. exports.default = void 0;
  9366. var _default = {
  9367. // 将自定义节点设置成虚拟的,更加接近Vue组件的表现,能更好的使用flex属性
  9368. options: {
  9369. virtualHost: true
  9370. }
  9371. };
  9372. exports.default = _default;
  9373. /***/ }),
  9374. /* 41 */
  9375. /*!****************************************************************************!*\
  9376. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/luch-request/index.js ***!
  9377. \****************************************************************************/
  9378. /*! no static exports found */
  9379. /***/ (function(module, exports, __webpack_require__) {
  9380. "use strict";
  9381. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9382. Object.defineProperty(exports, "__esModule", {
  9383. value: true
  9384. });
  9385. exports.default = void 0;
  9386. var _Request = _interopRequireDefault(__webpack_require__(/*! ./core/Request */ 42));
  9387. var _default = _Request.default;
  9388. exports.default = _default;
  9389. /***/ }),
  9390. /* 42 */
  9391. /*!***********************************************************************************!*\
  9392. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/luch-request/core/Request.js ***!
  9393. \***********************************************************************************/
  9394. /*! no static exports found */
  9395. /***/ (function(module, exports, __webpack_require__) {
  9396. "use strict";
  9397. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9398. Object.defineProperty(exports, "__esModule", {
  9399. value: true
  9400. });
  9401. exports.default = void 0;
  9402. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9403. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  9404. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  9405. var _dispatchRequest = _interopRequireDefault(__webpack_require__(/*! ./dispatchRequest */ 43));
  9406. var _InterceptorManager = _interopRequireDefault(__webpack_require__(/*! ./InterceptorManager */ 51));
  9407. var _mergeConfig = _interopRequireDefault(__webpack_require__(/*! ./mergeConfig */ 52));
  9408. var _defaults = _interopRequireDefault(__webpack_require__(/*! ./defaults */ 53));
  9409. var _utils = __webpack_require__(/*! ../utils */ 46);
  9410. var _clone = _interopRequireDefault(__webpack_require__(/*! ../utils/clone */ 54));
  9411. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  9412. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  9413. var Request = /*#__PURE__*/function () {
  9414. /**
  9415. * @param {Object} arg - 全局配置
  9416. * @param {String} arg.baseURL - 全局根路径
  9417. * @param {Object} arg.header - 全局header
  9418. * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式
  9419. * @param {String} arg.dataType = [json] - 全局默认的dataType
  9420. * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持
  9421. * @param {Object} arg.custom - 全局默认的自定义参数
  9422. * @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序(2.10.0)、支付宝小程序
  9423. * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+)
  9424. * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+)
  9425. * @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+)
  9426. * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
  9427. */
  9428. function Request() {
  9429. var arg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9430. (0, _classCallCheck2.default)(this, Request);
  9431. if (!(0, _utils.isPlainObject)(arg)) {
  9432. arg = {};
  9433. console.warn('设置全局参数必须接收一个Object');
  9434. }
  9435. this.config = (0, _clone.default)(_objectSpread(_objectSpread({}, _defaults.default), arg));
  9436. this.interceptors = {
  9437. request: new _InterceptorManager.default(),
  9438. response: new _InterceptorManager.default()
  9439. };
  9440. }
  9441. /**
  9442. * @Function
  9443. * @param {Request~setConfigCallback} f - 设置全局默认配置
  9444. */
  9445. (0, _createClass2.default)(Request, [{
  9446. key: "setConfig",
  9447. value: function setConfig(f) {
  9448. this.config = f(this.config);
  9449. }
  9450. }, {
  9451. key: "middleware",
  9452. value: function middleware(config) {
  9453. config = (0, _mergeConfig.default)(this.config, config);
  9454. var chain = [_dispatchRequest.default, undefined];
  9455. var promise = Promise.resolve(config);
  9456. this.interceptors.request.forEach(function (interceptor) {
  9457. chain.unshift(interceptor.fulfilled, interceptor.rejected);
  9458. });
  9459. this.interceptors.response.forEach(function (interceptor) {
  9460. chain.push(interceptor.fulfilled, interceptor.rejected);
  9461. });
  9462. while (chain.length) {
  9463. promise = promise.then(chain.shift(), chain.shift());
  9464. }
  9465. return promise;
  9466. }
  9467. /**
  9468. * @Function
  9469. * @param {Object} config - 请求配置项
  9470. * @prop {String} options.url - 请求路径
  9471. * @prop {Object} options.data - 请求参数
  9472. * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型
  9473. * @prop {Object} [options.dataType = config.dataType] - 如果设为 json,会尝试对返回的数据做一次 JSON.parse
  9474. * @prop {Object} [options.header = config.header] - 请求header
  9475. * @prop {Object} [options.method = config.method] - 请求方法
  9476. * @returns {Promise<unknown>}
  9477. */
  9478. }, {
  9479. key: "request",
  9480. value: function request() {
  9481. var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9482. return this.middleware(config);
  9483. }
  9484. }, {
  9485. key: "get",
  9486. value: function get(url) {
  9487. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9488. return this.middleware(_objectSpread({
  9489. url: url,
  9490. method: 'GET'
  9491. }, options));
  9492. }
  9493. }, {
  9494. key: "post",
  9495. value: function post(url, data) {
  9496. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9497. return this.middleware(_objectSpread({
  9498. url: url,
  9499. data: data,
  9500. method: 'POST'
  9501. }, options));
  9502. }
  9503. }, {
  9504. key: "put",
  9505. value: function put(url, data) {
  9506. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9507. return this.middleware(_objectSpread({
  9508. url: url,
  9509. data: data,
  9510. method: 'PUT'
  9511. }, options));
  9512. }
  9513. }, {
  9514. key: "delete",
  9515. value: function _delete(url, data) {
  9516. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9517. return this.middleware(_objectSpread({
  9518. url: url,
  9519. data: data,
  9520. method: 'DELETE'
  9521. }, options));
  9522. }
  9523. }, {
  9524. key: "connect",
  9525. value: function connect(url, data) {
  9526. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9527. return this.middleware(_objectSpread({
  9528. url: url,
  9529. data: data,
  9530. method: 'CONNECT'
  9531. }, options));
  9532. }
  9533. }, {
  9534. key: "head",
  9535. value: function head(url, data) {
  9536. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9537. return this.middleware(_objectSpread({
  9538. url: url,
  9539. data: data,
  9540. method: 'HEAD'
  9541. }, options));
  9542. }
  9543. }, {
  9544. key: "options",
  9545. value: function options(url, data) {
  9546. var _options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9547. return this.middleware(_objectSpread({
  9548. url: url,
  9549. data: data,
  9550. method: 'OPTIONS'
  9551. }, _options));
  9552. }
  9553. }, {
  9554. key: "trace",
  9555. value: function trace(url, data) {
  9556. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9557. return this.middleware(_objectSpread({
  9558. url: url,
  9559. data: data,
  9560. method: 'TRACE'
  9561. }, options));
  9562. }
  9563. }, {
  9564. key: "upload",
  9565. value: function upload(url) {
  9566. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9567. config.url = url;
  9568. config.method = 'UPLOAD';
  9569. return this.middleware(config);
  9570. }
  9571. }, {
  9572. key: "download",
  9573. value: function download(url) {
  9574. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9575. config.url = url;
  9576. config.method = 'DOWNLOAD';
  9577. return this.middleware(config);
  9578. }
  9579. }]);
  9580. return Request;
  9581. }();
  9582. /**
  9583. * setConfig回调
  9584. * @return {Object} - 返回操作后的config
  9585. * @callback Request~setConfigCallback
  9586. * @param {Object} config - 全局默认config
  9587. */
  9588. exports.default = Request;
  9589. /***/ }),
  9590. /* 43 */
  9591. /*!*******************************************************************************************!*\
  9592. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/luch-request/core/dispatchRequest.js ***!
  9593. \*******************************************************************************************/
  9594. /*! no static exports found */
  9595. /***/ (function(module, exports, __webpack_require__) {
  9596. "use strict";
  9597. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9598. Object.defineProperty(exports, "__esModule", {
  9599. value: true
  9600. });
  9601. exports.default = void 0;
  9602. var _index = _interopRequireDefault(__webpack_require__(/*! ../adapters/index */ 44));
  9603. var _default = function _default(config) {
  9604. return (0, _index.default)(config);
  9605. };
  9606. exports.default = _default;
  9607. /***/ }),
  9608. /* 44 */
  9609. /*!*************************************************************************************!*\
  9610. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/luch-request/adapters/index.js ***!
  9611. \*************************************************************************************/
  9612. /*! no static exports found */
  9613. /***/ (function(module, exports, __webpack_require__) {
  9614. "use strict";
  9615. /* WEBPACK VAR INJECTION */(function(uni) {
  9616. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9617. Object.defineProperty(exports, "__esModule", {
  9618. value: true
  9619. });
  9620. exports.default = void 0;
  9621. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9622. var _buildURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/buildURL */ 45));
  9623. var _buildFullPath = _interopRequireDefault(__webpack_require__(/*! ../core/buildFullPath */ 47));
  9624. var _settle = _interopRequireDefault(__webpack_require__(/*! ../core/settle */ 50));
  9625. var _utils = __webpack_require__(/*! ../utils */ 46);
  9626. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  9627. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  9628. /**
  9629. * 返回可选值存在的配置
  9630. * @param {Array} keys - 可选值数组
  9631. * @param {Object} config2 - 配置
  9632. * @return {{}} - 存在的配置项
  9633. */
  9634. var mergeKeys = function mergeKeys(keys, config2) {
  9635. var config = {};
  9636. keys.forEach(function (prop) {
  9637. if (!(0, _utils.isUndefined)(config2[prop])) {
  9638. config[prop] = config2[prop];
  9639. }
  9640. });
  9641. return config;
  9642. };
  9643. var _default = function _default(config) {
  9644. return new Promise(function (resolve, reject) {
  9645. var fullPath = (0, _buildURL.default)((0, _buildFullPath.default)(config.baseURL, config.url), config.params);
  9646. var _config = {
  9647. url: fullPath,
  9648. header: config.header,
  9649. complete: function complete(response) {
  9650. config.fullPath = fullPath;
  9651. response.config = config;
  9652. try {
  9653. // 对可能字符串不是json 的情况容错
  9654. if (typeof response.data === 'string') {
  9655. response.data = JSON.parse(response.data);
  9656. }
  9657. // eslint-disable-next-line no-empty
  9658. } catch (e) {}
  9659. (0, _settle.default)(resolve, reject, response);
  9660. }
  9661. };
  9662. var requestTask;
  9663. if (config.method === 'UPLOAD') {
  9664. delete _config.header['content-type'];
  9665. delete _config.header['Content-Type'];
  9666. var otherConfig = {
  9667. filePath: config.filePath,
  9668. name: config.name
  9669. };
  9670. var optionalKeys = ['formData'];
  9671. requestTask = uni.uploadFile(_objectSpread(_objectSpread(_objectSpread({}, _config), otherConfig), mergeKeys(optionalKeys, config)));
  9672. } else if (config.method === 'DOWNLOAD') {
  9673. requestTask = uni.downloadFile(_config);
  9674. } else {
  9675. var _optionalKeys = ['data', 'method', 'timeout', 'dataType', 'responseType'];
  9676. requestTask = uni.request(_objectSpread(_objectSpread({}, _config), mergeKeys(_optionalKeys, config)));
  9677. }
  9678. if (config.getTask) {
  9679. config.getTask(requestTask, config);
  9680. }
  9681. });
  9682. };
  9683. exports.default = _default;
  9684. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9685. /***/ }),
  9686. /* 45 */
  9687. /*!***************************************************************************************!*\
  9688. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/luch-request/helpers/buildURL.js ***!
  9689. \***************************************************************************************/
  9690. /*! no static exports found */
  9691. /***/ (function(module, exports, __webpack_require__) {
  9692. "use strict";
  9693. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  9694. Object.defineProperty(exports, "__esModule", {
  9695. value: true
  9696. });
  9697. exports.default = buildURL;
  9698. var utils = _interopRequireWildcard(__webpack_require__(/*! ../utils */ 46));
  9699. function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
  9700. function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && 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; }
  9701. function encode(val) {
  9702. return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
  9703. }
  9704. /**
  9705. * Build a URL by appending params to the end
  9706. *
  9707. * @param {string} url The base of the url (e.g., http://www.google.com)
  9708. * @param {object} [params] The params to be appended
  9709. * @returns {string} The formatted url
  9710. */
  9711. function buildURL(url, params) {
  9712. /* eslint no-param-reassign:0 */
  9713. if (!params) {
  9714. return url;
  9715. }
  9716. var serializedParams;
  9717. if (utils.isURLSearchParams(params)) {
  9718. serializedParams = params.toString();
  9719. } else {
  9720. var parts = [];
  9721. utils.forEach(params, function (val, key) {
  9722. if (val === null || typeof val === 'undefined') {
  9723. return;
  9724. }
  9725. if (utils.isArray(val)) {
  9726. key = "".concat(key, "[]");
  9727. } else {
  9728. val = [val];
  9729. }
  9730. utils.forEach(val, function (v) {
  9731. if (utils.isDate(v)) {
  9732. v = v.toISOString();
  9733. } else if (utils.isObject(v)) {
  9734. v = JSON.stringify(v);
  9735. }
  9736. parts.push("".concat(encode(key), "=").concat(encode(v)));
  9737. });
  9738. });
  9739. serializedParams = parts.join('&');
  9740. }
  9741. if (serializedParams) {
  9742. var hashmarkIndex = url.indexOf('#');
  9743. if (hashmarkIndex !== -1) {
  9744. url = url.slice(0, hashmarkIndex);
  9745. }
  9746. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  9747. }
  9748. return url;
  9749. }
  9750. /***/ }),
  9751. /* 46 */
  9752. /*!****************************************************************************!*\
  9753. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/luch-request/utils.js ***!
  9754. \****************************************************************************/
  9755. /*! no static exports found */
  9756. /***/ (function(module, exports, __webpack_require__) {
  9757. "use strict";
  9758. // utils is a library of generic helper functions non-specific to axios
  9759. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9760. Object.defineProperty(exports, "__esModule", {
  9761. value: true
  9762. });
  9763. exports.deepMerge = deepMerge;
  9764. exports.forEach = forEach;
  9765. exports.isArray = isArray;
  9766. exports.isBoolean = isBoolean;
  9767. exports.isDate = isDate;
  9768. exports.isObject = isObject;
  9769. exports.isPlainObject = isPlainObject;
  9770. exports.isURLSearchParams = isURLSearchParams;
  9771. exports.isUndefined = isUndefined;
  9772. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  9773. var toString = Object.prototype.toString;
  9774. /**
  9775. * Determine if a value is an Array
  9776. *
  9777. * @param {Object} val The value to test
  9778. * @returns {boolean} True if value is an Array, otherwise false
  9779. */
  9780. function isArray(val) {
  9781. return toString.call(val) === '[object Array]';
  9782. }
  9783. /**
  9784. * Determine if a value is an Object
  9785. *
  9786. * @param {Object} val The value to test
  9787. * @returns {boolean} True if value is an Object, otherwise false
  9788. */
  9789. function isObject(val) {
  9790. return val !== null && (0, _typeof2.default)(val) === 'object';
  9791. }
  9792. /**
  9793. * Determine if a value is a Date
  9794. *
  9795. * @param {Object} val The value to test
  9796. * @returns {boolean} True if value is a Date, otherwise false
  9797. */
  9798. function isDate(val) {
  9799. return toString.call(val) === '[object Date]';
  9800. }
  9801. /**
  9802. * Determine if a value is a URLSearchParams object
  9803. *
  9804. * @param {Object} val The value to test
  9805. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  9806. */
  9807. function isURLSearchParams(val) {
  9808. return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  9809. }
  9810. /**
  9811. * Iterate over an Array or an Object invoking a function for each item.
  9812. *
  9813. * If `obj` is an Array callback will be called passing
  9814. * the value, index, and complete array for each item.
  9815. *
  9816. * If 'obj' is an Object callback will be called passing
  9817. * the value, key, and complete object for each property.
  9818. *
  9819. * @param {Object|Array} obj The object to iterate
  9820. * @param {Function} fn The callback to invoke for each item
  9821. */
  9822. function forEach(obj, fn) {
  9823. // Don't bother if no value provided
  9824. if (obj === null || typeof obj === 'undefined') {
  9825. return;
  9826. }
  9827. // Force an array if not already something iterable
  9828. if ((0, _typeof2.default)(obj) !== 'object') {
  9829. /* eslint no-param-reassign:0 */
  9830. obj = [obj];
  9831. }
  9832. if (isArray(obj)) {
  9833. // Iterate over array values
  9834. for (var i = 0, l = obj.length; i < l; i++) {
  9835. fn.call(null, obj[i], i, obj);
  9836. }
  9837. } else {
  9838. // Iterate over object keys
  9839. for (var key in obj) {
  9840. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  9841. fn.call(null, obj[key], key, obj);
  9842. }
  9843. }
  9844. }
  9845. }
  9846. /**
  9847. * 是否为boolean 值
  9848. * @param val
  9849. * @returns {boolean}
  9850. */
  9851. function isBoolean(val) {
  9852. return typeof val === 'boolean';
  9853. }
  9854. /**
  9855. * 是否为真正的对象{} new Object
  9856. * @param {any} obj - 检测的对象
  9857. * @returns {boolean}
  9858. */
  9859. function isPlainObject(obj) {
  9860. return Object.prototype.toString.call(obj) === '[object Object]';
  9861. }
  9862. /**
  9863. * Function equal to merge with the difference being that no reference
  9864. * to original objects is kept.
  9865. *
  9866. * @see merge
  9867. * @param {Object} obj1 Object to merge
  9868. * @returns {Object} Result of all merge properties
  9869. */
  9870. function deepMerge( /* obj1, obj2, obj3, ... */
  9871. ) {
  9872. var result = {};
  9873. function assignValue(val, key) {
  9874. if ((0, _typeof2.default)(result[key]) === 'object' && (0, _typeof2.default)(val) === 'object') {
  9875. result[key] = deepMerge(result[key], val);
  9876. } else if ((0, _typeof2.default)(val) === 'object') {
  9877. result[key] = deepMerge({}, val);
  9878. } else {
  9879. result[key] = val;
  9880. }
  9881. }
  9882. for (var i = 0, l = arguments.length; i < l; i++) {
  9883. forEach(arguments[i], assignValue);
  9884. }
  9885. return result;
  9886. }
  9887. function isUndefined(val) {
  9888. return typeof val === 'undefined';
  9889. }
  9890. /***/ }),
  9891. /* 47 */
  9892. /*!*****************************************************************************************!*\
  9893. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/luch-request/core/buildFullPath.js ***!
  9894. \*****************************************************************************************/
  9895. /*! no static exports found */
  9896. /***/ (function(module, exports, __webpack_require__) {
  9897. "use strict";
  9898. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9899. Object.defineProperty(exports, "__esModule", {
  9900. value: true
  9901. });
  9902. exports.default = buildFullPath;
  9903. var _isAbsoluteURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/isAbsoluteURL */ 48));
  9904. var _combineURLs = _interopRequireDefault(__webpack_require__(/*! ../helpers/combineURLs */ 49));
  9905. /**
  9906. * Creates a new URL by combining the baseURL with the requestedURL,
  9907. * only when the requestedURL is not already an absolute URL.
  9908. * If the requestURL is absolute, this function returns the requestedURL untouched.
  9909. *
  9910. * @param {string} baseURL The base URL
  9911. * @param {string} requestedURL Absolute or relative URL to combine
  9912. * @returns {string} The combined full path
  9913. */
  9914. function buildFullPath(baseURL, requestedURL) {
  9915. if (baseURL && !(0, _isAbsoluteURL.default)(requestedURL)) {
  9916. return (0, _combineURLs.default)(baseURL, requestedURL);
  9917. }
  9918. return requestedURL;
  9919. }
  9920. /***/ }),
  9921. /* 48 */
  9922. /*!********************************************************************************************!*\
  9923. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js ***!
  9924. \********************************************************************************************/
  9925. /*! no static exports found */
  9926. /***/ (function(module, exports, __webpack_require__) {
  9927. "use strict";
  9928. /**
  9929. * Determines whether the specified URL is absolute
  9930. *
  9931. * @param {string} url The URL to test
  9932. * @returns {boolean} True if the specified URL is absolute, otherwise false
  9933. */
  9934. Object.defineProperty(exports, "__esModule", {
  9935. value: true
  9936. });
  9937. exports.default = isAbsoluteURL;
  9938. function isAbsoluteURL(url) {
  9939. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  9940. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  9941. // by any combination of letters, digits, plus, period, or hyphen.
  9942. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
  9943. }
  9944. /***/ }),
  9945. /* 49 */
  9946. /*!******************************************************************************************!*\
  9947. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/luch-request/helpers/combineURLs.js ***!
  9948. \******************************************************************************************/
  9949. /*! no static exports found */
  9950. /***/ (function(module, exports, __webpack_require__) {
  9951. "use strict";
  9952. /**
  9953. * Creates a new URL by combining the specified URLs
  9954. *
  9955. * @param {string} baseURL The base URL
  9956. * @param {string} relativeURL The relative URL
  9957. * @returns {string} The combined URL
  9958. */
  9959. Object.defineProperty(exports, "__esModule", {
  9960. value: true
  9961. });
  9962. exports.default = combineURLs;
  9963. function combineURLs(baseURL, relativeURL) {
  9964. return relativeURL ? "".concat(baseURL.replace(/\/+$/, ''), "/").concat(relativeURL.replace(/^\/+/, '')) : baseURL;
  9965. }
  9966. /***/ }),
  9967. /* 50 */
  9968. /*!**********************************************************************************!*\
  9969. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/luch-request/core/settle.js ***!
  9970. \**********************************************************************************/
  9971. /*! no static exports found */
  9972. /***/ (function(module, exports, __webpack_require__) {
  9973. "use strict";
  9974. Object.defineProperty(exports, "__esModule", {
  9975. value: true
  9976. });
  9977. exports.default = settle;
  9978. /**
  9979. * Resolve or reject a Promise based on response status.
  9980. *
  9981. * @param {Function} resolve A function that resolves the promise.
  9982. * @param {Function} reject A function that rejects the promise.
  9983. * @param {object} response The response.
  9984. */
  9985. function settle(resolve, reject, response) {
  9986. var validateStatus = response.config.validateStatus;
  9987. var status = response.statusCode;
  9988. if (status && (!validateStatus || validateStatus(status))) {
  9989. resolve(response);
  9990. } else {
  9991. reject(response);
  9992. }
  9993. }
  9994. /***/ }),
  9995. /* 51 */
  9996. /*!**********************************************************************************************!*\
  9997. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/luch-request/core/InterceptorManager.js ***!
  9998. \**********************************************************************************************/
  9999. /*! no static exports found */
  10000. /***/ (function(module, exports, __webpack_require__) {
  10001. "use strict";
  10002. Object.defineProperty(exports, "__esModule", {
  10003. value: true
  10004. });
  10005. exports.default = void 0;
  10006. function InterceptorManager() {
  10007. this.handlers = [];
  10008. }
  10009. /**
  10010. * Add a new interceptor to the stack
  10011. *
  10012. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  10013. * @param {Function} rejected The function to handle `reject` for a `Promise`
  10014. *
  10015. * @return {Number} An ID used to remove interceptor later
  10016. */
  10017. InterceptorManager.prototype.use = function use(fulfilled, rejected) {
  10018. this.handlers.push({
  10019. fulfilled: fulfilled,
  10020. rejected: rejected
  10021. });
  10022. return this.handlers.length - 1;
  10023. };
  10024. /**
  10025. * Remove an interceptor from the stack
  10026. *
  10027. * @param {Number} id The ID that was returned by `use`
  10028. */
  10029. InterceptorManager.prototype.eject = function eject(id) {
  10030. if (this.handlers[id]) {
  10031. this.handlers[id] = null;
  10032. }
  10033. };
  10034. /**
  10035. * Iterate over all the registered interceptors
  10036. *
  10037. * This method is particularly useful for skipping over any
  10038. * interceptors that may have become `null` calling `eject`.
  10039. *
  10040. * @param {Function} fn The function to call for each interceptor
  10041. */
  10042. InterceptorManager.prototype.forEach = function forEach(fn) {
  10043. this.handlers.forEach(function (h) {
  10044. if (h !== null) {
  10045. fn(h);
  10046. }
  10047. });
  10048. };
  10049. var _default = InterceptorManager;
  10050. exports.default = _default;
  10051. /***/ }),
  10052. /* 52 */
  10053. /*!***************************************************************************************!*\
  10054. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/luch-request/core/mergeConfig.js ***!
  10055. \***************************************************************************************/
  10056. /*! no static exports found */
  10057. /***/ (function(module, exports, __webpack_require__) {
  10058. "use strict";
  10059. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10060. Object.defineProperty(exports, "__esModule", {
  10061. value: true
  10062. });
  10063. exports.default = void 0;
  10064. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  10065. var _utils = __webpack_require__(/*! ../utils */ 46);
  10066. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  10067. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  10068. /**
  10069. * 合并局部配置优先的配置,如果局部有该配置项则用局部,如果全局有该配置项则用全局
  10070. * @param {Array} keys - 配置项
  10071. * @param {Object} globalsConfig - 当前的全局配置
  10072. * @param {Object} config2 - 局部配置
  10073. * @return {{}}
  10074. */
  10075. var mergeKeys = function mergeKeys(keys, globalsConfig, config2) {
  10076. var config = {};
  10077. keys.forEach(function (prop) {
  10078. if (!(0, _utils.isUndefined)(config2[prop])) {
  10079. config[prop] = config2[prop];
  10080. } else if (!(0, _utils.isUndefined)(globalsConfig[prop])) {
  10081. config[prop] = globalsConfig[prop];
  10082. }
  10083. });
  10084. return config;
  10085. };
  10086. /**
  10087. *
  10088. * @param globalsConfig - 当前实例的全局配置
  10089. * @param config2 - 当前的局部配置
  10090. * @return - 合并后的配置
  10091. */
  10092. var _default = function _default(globalsConfig) {
  10093. var config2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  10094. var method = config2.method || globalsConfig.method || 'GET';
  10095. var config = {
  10096. baseURL: globalsConfig.baseURL || '',
  10097. method: method,
  10098. url: config2.url || '',
  10099. params: config2.params || {},
  10100. custom: _objectSpread(_objectSpread({}, globalsConfig.custom || {}), config2.custom || {}),
  10101. header: (0, _utils.deepMerge)(globalsConfig.header || {}, config2.header || {})
  10102. };
  10103. var defaultToConfig2Keys = ['getTask', 'validateStatus'];
  10104. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultToConfig2Keys, globalsConfig, config2));
  10105. // eslint-disable-next-line no-empty
  10106. if (method === 'DOWNLOAD') {} else if (method === 'UPLOAD') {
  10107. delete config.header['content-type'];
  10108. delete config.header['Content-Type'];
  10109. var uploadKeys = ['filePath', 'name', 'formData'];
  10110. uploadKeys.forEach(function (prop) {
  10111. if (!(0, _utils.isUndefined)(config2[prop])) {
  10112. config[prop] = config2[prop];
  10113. }
  10114. });
  10115. } else {
  10116. var defaultsKeys = ['data', 'timeout', 'dataType', 'responseType'];
  10117. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultsKeys, globalsConfig, config2));
  10118. }
  10119. return config;
  10120. };
  10121. exports.default = _default;
  10122. /***/ }),
  10123. /* 53 */
  10124. /*!************************************************************************************!*\
  10125. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/luch-request/core/defaults.js ***!
  10126. \************************************************************************************/
  10127. /*! no static exports found */
  10128. /***/ (function(module, exports, __webpack_require__) {
  10129. "use strict";
  10130. Object.defineProperty(exports, "__esModule", {
  10131. value: true
  10132. });
  10133. exports.default = void 0;
  10134. /**
  10135. * 默认的全局配置
  10136. */
  10137. var _default = {
  10138. baseURL: '',
  10139. header: {},
  10140. method: 'GET',
  10141. dataType: 'json',
  10142. responseType: 'text',
  10143. custom: {},
  10144. timeout: 60000,
  10145. validateStatus: function validateStatus(status) {
  10146. return status >= 200 && status < 300;
  10147. }
  10148. };
  10149. exports.default = _default;
  10150. /***/ }),
  10151. /* 54 */
  10152. /*!**********************************************************************************!*\
  10153. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/luch-request/utils/clone.js ***!
  10154. \**********************************************************************************/
  10155. /*! no static exports found */
  10156. /***/ (function(module, exports, __webpack_require__) {
  10157. "use strict";
  10158. /* WEBPACK VAR INJECTION */(function(Buffer) {
  10159. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10160. Object.defineProperty(exports, "__esModule", {
  10161. value: true
  10162. });
  10163. exports.default = void 0;
  10164. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  10165. /* eslint-disable */
  10166. var clone = function () {
  10167. 'use strict';
  10168. function _instanceof(obj, type) {
  10169. return type != null && obj instanceof type;
  10170. }
  10171. var nativeMap;
  10172. try {
  10173. nativeMap = Map;
  10174. } catch (_) {
  10175. // maybe a reference error because no `Map`. Give it a dummy value that no
  10176. // value will ever be an instanceof.
  10177. nativeMap = function nativeMap() {};
  10178. }
  10179. var nativeSet;
  10180. try {
  10181. nativeSet = Set;
  10182. } catch (_) {
  10183. nativeSet = function nativeSet() {};
  10184. }
  10185. var nativePromise;
  10186. try {
  10187. nativePromise = Promise;
  10188. } catch (_) {
  10189. nativePromise = function nativePromise() {};
  10190. }
  10191. /**
  10192. * Clones (copies) an Object using deep copying.
  10193. *
  10194. * This function supports circular references by default, but if you are certain
  10195. * there are no circular references in your object, you can save some CPU time
  10196. * by calling clone(obj, false).
  10197. *
  10198. * Caution: if `circular` is false and `parent` contains circular references,
  10199. * your program may enter an infinite loop and crash.
  10200. *
  10201. * @param `parent` - the object to be cloned
  10202. * @param `circular` - set to true if the object to be cloned may contain
  10203. * circular references. (optional - true by default)
  10204. * @param `depth` - set to a number if the object is only to be cloned to
  10205. * a particular depth. (optional - defaults to Infinity)
  10206. * @param `prototype` - sets the prototype to be used when cloning an object.
  10207. * (optional - defaults to parent prototype).
  10208. * @param `includeNonEnumerable` - set to true if the non-enumerable properties
  10209. * should be cloned as well. Non-enumerable properties on the prototype
  10210. * chain will be ignored. (optional - false by default)
  10211. */
  10212. function clone(parent, circular, depth, prototype, includeNonEnumerable) {
  10213. if ((0, _typeof2.default)(circular) === 'object') {
  10214. depth = circular.depth;
  10215. prototype = circular.prototype;
  10216. includeNonEnumerable = circular.includeNonEnumerable;
  10217. circular = circular.circular;
  10218. }
  10219. // maintain two arrays for circular references, where corresponding parents
  10220. // and children have the same index
  10221. var allParents = [];
  10222. var allChildren = [];
  10223. var useBuffer = typeof Buffer != 'undefined';
  10224. if (typeof circular == 'undefined') circular = true;
  10225. if (typeof depth == 'undefined') depth = Infinity;
  10226. // recurse this function so we don't reset allParents and allChildren
  10227. function _clone(parent, depth) {
  10228. // cloning null always returns null
  10229. if (parent === null) return null;
  10230. if (depth === 0) return parent;
  10231. var child;
  10232. var proto;
  10233. if ((0, _typeof2.default)(parent) != 'object') {
  10234. return parent;
  10235. }
  10236. if (_instanceof(parent, nativeMap)) {
  10237. child = new nativeMap();
  10238. } else if (_instanceof(parent, nativeSet)) {
  10239. child = new nativeSet();
  10240. } else if (_instanceof(parent, nativePromise)) {
  10241. child = new nativePromise(function (resolve, reject) {
  10242. parent.then(function (value) {
  10243. resolve(_clone(value, depth - 1));
  10244. }, function (err) {
  10245. reject(_clone(err, depth - 1));
  10246. });
  10247. });
  10248. } else if (clone.__isArray(parent)) {
  10249. child = [];
  10250. } else if (clone.__isRegExp(parent)) {
  10251. child = new RegExp(parent.source, __getRegExpFlags(parent));
  10252. if (parent.lastIndex) child.lastIndex = parent.lastIndex;
  10253. } else if (clone.__isDate(parent)) {
  10254. child = new Date(parent.getTime());
  10255. } else if (useBuffer && Buffer.isBuffer(parent)) {
  10256. if (Buffer.from) {
  10257. // Node.js >= 5.10.0
  10258. child = Buffer.from(parent);
  10259. } else {
  10260. // Older Node.js versions
  10261. child = new Buffer(parent.length);
  10262. parent.copy(child);
  10263. }
  10264. return child;
  10265. } else if (_instanceof(parent, Error)) {
  10266. child = Object.create(parent);
  10267. } else {
  10268. if (typeof prototype == 'undefined') {
  10269. proto = Object.getPrototypeOf(parent);
  10270. child = Object.create(proto);
  10271. } else {
  10272. child = Object.create(prototype);
  10273. proto = prototype;
  10274. }
  10275. }
  10276. if (circular) {
  10277. var index = allParents.indexOf(parent);
  10278. if (index != -1) {
  10279. return allChildren[index];
  10280. }
  10281. allParents.push(parent);
  10282. allChildren.push(child);
  10283. }
  10284. if (_instanceof(parent, nativeMap)) {
  10285. parent.forEach(function (value, key) {
  10286. var keyChild = _clone(key, depth - 1);
  10287. var valueChild = _clone(value, depth - 1);
  10288. child.set(keyChild, valueChild);
  10289. });
  10290. }
  10291. if (_instanceof(parent, nativeSet)) {
  10292. parent.forEach(function (value) {
  10293. var entryChild = _clone(value, depth - 1);
  10294. child.add(entryChild);
  10295. });
  10296. }
  10297. for (var i in parent) {
  10298. var attrs = Object.getOwnPropertyDescriptor(parent, i);
  10299. if (attrs) {
  10300. child[i] = _clone(parent[i], depth - 1);
  10301. }
  10302. try {
  10303. var objProperty = Object.getOwnPropertyDescriptor(parent, i);
  10304. if (objProperty.set === 'undefined') {
  10305. // no setter defined. Skip cloning this property
  10306. continue;
  10307. }
  10308. child[i] = _clone(parent[i], depth - 1);
  10309. } catch (e) {
  10310. if (e instanceof TypeError) {
  10311. // when in strict mode, TypeError will be thrown if child[i] property only has a getter
  10312. // we can't do anything about this, other than inform the user that this property cannot be set.
  10313. continue;
  10314. } else if (e instanceof ReferenceError) {
  10315. //this may happen in non strict mode
  10316. continue;
  10317. }
  10318. }
  10319. }
  10320. if (Object.getOwnPropertySymbols) {
  10321. var symbols = Object.getOwnPropertySymbols(parent);
  10322. for (var i = 0; i < symbols.length; i++) {
  10323. // Don't need to worry about cloning a symbol because it is a primitive,
  10324. // like a number or string.
  10325. var symbol = symbols[i];
  10326. var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
  10327. if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
  10328. continue;
  10329. }
  10330. child[symbol] = _clone(parent[symbol], depth - 1);
  10331. Object.defineProperty(child, symbol, descriptor);
  10332. }
  10333. }
  10334. if (includeNonEnumerable) {
  10335. var allPropertyNames = Object.getOwnPropertyNames(parent);
  10336. for (var i = 0; i < allPropertyNames.length; i++) {
  10337. var propertyName = allPropertyNames[i];
  10338. var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
  10339. if (descriptor && descriptor.enumerable) {
  10340. continue;
  10341. }
  10342. child[propertyName] = _clone(parent[propertyName], depth - 1);
  10343. Object.defineProperty(child, propertyName, descriptor);
  10344. }
  10345. }
  10346. return child;
  10347. }
  10348. return _clone(parent, depth);
  10349. }
  10350. /**
  10351. * Simple flat clone using prototype, accepts only objects, usefull for property
  10352. * override on FLAT configuration object (no nested props).
  10353. *
  10354. * USE WITH CAUTION! This may not behave as you wish if you do not know how this
  10355. * works.
  10356. */
  10357. clone.clonePrototype = function clonePrototype(parent) {
  10358. if (parent === null) return null;
  10359. var c = function c() {};
  10360. c.prototype = parent;
  10361. return new c();
  10362. };
  10363. // private utility functions
  10364. function __objToStr(o) {
  10365. return Object.prototype.toString.call(o);
  10366. }
  10367. clone.__objToStr = __objToStr;
  10368. function __isDate(o) {
  10369. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Date]';
  10370. }
  10371. clone.__isDate = __isDate;
  10372. function __isArray(o) {
  10373. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Array]';
  10374. }
  10375. clone.__isArray = __isArray;
  10376. function __isRegExp(o) {
  10377. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object RegExp]';
  10378. }
  10379. clone.__isRegExp = __isRegExp;
  10380. function __getRegExpFlags(re) {
  10381. var flags = '';
  10382. if (re.global) flags += 'g';
  10383. if (re.ignoreCase) flags += 'i';
  10384. if (re.multiline) flags += 'm';
  10385. return flags;
  10386. }
  10387. clone.__getRegExpFlags = __getRegExpFlags;
  10388. return clone;
  10389. }();
  10390. var _default = clone;
  10391. exports.default = _default;
  10392. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/buffer/index.js */ 55).Buffer))
  10393. /***/ }),
  10394. /* 55 */
  10395. /*!**************************************!*\
  10396. !*** ./node_modules/buffer/index.js ***!
  10397. \**************************************/
  10398. /*! no static exports found */
  10399. /***/ (function(module, exports, __webpack_require__) {
  10400. "use strict";
  10401. /* WEBPACK VAR INJECTION */(function(global) {/*!
  10402. * The buffer module from node.js, for the browser.
  10403. *
  10404. * @author Feross Aboukhadijeh <http://feross.org>
  10405. * @license MIT
  10406. */
  10407. /* eslint-disable no-proto */
  10408. var base64 = __webpack_require__(/*! base64-js */ 56)
  10409. var ieee754 = __webpack_require__(/*! ieee754 */ 57)
  10410. var isArray = __webpack_require__(/*! isarray */ 58)
  10411. exports.Buffer = Buffer
  10412. exports.SlowBuffer = SlowBuffer
  10413. exports.INSPECT_MAX_BYTES = 50
  10414. /**
  10415. * If `Buffer.TYPED_ARRAY_SUPPORT`:
  10416. * === true Use Uint8Array implementation (fastest)
  10417. * === false Use Object implementation (most compatible, even IE6)
  10418. *
  10419. * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
  10420. * Opera 11.6+, iOS 4.2+.
  10421. *
  10422. * Due to various browser bugs, sometimes the Object implementation will be used even
  10423. * when the browser supports typed arrays.
  10424. *
  10425. * Note:
  10426. *
  10427. * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
  10428. * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
  10429. *
  10430. * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
  10431. *
  10432. * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
  10433. * incorrect length in some situations.
  10434. * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
  10435. * get the Object implementation, which is slower but behaves correctly.
  10436. */
  10437. Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
  10438. ? global.TYPED_ARRAY_SUPPORT
  10439. : typedArraySupport()
  10440. /*
  10441. * Export kMaxLength after typed array support is determined.
  10442. */
  10443. exports.kMaxLength = kMaxLength()
  10444. function typedArraySupport () {
  10445. try {
  10446. var arr = new Uint8Array(1)
  10447. arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
  10448. return arr.foo() === 42 && // typed array instances can be augmented
  10449. typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
  10450. arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  10451. } catch (e) {
  10452. return false
  10453. }
  10454. }
  10455. function kMaxLength () {
  10456. return Buffer.TYPED_ARRAY_SUPPORT
  10457. ? 0x7fffffff
  10458. : 0x3fffffff
  10459. }
  10460. function createBuffer (that, length) {
  10461. if (kMaxLength() < length) {
  10462. throw new RangeError('Invalid typed array length')
  10463. }
  10464. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10465. // Return an augmented `Uint8Array` instance, for best performance
  10466. that = new Uint8Array(length)
  10467. that.__proto__ = Buffer.prototype
  10468. } else {
  10469. // Fallback: Return an object instance of the Buffer class
  10470. if (that === null) {
  10471. that = new Buffer(length)
  10472. }
  10473. that.length = length
  10474. }
  10475. return that
  10476. }
  10477. /**
  10478. * The Buffer constructor returns instances of `Uint8Array` that have their
  10479. * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
  10480. * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
  10481. * and the `Uint8Array` methods. Square bracket notation works as expected -- it
  10482. * returns a single octet.
  10483. *
  10484. * The `Uint8Array` prototype remains unmodified.
  10485. */
  10486. function Buffer (arg, encodingOrOffset, length) {
  10487. if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
  10488. return new Buffer(arg, encodingOrOffset, length)
  10489. }
  10490. // Common case.
  10491. if (typeof arg === 'number') {
  10492. if (typeof encodingOrOffset === 'string') {
  10493. throw new Error(
  10494. 'If encoding is specified then the first argument must be a string'
  10495. )
  10496. }
  10497. return allocUnsafe(this, arg)
  10498. }
  10499. return from(this, arg, encodingOrOffset, length)
  10500. }
  10501. Buffer.poolSize = 8192 // not used by this implementation
  10502. // TODO: Legacy, not needed anymore. Remove in next major version.
  10503. Buffer._augment = function (arr) {
  10504. arr.__proto__ = Buffer.prototype
  10505. return arr
  10506. }
  10507. function from (that, value, encodingOrOffset, length) {
  10508. if (typeof value === 'number') {
  10509. throw new TypeError('"value" argument must not be a number')
  10510. }
  10511. if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
  10512. return fromArrayBuffer(that, value, encodingOrOffset, length)
  10513. }
  10514. if (typeof value === 'string') {
  10515. return fromString(that, value, encodingOrOffset)
  10516. }
  10517. return fromObject(that, value)
  10518. }
  10519. /**
  10520. * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
  10521. * if value is a number.
  10522. * Buffer.from(str[, encoding])
  10523. * Buffer.from(array)
  10524. * Buffer.from(buffer)
  10525. * Buffer.from(arrayBuffer[, byteOffset[, length]])
  10526. **/
  10527. Buffer.from = function (value, encodingOrOffset, length) {
  10528. return from(null, value, encodingOrOffset, length)
  10529. }
  10530. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10531. Buffer.prototype.__proto__ = Uint8Array.prototype
  10532. Buffer.__proto__ = Uint8Array
  10533. if (typeof Symbol !== 'undefined' && Symbol.species &&
  10534. Buffer[Symbol.species] === Buffer) {
  10535. // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
  10536. Object.defineProperty(Buffer, Symbol.species, {
  10537. value: null,
  10538. configurable: true
  10539. })
  10540. }
  10541. }
  10542. function assertSize (size) {
  10543. if (typeof size !== 'number') {
  10544. throw new TypeError('"size" argument must be a number')
  10545. } else if (size < 0) {
  10546. throw new RangeError('"size" argument must not be negative')
  10547. }
  10548. }
  10549. function alloc (that, size, fill, encoding) {
  10550. assertSize(size)
  10551. if (size <= 0) {
  10552. return createBuffer(that, size)
  10553. }
  10554. if (fill !== undefined) {
  10555. // Only pay attention to encoding if it's a string. This
  10556. // prevents accidentally sending in a number that would
  10557. // be interpretted as a start offset.
  10558. return typeof encoding === 'string'
  10559. ? createBuffer(that, size).fill(fill, encoding)
  10560. : createBuffer(that, size).fill(fill)
  10561. }
  10562. return createBuffer(that, size)
  10563. }
  10564. /**
  10565. * Creates a new filled Buffer instance.
  10566. * alloc(size[, fill[, encoding]])
  10567. **/
  10568. Buffer.alloc = function (size, fill, encoding) {
  10569. return alloc(null, size, fill, encoding)
  10570. }
  10571. function allocUnsafe (that, size) {
  10572. assertSize(size)
  10573. that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  10574. if (!Buffer.TYPED_ARRAY_SUPPORT) {
  10575. for (var i = 0; i < size; ++i) {
  10576. that[i] = 0
  10577. }
  10578. }
  10579. return that
  10580. }
  10581. /**
  10582. * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
  10583. * */
  10584. Buffer.allocUnsafe = function (size) {
  10585. return allocUnsafe(null, size)
  10586. }
  10587. /**
  10588. * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
  10589. */
  10590. Buffer.allocUnsafeSlow = function (size) {
  10591. return allocUnsafe(null, size)
  10592. }
  10593. function fromString (that, string, encoding) {
  10594. if (typeof encoding !== 'string' || encoding === '') {
  10595. encoding = 'utf8'
  10596. }
  10597. if (!Buffer.isEncoding(encoding)) {
  10598. throw new TypeError('"encoding" must be a valid string encoding')
  10599. }
  10600. var length = byteLength(string, encoding) | 0
  10601. that = createBuffer(that, length)
  10602. var actual = that.write(string, encoding)
  10603. if (actual !== length) {
  10604. // Writing a hex string, for example, that contains invalid characters will
  10605. // cause everything after the first invalid character to be ignored. (e.g.
  10606. // 'abxxcd' will be treated as 'ab')
  10607. that = that.slice(0, actual)
  10608. }
  10609. return that
  10610. }
  10611. function fromArrayLike (that, array) {
  10612. var length = array.length < 0 ? 0 : checked(array.length) | 0
  10613. that = createBuffer(that, length)
  10614. for (var i = 0; i < length; i += 1) {
  10615. that[i] = array[i] & 255
  10616. }
  10617. return that
  10618. }
  10619. function fromArrayBuffer (that, array, byteOffset, length) {
  10620. array.byteLength // this throws if `array` is not a valid ArrayBuffer
  10621. if (byteOffset < 0 || array.byteLength < byteOffset) {
  10622. throw new RangeError('\'offset\' is out of bounds')
  10623. }
  10624. if (array.byteLength < byteOffset + (length || 0)) {
  10625. throw new RangeError('\'length\' is out of bounds')
  10626. }
  10627. if (byteOffset === undefined && length === undefined) {
  10628. array = new Uint8Array(array)
  10629. } else if (length === undefined) {
  10630. array = new Uint8Array(array, byteOffset)
  10631. } else {
  10632. array = new Uint8Array(array, byteOffset, length)
  10633. }
  10634. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10635. // Return an augmented `Uint8Array` instance, for best performance
  10636. that = array
  10637. that.__proto__ = Buffer.prototype
  10638. } else {
  10639. // Fallback: Return an object instance of the Buffer class
  10640. that = fromArrayLike(that, array)
  10641. }
  10642. return that
  10643. }
  10644. function fromObject (that, obj) {
  10645. if (Buffer.isBuffer(obj)) {
  10646. var len = checked(obj.length) | 0
  10647. that = createBuffer(that, len)
  10648. if (that.length === 0) {
  10649. return that
  10650. }
  10651. obj.copy(that, 0, 0, len)
  10652. return that
  10653. }
  10654. if (obj) {
  10655. if ((typeof ArrayBuffer !== 'undefined' &&
  10656. obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
  10657. if (typeof obj.length !== 'number' || isnan(obj.length)) {
  10658. return createBuffer(that, 0)
  10659. }
  10660. return fromArrayLike(that, obj)
  10661. }
  10662. if (obj.type === 'Buffer' && isArray(obj.data)) {
  10663. return fromArrayLike(that, obj.data)
  10664. }
  10665. }
  10666. throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
  10667. }
  10668. function checked (length) {
  10669. // Note: cannot use `length < kMaxLength()` here because that fails when
  10670. // length is NaN (which is otherwise coerced to zero.)
  10671. if (length >= kMaxLength()) {
  10672. throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
  10673. 'size: 0x' + kMaxLength().toString(16) + ' bytes')
  10674. }
  10675. return length | 0
  10676. }
  10677. function SlowBuffer (length) {
  10678. if (+length != length) { // eslint-disable-line eqeqeq
  10679. length = 0
  10680. }
  10681. return Buffer.alloc(+length)
  10682. }
  10683. Buffer.isBuffer = function isBuffer (b) {
  10684. return !!(b != null && b._isBuffer)
  10685. }
  10686. Buffer.compare = function compare (a, b) {
  10687. if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
  10688. throw new TypeError('Arguments must be Buffers')
  10689. }
  10690. if (a === b) return 0
  10691. var x = a.length
  10692. var y = b.length
  10693. for (var i = 0, len = Math.min(x, y); i < len; ++i) {
  10694. if (a[i] !== b[i]) {
  10695. x = a[i]
  10696. y = b[i]
  10697. break
  10698. }
  10699. }
  10700. if (x < y) return -1
  10701. if (y < x) return 1
  10702. return 0
  10703. }
  10704. Buffer.isEncoding = function isEncoding (encoding) {
  10705. switch (String(encoding).toLowerCase()) {
  10706. case 'hex':
  10707. case 'utf8':
  10708. case 'utf-8':
  10709. case 'ascii':
  10710. case 'latin1':
  10711. case 'binary':
  10712. case 'base64':
  10713. case 'ucs2':
  10714. case 'ucs-2':
  10715. case 'utf16le':
  10716. case 'utf-16le':
  10717. return true
  10718. default:
  10719. return false
  10720. }
  10721. }
  10722. Buffer.concat = function concat (list, length) {
  10723. if (!isArray(list)) {
  10724. throw new TypeError('"list" argument must be an Array of Buffers')
  10725. }
  10726. if (list.length === 0) {
  10727. return Buffer.alloc(0)
  10728. }
  10729. var i
  10730. if (length === undefined) {
  10731. length = 0
  10732. for (i = 0; i < list.length; ++i) {
  10733. length += list[i].length
  10734. }
  10735. }
  10736. var buffer = Buffer.allocUnsafe(length)
  10737. var pos = 0
  10738. for (i = 0; i < list.length; ++i) {
  10739. var buf = list[i]
  10740. if (!Buffer.isBuffer(buf)) {
  10741. throw new TypeError('"list" argument must be an Array of Buffers')
  10742. }
  10743. buf.copy(buffer, pos)
  10744. pos += buf.length
  10745. }
  10746. return buffer
  10747. }
  10748. function byteLength (string, encoding) {
  10749. if (Buffer.isBuffer(string)) {
  10750. return string.length
  10751. }
  10752. if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
  10753. (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
  10754. return string.byteLength
  10755. }
  10756. if (typeof string !== 'string') {
  10757. string = '' + string
  10758. }
  10759. var len = string.length
  10760. if (len === 0) return 0
  10761. // Use a for loop to avoid recursion
  10762. var loweredCase = false
  10763. for (;;) {
  10764. switch (encoding) {
  10765. case 'ascii':
  10766. case 'latin1':
  10767. case 'binary':
  10768. return len
  10769. case 'utf8':
  10770. case 'utf-8':
  10771. case undefined:
  10772. return utf8ToBytes(string).length
  10773. case 'ucs2':
  10774. case 'ucs-2':
  10775. case 'utf16le':
  10776. case 'utf-16le':
  10777. return len * 2
  10778. case 'hex':
  10779. return len >>> 1
  10780. case 'base64':
  10781. return base64ToBytes(string).length
  10782. default:
  10783. if (loweredCase) return utf8ToBytes(string).length // assume utf8
  10784. encoding = ('' + encoding).toLowerCase()
  10785. loweredCase = true
  10786. }
  10787. }
  10788. }
  10789. Buffer.byteLength = byteLength
  10790. function slowToString (encoding, start, end) {
  10791. var loweredCase = false
  10792. // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
  10793. // property of a typed array.
  10794. // This behaves neither like String nor Uint8Array in that we set start/end
  10795. // to their upper/lower bounds if the value passed is out of range.
  10796. // undefined is handled specially as per ECMA-262 6th Edition,
  10797. // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
  10798. if (start === undefined || start < 0) {
  10799. start = 0
  10800. }
  10801. // Return early if start > this.length. Done here to prevent potential uint32
  10802. // coercion fail below.
  10803. if (start > this.length) {
  10804. return ''
  10805. }
  10806. if (end === undefined || end > this.length) {
  10807. end = this.length
  10808. }
  10809. if (end <= 0) {
  10810. return ''
  10811. }
  10812. // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
  10813. end >>>= 0
  10814. start >>>= 0
  10815. if (end <= start) {
  10816. return ''
  10817. }
  10818. if (!encoding) encoding = 'utf8'
  10819. while (true) {
  10820. switch (encoding) {
  10821. case 'hex':
  10822. return hexSlice(this, start, end)
  10823. case 'utf8':
  10824. case 'utf-8':
  10825. return utf8Slice(this, start, end)
  10826. case 'ascii':
  10827. return asciiSlice(this, start, end)
  10828. case 'latin1':
  10829. case 'binary':
  10830. return latin1Slice(this, start, end)
  10831. case 'base64':
  10832. return base64Slice(this, start, end)
  10833. case 'ucs2':
  10834. case 'ucs-2':
  10835. case 'utf16le':
  10836. case 'utf-16le':
  10837. return utf16leSlice(this, start, end)
  10838. default:
  10839. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  10840. encoding = (encoding + '').toLowerCase()
  10841. loweredCase = true
  10842. }
  10843. }
  10844. }
  10845. // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
  10846. // Buffer instances.
  10847. Buffer.prototype._isBuffer = true
  10848. function swap (b, n, m) {
  10849. var i = b[n]
  10850. b[n] = b[m]
  10851. b[m] = i
  10852. }
  10853. Buffer.prototype.swap16 = function swap16 () {
  10854. var len = this.length
  10855. if (len % 2 !== 0) {
  10856. throw new RangeError('Buffer size must be a multiple of 16-bits')
  10857. }
  10858. for (var i = 0; i < len; i += 2) {
  10859. swap(this, i, i + 1)
  10860. }
  10861. return this
  10862. }
  10863. Buffer.prototype.swap32 = function swap32 () {
  10864. var len = this.length
  10865. if (len % 4 !== 0) {
  10866. throw new RangeError('Buffer size must be a multiple of 32-bits')
  10867. }
  10868. for (var i = 0; i < len; i += 4) {
  10869. swap(this, i, i + 3)
  10870. swap(this, i + 1, i + 2)
  10871. }
  10872. return this
  10873. }
  10874. Buffer.prototype.swap64 = function swap64 () {
  10875. var len = this.length
  10876. if (len % 8 !== 0) {
  10877. throw new RangeError('Buffer size must be a multiple of 64-bits')
  10878. }
  10879. for (var i = 0; i < len; i += 8) {
  10880. swap(this, i, i + 7)
  10881. swap(this, i + 1, i + 6)
  10882. swap(this, i + 2, i + 5)
  10883. swap(this, i + 3, i + 4)
  10884. }
  10885. return this
  10886. }
  10887. Buffer.prototype.toString = function toString () {
  10888. var length = this.length | 0
  10889. if (length === 0) return ''
  10890. if (arguments.length === 0) return utf8Slice(this, 0, length)
  10891. return slowToString.apply(this, arguments)
  10892. }
  10893. Buffer.prototype.equals = function equals (b) {
  10894. if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  10895. if (this === b) return true
  10896. return Buffer.compare(this, b) === 0
  10897. }
  10898. Buffer.prototype.inspect = function inspect () {
  10899. var str = ''
  10900. var max = exports.INSPECT_MAX_BYTES
  10901. if (this.length > 0) {
  10902. str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
  10903. if (this.length > max) str += ' ... '
  10904. }
  10905. return '<Buffer ' + str + '>'
  10906. }
  10907. Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  10908. if (!Buffer.isBuffer(target)) {
  10909. throw new TypeError('Argument must be a Buffer')
  10910. }
  10911. if (start === undefined) {
  10912. start = 0
  10913. }
  10914. if (end === undefined) {
  10915. end = target ? target.length : 0
  10916. }
  10917. if (thisStart === undefined) {
  10918. thisStart = 0
  10919. }
  10920. if (thisEnd === undefined) {
  10921. thisEnd = this.length
  10922. }
  10923. if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
  10924. throw new RangeError('out of range index')
  10925. }
  10926. if (thisStart >= thisEnd && start >= end) {
  10927. return 0
  10928. }
  10929. if (thisStart >= thisEnd) {
  10930. return -1
  10931. }
  10932. if (start >= end) {
  10933. return 1
  10934. }
  10935. start >>>= 0
  10936. end >>>= 0
  10937. thisStart >>>= 0
  10938. thisEnd >>>= 0
  10939. if (this === target) return 0
  10940. var x = thisEnd - thisStart
  10941. var y = end - start
  10942. var len = Math.min(x, y)
  10943. var thisCopy = this.slice(thisStart, thisEnd)
  10944. var targetCopy = target.slice(start, end)
  10945. for (var i = 0; i < len; ++i) {
  10946. if (thisCopy[i] !== targetCopy[i]) {
  10947. x = thisCopy[i]
  10948. y = targetCopy[i]
  10949. break
  10950. }
  10951. }
  10952. if (x < y) return -1
  10953. if (y < x) return 1
  10954. return 0
  10955. }
  10956. // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
  10957. // OR the last index of `val` in `buffer` at offset <= `byteOffset`.
  10958. //
  10959. // Arguments:
  10960. // - buffer - a Buffer to search
  10961. // - val - a string, Buffer, or number
  10962. // - byteOffset - an index into `buffer`; will be clamped to an int32
  10963. // - encoding - an optional encoding, relevant is val is a string
  10964. // - dir - true for indexOf, false for lastIndexOf
  10965. function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
  10966. // Empty buffer means no match
  10967. if (buffer.length === 0) return -1
  10968. // Normalize byteOffset
  10969. if (typeof byteOffset === 'string') {
  10970. encoding = byteOffset
  10971. byteOffset = 0
  10972. } else if (byteOffset > 0x7fffffff) {
  10973. byteOffset = 0x7fffffff
  10974. } else if (byteOffset < -0x80000000) {
  10975. byteOffset = -0x80000000
  10976. }
  10977. byteOffset = +byteOffset // Coerce to Number.
  10978. if (isNaN(byteOffset)) {
  10979. // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
  10980. byteOffset = dir ? 0 : (buffer.length - 1)
  10981. }
  10982. // Normalize byteOffset: negative offsets start from the end of the buffer
  10983. if (byteOffset < 0) byteOffset = buffer.length + byteOffset
  10984. if (byteOffset >= buffer.length) {
  10985. if (dir) return -1
  10986. else byteOffset = buffer.length - 1
  10987. } else if (byteOffset < 0) {
  10988. if (dir) byteOffset = 0
  10989. else return -1
  10990. }
  10991. // Normalize val
  10992. if (typeof val === 'string') {
  10993. val = Buffer.from(val, encoding)
  10994. }
  10995. // Finally, search either indexOf (if dir is true) or lastIndexOf
  10996. if (Buffer.isBuffer(val)) {
  10997. // Special case: looking for empty string/buffer always fails
  10998. if (val.length === 0) {
  10999. return -1
  11000. }
  11001. return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
  11002. } else if (typeof val === 'number') {
  11003. val = val & 0xFF // Search for a byte value [0-255]
  11004. if (Buffer.TYPED_ARRAY_SUPPORT &&
  11005. typeof Uint8Array.prototype.indexOf === 'function') {
  11006. if (dir) {
  11007. return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
  11008. } else {
  11009. return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
  11010. }
  11011. }
  11012. return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
  11013. }
  11014. throw new TypeError('val must be string, number or Buffer')
  11015. }
  11016. function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
  11017. var indexSize = 1
  11018. var arrLength = arr.length
  11019. var valLength = val.length
  11020. if (encoding !== undefined) {
  11021. encoding = String(encoding).toLowerCase()
  11022. if (encoding === 'ucs2' || encoding === 'ucs-2' ||
  11023. encoding === 'utf16le' || encoding === 'utf-16le') {
  11024. if (arr.length < 2 || val.length < 2) {
  11025. return -1
  11026. }
  11027. indexSize = 2
  11028. arrLength /= 2
  11029. valLength /= 2
  11030. byteOffset /= 2
  11031. }
  11032. }
  11033. function read (buf, i) {
  11034. if (indexSize === 1) {
  11035. return buf[i]
  11036. } else {
  11037. return buf.readUInt16BE(i * indexSize)
  11038. }
  11039. }
  11040. var i
  11041. if (dir) {
  11042. var foundIndex = -1
  11043. for (i = byteOffset; i < arrLength; i++) {
  11044. if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
  11045. if (foundIndex === -1) foundIndex = i
  11046. if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
  11047. } else {
  11048. if (foundIndex !== -1) i -= i - foundIndex
  11049. foundIndex = -1
  11050. }
  11051. }
  11052. } else {
  11053. if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
  11054. for (i = byteOffset; i >= 0; i--) {
  11055. var found = true
  11056. for (var j = 0; j < valLength; j++) {
  11057. if (read(arr, i + j) !== read(val, j)) {
  11058. found = false
  11059. break
  11060. }
  11061. }
  11062. if (found) return i
  11063. }
  11064. }
  11065. return -1
  11066. }
  11067. Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
  11068. return this.indexOf(val, byteOffset, encoding) !== -1
  11069. }
  11070. Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
  11071. return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
  11072. }
  11073. Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
  11074. return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
  11075. }
  11076. function hexWrite (buf, string, offset, length) {
  11077. offset = Number(offset) || 0
  11078. var remaining = buf.length - offset
  11079. if (!length) {
  11080. length = remaining
  11081. } else {
  11082. length = Number(length)
  11083. if (length > remaining) {
  11084. length = remaining
  11085. }
  11086. }
  11087. // must be an even number of digits
  11088. var strLen = string.length
  11089. if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
  11090. if (length > strLen / 2) {
  11091. length = strLen / 2
  11092. }
  11093. for (var i = 0; i < length; ++i) {
  11094. var parsed = parseInt(string.substr(i * 2, 2), 16)
  11095. if (isNaN(parsed)) return i
  11096. buf[offset + i] = parsed
  11097. }
  11098. return i
  11099. }
  11100. function utf8Write (buf, string, offset, length) {
  11101. return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
  11102. }
  11103. function asciiWrite (buf, string, offset, length) {
  11104. return blitBuffer(asciiToBytes(string), buf, offset, length)
  11105. }
  11106. function latin1Write (buf, string, offset, length) {
  11107. return asciiWrite(buf, string, offset, length)
  11108. }
  11109. function base64Write (buf, string, offset, length) {
  11110. return blitBuffer(base64ToBytes(string), buf, offset, length)
  11111. }
  11112. function ucs2Write (buf, string, offset, length) {
  11113. return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
  11114. }
  11115. Buffer.prototype.write = function write (string, offset, length, encoding) {
  11116. // Buffer#write(string)
  11117. if (offset === undefined) {
  11118. encoding = 'utf8'
  11119. length = this.length
  11120. offset = 0
  11121. // Buffer#write(string, encoding)
  11122. } else if (length === undefined && typeof offset === 'string') {
  11123. encoding = offset
  11124. length = this.length
  11125. offset = 0
  11126. // Buffer#write(string, offset[, length][, encoding])
  11127. } else if (isFinite(offset)) {
  11128. offset = offset | 0
  11129. if (isFinite(length)) {
  11130. length = length | 0
  11131. if (encoding === undefined) encoding = 'utf8'
  11132. } else {
  11133. encoding = length
  11134. length = undefined
  11135. }
  11136. // legacy write(string, encoding, offset, length) - remove in v0.13
  11137. } else {
  11138. throw new Error(
  11139. 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
  11140. )
  11141. }
  11142. var remaining = this.length - offset
  11143. if (length === undefined || length > remaining) length = remaining
  11144. if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
  11145. throw new RangeError('Attempt to write outside buffer bounds')
  11146. }
  11147. if (!encoding) encoding = 'utf8'
  11148. var loweredCase = false
  11149. for (;;) {
  11150. switch (encoding) {
  11151. case 'hex':
  11152. return hexWrite(this, string, offset, length)
  11153. case 'utf8':
  11154. case 'utf-8':
  11155. return utf8Write(this, string, offset, length)
  11156. case 'ascii':
  11157. return asciiWrite(this, string, offset, length)
  11158. case 'latin1':
  11159. case 'binary':
  11160. return latin1Write(this, string, offset, length)
  11161. case 'base64':
  11162. // Warning: maxLength not taken into account in base64Write
  11163. return base64Write(this, string, offset, length)
  11164. case 'ucs2':
  11165. case 'ucs-2':
  11166. case 'utf16le':
  11167. case 'utf-16le':
  11168. return ucs2Write(this, string, offset, length)
  11169. default:
  11170. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  11171. encoding = ('' + encoding).toLowerCase()
  11172. loweredCase = true
  11173. }
  11174. }
  11175. }
  11176. Buffer.prototype.toJSON = function toJSON () {
  11177. return {
  11178. type: 'Buffer',
  11179. data: Array.prototype.slice.call(this._arr || this, 0)
  11180. }
  11181. }
  11182. function base64Slice (buf, start, end) {
  11183. if (start === 0 && end === buf.length) {
  11184. return base64.fromByteArray(buf)
  11185. } else {
  11186. return base64.fromByteArray(buf.slice(start, end))
  11187. }
  11188. }
  11189. function utf8Slice (buf, start, end) {
  11190. end = Math.min(buf.length, end)
  11191. var res = []
  11192. var i = start
  11193. while (i < end) {
  11194. var firstByte = buf[i]
  11195. var codePoint = null
  11196. var bytesPerSequence = (firstByte > 0xEF) ? 4
  11197. : (firstByte > 0xDF) ? 3
  11198. : (firstByte > 0xBF) ? 2
  11199. : 1
  11200. if (i + bytesPerSequence <= end) {
  11201. var secondByte, thirdByte, fourthByte, tempCodePoint
  11202. switch (bytesPerSequence) {
  11203. case 1:
  11204. if (firstByte < 0x80) {
  11205. codePoint = firstByte
  11206. }
  11207. break
  11208. case 2:
  11209. secondByte = buf[i + 1]
  11210. if ((secondByte & 0xC0) === 0x80) {
  11211. tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
  11212. if (tempCodePoint > 0x7F) {
  11213. codePoint = tempCodePoint
  11214. }
  11215. }
  11216. break
  11217. case 3:
  11218. secondByte = buf[i + 1]
  11219. thirdByte = buf[i + 2]
  11220. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
  11221. tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
  11222. if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
  11223. codePoint = tempCodePoint
  11224. }
  11225. }
  11226. break
  11227. case 4:
  11228. secondByte = buf[i + 1]
  11229. thirdByte = buf[i + 2]
  11230. fourthByte = buf[i + 3]
  11231. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
  11232. tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
  11233. if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
  11234. codePoint = tempCodePoint
  11235. }
  11236. }
  11237. }
  11238. }
  11239. if (codePoint === null) {
  11240. // we did not generate a valid codePoint so insert a
  11241. // replacement char (U+FFFD) and advance only 1 byte
  11242. codePoint = 0xFFFD
  11243. bytesPerSequence = 1
  11244. } else if (codePoint > 0xFFFF) {
  11245. // encode to utf16 (surrogate pair dance)
  11246. codePoint -= 0x10000
  11247. res.push(codePoint >>> 10 & 0x3FF | 0xD800)
  11248. codePoint = 0xDC00 | codePoint & 0x3FF
  11249. }
  11250. res.push(codePoint)
  11251. i += bytesPerSequence
  11252. }
  11253. return decodeCodePointsArray(res)
  11254. }
  11255. // Based on http://stackoverflow.com/a/22747272/680742, the browser with
  11256. // the lowest limit is Chrome, with 0x10000 args.
  11257. // We go 1 magnitude less, for safety
  11258. var MAX_ARGUMENTS_LENGTH = 0x1000
  11259. function decodeCodePointsArray (codePoints) {
  11260. var len = codePoints.length
  11261. if (len <= MAX_ARGUMENTS_LENGTH) {
  11262. return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
  11263. }
  11264. // Decode in chunks to avoid "call stack size exceeded".
  11265. var res = ''
  11266. var i = 0
  11267. while (i < len) {
  11268. res += String.fromCharCode.apply(
  11269. String,
  11270. codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
  11271. )
  11272. }
  11273. return res
  11274. }
  11275. function asciiSlice (buf, start, end) {
  11276. var ret = ''
  11277. end = Math.min(buf.length, end)
  11278. for (var i = start; i < end; ++i) {
  11279. ret += String.fromCharCode(buf[i] & 0x7F)
  11280. }
  11281. return ret
  11282. }
  11283. function latin1Slice (buf, start, end) {
  11284. var ret = ''
  11285. end = Math.min(buf.length, end)
  11286. for (var i = start; i < end; ++i) {
  11287. ret += String.fromCharCode(buf[i])
  11288. }
  11289. return ret
  11290. }
  11291. function hexSlice (buf, start, end) {
  11292. var len = buf.length
  11293. if (!start || start < 0) start = 0
  11294. if (!end || end < 0 || end > len) end = len
  11295. var out = ''
  11296. for (var i = start; i < end; ++i) {
  11297. out += toHex(buf[i])
  11298. }
  11299. return out
  11300. }
  11301. function utf16leSlice (buf, start, end) {
  11302. var bytes = buf.slice(start, end)
  11303. var res = ''
  11304. for (var i = 0; i < bytes.length; i += 2) {
  11305. res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  11306. }
  11307. return res
  11308. }
  11309. Buffer.prototype.slice = function slice (start, end) {
  11310. var len = this.length
  11311. start = ~~start
  11312. end = end === undefined ? len : ~~end
  11313. if (start < 0) {
  11314. start += len
  11315. if (start < 0) start = 0
  11316. } else if (start > len) {
  11317. start = len
  11318. }
  11319. if (end < 0) {
  11320. end += len
  11321. if (end < 0) end = 0
  11322. } else if (end > len) {
  11323. end = len
  11324. }
  11325. if (end < start) end = start
  11326. var newBuf
  11327. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11328. newBuf = this.subarray(start, end)
  11329. newBuf.__proto__ = Buffer.prototype
  11330. } else {
  11331. var sliceLen = end - start
  11332. newBuf = new Buffer(sliceLen, undefined)
  11333. for (var i = 0; i < sliceLen; ++i) {
  11334. newBuf[i] = this[i + start]
  11335. }
  11336. }
  11337. return newBuf
  11338. }
  11339. /*
  11340. * Need to make sure that buffer isn't trying to write out of bounds.
  11341. */
  11342. function checkOffset (offset, ext, length) {
  11343. if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  11344. if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
  11345. }
  11346. Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  11347. offset = offset | 0
  11348. byteLength = byteLength | 0
  11349. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11350. var val = this[offset]
  11351. var mul = 1
  11352. var i = 0
  11353. while (++i < byteLength && (mul *= 0x100)) {
  11354. val += this[offset + i] * mul
  11355. }
  11356. return val
  11357. }
  11358. Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  11359. offset = offset | 0
  11360. byteLength = byteLength | 0
  11361. if (!noAssert) {
  11362. checkOffset(offset, byteLength, this.length)
  11363. }
  11364. var val = this[offset + --byteLength]
  11365. var mul = 1
  11366. while (byteLength > 0 && (mul *= 0x100)) {
  11367. val += this[offset + --byteLength] * mul
  11368. }
  11369. return val
  11370. }
  11371. Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  11372. if (!noAssert) checkOffset(offset, 1, this.length)
  11373. return this[offset]
  11374. }
  11375. Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  11376. if (!noAssert) checkOffset(offset, 2, this.length)
  11377. return this[offset] | (this[offset + 1] << 8)
  11378. }
  11379. Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  11380. if (!noAssert) checkOffset(offset, 2, this.length)
  11381. return (this[offset] << 8) | this[offset + 1]
  11382. }
  11383. Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  11384. if (!noAssert) checkOffset(offset, 4, this.length)
  11385. return ((this[offset]) |
  11386. (this[offset + 1] << 8) |
  11387. (this[offset + 2] << 16)) +
  11388. (this[offset + 3] * 0x1000000)
  11389. }
  11390. Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  11391. if (!noAssert) checkOffset(offset, 4, this.length)
  11392. return (this[offset] * 0x1000000) +
  11393. ((this[offset + 1] << 16) |
  11394. (this[offset + 2] << 8) |
  11395. this[offset + 3])
  11396. }
  11397. Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  11398. offset = offset | 0
  11399. byteLength = byteLength | 0
  11400. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11401. var val = this[offset]
  11402. var mul = 1
  11403. var i = 0
  11404. while (++i < byteLength && (mul *= 0x100)) {
  11405. val += this[offset + i] * mul
  11406. }
  11407. mul *= 0x80
  11408. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11409. return val
  11410. }
  11411. Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  11412. offset = offset | 0
  11413. byteLength = byteLength | 0
  11414. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11415. var i = byteLength
  11416. var mul = 1
  11417. var val = this[offset + --i]
  11418. while (i > 0 && (mul *= 0x100)) {
  11419. val += this[offset + --i] * mul
  11420. }
  11421. mul *= 0x80
  11422. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11423. return val
  11424. }
  11425. Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  11426. if (!noAssert) checkOffset(offset, 1, this.length)
  11427. if (!(this[offset] & 0x80)) return (this[offset])
  11428. return ((0xff - this[offset] + 1) * -1)
  11429. }
  11430. Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  11431. if (!noAssert) checkOffset(offset, 2, this.length)
  11432. var val = this[offset] | (this[offset + 1] << 8)
  11433. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11434. }
  11435. Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  11436. if (!noAssert) checkOffset(offset, 2, this.length)
  11437. var val = this[offset + 1] | (this[offset] << 8)
  11438. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11439. }
  11440. Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  11441. if (!noAssert) checkOffset(offset, 4, this.length)
  11442. return (this[offset]) |
  11443. (this[offset + 1] << 8) |
  11444. (this[offset + 2] << 16) |
  11445. (this[offset + 3] << 24)
  11446. }
  11447. Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  11448. if (!noAssert) checkOffset(offset, 4, this.length)
  11449. return (this[offset] << 24) |
  11450. (this[offset + 1] << 16) |
  11451. (this[offset + 2] << 8) |
  11452. (this[offset + 3])
  11453. }
  11454. Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  11455. if (!noAssert) checkOffset(offset, 4, this.length)
  11456. return ieee754.read(this, offset, true, 23, 4)
  11457. }
  11458. Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  11459. if (!noAssert) checkOffset(offset, 4, this.length)
  11460. return ieee754.read(this, offset, false, 23, 4)
  11461. }
  11462. Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  11463. if (!noAssert) checkOffset(offset, 8, this.length)
  11464. return ieee754.read(this, offset, true, 52, 8)
  11465. }
  11466. Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  11467. if (!noAssert) checkOffset(offset, 8, this.length)
  11468. return ieee754.read(this, offset, false, 52, 8)
  11469. }
  11470. function checkInt (buf, value, offset, ext, max, min) {
  11471. if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
  11472. if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
  11473. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11474. }
  11475. Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  11476. value = +value
  11477. offset = offset | 0
  11478. byteLength = byteLength | 0
  11479. if (!noAssert) {
  11480. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11481. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11482. }
  11483. var mul = 1
  11484. var i = 0
  11485. this[offset] = value & 0xFF
  11486. while (++i < byteLength && (mul *= 0x100)) {
  11487. this[offset + i] = (value / mul) & 0xFF
  11488. }
  11489. return offset + byteLength
  11490. }
  11491. Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  11492. value = +value
  11493. offset = offset | 0
  11494. byteLength = byteLength | 0
  11495. if (!noAssert) {
  11496. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11497. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11498. }
  11499. var i = byteLength - 1
  11500. var mul = 1
  11501. this[offset + i] = value & 0xFF
  11502. while (--i >= 0 && (mul *= 0x100)) {
  11503. this[offset + i] = (value / mul) & 0xFF
  11504. }
  11505. return offset + byteLength
  11506. }
  11507. Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  11508. value = +value
  11509. offset = offset | 0
  11510. if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  11511. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  11512. this[offset] = (value & 0xff)
  11513. return offset + 1
  11514. }
  11515. function objectWriteUInt16 (buf, value, offset, littleEndian) {
  11516. if (value < 0) value = 0xffff + value + 1
  11517. for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
  11518. buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
  11519. (littleEndian ? i : 1 - i) * 8
  11520. }
  11521. }
  11522. Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  11523. value = +value
  11524. offset = offset | 0
  11525. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  11526. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11527. this[offset] = (value & 0xff)
  11528. this[offset + 1] = (value >>> 8)
  11529. } else {
  11530. objectWriteUInt16(this, value, offset, true)
  11531. }
  11532. return offset + 2
  11533. }
  11534. Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  11535. value = +value
  11536. offset = offset | 0
  11537. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  11538. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11539. this[offset] = (value >>> 8)
  11540. this[offset + 1] = (value & 0xff)
  11541. } else {
  11542. objectWriteUInt16(this, value, offset, false)
  11543. }
  11544. return offset + 2
  11545. }
  11546. function objectWriteUInt32 (buf, value, offset, littleEndian) {
  11547. if (value < 0) value = 0xffffffff + value + 1
  11548. for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
  11549. buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  11550. }
  11551. }
  11552. Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  11553. value = +value
  11554. offset = offset | 0
  11555. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  11556. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11557. this[offset + 3] = (value >>> 24)
  11558. this[offset + 2] = (value >>> 16)
  11559. this[offset + 1] = (value >>> 8)
  11560. this[offset] = (value & 0xff)
  11561. } else {
  11562. objectWriteUInt32(this, value, offset, true)
  11563. }
  11564. return offset + 4
  11565. }
  11566. Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  11567. value = +value
  11568. offset = offset | 0
  11569. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  11570. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11571. this[offset] = (value >>> 24)
  11572. this[offset + 1] = (value >>> 16)
  11573. this[offset + 2] = (value >>> 8)
  11574. this[offset + 3] = (value & 0xff)
  11575. } else {
  11576. objectWriteUInt32(this, value, offset, false)
  11577. }
  11578. return offset + 4
  11579. }
  11580. Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  11581. value = +value
  11582. offset = offset | 0
  11583. if (!noAssert) {
  11584. var limit = Math.pow(2, 8 * byteLength - 1)
  11585. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  11586. }
  11587. var i = 0
  11588. var mul = 1
  11589. var sub = 0
  11590. this[offset] = value & 0xFF
  11591. while (++i < byteLength && (mul *= 0x100)) {
  11592. if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
  11593. sub = 1
  11594. }
  11595. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  11596. }
  11597. return offset + byteLength
  11598. }
  11599. Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  11600. value = +value
  11601. offset = offset | 0
  11602. if (!noAssert) {
  11603. var limit = Math.pow(2, 8 * byteLength - 1)
  11604. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  11605. }
  11606. var i = byteLength - 1
  11607. var mul = 1
  11608. var sub = 0
  11609. this[offset + i] = value & 0xFF
  11610. while (--i >= 0 && (mul *= 0x100)) {
  11611. if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
  11612. sub = 1
  11613. }
  11614. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  11615. }
  11616. return offset + byteLength
  11617. }
  11618. Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  11619. value = +value
  11620. offset = offset | 0
  11621. if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  11622. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  11623. if (value < 0) value = 0xff + value + 1
  11624. this[offset] = (value & 0xff)
  11625. return offset + 1
  11626. }
  11627. Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  11628. value = +value
  11629. offset = offset | 0
  11630. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  11631. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11632. this[offset] = (value & 0xff)
  11633. this[offset + 1] = (value >>> 8)
  11634. } else {
  11635. objectWriteUInt16(this, value, offset, true)
  11636. }
  11637. return offset + 2
  11638. }
  11639. Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  11640. value = +value
  11641. offset = offset | 0
  11642. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  11643. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11644. this[offset] = (value >>> 8)
  11645. this[offset + 1] = (value & 0xff)
  11646. } else {
  11647. objectWriteUInt16(this, value, offset, false)
  11648. }
  11649. return offset + 2
  11650. }
  11651. Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  11652. value = +value
  11653. offset = offset | 0
  11654. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  11655. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11656. this[offset] = (value & 0xff)
  11657. this[offset + 1] = (value >>> 8)
  11658. this[offset + 2] = (value >>> 16)
  11659. this[offset + 3] = (value >>> 24)
  11660. } else {
  11661. objectWriteUInt32(this, value, offset, true)
  11662. }
  11663. return offset + 4
  11664. }
  11665. Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  11666. value = +value
  11667. offset = offset | 0
  11668. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  11669. if (value < 0) value = 0xffffffff + value + 1
  11670. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11671. this[offset] = (value >>> 24)
  11672. this[offset + 1] = (value >>> 16)
  11673. this[offset + 2] = (value >>> 8)
  11674. this[offset + 3] = (value & 0xff)
  11675. } else {
  11676. objectWriteUInt32(this, value, offset, false)
  11677. }
  11678. return offset + 4
  11679. }
  11680. function checkIEEE754 (buf, value, offset, ext, max, min) {
  11681. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11682. if (offset < 0) throw new RangeError('Index out of range')
  11683. }
  11684. function writeFloat (buf, value, offset, littleEndian, noAssert) {
  11685. if (!noAssert) {
  11686. checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  11687. }
  11688. ieee754.write(buf, value, offset, littleEndian, 23, 4)
  11689. return offset + 4
  11690. }
  11691. Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  11692. return writeFloat(this, value, offset, true, noAssert)
  11693. }
  11694. Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  11695. return writeFloat(this, value, offset, false, noAssert)
  11696. }
  11697. function writeDouble (buf, value, offset, littleEndian, noAssert) {
  11698. if (!noAssert) {
  11699. checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  11700. }
  11701. ieee754.write(buf, value, offset, littleEndian, 52, 8)
  11702. return offset + 8
  11703. }
  11704. Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  11705. return writeDouble(this, value, offset, true, noAssert)
  11706. }
  11707. Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  11708. return writeDouble(this, value, offset, false, noAssert)
  11709. }
  11710. // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
  11711. Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  11712. if (!start) start = 0
  11713. if (!end && end !== 0) end = this.length
  11714. if (targetStart >= target.length) targetStart = target.length
  11715. if (!targetStart) targetStart = 0
  11716. if (end > 0 && end < start) end = start
  11717. // Copy 0 bytes; we're done
  11718. if (end === start) return 0
  11719. if (target.length === 0 || this.length === 0) return 0
  11720. // Fatal error conditions
  11721. if (targetStart < 0) {
  11722. throw new RangeError('targetStart out of bounds')
  11723. }
  11724. if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  11725. if (end < 0) throw new RangeError('sourceEnd out of bounds')
  11726. // Are we oob?
  11727. if (end > this.length) end = this.length
  11728. if (target.length - targetStart < end - start) {
  11729. end = target.length - targetStart + start
  11730. }
  11731. var len = end - start
  11732. var i
  11733. if (this === target && start < targetStart && targetStart < end) {
  11734. // descending copy from end
  11735. for (i = len - 1; i >= 0; --i) {
  11736. target[i + targetStart] = this[i + start]
  11737. }
  11738. } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
  11739. // ascending copy from start
  11740. for (i = 0; i < len; ++i) {
  11741. target[i + targetStart] = this[i + start]
  11742. }
  11743. } else {
  11744. Uint8Array.prototype.set.call(
  11745. target,
  11746. this.subarray(start, start + len),
  11747. targetStart
  11748. )
  11749. }
  11750. return len
  11751. }
  11752. // Usage:
  11753. // buffer.fill(number[, offset[, end]])
  11754. // buffer.fill(buffer[, offset[, end]])
  11755. // buffer.fill(string[, offset[, end]][, encoding])
  11756. Buffer.prototype.fill = function fill (val, start, end, encoding) {
  11757. // Handle string cases:
  11758. if (typeof val === 'string') {
  11759. if (typeof start === 'string') {
  11760. encoding = start
  11761. start = 0
  11762. end = this.length
  11763. } else if (typeof end === 'string') {
  11764. encoding = end
  11765. end = this.length
  11766. }
  11767. if (val.length === 1) {
  11768. var code = val.charCodeAt(0)
  11769. if (code < 256) {
  11770. val = code
  11771. }
  11772. }
  11773. if (encoding !== undefined && typeof encoding !== 'string') {
  11774. throw new TypeError('encoding must be a string')
  11775. }
  11776. if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
  11777. throw new TypeError('Unknown encoding: ' + encoding)
  11778. }
  11779. } else if (typeof val === 'number') {
  11780. val = val & 255
  11781. }
  11782. // Invalid ranges are not set to a default, so can range check early.
  11783. if (start < 0 || this.length < start || this.length < end) {
  11784. throw new RangeError('Out of range index')
  11785. }
  11786. if (end <= start) {
  11787. return this
  11788. }
  11789. start = start >>> 0
  11790. end = end === undefined ? this.length : end >>> 0
  11791. if (!val) val = 0
  11792. var i
  11793. if (typeof val === 'number') {
  11794. for (i = start; i < end; ++i) {
  11795. this[i] = val
  11796. }
  11797. } else {
  11798. var bytes = Buffer.isBuffer(val)
  11799. ? val
  11800. : utf8ToBytes(new Buffer(val, encoding).toString())
  11801. var len = bytes.length
  11802. for (i = 0; i < end - start; ++i) {
  11803. this[i + start] = bytes[i % len]
  11804. }
  11805. }
  11806. return this
  11807. }
  11808. // HELPER FUNCTIONS
  11809. // ================
  11810. var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
  11811. function base64clean (str) {
  11812. // Node strips out invalid characters like \n and \t from the string, base64-js does not
  11813. str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  11814. // Node converts strings with length < 2 to ''
  11815. if (str.length < 2) return ''
  11816. // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  11817. while (str.length % 4 !== 0) {
  11818. str = str + '='
  11819. }
  11820. return str
  11821. }
  11822. function stringtrim (str) {
  11823. if (str.trim) return str.trim()
  11824. return str.replace(/^\s+|\s+$/g, '')
  11825. }
  11826. function toHex (n) {
  11827. if (n < 16) return '0' + n.toString(16)
  11828. return n.toString(16)
  11829. }
  11830. function utf8ToBytes (string, units) {
  11831. units = units || Infinity
  11832. var codePoint
  11833. var length = string.length
  11834. var leadSurrogate = null
  11835. var bytes = []
  11836. for (var i = 0; i < length; ++i) {
  11837. codePoint = string.charCodeAt(i)
  11838. // is surrogate component
  11839. if (codePoint > 0xD7FF && codePoint < 0xE000) {
  11840. // last char was a lead
  11841. if (!leadSurrogate) {
  11842. // no lead yet
  11843. if (codePoint > 0xDBFF) {
  11844. // unexpected trail
  11845. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11846. continue
  11847. } else if (i + 1 === length) {
  11848. // unpaired lead
  11849. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11850. continue
  11851. }
  11852. // valid lead
  11853. leadSurrogate = codePoint
  11854. continue
  11855. }
  11856. // 2 leads in a row
  11857. if (codePoint < 0xDC00) {
  11858. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11859. leadSurrogate = codePoint
  11860. continue
  11861. }
  11862. // valid surrogate pair
  11863. codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
  11864. } else if (leadSurrogate) {
  11865. // valid bmp char, but last char was a lead
  11866. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11867. }
  11868. leadSurrogate = null
  11869. // encode utf8
  11870. if (codePoint < 0x80) {
  11871. if ((units -= 1) < 0) break
  11872. bytes.push(codePoint)
  11873. } else if (codePoint < 0x800) {
  11874. if ((units -= 2) < 0) break
  11875. bytes.push(
  11876. codePoint >> 0x6 | 0xC0,
  11877. codePoint & 0x3F | 0x80
  11878. )
  11879. } else if (codePoint < 0x10000) {
  11880. if ((units -= 3) < 0) break
  11881. bytes.push(
  11882. codePoint >> 0xC | 0xE0,
  11883. codePoint >> 0x6 & 0x3F | 0x80,
  11884. codePoint & 0x3F | 0x80
  11885. )
  11886. } else if (codePoint < 0x110000) {
  11887. if ((units -= 4) < 0) break
  11888. bytes.push(
  11889. codePoint >> 0x12 | 0xF0,
  11890. codePoint >> 0xC & 0x3F | 0x80,
  11891. codePoint >> 0x6 & 0x3F | 0x80,
  11892. codePoint & 0x3F | 0x80
  11893. )
  11894. } else {
  11895. throw new Error('Invalid code point')
  11896. }
  11897. }
  11898. return bytes
  11899. }
  11900. function asciiToBytes (str) {
  11901. var byteArray = []
  11902. for (var i = 0; i < str.length; ++i) {
  11903. // Node's code seems to be doing this and not & 0x7F..
  11904. byteArray.push(str.charCodeAt(i) & 0xFF)
  11905. }
  11906. return byteArray
  11907. }
  11908. function utf16leToBytes (str, units) {
  11909. var c, hi, lo
  11910. var byteArray = []
  11911. for (var i = 0; i < str.length; ++i) {
  11912. if ((units -= 2) < 0) break
  11913. c = str.charCodeAt(i)
  11914. hi = c >> 8
  11915. lo = c % 256
  11916. byteArray.push(lo)
  11917. byteArray.push(hi)
  11918. }
  11919. return byteArray
  11920. }
  11921. function base64ToBytes (str) {
  11922. return base64.toByteArray(base64clean(str))
  11923. }
  11924. function blitBuffer (src, dst, offset, length) {
  11925. for (var i = 0; i < length; ++i) {
  11926. if ((i + offset >= dst.length) || (i >= src.length)) break
  11927. dst[i + offset] = src[i]
  11928. }
  11929. return i
  11930. }
  11931. function isnan (val) {
  11932. return val !== val // eslint-disable-line no-self-compare
  11933. }
  11934. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 3)))
  11935. /***/ }),
  11936. /* 56 */
  11937. /*!*****************************************!*\
  11938. !*** ./node_modules/base64-js/index.js ***!
  11939. \*****************************************/
  11940. /*! no static exports found */
  11941. /***/ (function(module, exports, __webpack_require__) {
  11942. "use strict";
  11943. exports.byteLength = byteLength
  11944. exports.toByteArray = toByteArray
  11945. exports.fromByteArray = fromByteArray
  11946. var lookup = []
  11947. var revLookup = []
  11948. var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
  11949. var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  11950. for (var i = 0, len = code.length; i < len; ++i) {
  11951. lookup[i] = code[i]
  11952. revLookup[code.charCodeAt(i)] = i
  11953. }
  11954. // Support decoding URL-safe base64 strings, as Node.js does.
  11955. // See: https://en.wikipedia.org/wiki/Base64#URL_applications
  11956. revLookup['-'.charCodeAt(0)] = 62
  11957. revLookup['_'.charCodeAt(0)] = 63
  11958. function getLens (b64) {
  11959. var len = b64.length
  11960. if (len % 4 > 0) {
  11961. throw new Error('Invalid string. Length must be a multiple of 4')
  11962. }
  11963. // Trim off extra bytes after placeholder bytes are found
  11964. // See: https://github.com/beatgammit/base64-js/issues/42
  11965. var validLen = b64.indexOf('=')
  11966. if (validLen === -1) validLen = len
  11967. var placeHoldersLen = validLen === len
  11968. ? 0
  11969. : 4 - (validLen % 4)
  11970. return [validLen, placeHoldersLen]
  11971. }
  11972. // base64 is 4/3 + up to two characters of the original data
  11973. function byteLength (b64) {
  11974. var lens = getLens(b64)
  11975. var validLen = lens[0]
  11976. var placeHoldersLen = lens[1]
  11977. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  11978. }
  11979. function _byteLength (b64, validLen, placeHoldersLen) {
  11980. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  11981. }
  11982. function toByteArray (b64) {
  11983. var tmp
  11984. var lens = getLens(b64)
  11985. var validLen = lens[0]
  11986. var placeHoldersLen = lens[1]
  11987. var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
  11988. var curByte = 0
  11989. // if there are placeholders, only get up to the last complete 4 chars
  11990. var len = placeHoldersLen > 0
  11991. ? validLen - 4
  11992. : validLen
  11993. var i
  11994. for (i = 0; i < len; i += 4) {
  11995. tmp =
  11996. (revLookup[b64.charCodeAt(i)] << 18) |
  11997. (revLookup[b64.charCodeAt(i + 1)] << 12) |
  11998. (revLookup[b64.charCodeAt(i + 2)] << 6) |
  11999. revLookup[b64.charCodeAt(i + 3)]
  12000. arr[curByte++] = (tmp >> 16) & 0xFF
  12001. arr[curByte++] = (tmp >> 8) & 0xFF
  12002. arr[curByte++] = tmp & 0xFF
  12003. }
  12004. if (placeHoldersLen === 2) {
  12005. tmp =
  12006. (revLookup[b64.charCodeAt(i)] << 2) |
  12007. (revLookup[b64.charCodeAt(i + 1)] >> 4)
  12008. arr[curByte++] = tmp & 0xFF
  12009. }
  12010. if (placeHoldersLen === 1) {
  12011. tmp =
  12012. (revLookup[b64.charCodeAt(i)] << 10) |
  12013. (revLookup[b64.charCodeAt(i + 1)] << 4) |
  12014. (revLookup[b64.charCodeAt(i + 2)] >> 2)
  12015. arr[curByte++] = (tmp >> 8) & 0xFF
  12016. arr[curByte++] = tmp & 0xFF
  12017. }
  12018. return arr
  12019. }
  12020. function tripletToBase64 (num) {
  12021. return lookup[num >> 18 & 0x3F] +
  12022. lookup[num >> 12 & 0x3F] +
  12023. lookup[num >> 6 & 0x3F] +
  12024. lookup[num & 0x3F]
  12025. }
  12026. function encodeChunk (uint8, start, end) {
  12027. var tmp
  12028. var output = []
  12029. for (var i = start; i < end; i += 3) {
  12030. tmp =
  12031. ((uint8[i] << 16) & 0xFF0000) +
  12032. ((uint8[i + 1] << 8) & 0xFF00) +
  12033. (uint8[i + 2] & 0xFF)
  12034. output.push(tripletToBase64(tmp))
  12035. }
  12036. return output.join('')
  12037. }
  12038. function fromByteArray (uint8) {
  12039. var tmp
  12040. var len = uint8.length
  12041. var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
  12042. var parts = []
  12043. var maxChunkLength = 16383 // must be multiple of 3
  12044. // go through the array every three bytes, we'll deal with trailing stuff later
  12045. for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
  12046. parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
  12047. }
  12048. // pad the end with zeros, but make sure to not forget the extra bytes
  12049. if (extraBytes === 1) {
  12050. tmp = uint8[len - 1]
  12051. parts.push(
  12052. lookup[tmp >> 2] +
  12053. lookup[(tmp << 4) & 0x3F] +
  12054. '=='
  12055. )
  12056. } else if (extraBytes === 2) {
  12057. tmp = (uint8[len - 2] << 8) + uint8[len - 1]
  12058. parts.push(
  12059. lookup[tmp >> 10] +
  12060. lookup[(tmp >> 4) & 0x3F] +
  12061. lookup[(tmp << 2) & 0x3F] +
  12062. '='
  12063. )
  12064. }
  12065. return parts.join('')
  12066. }
  12067. /***/ }),
  12068. /* 57 */
  12069. /*!***************************************!*\
  12070. !*** ./node_modules/ieee754/index.js ***!
  12071. \***************************************/
  12072. /*! no static exports found */
  12073. /***/ (function(module, exports) {
  12074. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  12075. exports.read = function (buffer, offset, isLE, mLen, nBytes) {
  12076. var e, m
  12077. var eLen = (nBytes * 8) - mLen - 1
  12078. var eMax = (1 << eLen) - 1
  12079. var eBias = eMax >> 1
  12080. var nBits = -7
  12081. var i = isLE ? (nBytes - 1) : 0
  12082. var d = isLE ? -1 : 1
  12083. var s = buffer[offset + i]
  12084. i += d
  12085. e = s & ((1 << (-nBits)) - 1)
  12086. s >>= (-nBits)
  12087. nBits += eLen
  12088. for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  12089. m = e & ((1 << (-nBits)) - 1)
  12090. e >>= (-nBits)
  12091. nBits += mLen
  12092. for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  12093. if (e === 0) {
  12094. e = 1 - eBias
  12095. } else if (e === eMax) {
  12096. return m ? NaN : ((s ? -1 : 1) * Infinity)
  12097. } else {
  12098. m = m + Math.pow(2, mLen)
  12099. e = e - eBias
  12100. }
  12101. return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
  12102. }
  12103. exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
  12104. var e, m, c
  12105. var eLen = (nBytes * 8) - mLen - 1
  12106. var eMax = (1 << eLen) - 1
  12107. var eBias = eMax >> 1
  12108. var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
  12109. var i = isLE ? 0 : (nBytes - 1)
  12110. var d = isLE ? 1 : -1
  12111. var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
  12112. value = Math.abs(value)
  12113. if (isNaN(value) || value === Infinity) {
  12114. m = isNaN(value) ? 1 : 0
  12115. e = eMax
  12116. } else {
  12117. e = Math.floor(Math.log(value) / Math.LN2)
  12118. if (value * (c = Math.pow(2, -e)) < 1) {
  12119. e--
  12120. c *= 2
  12121. }
  12122. if (e + eBias >= 1) {
  12123. value += rt / c
  12124. } else {
  12125. value += rt * Math.pow(2, 1 - eBias)
  12126. }
  12127. if (value * c >= 2) {
  12128. e++
  12129. c /= 2
  12130. }
  12131. if (e + eBias >= eMax) {
  12132. m = 0
  12133. e = eMax
  12134. } else if (e + eBias >= 1) {
  12135. m = ((value * c) - 1) * Math.pow(2, mLen)
  12136. e = e + eBias
  12137. } else {
  12138. m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
  12139. e = 0
  12140. }
  12141. }
  12142. for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
  12143. e = (e << mLen) | m
  12144. eLen += mLen
  12145. for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
  12146. buffer[offset + i - d] |= s * 128
  12147. }
  12148. /***/ }),
  12149. /* 58 */
  12150. /*!***************************************!*\
  12151. !*** ./node_modules/isarray/index.js ***!
  12152. \***************************************/
  12153. /*! no static exports found */
  12154. /***/ (function(module, exports) {
  12155. var toString = {}.toString;
  12156. module.exports = Array.isArray || function (arr) {
  12157. return toString.call(arr) == '[object Array]';
  12158. };
  12159. /***/ }),
  12160. /* 59 */
  12161. /*!********************************************************************!*\
  12162. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/util/route.js ***!
  12163. \********************************************************************/
  12164. /*! no static exports found */
  12165. /***/ (function(module, exports, __webpack_require__) {
  12166. "use strict";
  12167. /* WEBPACK VAR INJECTION */(function(uni) {
  12168. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12169. Object.defineProperty(exports, "__esModule", {
  12170. value: true
  12171. });
  12172. exports.default = void 0;
  12173. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 60));
  12174. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 62));
  12175. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  12176. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  12177. /**
  12178. * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
  12179. * 并且带有路由拦截功能
  12180. */
  12181. var Router = /*#__PURE__*/function () {
  12182. function Router() {
  12183. (0, _classCallCheck2.default)(this, Router);
  12184. // 原始属性定义
  12185. this.config = {
  12186. type: 'navigateTo',
  12187. url: '',
  12188. delta: 1,
  12189. // navigateBack页面后退时,回退的层数
  12190. params: {},
  12191. // 传递的参数
  12192. animationType: 'pop-in',
  12193. // 窗口动画,只在APP有效
  12194. animationDuration: 300,
  12195. // 窗口动画持续时间,单位毫秒,只在APP有效
  12196. intercept: false // 是否需要拦截
  12197. };
  12198. // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
  12199. // 这里在构造函数中进行this绑定
  12200. this.route = this.route.bind(this);
  12201. }
  12202. // 判断url前面是否有"/",如果没有则加上,否则无法跳转
  12203. (0, _createClass2.default)(Router, [{
  12204. key: "addRootPath",
  12205. value: function addRootPath(url) {
  12206. return url[0] === '/' ? url : "/".concat(url);
  12207. }
  12208. // 整合路由参数
  12209. }, {
  12210. key: "mixinParam",
  12211. value: function mixinParam(url, params) {
  12212. url = url && this.addRootPath(url);
  12213. // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
  12214. // 如果有url中有get参数,转换后无需带上"?"
  12215. var query = '';
  12216. if (/.*\/.*\?.*=.*/.test(url)) {
  12217. // object对象转为get类型的参数
  12218. query = uni.$u.queryParams(params, false);
  12219. // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
  12220. return url += "&".concat(query);
  12221. }
  12222. // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
  12223. query = uni.$u.queryParams(params);
  12224. return url += query;
  12225. }
  12226. // 对外的方法名称
  12227. }, {
  12228. key: "route",
  12229. value: function () {
  12230. var _route = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  12231. var options,
  12232. params,
  12233. mergeConfig,
  12234. isNext,
  12235. _args = arguments;
  12236. return _regenerator.default.wrap(function _callee$(_context) {
  12237. while (1) {
  12238. switch (_context.prev = _context.next) {
  12239. case 0:
  12240. options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
  12241. params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
  12242. // 合并用户的配置和内部的默认配置
  12243. mergeConfig = {};
  12244. if (typeof options === 'string') {
  12245. // 如果options为字符串,则为route(url, params)的形式
  12246. mergeConfig.url = this.mixinParam(options, params);
  12247. mergeConfig.type = 'navigateTo';
  12248. } else {
  12249. mergeConfig = uni.$u.deepMerge(this.config, options);
  12250. // 否则正常使用mergeConfig中的url和params进行拼接
  12251. mergeConfig.url = this.mixinParam(options.url, options.params);
  12252. }
  12253. // 如果本次跳转的路径和本页面路径一致,不执行跳转,防止用户快速点击跳转按钮,造成多次跳转同一个页面的问题
  12254. if (!(mergeConfig.url === uni.$u.page())) {
  12255. _context.next = 6;
  12256. break;
  12257. }
  12258. return _context.abrupt("return");
  12259. case 6:
  12260. if (params.intercept) {
  12261. this.config.intercept = params.intercept;
  12262. }
  12263. // params参数也带给拦截器
  12264. mergeConfig.params = params;
  12265. // 合并内外部参数
  12266. mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
  12267. // 判断用户是否定义了拦截器
  12268. if (!(typeof uni.$u.routeIntercept === 'function')) {
  12269. _context.next = 16;
  12270. break;
  12271. }
  12272. _context.next = 12;
  12273. return new Promise(function (resolve, reject) {
  12274. uni.$u.routeIntercept(mergeConfig, resolve);
  12275. });
  12276. case 12:
  12277. isNext = _context.sent;
  12278. // 如果isNext为true,则执行路由跳转
  12279. isNext && this.openPage(mergeConfig);
  12280. _context.next = 17;
  12281. break;
  12282. case 16:
  12283. this.openPage(mergeConfig);
  12284. case 17:
  12285. case "end":
  12286. return _context.stop();
  12287. }
  12288. }
  12289. }, _callee, this);
  12290. }));
  12291. function route() {
  12292. return _route.apply(this, arguments);
  12293. }
  12294. return route;
  12295. }() // 执行路由跳转
  12296. }, {
  12297. key: "openPage",
  12298. value: function openPage(config) {
  12299. // 解构参数
  12300. var url = config.url,
  12301. type = config.type,
  12302. delta = config.delta,
  12303. animationType = config.animationType,
  12304. animationDuration = config.animationDuration;
  12305. if (config.type == 'navigateTo' || config.type == 'to') {
  12306. uni.navigateTo({
  12307. url: url,
  12308. animationType: animationType,
  12309. animationDuration: animationDuration
  12310. });
  12311. }
  12312. if (config.type == 'redirectTo' || config.type == 'redirect') {
  12313. uni.redirectTo({
  12314. url: url
  12315. });
  12316. }
  12317. if (config.type == 'switchTab' || config.type == 'tab') {
  12318. uni.switchTab({
  12319. url: url
  12320. });
  12321. }
  12322. if (config.type == 'reLaunch' || config.type == 'launch') {
  12323. uni.reLaunch({
  12324. url: url
  12325. });
  12326. }
  12327. if (config.type == 'navigateBack' || config.type == 'back') {
  12328. uni.navigateBack({
  12329. delta: delta
  12330. });
  12331. }
  12332. }
  12333. }]);
  12334. return Router;
  12335. }();
  12336. var _default = new Router().route;
  12337. exports.default = _default;
  12338. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  12339. /***/ }),
  12340. /* 60 */
  12341. /*!************************************************************************************************!*\
  12342. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  12343. \************************************************************************************************/
  12344. /*! no static exports found */
  12345. /***/ (function(module, exports, __webpack_require__) {
  12346. // TODO(Babel 8): Remove this file.
  12347. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 61)();
  12348. module.exports = runtime;
  12349. /***/ }),
  12350. /* 61 */
  12351. /*!*******************************************************************!*\
  12352. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  12353. \*******************************************************************/
  12354. /*! no static exports found */
  12355. /***/ (function(module, exports, __webpack_require__) {
  12356. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  12357. function _regeneratorRuntime() {
  12358. "use strict";
  12359. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  12360. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  12361. return exports;
  12362. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12363. var exports = {},
  12364. Op = Object.prototype,
  12365. hasOwn = Op.hasOwnProperty,
  12366. defineProperty = Object.defineProperty || function (obj, key, desc) {
  12367. obj[key] = desc.value;
  12368. },
  12369. $Symbol = "function" == typeof Symbol ? Symbol : {},
  12370. iteratorSymbol = $Symbol.iterator || "@@iterator",
  12371. asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
  12372. toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  12373. function define(obj, key, value) {
  12374. return Object.defineProperty(obj, key, {
  12375. value: value,
  12376. enumerable: !0,
  12377. configurable: !0,
  12378. writable: !0
  12379. }), obj[key];
  12380. }
  12381. try {
  12382. define({}, "");
  12383. } catch (err) {
  12384. define = function define(obj, key, value) {
  12385. return obj[key] = value;
  12386. };
  12387. }
  12388. function wrap(innerFn, outerFn, self, tryLocsList) {
  12389. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
  12390. generator = Object.create(protoGenerator.prototype),
  12391. context = new Context(tryLocsList || []);
  12392. return defineProperty(generator, "_invoke", {
  12393. value: makeInvokeMethod(innerFn, self, context)
  12394. }), generator;
  12395. }
  12396. function tryCatch(fn, obj, arg) {
  12397. try {
  12398. return {
  12399. type: "normal",
  12400. arg: fn.call(obj, arg)
  12401. };
  12402. } catch (err) {
  12403. return {
  12404. type: "throw",
  12405. arg: err
  12406. };
  12407. }
  12408. }
  12409. exports.wrap = wrap;
  12410. var ContinueSentinel = {};
  12411. function Generator() {}
  12412. function GeneratorFunction() {}
  12413. function GeneratorFunctionPrototype() {}
  12414. var IteratorPrototype = {};
  12415. define(IteratorPrototype, iteratorSymbol, function () {
  12416. return this;
  12417. });
  12418. var getProto = Object.getPrototypeOf,
  12419. NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  12420. NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
  12421. var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
  12422. function defineIteratorMethods(prototype) {
  12423. ["next", "throw", "return"].forEach(function (method) {
  12424. define(prototype, method, function (arg) {
  12425. return this._invoke(method, arg);
  12426. });
  12427. });
  12428. }
  12429. function AsyncIterator(generator, PromiseImpl) {
  12430. function invoke(method, arg, resolve, reject) {
  12431. var record = tryCatch(generator[method], generator, arg);
  12432. if ("throw" !== record.type) {
  12433. var result = record.arg,
  12434. value = result.value;
  12435. return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
  12436. invoke("next", value, resolve, reject);
  12437. }, function (err) {
  12438. invoke("throw", err, resolve, reject);
  12439. }) : PromiseImpl.resolve(value).then(function (unwrapped) {
  12440. result.value = unwrapped, resolve(result);
  12441. }, function (error) {
  12442. return invoke("throw", error, resolve, reject);
  12443. });
  12444. }
  12445. reject(record.arg);
  12446. }
  12447. var previousPromise;
  12448. defineProperty(this, "_invoke", {
  12449. value: function value(method, arg) {
  12450. function callInvokeWithMethodAndArg() {
  12451. return new PromiseImpl(function (resolve, reject) {
  12452. invoke(method, arg, resolve, reject);
  12453. });
  12454. }
  12455. return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  12456. }
  12457. });
  12458. }
  12459. function makeInvokeMethod(innerFn, self, context) {
  12460. var state = "suspendedStart";
  12461. return function (method, arg) {
  12462. if ("executing" === state) throw new Error("Generator is already running");
  12463. if ("completed" === state) {
  12464. if ("throw" === method) throw arg;
  12465. return doneResult();
  12466. }
  12467. for (context.method = method, context.arg = arg;;) {
  12468. var delegate = context.delegate;
  12469. if (delegate) {
  12470. var delegateResult = maybeInvokeDelegate(delegate, context);
  12471. if (delegateResult) {
  12472. if (delegateResult === ContinueSentinel) continue;
  12473. return delegateResult;
  12474. }
  12475. }
  12476. if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
  12477. if ("suspendedStart" === state) throw state = "completed", context.arg;
  12478. context.dispatchException(context.arg);
  12479. } else "return" === context.method && context.abrupt("return", context.arg);
  12480. state = "executing";
  12481. var record = tryCatch(innerFn, self, context);
  12482. if ("normal" === record.type) {
  12483. if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
  12484. return {
  12485. value: record.arg,
  12486. done: context.done
  12487. };
  12488. }
  12489. "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
  12490. }
  12491. };
  12492. }
  12493. function maybeInvokeDelegate(delegate, context) {
  12494. var methodName = context.method,
  12495. method = delegate.iterator[methodName];
  12496. if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
  12497. var record = tryCatch(method, delegate.iterator, context.arg);
  12498. if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
  12499. var info = record.arg;
  12500. return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
  12501. }
  12502. function pushTryEntry(locs) {
  12503. var entry = {
  12504. tryLoc: locs[0]
  12505. };
  12506. 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
  12507. }
  12508. function resetTryEntry(entry) {
  12509. var record = entry.completion || {};
  12510. record.type = "normal", delete record.arg, entry.completion = record;
  12511. }
  12512. function Context(tryLocsList) {
  12513. this.tryEntries = [{
  12514. tryLoc: "root"
  12515. }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
  12516. }
  12517. function values(iterable) {
  12518. if (iterable) {
  12519. var iteratorMethod = iterable[iteratorSymbol];
  12520. if (iteratorMethod) return iteratorMethod.call(iterable);
  12521. if ("function" == typeof iterable.next) return iterable;
  12522. if (!isNaN(iterable.length)) {
  12523. var i = -1,
  12524. next = function next() {
  12525. for (; ++i < iterable.length;) {
  12526. if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
  12527. }
  12528. return next.value = undefined, next.done = !0, next;
  12529. };
  12530. return next.next = next;
  12531. }
  12532. }
  12533. return {
  12534. next: doneResult
  12535. };
  12536. }
  12537. function doneResult() {
  12538. return {
  12539. value: undefined,
  12540. done: !0
  12541. };
  12542. }
  12543. return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
  12544. value: GeneratorFunctionPrototype,
  12545. configurable: !0
  12546. }), defineProperty(GeneratorFunctionPrototype, "constructor", {
  12547. value: GeneratorFunction,
  12548. configurable: !0
  12549. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
  12550. var ctor = "function" == typeof genFun && genFun.constructor;
  12551. return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
  12552. }, exports.mark = function (genFun) {
  12553. return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
  12554. }, exports.awrap = function (arg) {
  12555. return {
  12556. __await: arg
  12557. };
  12558. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
  12559. return this;
  12560. }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
  12561. void 0 === PromiseImpl && (PromiseImpl = Promise);
  12562. var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
  12563. return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
  12564. return result.done ? result.value : iter.next();
  12565. });
  12566. }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
  12567. return this;
  12568. }), define(Gp, "toString", function () {
  12569. return "[object Generator]";
  12570. }), exports.keys = function (val) {
  12571. var object = Object(val),
  12572. keys = [];
  12573. for (var key in object) {
  12574. keys.push(key);
  12575. }
  12576. return keys.reverse(), function next() {
  12577. for (; keys.length;) {
  12578. var key = keys.pop();
  12579. if (key in object) return next.value = key, next.done = !1, next;
  12580. }
  12581. return next.done = !0, next;
  12582. };
  12583. }, exports.values = values, Context.prototype = {
  12584. constructor: Context,
  12585. reset: function reset(skipTempReset) {
  12586. if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
  12587. "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
  12588. }
  12589. },
  12590. stop: function stop() {
  12591. this.done = !0;
  12592. var rootRecord = this.tryEntries[0].completion;
  12593. if ("throw" === rootRecord.type) throw rootRecord.arg;
  12594. return this.rval;
  12595. },
  12596. dispatchException: function dispatchException(exception) {
  12597. if (this.done) throw exception;
  12598. var context = this;
  12599. function handle(loc, caught) {
  12600. return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
  12601. }
  12602. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  12603. var entry = this.tryEntries[i],
  12604. record = entry.completion;
  12605. if ("root" === entry.tryLoc) return handle("end");
  12606. if (entry.tryLoc <= this.prev) {
  12607. var hasCatch = hasOwn.call(entry, "catchLoc"),
  12608. hasFinally = hasOwn.call(entry, "finallyLoc");
  12609. if (hasCatch && hasFinally) {
  12610. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  12611. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  12612. } else if (hasCatch) {
  12613. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  12614. } else {
  12615. if (!hasFinally) throw new Error("try statement without catch or finally");
  12616. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  12617. }
  12618. }
  12619. }
  12620. },
  12621. abrupt: function abrupt(type, arg) {
  12622. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  12623. var entry = this.tryEntries[i];
  12624. if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
  12625. var finallyEntry = entry;
  12626. break;
  12627. }
  12628. }
  12629. finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
  12630. var record = finallyEntry ? finallyEntry.completion : {};
  12631. return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
  12632. },
  12633. complete: function complete(record, afterLoc) {
  12634. if ("throw" === record.type) throw record.arg;
  12635. return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
  12636. },
  12637. finish: function finish(finallyLoc) {
  12638. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  12639. var entry = this.tryEntries[i];
  12640. if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
  12641. }
  12642. },
  12643. "catch": function _catch(tryLoc) {
  12644. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  12645. var entry = this.tryEntries[i];
  12646. if (entry.tryLoc === tryLoc) {
  12647. var record = entry.completion;
  12648. if ("throw" === record.type) {
  12649. var thrown = record.arg;
  12650. resetTryEntry(entry);
  12651. }
  12652. return thrown;
  12653. }
  12654. }
  12655. throw new Error("illegal catch attempt");
  12656. },
  12657. delegateYield: function delegateYield(iterable, resultName, nextLoc) {
  12658. return this.delegate = {
  12659. iterator: values(iterable),
  12660. resultName: resultName,
  12661. nextLoc: nextLoc
  12662. }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
  12663. }
  12664. }, exports;
  12665. }
  12666. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12667. /***/ }),
  12668. /* 62 */
  12669. /*!*****************************************************************!*\
  12670. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  12671. \*****************************************************************/
  12672. /*! no static exports found */
  12673. /***/ (function(module, exports) {
  12674. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  12675. try {
  12676. var info = gen[key](arg);
  12677. var value = info.value;
  12678. } catch (error) {
  12679. reject(error);
  12680. return;
  12681. }
  12682. if (info.done) {
  12683. resolve(value);
  12684. } else {
  12685. Promise.resolve(value).then(_next, _throw);
  12686. }
  12687. }
  12688. function _asyncToGenerator(fn) {
  12689. return function () {
  12690. var self = this,
  12691. args = arguments;
  12692. return new Promise(function (resolve, reject) {
  12693. var gen = fn.apply(self, args);
  12694. function _next(value) {
  12695. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  12696. }
  12697. function _throw(err) {
  12698. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  12699. }
  12700. _next(undefined);
  12701. });
  12702. };
  12703. }
  12704. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12705. /***/ }),
  12706. /* 63 */
  12707. /*!********************************************************************************!*\
  12708. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/function/colorGradient.js ***!
  12709. \********************************************************************************/
  12710. /*! no static exports found */
  12711. /***/ (function(module, exports, __webpack_require__) {
  12712. "use strict";
  12713. Object.defineProperty(exports, "__esModule", {
  12714. value: true
  12715. });
  12716. exports.default = void 0;
  12717. /**
  12718. * 求两个颜色之间的渐变值
  12719. * @param {string} startColor 开始的颜色
  12720. * @param {string} endColor 结束的颜色
  12721. * @param {number} step 颜色等分的份额
  12722. * */
  12723. function colorGradient() {
  12724. var startColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'rgb(0, 0, 0)';
  12725. var endColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rgb(255, 255, 255)';
  12726. var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
  12727. var startRGB = hexToRgb(startColor, false); // 转换为rgb数组模式
  12728. var startR = startRGB[0];
  12729. var startG = startRGB[1];
  12730. var startB = startRGB[2];
  12731. var endRGB = hexToRgb(endColor, false);
  12732. var endR = endRGB[0];
  12733. var endG = endRGB[1];
  12734. var endB = endRGB[2];
  12735. var sR = (endR - startR) / step; // 总差值
  12736. var sG = (endG - startG) / step;
  12737. var sB = (endB - startB) / step;
  12738. var colorArr = [];
  12739. for (var i = 0; i < step; i++) {
  12740. // 计算每一步的hex值
  12741. var hex = rgbToHex("rgb(".concat(Math.round(sR * i + startR), ",").concat(Math.round(sG * i + startG), ",").concat(Math.round(sB * i + startB), ")"));
  12742. // 确保第一个颜色值为startColor的值
  12743. if (i === 0) hex = rgbToHex(startColor);
  12744. // 确保最后一个颜色值为endColor的值
  12745. if (i === step - 1) hex = rgbToHex(endColor);
  12746. colorArr.push(hex);
  12747. }
  12748. return colorArr;
  12749. }
  12750. // 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
  12751. function hexToRgb(sColor) {
  12752. var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  12753. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12754. sColor = String(sColor).toLowerCase();
  12755. if (sColor && reg.test(sColor)) {
  12756. if (sColor.length === 4) {
  12757. var sColorNew = '#';
  12758. for (var i = 1; i < 4; i += 1) {
  12759. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  12760. }
  12761. sColor = sColorNew;
  12762. }
  12763. // 处理六位的颜色值
  12764. var sColorChange = [];
  12765. for (var _i = 1; _i < 7; _i += 2) {
  12766. sColorChange.push(parseInt("0x".concat(sColor.slice(_i, _i + 2))));
  12767. }
  12768. if (!str) {
  12769. return sColorChange;
  12770. }
  12771. return "rgb(".concat(sColorChange[0], ",").concat(sColorChange[1], ",").concat(sColorChange[2], ")");
  12772. }
  12773. if (/^(rgb|RGB)/.test(sColor)) {
  12774. var arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  12775. return arr.map(function (val) {
  12776. return Number(val);
  12777. });
  12778. }
  12779. return sColor;
  12780. }
  12781. // 将rgb表示方式转换为hex表示方式
  12782. function rgbToHex(rgb) {
  12783. var _this = rgb;
  12784. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12785. if (/^(rgb|RGB)/.test(_this)) {
  12786. var aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  12787. var strHex = '#';
  12788. for (var i = 0; i < aColor.length; i++) {
  12789. var hex = Number(aColor[i]).toString(16);
  12790. hex = String(hex).length == 1 ? "".concat(0, hex) : hex; // 保证每个rgb的值为2位
  12791. if (hex === '0') {
  12792. hex += hex;
  12793. }
  12794. strHex += hex;
  12795. }
  12796. if (strHex.length !== 7) {
  12797. strHex = _this;
  12798. }
  12799. return strHex;
  12800. }
  12801. if (reg.test(_this)) {
  12802. var aNum = _this.replace(/#/, '').split('');
  12803. if (aNum.length === 6) {
  12804. return _this;
  12805. }
  12806. if (aNum.length === 3) {
  12807. var numHex = '#';
  12808. for (var _i2 = 0; _i2 < aNum.length; _i2 += 1) {
  12809. numHex += aNum[_i2] + aNum[_i2];
  12810. }
  12811. return numHex;
  12812. }
  12813. } else {
  12814. return _this;
  12815. }
  12816. }
  12817. /**
  12818. * JS颜色十六进制转换为rgb或rgba,返回的格式为 rgba(255,255,255,0.5)字符串
  12819. * sHex为传入的十六进制的色值
  12820. * alpha为rgba的透明度
  12821. */
  12822. function colorToRgba(color, alpha) {
  12823. color = rgbToHex(color);
  12824. // 十六进制颜色值的正则表达式
  12825. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12826. /* 16进制颜色转为RGB格式 */
  12827. var sColor = String(color).toLowerCase();
  12828. if (sColor && reg.test(sColor)) {
  12829. if (sColor.length === 4) {
  12830. var sColorNew = '#';
  12831. for (var i = 1; i < 4; i += 1) {
  12832. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  12833. }
  12834. sColor = sColorNew;
  12835. }
  12836. // 处理六位的颜色值
  12837. var sColorChange = [];
  12838. for (var _i3 = 1; _i3 < 7; _i3 += 2) {
  12839. sColorChange.push(parseInt("0x".concat(sColor.slice(_i3, _i3 + 2))));
  12840. }
  12841. // return sColorChange.join(',')
  12842. return "rgba(".concat(sColorChange.join(','), ",").concat(alpha, ")");
  12843. }
  12844. return sColor;
  12845. }
  12846. var _default = {
  12847. colorGradient: colorGradient,
  12848. hexToRgb: hexToRgb,
  12849. rgbToHex: rgbToHex,
  12850. colorToRgba: colorToRgba
  12851. };
  12852. exports.default = _default;
  12853. /***/ }),
  12854. /* 64 */
  12855. /*!***********************************************************************!*\
  12856. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/function/test.js ***!
  12857. \***********************************************************************/
  12858. /*! no static exports found */
  12859. /***/ (function(module, exports, __webpack_require__) {
  12860. "use strict";
  12861. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12862. Object.defineProperty(exports, "__esModule", {
  12863. value: true
  12864. });
  12865. exports.default = void 0;
  12866. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  12867. /**
  12868. * 验证电子邮箱格式
  12869. */
  12870. function email(value) {
  12871. return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
  12872. }
  12873. /**
  12874. * 验证手机格式
  12875. */
  12876. function mobile(value) {
  12877. return /^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/.test(value);
  12878. }
  12879. /**
  12880. * 验证URL格式
  12881. */
  12882. function url(value) {
  12883. 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_!~*'().;?:@&=+$,%#-]+)+\/?)$/.test(value);
  12884. }
  12885. /**
  12886. * 验证日期格式
  12887. */
  12888. function date(value) {
  12889. if (!value) return false;
  12890. // 判断是否数值或者字符串数值(意味着为时间戳),转为数值,否则new Date无法识别字符串时间戳
  12891. if (number(value)) value = +value;
  12892. return !/Invalid|NaN/.test(new Date(value).toString());
  12893. }
  12894. /**
  12895. * 验证ISO类型的日期格式
  12896. */
  12897. function dateISO(value) {
  12898. return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
  12899. }
  12900. /**
  12901. * 验证十进制数字
  12902. */
  12903. function number(value) {
  12904. return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value);
  12905. }
  12906. /**
  12907. * 验证字符串
  12908. */
  12909. function string(value) {
  12910. return typeof value === 'string';
  12911. }
  12912. /**
  12913. * 验证整数
  12914. */
  12915. function digits(value) {
  12916. return /^\d+$/.test(value);
  12917. }
  12918. /**
  12919. * 验证身份证号码
  12920. */
  12921. function idCard(value) {
  12922. 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(value);
  12923. }
  12924. /**
  12925. * 是否车牌号
  12926. */
  12927. function carNo(value) {
  12928. // 新能源车牌
  12929. var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
  12930. // 旧车牌
  12931. var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
  12932. if (value.length === 7) {
  12933. return creg.test(value);
  12934. }
  12935. if (value.length === 8) {
  12936. return xreg.test(value);
  12937. }
  12938. return false;
  12939. }
  12940. /**
  12941. * 金额,只允许2位小数
  12942. */
  12943. function amount(value) {
  12944. // 金额,只允许保留两位小数
  12945. return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
  12946. }
  12947. /**
  12948. * 中文
  12949. */
  12950. function chinese(value) {
  12951. var reg = /^[\u4e00-\u9fa5]+$/gi;
  12952. return reg.test(value);
  12953. }
  12954. /**
  12955. * 只能输入字母
  12956. */
  12957. function letter(value) {
  12958. return /^[a-zA-Z]*$/.test(value);
  12959. }
  12960. /**
  12961. * 只能是字母或者数字
  12962. */
  12963. function enOrNum(value) {
  12964. // 英文或者数字
  12965. var reg = /^[0-9a-zA-Z]*$/g;
  12966. return reg.test(value);
  12967. }
  12968. /**
  12969. * 验证是否包含某个值
  12970. */
  12971. function contains(value, param) {
  12972. return value.indexOf(param) >= 0;
  12973. }
  12974. /**
  12975. * 验证一个值范围[min, max]
  12976. */
  12977. function range(value, param) {
  12978. return value >= param[0] && value <= param[1];
  12979. }
  12980. /**
  12981. * 验证一个长度范围[min, max]
  12982. */
  12983. function rangeLength(value, param) {
  12984. return value.length >= param[0] && value.length <= param[1];
  12985. }
  12986. /**
  12987. * 是否固定电话
  12988. */
  12989. function landline(value) {
  12990. var reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
  12991. return reg.test(value);
  12992. }
  12993. /**
  12994. * 判断是否为空
  12995. */
  12996. function empty(value) {
  12997. switch ((0, _typeof2.default)(value)) {
  12998. case 'undefined':
  12999. return true;
  13000. case 'string':
  13001. if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true;
  13002. break;
  13003. case 'boolean':
  13004. if (!value) return true;
  13005. break;
  13006. case 'number':
  13007. if (value === 0 || isNaN(value)) return true;
  13008. break;
  13009. case 'object':
  13010. if (value === null || value.length === 0) return true;
  13011. for (var i in value) {
  13012. return false;
  13013. }
  13014. return true;
  13015. }
  13016. return false;
  13017. }
  13018. /**
  13019. * 是否json字符串
  13020. */
  13021. function jsonString(value) {
  13022. if (typeof value === 'string') {
  13023. try {
  13024. var obj = JSON.parse(value);
  13025. if ((0, _typeof2.default)(obj) === 'object' && obj) {
  13026. return true;
  13027. }
  13028. return false;
  13029. } catch (e) {
  13030. return false;
  13031. }
  13032. }
  13033. return false;
  13034. }
  13035. /**
  13036. * 是否数组
  13037. */
  13038. function array(value) {
  13039. if (typeof Array.isArray === 'function') {
  13040. return Array.isArray(value);
  13041. }
  13042. return Object.prototype.toString.call(value) === '[object Array]';
  13043. }
  13044. /**
  13045. * 是否对象
  13046. */
  13047. function object(value) {
  13048. return Object.prototype.toString.call(value) === '[object Object]';
  13049. }
  13050. /**
  13051. * 是否短信验证码
  13052. */
  13053. function code(value) {
  13054. var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  13055. return new RegExp("^\\d{".concat(len, "}$")).test(value);
  13056. }
  13057. /**
  13058. * 是否函数方法
  13059. * @param {Object} value
  13060. */
  13061. function func(value) {
  13062. return typeof value === 'function';
  13063. }
  13064. /**
  13065. * 是否promise对象
  13066. * @param {Object} value
  13067. */
  13068. function promise(value) {
  13069. return object(value) && func(value.then) && func(value.catch);
  13070. }
  13071. /** 是否图片格式
  13072. * @param {Object} value
  13073. */
  13074. function image(value) {
  13075. var newValue = value.split('?')[0];
  13076. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  13077. return IMAGE_REGEXP.test(newValue);
  13078. }
  13079. /**
  13080. * 是否视频格式
  13081. * @param {Object} value
  13082. */
  13083. function video(value) {
  13084. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;
  13085. return VIDEO_REGEXP.test(value);
  13086. }
  13087. /**
  13088. * 是否为正则对象
  13089. * @param {Object}
  13090. * @return {Boolean}
  13091. */
  13092. function regExp(o) {
  13093. return o && Object.prototype.toString.call(o) === '[object RegExp]';
  13094. }
  13095. var _default = {
  13096. email: email,
  13097. mobile: mobile,
  13098. url: url,
  13099. date: date,
  13100. dateISO: dateISO,
  13101. number: number,
  13102. digits: digits,
  13103. idCard: idCard,
  13104. carNo: carNo,
  13105. amount: amount,
  13106. chinese: chinese,
  13107. letter: letter,
  13108. enOrNum: enOrNum,
  13109. contains: contains,
  13110. range: range,
  13111. rangeLength: rangeLength,
  13112. empty: empty,
  13113. isEmpty: empty,
  13114. jsonString: jsonString,
  13115. landline: landline,
  13116. object: object,
  13117. array: array,
  13118. code: code,
  13119. func: func,
  13120. promise: promise,
  13121. video: video,
  13122. image: image,
  13123. regExp: regExp,
  13124. string: string
  13125. };
  13126. exports.default = _default;
  13127. /***/ }),
  13128. /* 65 */
  13129. /*!***************************************************************************!*\
  13130. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/function/debounce.js ***!
  13131. \***************************************************************************/
  13132. /*! no static exports found */
  13133. /***/ (function(module, exports, __webpack_require__) {
  13134. "use strict";
  13135. Object.defineProperty(exports, "__esModule", {
  13136. value: true
  13137. });
  13138. exports.default = void 0;
  13139. var timeout = null;
  13140. /**
  13141. * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
  13142. *
  13143. * @param {Function} func 要执行的回调函数
  13144. * @param {Number} wait 延时的时间
  13145. * @param {Boolean} immediate 是否立即执行
  13146. * @return null
  13147. */
  13148. function debounce(func) {
  13149. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  13150. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  13151. // 清除定时器
  13152. if (timeout !== null) clearTimeout(timeout);
  13153. // 立即执行,此类情况一般用不到
  13154. if (immediate) {
  13155. var callNow = !timeout;
  13156. timeout = setTimeout(function () {
  13157. timeout = null;
  13158. }, wait);
  13159. if (callNow) typeof func === 'function' && func();
  13160. } else {
  13161. // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
  13162. timeout = setTimeout(function () {
  13163. typeof func === 'function' && func();
  13164. }, wait);
  13165. }
  13166. }
  13167. var _default = debounce;
  13168. exports.default = _default;
  13169. /***/ }),
  13170. /* 66 */
  13171. /*!***************************************************************************!*\
  13172. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/function/throttle.js ***!
  13173. \***************************************************************************/
  13174. /*! no static exports found */
  13175. /***/ (function(module, exports, __webpack_require__) {
  13176. "use strict";
  13177. Object.defineProperty(exports, "__esModule", {
  13178. value: true
  13179. });
  13180. exports.default = void 0;
  13181. var timer;
  13182. var flag;
  13183. /**
  13184. * 节流原理:在一定时间内,只能触发一次
  13185. *
  13186. * @param {Function} func 要执行的回调函数
  13187. * @param {Number} wait 延时的时间
  13188. * @param {Boolean} immediate 是否立即执行
  13189. * @return null
  13190. */
  13191. function throttle(func) {
  13192. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  13193. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  13194. if (immediate) {
  13195. if (!flag) {
  13196. flag = true;
  13197. // 如果是立即执行,则在wait毫秒内开始时执行
  13198. typeof func === 'function' && func();
  13199. timer = setTimeout(function () {
  13200. flag = false;
  13201. }, wait);
  13202. }
  13203. } else if (!flag) {
  13204. flag = true;
  13205. // 如果是非立即执行,则在wait毫秒内的结束处执行
  13206. timer = setTimeout(function () {
  13207. flag = false;
  13208. typeof func === 'function' && func();
  13209. }, wait);
  13210. }
  13211. }
  13212. var _default = throttle;
  13213. exports.default = _default;
  13214. /***/ }),
  13215. /* 67 */
  13216. /*!************************************************************************!*\
  13217. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/function/index.js ***!
  13218. \************************************************************************/
  13219. /*! no static exports found */
  13220. /***/ (function(module, exports, __webpack_require__) {
  13221. "use strict";
  13222. /* WEBPACK VAR INJECTION */(function(uni) {
  13223. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13224. Object.defineProperty(exports, "__esModule", {
  13225. value: true
  13226. });
  13227. exports.default = void 0;
  13228. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  13229. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  13230. var _test = _interopRequireDefault(__webpack_require__(/*! ./test.js */ 64));
  13231. var _digit = __webpack_require__(/*! ./digit.js */ 68);
  13232. /**
  13233. * @description 如果value小于min,取min;如果value大于max,取max
  13234. * @param {number} min
  13235. * @param {number} max
  13236. * @param {number} value
  13237. */
  13238. function range() {
  13239. var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  13240. var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  13241. var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
  13242. return Math.max(min, Math.min(max, Number(value)));
  13243. }
  13244. /**
  13245. * @description 用于获取用户传递值的px值 如果用户传递了"xxpx"或者"xxrpx",取出其数值部分,如果是"xxxrpx"还需要用过uni.upx2px进行转换
  13246. * @param {number|string} value 用户传递值的px值
  13247. * @param {boolean} unit
  13248. * @returns {number|string}
  13249. */
  13250. function getPx(value) {
  13251. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13252. if (_test.default.number(value)) {
  13253. return unit ? "".concat(value, "px") : Number(value);
  13254. }
  13255. // 如果带有rpx,先取出其数值部分,再转为px值
  13256. if (/(rpx|upx)$/.test(value)) {
  13257. return unit ? "".concat(uni.upx2px(parseInt(value)), "px") : Number(uni.upx2px(parseInt(value)));
  13258. }
  13259. return unit ? "".concat(parseInt(value), "px") : parseInt(value);
  13260. }
  13261. /**
  13262. * @description 进行延时,以达到可以简写代码的目的 比如: await uni.$u.sleep(20)将会阻塞20ms
  13263. * @param {number} value 堵塞时间 单位ms 毫秒
  13264. * @returns {Promise} 返回promise
  13265. */
  13266. function sleep() {
  13267. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 30;
  13268. return new Promise(function (resolve) {
  13269. setTimeout(function () {
  13270. resolve();
  13271. }, value);
  13272. });
  13273. }
  13274. /**
  13275. * @description 运行期判断平台
  13276. * @returns {string} 返回所在平台(小写)
  13277. * @link 运行期判断平台 https://uniapp.dcloud.io/frame?id=判断平台
  13278. */
  13279. function os() {
  13280. return uni.getSystemInfoSync().platform.toLowerCase();
  13281. }
  13282. /**
  13283. * @description 获取系统信息同步接口
  13284. * @link 获取系统信息同步接口 https://uniapp.dcloud.io/api/system/info?id=getsysteminfosync
  13285. */
  13286. function sys() {
  13287. return uni.getSystemInfoSync();
  13288. }
  13289. /**
  13290. * @description 取一个区间数
  13291. * @param {Number} min 最小值
  13292. * @param {Number} max 最大值
  13293. */
  13294. function random(min, max) {
  13295. if (min >= 0 && max > 0 && max >= min) {
  13296. var gab = max - min + 1;
  13297. return Math.floor(Math.random() * gab + min);
  13298. }
  13299. return 0;
  13300. }
  13301. /**
  13302. * @param {Number} len uuid的长度
  13303. * @param {Boolean} firstU 将返回的首字母置为"u"
  13304. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  13305. */
  13306. function guid() {
  13307. var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
  13308. var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13309. var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  13310. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  13311. var uuid = [];
  13312. radix = radix || chars.length;
  13313. if (len) {
  13314. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  13315. for (var i = 0; i < len; i++) {
  13316. uuid[i] = chars[0 | Math.random() * radix];
  13317. }
  13318. } else {
  13319. var r;
  13320. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  13321. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  13322. uuid[14] = '4';
  13323. for (var _i = 0; _i < 36; _i++) {
  13324. if (!uuid[_i]) {
  13325. r = 0 | Math.random() * 16;
  13326. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  13327. }
  13328. }
  13329. }
  13330. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  13331. if (firstU) {
  13332. uuid.shift();
  13333. return "u".concat(uuid.join(''));
  13334. }
  13335. return uuid.join('');
  13336. }
  13337. /**
  13338. * @description 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  13339. this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  13340. 这里默认值等于undefined有它的含义,因为最顶层元素(组件)的$parent就是undefined,意味着不传name
  13341. 值(默认为undefined),就是查找最顶层的$parent
  13342. * @param {string|undefined} name 父组件的参数名
  13343. */
  13344. function $parent() {
  13345. var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  13346. var parent = this.$parent;
  13347. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  13348. while (parent) {
  13349. // 父组件
  13350. if (parent.$options && parent.$options.name !== name) {
  13351. // 如果组件的name不相等,继续上一级寻找
  13352. parent = parent.$parent;
  13353. } else {
  13354. return parent;
  13355. }
  13356. }
  13357. return false;
  13358. }
  13359. /**
  13360. * @description 样式转换
  13361. * 对象转字符串,或者字符串转对象
  13362. * @param {object | string} customStyle 需要转换的目标
  13363. * @param {String} target 转换的目的,object-转为对象,string-转为字符串
  13364. * @returns {object|string}
  13365. */
  13366. function addStyle(customStyle) {
  13367. var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'object';
  13368. // 字符串转字符串,对象转对象情形,直接返回
  13369. if (_test.default.empty(customStyle) || (0, _typeof2.default)(customStyle) === 'object' && target === 'object' || target === 'string' && typeof customStyle === 'string') {
  13370. return customStyle;
  13371. }
  13372. // 字符串转对象
  13373. if (target === 'object') {
  13374. // 去除字符串样式中的两端空格(中间的空格不能去掉,比如padding: 20px 0如果去掉了就错了),空格是无用的
  13375. customStyle = trim(customStyle);
  13376. // 根据";"将字符串转为数组形式
  13377. var styleArray = customStyle.split(';');
  13378. var style = {};
  13379. // 历遍数组,拼接成对象
  13380. for (var i = 0; i < styleArray.length; i++) {
  13381. // 'font-size:20px;color:red;',如此最后字符串有";"的话,会导致styleArray最后一个元素为空字符串,这里需要过滤
  13382. if (styleArray[i]) {
  13383. var item = styleArray[i].split(':');
  13384. style[trim(item[0])] = trim(item[1]);
  13385. }
  13386. }
  13387. return style;
  13388. }
  13389. // 这里为对象转字符串形式
  13390. var string = '';
  13391. for (var _i2 in customStyle) {
  13392. // 驼峰转为中划线的形式,否则css内联样式,无法识别驼峰样式属性名
  13393. var key = _i2.replace(/([A-Z])/g, '-$1').toLowerCase();
  13394. string += "".concat(key, ":").concat(customStyle[_i2], ";");
  13395. }
  13396. // 去除两端空格
  13397. return trim(string);
  13398. }
  13399. /**
  13400. * @description 添加单位,如果有rpx,upx,%,px等单位结尾或者值为auto,直接返回,否则加上px单位结尾
  13401. * @param {string|number} value 需要添加单位的值
  13402. * @param {string} unit 添加的单位名 比如px
  13403. */
  13404. function addUnit() {
  13405. var _uni$$u$config$unit, _uni, _uni$$u, _uni$$u$config;
  13406. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'auto';
  13407. 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';
  13408. value = String(value);
  13409. // 用uView内置验证规则中的number判断是否为数值
  13410. return _test.default.number(value) ? "".concat(value).concat(unit) : value;
  13411. }
  13412. /**
  13413. * @description 深度克隆
  13414. * @param {object} obj 需要深度克隆的对象
  13415. * @param cache 缓存
  13416. * @returns {*} 克隆后的对象或者原值(不是对象)
  13417. */
  13418. function deepClone(obj) {
  13419. var cache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new WeakMap();
  13420. if (obj === null || (0, _typeof2.default)(obj) !== 'object') return obj;
  13421. if (cache.has(obj)) return cache.get(obj);
  13422. var clone;
  13423. if (obj instanceof Date) {
  13424. clone = new Date(obj.getTime());
  13425. } else if (obj instanceof RegExp) {
  13426. clone = new RegExp(obj);
  13427. } else if (obj instanceof Map) {
  13428. clone = new Map(Array.from(obj, function (_ref) {
  13429. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  13430. key = _ref2[0],
  13431. value = _ref2[1];
  13432. return [key, deepClone(value, cache)];
  13433. }));
  13434. } else if (obj instanceof Set) {
  13435. clone = new Set(Array.from(obj, function (value) {
  13436. return deepClone(value, cache);
  13437. }));
  13438. } else if (Array.isArray(obj)) {
  13439. clone = obj.map(function (value) {
  13440. return deepClone(value, cache);
  13441. });
  13442. } else if (Object.prototype.toString.call(obj) === '[object Object]') {
  13443. clone = Object.create(Object.getPrototypeOf(obj));
  13444. cache.set(obj, clone);
  13445. for (var _i3 = 0, _Object$entries = Object.entries(obj); _i3 < _Object$entries.length; _i3++) {
  13446. var _Object$entries$_i = (0, _slicedToArray2.default)(_Object$entries[_i3], 2),
  13447. key = _Object$entries$_i[0],
  13448. value = _Object$entries$_i[1];
  13449. clone[key] = deepClone(value, cache);
  13450. }
  13451. } else {
  13452. clone = Object.assign({}, obj);
  13453. }
  13454. cache.set(obj, clone);
  13455. return clone;
  13456. }
  13457. /**
  13458. * @description JS对象深度合并
  13459. * @param {object} target 需要拷贝的对象
  13460. * @param {object} source 拷贝的来源对象
  13461. * @returns {object|boolean} 深度合并后的对象或者false(入参有不是对象)
  13462. */
  13463. function deepMerge() {
  13464. var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13465. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  13466. target = deepClone(target);
  13467. if ((0, _typeof2.default)(target) !== 'object' || target === null || (0, _typeof2.default)(source) !== 'object' || source === null) return target;
  13468. var merged = Array.isArray(target) ? target.slice() : Object.assign({}, target);
  13469. for (var prop in source) {
  13470. if (!source.hasOwnProperty(prop)) continue;
  13471. var sourceValue = source[prop];
  13472. var targetValue = merged[prop];
  13473. if (sourceValue instanceof Date) {
  13474. merged[prop] = new Date(sourceValue);
  13475. } else if (sourceValue instanceof RegExp) {
  13476. merged[prop] = new RegExp(sourceValue);
  13477. } else if (sourceValue instanceof Map) {
  13478. merged[prop] = new Map(sourceValue);
  13479. } else if (sourceValue instanceof Set) {
  13480. merged[prop] = new Set(sourceValue);
  13481. } else if ((0, _typeof2.default)(sourceValue) === 'object' && sourceValue !== null) {
  13482. merged[prop] = deepMerge(targetValue, sourceValue);
  13483. } else {
  13484. merged[prop] = sourceValue;
  13485. }
  13486. }
  13487. return merged;
  13488. }
  13489. /**
  13490. * @description error提示
  13491. * @param {*} err 错误内容
  13492. */
  13493. function error(err) {
  13494. // 开发环境才提示,生产环境不会提示
  13495. if (true) {
  13496. console.error("uView\u63D0\u793A\uFF1A".concat(err));
  13497. }
  13498. }
  13499. /**
  13500. * @description 打乱数组
  13501. * @param {array} array 需要打乱的数组
  13502. * @returns {array} 打乱后的数组
  13503. */
  13504. function randomArray() {
  13505. var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  13506. // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
  13507. return array.sort(function () {
  13508. return Math.random() - 0.5;
  13509. });
  13510. }
  13511. // padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
  13512. // 所以这里做一个兼容polyfill的兼容处理
  13513. if (!String.prototype.padStart) {
  13514. // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
  13515. String.prototype.padStart = function (maxLength) {
  13516. var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
  13517. if (Object.prototype.toString.call(fillString) !== '[object String]') {
  13518. throw new TypeError('fillString must be String');
  13519. }
  13520. var str = this;
  13521. // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
  13522. if (str.length >= maxLength) return String(str);
  13523. var fillLength = maxLength - str.length;
  13524. var times = Math.ceil(fillLength / fillString.length);
  13525. while (times >>= 1) {
  13526. fillString += fillString;
  13527. if (times === 1) {
  13528. fillString += fillString;
  13529. }
  13530. }
  13531. return fillString.slice(0, fillLength) + str;
  13532. };
  13533. }
  13534. /**
  13535. * @description 格式化时间
  13536. * @param {String|Number} dateTime 需要格式化的时间戳
  13537. * @param {String} fmt 格式化规则 yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合 默认yyyy-mm-dd
  13538. * @returns {string} 返回格式化后的字符串
  13539. */
  13540. function timeFormat() {
  13541. var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  13542. var formatStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  13543. var date;
  13544. // 若传入时间为假值,则取当前时间
  13545. if (!dateTime) {
  13546. date = new Date();
  13547. }
  13548. // 若为unix秒时间戳,则转为毫秒时间戳(逻辑有点奇怪,但不敢改,以保证历史兼容)
  13549. else if (/^\d{10}$/.test(dateTime === null || dateTime === void 0 ? void 0 : dateTime.toString().trim())) {
  13550. date = new Date(dateTime * 1000);
  13551. }
  13552. // 若用户传入字符串格式时间戳,new Date无法解析,需做兼容
  13553. else if (typeof dateTime === 'string' && /^\d+$/.test(dateTime.trim())) {
  13554. date = new Date(Number(dateTime));
  13555. }
  13556. // 处理平台性差异,在Safari/Webkit中,new Date仅支持/作为分割符的字符串时间
  13557. // 处理 '2022-07-10 01:02:03',跳过 '2022-07-10T01:02:03'
  13558. else if (typeof dateTime === 'string' && dateTime.includes('-') && !dateTime.includes('T')) {
  13559. date = new Date(dateTime.replace(/-/g, '/'));
  13560. }
  13561. // 其他都认为符合 RFC 2822 规范
  13562. else {
  13563. date = new Date(dateTime);
  13564. }
  13565. var timeSource = {
  13566. 'y': date.getFullYear().toString(),
  13567. // 年
  13568. 'm': (date.getMonth() + 1).toString().padStart(2, '0'),
  13569. // 月
  13570. 'd': date.getDate().toString().padStart(2, '0'),
  13571. // 日
  13572. 'h': date.getHours().toString().padStart(2, '0'),
  13573. // 时
  13574. 'M': date.getMinutes().toString().padStart(2, '0'),
  13575. // 分
  13576. 's': date.getSeconds().toString().padStart(2, '0') // 秒
  13577. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  13578. };
  13579. for (var key in timeSource) {
  13580. var _ref3 = new RegExp("".concat(key, "+")).exec(formatStr) || [],
  13581. _ref4 = (0, _slicedToArray2.default)(_ref3, 1),
  13582. ret = _ref4[0];
  13583. if (ret) {
  13584. // 年可能只需展示两位
  13585. var beginIndex = key === 'y' && ret.length === 2 ? 2 : 0;
  13586. formatStr = formatStr.replace(ret, timeSource[key].slice(beginIndex));
  13587. }
  13588. }
  13589. return formatStr;
  13590. }
  13591. /**
  13592. * @description 时间戳转为多久之前
  13593. * @param {String|Number} timestamp 时间戳
  13594. * @param {String|Boolean} format
  13595. * 格式化规则如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
  13596. * 如果为布尔值false,无论什么时间,都返回多久以前的格式
  13597. * @returns {string} 转化后的内容
  13598. */
  13599. function timeFrom() {
  13600. var timestamp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  13601. var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  13602. if (timestamp == null) timestamp = Number(new Date());
  13603. timestamp = parseInt(timestamp);
  13604. // 判断用户输入的时间戳是秒还是毫秒,一般前端js获取的时间戳是毫秒(13位),后端传过来的为秒(10位)
  13605. if (timestamp.toString().length == 10) timestamp *= 1000;
  13606. var timer = new Date().getTime() - timestamp;
  13607. timer = parseInt(timer / 1000);
  13608. // 如果小于5分钟,则返回"刚刚",其他以此类推
  13609. var tips = '';
  13610. switch (true) {
  13611. case timer < 300:
  13612. tips = '刚刚';
  13613. break;
  13614. case timer >= 300 && timer < 3600:
  13615. tips = "".concat(parseInt(timer / 60), "\u5206\u949F\u524D");
  13616. break;
  13617. case timer >= 3600 && timer < 86400:
  13618. tips = "".concat(parseInt(timer / 3600), "\u5C0F\u65F6\u524D");
  13619. break;
  13620. case timer >= 86400 && timer < 2592000:
  13621. tips = "".concat(parseInt(timer / 86400), "\u5929\u524D");
  13622. break;
  13623. default:
  13624. // 如果format为false,则无论什么时间戳,都显示xx之前
  13625. if (format === false) {
  13626. if (timer >= 2592000 && timer < 365 * 86400) {
  13627. tips = "".concat(parseInt(timer / (86400 * 30)), "\u4E2A\u6708\u524D");
  13628. } else {
  13629. tips = "".concat(parseInt(timer / (86400 * 365)), "\u5E74\u524D");
  13630. }
  13631. } else {
  13632. tips = timeFormat(timestamp, format);
  13633. }
  13634. }
  13635. return tips;
  13636. }
  13637. /**
  13638. * @description 去除空格
  13639. * @param String str 需要去除空格的字符串
  13640. * @param String pos both(左右)|left|right|all 默认both
  13641. */
  13642. function trim(str) {
  13643. var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
  13644. str = String(str);
  13645. if (pos == 'both') {
  13646. return str.replace(/^\s+|\s+$/g, '');
  13647. }
  13648. if (pos == 'left') {
  13649. return str.replace(/^\s*/, '');
  13650. }
  13651. if (pos == 'right') {
  13652. return str.replace(/(\s*$)/g, '');
  13653. }
  13654. if (pos == 'all') {
  13655. return str.replace(/\s+/g, '');
  13656. }
  13657. return str;
  13658. }
  13659. /**
  13660. * @description 对象转url参数
  13661. * @param {object} data,对象
  13662. * @param {Boolean} isPrefix,是否自动加上"?"
  13663. * @param {string} arrayFormat 规则 indices|brackets|repeat|comma
  13664. */
  13665. function queryParams() {
  13666. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13667. var isPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13668. var arrayFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'brackets';
  13669. var prefix = isPrefix ? '?' : '';
  13670. var _result = [];
  13671. if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';
  13672. var _loop = function _loop(key) {
  13673. var value = data[key];
  13674. // 去掉为空的参数
  13675. if (['', undefined, null].indexOf(value) >= 0) {
  13676. return "continue";
  13677. }
  13678. // 如果值为数组,另行处理
  13679. if (value.constructor === Array) {
  13680. // e.g. {ids: [1, 2, 3]}
  13681. switch (arrayFormat) {
  13682. case 'indices':
  13683. // 结果: ids[0]=1&ids[1]=2&ids[2]=3
  13684. for (var i = 0; i < value.length; i++) {
  13685. _result.push("".concat(key, "[").concat(i, "]=").concat(value[i]));
  13686. }
  13687. break;
  13688. case 'brackets':
  13689. // 结果: ids[]=1&ids[]=2&ids[]=3
  13690. value.forEach(function (_value) {
  13691. _result.push("".concat(key, "[]=").concat(_value));
  13692. });
  13693. break;
  13694. case 'repeat':
  13695. // 结果: ids=1&ids=2&ids=3
  13696. value.forEach(function (_value) {
  13697. _result.push("".concat(key, "=").concat(_value));
  13698. });
  13699. break;
  13700. case 'comma':
  13701. // 结果: ids=1,2,3
  13702. var commaStr = '';
  13703. value.forEach(function (_value) {
  13704. commaStr += (commaStr ? ',' : '') + _value;
  13705. });
  13706. _result.push("".concat(key, "=").concat(commaStr));
  13707. break;
  13708. default:
  13709. value.forEach(function (_value) {
  13710. _result.push("".concat(key, "[]=").concat(_value));
  13711. });
  13712. }
  13713. } else {
  13714. _result.push("".concat(key, "=").concat(value));
  13715. }
  13716. };
  13717. for (var key in data) {
  13718. var _ret = _loop(key);
  13719. if (_ret === "continue") continue;
  13720. }
  13721. return _result.length ? prefix + _result.join('&') : '';
  13722. }
  13723. /**
  13724. * 显示消息提示框
  13725. * @param {String} title 提示的内容,长度与 icon 取值有关。
  13726. * @param {Number} duration 提示的延迟时间,单位毫秒,默认:2000
  13727. */
  13728. function toast(title) {
  13729. var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
  13730. uni.showToast({
  13731. title: String(title),
  13732. icon: 'none',
  13733. duration: duration
  13734. });
  13735. }
  13736. /**
  13737. * @description 根据主题type值,获取对应的图标
  13738. * @param {String} type 主题名称,primary|info|error|warning|success
  13739. * @param {boolean} fill 是否使用fill填充实体的图标
  13740. */
  13741. function type2icon() {
  13742. var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';
  13743. var fill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13744. // 如果非预置值,默认为success
  13745. if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success';
  13746. var iconName = '';
  13747. // 目前(2019-12-12),info和primary使用同一个图标
  13748. switch (type) {
  13749. case 'primary':
  13750. iconName = 'info-circle';
  13751. break;
  13752. case 'info':
  13753. iconName = 'info-circle';
  13754. break;
  13755. case 'error':
  13756. iconName = 'close-circle';
  13757. break;
  13758. case 'warning':
  13759. iconName = 'error-circle';
  13760. break;
  13761. case 'success':
  13762. iconName = 'checkmark-circle';
  13763. break;
  13764. default:
  13765. iconName = 'checkmark-circle';
  13766. }
  13767. // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的
  13768. if (fill) iconName += '-fill';
  13769. return iconName;
  13770. }
  13771. /**
  13772. * @description 数字格式化
  13773. * @param {number|string} number 要格式化的数字
  13774. * @param {number} decimals 保留几位小数
  13775. * @param {string} decimalPoint 小数点符号
  13776. * @param {string} thousandsSeparator 千分位符号
  13777. * @returns {string} 格式化后的数字
  13778. */
  13779. function priceFormat(number) {
  13780. var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  13781. var decimalPoint = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.';
  13782. var thousandsSeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ',';
  13783. number = "".concat(number).replace(/[^0-9+-Ee.]/g, '');
  13784. var n = !isFinite(+number) ? 0 : +number;
  13785. var prec = !isFinite(+decimals) ? 0 : Math.abs(decimals);
  13786. var sep = typeof thousandsSeparator === 'undefined' ? ',' : thousandsSeparator;
  13787. var dec = typeof decimalPoint === 'undefined' ? '.' : decimalPoint;
  13788. var s = '';
  13789. s = (prec ? (0, _digit.round)(n, prec) + '' : "".concat(Math.round(n))).split('.');
  13790. var re = /(-?\d+)(\d{3})/;
  13791. while (re.test(s[0])) {
  13792. s[0] = s[0].replace(re, "$1".concat(sep, "$2"));
  13793. }
  13794. if ((s[1] || '').length < prec) {
  13795. s[1] = s[1] || '';
  13796. s[1] += new Array(prec - s[1].length + 1).join('0');
  13797. }
  13798. return s.join(dec);
  13799. }
  13800. /**
  13801. * @description 获取duration值
  13802. * 如果带有ms或者s直接返回,如果大于一定值,认为是ms单位,小于一定值,认为是s单位
  13803. * 比如以30位阈值,那么300大于30,可以理解为用户想要的是300ms,而不是想花300s去执行一个动画
  13804. * @param {String|number} value 比如: "1s"|"100ms"|1|100
  13805. * @param {boolean} unit 提示: 如果是false 默认返回number
  13806. * @return {string|number}
  13807. */
  13808. function getDuration(value) {
  13809. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13810. var valueNum = parseInt(value);
  13811. if (unit) {
  13812. if (/s$/.test(value)) return value;
  13813. return value > 30 ? "".concat(value, "ms") : "".concat(value, "s");
  13814. }
  13815. if (/ms$/.test(value)) return valueNum;
  13816. if (/s$/.test(value)) return valueNum > 30 ? valueNum : valueNum * 1000;
  13817. return valueNum;
  13818. }
  13819. /**
  13820. * @description 日期的月或日补零操作
  13821. * @param {String} value 需要补零的值
  13822. */
  13823. function padZero(value) {
  13824. return "00".concat(value).slice(-2);
  13825. }
  13826. /**
  13827. * @description 在u-form的子组件内容发生变化,或者失去焦点时,尝试通知u-form执行校验方法
  13828. * @param {*} instance
  13829. * @param {*} event
  13830. */
  13831. function formValidate(instance, event) {
  13832. var formItem = uni.$u.$parent.call(instance, 'u-form-item');
  13833. var form = uni.$u.$parent.call(instance, 'u-form');
  13834. // 如果发生变化的input或者textarea等,其父组件中有u-form-item或者u-form等,就执行form的validate方法
  13835. // 同时将form-item的pros传递给form,让其进行精确对象验证
  13836. if (formItem && form) {
  13837. form.validateField(formItem.prop, function () {}, event);
  13838. }
  13839. }
  13840. /**
  13841. * @description 获取某个对象下的属性,用于通过类似'a.b.c'的形式去获取一个对象的的属性的形式
  13842. * @param {object} obj 对象
  13843. * @param {string} key 需要获取的属性字段
  13844. * @returns {*}
  13845. */
  13846. function getProperty(obj, key) {
  13847. if (!obj) {
  13848. return;
  13849. }
  13850. if (typeof key !== 'string' || key === '') {
  13851. return '';
  13852. }
  13853. if (key.indexOf('.') !== -1) {
  13854. var keys = key.split('.');
  13855. var firstObj = obj[keys[0]] || {};
  13856. for (var i = 1; i < keys.length; i++) {
  13857. if (firstObj) {
  13858. firstObj = firstObj[keys[i]];
  13859. }
  13860. }
  13861. return firstObj;
  13862. }
  13863. return obj[key];
  13864. }
  13865. /**
  13866. * @description 设置对象的属性值,如果'a.b.c'的形式进行设置
  13867. * @param {object} obj 对象
  13868. * @param {string} key 需要设置的属性
  13869. * @param {string} value 设置的值
  13870. */
  13871. function setProperty(obj, key, value) {
  13872. if (!obj) {
  13873. return;
  13874. }
  13875. // 递归赋值
  13876. var inFn = function inFn(_obj, keys, v) {
  13877. // 最后一个属性key
  13878. if (keys.length === 1) {
  13879. _obj[keys[0]] = v;
  13880. return;
  13881. }
  13882. // 0~length-1个key
  13883. while (keys.length > 1) {
  13884. var k = keys[0];
  13885. if (!_obj[k] || (0, _typeof2.default)(_obj[k]) !== 'object') {
  13886. _obj[k] = {};
  13887. }
  13888. var _key = keys.shift();
  13889. // 自调用判断是否存在属性,不存在则自动创建对象
  13890. inFn(_obj[k], keys, v);
  13891. }
  13892. };
  13893. if (typeof key !== 'string' || key === '') {} else if (key.indexOf('.') !== -1) {
  13894. // 支持多层级赋值操作
  13895. var keys = key.split('.');
  13896. inFn(obj, keys, value);
  13897. } else {
  13898. obj[key] = value;
  13899. }
  13900. }
  13901. /**
  13902. * @description 获取当前页面路径
  13903. */
  13904. function page() {
  13905. var _pages$route, _pages;
  13906. var pages = getCurrentPages();
  13907. // 某些特殊情况下(比如页面进行redirectTo时的一些时机),pages可能为空数组
  13908. return "/".concat((_pages$route = (_pages = pages[pages.length - 1]) === null || _pages === void 0 ? void 0 : _pages.route) !== null && _pages$route !== void 0 ? _pages$route : '');
  13909. }
  13910. /**
  13911. * @description 获取当前路由栈实例数组
  13912. */
  13913. function pages() {
  13914. var pages = getCurrentPages();
  13915. return pages;
  13916. }
  13917. /**
  13918. * 获取页面历史栈指定层实例
  13919. * @param back {number} [0] - 0或者负数,表示获取历史栈的哪一层,0表示获取当前页面实例,-1 表示获取上一个页面实例。默认0。
  13920. */
  13921. function getHistoryPage() {
  13922. var back = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  13923. var pages = getCurrentPages();
  13924. var len = pages.length;
  13925. return pages[len - 1 + back];
  13926. }
  13927. /**
  13928. * @description 修改uView内置属性值
  13929. * @param {object} props 修改内置props属性
  13930. * @param {object} config 修改内置config属性
  13931. * @param {object} color 修改内置color属性
  13932. * @param {object} zIndex 修改内置zIndex属性
  13933. */
  13934. function setConfig(_ref5) {
  13935. var _ref5$props = _ref5.props,
  13936. props = _ref5$props === void 0 ? {} : _ref5$props,
  13937. _ref5$config = _ref5.config,
  13938. config = _ref5$config === void 0 ? {} : _ref5$config,
  13939. _ref5$color = _ref5.color,
  13940. color = _ref5$color === void 0 ? {} : _ref5$color,
  13941. _ref5$zIndex = _ref5.zIndex,
  13942. zIndex = _ref5$zIndex === void 0 ? {} : _ref5$zIndex;
  13943. var deepMerge = uni.$u.deepMerge;
  13944. uni.$u.config = deepMerge(uni.$u.config, config);
  13945. uni.$u.props = deepMerge(uni.$u.props, props);
  13946. uni.$u.color = deepMerge(uni.$u.color, color);
  13947. uni.$u.zIndex = deepMerge(uni.$u.zIndex, zIndex);
  13948. }
  13949. var _default = {
  13950. range: range,
  13951. getPx: getPx,
  13952. sleep: sleep,
  13953. os: os,
  13954. sys: sys,
  13955. random: random,
  13956. guid: guid,
  13957. $parent: $parent,
  13958. addStyle: addStyle,
  13959. addUnit: addUnit,
  13960. deepClone: deepClone,
  13961. deepMerge: deepMerge,
  13962. error: error,
  13963. randomArray: randomArray,
  13964. timeFormat: timeFormat,
  13965. timeFrom: timeFrom,
  13966. trim: trim,
  13967. queryParams: queryParams,
  13968. toast: toast,
  13969. type2icon: type2icon,
  13970. priceFormat: priceFormat,
  13971. getDuration: getDuration,
  13972. padZero: padZero,
  13973. formValidate: formValidate,
  13974. getProperty: getProperty,
  13975. setProperty: setProperty,
  13976. page: page,
  13977. pages: pages,
  13978. getHistoryPage: getHistoryPage,
  13979. setConfig: setConfig
  13980. };
  13981. exports.default = _default;
  13982. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  13983. /***/ }),
  13984. /* 68 */
  13985. /*!************************************************************************!*\
  13986. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/function/digit.js ***!
  13987. \************************************************************************/
  13988. /*! no static exports found */
  13989. /***/ (function(module, exports, __webpack_require__) {
  13990. "use strict";
  13991. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13992. Object.defineProperty(exports, "__esModule", {
  13993. value: true
  13994. });
  13995. exports.default = void 0;
  13996. exports.divide = divide;
  13997. exports.enableBoundaryChecking = enableBoundaryChecking;
  13998. exports.minus = minus;
  13999. exports.plus = plus;
  14000. exports.round = round;
  14001. exports.times = times;
  14002. var _toArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toArray */ 69));
  14003. var _boundaryCheckingState = true; // 是否进行越界检查的全局开关
  14004. /**
  14005. * 把错误的数据转正
  14006. * @private
  14007. * @example strip(0.09999999999999998)=0.1
  14008. */
  14009. function strip(num) {
  14010. var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 15;
  14011. return +parseFloat(Number(num).toPrecision(precision));
  14012. }
  14013. /**
  14014. * Return digits length of a number
  14015. * @private
  14016. * @param {*number} num Input number
  14017. */
  14018. function digitLength(num) {
  14019. // Get digit length of e
  14020. var eSplit = num.toString().split(/[eE]/);
  14021. var len = (eSplit[0].split('.')[1] || '').length - +(eSplit[1] || 0);
  14022. return len > 0 ? len : 0;
  14023. }
  14024. /**
  14025. * 把小数转成整数,如果是小数则放大成整数
  14026. * @private
  14027. * @param {*number} num 输入数
  14028. */
  14029. function float2Fixed(num) {
  14030. if (num.toString().indexOf('e') === -1) {
  14031. return Number(num.toString().replace('.', ''));
  14032. }
  14033. var dLen = digitLength(num);
  14034. return dLen > 0 ? strip(Number(num) * Math.pow(10, dLen)) : Number(num);
  14035. }
  14036. /**
  14037. * 检测数字是否越界,如果越界给出提示
  14038. * @private
  14039. * @param {*number} num 输入数
  14040. */
  14041. function checkBoundary(num) {
  14042. if (_boundaryCheckingState) {
  14043. if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) {
  14044. console.warn("".concat(num, " \u8D85\u51FA\u4E86\u7CBE\u5EA6\u9650\u5236\uFF0C\u7ED3\u679C\u53EF\u80FD\u4E0D\u6B63\u786E"));
  14045. }
  14046. }
  14047. }
  14048. /**
  14049. * 把递归操作扁平迭代化
  14050. * @param {number[]} arr 要操作的数字数组
  14051. * @param {function} operation 迭代操作
  14052. * @private
  14053. */
  14054. function iteratorOperation(arr, operation) {
  14055. var _arr = (0, _toArray2.default)(arr),
  14056. num1 = _arr[0],
  14057. num2 = _arr[1],
  14058. others = _arr.slice(2);
  14059. var res = operation(num1, num2);
  14060. others.forEach(function (num) {
  14061. res = operation(res, num);
  14062. });
  14063. return res;
  14064. }
  14065. /**
  14066. * 高精度乘法
  14067. * @export
  14068. */
  14069. function times() {
  14070. for (var _len = arguments.length, nums = new Array(_len), _key = 0; _key < _len; _key++) {
  14071. nums[_key] = arguments[_key];
  14072. }
  14073. if (nums.length > 2) {
  14074. return iteratorOperation(nums, times);
  14075. }
  14076. var num1 = nums[0],
  14077. num2 = nums[1];
  14078. var num1Changed = float2Fixed(num1);
  14079. var num2Changed = float2Fixed(num2);
  14080. var baseNum = digitLength(num1) + digitLength(num2);
  14081. var leftValue = num1Changed * num2Changed;
  14082. checkBoundary(leftValue);
  14083. return leftValue / Math.pow(10, baseNum);
  14084. }
  14085. /**
  14086. * 高精度加法
  14087. * @export
  14088. */
  14089. function plus() {
  14090. for (var _len2 = arguments.length, nums = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  14091. nums[_key2] = arguments[_key2];
  14092. }
  14093. if (nums.length > 2) {
  14094. return iteratorOperation(nums, plus);
  14095. }
  14096. var num1 = nums[0],
  14097. num2 = nums[1];
  14098. // 取最大的小数位
  14099. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  14100. // 把小数都转为整数然后再计算
  14101. return (times(num1, baseNum) + times(num2, baseNum)) / baseNum;
  14102. }
  14103. /**
  14104. * 高精度减法
  14105. * @export
  14106. */
  14107. function minus() {
  14108. for (var _len3 = arguments.length, nums = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  14109. nums[_key3] = arguments[_key3];
  14110. }
  14111. if (nums.length > 2) {
  14112. return iteratorOperation(nums, minus);
  14113. }
  14114. var num1 = nums[0],
  14115. num2 = nums[1];
  14116. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  14117. return (times(num1, baseNum) - times(num2, baseNum)) / baseNum;
  14118. }
  14119. /**
  14120. * 高精度除法
  14121. * @export
  14122. */
  14123. function divide() {
  14124. for (var _len4 = arguments.length, nums = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  14125. nums[_key4] = arguments[_key4];
  14126. }
  14127. if (nums.length > 2) {
  14128. return iteratorOperation(nums, divide);
  14129. }
  14130. var num1 = nums[0],
  14131. num2 = nums[1];
  14132. var num1Changed = float2Fixed(num1);
  14133. var num2Changed = float2Fixed(num2);
  14134. checkBoundary(num1Changed);
  14135. checkBoundary(num2Changed);
  14136. // 重要,这里必须用strip进行修正
  14137. return times(num1Changed / num2Changed, strip(Math.pow(10, digitLength(num2) - digitLength(num1))));
  14138. }
  14139. /**
  14140. * 四舍五入
  14141. * @export
  14142. */
  14143. function round(num, ratio) {
  14144. var base = Math.pow(10, ratio);
  14145. var result = divide(Math.round(Math.abs(times(num, base))), base);
  14146. if (num < 0 && result !== 0) {
  14147. result = times(result, -1);
  14148. }
  14149. // 位数不足则补0
  14150. return result;
  14151. }
  14152. /**
  14153. * 是否进行边界检查,默认开启
  14154. * @param flag 标记开关,true 为开启,false 为关闭,默认为 true
  14155. * @export
  14156. */
  14157. function enableBoundaryChecking() {
  14158. var flag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  14159. _boundaryCheckingState = flag;
  14160. }
  14161. var _default = {
  14162. times: times,
  14163. plus: plus,
  14164. minus: minus,
  14165. divide: divide,
  14166. round: round,
  14167. enableBoundaryChecking: enableBoundaryChecking
  14168. };
  14169. exports.default = _default;
  14170. /***/ }),
  14171. /* 69 */
  14172. /*!********************************************************!*\
  14173. !*** ./node_modules/@babel/runtime/helpers/toArray.js ***!
  14174. \********************************************************/
  14175. /*! no static exports found */
  14176. /***/ (function(module, exports, __webpack_require__) {
  14177. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  14178. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  14179. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  14180. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  14181. function _toArray(arr) {
  14182. return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
  14183. }
  14184. module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  14185. /***/ }),
  14186. /* 70 */
  14187. /*!***********************************************************************!*\
  14188. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/config.js ***!
  14189. \***********************************************************************/
  14190. /*! no static exports found */
  14191. /***/ (function(module, exports, __webpack_require__) {
  14192. "use strict";
  14193. Object.defineProperty(exports, "__esModule", {
  14194. value: true
  14195. });
  14196. exports.default = void 0;
  14197. // 此版本发布于2023-03-27
  14198. var version = '2.0.36';
  14199. // 开发环境才提示,生产环境不会提示
  14200. if (true) {
  14201. console.log("\n %c uView V".concat(version, " %c https://uviewui.com/ \n\n"), 'color: #ffffff; background: #3c9cff; padding:5px 0; border-radius: 5px;');
  14202. }
  14203. var _default = {
  14204. v: version,
  14205. version: version,
  14206. // 主题名称
  14207. type: ['primary', 'success', 'info', 'error', 'warning'],
  14208. // 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持
  14209. color: {
  14210. 'u-primary': '#2979ff',
  14211. 'u-warning': '#ff9900',
  14212. 'u-success': '#19be6b',
  14213. 'u-error': '#fa3534',
  14214. 'u-info': '#909399',
  14215. 'u-main-color': '#303133',
  14216. 'u-content-color': '#606266',
  14217. 'u-tips-color': '#909399',
  14218. 'u-light-color': '#c0c4cc'
  14219. },
  14220. // 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx
  14221. unit: 'px'
  14222. };
  14223. exports.default = _default;
  14224. /***/ }),
  14225. /* 71 */
  14226. /*!**********************************************************************!*\
  14227. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props.js ***!
  14228. \**********************************************************************/
  14229. /*! no static exports found */
  14230. /***/ (function(module, exports, __webpack_require__) {
  14231. "use strict";
  14232. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  14233. Object.defineProperty(exports, "__esModule", {
  14234. value: true
  14235. });
  14236. exports.default = void 0;
  14237. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  14238. var _config = _interopRequireDefault(__webpack_require__(/*! ./config */ 70));
  14239. var _actionSheet = _interopRequireDefault(__webpack_require__(/*! ./props/actionSheet.js */ 72));
  14240. var _album = _interopRequireDefault(__webpack_require__(/*! ./props/album.js */ 73));
  14241. var _alert = _interopRequireDefault(__webpack_require__(/*! ./props/alert.js */ 74));
  14242. var _avatar = _interopRequireDefault(__webpack_require__(/*! ./props/avatar */ 75));
  14243. var _avatarGroup = _interopRequireDefault(__webpack_require__(/*! ./props/avatarGroup */ 76));
  14244. var _backtop = _interopRequireDefault(__webpack_require__(/*! ./props/backtop */ 77));
  14245. var _badge = _interopRequireDefault(__webpack_require__(/*! ./props/badge */ 78));
  14246. var _button = _interopRequireDefault(__webpack_require__(/*! ./props/button */ 79));
  14247. var _calendar = _interopRequireDefault(__webpack_require__(/*! ./props/calendar */ 80));
  14248. var _carKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/carKeyboard */ 81));
  14249. var _cell = _interopRequireDefault(__webpack_require__(/*! ./props/cell */ 82));
  14250. var _cellGroup = _interopRequireDefault(__webpack_require__(/*! ./props/cellGroup */ 83));
  14251. var _checkbox = _interopRequireDefault(__webpack_require__(/*! ./props/checkbox */ 84));
  14252. var _checkboxGroup = _interopRequireDefault(__webpack_require__(/*! ./props/checkboxGroup */ 85));
  14253. var _circleProgress = _interopRequireDefault(__webpack_require__(/*! ./props/circleProgress */ 86));
  14254. var _code = _interopRequireDefault(__webpack_require__(/*! ./props/code */ 87));
  14255. var _codeInput = _interopRequireDefault(__webpack_require__(/*! ./props/codeInput */ 88));
  14256. var _col = _interopRequireDefault(__webpack_require__(/*! ./props/col */ 89));
  14257. var _collapse = _interopRequireDefault(__webpack_require__(/*! ./props/collapse */ 90));
  14258. var _collapseItem = _interopRequireDefault(__webpack_require__(/*! ./props/collapseItem */ 91));
  14259. var _columnNotice = _interopRequireDefault(__webpack_require__(/*! ./props/columnNotice */ 92));
  14260. var _countDown = _interopRequireDefault(__webpack_require__(/*! ./props/countDown */ 93));
  14261. var _countTo = _interopRequireDefault(__webpack_require__(/*! ./props/countTo */ 94));
  14262. var _datetimePicker = _interopRequireDefault(__webpack_require__(/*! ./props/datetimePicker */ 95));
  14263. var _divider = _interopRequireDefault(__webpack_require__(/*! ./props/divider */ 96));
  14264. var _empty = _interopRequireDefault(__webpack_require__(/*! ./props/empty */ 97));
  14265. var _form = _interopRequireDefault(__webpack_require__(/*! ./props/form */ 98));
  14266. var _formItem = _interopRequireDefault(__webpack_require__(/*! ./props/formItem */ 99));
  14267. var _gap = _interopRequireDefault(__webpack_require__(/*! ./props/gap */ 100));
  14268. var _grid = _interopRequireDefault(__webpack_require__(/*! ./props/grid */ 101));
  14269. var _gridItem = _interopRequireDefault(__webpack_require__(/*! ./props/gridItem */ 102));
  14270. var _icon = _interopRequireDefault(__webpack_require__(/*! ./props/icon */ 103));
  14271. var _image = _interopRequireDefault(__webpack_require__(/*! ./props/image */ 104));
  14272. var _indexAnchor = _interopRequireDefault(__webpack_require__(/*! ./props/indexAnchor */ 105));
  14273. var _indexList = _interopRequireDefault(__webpack_require__(/*! ./props/indexList */ 106));
  14274. var _input = _interopRequireDefault(__webpack_require__(/*! ./props/input */ 107));
  14275. var _keyboard = _interopRequireDefault(__webpack_require__(/*! ./props/keyboard */ 108));
  14276. var _line = _interopRequireDefault(__webpack_require__(/*! ./props/line */ 109));
  14277. var _lineProgress = _interopRequireDefault(__webpack_require__(/*! ./props/lineProgress */ 110));
  14278. var _link = _interopRequireDefault(__webpack_require__(/*! ./props/link */ 111));
  14279. var _list = _interopRequireDefault(__webpack_require__(/*! ./props/list */ 112));
  14280. var _listItem = _interopRequireDefault(__webpack_require__(/*! ./props/listItem */ 113));
  14281. var _loadingIcon = _interopRequireDefault(__webpack_require__(/*! ./props/loadingIcon */ 114));
  14282. var _loadingPage = _interopRequireDefault(__webpack_require__(/*! ./props/loadingPage */ 115));
  14283. var _loadmore = _interopRequireDefault(__webpack_require__(/*! ./props/loadmore */ 116));
  14284. var _modal = _interopRequireDefault(__webpack_require__(/*! ./props/modal */ 117));
  14285. var _navbar = _interopRequireDefault(__webpack_require__(/*! ./props/navbar */ 118));
  14286. var _noNetwork = _interopRequireDefault(__webpack_require__(/*! ./props/noNetwork */ 120));
  14287. var _noticeBar = _interopRequireDefault(__webpack_require__(/*! ./props/noticeBar */ 121));
  14288. var _notify = _interopRequireDefault(__webpack_require__(/*! ./props/notify */ 122));
  14289. var _numberBox = _interopRequireDefault(__webpack_require__(/*! ./props/numberBox */ 123));
  14290. var _numberKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/numberKeyboard */ 124));
  14291. var _overlay = _interopRequireDefault(__webpack_require__(/*! ./props/overlay */ 125));
  14292. var _parse = _interopRequireDefault(__webpack_require__(/*! ./props/parse */ 126));
  14293. var _picker = _interopRequireDefault(__webpack_require__(/*! ./props/picker */ 127));
  14294. var _popup = _interopRequireDefault(__webpack_require__(/*! ./props/popup */ 128));
  14295. var _radio = _interopRequireDefault(__webpack_require__(/*! ./props/radio */ 129));
  14296. var _radioGroup = _interopRequireDefault(__webpack_require__(/*! ./props/radioGroup */ 130));
  14297. var _rate = _interopRequireDefault(__webpack_require__(/*! ./props/rate */ 131));
  14298. var _readMore = _interopRequireDefault(__webpack_require__(/*! ./props/readMore */ 132));
  14299. var _row = _interopRequireDefault(__webpack_require__(/*! ./props/row */ 133));
  14300. var _rowNotice = _interopRequireDefault(__webpack_require__(/*! ./props/rowNotice */ 134));
  14301. var _scrollList = _interopRequireDefault(__webpack_require__(/*! ./props/scrollList */ 135));
  14302. var _search = _interopRequireDefault(__webpack_require__(/*! ./props/search */ 136));
  14303. var _section = _interopRequireDefault(__webpack_require__(/*! ./props/section */ 137));
  14304. var _skeleton = _interopRequireDefault(__webpack_require__(/*! ./props/skeleton */ 138));
  14305. var _slider = _interopRequireDefault(__webpack_require__(/*! ./props/slider */ 139));
  14306. var _statusBar = _interopRequireDefault(__webpack_require__(/*! ./props/statusBar */ 140));
  14307. var _steps = _interopRequireDefault(__webpack_require__(/*! ./props/steps */ 141));
  14308. var _stepsItem = _interopRequireDefault(__webpack_require__(/*! ./props/stepsItem */ 142));
  14309. var _sticky = _interopRequireDefault(__webpack_require__(/*! ./props/sticky */ 143));
  14310. var _subsection = _interopRequireDefault(__webpack_require__(/*! ./props/subsection */ 144));
  14311. var _swipeAction = _interopRequireDefault(__webpack_require__(/*! ./props/swipeAction */ 145));
  14312. var _swipeActionItem = _interopRequireDefault(__webpack_require__(/*! ./props/swipeActionItem */ 146));
  14313. var _swiper = _interopRequireDefault(__webpack_require__(/*! ./props/swiper */ 147));
  14314. var _swipterIndicator = _interopRequireDefault(__webpack_require__(/*! ./props/swipterIndicator */ 148));
  14315. var _switch2 = _interopRequireDefault(__webpack_require__(/*! ./props/switch */ 149));
  14316. var _tabbar = _interopRequireDefault(__webpack_require__(/*! ./props/tabbar */ 150));
  14317. var _tabbarItem = _interopRequireDefault(__webpack_require__(/*! ./props/tabbarItem */ 151));
  14318. var _tabs = _interopRequireDefault(__webpack_require__(/*! ./props/tabs */ 152));
  14319. var _tag = _interopRequireDefault(__webpack_require__(/*! ./props/tag */ 153));
  14320. var _text = _interopRequireDefault(__webpack_require__(/*! ./props/text */ 154));
  14321. var _textarea = _interopRequireDefault(__webpack_require__(/*! ./props/textarea */ 155));
  14322. var _toast = _interopRequireDefault(__webpack_require__(/*! ./props/toast */ 156));
  14323. var _toolbar = _interopRequireDefault(__webpack_require__(/*! ./props/toolbar */ 157));
  14324. var _tooltip = _interopRequireDefault(__webpack_require__(/*! ./props/tooltip */ 158));
  14325. var _transition = _interopRequireDefault(__webpack_require__(/*! ./props/transition */ 159));
  14326. var _upload = _interopRequireDefault(__webpack_require__(/*! ./props/upload */ 160));
  14327. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  14328. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  14329. var color = _config.default.color;
  14330. 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({}, _actionSheet.default), _album.default), _alert.default), _avatar.default), _avatarGroup.default), _backtop.default), _badge.default), _button.default), _calendar.default), _carKeyboard.default), _cell.default), _cellGroup.default), _checkbox.default), _checkboxGroup.default), _circleProgress.default), _code.default), _codeInput.default), _col.default), _collapse.default), _collapseItem.default), _columnNotice.default), _countDown.default), _countTo.default), _datetimePicker.default), _divider.default), _empty.default), _form.default), _formItem.default), _gap.default), _grid.default), _gridItem.default), _icon.default), _image.default), _indexAnchor.default), _indexList.default), _input.default), _keyboard.default), _line.default), _lineProgress.default), _link.default), _list.default), _listItem.default), _loadingIcon.default), _loadingPage.default), _loadmore.default), _modal.default), _navbar.default), _noNetwork.default), _noticeBar.default), _notify.default), _numberBox.default), _numberKeyboard.default), _overlay.default), _parse.default), _picker.default), _popup.default), _radio.default), _radioGroup.default), _rate.default), _readMore.default), _row.default), _rowNotice.default), _scrollList.default), _search.default), _section.default), _skeleton.default), _slider.default), _statusBar.default), _steps.default), _stepsItem.default), _sticky.default), _subsection.default), _swipeAction.default), _swipeActionItem.default), _swiper.default), _swipterIndicator.default), _switch2.default), _tabbar.default), _tabbarItem.default), _tabs.default), _tag.default), _text.default), _textarea.default), _toast.default), _toolbar.default), _tooltip.default), _transition.default), _upload.default);
  14331. exports.default = _default;
  14332. /***/ }),
  14333. /* 72 */
  14334. /*!**********************************************************************************!*\
  14335. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/actionSheet.js ***!
  14336. \**********************************************************************************/
  14337. /*! no static exports found */
  14338. /***/ (function(module, exports, __webpack_require__) {
  14339. "use strict";
  14340. Object.defineProperty(exports, "__esModule", {
  14341. value: true
  14342. });
  14343. exports.default = void 0;
  14344. /*
  14345. * @Author : LQ
  14346. * @Description :
  14347. * @version : 1.0
  14348. * @Date : 2021-08-20 16:44:21
  14349. * @LastAuthor : LQ
  14350. * @lastTime : 2021-08-20 16:44:35
  14351. * @FilePath : /u-view2.0/uview-ui/libs/config/props/actionSheet.js
  14352. */
  14353. var _default = {
  14354. // action-sheet组件
  14355. actionSheet: {
  14356. show: false,
  14357. title: '',
  14358. description: '',
  14359. actions: function actions() {
  14360. return [];
  14361. },
  14362. index: '',
  14363. cancelText: '',
  14364. closeOnClickAction: true,
  14365. safeAreaInsetBottom: true,
  14366. openType: '',
  14367. closeOnClickOverlay: true,
  14368. round: 0
  14369. }
  14370. };
  14371. exports.default = _default;
  14372. /***/ }),
  14373. /* 73 */
  14374. /*!****************************************************************************!*\
  14375. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/album.js ***!
  14376. \****************************************************************************/
  14377. /*! no static exports found */
  14378. /***/ (function(module, exports, __webpack_require__) {
  14379. "use strict";
  14380. Object.defineProperty(exports, "__esModule", {
  14381. value: true
  14382. });
  14383. exports.default = void 0;
  14384. /*
  14385. * @Author : LQ
  14386. * @Description :
  14387. * @version : 1.0
  14388. * @Date : 2021-08-20 16:44:21
  14389. * @LastAuthor : LQ
  14390. * @lastTime : 2021-08-20 16:47:24
  14391. * @FilePath : /u-view2.0/uview-ui/libs/config/props/album.js
  14392. */
  14393. var _default = {
  14394. // album 组件
  14395. album: {
  14396. urls: function urls() {
  14397. return [];
  14398. },
  14399. keyName: '',
  14400. singleSize: 180,
  14401. multipleSize: 70,
  14402. space: 6,
  14403. singleMode: 'scaleToFill',
  14404. multipleMode: 'aspectFill',
  14405. maxCount: 9,
  14406. previewFullImage: true,
  14407. rowCount: 3,
  14408. showMore: true
  14409. }
  14410. };
  14411. exports.default = _default;
  14412. /***/ }),
  14413. /* 74 */
  14414. /*!****************************************************************************!*\
  14415. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/alert.js ***!
  14416. \****************************************************************************/
  14417. /*! no static exports found */
  14418. /***/ (function(module, exports, __webpack_require__) {
  14419. "use strict";
  14420. Object.defineProperty(exports, "__esModule", {
  14421. value: true
  14422. });
  14423. exports.default = void 0;
  14424. /*
  14425. * @Author : LQ
  14426. * @Description :
  14427. * @version : 1.0
  14428. * @Date : 2021-08-20 16:44:21
  14429. * @LastAuthor : LQ
  14430. * @lastTime : 2021-08-20 16:48:53
  14431. * @FilePath : /u-view2.0/uview-ui/libs/config/props/alert.js
  14432. */
  14433. var _default = {
  14434. // alert警告组件
  14435. alert: {
  14436. title: '',
  14437. type: 'warning',
  14438. description: '',
  14439. closable: false,
  14440. showIcon: false,
  14441. effect: 'light',
  14442. center: false,
  14443. fontSize: 14
  14444. }
  14445. };
  14446. exports.default = _default;
  14447. /***/ }),
  14448. /* 75 */
  14449. /*!*****************************************************************************!*\
  14450. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/avatar.js ***!
  14451. \*****************************************************************************/
  14452. /*! no static exports found */
  14453. /***/ (function(module, exports, __webpack_require__) {
  14454. "use strict";
  14455. Object.defineProperty(exports, "__esModule", {
  14456. value: true
  14457. });
  14458. exports.default = void 0;
  14459. /*
  14460. * @Author : LQ
  14461. * @Description :
  14462. * @version : 1.0
  14463. * @Date : 2021-08-20 16:44:21
  14464. * @LastAuthor : LQ
  14465. * @lastTime : 2021-08-20 16:49:22
  14466. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatar.js
  14467. */
  14468. var _default = {
  14469. // avatar 组件
  14470. avatar: {
  14471. src: '',
  14472. shape: 'circle',
  14473. size: 40,
  14474. mode: 'scaleToFill',
  14475. text: '',
  14476. bgColor: '#c0c4cc',
  14477. color: '#ffffff',
  14478. fontSize: 18,
  14479. icon: '',
  14480. mpAvatar: false,
  14481. randomBgColor: false,
  14482. defaultUrl: '',
  14483. colorIndex: '',
  14484. name: ''
  14485. }
  14486. };
  14487. exports.default = _default;
  14488. /***/ }),
  14489. /* 76 */
  14490. /*!**********************************************************************************!*\
  14491. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/avatarGroup.js ***!
  14492. \**********************************************************************************/
  14493. /*! no static exports found */
  14494. /***/ (function(module, exports, __webpack_require__) {
  14495. "use strict";
  14496. Object.defineProperty(exports, "__esModule", {
  14497. value: true
  14498. });
  14499. exports.default = void 0;
  14500. /*
  14501. * @Author : LQ
  14502. * @Description :
  14503. * @version : 1.0
  14504. * @Date : 2021-08-20 16:44:21
  14505. * @LastAuthor : LQ
  14506. * @lastTime : 2021-08-20 16:49:55
  14507. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatarGroup.js
  14508. */
  14509. var _default = {
  14510. // avatarGroup 组件
  14511. avatarGroup: {
  14512. urls: function urls() {
  14513. return [];
  14514. },
  14515. maxCount: 5,
  14516. shape: 'circle',
  14517. mode: 'scaleToFill',
  14518. showMore: true,
  14519. size: 40,
  14520. keyName: '',
  14521. gap: 0.5,
  14522. extraValue: 0
  14523. }
  14524. };
  14525. exports.default = _default;
  14526. /***/ }),
  14527. /* 77 */
  14528. /*!******************************************************************************!*\
  14529. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/backtop.js ***!
  14530. \******************************************************************************/
  14531. /*! no static exports found */
  14532. /***/ (function(module, exports, __webpack_require__) {
  14533. "use strict";
  14534. Object.defineProperty(exports, "__esModule", {
  14535. value: true
  14536. });
  14537. exports.default = void 0;
  14538. /*
  14539. * @Author : LQ
  14540. * @Description :
  14541. * @version : 1.0
  14542. * @Date : 2021-08-20 16:44:21
  14543. * @LastAuthor : LQ
  14544. * @lastTime : 2021-08-20 16:50:18
  14545. * @FilePath : /u-view2.0/uview-ui/libs/config/props/backtop.js
  14546. */
  14547. var _default = {
  14548. // backtop组件
  14549. backtop: {
  14550. mode: 'circle',
  14551. icon: 'arrow-upward',
  14552. text: '',
  14553. duration: 100,
  14554. scrollTop: 0,
  14555. top: 400,
  14556. bottom: 100,
  14557. right: 20,
  14558. zIndex: 9,
  14559. iconStyle: function iconStyle() {
  14560. return {
  14561. color: '#909399',
  14562. fontSize: '19px'
  14563. };
  14564. }
  14565. }
  14566. };
  14567. exports.default = _default;
  14568. /***/ }),
  14569. /* 78 */
  14570. /*!****************************************************************************!*\
  14571. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/badge.js ***!
  14572. \****************************************************************************/
  14573. /*! no static exports found */
  14574. /***/ (function(module, exports, __webpack_require__) {
  14575. "use strict";
  14576. Object.defineProperty(exports, "__esModule", {
  14577. value: true
  14578. });
  14579. exports.default = void 0;
  14580. /*
  14581. * @Author : LQ
  14582. * @Description :
  14583. * @version : 1.0
  14584. * @Date : 2021-08-20 16:44:21
  14585. * @LastAuthor : LQ
  14586. * @lastTime : 2021-08-23 19:51:50
  14587. * @FilePath : /u-view2.0/uview-ui/libs/config/props/badge.js
  14588. */
  14589. var _default = {
  14590. // 徽标数组件
  14591. badge: {
  14592. isDot: false,
  14593. value: '',
  14594. show: true,
  14595. max: 999,
  14596. type: 'error',
  14597. showZero: false,
  14598. bgColor: null,
  14599. color: null,
  14600. shape: 'circle',
  14601. numberType: 'overflow',
  14602. offset: function offset() {
  14603. return [];
  14604. },
  14605. inverted: false,
  14606. absolute: false
  14607. }
  14608. };
  14609. exports.default = _default;
  14610. /***/ }),
  14611. /* 79 */
  14612. /*!*****************************************************************************!*\
  14613. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/button.js ***!
  14614. \*****************************************************************************/
  14615. /*! no static exports found */
  14616. /***/ (function(module, exports, __webpack_require__) {
  14617. "use strict";
  14618. Object.defineProperty(exports, "__esModule", {
  14619. value: true
  14620. });
  14621. exports.default = void 0;
  14622. /*
  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:51:27
  14629. * @FilePath : /u-view2.0/uview-ui/libs/config/props/button.js
  14630. */
  14631. var _default = {
  14632. // button组件
  14633. button: {
  14634. hairline: false,
  14635. type: 'info',
  14636. size: 'normal',
  14637. shape: 'square',
  14638. plain: false,
  14639. disabled: false,
  14640. loading: false,
  14641. loadingText: '',
  14642. loadingMode: 'spinner',
  14643. loadingSize: 15,
  14644. openType: '',
  14645. formType: '',
  14646. appParameter: '',
  14647. hoverStopPropagation: true,
  14648. lang: 'en',
  14649. sessionFrom: '',
  14650. sendMessageTitle: '',
  14651. sendMessagePath: '',
  14652. sendMessageImg: '',
  14653. showMessageCard: false,
  14654. dataName: '',
  14655. throttleTime: 0,
  14656. hoverStartTime: 0,
  14657. hoverStayTime: 200,
  14658. text: '',
  14659. icon: '',
  14660. iconColor: '',
  14661. color: ''
  14662. }
  14663. };
  14664. exports.default = _default;
  14665. /***/ }),
  14666. /* 80 */
  14667. /*!*******************************************************************************!*\
  14668. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/calendar.js ***!
  14669. \*******************************************************************************/
  14670. /*! no static exports found */
  14671. /***/ (function(module, exports, __webpack_require__) {
  14672. "use strict";
  14673. Object.defineProperty(exports, "__esModule", {
  14674. value: true
  14675. });
  14676. exports.default = void 0;
  14677. /*
  14678. * @Author : LQ
  14679. * @Description :
  14680. * @version : 1.0
  14681. * @Date : 2021-08-20 16:44:21
  14682. * @LastAuthor : LQ
  14683. * @lastTime : 2021-08-20 16:52:43
  14684. * @FilePath : /u-view2.0/uview-ui/libs/config/props/calendar.js
  14685. */
  14686. var _default = {
  14687. // calendar 组件
  14688. calendar: {
  14689. title: '日期选择',
  14690. showTitle: true,
  14691. showSubtitle: true,
  14692. mode: 'single',
  14693. startText: '开始',
  14694. endText: '结束',
  14695. customList: function customList() {
  14696. return [];
  14697. },
  14698. color: '#3c9cff',
  14699. minDate: 0,
  14700. maxDate: 0,
  14701. defaultDate: null,
  14702. maxCount: Number.MAX_SAFE_INTEGER,
  14703. // Infinity
  14704. rowHeight: 56,
  14705. formatter: null,
  14706. showLunar: false,
  14707. showMark: true,
  14708. confirmText: '确定',
  14709. confirmDisabledText: '确定',
  14710. show: false,
  14711. closeOnClickOverlay: false,
  14712. readonly: false,
  14713. showConfirm: true,
  14714. maxRange: Number.MAX_SAFE_INTEGER,
  14715. // Infinity
  14716. rangePrompt: '',
  14717. showRangePrompt: true,
  14718. allowSameDay: false,
  14719. round: 0,
  14720. monthNum: 3
  14721. }
  14722. };
  14723. exports.default = _default;
  14724. /***/ }),
  14725. /* 81 */
  14726. /*!**********************************************************************************!*\
  14727. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/carKeyboard.js ***!
  14728. \**********************************************************************************/
  14729. /*! no static exports found */
  14730. /***/ (function(module, exports, __webpack_require__) {
  14731. "use strict";
  14732. Object.defineProperty(exports, "__esModule", {
  14733. value: true
  14734. });
  14735. exports.default = void 0;
  14736. /*
  14737. * @Author : LQ
  14738. * @Description :
  14739. * @version : 1.0
  14740. * @Date : 2021-08-20 16:44:21
  14741. * @LastAuthor : LQ
  14742. * @lastTime : 2021-08-20 16:53:20
  14743. * @FilePath : /u-view2.0/uview-ui/libs/config/props/carKeyboard.js
  14744. */
  14745. var _default = {
  14746. // 车牌号键盘
  14747. carKeyboard: {
  14748. random: false
  14749. }
  14750. };
  14751. exports.default = _default;
  14752. /***/ }),
  14753. /* 82 */
  14754. /*!***************************************************************************!*\
  14755. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/cell.js ***!
  14756. \***************************************************************************/
  14757. /*! no static exports found */
  14758. /***/ (function(module, exports, __webpack_require__) {
  14759. "use strict";
  14760. Object.defineProperty(exports, "__esModule", {
  14761. value: true
  14762. });
  14763. exports.default = void 0;
  14764. /*
  14765. * @Author : LQ
  14766. * @Description :
  14767. * @version : 1.0
  14768. * @Date : 2021-08-20 16:44:21
  14769. * @LastAuthor : LQ
  14770. * @lastTime : 2021-08-23 20:53:09
  14771. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cell.js
  14772. */
  14773. var _default = {
  14774. // cell组件的props
  14775. cell: {
  14776. customClass: '',
  14777. title: '',
  14778. label: '',
  14779. value: '',
  14780. icon: '',
  14781. disabled: false,
  14782. border: true,
  14783. center: false,
  14784. url: '',
  14785. linkType: 'navigateTo',
  14786. clickable: false,
  14787. isLink: false,
  14788. required: false,
  14789. arrowDirection: '',
  14790. iconStyle: {},
  14791. rightIconStyle: {},
  14792. rightIcon: 'arrow-right',
  14793. titleStyle: {},
  14794. size: '',
  14795. stop: true,
  14796. name: ''
  14797. }
  14798. };
  14799. exports.default = _default;
  14800. /***/ }),
  14801. /* 83 */
  14802. /*!********************************************************************************!*\
  14803. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/cellGroup.js ***!
  14804. \********************************************************************************/
  14805. /*! no static exports found */
  14806. /***/ (function(module, exports, __webpack_require__) {
  14807. "use strict";
  14808. Object.defineProperty(exports, "__esModule", {
  14809. value: true
  14810. });
  14811. exports.default = void 0;
  14812. /*
  14813. * @Author : LQ
  14814. * @Description :
  14815. * @version : 1.0
  14816. * @Date : 2021-08-20 16:44:21
  14817. * @LastAuthor : LQ
  14818. * @lastTime : 2021-08-20 16:54:16
  14819. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cellGroup.js
  14820. */
  14821. var _default = {
  14822. // cell-group组件的props
  14823. cellGroup: {
  14824. title: '',
  14825. border: true,
  14826. customStyle: {}
  14827. }
  14828. };
  14829. exports.default = _default;
  14830. /***/ }),
  14831. /* 84 */
  14832. /*!*******************************************************************************!*\
  14833. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/checkbox.js ***!
  14834. \*******************************************************************************/
  14835. /*! no static exports found */
  14836. /***/ (function(module, exports, __webpack_require__) {
  14837. "use strict";
  14838. Object.defineProperty(exports, "__esModule", {
  14839. value: true
  14840. });
  14841. exports.default = void 0;
  14842. /*
  14843. * @Author : LQ
  14844. * @Description :
  14845. * @version : 1.0
  14846. * @Date : 2021-08-20 16:44:21
  14847. * @LastAuthor : LQ
  14848. * @lastTime : 2021-08-23 21:06:59
  14849. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkbox.js
  14850. */
  14851. var _default = {
  14852. // checkbox组件
  14853. checkbox: {
  14854. name: '',
  14855. shape: '',
  14856. size: '',
  14857. checkbox: false,
  14858. disabled: '',
  14859. activeColor: '',
  14860. inactiveColor: '',
  14861. iconSize: '',
  14862. iconColor: '',
  14863. label: '',
  14864. labelSize: '',
  14865. labelColor: '',
  14866. labelDisabled: ''
  14867. }
  14868. };
  14869. exports.default = _default;
  14870. /***/ }),
  14871. /* 85 */
  14872. /*!************************************************************************************!*\
  14873. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/checkboxGroup.js ***!
  14874. \************************************************************************************/
  14875. /*! no static exports found */
  14876. /***/ (function(module, exports, __webpack_require__) {
  14877. "use strict";
  14878. Object.defineProperty(exports, "__esModule", {
  14879. value: true
  14880. });
  14881. exports.default = void 0;
  14882. /*
  14883. * @Author : LQ
  14884. * @Description :
  14885. * @version : 1.0
  14886. * @Date : 2021-08-20 16:44:21
  14887. * @LastAuthor : LQ
  14888. * @lastTime : 2021-08-20 16:54:47
  14889. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkboxGroup.js
  14890. */
  14891. var _default = {
  14892. // checkbox-group组件
  14893. checkboxGroup: {
  14894. name: '',
  14895. value: function value() {
  14896. return [];
  14897. },
  14898. shape: 'square',
  14899. disabled: false,
  14900. activeColor: '#2979ff',
  14901. inactiveColor: '#c8c9cc',
  14902. size: 18,
  14903. placement: 'row',
  14904. labelSize: 14,
  14905. labelColor: '#303133',
  14906. labelDisabled: false,
  14907. iconColor: '#ffffff',
  14908. iconSize: 12,
  14909. iconPlacement: 'left',
  14910. borderBottom: false
  14911. }
  14912. };
  14913. exports.default = _default;
  14914. /***/ }),
  14915. /* 86 */
  14916. /*!*************************************************************************************!*\
  14917. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/circleProgress.js ***!
  14918. \*************************************************************************************/
  14919. /*! no static exports found */
  14920. /***/ (function(module, exports, __webpack_require__) {
  14921. "use strict";
  14922. Object.defineProperty(exports, "__esModule", {
  14923. value: true
  14924. });
  14925. exports.default = void 0;
  14926. /*
  14927. * @Author : LQ
  14928. * @Description :
  14929. * @version : 1.0
  14930. * @Date : 2021-08-20 16:44:21
  14931. * @LastAuthor : LQ
  14932. * @lastTime : 2021-08-20 16:55:02
  14933. * @FilePath : /u-view2.0/uview-ui/libs/config/props/circleProgress.js
  14934. */
  14935. var _default = {
  14936. // circleProgress 组件
  14937. circleProgress: {
  14938. percentage: 30
  14939. }
  14940. };
  14941. exports.default = _default;
  14942. /***/ }),
  14943. /* 87 */
  14944. /*!***************************************************************************!*\
  14945. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/code.js ***!
  14946. \***************************************************************************/
  14947. /*! no static exports found */
  14948. /***/ (function(module, exports, __webpack_require__) {
  14949. "use strict";
  14950. Object.defineProperty(exports, "__esModule", {
  14951. value: true
  14952. });
  14953. exports.default = void 0;
  14954. /*
  14955. * @Author : LQ
  14956. * @Description :
  14957. * @version : 1.0
  14958. * @Date : 2021-08-20 16:44:21
  14959. * @LastAuthor : LQ
  14960. * @lastTime : 2021-08-20 16:55:27
  14961. * @FilePath : /u-view2.0/uview-ui/libs/config/props/code.js
  14962. */
  14963. var _default = {
  14964. // code 组件
  14965. code: {
  14966. seconds: 60,
  14967. startText: '获取验证码',
  14968. changeText: 'X秒重新获取',
  14969. endText: '重新获取',
  14970. keepRunning: false,
  14971. uniqueKey: ''
  14972. }
  14973. };
  14974. exports.default = _default;
  14975. /***/ }),
  14976. /* 88 */
  14977. /*!********************************************************************************!*\
  14978. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/codeInput.js ***!
  14979. \********************************************************************************/
  14980. /*! no static exports found */
  14981. /***/ (function(module, exports, __webpack_require__) {
  14982. "use strict";
  14983. Object.defineProperty(exports, "__esModule", {
  14984. value: true
  14985. });
  14986. exports.default = void 0;
  14987. /*
  14988. * @Author : LQ
  14989. * @Description :
  14990. * @version : 1.0
  14991. * @Date : 2021-08-20 16:44:21
  14992. * @LastAuthor : LQ
  14993. * @lastTime : 2021-08-20 16:55:58
  14994. * @FilePath : /u-view2.0/uview-ui/libs/config/props/codeInput.js
  14995. */
  14996. var _default = {
  14997. // codeInput 组件
  14998. codeInput: {
  14999. adjustPosition: true,
  15000. maxlength: 6,
  15001. dot: false,
  15002. mode: 'box',
  15003. hairline: false,
  15004. space: 10,
  15005. value: '',
  15006. focus: false,
  15007. bold: false,
  15008. color: '#606266',
  15009. fontSize: 18,
  15010. size: 35,
  15011. disabledKeyboard: false,
  15012. borderColor: '#c9cacc',
  15013. disabledDot: true
  15014. }
  15015. };
  15016. exports.default = _default;
  15017. /***/ }),
  15018. /* 89 */
  15019. /*!**************************************************************************!*\
  15020. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/col.js ***!
  15021. \**************************************************************************/
  15022. /*! no static exports found */
  15023. /***/ (function(module, exports, __webpack_require__) {
  15024. "use strict";
  15025. Object.defineProperty(exports, "__esModule", {
  15026. value: true
  15027. });
  15028. exports.default = void 0;
  15029. /*
  15030. * @Author : LQ
  15031. * @Description :
  15032. * @version : 1.0
  15033. * @Date : 2021-08-20 16:44:21
  15034. * @LastAuthor : LQ
  15035. * @lastTime : 2021-08-20 16:56:12
  15036. * @FilePath : /u-view2.0/uview-ui/libs/config/props/col.js
  15037. */
  15038. var _default = {
  15039. // col 组件
  15040. col: {
  15041. span: 12,
  15042. offset: 0,
  15043. justify: 'start',
  15044. align: 'stretch',
  15045. textAlign: 'left'
  15046. }
  15047. };
  15048. exports.default = _default;
  15049. /***/ }),
  15050. /* 90 */
  15051. /*!*******************************************************************************!*\
  15052. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/collapse.js ***!
  15053. \*******************************************************************************/
  15054. /*! no static exports found */
  15055. /***/ (function(module, exports, __webpack_require__) {
  15056. "use strict";
  15057. Object.defineProperty(exports, "__esModule", {
  15058. value: true
  15059. });
  15060. exports.default = void 0;
  15061. /*
  15062. * @Author : LQ
  15063. * @Description :
  15064. * @version : 1.0
  15065. * @Date : 2021-08-20 16:44:21
  15066. * @LastAuthor : LQ
  15067. * @lastTime : 2021-08-20 16:56:30
  15068. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapse.js
  15069. */
  15070. var _default = {
  15071. // collapse 组件
  15072. collapse: {
  15073. value: null,
  15074. accordion: false,
  15075. border: true
  15076. }
  15077. };
  15078. exports.default = _default;
  15079. /***/ }),
  15080. /* 91 */
  15081. /*!***********************************************************************************!*\
  15082. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/collapseItem.js ***!
  15083. \***********************************************************************************/
  15084. /*! no static exports found */
  15085. /***/ (function(module, exports, __webpack_require__) {
  15086. "use strict";
  15087. Object.defineProperty(exports, "__esModule", {
  15088. value: true
  15089. });
  15090. exports.default = void 0;
  15091. /*
  15092. * @Author : LQ
  15093. * @Description :
  15094. * @version : 1.0
  15095. * @Date : 2021-08-20 16:44:21
  15096. * @LastAuthor : LQ
  15097. * @lastTime : 2021-08-20 16:56:42
  15098. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapseItem.js
  15099. */
  15100. var _default = {
  15101. // collapseItem 组件
  15102. collapseItem: {
  15103. title: '',
  15104. value: '',
  15105. label: '',
  15106. disabled: false,
  15107. isLink: true,
  15108. clickable: true,
  15109. border: true,
  15110. align: 'left',
  15111. name: '',
  15112. icon: '',
  15113. duration: 300
  15114. }
  15115. };
  15116. exports.default = _default;
  15117. /***/ }),
  15118. /* 92 */
  15119. /*!***********************************************************************************!*\
  15120. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/columnNotice.js ***!
  15121. \***********************************************************************************/
  15122. /*! no static exports found */
  15123. /***/ (function(module, exports, __webpack_require__) {
  15124. "use strict";
  15125. Object.defineProperty(exports, "__esModule", {
  15126. value: true
  15127. });
  15128. exports.default = void 0;
  15129. /*
  15130. * @Author : LQ
  15131. * @Description :
  15132. * @version : 1.0
  15133. * @Date : 2021-08-20 16:44:21
  15134. * @LastAuthor : LQ
  15135. * @lastTime : 2021-08-20 16:57:16
  15136. * @FilePath : /u-view2.0/uview-ui/libs/config/props/columnNotice.js
  15137. */
  15138. var _default = {
  15139. // columnNotice 组件
  15140. columnNotice: {
  15141. text: '',
  15142. icon: 'volume',
  15143. mode: '',
  15144. color: '#f9ae3d',
  15145. bgColor: '#fdf6ec',
  15146. fontSize: 14,
  15147. speed: 80,
  15148. step: false,
  15149. duration: 1500,
  15150. disableTouch: true
  15151. }
  15152. };
  15153. exports.default = _default;
  15154. /***/ }),
  15155. /* 93 */
  15156. /*!********************************************************************************!*\
  15157. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/countDown.js ***!
  15158. \********************************************************************************/
  15159. /*! no static exports found */
  15160. /***/ (function(module, exports, __webpack_require__) {
  15161. "use strict";
  15162. Object.defineProperty(exports, "__esModule", {
  15163. value: true
  15164. });
  15165. exports.default = void 0;
  15166. /*
  15167. * @Author : LQ
  15168. * @Description :
  15169. * @version : 1.0
  15170. * @Date : 2021-08-20 16:44:21
  15171. * @LastAuthor : LQ
  15172. * @lastTime : 2021-08-20 17:11:29
  15173. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countDown.js
  15174. */
  15175. var _default = {
  15176. // u-count-down 计时器组件
  15177. countDown: {
  15178. time: 0,
  15179. format: 'HH:mm:ss',
  15180. autoStart: true,
  15181. millisecond: false
  15182. }
  15183. };
  15184. exports.default = _default;
  15185. /***/ }),
  15186. /* 94 */
  15187. /*!******************************************************************************!*\
  15188. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/countTo.js ***!
  15189. \******************************************************************************/
  15190. /*! no static exports found */
  15191. /***/ (function(module, exports, __webpack_require__) {
  15192. "use strict";
  15193. Object.defineProperty(exports, "__esModule", {
  15194. value: true
  15195. });
  15196. exports.default = void 0;
  15197. /*
  15198. * @Author : LQ
  15199. * @Description :
  15200. * @version : 1.0
  15201. * @Date : 2021-08-20 16:44:21
  15202. * @LastAuthor : LQ
  15203. * @lastTime : 2021-08-20 16:57:32
  15204. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countTo.js
  15205. */
  15206. var _default = {
  15207. // countTo 组件
  15208. countTo: {
  15209. startVal: 0,
  15210. endVal: 0,
  15211. duration: 2000,
  15212. autoplay: true,
  15213. decimals: 0,
  15214. useEasing: true,
  15215. decimal: '.',
  15216. color: '#606266',
  15217. fontSize: 22,
  15218. bold: false,
  15219. separator: ''
  15220. }
  15221. };
  15222. exports.default = _default;
  15223. /***/ }),
  15224. /* 95 */
  15225. /*!*************************************************************************************!*\
  15226. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/datetimePicker.js ***!
  15227. \*************************************************************************************/
  15228. /*! no static exports found */
  15229. /***/ (function(module, exports, __webpack_require__) {
  15230. "use strict";
  15231. Object.defineProperty(exports, "__esModule", {
  15232. value: true
  15233. });
  15234. exports.default = void 0;
  15235. /*
  15236. * @Author : LQ
  15237. * @Description :
  15238. * @version : 1.0
  15239. * @Date : 2021-08-20 16:44:21
  15240. * @LastAuthor : LQ
  15241. * @lastTime : 2021-08-20 16:57:48
  15242. * @FilePath : /u-view2.0/uview-ui/libs/config/props/datetimePicker.js
  15243. */
  15244. var _default = {
  15245. // datetimePicker 组件
  15246. datetimePicker: {
  15247. show: false,
  15248. showToolbar: true,
  15249. value: '',
  15250. title: '',
  15251. mode: 'datetime',
  15252. maxDate: new Date(new Date().getFullYear() + 10, 0, 1).getTime(),
  15253. minDate: new Date(new Date().getFullYear() - 10, 0, 1).getTime(),
  15254. minHour: 0,
  15255. maxHour: 23,
  15256. minMinute: 0,
  15257. maxMinute: 59,
  15258. filter: null,
  15259. formatter: null,
  15260. loading: false,
  15261. itemHeight: 44,
  15262. cancelText: '取消',
  15263. confirmText: '确认',
  15264. cancelColor: '#909193',
  15265. confirmColor: '#3c9cff',
  15266. visibleItemCount: 5,
  15267. closeOnClickOverlay: false,
  15268. defaultIndex: function defaultIndex() {
  15269. return [];
  15270. }
  15271. }
  15272. };
  15273. exports.default = _default;
  15274. /***/ }),
  15275. /* 96 */
  15276. /*!******************************************************************************!*\
  15277. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/divider.js ***!
  15278. \******************************************************************************/
  15279. /*! no static exports found */
  15280. /***/ (function(module, exports, __webpack_require__) {
  15281. "use strict";
  15282. Object.defineProperty(exports, "__esModule", {
  15283. value: true
  15284. });
  15285. exports.default = void 0;
  15286. /*
  15287. * @Author : LQ
  15288. * @Description :
  15289. * @version : 1.0
  15290. * @Date : 2021-08-20 16:44:21
  15291. * @LastAuthor : LQ
  15292. * @lastTime : 2021-08-20 16:58:03
  15293. * @FilePath : /u-view2.0/uview-ui/libs/config/props/divider.js
  15294. */
  15295. var _default = {
  15296. // divider组件
  15297. divider: {
  15298. dashed: false,
  15299. hairline: true,
  15300. dot: false,
  15301. textPosition: 'center',
  15302. text: '',
  15303. textSize: 14,
  15304. textColor: '#909399',
  15305. lineColor: '#dcdfe6'
  15306. }
  15307. };
  15308. exports.default = _default;
  15309. /***/ }),
  15310. /* 97 */
  15311. /*!****************************************************************************!*\
  15312. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/empty.js ***!
  15313. \****************************************************************************/
  15314. /*! no static exports found */
  15315. /***/ (function(module, exports, __webpack_require__) {
  15316. "use strict";
  15317. Object.defineProperty(exports, "__esModule", {
  15318. value: true
  15319. });
  15320. exports.default = void 0;
  15321. /*
  15322. * @Author : LQ
  15323. * @Description :
  15324. * @version : 1.0
  15325. * @Date : 2021-08-20 16:44:21
  15326. * @LastAuthor : LQ
  15327. * @lastTime : 2021-08-20 17:03:27
  15328. * @FilePath : /u-view2.0/uview-ui/libs/config/props/empty.js
  15329. */
  15330. var _default = {
  15331. // empty组件
  15332. empty: {
  15333. icon: '',
  15334. text: '',
  15335. textColor: '#c0c4cc',
  15336. textSize: 14,
  15337. iconColor: '#c0c4cc',
  15338. iconSize: 90,
  15339. mode: 'data',
  15340. width: 160,
  15341. height: 160,
  15342. show: true,
  15343. marginTop: 0
  15344. }
  15345. };
  15346. exports.default = _default;
  15347. /***/ }),
  15348. /* 98 */
  15349. /*!***************************************************************************!*\
  15350. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/form.js ***!
  15351. \***************************************************************************/
  15352. /*! no static exports found */
  15353. /***/ (function(module, exports, __webpack_require__) {
  15354. "use strict";
  15355. Object.defineProperty(exports, "__esModule", {
  15356. value: true
  15357. });
  15358. exports.default = void 0;
  15359. /*
  15360. * @Author : LQ
  15361. * @Description :
  15362. * @version : 1.0
  15363. * @Date : 2021-08-20 16:44:21
  15364. * @LastAuthor : LQ
  15365. * @lastTime : 2021-08-20 17:03:49
  15366. * @FilePath : /u-view2.0/uview-ui/libs/config/props/form.js
  15367. */
  15368. var _default = {
  15369. // form 组件
  15370. form: {
  15371. model: function model() {
  15372. return {};
  15373. },
  15374. rules: function rules() {
  15375. return {};
  15376. },
  15377. errorType: 'message',
  15378. borderBottom: true,
  15379. labelPosition: 'left',
  15380. labelWidth: 45,
  15381. labelAlign: 'left',
  15382. labelStyle: function labelStyle() {
  15383. return {};
  15384. }
  15385. }
  15386. };
  15387. exports.default = _default;
  15388. /***/ }),
  15389. /* 99 */
  15390. /*!*******************************************************************************!*\
  15391. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/formItem.js ***!
  15392. \*******************************************************************************/
  15393. /*! no static exports found */
  15394. /***/ (function(module, exports, __webpack_require__) {
  15395. "use strict";
  15396. Object.defineProperty(exports, "__esModule", {
  15397. value: true
  15398. });
  15399. exports.default = void 0;
  15400. /*
  15401. * @Author : LQ
  15402. * @Description :
  15403. * @version : 1.0
  15404. * @Date : 2021-08-20 16:44:21
  15405. * @LastAuthor : LQ
  15406. * @lastTime : 2021-08-20 17:04:32
  15407. * @FilePath : /u-view2.0/uview-ui/libs/config/props/formItem.js
  15408. */
  15409. var _default = {
  15410. // formItem 组件
  15411. formItem: {
  15412. label: '',
  15413. prop: '',
  15414. borderBottom: '',
  15415. labelPosition: '',
  15416. labelWidth: '',
  15417. rightIcon: '',
  15418. leftIcon: '',
  15419. required: false,
  15420. leftIconStyle: ''
  15421. }
  15422. };
  15423. exports.default = _default;
  15424. /***/ }),
  15425. /* 100 */
  15426. /*!**************************************************************************!*\
  15427. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/gap.js ***!
  15428. \**************************************************************************/
  15429. /*! no static exports found */
  15430. /***/ (function(module, exports, __webpack_require__) {
  15431. "use strict";
  15432. Object.defineProperty(exports, "__esModule", {
  15433. value: true
  15434. });
  15435. exports.default = void 0;
  15436. /*
  15437. * @Author : LQ
  15438. * @Description :
  15439. * @version : 1.0
  15440. * @Date : 2021-08-20 16:44:21
  15441. * @LastAuthor : LQ
  15442. * @lastTime : 2021-08-20 17:05:25
  15443. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gap.js
  15444. */
  15445. var _default = {
  15446. // gap组件
  15447. gap: {
  15448. bgColor: 'transparent',
  15449. height: 20,
  15450. marginTop: 0,
  15451. marginBottom: 0,
  15452. customStyle: {}
  15453. }
  15454. };
  15455. exports.default = _default;
  15456. /***/ }),
  15457. /* 101 */
  15458. /*!***************************************************************************!*\
  15459. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/grid.js ***!
  15460. \***************************************************************************/
  15461. /*! no static exports found */
  15462. /***/ (function(module, exports, __webpack_require__) {
  15463. "use strict";
  15464. Object.defineProperty(exports, "__esModule", {
  15465. value: true
  15466. });
  15467. exports.default = void 0;
  15468. /*
  15469. * @Author : LQ
  15470. * @Description :
  15471. * @version : 1.0
  15472. * @Date : 2021-08-20 16:44:21
  15473. * @LastAuthor : LQ
  15474. * @lastTime : 2021-08-20 17:05:57
  15475. * @FilePath : /u-view2.0/uview-ui/libs/config/props/grid.js
  15476. */
  15477. var _default = {
  15478. // grid组件
  15479. grid: {
  15480. col: 3,
  15481. border: false,
  15482. align: 'left'
  15483. }
  15484. };
  15485. exports.default = _default;
  15486. /***/ }),
  15487. /* 102 */
  15488. /*!*******************************************************************************!*\
  15489. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/gridItem.js ***!
  15490. \*******************************************************************************/
  15491. /*! no static exports found */
  15492. /***/ (function(module, exports, __webpack_require__) {
  15493. "use strict";
  15494. Object.defineProperty(exports, "__esModule", {
  15495. value: true
  15496. });
  15497. exports.default = void 0;
  15498. /*
  15499. * @Author : LQ
  15500. * @Description :
  15501. * @version : 1.0
  15502. * @Date : 2021-08-20 16:44:21
  15503. * @LastAuthor : LQ
  15504. * @lastTime : 2021-08-20 17:06:13
  15505. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gridItem.js
  15506. */
  15507. var _default = {
  15508. // grid-item组件
  15509. gridItem: {
  15510. name: null,
  15511. bgColor: 'transparent'
  15512. }
  15513. };
  15514. exports.default = _default;
  15515. /***/ }),
  15516. /* 103 */
  15517. /*!***************************************************************************!*\
  15518. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/icon.js ***!
  15519. \***************************************************************************/
  15520. /*! no static exports found */
  15521. /***/ (function(module, exports, __webpack_require__) {
  15522. "use strict";
  15523. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15524. Object.defineProperty(exports, "__esModule", {
  15525. value: true
  15526. });
  15527. exports.default = void 0;
  15528. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 70));
  15529. /*
  15530. * @Author : LQ
  15531. * @Description :
  15532. * @version : 1.0
  15533. * @Date : 2021-08-20 16:44:21
  15534. * @LastAuthor : LQ
  15535. * @lastTime : 2021-08-20 18:00:14
  15536. * @FilePath : /u-view2.0/uview-ui/libs/config/props/icon.js
  15537. */
  15538. var color = _config.default.color;
  15539. var _default = {
  15540. // icon组件
  15541. icon: {
  15542. name: '',
  15543. color: color['u-content-color'],
  15544. size: '16px',
  15545. bold: false,
  15546. index: '',
  15547. hoverClass: '',
  15548. customPrefix: 'uicon',
  15549. label: '',
  15550. labelPos: 'right',
  15551. labelSize: '15px',
  15552. labelColor: color['u-content-color'],
  15553. space: '3px',
  15554. imgMode: '',
  15555. width: '',
  15556. height: '',
  15557. top: 0,
  15558. stop: false
  15559. }
  15560. };
  15561. exports.default = _default;
  15562. /***/ }),
  15563. /* 104 */
  15564. /*!****************************************************************************!*\
  15565. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/image.js ***!
  15566. \****************************************************************************/
  15567. /*! no static exports found */
  15568. /***/ (function(module, exports, __webpack_require__) {
  15569. "use strict";
  15570. Object.defineProperty(exports, "__esModule", {
  15571. value: true
  15572. });
  15573. exports.default = void 0;
  15574. /*
  15575. * @Author : LQ
  15576. * @Description :
  15577. * @version : 1.0
  15578. * @Date : 2021-08-20 16:44:21
  15579. * @LastAuthor : LQ
  15580. * @lastTime : 2021-08-20 17:01:51
  15581. * @FilePath : /u-view2.0/uview-ui/libs/config/props/image.js
  15582. */
  15583. var _default = {
  15584. // image组件
  15585. image: {
  15586. src: '',
  15587. mode: 'aspectFill',
  15588. width: '300',
  15589. height: '225',
  15590. shape: 'square',
  15591. radius: 0,
  15592. lazyLoad: true,
  15593. showMenuByLongpress: true,
  15594. loadingIcon: 'photo',
  15595. errorIcon: 'error-circle',
  15596. showLoading: true,
  15597. showError: true,
  15598. fade: true,
  15599. webp: false,
  15600. duration: 500,
  15601. bgColor: '#f3f4f6'
  15602. }
  15603. };
  15604. exports.default = _default;
  15605. /***/ }),
  15606. /* 105 */
  15607. /*!**********************************************************************************!*\
  15608. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/indexAnchor.js ***!
  15609. \**********************************************************************************/
  15610. /*! no static exports found */
  15611. /***/ (function(module, exports, __webpack_require__) {
  15612. "use strict";
  15613. Object.defineProperty(exports, "__esModule", {
  15614. value: true
  15615. });
  15616. exports.default = void 0;
  15617. /*
  15618. * @Author : LQ
  15619. * @Description :
  15620. * @version : 1.0
  15621. * @Date : 2021-08-20 16:44:21
  15622. * @LastAuthor : LQ
  15623. * @lastTime : 2021-08-20 17:13:15
  15624. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexAnchor.js
  15625. */
  15626. var _default = {
  15627. // indexAnchor 组件
  15628. indexAnchor: {
  15629. text: '',
  15630. color: '#606266',
  15631. size: 14,
  15632. bgColor: '#dedede',
  15633. height: 32
  15634. }
  15635. };
  15636. exports.default = _default;
  15637. /***/ }),
  15638. /* 106 */
  15639. /*!********************************************************************************!*\
  15640. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/indexList.js ***!
  15641. \********************************************************************************/
  15642. /*! no static exports found */
  15643. /***/ (function(module, exports, __webpack_require__) {
  15644. "use strict";
  15645. Object.defineProperty(exports, "__esModule", {
  15646. value: true
  15647. });
  15648. exports.default = void 0;
  15649. /*
  15650. * @Author : LQ
  15651. * @Description :
  15652. * @version : 1.0
  15653. * @Date : 2021-08-20 16:44:21
  15654. * @LastAuthor : LQ
  15655. * @lastTime : 2021-08-20 17:13:35
  15656. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexList.js
  15657. */
  15658. var _default = {
  15659. // indexList 组件
  15660. indexList: {
  15661. inactiveColor: '#606266',
  15662. activeColor: '#5677fc',
  15663. indexList: function indexList() {
  15664. return [];
  15665. },
  15666. sticky: true,
  15667. customNavHeight: 0
  15668. }
  15669. };
  15670. exports.default = _default;
  15671. /***/ }),
  15672. /* 107 */
  15673. /*!****************************************************************************!*\
  15674. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/input.js ***!
  15675. \****************************************************************************/
  15676. /*! no static exports found */
  15677. /***/ (function(module, exports, __webpack_require__) {
  15678. "use strict";
  15679. Object.defineProperty(exports, "__esModule", {
  15680. value: true
  15681. });
  15682. exports.default = void 0;
  15683. /*
  15684. * @Author : LQ
  15685. * @Description :
  15686. * @version : 1.0
  15687. * @Date : 2021-08-20 16:44:21
  15688. * @LastAuthor : LQ
  15689. * @lastTime : 2021-08-20 17:13:55
  15690. * @FilePath : /u-view2.0/uview-ui/libs/config/props/input.js
  15691. */
  15692. var _default = {
  15693. // index 组件
  15694. input: {
  15695. value: '',
  15696. type: 'text',
  15697. fixed: false,
  15698. disabled: false,
  15699. disabledColor: '#f5f7fa',
  15700. clearable: false,
  15701. password: false,
  15702. maxlength: -1,
  15703. placeholder: null,
  15704. placeholderClass: 'input-placeholder',
  15705. placeholderStyle: 'color: #c0c4cc',
  15706. showWordLimit: false,
  15707. confirmType: 'done',
  15708. confirmHold: false,
  15709. holdKeyboard: false,
  15710. focus: false,
  15711. autoBlur: false,
  15712. disableDefaultPadding: false,
  15713. cursor: -1,
  15714. cursorSpacing: 30,
  15715. selectionStart: -1,
  15716. selectionEnd: -1,
  15717. adjustPosition: true,
  15718. inputAlign: 'left',
  15719. fontSize: '15px',
  15720. color: '#303133',
  15721. prefixIcon: '',
  15722. prefixIconStyle: '',
  15723. suffixIcon: '',
  15724. suffixIconStyle: '',
  15725. border: 'surround',
  15726. readonly: false,
  15727. shape: 'square',
  15728. formatter: null
  15729. }
  15730. };
  15731. exports.default = _default;
  15732. /***/ }),
  15733. /* 108 */
  15734. /*!*******************************************************************************!*\
  15735. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/keyboard.js ***!
  15736. \*******************************************************************************/
  15737. /*! no static exports found */
  15738. /***/ (function(module, exports, __webpack_require__) {
  15739. "use strict";
  15740. Object.defineProperty(exports, "__esModule", {
  15741. value: true
  15742. });
  15743. exports.default = void 0;
  15744. /*
  15745. * @Author : LQ
  15746. * @Description :
  15747. * @version : 1.0
  15748. * @Date : 2021-08-20 16:44:21
  15749. * @LastAuthor : LQ
  15750. * @lastTime : 2021-08-20 17:07:49
  15751. * @FilePath : /u-view2.0/uview-ui/libs/config/props/keyboard.js
  15752. */
  15753. var _default = {
  15754. // 键盘组件
  15755. keyboard: {
  15756. mode: 'number',
  15757. dotDisabled: false,
  15758. tooltip: true,
  15759. showTips: true,
  15760. tips: '',
  15761. showCancel: true,
  15762. showConfirm: true,
  15763. random: false,
  15764. safeAreaInsetBottom: true,
  15765. closeOnClickOverlay: true,
  15766. show: false,
  15767. overlay: true,
  15768. zIndex: 10075,
  15769. cancelText: '取消',
  15770. confirmText: '确定',
  15771. autoChange: false
  15772. }
  15773. };
  15774. exports.default = _default;
  15775. /***/ }),
  15776. /* 109 */
  15777. /*!***************************************************************************!*\
  15778. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/line.js ***!
  15779. \***************************************************************************/
  15780. /*! no static exports found */
  15781. /***/ (function(module, exports, __webpack_require__) {
  15782. "use strict";
  15783. Object.defineProperty(exports, "__esModule", {
  15784. value: true
  15785. });
  15786. exports.default = void 0;
  15787. /*
  15788. * @Author : LQ
  15789. * @Description :
  15790. * @version : 1.0
  15791. * @Date : 2021-08-20 16:44:21
  15792. * @LastAuthor : LQ
  15793. * @lastTime : 2021-08-20 17:04:49
  15794. * @FilePath : /u-view2.0/uview-ui/libs/config/props/line.js
  15795. */
  15796. var _default = {
  15797. // line组件
  15798. line: {
  15799. color: '#d6d7d9',
  15800. length: '100%',
  15801. direction: 'row',
  15802. hairline: true,
  15803. margin: 0,
  15804. dashed: false
  15805. }
  15806. };
  15807. exports.default = _default;
  15808. /***/ }),
  15809. /* 110 */
  15810. /*!***********************************************************************************!*\
  15811. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/lineProgress.js ***!
  15812. \***********************************************************************************/
  15813. /*! no static exports found */
  15814. /***/ (function(module, exports, __webpack_require__) {
  15815. "use strict";
  15816. Object.defineProperty(exports, "__esModule", {
  15817. value: true
  15818. });
  15819. exports.default = void 0;
  15820. /*
  15821. * @Author : LQ
  15822. * @Description :
  15823. * @version : 1.0
  15824. * @Date : 2021-08-20 16:44:21
  15825. * @LastAuthor : LQ
  15826. * @lastTime : 2021-08-20 17:14:11
  15827. * @FilePath : /u-view2.0/uview-ui/libs/config/props/lineProgress.js
  15828. */
  15829. var _default = {
  15830. // lineProgress 组件
  15831. lineProgress: {
  15832. activeColor: '#19be6b',
  15833. inactiveColor: '#ececec',
  15834. percentage: 0,
  15835. showText: true,
  15836. height: 12
  15837. }
  15838. };
  15839. exports.default = _default;
  15840. /***/ }),
  15841. /* 111 */
  15842. /*!***************************************************************************!*\
  15843. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/link.js ***!
  15844. \***************************************************************************/
  15845. /*! no static exports found */
  15846. /***/ (function(module, exports, __webpack_require__) {
  15847. "use strict";
  15848. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15849. Object.defineProperty(exports, "__esModule", {
  15850. value: true
  15851. });
  15852. exports.default = void 0;
  15853. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 70));
  15854. /*
  15855. * @Author : LQ
  15856. * @Description :
  15857. * @version : 1.0
  15858. * @Date : 2021-08-20 16:44:21
  15859. * @LastAuthor : LQ
  15860. * @lastTime : 2021-08-20 17:45:36
  15861. * @FilePath : /u-view2.0/uview-ui/libs/config/props/link.js
  15862. */
  15863. var color = _config.default.color;
  15864. var _default = {
  15865. // link超链接组件props参数
  15866. link: {
  15867. color: color['u-primary'],
  15868. fontSize: 15,
  15869. underLine: false,
  15870. href: '',
  15871. mpTips: '链接已复制,请在浏览器打开',
  15872. lineColor: '',
  15873. text: ''
  15874. }
  15875. };
  15876. exports.default = _default;
  15877. /***/ }),
  15878. /* 112 */
  15879. /*!***************************************************************************!*\
  15880. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/list.js ***!
  15881. \***************************************************************************/
  15882. /*! no static exports found */
  15883. /***/ (function(module, exports, __webpack_require__) {
  15884. "use strict";
  15885. Object.defineProperty(exports, "__esModule", {
  15886. value: true
  15887. });
  15888. exports.default = void 0;
  15889. /*
  15890. * @Author : LQ
  15891. * @Description :
  15892. * @version : 1.0
  15893. * @Date : 2021-08-20 16:44:21
  15894. * @LastAuthor : LQ
  15895. * @lastTime : 2021-08-20 17:14:53
  15896. * @FilePath : /u-view2.0/uview-ui/libs/config/props/list.js
  15897. */
  15898. var _default = {
  15899. // list 组件
  15900. list: {
  15901. showScrollbar: false,
  15902. lowerThreshold: 50,
  15903. upperThreshold: 0,
  15904. scrollTop: 0,
  15905. offsetAccuracy: 10,
  15906. enableFlex: false,
  15907. pagingEnabled: false,
  15908. scrollable: true,
  15909. scrollIntoView: '',
  15910. scrollWithAnimation: false,
  15911. enableBackToTop: false,
  15912. height: 0,
  15913. width: 0,
  15914. preLoadScreen: 1
  15915. }
  15916. };
  15917. exports.default = _default;
  15918. /***/ }),
  15919. /* 113 */
  15920. /*!*******************************************************************************!*\
  15921. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/listItem.js ***!
  15922. \*******************************************************************************/
  15923. /*! no static exports found */
  15924. /***/ (function(module, exports, __webpack_require__) {
  15925. "use strict";
  15926. Object.defineProperty(exports, "__esModule", {
  15927. value: true
  15928. });
  15929. exports.default = void 0;
  15930. /*
  15931. * @Author : LQ
  15932. * @Description :
  15933. * @version : 1.0
  15934. * @Date : 2021-08-20 16:44:21
  15935. * @LastAuthor : LQ
  15936. * @lastTime : 2021-08-20 17:15:40
  15937. * @FilePath : /u-view2.0/uview-ui/libs/config/props/listItem.js
  15938. */
  15939. var _default = {
  15940. // listItem 组件
  15941. listItem: {
  15942. anchor: ''
  15943. }
  15944. };
  15945. exports.default = _default;
  15946. /***/ }),
  15947. /* 114 */
  15948. /*!**********************************************************************************!*\
  15949. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/loadingIcon.js ***!
  15950. \**********************************************************************************/
  15951. /*! no static exports found */
  15952. /***/ (function(module, exports, __webpack_require__) {
  15953. "use strict";
  15954. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15955. Object.defineProperty(exports, "__esModule", {
  15956. value: true
  15957. });
  15958. exports.default = void 0;
  15959. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 70));
  15960. /*
  15961. * @Author : LQ
  15962. * @Description :
  15963. * @version : 1.0
  15964. * @Date : 2021-08-20 16:44:21
  15965. * @LastAuthor : LQ
  15966. * @lastTime : 2021-08-20 17:45:47
  15967. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingIcon.js
  15968. */
  15969. var color = _config.default.color;
  15970. var _default = {
  15971. // loading-icon加载中图标组件
  15972. loadingIcon: {
  15973. show: true,
  15974. color: color['u-tips-color'],
  15975. textColor: color['u-tips-color'],
  15976. vertical: false,
  15977. mode: 'spinner',
  15978. size: 24,
  15979. textSize: 15,
  15980. text: '',
  15981. timingFunction: 'ease-in-out',
  15982. duration: 1200,
  15983. inactiveColor: ''
  15984. }
  15985. };
  15986. exports.default = _default;
  15987. /***/ }),
  15988. /* 115 */
  15989. /*!**********************************************************************************!*\
  15990. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/loadingPage.js ***!
  15991. \**********************************************************************************/
  15992. /*! no static exports found */
  15993. /***/ (function(module, exports, __webpack_require__) {
  15994. "use strict";
  15995. Object.defineProperty(exports, "__esModule", {
  15996. value: true
  15997. });
  15998. exports.default = void 0;
  15999. /*
  16000. * @Author : LQ
  16001. * @Description :
  16002. * @version : 1.0
  16003. * @Date : 2021-08-20 16:44:21
  16004. * @LastAuthor : LQ
  16005. * @lastTime : 2021-08-20 17:00:23
  16006. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingPage.js
  16007. */
  16008. var _default = {
  16009. // loading-page组件
  16010. loadingPage: {
  16011. loadingText: '正在加载',
  16012. image: '',
  16013. loadingMode: 'circle',
  16014. loading: false,
  16015. bgColor: '#ffffff',
  16016. color: '#C8C8C8',
  16017. fontSize: 19,
  16018. iconSize: 28,
  16019. loadingColor: '#C8C8C8'
  16020. }
  16021. };
  16022. exports.default = _default;
  16023. /***/ }),
  16024. /* 116 */
  16025. /*!*******************************************************************************!*\
  16026. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/loadmore.js ***!
  16027. \*******************************************************************************/
  16028. /*! no static exports found */
  16029. /***/ (function(module, exports, __webpack_require__) {
  16030. "use strict";
  16031. Object.defineProperty(exports, "__esModule", {
  16032. value: true
  16033. });
  16034. exports.default = void 0;
  16035. /*
  16036. * @Author : LQ
  16037. * @Description :
  16038. * @version : 1.0
  16039. * @Date : 2021-08-20 16:44:21
  16040. * @LastAuthor : LQ
  16041. * @lastTime : 2021-08-20 17:15:26
  16042. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadmore.js
  16043. */
  16044. var _default = {
  16045. // loadmore 组件
  16046. loadmore: {
  16047. status: 'loadmore',
  16048. bgColor: 'transparent',
  16049. icon: true,
  16050. fontSize: 14,
  16051. iconSize: 17,
  16052. color: '#606266',
  16053. loadingIcon: 'spinner',
  16054. loadmoreText: '加载更多',
  16055. loadingText: '正在加载...',
  16056. nomoreText: '没有更多了',
  16057. isDot: false,
  16058. iconColor: '#b7b7b7',
  16059. marginTop: 10,
  16060. marginBottom: 10,
  16061. height: 'auto',
  16062. line: false,
  16063. lineColor: '#E6E8EB',
  16064. dashed: false
  16065. }
  16066. };
  16067. exports.default = _default;
  16068. /***/ }),
  16069. /* 117 */
  16070. /*!****************************************************************************!*\
  16071. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/modal.js ***!
  16072. \****************************************************************************/
  16073. /*! no static exports found */
  16074. /***/ (function(module, exports, __webpack_require__) {
  16075. "use strict";
  16076. Object.defineProperty(exports, "__esModule", {
  16077. value: true
  16078. });
  16079. exports.default = void 0;
  16080. /*
  16081. * @Author : LQ
  16082. * @Description :
  16083. * @version : 1.0
  16084. * @Date : 2021-08-20 16:44:21
  16085. * @LastAuthor : LQ
  16086. * @lastTime : 2021-08-20 17:15:59
  16087. * @FilePath : /u-view2.0/uview-ui/libs/config/props/modal.js
  16088. */
  16089. var _default = {
  16090. // modal 组件
  16091. modal: {
  16092. show: false,
  16093. title: '',
  16094. content: '',
  16095. confirmText: '确认',
  16096. cancelText: '取消',
  16097. showConfirmButton: true,
  16098. showCancelButton: false,
  16099. confirmColor: '#2979ff',
  16100. cancelColor: '#606266',
  16101. buttonReverse: false,
  16102. zoom: true,
  16103. asyncClose: false,
  16104. closeOnClickOverlay: false,
  16105. negativeTop: 0,
  16106. width: '650rpx',
  16107. confirmButtonShape: ''
  16108. }
  16109. };
  16110. exports.default = _default;
  16111. /***/ }),
  16112. /* 118 */
  16113. /*!*****************************************************************************!*\
  16114. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/navbar.js ***!
  16115. \*****************************************************************************/
  16116. /*! no static exports found */
  16117. /***/ (function(module, exports, __webpack_require__) {
  16118. "use strict";
  16119. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  16120. Object.defineProperty(exports, "__esModule", {
  16121. value: true
  16122. });
  16123. exports.default = void 0;
  16124. var _color = _interopRequireDefault(__webpack_require__(/*! ../color */ 119));
  16125. /*
  16126. * @Author : LQ
  16127. * @Description :
  16128. * @version : 1.0
  16129. * @Date : 2021-08-20 16:44:21
  16130. * @LastAuthor : LQ
  16131. * @lastTime : 2021-08-20 17:16:18
  16132. * @FilePath : /u-view2.0/uview-ui/libs/config/props/navbar.js
  16133. */
  16134. var _default = {
  16135. // navbar 组件
  16136. navbar: {
  16137. safeAreaInsetTop: true,
  16138. placeholder: false,
  16139. fixed: true,
  16140. border: false,
  16141. leftIcon: 'arrow-left',
  16142. leftText: '',
  16143. rightText: '',
  16144. rightIcon: '',
  16145. title: '',
  16146. bgColor: '#ffffff',
  16147. titleWidth: '400rpx',
  16148. height: '44px',
  16149. leftIconSize: 20,
  16150. leftIconColor: _color.default.mainColor,
  16151. autoBack: false,
  16152. titleStyle: ''
  16153. }
  16154. };
  16155. exports.default = _default;
  16156. /***/ }),
  16157. /* 119 */
  16158. /*!**********************************************************************!*\
  16159. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/color.js ***!
  16160. \**********************************************************************/
  16161. /*! no static exports found */
  16162. /***/ (function(module, exports, __webpack_require__) {
  16163. "use strict";
  16164. Object.defineProperty(exports, "__esModule", {
  16165. value: true
  16166. });
  16167. exports.default = void 0;
  16168. // 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供
  16169. // 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)
  16170. var color = {
  16171. primary: '#3c9cff',
  16172. info: '#909399',
  16173. default: '#909399',
  16174. warning: '#f9ae3d',
  16175. error: '#f56c6c',
  16176. success: '#5ac725',
  16177. mainColor: '#303133',
  16178. contentColor: '#606266',
  16179. tipsColor: '#909399',
  16180. lightColor: '#c0c4cc',
  16181. borderColor: '#e4e7ed'
  16182. };
  16183. var _default = color;
  16184. exports.default = _default;
  16185. /***/ }),
  16186. /* 120 */
  16187. /*!********************************************************************************!*\
  16188. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/noNetwork.js ***!
  16189. \********************************************************************************/
  16190. /*! no static exports found */
  16191. /***/ (function(module, exports, __webpack_require__) {
  16192. "use strict";
  16193. Object.defineProperty(exports, "__esModule", {
  16194. value: true
  16195. });
  16196. exports.default = void 0;
  16197. /*
  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:16:39
  16204. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noNetwork.js
  16205. */
  16206. var _default = {
  16207. // noNetwork
  16208. noNetwork: {
  16209. tips: '哎呀,网络信号丢失',
  16210. zIndex: '',
  16211. 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'
  16212. }
  16213. };
  16214. exports.default = _default;
  16215. /***/ }),
  16216. /* 121 */
  16217. /*!********************************************************************************!*\
  16218. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/noticeBar.js ***!
  16219. \********************************************************************************/
  16220. /*! no static exports found */
  16221. /***/ (function(module, exports, __webpack_require__) {
  16222. "use strict";
  16223. Object.defineProperty(exports, "__esModule", {
  16224. value: true
  16225. });
  16226. exports.default = void 0;
  16227. /*
  16228. * @Author : LQ
  16229. * @Description :
  16230. * @version : 1.0
  16231. * @Date : 2021-08-20 16:44:21
  16232. * @LastAuthor : LQ
  16233. * @lastTime : 2021-08-20 17:17:13
  16234. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noticeBar.js
  16235. */
  16236. var _default = {
  16237. // noticeBar
  16238. noticeBar: {
  16239. text: function text() {
  16240. return [];
  16241. },
  16242. direction: 'row',
  16243. step: false,
  16244. icon: 'volume',
  16245. mode: '',
  16246. color: '#f9ae3d',
  16247. bgColor: '#fdf6ec',
  16248. speed: 80,
  16249. fontSize: 14,
  16250. duration: 2000,
  16251. disableTouch: true,
  16252. url: '',
  16253. linkType: 'navigateTo'
  16254. }
  16255. };
  16256. exports.default = _default;
  16257. /***/ }),
  16258. /* 122 */
  16259. /*!*****************************************************************************!*\
  16260. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/notify.js ***!
  16261. \*****************************************************************************/
  16262. /*! no static exports found */
  16263. /***/ (function(module, exports, __webpack_require__) {
  16264. "use strict";
  16265. Object.defineProperty(exports, "__esModule", {
  16266. value: true
  16267. });
  16268. exports.default = void 0;
  16269. /*
  16270. * @Author : LQ
  16271. * @Description :
  16272. * @version : 1.0
  16273. * @Date : 2021-08-20 16:44:21
  16274. * @LastAuthor : LQ
  16275. * @lastTime : 2021-08-20 17:10:21
  16276. * @FilePath : /u-view2.0/uview-ui/libs/config/props/notify.js
  16277. */
  16278. var _default = {
  16279. // notify组件
  16280. notify: {
  16281. top: 0,
  16282. type: 'primary',
  16283. color: '#ffffff',
  16284. bgColor: '',
  16285. message: '',
  16286. duration: 3000,
  16287. fontSize: 15,
  16288. safeAreaInsetTop: false
  16289. }
  16290. };
  16291. exports.default = _default;
  16292. /***/ }),
  16293. /* 123 */
  16294. /*!********************************************************************************!*\
  16295. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/numberBox.js ***!
  16296. \********************************************************************************/
  16297. /*! no static exports found */
  16298. /***/ (function(module, exports, __webpack_require__) {
  16299. "use strict";
  16300. Object.defineProperty(exports, "__esModule", {
  16301. value: true
  16302. });
  16303. exports.default = void 0;
  16304. /*
  16305. * @Author : LQ
  16306. * @Description :
  16307. * @version : 1.0
  16308. * @Date : 2021-08-20 16:44:21
  16309. * @LastAuthor : LQ
  16310. * @lastTime : 2021-08-20 17:11:46
  16311. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberBox.js
  16312. */
  16313. var _default = {
  16314. // 步进器组件
  16315. numberBox: {
  16316. name: '',
  16317. value: 0,
  16318. min: 1,
  16319. max: Number.MAX_SAFE_INTEGER,
  16320. step: 1,
  16321. integer: false,
  16322. disabled: false,
  16323. disabledInput: false,
  16324. asyncChange: false,
  16325. inputWidth: 35,
  16326. showMinus: true,
  16327. showPlus: true,
  16328. decimalLength: null,
  16329. longPress: true,
  16330. color: '#323233',
  16331. buttonSize: 30,
  16332. bgColor: '#EBECEE',
  16333. cursorSpacing: 100,
  16334. disableMinus: false,
  16335. disablePlus: false,
  16336. iconStyle: ''
  16337. }
  16338. };
  16339. exports.default = _default;
  16340. /***/ }),
  16341. /* 124 */
  16342. /*!*************************************************************************************!*\
  16343. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/numberKeyboard.js ***!
  16344. \*************************************************************************************/
  16345. /*! no static exports found */
  16346. /***/ (function(module, exports, __webpack_require__) {
  16347. "use strict";
  16348. Object.defineProperty(exports, "__esModule", {
  16349. value: true
  16350. });
  16351. exports.default = void 0;
  16352. /*
  16353. * @Author : LQ
  16354. * @Description :
  16355. * @version : 1.0
  16356. * @Date : 2021-08-20 16:44:21
  16357. * @LastAuthor : LQ
  16358. * @lastTime : 2021-08-20 17:08:05
  16359. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberKeyboard.js
  16360. */
  16361. var _default = {
  16362. // 数字键盘
  16363. numberKeyboard: {
  16364. mode: 'number',
  16365. dotDisabled: false,
  16366. random: false
  16367. }
  16368. };
  16369. exports.default = _default;
  16370. /***/ }),
  16371. /* 125 */
  16372. /*!******************************************************************************!*\
  16373. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/overlay.js ***!
  16374. \******************************************************************************/
  16375. /*! no static exports found */
  16376. /***/ (function(module, exports, __webpack_require__) {
  16377. "use strict";
  16378. Object.defineProperty(exports, "__esModule", {
  16379. value: true
  16380. });
  16381. exports.default = void 0;
  16382. /*
  16383. * @Author : LQ
  16384. * @Description :
  16385. * @version : 1.0
  16386. * @Date : 2021-08-20 16:44:21
  16387. * @LastAuthor : LQ
  16388. * @lastTime : 2021-08-20 17:06:50
  16389. * @FilePath : /u-view2.0/uview-ui/libs/config/props/overlay.js
  16390. */
  16391. var _default = {
  16392. // overlay组件
  16393. overlay: {
  16394. show: false,
  16395. zIndex: 10070,
  16396. duration: 300,
  16397. opacity: 0.5
  16398. }
  16399. };
  16400. exports.default = _default;
  16401. /***/ }),
  16402. /* 126 */
  16403. /*!****************************************************************************!*\
  16404. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/parse.js ***!
  16405. \****************************************************************************/
  16406. /*! no static exports found */
  16407. /***/ (function(module, exports, __webpack_require__) {
  16408. "use strict";
  16409. Object.defineProperty(exports, "__esModule", {
  16410. value: true
  16411. });
  16412. exports.default = void 0;
  16413. /*
  16414. * @Author : LQ
  16415. * @Description :
  16416. * @version : 1.0
  16417. * @Date : 2021-08-20 16:44:21
  16418. * @LastAuthor : LQ
  16419. * @lastTime : 2021-08-20 17:17:33
  16420. * @FilePath : /u-view2.0/uview-ui/libs/config/props/parse.js
  16421. */
  16422. var _default = {
  16423. // parse
  16424. parse: {
  16425. copyLink: true,
  16426. errorImg: '',
  16427. lazyLoad: false,
  16428. loadingImg: '',
  16429. pauseVideo: true,
  16430. previewImg: true,
  16431. setTitle: true,
  16432. showImgMenu: true
  16433. }
  16434. };
  16435. exports.default = _default;
  16436. /***/ }),
  16437. /* 127 */
  16438. /*!*****************************************************************************!*\
  16439. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/picker.js ***!
  16440. \*****************************************************************************/
  16441. /*! no static exports found */
  16442. /***/ (function(module, exports, __webpack_require__) {
  16443. "use strict";
  16444. Object.defineProperty(exports, "__esModule", {
  16445. value: true
  16446. });
  16447. exports.default = void 0;
  16448. /*
  16449. * @Author : LQ
  16450. * @Description :
  16451. * @version : 1.0
  16452. * @Date : 2021-08-20 16:44:21
  16453. * @LastAuthor : LQ
  16454. * @lastTime : 2021-08-20 17:18:20
  16455. * @FilePath : /u-view2.0/uview-ui/libs/config/props/picker.js
  16456. */
  16457. var _default = {
  16458. // picker
  16459. picker: {
  16460. show: false,
  16461. showToolbar: true,
  16462. title: '',
  16463. columns: function columns() {
  16464. return [];
  16465. },
  16466. loading: false,
  16467. itemHeight: 44,
  16468. cancelText: '取消',
  16469. confirmText: '确定',
  16470. cancelColor: '#909193',
  16471. confirmColor: '#3c9cff',
  16472. visibleItemCount: 5,
  16473. keyName: 'text',
  16474. closeOnClickOverlay: false,
  16475. defaultIndex: function defaultIndex() {
  16476. return [];
  16477. },
  16478. immediateChange: false
  16479. }
  16480. };
  16481. exports.default = _default;
  16482. /***/ }),
  16483. /* 128 */
  16484. /*!****************************************************************************!*\
  16485. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/popup.js ***!
  16486. \****************************************************************************/
  16487. /*! no static exports found */
  16488. /***/ (function(module, exports, __webpack_require__) {
  16489. "use strict";
  16490. Object.defineProperty(exports, "__esModule", {
  16491. value: true
  16492. });
  16493. exports.default = void 0;
  16494. /*
  16495. * @Author : LQ
  16496. * @Description :
  16497. * @version : 1.0
  16498. * @Date : 2021-08-20 16:44:21
  16499. * @LastAuthor : LQ
  16500. * @lastTime : 2021-08-20 17:06:33
  16501. * @FilePath : /u-view2.0/uview-ui/libs/config/props/popup.js
  16502. */
  16503. var _default = {
  16504. // popup组件
  16505. popup: {
  16506. show: false,
  16507. overlay: true,
  16508. mode: 'bottom',
  16509. duration: 300,
  16510. closeable: false,
  16511. overlayStyle: function overlayStyle() {},
  16512. closeOnClickOverlay: true,
  16513. zIndex: 10075,
  16514. safeAreaInsetBottom: true,
  16515. safeAreaInsetTop: false,
  16516. closeIconPos: 'top-right',
  16517. round: 0,
  16518. zoom: true,
  16519. bgColor: '',
  16520. overlayOpacity: 0.5
  16521. }
  16522. };
  16523. exports.default = _default;
  16524. /***/ }),
  16525. /* 129 */
  16526. /*!****************************************************************************!*\
  16527. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/radio.js ***!
  16528. \****************************************************************************/
  16529. /*! no static exports found */
  16530. /***/ (function(module, exports, __webpack_require__) {
  16531. "use strict";
  16532. Object.defineProperty(exports, "__esModule", {
  16533. value: true
  16534. });
  16535. exports.default = void 0;
  16536. /*
  16537. * @Author : LQ
  16538. * @Description :
  16539. * @version : 1.0
  16540. * @Date : 2021-08-20 16:44:21
  16541. * @LastAuthor : LQ
  16542. * @lastTime : 2021-08-20 17:02:34
  16543. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radio.js
  16544. */
  16545. var _default = {
  16546. // radio组件
  16547. radio: {
  16548. name: '',
  16549. shape: '',
  16550. disabled: '',
  16551. labelDisabled: '',
  16552. activeColor: '',
  16553. inactiveColor: '',
  16554. iconSize: '',
  16555. labelSize: '',
  16556. label: '',
  16557. labelColor: '',
  16558. size: '',
  16559. iconColor: '',
  16560. placement: ''
  16561. }
  16562. };
  16563. exports.default = _default;
  16564. /***/ }),
  16565. /* 130 */
  16566. /*!*********************************************************************************!*\
  16567. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/radioGroup.js ***!
  16568. \*********************************************************************************/
  16569. /*! no static exports found */
  16570. /***/ (function(module, exports, __webpack_require__) {
  16571. "use strict";
  16572. Object.defineProperty(exports, "__esModule", {
  16573. value: true
  16574. });
  16575. exports.default = void 0;
  16576. /*
  16577. * @Author : LQ
  16578. * @Description :
  16579. * @version : 1.0
  16580. * @Date : 2021-08-20 16:44:21
  16581. * @LastAuthor : LQ
  16582. * @lastTime : 2021-08-20 17:03:12
  16583. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radioGroup.js
  16584. */
  16585. var _default = {
  16586. // radio-group组件
  16587. radioGroup: {
  16588. value: '',
  16589. disabled: false,
  16590. shape: 'circle',
  16591. activeColor: '#2979ff',
  16592. inactiveColor: '#c8c9cc',
  16593. name: '',
  16594. size: 18,
  16595. placement: 'row',
  16596. label: '',
  16597. labelColor: '#303133',
  16598. labelSize: 14,
  16599. labelDisabled: false,
  16600. iconColor: '#ffffff',
  16601. iconSize: 12,
  16602. borderBottom: false,
  16603. iconPlacement: 'left'
  16604. }
  16605. };
  16606. exports.default = _default;
  16607. /***/ }),
  16608. /* 131 */
  16609. /*!***************************************************************************!*\
  16610. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/rate.js ***!
  16611. \***************************************************************************/
  16612. /*! no static exports found */
  16613. /***/ (function(module, exports, __webpack_require__) {
  16614. "use strict";
  16615. Object.defineProperty(exports, "__esModule", {
  16616. value: true
  16617. });
  16618. exports.default = void 0;
  16619. /*
  16620. * @Author : LQ
  16621. * @Description :
  16622. * @version : 1.0
  16623. * @Date : 2021-08-20 16:44:21
  16624. * @LastAuthor : LQ
  16625. * @lastTime : 2021-08-20 17:05:09
  16626. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rate.js
  16627. */
  16628. var _default = {
  16629. // rate组件
  16630. rate: {
  16631. value: 1,
  16632. count: 5,
  16633. disabled: false,
  16634. size: 18,
  16635. inactiveColor: '#b2b2b2',
  16636. activeColor: '#FA3534',
  16637. gutter: 4,
  16638. minCount: 1,
  16639. allowHalf: false,
  16640. activeIcon: 'star-fill',
  16641. inactiveIcon: 'star',
  16642. touchable: true
  16643. }
  16644. };
  16645. exports.default = _default;
  16646. /***/ }),
  16647. /* 132 */
  16648. /*!*******************************************************************************!*\
  16649. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/readMore.js ***!
  16650. \*******************************************************************************/
  16651. /*! no static exports found */
  16652. /***/ (function(module, exports, __webpack_require__) {
  16653. "use strict";
  16654. Object.defineProperty(exports, "__esModule", {
  16655. value: true
  16656. });
  16657. exports.default = void 0;
  16658. /*
  16659. * @Author : LQ
  16660. * @Description :
  16661. * @version : 1.0
  16662. * @Date : 2021-08-20 16:44:21
  16663. * @LastAuthor : LQ
  16664. * @lastTime : 2021-08-20 17:18:41
  16665. * @FilePath : /u-view2.0/uview-ui/libs/config/props/readMore.js
  16666. */
  16667. var _default = {
  16668. // readMore
  16669. readMore: {
  16670. showHeight: 400,
  16671. toggle: false,
  16672. closeText: '展开阅读全文',
  16673. openText: '收起',
  16674. color: '#2979ff',
  16675. fontSize: 14,
  16676. textIndent: '2em',
  16677. name: ''
  16678. }
  16679. };
  16680. exports.default = _default;
  16681. /***/ }),
  16682. /* 133 */
  16683. /*!**************************************************************************!*\
  16684. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/row.js ***!
  16685. \**************************************************************************/
  16686. /*! no static exports found */
  16687. /***/ (function(module, exports, __webpack_require__) {
  16688. "use strict";
  16689. Object.defineProperty(exports, "__esModule", {
  16690. value: true
  16691. });
  16692. exports.default = void 0;
  16693. /*
  16694. * @Author : LQ
  16695. * @Description :
  16696. * @version : 1.0
  16697. * @Date : 2021-08-20 16:44:21
  16698. * @LastAuthor : LQ
  16699. * @lastTime : 2021-08-20 17:18:58
  16700. * @FilePath : /u-view2.0/uview-ui/libs/config/props/row.js
  16701. */
  16702. var _default = {
  16703. // row
  16704. row: {
  16705. gutter: 0,
  16706. justify: 'start',
  16707. align: 'center'
  16708. }
  16709. };
  16710. exports.default = _default;
  16711. /***/ }),
  16712. /* 134 */
  16713. /*!********************************************************************************!*\
  16714. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/rowNotice.js ***!
  16715. \********************************************************************************/
  16716. /*! no static exports found */
  16717. /***/ (function(module, exports, __webpack_require__) {
  16718. "use strict";
  16719. Object.defineProperty(exports, "__esModule", {
  16720. value: true
  16721. });
  16722. exports.default = void 0;
  16723. /*
  16724. * @Author : LQ
  16725. * @Description :
  16726. * @version : 1.0
  16727. * @Date : 2021-08-20 16:44:21
  16728. * @LastAuthor : LQ
  16729. * @lastTime : 2021-08-20 17:19:13
  16730. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rowNotice.js
  16731. */
  16732. var _default = {
  16733. // rowNotice
  16734. rowNotice: {
  16735. text: '',
  16736. icon: 'volume',
  16737. mode: '',
  16738. color: '#f9ae3d',
  16739. bgColor: '#fdf6ec',
  16740. fontSize: 14,
  16741. speed: 80
  16742. }
  16743. };
  16744. exports.default = _default;
  16745. /***/ }),
  16746. /* 135 */
  16747. /*!*********************************************************************************!*\
  16748. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/scrollList.js ***!
  16749. \*********************************************************************************/
  16750. /*! no static exports found */
  16751. /***/ (function(module, exports, __webpack_require__) {
  16752. "use strict";
  16753. Object.defineProperty(exports, "__esModule", {
  16754. value: true
  16755. });
  16756. exports.default = void 0;
  16757. /*
  16758. * @Author : LQ
  16759. * @Description :
  16760. * @version : 1.0
  16761. * @Date : 2021-08-20 16:44:21
  16762. * @LastAuthor : LQ
  16763. * @lastTime : 2021-08-20 17:19:28
  16764. * @FilePath : /u-view2.0/uview-ui/libs/config/props/scrollList.js
  16765. */
  16766. var _default = {
  16767. // scrollList
  16768. scrollList: {
  16769. indicatorWidth: 50,
  16770. indicatorBarWidth: 20,
  16771. indicator: true,
  16772. indicatorColor: '#f2f2f2',
  16773. indicatorActiveColor: '#3c9cff',
  16774. indicatorStyle: ''
  16775. }
  16776. };
  16777. exports.default = _default;
  16778. /***/ }),
  16779. /* 136 */
  16780. /*!*****************************************************************************!*\
  16781. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/search.js ***!
  16782. \*****************************************************************************/
  16783. /*! no static exports found */
  16784. /***/ (function(module, exports, __webpack_require__) {
  16785. "use strict";
  16786. Object.defineProperty(exports, "__esModule", {
  16787. value: true
  16788. });
  16789. exports.default = void 0;
  16790. /*
  16791. * @Author : LQ
  16792. * @Description :
  16793. * @version : 1.0
  16794. * @Date : 2021-08-20 16:44:21
  16795. * @LastAuthor : LQ
  16796. * @lastTime : 2021-08-20 17:19:45
  16797. * @FilePath : /u-view2.0/uview-ui/libs/config/props/search.js
  16798. */
  16799. var _default = {
  16800. // search
  16801. search: {
  16802. shape: 'round',
  16803. bgColor: '#f2f2f2',
  16804. placeholder: '请输入关键字',
  16805. clearabled: true,
  16806. focus: false,
  16807. showAction: true,
  16808. actionStyle: function actionStyle() {
  16809. return {};
  16810. },
  16811. actionText: '搜索',
  16812. inputAlign: 'left',
  16813. inputStyle: function inputStyle() {
  16814. return {};
  16815. },
  16816. disabled: false,
  16817. borderColor: 'transparent',
  16818. searchIconColor: '#909399',
  16819. searchIconSize: 22,
  16820. color: '#606266',
  16821. placeholderColor: '#909399',
  16822. searchIcon: 'search',
  16823. margin: '0',
  16824. animation: false,
  16825. value: '',
  16826. maxlength: '-1',
  16827. height: 32,
  16828. label: null
  16829. }
  16830. };
  16831. exports.default = _default;
  16832. /***/ }),
  16833. /* 137 */
  16834. /*!******************************************************************************!*\
  16835. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/section.js ***!
  16836. \******************************************************************************/
  16837. /*! no static exports found */
  16838. /***/ (function(module, exports, __webpack_require__) {
  16839. "use strict";
  16840. Object.defineProperty(exports, "__esModule", {
  16841. value: true
  16842. });
  16843. exports.default = void 0;
  16844. /*
  16845. * @Author : LQ
  16846. * @Description :
  16847. * @version : 1.0
  16848. * @Date : 2021-08-20 16:44:21
  16849. * @LastAuthor : LQ
  16850. * @lastTime : 2021-08-20 17:07:33
  16851. * @FilePath : /u-view2.0/uview-ui/libs/config/props/section.js
  16852. */
  16853. var _default = {
  16854. // u-section组件
  16855. section: {
  16856. title: '',
  16857. subTitle: '更多',
  16858. right: true,
  16859. fontSize: 15,
  16860. bold: true,
  16861. color: '#303133',
  16862. subColor: '#909399',
  16863. showLine: true,
  16864. lineColor: '',
  16865. arrow: true
  16866. }
  16867. };
  16868. exports.default = _default;
  16869. /***/ }),
  16870. /* 138 */
  16871. /*!*******************************************************************************!*\
  16872. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/skeleton.js ***!
  16873. \*******************************************************************************/
  16874. /*! no static exports found */
  16875. /***/ (function(module, exports, __webpack_require__) {
  16876. "use strict";
  16877. Object.defineProperty(exports, "__esModule", {
  16878. value: true
  16879. });
  16880. exports.default = void 0;
  16881. /*
  16882. * @Author : LQ
  16883. * @Description :
  16884. * @version : 1.0
  16885. * @Date : 2021-08-20 16:44:21
  16886. * @LastAuthor : LQ
  16887. * @lastTime : 2021-08-20 17:20:14
  16888. * @FilePath : /u-view2.0/uview-ui/libs/config/props/skeleton.js
  16889. */
  16890. var _default = {
  16891. // skeleton
  16892. skeleton: {
  16893. loading: true,
  16894. animate: true,
  16895. rows: 0,
  16896. rowsWidth: '100%',
  16897. rowsHeight: 18,
  16898. title: true,
  16899. titleWidth: '50%',
  16900. titleHeight: 18,
  16901. avatar: false,
  16902. avatarSize: 32,
  16903. avatarShape: 'circle'
  16904. }
  16905. };
  16906. exports.default = _default;
  16907. /***/ }),
  16908. /* 139 */
  16909. /*!*****************************************************************************!*\
  16910. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/slider.js ***!
  16911. \*****************************************************************************/
  16912. /*! no static exports found */
  16913. /***/ (function(module, exports, __webpack_require__) {
  16914. "use strict";
  16915. Object.defineProperty(exports, "__esModule", {
  16916. value: true
  16917. });
  16918. exports.default = void 0;
  16919. /*
  16920. * @Author : LQ
  16921. * @Description :
  16922. * @version : 1.0
  16923. * @Date : 2021-08-20 16:44:21
  16924. * @LastAuthor : LQ
  16925. * @lastTime : 2021-08-20 17:08:25
  16926. * @FilePath : /u-view2.0/uview-ui/libs/config/props/slider.js
  16927. */
  16928. var _default = {
  16929. // slider组件
  16930. slider: {
  16931. value: 0,
  16932. blockSize: 18,
  16933. min: 0,
  16934. max: 100,
  16935. step: 1,
  16936. activeColor: '#2979ff',
  16937. inactiveColor: '#c0c4cc',
  16938. blockColor: '#ffffff',
  16939. showValue: false,
  16940. disabled: false,
  16941. blockStyle: function blockStyle() {}
  16942. }
  16943. };
  16944. exports.default = _default;
  16945. /***/ }),
  16946. /* 140 */
  16947. /*!********************************************************************************!*\
  16948. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/statusBar.js ***!
  16949. \********************************************************************************/
  16950. /*! no static exports found */
  16951. /***/ (function(module, exports, __webpack_require__) {
  16952. "use strict";
  16953. Object.defineProperty(exports, "__esModule", {
  16954. value: true
  16955. });
  16956. exports.default = void 0;
  16957. /*
  16958. * @Author : LQ
  16959. * @Description :
  16960. * @version : 1.0
  16961. * @Date : 2021-08-20 16:44:21
  16962. * @LastAuthor : LQ
  16963. * @lastTime : 2021-08-20 17:20:39
  16964. * @FilePath : /u-view2.0/uview-ui/libs/config/props/statusBar.js
  16965. */
  16966. var _default = {
  16967. // statusBar
  16968. statusBar: {
  16969. bgColor: 'transparent'
  16970. }
  16971. };
  16972. exports.default = _default;
  16973. /***/ }),
  16974. /* 141 */
  16975. /*!****************************************************************************!*\
  16976. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/steps.js ***!
  16977. \****************************************************************************/
  16978. /*! no static exports found */
  16979. /***/ (function(module, exports, __webpack_require__) {
  16980. "use strict";
  16981. Object.defineProperty(exports, "__esModule", {
  16982. value: true
  16983. });
  16984. exports.default = void 0;
  16985. /*
  16986. * @Author : LQ
  16987. * @Description :
  16988. * @version : 1.0
  16989. * @Date : 2021-08-20 16:44:21
  16990. * @LastAuthor : LQ
  16991. * @lastTime : 2021-08-20 17:12:37
  16992. * @FilePath : /u-view2.0/uview-ui/libs/config/props/steps.js
  16993. */
  16994. var _default = {
  16995. // steps组件
  16996. steps: {
  16997. direction: 'row',
  16998. current: 0,
  16999. activeColor: '#3c9cff',
  17000. inactiveColor: '#969799',
  17001. activeIcon: '',
  17002. inactiveIcon: '',
  17003. dot: false
  17004. }
  17005. };
  17006. exports.default = _default;
  17007. /***/ }),
  17008. /* 142 */
  17009. /*!********************************************************************************!*\
  17010. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/stepsItem.js ***!
  17011. \********************************************************************************/
  17012. /*! no static exports found */
  17013. /***/ (function(module, exports, __webpack_require__) {
  17014. "use strict";
  17015. Object.defineProperty(exports, "__esModule", {
  17016. value: true
  17017. });
  17018. exports.default = void 0;
  17019. /*
  17020. * @Author : LQ
  17021. * @Description :
  17022. * @version : 1.0
  17023. * @Date : 2021-08-20 16:44:21
  17024. * @LastAuthor : LQ
  17025. * @lastTime : 2021-08-20 17:12:55
  17026. * @FilePath : /u-view2.0/uview-ui/libs/config/props/stepsItem.js
  17027. */
  17028. var _default = {
  17029. // steps-item组件
  17030. stepsItem: {
  17031. title: '',
  17032. desc: '',
  17033. iconSize: 17,
  17034. error: false
  17035. }
  17036. };
  17037. exports.default = _default;
  17038. /***/ }),
  17039. /* 143 */
  17040. /*!*****************************************************************************!*\
  17041. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/sticky.js ***!
  17042. \*****************************************************************************/
  17043. /*! no static exports found */
  17044. /***/ (function(module, exports, __webpack_require__) {
  17045. "use strict";
  17046. Object.defineProperty(exports, "__esModule", {
  17047. value: true
  17048. });
  17049. exports.default = void 0;
  17050. /*
  17051. * @Author : LQ
  17052. * @Description :
  17053. * @version : 1.0
  17054. * @Date : 2021-08-20 16:44:21
  17055. * @LastAuthor : LQ
  17056. * @lastTime : 2021-08-20 17:01:30
  17057. * @FilePath : /u-view2.0/uview-ui/libs/config/props/sticky.js
  17058. */
  17059. var _default = {
  17060. // sticky组件
  17061. sticky: {
  17062. offsetTop: 0,
  17063. customNavHeight: 0,
  17064. disabled: false,
  17065. bgColor: 'transparent',
  17066. zIndex: '',
  17067. index: ''
  17068. }
  17069. };
  17070. exports.default = _default;
  17071. /***/ }),
  17072. /* 144 */
  17073. /*!*********************************************************************************!*\
  17074. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/subsection.js ***!
  17075. \*********************************************************************************/
  17076. /*! no static exports found */
  17077. /***/ (function(module, exports, __webpack_require__) {
  17078. "use strict";
  17079. Object.defineProperty(exports, "__esModule", {
  17080. value: true
  17081. });
  17082. exports.default = void 0;
  17083. /*
  17084. * @Author : LQ
  17085. * @Description :
  17086. * @version : 1.0
  17087. * @Date : 2021-08-20 16:44:21
  17088. * @LastAuthor : LQ
  17089. * @lastTime : 2021-08-20 17:12:20
  17090. * @FilePath : /u-view2.0/uview-ui/libs/config/props/subsection.js
  17091. */
  17092. var _default = {
  17093. // subsection组件
  17094. subsection: {
  17095. list: [],
  17096. current: 0,
  17097. activeColor: '#3c9cff',
  17098. inactiveColor: '#303133',
  17099. mode: 'button',
  17100. fontSize: 12,
  17101. bold: true,
  17102. bgColor: '#eeeeef',
  17103. keyName: 'name'
  17104. }
  17105. };
  17106. exports.default = _default;
  17107. /***/ }),
  17108. /* 145 */
  17109. /*!**********************************************************************************!*\
  17110. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/swipeAction.js ***!
  17111. \**********************************************************************************/
  17112. /*! no static exports found */
  17113. /***/ (function(module, exports, __webpack_require__) {
  17114. "use strict";
  17115. Object.defineProperty(exports, "__esModule", {
  17116. value: true
  17117. });
  17118. exports.default = void 0;
  17119. /*
  17120. * @Author : LQ
  17121. * @Description :
  17122. * @version : 1.0
  17123. * @Date : 2021-08-20 16:44:21
  17124. * @LastAuthor : LQ
  17125. * @lastTime : 2021-08-20 17:00:42
  17126. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeAction.js
  17127. */
  17128. var _default = {
  17129. // swipe-action组件
  17130. swipeAction: {
  17131. autoClose: true
  17132. }
  17133. };
  17134. exports.default = _default;
  17135. /***/ }),
  17136. /* 146 */
  17137. /*!**************************************************************************************!*\
  17138. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/swipeActionItem.js ***!
  17139. \**************************************************************************************/
  17140. /*! no static exports found */
  17141. /***/ (function(module, exports, __webpack_require__) {
  17142. "use strict";
  17143. Object.defineProperty(exports, "__esModule", {
  17144. value: true
  17145. });
  17146. exports.default = void 0;
  17147. /*
  17148. * @Author : LQ
  17149. * @Description :
  17150. * @version : 1.0
  17151. * @Date : 2021-08-20 16:44:21
  17152. * @LastAuthor : LQ
  17153. * @lastTime : 2021-08-20 17:01:13
  17154. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeActionItem.js
  17155. */
  17156. var _default = {
  17157. // swipeActionItem 组件
  17158. swipeActionItem: {
  17159. show: false,
  17160. name: '',
  17161. disabled: false,
  17162. threshold: 20,
  17163. autoClose: true,
  17164. options: [],
  17165. duration: 300
  17166. }
  17167. };
  17168. exports.default = _default;
  17169. /***/ }),
  17170. /* 147 */
  17171. /*!*****************************************************************************!*\
  17172. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/swiper.js ***!
  17173. \*****************************************************************************/
  17174. /*! no static exports found */
  17175. /***/ (function(module, exports, __webpack_require__) {
  17176. "use strict";
  17177. Object.defineProperty(exports, "__esModule", {
  17178. value: true
  17179. });
  17180. exports.default = void 0;
  17181. /*
  17182. * @Author : LQ
  17183. * @Description :
  17184. * @version : 1.0
  17185. * @Date : 2021-08-20 16:44:21
  17186. * @LastAuthor : LQ
  17187. * @lastTime : 2021-08-20 17:21:38
  17188. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiper.js
  17189. */
  17190. var _default = {
  17191. // swiper 组件
  17192. swiper: {
  17193. list: function list() {
  17194. return [];
  17195. },
  17196. indicator: false,
  17197. indicatorActiveColor: '#FFFFFF',
  17198. indicatorInactiveColor: 'rgba(255, 255, 255, 0.35)',
  17199. indicatorStyle: '',
  17200. indicatorMode: 'line',
  17201. autoplay: true,
  17202. current: 0,
  17203. currentItemId: '',
  17204. interval: 3000,
  17205. duration: 300,
  17206. circular: false,
  17207. previousMargin: 0,
  17208. nextMargin: 0,
  17209. acceleration: false,
  17210. displayMultipleItems: 1,
  17211. easingFunction: 'default',
  17212. keyName: 'url',
  17213. imgMode: 'aspectFill',
  17214. height: 130,
  17215. bgColor: '#f3f4f6',
  17216. radius: 4,
  17217. loading: false,
  17218. showTitle: false
  17219. }
  17220. };
  17221. exports.default = _default;
  17222. /***/ }),
  17223. /* 148 */
  17224. /*!***************************************************************************************!*\
  17225. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/swipterIndicator.js ***!
  17226. \***************************************************************************************/
  17227. /*! no static exports found */
  17228. /***/ (function(module, exports, __webpack_require__) {
  17229. "use strict";
  17230. Object.defineProperty(exports, "__esModule", {
  17231. value: true
  17232. });
  17233. exports.default = void 0;
  17234. /*
  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 17:22:07
  17241. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiperIndicator.js
  17242. */
  17243. var _default = {
  17244. // swiperIndicator 组件
  17245. swiperIndicator: {
  17246. length: 0,
  17247. current: 0,
  17248. indicatorActiveColor: '',
  17249. indicatorInactiveColor: '',
  17250. indicatorMode: 'line'
  17251. }
  17252. };
  17253. exports.default = _default;
  17254. /***/ }),
  17255. /* 149 */
  17256. /*!*****************************************************************************!*\
  17257. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/switch.js ***!
  17258. \*****************************************************************************/
  17259. /*! no static exports found */
  17260. /***/ (function(module, exports, __webpack_require__) {
  17261. "use strict";
  17262. Object.defineProperty(exports, "__esModule", {
  17263. value: true
  17264. });
  17265. exports.default = void 0;
  17266. /*
  17267. * @Author : LQ
  17268. * @Description :
  17269. * @version : 1.0
  17270. * @Date : 2021-08-20 16:44:21
  17271. * @LastAuthor : LQ
  17272. * @lastTime : 2021-08-20 17:22:24
  17273. * @FilePath : /u-view2.0/uview-ui/libs/config/props/switch.js
  17274. */
  17275. var _default = {
  17276. // switch
  17277. switch: {
  17278. loading: false,
  17279. disabled: false,
  17280. size: 25,
  17281. activeColor: '#2979ff',
  17282. inactiveColor: '#ffffff',
  17283. value: false,
  17284. activeValue: true,
  17285. inactiveValue: false,
  17286. asyncChange: false,
  17287. space: 0
  17288. }
  17289. };
  17290. exports.default = _default;
  17291. /***/ }),
  17292. /* 150 */
  17293. /*!*****************************************************************************!*\
  17294. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/tabbar.js ***!
  17295. \*****************************************************************************/
  17296. /*! no static exports found */
  17297. /***/ (function(module, exports, __webpack_require__) {
  17298. "use strict";
  17299. Object.defineProperty(exports, "__esModule", {
  17300. value: true
  17301. });
  17302. exports.default = void 0;
  17303. /*
  17304. * @Author : LQ
  17305. * @Description :
  17306. * @version : 1.0
  17307. * @Date : 2021-08-20 16:44:21
  17308. * @LastAuthor : LQ
  17309. * @lastTime : 2021-08-20 17:22:40
  17310. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbar.js
  17311. */
  17312. var _default = {
  17313. // tabbar
  17314. tabbar: {
  17315. value: null,
  17316. safeAreaInsetBottom: true,
  17317. border: true,
  17318. zIndex: 1,
  17319. activeColor: '#1989fa',
  17320. inactiveColor: '#7d7e80',
  17321. fixed: true,
  17322. placeholder: true
  17323. }
  17324. };
  17325. exports.default = _default;
  17326. /***/ }),
  17327. /* 151 */
  17328. /*!*********************************************************************************!*\
  17329. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/tabbarItem.js ***!
  17330. \*********************************************************************************/
  17331. /*! no static exports found */
  17332. /***/ (function(module, exports, __webpack_require__) {
  17333. "use strict";
  17334. Object.defineProperty(exports, "__esModule", {
  17335. value: true
  17336. });
  17337. exports.default = void 0;
  17338. /*
  17339. * @Author : LQ
  17340. * @Description :
  17341. * @version : 1.0
  17342. * @Date : 2021-08-20 16:44:21
  17343. * @LastAuthor : LQ
  17344. * @lastTime : 2021-08-20 17:22:55
  17345. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbarItem.js
  17346. */
  17347. var _default = {
  17348. //
  17349. tabbarItem: {
  17350. name: null,
  17351. icon: '',
  17352. badge: null,
  17353. dot: false,
  17354. text: '',
  17355. badgeStyle: 'top: 6px;right:2px;'
  17356. }
  17357. };
  17358. exports.default = _default;
  17359. /***/ }),
  17360. /* 152 */
  17361. /*!***************************************************************************!*\
  17362. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/tabs.js ***!
  17363. \***************************************************************************/
  17364. /*! no static exports found */
  17365. /***/ (function(module, exports, __webpack_require__) {
  17366. "use strict";
  17367. Object.defineProperty(exports, "__esModule", {
  17368. value: true
  17369. });
  17370. exports.default = void 0;
  17371. /*
  17372. * @Author : LQ
  17373. * @Description :
  17374. * @version : 1.0
  17375. * @Date : 2021-08-20 16:44:21
  17376. * @LastAuthor : LQ
  17377. * @lastTime : 2021-08-20 17:23:14
  17378. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabs.js
  17379. */
  17380. var _default = {
  17381. //
  17382. tabs: {
  17383. duration: 300,
  17384. list: function list() {
  17385. return [];
  17386. },
  17387. lineColor: '#3c9cff',
  17388. activeStyle: function activeStyle() {
  17389. return {
  17390. color: '#303133'
  17391. };
  17392. },
  17393. inactiveStyle: function inactiveStyle() {
  17394. return {
  17395. color: '#606266'
  17396. };
  17397. },
  17398. lineWidth: 20,
  17399. lineHeight: 3,
  17400. lineBgSize: 'cover',
  17401. itemStyle: function itemStyle() {
  17402. return {
  17403. height: '44px'
  17404. };
  17405. },
  17406. scrollable: true,
  17407. current: 0,
  17408. keyName: 'name'
  17409. }
  17410. };
  17411. exports.default = _default;
  17412. /***/ }),
  17413. /* 153 */
  17414. /*!**************************************************************************!*\
  17415. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/tag.js ***!
  17416. \**************************************************************************/
  17417. /*! no static exports found */
  17418. /***/ (function(module, exports, __webpack_require__) {
  17419. "use strict";
  17420. Object.defineProperty(exports, "__esModule", {
  17421. value: true
  17422. });
  17423. exports.default = void 0;
  17424. /*
  17425. * @Author : LQ
  17426. * @Description :
  17427. * @version : 1.0
  17428. * @Date : 2021-08-20 16:44:21
  17429. * @LastAuthor : LQ
  17430. * @lastTime : 2021-08-20 17:23:37
  17431. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tag.js
  17432. */
  17433. var _default = {
  17434. // tag 组件
  17435. tag: {
  17436. type: 'primary',
  17437. disabled: false,
  17438. size: 'medium',
  17439. shape: 'square',
  17440. text: '',
  17441. bgColor: '',
  17442. color: '',
  17443. borderColor: '',
  17444. closeColor: '#C6C7CB',
  17445. name: '',
  17446. plainFill: false,
  17447. plain: false,
  17448. closable: false,
  17449. show: true,
  17450. icon: ''
  17451. }
  17452. };
  17453. exports.default = _default;
  17454. /***/ }),
  17455. /* 154 */
  17456. /*!***************************************************************************!*\
  17457. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/text.js ***!
  17458. \***************************************************************************/
  17459. /*! no static exports found */
  17460. /***/ (function(module, exports, __webpack_require__) {
  17461. "use strict";
  17462. Object.defineProperty(exports, "__esModule", {
  17463. value: true
  17464. });
  17465. exports.default = void 0;
  17466. /*
  17467. * @Author : LQ
  17468. * @Description :
  17469. * @version : 1.0
  17470. * @Date : 2021-08-20 16:44:21
  17471. * @LastAuthor : LQ
  17472. * @lastTime : 2021-08-20 17:23:58
  17473. * @FilePath : /u-view2.0/uview-ui/libs/config/props/text.js
  17474. */
  17475. var _default = {
  17476. // text 组件
  17477. text: {
  17478. type: '',
  17479. show: true,
  17480. text: '',
  17481. prefixIcon: '',
  17482. suffixIcon: '',
  17483. mode: '',
  17484. href: '',
  17485. format: '',
  17486. call: false,
  17487. openType: '',
  17488. bold: false,
  17489. block: false,
  17490. lines: '',
  17491. color: '#303133',
  17492. size: 15,
  17493. iconStyle: function iconStyle() {
  17494. return {
  17495. fontSize: '15px'
  17496. };
  17497. },
  17498. decoration: 'none',
  17499. margin: 0,
  17500. lineHeight: '',
  17501. align: 'left',
  17502. wordWrap: 'normal'
  17503. }
  17504. };
  17505. exports.default = _default;
  17506. /***/ }),
  17507. /* 155 */
  17508. /*!*******************************************************************************!*\
  17509. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/textarea.js ***!
  17510. \*******************************************************************************/
  17511. /*! no static exports found */
  17512. /***/ (function(module, exports, __webpack_require__) {
  17513. "use strict";
  17514. Object.defineProperty(exports, "__esModule", {
  17515. value: true
  17516. });
  17517. exports.default = void 0;
  17518. /*
  17519. * @Author : LQ
  17520. * @Description :
  17521. * @version : 1.0
  17522. * @Date : 2021-08-20 16:44:21
  17523. * @LastAuthor : LQ
  17524. * @lastTime : 2021-08-20 17:24:32
  17525. * @FilePath : /u-view2.0/uview-ui/libs/config/props/textarea.js
  17526. */
  17527. var _default = {
  17528. // textarea 组件
  17529. textarea: {
  17530. value: '',
  17531. placeholder: '',
  17532. placeholderClass: 'textarea-placeholder',
  17533. placeholderStyle: 'color: #c0c4cc',
  17534. height: 70,
  17535. confirmType: 'done',
  17536. disabled: false,
  17537. count: false,
  17538. focus: false,
  17539. autoHeight: false,
  17540. fixed: false,
  17541. cursorSpacing: 0,
  17542. cursor: '',
  17543. showConfirmBar: true,
  17544. selectionStart: -1,
  17545. selectionEnd: -1,
  17546. adjustPosition: true,
  17547. disableDefaultPadding: false,
  17548. holdKeyboard: false,
  17549. maxlength: 140,
  17550. border: 'surround',
  17551. formatter: null
  17552. }
  17553. };
  17554. exports.default = _default;
  17555. /***/ }),
  17556. /* 156 */
  17557. /*!****************************************************************************!*\
  17558. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/toast.js ***!
  17559. \****************************************************************************/
  17560. /*! no static exports found */
  17561. /***/ (function(module, exports, __webpack_require__) {
  17562. "use strict";
  17563. Object.defineProperty(exports, "__esModule", {
  17564. value: true
  17565. });
  17566. exports.default = void 0;
  17567. /*
  17568. * @Author : LQ
  17569. * @Description :
  17570. * @version : 1.0
  17571. * @Date : 2021-08-20 16:44:21
  17572. * @LastAuthor : LQ
  17573. * @lastTime : 2021-08-20 17:07:07
  17574. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toast.js
  17575. */
  17576. var _default = {
  17577. // toast组件
  17578. toast: {
  17579. zIndex: 10090,
  17580. loading: false,
  17581. text: '',
  17582. icon: '',
  17583. type: '',
  17584. loadingMode: '',
  17585. show: '',
  17586. overlay: false,
  17587. position: 'center',
  17588. params: function params() {},
  17589. duration: 2000,
  17590. isTab: false,
  17591. url: '',
  17592. callback: null,
  17593. back: false
  17594. }
  17595. };
  17596. exports.default = _default;
  17597. /***/ }),
  17598. /* 157 */
  17599. /*!******************************************************************************!*\
  17600. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/toolbar.js ***!
  17601. \******************************************************************************/
  17602. /*! no static exports found */
  17603. /***/ (function(module, exports, __webpack_require__) {
  17604. "use strict";
  17605. Object.defineProperty(exports, "__esModule", {
  17606. value: true
  17607. });
  17608. exports.default = void 0;
  17609. /*
  17610. * @Author : LQ
  17611. * @Description :
  17612. * @version : 1.0
  17613. * @Date : 2021-08-20 16:44:21
  17614. * @LastAuthor : LQ
  17615. * @lastTime : 2021-08-20 17:24:55
  17616. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toolbar.js
  17617. */
  17618. var _default = {
  17619. // toolbar 组件
  17620. toolbar: {
  17621. show: true,
  17622. cancelText: '取消',
  17623. confirmText: '确认',
  17624. cancelColor: '#909193',
  17625. confirmColor: '#3c9cff',
  17626. title: ''
  17627. }
  17628. };
  17629. exports.default = _default;
  17630. /***/ }),
  17631. /* 158 */
  17632. /*!******************************************************************************!*\
  17633. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/tooltip.js ***!
  17634. \******************************************************************************/
  17635. /*! no static exports found */
  17636. /***/ (function(module, exports, __webpack_require__) {
  17637. "use strict";
  17638. Object.defineProperty(exports, "__esModule", {
  17639. value: true
  17640. });
  17641. exports.default = void 0;
  17642. /*
  17643. * @Author : LQ
  17644. * @Description :
  17645. * @version : 1.0
  17646. * @Date : 2021-08-20 16:44:21
  17647. * @LastAuthor : LQ
  17648. * @lastTime : 2021-08-20 17:25:14
  17649. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tooltip.js
  17650. */
  17651. var _default = {
  17652. // tooltip 组件
  17653. tooltip: {
  17654. text: '',
  17655. copyText: '',
  17656. size: 14,
  17657. color: '#606266',
  17658. bgColor: 'transparent',
  17659. direction: 'top',
  17660. zIndex: 10071,
  17661. showCopy: true,
  17662. buttons: function buttons() {
  17663. return [];
  17664. },
  17665. overlay: true,
  17666. showToast: true
  17667. }
  17668. };
  17669. exports.default = _default;
  17670. /***/ }),
  17671. /* 159 */
  17672. /*!*********************************************************************************!*\
  17673. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/transition.js ***!
  17674. \*********************************************************************************/
  17675. /*! no static exports found */
  17676. /***/ (function(module, exports, __webpack_require__) {
  17677. "use strict";
  17678. Object.defineProperty(exports, "__esModule", {
  17679. value: true
  17680. });
  17681. exports.default = void 0;
  17682. /*
  17683. * @Author : LQ
  17684. * @Description :
  17685. * @version : 1.0
  17686. * @Date : 2021-08-20 16:44:21
  17687. * @LastAuthor : LQ
  17688. * @lastTime : 2021-08-20 16:59:00
  17689. * @FilePath : /u-view2.0/uview-ui/libs/config/props/transition.js
  17690. */
  17691. var _default = {
  17692. // transition动画组件的props
  17693. transition: {
  17694. show: false,
  17695. mode: 'fade',
  17696. duration: '300',
  17697. timingFunction: 'ease-out'
  17698. }
  17699. };
  17700. exports.default = _default;
  17701. /***/ }),
  17702. /* 160 */
  17703. /*!*****************************************************************************!*\
  17704. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/props/upload.js ***!
  17705. \*****************************************************************************/
  17706. /*! no static exports found */
  17707. /***/ (function(module, exports, __webpack_require__) {
  17708. "use strict";
  17709. Object.defineProperty(exports, "__esModule", {
  17710. value: true
  17711. });
  17712. exports.default = void 0;
  17713. /*
  17714. * @Author : LQ
  17715. * @Description :
  17716. * @version : 1.0
  17717. * @Date : 2021-08-20 16:44:21
  17718. * @LastAuthor : LQ
  17719. * @lastTime : 2021-08-20 17:09:50
  17720. * @FilePath : /u-view2.0/uview-ui/libs/config/props/upload.js
  17721. */
  17722. var _default = {
  17723. // upload组件
  17724. upload: {
  17725. accept: 'image',
  17726. capture: function capture() {
  17727. return ['album', 'camera'];
  17728. },
  17729. compressed: true,
  17730. camera: 'back',
  17731. maxDuration: 60,
  17732. uploadIcon: 'camera-fill',
  17733. uploadIconColor: '#D3D4D6',
  17734. useBeforeRead: false,
  17735. previewFullImage: true,
  17736. maxCount: 52,
  17737. disabled: false,
  17738. imageMode: 'aspectFill',
  17739. name: '',
  17740. sizeType: function sizeType() {
  17741. return ['original', 'compressed'];
  17742. },
  17743. multiple: false,
  17744. deletable: true,
  17745. maxSize: Number.MAX_VALUE,
  17746. fileList: function fileList() {
  17747. return [];
  17748. },
  17749. uploadText: '',
  17750. width: 80,
  17751. height: 80,
  17752. previewImage: true
  17753. }
  17754. };
  17755. exports.default = _default;
  17756. /***/ }),
  17757. /* 161 */
  17758. /*!***********************************************************************!*\
  17759. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/config/zIndex.js ***!
  17760. \***********************************************************************/
  17761. /*! no static exports found */
  17762. /***/ (function(module, exports, __webpack_require__) {
  17763. "use strict";
  17764. Object.defineProperty(exports, "__esModule", {
  17765. value: true
  17766. });
  17767. exports.default = void 0;
  17768. // uniapp在H5中各API的z-index值如下:
  17769. /**
  17770. * actionsheet: 999
  17771. * modal: 999
  17772. * navigate: 998
  17773. * tabbar: 998
  17774. * toast: 999
  17775. */
  17776. var _default = {
  17777. toast: 10090,
  17778. noNetwork: 10080,
  17779. // popup包含popup,actionsheet,keyboard,picker的值
  17780. popup: 10075,
  17781. mask: 10070,
  17782. navbar: 980,
  17783. topTips: 975,
  17784. sticky: 970,
  17785. indexListSticky: 965
  17786. };
  17787. exports.default = _default;
  17788. /***/ }),
  17789. /* 162 */
  17790. /*!***************************************************************************!*\
  17791. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/function/platform.js ***!
  17792. \***************************************************************************/
  17793. /*! no static exports found */
  17794. /***/ (function(module, exports, __webpack_require__) {
  17795. "use strict";
  17796. Object.defineProperty(exports, "__esModule", {
  17797. value: true
  17798. });
  17799. exports.default = void 0;
  17800. /**
  17801. * 注意:
  17802. * 此部分内容,在vue-cli模式下,需要在vue.config.js加入如下内容才有效:
  17803. * module.exports = {
  17804. * transpileDependencies: ['uview-v2']
  17805. * }
  17806. */
  17807. var platform = 'none';
  17808. platform = 'vue2';
  17809. platform = 'weixin';
  17810. platform = 'mp';
  17811. var _default = platform;
  17812. exports.default = _default;
  17813. /***/ }),
  17814. /* 163 */,
  17815. /* 164 */,
  17816. /* 165 */,
  17817. /* 166 */,
  17818. /* 167 */,
  17819. /* 168 */,
  17820. /* 169 */,
  17821. /* 170 */,
  17822. /* 171 */,
  17823. /* 172 */,
  17824. /* 173 */,
  17825. /* 174 */,
  17826. /* 175 */,
  17827. /* 176 */,
  17828. /* 177 */,
  17829. /* 178 */,
  17830. /* 179 */,
  17831. /* 180 */,
  17832. /* 181 */,
  17833. /* 182 */,
  17834. /* 183 */,
  17835. /* 184 */,
  17836. /* 185 */,
  17837. /* 186 */,
  17838. /* 187 */,
  17839. /* 188 */,
  17840. /* 189 */,
  17841. /* 190 */,
  17842. /* 191 */,
  17843. /* 192 */
  17844. /*!****************************************************************************!*\
  17845. !*** D:/jje_staff_uniapp/node_modules/uview-ui/components/u-icon/icons.js ***!
  17846. \****************************************************************************/
  17847. /*! no static exports found */
  17848. /***/ (function(module, exports, __webpack_require__) {
  17849. "use strict";
  17850. Object.defineProperty(exports, "__esModule", {
  17851. value: true
  17852. });
  17853. exports.default = void 0;
  17854. var _default = {
  17855. 'uicon-level': "\uE693",
  17856. 'uicon-column-line': "\uE68E",
  17857. 'uicon-checkbox-mark': "\uE807",
  17858. 'uicon-folder': "\uE7F5",
  17859. 'uicon-movie': "\uE7F6",
  17860. 'uicon-star-fill': "\uE669",
  17861. 'uicon-star': "\uE65F",
  17862. 'uicon-phone-fill': "\uE64F",
  17863. 'uicon-phone': "\uE622",
  17864. 'uicon-apple-fill': "\uE881",
  17865. 'uicon-chrome-circle-fill': "\uE885",
  17866. 'uicon-backspace': "\uE67B",
  17867. 'uicon-attach': "\uE632",
  17868. 'uicon-cut': "\uE948",
  17869. 'uicon-empty-car': "\uE602",
  17870. 'uicon-empty-coupon': "\uE682",
  17871. 'uicon-empty-address': "\uE646",
  17872. 'uicon-empty-favor': "\uE67C",
  17873. 'uicon-empty-permission': "\uE686",
  17874. 'uicon-empty-news': "\uE687",
  17875. 'uicon-empty-search': "\uE664",
  17876. 'uicon-github-circle-fill': "\uE887",
  17877. 'uicon-rmb': "\uE608",
  17878. 'uicon-person-delete-fill': "\uE66A",
  17879. 'uicon-reload': "\uE788",
  17880. 'uicon-order': "\uE68F",
  17881. 'uicon-server-man': "\uE6BC",
  17882. 'uicon-search': "\uE62A",
  17883. 'uicon-fingerprint': "\uE955",
  17884. 'uicon-more-dot-fill': "\uE630",
  17885. 'uicon-scan': "\uE662",
  17886. 'uicon-share-square': "\uE60B",
  17887. 'uicon-map': "\uE61D",
  17888. 'uicon-map-fill': "\uE64E",
  17889. 'uicon-tags': "\uE629",
  17890. 'uicon-tags-fill': "\uE651",
  17891. 'uicon-bookmark-fill': "\uE63B",
  17892. 'uicon-bookmark': "\uE60A",
  17893. 'uicon-eye': "\uE613",
  17894. 'uicon-eye-fill': "\uE641",
  17895. 'uicon-mic': "\uE64A",
  17896. 'uicon-mic-off': "\uE649",
  17897. 'uicon-calendar': "\uE66E",
  17898. 'uicon-calendar-fill': "\uE634",
  17899. 'uicon-trash': "\uE623",
  17900. 'uicon-trash-fill': "\uE658",
  17901. 'uicon-play-left': "\uE66D",
  17902. 'uicon-play-right': "\uE610",
  17903. 'uicon-minus': "\uE618",
  17904. 'uicon-plus': "\uE62D",
  17905. 'uicon-info': "\uE653",
  17906. 'uicon-info-circle': "\uE7D2",
  17907. 'uicon-info-circle-fill': "\uE64B",
  17908. 'uicon-question': "\uE715",
  17909. 'uicon-error': "\uE6D3",
  17910. 'uicon-close': "\uE685",
  17911. 'uicon-checkmark': "\uE6A8",
  17912. 'uicon-android-circle-fill': "\uE67E",
  17913. 'uicon-android-fill': "\uE67D",
  17914. 'uicon-ie': "\uE87B",
  17915. 'uicon-IE-circle-fill': "\uE889",
  17916. 'uicon-google': "\uE87A",
  17917. 'uicon-google-circle-fill': "\uE88A",
  17918. 'uicon-setting-fill': "\uE872",
  17919. 'uicon-setting': "\uE61F",
  17920. 'uicon-minus-square-fill': "\uE855",
  17921. 'uicon-plus-square-fill': "\uE856",
  17922. 'uicon-heart': "\uE7DF",
  17923. 'uicon-heart-fill': "\uE851",
  17924. 'uicon-camera': "\uE7D7",
  17925. 'uicon-camera-fill': "\uE870",
  17926. 'uicon-more-circle': "\uE63E",
  17927. 'uicon-more-circle-fill': "\uE645",
  17928. 'uicon-chat': "\uE620",
  17929. 'uicon-chat-fill': "\uE61E",
  17930. 'uicon-bag-fill': "\uE617",
  17931. 'uicon-bag': "\uE619",
  17932. 'uicon-error-circle-fill': "\uE62C",
  17933. 'uicon-error-circle': "\uE624",
  17934. 'uicon-close-circle': "\uE63F",
  17935. 'uicon-close-circle-fill': "\uE637",
  17936. 'uicon-checkmark-circle': "\uE63D",
  17937. 'uicon-checkmark-circle-fill': "\uE635",
  17938. 'uicon-question-circle-fill': "\uE666",
  17939. 'uicon-question-circle': "\uE625",
  17940. 'uicon-share': "\uE631",
  17941. 'uicon-share-fill': "\uE65E",
  17942. 'uicon-shopping-cart': "\uE621",
  17943. 'uicon-shopping-cart-fill': "\uE65D",
  17944. 'uicon-bell': "\uE609",
  17945. 'uicon-bell-fill': "\uE640",
  17946. 'uicon-list': "\uE650",
  17947. 'uicon-list-dot': "\uE616",
  17948. 'uicon-zhihu': "\uE6BA",
  17949. 'uicon-zhihu-circle-fill': "\uE709",
  17950. 'uicon-zhifubao': "\uE6B9",
  17951. 'uicon-zhifubao-circle-fill': "\uE6B8",
  17952. 'uicon-weixin-circle-fill': "\uE6B1",
  17953. 'uicon-weixin-fill': "\uE6B2",
  17954. 'uicon-twitter-circle-fill': "\uE6AB",
  17955. 'uicon-twitter': "\uE6AA",
  17956. 'uicon-taobao-circle-fill': "\uE6A7",
  17957. 'uicon-taobao': "\uE6A6",
  17958. 'uicon-weibo-circle-fill': "\uE6A5",
  17959. 'uicon-weibo': "\uE6A4",
  17960. 'uicon-qq-fill': "\uE6A1",
  17961. 'uicon-qq-circle-fill': "\uE6A0",
  17962. 'uicon-moments-circel-fill': "\uE69A",
  17963. 'uicon-moments': "\uE69B",
  17964. 'uicon-qzone': "\uE695",
  17965. 'uicon-qzone-circle-fill': "\uE696",
  17966. 'uicon-baidu-circle-fill': "\uE680",
  17967. 'uicon-baidu': "\uE681",
  17968. 'uicon-facebook-circle-fill': "\uE68A",
  17969. 'uicon-facebook': "\uE689",
  17970. 'uicon-car': "\uE60C",
  17971. 'uicon-car-fill': "\uE636",
  17972. 'uicon-warning-fill': "\uE64D",
  17973. 'uicon-warning': "\uE694",
  17974. 'uicon-clock-fill': "\uE638",
  17975. 'uicon-clock': "\uE60F",
  17976. 'uicon-edit-pen': "\uE612",
  17977. 'uicon-edit-pen-fill': "\uE66B",
  17978. 'uicon-email': "\uE611",
  17979. 'uicon-email-fill': "\uE642",
  17980. 'uicon-minus-circle': "\uE61B",
  17981. 'uicon-minus-circle-fill': "\uE652",
  17982. 'uicon-plus-circle': "\uE62E",
  17983. 'uicon-plus-circle-fill': "\uE661",
  17984. 'uicon-file-text': "\uE663",
  17985. 'uicon-file-text-fill': "\uE665",
  17986. 'uicon-pushpin': "\uE7E3",
  17987. 'uicon-pushpin-fill': "\uE86E",
  17988. 'uicon-grid': "\uE673",
  17989. 'uicon-grid-fill': "\uE678",
  17990. 'uicon-play-circle': "\uE647",
  17991. 'uicon-play-circle-fill': "\uE655",
  17992. 'uicon-pause-circle-fill': "\uE654",
  17993. 'uicon-pause': "\uE8FA",
  17994. 'uicon-pause-circle': "\uE643",
  17995. 'uicon-eye-off': "\uE648",
  17996. 'uicon-eye-off-outline': "\uE62B",
  17997. 'uicon-gift-fill': "\uE65C",
  17998. 'uicon-gift': "\uE65B",
  17999. 'uicon-rmb-circle-fill': "\uE657",
  18000. 'uicon-rmb-circle': "\uE677",
  18001. 'uicon-kefu-ermai': "\uE656",
  18002. 'uicon-server-fill': "\uE751",
  18003. 'uicon-coupon-fill': "\uE8C4",
  18004. 'uicon-coupon': "\uE8AE",
  18005. 'uicon-integral': "\uE704",
  18006. 'uicon-integral-fill': "\uE703",
  18007. 'uicon-home-fill': "\uE964",
  18008. 'uicon-home': "\uE965",
  18009. 'uicon-hourglass-half-fill': "\uE966",
  18010. 'uicon-hourglass': "\uE967",
  18011. 'uicon-account': "\uE628",
  18012. 'uicon-plus-people-fill': "\uE626",
  18013. 'uicon-minus-people-fill': "\uE615",
  18014. 'uicon-account-fill': "\uE614",
  18015. 'uicon-thumb-down-fill': "\uE726",
  18016. 'uicon-thumb-down': "\uE727",
  18017. 'uicon-thumb-up': "\uE733",
  18018. 'uicon-thumb-up-fill': "\uE72F",
  18019. 'uicon-lock-fill': "\uE979",
  18020. 'uicon-lock-open': "\uE973",
  18021. 'uicon-lock-opened-fill': "\uE974",
  18022. 'uicon-lock': "\uE97A",
  18023. 'uicon-red-packet-fill': "\uE690",
  18024. 'uicon-photo-fill': "\uE98B",
  18025. 'uicon-photo': "\uE98D",
  18026. 'uicon-volume-off-fill': "\uE659",
  18027. 'uicon-volume-off': "\uE644",
  18028. 'uicon-volume-fill': "\uE670",
  18029. 'uicon-volume': "\uE633",
  18030. 'uicon-red-packet': "\uE691",
  18031. 'uicon-download': "\uE63C",
  18032. 'uicon-arrow-up-fill': "\uE6B0",
  18033. 'uicon-arrow-down-fill': "\uE600",
  18034. 'uicon-play-left-fill': "\uE675",
  18035. 'uicon-play-right-fill': "\uE676",
  18036. 'uicon-rewind-left-fill': "\uE679",
  18037. 'uicon-rewind-right-fill': "\uE67A",
  18038. 'uicon-arrow-downward': "\uE604",
  18039. 'uicon-arrow-leftward': "\uE601",
  18040. 'uicon-arrow-rightward': "\uE603",
  18041. 'uicon-arrow-upward': "\uE607",
  18042. 'uicon-arrow-down': "\uE60D",
  18043. 'uicon-arrow-right': "\uE605",
  18044. 'uicon-arrow-left': "\uE60E",
  18045. 'uicon-arrow-up': "\uE606",
  18046. 'uicon-skip-back-left': "\uE674",
  18047. 'uicon-skip-forward-right': "\uE672",
  18048. 'uicon-rewind-right': "\uE66F",
  18049. 'uicon-rewind-left': "\uE671",
  18050. 'uicon-arrow-right-double': "\uE68D",
  18051. 'uicon-arrow-left-double': "\uE68C",
  18052. 'uicon-wifi-off': "\uE668",
  18053. 'uicon-wifi': "\uE667",
  18054. 'uicon-empty-data': "\uE62F",
  18055. 'uicon-empty-history': "\uE684",
  18056. 'uicon-empty-list': "\uE68B",
  18057. 'uicon-empty-page': "\uE627",
  18058. 'uicon-empty-order': "\uE639",
  18059. 'uicon-man': "\uE697",
  18060. 'uicon-woman': "\uE69C",
  18061. 'uicon-man-add': "\uE61C",
  18062. 'uicon-man-add-fill': "\uE64C",
  18063. 'uicon-man-delete': "\uE61A",
  18064. 'uicon-man-delete-fill': "\uE66A",
  18065. 'uicon-zh': "\uE70A",
  18066. 'uicon-en': "\uE692"
  18067. };
  18068. exports.default = _default;
  18069. /***/ }),
  18070. /* 193 */
  18071. /*!****************************************************************************!*\
  18072. !*** D:/jje_staff_uniapp/node_modules/uview-ui/components/u-icon/props.js ***!
  18073. \****************************************************************************/
  18074. /*! no static exports found */
  18075. /***/ (function(module, exports, __webpack_require__) {
  18076. "use strict";
  18077. /* WEBPACK VAR INJECTION */(function(uni) {
  18078. Object.defineProperty(exports, "__esModule", {
  18079. value: true
  18080. });
  18081. exports.default = void 0;
  18082. var _default = {
  18083. props: {
  18084. // 图标类名
  18085. name: {
  18086. type: String,
  18087. default: uni.$u.props.icon.name
  18088. },
  18089. // 图标颜色,可接受主题色
  18090. color: {
  18091. type: String,
  18092. default: uni.$u.props.icon.color
  18093. },
  18094. // 字体大小,单位px
  18095. size: {
  18096. type: [String, Number],
  18097. default: uni.$u.props.icon.size
  18098. },
  18099. // 是否显示粗体
  18100. bold: {
  18101. type: Boolean,
  18102. default: uni.$u.props.icon.bold
  18103. },
  18104. // 点击图标的时候传递事件出去的index(用于区分点击了哪一个)
  18105. index: {
  18106. type: [String, Number],
  18107. default: uni.$u.props.icon.index
  18108. },
  18109. // 触摸图标时的类名
  18110. hoverClass: {
  18111. type: String,
  18112. default: uni.$u.props.icon.hoverClass
  18113. },
  18114. // 自定义扩展前缀,方便用户扩展自己的图标库
  18115. customPrefix: {
  18116. type: String,
  18117. default: uni.$u.props.icon.customPrefix
  18118. },
  18119. // 图标右边或者下面的文字
  18120. label: {
  18121. type: [String, Number],
  18122. default: uni.$u.props.icon.label
  18123. },
  18124. // label的位置,只能右边或者下边
  18125. labelPos: {
  18126. type: String,
  18127. default: uni.$u.props.icon.labelPos
  18128. },
  18129. // label的大小
  18130. labelSize: {
  18131. type: [String, Number],
  18132. default: uni.$u.props.icon.labelSize
  18133. },
  18134. // label的颜色
  18135. labelColor: {
  18136. type: String,
  18137. default: uni.$u.props.icon.labelColor
  18138. },
  18139. // label与图标的距离
  18140. space: {
  18141. type: [String, Number],
  18142. default: uni.$u.props.icon.space
  18143. },
  18144. // 图片的mode
  18145. imgMode: {
  18146. type: String,
  18147. default: uni.$u.props.icon.imgMode
  18148. },
  18149. // 用于显示图片小图标时,图片的宽度
  18150. width: {
  18151. type: [String, Number],
  18152. default: uni.$u.props.icon.width
  18153. },
  18154. // 用于显示图片小图标时,图片的高度
  18155. height: {
  18156. type: [String, Number],
  18157. default: uni.$u.props.icon.height
  18158. },
  18159. // 用于解决某些情况下,让图标垂直居中的用途
  18160. top: {
  18161. type: [String, Number],
  18162. default: uni.$u.props.icon.top
  18163. },
  18164. // 是否阻止事件传播
  18165. stop: {
  18166. type: Boolean,
  18167. default: uni.$u.props.icon.stop
  18168. }
  18169. }
  18170. };
  18171. exports.default = _default;
  18172. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18173. /***/ }),
  18174. /* 194 */,
  18175. /* 195 */,
  18176. /* 196 */,
  18177. /* 197 */,
  18178. /* 198 */,
  18179. /* 199 */,
  18180. /* 200 */,
  18181. /* 201 */,
  18182. /* 202 */,
  18183. /* 203 */,
  18184. /* 204 */,
  18185. /* 205 */,
  18186. /* 206 */,
  18187. /* 207 */,
  18188. /* 208 */,
  18189. /* 209 */,
  18190. /* 210 */,
  18191. /* 211 */,
  18192. /* 212 */,
  18193. /* 213 */,
  18194. /* 214 */,
  18195. /* 215 */,
  18196. /* 216 */,
  18197. /* 217 */
  18198. /*!****************************************************************************!*\
  18199. !*** D:/jje_staff_uniapp/node_modules/uview-ui/components/u-form/props.js ***!
  18200. \****************************************************************************/
  18201. /*! no static exports found */
  18202. /***/ (function(module, exports, __webpack_require__) {
  18203. "use strict";
  18204. /* WEBPACK VAR INJECTION */(function(uni) {
  18205. Object.defineProperty(exports, "__esModule", {
  18206. value: true
  18207. });
  18208. exports.default = void 0;
  18209. var _default = {
  18210. props: {
  18211. // 当前form的需要验证字段的集合
  18212. model: {
  18213. type: Object,
  18214. default: uni.$u.props.form.model
  18215. },
  18216. // 验证规则
  18217. rules: {
  18218. type: [Object, Function, Array],
  18219. default: uni.$u.props.form.rules
  18220. },
  18221. // 有错误时的提示方式,message-提示信息,toast-进行toast提示
  18222. // border-bottom-下边框呈现红色,none-无提示
  18223. errorType: {
  18224. type: String,
  18225. default: uni.$u.props.form.errorType
  18226. },
  18227. // 是否显示表单域的下划线边框
  18228. borderBottom: {
  18229. type: Boolean,
  18230. default: uni.$u.props.form.borderBottom
  18231. },
  18232. // label的位置,left-左边,top-上边
  18233. labelPosition: {
  18234. type: String,
  18235. default: uni.$u.props.form.labelPosition
  18236. },
  18237. // label的宽度,单位px
  18238. labelWidth: {
  18239. type: [String, Number],
  18240. default: uni.$u.props.form.labelWidth
  18241. },
  18242. // lable字体的对齐方式
  18243. labelAlign: {
  18244. type: String,
  18245. default: uni.$u.props.form.labelAlign
  18246. },
  18247. // lable的样式,对象形式
  18248. labelStyle: {
  18249. type: Object,
  18250. default: uni.$u.props.form.labelStyle
  18251. }
  18252. }
  18253. };
  18254. exports.default = _default;
  18255. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18256. /***/ }),
  18257. /* 218 */,
  18258. /* 219 */,
  18259. /* 220 */,
  18260. /* 221 */,
  18261. /* 222 */,
  18262. /* 223 */
  18263. /*!*********************************************************************************!*\
  18264. !*** D:/jje_staff_uniapp/node_modules/uview-ui/components/u-form-item/props.js ***!
  18265. \*********************************************************************************/
  18266. /*! no static exports found */
  18267. /***/ (function(module, exports, __webpack_require__) {
  18268. "use strict";
  18269. /* WEBPACK VAR INJECTION */(function(uni) {
  18270. Object.defineProperty(exports, "__esModule", {
  18271. value: true
  18272. });
  18273. exports.default = void 0;
  18274. var _default = {
  18275. props: {
  18276. // input的label提示语
  18277. label: {
  18278. type: String,
  18279. default: uni.$u.props.formItem.label
  18280. },
  18281. // 绑定的值
  18282. prop: {
  18283. type: String,
  18284. default: uni.$u.props.formItem.prop
  18285. },
  18286. // 是否显示表单域的下划线边框
  18287. borderBottom: {
  18288. type: [String, Boolean],
  18289. default: uni.$u.props.formItem.borderBottom
  18290. },
  18291. // label的位置,left-左边,top-上边
  18292. labelPosition: {
  18293. type: String,
  18294. default: uni.$u.props.formItem.labelPosition
  18295. },
  18296. // label的宽度,单位px
  18297. labelWidth: {
  18298. type: [String, Number],
  18299. default: uni.$u.props.formItem.labelWidth
  18300. },
  18301. // 右侧图标
  18302. rightIcon: {
  18303. type: String,
  18304. default: uni.$u.props.formItem.rightIcon
  18305. },
  18306. // 左侧图标
  18307. leftIcon: {
  18308. type: String,
  18309. default: uni.$u.props.formItem.leftIcon
  18310. },
  18311. // 是否显示左边的必填星号,只作显示用,具体校验必填的逻辑,请在rules中配置
  18312. required: {
  18313. type: Boolean,
  18314. default: uni.$u.props.formItem.required
  18315. },
  18316. leftIconStyle: {
  18317. type: [String, Object],
  18318. default: uni.$u.props.formItem.leftIconStyle
  18319. }
  18320. }
  18321. };
  18322. exports.default = _default;
  18323. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18324. /***/ }),
  18325. /* 224 */,
  18326. /* 225 */,
  18327. /* 226 */,
  18328. /* 227 */,
  18329. /* 228 */,
  18330. /* 229 */,
  18331. /* 230 */,
  18332. /* 231 */
  18333. /*!*****************************************************************************!*\
  18334. !*** D:/jje_staff_uniapp/node_modules/uview-ui/components/u-input/props.js ***!
  18335. \*****************************************************************************/
  18336. /*! no static exports found */
  18337. /***/ (function(module, exports, __webpack_require__) {
  18338. "use strict";
  18339. /* WEBPACK VAR INJECTION */(function(uni) {
  18340. Object.defineProperty(exports, "__esModule", {
  18341. value: true
  18342. });
  18343. exports.default = void 0;
  18344. var _default = {
  18345. props: {
  18346. // 输入的值
  18347. value: {
  18348. type: [String, Number],
  18349. default: uni.$u.props.input.value
  18350. },
  18351. // 输入框类型
  18352. // number-数字输入键盘,app-vue下可以输入浮点数,app-nvue和小程序平台下只能输入整数
  18353. // idcard-身份证输入键盘,微信、支付宝、百度、QQ小程序
  18354. // digit-带小数点的数字键盘,App的nvue页面、微信、支付宝、百度、头条、QQ小程序
  18355. // text-文本输入键盘
  18356. type: {
  18357. type: String,
  18358. default: uni.$u.props.input.type
  18359. },
  18360. // 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true,
  18361. // 兼容性:微信小程序、百度小程序、字节跳动小程序、QQ小程序
  18362. fixed: {
  18363. type: Boolean,
  18364. default: uni.$u.props.input.fixed
  18365. },
  18366. // 是否禁用输入框
  18367. disabled: {
  18368. type: Boolean,
  18369. default: uni.$u.props.input.disabled
  18370. },
  18371. // 禁用状态时的背景色
  18372. disabledColor: {
  18373. type: String,
  18374. default: uni.$u.props.input.disabledColor
  18375. },
  18376. // 是否显示清除控件
  18377. clearable: {
  18378. type: Boolean,
  18379. default: uni.$u.props.input.clearable
  18380. },
  18381. // 是否密码类型
  18382. password: {
  18383. type: Boolean,
  18384. default: uni.$u.props.input.password
  18385. },
  18386. // 最大输入长度,设置为 -1 的时候不限制最大长度
  18387. maxlength: {
  18388. type: [String, Number],
  18389. default: uni.$u.props.input.maxlength
  18390. },
  18391. // 输入框为空时的占位符
  18392. placeholder: {
  18393. type: String,
  18394. default: uni.$u.props.input.placeholder
  18395. },
  18396. // 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
  18397. placeholderClass: {
  18398. type: String,
  18399. default: uni.$u.props.input.placeholderClass
  18400. },
  18401. // 指定placeholder的样式
  18402. placeholderStyle: {
  18403. type: [String, Object],
  18404. default: uni.$u.props.input.placeholderStyle
  18405. },
  18406. // 是否显示输入字数统计,只在 type ="text"或type ="textarea"时有效
  18407. showWordLimit: {
  18408. type: Boolean,
  18409. default: uni.$u.props.input.showWordLimit
  18410. },
  18411. // 设置右下角按钮的文字,有效值:send|search|next|go|done,兼容性详见uni-app文档
  18412. // https://uniapp.dcloud.io/component/input
  18413. // https://uniapp.dcloud.io/component/textarea
  18414. confirmType: {
  18415. type: String,
  18416. default: uni.$u.props.input.confirmType
  18417. },
  18418. // 点击键盘右下角按钮时是否保持键盘不收起,H5无效
  18419. confirmHold: {
  18420. type: Boolean,
  18421. default: uni.$u.props.input.confirmHold
  18422. },
  18423. // focus时,点击页面的时候不收起键盘,微信小程序有效
  18424. holdKeyboard: {
  18425. type: Boolean,
  18426. default: uni.$u.props.input.holdKeyboard
  18427. },
  18428. // 自动获取焦点
  18429. // 在 H5 平台能否聚焦以及软键盘是否跟随弹出,取决于当前浏览器本身的实现。nvue 页面不支持,需使用组件的 focus()、blur() 方法控制焦点
  18430. focus: {
  18431. type: Boolean,
  18432. default: uni.$u.props.input.focus
  18433. },
  18434. // 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效
  18435. autoBlur: {
  18436. type: Boolean,
  18437. default: uni.$u.props.input.autoBlur
  18438. },
  18439. // 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效
  18440. disableDefaultPadding: {
  18441. type: Boolean,
  18442. default: uni.$u.props.input.disableDefaultPadding
  18443. },
  18444. // 指定focus时光标的位置
  18445. cursor: {
  18446. type: [String, Number],
  18447. default: uni.$u.props.input.cursor
  18448. },
  18449. // 输入框聚焦时底部与键盘的距离
  18450. cursorSpacing: {
  18451. type: [String, Number],
  18452. default: uni.$u.props.input.cursorSpacing
  18453. },
  18454. // 光标起始位置,自动聚集时有效,需与selection-end搭配使用
  18455. selectionStart: {
  18456. type: [String, Number],
  18457. default: uni.$u.props.input.selectionStart
  18458. },
  18459. // 光标结束位置,自动聚集时有效,需与selection-start搭配使用
  18460. selectionEnd: {
  18461. type: [String, Number],
  18462. default: uni.$u.props.input.selectionEnd
  18463. },
  18464. // 键盘弹起时,是否自动上推页面
  18465. adjustPosition: {
  18466. type: Boolean,
  18467. default: uni.$u.props.input.adjustPosition
  18468. },
  18469. // 输入框内容对齐方式,可选值为:left|center|right
  18470. inputAlign: {
  18471. type: String,
  18472. default: uni.$u.props.input.inputAlign
  18473. },
  18474. // 输入框字体的大小
  18475. fontSize: {
  18476. type: [String, Number],
  18477. default: uni.$u.props.input.fontSize
  18478. },
  18479. // 输入框字体颜色
  18480. color: {
  18481. type: String,
  18482. default: uni.$u.props.input.color
  18483. },
  18484. // 输入框前置图标
  18485. prefixIcon: {
  18486. type: String,
  18487. default: uni.$u.props.input.prefixIcon
  18488. },
  18489. // 前置图标样式,对象或字符串
  18490. prefixIconStyle: {
  18491. type: [String, Object],
  18492. default: uni.$u.props.input.prefixIconStyle
  18493. },
  18494. // 输入框后置图标
  18495. suffixIcon: {
  18496. type: String,
  18497. default: uni.$u.props.input.suffixIcon
  18498. },
  18499. // 后置图标样式,对象或字符串
  18500. suffixIconStyle: {
  18501. type: [String, Object],
  18502. default: uni.$u.props.input.suffixIconStyle
  18503. },
  18504. // 边框类型,surround-四周边框,bottom-底部边框,none-无边框
  18505. border: {
  18506. type: String,
  18507. default: uni.$u.props.input.border
  18508. },
  18509. // 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会
  18510. readonly: {
  18511. type: Boolean,
  18512. default: uni.$u.props.input.readonly
  18513. },
  18514. // 输入框形状,circle-圆形,square-方形
  18515. shape: {
  18516. type: String,
  18517. default: uni.$u.props.input.shape
  18518. },
  18519. // 用于处理或者过滤输入框内容的方法
  18520. formatter: {
  18521. type: [Function, null],
  18522. default: uni.$u.props.input.formatter
  18523. },
  18524. // 是否忽略组件内对文本合成系统事件的处理
  18525. ignoreCompositionEvent: {
  18526. type: Boolean,
  18527. default: true
  18528. }
  18529. }
  18530. };
  18531. exports.default = _default;
  18532. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18533. /***/ }),
  18534. /* 232 */,
  18535. /* 233 */,
  18536. /* 234 */,
  18537. /* 235 */,
  18538. /* 236 */,
  18539. /* 237 */,
  18540. /* 238 */,
  18541. /* 239 */,
  18542. /* 240 */,
  18543. /* 241 */,
  18544. /* 242 */,
  18545. /* 243 */,
  18546. /* 244 */,
  18547. /* 245 */,
  18548. /* 246 */,
  18549. /* 247 */,
  18550. /* 248 */,
  18551. /* 249 */,
  18552. /* 250 */,
  18553. /* 251 */
  18554. /*!******************************************************************************!*\
  18555. !*** D:/jje_staff_uniapp/node_modules/uview-ui/libs/util/async-validator.js ***!
  18556. \******************************************************************************/
  18557. /*! no static exports found */
  18558. /***/ (function(module, exports, __webpack_require__) {
  18559. "use strict";
  18560. /* WEBPACK VAR INJECTION */(function(process) {
  18561. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  18562. Object.defineProperty(exports, "__esModule", {
  18563. value: true
  18564. });
  18565. exports.default = void 0;
  18566. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  18567. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  18568. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  18569. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  18570. function _extends() {
  18571. _extends = Object.assign || function (target) {
  18572. for (var i = 1; i < arguments.length; i++) {
  18573. var source = arguments[i];
  18574. for (var key in source) {
  18575. if (Object.prototype.hasOwnProperty.call(source, key)) {
  18576. target[key] = source[key];
  18577. }
  18578. }
  18579. }
  18580. return target;
  18581. };
  18582. return _extends.apply(this, arguments);
  18583. }
  18584. /* eslint no-console:0 */
  18585. var formatRegExp = /%[sdj%]/g;
  18586. var warning = function warning() {}; // don't print warning message when in production env or node runtime
  18587. if (typeof process !== 'undefined' && Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"娇骄儿技师端","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}) && "development" !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {
  18588. warning = function warning(type, errors) {
  18589. if (typeof console !== 'undefined' && console.warn) {
  18590. if (errors.every(function (e) {
  18591. return typeof e === 'string';
  18592. })) {
  18593. console.warn(type, errors);
  18594. }
  18595. }
  18596. };
  18597. }
  18598. function convertFieldsError(errors) {
  18599. if (!errors || !errors.length) return null;
  18600. var fields = {};
  18601. errors.forEach(function (error) {
  18602. var field = error.field;
  18603. fields[field] = fields[field] || [];
  18604. fields[field].push(error);
  18605. });
  18606. return fields;
  18607. }
  18608. function format() {
  18609. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  18610. args[_key] = arguments[_key];
  18611. }
  18612. var i = 1;
  18613. var f = args[0];
  18614. var len = args.length;
  18615. if (typeof f === 'function') {
  18616. return f.apply(null, args.slice(1));
  18617. }
  18618. if (typeof f === 'string') {
  18619. var str = String(f).replace(formatRegExp, function (x) {
  18620. if (x === '%%') {
  18621. return '%';
  18622. }
  18623. if (i >= len) {
  18624. return x;
  18625. }
  18626. switch (x) {
  18627. case '%s':
  18628. return String(args[i++]);
  18629. case '%d':
  18630. return Number(args[i++]);
  18631. case '%j':
  18632. try {
  18633. return JSON.stringify(args[i++]);
  18634. } catch (_) {
  18635. return '[Circular]';
  18636. }
  18637. break;
  18638. default:
  18639. return x;
  18640. }
  18641. });
  18642. for (var arg = args[i]; i < len; arg = args[++i]) {
  18643. str += " ".concat(arg);
  18644. }
  18645. return str;
  18646. }
  18647. return f;
  18648. }
  18649. function isNativeStringType(type) {
  18650. return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern';
  18651. }
  18652. function isEmptyValue(value, type) {
  18653. if (value === undefined || value === null) {
  18654. return true;
  18655. }
  18656. if (type === 'array' && Array.isArray(value) && !value.length) {
  18657. return true;
  18658. }
  18659. if (isNativeStringType(type) && typeof value === 'string' && !value) {
  18660. return true;
  18661. }
  18662. return false;
  18663. }
  18664. function asyncParallelArray(arr, func, callback) {
  18665. var results = [];
  18666. var total = 0;
  18667. var arrLength = arr.length;
  18668. function count(errors) {
  18669. results.push.apply(results, errors);
  18670. total++;
  18671. if (total === arrLength) {
  18672. callback(results);
  18673. }
  18674. }
  18675. arr.forEach(function (a) {
  18676. func(a, count);
  18677. });
  18678. }
  18679. function asyncSerialArray(arr, func, callback) {
  18680. var index = 0;
  18681. var arrLength = arr.length;
  18682. function next(errors) {
  18683. if (errors && errors.length) {
  18684. callback(errors);
  18685. return;
  18686. }
  18687. var original = index;
  18688. index += 1;
  18689. if (original < arrLength) {
  18690. func(arr[original], next);
  18691. } else {
  18692. callback([]);
  18693. }
  18694. }
  18695. next([]);
  18696. }
  18697. function flattenObjArr(objArr) {
  18698. var ret = [];
  18699. Object.keys(objArr).forEach(function (k) {
  18700. ret.push.apply(ret, objArr[k]);
  18701. });
  18702. return ret;
  18703. }
  18704. function asyncMap(objArr, option, func, callback) {
  18705. if (option.first) {
  18706. var _pending = new Promise(function (resolve, reject) {
  18707. var next = function next(errors) {
  18708. callback(errors);
  18709. return errors.length ? reject({
  18710. errors: errors,
  18711. fields: convertFieldsError(errors)
  18712. }) : resolve();
  18713. };
  18714. var flattenArr = flattenObjArr(objArr);
  18715. asyncSerialArray(flattenArr, func, next);
  18716. });
  18717. _pending.catch(function (e) {
  18718. return e;
  18719. });
  18720. return _pending;
  18721. }
  18722. var firstFields = option.firstFields || [];
  18723. if (firstFields === true) {
  18724. firstFields = Object.keys(objArr);
  18725. }
  18726. var objArrKeys = Object.keys(objArr);
  18727. var objArrLength = objArrKeys.length;
  18728. var total = 0;
  18729. var results = [];
  18730. var pending = new Promise(function (resolve, reject) {
  18731. var next = function next(errors) {
  18732. results.push.apply(results, errors);
  18733. total++;
  18734. if (total === objArrLength) {
  18735. callback(results);
  18736. return results.length ? reject({
  18737. errors: results,
  18738. fields: convertFieldsError(results)
  18739. }) : resolve();
  18740. }
  18741. };
  18742. if (!objArrKeys.length) {
  18743. callback(results);
  18744. resolve();
  18745. }
  18746. objArrKeys.forEach(function (key) {
  18747. var arr = objArr[key];
  18748. if (firstFields.indexOf(key) !== -1) {
  18749. asyncSerialArray(arr, func, next);
  18750. } else {
  18751. asyncParallelArray(arr, func, next);
  18752. }
  18753. });
  18754. });
  18755. pending.catch(function (e) {
  18756. return e;
  18757. });
  18758. return pending;
  18759. }
  18760. function complementError(rule) {
  18761. return function (oe) {
  18762. if (oe && oe.message) {
  18763. oe.field = oe.field || rule.fullField;
  18764. return oe;
  18765. }
  18766. return {
  18767. message: typeof oe === 'function' ? oe() : oe,
  18768. field: oe.field || rule.fullField
  18769. };
  18770. };
  18771. }
  18772. function deepMerge(target, source) {
  18773. if (source) {
  18774. for (var s in source) {
  18775. if (source.hasOwnProperty(s)) {
  18776. var value = source[s];
  18777. if ((0, _typeof2.default)(value) === 'object' && (0, _typeof2.default)(target[s]) === 'object') {
  18778. target[s] = _objectSpread(_objectSpread({}, target[s]), value);
  18779. } else {
  18780. target[s] = value;
  18781. }
  18782. }
  18783. }
  18784. }
  18785. return target;
  18786. }
  18787. /**
  18788. * Rule for validating required fields.
  18789. *
  18790. * @param rule The validation rule.
  18791. * @param value The value of the field on the source object.
  18792. * @param source The source object being validated.
  18793. * @param errors An array of errors that this rule may add
  18794. * validation errors to.
  18795. * @param options The validation options.
  18796. * @param options.messages The validation messages.
  18797. */
  18798. function required(rule, value, source, errors, options, type) {
  18799. if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) {
  18800. errors.push(format(options.messages.required, rule.fullField));
  18801. }
  18802. }
  18803. /**
  18804. * Rule for validating whitespace.
  18805. *
  18806. * @param rule The validation rule.
  18807. * @param value The value of the field on the source object.
  18808. * @param source The source object being validated.
  18809. * @param errors An array of errors that this rule may add
  18810. * validation errors to.
  18811. * @param options The validation options.
  18812. * @param options.messages The validation messages.
  18813. */
  18814. function whitespace(rule, value, source, errors, options) {
  18815. if (/^\s+$/.test(value) || value === '') {
  18816. errors.push(format(options.messages.whitespace, rule.fullField));
  18817. }
  18818. }
  18819. /* eslint max-len:0 */
  18820. var pattern = {
  18821. // http://emailregex.com/
  18822. 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,}))$/,
  18823. url: new RegExp("^(?!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]*)?$", 'i'),
  18824. hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
  18825. };
  18826. var types = {
  18827. integer: function integer(value) {
  18828. return /^(-)?\d+$/.test(value);
  18829. },
  18830. float: function float(value) {
  18831. return /^(-)?\d+(\.\d+)?$/.test(value);
  18832. },
  18833. array: function array(value) {
  18834. return Array.isArray(value);
  18835. },
  18836. regexp: function regexp(value) {
  18837. if (value instanceof RegExp) {
  18838. return true;
  18839. }
  18840. try {
  18841. return !!new RegExp(value);
  18842. } catch (e) {
  18843. return false;
  18844. }
  18845. },
  18846. date: function date(value) {
  18847. return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function';
  18848. },
  18849. number: function number(value) {
  18850. if (isNaN(value)) {
  18851. return false;
  18852. }
  18853. // 修改源码,将字符串数值先转为数值
  18854. return typeof +value === 'number';
  18855. },
  18856. object: function object(value) {
  18857. return (0, _typeof2.default)(value) === 'object' && !types.array(value);
  18858. },
  18859. method: function method(value) {
  18860. return typeof value === 'function';
  18861. },
  18862. email: function email(value) {
  18863. return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
  18864. },
  18865. url: function url(value) {
  18866. return typeof value === 'string' && !!value.match(pattern.url);
  18867. },
  18868. hex: function hex(value) {
  18869. return typeof value === 'string' && !!value.match(pattern.hex);
  18870. }
  18871. };
  18872. /**
  18873. * Rule for validating the type of a value.
  18874. *
  18875. * @param rule The validation rule.
  18876. * @param value The value of the field on the source object.
  18877. * @param source The source object being validated.
  18878. * @param errors An array of errors that this rule may add
  18879. * validation errors to.
  18880. * @param options The validation options.
  18881. * @param options.messages The validation messages.
  18882. */
  18883. function type(rule, value, source, errors, options) {
  18884. if (rule.required && value === undefined) {
  18885. required(rule, value, source, errors, options);
  18886. return;
  18887. }
  18888. var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];
  18889. var ruleType = rule.type;
  18890. if (custom.indexOf(ruleType) > -1) {
  18891. if (!types[ruleType](value)) {
  18892. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  18893. } // straight typeof check
  18894. } else if (ruleType && (0, _typeof2.default)(value) !== rule.type) {
  18895. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  18896. }
  18897. }
  18898. /**
  18899. * Rule for validating minimum and maximum allowed values.
  18900. *
  18901. * @param rule The validation rule.
  18902. * @param value The value of the field on the source object.
  18903. * @param source The source object being validated.
  18904. * @param errors An array of errors that this rule may add
  18905. * validation errors to.
  18906. * @param options The validation options.
  18907. * @param options.messages The validation messages.
  18908. */
  18909. function range(rule, value, source, errors, options) {
  18910. var len = typeof rule.len === 'number';
  18911. var min = typeof rule.min === 'number';
  18912. var max = typeof rule.max === 'number'; // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane)
  18913. var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
  18914. var val = value;
  18915. var key = null;
  18916. var num = typeof value === 'number';
  18917. var str = typeof value === 'string';
  18918. var arr = Array.isArray(value);
  18919. if (num) {
  18920. key = 'number';
  18921. } else if (str) {
  18922. key = 'string';
  18923. } else if (arr) {
  18924. key = 'array';
  18925. } // if the value is not of a supported type for range validation
  18926. // the validation rule rule should use the
  18927. // type property to also test for a particular type
  18928. if (!key) {
  18929. return false;
  18930. }
  18931. if (arr) {
  18932. val = value.length;
  18933. }
  18934. if (str) {
  18935. // 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3
  18936. val = value.replace(spRegexp, '_').length;
  18937. }
  18938. if (len) {
  18939. if (val !== rule.len) {
  18940. errors.push(format(options.messages[key].len, rule.fullField, rule.len));
  18941. }
  18942. } else if (min && !max && val < rule.min) {
  18943. errors.push(format(options.messages[key].min, rule.fullField, rule.min));
  18944. } else if (max && !min && val > rule.max) {
  18945. errors.push(format(options.messages[key].max, rule.fullField, rule.max));
  18946. } else if (min && max && (val < rule.min || val > rule.max)) {
  18947. errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));
  18948. }
  18949. }
  18950. var ENUM = 'enum';
  18951. /**
  18952. * Rule for validating a value exists in an enumerable list.
  18953. *
  18954. * @param rule The validation rule.
  18955. * @param value The value of the field on the source object.
  18956. * @param source The source object being validated.
  18957. * @param errors An array of errors that this rule may add
  18958. * validation errors to.
  18959. * @param options The validation options.
  18960. * @param options.messages The validation messages.
  18961. */
  18962. function enumerable(rule, value, source, errors, options) {
  18963. rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : [];
  18964. if (rule[ENUM].indexOf(value) === -1) {
  18965. errors.push(format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', ')));
  18966. }
  18967. }
  18968. /**
  18969. * Rule for validating a regular expression pattern.
  18970. *
  18971. * @param rule The validation rule.
  18972. * @param value The value of the field on the source object.
  18973. * @param source The source object being validated.
  18974. * @param errors An array of errors that this rule may add
  18975. * validation errors to.
  18976. * @param options The validation options.
  18977. * @param options.messages The validation messages.
  18978. */
  18979. function pattern$1(rule, value, source, errors, options) {
  18980. if (rule.pattern) {
  18981. if (rule.pattern instanceof RegExp) {
  18982. // if a RegExp instance is passed, reset `lastIndex` in case its `global`
  18983. // flag is accidentally set to `true`, which in a validation scenario
  18984. // is not necessary and the result might be misleading
  18985. rule.pattern.lastIndex = 0;
  18986. if (!rule.pattern.test(value)) {
  18987. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  18988. }
  18989. } else if (typeof rule.pattern === 'string') {
  18990. var _pattern = new RegExp(rule.pattern);
  18991. if (!_pattern.test(value)) {
  18992. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  18993. }
  18994. }
  18995. }
  18996. }
  18997. var rules = {
  18998. required: required,
  18999. whitespace: whitespace,
  19000. type: type,
  19001. range: range,
  19002. enum: enumerable,
  19003. pattern: pattern$1
  19004. };
  19005. /**
  19006. * Performs validation for string types.
  19007. *
  19008. * @param rule The validation rule.
  19009. * @param value The value of the field on the source object.
  19010. * @param callback The callback function.
  19011. * @param source The source object being validated.
  19012. * @param options The validation options.
  19013. * @param options.messages The validation messages.
  19014. */
  19015. function string(rule, value, callback, source, options) {
  19016. var errors = [];
  19017. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19018. if (validate) {
  19019. if (isEmptyValue(value, 'string') && !rule.required) {
  19020. return callback();
  19021. }
  19022. rules.required(rule, value, source, errors, options, 'string');
  19023. if (!isEmptyValue(value, 'string')) {
  19024. rules.type(rule, value, source, errors, options);
  19025. rules.range(rule, value, source, errors, options);
  19026. rules.pattern(rule, value, source, errors, options);
  19027. if (rule.whitespace === true) {
  19028. rules.whitespace(rule, value, source, errors, options);
  19029. }
  19030. }
  19031. }
  19032. callback(errors);
  19033. }
  19034. /**
  19035. * Validates a function.
  19036. *
  19037. * @param rule The validation rule.
  19038. * @param value The value of the field on the source object.
  19039. * @param callback The callback function.
  19040. * @param source The source object being validated.
  19041. * @param options The validation options.
  19042. * @param options.messages The validation messages.
  19043. */
  19044. function method(rule, value, callback, source, options) {
  19045. var errors = [];
  19046. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19047. if (validate) {
  19048. if (isEmptyValue(value) && !rule.required) {
  19049. return callback();
  19050. }
  19051. rules.required(rule, value, source, errors, options);
  19052. if (value !== undefined) {
  19053. rules.type(rule, value, source, errors, options);
  19054. }
  19055. }
  19056. callback(errors);
  19057. }
  19058. /**
  19059. * Validates a number.
  19060. *
  19061. * @param rule The validation rule.
  19062. * @param value The value of the field on the source object.
  19063. * @param callback The callback function.
  19064. * @param source The source object being validated.
  19065. * @param options The validation options.
  19066. * @param options.messages The validation messages.
  19067. */
  19068. function number(rule, value, callback, source, options) {
  19069. var errors = [];
  19070. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19071. if (validate) {
  19072. if (value === '') {
  19073. value = undefined;
  19074. }
  19075. if (isEmptyValue(value) && !rule.required) {
  19076. return callback();
  19077. }
  19078. rules.required(rule, value, source, errors, options);
  19079. if (value !== undefined) {
  19080. rules.type(rule, value, source, errors, options);
  19081. rules.range(rule, value, source, errors, options);
  19082. }
  19083. }
  19084. callback(errors);
  19085. }
  19086. /**
  19087. * Validates a boolean.
  19088. *
  19089. * @param rule The validation rule.
  19090. * @param value The value of the field on the source object.
  19091. * @param callback The callback function.
  19092. * @param source The source object being validated.
  19093. * @param options The validation options.
  19094. * @param options.messages The validation messages.
  19095. */
  19096. function _boolean(rule, value, callback, source, options) {
  19097. var errors = [];
  19098. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19099. if (validate) {
  19100. if (isEmptyValue(value) && !rule.required) {
  19101. return callback();
  19102. }
  19103. rules.required(rule, value, source, errors, options);
  19104. if (value !== undefined) {
  19105. rules.type(rule, value, source, errors, options);
  19106. }
  19107. }
  19108. callback(errors);
  19109. }
  19110. /**
  19111. * Validates the regular expression type.
  19112. *
  19113. * @param rule The validation rule.
  19114. * @param value The value of the field on the source object.
  19115. * @param callback The callback function.
  19116. * @param source The source object being validated.
  19117. * @param options The validation options.
  19118. * @param options.messages The validation messages.
  19119. */
  19120. function regexp(rule, value, callback, source, options) {
  19121. var errors = [];
  19122. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19123. if (validate) {
  19124. if (isEmptyValue(value) && !rule.required) {
  19125. return callback();
  19126. }
  19127. rules.required(rule, value, source, errors, options);
  19128. if (!isEmptyValue(value)) {
  19129. rules.type(rule, value, source, errors, options);
  19130. }
  19131. }
  19132. callback(errors);
  19133. }
  19134. /**
  19135. * Validates a number is an integer.
  19136. *
  19137. * @param rule The validation rule.
  19138. * @param value The value of the field on the source object.
  19139. * @param callback The callback function.
  19140. * @param source The source object being validated.
  19141. * @param options The validation options.
  19142. * @param options.messages The validation messages.
  19143. */
  19144. function integer(rule, value, callback, source, options) {
  19145. var errors = [];
  19146. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19147. if (validate) {
  19148. if (isEmptyValue(value) && !rule.required) {
  19149. return callback();
  19150. }
  19151. rules.required(rule, value, source, errors, options);
  19152. if (value !== undefined) {
  19153. rules.type(rule, value, source, errors, options);
  19154. rules.range(rule, value, source, errors, options);
  19155. }
  19156. }
  19157. callback(errors);
  19158. }
  19159. /**
  19160. * Validates a number is a floating point number.
  19161. *
  19162. * @param rule The validation rule.
  19163. * @param value The value of the field on the source object.
  19164. * @param callback The callback function.
  19165. * @param source The source object being validated.
  19166. * @param options The validation options.
  19167. * @param options.messages The validation messages.
  19168. */
  19169. function floatFn(rule, value, callback, source, options) {
  19170. var errors = [];
  19171. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19172. if (validate) {
  19173. if (isEmptyValue(value) && !rule.required) {
  19174. return callback();
  19175. }
  19176. rules.required(rule, value, source, errors, options);
  19177. if (value !== undefined) {
  19178. rules.type(rule, value, source, errors, options);
  19179. rules.range(rule, value, source, errors, options);
  19180. }
  19181. }
  19182. callback(errors);
  19183. }
  19184. /**
  19185. * Validates an array.
  19186. *
  19187. * @param rule The validation rule.
  19188. * @param value The value of the field on the source object.
  19189. * @param callback The callback function.
  19190. * @param source The source object being validated.
  19191. * @param options The validation options.
  19192. * @param options.messages The validation messages.
  19193. */
  19194. function array(rule, value, callback, source, options) {
  19195. var errors = [];
  19196. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19197. if (validate) {
  19198. if (isEmptyValue(value, 'array') && !rule.required) {
  19199. return callback();
  19200. }
  19201. rules.required(rule, value, source, errors, options, 'array');
  19202. if (!isEmptyValue(value, 'array')) {
  19203. rules.type(rule, value, source, errors, options);
  19204. rules.range(rule, value, source, errors, options);
  19205. }
  19206. }
  19207. callback(errors);
  19208. }
  19209. /**
  19210. * Validates an object.
  19211. *
  19212. * @param rule The validation rule.
  19213. * @param value The value of the field on the source object.
  19214. * @param callback The callback function.
  19215. * @param source The source object being validated.
  19216. * @param options The validation options.
  19217. * @param options.messages The validation messages.
  19218. */
  19219. function object(rule, value, callback, source, options) {
  19220. var errors = [];
  19221. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19222. if (validate) {
  19223. if (isEmptyValue(value) && !rule.required) {
  19224. return callback();
  19225. }
  19226. rules.required(rule, value, source, errors, options);
  19227. if (value !== undefined) {
  19228. rules.type(rule, value, source, errors, options);
  19229. }
  19230. }
  19231. callback(errors);
  19232. }
  19233. var ENUM$1 = 'enum';
  19234. /**
  19235. * Validates an enumerable list.
  19236. *
  19237. * @param rule The validation rule.
  19238. * @param value The value of the field on the source object.
  19239. * @param callback The callback function.
  19240. * @param source The source object being validated.
  19241. * @param options The validation options.
  19242. * @param options.messages The validation messages.
  19243. */
  19244. function enumerable$1(rule, value, callback, source, options) {
  19245. var errors = [];
  19246. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19247. if (validate) {
  19248. if (isEmptyValue(value) && !rule.required) {
  19249. return callback();
  19250. }
  19251. rules.required(rule, value, source, errors, options);
  19252. if (value !== undefined) {
  19253. rules[ENUM$1](rule, value, source, errors, options);
  19254. }
  19255. }
  19256. callback(errors);
  19257. }
  19258. /**
  19259. * Validates a regular expression pattern.
  19260. *
  19261. * Performs validation when a rule only contains
  19262. * a pattern property but is not declared as a string type.
  19263. *
  19264. * @param rule The validation rule.
  19265. * @param value The value of the field on the source object.
  19266. * @param callback The callback function.
  19267. * @param source The source object being validated.
  19268. * @param options The validation options.
  19269. * @param options.messages The validation messages.
  19270. */
  19271. function pattern$2(rule, value, callback, source, options) {
  19272. var errors = [];
  19273. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19274. if (validate) {
  19275. if (isEmptyValue(value, 'string') && !rule.required) {
  19276. return callback();
  19277. }
  19278. rules.required(rule, value, source, errors, options);
  19279. if (!isEmptyValue(value, 'string')) {
  19280. rules.pattern(rule, value, source, errors, options);
  19281. }
  19282. }
  19283. callback(errors);
  19284. }
  19285. function date(rule, value, callback, source, options) {
  19286. var errors = [];
  19287. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19288. if (validate) {
  19289. if (isEmptyValue(value) && !rule.required) {
  19290. return callback();
  19291. }
  19292. rules.required(rule, value, source, errors, options);
  19293. if (!isEmptyValue(value)) {
  19294. var dateObject;
  19295. if (typeof value === 'number') {
  19296. dateObject = new Date(value);
  19297. } else {
  19298. dateObject = value;
  19299. }
  19300. rules.type(rule, dateObject, source, errors, options);
  19301. if (dateObject) {
  19302. rules.range(rule, dateObject.getTime(), source, errors, options);
  19303. }
  19304. }
  19305. }
  19306. callback(errors);
  19307. }
  19308. function required$1(rule, value, callback, source, options) {
  19309. var errors = [];
  19310. var type = Array.isArray(value) ? 'array' : (0, _typeof2.default)(value);
  19311. rules.required(rule, value, source, errors, options, type);
  19312. callback(errors);
  19313. }
  19314. function type$1(rule, value, callback, source, options) {
  19315. var ruleType = rule.type;
  19316. var errors = [];
  19317. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19318. if (validate) {
  19319. if (isEmptyValue(value, ruleType) && !rule.required) {
  19320. return callback();
  19321. }
  19322. rules.required(rule, value, source, errors, options, ruleType);
  19323. if (!isEmptyValue(value, ruleType)) {
  19324. rules.type(rule, value, source, errors, options);
  19325. }
  19326. }
  19327. callback(errors);
  19328. }
  19329. /**
  19330. * Performs validation for any type.
  19331. *
  19332. * @param rule The validation rule.
  19333. * @param value The value of the field on the source object.
  19334. * @param callback The callback function.
  19335. * @param source The source object being validated.
  19336. * @param options The validation options.
  19337. * @param options.messages The validation messages.
  19338. */
  19339. function any(rule, value, callback, source, options) {
  19340. var errors = [];
  19341. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19342. if (validate) {
  19343. if (isEmptyValue(value) && !rule.required) {
  19344. return callback();
  19345. }
  19346. rules.required(rule, value, source, errors, options);
  19347. }
  19348. callback(errors);
  19349. }
  19350. var validators = {
  19351. string: string,
  19352. method: method,
  19353. number: number,
  19354. boolean: _boolean,
  19355. regexp: regexp,
  19356. integer: integer,
  19357. float: floatFn,
  19358. array: array,
  19359. object: object,
  19360. enum: enumerable$1,
  19361. pattern: pattern$2,
  19362. date: date,
  19363. url: type$1,
  19364. hex: type$1,
  19365. email: type$1,
  19366. required: required$1,
  19367. any: any
  19368. };
  19369. function newMessages() {
  19370. return {
  19371. default: 'Validation error on field %s',
  19372. required: '%s is required',
  19373. enum: '%s must be one of %s',
  19374. whitespace: '%s cannot be empty',
  19375. date: {
  19376. format: '%s date %s is invalid for format %s',
  19377. parse: '%s date could not be parsed, %s is invalid ',
  19378. invalid: '%s date %s is invalid'
  19379. },
  19380. types: {
  19381. string: '%s is not a %s',
  19382. method: '%s is not a %s (function)',
  19383. array: '%s is not an %s',
  19384. object: '%s is not an %s',
  19385. number: '%s is not a %s',
  19386. date: '%s is not a %s',
  19387. boolean: '%s is not a %s',
  19388. integer: '%s is not an %s',
  19389. float: '%s is not a %s',
  19390. regexp: '%s is not a valid %s',
  19391. email: '%s is not a valid %s',
  19392. url: '%s is not a valid %s',
  19393. hex: '%s is not a valid %s'
  19394. },
  19395. string: {
  19396. len: '%s must be exactly %s characters',
  19397. min: '%s must be at least %s characters',
  19398. max: '%s cannot be longer than %s characters',
  19399. range: '%s must be between %s and %s characters'
  19400. },
  19401. number: {
  19402. len: '%s must equal %s',
  19403. min: '%s cannot be less than %s',
  19404. max: '%s cannot be greater than %s',
  19405. range: '%s must be between %s and %s'
  19406. },
  19407. array: {
  19408. len: '%s must be exactly %s in length',
  19409. min: '%s cannot be less than %s in length',
  19410. max: '%s cannot be greater than %s in length',
  19411. range: '%s must be between %s and %s in length'
  19412. },
  19413. pattern: {
  19414. mismatch: '%s value %s does not match pattern %s'
  19415. },
  19416. clone: function clone() {
  19417. var cloned = JSON.parse(JSON.stringify(this));
  19418. cloned.clone = this.clone;
  19419. return cloned;
  19420. }
  19421. };
  19422. }
  19423. var messages = newMessages();
  19424. /**
  19425. * Encapsulates a validation schema.
  19426. *
  19427. * @param descriptor An object declaring validation rules
  19428. * for this schema.
  19429. */
  19430. function Schema(descriptor) {
  19431. this.rules = null;
  19432. this._messages = messages;
  19433. this.define(descriptor);
  19434. }
  19435. Schema.prototype = {
  19436. messages: function messages(_messages) {
  19437. if (_messages) {
  19438. this._messages = deepMerge(newMessages(), _messages);
  19439. }
  19440. return this._messages;
  19441. },
  19442. define: function define(rules) {
  19443. if (!rules) {
  19444. throw new Error('Cannot configure a schema with no rules');
  19445. }
  19446. if ((0, _typeof2.default)(rules) !== 'object' || Array.isArray(rules)) {
  19447. throw new Error('Rules must be an object');
  19448. }
  19449. this.rules = {};
  19450. var z;
  19451. var item;
  19452. for (z in rules) {
  19453. if (rules.hasOwnProperty(z)) {
  19454. item = rules[z];
  19455. this.rules[z] = Array.isArray(item) ? item : [item];
  19456. }
  19457. }
  19458. },
  19459. validate: function validate(source_, o, oc) {
  19460. var _this = this;
  19461. if (o === void 0) {
  19462. o = {};
  19463. }
  19464. if (oc === void 0) {
  19465. oc = function oc() {};
  19466. }
  19467. var source = source_;
  19468. var options = o;
  19469. var callback = oc;
  19470. if (typeof options === 'function') {
  19471. callback = options;
  19472. options = {};
  19473. }
  19474. if (!this.rules || Object.keys(this.rules).length === 0) {
  19475. if (callback) {
  19476. callback();
  19477. }
  19478. return Promise.resolve();
  19479. }
  19480. function complete(results) {
  19481. var i;
  19482. var errors = [];
  19483. var fields = {};
  19484. function add(e) {
  19485. if (Array.isArray(e)) {
  19486. var _errors;
  19487. errors = (_errors = errors).concat.apply(_errors, e);
  19488. } else {
  19489. errors.push(e);
  19490. }
  19491. }
  19492. for (i = 0; i < results.length; i++) {
  19493. add(results[i]);
  19494. }
  19495. if (!errors.length) {
  19496. errors = null;
  19497. fields = null;
  19498. } else {
  19499. fields = convertFieldsError(errors);
  19500. }
  19501. callback(errors, fields);
  19502. }
  19503. if (options.messages) {
  19504. var messages$1 = this.messages();
  19505. if (messages$1 === messages) {
  19506. messages$1 = newMessages();
  19507. }
  19508. deepMerge(messages$1, options.messages);
  19509. options.messages = messages$1;
  19510. } else {
  19511. options.messages = this.messages();
  19512. }
  19513. var arr;
  19514. var value;
  19515. var series = {};
  19516. var keys = options.keys || Object.keys(this.rules);
  19517. keys.forEach(function (z) {
  19518. arr = _this.rules[z];
  19519. value = source[z];
  19520. arr.forEach(function (r) {
  19521. var rule = r;
  19522. if (typeof rule.transform === 'function') {
  19523. if (source === source_) {
  19524. source = _objectSpread({}, source);
  19525. }
  19526. value = source[z] = rule.transform(value);
  19527. }
  19528. if (typeof rule === 'function') {
  19529. rule = {
  19530. validator: rule
  19531. };
  19532. } else {
  19533. rule = _objectSpread({}, rule);
  19534. }
  19535. rule.validator = _this.getValidationMethod(rule);
  19536. rule.field = z;
  19537. rule.fullField = rule.fullField || z;
  19538. rule.type = _this.getType(rule);
  19539. if (!rule.validator) {
  19540. return;
  19541. }
  19542. series[z] = series[z] || [];
  19543. series[z].push({
  19544. rule: rule,
  19545. value: value,
  19546. source: source,
  19547. field: z
  19548. });
  19549. });
  19550. });
  19551. var errorFields = {};
  19552. return asyncMap(series, options, function (data, doIt) {
  19553. var rule = data.rule;
  19554. var deep = (rule.type === 'object' || rule.type === 'array') && ((0, _typeof2.default)(rule.fields) === 'object' || (0, _typeof2.default)(rule.defaultField) === 'object');
  19555. deep = deep && (rule.required || !rule.required && data.value);
  19556. rule.field = data.field;
  19557. function addFullfield(key, schema) {
  19558. return _objectSpread(_objectSpread({}, schema), {}, {
  19559. fullField: "".concat(rule.fullField, ".").concat(key)
  19560. });
  19561. }
  19562. function cb(e) {
  19563. if (e === void 0) {
  19564. e = [];
  19565. }
  19566. var errors = e;
  19567. if (!Array.isArray(errors)) {
  19568. errors = [errors];
  19569. }
  19570. if (!options.suppressWarning && errors.length) {
  19571. Schema.warning('async-validator:', errors);
  19572. }
  19573. if (errors.length && rule.message) {
  19574. errors = [].concat(rule.message);
  19575. }
  19576. errors = errors.map(complementError(rule));
  19577. if (options.first && errors.length) {
  19578. errorFields[rule.field] = 1;
  19579. return doIt(errors);
  19580. }
  19581. if (!deep) {
  19582. doIt(errors);
  19583. } else {
  19584. // if rule is required but the target object
  19585. // does not exist fail at the rule level and don't
  19586. // go deeper
  19587. if (rule.required && !data.value) {
  19588. if (rule.message) {
  19589. errors = [].concat(rule.message).map(complementError(rule));
  19590. } else if (options.error) {
  19591. errors = [options.error(rule, format(options.messages.required, rule.field))];
  19592. } else {
  19593. errors = [];
  19594. }
  19595. return doIt(errors);
  19596. }
  19597. var fieldsSchema = {};
  19598. if (rule.defaultField) {
  19599. for (var k in data.value) {
  19600. if (data.value.hasOwnProperty(k)) {
  19601. fieldsSchema[k] = rule.defaultField;
  19602. }
  19603. }
  19604. }
  19605. fieldsSchema = _objectSpread(_objectSpread({}, fieldsSchema), data.rule.fields);
  19606. for (var f in fieldsSchema) {
  19607. if (fieldsSchema.hasOwnProperty(f)) {
  19608. var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]];
  19609. fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f));
  19610. }
  19611. }
  19612. var schema = new Schema(fieldsSchema);
  19613. schema.messages(options.messages);
  19614. if (data.rule.options) {
  19615. data.rule.options.messages = options.messages;
  19616. data.rule.options.error = options.error;
  19617. }
  19618. schema.validate(data.value, data.rule.options || options, function (errs) {
  19619. var finalErrors = [];
  19620. if (errors && errors.length) {
  19621. finalErrors.push.apply(finalErrors, errors);
  19622. }
  19623. if (errs && errs.length) {
  19624. finalErrors.push.apply(finalErrors, errs);
  19625. }
  19626. doIt(finalErrors.length ? finalErrors : null);
  19627. });
  19628. }
  19629. }
  19630. var res;
  19631. if (rule.asyncValidator) {
  19632. res = rule.asyncValidator(rule, data.value, cb, data.source, options);
  19633. } else if (rule.validator) {
  19634. res = rule.validator(rule, data.value, cb, data.source, options);
  19635. if (res === true) {
  19636. cb();
  19637. } else if (res === false) {
  19638. cb(rule.message || "".concat(rule.field, " fails"));
  19639. } else if (res instanceof Array) {
  19640. cb(res);
  19641. } else if (res instanceof Error) {
  19642. cb(res.message);
  19643. }
  19644. }
  19645. if (res && res.then) {
  19646. res.then(function () {
  19647. return cb();
  19648. }, function (e) {
  19649. return cb(e);
  19650. });
  19651. }
  19652. }, function (results) {
  19653. complete(results);
  19654. });
  19655. },
  19656. getType: function getType(rule) {
  19657. if (rule.type === undefined && rule.pattern instanceof RegExp) {
  19658. rule.type = 'pattern';
  19659. }
  19660. if (typeof rule.validator !== 'function' && rule.type && !validators.hasOwnProperty(rule.type)) {
  19661. throw new Error(format('Unknown rule type %s', rule.type));
  19662. }
  19663. return rule.type || 'string';
  19664. },
  19665. getValidationMethod: function getValidationMethod(rule) {
  19666. if (typeof rule.validator === 'function') {
  19667. return rule.validator;
  19668. }
  19669. var keys = Object.keys(rule);
  19670. var messageIndex = keys.indexOf('message');
  19671. if (messageIndex !== -1) {
  19672. keys.splice(messageIndex, 1);
  19673. }
  19674. if (keys.length === 1 && keys[0] === 'required') {
  19675. return validators.required;
  19676. }
  19677. return validators[this.getType(rule)] || false;
  19678. }
  19679. };
  19680. Schema.register = function register(type, validator) {
  19681. if (typeof validator !== 'function') {
  19682. throw new Error('Cannot register a validator by type, validator is not a function');
  19683. }
  19684. validators[type] = validator;
  19685. };
  19686. Schema.warning = warning;
  19687. Schema.messages = messages;
  19688. var _default = Schema; // # sourceMappingURL=index.js.map
  19689. exports.default = _default;
  19690. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../HBuilderX/plugins/uniapp-cli/node_modules/node-libs-browser/mock/process.js */ 252)))
  19691. /***/ }),
  19692. /* 252 */
  19693. /*!********************************************************!*\
  19694. !*** ./node_modules/node-libs-browser/mock/process.js ***!
  19695. \********************************************************/
  19696. /*! no static exports found */
  19697. /***/ (function(module, exports, __webpack_require__) {
  19698. exports.nextTick = function nextTick(fn) {
  19699. var args = Array.prototype.slice.call(arguments);
  19700. args.shift();
  19701. setTimeout(function () {
  19702. fn.apply(null, args);
  19703. }, 0);
  19704. };
  19705. exports.platform = exports.arch =
  19706. exports.execPath = exports.title = 'browser';
  19707. exports.pid = 1;
  19708. exports.browser = true;
  19709. exports.env = {};
  19710. exports.argv = [];
  19711. exports.binding = function (name) {
  19712. throw new Error('No such module. (Possibly not yet loaded)')
  19713. };
  19714. (function () {
  19715. var cwd = '/';
  19716. var path;
  19717. exports.cwd = function () { return cwd };
  19718. exports.chdir = function (dir) {
  19719. if (!path) path = __webpack_require__(/*! path */ 253);
  19720. cwd = path.resolve(dir, cwd);
  19721. };
  19722. })();
  19723. exports.exit = exports.kill =
  19724. exports.umask = exports.dlopen =
  19725. exports.uptime = exports.memoryUsage =
  19726. exports.uvCounters = function() {};
  19727. exports.features = {};
  19728. /***/ }),
  19729. /* 253 */
  19730. /*!***********************************************!*\
  19731. !*** ./node_modules/path-browserify/index.js ***!
  19732. \***********************************************/
  19733. /*! no static exports found */
  19734. /***/ (function(module, exports, __webpack_require__) {
  19735. /* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
  19736. // backported and transplited with Babel, with backwards-compat fixes
  19737. // Copyright Joyent, Inc. and other Node contributors.
  19738. //
  19739. // Permission is hereby granted, free of charge, to any person obtaining a
  19740. // copy of this software and associated documentation files (the
  19741. // "Software"), to deal in the Software without restriction, including
  19742. // without limitation the rights to use, copy, modify, merge, publish,
  19743. // distribute, sublicense, and/or sell copies of the Software, and to permit
  19744. // persons to whom the Software is furnished to do so, subject to the
  19745. // following conditions:
  19746. //
  19747. // The above copyright notice and this permission notice shall be included
  19748. // in all copies or substantial portions of the Software.
  19749. //
  19750. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  19751. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  19752. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  19753. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  19754. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  19755. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  19756. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  19757. // resolves . and .. elements in a path array with directory names there
  19758. // must be no slashes, empty elements, or device names (c:\) in the array
  19759. // (so also no leading and trailing slashes - it does not distinguish
  19760. // relative and absolute paths)
  19761. function normalizeArray(parts, allowAboveRoot) {
  19762. // if the path tries to go above the root, `up` ends up > 0
  19763. var up = 0;
  19764. for (var i = parts.length - 1; i >= 0; i--) {
  19765. var last = parts[i];
  19766. if (last === '.') {
  19767. parts.splice(i, 1);
  19768. } else if (last === '..') {
  19769. parts.splice(i, 1);
  19770. up++;
  19771. } else if (up) {
  19772. parts.splice(i, 1);
  19773. up--;
  19774. }
  19775. }
  19776. // if the path is allowed to go above the root, restore leading ..s
  19777. if (allowAboveRoot) {
  19778. for (; up--; up) {
  19779. parts.unshift('..');
  19780. }
  19781. }
  19782. return parts;
  19783. }
  19784. // path.resolve([from ...], to)
  19785. // posix version
  19786. exports.resolve = function() {
  19787. var resolvedPath = '',
  19788. resolvedAbsolute = false;
  19789. for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
  19790. var path = (i >= 0) ? arguments[i] : process.cwd();
  19791. // Skip empty and invalid entries
  19792. if (typeof path !== 'string') {
  19793. throw new TypeError('Arguments to path.resolve must be strings');
  19794. } else if (!path) {
  19795. continue;
  19796. }
  19797. resolvedPath = path + '/' + resolvedPath;
  19798. resolvedAbsolute = path.charAt(0) === '/';
  19799. }
  19800. // At this point the path should be resolved to a full absolute path, but
  19801. // handle relative paths to be safe (might happen when process.cwd() fails)
  19802. // Normalize the path
  19803. resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
  19804. return !!p;
  19805. }), !resolvedAbsolute).join('/');
  19806. return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
  19807. };
  19808. // path.normalize(path)
  19809. // posix version
  19810. exports.normalize = function(path) {
  19811. var isAbsolute = exports.isAbsolute(path),
  19812. trailingSlash = substr(path, -1) === '/';
  19813. // Normalize the path
  19814. path = normalizeArray(filter(path.split('/'), function(p) {
  19815. return !!p;
  19816. }), !isAbsolute).join('/');
  19817. if (!path && !isAbsolute) {
  19818. path = '.';
  19819. }
  19820. if (path && trailingSlash) {
  19821. path += '/';
  19822. }
  19823. return (isAbsolute ? '/' : '') + path;
  19824. };
  19825. // posix version
  19826. exports.isAbsolute = function(path) {
  19827. return path.charAt(0) === '/';
  19828. };
  19829. // posix version
  19830. exports.join = function() {
  19831. var paths = Array.prototype.slice.call(arguments, 0);
  19832. return exports.normalize(filter(paths, function(p, index) {
  19833. if (typeof p !== 'string') {
  19834. throw new TypeError('Arguments to path.join must be strings');
  19835. }
  19836. return p;
  19837. }).join('/'));
  19838. };
  19839. // path.relative(from, to)
  19840. // posix version
  19841. exports.relative = function(from, to) {
  19842. from = exports.resolve(from).substr(1);
  19843. to = exports.resolve(to).substr(1);
  19844. function trim(arr) {
  19845. var start = 0;
  19846. for (; start < arr.length; start++) {
  19847. if (arr[start] !== '') break;
  19848. }
  19849. var end = arr.length - 1;
  19850. for (; end >= 0; end--) {
  19851. if (arr[end] !== '') break;
  19852. }
  19853. if (start > end) return [];
  19854. return arr.slice(start, end - start + 1);
  19855. }
  19856. var fromParts = trim(from.split('/'));
  19857. var toParts = trim(to.split('/'));
  19858. var length = Math.min(fromParts.length, toParts.length);
  19859. var samePartsLength = length;
  19860. for (var i = 0; i < length; i++) {
  19861. if (fromParts[i] !== toParts[i]) {
  19862. samePartsLength = i;
  19863. break;
  19864. }
  19865. }
  19866. var outputParts = [];
  19867. for (var i = samePartsLength; i < fromParts.length; i++) {
  19868. outputParts.push('..');
  19869. }
  19870. outputParts = outputParts.concat(toParts.slice(samePartsLength));
  19871. return outputParts.join('/');
  19872. };
  19873. exports.sep = '/';
  19874. exports.delimiter = ':';
  19875. exports.dirname = function (path) {
  19876. if (typeof path !== 'string') path = path + '';
  19877. if (path.length === 0) return '.';
  19878. var code = path.charCodeAt(0);
  19879. var hasRoot = code === 47 /*/*/;
  19880. var end = -1;
  19881. var matchedSlash = true;
  19882. for (var i = path.length - 1; i >= 1; --i) {
  19883. code = path.charCodeAt(i);
  19884. if (code === 47 /*/*/) {
  19885. if (!matchedSlash) {
  19886. end = i;
  19887. break;
  19888. }
  19889. } else {
  19890. // We saw the first non-path separator
  19891. matchedSlash = false;
  19892. }
  19893. }
  19894. if (end === -1) return hasRoot ? '/' : '.';
  19895. if (hasRoot && end === 1) {
  19896. // return '//';
  19897. // Backwards-compat fix:
  19898. return '/';
  19899. }
  19900. return path.slice(0, end);
  19901. };
  19902. function basename(path) {
  19903. if (typeof path !== 'string') path = path + '';
  19904. var start = 0;
  19905. var end = -1;
  19906. var matchedSlash = true;
  19907. var i;
  19908. for (i = path.length - 1; i >= 0; --i) {
  19909. if (path.charCodeAt(i) === 47 /*/*/) {
  19910. // If we reached a path separator that was not part of a set of path
  19911. // separators at the end of the string, stop now
  19912. if (!matchedSlash) {
  19913. start = i + 1;
  19914. break;
  19915. }
  19916. } else if (end === -1) {
  19917. // We saw the first non-path separator, mark this as the end of our
  19918. // path component
  19919. matchedSlash = false;
  19920. end = i + 1;
  19921. }
  19922. }
  19923. if (end === -1) return '';
  19924. return path.slice(start, end);
  19925. }
  19926. // Uses a mixed approach for backwards-compatibility, as ext behavior changed
  19927. // in new Node.js versions, so only basename() above is backported here
  19928. exports.basename = function (path, ext) {
  19929. var f = basename(path);
  19930. if (ext && f.substr(-1 * ext.length) === ext) {
  19931. f = f.substr(0, f.length - ext.length);
  19932. }
  19933. return f;
  19934. };
  19935. exports.extname = function (path) {
  19936. if (typeof path !== 'string') path = path + '';
  19937. var startDot = -1;
  19938. var startPart = 0;
  19939. var end = -1;
  19940. var matchedSlash = true;
  19941. // Track the state of characters (if any) we see before our first dot and
  19942. // after any path separator we find
  19943. var preDotState = 0;
  19944. for (var i = path.length - 1; i >= 0; --i) {
  19945. var code = path.charCodeAt(i);
  19946. if (code === 47 /*/*/) {
  19947. // If we reached a path separator that was not part of a set of path
  19948. // separators at the end of the string, stop now
  19949. if (!matchedSlash) {
  19950. startPart = i + 1;
  19951. break;
  19952. }
  19953. continue;
  19954. }
  19955. if (end === -1) {
  19956. // We saw the first non-path separator, mark this as the end of our
  19957. // extension
  19958. matchedSlash = false;
  19959. end = i + 1;
  19960. }
  19961. if (code === 46 /*.*/) {
  19962. // If this is our first dot, mark it as the start of our extension
  19963. if (startDot === -1)
  19964. startDot = i;
  19965. else if (preDotState !== 1)
  19966. preDotState = 1;
  19967. } else if (startDot !== -1) {
  19968. // We saw a non-dot and non-path separator before our dot, so we should
  19969. // have a good chance at having a non-empty extension
  19970. preDotState = -1;
  19971. }
  19972. }
  19973. if (startDot === -1 || end === -1 ||
  19974. // We saw a non-dot character immediately before the dot
  19975. preDotState === 0 ||
  19976. // The (right-most) trimmed path component is exactly '..'
  19977. preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
  19978. return '';
  19979. }
  19980. return path.slice(startDot, end);
  19981. };
  19982. function filter (xs, f) {
  19983. if (xs.filter) return xs.filter(f);
  19984. var res = [];
  19985. for (var i = 0; i < xs.length; i++) {
  19986. if (f(xs[i], i, xs)) res.push(xs[i]);
  19987. }
  19988. return res;
  19989. }
  19990. // String.prototype.substr - negative index don't work in IE8
  19991. var substr = 'ab'.substr(-1) === 'b'
  19992. ? function (str, start, len) { return str.substr(start, len) }
  19993. : function (str, start, len) {
  19994. if (start < 0) start = str.length + start;
  19995. return str.substr(start, len);
  19996. }
  19997. ;
  19998. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ 252)))
  19999. /***/ }),
  20000. /* 254 */,
  20001. /* 255 */,
  20002. /* 256 */,
  20003. /* 257 */,
  20004. /* 258 */,
  20005. /* 259 */
  20006. /*!****************************************************************************!*\
  20007. !*** D:/jje_staff_uniapp/node_modules/uview-ui/components/u-line/props.js ***!
  20008. \****************************************************************************/
  20009. /*! no static exports found */
  20010. /***/ (function(module, exports, __webpack_require__) {
  20011. "use strict";
  20012. /* WEBPACK VAR INJECTION */(function(uni) {
  20013. Object.defineProperty(exports, "__esModule", {
  20014. value: true
  20015. });
  20016. exports.default = void 0;
  20017. var _default = {
  20018. props: {
  20019. color: {
  20020. type: String,
  20021. default: uni.$u.props.line.color
  20022. },
  20023. // 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等
  20024. length: {
  20025. type: [String, Number],
  20026. default: uni.$u.props.line.length
  20027. },
  20028. // 线条方向,col-竖向,row-横向
  20029. direction: {
  20030. type: String,
  20031. default: uni.$u.props.line.direction
  20032. },
  20033. // 是否显示细边框
  20034. hairline: {
  20035. type: Boolean,
  20036. default: uni.$u.props.line.hairline
  20037. },
  20038. // 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
  20039. margin: {
  20040. type: [String, Number],
  20041. default: uni.$u.props.line.margin
  20042. },
  20043. // 是否虚线,true-虚线,false-实线
  20044. dashed: {
  20045. type: Boolean,
  20046. default: uni.$u.props.line.dashed
  20047. }
  20048. }
  20049. };
  20050. exports.default = _default;
  20051. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20052. /***/ }),
  20053. /* 260 */,
  20054. /* 261 */,
  20055. /* 262 */,
  20056. /* 263 */,
  20057. /* 264 */,
  20058. /* 265 */,
  20059. /* 266 */,
  20060. /* 267 */,
  20061. /* 268 */,
  20062. /* 269 */,
  20063. /* 270 */,
  20064. /* 271 */,
  20065. /* 272 */,
  20066. /* 273 */,
  20067. /* 274 */
  20068. /*!***************************************************************************************!*\
  20069. !*** D:/jje_staff_uniapp/uni_modules/uni-icons/components/uni-icons/uniicons_file.ts ***!
  20070. \***************************************************************************************/
  20071. /*! no static exports found */
  20072. /***/ (function(module, exports, __webpack_require__) {
  20073. "use strict";
  20074. Object.defineProperty(exports, "__esModule", {
  20075. value: true
  20076. });
  20077. exports.fontData = void 0;
  20078. var fontData = [{
  20079. "font_class": "arrow-down",
  20080. "unicode": "\uE6BE"
  20081. }, {
  20082. "font_class": "arrow-left",
  20083. "unicode": "\uE6BC"
  20084. }, {
  20085. "font_class": "arrow-right",
  20086. "unicode": "\uE6BB"
  20087. }, {
  20088. "font_class": "arrow-up",
  20089. "unicode": "\uE6BD"
  20090. }, {
  20091. "font_class": "auth",
  20092. "unicode": "\uE6AB"
  20093. }, {
  20094. "font_class": "auth-filled",
  20095. "unicode": "\uE6CC"
  20096. }, {
  20097. "font_class": "back",
  20098. "unicode": "\uE6B9"
  20099. }, {
  20100. "font_class": "bars",
  20101. "unicode": "\uE627"
  20102. }, {
  20103. "font_class": "calendar",
  20104. "unicode": "\uE6A0"
  20105. }, {
  20106. "font_class": "calendar-filled",
  20107. "unicode": "\uE6C0"
  20108. }, {
  20109. "font_class": "camera",
  20110. "unicode": "\uE65A"
  20111. }, {
  20112. "font_class": "camera-filled",
  20113. "unicode": "\uE658"
  20114. }, {
  20115. "font_class": "cart",
  20116. "unicode": "\uE631"
  20117. }, {
  20118. "font_class": "cart-filled",
  20119. "unicode": "\uE6D0"
  20120. }, {
  20121. "font_class": "chat",
  20122. "unicode": "\uE65D"
  20123. }, {
  20124. "font_class": "chat-filled",
  20125. "unicode": "\uE659"
  20126. }, {
  20127. "font_class": "chatboxes",
  20128. "unicode": "\uE696"
  20129. }, {
  20130. "font_class": "chatboxes-filled",
  20131. "unicode": "\uE692"
  20132. }, {
  20133. "font_class": "chatbubble",
  20134. "unicode": "\uE697"
  20135. }, {
  20136. "font_class": "chatbubble-filled",
  20137. "unicode": "\uE694"
  20138. }, {
  20139. "font_class": "checkbox",
  20140. "unicode": "\uE62B"
  20141. }, {
  20142. "font_class": "checkbox-filled",
  20143. "unicode": "\uE62C"
  20144. }, {
  20145. "font_class": "checkmarkempty",
  20146. "unicode": "\uE65C"
  20147. }, {
  20148. "font_class": "circle",
  20149. "unicode": "\uE65B"
  20150. }, {
  20151. "font_class": "circle-filled",
  20152. "unicode": "\uE65E"
  20153. }, {
  20154. "font_class": "clear",
  20155. "unicode": "\uE66D"
  20156. }, {
  20157. "font_class": "close",
  20158. "unicode": "\uE673"
  20159. }, {
  20160. "font_class": "closeempty",
  20161. "unicode": "\uE66C"
  20162. }, {
  20163. "font_class": "cloud-download",
  20164. "unicode": "\uE647"
  20165. }, {
  20166. "font_class": "cloud-download-filled",
  20167. "unicode": "\uE646"
  20168. }, {
  20169. "font_class": "cloud-upload",
  20170. "unicode": "\uE645"
  20171. }, {
  20172. "font_class": "cloud-upload-filled",
  20173. "unicode": "\uE648"
  20174. }, {
  20175. "font_class": "color",
  20176. "unicode": "\uE6CF"
  20177. }, {
  20178. "font_class": "color-filled",
  20179. "unicode": "\uE6C9"
  20180. }, {
  20181. "font_class": "compose",
  20182. "unicode": "\uE67F"
  20183. }, {
  20184. "font_class": "contact",
  20185. "unicode": "\uE693"
  20186. }, {
  20187. "font_class": "contact-filled",
  20188. "unicode": "\uE695"
  20189. }, {
  20190. "font_class": "down",
  20191. "unicode": "\uE6B8"
  20192. }, {
  20193. "font_class": "bottom",
  20194. "unicode": "\uE6B8"
  20195. }, {
  20196. "font_class": "download",
  20197. "unicode": "\uE68D"
  20198. }, {
  20199. "font_class": "download-filled",
  20200. "unicode": "\uE681"
  20201. }, {
  20202. "font_class": "email",
  20203. "unicode": "\uE69E"
  20204. }, {
  20205. "font_class": "email-filled",
  20206. "unicode": "\uE69A"
  20207. }, {
  20208. "font_class": "eye",
  20209. "unicode": "\uE651"
  20210. }, {
  20211. "font_class": "eye-filled",
  20212. "unicode": "\uE66A"
  20213. }, {
  20214. "font_class": "eye-slash",
  20215. "unicode": "\uE6B3"
  20216. }, {
  20217. "font_class": "eye-slash-filled",
  20218. "unicode": "\uE6B4"
  20219. }, {
  20220. "font_class": "fire",
  20221. "unicode": "\uE6A1"
  20222. }, {
  20223. "font_class": "fire-filled",
  20224. "unicode": "\uE6C5"
  20225. }, {
  20226. "font_class": "flag",
  20227. "unicode": "\uE65F"
  20228. }, {
  20229. "font_class": "flag-filled",
  20230. "unicode": "\uE660"
  20231. }, {
  20232. "font_class": "folder-add",
  20233. "unicode": "\uE6A9"
  20234. }, {
  20235. "font_class": "folder-add-filled",
  20236. "unicode": "\uE6C8"
  20237. }, {
  20238. "font_class": "font",
  20239. "unicode": "\uE6A3"
  20240. }, {
  20241. "font_class": "forward",
  20242. "unicode": "\uE6BA"
  20243. }, {
  20244. "font_class": "gear",
  20245. "unicode": "\uE664"
  20246. }, {
  20247. "font_class": "gear-filled",
  20248. "unicode": "\uE661"
  20249. }, {
  20250. "font_class": "gift",
  20251. "unicode": "\uE6A4"
  20252. }, {
  20253. "font_class": "gift-filled",
  20254. "unicode": "\uE6C4"
  20255. }, {
  20256. "font_class": "hand-down",
  20257. "unicode": "\uE63D"
  20258. }, {
  20259. "font_class": "hand-down-filled",
  20260. "unicode": "\uE63C"
  20261. }, {
  20262. "font_class": "hand-up",
  20263. "unicode": "\uE63F"
  20264. }, {
  20265. "font_class": "hand-up-filled",
  20266. "unicode": "\uE63E"
  20267. }, {
  20268. "font_class": "headphones",
  20269. "unicode": "\uE630"
  20270. }, {
  20271. "font_class": "heart",
  20272. "unicode": "\uE639"
  20273. }, {
  20274. "font_class": "heart-filled",
  20275. "unicode": "\uE641"
  20276. }, {
  20277. "font_class": "help",
  20278. "unicode": "\uE679"
  20279. }, {
  20280. "font_class": "help-filled",
  20281. "unicode": "\uE674"
  20282. }, {
  20283. "font_class": "home",
  20284. "unicode": "\uE662"
  20285. }, {
  20286. "font_class": "home-filled",
  20287. "unicode": "\uE663"
  20288. }, {
  20289. "font_class": "image",
  20290. "unicode": "\uE670"
  20291. }, {
  20292. "font_class": "image-filled",
  20293. "unicode": "\uE678"
  20294. }, {
  20295. "font_class": "images",
  20296. "unicode": "\uE650"
  20297. }, {
  20298. "font_class": "images-filled",
  20299. "unicode": "\uE64B"
  20300. }, {
  20301. "font_class": "info",
  20302. "unicode": "\uE669"
  20303. }, {
  20304. "font_class": "info-filled",
  20305. "unicode": "\uE649"
  20306. }, {
  20307. "font_class": "left",
  20308. "unicode": "\uE6B7"
  20309. }, {
  20310. "font_class": "link",
  20311. "unicode": "\uE6A5"
  20312. }, {
  20313. "font_class": "list",
  20314. "unicode": "\uE644"
  20315. }, {
  20316. "font_class": "location",
  20317. "unicode": "\uE6AE"
  20318. }, {
  20319. "font_class": "location-filled",
  20320. "unicode": "\uE6AF"
  20321. }, {
  20322. "font_class": "locked",
  20323. "unicode": "\uE66B"
  20324. }, {
  20325. "font_class": "locked-filled",
  20326. "unicode": "\uE668"
  20327. }, {
  20328. "font_class": "loop",
  20329. "unicode": "\uE633"
  20330. }, {
  20331. "font_class": "mail-open",
  20332. "unicode": "\uE643"
  20333. }, {
  20334. "font_class": "mail-open-filled",
  20335. "unicode": "\uE63A"
  20336. }, {
  20337. "font_class": "map",
  20338. "unicode": "\uE667"
  20339. }, {
  20340. "font_class": "map-filled",
  20341. "unicode": "\uE666"
  20342. }, {
  20343. "font_class": "map-pin",
  20344. "unicode": "\uE6AD"
  20345. }, {
  20346. "font_class": "map-pin-ellipse",
  20347. "unicode": "\uE6AC"
  20348. }, {
  20349. "font_class": "medal",
  20350. "unicode": "\uE6A2"
  20351. }, {
  20352. "font_class": "medal-filled",
  20353. "unicode": "\uE6C3"
  20354. }, {
  20355. "font_class": "mic",
  20356. "unicode": "\uE671"
  20357. }, {
  20358. "font_class": "mic-filled",
  20359. "unicode": "\uE677"
  20360. }, {
  20361. "font_class": "micoff",
  20362. "unicode": "\uE67E"
  20363. }, {
  20364. "font_class": "micoff-filled",
  20365. "unicode": "\uE6B0"
  20366. }, {
  20367. "font_class": "minus",
  20368. "unicode": "\uE66F"
  20369. }, {
  20370. "font_class": "minus-filled",
  20371. "unicode": "\uE67D"
  20372. }, {
  20373. "font_class": "more",
  20374. "unicode": "\uE64D"
  20375. }, {
  20376. "font_class": "more-filled",
  20377. "unicode": "\uE64E"
  20378. }, {
  20379. "font_class": "navigate",
  20380. "unicode": "\uE66E"
  20381. }, {
  20382. "font_class": "navigate-filled",
  20383. "unicode": "\uE67A"
  20384. }, {
  20385. "font_class": "notification",
  20386. "unicode": "\uE6A6"
  20387. }, {
  20388. "font_class": "notification-filled",
  20389. "unicode": "\uE6C1"
  20390. }, {
  20391. "font_class": "paperclip",
  20392. "unicode": "\uE652"
  20393. }, {
  20394. "font_class": "paperplane",
  20395. "unicode": "\uE672"
  20396. }, {
  20397. "font_class": "paperplane-filled",
  20398. "unicode": "\uE675"
  20399. }, {
  20400. "font_class": "person",
  20401. "unicode": "\uE699"
  20402. }, {
  20403. "font_class": "person-filled",
  20404. "unicode": "\uE69D"
  20405. }, {
  20406. "font_class": "personadd",
  20407. "unicode": "\uE69F"
  20408. }, {
  20409. "font_class": "personadd-filled",
  20410. "unicode": "\uE698"
  20411. }, {
  20412. "font_class": "personadd-filled-copy",
  20413. "unicode": "\uE6D1"
  20414. }, {
  20415. "font_class": "phone",
  20416. "unicode": "\uE69C"
  20417. }, {
  20418. "font_class": "phone-filled",
  20419. "unicode": "\uE69B"
  20420. }, {
  20421. "font_class": "plus",
  20422. "unicode": "\uE676"
  20423. }, {
  20424. "font_class": "plus-filled",
  20425. "unicode": "\uE6C7"
  20426. }, {
  20427. "font_class": "plusempty",
  20428. "unicode": "\uE67B"
  20429. }, {
  20430. "font_class": "pulldown",
  20431. "unicode": "\uE632"
  20432. }, {
  20433. "font_class": "pyq",
  20434. "unicode": "\uE682"
  20435. }, {
  20436. "font_class": "qq",
  20437. "unicode": "\uE680"
  20438. }, {
  20439. "font_class": "redo",
  20440. "unicode": "\uE64A"
  20441. }, {
  20442. "font_class": "redo-filled",
  20443. "unicode": "\uE655"
  20444. }, {
  20445. "font_class": "refresh",
  20446. "unicode": "\uE657"
  20447. }, {
  20448. "font_class": "refresh-filled",
  20449. "unicode": "\uE656"
  20450. }, {
  20451. "font_class": "refreshempty",
  20452. "unicode": "\uE6BF"
  20453. }, {
  20454. "font_class": "reload",
  20455. "unicode": "\uE6B2"
  20456. }, {
  20457. "font_class": "right",
  20458. "unicode": "\uE6B5"
  20459. }, {
  20460. "font_class": "scan",
  20461. "unicode": "\uE62A"
  20462. }, {
  20463. "font_class": "search",
  20464. "unicode": "\uE654"
  20465. }, {
  20466. "font_class": "settings",
  20467. "unicode": "\uE653"
  20468. }, {
  20469. "font_class": "settings-filled",
  20470. "unicode": "\uE6CE"
  20471. }, {
  20472. "font_class": "shop",
  20473. "unicode": "\uE62F"
  20474. }, {
  20475. "font_class": "shop-filled",
  20476. "unicode": "\uE6CD"
  20477. }, {
  20478. "font_class": "smallcircle",
  20479. "unicode": "\uE67C"
  20480. }, {
  20481. "font_class": "smallcircle-filled",
  20482. "unicode": "\uE665"
  20483. }, {
  20484. "font_class": "sound",
  20485. "unicode": "\uE684"
  20486. }, {
  20487. "font_class": "sound-filled",
  20488. "unicode": "\uE686"
  20489. }, {
  20490. "font_class": "spinner-cycle",
  20491. "unicode": "\uE68A"
  20492. }, {
  20493. "font_class": "staff",
  20494. "unicode": "\uE6A7"
  20495. }, {
  20496. "font_class": "staff-filled",
  20497. "unicode": "\uE6CB"
  20498. }, {
  20499. "font_class": "star",
  20500. "unicode": "\uE688"
  20501. }, {
  20502. "font_class": "star-filled",
  20503. "unicode": "\uE68F"
  20504. }, {
  20505. "font_class": "starhalf",
  20506. "unicode": "\uE683"
  20507. }, {
  20508. "font_class": "trash",
  20509. "unicode": "\uE687"
  20510. }, {
  20511. "font_class": "trash-filled",
  20512. "unicode": "\uE685"
  20513. }, {
  20514. "font_class": "tune",
  20515. "unicode": "\uE6AA"
  20516. }, {
  20517. "font_class": "tune-filled",
  20518. "unicode": "\uE6CA"
  20519. }, {
  20520. "font_class": "undo",
  20521. "unicode": "\uE64F"
  20522. }, {
  20523. "font_class": "undo-filled",
  20524. "unicode": "\uE64C"
  20525. }, {
  20526. "font_class": "up",
  20527. "unicode": "\uE6B6"
  20528. }, {
  20529. "font_class": "top",
  20530. "unicode": "\uE6B6"
  20531. }, {
  20532. "font_class": "upload",
  20533. "unicode": "\uE690"
  20534. }, {
  20535. "font_class": "upload-filled",
  20536. "unicode": "\uE68E"
  20537. }, {
  20538. "font_class": "videocam",
  20539. "unicode": "\uE68C"
  20540. }, {
  20541. "font_class": "videocam-filled",
  20542. "unicode": "\uE689"
  20543. }, {
  20544. "font_class": "vip",
  20545. "unicode": "\uE6A8"
  20546. }, {
  20547. "font_class": "vip-filled",
  20548. "unicode": "\uE6C6"
  20549. }, {
  20550. "font_class": "wallet",
  20551. "unicode": "\uE6B1"
  20552. }, {
  20553. "font_class": "wallet-filled",
  20554. "unicode": "\uE6C2"
  20555. }, {
  20556. "font_class": "weibo",
  20557. "unicode": "\uE68B"
  20558. }, {
  20559. "font_class": "weixin",
  20560. "unicode": "\uE691"
  20561. }];
  20562. // export const fontData = JSON.parse<IconsDataItem>(fontDataJson)
  20563. exports.fontData = fontData;
  20564. /***/ }),
  20565. /* 275 */,
  20566. /* 276 */,
  20567. /* 277 */,
  20568. /* 278 */,
  20569. /* 279 */,
  20570. /* 280 */,
  20571. /* 281 */,
  20572. /* 282 */,
  20573. /* 283 */,
  20574. /* 284 */,
  20575. /* 285 */
  20576. /*!********************************************************************************************!*\
  20577. !*** D:/jje_staff_uniapp/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-uni.js ***!
  20578. \********************************************************************************************/
  20579. /*! no static exports found */
  20580. /***/ (function(module, exports, __webpack_require__) {
  20581. "use strict";
  20582. /* WEBPACK VAR INJECTION */(function(uni) {
  20583. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20584. Object.defineProperty(exports, "__esModule", {
  20585. value: true
  20586. });
  20587. exports.default = MeScroll;
  20588. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  20589. /* mescroll
  20590. * version 1.3.7
  20591. * 2021-04-12 wenju
  20592. * https://www.mescroll.com
  20593. */
  20594. function MeScroll(options, isScrollBody) {
  20595. var me = this;
  20596. me.version = '1.3.7'; // mescroll版本号
  20597. me.options = options || {}; // 配置
  20598. me.isScrollBody = isScrollBody || false; // 滚动区域是否为原生页面滚动; 默认为scroll-view
  20599. me.isDownScrolling = false; // 是否在执行下拉刷新的回调
  20600. me.isUpScrolling = false; // 是否在执行上拉加载的回调
  20601. var hasDownCallback = me.options.down && me.options.down.callback; // 是否配置了down的callback
  20602. // 初始化下拉刷新
  20603. me.initDownScroll();
  20604. // 初始化上拉加载,则初始化
  20605. me.initUpScroll();
  20606. // 自动加载
  20607. setTimeout(function () {
  20608. // 待主线程执行完毕再执行,避免new MeScroll未初始化,在回调获取不到mescroll的实例
  20609. // 自动触发下拉刷新 (只有配置了down的callback才自动触发下拉刷新)
  20610. if ((me.optDown.use || me.optDown.native) && me.optDown.auto && hasDownCallback) {
  20611. if (me.optDown.autoShowLoading) {
  20612. me.triggerDownScroll(); // 显示下拉进度,执行下拉回调
  20613. } else {
  20614. me.optDown.callback && me.optDown.callback(me); // 不显示下拉进度,直接执行下拉回调
  20615. }
  20616. }
  20617. // 自动触发上拉加载
  20618. if (!me.isUpAutoLoad) {
  20619. // 部分小程序(头条小程序)emit是异步, 会导致isUpAutoLoad判断有误, 先延时确保先执行down的callback,再执行up的callback
  20620. setTimeout(function () {
  20621. me.optUp.use && me.optUp.auto && !me.isUpAutoLoad && me.triggerUpScroll();
  20622. }, 100);
  20623. }
  20624. }, 30); // 需让me.optDown.inited和me.optUp.inited先执行
  20625. }
  20626. /* 配置参数:下拉刷新 */
  20627. MeScroll.prototype.extendDownScroll = function (optDown) {
  20628. // 下拉刷新的配置
  20629. MeScroll.extend(optDown, {
  20630. use: true,
  20631. // 是否启用下拉刷新; 默认true
  20632. auto: true,
  20633. // 是否在初始化完毕之后自动执行下拉刷新的回调; 默认true
  20634. native: false,
  20635. // 是否使用系统自带的下拉刷新; 默认false; 仅mescroll-body生效 (值为true时,还需在pages配置enablePullDownRefresh:true;详请参考mescroll-native的案例)
  20636. autoShowLoading: false,
  20637. // 如果设置auto=true(在初始化完毕之后自动执行下拉刷新的回调),那么是否显示下拉刷新的进度; 默认false
  20638. isLock: false,
  20639. // 是否锁定下拉刷新,默认false;
  20640. offset: 80,
  20641. // 在列表顶部,下拉大于80px,松手即可触发下拉刷新的回调
  20642. startTop: 100,
  20643. // scroll-view快速滚动到顶部时,此时的scroll-top可能大于0, 此值用于控制最大的误差
  20644. inOffsetRate: 1,
  20645. // 在列表顶部,下拉的距离小于offset时,改变下拉区域高度比例;值小于1且越接近0,高度变化越小,表现为越往下越难拉
  20646. outOffsetRate: 0.2,
  20647. // 在列表顶部,下拉的距离大于offset时,改变下拉区域高度比例;值小于1且越接近0,高度变化越小,表现为越往下越难拉
  20648. bottomOffset: 20,
  20649. // 当手指touchmove位置在距离body底部20px范围内的时候结束上拉刷新,避免Webview嵌套导致touchend事件不执行
  20650. minAngle: 45,
  20651. // 向下滑动最少偏移的角度,取值区间 [0,90];默认45度,即向下滑动的角度大于45度则触发下拉;而小于45度,将不触发下拉,避免与左右滑动的轮播等组件冲突;
  20652. textInOffset: '下拉刷新',
  20653. // 下拉的距离在offset范围内的提示文本
  20654. textOutOffset: '释放更新',
  20655. // 下拉的距离大于offset范围的提示文本
  20656. textLoading: '加载中 ...',
  20657. // 加载中的提示文本
  20658. textSuccess: '加载成功',
  20659. // 加载成功的文本
  20660. textErr: '加载失败',
  20661. // 加载失败的文本
  20662. beforeEndDelay: 0,
  20663. // 延时结束的时长 (显示加载成功/失败的时长, android小程序设置此项结束下拉会卡顿, 配置后请注意测试)
  20664. bgColor: "transparent",
  20665. // 背景颜色 (建议在pages.json中再设置一下backgroundColorTop)
  20666. textColor: "gray",
  20667. // 文本颜色 (当bgColor配置了颜色,而textColor未配置时,则textColor会默认为白色)
  20668. inited: null,
  20669. // 下拉刷新初始化完毕的回调
  20670. inOffset: null,
  20671. // 下拉的距离进入offset范围内那一刻的回调
  20672. outOffset: null,
  20673. // 下拉的距离大于offset那一刻的回调
  20674. onMoving: null,
  20675. // 下拉过程中的回调,滑动过程一直在执行; rate下拉区域当前高度与指定距离的比值(inOffset: rate<1; outOffset: rate>=1); downHight当前下拉区域的高度
  20676. beforeLoading: null,
  20677. // 准备触发下拉刷新的回调: 如果return true,将不触发showLoading和callback回调; 常用来完全自定义下拉刷新, 参考案例【淘宝 v6.8.0】
  20678. showLoading: null,
  20679. // 显示下拉刷新进度的回调
  20680. afterLoading: null,
  20681. // 显示下拉刷新进度的回调之后,马上要执行的代码 (如: 在wxs中使用)
  20682. beforeEndDownScroll: null,
  20683. // 准备结束下拉的回调. 返回结束下拉的延时执行时间,默认0ms; 常用于结束下拉之前再显示另外一小段动画,才去隐藏下拉刷新的场景, 参考案例【dotJump】
  20684. endDownScroll: null,
  20685. // 结束下拉刷新的回调
  20686. afterEndDownScroll: null,
  20687. // 结束下拉刷新的回调,马上要执行的代码 (如: 在wxs中使用)
  20688. callback: function callback(mescroll) {
  20689. // 下拉刷新的回调;默认重置上拉加载列表为第一页
  20690. mescroll.resetUpScroll();
  20691. }
  20692. });
  20693. };
  20694. /* 配置参数:上拉加载 */
  20695. MeScroll.prototype.extendUpScroll = function (optUp) {
  20696. // 上拉加载的配置
  20697. MeScroll.extend(optUp, {
  20698. use: true,
  20699. // 是否启用上拉加载; 默认true
  20700. auto: true,
  20701. // 是否在初始化完毕之后自动执行上拉加载的回调; 默认true
  20702. isLock: false,
  20703. // 是否锁定上拉加载,默认false;
  20704. isBoth: true,
  20705. // 上拉加载时,如果滑动到列表顶部是否可以同时触发下拉刷新;默认true,两者可同时触发;
  20706. callback: null,
  20707. // 上拉加载的回调;function(page,mescroll){ }
  20708. page: {
  20709. num: 0,
  20710. // 当前页码,默认0,回调之前会加1,即callback(page)会从1开始
  20711. size: 10,
  20712. // 每页数据的数量
  20713. time: null // 加载第一页数据服务器返回的时间; 防止用户翻页时,后台新增了数据从而导致下一页数据重复;
  20714. },
  20715. noMoreSize: 5,
  20716. // 如果列表已无数据,可设置列表的总数量要大于等于5条才显示无更多数据;避免列表数据过少(比如只有一条数据),显示无更多数据会不好看
  20717. offset: 150,
  20718. // 距底部多远时,触发upCallback,仅mescroll-uni生效 ( mescroll-body配置的是pages.json的 onReachBottomDistance )
  20719. textLoading: '加载中 ...',
  20720. // 加载中的提示文本
  20721. textNoMore: '-- END --',
  20722. // 没有更多数据的提示文本
  20723. bgColor: "transparent",
  20724. // 背景颜色 (建议在pages.json中再设置一下backgroundColorBottom)
  20725. textColor: "gray",
  20726. // 文本颜色 (当bgColor配置了颜色,而textColor未配置时,则textColor会默认为白色)
  20727. inited: null,
  20728. // 初始化完毕的回调
  20729. showLoading: null,
  20730. // 显示加载中的回调
  20731. showNoMore: null,
  20732. // 显示无更多数据的回调
  20733. hideUpScroll: null,
  20734. // 隐藏上拉加载的回调
  20735. errDistance: 60,
  20736. // endErr的时候需往上滑动一段距离,使其往下滑动时再次触发onReachBottom,仅mescroll-body生效
  20737. toTop: {
  20738. // 回到顶部按钮,需配置src才显示
  20739. src: null,
  20740. // 图片路径,默认null (绝对路径或网络图)
  20741. offset: 1000,
  20742. // 列表滚动多少距离才显示回到顶部按钮,默认1000
  20743. duration: 300,
  20744. // 回到顶部的动画时长,默认300ms (当值为0或300则使用系统自带回到顶部,更流畅; 其他值则通过step模拟,部分机型可能不够流畅,所以非特殊情况不建议修改此项)
  20745. btnClick: null,
  20746. // 点击按钮的回调
  20747. onShow: null,
  20748. // 是否显示的回调
  20749. zIndex: 9990,
  20750. // fixed定位z-index值
  20751. left: null,
  20752. // 到左边的距离, 默认null. 此项有值时,right不生效. (支持20, "20rpx", "20px", "20%"格式的值, 其中纯数字则默认单位rpx)
  20753. right: 20,
  20754. // 到右边的距离, 默认20 (支持20, "20rpx", "20px", "20%"格式的值, 其中纯数字则默认单位rpx)
  20755. bottom: 120,
  20756. // 到底部的距离, 默认120 (支持20, "20rpx", "20px", "20%"格式的值, 其中纯数字则默认单位rpx)
  20757. safearea: false,
  20758. // bottom的偏移量是否加上底部安全区的距离, 默认false, 需要适配iPhoneX时使用 (具体的界面如果不配置此项,则取本vue的safearea值)
  20759. width: 72,
  20760. // 回到顶部图标的宽度, 默认72 (支持20, "20rpx", "20px", "20%"格式的值, 其中纯数字则默认单位rpx)
  20761. radius: "50%" // 圆角, 默认"50%" (支持20, "20rpx", "20px", "20%"格式的值, 其中纯数字则默认单位rpx)
  20762. },
  20763. empty: {
  20764. use: true,
  20765. // 是否显示空布局
  20766. icon: null,
  20767. // 图标路径
  20768. tip: '~ 暂无相关数据 ~',
  20769. // 提示
  20770. btnText: '',
  20771. // 按钮
  20772. btnClick: null,
  20773. // 点击按钮的回调
  20774. onShow: null,
  20775. // 是否显示的回调
  20776. fixed: false,
  20777. // 是否使用fixed定位,默认false; 配置fixed为true,以下的top和zIndex才生效 (transform会使fixed失效,最终会降级为absolute)
  20778. top: "100rpx",
  20779. // fixed定位的top值 (完整的单位值,如 "10%"; "100rpx")
  20780. zIndex: 99 // fixed定位z-index值
  20781. },
  20782. onScroll: false // 是否监听滚动事件
  20783. });
  20784. };
  20785. /* 配置参数 */
  20786. MeScroll.extend = function (userOption, defaultOption) {
  20787. if (!userOption) return defaultOption;
  20788. for (var key in defaultOption) {
  20789. if (userOption[key] == null) {
  20790. var def = defaultOption[key];
  20791. if (def != null && (0, _typeof2.default)(def) === 'object') {
  20792. userOption[key] = MeScroll.extend({}, def); // 深度匹配
  20793. } else {
  20794. userOption[key] = def;
  20795. }
  20796. } else if ((0, _typeof2.default)(userOption[key]) === 'object') {
  20797. MeScroll.extend(userOption[key], defaultOption[key]); // 深度匹配
  20798. }
  20799. }
  20800. return userOption;
  20801. };
  20802. /* 简单判断是否配置了颜色 (非透明,非白色) */
  20803. MeScroll.prototype.hasColor = function (color) {
  20804. if (!color) return false;
  20805. var c = color.toLowerCase();
  20806. return c != "#fff" && c != "#ffffff" && c != "transparent" && c != "white";
  20807. };
  20808. /* -------初始化下拉刷新------- */
  20809. MeScroll.prototype.initDownScroll = function () {
  20810. var me = this;
  20811. // 配置参数
  20812. me.optDown = me.options.down || {};
  20813. if (!me.optDown.textColor && me.hasColor(me.optDown.bgColor)) me.optDown.textColor = "#fff"; // 当bgColor有值且textColor未设置,则textColor默认白色
  20814. me.extendDownScroll(me.optDown);
  20815. // 如果是mescroll-body且配置了native,则禁止自定义的下拉刷新
  20816. if (me.isScrollBody && me.optDown.native) {
  20817. me.optDown.use = false;
  20818. } else {
  20819. me.optDown.native = false; // 仅mescroll-body支持,mescroll-uni不支持
  20820. }
  20821. me.downHight = 0; // 下拉区域的高度
  20822. // 在页面中加入下拉布局
  20823. if (me.optDown.use && me.optDown.inited) {
  20824. // 初始化完毕的回调
  20825. setTimeout(function () {
  20826. // 待主线程执行完毕再执行,避免new MeScroll未初始化,在回调获取不到mescroll的实例
  20827. me.optDown.inited(me);
  20828. }, 0);
  20829. }
  20830. };
  20831. /* 列表touchstart事件 */
  20832. MeScroll.prototype.touchstartEvent = function (e) {
  20833. if (!this.optDown.use) return;
  20834. this.startPoint = this.getPoint(e); // 记录起点
  20835. this.startTop = this.getScrollTop(); // 记录此时的滚动条位置
  20836. this.startAngle = 0; // 初始角度
  20837. this.lastPoint = this.startPoint; // 重置上次move的点
  20838. this.maxTouchmoveY = this.getBodyHeight() - this.optDown.bottomOffset; // 手指触摸的最大范围(写在touchstart避免body获取高度为0的情况)
  20839. this.inTouchend = false; // 标记不是touchend
  20840. };
  20841. /* 列表touchmove事件 */
  20842. MeScroll.prototype.touchmoveEvent = function (e) {
  20843. if (!this.optDown.use) return;
  20844. var me = this;
  20845. var scrollTop = me.getScrollTop(); // 当前滚动条的距离
  20846. var curPoint = me.getPoint(e); // 当前点
  20847. var moveY = curPoint.y - me.startPoint.y; // 和起点比,移动的距离,大于0向下拉,小于0向上拉
  20848. // 向下拉 && 在顶部
  20849. // mescroll-body,直接判定在顶部即可
  20850. // scroll-view在滚动时不会触发touchmove,当触顶/底/左/右时,才会触发touchmove
  20851. // scroll-view滚动到顶部时,scrollTop不一定为0,也有可能大于0; 在iOS的APP中scrollTop可能为负数,不一定和startTop相等
  20852. if (moveY > 0 && (me.isScrollBody && scrollTop <= 0 || !me.isScrollBody && (scrollTop <= 0 || scrollTop <= me.optDown.startTop && scrollTop === me.startTop))) {
  20853. // 可下拉的条件
  20854. if (!me.inTouchend && !me.isDownScrolling && !me.optDown.isLock && (!me.isUpScrolling || me.isUpScrolling && me.optUp.isBoth)) {
  20855. // 下拉的初始角度是否在配置的范围内
  20856. if (!me.startAngle) me.startAngle = me.getAngle(me.lastPoint, curPoint); // 两点之间的角度,区间 [0,90]
  20857. if (me.startAngle < me.optDown.minAngle) return; // 如果小于配置的角度,则不往下执行下拉刷新
  20858. // 如果手指的位置超过配置的距离,则提前结束下拉,避免Webview嵌套导致touchend无法触发
  20859. if (me.maxTouchmoveY > 0 && curPoint.y >= me.maxTouchmoveY) {
  20860. me.inTouchend = true; // 标记执行touchend
  20861. me.touchendEvent(); // 提前触发touchend
  20862. return;
  20863. }
  20864. me.preventDefault(e); // 阻止默认事件
  20865. var diff = curPoint.y - me.lastPoint.y; // 和上次比,移动的距离 (大于0向下,小于0向上)
  20866. // 下拉距离 < 指定距离
  20867. if (me.downHight < me.optDown.offset) {
  20868. if (me.movetype !== 1) {
  20869. me.movetype = 1; // 加入标记,保证只执行一次
  20870. me.isDownEndSuccess = null; // 重置是否加载成功的状态 (wxs执行的是wxs.wxs)
  20871. me.optDown.inOffset && me.optDown.inOffset(me); // 进入指定距离范围内那一刻的回调,只执行一次
  20872. me.isMoveDown = true; // 标记下拉区域高度改变,在touchend重置回来
  20873. }
  20874. me.downHight += diff * me.optDown.inOffsetRate; // 越往下,高度变化越小
  20875. // 指定距离 <= 下拉距离
  20876. } else {
  20877. if (me.movetype !== 2) {
  20878. me.movetype = 2; // 加入标记,保证只执行一次
  20879. me.optDown.outOffset && me.optDown.outOffset(me); // 下拉超过指定距离那一刻的回调,只执行一次
  20880. me.isMoveDown = true; // 标记下拉区域高度改变,在touchend重置回来
  20881. }
  20882. if (diff > 0) {
  20883. // 向下拉
  20884. me.downHight += diff * me.optDown.outOffsetRate; // 越往下,高度变化越小
  20885. } else {
  20886. // 向上收
  20887. me.downHight += diff; // 向上收回高度,则向上滑多少收多少高度
  20888. }
  20889. }
  20890. me.downHight = Math.round(me.downHight); // 取整
  20891. var rate = me.downHight / me.optDown.offset; // 下拉区域当前高度与指定距离的比值
  20892. me.optDown.onMoving && me.optDown.onMoving(me, rate, me.downHight); // 下拉过程中的回调,一直在执行
  20893. }
  20894. }
  20895. me.lastPoint = curPoint; // 记录本次移动的点
  20896. };
  20897. /* 列表touchend事件 */
  20898. MeScroll.prototype.touchendEvent = function (e) {
  20899. if (!this.optDown.use) return;
  20900. // 如果下拉区域高度已改变,则需重置回来
  20901. if (this.isMoveDown) {
  20902. if (this.downHight >= this.optDown.offset) {
  20903. // 符合触发刷新的条件
  20904. this.triggerDownScroll();
  20905. } else {
  20906. // 不符合的话 则重置
  20907. this.downHight = 0;
  20908. this.endDownScrollCall(this);
  20909. }
  20910. this.movetype = 0;
  20911. this.isMoveDown = false;
  20912. } else if (!this.isScrollBody && this.getScrollTop() === this.startTop) {
  20913. // scroll-view到顶/左/右/底的滑动事件
  20914. var isScrollUp = this.getPoint(e).y - this.startPoint.y < 0; // 和起点比,移动的距离,大于0向下拉,小于0向上拉
  20915. // 上滑
  20916. if (isScrollUp) {
  20917. // 需检查滑动的角度
  20918. var angle = this.getAngle(this.getPoint(e), this.startPoint); // 两点之间的角度,区间 [0,90]
  20919. if (angle > 80) {
  20920. // 检查并触发上拉
  20921. this.triggerUpScroll(true);
  20922. }
  20923. }
  20924. }
  20925. };
  20926. /* 根据点击滑动事件获取第一个手指的坐标 */
  20927. MeScroll.prototype.getPoint = function (e) {
  20928. if (!e) {
  20929. return {
  20930. x: 0,
  20931. y: 0
  20932. };
  20933. }
  20934. if (e.touches && e.touches[0]) {
  20935. return {
  20936. x: e.touches[0].pageX,
  20937. y: e.touches[0].pageY
  20938. };
  20939. } else if (e.changedTouches && e.changedTouches[0]) {
  20940. return {
  20941. x: e.changedTouches[0].pageX,
  20942. y: e.changedTouches[0].pageY
  20943. };
  20944. } else {
  20945. return {
  20946. x: e.clientX,
  20947. y: e.clientY
  20948. };
  20949. }
  20950. };
  20951. /* 计算两点之间的角度: 区间 [0,90]*/
  20952. MeScroll.prototype.getAngle = function (p1, p2) {
  20953. var x = Math.abs(p1.x - p2.x);
  20954. var y = Math.abs(p1.y - p2.y);
  20955. var z = Math.sqrt(x * x + y * y);
  20956. var angle = 0;
  20957. if (z !== 0) {
  20958. angle = Math.asin(y / z) / Math.PI * 180;
  20959. }
  20960. return angle;
  20961. };
  20962. /* 触发下拉刷新 */
  20963. MeScroll.prototype.triggerDownScroll = function () {
  20964. if (this.optDown.beforeLoading && this.optDown.beforeLoading(this)) {
  20965. //return true则处于完全自定义状态
  20966. } else {
  20967. this.showDownScroll(); // 下拉刷新中...
  20968. !this.optDown.native && this.optDown.callback && this.optDown.callback(this); // 执行回调,联网加载数据
  20969. }
  20970. };
  20971. /* 显示下拉进度布局 */
  20972. MeScroll.prototype.showDownScroll = function () {
  20973. this.isDownScrolling = true; // 标记下拉中
  20974. if (this.optDown.native) {
  20975. uni.startPullDownRefresh(); // 系统自带的下拉刷新
  20976. this.showDownLoadingCall(0); // 仍触发showLoading,因为上拉加载用到
  20977. } else {
  20978. this.downHight = this.optDown.offset; // 更新下拉区域高度
  20979. this.showDownLoadingCall(this.downHight); // 下拉刷新中...
  20980. }
  20981. };
  20982. MeScroll.prototype.showDownLoadingCall = function (downHight) {
  20983. this.optDown.showLoading && this.optDown.showLoading(this, downHight); // 下拉刷新中...
  20984. this.optDown.afterLoading && this.optDown.afterLoading(this, downHight); // 下拉刷新中...触发之后马上要执行的代码
  20985. };
  20986. /* 显示系统自带的下拉刷新时需要处理的业务 */
  20987. MeScroll.prototype.onPullDownRefresh = function () {
  20988. this.isDownScrolling = true; // 标记下拉中
  20989. this.showDownLoadingCall(0); // 仍触发showLoading,因为上拉加载用到
  20990. this.optDown.callback && this.optDown.callback(this); // 执行回调,联网加载数据
  20991. };
  20992. /* 结束下拉刷新 */
  20993. MeScroll.prototype.endDownScroll = function () {
  20994. if (this.optDown.native) {
  20995. // 结束原生下拉刷新
  20996. this.isDownScrolling = false;
  20997. this.endDownScrollCall(this);
  20998. uni.stopPullDownRefresh();
  20999. return;
  21000. }
  21001. var me = this;
  21002. // 结束下拉刷新的方法
  21003. var endScroll = function endScroll() {
  21004. me.downHight = 0;
  21005. me.isDownScrolling = false;
  21006. me.endDownScrollCall(me);
  21007. if (!me.isScrollBody) {
  21008. me.setScrollHeight(0); // scroll-view重置滚动区域,使数据不满屏时仍可检查触发翻页
  21009. me.scrollTo(0, 0); // scroll-view需重置滚动条到顶部,避免startTop大于0时,对下拉刷新的影响
  21010. }
  21011. };
  21012. // 结束下拉刷新时的回调
  21013. var delay = 0;
  21014. if (me.optDown.beforeEndDownScroll) {
  21015. delay = me.optDown.beforeEndDownScroll(me); // 结束下拉刷新的延时,单位ms
  21016. if (me.isDownEndSuccess == null) delay = 0; // 没有执行加载中,则不延时
  21017. }
  21018. if (typeof delay === 'number' && delay > 0) {
  21019. setTimeout(endScroll, delay);
  21020. } else {
  21021. endScroll();
  21022. }
  21023. };
  21024. MeScroll.prototype.endDownScrollCall = function () {
  21025. this.optDown.endDownScroll && this.optDown.endDownScroll(this);
  21026. this.optDown.afterEndDownScroll && this.optDown.afterEndDownScroll(this);
  21027. };
  21028. /* 锁定下拉刷新:isLock=ture,null锁定;isLock=false解锁 */
  21029. MeScroll.prototype.lockDownScroll = function (isLock) {
  21030. if (isLock == null) isLock = true;
  21031. this.optDown.isLock = isLock;
  21032. };
  21033. /* 锁定上拉加载:isLock=ture,null锁定;isLock=false解锁 */
  21034. MeScroll.prototype.lockUpScroll = function (isLock) {
  21035. if (isLock == null) isLock = true;
  21036. this.optUp.isLock = isLock;
  21037. };
  21038. /* -------初始化上拉加载------- */
  21039. MeScroll.prototype.initUpScroll = function () {
  21040. var me = this;
  21041. // 配置参数
  21042. me.optUp = me.options.up || {
  21043. use: false
  21044. };
  21045. if (!me.optUp.textColor && me.hasColor(me.optUp.bgColor)) me.optUp.textColor = "#fff"; // 当bgColor有值且textColor未设置,则textColor默认白色
  21046. me.extendUpScroll(me.optUp);
  21047. if (me.optUp.use === false) return; // 配置不使用上拉加载时,则不初始化上拉布局
  21048. me.optUp.hasNext = true; // 如果使用上拉,则默认有下一页
  21049. me.startNum = me.optUp.page.num + 1; // 记录page开始的页码
  21050. // 初始化完毕的回调
  21051. if (me.optUp.inited) {
  21052. setTimeout(function () {
  21053. // 待主线程执行完毕再执行,避免new MeScroll未初始化,在回调获取不到mescroll的实例
  21054. me.optUp.inited(me);
  21055. }, 0);
  21056. }
  21057. };
  21058. /*滚动到底部的事件 (仅mescroll-body生效)*/
  21059. MeScroll.prototype.onReachBottom = function () {
  21060. if (this.isScrollBody && !this.isUpScrolling) {
  21061. // 只能支持下拉刷新的时候同时可以触发上拉加载,否则滚动到底部就需要上滑一点才能触发onReachBottom
  21062. if (!this.optUp.isLock && this.optUp.hasNext) {
  21063. this.triggerUpScroll();
  21064. }
  21065. }
  21066. };
  21067. /*列表滚动事件 (仅mescroll-body生效)*/
  21068. MeScroll.prototype.onPageScroll = function (e) {
  21069. if (!this.isScrollBody) return;
  21070. // 更新滚动条的位置 (主要用于判断下拉刷新时,滚动条是否在顶部)
  21071. this.setScrollTop(e.scrollTop);
  21072. // 顶部按钮的显示隐藏
  21073. if (e.scrollTop >= this.optUp.toTop.offset) {
  21074. this.showTopBtn();
  21075. } else {
  21076. this.hideTopBtn();
  21077. }
  21078. };
  21079. /*列表滚动事件*/
  21080. MeScroll.prototype.scroll = function (e, onScroll) {
  21081. // 更新滚动条的位置
  21082. this.setScrollTop(e.scrollTop);
  21083. // 更新滚动内容高度
  21084. this.setScrollHeight(e.scrollHeight);
  21085. // 向上滑还是向下滑动
  21086. if (this.preScrollY == null) this.preScrollY = 0;
  21087. this.isScrollUp = e.scrollTop - this.preScrollY > 0;
  21088. this.preScrollY = e.scrollTop;
  21089. // 上滑 && 检查并触发上拉
  21090. this.isScrollUp && this.triggerUpScroll(true);
  21091. // 顶部按钮的显示隐藏
  21092. if (e.scrollTop >= this.optUp.toTop.offset) {
  21093. this.showTopBtn();
  21094. } else {
  21095. this.hideTopBtn();
  21096. }
  21097. // 滑动监听
  21098. this.optUp.onScroll && onScroll && onScroll();
  21099. };
  21100. /* 触发上拉加载 */
  21101. MeScroll.prototype.triggerUpScroll = function (isCheck) {
  21102. if (!this.isUpScrolling && this.optUp.use && this.optUp.callback) {
  21103. // 是否校验在底部; 默认不校验
  21104. if (isCheck === true) {
  21105. var canUp = false;
  21106. // 还有下一页 && 没有锁定 && 不在下拉中
  21107. if (this.optUp.hasNext && !this.optUp.isLock && !this.isDownScrolling) {
  21108. if (this.getScrollBottom() <= this.optUp.offset) {
  21109. // 到底部
  21110. canUp = true; // 标记可上拉
  21111. }
  21112. }
  21113. if (canUp === false) return;
  21114. }
  21115. this.showUpScroll(); // 上拉加载中...
  21116. this.optUp.page.num++; // 预先加一页,如果失败则减回
  21117. this.isUpAutoLoad = true; // 标记上拉已经自动执行过,避免初始化时多次触发上拉回调
  21118. this.num = this.optUp.page.num; // 把最新的页数赋值在mescroll上,避免对page的影响
  21119. this.size = this.optUp.page.size; // 把最新的页码赋值在mescroll上,避免对page的影响
  21120. this.time = this.optUp.page.time; // 把最新的页码赋值在mescroll上,避免对page的影响
  21121. this.optUp.callback(this); // 执行回调,联网加载数据
  21122. }
  21123. };
  21124. /* 显示上拉加载中 */
  21125. MeScroll.prototype.showUpScroll = function () {
  21126. this.isUpScrolling = true; // 标记上拉加载中
  21127. this.optUp.showLoading && this.optUp.showLoading(this); // 回调
  21128. };
  21129. /* 显示上拉无更多数据 */
  21130. MeScroll.prototype.showNoMore = function () {
  21131. this.optUp.hasNext = false; // 标记无更多数据
  21132. this.optUp.showNoMore && this.optUp.showNoMore(this); // 回调
  21133. };
  21134. /* 隐藏上拉区域**/
  21135. MeScroll.prototype.hideUpScroll = function () {
  21136. this.optUp.hideUpScroll && this.optUp.hideUpScroll(this); // 回调
  21137. };
  21138. /* 结束上拉加载 */
  21139. MeScroll.prototype.endUpScroll = function (isShowNoMore) {
  21140. if (isShowNoMore != null) {
  21141. // isShowNoMore=null,不处理下拉状态,下拉刷新的时候调用
  21142. if (isShowNoMore) {
  21143. this.showNoMore(); // isShowNoMore=true,显示无更多数据
  21144. } else {
  21145. this.hideUpScroll(); // isShowNoMore=false,隐藏上拉加载
  21146. }
  21147. }
  21148. this.isUpScrolling = false; // 标记结束上拉加载
  21149. };
  21150. /* 重置上拉加载列表为第一页
  21151. *isShowLoading 是否显示进度布局;
  21152. * 1.默认null,不传参,则显示上拉加载的进度布局
  21153. * 2.传参true, 则显示下拉刷新的进度布局
  21154. * 3.传参false,则不显示上拉和下拉的进度 (常用于静默更新列表数据)
  21155. */
  21156. MeScroll.prototype.resetUpScroll = function (isShowLoading) {
  21157. if (this.optUp && this.optUp.use) {
  21158. var page = this.optUp.page;
  21159. this.prePageNum = page.num; // 缓存重置前的页码,加载失败可退回
  21160. this.prePageTime = page.time; // 缓存重置前的时间,加载失败可退回
  21161. page.num = this.startNum; // 重置为第一页
  21162. page.time = null; // 重置时间为空
  21163. if (!this.isDownScrolling && isShowLoading !== false) {
  21164. // 如果不是下拉刷新触发的resetUpScroll并且不配置列表静默更新,则显示进度;
  21165. if (isShowLoading == null) {
  21166. this.removeEmpty(); // 移除空布局
  21167. this.showUpScroll(); // 不传参,默认显示上拉加载的进度布局
  21168. } else {
  21169. this.showDownScroll(); // 传true,显示下拉刷新的进度布局,不清空列表
  21170. }
  21171. }
  21172. this.isUpAutoLoad = true; // 标记上拉已经自动执行过,避免初始化时多次触发上拉回调
  21173. this.num = page.num; // 把最新的页数赋值在mescroll上,避免对page的影响
  21174. this.size = page.size; // 把最新的页码赋值在mescroll上,避免对page的影响
  21175. this.time = page.time; // 把最新的页码赋值在mescroll上,避免对page的影响
  21176. this.optUp.callback && this.optUp.callback(this); // 执行上拉回调
  21177. }
  21178. };
  21179. /* 设置page.num的值 */
  21180. MeScroll.prototype.setPageNum = function (num) {
  21181. this.optUp.page.num = num - 1;
  21182. };
  21183. /* 设置page.size的值 */
  21184. MeScroll.prototype.setPageSize = function (size) {
  21185. this.optUp.page.size = size;
  21186. };
  21187. /* 联网回调成功,结束下拉刷新和上拉加载
  21188. * dataSize: 当前页的数据量(必传)
  21189. * totalPage: 总页数(必传)
  21190. * systime: 服务器时间 (可空)
  21191. */
  21192. MeScroll.prototype.endByPage = function (dataSize, totalPage, systime) {
  21193. var hasNext;
  21194. if (this.optUp.use && totalPage != null) hasNext = this.optUp.page.num < totalPage; // 是否还有下一页
  21195. this.endSuccess(dataSize, hasNext, systime);
  21196. };
  21197. /* 联网回调成功,结束下拉刷新和上拉加载
  21198. * dataSize: 当前页的数据量(必传)
  21199. * totalSize: 列表所有数据总数量(必传)
  21200. * systime: 服务器时间 (可空)
  21201. */
  21202. MeScroll.prototype.endBySize = function (dataSize, totalSize, systime) {
  21203. var hasNext;
  21204. if (this.optUp.use && totalSize != null) {
  21205. var loadSize = (this.optUp.page.num - 1) * this.optUp.page.size + dataSize; // 已加载的数据总数
  21206. hasNext = loadSize < totalSize; // 是否还有下一页
  21207. }
  21208. this.endSuccess(dataSize, hasNext, systime);
  21209. };
  21210. /* 联网回调成功,结束下拉刷新和上拉加载
  21211. * dataSize: 当前页的数据个数(不是所有页的数据总和),用于上拉加载判断是否还有下一页.如果不传,则会判断还有下一页
  21212. * hasNext: 是否还有下一页,布尔类型;用来解决这个小问题:比如列表共有20条数据,每页加载10条,共2页.如果只根据dataSize判断,则需翻到第三页才会知道无更多数据,如果传了hasNext,则翻到第二页即可显示无更多数据.
  21213. * systime: 服务器时间(可空);用来解决这个小问题:当准备翻下一页时,数据库新增了几条记录,此时翻下一页,前面的几条数据会和上一页的重复;这里传入了systime,那么upCallback的page.time就会有值,把page.time传给服务器,让后台过滤新加入的那几条记录
  21214. */
  21215. MeScroll.prototype.endSuccess = function (dataSize, hasNext, systime) {
  21216. var me = this;
  21217. // 结束下拉刷新
  21218. if (me.isDownScrolling) {
  21219. me.isDownEndSuccess = true;
  21220. me.endDownScroll();
  21221. }
  21222. // 结束上拉加载
  21223. if (me.optUp.use) {
  21224. var isShowNoMore; // 是否已无更多数据
  21225. if (dataSize != null) {
  21226. var pageNum = me.optUp.page.num; // 当前页码
  21227. var pageSize = me.optUp.page.size; // 每页长度
  21228. // 如果是第一页
  21229. if (pageNum === 1) {
  21230. if (systime) me.optUp.page.time = systime; // 设置加载列表数据第一页的时间
  21231. }
  21232. if (dataSize < pageSize || hasNext === false) {
  21233. // 返回的数据不满一页时,则说明已无更多数据
  21234. me.optUp.hasNext = false;
  21235. if (dataSize === 0 && pageNum === 1) {
  21236. // 如果第一页无任何数据且配置了空布局
  21237. isShowNoMore = false;
  21238. me.showEmpty();
  21239. } else {
  21240. // 总列表数少于配置的数量,则不显示无更多数据
  21241. var allDataSize = (pageNum - 1) * pageSize + dataSize;
  21242. if (allDataSize < me.optUp.noMoreSize) {
  21243. isShowNoMore = false;
  21244. } else {
  21245. isShowNoMore = true;
  21246. }
  21247. me.removeEmpty(); // 移除空布局
  21248. }
  21249. } else {
  21250. // 还有下一页
  21251. isShowNoMore = false;
  21252. me.optUp.hasNext = true;
  21253. me.removeEmpty(); // 移除空布局
  21254. }
  21255. }
  21256. // 隐藏上拉
  21257. me.endUpScroll(isShowNoMore);
  21258. }
  21259. };
  21260. /* 回调失败,结束下拉刷新和上拉加载 */
  21261. MeScroll.prototype.endErr = function (errDistance) {
  21262. // 结束下拉,回调失败重置回原来的页码和时间
  21263. if (this.isDownScrolling) {
  21264. this.isDownEndSuccess = false;
  21265. var page = this.optUp.page;
  21266. if (page && this.prePageNum) {
  21267. page.num = this.prePageNum;
  21268. page.time = this.prePageTime;
  21269. }
  21270. this.endDownScroll();
  21271. }
  21272. // 结束上拉,回调失败重置回原来的页码
  21273. if (this.isUpScrolling) {
  21274. this.optUp.page.num--;
  21275. this.endUpScroll(false);
  21276. // 如果是mescroll-body,则需往回滚一定距离
  21277. if (this.isScrollBody && errDistance !== 0) {
  21278. // 不处理0
  21279. if (!errDistance) errDistance = this.optUp.errDistance; // 不传,则取默认
  21280. this.scrollTo(this.getScrollTop() - errDistance, 0); // 往上回滚的距离
  21281. }
  21282. }
  21283. };
  21284. /* 显示空布局 */
  21285. MeScroll.prototype.showEmpty = function () {
  21286. this.optUp.empty.use && this.optUp.empty.onShow && this.optUp.empty.onShow(true);
  21287. };
  21288. /* 移除空布局 */
  21289. MeScroll.prototype.removeEmpty = function () {
  21290. this.optUp.empty.use && this.optUp.empty.onShow && this.optUp.empty.onShow(false);
  21291. };
  21292. /* 显示回到顶部的按钮 */
  21293. MeScroll.prototype.showTopBtn = function () {
  21294. if (!this.topBtnShow) {
  21295. this.topBtnShow = true;
  21296. this.optUp.toTop.onShow && this.optUp.toTop.onShow(true);
  21297. }
  21298. };
  21299. /* 隐藏回到顶部的按钮 */
  21300. MeScroll.prototype.hideTopBtn = function () {
  21301. if (this.topBtnShow) {
  21302. this.topBtnShow = false;
  21303. this.optUp.toTop.onShow && this.optUp.toTop.onShow(false);
  21304. }
  21305. };
  21306. /* 获取滚动条的位置 */
  21307. MeScroll.prototype.getScrollTop = function () {
  21308. return this.scrollTop || 0;
  21309. };
  21310. /* 记录滚动条的位置 */
  21311. MeScroll.prototype.setScrollTop = function (y) {
  21312. this.scrollTop = y;
  21313. };
  21314. /* 滚动到指定位置 */
  21315. MeScroll.prototype.scrollTo = function (y, t) {
  21316. this.myScrollTo && this.myScrollTo(y, t); // scrollview需自定义回到顶部方法
  21317. };
  21318. /* 自定义scrollTo */
  21319. MeScroll.prototype.resetScrollTo = function (myScrollTo) {
  21320. this.myScrollTo = myScrollTo;
  21321. };
  21322. /* 滚动条到底部的距离 */
  21323. MeScroll.prototype.getScrollBottom = function () {
  21324. return this.getScrollHeight() - this.getClientHeight() - this.getScrollTop();
  21325. };
  21326. /* 计步器
  21327. star: 开始值
  21328. end: 结束值
  21329. callback(step,timer): 回调step值,计步器timer,可自行通过window.clearInterval(timer)结束计步器;
  21330. t: 计步时长,传0则直接回调end值;不传则默认300ms
  21331. rate: 周期;不传则默认30ms计步一次
  21332. * */
  21333. MeScroll.prototype.getStep = function (star, end, callback, t, rate) {
  21334. var diff = end - star; // 差值
  21335. if (t === 0 || diff === 0) {
  21336. callback && callback(end);
  21337. return;
  21338. }
  21339. t = t || 300; // 时长 300ms
  21340. rate = rate || 30; // 周期 30ms
  21341. var count = t / rate; // 次数
  21342. var step = diff / count; // 步长
  21343. var i = 0; // 计数
  21344. var timer = setInterval(function () {
  21345. if (i < count - 1) {
  21346. star += step;
  21347. callback && callback(star, timer);
  21348. i++;
  21349. } else {
  21350. callback && callback(end, timer); // 最后一次直接设置end,避免计算误差
  21351. clearInterval(timer);
  21352. }
  21353. }, rate);
  21354. };
  21355. /* 滚动容器的高度 */
  21356. MeScroll.prototype.getClientHeight = function (isReal) {
  21357. var h = this.clientHeight || 0;
  21358. if (h === 0 && isReal !== true) {
  21359. // 未获取到容器的高度,可临时取body的高度 (可能会有误差)
  21360. h = this.getBodyHeight();
  21361. }
  21362. return h;
  21363. };
  21364. MeScroll.prototype.setClientHeight = function (h) {
  21365. this.clientHeight = h;
  21366. };
  21367. /* 滚动内容的高度 */
  21368. MeScroll.prototype.getScrollHeight = function () {
  21369. return this.scrollHeight || 0;
  21370. };
  21371. MeScroll.prototype.setScrollHeight = function (h) {
  21372. this.scrollHeight = h;
  21373. };
  21374. /* body的高度 */
  21375. MeScroll.prototype.getBodyHeight = function () {
  21376. return this.bodyHeight || 0;
  21377. };
  21378. MeScroll.prototype.setBodyHeight = function (h) {
  21379. this.bodyHeight = h;
  21380. };
  21381. /* 阻止浏览器默认滚动事件 */
  21382. MeScroll.prototype.preventDefault = function (e) {
  21383. // 小程序不支持e.preventDefault, 已在wxs中禁止
  21384. // app的bounce只能通过配置pages.json的style.app-plus.bounce为"none"来禁止, 或使用renderjs禁止
  21385. // cancelable:是否可以被禁用; defaultPrevented:是否已经被禁用
  21386. if (e && e.cancelable && !e.defaultPrevented) e.preventDefault();
  21387. };
  21388. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21389. /***/ }),
  21390. /* 286 */
  21391. /*!***************************************************************************************************!*\
  21392. !*** D:/jje_staff_uniapp/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-uni-option.js ***!
  21393. \***************************************************************************************************/
  21394. /*! no static exports found */
  21395. /***/ (function(module, exports, __webpack_require__) {
  21396. "use strict";
  21397. Object.defineProperty(exports, "__esModule", {
  21398. value: true
  21399. });
  21400. exports.default = void 0;
  21401. // 全局配置
  21402. // mescroll-body 和 mescroll-uni 通用
  21403. var GlobalOption = {
  21404. down: {
  21405. // 其他down的配置参数也可以写,这里只展示了常用的配置:
  21406. offset: 80,
  21407. // 在列表顶部,下拉大于80px,松手即可触发下拉刷新的回调
  21408. native: false // 是否使用系统自带的下拉刷新; 默认false; 仅在mescroll-body生效 (值为true时,还需在pages配置enablePullDownRefresh:true;详请参考mescroll-native的案例)
  21409. },
  21410. up: {
  21411. // 其他up的配置参数也可以写,这里只展示了常用的配置:
  21412. offset: 150,
  21413. // 距底部多远时,触发upCallback,仅mescroll-uni生效 ( mescroll-body配置的是pages.json的 onReachBottomDistance )
  21414. toTop: {
  21415. // 回到顶部按钮,需配置src才显示
  21416. src: "https://www.mescroll.com/img/mescroll-totop.png",
  21417. // 图片路径 (建议放入static目录, 如 /static/img/mescroll-totop.png )
  21418. offset: 1000,
  21419. // 列表滚动多少距离才显示回到顶部按钮,默认1000px
  21420. right: 20,
  21421. // 到右边的距离, 默认20 (支持"20rpx", "20px", "20%"格式的值, 纯数字则默认单位rpx)
  21422. bottom: 120,
  21423. // 到底部的距离, 默认120 (支持"20rpx", "20px", "20%"格式的值, 纯数字则默认单位rpx)
  21424. width: 72 // 回到顶部图标的宽度, 默认72 (支持"20rpx", "20px", "20%"格式的值, 纯数字则默认单位rpx)
  21425. },
  21426. empty: {
  21427. use: true,
  21428. // 是否显示空布局
  21429. icon: "https://www.mescroll.com/img/mescroll-empty.png" // 图标路径 (建议放入static目录, 如 /static/img/mescroll-empty.png )
  21430. }
  21431. },
  21432. // 国际化配置
  21433. i18n: {
  21434. // 中文
  21435. zh: {
  21436. down: {
  21437. textInOffset: '下拉刷新',
  21438. // 下拉的距离在offset范围内的提示文本
  21439. textOutOffset: '释放更新',
  21440. // 下拉的距离大于offset范围的提示文本
  21441. textLoading: '加载中 ...',
  21442. // 加载中的提示文本
  21443. textSuccess: '加载成功',
  21444. // 加载成功的文本
  21445. textErr: '加载失败' // 加载失败的文本
  21446. },
  21447. up: {
  21448. textLoading: '加载中 ...',
  21449. // 加载中的提示文本
  21450. textNoMore: '-- END --',
  21451. // 没有更多数据的提示文本
  21452. empty: {
  21453. tip: '~ 空空如也 ~' // 空提示
  21454. }
  21455. }
  21456. },
  21457. // 英文
  21458. en: {
  21459. down: {
  21460. textInOffset: 'drop down refresh',
  21461. textOutOffset: 'release updates',
  21462. textLoading: 'loading ...',
  21463. textSuccess: 'loaded successfully',
  21464. textErr: 'loading failed'
  21465. },
  21466. up: {
  21467. textLoading: 'loading ...',
  21468. textNoMore: '-- END --',
  21469. empty: {
  21470. tip: '~ absolutely empty ~'
  21471. }
  21472. }
  21473. }
  21474. }
  21475. };
  21476. var _default = GlobalOption;
  21477. exports.default = _default;
  21478. /***/ }),
  21479. /* 287 */
  21480. /*!*********************************************************************************************!*\
  21481. !*** D:/jje_staff_uniapp/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-i18n.js ***!
  21482. \*********************************************************************************************/
  21483. /*! no static exports found */
  21484. /***/ (function(module, exports, __webpack_require__) {
  21485. "use strict";
  21486. /* WEBPACK VAR INJECTION */(function(uni) {
  21487. Object.defineProperty(exports, "__esModule", {
  21488. value: true
  21489. });
  21490. exports.default = void 0;
  21491. // 国际化工具类
  21492. var mescrollI18n = {
  21493. // 默认语言
  21494. def: "zh",
  21495. // 获取当前语言类型
  21496. getType: function getType() {
  21497. return uni.getStorageSync("mescroll-i18n") || this.def;
  21498. },
  21499. // 设置当前语言类型
  21500. setType: function setType(type) {
  21501. uni.setStorageSync("mescroll-i18n", type);
  21502. }
  21503. };
  21504. var _default = mescrollI18n;
  21505. exports.default = _default;
  21506. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21507. /***/ }),
  21508. /* 288 */
  21509. /*!******************************************************************************************!*\
  21510. !*** D:/jje_staff_uniapp/uni_modules/mescroll-uni/components/mescroll-uni/wxs/mixins.js ***!
  21511. \******************************************************************************************/
  21512. /*! no static exports found */
  21513. /***/ (function(module, exports, __webpack_require__) {
  21514. "use strict";
  21515. Object.defineProperty(exports, "__esModule", {
  21516. value: true
  21517. });
  21518. exports.default = void 0;
  21519. // 定义在wxs (含renderjs) 逻辑层的数据和方法, 与视图层相互通信
  21520. var WxsMixin = {
  21521. data: function data() {
  21522. return {
  21523. // 传入wxs视图层的数据 (响应式)
  21524. wxsProp: {
  21525. optDown: {},
  21526. // 下拉刷新的配置
  21527. scrollTop: 0,
  21528. // 滚动条的距离
  21529. bodyHeight: 0,
  21530. // body的高度
  21531. isDownScrolling: false,
  21532. // 是否正在下拉刷新中
  21533. isUpScrolling: false,
  21534. // 是否正在上拉加载中
  21535. isScrollBody: true,
  21536. // 是否为mescroll-body滚动
  21537. isUpBoth: true,
  21538. // 上拉加载时,是否同时可以下拉刷新
  21539. t: 0 // 数据更新的标记 (只有数据更新了,才会触发wxs的Observer)
  21540. },
  21541. // 标记调用wxs视图层的方法
  21542. callProp: {
  21543. callType: '',
  21544. // 方法名
  21545. t: 0 // 数据更新的标记 (只有数据更新了,才会触发wxs的Observer)
  21546. },
  21547. // 不用wxs的平台使用此处的wxsBiz对象,抹平wxs的写法 (微信小程序和APP使用的wxsBiz对象是./wxs/wxs.wxs)
  21548. // 不用renderjs的平台使用此处的renderBiz对象,抹平renderjs的写法 (app 和 h5 使用的renderBiz对象是./wxs/renderjs.js)
  21549. renderBiz: {
  21550. propObserver: function propObserver() {} // 抹平renderjs的写法
  21551. }
  21552. };
  21553. },
  21554. methods: {
  21555. // wxs视图层调用逻辑层的回调
  21556. wxsCall: function wxsCall(msg) {
  21557. if (msg.type === 'setWxsProp') {
  21558. // 更新wxsProp数据 (值改变才触发更新)
  21559. this.wxsProp = {
  21560. optDown: this.mescroll.optDown,
  21561. scrollTop: this.mescroll.getScrollTop(),
  21562. bodyHeight: this.mescroll.getBodyHeight(),
  21563. isDownScrolling: this.mescroll.isDownScrolling,
  21564. isUpScrolling: this.mescroll.isUpScrolling,
  21565. isUpBoth: this.mescroll.optUp.isBoth,
  21566. isScrollBody: this.mescroll.isScrollBody,
  21567. t: Date.now()
  21568. };
  21569. } else if (msg.type === 'setLoadType') {
  21570. // 设置inOffset,outOffset的状态
  21571. this.downLoadType = msg.downLoadType;
  21572. // 状态挂载到mescroll对象, 以便在其他组件中使用, 比如<me-video>中
  21573. this.$set(this.mescroll, 'downLoadType', this.downLoadType);
  21574. // 重置是否加载成功的状态
  21575. this.$set(this.mescroll, 'isDownEndSuccess', null);
  21576. } else if (msg.type === 'triggerDownScroll') {
  21577. // 主动触发下拉刷新
  21578. this.mescroll.triggerDownScroll();
  21579. } else if (msg.type === 'endDownScroll') {
  21580. // 结束下拉刷新
  21581. this.mescroll.endDownScroll();
  21582. } else if (msg.type === 'triggerUpScroll') {
  21583. // 主动触发上拉加载
  21584. this.mescroll.triggerUpScroll(true);
  21585. }
  21586. }
  21587. },
  21588. mounted: function mounted() {
  21589. var _this = this;
  21590. // 配置主动触发wxs显示加载进度的回调
  21591. this.mescroll.optDown.afterLoading = function () {
  21592. _this.callProp = {
  21593. callType: "showLoading",
  21594. t: Date.now()
  21595. }; // 触发wxs的方法 (值改变才触发更新)
  21596. };
  21597. // 配置主动触发wxs隐藏加载进度的回调
  21598. this.mescroll.optDown.afterEndDownScroll = function () {
  21599. _this.callProp = {
  21600. callType: "endDownScroll",
  21601. t: Date.now()
  21602. }; // 触发wxs的方法 (值改变才触发更新)
  21603. var delay = 300 + (_this.mescroll.optDown.beforeEndDelay || 0);
  21604. setTimeout(function () {
  21605. if (_this.downLoadType === 4 || _this.downLoadType === 0) {
  21606. _this.callProp = {
  21607. callType: "clearTransform",
  21608. t: Date.now()
  21609. }; // 触发wxs的方法 (值改变才触发更新)
  21610. }
  21611. // 状态挂载到mescroll对象, 以便在其他组件中使用, 比如<me-video>中
  21612. _this.$set(_this.mescroll, 'downLoadType', _this.downLoadType);
  21613. }, delay);
  21614. };
  21615. // 初始化wxs的数据
  21616. this.wxsCall({
  21617. type: 'setWxsProp'
  21618. });
  21619. }
  21620. };
  21621. var _default = WxsMixin;
  21622. exports.default = _default;
  21623. /***/ }),
  21624. /* 289 */,
  21625. /* 290 */,
  21626. /* 291 */,
  21627. /* 292 */,
  21628. /* 293 */,
  21629. /* 294 */,
  21630. /* 295 */,
  21631. /* 296 */,
  21632. /* 297 */,
  21633. /* 298 */,
  21634. /* 299 */,
  21635. /* 300 */,
  21636. /* 301 */,
  21637. /* 302 */,
  21638. /* 303 */,
  21639. /* 304 */,
  21640. /* 305 */,
  21641. /* 306 */,
  21642. /* 307 */,
  21643. /* 308 */,
  21644. /* 309 */,
  21645. /* 310 */
  21646. /*!***********************************************************************************************!*\
  21647. !*** D:/jje_staff_uniapp/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js ***!
  21648. \***********************************************************************************************/
  21649. /*! no static exports found */
  21650. /***/ (function(module, exports, __webpack_require__) {
  21651. "use strict";
  21652. Object.defineProperty(exports, "__esModule", {
  21653. value: true
  21654. });
  21655. exports.default = void 0;
  21656. // mescroll-body 和 mescroll-uni 通用
  21657. var MescrollMixin = {
  21658. data: function data() {
  21659. return {
  21660. mescroll: null //mescroll实例对象
  21661. };
  21662. },
  21663. // 注册系统自带的下拉刷新 (配置down.native为true时生效, 还需在pages配置enablePullDownRefresh:true;详请参考mescroll-native的案例)
  21664. onPullDownRefresh: function onPullDownRefresh() {
  21665. this.mescroll && this.mescroll.onPullDownRefresh();
  21666. },
  21667. // 注册列表滚动事件,用于判定在顶部可下拉刷新,在指定位置可显示隐藏回到顶部按钮 (此方法为页面生命周期,无法在子组件中触发, 仅在mescroll-body生效)
  21668. onPageScroll: function onPageScroll(e) {
  21669. this.mescroll && this.mescroll.onPageScroll(e);
  21670. },
  21671. // 注册滚动到底部的事件,用于上拉加载 (此方法为页面生命周期,无法在子组件中触发, 仅在mescroll-body生效)
  21672. onReachBottom: function onReachBottom() {
  21673. this.mescroll && this.mescroll.onReachBottom();
  21674. },
  21675. methods: {
  21676. // mescroll组件初始化的回调,可获取到mescroll对象
  21677. mescrollInit: function mescrollInit(mescroll) {
  21678. this.mescroll = mescroll;
  21679. },
  21680. // 下拉刷新的回调 (mixin默认resetUpScroll)
  21681. downCallback: function downCallback() {
  21682. var _this = this;
  21683. if (this.mescroll.optUp.use) {
  21684. this.mescroll.resetUpScroll();
  21685. } else {
  21686. setTimeout(function () {
  21687. _this.mescroll.endSuccess();
  21688. }, 500);
  21689. }
  21690. },
  21691. // 上拉加载的回调
  21692. upCallback: function upCallback() {
  21693. var _this2 = this;
  21694. // mixin默认延时500自动结束加载
  21695. setTimeout(function () {
  21696. _this2.mescroll.endErr();
  21697. }, 500);
  21698. }
  21699. }
  21700. };
  21701. var _default = MescrollMixin;
  21702. exports.default = _default;
  21703. /***/ }),
  21704. /* 311 */
  21705. /*!*********************************************************************************************************!*\
  21706. !*** D:/jje_staff_uniapp/uni_modules/mescroll-uni/components/mescroll-uni/mixins/mescroll-more-item.js ***!
  21707. \*********************************************************************************************************/
  21708. /*! no static exports found */
  21709. /***/ (function(module, exports, __webpack_require__) {
  21710. "use strict";
  21711. Object.defineProperty(exports, "__esModule", {
  21712. value: true
  21713. });
  21714. exports.default = void 0;
  21715. /**
  21716. * mescroll-more-item的mixins, 仅在多个 mescroll-body 写在子组件时使用 (参考 mescroll-more 案例)
  21717. */
  21718. var MescrollMoreItemMixin = {
  21719. // 支付宝小程序不支持props的mixin,需写在具体的页面中
  21720. props: {
  21721. i: Number,
  21722. // 每个tab页的专属下标
  21723. index: {
  21724. // 当前tab的下标
  21725. type: Number,
  21726. default: function _default() {
  21727. return 0;
  21728. }
  21729. }
  21730. },
  21731. data: function data() {
  21732. return {
  21733. downOption: {
  21734. auto: false // 不自动加载
  21735. },
  21736. upOption: {
  21737. auto: false // 不自动加载
  21738. },
  21739. isInit: false // 当前tab是否已初始化
  21740. };
  21741. },
  21742. watch: {
  21743. // 监听下标的变化
  21744. index: function index(val) {
  21745. if (this.i === val && !this.isInit) this.mescrollTrigger();
  21746. }
  21747. },
  21748. methods: {
  21749. // mescroll组件初始化的回调,可获取到mescroll对象 (覆盖mescroll-mixins.js的mescrollInit, 为了标记isInit)
  21750. mescrollInit: function mescrollInit(mescroll) {
  21751. this.mescroll = mescroll;
  21752. // 自动加载当前tab的数据
  21753. if (this.i === this.index) {
  21754. this.mescrollTrigger();
  21755. }
  21756. },
  21757. // 主动触发加载
  21758. mescrollTrigger: function mescrollTrigger() {
  21759. this.isInit = true; // 标记为true
  21760. if (this.mescroll) {
  21761. if (this.mescroll.optDown.use) {
  21762. this.mescroll.triggerDownScroll();
  21763. } else {
  21764. this.mescroll.triggerUpScroll();
  21765. }
  21766. }
  21767. }
  21768. }
  21769. };
  21770. var _default2 = MescrollMoreItemMixin;
  21771. exports.default = _default2;
  21772. /***/ })
  21773. ]]);
  21774. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map