vendor.js 808 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124
  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. if (!target[key].canIUse('getAppBaseInfo')) {
  40. target[key].getAppBaseInfo = target[key].getSystemInfoSync;
  41. }
  42. if (!target[key].canIUse('getWindowInfo')) {
  43. target[key].getWindowInfo = target[key].getSystemInfoSync;
  44. }
  45. if (!target[key].canIUse('getDeviceInfo')) {
  46. target[key].getDeviceInfo = target[key].getSystemInfoSync;
  47. }
  48. var _default = target[key];
  49. exports.default = _default;
  50. /***/ }),
  51. /* 2 */
  52. /*!************************************************************!*\
  53. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  54. \************************************************************/
  55. /*! no static exports found */
  56. /***/ (function(module, exports, __webpack_require__) {
  57. "use strict";
  58. /* WEBPACK VAR INJECTION */(function(wx, global) {
  59. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  60. Object.defineProperty(exports, "__esModule", {
  61. value: true
  62. });
  63. exports.createApp = createApp;
  64. exports.createComponent = createComponent;
  65. exports.createPage = createPage;
  66. exports.createPlugin = createPlugin;
  67. exports.createSubpackageApp = createSubpackageApp;
  68. exports.default = void 0;
  69. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  70. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  71. var _construct2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/construct */ 15));
  72. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  73. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  74. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 22);
  75. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  76. 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; }
  77. 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; }
  78. var realAtob;
  79. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  80. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  81. if (typeof atob !== 'function') {
  82. realAtob = function realAtob(str) {
  83. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  84. if (!b64re.test(str)) {
  85. throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  86. }
  87. // Adding the padding if missing, for semplicity
  88. str += '=='.slice(2 - (str.length & 3));
  89. var bitmap;
  90. var result = '';
  91. var r1;
  92. var r2;
  93. var i = 0;
  94. for (; i < str.length;) {
  95. 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++)));
  96. 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);
  97. }
  98. return result;
  99. };
  100. } else {
  101. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  102. realAtob = atob;
  103. }
  104. function b64DecodeUnicode(str) {
  105. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  106. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  107. }).join(''));
  108. }
  109. function getCurrentUserInfo() {
  110. var token = wx.getStorageSync('uni_id_token') || '';
  111. var tokenArr = token.split('.');
  112. if (!token || tokenArr.length !== 3) {
  113. return {
  114. uid: null,
  115. role: [],
  116. permission: [],
  117. tokenExpired: 0
  118. };
  119. }
  120. var userInfo;
  121. try {
  122. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  123. } catch (error) {
  124. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  125. }
  126. userInfo.tokenExpired = userInfo.exp * 1000;
  127. delete userInfo.exp;
  128. delete userInfo.iat;
  129. return userInfo;
  130. }
  131. function uniIdMixin(Vue) {
  132. Vue.prototype.uniIDHasRole = function (roleId) {
  133. var _getCurrentUserInfo = getCurrentUserInfo(),
  134. role = _getCurrentUserInfo.role;
  135. return role.indexOf(roleId) > -1;
  136. };
  137. Vue.prototype.uniIDHasPermission = function (permissionId) {
  138. var _getCurrentUserInfo2 = getCurrentUserInfo(),
  139. permission = _getCurrentUserInfo2.permission;
  140. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  141. };
  142. Vue.prototype.uniIDTokenValid = function () {
  143. var _getCurrentUserInfo3 = getCurrentUserInfo(),
  144. tokenExpired = _getCurrentUserInfo3.tokenExpired;
  145. return tokenExpired > Date.now();
  146. };
  147. }
  148. var _toString = Object.prototype.toString;
  149. var hasOwnProperty = Object.prototype.hasOwnProperty;
  150. function isFn(fn) {
  151. return typeof fn === 'function';
  152. }
  153. function isStr(str) {
  154. return typeof str === 'string';
  155. }
  156. function isObject(obj) {
  157. return obj !== null && (0, _typeof2.default)(obj) === 'object';
  158. }
  159. function isPlainObject(obj) {
  160. return _toString.call(obj) === '[object Object]';
  161. }
  162. function hasOwn(obj, key) {
  163. return hasOwnProperty.call(obj, key);
  164. }
  165. function noop() {}
  166. /**
  167. * Create a cached version of a pure function.
  168. */
  169. function cached(fn) {
  170. var cache = Object.create(null);
  171. return function cachedFn(str) {
  172. var hit = cache[str];
  173. return hit || (cache[str] = fn(str));
  174. };
  175. }
  176. /**
  177. * Camelize a hyphen-delimited string.
  178. */
  179. var camelizeRE = /-(\w)/g;
  180. var camelize = cached(function (str) {
  181. return str.replace(camelizeRE, function (_, c) {
  182. return c ? c.toUpperCase() : '';
  183. });
  184. });
  185. function sortObject(obj) {
  186. var sortObj = {};
  187. if (isPlainObject(obj)) {
  188. Object.keys(obj).sort().forEach(function (key) {
  189. sortObj[key] = obj[key];
  190. });
  191. }
  192. return !Object.keys(sortObj) ? obj : sortObj;
  193. }
  194. var HOOKS = ['invoke', 'success', 'fail', 'complete', 'returnValue'];
  195. var globalInterceptors = {};
  196. var scopedInterceptors = {};
  197. function mergeHook(parentVal, childVal) {
  198. var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal;
  199. return res ? dedupeHooks(res) : res;
  200. }
  201. function dedupeHooks(hooks) {
  202. var res = [];
  203. for (var i = 0; i < hooks.length; i++) {
  204. if (res.indexOf(hooks[i]) === -1) {
  205. res.push(hooks[i]);
  206. }
  207. }
  208. return res;
  209. }
  210. function removeHook(hooks, hook) {
  211. var index = hooks.indexOf(hook);
  212. if (index !== -1) {
  213. hooks.splice(index, 1);
  214. }
  215. }
  216. function mergeInterceptorHook(interceptor, option) {
  217. Object.keys(option).forEach(function (hook) {
  218. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  219. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  220. }
  221. });
  222. }
  223. function removeInterceptorHook(interceptor, option) {
  224. if (!interceptor || !option) {
  225. return;
  226. }
  227. Object.keys(option).forEach(function (hook) {
  228. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  229. removeHook(interceptor[hook], option[hook]);
  230. }
  231. });
  232. }
  233. function addInterceptor(method, option) {
  234. if (typeof method === 'string' && isPlainObject(option)) {
  235. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  236. } else if (isPlainObject(method)) {
  237. mergeInterceptorHook(globalInterceptors, method);
  238. }
  239. }
  240. function removeInterceptor(method, option) {
  241. if (typeof method === 'string') {
  242. if (isPlainObject(option)) {
  243. removeInterceptorHook(scopedInterceptors[method], option);
  244. } else {
  245. delete scopedInterceptors[method];
  246. }
  247. } else if (isPlainObject(method)) {
  248. removeInterceptorHook(globalInterceptors, method);
  249. }
  250. }
  251. function wrapperHook(hook, params) {
  252. return function (data) {
  253. return hook(data, params) || data;
  254. };
  255. }
  256. function isPromise(obj) {
  257. return !!obj && ((0, _typeof2.default)(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  258. }
  259. function queue(hooks, data, params) {
  260. var promise = false;
  261. for (var i = 0; i < hooks.length; i++) {
  262. var hook = hooks[i];
  263. if (promise) {
  264. promise = Promise.resolve(wrapperHook(hook, params));
  265. } else {
  266. var res = hook(data, params);
  267. if (isPromise(res)) {
  268. promise = Promise.resolve(res);
  269. }
  270. if (res === false) {
  271. return {
  272. then: function then() {}
  273. };
  274. }
  275. }
  276. }
  277. return promise || {
  278. then: function then(callback) {
  279. return callback(data);
  280. }
  281. };
  282. }
  283. function wrapperOptions(interceptor) {
  284. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  285. ['success', 'fail', 'complete'].forEach(function (name) {
  286. if (Array.isArray(interceptor[name])) {
  287. var oldCallback = options[name];
  288. options[name] = function callbackInterceptor(res) {
  289. queue(interceptor[name], res, options).then(function (res) {
  290. /* eslint-disable no-mixed-operators */
  291. return isFn(oldCallback) && oldCallback(res) || res;
  292. });
  293. };
  294. }
  295. });
  296. return options;
  297. }
  298. function wrapperReturnValue(method, returnValue) {
  299. var returnValueHooks = [];
  300. if (Array.isArray(globalInterceptors.returnValue)) {
  301. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(globalInterceptors.returnValue));
  302. }
  303. var interceptor = scopedInterceptors[method];
  304. if (interceptor && Array.isArray(interceptor.returnValue)) {
  305. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(interceptor.returnValue));
  306. }
  307. returnValueHooks.forEach(function (hook) {
  308. returnValue = hook(returnValue) || returnValue;
  309. });
  310. return returnValue;
  311. }
  312. function getApiInterceptorHooks(method) {
  313. var interceptor = Object.create(null);
  314. Object.keys(globalInterceptors).forEach(function (hook) {
  315. if (hook !== 'returnValue') {
  316. interceptor[hook] = globalInterceptors[hook].slice();
  317. }
  318. });
  319. var scopedInterceptor = scopedInterceptors[method];
  320. if (scopedInterceptor) {
  321. Object.keys(scopedInterceptor).forEach(function (hook) {
  322. if (hook !== 'returnValue') {
  323. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  324. }
  325. });
  326. }
  327. return interceptor;
  328. }
  329. function invokeApi(method, api, options) {
  330. for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
  331. params[_key - 3] = arguments[_key];
  332. }
  333. var interceptor = getApiInterceptorHooks(method);
  334. if (interceptor && Object.keys(interceptor).length) {
  335. if (Array.isArray(interceptor.invoke)) {
  336. var res = queue(interceptor.invoke, options);
  337. return res.then(function (options) {
  338. // 重新访问 getApiInterceptorHooks, 允许 invoke 中再次调用 addInterceptor,removeInterceptor
  339. return api.apply(void 0, [wrapperOptions(getApiInterceptorHooks(method), options)].concat(params));
  340. });
  341. } else {
  342. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  343. }
  344. }
  345. return api.apply(void 0, [options].concat(params));
  346. }
  347. var promiseInterceptor = {
  348. returnValue: function returnValue(res) {
  349. if (!isPromise(res)) {
  350. return res;
  351. }
  352. return new Promise(function (resolve, reject) {
  353. res.then(function (res) {
  354. if (!res) {
  355. resolve(res);
  356. return;
  357. }
  358. if (res[0]) {
  359. reject(res[0]);
  360. } else {
  361. resolve(res[1]);
  362. }
  363. });
  364. });
  365. }
  366. };
  367. var SYNC_API_RE = /^\$|__f__|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|rpx2px|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting|initUTS|requireUTS|registerUTS/;
  368. var CONTEXT_API_RE = /^create|Manager$/;
  369. // Context例外情况
  370. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  371. // 同步例外情况
  372. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  373. var CALLBACK_API_RE = /^on|^off/;
  374. function isContextApi(name) {
  375. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  376. }
  377. function isSyncApi(name) {
  378. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  379. }
  380. function isCallbackApi(name) {
  381. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  382. }
  383. function handlePromise(promise) {
  384. return promise.then(function (data) {
  385. return [null, data];
  386. }).catch(function (err) {
  387. return [err];
  388. });
  389. }
  390. function shouldPromise(name) {
  391. if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) {
  392. return false;
  393. }
  394. return true;
  395. }
  396. /* eslint-disable no-extend-native */
  397. if (!Promise.prototype.finally) {
  398. Promise.prototype.finally = function (callback) {
  399. var promise = this.constructor;
  400. return this.then(function (value) {
  401. return promise.resolve(callback()).then(function () {
  402. return value;
  403. });
  404. }, function (reason) {
  405. return promise.resolve(callback()).then(function () {
  406. throw reason;
  407. });
  408. });
  409. };
  410. }
  411. function promisify(name, api) {
  412. if (!shouldPromise(name) || !isFn(api)) {
  413. return api;
  414. }
  415. return function promiseApi() {
  416. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  417. for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  418. params[_key2 - 1] = arguments[_key2];
  419. }
  420. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  421. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, Object.assign({}, options)].concat(params)));
  422. }
  423. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  424. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  425. success: resolve,
  426. fail: reject
  427. })].concat(params));
  428. })));
  429. };
  430. }
  431. var EPS = 1e-4;
  432. var BASE_DEVICE_WIDTH = 750;
  433. var isIOS = false;
  434. var deviceWidth = 0;
  435. var deviceDPR = 0;
  436. function checkDeviceWidth() {
  437. var windowWidth, pixelRatio, platform;
  438. {
  439. var windowInfo = typeof wx.getWindowInfo === 'function' && wx.getWindowInfo() ? wx.getWindowInfo() : wx.getSystemInfoSync();
  440. var deviceInfo = typeof wx.getDeviceInfo === 'function' && wx.getDeviceInfo() ? wx.getDeviceInfo() : wx.getSystemInfoSync();
  441. windowWidth = windowInfo.windowWidth;
  442. pixelRatio = windowInfo.pixelRatio;
  443. platform = deviceInfo.platform;
  444. }
  445. deviceWidth = windowWidth;
  446. deviceDPR = pixelRatio;
  447. isIOS = platform === 'ios';
  448. }
  449. function upx2px(number, newDeviceWidth) {
  450. if (deviceWidth === 0) {
  451. checkDeviceWidth();
  452. }
  453. number = Number(number);
  454. if (number === 0) {
  455. return 0;
  456. }
  457. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  458. if (result < 0) {
  459. result = -result;
  460. }
  461. result = Math.floor(result + EPS);
  462. if (result === 0) {
  463. if (deviceDPR === 1 || !isIOS) {
  464. result = 1;
  465. } else {
  466. result = 0.5;
  467. }
  468. }
  469. return number < 0 ? -result : result;
  470. }
  471. var LOCALE_ZH_HANS = 'zh-Hans';
  472. var LOCALE_ZH_HANT = 'zh-Hant';
  473. var LOCALE_EN = 'en';
  474. var LOCALE_FR = 'fr';
  475. var LOCALE_ES = 'es';
  476. var messages = {};
  477. function getLocaleLanguage() {
  478. var localeLanguage = '';
  479. {
  480. var appBaseInfo = typeof wx.getAppBaseInfo === 'function' && wx.getAppBaseInfo() ? wx.getAppBaseInfo() : wx.getSystemInfoSync();
  481. var language = appBaseInfo && appBaseInfo.language ? appBaseInfo.language : LOCALE_EN;
  482. localeLanguage = normalizeLocale(language) || LOCALE_EN;
  483. }
  484. return localeLanguage;
  485. }
  486. var locale;
  487. {
  488. locale = getLocaleLanguage();
  489. }
  490. function initI18nMessages() {
  491. if (!isEnableLocale()) {
  492. return;
  493. }
  494. var localeKeys = Object.keys(__uniConfig.locales);
  495. if (localeKeys.length) {
  496. localeKeys.forEach(function (locale) {
  497. var curMessages = messages[locale];
  498. var userMessages = __uniConfig.locales[locale];
  499. if (curMessages) {
  500. Object.assign(curMessages, userMessages);
  501. } else {
  502. messages[locale] = userMessages;
  503. }
  504. });
  505. }
  506. }
  507. initI18nMessages();
  508. var i18n = (0, _uniI18n.initVueI18n)(locale, {});
  509. var t = i18n.t;
  510. var i18nMixin = i18n.mixin = {
  511. beforeCreate: function beforeCreate() {
  512. var _this = this;
  513. var unwatch = i18n.i18n.watchLocale(function () {
  514. _this.$forceUpdate();
  515. });
  516. this.$once('hook:beforeDestroy', function () {
  517. unwatch();
  518. });
  519. },
  520. methods: {
  521. $$t: function $$t(key, values) {
  522. return t(key, values);
  523. }
  524. }
  525. };
  526. var setLocale = i18n.setLocale;
  527. var getLocale = i18n.getLocale;
  528. function initAppLocale(Vue, appVm, locale) {
  529. var state = Vue.observable({
  530. locale: locale || i18n.getLocale()
  531. });
  532. var localeWatchers = [];
  533. appVm.$watchLocale = function (fn) {
  534. localeWatchers.push(fn);
  535. };
  536. Object.defineProperty(appVm, '$locale', {
  537. get: function get() {
  538. return state.locale;
  539. },
  540. set: function set(v) {
  541. state.locale = v;
  542. localeWatchers.forEach(function (watch) {
  543. return watch(v);
  544. });
  545. }
  546. });
  547. }
  548. function isEnableLocale() {
  549. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  550. }
  551. function include(str, parts) {
  552. return !!parts.find(function (part) {
  553. return str.indexOf(part) !== -1;
  554. });
  555. }
  556. function startsWith(str, parts) {
  557. return parts.find(function (part) {
  558. return str.indexOf(part) === 0;
  559. });
  560. }
  561. function normalizeLocale(locale, messages) {
  562. if (!locale) {
  563. return;
  564. }
  565. locale = locale.trim().replace(/_/g, '-');
  566. if (messages && messages[locale]) {
  567. return locale;
  568. }
  569. locale = locale.toLowerCase();
  570. if (locale === 'chinese') {
  571. // 支付宝
  572. return LOCALE_ZH_HANS;
  573. }
  574. if (locale.indexOf('zh') === 0) {
  575. if (locale.indexOf('-hans') > -1) {
  576. return LOCALE_ZH_HANS;
  577. }
  578. if (locale.indexOf('-hant') > -1) {
  579. return LOCALE_ZH_HANT;
  580. }
  581. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  582. return LOCALE_ZH_HANT;
  583. }
  584. return LOCALE_ZH_HANS;
  585. }
  586. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  587. if (lang) {
  588. return lang;
  589. }
  590. }
  591. // export function initI18n() {
  592. // const localeKeys = Object.keys(__uniConfig.locales || {})
  593. // if (localeKeys.length) {
  594. // localeKeys.forEach((locale) =>
  595. // i18n.add(locale, __uniConfig.locales[locale])
  596. // )
  597. // }
  598. // }
  599. function getLocale$1() {
  600. // 优先使用 $locale
  601. if (isFn(getApp)) {
  602. var app = getApp({
  603. allowDefault: true
  604. });
  605. if (app && app.$vm) {
  606. return app.$vm.$locale;
  607. }
  608. }
  609. return getLocaleLanguage();
  610. }
  611. function setLocale$1(locale) {
  612. var app = isFn(getApp) ? getApp() : false;
  613. if (!app) {
  614. return false;
  615. }
  616. var oldLocale = app.$vm.$locale;
  617. if (oldLocale !== locale) {
  618. app.$vm.$locale = locale;
  619. onLocaleChangeCallbacks.forEach(function (fn) {
  620. return fn({
  621. locale: locale
  622. });
  623. });
  624. return true;
  625. }
  626. return false;
  627. }
  628. var onLocaleChangeCallbacks = [];
  629. function onLocaleChange(fn) {
  630. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  631. onLocaleChangeCallbacks.push(fn);
  632. }
  633. }
  634. if (typeof global !== 'undefined') {
  635. global.getLocale = getLocale$1;
  636. }
  637. var interceptors = {
  638. promiseInterceptor: promiseInterceptor
  639. };
  640. var baseApi = /*#__PURE__*/Object.freeze({
  641. __proto__: null,
  642. upx2px: upx2px,
  643. rpx2px: upx2px,
  644. getLocale: getLocale$1,
  645. setLocale: setLocale$1,
  646. onLocaleChange: onLocaleChange,
  647. addInterceptor: addInterceptor,
  648. removeInterceptor: removeInterceptor,
  649. interceptors: interceptors
  650. });
  651. function findExistsPageIndex(url) {
  652. var pages = getCurrentPages();
  653. var len = pages.length;
  654. while (len--) {
  655. var page = pages[len];
  656. if (page.$page && page.$page.fullPath === url) {
  657. return len;
  658. }
  659. }
  660. return -1;
  661. }
  662. var redirectTo = {
  663. name: function name(fromArgs) {
  664. if (fromArgs.exists === 'back' && fromArgs.delta) {
  665. return 'navigateBack';
  666. }
  667. return 'redirectTo';
  668. },
  669. args: function args(fromArgs) {
  670. if (fromArgs.exists === 'back' && fromArgs.url) {
  671. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  672. if (existsPageIndex !== -1) {
  673. var delta = getCurrentPages().length - 1 - existsPageIndex;
  674. if (delta > 0) {
  675. fromArgs.delta = delta;
  676. }
  677. }
  678. }
  679. }
  680. };
  681. var previewImage = {
  682. args: function args(fromArgs) {
  683. var currentIndex = parseInt(fromArgs.current);
  684. if (isNaN(currentIndex)) {
  685. return;
  686. }
  687. var urls = fromArgs.urls;
  688. if (!Array.isArray(urls)) {
  689. return;
  690. }
  691. var len = urls.length;
  692. if (!len) {
  693. return;
  694. }
  695. if (currentIndex < 0) {
  696. currentIndex = 0;
  697. } else if (currentIndex >= len) {
  698. currentIndex = len - 1;
  699. }
  700. if (currentIndex > 0) {
  701. fromArgs.current = urls[currentIndex];
  702. fromArgs.urls = urls.filter(function (item, index) {
  703. return index < currentIndex ? item !== urls[currentIndex] : true;
  704. });
  705. } else {
  706. fromArgs.current = urls[0];
  707. }
  708. return {
  709. indicator: false,
  710. loop: false
  711. };
  712. }
  713. };
  714. var UUID_KEY = '__DC_STAT_UUID';
  715. var deviceId;
  716. function useDeviceId(result) {
  717. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  718. if (!deviceId) {
  719. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  720. wx.setStorage({
  721. key: UUID_KEY,
  722. data: deviceId
  723. });
  724. }
  725. result.deviceId = deviceId;
  726. }
  727. function addSafeAreaInsets(result) {
  728. if (result.safeArea) {
  729. var safeArea = result.safeArea;
  730. result.safeAreaInsets = {
  731. top: safeArea.top,
  732. left: safeArea.left,
  733. right: result.windowWidth - safeArea.right,
  734. bottom: result.screenHeight - safeArea.bottom
  735. };
  736. }
  737. }
  738. function getOSInfo(system, platform) {
  739. var osName = '';
  740. var osVersion = '';
  741. if (platform && "mp-weixin" === 'mp-baidu') {
  742. osName = platform;
  743. osVersion = system;
  744. } else {
  745. osName = system.split(' ')[0] || platform;
  746. osVersion = system.split(' ')[1] || '';
  747. }
  748. osName = osName.toLocaleLowerCase();
  749. switch (osName) {
  750. case 'harmony': // alipay
  751. case 'ohos': // weixin
  752. case 'openharmony':
  753. // feishu
  754. osName = 'harmonyos';
  755. break;
  756. case 'iphone os':
  757. // alipay
  758. osName = 'ios';
  759. break;
  760. case 'mac': // weixin qq
  761. case 'darwin':
  762. // feishu
  763. osName = 'macos';
  764. break;
  765. case 'windows_nt':
  766. // feishu
  767. osName = 'windows';
  768. break;
  769. }
  770. return {
  771. osName: osName,
  772. osVersion: osVersion
  773. };
  774. }
  775. function populateParameters(result) {
  776. var _result$brand = result.brand,
  777. brand = _result$brand === void 0 ? '' : _result$brand,
  778. _result$model = result.model,
  779. model = _result$model === void 0 ? '' : _result$model,
  780. _result$system = result.system,
  781. system = _result$system === void 0 ? '' : _result$system,
  782. _result$language = result.language,
  783. language = _result$language === void 0 ? '' : _result$language,
  784. theme = result.theme,
  785. version = result.version,
  786. platform = result.platform,
  787. fontSizeSetting = result.fontSizeSetting,
  788. SDKVersion = result.SDKVersion,
  789. pixelRatio = result.pixelRatio,
  790. deviceOrientation = result.deviceOrientation;
  791. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  792. var extraParam = {};
  793. // osName osVersion
  794. var _getOSInfo = getOSInfo(system, platform),
  795. osName = _getOSInfo.osName,
  796. osVersion = _getOSInfo.osVersion;
  797. var hostVersion = version;
  798. // deviceType
  799. var deviceType = getGetDeviceType(result, model);
  800. // deviceModel
  801. var deviceBrand = getDeviceBrand(brand);
  802. // hostName
  803. var _hostName = getHostName(result);
  804. // deviceOrientation
  805. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  806. // devicePixelRatio
  807. var _devicePixelRatio = pixelRatio;
  808. // SDKVersion
  809. var _SDKVersion = SDKVersion;
  810. // hostLanguage
  811. var hostLanguage = (language || '').replace(/_/g, '-');
  812. // wx.getAccountInfoSync
  813. var parameters = {
  814. appId: "__UNI__75B6F39",
  815. appName: "dogProject",
  816. appVersion: "1.0.0",
  817. appVersionCode: "100",
  818. appLanguage: getAppLanguage(hostLanguage),
  819. uniCompileVersion: "4.76",
  820. uniCompilerVersion: "4.76",
  821. uniRuntimeVersion: "4.76",
  822. uniPlatform: undefined || "mp-weixin",
  823. deviceBrand: deviceBrand,
  824. deviceModel: model,
  825. deviceType: deviceType,
  826. devicePixelRatio: _devicePixelRatio,
  827. deviceOrientation: _deviceOrientation,
  828. osName: osName.toLocaleLowerCase(),
  829. osVersion: osVersion,
  830. hostTheme: theme,
  831. hostVersion: hostVersion,
  832. hostLanguage: hostLanguage,
  833. hostName: _hostName,
  834. hostSDKVersion: _SDKVersion,
  835. hostFontSizeSetting: fontSizeSetting,
  836. windowTop: 0,
  837. windowBottom: 0,
  838. // TODO
  839. osLanguage: undefined,
  840. osTheme: undefined,
  841. ua: undefined,
  842. hostPackageName: undefined,
  843. browserName: undefined,
  844. browserVersion: undefined,
  845. isUniAppX: false
  846. };
  847. Object.assign(result, parameters, extraParam);
  848. }
  849. function getGetDeviceType(result, model) {
  850. var deviceType = result.deviceType || 'phone';
  851. {
  852. var deviceTypeMaps = {
  853. ipad: 'pad',
  854. windows: 'pc',
  855. mac: 'pc'
  856. };
  857. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  858. var _model = model.toLocaleLowerCase();
  859. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  860. var _m = deviceTypeMapsKeys[index];
  861. if (_model.indexOf(_m) !== -1) {
  862. deviceType = deviceTypeMaps[_m];
  863. break;
  864. }
  865. }
  866. }
  867. return deviceType;
  868. }
  869. function getDeviceBrand(brand) {
  870. var deviceBrand = brand;
  871. if (deviceBrand) {
  872. deviceBrand = brand.toLocaleLowerCase();
  873. }
  874. return deviceBrand;
  875. }
  876. function getAppLanguage(defaultLanguage) {
  877. return getLocale$1 ? getLocale$1() : defaultLanguage;
  878. }
  879. function getHostName(result) {
  880. var _platform = 'WeChat';
  881. var _hostName = result.hostName || _platform; // mp-jd
  882. {
  883. if (result.environment) {
  884. _hostName = result.environment;
  885. } else if (result.host && result.host.env) {
  886. _hostName = result.host.env;
  887. }
  888. }
  889. return _hostName;
  890. }
  891. var getSystemInfo = {
  892. returnValue: function returnValue(result) {
  893. useDeviceId(result);
  894. addSafeAreaInsets(result);
  895. populateParameters(result);
  896. }
  897. };
  898. var showActionSheet = {
  899. args: function args(fromArgs) {
  900. if ((0, _typeof2.default)(fromArgs) === 'object') {
  901. fromArgs.alertText = fromArgs.title;
  902. }
  903. }
  904. };
  905. var getAppBaseInfo = {
  906. returnValue: function returnValue(result) {
  907. var _result = result,
  908. version = _result.version,
  909. language = _result.language,
  910. SDKVersion = _result.SDKVersion,
  911. theme = _result.theme;
  912. var _hostName = getHostName(result);
  913. var hostLanguage = (language || '').replace('_', '-');
  914. result = sortObject(Object.assign(result, {
  915. appId: "__UNI__75B6F39",
  916. appName: "dogProject",
  917. appVersion: "1.0.0",
  918. appVersionCode: "100",
  919. appLanguage: getAppLanguage(hostLanguage),
  920. hostVersion: version,
  921. hostLanguage: hostLanguage,
  922. hostName: _hostName,
  923. hostSDKVersion: SDKVersion,
  924. hostTheme: theme,
  925. isUniAppX: false,
  926. uniPlatform: undefined || "mp-weixin",
  927. uniCompileVersion: "4.76",
  928. uniCompilerVersion: "4.76",
  929. uniRuntimeVersion: "4.76"
  930. }));
  931. }
  932. };
  933. var getDeviceInfo = {
  934. returnValue: function returnValue(result) {
  935. var _result2 = result,
  936. brand = _result2.brand,
  937. model = _result2.model,
  938. _result2$system = _result2.system,
  939. system = _result2$system === void 0 ? '' : _result2$system,
  940. _result2$platform = _result2.platform,
  941. platform = _result2$platform === void 0 ? '' : _result2$platform;
  942. var deviceType = getGetDeviceType(result, model);
  943. var deviceBrand = getDeviceBrand(brand);
  944. useDeviceId(result);
  945. var _getOSInfo2 = getOSInfo(system, platform),
  946. osName = _getOSInfo2.osName,
  947. osVersion = _getOSInfo2.osVersion;
  948. result = sortObject(Object.assign(result, {
  949. deviceType: deviceType,
  950. deviceBrand: deviceBrand,
  951. deviceModel: model,
  952. osName: osName,
  953. osVersion: osVersion
  954. }));
  955. }
  956. };
  957. var getWindowInfo = {
  958. returnValue: function returnValue(result) {
  959. addSafeAreaInsets(result);
  960. result = sortObject(Object.assign(result, {
  961. windowTop: 0,
  962. windowBottom: 0
  963. }));
  964. }
  965. };
  966. var getAppAuthorizeSetting = {
  967. returnValue: function returnValue(result) {
  968. var locationReducedAccuracy = result.locationReducedAccuracy;
  969. result.locationAccuracy = 'unsupported';
  970. if (locationReducedAccuracy === true) {
  971. result.locationAccuracy = 'reduced';
  972. } else if (locationReducedAccuracy === false) {
  973. result.locationAccuracy = 'full';
  974. }
  975. }
  976. };
  977. // import navigateTo from 'uni-helpers/navigate-to'
  978. var compressImage = {
  979. args: function args(fromArgs) {
  980. // https://developers.weixin.qq.com/community/develop/doc/000c08940c865011298e0a43256800?highLine=compressHeight
  981. if (fromArgs.compressedHeight && !fromArgs.compressHeight) {
  982. fromArgs.compressHeight = fromArgs.compressedHeight;
  983. }
  984. if (fromArgs.compressedWidth && !fromArgs.compressWidth) {
  985. fromArgs.compressWidth = fromArgs.compressedWidth;
  986. }
  987. }
  988. };
  989. var protocols = {
  990. redirectTo: redirectTo,
  991. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  992. previewImage: previewImage,
  993. getSystemInfo: getSystemInfo,
  994. getSystemInfoSync: getSystemInfo,
  995. showActionSheet: showActionSheet,
  996. getAppBaseInfo: getAppBaseInfo,
  997. getDeviceInfo: getDeviceInfo,
  998. getWindowInfo: getWindowInfo,
  999. getAppAuthorizeSetting: getAppAuthorizeSetting,
  1000. compressImage: compressImage
  1001. };
  1002. var todos = ['vibrate', 'preloadPage', 'unPreloadPage', 'loadSubPackage'];
  1003. var canIUses = [];
  1004. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  1005. function processCallback(methodName, method, returnValue) {
  1006. return function (res) {
  1007. return method(processReturnValue(methodName, res, returnValue));
  1008. };
  1009. }
  1010. function processArgs(methodName, fromArgs) {
  1011. var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  1012. var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  1013. var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  1014. if (isPlainObject(fromArgs)) {
  1015. // 一般 api 的参数解析
  1016. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  1017. if (isFn(argsOption)) {
  1018. argsOption = argsOption(fromArgs, toArgs) || {};
  1019. }
  1020. for (var key in fromArgs) {
  1021. if (hasOwn(argsOption, key)) {
  1022. var keyOption = argsOption[key];
  1023. if (isFn(keyOption)) {
  1024. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  1025. }
  1026. if (!keyOption) {
  1027. // 不支持的参数
  1028. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  1029. } else if (isStr(keyOption)) {
  1030. // 重写参数 key
  1031. toArgs[keyOption] = fromArgs[key];
  1032. } else if (isPlainObject(keyOption)) {
  1033. // {name:newName,value:value}可重新指定参数 key:value
  1034. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  1035. }
  1036. } else if (CALLBACKS.indexOf(key) !== -1) {
  1037. if (isFn(fromArgs[key])) {
  1038. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  1039. }
  1040. } else {
  1041. if (!keepFromArgs) {
  1042. toArgs[key] = fromArgs[key];
  1043. }
  1044. }
  1045. }
  1046. return toArgs;
  1047. } else if (isFn(fromArgs)) {
  1048. fromArgs = processCallback(methodName, fromArgs, returnValue);
  1049. }
  1050. return fromArgs;
  1051. }
  1052. function processReturnValue(methodName, res, returnValue) {
  1053. var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  1054. if (isFn(protocols.returnValue)) {
  1055. // 处理通用 returnValue
  1056. res = protocols.returnValue(methodName, res);
  1057. }
  1058. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  1059. }
  1060. function wrapper(methodName, method) {
  1061. if (hasOwn(protocols, methodName)) {
  1062. var protocol = protocols[methodName];
  1063. if (!protocol) {
  1064. // 暂不支持的 api
  1065. return function () {
  1066. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  1067. };
  1068. }
  1069. return function (arg1, arg2) {
  1070. // 目前 api 最多两个参数
  1071. var options = protocol;
  1072. if (isFn(protocol)) {
  1073. options = protocol(arg1);
  1074. }
  1075. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  1076. var args = [arg1];
  1077. if (typeof arg2 !== 'undefined') {
  1078. args.push(arg2);
  1079. }
  1080. if (isFn(options.name)) {
  1081. methodName = options.name(arg1);
  1082. } else if (isStr(options.name)) {
  1083. methodName = options.name;
  1084. }
  1085. var returnValue = wx[methodName].apply(wx, args);
  1086. if (isSyncApi(methodName)) {
  1087. // 同步 api
  1088. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  1089. }
  1090. return returnValue;
  1091. };
  1092. }
  1093. return method;
  1094. }
  1095. var todoApis = Object.create(null);
  1096. var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
  1097. function createTodoApi(name) {
  1098. return function todoApi(_ref) {
  1099. var fail = _ref.fail,
  1100. complete = _ref.complete;
  1101. var res = {
  1102. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
  1103. };
  1104. isFn(fail) && fail(res);
  1105. isFn(complete) && complete(res);
  1106. };
  1107. }
  1108. TODOS.forEach(function (name) {
  1109. todoApis[name] = createTodoApi(name);
  1110. });
  1111. var providers = {
  1112. oauth: ['weixin'],
  1113. share: ['weixin'],
  1114. payment: ['wxpay'],
  1115. push: ['weixin']
  1116. };
  1117. function getProvider(_ref2) {
  1118. var service = _ref2.service,
  1119. success = _ref2.success,
  1120. fail = _ref2.fail,
  1121. complete = _ref2.complete;
  1122. var res = false;
  1123. if (providers[service]) {
  1124. res = {
  1125. errMsg: 'getProvider:ok',
  1126. service: service,
  1127. provider: providers[service]
  1128. };
  1129. isFn(success) && success(res);
  1130. } else {
  1131. res = {
  1132. errMsg: 'getProvider:fail service not found'
  1133. };
  1134. isFn(fail) && fail(res);
  1135. }
  1136. isFn(complete) && complete(res);
  1137. }
  1138. var extraApi = /*#__PURE__*/Object.freeze({
  1139. __proto__: null,
  1140. getProvider: getProvider
  1141. });
  1142. var getEmitter = function () {
  1143. var Emitter;
  1144. return function getUniEmitter() {
  1145. if (!Emitter) {
  1146. Emitter = new _vue.default();
  1147. }
  1148. return Emitter;
  1149. };
  1150. }();
  1151. function apply(ctx, method, args) {
  1152. return ctx[method].apply(ctx, args);
  1153. }
  1154. function $on() {
  1155. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  1156. }
  1157. function $off() {
  1158. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  1159. }
  1160. function $once() {
  1161. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  1162. }
  1163. function $emit() {
  1164. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  1165. }
  1166. var eventApi = /*#__PURE__*/Object.freeze({
  1167. __proto__: null,
  1168. $on: $on,
  1169. $off: $off,
  1170. $once: $once,
  1171. $emit: $emit
  1172. });
  1173. /**
  1174. * 框架内 try-catch
  1175. */
  1176. /**
  1177. * 开发者 try-catch
  1178. */
  1179. function tryCatch(fn) {
  1180. return function () {
  1181. try {
  1182. return fn.apply(fn, arguments);
  1183. } catch (e) {
  1184. // TODO
  1185. console.error(e);
  1186. }
  1187. };
  1188. }
  1189. function getApiCallbacks(params) {
  1190. var apiCallbacks = {};
  1191. for (var name in params) {
  1192. var param = params[name];
  1193. if (isFn(param)) {
  1194. apiCallbacks[name] = tryCatch(param);
  1195. delete params[name];
  1196. }
  1197. }
  1198. return apiCallbacks;
  1199. }
  1200. var cid;
  1201. var cidErrMsg;
  1202. var enabled;
  1203. function normalizePushMessage(message) {
  1204. try {
  1205. return JSON.parse(message);
  1206. } catch (e) {}
  1207. return message;
  1208. }
  1209. function invokePushCallback(args) {
  1210. if (args.type === 'enabled') {
  1211. enabled = true;
  1212. } else if (args.type === 'clientId') {
  1213. cid = args.cid;
  1214. cidErrMsg = args.errMsg;
  1215. invokeGetPushCidCallbacks(cid, args.errMsg);
  1216. } else if (args.type === 'pushMsg') {
  1217. var message = {
  1218. type: 'receive',
  1219. data: normalizePushMessage(args.message)
  1220. };
  1221. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  1222. var callback = onPushMessageCallbacks[i];
  1223. callback(message);
  1224. // 该消息已被阻止
  1225. if (message.stopped) {
  1226. break;
  1227. }
  1228. }
  1229. } else if (args.type === 'click') {
  1230. onPushMessageCallbacks.forEach(function (callback) {
  1231. callback({
  1232. type: 'click',
  1233. data: normalizePushMessage(args.message)
  1234. });
  1235. });
  1236. }
  1237. }
  1238. var getPushCidCallbacks = [];
  1239. function invokeGetPushCidCallbacks(cid, errMsg) {
  1240. getPushCidCallbacks.forEach(function (callback) {
  1241. callback(cid, errMsg);
  1242. });
  1243. getPushCidCallbacks.length = 0;
  1244. }
  1245. function getPushClientId(args) {
  1246. if (!isPlainObject(args)) {
  1247. args = {};
  1248. }
  1249. var _getApiCallbacks = getApiCallbacks(args),
  1250. success = _getApiCallbacks.success,
  1251. fail = _getApiCallbacks.fail,
  1252. complete = _getApiCallbacks.complete;
  1253. var hasSuccess = isFn(success);
  1254. var hasFail = isFn(fail);
  1255. var hasComplete = isFn(complete);
  1256. Promise.resolve().then(function () {
  1257. if (typeof enabled === 'undefined') {
  1258. enabled = false;
  1259. cid = '';
  1260. cidErrMsg = 'uniPush is not enabled';
  1261. }
  1262. getPushCidCallbacks.push(function (cid, errMsg) {
  1263. var res;
  1264. if (cid) {
  1265. res = {
  1266. errMsg: 'getPushClientId:ok',
  1267. cid: cid
  1268. };
  1269. hasSuccess && success(res);
  1270. } else {
  1271. res = {
  1272. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
  1273. };
  1274. hasFail && fail(res);
  1275. }
  1276. hasComplete && complete(res);
  1277. });
  1278. if (typeof cid !== 'undefined') {
  1279. invokeGetPushCidCallbacks(cid, cidErrMsg);
  1280. }
  1281. });
  1282. }
  1283. var onPushMessageCallbacks = [];
  1284. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  1285. var onPushMessage = function onPushMessage(fn) {
  1286. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  1287. onPushMessageCallbacks.push(fn);
  1288. }
  1289. };
  1290. var offPushMessage = function offPushMessage(fn) {
  1291. if (!fn) {
  1292. onPushMessageCallbacks.length = 0;
  1293. } else {
  1294. var index = onPushMessageCallbacks.indexOf(fn);
  1295. if (index > -1) {
  1296. onPushMessageCallbacks.splice(index, 1);
  1297. }
  1298. }
  1299. };
  1300. function __f__(type) {
  1301. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
  1302. args[_key3 - 1] = arguments[_key3];
  1303. }
  1304. console[type].apply(console, args);
  1305. }
  1306. var baseInfo = wx.getAppBaseInfo && wx.getAppBaseInfo();
  1307. if (!baseInfo) {
  1308. baseInfo = wx.getSystemInfoSync();
  1309. }
  1310. var host = baseInfo ? baseInfo.host : null;
  1311. var shareVideoMessage = host && host.env === 'SAAASDK' ? wx.miniapp.shareVideoMessage : wx.shareVideoMessage;
  1312. var api = /*#__PURE__*/Object.freeze({
  1313. __proto__: null,
  1314. shareVideoMessage: shareVideoMessage,
  1315. getPushClientId: getPushClientId,
  1316. onPushMessage: onPushMessage,
  1317. offPushMessage: offPushMessage,
  1318. invokePushCallback: invokePushCallback,
  1319. __f__: __f__
  1320. });
  1321. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1322. function findVmByVueId(vm, vuePid) {
  1323. var $children = vm.$children;
  1324. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1325. for (var i = $children.length - 1; i >= 0; i--) {
  1326. var childVm = $children[i];
  1327. if (childVm.$scope._$vueId === vuePid) {
  1328. return childVm;
  1329. }
  1330. }
  1331. // 反向递归查找
  1332. var parentVm;
  1333. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1334. parentVm = findVmByVueId($children[_i], vuePid);
  1335. if (parentVm) {
  1336. return parentVm;
  1337. }
  1338. }
  1339. }
  1340. function initBehavior(options) {
  1341. return Behavior(options);
  1342. }
  1343. function isPage() {
  1344. return !!this.route;
  1345. }
  1346. function initRelation(detail) {
  1347. this.triggerEvent('__l', detail);
  1348. }
  1349. function selectAllComponents(mpInstance, selector, $refs) {
  1350. var components = mpInstance.selectAllComponents(selector) || [];
  1351. components.forEach(function (component) {
  1352. var ref = component.dataset.ref;
  1353. $refs[ref] = component.$vm || toSkip(component);
  1354. {
  1355. if (component.dataset.vueGeneric === 'scoped') {
  1356. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1357. selectAllComponents(scopedComponent, selector, $refs);
  1358. });
  1359. }
  1360. }
  1361. });
  1362. }
  1363. function syncRefs(refs, newRefs) {
  1364. var oldKeys = (0, _construct2.default)(Set, (0, _toConsumableArray2.default)(Object.keys(refs)));
  1365. var newKeys = Object.keys(newRefs);
  1366. newKeys.forEach(function (key) {
  1367. var oldValue = refs[key];
  1368. var newValue = newRefs[key];
  1369. if (Array.isArray(oldValue) && Array.isArray(newValue) && oldValue.length === newValue.length && newValue.every(function (value) {
  1370. return oldValue.includes(value);
  1371. })) {
  1372. return;
  1373. }
  1374. refs[key] = newValue;
  1375. oldKeys.delete(key);
  1376. });
  1377. oldKeys.forEach(function (key) {
  1378. delete refs[key];
  1379. });
  1380. return refs;
  1381. }
  1382. function initRefs(vm) {
  1383. var mpInstance = vm.$scope;
  1384. var refs = {};
  1385. Object.defineProperty(vm, '$refs', {
  1386. get: function get() {
  1387. var $refs = {};
  1388. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1389. // TODO 暂不考虑 for 中的 scoped
  1390. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for') || [];
  1391. forComponents.forEach(function (component) {
  1392. var ref = component.dataset.ref;
  1393. if (!$refs[ref]) {
  1394. $refs[ref] = [];
  1395. }
  1396. $refs[ref].push(component.$vm || toSkip(component));
  1397. });
  1398. return syncRefs(refs, $refs);
  1399. }
  1400. });
  1401. }
  1402. function handleLink(event) {
  1403. var _ref3 = event.detail || event.value,
  1404. vuePid = _ref3.vuePid,
  1405. vueOptions = _ref3.vueOptions; // detail 是微信,value 是百度(dipatch)
  1406. var parentVm;
  1407. if (vuePid) {
  1408. parentVm = findVmByVueId(this.$vm, vuePid);
  1409. }
  1410. if (!parentVm) {
  1411. parentVm = this.$vm;
  1412. }
  1413. vueOptions.parent = parentVm;
  1414. }
  1415. function markMPComponent(component) {
  1416. // 在 Vue 中标记为小程序组件
  1417. var IS_MP = '__v_isMPComponent';
  1418. Object.defineProperty(component, IS_MP, {
  1419. configurable: true,
  1420. enumerable: false,
  1421. value: true
  1422. });
  1423. return component;
  1424. }
  1425. function toSkip(obj) {
  1426. var OB = '__ob__';
  1427. var SKIP = '__v_skip';
  1428. if (isObject(obj) && Object.isExtensible(obj)) {
  1429. // 避免被 @vue/composition-api 观测
  1430. Object.defineProperty(obj, OB, {
  1431. configurable: true,
  1432. enumerable: false,
  1433. value: (0, _defineProperty2.default)({}, SKIP, true)
  1434. });
  1435. }
  1436. return obj;
  1437. }
  1438. var WORKLET_RE = /_(.*)_worklet_factory_/;
  1439. function initWorkletMethods(mpMethods, vueMethods) {
  1440. if (vueMethods) {
  1441. Object.keys(vueMethods).forEach(function (name) {
  1442. var matches = name.match(WORKLET_RE);
  1443. if (matches) {
  1444. var workletName = matches[1];
  1445. mpMethods[name] = vueMethods[name];
  1446. mpMethods[workletName] = vueMethods[workletName];
  1447. }
  1448. });
  1449. }
  1450. }
  1451. var MPPage = Page;
  1452. var MPComponent = Component;
  1453. var customizeRE = /:/g;
  1454. var customize = cached(function (str) {
  1455. return camelize(str.replace(customizeRE, '-'));
  1456. });
  1457. function initTriggerEvent(mpInstance) {
  1458. var oldTriggerEvent = mpInstance.triggerEvent;
  1459. var newTriggerEvent = function newTriggerEvent(event) {
  1460. for (var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
  1461. args[_key4 - 1] = arguments[_key4];
  1462. }
  1463. // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
  1464. if (this.$vm || this.dataset && this.dataset.comType) {
  1465. event = customize(event);
  1466. } else {
  1467. // 针对微信/QQ小程序单独补充驼峰格式事件,以兼容历史项目
  1468. var newEvent = customize(event);
  1469. if (newEvent !== event) {
  1470. oldTriggerEvent.apply(this, [newEvent].concat(args));
  1471. }
  1472. }
  1473. return oldTriggerEvent.apply(this, [event].concat(args));
  1474. };
  1475. try {
  1476. // 京东小程序 triggerEvent 为只读
  1477. mpInstance.triggerEvent = newTriggerEvent;
  1478. } catch (error) {
  1479. mpInstance._triggerEvent = newTriggerEvent;
  1480. }
  1481. }
  1482. function initHook(name, options, isComponent) {
  1483. var oldHook = options[name];
  1484. options[name] = function () {
  1485. markMPComponent(this);
  1486. initTriggerEvent(this);
  1487. if (oldHook) {
  1488. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  1489. args[_key5] = arguments[_key5];
  1490. }
  1491. return oldHook.apply(this, args);
  1492. }
  1493. };
  1494. }
  1495. if (!MPPage.__$wrappered) {
  1496. MPPage.__$wrappered = true;
  1497. Page = function Page() {
  1498. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1499. initHook('onLoad', options);
  1500. return MPPage(options);
  1501. };
  1502. Page.after = MPPage.after;
  1503. Component = function Component() {
  1504. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1505. initHook('created', options);
  1506. return MPComponent(options);
  1507. };
  1508. }
  1509. var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
  1510. function initMocks(vm, mocks) {
  1511. var mpInstance = vm.$mp[vm.mpType];
  1512. mocks.forEach(function (mock) {
  1513. if (hasOwn(mpInstance, mock)) {
  1514. vm[mock] = mpInstance[mock];
  1515. }
  1516. });
  1517. }
  1518. function hasHook(hook, vueOptions) {
  1519. if (!vueOptions) {
  1520. return true;
  1521. }
  1522. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  1523. return true;
  1524. }
  1525. vueOptions = vueOptions.default || vueOptions;
  1526. if (isFn(vueOptions)) {
  1527. if (isFn(vueOptions.extendOptions[hook])) {
  1528. return true;
  1529. }
  1530. if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
  1531. return true;
  1532. }
  1533. return false;
  1534. }
  1535. if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
  1536. return true;
  1537. }
  1538. var mixins = vueOptions.mixins;
  1539. if (Array.isArray(mixins)) {
  1540. return !!mixins.find(function (mixin) {
  1541. return hasHook(hook, mixin);
  1542. });
  1543. }
  1544. }
  1545. function initHooks(mpOptions, hooks, vueOptions) {
  1546. hooks.forEach(function (hook) {
  1547. if (hasHook(hook, vueOptions)) {
  1548. mpOptions[hook] = function (args) {
  1549. return this.$vm && this.$vm.__call_hook(hook, args);
  1550. };
  1551. }
  1552. });
  1553. }
  1554. function initUnknownHooks(mpOptions, vueOptions) {
  1555. var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1556. findHooks(vueOptions).forEach(function (hook) {
  1557. return initHook$1(mpOptions, hook, excludes);
  1558. });
  1559. }
  1560. function findHooks(vueOptions) {
  1561. var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  1562. if (vueOptions) {
  1563. Object.keys(vueOptions).forEach(function (name) {
  1564. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  1565. hooks.push(name);
  1566. }
  1567. });
  1568. }
  1569. return hooks;
  1570. }
  1571. function initHook$1(mpOptions, hook, excludes) {
  1572. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  1573. mpOptions[hook] = function (args) {
  1574. return this.$vm && this.$vm.__call_hook(hook, args);
  1575. };
  1576. }
  1577. }
  1578. function initVueComponent(Vue, vueOptions) {
  1579. vueOptions = vueOptions.default || vueOptions;
  1580. var VueComponent;
  1581. if (isFn(vueOptions)) {
  1582. VueComponent = vueOptions;
  1583. } else {
  1584. VueComponent = Vue.extend(vueOptions);
  1585. }
  1586. vueOptions = VueComponent.options;
  1587. return [VueComponent, vueOptions];
  1588. }
  1589. function initSlots(vm, vueSlots) {
  1590. if (Array.isArray(vueSlots) && vueSlots.length) {
  1591. var $slots = Object.create(null);
  1592. vueSlots.forEach(function (slotName) {
  1593. $slots[slotName] = true;
  1594. });
  1595. vm.$scopedSlots = vm.$slots = $slots;
  1596. }
  1597. }
  1598. function initVueIds(vueIds, mpInstance) {
  1599. vueIds = (vueIds || '').split(',');
  1600. var len = vueIds.length;
  1601. if (len === 1) {
  1602. mpInstance._$vueId = vueIds[0];
  1603. } else if (len === 2) {
  1604. mpInstance._$vueId = vueIds[0];
  1605. mpInstance._$vuePid = vueIds[1];
  1606. }
  1607. }
  1608. function initData(vueOptions, context) {
  1609. var data = vueOptions.data || {};
  1610. var methods = vueOptions.methods || {};
  1611. if (typeof data === 'function') {
  1612. try {
  1613. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  1614. } catch (e) {
  1615. if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"dogProject","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  1616. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  1617. }
  1618. }
  1619. } else {
  1620. try {
  1621. // 对 data 格式化
  1622. data = JSON.parse(JSON.stringify(data));
  1623. } catch (e) {}
  1624. }
  1625. if (!isPlainObject(data)) {
  1626. data = {};
  1627. }
  1628. Object.keys(methods).forEach(function (methodName) {
  1629. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  1630. data[methodName] = methods[methodName];
  1631. }
  1632. });
  1633. return data;
  1634. }
  1635. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  1636. function createObserver(name) {
  1637. return function observer(newVal, oldVal) {
  1638. if (this.$vm) {
  1639. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  1640. }
  1641. };
  1642. }
  1643. function initBehaviors(vueOptions, initBehavior) {
  1644. var vueBehaviors = vueOptions.behaviors;
  1645. var vueExtends = vueOptions.extends;
  1646. var vueMixins = vueOptions.mixins;
  1647. var vueProps = vueOptions.props;
  1648. if (!vueProps) {
  1649. vueOptions.props = vueProps = [];
  1650. }
  1651. var behaviors = [];
  1652. if (Array.isArray(vueBehaviors)) {
  1653. vueBehaviors.forEach(function (behavior) {
  1654. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  1655. if (behavior === 'uni://form-field') {
  1656. if (Array.isArray(vueProps)) {
  1657. vueProps.push('name');
  1658. vueProps.push('value');
  1659. } else {
  1660. vueProps.name = {
  1661. type: String,
  1662. default: ''
  1663. };
  1664. vueProps.value = {
  1665. type: [String, Number, Boolean, Array, Object, Date],
  1666. default: ''
  1667. };
  1668. }
  1669. }
  1670. });
  1671. }
  1672. if (isPlainObject(vueExtends) && vueExtends.props) {
  1673. behaviors.push(initBehavior({
  1674. properties: initProperties(vueExtends.props, true)
  1675. }));
  1676. }
  1677. if (Array.isArray(vueMixins)) {
  1678. vueMixins.forEach(function (vueMixin) {
  1679. if (isPlainObject(vueMixin) && vueMixin.props) {
  1680. behaviors.push(initBehavior({
  1681. properties: initProperties(vueMixin.props, true)
  1682. }));
  1683. }
  1684. });
  1685. }
  1686. return behaviors;
  1687. }
  1688. function parsePropType(key, type, defaultValue, file) {
  1689. // [String]=>String
  1690. if (Array.isArray(type) && type.length === 1) {
  1691. return type[0];
  1692. }
  1693. return type;
  1694. }
  1695. function initProperties(props) {
  1696. var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  1697. var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  1698. var options = arguments.length > 3 ? arguments[3] : undefined;
  1699. var properties = {};
  1700. if (!isBehavior) {
  1701. properties.vueId = {
  1702. type: String,
  1703. value: ''
  1704. };
  1705. {
  1706. if (options.virtualHost) {
  1707. properties.virtualHostStyle = {
  1708. type: null,
  1709. value: ''
  1710. };
  1711. properties.virtualHostClass = {
  1712. type: null,
  1713. value: ''
  1714. };
  1715. }
  1716. }
  1717. // scopedSlotsCompiler auto
  1718. properties.scopedSlotsCompiler = {
  1719. type: String,
  1720. value: ''
  1721. };
  1722. properties.vueSlots = {
  1723. // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  1724. type: null,
  1725. value: [],
  1726. observer: function observer(newVal, oldVal) {
  1727. var $slots = Object.create(null);
  1728. newVal.forEach(function (slotName) {
  1729. $slots[slotName] = true;
  1730. });
  1731. this.setData({
  1732. $slots: $slots
  1733. });
  1734. }
  1735. };
  1736. }
  1737. if (Array.isArray(props)) {
  1738. // ['title']
  1739. props.forEach(function (key) {
  1740. properties[key] = {
  1741. type: null,
  1742. observer: createObserver(key)
  1743. };
  1744. });
  1745. } else if (isPlainObject(props)) {
  1746. // {title:{type:String,default:''},content:String}
  1747. Object.keys(props).forEach(function (key) {
  1748. var opts = props[key];
  1749. if (isPlainObject(opts)) {
  1750. // title:{type:String,default:''}
  1751. var value = opts.default;
  1752. if (isFn(value)) {
  1753. value = value();
  1754. }
  1755. opts.type = parsePropType(key, opts.type);
  1756. properties[key] = {
  1757. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  1758. value: value,
  1759. observer: createObserver(key)
  1760. };
  1761. } else {
  1762. // content:String
  1763. var type = parsePropType(key, opts);
  1764. properties[key] = {
  1765. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  1766. observer: createObserver(key)
  1767. };
  1768. }
  1769. });
  1770. }
  1771. return properties;
  1772. }
  1773. function wrapper$1(event) {
  1774. // TODO 又得兼容 mpvue 的 mp 对象
  1775. try {
  1776. event.mp = JSON.parse(JSON.stringify(event));
  1777. } catch (e) {}
  1778. event.stopPropagation = noop;
  1779. event.preventDefault = noop;
  1780. event.target = event.target || {};
  1781. if (!hasOwn(event, 'detail')) {
  1782. event.detail = {};
  1783. }
  1784. if (hasOwn(event, 'markerId')) {
  1785. event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
  1786. event.detail.markerId = event.markerId;
  1787. }
  1788. if (isPlainObject(event.detail)) {
  1789. event.target = Object.assign({}, event.target, event.detail);
  1790. }
  1791. return event;
  1792. }
  1793. function getExtraValue(vm, dataPathsArray) {
  1794. var context = vm;
  1795. dataPathsArray.forEach(function (dataPathArray) {
  1796. var dataPath = dataPathArray[0];
  1797. var value = dataPathArray[2];
  1798. if (dataPath || typeof value !== 'undefined') {
  1799. // ['','',index,'disable']
  1800. var propPath = dataPathArray[1];
  1801. var valuePath = dataPathArray[3];
  1802. var vFor;
  1803. if (Number.isInteger(dataPath)) {
  1804. vFor = dataPath;
  1805. } else if (!dataPath) {
  1806. vFor = context;
  1807. } else if (typeof dataPath === 'string' && dataPath) {
  1808. if (dataPath.indexOf('#s#') === 0) {
  1809. vFor = dataPath.substr(3);
  1810. } else {
  1811. vFor = vm.__get_value(dataPath, context);
  1812. }
  1813. }
  1814. if (Number.isInteger(vFor)) {
  1815. context = value;
  1816. } else if (!propPath) {
  1817. context = vFor[value];
  1818. } else {
  1819. if (Array.isArray(vFor)) {
  1820. context = vFor.find(function (vForItem) {
  1821. return vm.__get_value(propPath, vForItem) === value;
  1822. });
  1823. } else if (isPlainObject(vFor)) {
  1824. context = Object.keys(vFor).find(function (vForKey) {
  1825. return vm.__get_value(propPath, vFor[vForKey]) === value;
  1826. });
  1827. } else {
  1828. console.error('v-for 暂不支持循环数据:', vFor);
  1829. }
  1830. }
  1831. if (valuePath) {
  1832. context = vm.__get_value(valuePath, context);
  1833. }
  1834. }
  1835. });
  1836. return context;
  1837. }
  1838. function processEventExtra(vm, extra, event, __args__) {
  1839. var extraObj = {};
  1840. if (Array.isArray(extra) && extra.length) {
  1841. /**
  1842. *[
  1843. * ['data.items', 'data.id', item.data.id],
  1844. * ['metas', 'id', meta.id]
  1845. *],
  1846. *[
  1847. * ['data.items', 'data.id', item.data.id],
  1848. * ['metas', 'id', meta.id]
  1849. *],
  1850. *'test'
  1851. */
  1852. extra.forEach(function (dataPath, index) {
  1853. if (typeof dataPath === 'string') {
  1854. if (!dataPath) {
  1855. // model,prop.sync
  1856. extraObj['$' + index] = vm;
  1857. } else {
  1858. if (dataPath === '$event') {
  1859. // $event
  1860. extraObj['$' + index] = event;
  1861. } else if (dataPath === 'arguments') {
  1862. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  1863. } else if (dataPath.indexOf('$event.') === 0) {
  1864. // $event.target.value
  1865. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1866. } else {
  1867. extraObj['$' + index] = vm.__get_value(dataPath);
  1868. }
  1869. }
  1870. } else {
  1871. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1872. }
  1873. });
  1874. }
  1875. return extraObj;
  1876. }
  1877. function getObjByArray(arr) {
  1878. var obj = {};
  1879. for (var i = 1; i < arr.length; i++) {
  1880. var element = arr[i];
  1881. obj[element[0]] = element[1];
  1882. }
  1883. return obj;
  1884. }
  1885. function processEventArgs(vm, event) {
  1886. var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1887. var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  1888. var isCustom = arguments.length > 4 ? arguments[4] : undefined;
  1889. var methodName = arguments.length > 5 ? arguments[5] : undefined;
  1890. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  1891. // fixed 用户直接触发 mpInstance.triggerEvent
  1892. var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
  1893. if (isCustom) {
  1894. // 自定义事件
  1895. isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
  1896. if (!args.length) {
  1897. // 无参数,直接传入 event 或 detail 数组
  1898. if (isCustomMPEvent) {
  1899. return [event];
  1900. }
  1901. return __args__;
  1902. }
  1903. }
  1904. var extraObj = processEventExtra(vm, extra, event, __args__);
  1905. var ret = [];
  1906. args.forEach(function (arg) {
  1907. if (arg === '$event') {
  1908. if (methodName === '__set_model' && !isCustom) {
  1909. // input v-model value
  1910. ret.push(event.target.value);
  1911. } else {
  1912. if (isCustom && !isCustomMPEvent) {
  1913. ret.push(__args__[0]);
  1914. } else {
  1915. // wxcomponent 组件或内置组件
  1916. ret.push(event);
  1917. }
  1918. }
  1919. } else {
  1920. if (Array.isArray(arg) && arg[0] === 'o') {
  1921. ret.push(getObjByArray(arg));
  1922. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  1923. ret.push(extraObj[arg]);
  1924. } else {
  1925. ret.push(arg);
  1926. }
  1927. }
  1928. });
  1929. return ret;
  1930. }
  1931. var ONCE = '~';
  1932. var CUSTOM = '^';
  1933. function isMatchEventType(eventType, optType) {
  1934. return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
  1935. }
  1936. function getContextVm(vm) {
  1937. var $parent = vm.$parent;
  1938. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  1939. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  1940. $parent = $parent.$parent;
  1941. }
  1942. return $parent && $parent.$parent;
  1943. }
  1944. function handleEvent(event) {
  1945. var _this2 = this;
  1946. event = wrapper$1(event);
  1947. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  1948. var dataset = (event.currentTarget || event.target).dataset;
  1949. if (!dataset) {
  1950. return console.warn('事件信息不存在');
  1951. }
  1952. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  1953. if (!eventOpts) {
  1954. return console.warn('事件信息不存在');
  1955. }
  1956. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  1957. var eventType = event.type;
  1958. var ret = [];
  1959. eventOpts.forEach(function (eventOpt) {
  1960. var type = eventOpt[0];
  1961. var eventsArray = eventOpt[1];
  1962. var isCustom = type.charAt(0) === CUSTOM;
  1963. type = isCustom ? type.slice(1) : type;
  1964. var isOnce = type.charAt(0) === ONCE;
  1965. type = isOnce ? type.slice(1) : type;
  1966. if (eventsArray && isMatchEventType(eventType, type)) {
  1967. eventsArray.forEach(function (eventArray) {
  1968. var methodName = eventArray[0];
  1969. if (methodName) {
  1970. var handlerCtx = _this2.$vm;
  1971. if (handlerCtx.$options.generic) {
  1972. // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  1973. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  1974. }
  1975. if (methodName === '$emit') {
  1976. handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
  1977. return;
  1978. }
  1979. var handler = handlerCtx[methodName];
  1980. if (!isFn(handler)) {
  1981. var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
  1982. var path = _this2.route || _this2.is;
  1983. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  1984. }
  1985. if (isOnce) {
  1986. if (handler.once) {
  1987. return;
  1988. }
  1989. handler.once = true;
  1990. }
  1991. var params = processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
  1992. params = Array.isArray(params) ? params : [];
  1993. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  1994. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  1995. // eslint-disable-next-line no-sparse-arrays
  1996. params = params.concat([,,,,,,,,,, event]);
  1997. }
  1998. ret.push(handler.apply(handlerCtx, params));
  1999. }
  2000. });
  2001. }
  2002. });
  2003. if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
  2004. return ret[0];
  2005. }
  2006. }
  2007. var eventChannels = {};
  2008. function getEventChannel(id) {
  2009. var eventChannel = eventChannels[id];
  2010. delete eventChannels[id];
  2011. return eventChannel;
  2012. }
  2013. var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
  2014. function initEventChannel() {
  2015. _vue.default.prototype.getOpenerEventChannel = function () {
  2016. // 微信小程序使用自身getOpenerEventChannel
  2017. {
  2018. return this.$scope.getOpenerEventChannel();
  2019. }
  2020. };
  2021. var callHook = _vue.default.prototype.__call_hook;
  2022. _vue.default.prototype.__call_hook = function (hook, args) {
  2023. if (hook === 'onLoad' && args && args.__id__) {
  2024. this.__eventChannel__ = getEventChannel(args.__id__);
  2025. delete args.__id__;
  2026. }
  2027. return callHook.call(this, hook, args);
  2028. };
  2029. }
  2030. function initScopedSlotsParams() {
  2031. var center = {};
  2032. var parents = {};
  2033. function currentId(fn) {
  2034. var vueIds = this.$options.propsData.vueId;
  2035. if (vueIds) {
  2036. var vueId = vueIds.split(',')[0];
  2037. fn(vueId);
  2038. }
  2039. }
  2040. _vue.default.prototype.$hasSSP = function (vueId) {
  2041. var slot = center[vueId];
  2042. if (!slot) {
  2043. parents[vueId] = this;
  2044. this.$on('hook:destroyed', function () {
  2045. delete parents[vueId];
  2046. });
  2047. }
  2048. return slot;
  2049. };
  2050. _vue.default.prototype.$getSSP = function (vueId, name, needAll) {
  2051. var slot = center[vueId];
  2052. if (slot) {
  2053. var params = slot[name] || [];
  2054. if (needAll) {
  2055. return params;
  2056. }
  2057. return params[0];
  2058. }
  2059. };
  2060. _vue.default.prototype.$setSSP = function (name, value) {
  2061. var index = 0;
  2062. currentId.call(this, function (vueId) {
  2063. var slot = center[vueId];
  2064. var params = slot[name] = slot[name] || [];
  2065. params.push(value);
  2066. index = params.length - 1;
  2067. });
  2068. return index;
  2069. };
  2070. _vue.default.prototype.$initSSP = function () {
  2071. currentId.call(this, function (vueId) {
  2072. center[vueId] = {};
  2073. });
  2074. };
  2075. _vue.default.prototype.$callSSP = function () {
  2076. currentId.call(this, function (vueId) {
  2077. if (parents[vueId]) {
  2078. parents[vueId].$forceUpdate();
  2079. }
  2080. });
  2081. };
  2082. _vue.default.mixin({
  2083. destroyed: function destroyed() {
  2084. var propsData = this.$options.propsData;
  2085. var vueId = propsData && propsData.vueId;
  2086. if (vueId) {
  2087. delete center[vueId];
  2088. delete parents[vueId];
  2089. }
  2090. }
  2091. });
  2092. }
  2093. function parseBaseApp(vm, _ref4) {
  2094. var mocks = _ref4.mocks,
  2095. initRefs = _ref4.initRefs;
  2096. initEventChannel();
  2097. {
  2098. initScopedSlotsParams();
  2099. }
  2100. if (vm.$options.store) {
  2101. _vue.default.prototype.$store = vm.$options.store;
  2102. }
  2103. uniIdMixin(_vue.default);
  2104. _vue.default.prototype.mpHost = "mp-weixin";
  2105. _vue.default.mixin({
  2106. beforeCreate: function beforeCreate() {
  2107. if (!this.$options.mpType) {
  2108. return;
  2109. }
  2110. this.mpType = this.$options.mpType;
  2111. this.$mp = (0, _defineProperty2.default)({
  2112. data: {}
  2113. }, this.mpType, this.$options.mpInstance);
  2114. this.$scope = this.$options.mpInstance;
  2115. delete this.$options.mpType;
  2116. delete this.$options.mpInstance;
  2117. if (this.mpType === 'page' && typeof getApp === 'function') {
  2118. // hack vue-i18n
  2119. var app = getApp();
  2120. if (app.$vm && app.$vm.$i18n) {
  2121. this._i18n = app.$vm.$i18n;
  2122. }
  2123. }
  2124. if (this.mpType !== 'app') {
  2125. initRefs(this);
  2126. initMocks(this, mocks);
  2127. }
  2128. }
  2129. });
  2130. var appOptions = {
  2131. onLaunch: function onLaunch(args) {
  2132. if (this.$vm) {
  2133. // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  2134. return;
  2135. }
  2136. {
  2137. if (wx.canIUse && !wx.canIUse('nextTick')) {
  2138. // 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  2139. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  2140. }
  2141. }
  2142. this.$vm = vm;
  2143. this.$vm.$mp = {
  2144. app: this
  2145. };
  2146. this.$vm.$scope = this;
  2147. // vm 上也挂载 globalData
  2148. this.$vm.globalData = this.globalData;
  2149. this.$vm._isMounted = true;
  2150. this.$vm.__call_hook('mounted', args);
  2151. this.$vm.__call_hook('onLaunch', args);
  2152. }
  2153. };
  2154. // 兼容旧版本 globalData
  2155. appOptions.globalData = vm.$options.globalData || {};
  2156. // 将 methods 中的方法挂在 getApp() 中
  2157. var methods = vm.$options.methods;
  2158. if (methods) {
  2159. Object.keys(methods).forEach(function (name) {
  2160. appOptions[name] = methods[name];
  2161. });
  2162. }
  2163. initAppLocale(_vue.default, vm, getLocaleLanguage$1());
  2164. initHooks(appOptions, hooks);
  2165. initUnknownHooks(appOptions, vm.$options);
  2166. return appOptions;
  2167. }
  2168. function getLocaleLanguage$1() {
  2169. var localeLanguage = '';
  2170. {
  2171. var appBaseInfo = wx.getAppBaseInfo();
  2172. var language = appBaseInfo && appBaseInfo.language ? appBaseInfo.language : LOCALE_EN;
  2173. localeLanguage = normalizeLocale(language) || LOCALE_EN;
  2174. }
  2175. return localeLanguage;
  2176. }
  2177. function parseApp(vm) {
  2178. return parseBaseApp(vm, {
  2179. mocks: mocks,
  2180. initRefs: initRefs
  2181. });
  2182. }
  2183. function createApp(vm) {
  2184. App(parseApp(vm));
  2185. return vm;
  2186. }
  2187. var encodeReserveRE = /[!'()*]/g;
  2188. var encodeReserveReplacer = function encodeReserveReplacer(c) {
  2189. return '%' + c.charCodeAt(0).toString(16);
  2190. };
  2191. var commaRE = /%2C/g;
  2192. // fixed encodeURIComponent which is more conformant to RFC3986:
  2193. // - escapes [!'()*]
  2194. // - preserve commas
  2195. var encode = function encode(str) {
  2196. return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
  2197. };
  2198. function stringifyQuery(obj) {
  2199. var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  2200. var res = obj ? Object.keys(obj).map(function (key) {
  2201. var val = obj[key];
  2202. if (val === undefined) {
  2203. return '';
  2204. }
  2205. if (val === null) {
  2206. return encodeStr(key);
  2207. }
  2208. if (Array.isArray(val)) {
  2209. var result = [];
  2210. val.forEach(function (val2) {
  2211. if (val2 === undefined) {
  2212. return;
  2213. }
  2214. if (val2 === null) {
  2215. result.push(encodeStr(key));
  2216. } else {
  2217. result.push(encodeStr(key) + '=' + encodeStr(val2));
  2218. }
  2219. });
  2220. return result.join('&');
  2221. }
  2222. return encodeStr(key) + '=' + encodeStr(val);
  2223. }).filter(function (x) {
  2224. return x.length > 0;
  2225. }).join('&') : null;
  2226. return res ? "?".concat(res) : '';
  2227. }
  2228. function parseBaseComponent(vueComponentOptions) {
  2229. var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  2230. isPage = _ref5.isPage,
  2231. initRelation = _ref5.initRelation;
  2232. var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
  2233. var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
  2234. _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
  2235. VueComponent = _initVueComponent2[0],
  2236. vueOptions = _initVueComponent2[1];
  2237. var options = _objectSpread({
  2238. multipleSlots: true,
  2239. // styleIsolation: 'apply-shared',
  2240. addGlobalClass: true
  2241. }, vueOptions.options || {});
  2242. {
  2243. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  2244. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  2245. Object.assign(options, vueOptions['mp-weixin'].options);
  2246. }
  2247. }
  2248. var componentOptions = {
  2249. options: options,
  2250. data: initData(vueOptions, _vue.default.prototype),
  2251. behaviors: initBehaviors(vueOptions, initBehavior),
  2252. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  2253. lifetimes: {
  2254. attached: function attached() {
  2255. var properties = this.properties;
  2256. var options = {
  2257. mpType: isPage.call(this) ? 'page' : 'component',
  2258. mpInstance: this,
  2259. propsData: properties
  2260. };
  2261. initVueIds(properties.vueId, this);
  2262. // 处理父子关系
  2263. initRelation.call(this, {
  2264. vuePid: this._$vuePid,
  2265. vueOptions: options
  2266. });
  2267. // 初始化 vue 实例
  2268. this.$vm = new VueComponent(options);
  2269. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  2270. initSlots(this.$vm, properties.vueSlots);
  2271. // 触发首次 setData
  2272. this.$vm.$mount();
  2273. },
  2274. ready: function ready() {
  2275. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  2276. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  2277. if (this.$vm) {
  2278. this.$vm._isMounted = true;
  2279. this.$vm.__call_hook('mounted');
  2280. this.$vm.__call_hook('onReady');
  2281. }
  2282. },
  2283. detached: function detached() {
  2284. this.$vm && this.$vm.$destroy();
  2285. }
  2286. },
  2287. pageLifetimes: {
  2288. show: function show(args) {
  2289. this.$vm && this.$vm.__call_hook('onPageShow', args);
  2290. },
  2291. hide: function hide() {
  2292. this.$vm && this.$vm.__call_hook('onPageHide');
  2293. },
  2294. resize: function resize(size) {
  2295. this.$vm && this.$vm.__call_hook('onPageResize', size);
  2296. }
  2297. },
  2298. methods: {
  2299. __l: handleLink,
  2300. __e: handleEvent
  2301. }
  2302. };
  2303. // externalClasses
  2304. if (vueOptions.externalClasses) {
  2305. componentOptions.externalClasses = vueOptions.externalClasses;
  2306. }
  2307. if (Array.isArray(vueOptions.wxsCallMethods)) {
  2308. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  2309. componentOptions.methods[callMethod] = function (args) {
  2310. return this.$vm[callMethod](args);
  2311. };
  2312. });
  2313. }
  2314. if (needVueOptions) {
  2315. return [componentOptions, vueOptions, VueComponent];
  2316. }
  2317. if (isPage) {
  2318. return componentOptions;
  2319. }
  2320. return [componentOptions, VueComponent];
  2321. }
  2322. function parseComponent(vueComponentOptions, needVueOptions) {
  2323. return parseBaseComponent(vueComponentOptions, {
  2324. isPage: isPage,
  2325. initRelation: initRelation
  2326. }, needVueOptions);
  2327. }
  2328. var hooks$1 = ['onShow', 'onHide', 'onUnload'];
  2329. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  2330. function parseBasePage(vuePageOptions) {
  2331. var _parseComponent = parseComponent(vuePageOptions, true),
  2332. _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
  2333. pageOptions = _parseComponent2[0],
  2334. vueOptions = _parseComponent2[1];
  2335. initHooks(pageOptions.methods, hooks$1, vueOptions);
  2336. pageOptions.methods.onLoad = function (query) {
  2337. this.options = query;
  2338. var copyQuery = Object.assign({}, query);
  2339. delete copyQuery.__id__;
  2340. this.$page = {
  2341. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
  2342. };
  2343. this.$vm.$mp.query = query; // 兼容 mpvue
  2344. this.$vm.__call_hook('onLoad', query);
  2345. };
  2346. {
  2347. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  2348. }
  2349. {
  2350. initWorkletMethods(pageOptions.methods, vueOptions.methods);
  2351. }
  2352. return pageOptions;
  2353. }
  2354. function parsePage(vuePageOptions) {
  2355. return parseBasePage(vuePageOptions);
  2356. }
  2357. function createPage(vuePageOptions) {
  2358. {
  2359. return Component(parsePage(vuePageOptions));
  2360. }
  2361. }
  2362. function createComponent(vueOptions) {
  2363. {
  2364. return Component(parseComponent(vueOptions));
  2365. }
  2366. }
  2367. function createSubpackageApp(vm) {
  2368. var appOptions = parseApp(vm);
  2369. var app = getApp({
  2370. allowDefault: true
  2371. });
  2372. vm.$scope = app;
  2373. var globalData = app.globalData;
  2374. if (globalData) {
  2375. Object.keys(appOptions.globalData).forEach(function (name) {
  2376. if (!hasOwn(globalData, name)) {
  2377. globalData[name] = appOptions.globalData[name];
  2378. }
  2379. });
  2380. }
  2381. Object.keys(appOptions).forEach(function (name) {
  2382. if (!hasOwn(app, name)) {
  2383. app[name] = appOptions[name];
  2384. }
  2385. });
  2386. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2387. wx.onAppShow(function () {
  2388. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  2389. args[_key6] = arguments[_key6];
  2390. }
  2391. vm.__call_hook('onShow', args);
  2392. });
  2393. }
  2394. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2395. wx.onAppHide(function () {
  2396. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  2397. args[_key7] = arguments[_key7];
  2398. }
  2399. vm.__call_hook('onHide', args);
  2400. });
  2401. }
  2402. if (isFn(appOptions.onLaunch)) {
  2403. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2404. vm.__call_hook('onLaunch', args);
  2405. }
  2406. return vm;
  2407. }
  2408. function createPlugin(vm) {
  2409. var appOptions = parseApp(vm);
  2410. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2411. wx.onAppShow(function () {
  2412. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  2413. args[_key8] = arguments[_key8];
  2414. }
  2415. vm.__call_hook('onShow', args);
  2416. });
  2417. }
  2418. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2419. wx.onAppHide(function () {
  2420. for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
  2421. args[_key9] = arguments[_key9];
  2422. }
  2423. vm.__call_hook('onHide', args);
  2424. });
  2425. }
  2426. if (isFn(appOptions.onLaunch)) {
  2427. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2428. vm.__call_hook('onLaunch', args);
  2429. }
  2430. return vm;
  2431. }
  2432. todos.forEach(function (todoApi) {
  2433. protocols[todoApi] = false;
  2434. });
  2435. canIUses.forEach(function (canIUseApi) {
  2436. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  2437. if (!wx.canIUse(apiName)) {
  2438. protocols[canIUseApi] = false;
  2439. }
  2440. });
  2441. var uni = {};
  2442. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  2443. uni = new Proxy({}, {
  2444. get: function get(target, name) {
  2445. if (hasOwn(target, name)) {
  2446. return target[name];
  2447. }
  2448. if (baseApi[name]) {
  2449. return baseApi[name];
  2450. }
  2451. if (api[name]) {
  2452. return promisify(name, api[name]);
  2453. }
  2454. {
  2455. if (extraApi[name]) {
  2456. return promisify(name, extraApi[name]);
  2457. }
  2458. if (todoApis[name]) {
  2459. return promisify(name, todoApis[name]);
  2460. }
  2461. }
  2462. if (eventApi[name]) {
  2463. return eventApi[name];
  2464. }
  2465. return promisify(name, wrapper(name, wx[name]));
  2466. },
  2467. set: function set(target, name, value) {
  2468. target[name] = value;
  2469. return true;
  2470. }
  2471. });
  2472. } else {
  2473. Object.keys(baseApi).forEach(function (name) {
  2474. uni[name] = baseApi[name];
  2475. });
  2476. {
  2477. Object.keys(todoApis).forEach(function (name) {
  2478. uni[name] = promisify(name, todoApis[name]);
  2479. });
  2480. Object.keys(extraApi).forEach(function (name) {
  2481. uni[name] = promisify(name, extraApi[name]);
  2482. });
  2483. }
  2484. Object.keys(eventApi).forEach(function (name) {
  2485. uni[name] = eventApi[name];
  2486. });
  2487. Object.keys(api).forEach(function (name) {
  2488. uni[name] = promisify(name, api[name]);
  2489. });
  2490. Object.keys(wx).forEach(function (name) {
  2491. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  2492. uni[name] = promisify(name, wrapper(name, wx[name]));
  2493. }
  2494. });
  2495. }
  2496. wx.createApp = createApp;
  2497. wx.createPage = createPage;
  2498. wx.createComponent = createComponent;
  2499. wx.createSubpackageApp = createSubpackageApp;
  2500. wx.createPlugin = createPlugin;
  2501. var uni$1 = uni;
  2502. var _default = uni$1;
  2503. exports.default = _default;
  2504. /* 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)))
  2505. /***/ }),
  2506. /* 3 */
  2507. /*!***********************************!*\
  2508. !*** (webpack)/buildin/global.js ***!
  2509. \***********************************/
  2510. /*! no static exports found */
  2511. /***/ (function(module, exports) {
  2512. var g;
  2513. // This works in non-strict mode
  2514. g = (function() {
  2515. return this;
  2516. })();
  2517. try {
  2518. // This works if eval is allowed (see CSP)
  2519. g = g || new Function("return this")();
  2520. } catch (e) {
  2521. // This works if the window reference is available
  2522. if (typeof window === "object") g = window;
  2523. }
  2524. // g can still be undefined, but nothing to do about it...
  2525. // We return undefined, instead of nothing here, so it's
  2526. // easier to handle this case. if(!global) { ...}
  2527. module.exports = g;
  2528. /***/ }),
  2529. /* 4 */
  2530. /*!**********************************************************************!*\
  2531. !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  2532. \**********************************************************************/
  2533. /*! no static exports found */
  2534. /***/ (function(module, exports) {
  2535. function _interopRequireDefault(obj) {
  2536. return obj && obj.__esModule ? obj : {
  2537. "default": obj
  2538. };
  2539. }
  2540. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2541. /***/ }),
  2542. /* 5 */
  2543. /*!**************************************************************!*\
  2544. !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  2545. \**************************************************************/
  2546. /*! no static exports found */
  2547. /***/ (function(module, exports, __webpack_require__) {
  2548. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  2549. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 7);
  2550. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2551. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  2552. function _slicedToArray(arr, i) {
  2553. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
  2554. }
  2555. module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2556. /***/ }),
  2557. /* 6 */
  2558. /*!***************************************************************!*\
  2559. !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  2560. \***************************************************************/
  2561. /*! no static exports found */
  2562. /***/ (function(module, exports) {
  2563. function _arrayWithHoles(arr) {
  2564. if (Array.isArray(arr)) return arr;
  2565. }
  2566. module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2567. /***/ }),
  2568. /* 7 */
  2569. /*!*********************************************************************!*\
  2570. !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  2571. \*********************************************************************/
  2572. /*! no static exports found */
  2573. /***/ (function(module, exports) {
  2574. function _iterableToArrayLimit(r, l) {
  2575. var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  2576. if (null != t) {
  2577. var e,
  2578. n,
  2579. i,
  2580. u,
  2581. a = [],
  2582. f = !0,
  2583. o = !1;
  2584. try {
  2585. if (i = (t = t.call(r)).next, 0 === l) {
  2586. if (Object(t) !== t) return;
  2587. f = !1;
  2588. } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) {
  2589. ;
  2590. }
  2591. } catch (r) {
  2592. o = !0, n = r;
  2593. } finally {
  2594. try {
  2595. if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
  2596. } finally {
  2597. if (o) throw n;
  2598. }
  2599. }
  2600. return a;
  2601. }
  2602. }
  2603. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2604. /***/ }),
  2605. /* 8 */
  2606. /*!***************************************************************************!*\
  2607. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  2608. \***************************************************************************/
  2609. /*! no static exports found */
  2610. /***/ (function(module, exports, __webpack_require__) {
  2611. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2612. function _unsupportedIterableToArray(o, minLen) {
  2613. if (!o) return;
  2614. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  2615. var n = Object.prototype.toString.call(o).slice(8, -1);
  2616. if (n === "Object" && o.constructor) n = o.constructor.name;
  2617. if (n === "Map" || n === "Set") return Array.from(o);
  2618. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  2619. }
  2620. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2621. /***/ }),
  2622. /* 9 */
  2623. /*!*****************************************************************!*\
  2624. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  2625. \*****************************************************************/
  2626. /*! no static exports found */
  2627. /***/ (function(module, exports) {
  2628. function _arrayLikeToArray(arr, len) {
  2629. if (len == null || len > arr.length) len = arr.length;
  2630. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  2631. arr2[i] = arr[i];
  2632. }
  2633. return arr2;
  2634. }
  2635. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2636. /***/ }),
  2637. /* 10 */
  2638. /*!****************************************************************!*\
  2639. !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
  2640. \****************************************************************/
  2641. /*! no static exports found */
  2642. /***/ (function(module, exports) {
  2643. function _nonIterableRest() {
  2644. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2645. }
  2646. module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2647. /***/ }),
  2648. /* 11 */
  2649. /*!***************************************************************!*\
  2650. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  2651. \***************************************************************/
  2652. /*! no static exports found */
  2653. /***/ (function(module, exports, __webpack_require__) {
  2654. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  2655. function _defineProperty(obj, key, value) {
  2656. key = toPropertyKey(key);
  2657. if (key in obj) {
  2658. Object.defineProperty(obj, key, {
  2659. value: value,
  2660. enumerable: true,
  2661. configurable: true,
  2662. writable: true
  2663. });
  2664. } else {
  2665. obj[key] = value;
  2666. }
  2667. return obj;
  2668. }
  2669. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2670. /***/ }),
  2671. /* 12 */
  2672. /*!**************************************************************!*\
  2673. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  2674. \**************************************************************/
  2675. /*! no static exports found */
  2676. /***/ (function(module, exports, __webpack_require__) {
  2677. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2678. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
  2679. function toPropertyKey(t) {
  2680. var i = toPrimitive(t, "string");
  2681. return "symbol" == _typeof(i) ? i : i + "";
  2682. }
  2683. module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2684. /***/ }),
  2685. /* 13 */
  2686. /*!*******************************************************!*\
  2687. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  2688. \*******************************************************/
  2689. /*! no static exports found */
  2690. /***/ (function(module, exports) {
  2691. function _typeof(o) {
  2692. "@babel/helpers - typeof";
  2693. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
  2694. return typeof o;
  2695. } : function (o) {
  2696. return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
  2697. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
  2698. }
  2699. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2700. /***/ }),
  2701. /* 14 */
  2702. /*!************************************************************!*\
  2703. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  2704. \************************************************************/
  2705. /*! no static exports found */
  2706. /***/ (function(module, exports, __webpack_require__) {
  2707. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2708. function toPrimitive(t, r) {
  2709. if ("object" != _typeof(t) || !t) return t;
  2710. var e = t[Symbol.toPrimitive];
  2711. if (void 0 !== e) {
  2712. var i = e.call(t, r || "default");
  2713. if ("object" != _typeof(i)) return i;
  2714. throw new TypeError("@@toPrimitive must return a primitive value.");
  2715. }
  2716. return ("string" === r ? String : Number)(t);
  2717. }
  2718. module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2719. /***/ }),
  2720. /* 15 */
  2721. /*!**********************************************************!*\
  2722. !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  2723. \**********************************************************/
  2724. /*! no static exports found */
  2725. /***/ (function(module, exports, __webpack_require__) {
  2726. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  2727. var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 17);
  2728. function _construct(t, e, r) {
  2729. if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
  2730. var o = [null];
  2731. o.push.apply(o, e);
  2732. var p = new (t.bind.apply(t, o))();
  2733. return r && setPrototypeOf(p, r.prototype), p;
  2734. }
  2735. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2736. /***/ }),
  2737. /* 16 */
  2738. /*!***************************************************************!*\
  2739. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  2740. \***************************************************************/
  2741. /*! no static exports found */
  2742. /***/ (function(module, exports) {
  2743. function _setPrototypeOf(o, p) {
  2744. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  2745. o.__proto__ = p;
  2746. return o;
  2747. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2748. return _setPrototypeOf(o, p);
  2749. }
  2750. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2751. /***/ }),
  2752. /* 17 */
  2753. /*!*************************************************************************!*\
  2754. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  2755. \*************************************************************************/
  2756. /*! no static exports found */
  2757. /***/ (function(module, exports) {
  2758. function _isNativeReflectConstruct() {
  2759. try {
  2760. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  2761. } catch (t) {}
  2762. return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() {
  2763. return !!t;
  2764. }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
  2765. }
  2766. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2767. /***/ }),
  2768. /* 18 */
  2769. /*!******************************************************************!*\
  2770. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  2771. \******************************************************************/
  2772. /*! no static exports found */
  2773. /***/ (function(module, exports, __webpack_require__) {
  2774. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
  2775. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  2776. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2777. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
  2778. function _toConsumableArray(arr) {
  2779. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  2780. }
  2781. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2782. /***/ }),
  2783. /* 19 */
  2784. /*!******************************************************************!*\
  2785. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  2786. \******************************************************************/
  2787. /*! no static exports found */
  2788. /***/ (function(module, exports, __webpack_require__) {
  2789. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2790. function _arrayWithoutHoles(arr) {
  2791. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  2792. }
  2793. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2794. /***/ }),
  2795. /* 20 */
  2796. /*!****************************************************************!*\
  2797. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  2798. \****************************************************************/
  2799. /*! no static exports found */
  2800. /***/ (function(module, exports) {
  2801. function _iterableToArray(iter) {
  2802. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  2803. }
  2804. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2805. /***/ }),
  2806. /* 21 */
  2807. /*!******************************************************************!*\
  2808. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  2809. \******************************************************************/
  2810. /*! no static exports found */
  2811. /***/ (function(module, exports) {
  2812. function _nonIterableSpread() {
  2813. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2814. }
  2815. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2816. /***/ }),
  2817. /* 22 */
  2818. /*!*************************************************************!*\
  2819. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  2820. \*************************************************************/
  2821. /*! no static exports found */
  2822. /***/ (function(module, exports, __webpack_require__) {
  2823. "use strict";
  2824. /* WEBPACK VAR INJECTION */(function(uni, global) {
  2825. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  2826. Object.defineProperty(exports, "__esModule", {
  2827. value: true
  2828. });
  2829. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  2830. exports.compileI18nJsonStr = compileI18nJsonStr;
  2831. exports.hasI18nJson = hasI18nJson;
  2832. exports.initVueI18n = initVueI18n;
  2833. exports.isI18nStr = isI18nStr;
  2834. exports.isString = void 0;
  2835. exports.normalizeLocale = normalizeLocale;
  2836. exports.parseI18nJson = parseI18nJson;
  2837. exports.resolveLocale = resolveLocale;
  2838. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  2839. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  2840. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  2841. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  2842. var isObject = function isObject(val) {
  2843. return val !== null && (0, _typeof2.default)(val) === 'object';
  2844. };
  2845. var defaultDelimiters = ['{', '}'];
  2846. var BaseFormatter = /*#__PURE__*/function () {
  2847. function BaseFormatter() {
  2848. (0, _classCallCheck2.default)(this, BaseFormatter);
  2849. this._caches = Object.create(null);
  2850. }
  2851. (0, _createClass2.default)(BaseFormatter, [{
  2852. key: "interpolate",
  2853. value: function interpolate(message, values) {
  2854. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  2855. if (!values) {
  2856. return [message];
  2857. }
  2858. var tokens = this._caches[message];
  2859. if (!tokens) {
  2860. tokens = parse(message, delimiters);
  2861. this._caches[message] = tokens;
  2862. }
  2863. return compile(tokens, values);
  2864. }
  2865. }]);
  2866. return BaseFormatter;
  2867. }();
  2868. exports.Formatter = BaseFormatter;
  2869. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  2870. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  2871. function parse(format, _ref) {
  2872. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  2873. startDelimiter = _ref2[0],
  2874. endDelimiter = _ref2[1];
  2875. var tokens = [];
  2876. var position = 0;
  2877. var text = '';
  2878. while (position < format.length) {
  2879. var char = format[position++];
  2880. if (char === startDelimiter) {
  2881. if (text) {
  2882. tokens.push({
  2883. type: 'text',
  2884. value: text
  2885. });
  2886. }
  2887. text = '';
  2888. var sub = '';
  2889. char = format[position++];
  2890. while (char !== undefined && char !== endDelimiter) {
  2891. sub += char;
  2892. char = format[position++];
  2893. }
  2894. var isClosed = char === endDelimiter;
  2895. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  2896. tokens.push({
  2897. value: sub,
  2898. type: type
  2899. });
  2900. }
  2901. // else if (char === '%') {
  2902. // // when found rails i18n syntax, skip text capture
  2903. // if (format[position] !== '{') {
  2904. // text += char
  2905. // }
  2906. // }
  2907. else {
  2908. text += char;
  2909. }
  2910. }
  2911. text && tokens.push({
  2912. type: 'text',
  2913. value: text
  2914. });
  2915. return tokens;
  2916. }
  2917. function compile(tokens, values) {
  2918. var compiled = [];
  2919. var index = 0;
  2920. var mode = Array.isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  2921. if (mode === 'unknown') {
  2922. return compiled;
  2923. }
  2924. while (index < tokens.length) {
  2925. var token = tokens[index];
  2926. switch (token.type) {
  2927. case 'text':
  2928. compiled.push(token.value);
  2929. break;
  2930. case 'list':
  2931. compiled.push(values[parseInt(token.value, 10)]);
  2932. break;
  2933. case 'named':
  2934. if (mode === 'named') {
  2935. compiled.push(values[token.value]);
  2936. } else {
  2937. if (true) {
  2938. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  2939. }
  2940. }
  2941. break;
  2942. case 'unknown':
  2943. if (true) {
  2944. console.warn("Detect 'unknown' type of token!");
  2945. }
  2946. break;
  2947. }
  2948. index++;
  2949. }
  2950. return compiled;
  2951. }
  2952. var LOCALE_ZH_HANS = 'zh-Hans';
  2953. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  2954. var LOCALE_ZH_HANT = 'zh-Hant';
  2955. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  2956. var LOCALE_EN = 'en';
  2957. exports.LOCALE_EN = LOCALE_EN;
  2958. var LOCALE_FR = 'fr';
  2959. exports.LOCALE_FR = LOCALE_FR;
  2960. var LOCALE_ES = 'es';
  2961. exports.LOCALE_ES = LOCALE_ES;
  2962. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2963. var hasOwn = function hasOwn(val, key) {
  2964. return hasOwnProperty.call(val, key);
  2965. };
  2966. var defaultFormatter = new BaseFormatter();
  2967. function include(str, parts) {
  2968. return !!parts.find(function (part) {
  2969. return str.indexOf(part) !== -1;
  2970. });
  2971. }
  2972. function startsWith(str, parts) {
  2973. return parts.find(function (part) {
  2974. return str.indexOf(part) === 0;
  2975. });
  2976. }
  2977. function normalizeLocale(locale, messages) {
  2978. if (!locale) {
  2979. return;
  2980. }
  2981. locale = locale.trim().replace(/_/g, '-');
  2982. if (messages && messages[locale]) {
  2983. return locale;
  2984. }
  2985. locale = locale.toLowerCase();
  2986. if (locale === 'chinese') {
  2987. // 支付宝
  2988. return LOCALE_ZH_HANS;
  2989. }
  2990. if (locale.indexOf('zh') === 0) {
  2991. if (locale.indexOf('-hans') > -1) {
  2992. return LOCALE_ZH_HANS;
  2993. }
  2994. if (locale.indexOf('-hant') > -1) {
  2995. return LOCALE_ZH_HANT;
  2996. }
  2997. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  2998. return LOCALE_ZH_HANT;
  2999. }
  3000. return LOCALE_ZH_HANS;
  3001. }
  3002. var locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES];
  3003. if (messages && Object.keys(messages).length > 0) {
  3004. locales = Object.keys(messages);
  3005. }
  3006. var lang = startsWith(locale, locales);
  3007. if (lang) {
  3008. return lang;
  3009. }
  3010. }
  3011. var I18n = /*#__PURE__*/function () {
  3012. function I18n(_ref3) {
  3013. var locale = _ref3.locale,
  3014. fallbackLocale = _ref3.fallbackLocale,
  3015. messages = _ref3.messages,
  3016. watcher = _ref3.watcher,
  3017. formater = _ref3.formater;
  3018. (0, _classCallCheck2.default)(this, I18n);
  3019. this.locale = LOCALE_EN;
  3020. this.fallbackLocale = LOCALE_EN;
  3021. this.message = {};
  3022. this.messages = {};
  3023. this.watchers = [];
  3024. if (fallbackLocale) {
  3025. this.fallbackLocale = fallbackLocale;
  3026. }
  3027. this.formater = formater || defaultFormatter;
  3028. this.messages = messages || {};
  3029. this.setLocale(locale || LOCALE_EN);
  3030. if (watcher) {
  3031. this.watchLocale(watcher);
  3032. }
  3033. }
  3034. (0, _createClass2.default)(I18n, [{
  3035. key: "setLocale",
  3036. value: function setLocale(locale) {
  3037. var _this = this;
  3038. var oldLocale = this.locale;
  3039. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  3040. if (!this.messages[this.locale]) {
  3041. // 可能初始化时不存在
  3042. this.messages[this.locale] = {};
  3043. }
  3044. this.message = this.messages[this.locale];
  3045. // 仅发生变化时,通知
  3046. if (oldLocale !== this.locale) {
  3047. this.watchers.forEach(function (watcher) {
  3048. watcher(_this.locale, oldLocale);
  3049. });
  3050. }
  3051. }
  3052. }, {
  3053. key: "getLocale",
  3054. value: function getLocale() {
  3055. return this.locale;
  3056. }
  3057. }, {
  3058. key: "watchLocale",
  3059. value: function watchLocale(fn) {
  3060. var _this2 = this;
  3061. var index = this.watchers.push(fn) - 1;
  3062. return function () {
  3063. _this2.watchers.splice(index, 1);
  3064. };
  3065. }
  3066. }, {
  3067. key: "add",
  3068. value: function add(locale, message) {
  3069. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3070. var curMessages = this.messages[locale];
  3071. if (curMessages) {
  3072. if (override) {
  3073. Object.assign(curMessages, message);
  3074. } else {
  3075. Object.keys(message).forEach(function (key) {
  3076. if (!hasOwn(curMessages, key)) {
  3077. curMessages[key] = message[key];
  3078. }
  3079. });
  3080. }
  3081. } else {
  3082. this.messages[locale] = message;
  3083. }
  3084. }
  3085. }, {
  3086. key: "f",
  3087. value: function f(message, values, delimiters) {
  3088. return this.formater.interpolate(message, values, delimiters).join('');
  3089. }
  3090. }, {
  3091. key: "t",
  3092. value: function t(key, locale, values) {
  3093. var message = this.message;
  3094. if (typeof locale === 'string') {
  3095. locale = normalizeLocale(locale, this.messages);
  3096. locale && (message = this.messages[locale]);
  3097. } else {
  3098. values = locale;
  3099. }
  3100. if (!hasOwn(message, key)) {
  3101. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  3102. return key;
  3103. }
  3104. return this.formater.interpolate(message[key], values).join('');
  3105. }
  3106. }]);
  3107. return I18n;
  3108. }();
  3109. exports.I18n = I18n;
  3110. function watchAppLocale(appVm, i18n) {
  3111. // 需要保证 watch 的触发在组件渲染之前
  3112. if (appVm.$watchLocale) {
  3113. // vue2
  3114. appVm.$watchLocale(function (newLocale) {
  3115. i18n.setLocale(newLocale);
  3116. });
  3117. } else {
  3118. appVm.$watch(function () {
  3119. return appVm.$locale;
  3120. }, function (newLocale) {
  3121. i18n.setLocale(newLocale);
  3122. });
  3123. }
  3124. }
  3125. function getDefaultLocale() {
  3126. if (typeof uni !== 'undefined' && uni.getLocale) {
  3127. return uni.getLocale();
  3128. }
  3129. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  3130. if (typeof global !== 'undefined' && global.getLocale) {
  3131. return global.getLocale();
  3132. }
  3133. return LOCALE_EN;
  3134. }
  3135. function initVueI18n(locale) {
  3136. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3137. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  3138. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  3139. // 兼容旧版本入参
  3140. if (typeof locale !== 'string') {
  3141. var _ref4 = [messages, locale];
  3142. locale = _ref4[0];
  3143. messages = _ref4[1];
  3144. }
  3145. if (typeof locale !== 'string') {
  3146. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  3147. locale = getDefaultLocale();
  3148. }
  3149. if (typeof fallbackLocale !== 'string') {
  3150. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  3151. }
  3152. var i18n = new I18n({
  3153. locale: locale,
  3154. fallbackLocale: fallbackLocale,
  3155. messages: messages,
  3156. watcher: watcher
  3157. });
  3158. var _t = function t(key, values) {
  3159. if (typeof getApp !== 'function') {
  3160. // app view
  3161. /* eslint-disable no-func-assign */
  3162. _t = function t(key, values) {
  3163. return i18n.t(key, values);
  3164. };
  3165. } else {
  3166. var isWatchedAppLocale = false;
  3167. _t = function t(key, values) {
  3168. var appVm = getApp().$vm;
  3169. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  3170. // options: {
  3171. // type: Array,
  3172. // default () {
  3173. // return [{
  3174. // icon: 'shop',
  3175. // text: t("uni-goods-nav.options.shop"),
  3176. // }, {
  3177. // icon: 'cart',
  3178. // text: t("uni-goods-nav.options.cart")
  3179. // }]
  3180. // }
  3181. // },
  3182. if (appVm) {
  3183. // 触发响应式
  3184. appVm.$locale;
  3185. if (!isWatchedAppLocale) {
  3186. isWatchedAppLocale = true;
  3187. watchAppLocale(appVm, i18n);
  3188. }
  3189. }
  3190. return i18n.t(key, values);
  3191. };
  3192. }
  3193. return _t(key, values);
  3194. };
  3195. return {
  3196. i18n: i18n,
  3197. f: function f(message, values, delimiters) {
  3198. return i18n.f(message, values, delimiters);
  3199. },
  3200. t: function t(key, values) {
  3201. return _t(key, values);
  3202. },
  3203. add: function add(locale, message) {
  3204. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3205. return i18n.add(locale, message, override);
  3206. },
  3207. watch: function watch(fn) {
  3208. return i18n.watchLocale(fn);
  3209. },
  3210. getLocale: function getLocale() {
  3211. return i18n.getLocale();
  3212. },
  3213. setLocale: function setLocale(newLocale) {
  3214. return i18n.setLocale(newLocale);
  3215. }
  3216. };
  3217. }
  3218. var isString = function isString(val) {
  3219. return typeof val === 'string';
  3220. };
  3221. exports.isString = isString;
  3222. var formater;
  3223. function hasI18nJson(jsonObj, delimiters) {
  3224. if (!formater) {
  3225. formater = new BaseFormatter();
  3226. }
  3227. return walkJsonObj(jsonObj, function (jsonObj, key) {
  3228. var value = jsonObj[key];
  3229. if (isString(value)) {
  3230. if (isI18nStr(value, delimiters)) {
  3231. return true;
  3232. }
  3233. } else {
  3234. return hasI18nJson(value, delimiters);
  3235. }
  3236. });
  3237. }
  3238. function parseI18nJson(jsonObj, values, delimiters) {
  3239. if (!formater) {
  3240. formater = new BaseFormatter();
  3241. }
  3242. walkJsonObj(jsonObj, function (jsonObj, key) {
  3243. var value = jsonObj[key];
  3244. if (isString(value)) {
  3245. if (isI18nStr(value, delimiters)) {
  3246. jsonObj[key] = compileStr(value, values, delimiters);
  3247. }
  3248. } else {
  3249. parseI18nJson(value, values, delimiters);
  3250. }
  3251. });
  3252. return jsonObj;
  3253. }
  3254. function compileI18nJsonStr(jsonStr, _ref5) {
  3255. var locale = _ref5.locale,
  3256. locales = _ref5.locales,
  3257. delimiters = _ref5.delimiters;
  3258. if (!isI18nStr(jsonStr, delimiters)) {
  3259. return jsonStr;
  3260. }
  3261. if (!formater) {
  3262. formater = new BaseFormatter();
  3263. }
  3264. var localeValues = [];
  3265. Object.keys(locales).forEach(function (name) {
  3266. if (name !== locale) {
  3267. localeValues.push({
  3268. locale: name,
  3269. values: locales[name]
  3270. });
  3271. }
  3272. });
  3273. localeValues.unshift({
  3274. locale: locale,
  3275. values: locales[locale]
  3276. });
  3277. try {
  3278. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  3279. } catch (e) {}
  3280. return jsonStr;
  3281. }
  3282. function isI18nStr(value, delimiters) {
  3283. return value.indexOf(delimiters[0]) > -1;
  3284. }
  3285. function compileStr(value, values, delimiters) {
  3286. return formater.interpolate(value, values, delimiters).join('');
  3287. }
  3288. function compileValue(jsonObj, key, localeValues, delimiters) {
  3289. var value = jsonObj[key];
  3290. if (isString(value)) {
  3291. // 存在国际化
  3292. if (isI18nStr(value, delimiters)) {
  3293. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  3294. if (localeValues.length > 1) {
  3295. // 格式化国际化语言
  3296. var valueLocales = jsonObj[key + 'Locales'] = {};
  3297. localeValues.forEach(function (localValue) {
  3298. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  3299. });
  3300. }
  3301. }
  3302. } else {
  3303. compileJsonObj(value, localeValues, delimiters);
  3304. }
  3305. }
  3306. function compileJsonObj(jsonObj, localeValues, delimiters) {
  3307. walkJsonObj(jsonObj, function (jsonObj, key) {
  3308. compileValue(jsonObj, key, localeValues, delimiters);
  3309. });
  3310. return jsonObj;
  3311. }
  3312. function walkJsonObj(jsonObj, walk) {
  3313. if (Array.isArray(jsonObj)) {
  3314. for (var i = 0; i < jsonObj.length; i++) {
  3315. if (walk(jsonObj, i)) {
  3316. return true;
  3317. }
  3318. }
  3319. } else if (isObject(jsonObj)) {
  3320. for (var key in jsonObj) {
  3321. if (walk(jsonObj, key)) {
  3322. return true;
  3323. }
  3324. }
  3325. }
  3326. return false;
  3327. }
  3328. function resolveLocale(locales) {
  3329. return function (locale) {
  3330. if (!locale) {
  3331. return locale;
  3332. }
  3333. locale = normalizeLocale(locale) || locale;
  3334. return resolveLocaleChain(locale).find(function (locale) {
  3335. return locales.indexOf(locale) > -1;
  3336. });
  3337. };
  3338. }
  3339. function resolveLocaleChain(locale) {
  3340. var chain = [];
  3341. var tokens = locale.split('-');
  3342. while (tokens.length) {
  3343. chain.push(tokens.join('-'));
  3344. tokens.pop();
  3345. }
  3346. return chain;
  3347. }
  3348. /* 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)))
  3349. /***/ }),
  3350. /* 23 */
  3351. /*!***************************************************************!*\
  3352. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  3353. \***************************************************************/
  3354. /*! no static exports found */
  3355. /***/ (function(module, exports) {
  3356. function _classCallCheck(instance, Constructor) {
  3357. if (!(instance instanceof Constructor)) {
  3358. throw new TypeError("Cannot call a class as a function");
  3359. }
  3360. }
  3361. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3362. /***/ }),
  3363. /* 24 */
  3364. /*!************************************************************!*\
  3365. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  3366. \************************************************************/
  3367. /*! no static exports found */
  3368. /***/ (function(module, exports, __webpack_require__) {
  3369. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  3370. function _defineProperties(target, props) {
  3371. for (var i = 0; i < props.length; i++) {
  3372. var descriptor = props[i];
  3373. descriptor.enumerable = descriptor.enumerable || false;
  3374. descriptor.configurable = true;
  3375. if ("value" in descriptor) descriptor.writable = true;
  3376. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  3377. }
  3378. }
  3379. function _createClass(Constructor, protoProps, staticProps) {
  3380. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  3381. if (staticProps) _defineProperties(Constructor, staticProps);
  3382. Object.defineProperty(Constructor, "prototype", {
  3383. writable: false
  3384. });
  3385. return Constructor;
  3386. }
  3387. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3388. /***/ }),
  3389. /* 25 */
  3390. /*!******************************************************************************************!*\
  3391. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  3392. \******************************************************************************************/
  3393. /*! exports provided: default */
  3394. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3395. "use strict";
  3396. __webpack_require__.r(__webpack_exports__);
  3397. /* WEBPACK VAR INJECTION */(function(global) {/*!
  3398. * Vue.js v2.6.11
  3399. * (c) 2014-2024 Evan You
  3400. * Released under the MIT License.
  3401. */
  3402. /* */
  3403. var emptyObject = Object.freeze({});
  3404. // These helpers produce better VM code in JS engines due to their
  3405. // explicitness and function inlining.
  3406. function isUndef (v) {
  3407. return v === undefined || v === null
  3408. }
  3409. function isDef (v) {
  3410. return v !== undefined && v !== null
  3411. }
  3412. function isTrue (v) {
  3413. return v === true
  3414. }
  3415. function isFalse (v) {
  3416. return v === false
  3417. }
  3418. /**
  3419. * Check if value is primitive.
  3420. */
  3421. function isPrimitive (value) {
  3422. return (
  3423. typeof value === 'string' ||
  3424. typeof value === 'number' ||
  3425. // $flow-disable-line
  3426. typeof value === 'symbol' ||
  3427. typeof value === 'boolean'
  3428. )
  3429. }
  3430. /**
  3431. * Quick object check - this is primarily used to tell
  3432. * Objects from primitive values when we know the value
  3433. * is a JSON-compliant type.
  3434. */
  3435. function isObject (obj) {
  3436. return obj !== null && typeof obj === 'object'
  3437. }
  3438. /**
  3439. * Get the raw type string of a value, e.g., [object Object].
  3440. */
  3441. var _toString = Object.prototype.toString;
  3442. function toRawType (value) {
  3443. return _toString.call(value).slice(8, -1)
  3444. }
  3445. /**
  3446. * Strict object type check. Only returns true
  3447. * for plain JavaScript objects.
  3448. */
  3449. function isPlainObject (obj) {
  3450. return _toString.call(obj) === '[object Object]'
  3451. }
  3452. function isRegExp (v) {
  3453. return _toString.call(v) === '[object RegExp]'
  3454. }
  3455. /**
  3456. * Check if val is a valid array index.
  3457. */
  3458. function isValidArrayIndex (val) {
  3459. var n = parseFloat(String(val));
  3460. return n >= 0 && Math.floor(n) === n && isFinite(val)
  3461. }
  3462. function isPromise (val) {
  3463. return (
  3464. isDef(val) &&
  3465. typeof val.then === 'function' &&
  3466. typeof val.catch === 'function'
  3467. )
  3468. }
  3469. /**
  3470. * Convert a value to a string that is actually rendered.
  3471. */
  3472. function toString (val) {
  3473. return val == null
  3474. ? ''
  3475. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  3476. ? JSON.stringify(val, null, 2)
  3477. : String(val)
  3478. }
  3479. /**
  3480. * Convert an input value to a number for persistence.
  3481. * If the conversion fails, return original string.
  3482. */
  3483. function toNumber (val) {
  3484. var n = parseFloat(val);
  3485. return isNaN(n) ? val : n
  3486. }
  3487. /**
  3488. * Make a map and return a function for checking if a key
  3489. * is in that map.
  3490. */
  3491. function makeMap (
  3492. str,
  3493. expectsLowerCase
  3494. ) {
  3495. var map = Object.create(null);
  3496. var list = str.split(',');
  3497. for (var i = 0; i < list.length; i++) {
  3498. map[list[i]] = true;
  3499. }
  3500. return expectsLowerCase
  3501. ? function (val) { return map[val.toLowerCase()]; }
  3502. : function (val) { return map[val]; }
  3503. }
  3504. /**
  3505. * Check if a tag is a built-in tag.
  3506. */
  3507. var isBuiltInTag = makeMap('slot,component', true);
  3508. /**
  3509. * Check if an attribute is a reserved attribute.
  3510. */
  3511. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  3512. /**
  3513. * Remove an item from an array.
  3514. */
  3515. function remove (arr, item) {
  3516. if (arr.length) {
  3517. var index = arr.indexOf(item);
  3518. if (index > -1) {
  3519. return arr.splice(index, 1)
  3520. }
  3521. }
  3522. }
  3523. /**
  3524. * Check whether an object has the property.
  3525. */
  3526. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3527. function hasOwn (obj, key) {
  3528. return hasOwnProperty.call(obj, key)
  3529. }
  3530. /**
  3531. * Create a cached version of a pure function.
  3532. */
  3533. function cached (fn) {
  3534. var cache = Object.create(null);
  3535. return (function cachedFn (str) {
  3536. var hit = cache[str];
  3537. return hit || (cache[str] = fn(str))
  3538. })
  3539. }
  3540. /**
  3541. * Camelize a hyphen-delimited string.
  3542. */
  3543. var camelizeRE = /-(\w)/g;
  3544. var camelize = cached(function (str) {
  3545. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  3546. });
  3547. /**
  3548. * Capitalize a string.
  3549. */
  3550. var capitalize = cached(function (str) {
  3551. return str.charAt(0).toUpperCase() + str.slice(1)
  3552. });
  3553. /**
  3554. * Hyphenate a camelCase string.
  3555. */
  3556. var hyphenateRE = /\B([A-Z])/g;
  3557. var hyphenate = cached(function (str) {
  3558. return str.replace(hyphenateRE, '-$1').toLowerCase()
  3559. });
  3560. /**
  3561. * Simple bind polyfill for environments that do not support it,
  3562. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  3563. * since native bind is now performant enough in most browsers.
  3564. * But removing it would mean breaking code that was able to run in
  3565. * PhantomJS 1.x, so this must be kept for backward compatibility.
  3566. */
  3567. /* istanbul ignore next */
  3568. function polyfillBind (fn, ctx) {
  3569. function boundFn (a) {
  3570. var l = arguments.length;
  3571. return l
  3572. ? l > 1
  3573. ? fn.apply(ctx, arguments)
  3574. : fn.call(ctx, a)
  3575. : fn.call(ctx)
  3576. }
  3577. boundFn._length = fn.length;
  3578. return boundFn
  3579. }
  3580. function nativeBind (fn, ctx) {
  3581. return fn.bind(ctx)
  3582. }
  3583. var bind = Function.prototype.bind
  3584. ? nativeBind
  3585. : polyfillBind;
  3586. /**
  3587. * Convert an Array-like object to a real Array.
  3588. */
  3589. function toArray (list, start) {
  3590. start = start || 0;
  3591. var i = list.length - start;
  3592. var ret = new Array(i);
  3593. while (i--) {
  3594. ret[i] = list[i + start];
  3595. }
  3596. return ret
  3597. }
  3598. /**
  3599. * Mix properties into target object.
  3600. */
  3601. function extend (to, _from) {
  3602. for (var key in _from) {
  3603. to[key] = _from[key];
  3604. }
  3605. return to
  3606. }
  3607. /**
  3608. * Merge an Array of Objects into a single Object.
  3609. */
  3610. function toObject (arr) {
  3611. var res = {};
  3612. for (var i = 0; i < arr.length; i++) {
  3613. if (arr[i]) {
  3614. extend(res, arr[i]);
  3615. }
  3616. }
  3617. return res
  3618. }
  3619. /* eslint-disable no-unused-vars */
  3620. /**
  3621. * Perform no operation.
  3622. * Stubbing args to make Flow happy without leaving useless transpiled code
  3623. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  3624. */
  3625. function noop (a, b, c) {}
  3626. /**
  3627. * Always return false.
  3628. */
  3629. var no = function (a, b, c) { return false; };
  3630. /* eslint-enable no-unused-vars */
  3631. /**
  3632. * Return the same value.
  3633. */
  3634. var identity = function (_) { return _; };
  3635. /**
  3636. * Check if two values are loosely equal - that is,
  3637. * if they are plain objects, do they have the same shape?
  3638. */
  3639. function looseEqual (a, b) {
  3640. if (a === b) { return true }
  3641. var isObjectA = isObject(a);
  3642. var isObjectB = isObject(b);
  3643. if (isObjectA && isObjectB) {
  3644. try {
  3645. var isArrayA = Array.isArray(a);
  3646. var isArrayB = Array.isArray(b);
  3647. if (isArrayA && isArrayB) {
  3648. return a.length === b.length && a.every(function (e, i) {
  3649. return looseEqual(e, b[i])
  3650. })
  3651. } else if (a instanceof Date && b instanceof Date) {
  3652. return a.getTime() === b.getTime()
  3653. } else if (!isArrayA && !isArrayB) {
  3654. var keysA = Object.keys(a);
  3655. var keysB = Object.keys(b);
  3656. return keysA.length === keysB.length && keysA.every(function (key) {
  3657. return looseEqual(a[key], b[key])
  3658. })
  3659. } else {
  3660. /* istanbul ignore next */
  3661. return false
  3662. }
  3663. } catch (e) {
  3664. /* istanbul ignore next */
  3665. return false
  3666. }
  3667. } else if (!isObjectA && !isObjectB) {
  3668. return String(a) === String(b)
  3669. } else {
  3670. return false
  3671. }
  3672. }
  3673. /**
  3674. * Return the first index at which a loosely equal value can be
  3675. * found in the array (if value is a plain object, the array must
  3676. * contain an object of the same shape), or -1 if it is not present.
  3677. */
  3678. function looseIndexOf (arr, val) {
  3679. for (var i = 0; i < arr.length; i++) {
  3680. if (looseEqual(arr[i], val)) { return i }
  3681. }
  3682. return -1
  3683. }
  3684. /**
  3685. * Ensure a function is called only once.
  3686. */
  3687. function once (fn) {
  3688. var called = false;
  3689. return function () {
  3690. if (!called) {
  3691. called = true;
  3692. fn.apply(this, arguments);
  3693. }
  3694. }
  3695. }
  3696. var ASSET_TYPES = [
  3697. 'component',
  3698. 'directive',
  3699. 'filter'
  3700. ];
  3701. var LIFECYCLE_HOOKS = [
  3702. 'beforeCreate',
  3703. 'created',
  3704. 'beforeMount',
  3705. 'mounted',
  3706. 'beforeUpdate',
  3707. 'updated',
  3708. 'beforeDestroy',
  3709. 'destroyed',
  3710. 'activated',
  3711. 'deactivated',
  3712. 'errorCaptured',
  3713. 'serverPrefetch'
  3714. ];
  3715. /* */
  3716. var config = ({
  3717. /**
  3718. * Option merge strategies (used in core/util/options)
  3719. */
  3720. // $flow-disable-line
  3721. optionMergeStrategies: Object.create(null),
  3722. /**
  3723. * Whether to suppress warnings.
  3724. */
  3725. silent: false,
  3726. /**
  3727. * Show production mode tip message on boot?
  3728. */
  3729. productionTip: "development" !== 'production',
  3730. /**
  3731. * Whether to enable devtools
  3732. */
  3733. devtools: "development" !== 'production',
  3734. /**
  3735. * Whether to record perf
  3736. */
  3737. performance: false,
  3738. /**
  3739. * Error handler for watcher errors
  3740. */
  3741. errorHandler: null,
  3742. /**
  3743. * Warn handler for watcher warns
  3744. */
  3745. warnHandler: null,
  3746. /**
  3747. * Ignore certain custom elements
  3748. */
  3749. ignoredElements: [],
  3750. /**
  3751. * Custom user key aliases for v-on
  3752. */
  3753. // $flow-disable-line
  3754. keyCodes: Object.create(null),
  3755. /**
  3756. * Check if a tag is reserved so that it cannot be registered as a
  3757. * component. This is platform-dependent and may be overwritten.
  3758. */
  3759. isReservedTag: no,
  3760. /**
  3761. * Check if an attribute is reserved so that it cannot be used as a component
  3762. * prop. This is platform-dependent and may be overwritten.
  3763. */
  3764. isReservedAttr: no,
  3765. /**
  3766. * Check if a tag is an unknown element.
  3767. * Platform-dependent.
  3768. */
  3769. isUnknownElement: no,
  3770. /**
  3771. * Get the namespace of an element
  3772. */
  3773. getTagNamespace: noop,
  3774. /**
  3775. * Parse the real tag name for the specific platform.
  3776. */
  3777. parsePlatformTagName: identity,
  3778. /**
  3779. * Check if an attribute must be bound using property, e.g. value
  3780. * Platform-dependent.
  3781. */
  3782. mustUseProp: no,
  3783. /**
  3784. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  3785. * This will significantly reduce performance if set to false.
  3786. */
  3787. async: true,
  3788. /**
  3789. * Exposed for legacy reasons
  3790. */
  3791. _lifecycleHooks: LIFECYCLE_HOOKS
  3792. });
  3793. /* */
  3794. /**
  3795. * unicode letters used for parsing html tags, component names and property paths.
  3796. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  3797. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  3798. */
  3799. 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/;
  3800. /**
  3801. * Check if a string starts with $ or _
  3802. */
  3803. function isReserved (str) {
  3804. var c = (str + '').charCodeAt(0);
  3805. return c === 0x24 || c === 0x5F
  3806. }
  3807. /**
  3808. * Define a property.
  3809. */
  3810. function def (obj, key, val, enumerable) {
  3811. Object.defineProperty(obj, key, {
  3812. value: val,
  3813. enumerable: !!enumerable,
  3814. writable: true,
  3815. configurable: true
  3816. });
  3817. }
  3818. /**
  3819. * Parse simple path.
  3820. */
  3821. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  3822. function parsePath (path) {
  3823. if (bailRE.test(path)) {
  3824. return
  3825. }
  3826. var segments = path.split('.');
  3827. return function (obj) {
  3828. for (var i = 0; i < segments.length; i++) {
  3829. if (!obj) { return }
  3830. obj = obj[segments[i]];
  3831. }
  3832. return obj
  3833. }
  3834. }
  3835. /* */
  3836. // can we use __proto__?
  3837. var hasProto = '__proto__' in {};
  3838. // Browser environment sniffing
  3839. var inBrowser = typeof window !== 'undefined';
  3840. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  3841. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  3842. var UA = inBrowser && window.navigator && window.navigator.userAgent.toLowerCase();
  3843. var isIE = UA && /msie|trident/.test(UA);
  3844. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  3845. var isEdge = UA && UA.indexOf('edge/') > 0;
  3846. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  3847. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  3848. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  3849. var isPhantomJS = UA && /phantomjs/.test(UA);
  3850. var isFF = UA && UA.match(/firefox\/(\d+)/);
  3851. // Firefox has a "watch" function on Object.prototype...
  3852. var nativeWatch = ({}).watch;
  3853. if (inBrowser) {
  3854. try {
  3855. var opts = {};
  3856. Object.defineProperty(opts, 'passive', ({
  3857. get: function get () {
  3858. }
  3859. })); // https://github.com/facebook/flow/issues/285
  3860. window.addEventListener('test-passive', null, opts);
  3861. } catch (e) {}
  3862. }
  3863. // this needs to be lazy-evaled because vue may be required before
  3864. // vue-server-renderer can set VUE_ENV
  3865. var _isServer;
  3866. var isServerRendering = function () {
  3867. if (_isServer === undefined) {
  3868. /* istanbul ignore if */
  3869. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  3870. // detect presence of vue-server-renderer and avoid
  3871. // Webpack shimming the process
  3872. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  3873. } else {
  3874. _isServer = false;
  3875. }
  3876. }
  3877. return _isServer
  3878. };
  3879. // detect devtools
  3880. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  3881. /* istanbul ignore next */
  3882. function isNative (Ctor) {
  3883. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  3884. }
  3885. var hasSymbol =
  3886. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  3887. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  3888. var _Set;
  3889. /* istanbul ignore if */ // $flow-disable-line
  3890. if (typeof Set !== 'undefined' && isNative(Set)) {
  3891. // use native Set when available.
  3892. _Set = Set;
  3893. } else {
  3894. // a non-standard Set polyfill that only works with primitive keys.
  3895. _Set = /*@__PURE__*/(function () {
  3896. function Set () {
  3897. this.set = Object.create(null);
  3898. }
  3899. Set.prototype.has = function has (key) {
  3900. return this.set[key] === true
  3901. };
  3902. Set.prototype.add = function add (key) {
  3903. this.set[key] = true;
  3904. };
  3905. Set.prototype.clear = function clear () {
  3906. this.set = Object.create(null);
  3907. };
  3908. return Set;
  3909. }());
  3910. }
  3911. /* */
  3912. var warn = noop;
  3913. var tip = noop;
  3914. var generateComponentTrace = (noop); // work around flow check
  3915. var formatComponentName = (noop);
  3916. if (true) {
  3917. var hasConsole = typeof console !== 'undefined';
  3918. var classifyRE = /(?:^|[-_])(\w)/g;
  3919. var classify = function (str) { return str
  3920. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  3921. .replace(/[-_]/g, ''); };
  3922. warn = function (msg, vm) {
  3923. var trace = vm ? generateComponentTrace(vm) : '';
  3924. if (config.warnHandler) {
  3925. config.warnHandler.call(null, msg, vm, trace);
  3926. } else if (hasConsole && (!config.silent)) {
  3927. console.error(("[Vue warn]: " + msg + trace));
  3928. }
  3929. };
  3930. tip = function (msg, vm) {
  3931. if (hasConsole && (!config.silent)) {
  3932. console.warn("[Vue tip]: " + msg + (
  3933. vm ? generateComponentTrace(vm) : ''
  3934. ));
  3935. }
  3936. };
  3937. formatComponentName = function (vm, includeFile) {
  3938. if (vm.$root === vm) {
  3939. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  3940. return ('') + vm.$options.__file
  3941. }
  3942. return '<Root>'
  3943. }
  3944. var options = typeof vm === 'function' && vm.cid != null
  3945. ? vm.options
  3946. : vm._isVue
  3947. ? vm.$options || vm.constructor.options
  3948. : vm;
  3949. var name = options.name || options._componentTag;
  3950. var file = options.__file;
  3951. if (!name && file) {
  3952. var match = file.match(/([^/\\]+)\.vue$/);
  3953. name = match && match[1];
  3954. }
  3955. return (
  3956. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  3957. (file && includeFile !== false ? (" at " + file) : '')
  3958. )
  3959. };
  3960. var repeat = function (str, n) {
  3961. var res = '';
  3962. while (n) {
  3963. if (n % 2 === 1) { res += str; }
  3964. if (n > 1) { str += str; }
  3965. n >>= 1;
  3966. }
  3967. return res
  3968. };
  3969. generateComponentTrace = function (vm) {
  3970. if (vm._isVue && vm.$parent) {
  3971. var tree = [];
  3972. var currentRecursiveSequence = 0;
  3973. while (vm && vm.$options.name !== 'PageBody') {
  3974. if (tree.length > 0) {
  3975. var last = tree[tree.length - 1];
  3976. if (last.constructor === vm.constructor) {
  3977. currentRecursiveSequence++;
  3978. vm = vm.$parent;
  3979. continue
  3980. } else if (currentRecursiveSequence > 0) {
  3981. tree[tree.length - 1] = [last, currentRecursiveSequence];
  3982. currentRecursiveSequence = 0;
  3983. }
  3984. }
  3985. !vm.$options.isReserved && tree.push(vm);
  3986. vm = vm.$parent;
  3987. }
  3988. return '\n\nfound in\n\n' + tree
  3989. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  3990. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  3991. : formatComponentName(vm))); })
  3992. .join('\n')
  3993. } else {
  3994. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  3995. }
  3996. };
  3997. }
  3998. /* */
  3999. var uid = 0;
  4000. /**
  4001. * A dep is an observable that can have multiple
  4002. * directives subscribing to it.
  4003. */
  4004. var Dep = function Dep () {
  4005. this.id = uid++;
  4006. this.subs = [];
  4007. };
  4008. Dep.prototype.addSub = function addSub (sub) {
  4009. this.subs.push(sub);
  4010. };
  4011. Dep.prototype.removeSub = function removeSub (sub) {
  4012. remove(this.subs, sub);
  4013. };
  4014. Dep.prototype.depend = function depend () {
  4015. if (Dep.SharedObject.target) {
  4016. Dep.SharedObject.target.addDep(this);
  4017. }
  4018. };
  4019. Dep.prototype.notify = function notify () {
  4020. // stabilize the subscriber list first
  4021. var subs = this.subs.slice();
  4022. if ( true && !config.async) {
  4023. // subs aren't sorted in scheduler if not running async
  4024. // we need to sort them now to make sure they fire in correct
  4025. // order
  4026. subs.sort(function (a, b) { return a.id - b.id; });
  4027. }
  4028. for (var i = 0, l = subs.length; i < l; i++) {
  4029. subs[i].update();
  4030. }
  4031. };
  4032. // The current target watcher being evaluated.
  4033. // This is globally unique because only one watcher
  4034. // can be evaluated at a time.
  4035. // fixed by xxxxxx (nvue shared vuex)
  4036. /* eslint-disable no-undef */
  4037. Dep.SharedObject = {};
  4038. Dep.SharedObject.target = null;
  4039. Dep.SharedObject.targetStack = [];
  4040. function pushTarget (target) {
  4041. Dep.SharedObject.targetStack.push(target);
  4042. Dep.SharedObject.target = target;
  4043. Dep.target = target;
  4044. }
  4045. function popTarget () {
  4046. Dep.SharedObject.targetStack.pop();
  4047. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  4048. Dep.target = Dep.SharedObject.target;
  4049. }
  4050. /* */
  4051. var VNode = function VNode (
  4052. tag,
  4053. data,
  4054. children,
  4055. text,
  4056. elm,
  4057. context,
  4058. componentOptions,
  4059. asyncFactory
  4060. ) {
  4061. this.tag = tag;
  4062. this.data = data;
  4063. this.children = children;
  4064. this.text = text;
  4065. this.elm = elm;
  4066. this.ns = undefined;
  4067. this.context = context;
  4068. this.fnContext = undefined;
  4069. this.fnOptions = undefined;
  4070. this.fnScopeId = undefined;
  4071. this.key = data && data.key;
  4072. this.componentOptions = componentOptions;
  4073. this.componentInstance = undefined;
  4074. this.parent = undefined;
  4075. this.raw = false;
  4076. this.isStatic = false;
  4077. this.isRootInsert = true;
  4078. this.isComment = false;
  4079. this.isCloned = false;
  4080. this.isOnce = false;
  4081. this.asyncFactory = asyncFactory;
  4082. this.asyncMeta = undefined;
  4083. this.isAsyncPlaceholder = false;
  4084. };
  4085. var prototypeAccessors = { child: { configurable: true } };
  4086. // DEPRECATED: alias for componentInstance for backwards compat.
  4087. /* istanbul ignore next */
  4088. prototypeAccessors.child.get = function () {
  4089. return this.componentInstance
  4090. };
  4091. Object.defineProperties( VNode.prototype, prototypeAccessors );
  4092. var createEmptyVNode = function (text) {
  4093. if ( text === void 0 ) text = '';
  4094. var node = new VNode();
  4095. node.text = text;
  4096. node.isComment = true;
  4097. return node
  4098. };
  4099. function createTextVNode (val) {
  4100. return new VNode(undefined, undefined, undefined, String(val))
  4101. }
  4102. // optimized shallow clone
  4103. // used for static nodes and slot nodes because they may be reused across
  4104. // multiple renders, cloning them avoids errors when DOM manipulations rely
  4105. // on their elm reference.
  4106. function cloneVNode (vnode) {
  4107. var cloned = new VNode(
  4108. vnode.tag,
  4109. vnode.data,
  4110. // #7975
  4111. // clone children array to avoid mutating original in case of cloning
  4112. // a child.
  4113. vnode.children && vnode.children.slice(),
  4114. vnode.text,
  4115. vnode.elm,
  4116. vnode.context,
  4117. vnode.componentOptions,
  4118. vnode.asyncFactory
  4119. );
  4120. cloned.ns = vnode.ns;
  4121. cloned.isStatic = vnode.isStatic;
  4122. cloned.key = vnode.key;
  4123. cloned.isComment = vnode.isComment;
  4124. cloned.fnContext = vnode.fnContext;
  4125. cloned.fnOptions = vnode.fnOptions;
  4126. cloned.fnScopeId = vnode.fnScopeId;
  4127. cloned.asyncMeta = vnode.asyncMeta;
  4128. cloned.isCloned = true;
  4129. return cloned
  4130. }
  4131. /*
  4132. * not type checking this file because flow doesn't play well with
  4133. * dynamically accessing methods on Array prototype
  4134. */
  4135. var arrayProto = Array.prototype;
  4136. var arrayMethods = Object.create(arrayProto);
  4137. var methodsToPatch = [
  4138. 'push',
  4139. 'pop',
  4140. 'shift',
  4141. 'unshift',
  4142. 'splice',
  4143. 'sort',
  4144. 'reverse'
  4145. ];
  4146. /**
  4147. * Intercept mutating methods and emit events
  4148. */
  4149. methodsToPatch.forEach(function (method) {
  4150. // cache original method
  4151. var original = arrayProto[method];
  4152. def(arrayMethods, method, function mutator () {
  4153. var args = [], len = arguments.length;
  4154. while ( len-- ) args[ len ] = arguments[ len ];
  4155. var result = original.apply(this, args);
  4156. var ob = this.__ob__;
  4157. var inserted;
  4158. switch (method) {
  4159. case 'push':
  4160. case 'unshift':
  4161. inserted = args;
  4162. break
  4163. case 'splice':
  4164. inserted = args.slice(2);
  4165. break
  4166. }
  4167. if (inserted) { ob.observeArray(inserted); }
  4168. // notify change
  4169. ob.dep.notify();
  4170. return result
  4171. });
  4172. });
  4173. /* */
  4174. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  4175. /**
  4176. * In some cases we may want to disable observation inside a component's
  4177. * update computation.
  4178. */
  4179. var shouldObserve = true;
  4180. function toggleObserving (value) {
  4181. shouldObserve = value;
  4182. }
  4183. /**
  4184. * Observer class that is attached to each observed
  4185. * object. Once attached, the observer converts the target
  4186. * object's property keys into getter/setters that
  4187. * collect dependencies and dispatch updates.
  4188. */
  4189. var Observer = function Observer (value) {
  4190. this.value = value;
  4191. this.dep = new Dep();
  4192. this.vmCount = 0;
  4193. def(value, '__ob__', this);
  4194. if (Array.isArray(value)) {
  4195. if (hasProto) {
  4196. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  4197. if(value.push !== value.__proto__.push){
  4198. copyAugment(value, arrayMethods, arrayKeys);
  4199. } else {
  4200. protoAugment(value, arrayMethods);
  4201. }
  4202. }
  4203. } else {
  4204. copyAugment(value, arrayMethods, arrayKeys);
  4205. }
  4206. this.observeArray(value);
  4207. } else {
  4208. this.walk(value);
  4209. }
  4210. };
  4211. /**
  4212. * Walk through all properties and convert them into
  4213. * getter/setters. This method should only be called when
  4214. * value type is Object.
  4215. */
  4216. Observer.prototype.walk = function walk (obj) {
  4217. var keys = Object.keys(obj);
  4218. for (var i = 0; i < keys.length; i++) {
  4219. defineReactive$$1(obj, keys[i]);
  4220. }
  4221. };
  4222. /**
  4223. * Observe a list of Array items.
  4224. */
  4225. Observer.prototype.observeArray = function observeArray (items) {
  4226. for (var i = 0, l = items.length; i < l; i++) {
  4227. observe(items[i]);
  4228. }
  4229. };
  4230. // helpers
  4231. /**
  4232. * Augment a target Object or Array by intercepting
  4233. * the prototype chain using __proto__
  4234. */
  4235. function protoAugment (target, src) {
  4236. /* eslint-disable no-proto */
  4237. target.__proto__ = src;
  4238. /* eslint-enable no-proto */
  4239. }
  4240. /**
  4241. * Augment a target Object or Array by defining
  4242. * hidden properties.
  4243. */
  4244. /* istanbul ignore next */
  4245. function copyAugment (target, src, keys) {
  4246. for (var i = 0, l = keys.length; i < l; i++) {
  4247. var key = keys[i];
  4248. def(target, key, src[key]);
  4249. }
  4250. }
  4251. /**
  4252. * Attempt to create an observer instance for a value,
  4253. * returns the new observer if successfully observed,
  4254. * or the existing observer if the value already has one.
  4255. */
  4256. function observe (value, asRootData) {
  4257. if (!isObject(value) || value instanceof VNode) {
  4258. return
  4259. }
  4260. var ob;
  4261. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  4262. ob = value.__ob__;
  4263. } else if (
  4264. shouldObserve &&
  4265. !isServerRendering() &&
  4266. (Array.isArray(value) || isPlainObject(value)) &&
  4267. Object.isExtensible(value) &&
  4268. !value._isVue &&
  4269. !value.__v_isMPComponent
  4270. ) {
  4271. ob = new Observer(value);
  4272. }
  4273. if (asRootData && ob) {
  4274. ob.vmCount++;
  4275. }
  4276. return ob
  4277. }
  4278. /**
  4279. * Define a reactive property on an Object.
  4280. */
  4281. function defineReactive$$1 (
  4282. obj,
  4283. key,
  4284. val,
  4285. customSetter,
  4286. shallow
  4287. ) {
  4288. var dep = new Dep();
  4289. var property = Object.getOwnPropertyDescriptor(obj, key);
  4290. if (property && property.configurable === false) {
  4291. return
  4292. }
  4293. // cater for pre-defined getter/setters
  4294. var getter = property && property.get;
  4295. var setter = property && property.set;
  4296. if ((!getter || setter) && arguments.length === 2) {
  4297. val = obj[key];
  4298. }
  4299. var childOb = !shallow && observe(val);
  4300. Object.defineProperty(obj, key, {
  4301. enumerable: true,
  4302. configurable: true,
  4303. get: function reactiveGetter () {
  4304. var value = getter ? getter.call(obj) : val;
  4305. if (Dep.SharedObject.target) { // fixed by xxxxxx
  4306. dep.depend();
  4307. if (childOb) {
  4308. childOb.dep.depend();
  4309. if (Array.isArray(value)) {
  4310. dependArray(value);
  4311. }
  4312. }
  4313. }
  4314. return value
  4315. },
  4316. set: function reactiveSetter (newVal) {
  4317. var value = getter ? getter.call(obj) : val;
  4318. /* eslint-disable no-self-compare */
  4319. if (newVal === value || (newVal !== newVal && value !== value)) {
  4320. return
  4321. }
  4322. /* eslint-enable no-self-compare */
  4323. if ( true && customSetter) {
  4324. customSetter();
  4325. }
  4326. // #7981: for accessor properties without setter
  4327. if (getter && !setter) { return }
  4328. if (setter) {
  4329. setter.call(obj, newVal);
  4330. } else {
  4331. val = newVal;
  4332. }
  4333. childOb = !shallow && observe(newVal);
  4334. dep.notify();
  4335. }
  4336. });
  4337. }
  4338. /**
  4339. * Set a property on an object. Adds the new property and
  4340. * triggers change notification if the property doesn't
  4341. * already exist.
  4342. */
  4343. function set (target, key, val) {
  4344. if ( true &&
  4345. (isUndef(target) || isPrimitive(target))
  4346. ) {
  4347. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  4348. }
  4349. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4350. target.length = Math.max(target.length, key);
  4351. target.splice(key, 1, val);
  4352. return val
  4353. }
  4354. if (key in target && !(key in Object.prototype)) {
  4355. target[key] = val;
  4356. return val
  4357. }
  4358. var ob = (target).__ob__;
  4359. if (target._isVue || (ob && ob.vmCount)) {
  4360. true && warn(
  4361. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  4362. 'at runtime - declare it upfront in the data option.'
  4363. );
  4364. return val
  4365. }
  4366. if (!ob) {
  4367. target[key] = val;
  4368. return val
  4369. }
  4370. defineReactive$$1(ob.value, key, val);
  4371. ob.dep.notify();
  4372. return val
  4373. }
  4374. /**
  4375. * Delete a property and trigger change if necessary.
  4376. */
  4377. function del (target, key) {
  4378. if ( true &&
  4379. (isUndef(target) || isPrimitive(target))
  4380. ) {
  4381. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  4382. }
  4383. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4384. target.splice(key, 1);
  4385. return
  4386. }
  4387. var ob = (target).__ob__;
  4388. if (target._isVue || (ob && ob.vmCount)) {
  4389. true && warn(
  4390. 'Avoid deleting properties on a Vue instance or its root $data ' +
  4391. '- just set it to null.'
  4392. );
  4393. return
  4394. }
  4395. if (!hasOwn(target, key)) {
  4396. return
  4397. }
  4398. delete target[key];
  4399. if (!ob) {
  4400. return
  4401. }
  4402. ob.dep.notify();
  4403. }
  4404. /**
  4405. * Collect dependencies on array elements when the array is touched, since
  4406. * we cannot intercept array element access like property getters.
  4407. */
  4408. function dependArray (value) {
  4409. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  4410. e = value[i];
  4411. e && e.__ob__ && e.__ob__.dep.depend();
  4412. if (Array.isArray(e)) {
  4413. dependArray(e);
  4414. }
  4415. }
  4416. }
  4417. /* */
  4418. /**
  4419. * Option overwriting strategies are functions that handle
  4420. * how to merge a parent option value and a child option
  4421. * value into the final value.
  4422. */
  4423. var strats = config.optionMergeStrategies;
  4424. /**
  4425. * Options with restrictions
  4426. */
  4427. if (true) {
  4428. strats.el = strats.propsData = function (parent, child, vm, key) {
  4429. if (!vm) {
  4430. warn(
  4431. "option \"" + key + "\" can only be used during instance " +
  4432. 'creation with the `new` keyword.'
  4433. );
  4434. }
  4435. return defaultStrat(parent, child)
  4436. };
  4437. }
  4438. /**
  4439. * Helper that recursively merges two data objects together.
  4440. */
  4441. function mergeData (to, from) {
  4442. if (!from) { return to }
  4443. var key, toVal, fromVal;
  4444. var keys = hasSymbol
  4445. ? Reflect.ownKeys(from)
  4446. : Object.keys(from);
  4447. for (var i = 0; i < keys.length; i++) {
  4448. key = keys[i];
  4449. // in case the object is already observed...
  4450. if (key === '__ob__') { continue }
  4451. toVal = to[key];
  4452. fromVal = from[key];
  4453. if (!hasOwn(to, key)) {
  4454. set(to, key, fromVal);
  4455. } else if (
  4456. toVal !== fromVal &&
  4457. isPlainObject(toVal) &&
  4458. isPlainObject(fromVal)
  4459. ) {
  4460. mergeData(toVal, fromVal);
  4461. }
  4462. }
  4463. return to
  4464. }
  4465. /**
  4466. * Data
  4467. */
  4468. function mergeDataOrFn (
  4469. parentVal,
  4470. childVal,
  4471. vm
  4472. ) {
  4473. if (!vm) {
  4474. // in a Vue.extend merge, both should be functions
  4475. if (!childVal) {
  4476. return parentVal
  4477. }
  4478. if (!parentVal) {
  4479. return childVal
  4480. }
  4481. // when parentVal & childVal are both present,
  4482. // we need to return a function that returns the
  4483. // merged result of both functions... no need to
  4484. // check if parentVal is a function here because
  4485. // it has to be a function to pass previous merges.
  4486. return function mergedDataFn () {
  4487. return mergeData(
  4488. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  4489. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  4490. )
  4491. }
  4492. } else {
  4493. return function mergedInstanceDataFn () {
  4494. // instance merge
  4495. var instanceData = typeof childVal === 'function'
  4496. ? childVal.call(vm, vm)
  4497. : childVal;
  4498. var defaultData = typeof parentVal === 'function'
  4499. ? parentVal.call(vm, vm)
  4500. : parentVal;
  4501. if (instanceData) {
  4502. return mergeData(instanceData, defaultData)
  4503. } else {
  4504. return defaultData
  4505. }
  4506. }
  4507. }
  4508. }
  4509. strats.data = function (
  4510. parentVal,
  4511. childVal,
  4512. vm
  4513. ) {
  4514. if (!vm) {
  4515. if (childVal && typeof childVal !== 'function') {
  4516. true && warn(
  4517. 'The "data" option should be a function ' +
  4518. 'that returns a per-instance value in component ' +
  4519. 'definitions.',
  4520. vm
  4521. );
  4522. return parentVal
  4523. }
  4524. return mergeDataOrFn(parentVal, childVal)
  4525. }
  4526. return mergeDataOrFn(parentVal, childVal, vm)
  4527. };
  4528. /**
  4529. * Hooks and props are merged as arrays.
  4530. */
  4531. function mergeHook (
  4532. parentVal,
  4533. childVal
  4534. ) {
  4535. var res = childVal
  4536. ? parentVal
  4537. ? parentVal.concat(childVal)
  4538. : Array.isArray(childVal)
  4539. ? childVal
  4540. : [childVal]
  4541. : parentVal;
  4542. return res
  4543. ? dedupeHooks(res)
  4544. : res
  4545. }
  4546. function dedupeHooks (hooks) {
  4547. var res = [];
  4548. for (var i = 0; i < hooks.length; i++) {
  4549. if (res.indexOf(hooks[i]) === -1) {
  4550. res.push(hooks[i]);
  4551. }
  4552. }
  4553. return res
  4554. }
  4555. LIFECYCLE_HOOKS.forEach(function (hook) {
  4556. strats[hook] = mergeHook;
  4557. });
  4558. /**
  4559. * Assets
  4560. *
  4561. * When a vm is present (instance creation), we need to do
  4562. * a three-way merge between constructor options, instance
  4563. * options and parent options.
  4564. */
  4565. function mergeAssets (
  4566. parentVal,
  4567. childVal,
  4568. vm,
  4569. key
  4570. ) {
  4571. var res = Object.create(parentVal || null);
  4572. if (childVal) {
  4573. true && assertObjectType(key, childVal, vm);
  4574. return extend(res, childVal)
  4575. } else {
  4576. return res
  4577. }
  4578. }
  4579. ASSET_TYPES.forEach(function (type) {
  4580. strats[type + 's'] = mergeAssets;
  4581. });
  4582. /**
  4583. * Watchers.
  4584. *
  4585. * Watchers hashes should not overwrite one
  4586. * another, so we merge them as arrays.
  4587. */
  4588. strats.watch = function (
  4589. parentVal,
  4590. childVal,
  4591. vm,
  4592. key
  4593. ) {
  4594. // work around Firefox's Object.prototype.watch...
  4595. if (parentVal === nativeWatch) { parentVal = undefined; }
  4596. if (childVal === nativeWatch) { childVal = undefined; }
  4597. /* istanbul ignore if */
  4598. if (!childVal) { return Object.create(parentVal || null) }
  4599. if (true) {
  4600. assertObjectType(key, childVal, vm);
  4601. }
  4602. if (!parentVal) { return childVal }
  4603. var ret = {};
  4604. extend(ret, parentVal);
  4605. for (var key$1 in childVal) {
  4606. var parent = ret[key$1];
  4607. var child = childVal[key$1];
  4608. if (parent && !Array.isArray(parent)) {
  4609. parent = [parent];
  4610. }
  4611. ret[key$1] = parent
  4612. ? parent.concat(child)
  4613. : Array.isArray(child) ? child : [child];
  4614. }
  4615. return ret
  4616. };
  4617. /**
  4618. * Other object hashes.
  4619. */
  4620. strats.props =
  4621. strats.methods =
  4622. strats.inject =
  4623. strats.computed = function (
  4624. parentVal,
  4625. childVal,
  4626. vm,
  4627. key
  4628. ) {
  4629. if (childVal && "development" !== 'production') {
  4630. assertObjectType(key, childVal, vm);
  4631. }
  4632. if (!parentVal) { return childVal }
  4633. var ret = Object.create(null);
  4634. extend(ret, parentVal);
  4635. if (childVal) { extend(ret, childVal); }
  4636. return ret
  4637. };
  4638. strats.provide = mergeDataOrFn;
  4639. /**
  4640. * Default strategy.
  4641. */
  4642. var defaultStrat = function (parentVal, childVal) {
  4643. return childVal === undefined
  4644. ? parentVal
  4645. : childVal
  4646. };
  4647. /**
  4648. * Validate component names
  4649. */
  4650. function checkComponents (options) {
  4651. for (var key in options.components) {
  4652. validateComponentName(key);
  4653. }
  4654. }
  4655. function validateComponentName (name) {
  4656. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  4657. warn(
  4658. 'Invalid component name: "' + name + '". Component names ' +
  4659. 'should conform to valid custom element name in html5 specification.'
  4660. );
  4661. }
  4662. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  4663. warn(
  4664. 'Do not use built-in or reserved HTML elements as component ' +
  4665. 'id: ' + name
  4666. );
  4667. }
  4668. }
  4669. /**
  4670. * Ensure all props option syntax are normalized into the
  4671. * Object-based format.
  4672. */
  4673. function normalizeProps (options, vm) {
  4674. var props = options.props;
  4675. if (!props) { return }
  4676. var res = {};
  4677. var i, val, name;
  4678. if (Array.isArray(props)) {
  4679. i = props.length;
  4680. while (i--) {
  4681. val = props[i];
  4682. if (typeof val === 'string') {
  4683. name = camelize(val);
  4684. res[name] = { type: null };
  4685. } else if (true) {
  4686. warn('props must be strings when using array syntax.');
  4687. }
  4688. }
  4689. } else if (isPlainObject(props)) {
  4690. for (var key in props) {
  4691. val = props[key];
  4692. name = camelize(key);
  4693. res[name] = isPlainObject(val)
  4694. ? val
  4695. : { type: val };
  4696. }
  4697. } else if (true) {
  4698. warn(
  4699. "Invalid value for option \"props\": expected an Array or an Object, " +
  4700. "but got " + (toRawType(props)) + ".",
  4701. vm
  4702. );
  4703. }
  4704. options.props = res;
  4705. }
  4706. /**
  4707. * Normalize all injections into Object-based format
  4708. */
  4709. function normalizeInject (options, vm) {
  4710. var inject = options.inject;
  4711. if (!inject) { return }
  4712. var normalized = options.inject = {};
  4713. if (Array.isArray(inject)) {
  4714. for (var i = 0; i < inject.length; i++) {
  4715. normalized[inject[i]] = { from: inject[i] };
  4716. }
  4717. } else if (isPlainObject(inject)) {
  4718. for (var key in inject) {
  4719. var val = inject[key];
  4720. normalized[key] = isPlainObject(val)
  4721. ? extend({ from: key }, val)
  4722. : { from: val };
  4723. }
  4724. } else if (true) {
  4725. warn(
  4726. "Invalid value for option \"inject\": expected an Array or an Object, " +
  4727. "but got " + (toRawType(inject)) + ".",
  4728. vm
  4729. );
  4730. }
  4731. }
  4732. /**
  4733. * Normalize raw function directives into object format.
  4734. */
  4735. function normalizeDirectives (options) {
  4736. var dirs = options.directives;
  4737. if (dirs) {
  4738. for (var key in dirs) {
  4739. var def$$1 = dirs[key];
  4740. if (typeof def$$1 === 'function') {
  4741. dirs[key] = { bind: def$$1, update: def$$1 };
  4742. }
  4743. }
  4744. }
  4745. }
  4746. function assertObjectType (name, value, vm) {
  4747. if (!isPlainObject(value)) {
  4748. warn(
  4749. "Invalid value for option \"" + name + "\": expected an Object, " +
  4750. "but got " + (toRawType(value)) + ".",
  4751. vm
  4752. );
  4753. }
  4754. }
  4755. /**
  4756. * Merge two option objects into a new one.
  4757. * Core utility used in both instantiation and inheritance.
  4758. */
  4759. function mergeOptions (
  4760. parent,
  4761. child,
  4762. vm
  4763. ) {
  4764. if (true) {
  4765. checkComponents(child);
  4766. }
  4767. if (typeof child === 'function') {
  4768. child = child.options;
  4769. }
  4770. normalizeProps(child, vm);
  4771. normalizeInject(child, vm);
  4772. normalizeDirectives(child);
  4773. // Apply extends and mixins on the child options,
  4774. // but only if it is a raw options object that isn't
  4775. // the result of another mergeOptions call.
  4776. // Only merged options has the _base property.
  4777. if (!child._base) {
  4778. if (child.extends) {
  4779. parent = mergeOptions(parent, child.extends, vm);
  4780. }
  4781. if (child.mixins) {
  4782. for (var i = 0, l = child.mixins.length; i < l; i++) {
  4783. parent = mergeOptions(parent, child.mixins[i], vm);
  4784. }
  4785. }
  4786. }
  4787. var options = {};
  4788. var key;
  4789. for (key in parent) {
  4790. mergeField(key);
  4791. }
  4792. for (key in child) {
  4793. if (!hasOwn(parent, key)) {
  4794. mergeField(key);
  4795. }
  4796. }
  4797. function mergeField (key) {
  4798. var strat = strats[key] || defaultStrat;
  4799. options[key] = strat(parent[key], child[key], vm, key);
  4800. }
  4801. return options
  4802. }
  4803. /**
  4804. * Resolve an asset.
  4805. * This function is used because child instances need access
  4806. * to assets defined in its ancestor chain.
  4807. */
  4808. function resolveAsset (
  4809. options,
  4810. type,
  4811. id,
  4812. warnMissing
  4813. ) {
  4814. /* istanbul ignore if */
  4815. if (typeof id !== 'string') {
  4816. return
  4817. }
  4818. var assets = options[type];
  4819. // check local registration variations first
  4820. if (hasOwn(assets, id)) { return assets[id] }
  4821. var camelizedId = camelize(id);
  4822. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  4823. var PascalCaseId = capitalize(camelizedId);
  4824. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  4825. // fallback to prototype chain
  4826. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  4827. if ( true && warnMissing && !res) {
  4828. warn(
  4829. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  4830. options
  4831. );
  4832. }
  4833. return res
  4834. }
  4835. /* */
  4836. function validateProp (
  4837. key,
  4838. propOptions,
  4839. propsData,
  4840. vm
  4841. ) {
  4842. var prop = propOptions[key];
  4843. var absent = !hasOwn(propsData, key);
  4844. var value = propsData[key];
  4845. // boolean casting
  4846. var booleanIndex = getTypeIndex(Boolean, prop.type);
  4847. if (booleanIndex > -1) {
  4848. if (absent && !hasOwn(prop, 'default')) {
  4849. value = false;
  4850. } else if (value === '' || value === hyphenate(key)) {
  4851. // only cast empty string / same name to boolean if
  4852. // boolean has higher priority
  4853. var stringIndex = getTypeIndex(String, prop.type);
  4854. if (stringIndex < 0 || booleanIndex < stringIndex) {
  4855. value = true;
  4856. }
  4857. }
  4858. }
  4859. // check default value
  4860. if (value === undefined) {
  4861. value = getPropDefaultValue(vm, prop, key);
  4862. // since the default value is a fresh copy,
  4863. // make sure to observe it.
  4864. var prevShouldObserve = shouldObserve;
  4865. toggleObserving(true);
  4866. observe(value);
  4867. toggleObserving(prevShouldObserve);
  4868. }
  4869. if (
  4870. true
  4871. ) {
  4872. assertProp(prop, key, value, vm, absent);
  4873. }
  4874. return value
  4875. }
  4876. /**
  4877. * Get the default value of a prop.
  4878. */
  4879. function getPropDefaultValue (vm, prop, key) {
  4880. // no default, return undefined
  4881. if (!hasOwn(prop, 'default')) {
  4882. return undefined
  4883. }
  4884. var def = prop.default;
  4885. // warn against non-factory defaults for Object & Array
  4886. if ( true && isObject(def)) {
  4887. warn(
  4888. 'Invalid default value for prop "' + key + '": ' +
  4889. 'Props with type Object/Array must use a factory function ' +
  4890. 'to return the default value.',
  4891. vm
  4892. );
  4893. }
  4894. // the raw prop value was also undefined from previous render,
  4895. // return previous default value to avoid unnecessary watcher trigger
  4896. if (vm && vm.$options.propsData &&
  4897. vm.$options.propsData[key] === undefined &&
  4898. vm._props[key] !== undefined
  4899. ) {
  4900. return vm._props[key]
  4901. }
  4902. // call factory function for non-Function types
  4903. // a value is Function if its prototype is function even across different execution context
  4904. return typeof def === 'function' && getType(prop.type) !== 'Function'
  4905. ? def.call(vm)
  4906. : def
  4907. }
  4908. /**
  4909. * Assert whether a prop is valid.
  4910. */
  4911. function assertProp (
  4912. prop,
  4913. name,
  4914. value,
  4915. vm,
  4916. absent
  4917. ) {
  4918. if (prop.required && absent) {
  4919. warn(
  4920. 'Missing required prop: "' + name + '"',
  4921. vm
  4922. );
  4923. return
  4924. }
  4925. if (value == null && !prop.required) {
  4926. return
  4927. }
  4928. var type = prop.type;
  4929. var valid = !type || type === true;
  4930. var expectedTypes = [];
  4931. if (type) {
  4932. if (!Array.isArray(type)) {
  4933. type = [type];
  4934. }
  4935. for (var i = 0; i < type.length && !valid; i++) {
  4936. var assertedType = assertType(value, type[i]);
  4937. expectedTypes.push(assertedType.expectedType || '');
  4938. valid = assertedType.valid;
  4939. }
  4940. }
  4941. if (!valid) {
  4942. warn(
  4943. getInvalidTypeMessage(name, value, expectedTypes),
  4944. vm
  4945. );
  4946. return
  4947. }
  4948. var validator = prop.validator;
  4949. if (validator) {
  4950. if (!validator(value)) {
  4951. warn(
  4952. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  4953. vm
  4954. );
  4955. }
  4956. }
  4957. }
  4958. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  4959. function assertType (value, type) {
  4960. var valid;
  4961. var expectedType = getType(type);
  4962. if (simpleCheckRE.test(expectedType)) {
  4963. var t = typeof value;
  4964. valid = t === expectedType.toLowerCase();
  4965. // for primitive wrapper objects
  4966. if (!valid && t === 'object') {
  4967. valid = value instanceof type;
  4968. }
  4969. } else if (expectedType === 'Object') {
  4970. valid = isPlainObject(value);
  4971. } else if (expectedType === 'Array') {
  4972. valid = Array.isArray(value);
  4973. } else {
  4974. valid = value instanceof type;
  4975. }
  4976. return {
  4977. valid: valid,
  4978. expectedType: expectedType
  4979. }
  4980. }
  4981. /**
  4982. * Use function string name to check built-in types,
  4983. * because a simple equality check will fail when running
  4984. * across different vms / iframes.
  4985. */
  4986. function getType (fn) {
  4987. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  4988. return match ? match[1] : ''
  4989. }
  4990. function isSameType (a, b) {
  4991. return getType(a) === getType(b)
  4992. }
  4993. function getTypeIndex (type, expectedTypes) {
  4994. if (!Array.isArray(expectedTypes)) {
  4995. return isSameType(expectedTypes, type) ? 0 : -1
  4996. }
  4997. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  4998. if (isSameType(expectedTypes[i], type)) {
  4999. return i
  5000. }
  5001. }
  5002. return -1
  5003. }
  5004. function getInvalidTypeMessage (name, value, expectedTypes) {
  5005. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  5006. " Expected " + (expectedTypes.map(capitalize).join(', '));
  5007. var expectedType = expectedTypes[0];
  5008. var receivedType = toRawType(value);
  5009. var expectedValue = styleValue(value, expectedType);
  5010. var receivedValue = styleValue(value, receivedType);
  5011. // check if we need to specify expected value
  5012. if (expectedTypes.length === 1 &&
  5013. isExplicable(expectedType) &&
  5014. !isBoolean(expectedType, receivedType)) {
  5015. message += " with value " + expectedValue;
  5016. }
  5017. message += ", got " + receivedType + " ";
  5018. // check if we need to specify received value
  5019. if (isExplicable(receivedType)) {
  5020. message += "with value " + receivedValue + ".";
  5021. }
  5022. return message
  5023. }
  5024. function styleValue (value, type) {
  5025. if (type === 'String') {
  5026. return ("\"" + value + "\"")
  5027. } else if (type === 'Number') {
  5028. return ("" + (Number(value)))
  5029. } else {
  5030. return ("" + value)
  5031. }
  5032. }
  5033. function isExplicable (value) {
  5034. var explicitTypes = ['string', 'number', 'boolean'];
  5035. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  5036. }
  5037. function isBoolean () {
  5038. var args = [], len = arguments.length;
  5039. while ( len-- ) args[ len ] = arguments[ len ];
  5040. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  5041. }
  5042. /* */
  5043. function handleError (err, vm, info) {
  5044. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  5045. // See: https://github.com/vuejs/vuex/issues/1505
  5046. pushTarget();
  5047. try {
  5048. if (vm) {
  5049. var cur = vm;
  5050. while ((cur = cur.$parent)) {
  5051. var hooks = cur.$options.errorCaptured;
  5052. if (hooks) {
  5053. for (var i = 0; i < hooks.length; i++) {
  5054. try {
  5055. var capture = hooks[i].call(cur, err, vm, info) === false;
  5056. if (capture) { return }
  5057. } catch (e) {
  5058. globalHandleError(e, cur, 'errorCaptured hook');
  5059. }
  5060. }
  5061. }
  5062. }
  5063. }
  5064. globalHandleError(err, vm, info);
  5065. } finally {
  5066. popTarget();
  5067. }
  5068. }
  5069. function invokeWithErrorHandling (
  5070. handler,
  5071. context,
  5072. args,
  5073. vm,
  5074. info
  5075. ) {
  5076. var res;
  5077. try {
  5078. res = args ? handler.apply(context, args) : handler.call(context);
  5079. if (res && !res._isVue && isPromise(res) && !res._handled) {
  5080. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  5081. // issue #9511
  5082. // avoid catch triggering multiple times when nested calls
  5083. res._handled = true;
  5084. }
  5085. } catch (e) {
  5086. handleError(e, vm, info);
  5087. }
  5088. return res
  5089. }
  5090. function globalHandleError (err, vm, info) {
  5091. if (config.errorHandler) {
  5092. try {
  5093. return config.errorHandler.call(null, err, vm, info)
  5094. } catch (e) {
  5095. // if the user intentionally throws the original error in the handler,
  5096. // do not log it twice
  5097. if (e !== err) {
  5098. logError(e, null, 'config.errorHandler');
  5099. }
  5100. }
  5101. }
  5102. logError(err, vm, info);
  5103. }
  5104. function logError (err, vm, info) {
  5105. if (true) {
  5106. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  5107. }
  5108. /* istanbul ignore else */
  5109. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  5110. console.error(err);
  5111. } else {
  5112. throw err
  5113. }
  5114. }
  5115. /* */
  5116. var callbacks = [];
  5117. var pending = false;
  5118. function flushCallbacks () {
  5119. pending = false;
  5120. var copies = callbacks.slice(0);
  5121. callbacks.length = 0;
  5122. for (var i = 0; i < copies.length; i++) {
  5123. copies[i]();
  5124. }
  5125. }
  5126. // Here we have async deferring wrappers using microtasks.
  5127. // In 2.5 we used (macro) tasks (in combination with microtasks).
  5128. // However, it has subtle problems when state is changed right before repaint
  5129. // (e.g. #6813, out-in transitions).
  5130. // Also, using (macro) tasks in event handler would cause some weird behaviors
  5131. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  5132. // So we now use microtasks everywhere, again.
  5133. // A major drawback of this tradeoff is that there are some scenarios
  5134. // where microtasks have too high a priority and fire in between supposedly
  5135. // sequential events (e.g. #4521, #6690, which have workarounds)
  5136. // or even between bubbling of the same event (#6566).
  5137. var timerFunc;
  5138. // The nextTick behavior leverages the microtask queue, which can be accessed
  5139. // via either native Promise.then or MutationObserver.
  5140. // MutationObserver has wider support, however it is seriously bugged in
  5141. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  5142. // completely stops working after triggering a few times... so, if native
  5143. // Promise is available, we will use it:
  5144. /* istanbul ignore next, $flow-disable-line */
  5145. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  5146. var p = Promise.resolve();
  5147. timerFunc = function () {
  5148. p.then(flushCallbacks);
  5149. // In problematic UIWebViews, Promise.then doesn't completely break, but
  5150. // it can get stuck in a weird state where callbacks are pushed into the
  5151. // microtask queue but the queue isn't being flushed, until the browser
  5152. // needs to do some other work, e.g. handle a timer. Therefore we can
  5153. // "force" the microtask queue to be flushed by adding an empty timer.
  5154. if (isIOS) { setTimeout(noop); }
  5155. };
  5156. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  5157. isNative(MutationObserver) ||
  5158. // PhantomJS and iOS 7.x
  5159. MutationObserver.toString() === '[object MutationObserverConstructor]'
  5160. )) {
  5161. // Use MutationObserver where native Promise is not available,
  5162. // e.g. PhantomJS, iOS7, Android 4.4
  5163. // (#6466 MutationObserver is unreliable in IE11)
  5164. var counter = 1;
  5165. var observer = new MutationObserver(flushCallbacks);
  5166. var textNode = document.createTextNode(String(counter));
  5167. observer.observe(textNode, {
  5168. characterData: true
  5169. });
  5170. timerFunc = function () {
  5171. counter = (counter + 1) % 2;
  5172. textNode.data = String(counter);
  5173. };
  5174. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  5175. // Fallback to setImmediate.
  5176. // Technically it leverages the (macro) task queue,
  5177. // but it is still a better choice than setTimeout.
  5178. timerFunc = function () {
  5179. setImmediate(flushCallbacks);
  5180. };
  5181. } else {
  5182. // Fallback to setTimeout.
  5183. timerFunc = function () {
  5184. setTimeout(flushCallbacks, 0);
  5185. };
  5186. }
  5187. function nextTick (cb, ctx) {
  5188. var _resolve;
  5189. callbacks.push(function () {
  5190. if (cb) {
  5191. try {
  5192. cb.call(ctx);
  5193. } catch (e) {
  5194. handleError(e, ctx, 'nextTick');
  5195. }
  5196. } else if (_resolve) {
  5197. _resolve(ctx);
  5198. }
  5199. });
  5200. if (!pending) {
  5201. pending = true;
  5202. timerFunc();
  5203. }
  5204. // $flow-disable-line
  5205. if (!cb && typeof Promise !== 'undefined') {
  5206. return new Promise(function (resolve) {
  5207. _resolve = resolve;
  5208. })
  5209. }
  5210. }
  5211. /* */
  5212. /* not type checking this file because flow doesn't play well with Proxy */
  5213. var initProxy;
  5214. if (true) {
  5215. var allowedGlobals = makeMap(
  5216. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  5217. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  5218. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  5219. 'require' // for Webpack/Browserify
  5220. );
  5221. var warnNonPresent = function (target, key) {
  5222. warn(
  5223. "Property or method \"" + key + "\" is not defined on the instance but " +
  5224. 'referenced during render. Make sure that this property is reactive, ' +
  5225. 'either in the data option, or for class-based components, by ' +
  5226. 'initializing the property. ' +
  5227. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  5228. target
  5229. );
  5230. };
  5231. var warnReservedPrefix = function (target, key) {
  5232. warn(
  5233. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  5234. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  5235. 'prevent conflicts with Vue internals. ' +
  5236. 'See: https://vuejs.org/v2/api/#data',
  5237. target
  5238. );
  5239. };
  5240. var hasProxy =
  5241. typeof Proxy !== 'undefined' && isNative(Proxy);
  5242. if (hasProxy) {
  5243. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  5244. config.keyCodes = new Proxy(config.keyCodes, {
  5245. set: function set (target, key, value) {
  5246. if (isBuiltInModifier(key)) {
  5247. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  5248. return false
  5249. } else {
  5250. target[key] = value;
  5251. return true
  5252. }
  5253. }
  5254. });
  5255. }
  5256. var hasHandler = {
  5257. has: function has (target, key) {
  5258. var has = key in target;
  5259. var isAllowed = allowedGlobals(key) ||
  5260. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  5261. if (!has && !isAllowed) {
  5262. if (key in target.$data) { warnReservedPrefix(target, key); }
  5263. else { warnNonPresent(target, key); }
  5264. }
  5265. return has || !isAllowed
  5266. }
  5267. };
  5268. var getHandler = {
  5269. get: function get (target, key) {
  5270. if (typeof key === 'string' && !(key in target)) {
  5271. if (key in target.$data) { warnReservedPrefix(target, key); }
  5272. else { warnNonPresent(target, key); }
  5273. }
  5274. return target[key]
  5275. }
  5276. };
  5277. initProxy = function initProxy (vm) {
  5278. if (hasProxy) {
  5279. // determine which proxy handler to use
  5280. var options = vm.$options;
  5281. var handlers = options.render && options.render._withStripped
  5282. ? getHandler
  5283. : hasHandler;
  5284. vm._renderProxy = new Proxy(vm, handlers);
  5285. } else {
  5286. vm._renderProxy = vm;
  5287. }
  5288. };
  5289. }
  5290. /* */
  5291. var seenObjects = new _Set();
  5292. /**
  5293. * Recursively traverse an object to evoke all converted
  5294. * getters, so that every nested property inside the object
  5295. * is collected as a "deep" dependency.
  5296. */
  5297. function traverse (val) {
  5298. _traverse(val, seenObjects);
  5299. seenObjects.clear();
  5300. }
  5301. function _traverse (val, seen) {
  5302. var i, keys;
  5303. var isA = Array.isArray(val);
  5304. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  5305. return
  5306. }
  5307. if (val.__ob__) {
  5308. var depId = val.__ob__.dep.id;
  5309. if (seen.has(depId)) {
  5310. return
  5311. }
  5312. seen.add(depId);
  5313. }
  5314. if (isA) {
  5315. i = val.length;
  5316. while (i--) { _traverse(val[i], seen); }
  5317. } else {
  5318. keys = Object.keys(val);
  5319. i = keys.length;
  5320. while (i--) { _traverse(val[keys[i]], seen); }
  5321. }
  5322. }
  5323. var mark;
  5324. var measure;
  5325. if (true) {
  5326. var perf = inBrowser && window.performance;
  5327. /* istanbul ignore if */
  5328. if (
  5329. perf &&
  5330. perf.mark &&
  5331. perf.measure &&
  5332. perf.clearMarks &&
  5333. perf.clearMeasures
  5334. ) {
  5335. mark = function (tag) { return perf.mark(tag); };
  5336. measure = function (name, startTag, endTag) {
  5337. perf.measure(name, startTag, endTag);
  5338. perf.clearMarks(startTag);
  5339. perf.clearMarks(endTag);
  5340. // perf.clearMeasures(name)
  5341. };
  5342. }
  5343. }
  5344. /* */
  5345. var normalizeEvent = cached(function (name) {
  5346. var passive = name.charAt(0) === '&';
  5347. name = passive ? name.slice(1) : name;
  5348. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  5349. name = once$$1 ? name.slice(1) : name;
  5350. var capture = name.charAt(0) === '!';
  5351. name = capture ? name.slice(1) : name;
  5352. return {
  5353. name: name,
  5354. once: once$$1,
  5355. capture: capture,
  5356. passive: passive
  5357. }
  5358. });
  5359. function createFnInvoker (fns, vm) {
  5360. function invoker () {
  5361. var arguments$1 = arguments;
  5362. var fns = invoker.fns;
  5363. if (Array.isArray(fns)) {
  5364. var cloned = fns.slice();
  5365. for (var i = 0; i < cloned.length; i++) {
  5366. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  5367. }
  5368. } else {
  5369. // return handler return value for single handlers
  5370. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  5371. }
  5372. }
  5373. invoker.fns = fns;
  5374. return invoker
  5375. }
  5376. function updateListeners (
  5377. on,
  5378. oldOn,
  5379. add,
  5380. remove$$1,
  5381. createOnceHandler,
  5382. vm
  5383. ) {
  5384. var name, def$$1, cur, old, event;
  5385. for (name in on) {
  5386. def$$1 = cur = on[name];
  5387. old = oldOn[name];
  5388. event = normalizeEvent(name);
  5389. if (isUndef(cur)) {
  5390. true && warn(
  5391. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  5392. vm
  5393. );
  5394. } else if (isUndef(old)) {
  5395. if (isUndef(cur.fns)) {
  5396. cur = on[name] = createFnInvoker(cur, vm);
  5397. }
  5398. if (isTrue(event.once)) {
  5399. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  5400. }
  5401. add(event.name, cur, event.capture, event.passive, event.params);
  5402. } else if (cur !== old) {
  5403. old.fns = cur;
  5404. on[name] = old;
  5405. }
  5406. }
  5407. for (name in oldOn) {
  5408. if (isUndef(on[name])) {
  5409. event = normalizeEvent(name);
  5410. remove$$1(event.name, oldOn[name], event.capture);
  5411. }
  5412. }
  5413. }
  5414. /* */
  5415. /* */
  5416. // fixed by xxxxxx (mp properties)
  5417. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  5418. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  5419. if (isUndef(propOptions)) {
  5420. return res
  5421. }
  5422. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  5423. var attrs = data.attrs;
  5424. var props = data.props;
  5425. if (isDef(attrs) || isDef(props)) {
  5426. for (var key in propOptions) {
  5427. var altKey = hyphenate(key);
  5428. var result = checkProp(res, props, key, altKey, true) ||
  5429. checkProp(res, attrs, key, altKey, false);
  5430. // externalClass
  5431. if (
  5432. result &&
  5433. res[key] &&
  5434. externalClasses.indexOf(altKey) !== -1 &&
  5435. context[camelize(res[key])]
  5436. ) {
  5437. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  5438. res[key] = context[camelize(res[key])];
  5439. }
  5440. }
  5441. }
  5442. return res
  5443. }
  5444. function extractPropsFromVNodeData (
  5445. data,
  5446. Ctor,
  5447. tag,
  5448. context// fixed by xxxxxx
  5449. ) {
  5450. // we are only extracting raw values here.
  5451. // validation and default values are handled in the child
  5452. // component itself.
  5453. var propOptions = Ctor.options.props;
  5454. if (isUndef(propOptions)) {
  5455. // fixed by xxxxxx
  5456. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  5457. }
  5458. var res = {};
  5459. var attrs = data.attrs;
  5460. var props = data.props;
  5461. if (isDef(attrs) || isDef(props)) {
  5462. for (var key in propOptions) {
  5463. var altKey = hyphenate(key);
  5464. if (true) {
  5465. var keyInLowerCase = key.toLowerCase();
  5466. if (
  5467. key !== keyInLowerCase &&
  5468. attrs && hasOwn(attrs, keyInLowerCase)
  5469. ) {
  5470. tip(
  5471. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  5472. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  5473. " \"" + key + "\". " +
  5474. "Note that HTML attributes are case-insensitive and camelCased " +
  5475. "props need to use their kebab-case equivalents when using in-DOM " +
  5476. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  5477. );
  5478. }
  5479. }
  5480. checkProp(res, props, key, altKey, true) ||
  5481. checkProp(res, attrs, key, altKey, false);
  5482. }
  5483. }
  5484. // fixed by xxxxxx
  5485. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  5486. }
  5487. function checkProp (
  5488. res,
  5489. hash,
  5490. key,
  5491. altKey,
  5492. preserve
  5493. ) {
  5494. if (isDef(hash)) {
  5495. if (hasOwn(hash, key)) {
  5496. res[key] = hash[key];
  5497. if (!preserve) {
  5498. delete hash[key];
  5499. }
  5500. return true
  5501. } else if (hasOwn(hash, altKey)) {
  5502. res[key] = hash[altKey];
  5503. if (!preserve) {
  5504. delete hash[altKey];
  5505. }
  5506. return true
  5507. }
  5508. }
  5509. return false
  5510. }
  5511. /* */
  5512. // The template compiler attempts to minimize the need for normalization by
  5513. // statically analyzing the template at compile time.
  5514. //
  5515. // For plain HTML markup, normalization can be completely skipped because the
  5516. // generated render function is guaranteed to return Array<VNode>. There are
  5517. // two cases where extra normalization is needed:
  5518. // 1. When the children contains components - because a functional component
  5519. // may return an Array instead of a single root. In this case, just a simple
  5520. // normalization is needed - if any child is an Array, we flatten the whole
  5521. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  5522. // because functional components already normalize their own children.
  5523. function simpleNormalizeChildren (children) {
  5524. for (var i = 0; i < children.length; i++) {
  5525. if (Array.isArray(children[i])) {
  5526. return Array.prototype.concat.apply([], children)
  5527. }
  5528. }
  5529. return children
  5530. }
  5531. // 2. When the children contains constructs that always generated nested Arrays,
  5532. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  5533. // with hand-written render functions / JSX. In such cases a full normalization
  5534. // is needed to cater to all possible types of children values.
  5535. function normalizeChildren (children) {
  5536. return isPrimitive(children)
  5537. ? [createTextVNode(children)]
  5538. : Array.isArray(children)
  5539. ? normalizeArrayChildren(children)
  5540. : undefined
  5541. }
  5542. function isTextNode (node) {
  5543. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  5544. }
  5545. function normalizeArrayChildren (children, nestedIndex) {
  5546. var res = [];
  5547. var i, c, lastIndex, last;
  5548. for (i = 0; i < children.length; i++) {
  5549. c = children[i];
  5550. if (isUndef(c) || typeof c === 'boolean') { continue }
  5551. lastIndex = res.length - 1;
  5552. last = res[lastIndex];
  5553. // nested
  5554. if (Array.isArray(c)) {
  5555. if (c.length > 0) {
  5556. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  5557. // merge adjacent text nodes
  5558. if (isTextNode(c[0]) && isTextNode(last)) {
  5559. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  5560. c.shift();
  5561. }
  5562. res.push.apply(res, c);
  5563. }
  5564. } else if (isPrimitive(c)) {
  5565. if (isTextNode(last)) {
  5566. // merge adjacent text nodes
  5567. // this is necessary for SSR hydration because text nodes are
  5568. // essentially merged when rendered to HTML strings
  5569. res[lastIndex] = createTextVNode(last.text + c);
  5570. } else if (c !== '') {
  5571. // convert primitive to vnode
  5572. res.push(createTextVNode(c));
  5573. }
  5574. } else {
  5575. if (isTextNode(c) && isTextNode(last)) {
  5576. // merge adjacent text nodes
  5577. res[lastIndex] = createTextVNode(last.text + c.text);
  5578. } else {
  5579. // default key for nested array children (likely generated by v-for)
  5580. if (isTrue(children._isVList) &&
  5581. isDef(c.tag) &&
  5582. isUndef(c.key) &&
  5583. isDef(nestedIndex)) {
  5584. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  5585. }
  5586. res.push(c);
  5587. }
  5588. }
  5589. }
  5590. return res
  5591. }
  5592. /* */
  5593. function initProvide (vm) {
  5594. var provide = vm.$options.provide;
  5595. if (provide) {
  5596. vm._provided = typeof provide === 'function'
  5597. ? provide.call(vm)
  5598. : provide;
  5599. }
  5600. }
  5601. function initInjections (vm) {
  5602. var result = resolveInject(vm.$options.inject, vm);
  5603. if (result) {
  5604. toggleObserving(false);
  5605. Object.keys(result).forEach(function (key) {
  5606. /* istanbul ignore else */
  5607. if (true) {
  5608. defineReactive$$1(vm, key, result[key], function () {
  5609. warn(
  5610. "Avoid mutating an injected value directly since the changes will be " +
  5611. "overwritten whenever the provided component re-renders. " +
  5612. "injection being mutated: \"" + key + "\"",
  5613. vm
  5614. );
  5615. });
  5616. } else {}
  5617. });
  5618. toggleObserving(true);
  5619. }
  5620. }
  5621. function resolveInject (inject, vm) {
  5622. if (inject) {
  5623. // inject is :any because flow is not smart enough to figure out cached
  5624. var result = Object.create(null);
  5625. var keys = hasSymbol
  5626. ? Reflect.ownKeys(inject)
  5627. : Object.keys(inject);
  5628. for (var i = 0; i < keys.length; i++) {
  5629. var key = keys[i];
  5630. // #6574 in case the inject object is observed...
  5631. if (key === '__ob__') { continue }
  5632. var provideKey = inject[key].from;
  5633. var source = vm;
  5634. while (source) {
  5635. if (source._provided && hasOwn(source._provided, provideKey)) {
  5636. result[key] = source._provided[provideKey];
  5637. break
  5638. }
  5639. source = source.$parent;
  5640. }
  5641. if (!source) {
  5642. if ('default' in inject[key]) {
  5643. var provideDefault = inject[key].default;
  5644. result[key] = typeof provideDefault === 'function'
  5645. ? provideDefault.call(vm)
  5646. : provideDefault;
  5647. } else if (true) {
  5648. warn(("Injection \"" + key + "\" not found"), vm);
  5649. }
  5650. }
  5651. }
  5652. return result
  5653. }
  5654. }
  5655. /* */
  5656. /**
  5657. * Runtime helper for resolving raw children VNodes into a slot object.
  5658. */
  5659. function resolveSlots (
  5660. children,
  5661. context
  5662. ) {
  5663. if (!children || !children.length) {
  5664. return {}
  5665. }
  5666. var slots = {};
  5667. for (var i = 0, l = children.length; i < l; i++) {
  5668. var child = children[i];
  5669. var data = child.data;
  5670. // remove slot attribute if the node is resolved as a Vue slot node
  5671. if (data && data.attrs && data.attrs.slot) {
  5672. delete data.attrs.slot;
  5673. }
  5674. // named slots should only be respected if the vnode was rendered in the
  5675. // same context.
  5676. if ((child.context === context || child.fnContext === context) &&
  5677. data && data.slot != null
  5678. ) {
  5679. var name = data.slot;
  5680. var slot = (slots[name] || (slots[name] = []));
  5681. if (child.tag === 'template') {
  5682. slot.push.apply(slot, child.children || []);
  5683. } else {
  5684. slot.push(child);
  5685. }
  5686. } else {
  5687. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  5688. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  5689. (slots['page'] || (slots['page'] = [])).push(child);
  5690. }else{
  5691. (slots.default || (slots.default = [])).push(child);
  5692. }
  5693. }
  5694. }
  5695. // ignore slots that contains only whitespace
  5696. for (var name$1 in slots) {
  5697. if (slots[name$1].every(isWhitespace)) {
  5698. delete slots[name$1];
  5699. }
  5700. }
  5701. return slots
  5702. }
  5703. function isWhitespace (node) {
  5704. return (node.isComment && !node.asyncFactory) || node.text === ' '
  5705. }
  5706. /* */
  5707. function normalizeScopedSlots (
  5708. slots,
  5709. normalSlots,
  5710. prevSlots
  5711. ) {
  5712. var res;
  5713. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  5714. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  5715. var key = slots && slots.$key;
  5716. if (!slots) {
  5717. res = {};
  5718. } else if (slots._normalized) {
  5719. // fast path 1: child component re-render only, parent did not change
  5720. return slots._normalized
  5721. } else if (
  5722. isStable &&
  5723. prevSlots &&
  5724. prevSlots !== emptyObject &&
  5725. key === prevSlots.$key &&
  5726. !hasNormalSlots &&
  5727. !prevSlots.$hasNormal
  5728. ) {
  5729. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  5730. // only need to normalize once
  5731. return prevSlots
  5732. } else {
  5733. res = {};
  5734. for (var key$1 in slots) {
  5735. if (slots[key$1] && key$1[0] !== '$') {
  5736. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  5737. }
  5738. }
  5739. }
  5740. // expose normal slots on scopedSlots
  5741. for (var key$2 in normalSlots) {
  5742. if (!(key$2 in res)) {
  5743. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  5744. }
  5745. }
  5746. // avoriaz seems to mock a non-extensible $scopedSlots object
  5747. // and when that is passed down this would cause an error
  5748. if (slots && Object.isExtensible(slots)) {
  5749. (slots)._normalized = res;
  5750. }
  5751. def(res, '$stable', isStable);
  5752. def(res, '$key', key);
  5753. def(res, '$hasNormal', hasNormalSlots);
  5754. return res
  5755. }
  5756. function normalizeScopedSlot(normalSlots, key, fn) {
  5757. var normalized = function () {
  5758. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  5759. res = res && typeof res === 'object' && !Array.isArray(res)
  5760. ? [res] // single vnode
  5761. : normalizeChildren(res);
  5762. return res && (
  5763. res.length === 0 ||
  5764. (res.length === 1 && res[0].isComment) // #9658
  5765. ) ? undefined
  5766. : res
  5767. };
  5768. // this is a slot using the new v-slot syntax without scope. although it is
  5769. // compiled as a scoped slot, render fn users would expect it to be present
  5770. // on this.$slots because the usage is semantically a normal slot.
  5771. if (fn.proxy) {
  5772. Object.defineProperty(normalSlots, key, {
  5773. get: normalized,
  5774. enumerable: true,
  5775. configurable: true
  5776. });
  5777. }
  5778. return normalized
  5779. }
  5780. function proxyNormalSlot(slots, key) {
  5781. return function () { return slots[key]; }
  5782. }
  5783. /* */
  5784. /**
  5785. * Runtime helper for rendering v-for lists.
  5786. */
  5787. function renderList (
  5788. val,
  5789. render
  5790. ) {
  5791. var ret, i, l, keys, key;
  5792. if (Array.isArray(val) || typeof val === 'string') {
  5793. ret = new Array(val.length);
  5794. for (i = 0, l = val.length; i < l; i++) {
  5795. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  5796. }
  5797. } else if (typeof val === 'number') {
  5798. ret = new Array(val);
  5799. for (i = 0; i < val; i++) {
  5800. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  5801. }
  5802. } else if (isObject(val)) {
  5803. if (hasSymbol && val[Symbol.iterator]) {
  5804. ret = [];
  5805. var iterator = val[Symbol.iterator]();
  5806. var result = iterator.next();
  5807. while (!result.done) {
  5808. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  5809. result = iterator.next();
  5810. }
  5811. } else {
  5812. keys = Object.keys(val);
  5813. ret = new Array(keys.length);
  5814. for (i = 0, l = keys.length; i < l; i++) {
  5815. key = keys[i];
  5816. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  5817. }
  5818. }
  5819. }
  5820. if (!isDef(ret)) {
  5821. ret = [];
  5822. }
  5823. (ret)._isVList = true;
  5824. return ret
  5825. }
  5826. /* */
  5827. /**
  5828. * Runtime helper for rendering <slot>
  5829. */
  5830. function renderSlot (
  5831. name,
  5832. fallback,
  5833. props,
  5834. bindObject
  5835. ) {
  5836. var scopedSlotFn = this.$scopedSlots[name];
  5837. var nodes;
  5838. if (scopedSlotFn) { // scoped slot
  5839. props = props || {};
  5840. if (bindObject) {
  5841. if ( true && !isObject(bindObject)) {
  5842. warn(
  5843. 'slot v-bind without argument expects an Object',
  5844. this
  5845. );
  5846. }
  5847. props = extend(extend({}, bindObject), props);
  5848. }
  5849. // fixed by xxxxxx app-plus scopedSlot
  5850. nodes = scopedSlotFn(props, this, props._i) || fallback;
  5851. } else {
  5852. nodes = this.$slots[name] || fallback;
  5853. }
  5854. var target = props && props.slot;
  5855. if (target) {
  5856. return this.$createElement('template', { slot: target }, nodes)
  5857. } else {
  5858. return nodes
  5859. }
  5860. }
  5861. /* */
  5862. /**
  5863. * Runtime helper for resolving filters
  5864. */
  5865. function resolveFilter (id) {
  5866. return resolveAsset(this.$options, 'filters', id, true) || identity
  5867. }
  5868. /* */
  5869. function isKeyNotMatch (expect, actual) {
  5870. if (Array.isArray(expect)) {
  5871. return expect.indexOf(actual) === -1
  5872. } else {
  5873. return expect !== actual
  5874. }
  5875. }
  5876. /**
  5877. * Runtime helper for checking keyCodes from config.
  5878. * exposed as Vue.prototype._k
  5879. * passing in eventKeyName as last argument separately for backwards compat
  5880. */
  5881. function checkKeyCodes (
  5882. eventKeyCode,
  5883. key,
  5884. builtInKeyCode,
  5885. eventKeyName,
  5886. builtInKeyName
  5887. ) {
  5888. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  5889. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  5890. return isKeyNotMatch(builtInKeyName, eventKeyName)
  5891. } else if (mappedKeyCode) {
  5892. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  5893. } else if (eventKeyName) {
  5894. return hyphenate(eventKeyName) !== key
  5895. }
  5896. }
  5897. /* */
  5898. /**
  5899. * Runtime helper for merging v-bind="object" into a VNode's data.
  5900. */
  5901. function bindObjectProps (
  5902. data,
  5903. tag,
  5904. value,
  5905. asProp,
  5906. isSync
  5907. ) {
  5908. if (value) {
  5909. if (!isObject(value)) {
  5910. true && warn(
  5911. 'v-bind without argument expects an Object or Array value',
  5912. this
  5913. );
  5914. } else {
  5915. if (Array.isArray(value)) {
  5916. value = toObject(value);
  5917. }
  5918. var hash;
  5919. var loop = function ( key ) {
  5920. if (
  5921. key === 'class' ||
  5922. key === 'style' ||
  5923. isReservedAttribute(key)
  5924. ) {
  5925. hash = data;
  5926. } else {
  5927. var type = data.attrs && data.attrs.type;
  5928. hash = asProp || config.mustUseProp(tag, type, key)
  5929. ? data.domProps || (data.domProps = {})
  5930. : data.attrs || (data.attrs = {});
  5931. }
  5932. var camelizedKey = camelize(key);
  5933. var hyphenatedKey = hyphenate(key);
  5934. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  5935. hash[key] = value[key];
  5936. if (isSync) {
  5937. var on = data.on || (data.on = {});
  5938. on[("update:" + key)] = function ($event) {
  5939. value[key] = $event;
  5940. };
  5941. }
  5942. }
  5943. };
  5944. for (var key in value) loop( key );
  5945. }
  5946. }
  5947. return data
  5948. }
  5949. /* */
  5950. /**
  5951. * Runtime helper for rendering static trees.
  5952. */
  5953. function renderStatic (
  5954. index,
  5955. isInFor
  5956. ) {
  5957. var cached = this._staticTrees || (this._staticTrees = []);
  5958. var tree = cached[index];
  5959. // if has already-rendered static tree and not inside v-for,
  5960. // we can reuse the same tree.
  5961. if (tree && !isInFor) {
  5962. return tree
  5963. }
  5964. // otherwise, render a fresh tree.
  5965. tree = cached[index] = this.$options.staticRenderFns[index].call(
  5966. this._renderProxy,
  5967. null,
  5968. this // for render fns generated for functional component templates
  5969. );
  5970. markStatic(tree, ("__static__" + index), false);
  5971. return tree
  5972. }
  5973. /**
  5974. * Runtime helper for v-once.
  5975. * Effectively it means marking the node as static with a unique key.
  5976. */
  5977. function markOnce (
  5978. tree,
  5979. index,
  5980. key
  5981. ) {
  5982. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  5983. return tree
  5984. }
  5985. function markStatic (
  5986. tree,
  5987. key,
  5988. isOnce
  5989. ) {
  5990. if (Array.isArray(tree)) {
  5991. for (var i = 0; i < tree.length; i++) {
  5992. if (tree[i] && typeof tree[i] !== 'string') {
  5993. markStaticNode(tree[i], (key + "_" + i), isOnce);
  5994. }
  5995. }
  5996. } else {
  5997. markStaticNode(tree, key, isOnce);
  5998. }
  5999. }
  6000. function markStaticNode (node, key, isOnce) {
  6001. node.isStatic = true;
  6002. node.key = key;
  6003. node.isOnce = isOnce;
  6004. }
  6005. /* */
  6006. function bindObjectListeners (data, value) {
  6007. if (value) {
  6008. if (!isPlainObject(value)) {
  6009. true && warn(
  6010. 'v-on without argument expects an Object value',
  6011. this
  6012. );
  6013. } else {
  6014. var on = data.on = data.on ? extend({}, data.on) : {};
  6015. for (var key in value) {
  6016. var existing = on[key];
  6017. var ours = value[key];
  6018. on[key] = existing ? [].concat(existing, ours) : ours;
  6019. }
  6020. }
  6021. }
  6022. return data
  6023. }
  6024. /* */
  6025. function resolveScopedSlots (
  6026. fns, // see flow/vnode
  6027. res,
  6028. // the following are added in 2.6
  6029. hasDynamicKeys,
  6030. contentHashKey
  6031. ) {
  6032. res = res || { $stable: !hasDynamicKeys };
  6033. for (var i = 0; i < fns.length; i++) {
  6034. var slot = fns[i];
  6035. if (Array.isArray(slot)) {
  6036. resolveScopedSlots(slot, res, hasDynamicKeys);
  6037. } else if (slot) {
  6038. // marker for reverse proxying v-slot without scope on this.$slots
  6039. if (slot.proxy) {
  6040. slot.fn.proxy = true;
  6041. }
  6042. res[slot.key] = slot.fn;
  6043. }
  6044. }
  6045. if (contentHashKey) {
  6046. (res).$key = contentHashKey;
  6047. }
  6048. return res
  6049. }
  6050. /* */
  6051. function bindDynamicKeys (baseObj, values) {
  6052. for (var i = 0; i < values.length; i += 2) {
  6053. var key = values[i];
  6054. if (typeof key === 'string' && key) {
  6055. baseObj[values[i]] = values[i + 1];
  6056. } else if ( true && key !== '' && key !== null) {
  6057. // null is a special value for explicitly removing a binding
  6058. warn(
  6059. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  6060. this
  6061. );
  6062. }
  6063. }
  6064. return baseObj
  6065. }
  6066. // helper to dynamically append modifier runtime markers to event names.
  6067. // ensure only append when value is already string, otherwise it will be cast
  6068. // to string and cause the type check to miss.
  6069. function prependModifier (value, symbol) {
  6070. return typeof value === 'string' ? symbol + value : value
  6071. }
  6072. /* */
  6073. function installRenderHelpers (target) {
  6074. target._o = markOnce;
  6075. target._n = toNumber;
  6076. target._s = toString;
  6077. target._l = renderList;
  6078. target._t = renderSlot;
  6079. target._q = looseEqual;
  6080. target._i = looseIndexOf;
  6081. target._m = renderStatic;
  6082. target._f = resolveFilter;
  6083. target._k = checkKeyCodes;
  6084. target._b = bindObjectProps;
  6085. target._v = createTextVNode;
  6086. target._e = createEmptyVNode;
  6087. target._u = resolveScopedSlots;
  6088. target._g = bindObjectListeners;
  6089. target._d = bindDynamicKeys;
  6090. target._p = prependModifier;
  6091. }
  6092. /* */
  6093. function FunctionalRenderContext (
  6094. data,
  6095. props,
  6096. children,
  6097. parent,
  6098. Ctor
  6099. ) {
  6100. var this$1 = this;
  6101. var options = Ctor.options;
  6102. // ensure the createElement function in functional components
  6103. // gets a unique context - this is necessary for correct named slot check
  6104. var contextVm;
  6105. if (hasOwn(parent, '_uid')) {
  6106. contextVm = Object.create(parent);
  6107. // $flow-disable-line
  6108. contextVm._original = parent;
  6109. } else {
  6110. // the context vm passed in is a functional context as well.
  6111. // in this case we want to make sure we are able to get a hold to the
  6112. // real context instance.
  6113. contextVm = parent;
  6114. // $flow-disable-line
  6115. parent = parent._original;
  6116. }
  6117. var isCompiled = isTrue(options._compiled);
  6118. var needNormalization = !isCompiled;
  6119. this.data = data;
  6120. this.props = props;
  6121. this.children = children;
  6122. this.parent = parent;
  6123. this.listeners = data.on || emptyObject;
  6124. this.injections = resolveInject(options.inject, parent);
  6125. this.slots = function () {
  6126. if (!this$1.$slots) {
  6127. normalizeScopedSlots(
  6128. data.scopedSlots,
  6129. this$1.$slots = resolveSlots(children, parent)
  6130. );
  6131. }
  6132. return this$1.$slots
  6133. };
  6134. Object.defineProperty(this, 'scopedSlots', ({
  6135. enumerable: true,
  6136. get: function get () {
  6137. return normalizeScopedSlots(data.scopedSlots, this.slots())
  6138. }
  6139. }));
  6140. // support for compiled functional template
  6141. if (isCompiled) {
  6142. // exposing $options for renderStatic()
  6143. this.$options = options;
  6144. // pre-resolve slots for renderSlot()
  6145. this.$slots = this.slots();
  6146. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  6147. }
  6148. if (options._scopeId) {
  6149. this._c = function (a, b, c, d) {
  6150. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  6151. if (vnode && !Array.isArray(vnode)) {
  6152. vnode.fnScopeId = options._scopeId;
  6153. vnode.fnContext = parent;
  6154. }
  6155. return vnode
  6156. };
  6157. } else {
  6158. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  6159. }
  6160. }
  6161. installRenderHelpers(FunctionalRenderContext.prototype);
  6162. function createFunctionalComponent (
  6163. Ctor,
  6164. propsData,
  6165. data,
  6166. contextVm,
  6167. children
  6168. ) {
  6169. var options = Ctor.options;
  6170. var props = {};
  6171. var propOptions = options.props;
  6172. if (isDef(propOptions)) {
  6173. for (var key in propOptions) {
  6174. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  6175. }
  6176. } else {
  6177. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  6178. if (isDef(data.props)) { mergeProps(props, data.props); }
  6179. }
  6180. var renderContext = new FunctionalRenderContext(
  6181. data,
  6182. props,
  6183. children,
  6184. contextVm,
  6185. Ctor
  6186. );
  6187. var vnode = options.render.call(null, renderContext._c, renderContext);
  6188. if (vnode instanceof VNode) {
  6189. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  6190. } else if (Array.isArray(vnode)) {
  6191. var vnodes = normalizeChildren(vnode) || [];
  6192. var res = new Array(vnodes.length);
  6193. for (var i = 0; i < vnodes.length; i++) {
  6194. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  6195. }
  6196. return res
  6197. }
  6198. }
  6199. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  6200. // #7817 clone node before setting fnContext, otherwise if the node is reused
  6201. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  6202. // that should not be matched to match.
  6203. var clone = cloneVNode(vnode);
  6204. clone.fnContext = contextVm;
  6205. clone.fnOptions = options;
  6206. if (true) {
  6207. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  6208. }
  6209. if (data.slot) {
  6210. (clone.data || (clone.data = {})).slot = data.slot;
  6211. }
  6212. return clone
  6213. }
  6214. function mergeProps (to, from) {
  6215. for (var key in from) {
  6216. to[camelize(key)] = from[key];
  6217. }
  6218. }
  6219. /* */
  6220. /* */
  6221. /* */
  6222. /* */
  6223. // inline hooks to be invoked on component VNodes during patch
  6224. var componentVNodeHooks = {
  6225. init: function init (vnode, hydrating) {
  6226. if (
  6227. vnode.componentInstance &&
  6228. !vnode.componentInstance._isDestroyed &&
  6229. vnode.data.keepAlive
  6230. ) {
  6231. // kept-alive components, treat as a patch
  6232. var mountedNode = vnode; // work around flow
  6233. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  6234. } else {
  6235. var child = vnode.componentInstance = createComponentInstanceForVnode(
  6236. vnode,
  6237. activeInstance
  6238. );
  6239. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  6240. }
  6241. },
  6242. prepatch: function prepatch (oldVnode, vnode) {
  6243. var options = vnode.componentOptions;
  6244. var child = vnode.componentInstance = oldVnode.componentInstance;
  6245. updateChildComponent(
  6246. child,
  6247. options.propsData, // updated props
  6248. options.listeners, // updated listeners
  6249. vnode, // new parent vnode
  6250. options.children // new children
  6251. );
  6252. },
  6253. insert: function insert (vnode) {
  6254. var context = vnode.context;
  6255. var componentInstance = vnode.componentInstance;
  6256. if (!componentInstance._isMounted) {
  6257. callHook(componentInstance, 'onServiceCreated');
  6258. callHook(componentInstance, 'onServiceAttached');
  6259. componentInstance._isMounted = true;
  6260. callHook(componentInstance, 'mounted');
  6261. }
  6262. if (vnode.data.keepAlive) {
  6263. if (context._isMounted) {
  6264. // vue-router#1212
  6265. // During updates, a kept-alive component's child components may
  6266. // change, so directly walking the tree here may call activated hooks
  6267. // on incorrect children. Instead we push them into a queue which will
  6268. // be processed after the whole patch process ended.
  6269. queueActivatedComponent(componentInstance);
  6270. } else {
  6271. activateChildComponent(componentInstance, true /* direct */);
  6272. }
  6273. }
  6274. },
  6275. destroy: function destroy (vnode) {
  6276. var componentInstance = vnode.componentInstance;
  6277. if (!componentInstance._isDestroyed) {
  6278. if (!vnode.data.keepAlive) {
  6279. componentInstance.$destroy();
  6280. } else {
  6281. deactivateChildComponent(componentInstance, true /* direct */);
  6282. }
  6283. }
  6284. }
  6285. };
  6286. var hooksToMerge = Object.keys(componentVNodeHooks);
  6287. function createComponent (
  6288. Ctor,
  6289. data,
  6290. context,
  6291. children,
  6292. tag
  6293. ) {
  6294. if (isUndef(Ctor)) {
  6295. return
  6296. }
  6297. var baseCtor = context.$options._base;
  6298. // plain options object: turn it into a constructor
  6299. if (isObject(Ctor)) {
  6300. Ctor = baseCtor.extend(Ctor);
  6301. }
  6302. // if at this stage it's not a constructor or an async component factory,
  6303. // reject.
  6304. if (typeof Ctor !== 'function') {
  6305. if (true) {
  6306. warn(("Invalid Component definition: " + (String(Ctor))), context);
  6307. }
  6308. return
  6309. }
  6310. // async component
  6311. var asyncFactory;
  6312. if (isUndef(Ctor.cid)) {
  6313. asyncFactory = Ctor;
  6314. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  6315. if (Ctor === undefined) {
  6316. // return a placeholder node for async component, which is rendered
  6317. // as a comment node but preserves all the raw information for the node.
  6318. // the information will be used for async server-rendering and hydration.
  6319. return createAsyncPlaceholder(
  6320. asyncFactory,
  6321. data,
  6322. context,
  6323. children,
  6324. tag
  6325. )
  6326. }
  6327. }
  6328. data = data || {};
  6329. // resolve constructor options in case global mixins are applied after
  6330. // component constructor creation
  6331. resolveConstructorOptions(Ctor);
  6332. // transform component v-model data into props & events
  6333. if (isDef(data.model)) {
  6334. transformModel(Ctor.options, data);
  6335. }
  6336. // extract props
  6337. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  6338. // functional component
  6339. if (isTrue(Ctor.options.functional)) {
  6340. return createFunctionalComponent(Ctor, propsData, data, context, children)
  6341. }
  6342. // extract listeners, since these needs to be treated as
  6343. // child component listeners instead of DOM listeners
  6344. var listeners = data.on;
  6345. // replace with listeners with .native modifier
  6346. // so it gets processed during parent component patch.
  6347. data.on = data.nativeOn;
  6348. if (isTrue(Ctor.options.abstract)) {
  6349. // abstract components do not keep anything
  6350. // other than props & listeners & slot
  6351. // work around flow
  6352. var slot = data.slot;
  6353. data = {};
  6354. if (slot) {
  6355. data.slot = slot;
  6356. }
  6357. }
  6358. // install component management hooks onto the placeholder node
  6359. installComponentHooks(data);
  6360. // return a placeholder vnode
  6361. var name = Ctor.options.name || tag;
  6362. var vnode = new VNode(
  6363. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  6364. data, undefined, undefined, undefined, context,
  6365. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  6366. asyncFactory
  6367. );
  6368. return vnode
  6369. }
  6370. function createComponentInstanceForVnode (
  6371. vnode, // we know it's MountedComponentVNode but flow doesn't
  6372. parent // activeInstance in lifecycle state
  6373. ) {
  6374. var options = {
  6375. _isComponent: true,
  6376. _parentVnode: vnode,
  6377. parent: parent
  6378. };
  6379. // check inline-template render functions
  6380. var inlineTemplate = vnode.data.inlineTemplate;
  6381. if (isDef(inlineTemplate)) {
  6382. options.render = inlineTemplate.render;
  6383. options.staticRenderFns = inlineTemplate.staticRenderFns;
  6384. }
  6385. return new vnode.componentOptions.Ctor(options)
  6386. }
  6387. function installComponentHooks (data) {
  6388. var hooks = data.hook || (data.hook = {});
  6389. for (var i = 0; i < hooksToMerge.length; i++) {
  6390. var key = hooksToMerge[i];
  6391. var existing = hooks[key];
  6392. var toMerge = componentVNodeHooks[key];
  6393. if (existing !== toMerge && !(existing && existing._merged)) {
  6394. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  6395. }
  6396. }
  6397. }
  6398. function mergeHook$1 (f1, f2) {
  6399. var merged = function (a, b) {
  6400. // flow complains about extra args which is why we use any
  6401. f1(a, b);
  6402. f2(a, b);
  6403. };
  6404. merged._merged = true;
  6405. return merged
  6406. }
  6407. // transform component v-model info (value and callback) into
  6408. // prop and event handler respectively.
  6409. function transformModel (options, data) {
  6410. var prop = (options.model && options.model.prop) || 'value';
  6411. var event = (options.model && options.model.event) || 'input'
  6412. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  6413. var on = data.on || (data.on = {});
  6414. var existing = on[event];
  6415. var callback = data.model.callback;
  6416. if (isDef(existing)) {
  6417. if (
  6418. Array.isArray(existing)
  6419. ? existing.indexOf(callback) === -1
  6420. : existing !== callback
  6421. ) {
  6422. on[event] = [callback].concat(existing);
  6423. }
  6424. } else {
  6425. on[event] = callback;
  6426. }
  6427. }
  6428. /* */
  6429. var SIMPLE_NORMALIZE = 1;
  6430. var ALWAYS_NORMALIZE = 2;
  6431. // wrapper function for providing a more flexible interface
  6432. // without getting yelled at by flow
  6433. function createElement (
  6434. context,
  6435. tag,
  6436. data,
  6437. children,
  6438. normalizationType,
  6439. alwaysNormalize
  6440. ) {
  6441. if (Array.isArray(data) || isPrimitive(data)) {
  6442. normalizationType = children;
  6443. children = data;
  6444. data = undefined;
  6445. }
  6446. if (isTrue(alwaysNormalize)) {
  6447. normalizationType = ALWAYS_NORMALIZE;
  6448. }
  6449. return _createElement(context, tag, data, children, normalizationType)
  6450. }
  6451. function _createElement (
  6452. context,
  6453. tag,
  6454. data,
  6455. children,
  6456. normalizationType
  6457. ) {
  6458. if (isDef(data) && isDef((data).__ob__)) {
  6459. true && warn(
  6460. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  6461. 'Always create fresh vnode data objects in each render!',
  6462. context
  6463. );
  6464. return createEmptyVNode()
  6465. }
  6466. // object syntax in v-bind
  6467. if (isDef(data) && isDef(data.is)) {
  6468. tag = data.is;
  6469. }
  6470. if (!tag) {
  6471. // in case of component :is set to falsy value
  6472. return createEmptyVNode()
  6473. }
  6474. // warn against non-primitive key
  6475. if ( true &&
  6476. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  6477. ) {
  6478. {
  6479. warn(
  6480. 'Avoid using non-primitive value as key, ' +
  6481. 'use string/number value instead.',
  6482. context
  6483. );
  6484. }
  6485. }
  6486. // support single function children as default scoped slot
  6487. if (Array.isArray(children) &&
  6488. typeof children[0] === 'function'
  6489. ) {
  6490. data = data || {};
  6491. data.scopedSlots = { default: children[0] };
  6492. children.length = 0;
  6493. }
  6494. if (normalizationType === ALWAYS_NORMALIZE) {
  6495. children = normalizeChildren(children);
  6496. } else if (normalizationType === SIMPLE_NORMALIZE) {
  6497. children = simpleNormalizeChildren(children);
  6498. }
  6499. var vnode, ns;
  6500. if (typeof tag === 'string') {
  6501. var Ctor;
  6502. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  6503. if (config.isReservedTag(tag)) {
  6504. // platform built-in elements
  6505. if ( true && isDef(data) && isDef(data.nativeOn)) {
  6506. warn(
  6507. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  6508. context
  6509. );
  6510. }
  6511. vnode = new VNode(
  6512. config.parsePlatformTagName(tag), data, children,
  6513. undefined, undefined, context
  6514. );
  6515. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  6516. // component
  6517. vnode = createComponent(Ctor, data, context, children, tag);
  6518. } else {
  6519. // unknown or unlisted namespaced elements
  6520. // check at runtime because it may get assigned a namespace when its
  6521. // parent normalizes children
  6522. vnode = new VNode(
  6523. tag, data, children,
  6524. undefined, undefined, context
  6525. );
  6526. }
  6527. } else {
  6528. // direct component options / constructor
  6529. vnode = createComponent(tag, data, context, children);
  6530. }
  6531. if (Array.isArray(vnode)) {
  6532. return vnode
  6533. } else if (isDef(vnode)) {
  6534. if (isDef(ns)) { applyNS(vnode, ns); }
  6535. if (isDef(data)) { registerDeepBindings(data); }
  6536. return vnode
  6537. } else {
  6538. return createEmptyVNode()
  6539. }
  6540. }
  6541. function applyNS (vnode, ns, force) {
  6542. vnode.ns = ns;
  6543. if (vnode.tag === 'foreignObject') {
  6544. // use default namespace inside foreignObject
  6545. ns = undefined;
  6546. force = true;
  6547. }
  6548. if (isDef(vnode.children)) {
  6549. for (var i = 0, l = vnode.children.length; i < l; i++) {
  6550. var child = vnode.children[i];
  6551. if (isDef(child.tag) && (
  6552. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  6553. applyNS(child, ns, force);
  6554. }
  6555. }
  6556. }
  6557. }
  6558. // ref #5318
  6559. // necessary to ensure parent re-render when deep bindings like :style and
  6560. // :class are used on slot nodes
  6561. function registerDeepBindings (data) {
  6562. if (isObject(data.style)) {
  6563. traverse(data.style);
  6564. }
  6565. if (isObject(data.class)) {
  6566. traverse(data.class);
  6567. }
  6568. }
  6569. /* */
  6570. function initRender (vm) {
  6571. vm._vnode = null; // the root of the child tree
  6572. vm._staticTrees = null; // v-once cached trees
  6573. var options = vm.$options;
  6574. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  6575. var renderContext = parentVnode && parentVnode.context;
  6576. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  6577. vm.$scopedSlots = emptyObject;
  6578. // bind the createElement fn to this instance
  6579. // so that we get proper render context inside it.
  6580. // args order: tag, data, children, normalizationType, alwaysNormalize
  6581. // internal version is used by render functions compiled from templates
  6582. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  6583. // normalization is always applied for the public version, used in
  6584. // user-written render functions.
  6585. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  6586. // $attrs & $listeners are exposed for easier HOC creation.
  6587. // they need to be reactive so that HOCs using them are always updated
  6588. var parentData = parentVnode && parentVnode.data;
  6589. /* istanbul ignore else */
  6590. if (true) {
  6591. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  6592. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  6593. }, true);
  6594. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  6595. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  6596. }, true);
  6597. } else {}
  6598. }
  6599. var currentRenderingInstance = null;
  6600. function renderMixin (Vue) {
  6601. // install runtime convenience helpers
  6602. installRenderHelpers(Vue.prototype);
  6603. Vue.prototype.$nextTick = function (fn) {
  6604. return nextTick(fn, this)
  6605. };
  6606. Vue.prototype._render = function () {
  6607. var vm = this;
  6608. var ref = vm.$options;
  6609. var render = ref.render;
  6610. var _parentVnode = ref._parentVnode;
  6611. if (_parentVnode) {
  6612. vm.$scopedSlots = normalizeScopedSlots(
  6613. _parentVnode.data.scopedSlots,
  6614. vm.$slots,
  6615. vm.$scopedSlots
  6616. );
  6617. }
  6618. // set parent vnode. this allows render functions to have access
  6619. // to the data on the placeholder node.
  6620. vm.$vnode = _parentVnode;
  6621. // render self
  6622. var vnode;
  6623. try {
  6624. // There's no need to maintain a stack because all render fns are called
  6625. // separately from one another. Nested component's render fns are called
  6626. // when parent component is patched.
  6627. currentRenderingInstance = vm;
  6628. vnode = render.call(vm._renderProxy, vm.$createElement);
  6629. } catch (e) {
  6630. handleError(e, vm, "render");
  6631. // return error render result,
  6632. // or previous vnode to prevent render error causing blank component
  6633. /* istanbul ignore else */
  6634. if ( true && vm.$options.renderError) {
  6635. try {
  6636. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  6637. } catch (e) {
  6638. handleError(e, vm, "renderError");
  6639. vnode = vm._vnode;
  6640. }
  6641. } else {
  6642. vnode = vm._vnode;
  6643. }
  6644. } finally {
  6645. currentRenderingInstance = null;
  6646. }
  6647. // if the returned array contains only a single node, allow it
  6648. if (Array.isArray(vnode) && vnode.length === 1) {
  6649. vnode = vnode[0];
  6650. }
  6651. // return empty vnode in case the render function errored out
  6652. if (!(vnode instanceof VNode)) {
  6653. if ( true && Array.isArray(vnode)) {
  6654. warn(
  6655. 'Multiple root nodes returned from render function. Render function ' +
  6656. 'should return a single root node.',
  6657. vm
  6658. );
  6659. }
  6660. vnode = createEmptyVNode();
  6661. }
  6662. // set parent
  6663. vnode.parent = _parentVnode;
  6664. return vnode
  6665. };
  6666. }
  6667. /* */
  6668. function ensureCtor (comp, base) {
  6669. if (
  6670. comp.__esModule ||
  6671. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  6672. ) {
  6673. comp = comp.default;
  6674. }
  6675. return isObject(comp)
  6676. ? base.extend(comp)
  6677. : comp
  6678. }
  6679. function createAsyncPlaceholder (
  6680. factory,
  6681. data,
  6682. context,
  6683. children,
  6684. tag
  6685. ) {
  6686. var node = createEmptyVNode();
  6687. node.asyncFactory = factory;
  6688. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  6689. return node
  6690. }
  6691. function resolveAsyncComponent (
  6692. factory,
  6693. baseCtor
  6694. ) {
  6695. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  6696. return factory.errorComp
  6697. }
  6698. if (isDef(factory.resolved)) {
  6699. return factory.resolved
  6700. }
  6701. var owner = currentRenderingInstance;
  6702. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  6703. // already pending
  6704. factory.owners.push(owner);
  6705. }
  6706. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  6707. return factory.loadingComp
  6708. }
  6709. if (owner && !isDef(factory.owners)) {
  6710. var owners = factory.owners = [owner];
  6711. var sync = true;
  6712. var timerLoading = null;
  6713. var timerTimeout = null
  6714. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  6715. var forceRender = function (renderCompleted) {
  6716. for (var i = 0, l = owners.length; i < l; i++) {
  6717. (owners[i]).$forceUpdate();
  6718. }
  6719. if (renderCompleted) {
  6720. owners.length = 0;
  6721. if (timerLoading !== null) {
  6722. clearTimeout(timerLoading);
  6723. timerLoading = null;
  6724. }
  6725. if (timerTimeout !== null) {
  6726. clearTimeout(timerTimeout);
  6727. timerTimeout = null;
  6728. }
  6729. }
  6730. };
  6731. var resolve = once(function (res) {
  6732. // cache resolved
  6733. factory.resolved = ensureCtor(res, baseCtor);
  6734. // invoke callbacks only if this is not a synchronous resolve
  6735. // (async resolves are shimmed as synchronous during SSR)
  6736. if (!sync) {
  6737. forceRender(true);
  6738. } else {
  6739. owners.length = 0;
  6740. }
  6741. });
  6742. var reject = once(function (reason) {
  6743. true && warn(
  6744. "Failed to resolve async component: " + (String(factory)) +
  6745. (reason ? ("\nReason: " + reason) : '')
  6746. );
  6747. if (isDef(factory.errorComp)) {
  6748. factory.error = true;
  6749. forceRender(true);
  6750. }
  6751. });
  6752. var res = factory(resolve, reject);
  6753. if (isObject(res)) {
  6754. if (isPromise(res)) {
  6755. // () => Promise
  6756. if (isUndef(factory.resolved)) {
  6757. res.then(resolve, reject);
  6758. }
  6759. } else if (isPromise(res.component)) {
  6760. res.component.then(resolve, reject);
  6761. if (isDef(res.error)) {
  6762. factory.errorComp = ensureCtor(res.error, baseCtor);
  6763. }
  6764. if (isDef(res.loading)) {
  6765. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  6766. if (res.delay === 0) {
  6767. factory.loading = true;
  6768. } else {
  6769. timerLoading = setTimeout(function () {
  6770. timerLoading = null;
  6771. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  6772. factory.loading = true;
  6773. forceRender(false);
  6774. }
  6775. }, res.delay || 200);
  6776. }
  6777. }
  6778. if (isDef(res.timeout)) {
  6779. timerTimeout = setTimeout(function () {
  6780. timerTimeout = null;
  6781. if (isUndef(factory.resolved)) {
  6782. reject(
  6783. true
  6784. ? ("timeout (" + (res.timeout) + "ms)")
  6785. : undefined
  6786. );
  6787. }
  6788. }, res.timeout);
  6789. }
  6790. }
  6791. }
  6792. sync = false;
  6793. // return in case resolved synchronously
  6794. return factory.loading
  6795. ? factory.loadingComp
  6796. : factory.resolved
  6797. }
  6798. }
  6799. /* */
  6800. function isAsyncPlaceholder (node) {
  6801. return node.isComment && node.asyncFactory
  6802. }
  6803. /* */
  6804. function getFirstComponentChild (children) {
  6805. if (Array.isArray(children)) {
  6806. for (var i = 0; i < children.length; i++) {
  6807. var c = children[i];
  6808. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  6809. return c
  6810. }
  6811. }
  6812. }
  6813. }
  6814. /* */
  6815. /* */
  6816. function initEvents (vm) {
  6817. vm._events = Object.create(null);
  6818. vm._hasHookEvent = false;
  6819. // init parent attached events
  6820. var listeners = vm.$options._parentListeners;
  6821. if (listeners) {
  6822. updateComponentListeners(vm, listeners);
  6823. }
  6824. }
  6825. var target;
  6826. function add (event, fn) {
  6827. target.$on(event, fn);
  6828. }
  6829. function remove$1 (event, fn) {
  6830. target.$off(event, fn);
  6831. }
  6832. function createOnceHandler (event, fn) {
  6833. var _target = target;
  6834. return function onceHandler () {
  6835. var res = fn.apply(null, arguments);
  6836. if (res !== null) {
  6837. _target.$off(event, onceHandler);
  6838. }
  6839. }
  6840. }
  6841. function updateComponentListeners (
  6842. vm,
  6843. listeners,
  6844. oldListeners
  6845. ) {
  6846. target = vm;
  6847. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  6848. target = undefined;
  6849. }
  6850. function eventsMixin (Vue) {
  6851. var hookRE = /^hook:/;
  6852. Vue.prototype.$on = function (event, fn) {
  6853. var vm = this;
  6854. if (Array.isArray(event)) {
  6855. for (var i = 0, l = event.length; i < l; i++) {
  6856. vm.$on(event[i], fn);
  6857. }
  6858. } else {
  6859. (vm._events[event] || (vm._events[event] = [])).push(fn);
  6860. // optimize hook:event cost by using a boolean flag marked at registration
  6861. // instead of a hash lookup
  6862. if (hookRE.test(event)) {
  6863. vm._hasHookEvent = true;
  6864. }
  6865. }
  6866. return vm
  6867. };
  6868. Vue.prototype.$once = function (event, fn) {
  6869. var vm = this;
  6870. function on () {
  6871. vm.$off(event, on);
  6872. fn.apply(vm, arguments);
  6873. }
  6874. on.fn = fn;
  6875. vm.$on(event, on);
  6876. return vm
  6877. };
  6878. Vue.prototype.$off = function (event, fn) {
  6879. var vm = this;
  6880. // all
  6881. if (!arguments.length) {
  6882. vm._events = Object.create(null);
  6883. return vm
  6884. }
  6885. // array of events
  6886. if (Array.isArray(event)) {
  6887. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  6888. vm.$off(event[i$1], fn);
  6889. }
  6890. return vm
  6891. }
  6892. // specific event
  6893. var cbs = vm._events[event];
  6894. if (!cbs) {
  6895. return vm
  6896. }
  6897. if (!fn) {
  6898. vm._events[event] = null;
  6899. return vm
  6900. }
  6901. // specific handler
  6902. var cb;
  6903. var i = cbs.length;
  6904. while (i--) {
  6905. cb = cbs[i];
  6906. if (cb === fn || cb.fn === fn) {
  6907. cbs.splice(i, 1);
  6908. break
  6909. }
  6910. }
  6911. return vm
  6912. };
  6913. Vue.prototype.$emit = function (event) {
  6914. var vm = this;
  6915. if (true) {
  6916. var lowerCaseEvent = event.toLowerCase();
  6917. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  6918. tip(
  6919. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  6920. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  6921. "Note that HTML attributes are case-insensitive and you cannot use " +
  6922. "v-on to listen to camelCase events when using in-DOM templates. " +
  6923. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  6924. );
  6925. }
  6926. }
  6927. var cbs = vm._events[event];
  6928. if (cbs) {
  6929. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  6930. var args = toArray(arguments, 1);
  6931. var info = "event handler for \"" + event + "\"";
  6932. for (var i = 0, l = cbs.length; i < l; i++) {
  6933. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  6934. }
  6935. }
  6936. return vm
  6937. };
  6938. }
  6939. /* */
  6940. var activeInstance = null;
  6941. var isUpdatingChildComponent = false;
  6942. function setActiveInstance(vm) {
  6943. var prevActiveInstance = activeInstance;
  6944. activeInstance = vm;
  6945. return function () {
  6946. activeInstance = prevActiveInstance;
  6947. }
  6948. }
  6949. function initLifecycle (vm) {
  6950. var options = vm.$options;
  6951. // locate first non-abstract parent
  6952. var parent = options.parent;
  6953. if (parent && !options.abstract) {
  6954. while (parent.$options.abstract && parent.$parent) {
  6955. parent = parent.$parent;
  6956. }
  6957. parent.$children.push(vm);
  6958. }
  6959. vm.$parent = parent;
  6960. vm.$root = parent ? parent.$root : vm;
  6961. vm.$children = [];
  6962. vm.$refs = {};
  6963. vm._watcher = null;
  6964. vm._inactive = null;
  6965. vm._directInactive = false;
  6966. vm._isMounted = false;
  6967. vm._isDestroyed = false;
  6968. vm._isBeingDestroyed = false;
  6969. }
  6970. function lifecycleMixin (Vue) {
  6971. Vue.prototype._update = function (vnode, hydrating) {
  6972. var vm = this;
  6973. var prevEl = vm.$el;
  6974. var prevVnode = vm._vnode;
  6975. var restoreActiveInstance = setActiveInstance(vm);
  6976. vm._vnode = vnode;
  6977. // Vue.prototype.__patch__ is injected in entry points
  6978. // based on the rendering backend used.
  6979. if (!prevVnode) {
  6980. // initial render
  6981. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  6982. } else {
  6983. // updates
  6984. vm.$el = vm.__patch__(prevVnode, vnode);
  6985. }
  6986. restoreActiveInstance();
  6987. // update __vue__ reference
  6988. if (prevEl) {
  6989. prevEl.__vue__ = null;
  6990. }
  6991. if (vm.$el) {
  6992. vm.$el.__vue__ = vm;
  6993. }
  6994. // if parent is an HOC, update its $el as well
  6995. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  6996. vm.$parent.$el = vm.$el;
  6997. }
  6998. // updated hook is called by the scheduler to ensure that children are
  6999. // updated in a parent's updated hook.
  7000. };
  7001. Vue.prototype.$forceUpdate = function () {
  7002. var vm = this;
  7003. if (vm._watcher) {
  7004. vm._watcher.update();
  7005. }
  7006. };
  7007. Vue.prototype.$destroy = function () {
  7008. var vm = this;
  7009. if (vm._isBeingDestroyed) {
  7010. return
  7011. }
  7012. callHook(vm, 'beforeDestroy');
  7013. vm._isBeingDestroyed = true;
  7014. // remove self from parent
  7015. var parent = vm.$parent;
  7016. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  7017. remove(parent.$children, vm);
  7018. }
  7019. // teardown watchers
  7020. if (vm._watcher) {
  7021. vm._watcher.teardown();
  7022. }
  7023. var i = vm._watchers.length;
  7024. while (i--) {
  7025. vm._watchers[i].teardown();
  7026. }
  7027. // remove reference from data ob
  7028. // frozen object may not have observer.
  7029. if (vm._data.__ob__) {
  7030. vm._data.__ob__.vmCount--;
  7031. }
  7032. // call the last hook...
  7033. vm._isDestroyed = true;
  7034. // invoke destroy hooks on current rendered tree
  7035. vm.__patch__(vm._vnode, null);
  7036. // fire destroyed hook
  7037. callHook(vm, 'destroyed');
  7038. // turn off all instance listeners.
  7039. vm.$off();
  7040. // remove __vue__ reference
  7041. if (vm.$el) {
  7042. vm.$el.__vue__ = null;
  7043. }
  7044. // release circular reference (#6759)
  7045. if (vm.$vnode) {
  7046. vm.$vnode.parent = null;
  7047. }
  7048. };
  7049. }
  7050. function updateChildComponent (
  7051. vm,
  7052. propsData,
  7053. listeners,
  7054. parentVnode,
  7055. renderChildren
  7056. ) {
  7057. if (true) {
  7058. isUpdatingChildComponent = true;
  7059. }
  7060. // determine whether component has slot children
  7061. // we need to do this before overwriting $options._renderChildren.
  7062. // check if there are dynamic scopedSlots (hand-written or compiled but with
  7063. // dynamic slot names). Static scoped slots compiled from template has the
  7064. // "$stable" marker.
  7065. var newScopedSlots = parentVnode.data.scopedSlots;
  7066. var oldScopedSlots = vm.$scopedSlots;
  7067. var hasDynamicScopedSlot = !!(
  7068. (newScopedSlots && !newScopedSlots.$stable) ||
  7069. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  7070. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  7071. );
  7072. // Any static slot children from the parent may have changed during parent's
  7073. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  7074. // update is necessary to ensure correctness.
  7075. var needsForceUpdate = !!(
  7076. renderChildren || // has new static slots
  7077. vm.$options._renderChildren || // has old static slots
  7078. hasDynamicScopedSlot
  7079. );
  7080. vm.$options._parentVnode = parentVnode;
  7081. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  7082. if (vm._vnode) { // update child tree's parent
  7083. vm._vnode.parent = parentVnode;
  7084. }
  7085. vm.$options._renderChildren = renderChildren;
  7086. // update $attrs and $listeners hash
  7087. // these are also reactive so they may trigger child update if the child
  7088. // used them during render
  7089. vm.$attrs = parentVnode.data.attrs || emptyObject;
  7090. vm.$listeners = listeners || emptyObject;
  7091. // update props
  7092. if (propsData && vm.$options.props) {
  7093. toggleObserving(false);
  7094. var props = vm._props;
  7095. var propKeys = vm.$options._propKeys || [];
  7096. for (var i = 0; i < propKeys.length; i++) {
  7097. var key = propKeys[i];
  7098. var propOptions = vm.$options.props; // wtf flow?
  7099. props[key] = validateProp(key, propOptions, propsData, vm);
  7100. }
  7101. toggleObserving(true);
  7102. // keep a copy of raw propsData
  7103. vm.$options.propsData = propsData;
  7104. }
  7105. // fixed by xxxxxx update properties(mp runtime)
  7106. vm._$updateProperties && vm._$updateProperties(vm);
  7107. // update listeners
  7108. listeners = listeners || emptyObject;
  7109. var oldListeners = vm.$options._parentListeners;
  7110. vm.$options._parentListeners = listeners;
  7111. updateComponentListeners(vm, listeners, oldListeners);
  7112. // resolve slots + force update if has children
  7113. if (needsForceUpdate) {
  7114. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  7115. vm.$forceUpdate();
  7116. }
  7117. if (true) {
  7118. isUpdatingChildComponent = false;
  7119. }
  7120. }
  7121. function isInInactiveTree (vm) {
  7122. while (vm && (vm = vm.$parent)) {
  7123. if (vm._inactive) { return true }
  7124. }
  7125. return false
  7126. }
  7127. function activateChildComponent (vm, direct) {
  7128. if (direct) {
  7129. vm._directInactive = false;
  7130. if (isInInactiveTree(vm)) {
  7131. return
  7132. }
  7133. } else if (vm._directInactive) {
  7134. return
  7135. }
  7136. if (vm._inactive || vm._inactive === null) {
  7137. vm._inactive = false;
  7138. for (var i = 0; i < vm.$children.length; i++) {
  7139. activateChildComponent(vm.$children[i]);
  7140. }
  7141. callHook(vm, 'activated');
  7142. }
  7143. }
  7144. function deactivateChildComponent (vm, direct) {
  7145. if (direct) {
  7146. vm._directInactive = true;
  7147. if (isInInactiveTree(vm)) {
  7148. return
  7149. }
  7150. }
  7151. if (!vm._inactive) {
  7152. vm._inactive = true;
  7153. for (var i = 0; i < vm.$children.length; i++) {
  7154. deactivateChildComponent(vm.$children[i]);
  7155. }
  7156. callHook(vm, 'deactivated');
  7157. }
  7158. }
  7159. function callHook (vm, hook) {
  7160. // #7573 disable dep collection when invoking lifecycle hooks
  7161. pushTarget();
  7162. var handlers = vm.$options[hook];
  7163. var info = hook + " hook";
  7164. if (handlers) {
  7165. for (var i = 0, j = handlers.length; i < j; i++) {
  7166. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  7167. }
  7168. }
  7169. if (vm._hasHookEvent) {
  7170. vm.$emit('hook:' + hook);
  7171. }
  7172. popTarget();
  7173. }
  7174. /* */
  7175. var MAX_UPDATE_COUNT = 100;
  7176. var queue = [];
  7177. var activatedChildren = [];
  7178. var has = {};
  7179. var circular = {};
  7180. var waiting = false;
  7181. var flushing = false;
  7182. var index = 0;
  7183. /**
  7184. * Reset the scheduler's state.
  7185. */
  7186. function resetSchedulerState () {
  7187. index = queue.length = activatedChildren.length = 0;
  7188. has = {};
  7189. if (true) {
  7190. circular = {};
  7191. }
  7192. waiting = flushing = false;
  7193. }
  7194. // Async edge case #6566 requires saving the timestamp when event listeners are
  7195. // attached. However, calling performance.now() has a perf overhead especially
  7196. // if the page has thousands of event listeners. Instead, we take a timestamp
  7197. // every time the scheduler flushes and use that for all event listeners
  7198. // attached during that flush.
  7199. var currentFlushTimestamp = 0;
  7200. // Async edge case fix requires storing an event listener's attach timestamp.
  7201. var getNow = Date.now;
  7202. // Determine what event timestamp the browser is using. Annoyingly, the
  7203. // timestamp can either be hi-res (relative to page load) or low-res
  7204. // (relative to UNIX epoch), so in order to compare time we have to use the
  7205. // same timestamp type when saving the flush timestamp.
  7206. // All IE versions use low-res event timestamps, and have problematic clock
  7207. // implementations (#9632)
  7208. if (inBrowser && !isIE) {
  7209. var performance = window.performance;
  7210. if (
  7211. performance &&
  7212. typeof performance.now === 'function' &&
  7213. getNow() > document.createEvent('Event').timeStamp
  7214. ) {
  7215. // if the event timestamp, although evaluated AFTER the Date.now(), is
  7216. // smaller than it, it means the event is using a hi-res timestamp,
  7217. // and we need to use the hi-res version for event listener timestamps as
  7218. // well.
  7219. getNow = function () { return performance.now(); };
  7220. }
  7221. }
  7222. /**
  7223. * Flush both queues and run the watchers.
  7224. */
  7225. function flushSchedulerQueue () {
  7226. currentFlushTimestamp = getNow();
  7227. flushing = true;
  7228. var watcher, id;
  7229. // Sort queue before flush.
  7230. // This ensures that:
  7231. // 1. Components are updated from parent to child. (because parent is always
  7232. // created before the child)
  7233. // 2. A component's user watchers are run before its render watcher (because
  7234. // user watchers are created before the render watcher)
  7235. // 3. If a component is destroyed during a parent component's watcher run,
  7236. // its watchers can be skipped.
  7237. queue.sort(function (a, b) { return a.id - b.id; });
  7238. // do not cache length because more watchers might be pushed
  7239. // as we run existing watchers
  7240. for (index = 0; index < queue.length; index++) {
  7241. watcher = queue[index];
  7242. if (watcher.before) {
  7243. watcher.before();
  7244. }
  7245. id = watcher.id;
  7246. has[id] = null;
  7247. watcher.run();
  7248. // in dev build, check and stop circular updates.
  7249. if ( true && has[id] != null) {
  7250. circular[id] = (circular[id] || 0) + 1;
  7251. if (circular[id] > MAX_UPDATE_COUNT) {
  7252. warn(
  7253. 'You may have an infinite update loop ' + (
  7254. watcher.user
  7255. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  7256. : "in a component render function."
  7257. ),
  7258. watcher.vm
  7259. );
  7260. break
  7261. }
  7262. }
  7263. }
  7264. // keep copies of post queues before resetting state
  7265. var activatedQueue = activatedChildren.slice();
  7266. var updatedQueue = queue.slice();
  7267. resetSchedulerState();
  7268. // call component updated and activated hooks
  7269. callActivatedHooks(activatedQueue);
  7270. callUpdatedHooks(updatedQueue);
  7271. // devtool hook
  7272. /* istanbul ignore if */
  7273. if (devtools && config.devtools) {
  7274. devtools.emit('flush');
  7275. }
  7276. }
  7277. function callUpdatedHooks (queue) {
  7278. var i = queue.length;
  7279. while (i--) {
  7280. var watcher = queue[i];
  7281. var vm = watcher.vm;
  7282. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  7283. callHook(vm, 'updated');
  7284. }
  7285. }
  7286. }
  7287. /**
  7288. * Queue a kept-alive component that was activated during patch.
  7289. * The queue will be processed after the entire tree has been patched.
  7290. */
  7291. function queueActivatedComponent (vm) {
  7292. // setting _inactive to false here so that a render function can
  7293. // rely on checking whether it's in an inactive tree (e.g. router-view)
  7294. vm._inactive = false;
  7295. activatedChildren.push(vm);
  7296. }
  7297. function callActivatedHooks (queue) {
  7298. for (var i = 0; i < queue.length; i++) {
  7299. queue[i]._inactive = true;
  7300. activateChildComponent(queue[i], true /* true */);
  7301. }
  7302. }
  7303. /**
  7304. * Push a watcher into the watcher queue.
  7305. * Jobs with duplicate IDs will be skipped unless it's
  7306. * pushed when the queue is being flushed.
  7307. */
  7308. function queueWatcher (watcher) {
  7309. var id = watcher.id;
  7310. if (has[id] == null) {
  7311. has[id] = true;
  7312. if (!flushing) {
  7313. queue.push(watcher);
  7314. } else {
  7315. // if already flushing, splice the watcher based on its id
  7316. // if already past its id, it will be run next immediately.
  7317. var i = queue.length - 1;
  7318. while (i > index && queue[i].id > watcher.id) {
  7319. i--;
  7320. }
  7321. queue.splice(i + 1, 0, watcher);
  7322. }
  7323. // queue the flush
  7324. if (!waiting) {
  7325. waiting = true;
  7326. if ( true && !config.async) {
  7327. flushSchedulerQueue();
  7328. return
  7329. }
  7330. nextTick(flushSchedulerQueue);
  7331. }
  7332. }
  7333. }
  7334. /* */
  7335. var uid$2 = 0;
  7336. /**
  7337. * A watcher parses an expression, collects dependencies,
  7338. * and fires callback when the expression value changes.
  7339. * This is used for both the $watch() api and directives.
  7340. */
  7341. var Watcher = function Watcher (
  7342. vm,
  7343. expOrFn,
  7344. cb,
  7345. options,
  7346. isRenderWatcher
  7347. ) {
  7348. this.vm = vm;
  7349. if (isRenderWatcher) {
  7350. vm._watcher = this;
  7351. }
  7352. vm._watchers.push(this);
  7353. // options
  7354. if (options) {
  7355. this.deep = !!options.deep;
  7356. this.user = !!options.user;
  7357. this.lazy = !!options.lazy;
  7358. this.sync = !!options.sync;
  7359. this.before = options.before;
  7360. } else {
  7361. this.deep = this.user = this.lazy = this.sync = false;
  7362. }
  7363. this.cb = cb;
  7364. this.id = ++uid$2; // uid for batching
  7365. this.active = true;
  7366. this.dirty = this.lazy; // for lazy watchers
  7367. this.deps = [];
  7368. this.newDeps = [];
  7369. this.depIds = new _Set();
  7370. this.newDepIds = new _Set();
  7371. this.expression = true
  7372. ? expOrFn.toString()
  7373. : undefined;
  7374. // parse expression for getter
  7375. if (typeof expOrFn === 'function') {
  7376. this.getter = expOrFn;
  7377. } else {
  7378. this.getter = parsePath(expOrFn);
  7379. if (!this.getter) {
  7380. this.getter = noop;
  7381. true && warn(
  7382. "Failed watching path: \"" + expOrFn + "\" " +
  7383. 'Watcher only accepts simple dot-delimited paths. ' +
  7384. 'For full control, use a function instead.',
  7385. vm
  7386. );
  7387. }
  7388. }
  7389. this.value = this.lazy
  7390. ? undefined
  7391. : this.get();
  7392. };
  7393. /**
  7394. * Evaluate the getter, and re-collect dependencies.
  7395. */
  7396. Watcher.prototype.get = function get () {
  7397. pushTarget(this);
  7398. var value;
  7399. var vm = this.vm;
  7400. try {
  7401. value = this.getter.call(vm, vm);
  7402. } catch (e) {
  7403. if (this.user) {
  7404. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  7405. } else {
  7406. throw e
  7407. }
  7408. } finally {
  7409. // "touch" every property so they are all tracked as
  7410. // dependencies for deep watching
  7411. if (this.deep) {
  7412. traverse(value);
  7413. }
  7414. popTarget();
  7415. this.cleanupDeps();
  7416. }
  7417. return value
  7418. };
  7419. /**
  7420. * Add a dependency to this directive.
  7421. */
  7422. Watcher.prototype.addDep = function addDep (dep) {
  7423. var id = dep.id;
  7424. if (!this.newDepIds.has(id)) {
  7425. this.newDepIds.add(id);
  7426. this.newDeps.push(dep);
  7427. if (!this.depIds.has(id)) {
  7428. dep.addSub(this);
  7429. }
  7430. }
  7431. };
  7432. /**
  7433. * Clean up for dependency collection.
  7434. */
  7435. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  7436. var i = this.deps.length;
  7437. while (i--) {
  7438. var dep = this.deps[i];
  7439. if (!this.newDepIds.has(dep.id)) {
  7440. dep.removeSub(this);
  7441. }
  7442. }
  7443. var tmp = this.depIds;
  7444. this.depIds = this.newDepIds;
  7445. this.newDepIds = tmp;
  7446. this.newDepIds.clear();
  7447. tmp = this.deps;
  7448. this.deps = this.newDeps;
  7449. this.newDeps = tmp;
  7450. this.newDeps.length = 0;
  7451. };
  7452. /**
  7453. * Subscriber interface.
  7454. * Will be called when a dependency changes.
  7455. */
  7456. Watcher.prototype.update = function update () {
  7457. /* istanbul ignore else */
  7458. if (this.lazy) {
  7459. this.dirty = true;
  7460. } else if (this.sync) {
  7461. this.run();
  7462. } else {
  7463. queueWatcher(this);
  7464. }
  7465. };
  7466. /**
  7467. * Scheduler job interface.
  7468. * Will be called by the scheduler.
  7469. */
  7470. Watcher.prototype.run = function run () {
  7471. if (this.active) {
  7472. var value = this.get();
  7473. if (
  7474. value !== this.value ||
  7475. // Deep watchers and watchers on Object/Arrays should fire even
  7476. // when the value is the same, because the value may
  7477. // have mutated.
  7478. isObject(value) ||
  7479. this.deep
  7480. ) {
  7481. // set new value
  7482. var oldValue = this.value;
  7483. this.value = value;
  7484. if (this.user) {
  7485. try {
  7486. this.cb.call(this.vm, value, oldValue);
  7487. } catch (e) {
  7488. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  7489. }
  7490. } else {
  7491. this.cb.call(this.vm, value, oldValue);
  7492. }
  7493. }
  7494. }
  7495. };
  7496. /**
  7497. * Evaluate the value of the watcher.
  7498. * This only gets called for lazy watchers.
  7499. */
  7500. Watcher.prototype.evaluate = function evaluate () {
  7501. this.value = this.get();
  7502. this.dirty = false;
  7503. };
  7504. /**
  7505. * Depend on all deps collected by this watcher.
  7506. */
  7507. Watcher.prototype.depend = function depend () {
  7508. var i = this.deps.length;
  7509. while (i--) {
  7510. this.deps[i].depend();
  7511. }
  7512. };
  7513. /**
  7514. * Remove self from all dependencies' subscriber list.
  7515. */
  7516. Watcher.prototype.teardown = function teardown () {
  7517. if (this.active) {
  7518. // remove self from vm's watcher list
  7519. // this is a somewhat expensive operation so we skip it
  7520. // if the vm is being destroyed.
  7521. if (!this.vm._isBeingDestroyed) {
  7522. remove(this.vm._watchers, this);
  7523. }
  7524. var i = this.deps.length;
  7525. while (i--) {
  7526. this.deps[i].removeSub(this);
  7527. }
  7528. this.active = false;
  7529. }
  7530. };
  7531. /* */
  7532. var sharedPropertyDefinition = {
  7533. enumerable: true,
  7534. configurable: true,
  7535. get: noop,
  7536. set: noop
  7537. };
  7538. function proxy (target, sourceKey, key) {
  7539. sharedPropertyDefinition.get = function proxyGetter () {
  7540. return this[sourceKey][key]
  7541. };
  7542. sharedPropertyDefinition.set = function proxySetter (val) {
  7543. this[sourceKey][key] = val;
  7544. };
  7545. Object.defineProperty(target, key, sharedPropertyDefinition);
  7546. }
  7547. function initState (vm) {
  7548. vm._watchers = [];
  7549. var opts = vm.$options;
  7550. if (opts.props) { initProps(vm, opts.props); }
  7551. if (opts.methods) { initMethods(vm, opts.methods); }
  7552. if (opts.data) {
  7553. initData(vm);
  7554. } else {
  7555. observe(vm._data = {}, true /* asRootData */);
  7556. }
  7557. if (opts.computed) { initComputed(vm, opts.computed); }
  7558. if (opts.watch && opts.watch !== nativeWatch) {
  7559. initWatch(vm, opts.watch);
  7560. }
  7561. }
  7562. function initProps (vm, propsOptions) {
  7563. var propsData = vm.$options.propsData || {};
  7564. var props = vm._props = {};
  7565. // cache prop keys so that future props updates can iterate using Array
  7566. // instead of dynamic object key enumeration.
  7567. var keys = vm.$options._propKeys = [];
  7568. var isRoot = !vm.$parent;
  7569. // root instance props should be converted
  7570. if (!isRoot) {
  7571. toggleObserving(false);
  7572. }
  7573. var loop = function ( key ) {
  7574. keys.push(key);
  7575. var value = validateProp(key, propsOptions, propsData, vm);
  7576. /* istanbul ignore else */
  7577. if (true) {
  7578. var hyphenatedKey = hyphenate(key);
  7579. if (isReservedAttribute(hyphenatedKey) ||
  7580. config.isReservedAttr(hyphenatedKey)) {
  7581. warn(
  7582. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  7583. vm
  7584. );
  7585. }
  7586. defineReactive$$1(props, key, value, function () {
  7587. if (!isRoot && !isUpdatingChildComponent) {
  7588. {
  7589. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  7590. return
  7591. }
  7592. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  7593. if(
  7594. key === 'value' &&
  7595. Array.isArray(vm.$options.behaviors) &&
  7596. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  7597. ){
  7598. return
  7599. }
  7600. if(vm._getFormData){
  7601. return
  7602. }
  7603. var $parent = vm.$parent;
  7604. while($parent){
  7605. if($parent.__next_tick_pending){
  7606. return
  7607. }
  7608. $parent = $parent.$parent;
  7609. }
  7610. }
  7611. warn(
  7612. "Avoid mutating a prop directly since the value will be " +
  7613. "overwritten whenever the parent component re-renders. " +
  7614. "Instead, use a data or computed property based on the prop's " +
  7615. "value. Prop being mutated: \"" + key + "\"",
  7616. vm
  7617. );
  7618. }
  7619. });
  7620. } else {}
  7621. // static props are already proxied on the component's prototype
  7622. // during Vue.extend(). We only need to proxy props defined at
  7623. // instantiation here.
  7624. if (!(key in vm)) {
  7625. proxy(vm, "_props", key);
  7626. }
  7627. };
  7628. for (var key in propsOptions) loop( key );
  7629. toggleObserving(true);
  7630. }
  7631. function initData (vm) {
  7632. var data = vm.$options.data;
  7633. data = vm._data = typeof data === 'function'
  7634. ? getData(data, vm)
  7635. : data || {};
  7636. if (!isPlainObject(data)) {
  7637. data = {};
  7638. true && warn(
  7639. 'data functions should return an object:\n' +
  7640. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  7641. vm
  7642. );
  7643. }
  7644. // proxy data on instance
  7645. var keys = Object.keys(data);
  7646. var props = vm.$options.props;
  7647. var methods = vm.$options.methods;
  7648. var i = keys.length;
  7649. while (i--) {
  7650. var key = keys[i];
  7651. if (true) {
  7652. if (methods && hasOwn(methods, key)) {
  7653. warn(
  7654. ("Method \"" + key + "\" has already been defined as a data property."),
  7655. vm
  7656. );
  7657. }
  7658. }
  7659. if (props && hasOwn(props, key)) {
  7660. true && warn(
  7661. "The data property \"" + key + "\" is already declared as a prop. " +
  7662. "Use prop default value instead.",
  7663. vm
  7664. );
  7665. } else if (!isReserved(key)) {
  7666. proxy(vm, "_data", key);
  7667. }
  7668. }
  7669. // observe data
  7670. observe(data, true /* asRootData */);
  7671. }
  7672. function getData (data, vm) {
  7673. // #7573 disable dep collection when invoking data getters
  7674. pushTarget();
  7675. try {
  7676. return data.call(vm, vm)
  7677. } catch (e) {
  7678. handleError(e, vm, "data()");
  7679. return {}
  7680. } finally {
  7681. popTarget();
  7682. }
  7683. }
  7684. var computedWatcherOptions = { lazy: true };
  7685. function initComputed (vm, computed) {
  7686. // $flow-disable-line
  7687. var watchers = vm._computedWatchers = Object.create(null);
  7688. // computed properties are just getters during SSR
  7689. var isSSR = isServerRendering();
  7690. for (var key in computed) {
  7691. var userDef = computed[key];
  7692. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  7693. if ( true && getter == null) {
  7694. warn(
  7695. ("Getter is missing for computed property \"" + key + "\"."),
  7696. vm
  7697. );
  7698. }
  7699. if (!isSSR) {
  7700. // create internal watcher for the computed property.
  7701. watchers[key] = new Watcher(
  7702. vm,
  7703. getter || noop,
  7704. noop,
  7705. computedWatcherOptions
  7706. );
  7707. }
  7708. // component-defined computed properties are already defined on the
  7709. // component prototype. We only need to define computed properties defined
  7710. // at instantiation here.
  7711. if (!(key in vm)) {
  7712. defineComputed(vm, key, userDef);
  7713. } else if (true) {
  7714. if (key in vm.$data) {
  7715. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  7716. } else if (vm.$options.props && key in vm.$options.props) {
  7717. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  7718. }
  7719. }
  7720. }
  7721. }
  7722. function defineComputed (
  7723. target,
  7724. key,
  7725. userDef
  7726. ) {
  7727. var shouldCache = !isServerRendering();
  7728. if (typeof userDef === 'function') {
  7729. sharedPropertyDefinition.get = shouldCache
  7730. ? createComputedGetter(key)
  7731. : createGetterInvoker(userDef);
  7732. sharedPropertyDefinition.set = noop;
  7733. } else {
  7734. sharedPropertyDefinition.get = userDef.get
  7735. ? shouldCache && userDef.cache !== false
  7736. ? createComputedGetter(key)
  7737. : createGetterInvoker(userDef.get)
  7738. : noop;
  7739. sharedPropertyDefinition.set = userDef.set || noop;
  7740. }
  7741. if ( true &&
  7742. sharedPropertyDefinition.set === noop) {
  7743. sharedPropertyDefinition.set = function () {
  7744. warn(
  7745. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  7746. this
  7747. );
  7748. };
  7749. }
  7750. Object.defineProperty(target, key, sharedPropertyDefinition);
  7751. }
  7752. function createComputedGetter (key) {
  7753. return function computedGetter () {
  7754. var watcher = this._computedWatchers && this._computedWatchers[key];
  7755. if (watcher) {
  7756. if (watcher.dirty) {
  7757. watcher.evaluate();
  7758. }
  7759. if (Dep.SharedObject.target) {// fixed by xxxxxx
  7760. watcher.depend();
  7761. }
  7762. return watcher.value
  7763. }
  7764. }
  7765. }
  7766. function createGetterInvoker(fn) {
  7767. return function computedGetter () {
  7768. return fn.call(this, this)
  7769. }
  7770. }
  7771. function initMethods (vm, methods) {
  7772. var props = vm.$options.props;
  7773. for (var key in methods) {
  7774. if (true) {
  7775. if (typeof methods[key] !== 'function') {
  7776. warn(
  7777. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  7778. "Did you reference the function correctly?",
  7779. vm
  7780. );
  7781. }
  7782. if (props && hasOwn(props, key)) {
  7783. warn(
  7784. ("Method \"" + key + "\" has already been defined as a prop."),
  7785. vm
  7786. );
  7787. }
  7788. if ((key in vm) && isReserved(key)) {
  7789. warn(
  7790. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  7791. "Avoid defining component methods that start with _ or $."
  7792. );
  7793. }
  7794. }
  7795. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  7796. }
  7797. }
  7798. function initWatch (vm, watch) {
  7799. for (var key in watch) {
  7800. var handler = watch[key];
  7801. if (Array.isArray(handler)) {
  7802. for (var i = 0; i < handler.length; i++) {
  7803. createWatcher(vm, key, handler[i]);
  7804. }
  7805. } else {
  7806. createWatcher(vm, key, handler);
  7807. }
  7808. }
  7809. }
  7810. function createWatcher (
  7811. vm,
  7812. expOrFn,
  7813. handler,
  7814. options
  7815. ) {
  7816. if (isPlainObject(handler)) {
  7817. options = handler;
  7818. handler = handler.handler;
  7819. }
  7820. if (typeof handler === 'string') {
  7821. handler = vm[handler];
  7822. }
  7823. return vm.$watch(expOrFn, handler, options)
  7824. }
  7825. function stateMixin (Vue) {
  7826. // flow somehow has problems with directly declared definition object
  7827. // when using Object.defineProperty, so we have to procedurally build up
  7828. // the object here.
  7829. var dataDef = {};
  7830. dataDef.get = function () { return this._data };
  7831. var propsDef = {};
  7832. propsDef.get = function () { return this._props };
  7833. if (true) {
  7834. dataDef.set = function () {
  7835. warn(
  7836. 'Avoid replacing instance root $data. ' +
  7837. 'Use nested data properties instead.',
  7838. this
  7839. );
  7840. };
  7841. propsDef.set = function () {
  7842. warn("$props is readonly.", this);
  7843. };
  7844. }
  7845. Object.defineProperty(Vue.prototype, '$data', dataDef);
  7846. Object.defineProperty(Vue.prototype, '$props', propsDef);
  7847. Vue.prototype.$set = set;
  7848. Vue.prototype.$delete = del;
  7849. Vue.prototype.$watch = function (
  7850. expOrFn,
  7851. cb,
  7852. options
  7853. ) {
  7854. var vm = this;
  7855. if (isPlainObject(cb)) {
  7856. return createWatcher(vm, expOrFn, cb, options)
  7857. }
  7858. options = options || {};
  7859. options.user = true;
  7860. var watcher = new Watcher(vm, expOrFn, cb, options);
  7861. if (options.immediate) {
  7862. try {
  7863. cb.call(vm, watcher.value);
  7864. } catch (error) {
  7865. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  7866. }
  7867. }
  7868. return function unwatchFn () {
  7869. watcher.teardown();
  7870. }
  7871. };
  7872. }
  7873. /* */
  7874. var uid$3 = 0;
  7875. function initMixin (Vue) {
  7876. Vue.prototype._init = function (options) {
  7877. var vm = this;
  7878. // a uid
  7879. vm._uid = uid$3++;
  7880. var startTag, endTag;
  7881. /* istanbul ignore if */
  7882. if ( true && config.performance && mark) {
  7883. startTag = "vue-perf-start:" + (vm._uid);
  7884. endTag = "vue-perf-end:" + (vm._uid);
  7885. mark(startTag);
  7886. }
  7887. // a flag to avoid this being observed
  7888. vm._isVue = true;
  7889. // merge options
  7890. if (options && options._isComponent) {
  7891. // optimize internal component instantiation
  7892. // since dynamic options merging is pretty slow, and none of the
  7893. // internal component options needs special treatment.
  7894. initInternalComponent(vm, options);
  7895. } else {
  7896. vm.$options = mergeOptions(
  7897. resolveConstructorOptions(vm.constructor),
  7898. options || {},
  7899. vm
  7900. );
  7901. }
  7902. /* istanbul ignore else */
  7903. if (true) {
  7904. initProxy(vm);
  7905. } else {}
  7906. // expose real self
  7907. vm._self = vm;
  7908. initLifecycle(vm);
  7909. initEvents(vm);
  7910. initRender(vm);
  7911. callHook(vm, 'beforeCreate');
  7912. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  7913. initState(vm);
  7914. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  7915. !vm._$fallback && callHook(vm, 'created');
  7916. /* istanbul ignore if */
  7917. if ( true && config.performance && mark) {
  7918. vm._name = formatComponentName(vm, false);
  7919. mark(endTag);
  7920. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  7921. }
  7922. if (vm.$options.el) {
  7923. vm.$mount(vm.$options.el);
  7924. }
  7925. };
  7926. }
  7927. function initInternalComponent (vm, options) {
  7928. var opts = vm.$options = Object.create(vm.constructor.options);
  7929. // doing this because it's faster than dynamic enumeration.
  7930. var parentVnode = options._parentVnode;
  7931. opts.parent = options.parent;
  7932. opts._parentVnode = parentVnode;
  7933. var vnodeComponentOptions = parentVnode.componentOptions;
  7934. opts.propsData = vnodeComponentOptions.propsData;
  7935. opts._parentListeners = vnodeComponentOptions.listeners;
  7936. opts._renderChildren = vnodeComponentOptions.children;
  7937. opts._componentTag = vnodeComponentOptions.tag;
  7938. if (options.render) {
  7939. opts.render = options.render;
  7940. opts.staticRenderFns = options.staticRenderFns;
  7941. }
  7942. }
  7943. function resolveConstructorOptions (Ctor) {
  7944. var options = Ctor.options;
  7945. if (Ctor.super) {
  7946. var superOptions = resolveConstructorOptions(Ctor.super);
  7947. var cachedSuperOptions = Ctor.superOptions;
  7948. if (superOptions !== cachedSuperOptions) {
  7949. // super option changed,
  7950. // need to resolve new options.
  7951. Ctor.superOptions = superOptions;
  7952. // check if there are any late-modified/attached options (#4976)
  7953. var modifiedOptions = resolveModifiedOptions(Ctor);
  7954. // update base extend options
  7955. if (modifiedOptions) {
  7956. extend(Ctor.extendOptions, modifiedOptions);
  7957. }
  7958. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  7959. if (options.name) {
  7960. options.components[options.name] = Ctor;
  7961. }
  7962. }
  7963. }
  7964. return options
  7965. }
  7966. function resolveModifiedOptions (Ctor) {
  7967. var modified;
  7968. var latest = Ctor.options;
  7969. var sealed = Ctor.sealedOptions;
  7970. for (var key in latest) {
  7971. if (latest[key] !== sealed[key]) {
  7972. if (!modified) { modified = {}; }
  7973. modified[key] = latest[key];
  7974. }
  7975. }
  7976. return modified
  7977. }
  7978. function Vue (options) {
  7979. if ( true &&
  7980. !(this instanceof Vue)
  7981. ) {
  7982. warn('Vue is a constructor and should be called with the `new` keyword');
  7983. }
  7984. this._init(options);
  7985. }
  7986. initMixin(Vue);
  7987. stateMixin(Vue);
  7988. eventsMixin(Vue);
  7989. lifecycleMixin(Vue);
  7990. renderMixin(Vue);
  7991. /* */
  7992. function initUse (Vue) {
  7993. Vue.use = function (plugin) {
  7994. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  7995. if (installedPlugins.indexOf(plugin) > -1) {
  7996. return this
  7997. }
  7998. // additional parameters
  7999. var args = toArray(arguments, 1);
  8000. args.unshift(this);
  8001. if (typeof plugin.install === 'function') {
  8002. plugin.install.apply(plugin, args);
  8003. } else if (typeof plugin === 'function') {
  8004. plugin.apply(null, args);
  8005. }
  8006. installedPlugins.push(plugin);
  8007. return this
  8008. };
  8009. }
  8010. /* */
  8011. function initMixin$1 (Vue) {
  8012. Vue.mixin = function (mixin) {
  8013. this.options = mergeOptions(this.options, mixin);
  8014. return this
  8015. };
  8016. }
  8017. /* */
  8018. function initExtend (Vue) {
  8019. /**
  8020. * Each instance constructor, including Vue, has a unique
  8021. * cid. This enables us to create wrapped "child
  8022. * constructors" for prototypal inheritance and cache them.
  8023. */
  8024. Vue.cid = 0;
  8025. var cid = 1;
  8026. /**
  8027. * Class inheritance
  8028. */
  8029. Vue.extend = function (extendOptions) {
  8030. extendOptions = extendOptions || {};
  8031. var Super = this;
  8032. var SuperId = Super.cid;
  8033. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  8034. if (cachedCtors[SuperId]) {
  8035. return cachedCtors[SuperId]
  8036. }
  8037. var name = extendOptions.name || Super.options.name;
  8038. if ( true && name) {
  8039. validateComponentName(name);
  8040. }
  8041. var Sub = function VueComponent (options) {
  8042. this._init(options);
  8043. };
  8044. Sub.prototype = Object.create(Super.prototype);
  8045. Sub.prototype.constructor = Sub;
  8046. Sub.cid = cid++;
  8047. Sub.options = mergeOptions(
  8048. Super.options,
  8049. extendOptions
  8050. );
  8051. Sub['super'] = Super;
  8052. // For props and computed properties, we define the proxy getters on
  8053. // the Vue instances at extension time, on the extended prototype. This
  8054. // avoids Object.defineProperty calls for each instance created.
  8055. if (Sub.options.props) {
  8056. initProps$1(Sub);
  8057. }
  8058. if (Sub.options.computed) {
  8059. initComputed$1(Sub);
  8060. }
  8061. // allow further extension/mixin/plugin usage
  8062. Sub.extend = Super.extend;
  8063. Sub.mixin = Super.mixin;
  8064. Sub.use = Super.use;
  8065. // create asset registers, so extended classes
  8066. // can have their private assets too.
  8067. ASSET_TYPES.forEach(function (type) {
  8068. Sub[type] = Super[type];
  8069. });
  8070. // enable recursive self-lookup
  8071. if (name) {
  8072. Sub.options.components[name] = Sub;
  8073. }
  8074. // keep a reference to the super options at extension time.
  8075. // later at instantiation we can check if Super's options have
  8076. // been updated.
  8077. Sub.superOptions = Super.options;
  8078. Sub.extendOptions = extendOptions;
  8079. Sub.sealedOptions = extend({}, Sub.options);
  8080. // cache constructor
  8081. cachedCtors[SuperId] = Sub;
  8082. return Sub
  8083. };
  8084. }
  8085. function initProps$1 (Comp) {
  8086. var props = Comp.options.props;
  8087. for (var key in props) {
  8088. proxy(Comp.prototype, "_props", key);
  8089. }
  8090. }
  8091. function initComputed$1 (Comp) {
  8092. var computed = Comp.options.computed;
  8093. for (var key in computed) {
  8094. defineComputed(Comp.prototype, key, computed[key]);
  8095. }
  8096. }
  8097. /* */
  8098. function initAssetRegisters (Vue) {
  8099. /**
  8100. * Create asset registration methods.
  8101. */
  8102. ASSET_TYPES.forEach(function (type) {
  8103. Vue[type] = function (
  8104. id,
  8105. definition
  8106. ) {
  8107. if (!definition) {
  8108. return this.options[type + 's'][id]
  8109. } else {
  8110. /* istanbul ignore if */
  8111. if ( true && type === 'component') {
  8112. validateComponentName(id);
  8113. }
  8114. if (type === 'component' && isPlainObject(definition)) {
  8115. definition.name = definition.name || id;
  8116. definition = this.options._base.extend(definition);
  8117. }
  8118. if (type === 'directive' && typeof definition === 'function') {
  8119. definition = { bind: definition, update: definition };
  8120. }
  8121. this.options[type + 's'][id] = definition;
  8122. return definition
  8123. }
  8124. };
  8125. });
  8126. }
  8127. /* */
  8128. function getComponentName (opts) {
  8129. return opts && (opts.Ctor.options.name || opts.tag)
  8130. }
  8131. function matches (pattern, name) {
  8132. if (Array.isArray(pattern)) {
  8133. return pattern.indexOf(name) > -1
  8134. } else if (typeof pattern === 'string') {
  8135. return pattern.split(',').indexOf(name) > -1
  8136. } else if (isRegExp(pattern)) {
  8137. return pattern.test(name)
  8138. }
  8139. /* istanbul ignore next */
  8140. return false
  8141. }
  8142. function pruneCache (keepAliveInstance, filter) {
  8143. var cache = keepAliveInstance.cache;
  8144. var keys = keepAliveInstance.keys;
  8145. var _vnode = keepAliveInstance._vnode;
  8146. for (var key in cache) {
  8147. var cachedNode = cache[key];
  8148. if (cachedNode) {
  8149. var name = getComponentName(cachedNode.componentOptions);
  8150. if (name && !filter(name)) {
  8151. pruneCacheEntry(cache, key, keys, _vnode);
  8152. }
  8153. }
  8154. }
  8155. }
  8156. function pruneCacheEntry (
  8157. cache,
  8158. key,
  8159. keys,
  8160. current
  8161. ) {
  8162. var cached$$1 = cache[key];
  8163. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  8164. cached$$1.componentInstance.$destroy();
  8165. }
  8166. cache[key] = null;
  8167. remove(keys, key);
  8168. }
  8169. var patternTypes = [String, RegExp, Array];
  8170. var KeepAlive = {
  8171. name: 'keep-alive',
  8172. abstract: true,
  8173. props: {
  8174. include: patternTypes,
  8175. exclude: patternTypes,
  8176. max: [String, Number]
  8177. },
  8178. created: function created () {
  8179. this.cache = Object.create(null);
  8180. this.keys = [];
  8181. },
  8182. destroyed: function destroyed () {
  8183. for (var key in this.cache) {
  8184. pruneCacheEntry(this.cache, key, this.keys);
  8185. }
  8186. },
  8187. mounted: function mounted () {
  8188. var this$1 = this;
  8189. this.$watch('include', function (val) {
  8190. pruneCache(this$1, function (name) { return matches(val, name); });
  8191. });
  8192. this.$watch('exclude', function (val) {
  8193. pruneCache(this$1, function (name) { return !matches(val, name); });
  8194. });
  8195. },
  8196. render: function render () {
  8197. var slot = this.$slots.default;
  8198. var vnode = getFirstComponentChild(slot);
  8199. var componentOptions = vnode && vnode.componentOptions;
  8200. if (componentOptions) {
  8201. // check pattern
  8202. var name = getComponentName(componentOptions);
  8203. var ref = this;
  8204. var include = ref.include;
  8205. var exclude = ref.exclude;
  8206. if (
  8207. // not included
  8208. (include && (!name || !matches(include, name))) ||
  8209. // excluded
  8210. (exclude && name && matches(exclude, name))
  8211. ) {
  8212. return vnode
  8213. }
  8214. var ref$1 = this;
  8215. var cache = ref$1.cache;
  8216. var keys = ref$1.keys;
  8217. var key = vnode.key == null
  8218. // same constructor may get registered as different local components
  8219. // so cid alone is not enough (#3269)
  8220. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  8221. : vnode.key;
  8222. if (cache[key]) {
  8223. vnode.componentInstance = cache[key].componentInstance;
  8224. // make current key freshest
  8225. remove(keys, key);
  8226. keys.push(key);
  8227. } else {
  8228. cache[key] = vnode;
  8229. keys.push(key);
  8230. // prune oldest entry
  8231. if (this.max && keys.length > parseInt(this.max)) {
  8232. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  8233. }
  8234. }
  8235. vnode.data.keepAlive = true;
  8236. }
  8237. return vnode || (slot && slot[0])
  8238. }
  8239. };
  8240. var builtInComponents = {
  8241. KeepAlive: KeepAlive
  8242. };
  8243. /* */
  8244. function initGlobalAPI (Vue) {
  8245. // config
  8246. var configDef = {};
  8247. configDef.get = function () { return config; };
  8248. if (true) {
  8249. configDef.set = function () {
  8250. warn(
  8251. 'Do not replace the Vue.config object, set individual fields instead.'
  8252. );
  8253. };
  8254. }
  8255. Object.defineProperty(Vue, 'config', configDef);
  8256. // exposed util methods.
  8257. // NOTE: these are not considered part of the public API - avoid relying on
  8258. // them unless you are aware of the risk.
  8259. Vue.util = {
  8260. warn: warn,
  8261. extend: extend,
  8262. mergeOptions: mergeOptions,
  8263. defineReactive: defineReactive$$1
  8264. };
  8265. Vue.set = set;
  8266. Vue.delete = del;
  8267. Vue.nextTick = nextTick;
  8268. // 2.6 explicit observable API
  8269. Vue.observable = function (obj) {
  8270. observe(obj);
  8271. return obj
  8272. };
  8273. Vue.options = Object.create(null);
  8274. ASSET_TYPES.forEach(function (type) {
  8275. Vue.options[type + 's'] = Object.create(null);
  8276. });
  8277. // this is used to identify the "base" constructor to extend all plain-object
  8278. // components with in Weex's multi-instance scenarios.
  8279. Vue.options._base = Vue;
  8280. extend(Vue.options.components, builtInComponents);
  8281. initUse(Vue);
  8282. initMixin$1(Vue);
  8283. initExtend(Vue);
  8284. initAssetRegisters(Vue);
  8285. }
  8286. initGlobalAPI(Vue);
  8287. Object.defineProperty(Vue.prototype, '$isServer', {
  8288. get: isServerRendering
  8289. });
  8290. Object.defineProperty(Vue.prototype, '$ssrContext', {
  8291. get: function get () {
  8292. /* istanbul ignore next */
  8293. return this.$vnode && this.$vnode.ssrContext
  8294. }
  8295. });
  8296. // expose FunctionalRenderContext for ssr runtime helper installation
  8297. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  8298. value: FunctionalRenderContext
  8299. });
  8300. Vue.version = '2.6.11';
  8301. /**
  8302. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  8303. */
  8304. var ARRAYTYPE = '[object Array]';
  8305. var OBJECTTYPE = '[object Object]';
  8306. var NULLTYPE = '[object Null]';
  8307. var UNDEFINEDTYPE = '[object Undefined]';
  8308. // const FUNCTIONTYPE = '[object Function]'
  8309. function diff(current, pre) {
  8310. var result = {};
  8311. syncKeys(current, pre);
  8312. _diff(current, pre, '', result);
  8313. return result
  8314. }
  8315. function syncKeys(current, pre) {
  8316. if (current === pre) { return }
  8317. var rootCurrentType = type(current);
  8318. var rootPreType = type(pre);
  8319. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  8320. if(Object.keys(current).length >= Object.keys(pre).length){
  8321. for (var key in pre) {
  8322. var currentValue = current[key];
  8323. if (currentValue === undefined) {
  8324. current[key] = null;
  8325. } else {
  8326. syncKeys(currentValue, pre[key]);
  8327. }
  8328. }
  8329. }
  8330. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  8331. if (current.length >= pre.length) {
  8332. pre.forEach(function (item, index) {
  8333. syncKeys(current[index], item);
  8334. });
  8335. }
  8336. }
  8337. }
  8338. function nullOrUndefined(currentType, preType) {
  8339. if(
  8340. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  8341. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  8342. ) {
  8343. return false
  8344. }
  8345. return true
  8346. }
  8347. function _diff(current, pre, path, result) {
  8348. if (current === pre) { return }
  8349. var rootCurrentType = type(current);
  8350. var rootPreType = type(pre);
  8351. if (rootCurrentType == OBJECTTYPE) {
  8352. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  8353. setResult(result, path, current);
  8354. } else {
  8355. var loop = function ( key ) {
  8356. var currentValue = current[key];
  8357. var preValue = pre[key];
  8358. var currentType = type(currentValue);
  8359. var preType = type(preValue);
  8360. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  8361. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  8362. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8363. }
  8364. } else if (currentType == ARRAYTYPE) {
  8365. if (preType != ARRAYTYPE) {
  8366. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8367. } else {
  8368. if (currentValue.length < preValue.length) {
  8369. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8370. } else {
  8371. currentValue.forEach(function (item, index) {
  8372. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  8373. });
  8374. }
  8375. }
  8376. } else if (currentType == OBJECTTYPE) {
  8377. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  8378. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8379. } else {
  8380. for (var subKey in currentValue) {
  8381. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  8382. }
  8383. }
  8384. }
  8385. };
  8386. for (var key in current) loop( key );
  8387. }
  8388. } else if (rootCurrentType == ARRAYTYPE) {
  8389. if (rootPreType != ARRAYTYPE) {
  8390. setResult(result, path, current);
  8391. } else {
  8392. if (current.length < pre.length) {
  8393. setResult(result, path, current);
  8394. } else {
  8395. current.forEach(function (item, index) {
  8396. _diff(item, pre[index], path + '[' + index + ']', result);
  8397. });
  8398. }
  8399. }
  8400. } else {
  8401. setResult(result, path, current);
  8402. }
  8403. }
  8404. function setResult(result, k, v) {
  8405. // if (type(v) != FUNCTIONTYPE) {
  8406. result[k] = v;
  8407. // }
  8408. }
  8409. function type(obj) {
  8410. return Object.prototype.toString.call(obj)
  8411. }
  8412. /* */
  8413. function flushCallbacks$1(vm) {
  8414. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  8415. if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"dogProject","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8416. var mpInstance = vm.$scope;
  8417. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8418. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  8419. }
  8420. var copies = vm.__next_tick_callbacks.slice(0);
  8421. vm.__next_tick_callbacks.length = 0;
  8422. for (var i = 0; i < copies.length; i++) {
  8423. copies[i]();
  8424. }
  8425. }
  8426. }
  8427. function hasRenderWatcher(vm) {
  8428. return queue.find(function (watcher) { return vm._watcher === watcher; })
  8429. }
  8430. function nextTick$1(vm, cb) {
  8431. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  8432. //2.nextTick 之前存在 render watcher
  8433. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  8434. if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"dogProject","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
  8435. var mpInstance = vm.$scope;
  8436. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8437. ']:nextVueTick');
  8438. }
  8439. return nextTick(cb, vm)
  8440. }else{
  8441. if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"dogProject","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
  8442. var mpInstance$1 = vm.$scope;
  8443. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  8444. ']:nextMPTick');
  8445. }
  8446. }
  8447. var _resolve;
  8448. if (!vm.__next_tick_callbacks) {
  8449. vm.__next_tick_callbacks = [];
  8450. }
  8451. vm.__next_tick_callbacks.push(function () {
  8452. if (cb) {
  8453. try {
  8454. cb.call(vm);
  8455. } catch (e) {
  8456. handleError(e, vm, 'nextTick');
  8457. }
  8458. } else if (_resolve) {
  8459. _resolve(vm);
  8460. }
  8461. });
  8462. // $flow-disable-line
  8463. if (!cb && typeof Promise !== 'undefined') {
  8464. return new Promise(function (resolve) {
  8465. _resolve = resolve;
  8466. })
  8467. }
  8468. }
  8469. /* */
  8470. function clearInstance(key, value) {
  8471. // 简易去除 Vue 和小程序组件实例
  8472. if (value) {
  8473. if (value._isVue || value.__v_isMPComponent) {
  8474. return {}
  8475. }
  8476. }
  8477. return value
  8478. }
  8479. function cloneWithData(vm) {
  8480. // 确保当前 vm 所有数据被同步
  8481. var ret = Object.create(null);
  8482. var dataKeys = [].concat(
  8483. Object.keys(vm._data || {}),
  8484. Object.keys(vm._computedWatchers || {}));
  8485. dataKeys.reduce(function(ret, key) {
  8486. ret[key] = vm[key];
  8487. return ret
  8488. }, ret);
  8489. // vue-composition-api
  8490. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  8491. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  8492. if (rawBindings) {
  8493. Object.keys(rawBindings).forEach(function (key) {
  8494. ret[key] = vm[key];
  8495. });
  8496. }
  8497. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  8498. Object.assign(ret, vm.$mp.data || {});
  8499. if (
  8500. Array.isArray(vm.$options.behaviors) &&
  8501. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  8502. ) { //form-field
  8503. ret['name'] = vm.name;
  8504. ret['value'] = vm.value;
  8505. }
  8506. return JSON.parse(JSON.stringify(ret, clearInstance))
  8507. }
  8508. var patch = function(oldVnode, vnode) {
  8509. var this$1 = this;
  8510. if (vnode === null) { //destroy
  8511. return
  8512. }
  8513. if (this.mpType === 'page' || this.mpType === 'component') {
  8514. var mpInstance = this.$scope;
  8515. var data = Object.create(null);
  8516. try {
  8517. data = cloneWithData(this);
  8518. } catch (err) {
  8519. console.error(err);
  8520. }
  8521. data.__webviewId__ = mpInstance.data.__webviewId__;
  8522. var mpData = Object.create(null);
  8523. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  8524. mpData[key] = mpInstance.data[key];
  8525. });
  8526. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  8527. if (Object.keys(diffData).length) {
  8528. if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"dogProject","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8529. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  8530. ']差量更新',
  8531. JSON.stringify(diffData));
  8532. }
  8533. this.__next_tick_pending = true;
  8534. mpInstance.setData(diffData, function () {
  8535. this$1.__next_tick_pending = false;
  8536. flushCallbacks$1(this$1);
  8537. });
  8538. } else {
  8539. flushCallbacks$1(this);
  8540. }
  8541. }
  8542. };
  8543. /* */
  8544. function createEmptyRender() {
  8545. }
  8546. function mountComponent$1(
  8547. vm,
  8548. el,
  8549. hydrating
  8550. ) {
  8551. if (!vm.mpType) {//main.js 中的 new Vue
  8552. return vm
  8553. }
  8554. if (vm.mpType === 'app') {
  8555. vm.$options.render = createEmptyRender;
  8556. }
  8557. if (!vm.$options.render) {
  8558. vm.$options.render = createEmptyRender;
  8559. if (true) {
  8560. /* istanbul ignore if */
  8561. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  8562. vm.$options.el || el) {
  8563. warn(
  8564. 'You are using the runtime-only build of Vue where the template ' +
  8565. 'compiler is not available. Either pre-compile the templates into ' +
  8566. 'render functions, or use the compiler-included build.',
  8567. vm
  8568. );
  8569. } else {
  8570. warn(
  8571. 'Failed to mount component: template or render function not defined.',
  8572. vm
  8573. );
  8574. }
  8575. }
  8576. }
  8577. !vm._$fallback && callHook(vm, 'beforeMount');
  8578. var updateComponent = function () {
  8579. vm._update(vm._render(), hydrating);
  8580. };
  8581. // we set this to vm._watcher inside the watcher's constructor
  8582. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  8583. // component's mounted hook), which relies on vm._watcher being already defined
  8584. new Watcher(vm, updateComponent, noop, {
  8585. before: function before() {
  8586. if (vm._isMounted && !vm._isDestroyed) {
  8587. callHook(vm, 'beforeUpdate');
  8588. }
  8589. }
  8590. }, true /* isRenderWatcher */);
  8591. hydrating = false;
  8592. return vm
  8593. }
  8594. /* */
  8595. function renderClass (
  8596. staticClass,
  8597. dynamicClass
  8598. ) {
  8599. if (isDef(staticClass) || isDef(dynamicClass)) {
  8600. return concat(staticClass, stringifyClass(dynamicClass))
  8601. }
  8602. /* istanbul ignore next */
  8603. return ''
  8604. }
  8605. function concat (a, b) {
  8606. return a ? b ? (a + ' ' + b) : a : (b || '')
  8607. }
  8608. function stringifyClass (value) {
  8609. if (Array.isArray(value)) {
  8610. return stringifyArray(value)
  8611. }
  8612. if (isObject(value)) {
  8613. return stringifyObject(value)
  8614. }
  8615. if (typeof value === 'string') {
  8616. return value
  8617. }
  8618. /* istanbul ignore next */
  8619. return ''
  8620. }
  8621. function stringifyArray (value) {
  8622. var res = '';
  8623. var stringified;
  8624. for (var i = 0, l = value.length; i < l; i++) {
  8625. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  8626. if (res) { res += ' '; }
  8627. res += stringified;
  8628. }
  8629. }
  8630. return res
  8631. }
  8632. function stringifyObject (value) {
  8633. var res = '';
  8634. for (var key in value) {
  8635. if (value[key]) {
  8636. if (res) { res += ' '; }
  8637. res += key;
  8638. }
  8639. }
  8640. return res
  8641. }
  8642. /* */
  8643. var parseStyleText = cached(function (cssText) {
  8644. var res = {};
  8645. var listDelimiter = /;(?![^(]*\))/g;
  8646. var propertyDelimiter = /:(.+)/;
  8647. cssText.split(listDelimiter).forEach(function (item) {
  8648. if (item) {
  8649. var tmp = item.split(propertyDelimiter);
  8650. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  8651. }
  8652. });
  8653. return res
  8654. });
  8655. // normalize possible array / string values into Object
  8656. function normalizeStyleBinding (bindingStyle) {
  8657. if (Array.isArray(bindingStyle)) {
  8658. return toObject(bindingStyle)
  8659. }
  8660. if (typeof bindingStyle === 'string') {
  8661. return parseStyleText(bindingStyle)
  8662. }
  8663. return bindingStyle
  8664. }
  8665. /* */
  8666. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  8667. function getTarget(obj, path) {
  8668. var parts = path.split('.');
  8669. var key = parts[0];
  8670. if (key.indexOf('__$n') === 0) { //number index
  8671. key = parseInt(key.replace('__$n', ''));
  8672. }
  8673. if (parts.length === 1) {
  8674. return obj[key]
  8675. }
  8676. return getTarget(obj[key], parts.slice(1).join('.'))
  8677. }
  8678. function internalMixin(Vue) {
  8679. Vue.config.errorHandler = function(err, vm, info) {
  8680. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  8681. console.error(err);
  8682. /* eslint-disable no-undef */
  8683. var app = typeof getApp === 'function' && getApp();
  8684. if (app && app.onError) {
  8685. app.onError(err);
  8686. }
  8687. };
  8688. var oldEmit = Vue.prototype.$emit;
  8689. Vue.prototype.$emit = function(event) {
  8690. if (this.$scope && event) {
  8691. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  8692. if (triggerEvent) {
  8693. try {
  8694. triggerEvent.call(this.$scope, event, {
  8695. __args__: toArray(arguments, 1)
  8696. });
  8697. } catch (error) {
  8698. }
  8699. }
  8700. }
  8701. return oldEmit.apply(this, arguments)
  8702. };
  8703. Vue.prototype.$nextTick = function(fn) {
  8704. return nextTick$1(this, fn)
  8705. };
  8706. MP_METHODS.forEach(function (method) {
  8707. Vue.prototype[method] = function(args) {
  8708. if (this.$scope && this.$scope[method]) {
  8709. return this.$scope[method](args)
  8710. }
  8711. // mp-alipay
  8712. if (typeof my === 'undefined') {
  8713. return
  8714. }
  8715. if (method === 'createSelectorQuery') {
  8716. /* eslint-disable no-undef */
  8717. return my.createSelectorQuery(args)
  8718. } else if (method === 'createIntersectionObserver') {
  8719. /* eslint-disable no-undef */
  8720. return my.createIntersectionObserver(args)
  8721. }
  8722. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  8723. };
  8724. });
  8725. Vue.prototype.__init_provide = initProvide;
  8726. Vue.prototype.__init_injections = initInjections;
  8727. Vue.prototype.__call_hook = function(hook, args) {
  8728. var vm = this;
  8729. // #7573 disable dep collection when invoking lifecycle hooks
  8730. pushTarget();
  8731. var handlers = vm.$options[hook];
  8732. var info = hook + " hook";
  8733. var ret;
  8734. if (handlers) {
  8735. for (var i = 0, j = handlers.length; i < j; i++) {
  8736. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  8737. }
  8738. }
  8739. if (vm._hasHookEvent) {
  8740. vm.$emit('hook:' + hook, args);
  8741. }
  8742. popTarget();
  8743. return ret
  8744. };
  8745. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  8746. if (Array.isArray(modifiers)) {
  8747. if (modifiers.indexOf('trim') !== -1) {
  8748. value = value.trim();
  8749. }
  8750. if (modifiers.indexOf('number') !== -1) {
  8751. value = this._n(value);
  8752. }
  8753. }
  8754. if (!target) {
  8755. target = this;
  8756. }
  8757. // 解决动态属性添加
  8758. Vue.set(target, key, value);
  8759. };
  8760. Vue.prototype.__set_sync = function(target, key, value) {
  8761. if (!target) {
  8762. target = this;
  8763. }
  8764. // 解决动态属性添加
  8765. Vue.set(target, key, value);
  8766. };
  8767. Vue.prototype.__get_orig = function(item) {
  8768. if (isPlainObject(item)) {
  8769. return item['$orig'] || item
  8770. }
  8771. return item
  8772. };
  8773. Vue.prototype.__get_value = function(dataPath, target) {
  8774. return getTarget(target || this, dataPath)
  8775. };
  8776. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  8777. return renderClass(staticClass, dynamicClass)
  8778. };
  8779. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  8780. if (!dynamicStyle && !staticStyle) {
  8781. return ''
  8782. }
  8783. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  8784. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  8785. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  8786. };
  8787. Vue.prototype.__map = function(val, iteratee) {
  8788. //TODO 暂不考虑 string
  8789. var ret, i, l, keys, key;
  8790. if (Array.isArray(val)) {
  8791. ret = new Array(val.length);
  8792. for (i = 0, l = val.length; i < l; i++) {
  8793. ret[i] = iteratee(val[i], i);
  8794. }
  8795. return ret
  8796. } else if (isObject(val)) {
  8797. keys = Object.keys(val);
  8798. ret = Object.create(null);
  8799. for (i = 0, l = keys.length; i < l; i++) {
  8800. key = keys[i];
  8801. ret[key] = iteratee(val[key], key, i);
  8802. }
  8803. return ret
  8804. } else if (typeof val === 'number') {
  8805. ret = new Array(val);
  8806. for (i = 0, l = val; i < l; i++) {
  8807. // 第一个参数暂时仍和小程序一致
  8808. ret[i] = iteratee(i, i);
  8809. }
  8810. return ret
  8811. }
  8812. return []
  8813. };
  8814. }
  8815. /* */
  8816. var LIFECYCLE_HOOKS$1 = [
  8817. //App
  8818. 'onLaunch',
  8819. 'onShow',
  8820. 'onHide',
  8821. 'onUniNViewMessage',
  8822. 'onPageNotFound',
  8823. 'onThemeChange',
  8824. 'onError',
  8825. 'onUnhandledRejection',
  8826. //Page
  8827. 'onInit',
  8828. 'onLoad',
  8829. // 'onShow',
  8830. 'onReady',
  8831. // 'onHide',
  8832. 'onUnload',
  8833. 'onPullDownRefresh',
  8834. 'onReachBottom',
  8835. 'onTabItemTap',
  8836. 'onAddToFavorites',
  8837. 'onShareTimeline',
  8838. 'onShareAppMessage',
  8839. 'onResize',
  8840. 'onPageScroll',
  8841. 'onNavigationBarButtonTap',
  8842. 'onBackPress',
  8843. 'onNavigationBarSearchInputChanged',
  8844. 'onNavigationBarSearchInputConfirmed',
  8845. 'onNavigationBarSearchInputClicked',
  8846. 'onUploadDouyinVideo',
  8847. 'onNFCReadMessage',
  8848. //Component
  8849. // 'onReady', // 兼容旧版本,应该移除该事件
  8850. 'onPageShow',
  8851. 'onPageHide',
  8852. 'onPageResize'
  8853. ];
  8854. function lifecycleMixin$1(Vue) {
  8855. //fixed vue-class-component
  8856. var oldExtend = Vue.extend;
  8857. Vue.extend = function(extendOptions) {
  8858. extendOptions = extendOptions || {};
  8859. var methods = extendOptions.methods;
  8860. if (methods) {
  8861. Object.keys(methods).forEach(function (methodName) {
  8862. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  8863. extendOptions[methodName] = methods[methodName];
  8864. delete methods[methodName];
  8865. }
  8866. });
  8867. }
  8868. return oldExtend.call(this, extendOptions)
  8869. };
  8870. var strategies = Vue.config.optionMergeStrategies;
  8871. var mergeHook = strategies.created;
  8872. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  8873. strategies[hook] = mergeHook;
  8874. });
  8875. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  8876. }
  8877. /* */
  8878. // install platform patch function
  8879. Vue.prototype.__patch__ = patch;
  8880. // public mount method
  8881. Vue.prototype.$mount = function(
  8882. el ,
  8883. hydrating
  8884. ) {
  8885. return mountComponent$1(this, el, hydrating)
  8886. };
  8887. lifecycleMixin$1(Vue);
  8888. internalMixin(Vue);
  8889. /* */
  8890. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  8891. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  8892. /***/ }),
  8893. /* 26 */
  8894. /*!*********************************************************************!*\
  8895. !*** D:/Project/vueProject/academicAdministrationSystem/pages.json ***!
  8896. \*********************************************************************/
  8897. /*! no static exports found */
  8898. /***/ (function(module, exports) {
  8899. /***/ }),
  8900. /* 27 */,
  8901. /* 28 */,
  8902. /* 29 */,
  8903. /* 30 */,
  8904. /* 31 */,
  8905. /* 32 */
  8906. /*!**********************************************************************************************************!*\
  8907. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  8908. \**********************************************************************************************************/
  8909. /*! exports provided: default */
  8910. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8911. "use strict";
  8912. __webpack_require__.r(__webpack_exports__);
  8913. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  8914. /* globals __VUE_SSR_CONTEXT__ */
  8915. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  8916. // This module is a runtime utility for cleaner component module output and will
  8917. // be included in the final webpack user bundle.
  8918. function normalizeComponent (
  8919. scriptExports,
  8920. render,
  8921. staticRenderFns,
  8922. functionalTemplate,
  8923. injectStyles,
  8924. scopeId,
  8925. moduleIdentifier, /* server only */
  8926. shadowMode, /* vue-cli only */
  8927. components, // fixed by xxxxxx auto components
  8928. renderjs // fixed by xxxxxx renderjs
  8929. ) {
  8930. // Vue.extend constructor export interop
  8931. var options = typeof scriptExports === 'function'
  8932. ? scriptExports.options
  8933. : scriptExports
  8934. // fixed by xxxxxx auto components
  8935. if (components) {
  8936. if (!options.components) {
  8937. options.components = {}
  8938. }
  8939. var hasOwn = Object.prototype.hasOwnProperty
  8940. for (var name in components) {
  8941. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  8942. options.components[name] = components[name]
  8943. }
  8944. }
  8945. }
  8946. // fixed by xxxxxx renderjs
  8947. if (renderjs) {
  8948. if(typeof renderjs.beforeCreate === 'function'){
  8949. renderjs.beforeCreate = [renderjs.beforeCreate]
  8950. }
  8951. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  8952. this[renderjs.__module] = this
  8953. });
  8954. (options.mixins || (options.mixins = [])).push(renderjs)
  8955. }
  8956. // render functions
  8957. if (render) {
  8958. options.render = render
  8959. options.staticRenderFns = staticRenderFns
  8960. options._compiled = true
  8961. }
  8962. // functional template
  8963. if (functionalTemplate) {
  8964. options.functional = true
  8965. }
  8966. // scopedId
  8967. if (scopeId) {
  8968. options._scopeId = 'data-v-' + scopeId
  8969. }
  8970. var hook
  8971. if (moduleIdentifier) { // server build
  8972. hook = function (context) {
  8973. // 2.3 injection
  8974. context =
  8975. context || // cached call
  8976. (this.$vnode && this.$vnode.ssrContext) || // stateful
  8977. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  8978. // 2.2 with runInNewContext: true
  8979. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  8980. context = __VUE_SSR_CONTEXT__
  8981. }
  8982. // inject component styles
  8983. if (injectStyles) {
  8984. injectStyles.call(this, context)
  8985. }
  8986. // register component module identifier for async chunk inferrence
  8987. if (context && context._registeredComponents) {
  8988. context._registeredComponents.add(moduleIdentifier)
  8989. }
  8990. }
  8991. // used by ssr in case component is cached and beforeCreate
  8992. // never gets called
  8993. options._ssrRegister = hook
  8994. } else if (injectStyles) {
  8995. hook = shadowMode
  8996. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  8997. : injectStyles
  8998. }
  8999. if (hook) {
  9000. if (options.functional) {
  9001. // for template-only hot-reload because in that case the render fn doesn't
  9002. // go through the normalizer
  9003. options._injectStyles = hook
  9004. // register for functioal component in vue file
  9005. var originalRender = options.render
  9006. options.render = function renderWithStyleInjection (h, context) {
  9007. hook.call(context)
  9008. return originalRender(h, context)
  9009. }
  9010. } else {
  9011. // inject component registration as beforeCreate hook
  9012. var existing = options.beforeCreate
  9013. options.beforeCreate = existing
  9014. ? [].concat(existing, hook)
  9015. : [hook]
  9016. }
  9017. }
  9018. return {
  9019. exports: scriptExports,
  9020. options: options
  9021. }
  9022. }
  9023. /***/ }),
  9024. /* 33 */
  9025. /*!***********************************************************************************!*\
  9026. !*** D:/Project/vueProject/academicAdministrationSystem/uni.promisify.adaptor.js ***!
  9027. \***********************************************************************************/
  9028. /*! no static exports found */
  9029. /***/ (function(module, exports, __webpack_require__) {
  9030. /* WEBPACK VAR INJECTION */(function(uni) {var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  9031. uni.addInterceptor({
  9032. returnValue: function returnValue(res) {
  9033. if (!(!!res && (_typeof(res) === "object" || typeof res === "function") && typeof res.then === "function")) {
  9034. return res;
  9035. }
  9036. return new Promise(function (resolve, reject) {
  9037. res.then(function (res) {
  9038. if (!res) return resolve(res);
  9039. return res[0] ? reject(res[0]) : resolve(res[1]);
  9040. });
  9041. });
  9042. }
  9043. });
  9044. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9045. /***/ }),
  9046. /* 34 */
  9047. /*!****************************************************************************************!*\
  9048. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/index.js ***!
  9049. \****************************************************************************************/
  9050. /*! no static exports found */
  9051. /***/ (function(module, exports, __webpack_require__) {
  9052. "use strict";
  9053. /* WEBPACK VAR INJECTION */(function(uni) {
  9054. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9055. Object.defineProperty(exports, "__esModule", {
  9056. value: true
  9057. });
  9058. exports.default = void 0;
  9059. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9060. var _mixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mixin.js */ 35));
  9061. var _mpMixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mpMixin.js */ 36));
  9062. var _luchRequest = _interopRequireDefault(__webpack_require__(/*! ./libs/luch-request */ 37));
  9063. var _route = _interopRequireDefault(__webpack_require__(/*! ./libs/util/route.js */ 55));
  9064. var _colorGradient = _interopRequireDefault(__webpack_require__(/*! ./libs/function/colorGradient.js */ 59));
  9065. var _test = _interopRequireDefault(__webpack_require__(/*! ./libs/function/test.js */ 60));
  9066. var _debounce = _interopRequireDefault(__webpack_require__(/*! ./libs/function/debounce.js */ 61));
  9067. var _throttle = _interopRequireDefault(__webpack_require__(/*! ./libs/function/throttle.js */ 62));
  9068. var _index = _interopRequireDefault(__webpack_require__(/*! ./libs/function/index.js */ 63));
  9069. var _config = _interopRequireDefault(__webpack_require__(/*! ./libs/config/config.js */ 66));
  9070. var _props = _interopRequireDefault(__webpack_require__(/*! ./libs/config/props.js */ 67));
  9071. var _zIndex = _interopRequireDefault(__webpack_require__(/*! ./libs/config/zIndex.js */ 157));
  9072. var _color = _interopRequireDefault(__webpack_require__(/*! ./libs/config/color.js */ 115));
  9073. var _platform = _interopRequireDefault(__webpack_require__(/*! ./libs/function/platform */ 158));
  9074. 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; }
  9075. 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; }
  9076. // 看到此报错,是因为没有配置vue.config.js的【transpileDependencies】,详见:https://www.uviewui.com/components/npmSetting.html#_5-cli模式额外配置
  9077. var pleaseSetTranspileDependencies = {},
  9078. babelTest = pleaseSetTranspileDependencies === null || pleaseSetTranspileDependencies === void 0 ? void 0 : pleaseSetTranspileDependencies.test;
  9079. // 引入全局mixin
  9080. var $u = _objectSpread(_objectSpread({
  9081. route: _route.default,
  9082. date: _index.default.timeFormat,
  9083. // 另名date
  9084. colorGradient: _colorGradient.default.colorGradient,
  9085. hexToRgb: _colorGradient.default.hexToRgb,
  9086. rgbToHex: _colorGradient.default.rgbToHex,
  9087. colorToRgba: _colorGradient.default.colorToRgba,
  9088. test: _test.default,
  9089. type: ['primary', 'success', 'error', 'warning', 'info'],
  9090. http: new _luchRequest.default(),
  9091. config: _config.default,
  9092. // uView配置信息相关,比如版本号
  9093. zIndex: _zIndex.default,
  9094. debounce: _debounce.default,
  9095. throttle: _throttle.default,
  9096. mixin: _mixin.default,
  9097. mpMixin: _mpMixin.default,
  9098. props: _props.default
  9099. }, _index.default), {}, {
  9100. color: _color.default,
  9101. platform: _platform.default
  9102. });
  9103. // $u挂载到uni对象上
  9104. uni.$u = $u;
  9105. var install = function install(Vue) {
  9106. // 时间格式化,同时两个名称,date和timeFormat
  9107. Vue.filter('timeFormat', function (timestamp, format) {
  9108. return uni.$u.timeFormat(timestamp, format);
  9109. });
  9110. Vue.filter('date', function (timestamp, format) {
  9111. return uni.$u.timeFormat(timestamp, format);
  9112. });
  9113. // 将多久以前的方法,注入到全局过滤器
  9114. Vue.filter('timeFrom', function (timestamp, format) {
  9115. return uni.$u.timeFrom(timestamp, format);
  9116. });
  9117. // 同时挂载到uni和Vue.prototype中
  9118. // 只有vue,挂载到Vue.prototype才有意义,因为nvue中全局Vue.prototype和Vue.mixin是无效的
  9119. Vue.prototype.$u = $u;
  9120. Vue.mixin(_mixin.default);
  9121. };
  9122. var _default = {
  9123. install: install
  9124. };
  9125. exports.default = _default;
  9126. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9127. /***/ }),
  9128. /* 35 */
  9129. /*!***************************************************************************************************!*\
  9130. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/mixin/mixin.js ***!
  9131. \***************************************************************************************************/
  9132. /*! no static exports found */
  9133. /***/ (function(module, exports, __webpack_require__) {
  9134. /* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
  9135. // 定义每个组件都可能需要用到的外部样式以及类名
  9136. props: {
  9137. // 每个组件都有的父组件传递的样式,可以为字符串或者对象形式
  9138. customStyle: {
  9139. type: [Object, String],
  9140. default: function _default() {
  9141. return {};
  9142. }
  9143. },
  9144. customClass: {
  9145. type: String,
  9146. default: ''
  9147. },
  9148. // 跳转的页面路径
  9149. url: {
  9150. type: String,
  9151. default: ''
  9152. },
  9153. // 页面跳转的类型
  9154. linkType: {
  9155. type: String,
  9156. default: 'navigateTo'
  9157. }
  9158. },
  9159. data: function data() {
  9160. return {};
  9161. },
  9162. onLoad: function onLoad() {
  9163. // getRect挂载到$u上,因为这方法需要使用in(this),所以无法把它独立成一个单独的文件导出
  9164. this.$u.getRect = this.$uGetRect;
  9165. },
  9166. created: function created() {
  9167. // 组件当中,只有created声明周期,为了能在组件使用,故也在created中将方法挂载到$u
  9168. this.$u.getRect = this.$uGetRect;
  9169. },
  9170. computed: {
  9171. // 在2.x版本中,将会把$u挂载到uni对象下,导致在模板中无法使用uni.$u.xxx形式
  9172. // 所以这里通过computed计算属性将其附加到this.$u上,就可以在模板或者js中使用uni.$u.xxx
  9173. // 只在nvue环境通过此方式引入完整的$u,其他平台会出现性能问题,非nvue则按需引入(主要原因是props过大)
  9174. $u: function $u() {
  9175. // 在非nvue端,移除props,http,mixin等对象,避免在小程序setData时数据过大影响性能
  9176. return uni.$u.deepMerge(uni.$u, {
  9177. props: undefined,
  9178. http: undefined,
  9179. mixin: undefined
  9180. });
  9181. },
  9182. /**
  9183. * 生成bem规则类名
  9184. * 由于微信小程序,H5,nvue之间绑定class的差异,无法通过:class="[bem()]"的形式进行同用
  9185. * 故采用如下折中做法,最后返回的是数组(一般平台)或字符串(支付宝和字节跳动平台),类似['a', 'b', 'c']或'a b c'的形式
  9186. * @param {String} name 组件名称
  9187. * @param {Array} fixed 一直会存在的类名
  9188. * @param {Array} change 会根据变量值为true或者false而出现或者隐藏的类名
  9189. * @returns {Array|string}
  9190. */
  9191. bem: function bem() {
  9192. return function (name, fixed, change) {
  9193. var _this = this;
  9194. // 类名前缀
  9195. var prefix = "u-".concat(name, "--");
  9196. var classes = {};
  9197. if (fixed) {
  9198. fixed.map(function (item) {
  9199. // 这里的类名,会一直存在
  9200. classes[prefix + _this[item]] = true;
  9201. });
  9202. }
  9203. if (change) {
  9204. change.map(function (item) {
  9205. // 这里的类名,会根据this[item]的值为true或者false,而进行添加或者移除某一个类
  9206. _this[item] ? classes[prefix + item] = _this[item] : delete classes[prefix + item];
  9207. });
  9208. }
  9209. return Object.keys(classes);
  9210. // 支付宝,头条小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效
  9211. };
  9212. }
  9213. },
  9214. methods: {
  9215. // 跳转某一个页面
  9216. openPage: function openPage() {
  9217. var urlKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'url';
  9218. var url = this[urlKey];
  9219. if (url) {
  9220. // 执行类似uni.navigateTo的方法
  9221. uni[this.linkType]({
  9222. url: url
  9223. });
  9224. }
  9225. },
  9226. // 查询节点信息
  9227. // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
  9228. // 解决办法为在组件根部再套一个没有任何作用的view元素
  9229. $uGetRect: function $uGetRect(selector, all) {
  9230. var _this2 = this;
  9231. return new Promise(function (resolve) {
  9232. uni.createSelectorQuery().in(_this2)[all ? 'selectAll' : 'select'](selector).boundingClientRect(function (rect) {
  9233. if (all && Array.isArray(rect) && rect.length) {
  9234. resolve(rect);
  9235. }
  9236. if (!all && rect) {
  9237. resolve(rect);
  9238. }
  9239. }).exec();
  9240. });
  9241. },
  9242. getParentData: function getParentData() {
  9243. var _this3 = this;
  9244. var parentName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  9245. // 避免在created中去定义parent变量
  9246. if (!this.parent) this.parent = {};
  9247. // 这里的本质原理是,通过获取父组件实例(也即类似u-radio的父组件u-radio-group的this)
  9248. // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
  9249. // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
  9250. // 此处并不会自动更新子组件的数据,而是依赖父组件u-radio-group去监听data的变化,手动调用更新子组件的方法去重新获取
  9251. this.parent = uni.$u.$parent.call(this, parentName);
  9252. if (this.parent.children) {
  9253. // 如果父组件的children不存在本组件的实例,才将本实例添加到父组件的children中
  9254. this.parent.children.indexOf(this) === -1 && this.parent.children.push(this);
  9255. }
  9256. if (this.parent && this.parentData) {
  9257. // 历遍parentData中的属性,将parent中的同名属性赋值给parentData
  9258. Object.keys(this.parentData).map(function (key) {
  9259. _this3.parentData[key] = _this3.parent[key];
  9260. });
  9261. }
  9262. },
  9263. // 阻止事件冒泡
  9264. preventEvent: function preventEvent(e) {
  9265. e && typeof e.stopPropagation === 'function' && e.stopPropagation();
  9266. },
  9267. // 空操作
  9268. noop: function noop(e) {
  9269. this.preventEvent(e);
  9270. }
  9271. },
  9272. onReachBottom: function onReachBottom() {
  9273. uni.$emit('uOnReachBottom');
  9274. },
  9275. beforeDestroy: function beforeDestroy() {
  9276. var _this4 = this;
  9277. // 判断当前页面是否存在parent和chldren,一般在checkbox和checkbox-group父子联动的场景会有此情况
  9278. // 组件销毁时,移除子组件在父组件children数组中的实例,释放资源,避免数据混乱
  9279. if (this.parent && uni.$u.test.array(this.parent.children)) {
  9280. // 组件销毁时,移除父组件中的children数组中对应的实例
  9281. var childrenList = this.parent.children;
  9282. childrenList.map(function (child, index) {
  9283. // 如果相等,则移除
  9284. if (child === _this4) {
  9285. childrenList.splice(index, 1);
  9286. }
  9287. });
  9288. }
  9289. }
  9290. };
  9291. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9292. /***/ }),
  9293. /* 36 */
  9294. /*!*****************************************************************************************************!*\
  9295. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/mixin/mpMixin.js ***!
  9296. \*****************************************************************************************************/
  9297. /*! no static exports found */
  9298. /***/ (function(module, exports, __webpack_require__) {
  9299. "use strict";
  9300. Object.defineProperty(exports, "__esModule", {
  9301. value: true
  9302. });
  9303. exports.default = void 0;
  9304. var _default = {
  9305. // 将自定义节点设置成虚拟的,更加接近Vue组件的表现,能更好的使用flex属性
  9306. options: {
  9307. virtualHost: true
  9308. }
  9309. };
  9310. exports.default = _default;
  9311. /***/ }),
  9312. /* 37 */
  9313. /*!**********************************************************************************************************!*\
  9314. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/luch-request/index.js ***!
  9315. \**********************************************************************************************************/
  9316. /*! no static exports found */
  9317. /***/ (function(module, exports, __webpack_require__) {
  9318. "use strict";
  9319. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9320. Object.defineProperty(exports, "__esModule", {
  9321. value: true
  9322. });
  9323. exports.default = void 0;
  9324. var _Request = _interopRequireDefault(__webpack_require__(/*! ./core/Request */ 38));
  9325. var _default = _Request.default;
  9326. exports.default = _default;
  9327. /***/ }),
  9328. /* 38 */
  9329. /*!*****************************************************************************************************************!*\
  9330. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/luch-request/core/Request.js ***!
  9331. \*****************************************************************************************************************/
  9332. /*! no static exports found */
  9333. /***/ (function(module, exports, __webpack_require__) {
  9334. "use strict";
  9335. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9336. Object.defineProperty(exports, "__esModule", {
  9337. value: true
  9338. });
  9339. exports.default = void 0;
  9340. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9341. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  9342. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  9343. var _dispatchRequest = _interopRequireDefault(__webpack_require__(/*! ./dispatchRequest */ 39));
  9344. var _InterceptorManager = _interopRequireDefault(__webpack_require__(/*! ./InterceptorManager */ 47));
  9345. var _mergeConfig = _interopRequireDefault(__webpack_require__(/*! ./mergeConfig */ 48));
  9346. var _defaults = _interopRequireDefault(__webpack_require__(/*! ./defaults */ 49));
  9347. var _utils = __webpack_require__(/*! ../utils */ 42);
  9348. var _clone = _interopRequireDefault(__webpack_require__(/*! ../utils/clone */ 50));
  9349. 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; }
  9350. 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; }
  9351. var Request = /*#__PURE__*/function () {
  9352. /**
  9353. * @param {Object} arg - 全局配置
  9354. * @param {String} arg.baseURL - 全局根路径
  9355. * @param {Object} arg.header - 全局header
  9356. * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式
  9357. * @param {String} arg.dataType = [json] - 全局默认的dataType
  9358. * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持
  9359. * @param {Object} arg.custom - 全局默认的自定义参数
  9360. * @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序(2.10.0)、支付宝小程序
  9361. * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+)
  9362. * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+)
  9363. * @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+)
  9364. * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
  9365. */
  9366. function Request() {
  9367. var arg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9368. (0, _classCallCheck2.default)(this, Request);
  9369. if (!(0, _utils.isPlainObject)(arg)) {
  9370. arg = {};
  9371. console.warn('设置全局参数必须接收一个Object');
  9372. }
  9373. this.config = (0, _clone.default)(_objectSpread(_objectSpread({}, _defaults.default), arg));
  9374. this.interceptors = {
  9375. request: new _InterceptorManager.default(),
  9376. response: new _InterceptorManager.default()
  9377. };
  9378. }
  9379. /**
  9380. * @Function
  9381. * @param {Request~setConfigCallback} f - 设置全局默认配置
  9382. */
  9383. (0, _createClass2.default)(Request, [{
  9384. key: "setConfig",
  9385. value: function setConfig(f) {
  9386. this.config = f(this.config);
  9387. }
  9388. }, {
  9389. key: "middleware",
  9390. value: function middleware(config) {
  9391. config = (0, _mergeConfig.default)(this.config, config);
  9392. var chain = [_dispatchRequest.default, undefined];
  9393. var promise = Promise.resolve(config);
  9394. this.interceptors.request.forEach(function (interceptor) {
  9395. chain.unshift(interceptor.fulfilled, interceptor.rejected);
  9396. });
  9397. this.interceptors.response.forEach(function (interceptor) {
  9398. chain.push(interceptor.fulfilled, interceptor.rejected);
  9399. });
  9400. while (chain.length) {
  9401. promise = promise.then(chain.shift(), chain.shift());
  9402. }
  9403. return promise;
  9404. }
  9405. /**
  9406. * @Function
  9407. * @param {Object} config - 请求配置项
  9408. * @prop {String} options.url - 请求路径
  9409. * @prop {Object} options.data - 请求参数
  9410. * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型
  9411. * @prop {Object} [options.dataType = config.dataType] - 如果设为 json,会尝试对返回的数据做一次 JSON.parse
  9412. * @prop {Object} [options.header = config.header] - 请求header
  9413. * @prop {Object} [options.method = config.method] - 请求方法
  9414. * @returns {Promise<unknown>}
  9415. */
  9416. }, {
  9417. key: "request",
  9418. value: function request() {
  9419. var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9420. return this.middleware(config);
  9421. }
  9422. }, {
  9423. key: "get",
  9424. value: function get(url) {
  9425. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9426. return this.middleware(_objectSpread({
  9427. url: url,
  9428. method: 'GET'
  9429. }, options));
  9430. }
  9431. }, {
  9432. key: "post",
  9433. value: function post(url, data) {
  9434. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9435. return this.middleware(_objectSpread({
  9436. url: url,
  9437. data: data,
  9438. method: 'POST'
  9439. }, options));
  9440. }
  9441. }, {
  9442. key: "put",
  9443. value: function put(url, data) {
  9444. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9445. return this.middleware(_objectSpread({
  9446. url: url,
  9447. data: data,
  9448. method: 'PUT'
  9449. }, options));
  9450. }
  9451. }, {
  9452. key: "delete",
  9453. value: function _delete(url, data) {
  9454. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9455. return this.middleware(_objectSpread({
  9456. url: url,
  9457. data: data,
  9458. method: 'DELETE'
  9459. }, options));
  9460. }
  9461. }, {
  9462. key: "connect",
  9463. value: function connect(url, data) {
  9464. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9465. return this.middleware(_objectSpread({
  9466. url: url,
  9467. data: data,
  9468. method: 'CONNECT'
  9469. }, options));
  9470. }
  9471. }, {
  9472. key: "head",
  9473. value: function head(url, data) {
  9474. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9475. return this.middleware(_objectSpread({
  9476. url: url,
  9477. data: data,
  9478. method: 'HEAD'
  9479. }, options));
  9480. }
  9481. }, {
  9482. key: "options",
  9483. value: function options(url, data) {
  9484. var _options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9485. return this.middleware(_objectSpread({
  9486. url: url,
  9487. data: data,
  9488. method: 'OPTIONS'
  9489. }, _options));
  9490. }
  9491. }, {
  9492. key: "trace",
  9493. value: function trace(url, data) {
  9494. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9495. return this.middleware(_objectSpread({
  9496. url: url,
  9497. data: data,
  9498. method: 'TRACE'
  9499. }, options));
  9500. }
  9501. }, {
  9502. key: "upload",
  9503. value: function upload(url) {
  9504. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9505. config.url = url;
  9506. config.method = 'UPLOAD';
  9507. return this.middleware(config);
  9508. }
  9509. }, {
  9510. key: "download",
  9511. value: function download(url) {
  9512. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9513. config.url = url;
  9514. config.method = 'DOWNLOAD';
  9515. return this.middleware(config);
  9516. }
  9517. }]);
  9518. return Request;
  9519. }();
  9520. /**
  9521. * setConfig回调
  9522. * @return {Object} - 返回操作后的config
  9523. * @callback Request~setConfigCallback
  9524. * @param {Object} config - 全局默认config
  9525. */
  9526. exports.default = Request;
  9527. /***/ }),
  9528. /* 39 */
  9529. /*!*************************************************************************************************************************!*\
  9530. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/luch-request/core/dispatchRequest.js ***!
  9531. \*************************************************************************************************************************/
  9532. /*! no static exports found */
  9533. /***/ (function(module, exports, __webpack_require__) {
  9534. "use strict";
  9535. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9536. Object.defineProperty(exports, "__esModule", {
  9537. value: true
  9538. });
  9539. exports.default = void 0;
  9540. var _index = _interopRequireDefault(__webpack_require__(/*! ../adapters/index */ 40));
  9541. var _default = function _default(config) {
  9542. return (0, _index.default)(config);
  9543. };
  9544. exports.default = _default;
  9545. /***/ }),
  9546. /* 40 */
  9547. /*!*******************************************************************************************************************!*\
  9548. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/luch-request/adapters/index.js ***!
  9549. \*******************************************************************************************************************/
  9550. /*! no static exports found */
  9551. /***/ (function(module, exports, __webpack_require__) {
  9552. "use strict";
  9553. /* WEBPACK VAR INJECTION */(function(uni) {
  9554. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9555. Object.defineProperty(exports, "__esModule", {
  9556. value: true
  9557. });
  9558. exports.default = void 0;
  9559. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9560. var _buildURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/buildURL */ 41));
  9561. var _buildFullPath = _interopRequireDefault(__webpack_require__(/*! ../core/buildFullPath */ 43));
  9562. var _settle = _interopRequireDefault(__webpack_require__(/*! ../core/settle */ 46));
  9563. var _utils = __webpack_require__(/*! ../utils */ 42);
  9564. 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; }
  9565. 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; }
  9566. /**
  9567. * 返回可选值存在的配置
  9568. * @param {Array} keys - 可选值数组
  9569. * @param {Object} config2 - 配置
  9570. * @return {{}} - 存在的配置项
  9571. */
  9572. var mergeKeys = function mergeKeys(keys, config2) {
  9573. var config = {};
  9574. keys.forEach(function (prop) {
  9575. if (!(0, _utils.isUndefined)(config2[prop])) {
  9576. config[prop] = config2[prop];
  9577. }
  9578. });
  9579. return config;
  9580. };
  9581. var _default = function _default(config) {
  9582. return new Promise(function (resolve, reject) {
  9583. var fullPath = (0, _buildURL.default)((0, _buildFullPath.default)(config.baseURL, config.url), config.params);
  9584. var _config = {
  9585. url: fullPath,
  9586. header: config.header,
  9587. complete: function complete(response) {
  9588. config.fullPath = fullPath;
  9589. response.config = config;
  9590. try {
  9591. // 对可能字符串不是json 的情况容错
  9592. if (typeof response.data === 'string') {
  9593. response.data = JSON.parse(response.data);
  9594. }
  9595. // eslint-disable-next-line no-empty
  9596. } catch (e) {}
  9597. (0, _settle.default)(resolve, reject, response);
  9598. }
  9599. };
  9600. var requestTask;
  9601. if (config.method === 'UPLOAD') {
  9602. delete _config.header['content-type'];
  9603. delete _config.header['Content-Type'];
  9604. var otherConfig = {
  9605. filePath: config.filePath,
  9606. name: config.name
  9607. };
  9608. var optionalKeys = ['formData'];
  9609. requestTask = uni.uploadFile(_objectSpread(_objectSpread(_objectSpread({}, _config), otherConfig), mergeKeys(optionalKeys, config)));
  9610. } else if (config.method === 'DOWNLOAD') {
  9611. requestTask = uni.downloadFile(_config);
  9612. } else {
  9613. var _optionalKeys = ['data', 'method', 'timeout', 'dataType', 'responseType'];
  9614. requestTask = uni.request(_objectSpread(_objectSpread({}, _config), mergeKeys(_optionalKeys, config)));
  9615. }
  9616. if (config.getTask) {
  9617. config.getTask(requestTask, config);
  9618. }
  9619. });
  9620. };
  9621. exports.default = _default;
  9622. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9623. /***/ }),
  9624. /* 41 */
  9625. /*!*********************************************************************************************************************!*\
  9626. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/luch-request/helpers/buildURL.js ***!
  9627. \*********************************************************************************************************************/
  9628. /*! no static exports found */
  9629. /***/ (function(module, exports, __webpack_require__) {
  9630. "use strict";
  9631. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  9632. Object.defineProperty(exports, "__esModule", {
  9633. value: true
  9634. });
  9635. exports.default = buildURL;
  9636. var utils = _interopRequireWildcard(__webpack_require__(/*! ../utils */ 42));
  9637. 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); }
  9638. 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; }
  9639. function encode(val) {
  9640. return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
  9641. }
  9642. /**
  9643. * Build a URL by appending params to the end
  9644. *
  9645. * @param {string} url The base of the url (e.g., http://www.google.com)
  9646. * @param {object} [params] The params to be appended
  9647. * @returns {string} The formatted url
  9648. */
  9649. function buildURL(url, params) {
  9650. /* eslint no-param-reassign:0 */
  9651. if (!params) {
  9652. return url;
  9653. }
  9654. var serializedParams;
  9655. if (utils.isURLSearchParams(params)) {
  9656. serializedParams = params.toString();
  9657. } else {
  9658. var parts = [];
  9659. utils.forEach(params, function (val, key) {
  9660. if (val === null || typeof val === 'undefined') {
  9661. return;
  9662. }
  9663. if (utils.isArray(val)) {
  9664. key = "".concat(key, "[]");
  9665. } else {
  9666. val = [val];
  9667. }
  9668. utils.forEach(val, function (v) {
  9669. if (utils.isDate(v)) {
  9670. v = v.toISOString();
  9671. } else if (utils.isObject(v)) {
  9672. v = JSON.stringify(v);
  9673. }
  9674. parts.push("".concat(encode(key), "=").concat(encode(v)));
  9675. });
  9676. });
  9677. serializedParams = parts.join('&');
  9678. }
  9679. if (serializedParams) {
  9680. var hashmarkIndex = url.indexOf('#');
  9681. if (hashmarkIndex !== -1) {
  9682. url = url.slice(0, hashmarkIndex);
  9683. }
  9684. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  9685. }
  9686. return url;
  9687. }
  9688. /***/ }),
  9689. /* 42 */
  9690. /*!**********************************************************************************************************!*\
  9691. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/luch-request/utils.js ***!
  9692. \**********************************************************************************************************/
  9693. /*! no static exports found */
  9694. /***/ (function(module, exports, __webpack_require__) {
  9695. "use strict";
  9696. // utils is a library of generic helper functions non-specific to axios
  9697. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9698. Object.defineProperty(exports, "__esModule", {
  9699. value: true
  9700. });
  9701. exports.deepMerge = deepMerge;
  9702. exports.forEach = forEach;
  9703. exports.isArray = isArray;
  9704. exports.isBoolean = isBoolean;
  9705. exports.isDate = isDate;
  9706. exports.isObject = isObject;
  9707. exports.isPlainObject = isPlainObject;
  9708. exports.isURLSearchParams = isURLSearchParams;
  9709. exports.isUndefined = isUndefined;
  9710. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  9711. var toString = Object.prototype.toString;
  9712. /**
  9713. * Determine if a value is an Array
  9714. *
  9715. * @param {Object} val The value to test
  9716. * @returns {boolean} True if value is an Array, otherwise false
  9717. */
  9718. function isArray(val) {
  9719. return toString.call(val) === '[object Array]';
  9720. }
  9721. /**
  9722. * Determine if a value is an Object
  9723. *
  9724. * @param {Object} val The value to test
  9725. * @returns {boolean} True if value is an Object, otherwise false
  9726. */
  9727. function isObject(val) {
  9728. return val !== null && (0, _typeof2.default)(val) === 'object';
  9729. }
  9730. /**
  9731. * Determine if a value is a Date
  9732. *
  9733. * @param {Object} val The value to test
  9734. * @returns {boolean} True if value is a Date, otherwise false
  9735. */
  9736. function isDate(val) {
  9737. return toString.call(val) === '[object Date]';
  9738. }
  9739. /**
  9740. * Determine if a value is a URLSearchParams object
  9741. *
  9742. * @param {Object} val The value to test
  9743. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  9744. */
  9745. function isURLSearchParams(val) {
  9746. return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  9747. }
  9748. /**
  9749. * Iterate over an Array or an Object invoking a function for each item.
  9750. *
  9751. * If `obj` is an Array callback will be called passing
  9752. * the value, index, and complete array for each item.
  9753. *
  9754. * If 'obj' is an Object callback will be called passing
  9755. * the value, key, and complete object for each property.
  9756. *
  9757. * @param {Object|Array} obj The object to iterate
  9758. * @param {Function} fn The callback to invoke for each item
  9759. */
  9760. function forEach(obj, fn) {
  9761. // Don't bother if no value provided
  9762. if (obj === null || typeof obj === 'undefined') {
  9763. return;
  9764. }
  9765. // Force an array if not already something iterable
  9766. if ((0, _typeof2.default)(obj) !== 'object') {
  9767. /* eslint no-param-reassign:0 */
  9768. obj = [obj];
  9769. }
  9770. if (isArray(obj)) {
  9771. // Iterate over array values
  9772. for (var i = 0, l = obj.length; i < l; i++) {
  9773. fn.call(null, obj[i], i, obj);
  9774. }
  9775. } else {
  9776. // Iterate over object keys
  9777. for (var key in obj) {
  9778. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  9779. fn.call(null, obj[key], key, obj);
  9780. }
  9781. }
  9782. }
  9783. }
  9784. /**
  9785. * 是否为boolean 值
  9786. * @param val
  9787. * @returns {boolean}
  9788. */
  9789. function isBoolean(val) {
  9790. return typeof val === 'boolean';
  9791. }
  9792. /**
  9793. * 是否为真正的对象{} new Object
  9794. * @param {any} obj - 检测的对象
  9795. * @returns {boolean}
  9796. */
  9797. function isPlainObject(obj) {
  9798. return Object.prototype.toString.call(obj) === '[object Object]';
  9799. }
  9800. /**
  9801. * Function equal to merge with the difference being that no reference
  9802. * to original objects is kept.
  9803. *
  9804. * @see merge
  9805. * @param {Object} obj1 Object to merge
  9806. * @returns {Object} Result of all merge properties
  9807. */
  9808. function deepMerge( /* obj1, obj2, obj3, ... */
  9809. ) {
  9810. var result = {};
  9811. function assignValue(val, key) {
  9812. if ((0, _typeof2.default)(result[key]) === 'object' && (0, _typeof2.default)(val) === 'object') {
  9813. result[key] = deepMerge(result[key], val);
  9814. } else if ((0, _typeof2.default)(val) === 'object') {
  9815. result[key] = deepMerge({}, val);
  9816. } else {
  9817. result[key] = val;
  9818. }
  9819. }
  9820. for (var i = 0, l = arguments.length; i < l; i++) {
  9821. forEach(arguments[i], assignValue);
  9822. }
  9823. return result;
  9824. }
  9825. function isUndefined(val) {
  9826. return typeof val === 'undefined';
  9827. }
  9828. /***/ }),
  9829. /* 43 */
  9830. /*!***********************************************************************************************************************!*\
  9831. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/luch-request/core/buildFullPath.js ***!
  9832. \***********************************************************************************************************************/
  9833. /*! no static exports found */
  9834. /***/ (function(module, exports, __webpack_require__) {
  9835. "use strict";
  9836. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9837. Object.defineProperty(exports, "__esModule", {
  9838. value: true
  9839. });
  9840. exports.default = buildFullPath;
  9841. var _isAbsoluteURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/isAbsoluteURL */ 44));
  9842. var _combineURLs = _interopRequireDefault(__webpack_require__(/*! ../helpers/combineURLs */ 45));
  9843. /**
  9844. * Creates a new URL by combining the baseURL with the requestedURL,
  9845. * only when the requestedURL is not already an absolute URL.
  9846. * If the requestURL is absolute, this function returns the requestedURL untouched.
  9847. *
  9848. * @param {string} baseURL The base URL
  9849. * @param {string} requestedURL Absolute or relative URL to combine
  9850. * @returns {string} The combined full path
  9851. */
  9852. function buildFullPath(baseURL, requestedURL) {
  9853. if (baseURL && !(0, _isAbsoluteURL.default)(requestedURL)) {
  9854. return (0, _combineURLs.default)(baseURL, requestedURL);
  9855. }
  9856. return requestedURL;
  9857. }
  9858. /***/ }),
  9859. /* 44 */
  9860. /*!**************************************************************************************************************************!*\
  9861. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js ***!
  9862. \**************************************************************************************************************************/
  9863. /*! no static exports found */
  9864. /***/ (function(module, exports, __webpack_require__) {
  9865. "use strict";
  9866. /**
  9867. * Determines whether the specified URL is absolute
  9868. *
  9869. * @param {string} url The URL to test
  9870. * @returns {boolean} True if the specified URL is absolute, otherwise false
  9871. */
  9872. Object.defineProperty(exports, "__esModule", {
  9873. value: true
  9874. });
  9875. exports.default = isAbsoluteURL;
  9876. function isAbsoluteURL(url) {
  9877. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  9878. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  9879. // by any combination of letters, digits, plus, period, or hyphen.
  9880. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
  9881. }
  9882. /***/ }),
  9883. /* 45 */
  9884. /*!************************************************************************************************************************!*\
  9885. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/luch-request/helpers/combineURLs.js ***!
  9886. \************************************************************************************************************************/
  9887. /*! no static exports found */
  9888. /***/ (function(module, exports, __webpack_require__) {
  9889. "use strict";
  9890. /**
  9891. * Creates a new URL by combining the specified URLs
  9892. *
  9893. * @param {string} baseURL The base URL
  9894. * @param {string} relativeURL The relative URL
  9895. * @returns {string} The combined URL
  9896. */
  9897. Object.defineProperty(exports, "__esModule", {
  9898. value: true
  9899. });
  9900. exports.default = combineURLs;
  9901. function combineURLs(baseURL, relativeURL) {
  9902. return relativeURL ? "".concat(baseURL.replace(/\/+$/, ''), "/").concat(relativeURL.replace(/^\/+/, '')) : baseURL;
  9903. }
  9904. /***/ }),
  9905. /* 46 */
  9906. /*!****************************************************************************************************************!*\
  9907. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/luch-request/core/settle.js ***!
  9908. \****************************************************************************************************************/
  9909. /*! no static exports found */
  9910. /***/ (function(module, exports, __webpack_require__) {
  9911. "use strict";
  9912. Object.defineProperty(exports, "__esModule", {
  9913. value: true
  9914. });
  9915. exports.default = settle;
  9916. /**
  9917. * Resolve or reject a Promise based on response status.
  9918. *
  9919. * @param {Function} resolve A function that resolves the promise.
  9920. * @param {Function} reject A function that rejects the promise.
  9921. * @param {object} response The response.
  9922. */
  9923. function settle(resolve, reject, response) {
  9924. var validateStatus = response.config.validateStatus;
  9925. var status = response.statusCode;
  9926. if (status && (!validateStatus || validateStatus(status))) {
  9927. resolve(response);
  9928. } else {
  9929. reject(response);
  9930. }
  9931. }
  9932. /***/ }),
  9933. /* 47 */
  9934. /*!****************************************************************************************************************************!*\
  9935. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/luch-request/core/InterceptorManager.js ***!
  9936. \****************************************************************************************************************************/
  9937. /*! no static exports found */
  9938. /***/ (function(module, exports, __webpack_require__) {
  9939. "use strict";
  9940. Object.defineProperty(exports, "__esModule", {
  9941. value: true
  9942. });
  9943. exports.default = void 0;
  9944. function InterceptorManager() {
  9945. this.handlers = [];
  9946. }
  9947. /**
  9948. * Add a new interceptor to the stack
  9949. *
  9950. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  9951. * @param {Function} rejected The function to handle `reject` for a `Promise`
  9952. *
  9953. * @return {Number} An ID used to remove interceptor later
  9954. */
  9955. InterceptorManager.prototype.use = function use(fulfilled, rejected) {
  9956. this.handlers.push({
  9957. fulfilled: fulfilled,
  9958. rejected: rejected
  9959. });
  9960. return this.handlers.length - 1;
  9961. };
  9962. /**
  9963. * Remove an interceptor from the stack
  9964. *
  9965. * @param {Number} id The ID that was returned by `use`
  9966. */
  9967. InterceptorManager.prototype.eject = function eject(id) {
  9968. if (this.handlers[id]) {
  9969. this.handlers[id] = null;
  9970. }
  9971. };
  9972. /**
  9973. * Iterate over all the registered interceptors
  9974. *
  9975. * This method is particularly useful for skipping over any
  9976. * interceptors that may have become `null` calling `eject`.
  9977. *
  9978. * @param {Function} fn The function to call for each interceptor
  9979. */
  9980. InterceptorManager.prototype.forEach = function forEach(fn) {
  9981. this.handlers.forEach(function (h) {
  9982. if (h !== null) {
  9983. fn(h);
  9984. }
  9985. });
  9986. };
  9987. var _default = InterceptorManager;
  9988. exports.default = _default;
  9989. /***/ }),
  9990. /* 48 */
  9991. /*!*********************************************************************************************************************!*\
  9992. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/luch-request/core/mergeConfig.js ***!
  9993. \*********************************************************************************************************************/
  9994. /*! no static exports found */
  9995. /***/ (function(module, exports, __webpack_require__) {
  9996. "use strict";
  9997. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9998. Object.defineProperty(exports, "__esModule", {
  9999. value: true
  10000. });
  10001. exports.default = void 0;
  10002. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  10003. var _utils = __webpack_require__(/*! ../utils */ 42);
  10004. 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; }
  10005. 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; }
  10006. /**
  10007. * 合并局部配置优先的配置,如果局部有该配置项则用局部,如果全局有该配置项则用全局
  10008. * @param {Array} keys - 配置项
  10009. * @param {Object} globalsConfig - 当前的全局配置
  10010. * @param {Object} config2 - 局部配置
  10011. * @return {{}}
  10012. */
  10013. var mergeKeys = function mergeKeys(keys, globalsConfig, config2) {
  10014. var config = {};
  10015. keys.forEach(function (prop) {
  10016. if (!(0, _utils.isUndefined)(config2[prop])) {
  10017. config[prop] = config2[prop];
  10018. } else if (!(0, _utils.isUndefined)(globalsConfig[prop])) {
  10019. config[prop] = globalsConfig[prop];
  10020. }
  10021. });
  10022. return config;
  10023. };
  10024. /**
  10025. *
  10026. * @param globalsConfig - 当前实例的全局配置
  10027. * @param config2 - 当前的局部配置
  10028. * @return - 合并后的配置
  10029. */
  10030. var _default = function _default(globalsConfig) {
  10031. var config2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  10032. var method = config2.method || globalsConfig.method || 'GET';
  10033. var config = {
  10034. baseURL: globalsConfig.baseURL || '',
  10035. method: method,
  10036. url: config2.url || '',
  10037. params: config2.params || {},
  10038. custom: _objectSpread(_objectSpread({}, globalsConfig.custom || {}), config2.custom || {}),
  10039. header: (0, _utils.deepMerge)(globalsConfig.header || {}, config2.header || {})
  10040. };
  10041. var defaultToConfig2Keys = ['getTask', 'validateStatus'];
  10042. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultToConfig2Keys, globalsConfig, config2));
  10043. // eslint-disable-next-line no-empty
  10044. if (method === 'DOWNLOAD') {} else if (method === 'UPLOAD') {
  10045. delete config.header['content-type'];
  10046. delete config.header['Content-Type'];
  10047. var uploadKeys = ['filePath', 'name', 'formData'];
  10048. uploadKeys.forEach(function (prop) {
  10049. if (!(0, _utils.isUndefined)(config2[prop])) {
  10050. config[prop] = config2[prop];
  10051. }
  10052. });
  10053. } else {
  10054. var defaultsKeys = ['data', 'timeout', 'dataType', 'responseType'];
  10055. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultsKeys, globalsConfig, config2));
  10056. }
  10057. return config;
  10058. };
  10059. exports.default = _default;
  10060. /***/ }),
  10061. /* 49 */
  10062. /*!******************************************************************************************************************!*\
  10063. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/luch-request/core/defaults.js ***!
  10064. \******************************************************************************************************************/
  10065. /*! no static exports found */
  10066. /***/ (function(module, exports, __webpack_require__) {
  10067. "use strict";
  10068. Object.defineProperty(exports, "__esModule", {
  10069. value: true
  10070. });
  10071. exports.default = void 0;
  10072. /**
  10073. * 默认的全局配置
  10074. */
  10075. var _default = {
  10076. baseURL: '',
  10077. header: {},
  10078. method: 'GET',
  10079. dataType: 'json',
  10080. responseType: 'text',
  10081. custom: {},
  10082. timeout: 60000,
  10083. validateStatus: function validateStatus(status) {
  10084. return status >= 200 && status < 300;
  10085. }
  10086. };
  10087. exports.default = _default;
  10088. /***/ }),
  10089. /* 50 */
  10090. /*!****************************************************************************************************************!*\
  10091. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/luch-request/utils/clone.js ***!
  10092. \****************************************************************************************************************/
  10093. /*! no static exports found */
  10094. /***/ (function(module, exports, __webpack_require__) {
  10095. "use strict";
  10096. /* WEBPACK VAR INJECTION */(function(Buffer) {
  10097. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10098. Object.defineProperty(exports, "__esModule", {
  10099. value: true
  10100. });
  10101. exports.default = void 0;
  10102. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  10103. /* eslint-disable */
  10104. var clone = function () {
  10105. 'use strict';
  10106. function _instanceof(obj, type) {
  10107. return type != null && obj instanceof type;
  10108. }
  10109. var nativeMap;
  10110. try {
  10111. nativeMap = Map;
  10112. } catch (_) {
  10113. // maybe a reference error because no `Map`. Give it a dummy value that no
  10114. // value will ever be an instanceof.
  10115. nativeMap = function nativeMap() {};
  10116. }
  10117. var nativeSet;
  10118. try {
  10119. nativeSet = Set;
  10120. } catch (_) {
  10121. nativeSet = function nativeSet() {};
  10122. }
  10123. var nativePromise;
  10124. try {
  10125. nativePromise = Promise;
  10126. } catch (_) {
  10127. nativePromise = function nativePromise() {};
  10128. }
  10129. /**
  10130. * Clones (copies) an Object using deep copying.
  10131. *
  10132. * This function supports circular references by default, but if you are certain
  10133. * there are no circular references in your object, you can save some CPU time
  10134. * by calling clone(obj, false).
  10135. *
  10136. * Caution: if `circular` is false and `parent` contains circular references,
  10137. * your program may enter an infinite loop and crash.
  10138. *
  10139. * @param `parent` - the object to be cloned
  10140. * @param `circular` - set to true if the object to be cloned may contain
  10141. * circular references. (optional - true by default)
  10142. * @param `depth` - set to a number if the object is only to be cloned to
  10143. * a particular depth. (optional - defaults to Infinity)
  10144. * @param `prototype` - sets the prototype to be used when cloning an object.
  10145. * (optional - defaults to parent prototype).
  10146. * @param `includeNonEnumerable` - set to true if the non-enumerable properties
  10147. * should be cloned as well. Non-enumerable properties on the prototype
  10148. * chain will be ignored. (optional - false by default)
  10149. */
  10150. function clone(parent, circular, depth, prototype, includeNonEnumerable) {
  10151. if ((0, _typeof2.default)(circular) === 'object') {
  10152. depth = circular.depth;
  10153. prototype = circular.prototype;
  10154. includeNonEnumerable = circular.includeNonEnumerable;
  10155. circular = circular.circular;
  10156. }
  10157. // maintain two arrays for circular references, where corresponding parents
  10158. // and children have the same index
  10159. var allParents = [];
  10160. var allChildren = [];
  10161. var useBuffer = typeof Buffer != 'undefined';
  10162. if (typeof circular == 'undefined') circular = true;
  10163. if (typeof depth == 'undefined') depth = Infinity;
  10164. // recurse this function so we don't reset allParents and allChildren
  10165. function _clone(parent, depth) {
  10166. // cloning null always returns null
  10167. if (parent === null) return null;
  10168. if (depth === 0) return parent;
  10169. var child;
  10170. var proto;
  10171. if ((0, _typeof2.default)(parent) != 'object') {
  10172. return parent;
  10173. }
  10174. if (_instanceof(parent, nativeMap)) {
  10175. child = new nativeMap();
  10176. } else if (_instanceof(parent, nativeSet)) {
  10177. child = new nativeSet();
  10178. } else if (_instanceof(parent, nativePromise)) {
  10179. child = new nativePromise(function (resolve, reject) {
  10180. parent.then(function (value) {
  10181. resolve(_clone(value, depth - 1));
  10182. }, function (err) {
  10183. reject(_clone(err, depth - 1));
  10184. });
  10185. });
  10186. } else if (clone.__isArray(parent)) {
  10187. child = [];
  10188. } else if (clone.__isRegExp(parent)) {
  10189. child = new RegExp(parent.source, __getRegExpFlags(parent));
  10190. if (parent.lastIndex) child.lastIndex = parent.lastIndex;
  10191. } else if (clone.__isDate(parent)) {
  10192. child = new Date(parent.getTime());
  10193. } else if (useBuffer && Buffer.isBuffer(parent)) {
  10194. if (Buffer.from) {
  10195. // Node.js >= 5.10.0
  10196. child = Buffer.from(parent);
  10197. } else {
  10198. // Older Node.js versions
  10199. child = new Buffer(parent.length);
  10200. parent.copy(child);
  10201. }
  10202. return child;
  10203. } else if (_instanceof(parent, Error)) {
  10204. child = Object.create(parent);
  10205. } else {
  10206. if (typeof prototype == 'undefined') {
  10207. proto = Object.getPrototypeOf(parent);
  10208. child = Object.create(proto);
  10209. } else {
  10210. child = Object.create(prototype);
  10211. proto = prototype;
  10212. }
  10213. }
  10214. if (circular) {
  10215. var index = allParents.indexOf(parent);
  10216. if (index != -1) {
  10217. return allChildren[index];
  10218. }
  10219. allParents.push(parent);
  10220. allChildren.push(child);
  10221. }
  10222. if (_instanceof(parent, nativeMap)) {
  10223. parent.forEach(function (value, key) {
  10224. var keyChild = _clone(key, depth - 1);
  10225. var valueChild = _clone(value, depth - 1);
  10226. child.set(keyChild, valueChild);
  10227. });
  10228. }
  10229. if (_instanceof(parent, nativeSet)) {
  10230. parent.forEach(function (value) {
  10231. var entryChild = _clone(value, depth - 1);
  10232. child.add(entryChild);
  10233. });
  10234. }
  10235. for (var i in parent) {
  10236. var attrs = Object.getOwnPropertyDescriptor(parent, i);
  10237. if (attrs) {
  10238. child[i] = _clone(parent[i], depth - 1);
  10239. }
  10240. try {
  10241. var objProperty = Object.getOwnPropertyDescriptor(parent, i);
  10242. if (objProperty.set === 'undefined') {
  10243. // no setter defined. Skip cloning this property
  10244. continue;
  10245. }
  10246. child[i] = _clone(parent[i], depth - 1);
  10247. } catch (e) {
  10248. if (e instanceof TypeError) {
  10249. // when in strict mode, TypeError will be thrown if child[i] property only has a getter
  10250. // we can't do anything about this, other than inform the user that this property cannot be set.
  10251. continue;
  10252. } else if (e instanceof ReferenceError) {
  10253. //this may happen in non strict mode
  10254. continue;
  10255. }
  10256. }
  10257. }
  10258. if (Object.getOwnPropertySymbols) {
  10259. var symbols = Object.getOwnPropertySymbols(parent);
  10260. for (var i = 0; i < symbols.length; i++) {
  10261. // Don't need to worry about cloning a symbol because it is a primitive,
  10262. // like a number or string.
  10263. var symbol = symbols[i];
  10264. var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
  10265. if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
  10266. continue;
  10267. }
  10268. child[symbol] = _clone(parent[symbol], depth - 1);
  10269. Object.defineProperty(child, symbol, descriptor);
  10270. }
  10271. }
  10272. if (includeNonEnumerable) {
  10273. var allPropertyNames = Object.getOwnPropertyNames(parent);
  10274. for (var i = 0; i < allPropertyNames.length; i++) {
  10275. var propertyName = allPropertyNames[i];
  10276. var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
  10277. if (descriptor && descriptor.enumerable) {
  10278. continue;
  10279. }
  10280. child[propertyName] = _clone(parent[propertyName], depth - 1);
  10281. Object.defineProperty(child, propertyName, descriptor);
  10282. }
  10283. }
  10284. return child;
  10285. }
  10286. return _clone(parent, depth);
  10287. }
  10288. /**
  10289. * Simple flat clone using prototype, accepts only objects, usefull for property
  10290. * override on FLAT configuration object (no nested props).
  10291. *
  10292. * USE WITH CAUTION! This may not behave as you wish if you do not know how this
  10293. * works.
  10294. */
  10295. clone.clonePrototype = function clonePrototype(parent) {
  10296. if (parent === null) return null;
  10297. var c = function c() {};
  10298. c.prototype = parent;
  10299. return new c();
  10300. };
  10301. // private utility functions
  10302. function __objToStr(o) {
  10303. return Object.prototype.toString.call(o);
  10304. }
  10305. clone.__objToStr = __objToStr;
  10306. function __isDate(o) {
  10307. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Date]';
  10308. }
  10309. clone.__isDate = __isDate;
  10310. function __isArray(o) {
  10311. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Array]';
  10312. }
  10313. clone.__isArray = __isArray;
  10314. function __isRegExp(o) {
  10315. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object RegExp]';
  10316. }
  10317. clone.__isRegExp = __isRegExp;
  10318. function __getRegExpFlags(re) {
  10319. var flags = '';
  10320. if (re.global) flags += 'g';
  10321. if (re.ignoreCase) flags += 'i';
  10322. if (re.multiline) flags += 'm';
  10323. return flags;
  10324. }
  10325. clone.__getRegExpFlags = __getRegExpFlags;
  10326. return clone;
  10327. }();
  10328. var _default = clone;
  10329. exports.default = _default;
  10330. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/buffer/index.js */ 51).Buffer))
  10331. /***/ }),
  10332. /* 51 */
  10333. /*!**************************************!*\
  10334. !*** ./node_modules/buffer/index.js ***!
  10335. \**************************************/
  10336. /*! no static exports found */
  10337. /***/ (function(module, exports, __webpack_require__) {
  10338. "use strict";
  10339. /* WEBPACK VAR INJECTION */(function(global) {/*!
  10340. * The buffer module from node.js, for the browser.
  10341. *
  10342. * @author Feross Aboukhadijeh <http://feross.org>
  10343. * @license MIT
  10344. */
  10345. /* eslint-disable no-proto */
  10346. var base64 = __webpack_require__(/*! base64-js */ 52)
  10347. var ieee754 = __webpack_require__(/*! ieee754 */ 53)
  10348. var isArray = __webpack_require__(/*! isarray */ 54)
  10349. exports.Buffer = Buffer
  10350. exports.SlowBuffer = SlowBuffer
  10351. exports.INSPECT_MAX_BYTES = 50
  10352. /**
  10353. * If `Buffer.TYPED_ARRAY_SUPPORT`:
  10354. * === true Use Uint8Array implementation (fastest)
  10355. * === false Use Object implementation (most compatible, even IE6)
  10356. *
  10357. * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
  10358. * Opera 11.6+, iOS 4.2+.
  10359. *
  10360. * Due to various browser bugs, sometimes the Object implementation will be used even
  10361. * when the browser supports typed arrays.
  10362. *
  10363. * Note:
  10364. *
  10365. * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
  10366. * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
  10367. *
  10368. * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
  10369. *
  10370. * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
  10371. * incorrect length in some situations.
  10372. * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
  10373. * get the Object implementation, which is slower but behaves correctly.
  10374. */
  10375. Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
  10376. ? global.TYPED_ARRAY_SUPPORT
  10377. : typedArraySupport()
  10378. /*
  10379. * Export kMaxLength after typed array support is determined.
  10380. */
  10381. exports.kMaxLength = kMaxLength()
  10382. function typedArraySupport () {
  10383. try {
  10384. var arr = new Uint8Array(1)
  10385. arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
  10386. return arr.foo() === 42 && // typed array instances can be augmented
  10387. typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
  10388. arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  10389. } catch (e) {
  10390. return false
  10391. }
  10392. }
  10393. function kMaxLength () {
  10394. return Buffer.TYPED_ARRAY_SUPPORT
  10395. ? 0x7fffffff
  10396. : 0x3fffffff
  10397. }
  10398. function createBuffer (that, length) {
  10399. if (kMaxLength() < length) {
  10400. throw new RangeError('Invalid typed array length')
  10401. }
  10402. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10403. // Return an augmented `Uint8Array` instance, for best performance
  10404. that = new Uint8Array(length)
  10405. that.__proto__ = Buffer.prototype
  10406. } else {
  10407. // Fallback: Return an object instance of the Buffer class
  10408. if (that === null) {
  10409. that = new Buffer(length)
  10410. }
  10411. that.length = length
  10412. }
  10413. return that
  10414. }
  10415. /**
  10416. * The Buffer constructor returns instances of `Uint8Array` that have their
  10417. * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
  10418. * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
  10419. * and the `Uint8Array` methods. Square bracket notation works as expected -- it
  10420. * returns a single octet.
  10421. *
  10422. * The `Uint8Array` prototype remains unmodified.
  10423. */
  10424. function Buffer (arg, encodingOrOffset, length) {
  10425. if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
  10426. return new Buffer(arg, encodingOrOffset, length)
  10427. }
  10428. // Common case.
  10429. if (typeof arg === 'number') {
  10430. if (typeof encodingOrOffset === 'string') {
  10431. throw new Error(
  10432. 'If encoding is specified then the first argument must be a string'
  10433. )
  10434. }
  10435. return allocUnsafe(this, arg)
  10436. }
  10437. return from(this, arg, encodingOrOffset, length)
  10438. }
  10439. Buffer.poolSize = 8192 // not used by this implementation
  10440. // TODO: Legacy, not needed anymore. Remove in next major version.
  10441. Buffer._augment = function (arr) {
  10442. arr.__proto__ = Buffer.prototype
  10443. return arr
  10444. }
  10445. function from (that, value, encodingOrOffset, length) {
  10446. if (typeof value === 'number') {
  10447. throw new TypeError('"value" argument must not be a number')
  10448. }
  10449. if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
  10450. return fromArrayBuffer(that, value, encodingOrOffset, length)
  10451. }
  10452. if (typeof value === 'string') {
  10453. return fromString(that, value, encodingOrOffset)
  10454. }
  10455. return fromObject(that, value)
  10456. }
  10457. /**
  10458. * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
  10459. * if value is a number.
  10460. * Buffer.from(str[, encoding])
  10461. * Buffer.from(array)
  10462. * Buffer.from(buffer)
  10463. * Buffer.from(arrayBuffer[, byteOffset[, length]])
  10464. **/
  10465. Buffer.from = function (value, encodingOrOffset, length) {
  10466. return from(null, value, encodingOrOffset, length)
  10467. }
  10468. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10469. Buffer.prototype.__proto__ = Uint8Array.prototype
  10470. Buffer.__proto__ = Uint8Array
  10471. if (typeof Symbol !== 'undefined' && Symbol.species &&
  10472. Buffer[Symbol.species] === Buffer) {
  10473. // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
  10474. Object.defineProperty(Buffer, Symbol.species, {
  10475. value: null,
  10476. configurable: true
  10477. })
  10478. }
  10479. }
  10480. function assertSize (size) {
  10481. if (typeof size !== 'number') {
  10482. throw new TypeError('"size" argument must be a number')
  10483. } else if (size < 0) {
  10484. throw new RangeError('"size" argument must not be negative')
  10485. }
  10486. }
  10487. function alloc (that, size, fill, encoding) {
  10488. assertSize(size)
  10489. if (size <= 0) {
  10490. return createBuffer(that, size)
  10491. }
  10492. if (fill !== undefined) {
  10493. // Only pay attention to encoding if it's a string. This
  10494. // prevents accidentally sending in a number that would
  10495. // be interpretted as a start offset.
  10496. return typeof encoding === 'string'
  10497. ? createBuffer(that, size).fill(fill, encoding)
  10498. : createBuffer(that, size).fill(fill)
  10499. }
  10500. return createBuffer(that, size)
  10501. }
  10502. /**
  10503. * Creates a new filled Buffer instance.
  10504. * alloc(size[, fill[, encoding]])
  10505. **/
  10506. Buffer.alloc = function (size, fill, encoding) {
  10507. return alloc(null, size, fill, encoding)
  10508. }
  10509. function allocUnsafe (that, size) {
  10510. assertSize(size)
  10511. that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  10512. if (!Buffer.TYPED_ARRAY_SUPPORT) {
  10513. for (var i = 0; i < size; ++i) {
  10514. that[i] = 0
  10515. }
  10516. }
  10517. return that
  10518. }
  10519. /**
  10520. * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
  10521. * */
  10522. Buffer.allocUnsafe = function (size) {
  10523. return allocUnsafe(null, size)
  10524. }
  10525. /**
  10526. * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
  10527. */
  10528. Buffer.allocUnsafeSlow = function (size) {
  10529. return allocUnsafe(null, size)
  10530. }
  10531. function fromString (that, string, encoding) {
  10532. if (typeof encoding !== 'string' || encoding === '') {
  10533. encoding = 'utf8'
  10534. }
  10535. if (!Buffer.isEncoding(encoding)) {
  10536. throw new TypeError('"encoding" must be a valid string encoding')
  10537. }
  10538. var length = byteLength(string, encoding) | 0
  10539. that = createBuffer(that, length)
  10540. var actual = that.write(string, encoding)
  10541. if (actual !== length) {
  10542. // Writing a hex string, for example, that contains invalid characters will
  10543. // cause everything after the first invalid character to be ignored. (e.g.
  10544. // 'abxxcd' will be treated as 'ab')
  10545. that = that.slice(0, actual)
  10546. }
  10547. return that
  10548. }
  10549. function fromArrayLike (that, array) {
  10550. var length = array.length < 0 ? 0 : checked(array.length) | 0
  10551. that = createBuffer(that, length)
  10552. for (var i = 0; i < length; i += 1) {
  10553. that[i] = array[i] & 255
  10554. }
  10555. return that
  10556. }
  10557. function fromArrayBuffer (that, array, byteOffset, length) {
  10558. array.byteLength // this throws if `array` is not a valid ArrayBuffer
  10559. if (byteOffset < 0 || array.byteLength < byteOffset) {
  10560. throw new RangeError('\'offset\' is out of bounds')
  10561. }
  10562. if (array.byteLength < byteOffset + (length || 0)) {
  10563. throw new RangeError('\'length\' is out of bounds')
  10564. }
  10565. if (byteOffset === undefined && length === undefined) {
  10566. array = new Uint8Array(array)
  10567. } else if (length === undefined) {
  10568. array = new Uint8Array(array, byteOffset)
  10569. } else {
  10570. array = new Uint8Array(array, byteOffset, length)
  10571. }
  10572. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10573. // Return an augmented `Uint8Array` instance, for best performance
  10574. that = array
  10575. that.__proto__ = Buffer.prototype
  10576. } else {
  10577. // Fallback: Return an object instance of the Buffer class
  10578. that = fromArrayLike(that, array)
  10579. }
  10580. return that
  10581. }
  10582. function fromObject (that, obj) {
  10583. if (Buffer.isBuffer(obj)) {
  10584. var len = checked(obj.length) | 0
  10585. that = createBuffer(that, len)
  10586. if (that.length === 0) {
  10587. return that
  10588. }
  10589. obj.copy(that, 0, 0, len)
  10590. return that
  10591. }
  10592. if (obj) {
  10593. if ((typeof ArrayBuffer !== 'undefined' &&
  10594. obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
  10595. if (typeof obj.length !== 'number' || isnan(obj.length)) {
  10596. return createBuffer(that, 0)
  10597. }
  10598. return fromArrayLike(that, obj)
  10599. }
  10600. if (obj.type === 'Buffer' && isArray(obj.data)) {
  10601. return fromArrayLike(that, obj.data)
  10602. }
  10603. }
  10604. throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
  10605. }
  10606. function checked (length) {
  10607. // Note: cannot use `length < kMaxLength()` here because that fails when
  10608. // length is NaN (which is otherwise coerced to zero.)
  10609. if (length >= kMaxLength()) {
  10610. throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
  10611. 'size: 0x' + kMaxLength().toString(16) + ' bytes')
  10612. }
  10613. return length | 0
  10614. }
  10615. function SlowBuffer (length) {
  10616. if (+length != length) { // eslint-disable-line eqeqeq
  10617. length = 0
  10618. }
  10619. return Buffer.alloc(+length)
  10620. }
  10621. Buffer.isBuffer = function isBuffer (b) {
  10622. return !!(b != null && b._isBuffer)
  10623. }
  10624. Buffer.compare = function compare (a, b) {
  10625. if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
  10626. throw new TypeError('Arguments must be Buffers')
  10627. }
  10628. if (a === b) return 0
  10629. var x = a.length
  10630. var y = b.length
  10631. for (var i = 0, len = Math.min(x, y); i < len; ++i) {
  10632. if (a[i] !== b[i]) {
  10633. x = a[i]
  10634. y = b[i]
  10635. break
  10636. }
  10637. }
  10638. if (x < y) return -1
  10639. if (y < x) return 1
  10640. return 0
  10641. }
  10642. Buffer.isEncoding = function isEncoding (encoding) {
  10643. switch (String(encoding).toLowerCase()) {
  10644. case 'hex':
  10645. case 'utf8':
  10646. case 'utf-8':
  10647. case 'ascii':
  10648. case 'latin1':
  10649. case 'binary':
  10650. case 'base64':
  10651. case 'ucs2':
  10652. case 'ucs-2':
  10653. case 'utf16le':
  10654. case 'utf-16le':
  10655. return true
  10656. default:
  10657. return false
  10658. }
  10659. }
  10660. Buffer.concat = function concat (list, length) {
  10661. if (!isArray(list)) {
  10662. throw new TypeError('"list" argument must be an Array of Buffers')
  10663. }
  10664. if (list.length === 0) {
  10665. return Buffer.alloc(0)
  10666. }
  10667. var i
  10668. if (length === undefined) {
  10669. length = 0
  10670. for (i = 0; i < list.length; ++i) {
  10671. length += list[i].length
  10672. }
  10673. }
  10674. var buffer = Buffer.allocUnsafe(length)
  10675. var pos = 0
  10676. for (i = 0; i < list.length; ++i) {
  10677. var buf = list[i]
  10678. if (!Buffer.isBuffer(buf)) {
  10679. throw new TypeError('"list" argument must be an Array of Buffers')
  10680. }
  10681. buf.copy(buffer, pos)
  10682. pos += buf.length
  10683. }
  10684. return buffer
  10685. }
  10686. function byteLength (string, encoding) {
  10687. if (Buffer.isBuffer(string)) {
  10688. return string.length
  10689. }
  10690. if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
  10691. (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
  10692. return string.byteLength
  10693. }
  10694. if (typeof string !== 'string') {
  10695. string = '' + string
  10696. }
  10697. var len = string.length
  10698. if (len === 0) return 0
  10699. // Use a for loop to avoid recursion
  10700. var loweredCase = false
  10701. for (;;) {
  10702. switch (encoding) {
  10703. case 'ascii':
  10704. case 'latin1':
  10705. case 'binary':
  10706. return len
  10707. case 'utf8':
  10708. case 'utf-8':
  10709. case undefined:
  10710. return utf8ToBytes(string).length
  10711. case 'ucs2':
  10712. case 'ucs-2':
  10713. case 'utf16le':
  10714. case 'utf-16le':
  10715. return len * 2
  10716. case 'hex':
  10717. return len >>> 1
  10718. case 'base64':
  10719. return base64ToBytes(string).length
  10720. default:
  10721. if (loweredCase) return utf8ToBytes(string).length // assume utf8
  10722. encoding = ('' + encoding).toLowerCase()
  10723. loweredCase = true
  10724. }
  10725. }
  10726. }
  10727. Buffer.byteLength = byteLength
  10728. function slowToString (encoding, start, end) {
  10729. var loweredCase = false
  10730. // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
  10731. // property of a typed array.
  10732. // This behaves neither like String nor Uint8Array in that we set start/end
  10733. // to their upper/lower bounds if the value passed is out of range.
  10734. // undefined is handled specially as per ECMA-262 6th Edition,
  10735. // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
  10736. if (start === undefined || start < 0) {
  10737. start = 0
  10738. }
  10739. // Return early if start > this.length. Done here to prevent potential uint32
  10740. // coercion fail below.
  10741. if (start > this.length) {
  10742. return ''
  10743. }
  10744. if (end === undefined || end > this.length) {
  10745. end = this.length
  10746. }
  10747. if (end <= 0) {
  10748. return ''
  10749. }
  10750. // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
  10751. end >>>= 0
  10752. start >>>= 0
  10753. if (end <= start) {
  10754. return ''
  10755. }
  10756. if (!encoding) encoding = 'utf8'
  10757. while (true) {
  10758. switch (encoding) {
  10759. case 'hex':
  10760. return hexSlice(this, start, end)
  10761. case 'utf8':
  10762. case 'utf-8':
  10763. return utf8Slice(this, start, end)
  10764. case 'ascii':
  10765. return asciiSlice(this, start, end)
  10766. case 'latin1':
  10767. case 'binary':
  10768. return latin1Slice(this, start, end)
  10769. case 'base64':
  10770. return base64Slice(this, start, end)
  10771. case 'ucs2':
  10772. case 'ucs-2':
  10773. case 'utf16le':
  10774. case 'utf-16le':
  10775. return utf16leSlice(this, start, end)
  10776. default:
  10777. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  10778. encoding = (encoding + '').toLowerCase()
  10779. loweredCase = true
  10780. }
  10781. }
  10782. }
  10783. // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
  10784. // Buffer instances.
  10785. Buffer.prototype._isBuffer = true
  10786. function swap (b, n, m) {
  10787. var i = b[n]
  10788. b[n] = b[m]
  10789. b[m] = i
  10790. }
  10791. Buffer.prototype.swap16 = function swap16 () {
  10792. var len = this.length
  10793. if (len % 2 !== 0) {
  10794. throw new RangeError('Buffer size must be a multiple of 16-bits')
  10795. }
  10796. for (var i = 0; i < len; i += 2) {
  10797. swap(this, i, i + 1)
  10798. }
  10799. return this
  10800. }
  10801. Buffer.prototype.swap32 = function swap32 () {
  10802. var len = this.length
  10803. if (len % 4 !== 0) {
  10804. throw new RangeError('Buffer size must be a multiple of 32-bits')
  10805. }
  10806. for (var i = 0; i < len; i += 4) {
  10807. swap(this, i, i + 3)
  10808. swap(this, i + 1, i + 2)
  10809. }
  10810. return this
  10811. }
  10812. Buffer.prototype.swap64 = function swap64 () {
  10813. var len = this.length
  10814. if (len % 8 !== 0) {
  10815. throw new RangeError('Buffer size must be a multiple of 64-bits')
  10816. }
  10817. for (var i = 0; i < len; i += 8) {
  10818. swap(this, i, i + 7)
  10819. swap(this, i + 1, i + 6)
  10820. swap(this, i + 2, i + 5)
  10821. swap(this, i + 3, i + 4)
  10822. }
  10823. return this
  10824. }
  10825. Buffer.prototype.toString = function toString () {
  10826. var length = this.length | 0
  10827. if (length === 0) return ''
  10828. if (arguments.length === 0) return utf8Slice(this, 0, length)
  10829. return slowToString.apply(this, arguments)
  10830. }
  10831. Buffer.prototype.equals = function equals (b) {
  10832. if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  10833. if (this === b) return true
  10834. return Buffer.compare(this, b) === 0
  10835. }
  10836. Buffer.prototype.inspect = function inspect () {
  10837. var str = ''
  10838. var max = exports.INSPECT_MAX_BYTES
  10839. if (this.length > 0) {
  10840. str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
  10841. if (this.length > max) str += ' ... '
  10842. }
  10843. return '<Buffer ' + str + '>'
  10844. }
  10845. Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  10846. if (!Buffer.isBuffer(target)) {
  10847. throw new TypeError('Argument must be a Buffer')
  10848. }
  10849. if (start === undefined) {
  10850. start = 0
  10851. }
  10852. if (end === undefined) {
  10853. end = target ? target.length : 0
  10854. }
  10855. if (thisStart === undefined) {
  10856. thisStart = 0
  10857. }
  10858. if (thisEnd === undefined) {
  10859. thisEnd = this.length
  10860. }
  10861. if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
  10862. throw new RangeError('out of range index')
  10863. }
  10864. if (thisStart >= thisEnd && start >= end) {
  10865. return 0
  10866. }
  10867. if (thisStart >= thisEnd) {
  10868. return -1
  10869. }
  10870. if (start >= end) {
  10871. return 1
  10872. }
  10873. start >>>= 0
  10874. end >>>= 0
  10875. thisStart >>>= 0
  10876. thisEnd >>>= 0
  10877. if (this === target) return 0
  10878. var x = thisEnd - thisStart
  10879. var y = end - start
  10880. var len = Math.min(x, y)
  10881. var thisCopy = this.slice(thisStart, thisEnd)
  10882. var targetCopy = target.slice(start, end)
  10883. for (var i = 0; i < len; ++i) {
  10884. if (thisCopy[i] !== targetCopy[i]) {
  10885. x = thisCopy[i]
  10886. y = targetCopy[i]
  10887. break
  10888. }
  10889. }
  10890. if (x < y) return -1
  10891. if (y < x) return 1
  10892. return 0
  10893. }
  10894. // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
  10895. // OR the last index of `val` in `buffer` at offset <= `byteOffset`.
  10896. //
  10897. // Arguments:
  10898. // - buffer - a Buffer to search
  10899. // - val - a string, Buffer, or number
  10900. // - byteOffset - an index into `buffer`; will be clamped to an int32
  10901. // - encoding - an optional encoding, relevant is val is a string
  10902. // - dir - true for indexOf, false for lastIndexOf
  10903. function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
  10904. // Empty buffer means no match
  10905. if (buffer.length === 0) return -1
  10906. // Normalize byteOffset
  10907. if (typeof byteOffset === 'string') {
  10908. encoding = byteOffset
  10909. byteOffset = 0
  10910. } else if (byteOffset > 0x7fffffff) {
  10911. byteOffset = 0x7fffffff
  10912. } else if (byteOffset < -0x80000000) {
  10913. byteOffset = -0x80000000
  10914. }
  10915. byteOffset = +byteOffset // Coerce to Number.
  10916. if (isNaN(byteOffset)) {
  10917. // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
  10918. byteOffset = dir ? 0 : (buffer.length - 1)
  10919. }
  10920. // Normalize byteOffset: negative offsets start from the end of the buffer
  10921. if (byteOffset < 0) byteOffset = buffer.length + byteOffset
  10922. if (byteOffset >= buffer.length) {
  10923. if (dir) return -1
  10924. else byteOffset = buffer.length - 1
  10925. } else if (byteOffset < 0) {
  10926. if (dir) byteOffset = 0
  10927. else return -1
  10928. }
  10929. // Normalize val
  10930. if (typeof val === 'string') {
  10931. val = Buffer.from(val, encoding)
  10932. }
  10933. // Finally, search either indexOf (if dir is true) or lastIndexOf
  10934. if (Buffer.isBuffer(val)) {
  10935. // Special case: looking for empty string/buffer always fails
  10936. if (val.length === 0) {
  10937. return -1
  10938. }
  10939. return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
  10940. } else if (typeof val === 'number') {
  10941. val = val & 0xFF // Search for a byte value [0-255]
  10942. if (Buffer.TYPED_ARRAY_SUPPORT &&
  10943. typeof Uint8Array.prototype.indexOf === 'function') {
  10944. if (dir) {
  10945. return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
  10946. } else {
  10947. return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
  10948. }
  10949. }
  10950. return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
  10951. }
  10952. throw new TypeError('val must be string, number or Buffer')
  10953. }
  10954. function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
  10955. var indexSize = 1
  10956. var arrLength = arr.length
  10957. var valLength = val.length
  10958. if (encoding !== undefined) {
  10959. encoding = String(encoding).toLowerCase()
  10960. if (encoding === 'ucs2' || encoding === 'ucs-2' ||
  10961. encoding === 'utf16le' || encoding === 'utf-16le') {
  10962. if (arr.length < 2 || val.length < 2) {
  10963. return -1
  10964. }
  10965. indexSize = 2
  10966. arrLength /= 2
  10967. valLength /= 2
  10968. byteOffset /= 2
  10969. }
  10970. }
  10971. function read (buf, i) {
  10972. if (indexSize === 1) {
  10973. return buf[i]
  10974. } else {
  10975. return buf.readUInt16BE(i * indexSize)
  10976. }
  10977. }
  10978. var i
  10979. if (dir) {
  10980. var foundIndex = -1
  10981. for (i = byteOffset; i < arrLength; i++) {
  10982. if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
  10983. if (foundIndex === -1) foundIndex = i
  10984. if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
  10985. } else {
  10986. if (foundIndex !== -1) i -= i - foundIndex
  10987. foundIndex = -1
  10988. }
  10989. }
  10990. } else {
  10991. if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
  10992. for (i = byteOffset; i >= 0; i--) {
  10993. var found = true
  10994. for (var j = 0; j < valLength; j++) {
  10995. if (read(arr, i + j) !== read(val, j)) {
  10996. found = false
  10997. break
  10998. }
  10999. }
  11000. if (found) return i
  11001. }
  11002. }
  11003. return -1
  11004. }
  11005. Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
  11006. return this.indexOf(val, byteOffset, encoding) !== -1
  11007. }
  11008. Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
  11009. return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
  11010. }
  11011. Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
  11012. return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
  11013. }
  11014. function hexWrite (buf, string, offset, length) {
  11015. offset = Number(offset) || 0
  11016. var remaining = buf.length - offset
  11017. if (!length) {
  11018. length = remaining
  11019. } else {
  11020. length = Number(length)
  11021. if (length > remaining) {
  11022. length = remaining
  11023. }
  11024. }
  11025. // must be an even number of digits
  11026. var strLen = string.length
  11027. if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
  11028. if (length > strLen / 2) {
  11029. length = strLen / 2
  11030. }
  11031. for (var i = 0; i < length; ++i) {
  11032. var parsed = parseInt(string.substr(i * 2, 2), 16)
  11033. if (isNaN(parsed)) return i
  11034. buf[offset + i] = parsed
  11035. }
  11036. return i
  11037. }
  11038. function utf8Write (buf, string, offset, length) {
  11039. return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
  11040. }
  11041. function asciiWrite (buf, string, offset, length) {
  11042. return blitBuffer(asciiToBytes(string), buf, offset, length)
  11043. }
  11044. function latin1Write (buf, string, offset, length) {
  11045. return asciiWrite(buf, string, offset, length)
  11046. }
  11047. function base64Write (buf, string, offset, length) {
  11048. return blitBuffer(base64ToBytes(string), buf, offset, length)
  11049. }
  11050. function ucs2Write (buf, string, offset, length) {
  11051. return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
  11052. }
  11053. Buffer.prototype.write = function write (string, offset, length, encoding) {
  11054. // Buffer#write(string)
  11055. if (offset === undefined) {
  11056. encoding = 'utf8'
  11057. length = this.length
  11058. offset = 0
  11059. // Buffer#write(string, encoding)
  11060. } else if (length === undefined && typeof offset === 'string') {
  11061. encoding = offset
  11062. length = this.length
  11063. offset = 0
  11064. // Buffer#write(string, offset[, length][, encoding])
  11065. } else if (isFinite(offset)) {
  11066. offset = offset | 0
  11067. if (isFinite(length)) {
  11068. length = length | 0
  11069. if (encoding === undefined) encoding = 'utf8'
  11070. } else {
  11071. encoding = length
  11072. length = undefined
  11073. }
  11074. // legacy write(string, encoding, offset, length) - remove in v0.13
  11075. } else {
  11076. throw new Error(
  11077. 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
  11078. )
  11079. }
  11080. var remaining = this.length - offset
  11081. if (length === undefined || length > remaining) length = remaining
  11082. if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
  11083. throw new RangeError('Attempt to write outside buffer bounds')
  11084. }
  11085. if (!encoding) encoding = 'utf8'
  11086. var loweredCase = false
  11087. for (;;) {
  11088. switch (encoding) {
  11089. case 'hex':
  11090. return hexWrite(this, string, offset, length)
  11091. case 'utf8':
  11092. case 'utf-8':
  11093. return utf8Write(this, string, offset, length)
  11094. case 'ascii':
  11095. return asciiWrite(this, string, offset, length)
  11096. case 'latin1':
  11097. case 'binary':
  11098. return latin1Write(this, string, offset, length)
  11099. case 'base64':
  11100. // Warning: maxLength not taken into account in base64Write
  11101. return base64Write(this, string, offset, length)
  11102. case 'ucs2':
  11103. case 'ucs-2':
  11104. case 'utf16le':
  11105. case 'utf-16le':
  11106. return ucs2Write(this, string, offset, length)
  11107. default:
  11108. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  11109. encoding = ('' + encoding).toLowerCase()
  11110. loweredCase = true
  11111. }
  11112. }
  11113. }
  11114. Buffer.prototype.toJSON = function toJSON () {
  11115. return {
  11116. type: 'Buffer',
  11117. data: Array.prototype.slice.call(this._arr || this, 0)
  11118. }
  11119. }
  11120. function base64Slice (buf, start, end) {
  11121. if (start === 0 && end === buf.length) {
  11122. return base64.fromByteArray(buf)
  11123. } else {
  11124. return base64.fromByteArray(buf.slice(start, end))
  11125. }
  11126. }
  11127. function utf8Slice (buf, start, end) {
  11128. end = Math.min(buf.length, end)
  11129. var res = []
  11130. var i = start
  11131. while (i < end) {
  11132. var firstByte = buf[i]
  11133. var codePoint = null
  11134. var bytesPerSequence = (firstByte > 0xEF) ? 4
  11135. : (firstByte > 0xDF) ? 3
  11136. : (firstByte > 0xBF) ? 2
  11137. : 1
  11138. if (i + bytesPerSequence <= end) {
  11139. var secondByte, thirdByte, fourthByte, tempCodePoint
  11140. switch (bytesPerSequence) {
  11141. case 1:
  11142. if (firstByte < 0x80) {
  11143. codePoint = firstByte
  11144. }
  11145. break
  11146. case 2:
  11147. secondByte = buf[i + 1]
  11148. if ((secondByte & 0xC0) === 0x80) {
  11149. tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
  11150. if (tempCodePoint > 0x7F) {
  11151. codePoint = tempCodePoint
  11152. }
  11153. }
  11154. break
  11155. case 3:
  11156. secondByte = buf[i + 1]
  11157. thirdByte = buf[i + 2]
  11158. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
  11159. tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
  11160. if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
  11161. codePoint = tempCodePoint
  11162. }
  11163. }
  11164. break
  11165. case 4:
  11166. secondByte = buf[i + 1]
  11167. thirdByte = buf[i + 2]
  11168. fourthByte = buf[i + 3]
  11169. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
  11170. tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
  11171. if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
  11172. codePoint = tempCodePoint
  11173. }
  11174. }
  11175. }
  11176. }
  11177. if (codePoint === null) {
  11178. // we did not generate a valid codePoint so insert a
  11179. // replacement char (U+FFFD) and advance only 1 byte
  11180. codePoint = 0xFFFD
  11181. bytesPerSequence = 1
  11182. } else if (codePoint > 0xFFFF) {
  11183. // encode to utf16 (surrogate pair dance)
  11184. codePoint -= 0x10000
  11185. res.push(codePoint >>> 10 & 0x3FF | 0xD800)
  11186. codePoint = 0xDC00 | codePoint & 0x3FF
  11187. }
  11188. res.push(codePoint)
  11189. i += bytesPerSequence
  11190. }
  11191. return decodeCodePointsArray(res)
  11192. }
  11193. // Based on http://stackoverflow.com/a/22747272/680742, the browser with
  11194. // the lowest limit is Chrome, with 0x10000 args.
  11195. // We go 1 magnitude less, for safety
  11196. var MAX_ARGUMENTS_LENGTH = 0x1000
  11197. function decodeCodePointsArray (codePoints) {
  11198. var len = codePoints.length
  11199. if (len <= MAX_ARGUMENTS_LENGTH) {
  11200. return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
  11201. }
  11202. // Decode in chunks to avoid "call stack size exceeded".
  11203. var res = ''
  11204. var i = 0
  11205. while (i < len) {
  11206. res += String.fromCharCode.apply(
  11207. String,
  11208. codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
  11209. )
  11210. }
  11211. return res
  11212. }
  11213. function asciiSlice (buf, start, end) {
  11214. var ret = ''
  11215. end = Math.min(buf.length, end)
  11216. for (var i = start; i < end; ++i) {
  11217. ret += String.fromCharCode(buf[i] & 0x7F)
  11218. }
  11219. return ret
  11220. }
  11221. function latin1Slice (buf, start, end) {
  11222. var ret = ''
  11223. end = Math.min(buf.length, end)
  11224. for (var i = start; i < end; ++i) {
  11225. ret += String.fromCharCode(buf[i])
  11226. }
  11227. return ret
  11228. }
  11229. function hexSlice (buf, start, end) {
  11230. var len = buf.length
  11231. if (!start || start < 0) start = 0
  11232. if (!end || end < 0 || end > len) end = len
  11233. var out = ''
  11234. for (var i = start; i < end; ++i) {
  11235. out += toHex(buf[i])
  11236. }
  11237. return out
  11238. }
  11239. function utf16leSlice (buf, start, end) {
  11240. var bytes = buf.slice(start, end)
  11241. var res = ''
  11242. for (var i = 0; i < bytes.length; i += 2) {
  11243. res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  11244. }
  11245. return res
  11246. }
  11247. Buffer.prototype.slice = function slice (start, end) {
  11248. var len = this.length
  11249. start = ~~start
  11250. end = end === undefined ? len : ~~end
  11251. if (start < 0) {
  11252. start += len
  11253. if (start < 0) start = 0
  11254. } else if (start > len) {
  11255. start = len
  11256. }
  11257. if (end < 0) {
  11258. end += len
  11259. if (end < 0) end = 0
  11260. } else if (end > len) {
  11261. end = len
  11262. }
  11263. if (end < start) end = start
  11264. var newBuf
  11265. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11266. newBuf = this.subarray(start, end)
  11267. newBuf.__proto__ = Buffer.prototype
  11268. } else {
  11269. var sliceLen = end - start
  11270. newBuf = new Buffer(sliceLen, undefined)
  11271. for (var i = 0; i < sliceLen; ++i) {
  11272. newBuf[i] = this[i + start]
  11273. }
  11274. }
  11275. return newBuf
  11276. }
  11277. /*
  11278. * Need to make sure that buffer isn't trying to write out of bounds.
  11279. */
  11280. function checkOffset (offset, ext, length) {
  11281. if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  11282. if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
  11283. }
  11284. Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  11285. offset = offset | 0
  11286. byteLength = byteLength | 0
  11287. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11288. var val = this[offset]
  11289. var mul = 1
  11290. var i = 0
  11291. while (++i < byteLength && (mul *= 0x100)) {
  11292. val += this[offset + i] * mul
  11293. }
  11294. return val
  11295. }
  11296. Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  11297. offset = offset | 0
  11298. byteLength = byteLength | 0
  11299. if (!noAssert) {
  11300. checkOffset(offset, byteLength, this.length)
  11301. }
  11302. var val = this[offset + --byteLength]
  11303. var mul = 1
  11304. while (byteLength > 0 && (mul *= 0x100)) {
  11305. val += this[offset + --byteLength] * mul
  11306. }
  11307. return val
  11308. }
  11309. Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  11310. if (!noAssert) checkOffset(offset, 1, this.length)
  11311. return this[offset]
  11312. }
  11313. Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  11314. if (!noAssert) checkOffset(offset, 2, this.length)
  11315. return this[offset] | (this[offset + 1] << 8)
  11316. }
  11317. Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  11318. if (!noAssert) checkOffset(offset, 2, this.length)
  11319. return (this[offset] << 8) | this[offset + 1]
  11320. }
  11321. Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  11322. if (!noAssert) checkOffset(offset, 4, this.length)
  11323. return ((this[offset]) |
  11324. (this[offset + 1] << 8) |
  11325. (this[offset + 2] << 16)) +
  11326. (this[offset + 3] * 0x1000000)
  11327. }
  11328. Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  11329. if (!noAssert) checkOffset(offset, 4, this.length)
  11330. return (this[offset] * 0x1000000) +
  11331. ((this[offset + 1] << 16) |
  11332. (this[offset + 2] << 8) |
  11333. this[offset + 3])
  11334. }
  11335. Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  11336. offset = offset | 0
  11337. byteLength = byteLength | 0
  11338. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11339. var val = this[offset]
  11340. var mul = 1
  11341. var i = 0
  11342. while (++i < byteLength && (mul *= 0x100)) {
  11343. val += this[offset + i] * mul
  11344. }
  11345. mul *= 0x80
  11346. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11347. return val
  11348. }
  11349. Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  11350. offset = offset | 0
  11351. byteLength = byteLength | 0
  11352. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11353. var i = byteLength
  11354. var mul = 1
  11355. var val = this[offset + --i]
  11356. while (i > 0 && (mul *= 0x100)) {
  11357. val += this[offset + --i] * mul
  11358. }
  11359. mul *= 0x80
  11360. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11361. return val
  11362. }
  11363. Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  11364. if (!noAssert) checkOffset(offset, 1, this.length)
  11365. if (!(this[offset] & 0x80)) return (this[offset])
  11366. return ((0xff - this[offset] + 1) * -1)
  11367. }
  11368. Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  11369. if (!noAssert) checkOffset(offset, 2, this.length)
  11370. var val = this[offset] | (this[offset + 1] << 8)
  11371. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11372. }
  11373. Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  11374. if (!noAssert) checkOffset(offset, 2, this.length)
  11375. var val = this[offset + 1] | (this[offset] << 8)
  11376. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11377. }
  11378. Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  11379. if (!noAssert) checkOffset(offset, 4, this.length)
  11380. return (this[offset]) |
  11381. (this[offset + 1] << 8) |
  11382. (this[offset + 2] << 16) |
  11383. (this[offset + 3] << 24)
  11384. }
  11385. Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  11386. if (!noAssert) checkOffset(offset, 4, this.length)
  11387. return (this[offset] << 24) |
  11388. (this[offset + 1] << 16) |
  11389. (this[offset + 2] << 8) |
  11390. (this[offset + 3])
  11391. }
  11392. Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  11393. if (!noAssert) checkOffset(offset, 4, this.length)
  11394. return ieee754.read(this, offset, true, 23, 4)
  11395. }
  11396. Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  11397. if (!noAssert) checkOffset(offset, 4, this.length)
  11398. return ieee754.read(this, offset, false, 23, 4)
  11399. }
  11400. Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  11401. if (!noAssert) checkOffset(offset, 8, this.length)
  11402. return ieee754.read(this, offset, true, 52, 8)
  11403. }
  11404. Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  11405. if (!noAssert) checkOffset(offset, 8, this.length)
  11406. return ieee754.read(this, offset, false, 52, 8)
  11407. }
  11408. function checkInt (buf, value, offset, ext, max, min) {
  11409. if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
  11410. if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
  11411. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11412. }
  11413. Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  11414. value = +value
  11415. offset = offset | 0
  11416. byteLength = byteLength | 0
  11417. if (!noAssert) {
  11418. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11419. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11420. }
  11421. var mul = 1
  11422. var i = 0
  11423. this[offset] = value & 0xFF
  11424. while (++i < byteLength && (mul *= 0x100)) {
  11425. this[offset + i] = (value / mul) & 0xFF
  11426. }
  11427. return offset + byteLength
  11428. }
  11429. Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  11430. value = +value
  11431. offset = offset | 0
  11432. byteLength = byteLength | 0
  11433. if (!noAssert) {
  11434. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11435. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11436. }
  11437. var i = byteLength - 1
  11438. var mul = 1
  11439. this[offset + i] = value & 0xFF
  11440. while (--i >= 0 && (mul *= 0x100)) {
  11441. this[offset + i] = (value / mul) & 0xFF
  11442. }
  11443. return offset + byteLength
  11444. }
  11445. Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  11446. value = +value
  11447. offset = offset | 0
  11448. if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  11449. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  11450. this[offset] = (value & 0xff)
  11451. return offset + 1
  11452. }
  11453. function objectWriteUInt16 (buf, value, offset, littleEndian) {
  11454. if (value < 0) value = 0xffff + value + 1
  11455. for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
  11456. buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
  11457. (littleEndian ? i : 1 - i) * 8
  11458. }
  11459. }
  11460. Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  11461. value = +value
  11462. offset = offset | 0
  11463. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  11464. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11465. this[offset] = (value & 0xff)
  11466. this[offset + 1] = (value >>> 8)
  11467. } else {
  11468. objectWriteUInt16(this, value, offset, true)
  11469. }
  11470. return offset + 2
  11471. }
  11472. Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  11473. value = +value
  11474. offset = offset | 0
  11475. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  11476. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11477. this[offset] = (value >>> 8)
  11478. this[offset + 1] = (value & 0xff)
  11479. } else {
  11480. objectWriteUInt16(this, value, offset, false)
  11481. }
  11482. return offset + 2
  11483. }
  11484. function objectWriteUInt32 (buf, value, offset, littleEndian) {
  11485. if (value < 0) value = 0xffffffff + value + 1
  11486. for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
  11487. buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  11488. }
  11489. }
  11490. Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  11491. value = +value
  11492. offset = offset | 0
  11493. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  11494. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11495. this[offset + 3] = (value >>> 24)
  11496. this[offset + 2] = (value >>> 16)
  11497. this[offset + 1] = (value >>> 8)
  11498. this[offset] = (value & 0xff)
  11499. } else {
  11500. objectWriteUInt32(this, value, offset, true)
  11501. }
  11502. return offset + 4
  11503. }
  11504. Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  11505. value = +value
  11506. offset = offset | 0
  11507. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  11508. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11509. this[offset] = (value >>> 24)
  11510. this[offset + 1] = (value >>> 16)
  11511. this[offset + 2] = (value >>> 8)
  11512. this[offset + 3] = (value & 0xff)
  11513. } else {
  11514. objectWriteUInt32(this, value, offset, false)
  11515. }
  11516. return offset + 4
  11517. }
  11518. Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  11519. value = +value
  11520. offset = offset | 0
  11521. if (!noAssert) {
  11522. var limit = Math.pow(2, 8 * byteLength - 1)
  11523. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  11524. }
  11525. var i = 0
  11526. var mul = 1
  11527. var sub = 0
  11528. this[offset] = value & 0xFF
  11529. while (++i < byteLength && (mul *= 0x100)) {
  11530. if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
  11531. sub = 1
  11532. }
  11533. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  11534. }
  11535. return offset + byteLength
  11536. }
  11537. Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  11538. value = +value
  11539. offset = offset | 0
  11540. if (!noAssert) {
  11541. var limit = Math.pow(2, 8 * byteLength - 1)
  11542. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  11543. }
  11544. var i = byteLength - 1
  11545. var mul = 1
  11546. var sub = 0
  11547. this[offset + i] = value & 0xFF
  11548. while (--i >= 0 && (mul *= 0x100)) {
  11549. if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
  11550. sub = 1
  11551. }
  11552. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  11553. }
  11554. return offset + byteLength
  11555. }
  11556. Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  11557. value = +value
  11558. offset = offset | 0
  11559. if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  11560. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  11561. if (value < 0) value = 0xff + value + 1
  11562. this[offset] = (value & 0xff)
  11563. return offset + 1
  11564. }
  11565. Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  11566. value = +value
  11567. offset = offset | 0
  11568. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  11569. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11570. this[offset] = (value & 0xff)
  11571. this[offset + 1] = (value >>> 8)
  11572. } else {
  11573. objectWriteUInt16(this, value, offset, true)
  11574. }
  11575. return offset + 2
  11576. }
  11577. Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  11578. value = +value
  11579. offset = offset | 0
  11580. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  11581. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11582. this[offset] = (value >>> 8)
  11583. this[offset + 1] = (value & 0xff)
  11584. } else {
  11585. objectWriteUInt16(this, value, offset, false)
  11586. }
  11587. return offset + 2
  11588. }
  11589. Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  11590. value = +value
  11591. offset = offset | 0
  11592. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  11593. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11594. this[offset] = (value & 0xff)
  11595. this[offset + 1] = (value >>> 8)
  11596. this[offset + 2] = (value >>> 16)
  11597. this[offset + 3] = (value >>> 24)
  11598. } else {
  11599. objectWriteUInt32(this, value, offset, true)
  11600. }
  11601. return offset + 4
  11602. }
  11603. Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  11604. value = +value
  11605. offset = offset | 0
  11606. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  11607. if (value < 0) value = 0xffffffff + value + 1
  11608. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11609. this[offset] = (value >>> 24)
  11610. this[offset + 1] = (value >>> 16)
  11611. this[offset + 2] = (value >>> 8)
  11612. this[offset + 3] = (value & 0xff)
  11613. } else {
  11614. objectWriteUInt32(this, value, offset, false)
  11615. }
  11616. return offset + 4
  11617. }
  11618. function checkIEEE754 (buf, value, offset, ext, max, min) {
  11619. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11620. if (offset < 0) throw new RangeError('Index out of range')
  11621. }
  11622. function writeFloat (buf, value, offset, littleEndian, noAssert) {
  11623. if (!noAssert) {
  11624. checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  11625. }
  11626. ieee754.write(buf, value, offset, littleEndian, 23, 4)
  11627. return offset + 4
  11628. }
  11629. Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  11630. return writeFloat(this, value, offset, true, noAssert)
  11631. }
  11632. Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  11633. return writeFloat(this, value, offset, false, noAssert)
  11634. }
  11635. function writeDouble (buf, value, offset, littleEndian, noAssert) {
  11636. if (!noAssert) {
  11637. checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  11638. }
  11639. ieee754.write(buf, value, offset, littleEndian, 52, 8)
  11640. return offset + 8
  11641. }
  11642. Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  11643. return writeDouble(this, value, offset, true, noAssert)
  11644. }
  11645. Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  11646. return writeDouble(this, value, offset, false, noAssert)
  11647. }
  11648. // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
  11649. Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  11650. if (!start) start = 0
  11651. if (!end && end !== 0) end = this.length
  11652. if (targetStart >= target.length) targetStart = target.length
  11653. if (!targetStart) targetStart = 0
  11654. if (end > 0 && end < start) end = start
  11655. // Copy 0 bytes; we're done
  11656. if (end === start) return 0
  11657. if (target.length === 0 || this.length === 0) return 0
  11658. // Fatal error conditions
  11659. if (targetStart < 0) {
  11660. throw new RangeError('targetStart out of bounds')
  11661. }
  11662. if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  11663. if (end < 0) throw new RangeError('sourceEnd out of bounds')
  11664. // Are we oob?
  11665. if (end > this.length) end = this.length
  11666. if (target.length - targetStart < end - start) {
  11667. end = target.length - targetStart + start
  11668. }
  11669. var len = end - start
  11670. var i
  11671. if (this === target && start < targetStart && targetStart < end) {
  11672. // descending copy from end
  11673. for (i = len - 1; i >= 0; --i) {
  11674. target[i + targetStart] = this[i + start]
  11675. }
  11676. } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
  11677. // ascending copy from start
  11678. for (i = 0; i < len; ++i) {
  11679. target[i + targetStart] = this[i + start]
  11680. }
  11681. } else {
  11682. Uint8Array.prototype.set.call(
  11683. target,
  11684. this.subarray(start, start + len),
  11685. targetStart
  11686. )
  11687. }
  11688. return len
  11689. }
  11690. // Usage:
  11691. // buffer.fill(number[, offset[, end]])
  11692. // buffer.fill(buffer[, offset[, end]])
  11693. // buffer.fill(string[, offset[, end]][, encoding])
  11694. Buffer.prototype.fill = function fill (val, start, end, encoding) {
  11695. // Handle string cases:
  11696. if (typeof val === 'string') {
  11697. if (typeof start === 'string') {
  11698. encoding = start
  11699. start = 0
  11700. end = this.length
  11701. } else if (typeof end === 'string') {
  11702. encoding = end
  11703. end = this.length
  11704. }
  11705. if (val.length === 1) {
  11706. var code = val.charCodeAt(0)
  11707. if (code < 256) {
  11708. val = code
  11709. }
  11710. }
  11711. if (encoding !== undefined && typeof encoding !== 'string') {
  11712. throw new TypeError('encoding must be a string')
  11713. }
  11714. if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
  11715. throw new TypeError('Unknown encoding: ' + encoding)
  11716. }
  11717. } else if (typeof val === 'number') {
  11718. val = val & 255
  11719. }
  11720. // Invalid ranges are not set to a default, so can range check early.
  11721. if (start < 0 || this.length < start || this.length < end) {
  11722. throw new RangeError('Out of range index')
  11723. }
  11724. if (end <= start) {
  11725. return this
  11726. }
  11727. start = start >>> 0
  11728. end = end === undefined ? this.length : end >>> 0
  11729. if (!val) val = 0
  11730. var i
  11731. if (typeof val === 'number') {
  11732. for (i = start; i < end; ++i) {
  11733. this[i] = val
  11734. }
  11735. } else {
  11736. var bytes = Buffer.isBuffer(val)
  11737. ? val
  11738. : utf8ToBytes(new Buffer(val, encoding).toString())
  11739. var len = bytes.length
  11740. for (i = 0; i < end - start; ++i) {
  11741. this[i + start] = bytes[i % len]
  11742. }
  11743. }
  11744. return this
  11745. }
  11746. // HELPER FUNCTIONS
  11747. // ================
  11748. var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
  11749. function base64clean (str) {
  11750. // Node strips out invalid characters like \n and \t from the string, base64-js does not
  11751. str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  11752. // Node converts strings with length < 2 to ''
  11753. if (str.length < 2) return ''
  11754. // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  11755. while (str.length % 4 !== 0) {
  11756. str = str + '='
  11757. }
  11758. return str
  11759. }
  11760. function stringtrim (str) {
  11761. if (str.trim) return str.trim()
  11762. return str.replace(/^\s+|\s+$/g, '')
  11763. }
  11764. function toHex (n) {
  11765. if (n < 16) return '0' + n.toString(16)
  11766. return n.toString(16)
  11767. }
  11768. function utf8ToBytes (string, units) {
  11769. units = units || Infinity
  11770. var codePoint
  11771. var length = string.length
  11772. var leadSurrogate = null
  11773. var bytes = []
  11774. for (var i = 0; i < length; ++i) {
  11775. codePoint = string.charCodeAt(i)
  11776. // is surrogate component
  11777. if (codePoint > 0xD7FF && codePoint < 0xE000) {
  11778. // last char was a lead
  11779. if (!leadSurrogate) {
  11780. // no lead yet
  11781. if (codePoint > 0xDBFF) {
  11782. // unexpected trail
  11783. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11784. continue
  11785. } else if (i + 1 === length) {
  11786. // unpaired lead
  11787. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11788. continue
  11789. }
  11790. // valid lead
  11791. leadSurrogate = codePoint
  11792. continue
  11793. }
  11794. // 2 leads in a row
  11795. if (codePoint < 0xDC00) {
  11796. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11797. leadSurrogate = codePoint
  11798. continue
  11799. }
  11800. // valid surrogate pair
  11801. codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
  11802. } else if (leadSurrogate) {
  11803. // valid bmp char, but last char was a lead
  11804. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11805. }
  11806. leadSurrogate = null
  11807. // encode utf8
  11808. if (codePoint < 0x80) {
  11809. if ((units -= 1) < 0) break
  11810. bytes.push(codePoint)
  11811. } else if (codePoint < 0x800) {
  11812. if ((units -= 2) < 0) break
  11813. bytes.push(
  11814. codePoint >> 0x6 | 0xC0,
  11815. codePoint & 0x3F | 0x80
  11816. )
  11817. } else if (codePoint < 0x10000) {
  11818. if ((units -= 3) < 0) break
  11819. bytes.push(
  11820. codePoint >> 0xC | 0xE0,
  11821. codePoint >> 0x6 & 0x3F | 0x80,
  11822. codePoint & 0x3F | 0x80
  11823. )
  11824. } else if (codePoint < 0x110000) {
  11825. if ((units -= 4) < 0) break
  11826. bytes.push(
  11827. codePoint >> 0x12 | 0xF0,
  11828. codePoint >> 0xC & 0x3F | 0x80,
  11829. codePoint >> 0x6 & 0x3F | 0x80,
  11830. codePoint & 0x3F | 0x80
  11831. )
  11832. } else {
  11833. throw new Error('Invalid code point')
  11834. }
  11835. }
  11836. return bytes
  11837. }
  11838. function asciiToBytes (str) {
  11839. var byteArray = []
  11840. for (var i = 0; i < str.length; ++i) {
  11841. // Node's code seems to be doing this and not & 0x7F..
  11842. byteArray.push(str.charCodeAt(i) & 0xFF)
  11843. }
  11844. return byteArray
  11845. }
  11846. function utf16leToBytes (str, units) {
  11847. var c, hi, lo
  11848. var byteArray = []
  11849. for (var i = 0; i < str.length; ++i) {
  11850. if ((units -= 2) < 0) break
  11851. c = str.charCodeAt(i)
  11852. hi = c >> 8
  11853. lo = c % 256
  11854. byteArray.push(lo)
  11855. byteArray.push(hi)
  11856. }
  11857. return byteArray
  11858. }
  11859. function base64ToBytes (str) {
  11860. return base64.toByteArray(base64clean(str))
  11861. }
  11862. function blitBuffer (src, dst, offset, length) {
  11863. for (var i = 0; i < length; ++i) {
  11864. if ((i + offset >= dst.length) || (i >= src.length)) break
  11865. dst[i + offset] = src[i]
  11866. }
  11867. return i
  11868. }
  11869. function isnan (val) {
  11870. return val !== val // eslint-disable-line no-self-compare
  11871. }
  11872. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 3)))
  11873. /***/ }),
  11874. /* 52 */
  11875. /*!*****************************************!*\
  11876. !*** ./node_modules/base64-js/index.js ***!
  11877. \*****************************************/
  11878. /*! no static exports found */
  11879. /***/ (function(module, exports, __webpack_require__) {
  11880. "use strict";
  11881. exports.byteLength = byteLength
  11882. exports.toByteArray = toByteArray
  11883. exports.fromByteArray = fromByteArray
  11884. var lookup = []
  11885. var revLookup = []
  11886. var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
  11887. var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  11888. for (var i = 0, len = code.length; i < len; ++i) {
  11889. lookup[i] = code[i]
  11890. revLookup[code.charCodeAt(i)] = i
  11891. }
  11892. // Support decoding URL-safe base64 strings, as Node.js does.
  11893. // See: https://en.wikipedia.org/wiki/Base64#URL_applications
  11894. revLookup['-'.charCodeAt(0)] = 62
  11895. revLookup['_'.charCodeAt(0)] = 63
  11896. function getLens (b64) {
  11897. var len = b64.length
  11898. if (len % 4 > 0) {
  11899. throw new Error('Invalid string. Length must be a multiple of 4')
  11900. }
  11901. // Trim off extra bytes after placeholder bytes are found
  11902. // See: https://github.com/beatgammit/base64-js/issues/42
  11903. var validLen = b64.indexOf('=')
  11904. if (validLen === -1) validLen = len
  11905. var placeHoldersLen = validLen === len
  11906. ? 0
  11907. : 4 - (validLen % 4)
  11908. return [validLen, placeHoldersLen]
  11909. }
  11910. // base64 is 4/3 + up to two characters of the original data
  11911. function byteLength (b64) {
  11912. var lens = getLens(b64)
  11913. var validLen = lens[0]
  11914. var placeHoldersLen = lens[1]
  11915. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  11916. }
  11917. function _byteLength (b64, validLen, placeHoldersLen) {
  11918. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  11919. }
  11920. function toByteArray (b64) {
  11921. var tmp
  11922. var lens = getLens(b64)
  11923. var validLen = lens[0]
  11924. var placeHoldersLen = lens[1]
  11925. var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
  11926. var curByte = 0
  11927. // if there are placeholders, only get up to the last complete 4 chars
  11928. var len = placeHoldersLen > 0
  11929. ? validLen - 4
  11930. : validLen
  11931. var i
  11932. for (i = 0; i < len; i += 4) {
  11933. tmp =
  11934. (revLookup[b64.charCodeAt(i)] << 18) |
  11935. (revLookup[b64.charCodeAt(i + 1)] << 12) |
  11936. (revLookup[b64.charCodeAt(i + 2)] << 6) |
  11937. revLookup[b64.charCodeAt(i + 3)]
  11938. arr[curByte++] = (tmp >> 16) & 0xFF
  11939. arr[curByte++] = (tmp >> 8) & 0xFF
  11940. arr[curByte++] = tmp & 0xFF
  11941. }
  11942. if (placeHoldersLen === 2) {
  11943. tmp =
  11944. (revLookup[b64.charCodeAt(i)] << 2) |
  11945. (revLookup[b64.charCodeAt(i + 1)] >> 4)
  11946. arr[curByte++] = tmp & 0xFF
  11947. }
  11948. if (placeHoldersLen === 1) {
  11949. tmp =
  11950. (revLookup[b64.charCodeAt(i)] << 10) |
  11951. (revLookup[b64.charCodeAt(i + 1)] << 4) |
  11952. (revLookup[b64.charCodeAt(i + 2)] >> 2)
  11953. arr[curByte++] = (tmp >> 8) & 0xFF
  11954. arr[curByte++] = tmp & 0xFF
  11955. }
  11956. return arr
  11957. }
  11958. function tripletToBase64 (num) {
  11959. return lookup[num >> 18 & 0x3F] +
  11960. lookup[num >> 12 & 0x3F] +
  11961. lookup[num >> 6 & 0x3F] +
  11962. lookup[num & 0x3F]
  11963. }
  11964. function encodeChunk (uint8, start, end) {
  11965. var tmp
  11966. var output = []
  11967. for (var i = start; i < end; i += 3) {
  11968. tmp =
  11969. ((uint8[i] << 16) & 0xFF0000) +
  11970. ((uint8[i + 1] << 8) & 0xFF00) +
  11971. (uint8[i + 2] & 0xFF)
  11972. output.push(tripletToBase64(tmp))
  11973. }
  11974. return output.join('')
  11975. }
  11976. function fromByteArray (uint8) {
  11977. var tmp
  11978. var len = uint8.length
  11979. var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
  11980. var parts = []
  11981. var maxChunkLength = 16383 // must be multiple of 3
  11982. // go through the array every three bytes, we'll deal with trailing stuff later
  11983. for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
  11984. parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
  11985. }
  11986. // pad the end with zeros, but make sure to not forget the extra bytes
  11987. if (extraBytes === 1) {
  11988. tmp = uint8[len - 1]
  11989. parts.push(
  11990. lookup[tmp >> 2] +
  11991. lookup[(tmp << 4) & 0x3F] +
  11992. '=='
  11993. )
  11994. } else if (extraBytes === 2) {
  11995. tmp = (uint8[len - 2] << 8) + uint8[len - 1]
  11996. parts.push(
  11997. lookup[tmp >> 10] +
  11998. lookup[(tmp >> 4) & 0x3F] +
  11999. lookup[(tmp << 2) & 0x3F] +
  12000. '='
  12001. )
  12002. }
  12003. return parts.join('')
  12004. }
  12005. /***/ }),
  12006. /* 53 */
  12007. /*!***************************************!*\
  12008. !*** ./node_modules/ieee754/index.js ***!
  12009. \***************************************/
  12010. /*! no static exports found */
  12011. /***/ (function(module, exports) {
  12012. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  12013. exports.read = function (buffer, offset, isLE, mLen, nBytes) {
  12014. var e, m
  12015. var eLen = (nBytes * 8) - mLen - 1
  12016. var eMax = (1 << eLen) - 1
  12017. var eBias = eMax >> 1
  12018. var nBits = -7
  12019. var i = isLE ? (nBytes - 1) : 0
  12020. var d = isLE ? -1 : 1
  12021. var s = buffer[offset + i]
  12022. i += d
  12023. e = s & ((1 << (-nBits)) - 1)
  12024. s >>= (-nBits)
  12025. nBits += eLen
  12026. for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  12027. m = e & ((1 << (-nBits)) - 1)
  12028. e >>= (-nBits)
  12029. nBits += mLen
  12030. for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  12031. if (e === 0) {
  12032. e = 1 - eBias
  12033. } else if (e === eMax) {
  12034. return m ? NaN : ((s ? -1 : 1) * Infinity)
  12035. } else {
  12036. m = m + Math.pow(2, mLen)
  12037. e = e - eBias
  12038. }
  12039. return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
  12040. }
  12041. exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
  12042. var e, m, c
  12043. var eLen = (nBytes * 8) - mLen - 1
  12044. var eMax = (1 << eLen) - 1
  12045. var eBias = eMax >> 1
  12046. var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
  12047. var i = isLE ? 0 : (nBytes - 1)
  12048. var d = isLE ? 1 : -1
  12049. var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
  12050. value = Math.abs(value)
  12051. if (isNaN(value) || value === Infinity) {
  12052. m = isNaN(value) ? 1 : 0
  12053. e = eMax
  12054. } else {
  12055. e = Math.floor(Math.log(value) / Math.LN2)
  12056. if (value * (c = Math.pow(2, -e)) < 1) {
  12057. e--
  12058. c *= 2
  12059. }
  12060. if (e + eBias >= 1) {
  12061. value += rt / c
  12062. } else {
  12063. value += rt * Math.pow(2, 1 - eBias)
  12064. }
  12065. if (value * c >= 2) {
  12066. e++
  12067. c /= 2
  12068. }
  12069. if (e + eBias >= eMax) {
  12070. m = 0
  12071. e = eMax
  12072. } else if (e + eBias >= 1) {
  12073. m = ((value * c) - 1) * Math.pow(2, mLen)
  12074. e = e + eBias
  12075. } else {
  12076. m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
  12077. e = 0
  12078. }
  12079. }
  12080. for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
  12081. e = (e << mLen) | m
  12082. eLen += mLen
  12083. for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
  12084. buffer[offset + i - d] |= s * 128
  12085. }
  12086. /***/ }),
  12087. /* 54 */
  12088. /*!***************************************!*\
  12089. !*** ./node_modules/isarray/index.js ***!
  12090. \***************************************/
  12091. /*! no static exports found */
  12092. /***/ (function(module, exports) {
  12093. var toString = {}.toString;
  12094. module.exports = Array.isArray || function (arr) {
  12095. return toString.call(arr) == '[object Array]';
  12096. };
  12097. /***/ }),
  12098. /* 55 */
  12099. /*!**************************************************************************************************!*\
  12100. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/util/route.js ***!
  12101. \**************************************************************************************************/
  12102. /*! no static exports found */
  12103. /***/ (function(module, exports, __webpack_require__) {
  12104. "use strict";
  12105. /* WEBPACK VAR INJECTION */(function(uni) {
  12106. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12107. Object.defineProperty(exports, "__esModule", {
  12108. value: true
  12109. });
  12110. exports.default = void 0;
  12111. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 56));
  12112. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 58));
  12113. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  12114. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  12115. /**
  12116. * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
  12117. * 并且带有路由拦截功能
  12118. */
  12119. var Router = /*#__PURE__*/function () {
  12120. function Router() {
  12121. (0, _classCallCheck2.default)(this, Router);
  12122. // 原始属性定义
  12123. this.config = {
  12124. type: 'navigateTo',
  12125. url: '',
  12126. delta: 1,
  12127. // navigateBack页面后退时,回退的层数
  12128. params: {},
  12129. // 传递的参数
  12130. animationType: 'pop-in',
  12131. // 窗口动画,只在APP有效
  12132. animationDuration: 300,
  12133. // 窗口动画持续时间,单位毫秒,只在APP有效
  12134. intercept: false // 是否需要拦截
  12135. };
  12136. // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
  12137. // 这里在构造函数中进行this绑定
  12138. this.route = this.route.bind(this);
  12139. }
  12140. // 判断url前面是否有"/",如果没有则加上,否则无法跳转
  12141. (0, _createClass2.default)(Router, [{
  12142. key: "addRootPath",
  12143. value: function addRootPath(url) {
  12144. return url[0] === '/' ? url : "/".concat(url);
  12145. }
  12146. // 整合路由参数
  12147. }, {
  12148. key: "mixinParam",
  12149. value: function mixinParam(url, params) {
  12150. url = url && this.addRootPath(url);
  12151. // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
  12152. // 如果有url中有get参数,转换后无需带上"?"
  12153. var query = '';
  12154. if (/.*\/.*\?.*=.*/.test(url)) {
  12155. // object对象转为get类型的参数
  12156. query = uni.$u.queryParams(params, false);
  12157. // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
  12158. return url += "&".concat(query);
  12159. }
  12160. // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
  12161. query = uni.$u.queryParams(params);
  12162. return url += query;
  12163. }
  12164. // 对外的方法名称
  12165. }, {
  12166. key: "route",
  12167. value: function () {
  12168. var _route = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  12169. var options,
  12170. params,
  12171. mergeConfig,
  12172. isNext,
  12173. _args = arguments;
  12174. return _regenerator.default.wrap(function _callee$(_context) {
  12175. while (1) {
  12176. switch (_context.prev = _context.next) {
  12177. case 0:
  12178. options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
  12179. params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
  12180. // 合并用户的配置和内部的默认配置
  12181. mergeConfig = {};
  12182. if (typeof options === 'string') {
  12183. // 如果options为字符串,则为route(url, params)的形式
  12184. mergeConfig.url = this.mixinParam(options, params);
  12185. mergeConfig.type = 'navigateTo';
  12186. } else {
  12187. mergeConfig = uni.$u.deepMerge(this.config, options);
  12188. // 否则正常使用mergeConfig中的url和params进行拼接
  12189. mergeConfig.url = this.mixinParam(options.url, options.params);
  12190. }
  12191. // 如果本次跳转的路径和本页面路径一致,不执行跳转,防止用户快速点击跳转按钮,造成多次跳转同一个页面的问题
  12192. if (!(mergeConfig.url === uni.$u.page())) {
  12193. _context.next = 6;
  12194. break;
  12195. }
  12196. return _context.abrupt("return");
  12197. case 6:
  12198. if (params.intercept) {
  12199. this.config.intercept = params.intercept;
  12200. }
  12201. // params参数也带给拦截器
  12202. mergeConfig.params = params;
  12203. // 合并内外部参数
  12204. mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
  12205. // 判断用户是否定义了拦截器
  12206. if (!(typeof uni.$u.routeIntercept === 'function')) {
  12207. _context.next = 16;
  12208. break;
  12209. }
  12210. _context.next = 12;
  12211. return new Promise(function (resolve, reject) {
  12212. uni.$u.routeIntercept(mergeConfig, resolve);
  12213. });
  12214. case 12:
  12215. isNext = _context.sent;
  12216. // 如果isNext为true,则执行路由跳转
  12217. isNext && this.openPage(mergeConfig);
  12218. _context.next = 17;
  12219. break;
  12220. case 16:
  12221. this.openPage(mergeConfig);
  12222. case 17:
  12223. case "end":
  12224. return _context.stop();
  12225. }
  12226. }
  12227. }, _callee, this);
  12228. }));
  12229. function route() {
  12230. return _route.apply(this, arguments);
  12231. }
  12232. return route;
  12233. }() // 执行路由跳转
  12234. }, {
  12235. key: "openPage",
  12236. value: function openPage(config) {
  12237. // 解构参数
  12238. var url = config.url,
  12239. type = config.type,
  12240. delta = config.delta,
  12241. animationType = config.animationType,
  12242. animationDuration = config.animationDuration;
  12243. if (config.type == 'navigateTo' || config.type == 'to') {
  12244. uni.navigateTo({
  12245. url: url,
  12246. animationType: animationType,
  12247. animationDuration: animationDuration
  12248. });
  12249. }
  12250. if (config.type == 'redirectTo' || config.type == 'redirect') {
  12251. uni.redirectTo({
  12252. url: url
  12253. });
  12254. }
  12255. if (config.type == 'switchTab' || config.type == 'tab') {
  12256. uni.switchTab({
  12257. url: url
  12258. });
  12259. }
  12260. if (config.type == 'reLaunch' || config.type == 'launch') {
  12261. uni.reLaunch({
  12262. url: url
  12263. });
  12264. }
  12265. if (config.type == 'navigateBack' || config.type == 'back') {
  12266. uni.navigateBack({
  12267. delta: delta
  12268. });
  12269. }
  12270. }
  12271. }]);
  12272. return Router;
  12273. }();
  12274. var _default = new Router().route;
  12275. exports.default = _default;
  12276. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  12277. /***/ }),
  12278. /* 56 */
  12279. /*!************************************************************************************************!*\
  12280. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  12281. \************************************************************************************************/
  12282. /*! no static exports found */
  12283. /***/ (function(module, exports, __webpack_require__) {
  12284. // TODO(Babel 8): Remove this file.
  12285. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 57)();
  12286. module.exports = runtime;
  12287. /***/ }),
  12288. /* 57 */
  12289. /*!*******************************************************************!*\
  12290. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  12291. \*******************************************************************/
  12292. /*! no static exports found */
  12293. /***/ (function(module, exports, __webpack_require__) {
  12294. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  12295. function _regeneratorRuntime() {
  12296. "use strict";
  12297. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  12298. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  12299. return e;
  12300. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12301. var t,
  12302. e = {},
  12303. r = Object.prototype,
  12304. n = r.hasOwnProperty,
  12305. o = Object.defineProperty || function (t, e, r) {
  12306. t[e] = r.value;
  12307. },
  12308. i = "function" == typeof Symbol ? Symbol : {},
  12309. a = i.iterator || "@@iterator",
  12310. c = i.asyncIterator || "@@asyncIterator",
  12311. u = i.toStringTag || "@@toStringTag";
  12312. function define(t, e, r) {
  12313. return Object.defineProperty(t, e, {
  12314. value: r,
  12315. enumerable: !0,
  12316. configurable: !0,
  12317. writable: !0
  12318. }), t[e];
  12319. }
  12320. try {
  12321. define({}, "");
  12322. } catch (t) {
  12323. define = function define(t, e, r) {
  12324. return t[e] = r;
  12325. };
  12326. }
  12327. function wrap(t, e, r, n) {
  12328. var i = e && e.prototype instanceof Generator ? e : Generator,
  12329. a = Object.create(i.prototype),
  12330. c = new Context(n || []);
  12331. return o(a, "_invoke", {
  12332. value: makeInvokeMethod(t, r, c)
  12333. }), a;
  12334. }
  12335. function tryCatch(t, e, r) {
  12336. try {
  12337. return {
  12338. type: "normal",
  12339. arg: t.call(e, r)
  12340. };
  12341. } catch (t) {
  12342. return {
  12343. type: "throw",
  12344. arg: t
  12345. };
  12346. }
  12347. }
  12348. e.wrap = wrap;
  12349. var h = "suspendedStart",
  12350. l = "suspendedYield",
  12351. f = "executing",
  12352. s = "completed",
  12353. y = {};
  12354. function Generator() {}
  12355. function GeneratorFunction() {}
  12356. function GeneratorFunctionPrototype() {}
  12357. var p = {};
  12358. define(p, a, function () {
  12359. return this;
  12360. });
  12361. var d = Object.getPrototypeOf,
  12362. v = d && d(d(values([])));
  12363. v && v !== r && n.call(v, a) && (p = v);
  12364. var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
  12365. function defineIteratorMethods(t) {
  12366. ["next", "throw", "return"].forEach(function (e) {
  12367. define(t, e, function (t) {
  12368. return this._invoke(e, t);
  12369. });
  12370. });
  12371. }
  12372. function AsyncIterator(t, e) {
  12373. function invoke(r, o, i, a) {
  12374. var c = tryCatch(t[r], t, o);
  12375. if ("throw" !== c.type) {
  12376. var u = c.arg,
  12377. h = u.value;
  12378. return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
  12379. invoke("next", t, i, a);
  12380. }, function (t) {
  12381. invoke("throw", t, i, a);
  12382. }) : e.resolve(h).then(function (t) {
  12383. u.value = t, i(u);
  12384. }, function (t) {
  12385. return invoke("throw", t, i, a);
  12386. });
  12387. }
  12388. a(c.arg);
  12389. }
  12390. var r;
  12391. o(this, "_invoke", {
  12392. value: function value(t, n) {
  12393. function callInvokeWithMethodAndArg() {
  12394. return new e(function (e, r) {
  12395. invoke(t, n, e, r);
  12396. });
  12397. }
  12398. return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  12399. }
  12400. });
  12401. }
  12402. function makeInvokeMethod(e, r, n) {
  12403. var o = h;
  12404. return function (i, a) {
  12405. if (o === f) throw Error("Generator is already running");
  12406. if (o === s) {
  12407. if ("throw" === i) throw a;
  12408. return {
  12409. value: t,
  12410. done: !0
  12411. };
  12412. }
  12413. for (n.method = i, n.arg = a;;) {
  12414. var c = n.delegate;
  12415. if (c) {
  12416. var u = maybeInvokeDelegate(c, n);
  12417. if (u) {
  12418. if (u === y) continue;
  12419. return u;
  12420. }
  12421. }
  12422. if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
  12423. if (o === h) throw o = s, n.arg;
  12424. n.dispatchException(n.arg);
  12425. } else "return" === n.method && n.abrupt("return", n.arg);
  12426. o = f;
  12427. var p = tryCatch(e, r, n);
  12428. if ("normal" === p.type) {
  12429. if (o = n.done ? s : l, p.arg === y) continue;
  12430. return {
  12431. value: p.arg,
  12432. done: n.done
  12433. };
  12434. }
  12435. "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
  12436. }
  12437. };
  12438. }
  12439. function maybeInvokeDelegate(e, r) {
  12440. var n = r.method,
  12441. o = e.iterator[n];
  12442. if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
  12443. var i = tryCatch(o, e.iterator, r.arg);
  12444. if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
  12445. var a = i.arg;
  12446. return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
  12447. }
  12448. function pushTryEntry(t) {
  12449. var e = {
  12450. tryLoc: t[0]
  12451. };
  12452. 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
  12453. }
  12454. function resetTryEntry(t) {
  12455. var e = t.completion || {};
  12456. e.type = "normal", delete e.arg, t.completion = e;
  12457. }
  12458. function Context(t) {
  12459. this.tryEntries = [{
  12460. tryLoc: "root"
  12461. }], t.forEach(pushTryEntry, this), this.reset(!0);
  12462. }
  12463. function values(e) {
  12464. if (e || "" === e) {
  12465. var r = e[a];
  12466. if (r) return r.call(e);
  12467. if ("function" == typeof e.next) return e;
  12468. if (!isNaN(e.length)) {
  12469. var o = -1,
  12470. i = function next() {
  12471. for (; ++o < e.length;) {
  12472. if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
  12473. }
  12474. return next.value = t, next.done = !0, next;
  12475. };
  12476. return i.next = i;
  12477. }
  12478. }
  12479. throw new TypeError(_typeof(e) + " is not iterable");
  12480. }
  12481. return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
  12482. value: GeneratorFunctionPrototype,
  12483. configurable: !0
  12484. }), o(GeneratorFunctionPrototype, "constructor", {
  12485. value: GeneratorFunction,
  12486. configurable: !0
  12487. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
  12488. var e = "function" == typeof t && t.constructor;
  12489. return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
  12490. }, e.mark = function (t) {
  12491. return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
  12492. }, e.awrap = function (t) {
  12493. return {
  12494. __await: t
  12495. };
  12496. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
  12497. return this;
  12498. }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
  12499. void 0 === i && (i = Promise);
  12500. var a = new AsyncIterator(wrap(t, r, n, o), i);
  12501. return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
  12502. return t.done ? t.value : a.next();
  12503. });
  12504. }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
  12505. return this;
  12506. }), define(g, "toString", function () {
  12507. return "[object Generator]";
  12508. }), e.keys = function (t) {
  12509. var e = Object(t),
  12510. r = [];
  12511. for (var n in e) {
  12512. r.push(n);
  12513. }
  12514. return r.reverse(), function next() {
  12515. for (; r.length;) {
  12516. var t = r.pop();
  12517. if (t in e) return next.value = t, next.done = !1, next;
  12518. }
  12519. return next.done = !0, next;
  12520. };
  12521. }, e.values = values, Context.prototype = {
  12522. constructor: Context,
  12523. reset: function reset(e) {
  12524. if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) {
  12525. "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
  12526. }
  12527. },
  12528. stop: function stop() {
  12529. this.done = !0;
  12530. var t = this.tryEntries[0].completion;
  12531. if ("throw" === t.type) throw t.arg;
  12532. return this.rval;
  12533. },
  12534. dispatchException: function dispatchException(e) {
  12535. if (this.done) throw e;
  12536. var r = this;
  12537. function handle(n, o) {
  12538. return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
  12539. }
  12540. for (var o = this.tryEntries.length - 1; o >= 0; --o) {
  12541. var i = this.tryEntries[o],
  12542. a = i.completion;
  12543. if ("root" === i.tryLoc) return handle("end");
  12544. if (i.tryLoc <= this.prev) {
  12545. var c = n.call(i, "catchLoc"),
  12546. u = n.call(i, "finallyLoc");
  12547. if (c && u) {
  12548. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  12549. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  12550. } else if (c) {
  12551. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  12552. } else {
  12553. if (!u) throw Error("try statement without catch or finally");
  12554. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  12555. }
  12556. }
  12557. }
  12558. },
  12559. abrupt: function abrupt(t, e) {
  12560. for (var r = this.tryEntries.length - 1; r >= 0; --r) {
  12561. var o = this.tryEntries[r];
  12562. if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
  12563. var i = o;
  12564. break;
  12565. }
  12566. }
  12567. i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
  12568. var a = i ? i.completion : {};
  12569. return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
  12570. },
  12571. complete: function complete(t, e) {
  12572. if ("throw" === t.type) throw t.arg;
  12573. return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
  12574. },
  12575. finish: function finish(t) {
  12576. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  12577. var r = this.tryEntries[e];
  12578. if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
  12579. }
  12580. },
  12581. "catch": function _catch(t) {
  12582. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  12583. var r = this.tryEntries[e];
  12584. if (r.tryLoc === t) {
  12585. var n = r.completion;
  12586. if ("throw" === n.type) {
  12587. var o = n.arg;
  12588. resetTryEntry(r);
  12589. }
  12590. return o;
  12591. }
  12592. }
  12593. throw Error("illegal catch attempt");
  12594. },
  12595. delegateYield: function delegateYield(e, r, n) {
  12596. return this.delegate = {
  12597. iterator: values(e),
  12598. resultName: r,
  12599. nextLoc: n
  12600. }, "next" === this.method && (this.arg = t), y;
  12601. }
  12602. }, e;
  12603. }
  12604. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12605. /***/ }),
  12606. /* 58 */
  12607. /*!*****************************************************************!*\
  12608. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  12609. \*****************************************************************/
  12610. /*! no static exports found */
  12611. /***/ (function(module, exports) {
  12612. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  12613. try {
  12614. var info = gen[key](arg);
  12615. var value = info.value;
  12616. } catch (error) {
  12617. reject(error);
  12618. return;
  12619. }
  12620. if (info.done) {
  12621. resolve(value);
  12622. } else {
  12623. Promise.resolve(value).then(_next, _throw);
  12624. }
  12625. }
  12626. function _asyncToGenerator(fn) {
  12627. return function () {
  12628. var self = this,
  12629. args = arguments;
  12630. return new Promise(function (resolve, reject) {
  12631. var gen = fn.apply(self, args);
  12632. function _next(value) {
  12633. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  12634. }
  12635. function _throw(err) {
  12636. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  12637. }
  12638. _next(undefined);
  12639. });
  12640. };
  12641. }
  12642. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12643. /***/ }),
  12644. /* 59 */
  12645. /*!**************************************************************************************************************!*\
  12646. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/function/colorGradient.js ***!
  12647. \**************************************************************************************************************/
  12648. /*! no static exports found */
  12649. /***/ (function(module, exports, __webpack_require__) {
  12650. "use strict";
  12651. Object.defineProperty(exports, "__esModule", {
  12652. value: true
  12653. });
  12654. exports.default = void 0;
  12655. /**
  12656. * 求两个颜色之间的渐变值
  12657. * @param {string} startColor 开始的颜色
  12658. * @param {string} endColor 结束的颜色
  12659. * @param {number} step 颜色等分的份额
  12660. * */
  12661. function colorGradient() {
  12662. var startColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'rgb(0, 0, 0)';
  12663. var endColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rgb(255, 255, 255)';
  12664. var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
  12665. var startRGB = hexToRgb(startColor, false); // 转换为rgb数组模式
  12666. var startR = startRGB[0];
  12667. var startG = startRGB[1];
  12668. var startB = startRGB[2];
  12669. var endRGB = hexToRgb(endColor, false);
  12670. var endR = endRGB[0];
  12671. var endG = endRGB[1];
  12672. var endB = endRGB[2];
  12673. var sR = (endR - startR) / step; // 总差值
  12674. var sG = (endG - startG) / step;
  12675. var sB = (endB - startB) / step;
  12676. var colorArr = [];
  12677. for (var i = 0; i < step; i++) {
  12678. // 计算每一步的hex值
  12679. var hex = rgbToHex("rgb(".concat(Math.round(sR * i + startR), ",").concat(Math.round(sG * i + startG), ",").concat(Math.round(sB * i + startB), ")"));
  12680. // 确保第一个颜色值为startColor的值
  12681. if (i === 0) hex = rgbToHex(startColor);
  12682. // 确保最后一个颜色值为endColor的值
  12683. if (i === step - 1) hex = rgbToHex(endColor);
  12684. colorArr.push(hex);
  12685. }
  12686. return colorArr;
  12687. }
  12688. // 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
  12689. function hexToRgb(sColor) {
  12690. var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  12691. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12692. sColor = String(sColor).toLowerCase();
  12693. if (sColor && reg.test(sColor)) {
  12694. if (sColor.length === 4) {
  12695. var sColorNew = '#';
  12696. for (var i = 1; i < 4; i += 1) {
  12697. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  12698. }
  12699. sColor = sColorNew;
  12700. }
  12701. // 处理六位的颜色值
  12702. var sColorChange = [];
  12703. for (var _i = 1; _i < 7; _i += 2) {
  12704. sColorChange.push(parseInt("0x".concat(sColor.slice(_i, _i + 2))));
  12705. }
  12706. if (!str) {
  12707. return sColorChange;
  12708. }
  12709. return "rgb(".concat(sColorChange[0], ",").concat(sColorChange[1], ",").concat(sColorChange[2], ")");
  12710. }
  12711. if (/^(rgb|RGB)/.test(sColor)) {
  12712. var arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  12713. return arr.map(function (val) {
  12714. return Number(val);
  12715. });
  12716. }
  12717. return sColor;
  12718. }
  12719. // 将rgb表示方式转换为hex表示方式
  12720. function rgbToHex(rgb) {
  12721. var _this = rgb;
  12722. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12723. if (/^(rgb|RGB)/.test(_this)) {
  12724. var aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  12725. var strHex = '#';
  12726. for (var i = 0; i < aColor.length; i++) {
  12727. var hex = Number(aColor[i]).toString(16);
  12728. hex = String(hex).length == 1 ? "".concat(0, hex) : hex; // 保证每个rgb的值为2位
  12729. if (hex === '0') {
  12730. hex += hex;
  12731. }
  12732. strHex += hex;
  12733. }
  12734. if (strHex.length !== 7) {
  12735. strHex = _this;
  12736. }
  12737. return strHex;
  12738. }
  12739. if (reg.test(_this)) {
  12740. var aNum = _this.replace(/#/, '').split('');
  12741. if (aNum.length === 6) {
  12742. return _this;
  12743. }
  12744. if (aNum.length === 3) {
  12745. var numHex = '#';
  12746. for (var _i2 = 0; _i2 < aNum.length; _i2 += 1) {
  12747. numHex += aNum[_i2] + aNum[_i2];
  12748. }
  12749. return numHex;
  12750. }
  12751. } else {
  12752. return _this;
  12753. }
  12754. }
  12755. /**
  12756. * JS颜色十六进制转换为rgb或rgba,返回的格式为 rgba(255,255,255,0.5)字符串
  12757. * sHex为传入的十六进制的色值
  12758. * alpha为rgba的透明度
  12759. */
  12760. function colorToRgba(color, alpha) {
  12761. color = rgbToHex(color);
  12762. // 十六进制颜色值的正则表达式
  12763. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12764. /* 16进制颜色转为RGB格式 */
  12765. var sColor = String(color).toLowerCase();
  12766. if (sColor && reg.test(sColor)) {
  12767. if (sColor.length === 4) {
  12768. var sColorNew = '#';
  12769. for (var i = 1; i < 4; i += 1) {
  12770. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  12771. }
  12772. sColor = sColorNew;
  12773. }
  12774. // 处理六位的颜色值
  12775. var sColorChange = [];
  12776. for (var _i3 = 1; _i3 < 7; _i3 += 2) {
  12777. sColorChange.push(parseInt("0x".concat(sColor.slice(_i3, _i3 + 2))));
  12778. }
  12779. // return sColorChange.join(',')
  12780. return "rgba(".concat(sColorChange.join(','), ",").concat(alpha, ")");
  12781. }
  12782. return sColor;
  12783. }
  12784. var _default = {
  12785. colorGradient: colorGradient,
  12786. hexToRgb: hexToRgb,
  12787. rgbToHex: rgbToHex,
  12788. colorToRgba: colorToRgba
  12789. };
  12790. exports.default = _default;
  12791. /***/ }),
  12792. /* 60 */
  12793. /*!*****************************************************************************************************!*\
  12794. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/function/test.js ***!
  12795. \*****************************************************************************************************/
  12796. /*! no static exports found */
  12797. /***/ (function(module, exports, __webpack_require__) {
  12798. "use strict";
  12799. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12800. Object.defineProperty(exports, "__esModule", {
  12801. value: true
  12802. });
  12803. exports.default = void 0;
  12804. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  12805. /**
  12806. * 验证电子邮箱格式
  12807. */
  12808. function email(value) {
  12809. return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
  12810. }
  12811. /**
  12812. * 验证手机格式
  12813. */
  12814. function mobile(value) {
  12815. return /^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/.test(value);
  12816. }
  12817. /**
  12818. * 验证URL格式
  12819. */
  12820. function url(value) {
  12821. 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);
  12822. }
  12823. /**
  12824. * 验证日期格式
  12825. */
  12826. function date(value) {
  12827. if (!value) return false;
  12828. // 判断是否数值或者字符串数值(意味着为时间戳),转为数值,否则new Date无法识别字符串时间戳
  12829. if (number(value)) value = +value;
  12830. return !/Invalid|NaN/.test(new Date(value).toString());
  12831. }
  12832. /**
  12833. * 验证ISO类型的日期格式
  12834. */
  12835. function dateISO(value) {
  12836. return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
  12837. }
  12838. /**
  12839. * 验证十进制数字
  12840. */
  12841. function number(value) {
  12842. return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value);
  12843. }
  12844. /**
  12845. * 验证字符串
  12846. */
  12847. function string(value) {
  12848. return typeof value === 'string';
  12849. }
  12850. /**
  12851. * 验证整数
  12852. */
  12853. function digits(value) {
  12854. return /^\d+$/.test(value);
  12855. }
  12856. /**
  12857. * 验证身份证号码
  12858. */
  12859. function idCard(value) {
  12860. 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);
  12861. }
  12862. /**
  12863. * 是否车牌号
  12864. */
  12865. function carNo(value) {
  12866. // 新能源车牌
  12867. var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
  12868. // 旧车牌
  12869. var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
  12870. if (value.length === 7) {
  12871. return creg.test(value);
  12872. }
  12873. if (value.length === 8) {
  12874. return xreg.test(value);
  12875. }
  12876. return false;
  12877. }
  12878. /**
  12879. * 金额,只允许2位小数
  12880. */
  12881. function amount(value) {
  12882. // 金额,只允许保留两位小数
  12883. return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
  12884. }
  12885. /**
  12886. * 中文
  12887. */
  12888. function chinese(value) {
  12889. var reg = /^[\u4e00-\u9fa5]+$/gi;
  12890. return reg.test(value);
  12891. }
  12892. /**
  12893. * 只能输入字母
  12894. */
  12895. function letter(value) {
  12896. return /^[a-zA-Z]*$/.test(value);
  12897. }
  12898. /**
  12899. * 只能是字母或者数字
  12900. */
  12901. function enOrNum(value) {
  12902. // 英文或者数字
  12903. var reg = /^[0-9a-zA-Z]*$/g;
  12904. return reg.test(value);
  12905. }
  12906. /**
  12907. * 验证是否包含某个值
  12908. */
  12909. function contains(value, param) {
  12910. return value.indexOf(param) >= 0;
  12911. }
  12912. /**
  12913. * 验证一个值范围[min, max]
  12914. */
  12915. function range(value, param) {
  12916. return value >= param[0] && value <= param[1];
  12917. }
  12918. /**
  12919. * 验证一个长度范围[min, max]
  12920. */
  12921. function rangeLength(value, param) {
  12922. return value.length >= param[0] && value.length <= param[1];
  12923. }
  12924. /**
  12925. * 是否固定电话
  12926. */
  12927. function landline(value) {
  12928. var reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
  12929. return reg.test(value);
  12930. }
  12931. /**
  12932. * 判断是否为空
  12933. */
  12934. function empty(value) {
  12935. switch ((0, _typeof2.default)(value)) {
  12936. case 'undefined':
  12937. return true;
  12938. case 'string':
  12939. if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true;
  12940. break;
  12941. case 'boolean':
  12942. if (!value) return true;
  12943. break;
  12944. case 'number':
  12945. if (value === 0 || isNaN(value)) return true;
  12946. break;
  12947. case 'object':
  12948. if (value === null || value.length === 0) return true;
  12949. for (var i in value) {
  12950. return false;
  12951. }
  12952. return true;
  12953. }
  12954. return false;
  12955. }
  12956. /**
  12957. * 是否json字符串
  12958. */
  12959. function jsonString(value) {
  12960. if (typeof value === 'string') {
  12961. try {
  12962. var obj = JSON.parse(value);
  12963. if ((0, _typeof2.default)(obj) === 'object' && obj) {
  12964. return true;
  12965. }
  12966. return false;
  12967. } catch (e) {
  12968. return false;
  12969. }
  12970. }
  12971. return false;
  12972. }
  12973. /**
  12974. * 是否数组
  12975. */
  12976. function array(value) {
  12977. if (typeof Array.isArray === 'function') {
  12978. return Array.isArray(value);
  12979. }
  12980. return Object.prototype.toString.call(value) === '[object Array]';
  12981. }
  12982. /**
  12983. * 是否对象
  12984. */
  12985. function object(value) {
  12986. return Object.prototype.toString.call(value) === '[object Object]';
  12987. }
  12988. /**
  12989. * 是否短信验证码
  12990. */
  12991. function code(value) {
  12992. var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  12993. return new RegExp("^\\d{".concat(len, "}$")).test(value);
  12994. }
  12995. /**
  12996. * 是否函数方法
  12997. * @param {Object} value
  12998. */
  12999. function func(value) {
  13000. return typeof value === 'function';
  13001. }
  13002. /**
  13003. * 是否promise对象
  13004. * @param {Object} value
  13005. */
  13006. function promise(value) {
  13007. return object(value) && func(value.then) && func(value.catch);
  13008. }
  13009. /** 是否图片格式
  13010. * @param {Object} value
  13011. */
  13012. function image(value) {
  13013. var newValue = value.split('?')[0];
  13014. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  13015. return IMAGE_REGEXP.test(newValue);
  13016. }
  13017. /**
  13018. * 是否视频格式
  13019. * @param {Object} value
  13020. */
  13021. function video(value) {
  13022. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;
  13023. return VIDEO_REGEXP.test(value);
  13024. }
  13025. /**
  13026. * 是否为正则对象
  13027. * @param {Object}
  13028. * @return {Boolean}
  13029. */
  13030. function regExp(o) {
  13031. return o && Object.prototype.toString.call(o) === '[object RegExp]';
  13032. }
  13033. var _default = {
  13034. email: email,
  13035. mobile: mobile,
  13036. url: url,
  13037. date: date,
  13038. dateISO: dateISO,
  13039. number: number,
  13040. digits: digits,
  13041. idCard: idCard,
  13042. carNo: carNo,
  13043. amount: amount,
  13044. chinese: chinese,
  13045. letter: letter,
  13046. enOrNum: enOrNum,
  13047. contains: contains,
  13048. range: range,
  13049. rangeLength: rangeLength,
  13050. empty: empty,
  13051. isEmpty: empty,
  13052. jsonString: jsonString,
  13053. landline: landline,
  13054. object: object,
  13055. array: array,
  13056. code: code,
  13057. func: func,
  13058. promise: promise,
  13059. video: video,
  13060. image: image,
  13061. regExp: regExp,
  13062. string: string
  13063. };
  13064. exports.default = _default;
  13065. /***/ }),
  13066. /* 61 */
  13067. /*!*********************************************************************************************************!*\
  13068. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/function/debounce.js ***!
  13069. \*********************************************************************************************************/
  13070. /*! no static exports found */
  13071. /***/ (function(module, exports, __webpack_require__) {
  13072. "use strict";
  13073. Object.defineProperty(exports, "__esModule", {
  13074. value: true
  13075. });
  13076. exports.default = void 0;
  13077. var timeout = null;
  13078. /**
  13079. * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
  13080. *
  13081. * @param {Function} func 要执行的回调函数
  13082. * @param {Number} wait 延时的时间
  13083. * @param {Boolean} immediate 是否立即执行
  13084. * @return null
  13085. */
  13086. function debounce(func) {
  13087. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  13088. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  13089. // 清除定时器
  13090. if (timeout !== null) clearTimeout(timeout);
  13091. // 立即执行,此类情况一般用不到
  13092. if (immediate) {
  13093. var callNow = !timeout;
  13094. timeout = setTimeout(function () {
  13095. timeout = null;
  13096. }, wait);
  13097. if (callNow) typeof func === 'function' && func();
  13098. } else {
  13099. // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
  13100. timeout = setTimeout(function () {
  13101. typeof func === 'function' && func();
  13102. }, wait);
  13103. }
  13104. }
  13105. var _default = debounce;
  13106. exports.default = _default;
  13107. /***/ }),
  13108. /* 62 */
  13109. /*!*********************************************************************************************************!*\
  13110. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/function/throttle.js ***!
  13111. \*********************************************************************************************************/
  13112. /*! no static exports found */
  13113. /***/ (function(module, exports, __webpack_require__) {
  13114. "use strict";
  13115. Object.defineProperty(exports, "__esModule", {
  13116. value: true
  13117. });
  13118. exports.default = void 0;
  13119. var timer;
  13120. var flag;
  13121. /**
  13122. * 节流原理:在一定时间内,只能触发一次
  13123. *
  13124. * @param {Function} func 要执行的回调函数
  13125. * @param {Number} wait 延时的时间
  13126. * @param {Boolean} immediate 是否立即执行
  13127. * @return null
  13128. */
  13129. function throttle(func) {
  13130. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  13131. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  13132. if (immediate) {
  13133. if (!flag) {
  13134. flag = true;
  13135. // 如果是立即执行,则在wait毫秒内开始时执行
  13136. typeof func === 'function' && func();
  13137. timer = setTimeout(function () {
  13138. flag = false;
  13139. }, wait);
  13140. }
  13141. } else if (!flag) {
  13142. flag = true;
  13143. // 如果是非立即执行,则在wait毫秒内的结束处执行
  13144. timer = setTimeout(function () {
  13145. flag = false;
  13146. typeof func === 'function' && func();
  13147. }, wait);
  13148. }
  13149. }
  13150. var _default = throttle;
  13151. exports.default = _default;
  13152. /***/ }),
  13153. /* 63 */
  13154. /*!******************************************************************************************************!*\
  13155. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/function/index.js ***!
  13156. \******************************************************************************************************/
  13157. /*! no static exports found */
  13158. /***/ (function(module, exports, __webpack_require__) {
  13159. "use strict";
  13160. /* WEBPACK VAR INJECTION */(function(uni) {
  13161. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13162. Object.defineProperty(exports, "__esModule", {
  13163. value: true
  13164. });
  13165. exports.default = void 0;
  13166. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  13167. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  13168. var _test = _interopRequireDefault(__webpack_require__(/*! ./test.js */ 60));
  13169. var _digit = __webpack_require__(/*! ./digit.js */ 64);
  13170. /**
  13171. * @description 如果value小于min,取min;如果value大于max,取max
  13172. * @param {number} min
  13173. * @param {number} max
  13174. * @param {number} value
  13175. */
  13176. function range() {
  13177. var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  13178. var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  13179. var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
  13180. return Math.max(min, Math.min(max, Number(value)));
  13181. }
  13182. /**
  13183. * @description 用于获取用户传递值的px值 如果用户传递了"xxpx"或者"xxrpx",取出其数值部分,如果是"xxxrpx"还需要用过uni.upx2px进行转换
  13184. * @param {number|string} value 用户传递值的px值
  13185. * @param {boolean} unit
  13186. * @returns {number|string}
  13187. */
  13188. function getPx(value) {
  13189. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13190. if (_test.default.number(value)) {
  13191. return unit ? "".concat(value, "px") : Number(value);
  13192. }
  13193. // 如果带有rpx,先取出其数值部分,再转为px值
  13194. if (/(rpx|upx)$/.test(value)) {
  13195. return unit ? "".concat(uni.upx2px(parseInt(value)), "px") : Number(uni.upx2px(parseInt(value)));
  13196. }
  13197. return unit ? "".concat(parseInt(value), "px") : parseInt(value);
  13198. }
  13199. /**
  13200. * @description 进行延时,以达到可以简写代码的目的 比如: await uni.$u.sleep(20)将会阻塞20ms
  13201. * @param {number} value 堵塞时间 单位ms 毫秒
  13202. * @returns {Promise} 返回promise
  13203. */
  13204. function sleep() {
  13205. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 30;
  13206. return new Promise(function (resolve) {
  13207. setTimeout(function () {
  13208. resolve();
  13209. }, value);
  13210. });
  13211. }
  13212. /**
  13213. * @description 运行期判断平台
  13214. * @returns {string} 返回所在平台(小写)
  13215. * @link 运行期判断平台 https://uniapp.dcloud.io/frame?id=判断平台
  13216. */
  13217. function os() {
  13218. return uni.getSystemInfoSync().platform.toLowerCase();
  13219. }
  13220. /**
  13221. * @description 获取系统信息同步接口
  13222. * @link 获取系统信息同步接口 https://uniapp.dcloud.io/api/system/info?id=getsysteminfosync
  13223. */
  13224. function sys() {
  13225. return uni.getSystemInfoSync();
  13226. }
  13227. /**
  13228. * @description 取一个区间数
  13229. * @param {Number} min 最小值
  13230. * @param {Number} max 最大值
  13231. */
  13232. function random(min, max) {
  13233. if (min >= 0 && max > 0 && max >= min) {
  13234. var gab = max - min + 1;
  13235. return Math.floor(Math.random() * gab + min);
  13236. }
  13237. return 0;
  13238. }
  13239. /**
  13240. * @param {Number} len uuid的长度
  13241. * @param {Boolean} firstU 将返回的首字母置为"u"
  13242. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  13243. */
  13244. function guid() {
  13245. var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
  13246. var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13247. var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  13248. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  13249. var uuid = [];
  13250. radix = radix || chars.length;
  13251. if (len) {
  13252. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  13253. for (var i = 0; i < len; i++) {
  13254. uuid[i] = chars[0 | Math.random() * radix];
  13255. }
  13256. } else {
  13257. var r;
  13258. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  13259. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  13260. uuid[14] = '4';
  13261. for (var _i = 0; _i < 36; _i++) {
  13262. if (!uuid[_i]) {
  13263. r = 0 | Math.random() * 16;
  13264. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  13265. }
  13266. }
  13267. }
  13268. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  13269. if (firstU) {
  13270. uuid.shift();
  13271. return "u".concat(uuid.join(''));
  13272. }
  13273. return uuid.join('');
  13274. }
  13275. /**
  13276. * @description 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  13277. this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  13278. 这里默认值等于undefined有它的含义,因为最顶层元素(组件)的$parent就是undefined,意味着不传name
  13279. 值(默认为undefined),就是查找最顶层的$parent
  13280. * @param {string|undefined} name 父组件的参数名
  13281. */
  13282. function $parent() {
  13283. var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  13284. var parent = this.$parent;
  13285. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  13286. while (parent) {
  13287. // 父组件
  13288. if (parent.$options && parent.$options.name !== name) {
  13289. // 如果组件的name不相等,继续上一级寻找
  13290. parent = parent.$parent;
  13291. } else {
  13292. return parent;
  13293. }
  13294. }
  13295. return false;
  13296. }
  13297. /**
  13298. * @description 样式转换
  13299. * 对象转字符串,或者字符串转对象
  13300. * @param {object | string} customStyle 需要转换的目标
  13301. * @param {String} target 转换的目的,object-转为对象,string-转为字符串
  13302. * @returns {object|string}
  13303. */
  13304. function addStyle(customStyle) {
  13305. var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'object';
  13306. // 字符串转字符串,对象转对象情形,直接返回
  13307. if (_test.default.empty(customStyle) || (0, _typeof2.default)(customStyle) === 'object' && target === 'object' || target === 'string' && typeof customStyle === 'string') {
  13308. return customStyle;
  13309. }
  13310. // 字符串转对象
  13311. if (target === 'object') {
  13312. // 去除字符串样式中的两端空格(中间的空格不能去掉,比如padding: 20px 0如果去掉了就错了),空格是无用的
  13313. customStyle = trim(customStyle);
  13314. // 根据";"将字符串转为数组形式
  13315. var styleArray = customStyle.split(';');
  13316. var style = {};
  13317. // 历遍数组,拼接成对象
  13318. for (var i = 0; i < styleArray.length; i++) {
  13319. // 'font-size:20px;color:red;',如此最后字符串有";"的话,会导致styleArray最后一个元素为空字符串,这里需要过滤
  13320. if (styleArray[i]) {
  13321. var item = styleArray[i].split(':');
  13322. style[trim(item[0])] = trim(item[1]);
  13323. }
  13324. }
  13325. return style;
  13326. }
  13327. // 这里为对象转字符串形式
  13328. var string = '';
  13329. for (var _i2 in customStyle) {
  13330. // 驼峰转为中划线的形式,否则css内联样式,无法识别驼峰样式属性名
  13331. var key = _i2.replace(/([A-Z])/g, '-$1').toLowerCase();
  13332. string += "".concat(key, ":").concat(customStyle[_i2], ";");
  13333. }
  13334. // 去除两端空格
  13335. return trim(string);
  13336. }
  13337. /**
  13338. * @description 添加单位,如果有rpx,upx,%,px等单位结尾或者值为auto,直接返回,否则加上px单位结尾
  13339. * @param {string|number} value 需要添加单位的值
  13340. * @param {string} unit 添加的单位名 比如px
  13341. */
  13342. function addUnit() {
  13343. var _uni$$u$config$unit, _uni, _uni$$u, _uni$$u$config;
  13344. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'auto';
  13345. 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';
  13346. value = String(value);
  13347. // 用uView内置验证规则中的number判断是否为数值
  13348. return _test.default.number(value) ? "".concat(value).concat(unit) : value;
  13349. }
  13350. /**
  13351. * @description 深度克隆
  13352. * @param {object} obj 需要深度克隆的对象
  13353. * @param cache 缓存
  13354. * @returns {*} 克隆后的对象或者原值(不是对象)
  13355. */
  13356. function deepClone(obj) {
  13357. var cache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new WeakMap();
  13358. if (obj === null || (0, _typeof2.default)(obj) !== 'object') return obj;
  13359. if (cache.has(obj)) return cache.get(obj);
  13360. var clone;
  13361. if (obj instanceof Date) {
  13362. clone = new Date(obj.getTime());
  13363. } else if (obj instanceof RegExp) {
  13364. clone = new RegExp(obj);
  13365. } else if (obj instanceof Map) {
  13366. clone = new Map(Array.from(obj, function (_ref) {
  13367. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  13368. key = _ref2[0],
  13369. value = _ref2[1];
  13370. return [key, deepClone(value, cache)];
  13371. }));
  13372. } else if (obj instanceof Set) {
  13373. clone = new Set(Array.from(obj, function (value) {
  13374. return deepClone(value, cache);
  13375. }));
  13376. } else if (Array.isArray(obj)) {
  13377. clone = obj.map(function (value) {
  13378. return deepClone(value, cache);
  13379. });
  13380. } else if (Object.prototype.toString.call(obj) === '[object Object]') {
  13381. clone = Object.create(Object.getPrototypeOf(obj));
  13382. cache.set(obj, clone);
  13383. for (var _i3 = 0, _Object$entries = Object.entries(obj); _i3 < _Object$entries.length; _i3++) {
  13384. var _Object$entries$_i = (0, _slicedToArray2.default)(_Object$entries[_i3], 2),
  13385. key = _Object$entries$_i[0],
  13386. value = _Object$entries$_i[1];
  13387. clone[key] = deepClone(value, cache);
  13388. }
  13389. } else {
  13390. clone = Object.assign({}, obj);
  13391. }
  13392. cache.set(obj, clone);
  13393. return clone;
  13394. }
  13395. /**
  13396. * @description JS对象深度合并
  13397. * @param {object} target 需要拷贝的对象
  13398. * @param {object} source 拷贝的来源对象
  13399. * @returns {object|boolean} 深度合并后的对象或者false(入参有不是对象)
  13400. */
  13401. function deepMerge() {
  13402. var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13403. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  13404. target = deepClone(target);
  13405. if ((0, _typeof2.default)(target) !== 'object' || target === null || (0, _typeof2.default)(source) !== 'object' || source === null) return target;
  13406. var merged = Array.isArray(target) ? target.slice() : Object.assign({}, target);
  13407. for (var prop in source) {
  13408. if (!source.hasOwnProperty(prop)) continue;
  13409. var sourceValue = source[prop];
  13410. var targetValue = merged[prop];
  13411. if (sourceValue instanceof Date) {
  13412. merged[prop] = new Date(sourceValue);
  13413. } else if (sourceValue instanceof RegExp) {
  13414. merged[prop] = new RegExp(sourceValue);
  13415. } else if (sourceValue instanceof Map) {
  13416. merged[prop] = new Map(sourceValue);
  13417. } else if (sourceValue instanceof Set) {
  13418. merged[prop] = new Set(sourceValue);
  13419. } else if ((0, _typeof2.default)(sourceValue) === 'object' && sourceValue !== null) {
  13420. merged[prop] = deepMerge(targetValue, sourceValue);
  13421. } else {
  13422. merged[prop] = sourceValue;
  13423. }
  13424. }
  13425. return merged;
  13426. }
  13427. /**
  13428. * @description error提示
  13429. * @param {*} err 错误内容
  13430. */
  13431. function error(err) {
  13432. // 开发环境才提示,生产环境不会提示
  13433. if (true) {
  13434. console.error("uView\u63D0\u793A\uFF1A".concat(err));
  13435. }
  13436. }
  13437. /**
  13438. * @description 打乱数组
  13439. * @param {array} array 需要打乱的数组
  13440. * @returns {array} 打乱后的数组
  13441. */
  13442. function randomArray() {
  13443. var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  13444. // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
  13445. return array.sort(function () {
  13446. return Math.random() - 0.5;
  13447. });
  13448. }
  13449. // padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
  13450. // 所以这里做一个兼容polyfill的兼容处理
  13451. if (!String.prototype.padStart) {
  13452. // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
  13453. String.prototype.padStart = function (maxLength) {
  13454. var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
  13455. if (Object.prototype.toString.call(fillString) !== '[object String]') {
  13456. throw new TypeError('fillString must be String');
  13457. }
  13458. var str = this;
  13459. // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
  13460. if (str.length >= maxLength) return String(str);
  13461. var fillLength = maxLength - str.length;
  13462. var times = Math.ceil(fillLength / fillString.length);
  13463. while (times >>= 1) {
  13464. fillString += fillString;
  13465. if (times === 1) {
  13466. fillString += fillString;
  13467. }
  13468. }
  13469. return fillString.slice(0, fillLength) + str;
  13470. };
  13471. }
  13472. /**
  13473. * @description 格式化时间
  13474. * @param {String|Number} dateTime 需要格式化的时间戳
  13475. * @param {String} fmt 格式化规则 yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合 默认yyyy-mm-dd
  13476. * @returns {string} 返回格式化后的字符串
  13477. */
  13478. function timeFormat() {
  13479. var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  13480. var formatStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  13481. var date;
  13482. // 若传入时间为假值,则取当前时间
  13483. if (!dateTime) {
  13484. date = new Date();
  13485. }
  13486. // 若为unix秒时间戳,则转为毫秒时间戳(逻辑有点奇怪,但不敢改,以保证历史兼容)
  13487. else if (/^\d{10}$/.test(dateTime === null || dateTime === void 0 ? void 0 : dateTime.toString().trim())) {
  13488. date = new Date(dateTime * 1000);
  13489. }
  13490. // 若用户传入字符串格式时间戳,new Date无法解析,需做兼容
  13491. else if (typeof dateTime === 'string' && /^\d+$/.test(dateTime.trim())) {
  13492. date = new Date(Number(dateTime));
  13493. }
  13494. // 处理平台性差异,在Safari/Webkit中,new Date仅支持/作为分割符的字符串时间
  13495. // 处理 '2022-07-10 01:02:03',跳过 '2022-07-10T01:02:03'
  13496. else if (typeof dateTime === 'string' && dateTime.includes('-') && !dateTime.includes('T')) {
  13497. date = new Date(dateTime.replace(/-/g, '/'));
  13498. }
  13499. // 其他都认为符合 RFC 2822 规范
  13500. else {
  13501. date = new Date(dateTime);
  13502. }
  13503. var timeSource = {
  13504. 'y': date.getFullYear().toString(),
  13505. // 年
  13506. 'm': (date.getMonth() + 1).toString().padStart(2, '0'),
  13507. // 月
  13508. 'd': date.getDate().toString().padStart(2, '0'),
  13509. // 日
  13510. 'h': date.getHours().toString().padStart(2, '0'),
  13511. // 时
  13512. 'M': date.getMinutes().toString().padStart(2, '0'),
  13513. // 分
  13514. 's': date.getSeconds().toString().padStart(2, '0') // 秒
  13515. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  13516. };
  13517. for (var key in timeSource) {
  13518. var _ref3 = new RegExp("".concat(key, "+")).exec(formatStr) || [],
  13519. _ref4 = (0, _slicedToArray2.default)(_ref3, 1),
  13520. ret = _ref4[0];
  13521. if (ret) {
  13522. // 年可能只需展示两位
  13523. var beginIndex = key === 'y' && ret.length === 2 ? 2 : 0;
  13524. formatStr = formatStr.replace(ret, timeSource[key].slice(beginIndex));
  13525. }
  13526. }
  13527. return formatStr;
  13528. }
  13529. /**
  13530. * @description 时间戳转为多久之前
  13531. * @param {String|Number} timestamp 时间戳
  13532. * @param {String|Boolean} format
  13533. * 格式化规则如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
  13534. * 如果为布尔值false,无论什么时间,都返回多久以前的格式
  13535. * @returns {string} 转化后的内容
  13536. */
  13537. function timeFrom() {
  13538. var timestamp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  13539. var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  13540. if (timestamp == null) timestamp = Number(new Date());
  13541. timestamp = parseInt(timestamp);
  13542. // 判断用户输入的时间戳是秒还是毫秒,一般前端js获取的时间戳是毫秒(13位),后端传过来的为秒(10位)
  13543. if (timestamp.toString().length == 10) timestamp *= 1000;
  13544. var timer = new Date().getTime() - timestamp;
  13545. timer = parseInt(timer / 1000);
  13546. // 如果小于5分钟,则返回"刚刚",其他以此类推
  13547. var tips = '';
  13548. switch (true) {
  13549. case timer < 300:
  13550. tips = '刚刚';
  13551. break;
  13552. case timer >= 300 && timer < 3600:
  13553. tips = "".concat(parseInt(timer / 60), "\u5206\u949F\u524D");
  13554. break;
  13555. case timer >= 3600 && timer < 86400:
  13556. tips = "".concat(parseInt(timer / 3600), "\u5C0F\u65F6\u524D");
  13557. break;
  13558. case timer >= 86400 && timer < 2592000:
  13559. tips = "".concat(parseInt(timer / 86400), "\u5929\u524D");
  13560. break;
  13561. default:
  13562. // 如果format为false,则无论什么时间戳,都显示xx之前
  13563. if (format === false) {
  13564. if (timer >= 2592000 && timer < 365 * 86400) {
  13565. tips = "".concat(parseInt(timer / (86400 * 30)), "\u4E2A\u6708\u524D");
  13566. } else {
  13567. tips = "".concat(parseInt(timer / (86400 * 365)), "\u5E74\u524D");
  13568. }
  13569. } else {
  13570. tips = timeFormat(timestamp, format);
  13571. }
  13572. }
  13573. return tips;
  13574. }
  13575. /**
  13576. * @description 去除空格
  13577. * @param String str 需要去除空格的字符串
  13578. * @param String pos both(左右)|left|right|all 默认both
  13579. */
  13580. function trim(str) {
  13581. var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
  13582. str = String(str);
  13583. if (pos == 'both') {
  13584. return str.replace(/^\s+|\s+$/g, '');
  13585. }
  13586. if (pos == 'left') {
  13587. return str.replace(/^\s*/, '');
  13588. }
  13589. if (pos == 'right') {
  13590. return str.replace(/(\s*$)/g, '');
  13591. }
  13592. if (pos == 'all') {
  13593. return str.replace(/\s+/g, '');
  13594. }
  13595. return str;
  13596. }
  13597. /**
  13598. * @description 对象转url参数
  13599. * @param {object} data,对象
  13600. * @param {Boolean} isPrefix,是否自动加上"?"
  13601. * @param {string} arrayFormat 规则 indices|brackets|repeat|comma
  13602. */
  13603. function queryParams() {
  13604. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13605. var isPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13606. var arrayFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'brackets';
  13607. var prefix = isPrefix ? '?' : '';
  13608. var _result = [];
  13609. if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';
  13610. var _loop = function _loop(key) {
  13611. var value = data[key];
  13612. // 去掉为空的参数
  13613. if (['', undefined, null].indexOf(value) >= 0) {
  13614. return "continue";
  13615. }
  13616. // 如果值为数组,另行处理
  13617. if (value.constructor === Array) {
  13618. // e.g. {ids: [1, 2, 3]}
  13619. switch (arrayFormat) {
  13620. case 'indices':
  13621. // 结果: ids[0]=1&ids[1]=2&ids[2]=3
  13622. for (var i = 0; i < value.length; i++) {
  13623. _result.push("".concat(key, "[").concat(i, "]=").concat(value[i]));
  13624. }
  13625. break;
  13626. case 'brackets':
  13627. // 结果: ids[]=1&ids[]=2&ids[]=3
  13628. value.forEach(function (_value) {
  13629. _result.push("".concat(key, "[]=").concat(_value));
  13630. });
  13631. break;
  13632. case 'repeat':
  13633. // 结果: ids=1&ids=2&ids=3
  13634. value.forEach(function (_value) {
  13635. _result.push("".concat(key, "=").concat(_value));
  13636. });
  13637. break;
  13638. case 'comma':
  13639. // 结果: ids=1,2,3
  13640. var commaStr = '';
  13641. value.forEach(function (_value) {
  13642. commaStr += (commaStr ? ',' : '') + _value;
  13643. });
  13644. _result.push("".concat(key, "=").concat(commaStr));
  13645. break;
  13646. default:
  13647. value.forEach(function (_value) {
  13648. _result.push("".concat(key, "[]=").concat(_value));
  13649. });
  13650. }
  13651. } else {
  13652. _result.push("".concat(key, "=").concat(value));
  13653. }
  13654. };
  13655. for (var key in data) {
  13656. var _ret = _loop(key);
  13657. if (_ret === "continue") continue;
  13658. }
  13659. return _result.length ? prefix + _result.join('&') : '';
  13660. }
  13661. /**
  13662. * 显示消息提示框
  13663. * @param {String} title 提示的内容,长度与 icon 取值有关。
  13664. * @param {Number} duration 提示的延迟时间,单位毫秒,默认:2000
  13665. */
  13666. function toast(title) {
  13667. var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
  13668. uni.showToast({
  13669. title: String(title),
  13670. icon: 'none',
  13671. duration: duration
  13672. });
  13673. }
  13674. /**
  13675. * @description 根据主题type值,获取对应的图标
  13676. * @param {String} type 主题名称,primary|info|error|warning|success
  13677. * @param {boolean} fill 是否使用fill填充实体的图标
  13678. */
  13679. function type2icon() {
  13680. var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';
  13681. var fill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13682. // 如果非预置值,默认为success
  13683. if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success';
  13684. var iconName = '';
  13685. // 目前(2019-12-12),info和primary使用同一个图标
  13686. switch (type) {
  13687. case 'primary':
  13688. iconName = 'info-circle';
  13689. break;
  13690. case 'info':
  13691. iconName = 'info-circle';
  13692. break;
  13693. case 'error':
  13694. iconName = 'close-circle';
  13695. break;
  13696. case 'warning':
  13697. iconName = 'error-circle';
  13698. break;
  13699. case 'success':
  13700. iconName = 'checkmark-circle';
  13701. break;
  13702. default:
  13703. iconName = 'checkmark-circle';
  13704. }
  13705. // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的
  13706. if (fill) iconName += '-fill';
  13707. return iconName;
  13708. }
  13709. /**
  13710. * @description 数字格式化
  13711. * @param {number|string} number 要格式化的数字
  13712. * @param {number} decimals 保留几位小数
  13713. * @param {string} decimalPoint 小数点符号
  13714. * @param {string} thousandsSeparator 千分位符号
  13715. * @returns {string} 格式化后的数字
  13716. */
  13717. function priceFormat(number) {
  13718. var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  13719. var decimalPoint = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.';
  13720. var thousandsSeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ',';
  13721. number = "".concat(number).replace(/[^0-9+-Ee.]/g, '');
  13722. var n = !isFinite(+number) ? 0 : +number;
  13723. var prec = !isFinite(+decimals) ? 0 : Math.abs(decimals);
  13724. var sep = typeof thousandsSeparator === 'undefined' ? ',' : thousandsSeparator;
  13725. var dec = typeof decimalPoint === 'undefined' ? '.' : decimalPoint;
  13726. var s = '';
  13727. s = (prec ? (0, _digit.round)(n, prec) + '' : "".concat(Math.round(n))).split('.');
  13728. var re = /(-?\d+)(\d{3})/;
  13729. while (re.test(s[0])) {
  13730. s[0] = s[0].replace(re, "$1".concat(sep, "$2"));
  13731. }
  13732. if ((s[1] || '').length < prec) {
  13733. s[1] = s[1] || '';
  13734. s[1] += new Array(prec - s[1].length + 1).join('0');
  13735. }
  13736. return s.join(dec);
  13737. }
  13738. /**
  13739. * @description 获取duration值
  13740. * 如果带有ms或者s直接返回,如果大于一定值,认为是ms单位,小于一定值,认为是s单位
  13741. * 比如以30位阈值,那么300大于30,可以理解为用户想要的是300ms,而不是想花300s去执行一个动画
  13742. * @param {String|number} value 比如: "1s"|"100ms"|1|100
  13743. * @param {boolean} unit 提示: 如果是false 默认返回number
  13744. * @return {string|number}
  13745. */
  13746. function getDuration(value) {
  13747. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13748. var valueNum = parseInt(value);
  13749. if (unit) {
  13750. if (/s$/.test(value)) return value;
  13751. return value > 30 ? "".concat(value, "ms") : "".concat(value, "s");
  13752. }
  13753. if (/ms$/.test(value)) return valueNum;
  13754. if (/s$/.test(value)) return valueNum > 30 ? valueNum : valueNum * 1000;
  13755. return valueNum;
  13756. }
  13757. /**
  13758. * @description 日期的月或日补零操作
  13759. * @param {String} value 需要补零的值
  13760. */
  13761. function padZero(value) {
  13762. return "00".concat(value).slice(-2);
  13763. }
  13764. /**
  13765. * @description 在u-form的子组件内容发生变化,或者失去焦点时,尝试通知u-form执行校验方法
  13766. * @param {*} instance
  13767. * @param {*} event
  13768. */
  13769. function formValidate(instance, event) {
  13770. var formItem = uni.$u.$parent.call(instance, 'u-form-item');
  13771. var form = uni.$u.$parent.call(instance, 'u-form');
  13772. // 如果发生变化的input或者textarea等,其父组件中有u-form-item或者u-form等,就执行form的validate方法
  13773. // 同时将form-item的pros传递给form,让其进行精确对象验证
  13774. if (formItem && form) {
  13775. form.validateField(formItem.prop, function () {}, event);
  13776. }
  13777. }
  13778. /**
  13779. * @description 获取某个对象下的属性,用于通过类似'a.b.c'的形式去获取一个对象的的属性的形式
  13780. * @param {object} obj 对象
  13781. * @param {string} key 需要获取的属性字段
  13782. * @returns {*}
  13783. */
  13784. function getProperty(obj, key) {
  13785. if (!obj) {
  13786. return;
  13787. }
  13788. if (typeof key !== 'string' || key === '') {
  13789. return '';
  13790. }
  13791. if (key.indexOf('.') !== -1) {
  13792. var keys = key.split('.');
  13793. var firstObj = obj[keys[0]] || {};
  13794. for (var i = 1; i < keys.length; i++) {
  13795. if (firstObj) {
  13796. firstObj = firstObj[keys[i]];
  13797. }
  13798. }
  13799. return firstObj;
  13800. }
  13801. return obj[key];
  13802. }
  13803. /**
  13804. * @description 设置对象的属性值,如果'a.b.c'的形式进行设置
  13805. * @param {object} obj 对象
  13806. * @param {string} key 需要设置的属性
  13807. * @param {string} value 设置的值
  13808. */
  13809. function setProperty(obj, key, value) {
  13810. if (!obj) {
  13811. return;
  13812. }
  13813. // 递归赋值
  13814. var inFn = function inFn(_obj, keys, v) {
  13815. // 最后一个属性key
  13816. if (keys.length === 1) {
  13817. _obj[keys[0]] = v;
  13818. return;
  13819. }
  13820. // 0~length-1个key
  13821. while (keys.length > 1) {
  13822. var k = keys[0];
  13823. if (!_obj[k] || (0, _typeof2.default)(_obj[k]) !== 'object') {
  13824. _obj[k] = {};
  13825. }
  13826. var _key = keys.shift();
  13827. // 自调用判断是否存在属性,不存在则自动创建对象
  13828. inFn(_obj[k], keys, v);
  13829. }
  13830. };
  13831. if (typeof key !== 'string' || key === '') {} else if (key.indexOf('.') !== -1) {
  13832. // 支持多层级赋值操作
  13833. var keys = key.split('.');
  13834. inFn(obj, keys, value);
  13835. } else {
  13836. obj[key] = value;
  13837. }
  13838. }
  13839. /**
  13840. * @description 获取当前页面路径
  13841. */
  13842. function page() {
  13843. var _pages$route, _pages;
  13844. var pages = getCurrentPages();
  13845. // 某些特殊情况下(比如页面进行redirectTo时的一些时机),pages可能为空数组
  13846. return "/".concat((_pages$route = (_pages = pages[pages.length - 1]) === null || _pages === void 0 ? void 0 : _pages.route) !== null && _pages$route !== void 0 ? _pages$route : '');
  13847. }
  13848. /**
  13849. * @description 获取当前路由栈实例数组
  13850. */
  13851. function pages() {
  13852. var pages = getCurrentPages();
  13853. return pages;
  13854. }
  13855. /**
  13856. * 获取页面历史栈指定层实例
  13857. * @param back {number} [0] - 0或者负数,表示获取历史栈的哪一层,0表示获取当前页面实例,-1 表示获取上一个页面实例。默认0。
  13858. */
  13859. function getHistoryPage() {
  13860. var back = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  13861. var pages = getCurrentPages();
  13862. var len = pages.length;
  13863. return pages[len - 1 + back];
  13864. }
  13865. /**
  13866. * @description 修改uView内置属性值
  13867. * @param {object} props 修改内置props属性
  13868. * @param {object} config 修改内置config属性
  13869. * @param {object} color 修改内置color属性
  13870. * @param {object} zIndex 修改内置zIndex属性
  13871. */
  13872. function setConfig(_ref5) {
  13873. var _ref5$props = _ref5.props,
  13874. props = _ref5$props === void 0 ? {} : _ref5$props,
  13875. _ref5$config = _ref5.config,
  13876. config = _ref5$config === void 0 ? {} : _ref5$config,
  13877. _ref5$color = _ref5.color,
  13878. color = _ref5$color === void 0 ? {} : _ref5$color,
  13879. _ref5$zIndex = _ref5.zIndex,
  13880. zIndex = _ref5$zIndex === void 0 ? {} : _ref5$zIndex;
  13881. var deepMerge = uni.$u.deepMerge;
  13882. uni.$u.config = deepMerge(uni.$u.config, config);
  13883. uni.$u.props = deepMerge(uni.$u.props, props);
  13884. uni.$u.color = deepMerge(uni.$u.color, color);
  13885. uni.$u.zIndex = deepMerge(uni.$u.zIndex, zIndex);
  13886. }
  13887. var _default = {
  13888. range: range,
  13889. getPx: getPx,
  13890. sleep: sleep,
  13891. os: os,
  13892. sys: sys,
  13893. random: random,
  13894. guid: guid,
  13895. $parent: $parent,
  13896. addStyle: addStyle,
  13897. addUnit: addUnit,
  13898. deepClone: deepClone,
  13899. deepMerge: deepMerge,
  13900. error: error,
  13901. randomArray: randomArray,
  13902. timeFormat: timeFormat,
  13903. timeFrom: timeFrom,
  13904. trim: trim,
  13905. queryParams: queryParams,
  13906. toast: toast,
  13907. type2icon: type2icon,
  13908. priceFormat: priceFormat,
  13909. getDuration: getDuration,
  13910. padZero: padZero,
  13911. formValidate: formValidate,
  13912. getProperty: getProperty,
  13913. setProperty: setProperty,
  13914. page: page,
  13915. pages: pages,
  13916. getHistoryPage: getHistoryPage,
  13917. setConfig: setConfig
  13918. };
  13919. exports.default = _default;
  13920. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  13921. /***/ }),
  13922. /* 64 */
  13923. /*!******************************************************************************************************!*\
  13924. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/function/digit.js ***!
  13925. \******************************************************************************************************/
  13926. /*! no static exports found */
  13927. /***/ (function(module, exports, __webpack_require__) {
  13928. "use strict";
  13929. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13930. Object.defineProperty(exports, "__esModule", {
  13931. value: true
  13932. });
  13933. exports.default = void 0;
  13934. exports.divide = divide;
  13935. exports.enableBoundaryChecking = enableBoundaryChecking;
  13936. exports.minus = minus;
  13937. exports.plus = plus;
  13938. exports.round = round;
  13939. exports.times = times;
  13940. var _toArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toArray */ 65));
  13941. var _boundaryCheckingState = true; // 是否进行越界检查的全局开关
  13942. /**
  13943. * 把错误的数据转正
  13944. * @private
  13945. * @example strip(0.09999999999999998)=0.1
  13946. */
  13947. function strip(num) {
  13948. var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 15;
  13949. return +parseFloat(Number(num).toPrecision(precision));
  13950. }
  13951. /**
  13952. * Return digits length of a number
  13953. * @private
  13954. * @param {*number} num Input number
  13955. */
  13956. function digitLength(num) {
  13957. // Get digit length of e
  13958. var eSplit = num.toString().split(/[eE]/);
  13959. var len = (eSplit[0].split('.')[1] || '').length - +(eSplit[1] || 0);
  13960. return len > 0 ? len : 0;
  13961. }
  13962. /**
  13963. * 把小数转成整数,如果是小数则放大成整数
  13964. * @private
  13965. * @param {*number} num 输入数
  13966. */
  13967. function float2Fixed(num) {
  13968. if (num.toString().indexOf('e') === -1) {
  13969. return Number(num.toString().replace('.', ''));
  13970. }
  13971. var dLen = digitLength(num);
  13972. return dLen > 0 ? strip(Number(num) * Math.pow(10, dLen)) : Number(num);
  13973. }
  13974. /**
  13975. * 检测数字是否越界,如果越界给出提示
  13976. * @private
  13977. * @param {*number} num 输入数
  13978. */
  13979. function checkBoundary(num) {
  13980. if (_boundaryCheckingState) {
  13981. if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) {
  13982. console.warn("".concat(num, " \u8D85\u51FA\u4E86\u7CBE\u5EA6\u9650\u5236\uFF0C\u7ED3\u679C\u53EF\u80FD\u4E0D\u6B63\u786E"));
  13983. }
  13984. }
  13985. }
  13986. /**
  13987. * 把递归操作扁平迭代化
  13988. * @param {number[]} arr 要操作的数字数组
  13989. * @param {function} operation 迭代操作
  13990. * @private
  13991. */
  13992. function iteratorOperation(arr, operation) {
  13993. var _arr = (0, _toArray2.default)(arr),
  13994. num1 = _arr[0],
  13995. num2 = _arr[1],
  13996. others = _arr.slice(2);
  13997. var res = operation(num1, num2);
  13998. others.forEach(function (num) {
  13999. res = operation(res, num);
  14000. });
  14001. return res;
  14002. }
  14003. /**
  14004. * 高精度乘法
  14005. * @export
  14006. */
  14007. function times() {
  14008. for (var _len = arguments.length, nums = new Array(_len), _key = 0; _key < _len; _key++) {
  14009. nums[_key] = arguments[_key];
  14010. }
  14011. if (nums.length > 2) {
  14012. return iteratorOperation(nums, times);
  14013. }
  14014. var num1 = nums[0],
  14015. num2 = nums[1];
  14016. var num1Changed = float2Fixed(num1);
  14017. var num2Changed = float2Fixed(num2);
  14018. var baseNum = digitLength(num1) + digitLength(num2);
  14019. var leftValue = num1Changed * num2Changed;
  14020. checkBoundary(leftValue);
  14021. return leftValue / Math.pow(10, baseNum);
  14022. }
  14023. /**
  14024. * 高精度加法
  14025. * @export
  14026. */
  14027. function plus() {
  14028. for (var _len2 = arguments.length, nums = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  14029. nums[_key2] = arguments[_key2];
  14030. }
  14031. if (nums.length > 2) {
  14032. return iteratorOperation(nums, plus);
  14033. }
  14034. var num1 = nums[0],
  14035. num2 = nums[1];
  14036. // 取最大的小数位
  14037. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  14038. // 把小数都转为整数然后再计算
  14039. return (times(num1, baseNum) + times(num2, baseNum)) / baseNum;
  14040. }
  14041. /**
  14042. * 高精度减法
  14043. * @export
  14044. */
  14045. function minus() {
  14046. for (var _len3 = arguments.length, nums = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  14047. nums[_key3] = arguments[_key3];
  14048. }
  14049. if (nums.length > 2) {
  14050. return iteratorOperation(nums, minus);
  14051. }
  14052. var num1 = nums[0],
  14053. num2 = nums[1];
  14054. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  14055. return (times(num1, baseNum) - times(num2, baseNum)) / baseNum;
  14056. }
  14057. /**
  14058. * 高精度除法
  14059. * @export
  14060. */
  14061. function divide() {
  14062. for (var _len4 = arguments.length, nums = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  14063. nums[_key4] = arguments[_key4];
  14064. }
  14065. if (nums.length > 2) {
  14066. return iteratorOperation(nums, divide);
  14067. }
  14068. var num1 = nums[0],
  14069. num2 = nums[1];
  14070. var num1Changed = float2Fixed(num1);
  14071. var num2Changed = float2Fixed(num2);
  14072. checkBoundary(num1Changed);
  14073. checkBoundary(num2Changed);
  14074. // 重要,这里必须用strip进行修正
  14075. return times(num1Changed / num2Changed, strip(Math.pow(10, digitLength(num2) - digitLength(num1))));
  14076. }
  14077. /**
  14078. * 四舍五入
  14079. * @export
  14080. */
  14081. function round(num, ratio) {
  14082. var base = Math.pow(10, ratio);
  14083. var result = divide(Math.round(Math.abs(times(num, base))), base);
  14084. if (num < 0 && result !== 0) {
  14085. result = times(result, -1);
  14086. }
  14087. // 位数不足则补0
  14088. return result;
  14089. }
  14090. /**
  14091. * 是否进行边界检查,默认开启
  14092. * @param flag 标记开关,true 为开启,false 为关闭,默认为 true
  14093. * @export
  14094. */
  14095. function enableBoundaryChecking() {
  14096. var flag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  14097. _boundaryCheckingState = flag;
  14098. }
  14099. var _default = {
  14100. times: times,
  14101. plus: plus,
  14102. minus: minus,
  14103. divide: divide,
  14104. round: round,
  14105. enableBoundaryChecking: enableBoundaryChecking
  14106. };
  14107. exports.default = _default;
  14108. /***/ }),
  14109. /* 65 */
  14110. /*!********************************************************!*\
  14111. !*** ./node_modules/@babel/runtime/helpers/toArray.js ***!
  14112. \********************************************************/
  14113. /*! no static exports found */
  14114. /***/ (function(module, exports, __webpack_require__) {
  14115. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  14116. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  14117. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  14118. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  14119. function _toArray(arr) {
  14120. return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
  14121. }
  14122. module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  14123. /***/ }),
  14124. /* 66 */
  14125. /*!*****************************************************************************************************!*\
  14126. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/config.js ***!
  14127. \*****************************************************************************************************/
  14128. /*! no static exports found */
  14129. /***/ (function(module, exports, __webpack_require__) {
  14130. "use strict";
  14131. Object.defineProperty(exports, "__esModule", {
  14132. value: true
  14133. });
  14134. exports.default = void 0;
  14135. // 此版本发布于2024-03-17
  14136. var version = '2.0.37';
  14137. // 开发环境才提示,生产环境不会提示
  14138. if (true) {
  14139. console.log("\n %c uView V".concat(version, " %c https://uviewui.com/ \n\n"), 'color: #ffffff; background: #3c9cff; padding:5px 0; border-radius: 5px;');
  14140. }
  14141. var _default = {
  14142. v: version,
  14143. version: version,
  14144. // 主题名称
  14145. type: ['primary', 'success', 'info', 'error', 'warning'],
  14146. // 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持
  14147. color: {
  14148. 'u-primary': '#2979ff',
  14149. 'u-warning': '#ff9900',
  14150. 'u-success': '#19be6b',
  14151. 'u-error': '#fa3534',
  14152. 'u-info': '#909399',
  14153. 'u-main-color': '#303133',
  14154. 'u-content-color': '#606266',
  14155. 'u-tips-color': '#909399',
  14156. 'u-light-color': '#c0c4cc'
  14157. },
  14158. // 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx
  14159. unit: 'px'
  14160. };
  14161. exports.default = _default;
  14162. /***/ }),
  14163. /* 67 */
  14164. /*!****************************************************************************************************!*\
  14165. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props.js ***!
  14166. \****************************************************************************************************/
  14167. /*! no static exports found */
  14168. /***/ (function(module, exports, __webpack_require__) {
  14169. "use strict";
  14170. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  14171. Object.defineProperty(exports, "__esModule", {
  14172. value: true
  14173. });
  14174. exports.default = void 0;
  14175. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  14176. var _config = _interopRequireDefault(__webpack_require__(/*! ./config */ 66));
  14177. var _actionSheet = _interopRequireDefault(__webpack_require__(/*! ./props/actionSheet.js */ 68));
  14178. var _album = _interopRequireDefault(__webpack_require__(/*! ./props/album.js */ 69));
  14179. var _alert = _interopRequireDefault(__webpack_require__(/*! ./props/alert.js */ 70));
  14180. var _avatar = _interopRequireDefault(__webpack_require__(/*! ./props/avatar */ 71));
  14181. var _avatarGroup = _interopRequireDefault(__webpack_require__(/*! ./props/avatarGroup */ 72));
  14182. var _backtop = _interopRequireDefault(__webpack_require__(/*! ./props/backtop */ 73));
  14183. var _badge = _interopRequireDefault(__webpack_require__(/*! ./props/badge */ 74));
  14184. var _button = _interopRequireDefault(__webpack_require__(/*! ./props/button */ 75));
  14185. var _calendar = _interopRequireDefault(__webpack_require__(/*! ./props/calendar */ 76));
  14186. var _carKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/carKeyboard */ 77));
  14187. var _cell = _interopRequireDefault(__webpack_require__(/*! ./props/cell */ 78));
  14188. var _cellGroup = _interopRequireDefault(__webpack_require__(/*! ./props/cellGroup */ 79));
  14189. var _checkbox = _interopRequireDefault(__webpack_require__(/*! ./props/checkbox */ 80));
  14190. var _checkboxGroup = _interopRequireDefault(__webpack_require__(/*! ./props/checkboxGroup */ 81));
  14191. var _circleProgress = _interopRequireDefault(__webpack_require__(/*! ./props/circleProgress */ 82));
  14192. var _code = _interopRequireDefault(__webpack_require__(/*! ./props/code */ 83));
  14193. var _codeInput = _interopRequireDefault(__webpack_require__(/*! ./props/codeInput */ 84));
  14194. var _col = _interopRequireDefault(__webpack_require__(/*! ./props/col */ 85));
  14195. var _collapse = _interopRequireDefault(__webpack_require__(/*! ./props/collapse */ 86));
  14196. var _collapseItem = _interopRequireDefault(__webpack_require__(/*! ./props/collapseItem */ 87));
  14197. var _columnNotice = _interopRequireDefault(__webpack_require__(/*! ./props/columnNotice */ 88));
  14198. var _countDown = _interopRequireDefault(__webpack_require__(/*! ./props/countDown */ 89));
  14199. var _countTo = _interopRequireDefault(__webpack_require__(/*! ./props/countTo */ 90));
  14200. var _datetimePicker = _interopRequireDefault(__webpack_require__(/*! ./props/datetimePicker */ 91));
  14201. var _divider = _interopRequireDefault(__webpack_require__(/*! ./props/divider */ 92));
  14202. var _empty = _interopRequireDefault(__webpack_require__(/*! ./props/empty */ 93));
  14203. var _form = _interopRequireDefault(__webpack_require__(/*! ./props/form */ 94));
  14204. var _formItem = _interopRequireDefault(__webpack_require__(/*! ./props/formItem */ 95));
  14205. var _gap = _interopRequireDefault(__webpack_require__(/*! ./props/gap */ 96));
  14206. var _grid = _interopRequireDefault(__webpack_require__(/*! ./props/grid */ 97));
  14207. var _gridItem = _interopRequireDefault(__webpack_require__(/*! ./props/gridItem */ 98));
  14208. var _icon = _interopRequireDefault(__webpack_require__(/*! ./props/icon */ 99));
  14209. var _image = _interopRequireDefault(__webpack_require__(/*! ./props/image */ 100));
  14210. var _indexAnchor = _interopRequireDefault(__webpack_require__(/*! ./props/indexAnchor */ 101));
  14211. var _indexList = _interopRequireDefault(__webpack_require__(/*! ./props/indexList */ 102));
  14212. var _input = _interopRequireDefault(__webpack_require__(/*! ./props/input */ 103));
  14213. var _keyboard = _interopRequireDefault(__webpack_require__(/*! ./props/keyboard */ 104));
  14214. var _line = _interopRequireDefault(__webpack_require__(/*! ./props/line */ 105));
  14215. var _lineProgress = _interopRequireDefault(__webpack_require__(/*! ./props/lineProgress */ 106));
  14216. var _link = _interopRequireDefault(__webpack_require__(/*! ./props/link */ 107));
  14217. var _list = _interopRequireDefault(__webpack_require__(/*! ./props/list */ 108));
  14218. var _listItem = _interopRequireDefault(__webpack_require__(/*! ./props/listItem */ 109));
  14219. var _loadingIcon = _interopRequireDefault(__webpack_require__(/*! ./props/loadingIcon */ 110));
  14220. var _loadingPage = _interopRequireDefault(__webpack_require__(/*! ./props/loadingPage */ 111));
  14221. var _loadmore = _interopRequireDefault(__webpack_require__(/*! ./props/loadmore */ 112));
  14222. var _modal = _interopRequireDefault(__webpack_require__(/*! ./props/modal */ 113));
  14223. var _navbar = _interopRequireDefault(__webpack_require__(/*! ./props/navbar */ 114));
  14224. var _noNetwork = _interopRequireDefault(__webpack_require__(/*! ./props/noNetwork */ 116));
  14225. var _noticeBar = _interopRequireDefault(__webpack_require__(/*! ./props/noticeBar */ 117));
  14226. var _notify = _interopRequireDefault(__webpack_require__(/*! ./props/notify */ 118));
  14227. var _numberBox = _interopRequireDefault(__webpack_require__(/*! ./props/numberBox */ 119));
  14228. var _numberKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/numberKeyboard */ 120));
  14229. var _overlay = _interopRequireDefault(__webpack_require__(/*! ./props/overlay */ 121));
  14230. var _parse = _interopRequireDefault(__webpack_require__(/*! ./props/parse */ 122));
  14231. var _picker = _interopRequireDefault(__webpack_require__(/*! ./props/picker */ 123));
  14232. var _popup = _interopRequireDefault(__webpack_require__(/*! ./props/popup */ 124));
  14233. var _radio = _interopRequireDefault(__webpack_require__(/*! ./props/radio */ 125));
  14234. var _radioGroup = _interopRequireDefault(__webpack_require__(/*! ./props/radioGroup */ 126));
  14235. var _rate = _interopRequireDefault(__webpack_require__(/*! ./props/rate */ 127));
  14236. var _readMore = _interopRequireDefault(__webpack_require__(/*! ./props/readMore */ 128));
  14237. var _row = _interopRequireDefault(__webpack_require__(/*! ./props/row */ 129));
  14238. var _rowNotice = _interopRequireDefault(__webpack_require__(/*! ./props/rowNotice */ 130));
  14239. var _scrollList = _interopRequireDefault(__webpack_require__(/*! ./props/scrollList */ 131));
  14240. var _search = _interopRequireDefault(__webpack_require__(/*! ./props/search */ 132));
  14241. var _section = _interopRequireDefault(__webpack_require__(/*! ./props/section */ 133));
  14242. var _skeleton = _interopRequireDefault(__webpack_require__(/*! ./props/skeleton */ 134));
  14243. var _slider = _interopRequireDefault(__webpack_require__(/*! ./props/slider */ 135));
  14244. var _statusBar = _interopRequireDefault(__webpack_require__(/*! ./props/statusBar */ 136));
  14245. var _steps = _interopRequireDefault(__webpack_require__(/*! ./props/steps */ 137));
  14246. var _stepsItem = _interopRequireDefault(__webpack_require__(/*! ./props/stepsItem */ 138));
  14247. var _sticky = _interopRequireDefault(__webpack_require__(/*! ./props/sticky */ 139));
  14248. var _subsection = _interopRequireDefault(__webpack_require__(/*! ./props/subsection */ 140));
  14249. var _swipeAction = _interopRequireDefault(__webpack_require__(/*! ./props/swipeAction */ 141));
  14250. var _swipeActionItem = _interopRequireDefault(__webpack_require__(/*! ./props/swipeActionItem */ 142));
  14251. var _swiper = _interopRequireDefault(__webpack_require__(/*! ./props/swiper */ 143));
  14252. var _swipterIndicator = _interopRequireDefault(__webpack_require__(/*! ./props/swipterIndicator */ 144));
  14253. var _switch2 = _interopRequireDefault(__webpack_require__(/*! ./props/switch */ 145));
  14254. var _tabbar = _interopRequireDefault(__webpack_require__(/*! ./props/tabbar */ 146));
  14255. var _tabbarItem = _interopRequireDefault(__webpack_require__(/*! ./props/tabbarItem */ 147));
  14256. var _tabs = _interopRequireDefault(__webpack_require__(/*! ./props/tabs */ 148));
  14257. var _tag = _interopRequireDefault(__webpack_require__(/*! ./props/tag */ 149));
  14258. var _text = _interopRequireDefault(__webpack_require__(/*! ./props/text */ 150));
  14259. var _textarea = _interopRequireDefault(__webpack_require__(/*! ./props/textarea */ 151));
  14260. var _toast = _interopRequireDefault(__webpack_require__(/*! ./props/toast */ 152));
  14261. var _toolbar = _interopRequireDefault(__webpack_require__(/*! ./props/toolbar */ 153));
  14262. var _tooltip = _interopRequireDefault(__webpack_require__(/*! ./props/tooltip */ 154));
  14263. var _transition = _interopRequireDefault(__webpack_require__(/*! ./props/transition */ 155));
  14264. var _upload = _interopRequireDefault(__webpack_require__(/*! ./props/upload */ 156));
  14265. 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; }
  14266. 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; }
  14267. var color = _config.default.color;
  14268. 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);
  14269. exports.default = _default;
  14270. /***/ }),
  14271. /* 68 */
  14272. /*!****************************************************************************************************************!*\
  14273. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/actionSheet.js ***!
  14274. \****************************************************************************************************************/
  14275. /*! no static exports found */
  14276. /***/ (function(module, exports, __webpack_require__) {
  14277. "use strict";
  14278. Object.defineProperty(exports, "__esModule", {
  14279. value: true
  14280. });
  14281. exports.default = void 0;
  14282. /*
  14283. * @Author : LQ
  14284. * @Description :
  14285. * @version : 1.0
  14286. * @Date : 2021-08-20 16:44:21
  14287. * @LastAuthor : LQ
  14288. * @lastTime : 2021-08-20 16:44:35
  14289. * @FilePath : /u-view2.0/uview-ui/libs/config/props/actionSheet.js
  14290. */
  14291. var _default = {
  14292. // action-sheet组件
  14293. actionSheet: {
  14294. show: false,
  14295. title: '',
  14296. description: '',
  14297. actions: function actions() {
  14298. return [];
  14299. },
  14300. index: '',
  14301. cancelText: '',
  14302. closeOnClickAction: true,
  14303. safeAreaInsetBottom: true,
  14304. openType: '',
  14305. closeOnClickOverlay: true,
  14306. round: 0
  14307. }
  14308. };
  14309. exports.default = _default;
  14310. /***/ }),
  14311. /* 69 */
  14312. /*!**********************************************************************************************************!*\
  14313. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/album.js ***!
  14314. \**********************************************************************************************************/
  14315. /*! no static exports found */
  14316. /***/ (function(module, exports, __webpack_require__) {
  14317. "use strict";
  14318. Object.defineProperty(exports, "__esModule", {
  14319. value: true
  14320. });
  14321. exports.default = void 0;
  14322. /*
  14323. * @Author : LQ
  14324. * @Description :
  14325. * @version : 1.0
  14326. * @Date : 2021-08-20 16:44:21
  14327. * @LastAuthor : LQ
  14328. * @lastTime : 2021-08-20 16:47:24
  14329. * @FilePath : /u-view2.0/uview-ui/libs/config/props/album.js
  14330. */
  14331. var _default = {
  14332. // album 组件
  14333. album: {
  14334. urls: function urls() {
  14335. return [];
  14336. },
  14337. keyName: '',
  14338. singleSize: 180,
  14339. multipleSize: 70,
  14340. space: 6,
  14341. singleMode: 'scaleToFill',
  14342. multipleMode: 'aspectFill',
  14343. maxCount: 9,
  14344. previewFullImage: true,
  14345. rowCount: 3,
  14346. showMore: true
  14347. }
  14348. };
  14349. exports.default = _default;
  14350. /***/ }),
  14351. /* 70 */
  14352. /*!**********************************************************************************************************!*\
  14353. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/alert.js ***!
  14354. \**********************************************************************************************************/
  14355. /*! no static exports found */
  14356. /***/ (function(module, exports, __webpack_require__) {
  14357. "use strict";
  14358. Object.defineProperty(exports, "__esModule", {
  14359. value: true
  14360. });
  14361. exports.default = void 0;
  14362. /*
  14363. * @Author : LQ
  14364. * @Description :
  14365. * @version : 1.0
  14366. * @Date : 2021-08-20 16:44:21
  14367. * @LastAuthor : LQ
  14368. * @lastTime : 2021-08-20 16:48:53
  14369. * @FilePath : /u-view2.0/uview-ui/libs/config/props/alert.js
  14370. */
  14371. var _default = {
  14372. // alert警告组件
  14373. alert: {
  14374. title: '',
  14375. type: 'warning',
  14376. description: '',
  14377. closable: false,
  14378. showIcon: false,
  14379. effect: 'light',
  14380. center: false,
  14381. fontSize: 14
  14382. }
  14383. };
  14384. exports.default = _default;
  14385. /***/ }),
  14386. /* 71 */
  14387. /*!***********************************************************************************************************!*\
  14388. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/avatar.js ***!
  14389. \***********************************************************************************************************/
  14390. /*! no static exports found */
  14391. /***/ (function(module, exports, __webpack_require__) {
  14392. "use strict";
  14393. Object.defineProperty(exports, "__esModule", {
  14394. value: true
  14395. });
  14396. exports.default = void 0;
  14397. /*
  14398. * @Author : LQ
  14399. * @Description :
  14400. * @version : 1.0
  14401. * @Date : 2021-08-20 16:44:21
  14402. * @LastAuthor : LQ
  14403. * @lastTime : 2021-08-20 16:49:22
  14404. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatar.js
  14405. */
  14406. var _default = {
  14407. // avatar 组件
  14408. avatar: {
  14409. src: '',
  14410. shape: 'circle',
  14411. size: 40,
  14412. mode: 'scaleToFill',
  14413. text: '',
  14414. bgColor: '#c0c4cc',
  14415. color: '#ffffff',
  14416. fontSize: 18,
  14417. icon: '',
  14418. mpAvatar: false,
  14419. randomBgColor: false,
  14420. defaultUrl: '',
  14421. colorIndex: '',
  14422. name: ''
  14423. }
  14424. };
  14425. exports.default = _default;
  14426. /***/ }),
  14427. /* 72 */
  14428. /*!****************************************************************************************************************!*\
  14429. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/avatarGroup.js ***!
  14430. \****************************************************************************************************************/
  14431. /*! no static exports found */
  14432. /***/ (function(module, exports, __webpack_require__) {
  14433. "use strict";
  14434. Object.defineProperty(exports, "__esModule", {
  14435. value: true
  14436. });
  14437. exports.default = void 0;
  14438. /*
  14439. * @Author : LQ
  14440. * @Description :
  14441. * @version : 1.0
  14442. * @Date : 2021-08-20 16:44:21
  14443. * @LastAuthor : LQ
  14444. * @lastTime : 2021-08-20 16:49:55
  14445. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatarGroup.js
  14446. */
  14447. var _default = {
  14448. // avatarGroup 组件
  14449. avatarGroup: {
  14450. urls: function urls() {
  14451. return [];
  14452. },
  14453. maxCount: 5,
  14454. shape: 'circle',
  14455. mode: 'scaleToFill',
  14456. showMore: true,
  14457. size: 40,
  14458. keyName: '',
  14459. gap: 0.5,
  14460. extraValue: 0
  14461. }
  14462. };
  14463. exports.default = _default;
  14464. /***/ }),
  14465. /* 73 */
  14466. /*!************************************************************************************************************!*\
  14467. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/backtop.js ***!
  14468. \************************************************************************************************************/
  14469. /*! no static exports found */
  14470. /***/ (function(module, exports, __webpack_require__) {
  14471. "use strict";
  14472. Object.defineProperty(exports, "__esModule", {
  14473. value: true
  14474. });
  14475. exports.default = void 0;
  14476. /*
  14477. * @Author : LQ
  14478. * @Description :
  14479. * @version : 1.0
  14480. * @Date : 2021-08-20 16:44:21
  14481. * @LastAuthor : LQ
  14482. * @lastTime : 2021-08-20 16:50:18
  14483. * @FilePath : /u-view2.0/uview-ui/libs/config/props/backtop.js
  14484. */
  14485. var _default = {
  14486. // backtop组件
  14487. backtop: {
  14488. mode: 'circle',
  14489. icon: 'arrow-upward',
  14490. text: '',
  14491. duration: 100,
  14492. scrollTop: 0,
  14493. top: 400,
  14494. bottom: 100,
  14495. right: 20,
  14496. zIndex: 9,
  14497. iconStyle: function iconStyle() {
  14498. return {
  14499. color: '#909399',
  14500. fontSize: '19px'
  14501. };
  14502. }
  14503. }
  14504. };
  14505. exports.default = _default;
  14506. /***/ }),
  14507. /* 74 */
  14508. /*!**********************************************************************************************************!*\
  14509. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/badge.js ***!
  14510. \**********************************************************************************************************/
  14511. /*! no static exports found */
  14512. /***/ (function(module, exports, __webpack_require__) {
  14513. "use strict";
  14514. Object.defineProperty(exports, "__esModule", {
  14515. value: true
  14516. });
  14517. exports.default = void 0;
  14518. /*
  14519. * @Author : LQ
  14520. * @Description :
  14521. * @version : 1.0
  14522. * @Date : 2021-08-20 16:44:21
  14523. * @LastAuthor : LQ
  14524. * @lastTime : 2021-08-23 19:51:50
  14525. * @FilePath : /u-view2.0/uview-ui/libs/config/props/badge.js
  14526. */
  14527. var _default = {
  14528. // 徽标数组件
  14529. badge: {
  14530. isDot: false,
  14531. value: '',
  14532. show: true,
  14533. max: 999,
  14534. type: 'error',
  14535. showZero: false,
  14536. bgColor: null,
  14537. color: null,
  14538. shape: 'circle',
  14539. numberType: 'overflow',
  14540. offset: function offset() {
  14541. return [];
  14542. },
  14543. inverted: false,
  14544. absolute: false
  14545. }
  14546. };
  14547. exports.default = _default;
  14548. /***/ }),
  14549. /* 75 */
  14550. /*!***********************************************************************************************************!*\
  14551. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/button.js ***!
  14552. \***********************************************************************************************************/
  14553. /*! no static exports found */
  14554. /***/ (function(module, exports, __webpack_require__) {
  14555. "use strict";
  14556. Object.defineProperty(exports, "__esModule", {
  14557. value: true
  14558. });
  14559. exports.default = void 0;
  14560. /*
  14561. * @Author : LQ
  14562. * @Description :
  14563. * @version : 1.0
  14564. * @Date : 2021-08-20 16:44:21
  14565. * @LastAuthor : LQ
  14566. * @lastTime : 2021-08-20 16:51:27
  14567. * @FilePath : /u-view2.0/uview-ui/libs/config/props/button.js
  14568. */
  14569. var _default = {
  14570. // button组件
  14571. button: {
  14572. hairline: false,
  14573. type: 'info',
  14574. size: 'normal',
  14575. shape: 'square',
  14576. plain: false,
  14577. disabled: false,
  14578. loading: false,
  14579. loadingText: '',
  14580. loadingMode: 'spinner',
  14581. loadingSize: 15,
  14582. openType: '',
  14583. formType: '',
  14584. appParameter: '',
  14585. hoverStopPropagation: true,
  14586. lang: 'en',
  14587. sessionFrom: '',
  14588. sendMessageTitle: '',
  14589. sendMessagePath: '',
  14590. sendMessageImg: '',
  14591. showMessageCard: false,
  14592. dataName: '',
  14593. throttleTime: 0,
  14594. hoverStartTime: 0,
  14595. hoverStayTime: 200,
  14596. text: '',
  14597. icon: '',
  14598. iconColor: '',
  14599. color: ''
  14600. }
  14601. };
  14602. exports.default = _default;
  14603. /***/ }),
  14604. /* 76 */
  14605. /*!*************************************************************************************************************!*\
  14606. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/calendar.js ***!
  14607. \*************************************************************************************************************/
  14608. /*! no static exports found */
  14609. /***/ (function(module, exports, __webpack_require__) {
  14610. "use strict";
  14611. Object.defineProperty(exports, "__esModule", {
  14612. value: true
  14613. });
  14614. exports.default = void 0;
  14615. /*
  14616. * @Author : LQ
  14617. * @Description :
  14618. * @version : 1.0
  14619. * @Date : 2021-08-20 16:44:21
  14620. * @LastAuthor : LQ
  14621. * @lastTime : 2021-08-20 16:52:43
  14622. * @FilePath : /u-view2.0/uview-ui/libs/config/props/calendar.js
  14623. */
  14624. var _default = {
  14625. // calendar 组件
  14626. calendar: {
  14627. title: '日期选择',
  14628. showTitle: true,
  14629. showSubtitle: true,
  14630. mode: 'single',
  14631. startText: '开始',
  14632. endText: '结束',
  14633. customList: function customList() {
  14634. return [];
  14635. },
  14636. color: '#3c9cff',
  14637. minDate: 0,
  14638. maxDate: 0,
  14639. defaultDate: null,
  14640. maxCount: Number.MAX_SAFE_INTEGER,
  14641. // Infinity
  14642. rowHeight: 56,
  14643. formatter: null,
  14644. showLunar: false,
  14645. showMark: true,
  14646. confirmText: '确定',
  14647. confirmDisabledText: '确定',
  14648. show: false,
  14649. closeOnClickOverlay: false,
  14650. readonly: false,
  14651. showConfirm: true,
  14652. maxRange: Number.MAX_SAFE_INTEGER,
  14653. // Infinity
  14654. rangePrompt: '',
  14655. showRangePrompt: true,
  14656. allowSameDay: false,
  14657. round: 0,
  14658. monthNum: 3
  14659. }
  14660. };
  14661. exports.default = _default;
  14662. /***/ }),
  14663. /* 77 */
  14664. /*!****************************************************************************************************************!*\
  14665. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/carKeyboard.js ***!
  14666. \****************************************************************************************************************/
  14667. /*! no static exports found */
  14668. /***/ (function(module, exports, __webpack_require__) {
  14669. "use strict";
  14670. Object.defineProperty(exports, "__esModule", {
  14671. value: true
  14672. });
  14673. exports.default = void 0;
  14674. /*
  14675. * @Author : LQ
  14676. * @Description :
  14677. * @version : 1.0
  14678. * @Date : 2021-08-20 16:44:21
  14679. * @LastAuthor : LQ
  14680. * @lastTime : 2021-08-20 16:53:20
  14681. * @FilePath : /u-view2.0/uview-ui/libs/config/props/carKeyboard.js
  14682. */
  14683. var _default = {
  14684. // 车牌号键盘
  14685. carKeyboard: {
  14686. random: false
  14687. }
  14688. };
  14689. exports.default = _default;
  14690. /***/ }),
  14691. /* 78 */
  14692. /*!*********************************************************************************************************!*\
  14693. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/cell.js ***!
  14694. \*********************************************************************************************************/
  14695. /*! no static exports found */
  14696. /***/ (function(module, exports, __webpack_require__) {
  14697. "use strict";
  14698. Object.defineProperty(exports, "__esModule", {
  14699. value: true
  14700. });
  14701. exports.default = void 0;
  14702. /*
  14703. * @Author : LQ
  14704. * @Description :
  14705. * @version : 1.0
  14706. * @Date : 2021-08-20 16:44:21
  14707. * @LastAuthor : LQ
  14708. * @lastTime : 2021-08-23 20:53:09
  14709. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cell.js
  14710. */
  14711. var _default = {
  14712. // cell组件的props
  14713. cell: {
  14714. customClass: '',
  14715. title: '',
  14716. label: '',
  14717. value: '',
  14718. icon: '',
  14719. disabled: false,
  14720. border: true,
  14721. center: false,
  14722. url: '',
  14723. linkType: 'navigateTo',
  14724. clickable: false,
  14725. isLink: false,
  14726. required: false,
  14727. arrowDirection: '',
  14728. iconStyle: {},
  14729. rightIconStyle: {},
  14730. rightIcon: 'arrow-right',
  14731. titleStyle: {},
  14732. size: '',
  14733. stop: true,
  14734. name: ''
  14735. }
  14736. };
  14737. exports.default = _default;
  14738. /***/ }),
  14739. /* 79 */
  14740. /*!**************************************************************************************************************!*\
  14741. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/cellGroup.js ***!
  14742. \**************************************************************************************************************/
  14743. /*! no static exports found */
  14744. /***/ (function(module, exports, __webpack_require__) {
  14745. "use strict";
  14746. Object.defineProperty(exports, "__esModule", {
  14747. value: true
  14748. });
  14749. exports.default = void 0;
  14750. /*
  14751. * @Author : LQ
  14752. * @Description :
  14753. * @version : 1.0
  14754. * @Date : 2021-08-20 16:44:21
  14755. * @LastAuthor : LQ
  14756. * @lastTime : 2021-08-20 16:54:16
  14757. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cellGroup.js
  14758. */
  14759. var _default = {
  14760. // cell-group组件的props
  14761. cellGroup: {
  14762. title: '',
  14763. border: true,
  14764. customStyle: {}
  14765. }
  14766. };
  14767. exports.default = _default;
  14768. /***/ }),
  14769. /* 80 */
  14770. /*!*************************************************************************************************************!*\
  14771. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/checkbox.js ***!
  14772. \*************************************************************************************************************/
  14773. /*! no static exports found */
  14774. /***/ (function(module, exports, __webpack_require__) {
  14775. "use strict";
  14776. Object.defineProperty(exports, "__esModule", {
  14777. value: true
  14778. });
  14779. exports.default = void 0;
  14780. /*
  14781. * @Author : LQ
  14782. * @Description :
  14783. * @version : 1.0
  14784. * @Date : 2021-08-20 16:44:21
  14785. * @LastAuthor : LQ
  14786. * @lastTime : 2021-08-23 21:06:59
  14787. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkbox.js
  14788. */
  14789. var _default = {
  14790. // checkbox组件
  14791. checkbox: {
  14792. name: '',
  14793. shape: '',
  14794. size: '',
  14795. checkbox: false,
  14796. disabled: '',
  14797. activeColor: '',
  14798. inactiveColor: '',
  14799. iconSize: '',
  14800. iconColor: '',
  14801. label: '',
  14802. labelSize: '',
  14803. labelColor: '',
  14804. labelDisabled: ''
  14805. }
  14806. };
  14807. exports.default = _default;
  14808. /***/ }),
  14809. /* 81 */
  14810. /*!******************************************************************************************************************!*\
  14811. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/checkboxGroup.js ***!
  14812. \******************************************************************************************************************/
  14813. /*! no static exports found */
  14814. /***/ (function(module, exports, __webpack_require__) {
  14815. "use strict";
  14816. Object.defineProperty(exports, "__esModule", {
  14817. value: true
  14818. });
  14819. exports.default = void 0;
  14820. /*
  14821. * @Author : LQ
  14822. * @Description :
  14823. * @version : 1.0
  14824. * @Date : 2021-08-20 16:44:21
  14825. * @LastAuthor : LQ
  14826. * @lastTime : 2021-08-20 16:54:47
  14827. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkboxGroup.js
  14828. */
  14829. var _default = {
  14830. // checkbox-group组件
  14831. checkboxGroup: {
  14832. name: '',
  14833. value: function value() {
  14834. return [];
  14835. },
  14836. shape: 'square',
  14837. disabled: false,
  14838. activeColor: '#2979ff',
  14839. inactiveColor: '#c8c9cc',
  14840. size: 18,
  14841. placement: 'row',
  14842. labelSize: 14,
  14843. labelColor: '#303133',
  14844. labelDisabled: false,
  14845. iconColor: '#ffffff',
  14846. iconSize: 12,
  14847. iconPlacement: 'left',
  14848. borderBottom: false
  14849. }
  14850. };
  14851. exports.default = _default;
  14852. /***/ }),
  14853. /* 82 */
  14854. /*!*******************************************************************************************************************!*\
  14855. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/circleProgress.js ***!
  14856. \*******************************************************************************************************************/
  14857. /*! no static exports found */
  14858. /***/ (function(module, exports, __webpack_require__) {
  14859. "use strict";
  14860. Object.defineProperty(exports, "__esModule", {
  14861. value: true
  14862. });
  14863. exports.default = void 0;
  14864. /*
  14865. * @Author : LQ
  14866. * @Description :
  14867. * @version : 1.0
  14868. * @Date : 2021-08-20 16:44:21
  14869. * @LastAuthor : LQ
  14870. * @lastTime : 2021-08-20 16:55:02
  14871. * @FilePath : /u-view2.0/uview-ui/libs/config/props/circleProgress.js
  14872. */
  14873. var _default = {
  14874. // circleProgress 组件
  14875. circleProgress: {
  14876. percentage: 30
  14877. }
  14878. };
  14879. exports.default = _default;
  14880. /***/ }),
  14881. /* 83 */
  14882. /*!*********************************************************************************************************!*\
  14883. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/code.js ***!
  14884. \*********************************************************************************************************/
  14885. /*! no static exports found */
  14886. /***/ (function(module, exports, __webpack_require__) {
  14887. "use strict";
  14888. Object.defineProperty(exports, "__esModule", {
  14889. value: true
  14890. });
  14891. exports.default = void 0;
  14892. /*
  14893. * @Author : LQ
  14894. * @Description :
  14895. * @version : 1.0
  14896. * @Date : 2021-08-20 16:44:21
  14897. * @LastAuthor : LQ
  14898. * @lastTime : 2021-08-20 16:55:27
  14899. * @FilePath : /u-view2.0/uview-ui/libs/config/props/code.js
  14900. */
  14901. var _default = {
  14902. // code 组件
  14903. code: {
  14904. seconds: 60,
  14905. startText: '获取验证码',
  14906. changeText: 'X秒重新获取',
  14907. endText: '重新获取',
  14908. keepRunning: false,
  14909. uniqueKey: ''
  14910. }
  14911. };
  14912. exports.default = _default;
  14913. /***/ }),
  14914. /* 84 */
  14915. /*!**************************************************************************************************************!*\
  14916. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/codeInput.js ***!
  14917. \**************************************************************************************************************/
  14918. /*! no static exports found */
  14919. /***/ (function(module, exports, __webpack_require__) {
  14920. "use strict";
  14921. Object.defineProperty(exports, "__esModule", {
  14922. value: true
  14923. });
  14924. exports.default = void 0;
  14925. /*
  14926. * @Author : LQ
  14927. * @Description :
  14928. * @version : 1.0
  14929. * @Date : 2021-08-20 16:44:21
  14930. * @LastAuthor : LQ
  14931. * @lastTime : 2021-08-20 16:55:58
  14932. * @FilePath : /u-view2.0/uview-ui/libs/config/props/codeInput.js
  14933. */
  14934. var _default = {
  14935. // codeInput 组件
  14936. codeInput: {
  14937. adjustPosition: true,
  14938. maxlength: 6,
  14939. dot: false,
  14940. mode: 'box',
  14941. hairline: false,
  14942. space: 10,
  14943. value: '',
  14944. focus: false,
  14945. bold: false,
  14946. color: '#606266',
  14947. fontSize: 18,
  14948. size: 35,
  14949. disabledKeyboard: false,
  14950. borderColor: '#c9cacc',
  14951. disabledDot: true
  14952. }
  14953. };
  14954. exports.default = _default;
  14955. /***/ }),
  14956. /* 85 */
  14957. /*!********************************************************************************************************!*\
  14958. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/col.js ***!
  14959. \********************************************************************************************************/
  14960. /*! no static exports found */
  14961. /***/ (function(module, exports, __webpack_require__) {
  14962. "use strict";
  14963. Object.defineProperty(exports, "__esModule", {
  14964. value: true
  14965. });
  14966. exports.default = void 0;
  14967. /*
  14968. * @Author : LQ
  14969. * @Description :
  14970. * @version : 1.0
  14971. * @Date : 2021-08-20 16:44:21
  14972. * @LastAuthor : LQ
  14973. * @lastTime : 2021-08-20 16:56:12
  14974. * @FilePath : /u-view2.0/uview-ui/libs/config/props/col.js
  14975. */
  14976. var _default = {
  14977. // col 组件
  14978. col: {
  14979. span: 12,
  14980. offset: 0,
  14981. justify: 'start',
  14982. align: 'stretch',
  14983. textAlign: 'left'
  14984. }
  14985. };
  14986. exports.default = _default;
  14987. /***/ }),
  14988. /* 86 */
  14989. /*!*************************************************************************************************************!*\
  14990. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/collapse.js ***!
  14991. \*************************************************************************************************************/
  14992. /*! no static exports found */
  14993. /***/ (function(module, exports, __webpack_require__) {
  14994. "use strict";
  14995. Object.defineProperty(exports, "__esModule", {
  14996. value: true
  14997. });
  14998. exports.default = void 0;
  14999. /*
  15000. * @Author : LQ
  15001. * @Description :
  15002. * @version : 1.0
  15003. * @Date : 2021-08-20 16:44:21
  15004. * @LastAuthor : LQ
  15005. * @lastTime : 2021-08-20 16:56:30
  15006. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapse.js
  15007. */
  15008. var _default = {
  15009. // collapse 组件
  15010. collapse: {
  15011. value: null,
  15012. accordion: false,
  15013. border: true
  15014. }
  15015. };
  15016. exports.default = _default;
  15017. /***/ }),
  15018. /* 87 */
  15019. /*!*****************************************************************************************************************!*\
  15020. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/collapseItem.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:42
  15036. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapseItem.js
  15037. */
  15038. var _default = {
  15039. // collapseItem 组件
  15040. collapseItem: {
  15041. title: '',
  15042. value: '',
  15043. label: '',
  15044. disabled: false,
  15045. isLink: true,
  15046. clickable: true,
  15047. border: true,
  15048. align: 'left',
  15049. name: '',
  15050. icon: '',
  15051. duration: 300
  15052. }
  15053. };
  15054. exports.default = _default;
  15055. /***/ }),
  15056. /* 88 */
  15057. /*!*****************************************************************************************************************!*\
  15058. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/columnNotice.js ***!
  15059. \*****************************************************************************************************************/
  15060. /*! no static exports found */
  15061. /***/ (function(module, exports, __webpack_require__) {
  15062. "use strict";
  15063. Object.defineProperty(exports, "__esModule", {
  15064. value: true
  15065. });
  15066. exports.default = void 0;
  15067. /*
  15068. * @Author : LQ
  15069. * @Description :
  15070. * @version : 1.0
  15071. * @Date : 2021-08-20 16:44:21
  15072. * @LastAuthor : LQ
  15073. * @lastTime : 2021-08-20 16:57:16
  15074. * @FilePath : /u-view2.0/uview-ui/libs/config/props/columnNotice.js
  15075. */
  15076. var _default = {
  15077. // columnNotice 组件
  15078. columnNotice: {
  15079. text: '',
  15080. icon: 'volume',
  15081. mode: '',
  15082. color: '#f9ae3d',
  15083. bgColor: '#fdf6ec',
  15084. fontSize: 14,
  15085. speed: 80,
  15086. step: false,
  15087. duration: 1500,
  15088. disableTouch: true
  15089. }
  15090. };
  15091. exports.default = _default;
  15092. /***/ }),
  15093. /* 89 */
  15094. /*!**************************************************************************************************************!*\
  15095. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/countDown.js ***!
  15096. \**************************************************************************************************************/
  15097. /*! no static exports found */
  15098. /***/ (function(module, exports, __webpack_require__) {
  15099. "use strict";
  15100. Object.defineProperty(exports, "__esModule", {
  15101. value: true
  15102. });
  15103. exports.default = void 0;
  15104. /*
  15105. * @Author : LQ
  15106. * @Description :
  15107. * @version : 1.0
  15108. * @Date : 2021-08-20 16:44:21
  15109. * @LastAuthor : LQ
  15110. * @lastTime : 2021-08-20 17:11:29
  15111. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countDown.js
  15112. */
  15113. var _default = {
  15114. // u-count-down 计时器组件
  15115. countDown: {
  15116. time: 0,
  15117. format: 'HH:mm:ss',
  15118. autoStart: true,
  15119. millisecond: false
  15120. }
  15121. };
  15122. exports.default = _default;
  15123. /***/ }),
  15124. /* 90 */
  15125. /*!************************************************************************************************************!*\
  15126. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/countTo.js ***!
  15127. \************************************************************************************************************/
  15128. /*! no static exports found */
  15129. /***/ (function(module, exports, __webpack_require__) {
  15130. "use strict";
  15131. Object.defineProperty(exports, "__esModule", {
  15132. value: true
  15133. });
  15134. exports.default = void 0;
  15135. /*
  15136. * @Author : LQ
  15137. * @Description :
  15138. * @version : 1.0
  15139. * @Date : 2021-08-20 16:44:21
  15140. * @LastAuthor : LQ
  15141. * @lastTime : 2021-08-20 16:57:32
  15142. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countTo.js
  15143. */
  15144. var _default = {
  15145. // countTo 组件
  15146. countTo: {
  15147. startVal: 0,
  15148. endVal: 0,
  15149. duration: 2000,
  15150. autoplay: true,
  15151. decimals: 0,
  15152. useEasing: true,
  15153. decimal: '.',
  15154. color: '#606266',
  15155. fontSize: 22,
  15156. bold: false,
  15157. separator: ''
  15158. }
  15159. };
  15160. exports.default = _default;
  15161. /***/ }),
  15162. /* 91 */
  15163. /*!*******************************************************************************************************************!*\
  15164. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/datetimePicker.js ***!
  15165. \*******************************************************************************************************************/
  15166. /*! no static exports found */
  15167. /***/ (function(module, exports, __webpack_require__) {
  15168. "use strict";
  15169. Object.defineProperty(exports, "__esModule", {
  15170. value: true
  15171. });
  15172. exports.default = void 0;
  15173. /*
  15174. * @Author : LQ
  15175. * @Description :
  15176. * @version : 1.0
  15177. * @Date : 2021-08-20 16:44:21
  15178. * @LastAuthor : LQ
  15179. * @lastTime : 2021-08-20 16:57:48
  15180. * @FilePath : /u-view2.0/uview-ui/libs/config/props/datetimePicker.js
  15181. */
  15182. var _default = {
  15183. // datetimePicker 组件
  15184. datetimePicker: {
  15185. show: false,
  15186. showToolbar: true,
  15187. value: '',
  15188. title: '',
  15189. mode: 'datetime',
  15190. maxDate: new Date(new Date().getFullYear() + 10, 0, 1).getTime(),
  15191. minDate: new Date(new Date().getFullYear() - 10, 0, 1).getTime(),
  15192. minHour: 0,
  15193. maxHour: 23,
  15194. minMinute: 0,
  15195. maxMinute: 59,
  15196. filter: null,
  15197. formatter: null,
  15198. loading: false,
  15199. itemHeight: 44,
  15200. cancelText: '取消',
  15201. confirmText: '确认',
  15202. cancelColor: '#909193',
  15203. confirmColor: '#3c9cff',
  15204. visibleItemCount: 5,
  15205. closeOnClickOverlay: false,
  15206. defaultIndex: function defaultIndex() {
  15207. return [];
  15208. }
  15209. }
  15210. };
  15211. exports.default = _default;
  15212. /***/ }),
  15213. /* 92 */
  15214. /*!************************************************************************************************************!*\
  15215. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/divider.js ***!
  15216. \************************************************************************************************************/
  15217. /*! no static exports found */
  15218. /***/ (function(module, exports, __webpack_require__) {
  15219. "use strict";
  15220. Object.defineProperty(exports, "__esModule", {
  15221. value: true
  15222. });
  15223. exports.default = void 0;
  15224. /*
  15225. * @Author : LQ
  15226. * @Description :
  15227. * @version : 1.0
  15228. * @Date : 2021-08-20 16:44:21
  15229. * @LastAuthor : LQ
  15230. * @lastTime : 2021-08-20 16:58:03
  15231. * @FilePath : /u-view2.0/uview-ui/libs/config/props/divider.js
  15232. */
  15233. var _default = {
  15234. // divider组件
  15235. divider: {
  15236. dashed: false,
  15237. hairline: true,
  15238. dot: false,
  15239. textPosition: 'center',
  15240. text: '',
  15241. textSize: 14,
  15242. textColor: '#909399',
  15243. lineColor: '#dcdfe6'
  15244. }
  15245. };
  15246. exports.default = _default;
  15247. /***/ }),
  15248. /* 93 */
  15249. /*!**********************************************************************************************************!*\
  15250. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/empty.js ***!
  15251. \**********************************************************************************************************/
  15252. /*! no static exports found */
  15253. /***/ (function(module, exports, __webpack_require__) {
  15254. "use strict";
  15255. Object.defineProperty(exports, "__esModule", {
  15256. value: true
  15257. });
  15258. exports.default = void 0;
  15259. /*
  15260. * @Author : LQ
  15261. * @Description :
  15262. * @version : 1.0
  15263. * @Date : 2021-08-20 16:44:21
  15264. * @LastAuthor : LQ
  15265. * @lastTime : 2021-08-20 17:03:27
  15266. * @FilePath : /u-view2.0/uview-ui/libs/config/props/empty.js
  15267. */
  15268. var _default = {
  15269. // empty组件
  15270. empty: {
  15271. icon: '',
  15272. text: '',
  15273. textColor: '#c0c4cc',
  15274. textSize: 14,
  15275. iconColor: '#c0c4cc',
  15276. iconSize: 90,
  15277. mode: 'data',
  15278. width: 160,
  15279. height: 160,
  15280. show: true,
  15281. marginTop: 0
  15282. }
  15283. };
  15284. exports.default = _default;
  15285. /***/ }),
  15286. /* 94 */
  15287. /*!*********************************************************************************************************!*\
  15288. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/form.js ***!
  15289. \*********************************************************************************************************/
  15290. /*! no static exports found */
  15291. /***/ (function(module, exports, __webpack_require__) {
  15292. "use strict";
  15293. Object.defineProperty(exports, "__esModule", {
  15294. value: true
  15295. });
  15296. exports.default = void 0;
  15297. /*
  15298. * @Author : LQ
  15299. * @Description :
  15300. * @version : 1.0
  15301. * @Date : 2021-08-20 16:44:21
  15302. * @LastAuthor : LQ
  15303. * @lastTime : 2021-08-20 17:03:49
  15304. * @FilePath : /u-view2.0/uview-ui/libs/config/props/form.js
  15305. */
  15306. var _default = {
  15307. // form 组件
  15308. form: {
  15309. model: function model() {
  15310. return {};
  15311. },
  15312. rules: function rules() {
  15313. return {};
  15314. },
  15315. errorType: 'message',
  15316. borderBottom: true,
  15317. labelPosition: 'left',
  15318. labelWidth: 45,
  15319. labelAlign: 'left',
  15320. labelStyle: function labelStyle() {
  15321. return {};
  15322. }
  15323. }
  15324. };
  15325. exports.default = _default;
  15326. /***/ }),
  15327. /* 95 */
  15328. /*!*************************************************************************************************************!*\
  15329. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/formItem.js ***!
  15330. \*************************************************************************************************************/
  15331. /*! no static exports found */
  15332. /***/ (function(module, exports, __webpack_require__) {
  15333. "use strict";
  15334. Object.defineProperty(exports, "__esModule", {
  15335. value: true
  15336. });
  15337. exports.default = void 0;
  15338. /*
  15339. * @Author : LQ
  15340. * @Description :
  15341. * @version : 1.0
  15342. * @Date : 2021-08-20 16:44:21
  15343. * @LastAuthor : LQ
  15344. * @lastTime : 2021-08-20 17:04:32
  15345. * @FilePath : /u-view2.0/uview-ui/libs/config/props/formItem.js
  15346. */
  15347. var _default = {
  15348. // formItem 组件
  15349. formItem: {
  15350. label: '',
  15351. prop: '',
  15352. borderBottom: '',
  15353. labelPosition: '',
  15354. labelWidth: '',
  15355. rightIcon: '',
  15356. leftIcon: '',
  15357. required: false,
  15358. leftIconStyle: ''
  15359. }
  15360. };
  15361. exports.default = _default;
  15362. /***/ }),
  15363. /* 96 */
  15364. /*!********************************************************************************************************!*\
  15365. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/gap.js ***!
  15366. \********************************************************************************************************/
  15367. /*! no static exports found */
  15368. /***/ (function(module, exports, __webpack_require__) {
  15369. "use strict";
  15370. Object.defineProperty(exports, "__esModule", {
  15371. value: true
  15372. });
  15373. exports.default = void 0;
  15374. /*
  15375. * @Author : LQ
  15376. * @Description :
  15377. * @version : 1.0
  15378. * @Date : 2021-08-20 16:44:21
  15379. * @LastAuthor : LQ
  15380. * @lastTime : 2021-08-20 17:05:25
  15381. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gap.js
  15382. */
  15383. var _default = {
  15384. // gap组件
  15385. gap: {
  15386. bgColor: 'transparent',
  15387. height: 20,
  15388. marginTop: 0,
  15389. marginBottom: 0,
  15390. customStyle: {}
  15391. }
  15392. };
  15393. exports.default = _default;
  15394. /***/ }),
  15395. /* 97 */
  15396. /*!*********************************************************************************************************!*\
  15397. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/grid.js ***!
  15398. \*********************************************************************************************************/
  15399. /*! no static exports found */
  15400. /***/ (function(module, exports, __webpack_require__) {
  15401. "use strict";
  15402. Object.defineProperty(exports, "__esModule", {
  15403. value: true
  15404. });
  15405. exports.default = void 0;
  15406. /*
  15407. * @Author : LQ
  15408. * @Description :
  15409. * @version : 1.0
  15410. * @Date : 2021-08-20 16:44:21
  15411. * @LastAuthor : LQ
  15412. * @lastTime : 2021-08-20 17:05:57
  15413. * @FilePath : /u-view2.0/uview-ui/libs/config/props/grid.js
  15414. */
  15415. var _default = {
  15416. // grid组件
  15417. grid: {
  15418. col: 3,
  15419. border: false,
  15420. align: 'left'
  15421. }
  15422. };
  15423. exports.default = _default;
  15424. /***/ }),
  15425. /* 98 */
  15426. /*!*************************************************************************************************************!*\
  15427. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/gridItem.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:06:13
  15443. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gridItem.js
  15444. */
  15445. var _default = {
  15446. // grid-item组件
  15447. gridItem: {
  15448. name: null,
  15449. bgColor: 'transparent'
  15450. }
  15451. };
  15452. exports.default = _default;
  15453. /***/ }),
  15454. /* 99 */
  15455. /*!*********************************************************************************************************!*\
  15456. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/icon.js ***!
  15457. \*********************************************************************************************************/
  15458. /*! no static exports found */
  15459. /***/ (function(module, exports, __webpack_require__) {
  15460. "use strict";
  15461. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15462. Object.defineProperty(exports, "__esModule", {
  15463. value: true
  15464. });
  15465. exports.default = void 0;
  15466. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 66));
  15467. /*
  15468. * @Author : LQ
  15469. * @Description :
  15470. * @version : 1.0
  15471. * @Date : 2021-08-20 16:44:21
  15472. * @LastAuthor : LQ
  15473. * @lastTime : 2021-08-20 18:00:14
  15474. * @FilePath : /u-view2.0/uview-ui/libs/config/props/icon.js
  15475. */
  15476. var color = _config.default.color;
  15477. var _default = {
  15478. // icon组件
  15479. icon: {
  15480. name: '',
  15481. color: color['u-content-color'],
  15482. size: '16px',
  15483. bold: false,
  15484. index: '',
  15485. hoverClass: '',
  15486. customPrefix: 'uicon',
  15487. label: '',
  15488. labelPos: 'right',
  15489. labelSize: '15px',
  15490. labelColor: color['u-content-color'],
  15491. space: '3px',
  15492. imgMode: '',
  15493. width: '',
  15494. height: '',
  15495. top: 0,
  15496. stop: false
  15497. }
  15498. };
  15499. exports.default = _default;
  15500. /***/ }),
  15501. /* 100 */
  15502. /*!**********************************************************************************************************!*\
  15503. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/image.js ***!
  15504. \**********************************************************************************************************/
  15505. /*! no static exports found */
  15506. /***/ (function(module, exports, __webpack_require__) {
  15507. "use strict";
  15508. Object.defineProperty(exports, "__esModule", {
  15509. value: true
  15510. });
  15511. exports.default = void 0;
  15512. /*
  15513. * @Author : LQ
  15514. * @Description :
  15515. * @version : 1.0
  15516. * @Date : 2021-08-20 16:44:21
  15517. * @LastAuthor : LQ
  15518. * @lastTime : 2021-08-20 17:01:51
  15519. * @FilePath : /u-view2.0/uview-ui/libs/config/props/image.js
  15520. */
  15521. var _default = {
  15522. // image组件
  15523. image: {
  15524. src: '',
  15525. mode: 'aspectFill',
  15526. width: '300',
  15527. height: '225',
  15528. shape: 'square',
  15529. radius: 0,
  15530. lazyLoad: true,
  15531. showMenuByLongpress: true,
  15532. loadingIcon: 'photo',
  15533. errorIcon: 'error-circle',
  15534. showLoading: true,
  15535. showError: true,
  15536. fade: true,
  15537. webp: false,
  15538. duration: 500,
  15539. bgColor: '#f3f4f6'
  15540. }
  15541. };
  15542. exports.default = _default;
  15543. /***/ }),
  15544. /* 101 */
  15545. /*!****************************************************************************************************************!*\
  15546. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/indexAnchor.js ***!
  15547. \****************************************************************************************************************/
  15548. /*! no static exports found */
  15549. /***/ (function(module, exports, __webpack_require__) {
  15550. "use strict";
  15551. Object.defineProperty(exports, "__esModule", {
  15552. value: true
  15553. });
  15554. exports.default = void 0;
  15555. /*
  15556. * @Author : LQ
  15557. * @Description :
  15558. * @version : 1.0
  15559. * @Date : 2021-08-20 16:44:21
  15560. * @LastAuthor : LQ
  15561. * @lastTime : 2021-08-20 17:13:15
  15562. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexAnchor.js
  15563. */
  15564. var _default = {
  15565. // indexAnchor 组件
  15566. indexAnchor: {
  15567. text: '',
  15568. color: '#606266',
  15569. size: 14,
  15570. bgColor: '#dedede',
  15571. height: 32
  15572. }
  15573. };
  15574. exports.default = _default;
  15575. /***/ }),
  15576. /* 102 */
  15577. /*!**************************************************************************************************************!*\
  15578. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/indexList.js ***!
  15579. \**************************************************************************************************************/
  15580. /*! no static exports found */
  15581. /***/ (function(module, exports, __webpack_require__) {
  15582. "use strict";
  15583. Object.defineProperty(exports, "__esModule", {
  15584. value: true
  15585. });
  15586. exports.default = void 0;
  15587. /*
  15588. * @Author : LQ
  15589. * @Description :
  15590. * @version : 1.0
  15591. * @Date : 2021-08-20 16:44:21
  15592. * @LastAuthor : LQ
  15593. * @lastTime : 2021-08-20 17:13:35
  15594. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexList.js
  15595. */
  15596. var _default = {
  15597. // indexList 组件
  15598. indexList: {
  15599. inactiveColor: '#606266',
  15600. activeColor: '#5677fc',
  15601. indexList: function indexList() {
  15602. return [];
  15603. },
  15604. sticky: true,
  15605. customNavHeight: 0
  15606. }
  15607. };
  15608. exports.default = _default;
  15609. /***/ }),
  15610. /* 103 */
  15611. /*!**********************************************************************************************************!*\
  15612. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/input.js ***!
  15613. \**********************************************************************************************************/
  15614. /*! no static exports found */
  15615. /***/ (function(module, exports, __webpack_require__) {
  15616. "use strict";
  15617. Object.defineProperty(exports, "__esModule", {
  15618. value: true
  15619. });
  15620. exports.default = void 0;
  15621. /*
  15622. * @Author : LQ
  15623. * @Description :
  15624. * @version : 1.0
  15625. * @Date : 2021-08-20 16:44:21
  15626. * @LastAuthor : LQ
  15627. * @lastTime : 2021-08-20 17:13:55
  15628. * @FilePath : /u-view2.0/uview-ui/libs/config/props/input.js
  15629. */
  15630. var _default = {
  15631. // index 组件
  15632. input: {
  15633. value: '',
  15634. type: 'text',
  15635. fixed: false,
  15636. disabled: false,
  15637. disabledColor: '#f5f7fa',
  15638. clearable: false,
  15639. password: false,
  15640. maxlength: -1,
  15641. placeholder: null,
  15642. placeholderClass: 'input-placeholder',
  15643. placeholderStyle: 'color: #c0c4cc',
  15644. showWordLimit: false,
  15645. confirmType: 'done',
  15646. confirmHold: false,
  15647. holdKeyboard: false,
  15648. focus: false,
  15649. autoBlur: false,
  15650. disableDefaultPadding: false,
  15651. cursor: -1,
  15652. cursorSpacing: 30,
  15653. selectionStart: -1,
  15654. selectionEnd: -1,
  15655. adjustPosition: true,
  15656. inputAlign: 'left',
  15657. fontSize: '15px',
  15658. color: '#303133',
  15659. prefixIcon: '',
  15660. prefixIconStyle: '',
  15661. suffixIcon: '',
  15662. suffixIconStyle: '',
  15663. border: 'surround',
  15664. readonly: false,
  15665. shape: 'square',
  15666. formatter: null
  15667. }
  15668. };
  15669. exports.default = _default;
  15670. /***/ }),
  15671. /* 104 */
  15672. /*!*************************************************************************************************************!*\
  15673. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/keyboard.js ***!
  15674. \*************************************************************************************************************/
  15675. /*! no static exports found */
  15676. /***/ (function(module, exports, __webpack_require__) {
  15677. "use strict";
  15678. Object.defineProperty(exports, "__esModule", {
  15679. value: true
  15680. });
  15681. exports.default = void 0;
  15682. /*
  15683. * @Author : LQ
  15684. * @Description :
  15685. * @version : 1.0
  15686. * @Date : 2021-08-20 16:44:21
  15687. * @LastAuthor : LQ
  15688. * @lastTime : 2021-08-20 17:07:49
  15689. * @FilePath : /u-view2.0/uview-ui/libs/config/props/keyboard.js
  15690. */
  15691. var _default = {
  15692. // 键盘组件
  15693. keyboard: {
  15694. mode: 'number',
  15695. dotDisabled: false,
  15696. tooltip: true,
  15697. showTips: true,
  15698. tips: '',
  15699. showCancel: true,
  15700. showConfirm: true,
  15701. random: false,
  15702. safeAreaInsetBottom: true,
  15703. closeOnClickOverlay: true,
  15704. show: false,
  15705. overlay: true,
  15706. zIndex: 10075,
  15707. cancelText: '取消',
  15708. confirmText: '确定',
  15709. autoChange: false
  15710. }
  15711. };
  15712. exports.default = _default;
  15713. /***/ }),
  15714. /* 105 */
  15715. /*!*********************************************************************************************************!*\
  15716. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/line.js ***!
  15717. \*********************************************************************************************************/
  15718. /*! no static exports found */
  15719. /***/ (function(module, exports, __webpack_require__) {
  15720. "use strict";
  15721. Object.defineProperty(exports, "__esModule", {
  15722. value: true
  15723. });
  15724. exports.default = void 0;
  15725. /*
  15726. * @Author : LQ
  15727. * @Description :
  15728. * @version : 1.0
  15729. * @Date : 2021-08-20 16:44:21
  15730. * @LastAuthor : LQ
  15731. * @lastTime : 2021-08-20 17:04:49
  15732. * @FilePath : /u-view2.0/uview-ui/libs/config/props/line.js
  15733. */
  15734. var _default = {
  15735. // line组件
  15736. line: {
  15737. color: '#d6d7d9',
  15738. length: '100%',
  15739. direction: 'row',
  15740. hairline: true,
  15741. margin: 0,
  15742. dashed: false
  15743. }
  15744. };
  15745. exports.default = _default;
  15746. /***/ }),
  15747. /* 106 */
  15748. /*!*****************************************************************************************************************!*\
  15749. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/lineProgress.js ***!
  15750. \*****************************************************************************************************************/
  15751. /*! no static exports found */
  15752. /***/ (function(module, exports, __webpack_require__) {
  15753. "use strict";
  15754. Object.defineProperty(exports, "__esModule", {
  15755. value: true
  15756. });
  15757. exports.default = void 0;
  15758. /*
  15759. * @Author : LQ
  15760. * @Description :
  15761. * @version : 1.0
  15762. * @Date : 2021-08-20 16:44:21
  15763. * @LastAuthor : LQ
  15764. * @lastTime : 2021-08-20 17:14:11
  15765. * @FilePath : /u-view2.0/uview-ui/libs/config/props/lineProgress.js
  15766. */
  15767. var _default = {
  15768. // lineProgress 组件
  15769. lineProgress: {
  15770. activeColor: '#19be6b',
  15771. inactiveColor: '#ececec',
  15772. percentage: 0,
  15773. showText: true,
  15774. height: 12
  15775. }
  15776. };
  15777. exports.default = _default;
  15778. /***/ }),
  15779. /* 107 */
  15780. /*!*********************************************************************************************************!*\
  15781. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/link.js ***!
  15782. \*********************************************************************************************************/
  15783. /*! no static exports found */
  15784. /***/ (function(module, exports, __webpack_require__) {
  15785. "use strict";
  15786. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15787. Object.defineProperty(exports, "__esModule", {
  15788. value: true
  15789. });
  15790. exports.default = void 0;
  15791. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 66));
  15792. /*
  15793. * @Author : LQ
  15794. * @Description :
  15795. * @version : 1.0
  15796. * @Date : 2021-08-20 16:44:21
  15797. * @LastAuthor : LQ
  15798. * @lastTime : 2021-08-20 17:45:36
  15799. * @FilePath : /u-view2.0/uview-ui/libs/config/props/link.js
  15800. */
  15801. var color = _config.default.color;
  15802. var _default = {
  15803. // link超链接组件props参数
  15804. link: {
  15805. color: color['u-primary'],
  15806. fontSize: 15,
  15807. underLine: false,
  15808. href: '',
  15809. mpTips: '链接已复制,请在浏览器打开',
  15810. lineColor: '',
  15811. text: ''
  15812. }
  15813. };
  15814. exports.default = _default;
  15815. /***/ }),
  15816. /* 108 */
  15817. /*!*********************************************************************************************************!*\
  15818. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/list.js ***!
  15819. \*********************************************************************************************************/
  15820. /*! no static exports found */
  15821. /***/ (function(module, exports, __webpack_require__) {
  15822. "use strict";
  15823. Object.defineProperty(exports, "__esModule", {
  15824. value: true
  15825. });
  15826. exports.default = void 0;
  15827. /*
  15828. * @Author : LQ
  15829. * @Description :
  15830. * @version : 1.0
  15831. * @Date : 2021-08-20 16:44:21
  15832. * @LastAuthor : LQ
  15833. * @lastTime : 2021-08-20 17:14:53
  15834. * @FilePath : /u-view2.0/uview-ui/libs/config/props/list.js
  15835. */
  15836. var _default = {
  15837. // list 组件
  15838. list: {
  15839. showScrollbar: false,
  15840. lowerThreshold: 50,
  15841. upperThreshold: 0,
  15842. scrollTop: 0,
  15843. offsetAccuracy: 10,
  15844. enableFlex: false,
  15845. pagingEnabled: false,
  15846. scrollable: true,
  15847. scrollIntoView: '',
  15848. scrollWithAnimation: false,
  15849. enableBackToTop: false,
  15850. height: 0,
  15851. width: 0,
  15852. preLoadScreen: 1
  15853. }
  15854. };
  15855. exports.default = _default;
  15856. /***/ }),
  15857. /* 109 */
  15858. /*!*************************************************************************************************************!*\
  15859. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/listItem.js ***!
  15860. \*************************************************************************************************************/
  15861. /*! no static exports found */
  15862. /***/ (function(module, exports, __webpack_require__) {
  15863. "use strict";
  15864. Object.defineProperty(exports, "__esModule", {
  15865. value: true
  15866. });
  15867. exports.default = void 0;
  15868. /*
  15869. * @Author : LQ
  15870. * @Description :
  15871. * @version : 1.0
  15872. * @Date : 2021-08-20 16:44:21
  15873. * @LastAuthor : LQ
  15874. * @lastTime : 2021-08-20 17:15:40
  15875. * @FilePath : /u-view2.0/uview-ui/libs/config/props/listItem.js
  15876. */
  15877. var _default = {
  15878. // listItem 组件
  15879. listItem: {
  15880. anchor: ''
  15881. }
  15882. };
  15883. exports.default = _default;
  15884. /***/ }),
  15885. /* 110 */
  15886. /*!****************************************************************************************************************!*\
  15887. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/loadingIcon.js ***!
  15888. \****************************************************************************************************************/
  15889. /*! no static exports found */
  15890. /***/ (function(module, exports, __webpack_require__) {
  15891. "use strict";
  15892. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15893. Object.defineProperty(exports, "__esModule", {
  15894. value: true
  15895. });
  15896. exports.default = void 0;
  15897. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 66));
  15898. /*
  15899. * @Author : LQ
  15900. * @Description :
  15901. * @version : 1.0
  15902. * @Date : 2021-08-20 16:44:21
  15903. * @LastAuthor : LQ
  15904. * @lastTime : 2021-08-20 17:45:47
  15905. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingIcon.js
  15906. */
  15907. var color = _config.default.color;
  15908. var _default = {
  15909. // loading-icon加载中图标组件
  15910. loadingIcon: {
  15911. show: true,
  15912. color: color['u-tips-color'],
  15913. textColor: color['u-tips-color'],
  15914. vertical: false,
  15915. mode: 'spinner',
  15916. size: 24,
  15917. textSize: 15,
  15918. text: '',
  15919. timingFunction: 'ease-in-out',
  15920. duration: 1200,
  15921. inactiveColor: ''
  15922. }
  15923. };
  15924. exports.default = _default;
  15925. /***/ }),
  15926. /* 111 */
  15927. /*!****************************************************************************************************************!*\
  15928. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/loadingPage.js ***!
  15929. \****************************************************************************************************************/
  15930. /*! no static exports found */
  15931. /***/ (function(module, exports, __webpack_require__) {
  15932. "use strict";
  15933. Object.defineProperty(exports, "__esModule", {
  15934. value: true
  15935. });
  15936. exports.default = void 0;
  15937. /*
  15938. * @Author : LQ
  15939. * @Description :
  15940. * @version : 1.0
  15941. * @Date : 2021-08-20 16:44:21
  15942. * @LastAuthor : LQ
  15943. * @lastTime : 2021-08-20 17:00:23
  15944. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingPage.js
  15945. */
  15946. var _default = {
  15947. // loading-page组件
  15948. loadingPage: {
  15949. loadingText: '正在加载',
  15950. image: '',
  15951. loadingMode: 'circle',
  15952. loading: false,
  15953. bgColor: '#ffffff',
  15954. color: '#C8C8C8',
  15955. fontSize: 19,
  15956. iconSize: 28,
  15957. loadingColor: '#C8C8C8'
  15958. }
  15959. };
  15960. exports.default = _default;
  15961. /***/ }),
  15962. /* 112 */
  15963. /*!*************************************************************************************************************!*\
  15964. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/loadmore.js ***!
  15965. \*************************************************************************************************************/
  15966. /*! no static exports found */
  15967. /***/ (function(module, exports, __webpack_require__) {
  15968. "use strict";
  15969. Object.defineProperty(exports, "__esModule", {
  15970. value: true
  15971. });
  15972. exports.default = void 0;
  15973. /*
  15974. * @Author : LQ
  15975. * @Description :
  15976. * @version : 1.0
  15977. * @Date : 2021-08-20 16:44:21
  15978. * @LastAuthor : LQ
  15979. * @lastTime : 2021-08-20 17:15:26
  15980. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadmore.js
  15981. */
  15982. var _default = {
  15983. // loadmore 组件
  15984. loadmore: {
  15985. status: 'loadmore',
  15986. bgColor: 'transparent',
  15987. icon: true,
  15988. fontSize: 14,
  15989. iconSize: 17,
  15990. color: '#606266',
  15991. loadingIcon: 'spinner',
  15992. loadmoreText: '加载更多',
  15993. loadingText: '正在加载...',
  15994. nomoreText: '没有更多了',
  15995. isDot: false,
  15996. iconColor: '#b7b7b7',
  15997. marginTop: 10,
  15998. marginBottom: 10,
  15999. height: 'auto',
  16000. line: false,
  16001. lineColor: '#E6E8EB',
  16002. dashed: false
  16003. }
  16004. };
  16005. exports.default = _default;
  16006. /***/ }),
  16007. /* 113 */
  16008. /*!**********************************************************************************************************!*\
  16009. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/modal.js ***!
  16010. \**********************************************************************************************************/
  16011. /*! no static exports found */
  16012. /***/ (function(module, exports, __webpack_require__) {
  16013. "use strict";
  16014. Object.defineProperty(exports, "__esModule", {
  16015. value: true
  16016. });
  16017. exports.default = void 0;
  16018. /*
  16019. * @Author : LQ
  16020. * @Description :
  16021. * @version : 1.0
  16022. * @Date : 2021-08-20 16:44:21
  16023. * @LastAuthor : LQ
  16024. * @lastTime : 2021-08-20 17:15:59
  16025. * @FilePath : /u-view2.0/uview-ui/libs/config/props/modal.js
  16026. */
  16027. var _default = {
  16028. // modal 组件
  16029. modal: {
  16030. show: false,
  16031. title: '',
  16032. content: '',
  16033. confirmText: '确认',
  16034. cancelText: '取消',
  16035. showConfirmButton: true,
  16036. showCancelButton: false,
  16037. confirmColor: '#2979ff',
  16038. cancelColor: '#606266',
  16039. buttonReverse: false,
  16040. zoom: true,
  16041. asyncClose: false,
  16042. closeOnClickOverlay: false,
  16043. negativeTop: 0,
  16044. width: '650rpx',
  16045. confirmButtonShape: '',
  16046. duration: 400
  16047. }
  16048. };
  16049. exports.default = _default;
  16050. /***/ }),
  16051. /* 114 */
  16052. /*!***********************************************************************************************************!*\
  16053. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/navbar.js ***!
  16054. \***********************************************************************************************************/
  16055. /*! no static exports found */
  16056. /***/ (function(module, exports, __webpack_require__) {
  16057. "use strict";
  16058. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  16059. Object.defineProperty(exports, "__esModule", {
  16060. value: true
  16061. });
  16062. exports.default = void 0;
  16063. var _color = _interopRequireDefault(__webpack_require__(/*! ../color */ 115));
  16064. /*
  16065. * @Author : LQ
  16066. * @Description :
  16067. * @version : 1.0
  16068. * @Date : 2021-08-20 16:44:21
  16069. * @LastAuthor : LQ
  16070. * @lastTime : 2021-08-20 17:16:18
  16071. * @FilePath : /u-view2.0/uview-ui/libs/config/props/navbar.js
  16072. */
  16073. var _default = {
  16074. // navbar 组件
  16075. navbar: {
  16076. safeAreaInsetTop: true,
  16077. placeholder: false,
  16078. fixed: true,
  16079. border: false,
  16080. leftIcon: 'arrow-left',
  16081. leftText: '',
  16082. rightText: '',
  16083. rightIcon: '',
  16084. title: '',
  16085. bgColor: '#ffffff',
  16086. titleWidth: '400rpx',
  16087. height: '44px',
  16088. leftIconSize: 20,
  16089. leftIconColor: _color.default.mainColor,
  16090. autoBack: false,
  16091. titleStyle: ''
  16092. }
  16093. };
  16094. exports.default = _default;
  16095. /***/ }),
  16096. /* 115 */
  16097. /*!****************************************************************************************************!*\
  16098. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/color.js ***!
  16099. \****************************************************************************************************/
  16100. /*! no static exports found */
  16101. /***/ (function(module, exports, __webpack_require__) {
  16102. "use strict";
  16103. Object.defineProperty(exports, "__esModule", {
  16104. value: true
  16105. });
  16106. exports.default = void 0;
  16107. // 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供
  16108. // 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)
  16109. var color = {
  16110. primary: '#3c9cff',
  16111. info: '#909399',
  16112. default: '#909399',
  16113. warning: '#f9ae3d',
  16114. error: '#f56c6c',
  16115. success: '#5ac725',
  16116. mainColor: '#303133',
  16117. contentColor: '#606266',
  16118. tipsColor: '#909399',
  16119. lightColor: '#c0c4cc',
  16120. borderColor: '#e4e7ed'
  16121. };
  16122. var _default = color;
  16123. exports.default = _default;
  16124. /***/ }),
  16125. /* 116 */
  16126. /*!**************************************************************************************************************!*\
  16127. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/noNetwork.js ***!
  16128. \**************************************************************************************************************/
  16129. /*! no static exports found */
  16130. /***/ (function(module, exports, __webpack_require__) {
  16131. "use strict";
  16132. Object.defineProperty(exports, "__esModule", {
  16133. value: true
  16134. });
  16135. exports.default = void 0;
  16136. /*
  16137. * @Author : LQ
  16138. * @Description :
  16139. * @version : 1.0
  16140. * @Date : 2021-08-20 16:44:21
  16141. * @LastAuthor : LQ
  16142. * @lastTime : 2021-08-20 17:16:39
  16143. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noNetwork.js
  16144. */
  16145. var _default = {
  16146. // noNetwork
  16147. noNetwork: {
  16148. tips: '哎呀,网络信号丢失',
  16149. zIndex: '',
  16150. 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'
  16151. }
  16152. };
  16153. exports.default = _default;
  16154. /***/ }),
  16155. /* 117 */
  16156. /*!**************************************************************************************************************!*\
  16157. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/noticeBar.js ***!
  16158. \**************************************************************************************************************/
  16159. /*! no static exports found */
  16160. /***/ (function(module, exports, __webpack_require__) {
  16161. "use strict";
  16162. Object.defineProperty(exports, "__esModule", {
  16163. value: true
  16164. });
  16165. exports.default = void 0;
  16166. /*
  16167. * @Author : LQ
  16168. * @Description :
  16169. * @version : 1.0
  16170. * @Date : 2021-08-20 16:44:21
  16171. * @LastAuthor : LQ
  16172. * @lastTime : 2021-08-20 17:17:13
  16173. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noticeBar.js
  16174. */
  16175. var _default = {
  16176. // noticeBar
  16177. noticeBar: {
  16178. text: function text() {
  16179. return [];
  16180. },
  16181. direction: 'row',
  16182. step: false,
  16183. icon: 'volume',
  16184. mode: '',
  16185. color: '#f9ae3d',
  16186. bgColor: '#fdf6ec',
  16187. speed: 80,
  16188. fontSize: 14,
  16189. duration: 2000,
  16190. disableTouch: true,
  16191. url: '',
  16192. linkType: 'navigateTo'
  16193. }
  16194. };
  16195. exports.default = _default;
  16196. /***/ }),
  16197. /* 118 */
  16198. /*!***********************************************************************************************************!*\
  16199. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/notify.js ***!
  16200. \***********************************************************************************************************/
  16201. /*! no static exports found */
  16202. /***/ (function(module, exports, __webpack_require__) {
  16203. "use strict";
  16204. Object.defineProperty(exports, "__esModule", {
  16205. value: true
  16206. });
  16207. exports.default = void 0;
  16208. /*
  16209. * @Author : LQ
  16210. * @Description :
  16211. * @version : 1.0
  16212. * @Date : 2021-08-20 16:44:21
  16213. * @LastAuthor : LQ
  16214. * @lastTime : 2021-08-20 17:10:21
  16215. * @FilePath : /u-view2.0/uview-ui/libs/config/props/notify.js
  16216. */
  16217. var _default = {
  16218. // notify组件
  16219. notify: {
  16220. top: 0,
  16221. type: 'primary',
  16222. color: '#ffffff',
  16223. bgColor: '',
  16224. message: '',
  16225. duration: 3000,
  16226. fontSize: 15,
  16227. safeAreaInsetTop: false
  16228. }
  16229. };
  16230. exports.default = _default;
  16231. /***/ }),
  16232. /* 119 */
  16233. /*!**************************************************************************************************************!*\
  16234. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/numberBox.js ***!
  16235. \**************************************************************************************************************/
  16236. /*! no static exports found */
  16237. /***/ (function(module, exports, __webpack_require__) {
  16238. "use strict";
  16239. Object.defineProperty(exports, "__esModule", {
  16240. value: true
  16241. });
  16242. exports.default = void 0;
  16243. /*
  16244. * @Author : LQ
  16245. * @Description :
  16246. * @version : 1.0
  16247. * @Date : 2021-08-20 16:44:21
  16248. * @LastAuthor : LQ
  16249. * @lastTime : 2021-08-20 17:11:46
  16250. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberBox.js
  16251. */
  16252. var _default = {
  16253. // 步进器组件
  16254. numberBox: {
  16255. name: '',
  16256. value: 0,
  16257. min: 1,
  16258. max: Number.MAX_SAFE_INTEGER,
  16259. step: 1,
  16260. integer: false,
  16261. disabled: false,
  16262. disabledInput: false,
  16263. asyncChange: false,
  16264. inputWidth: 35,
  16265. showMinus: true,
  16266. showPlus: true,
  16267. decimalLength: null,
  16268. longPress: true,
  16269. color: '#323233',
  16270. buttonSize: 30,
  16271. bgColor: '#EBECEE',
  16272. cursorSpacing: 100,
  16273. disableMinus: false,
  16274. disablePlus: false,
  16275. iconStyle: ''
  16276. }
  16277. };
  16278. exports.default = _default;
  16279. /***/ }),
  16280. /* 120 */
  16281. /*!*******************************************************************************************************************!*\
  16282. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/numberKeyboard.js ***!
  16283. \*******************************************************************************************************************/
  16284. /*! no static exports found */
  16285. /***/ (function(module, exports, __webpack_require__) {
  16286. "use strict";
  16287. Object.defineProperty(exports, "__esModule", {
  16288. value: true
  16289. });
  16290. exports.default = void 0;
  16291. /*
  16292. * @Author : LQ
  16293. * @Description :
  16294. * @version : 1.0
  16295. * @Date : 2021-08-20 16:44:21
  16296. * @LastAuthor : LQ
  16297. * @lastTime : 2021-08-20 17:08:05
  16298. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberKeyboard.js
  16299. */
  16300. var _default = {
  16301. // 数字键盘
  16302. numberKeyboard: {
  16303. mode: 'number',
  16304. dotDisabled: false,
  16305. random: false
  16306. }
  16307. };
  16308. exports.default = _default;
  16309. /***/ }),
  16310. /* 121 */
  16311. /*!************************************************************************************************************!*\
  16312. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/overlay.js ***!
  16313. \************************************************************************************************************/
  16314. /*! no static exports found */
  16315. /***/ (function(module, exports, __webpack_require__) {
  16316. "use strict";
  16317. Object.defineProperty(exports, "__esModule", {
  16318. value: true
  16319. });
  16320. exports.default = void 0;
  16321. /*
  16322. * @Author : LQ
  16323. * @Description :
  16324. * @version : 1.0
  16325. * @Date : 2021-08-20 16:44:21
  16326. * @LastAuthor : LQ
  16327. * @lastTime : 2021-08-20 17:06:50
  16328. * @FilePath : /u-view2.0/uview-ui/libs/config/props/overlay.js
  16329. */
  16330. var _default = {
  16331. // overlay组件
  16332. overlay: {
  16333. show: false,
  16334. zIndex: 10070,
  16335. duration: 300,
  16336. opacity: 0.5
  16337. }
  16338. };
  16339. exports.default = _default;
  16340. /***/ }),
  16341. /* 122 */
  16342. /*!**********************************************************************************************************!*\
  16343. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/parse.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:17:33
  16359. * @FilePath : /u-view2.0/uview-ui/libs/config/props/parse.js
  16360. */
  16361. var _default = {
  16362. // parse
  16363. parse: {
  16364. copyLink: true,
  16365. errorImg: '',
  16366. lazyLoad: false,
  16367. loadingImg: '',
  16368. pauseVideo: true,
  16369. previewImg: true,
  16370. setTitle: true,
  16371. showImgMenu: true
  16372. }
  16373. };
  16374. exports.default = _default;
  16375. /***/ }),
  16376. /* 123 */
  16377. /*!***********************************************************************************************************!*\
  16378. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/picker.js ***!
  16379. \***********************************************************************************************************/
  16380. /*! no static exports found */
  16381. /***/ (function(module, exports, __webpack_require__) {
  16382. "use strict";
  16383. Object.defineProperty(exports, "__esModule", {
  16384. value: true
  16385. });
  16386. exports.default = void 0;
  16387. /*
  16388. * @Author : LQ
  16389. * @Description :
  16390. * @version : 1.0
  16391. * @Date : 2021-08-20 16:44:21
  16392. * @LastAuthor : LQ
  16393. * @lastTime : 2021-08-20 17:18:20
  16394. * @FilePath : /u-view2.0/uview-ui/libs/config/props/picker.js
  16395. */
  16396. var _default = {
  16397. // picker
  16398. picker: {
  16399. show: false,
  16400. showToolbar: true,
  16401. title: '',
  16402. columns: function columns() {
  16403. return [];
  16404. },
  16405. loading: false,
  16406. itemHeight: 44,
  16407. cancelText: '取消',
  16408. confirmText: '确定',
  16409. cancelColor: '#909193',
  16410. confirmColor: '#3c9cff',
  16411. visibleItemCount: 5,
  16412. keyName: 'text',
  16413. closeOnClickOverlay: false,
  16414. defaultIndex: function defaultIndex() {
  16415. return [];
  16416. },
  16417. immediateChange: false
  16418. }
  16419. };
  16420. exports.default = _default;
  16421. /***/ }),
  16422. /* 124 */
  16423. /*!**********************************************************************************************************!*\
  16424. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/popup.js ***!
  16425. \**********************************************************************************************************/
  16426. /*! no static exports found */
  16427. /***/ (function(module, exports, __webpack_require__) {
  16428. "use strict";
  16429. Object.defineProperty(exports, "__esModule", {
  16430. value: true
  16431. });
  16432. exports.default = void 0;
  16433. /*
  16434. * @Author : LQ
  16435. * @Description :
  16436. * @version : 1.0
  16437. * @Date : 2021-08-20 16:44:21
  16438. * @LastAuthor : LQ
  16439. * @lastTime : 2021-08-20 17:06:33
  16440. * @FilePath : /u-view2.0/uview-ui/libs/config/props/popup.js
  16441. */
  16442. var _default = {
  16443. // popup组件
  16444. popup: {
  16445. show: false,
  16446. overlay: true,
  16447. mode: 'bottom',
  16448. duration: 300,
  16449. closeable: false,
  16450. overlayStyle: function overlayStyle() {},
  16451. closeOnClickOverlay: true,
  16452. zIndex: 10075,
  16453. safeAreaInsetBottom: true,
  16454. safeAreaInsetTop: false,
  16455. closeIconPos: 'top-right',
  16456. round: 0,
  16457. zoom: true,
  16458. bgColor: '',
  16459. overlayOpacity: 0.5
  16460. }
  16461. };
  16462. exports.default = _default;
  16463. /***/ }),
  16464. /* 125 */
  16465. /*!**********************************************************************************************************!*\
  16466. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/radio.js ***!
  16467. \**********************************************************************************************************/
  16468. /*! no static exports found */
  16469. /***/ (function(module, exports, __webpack_require__) {
  16470. "use strict";
  16471. Object.defineProperty(exports, "__esModule", {
  16472. value: true
  16473. });
  16474. exports.default = void 0;
  16475. /*
  16476. * @Author : LQ
  16477. * @Description :
  16478. * @version : 1.0
  16479. * @Date : 2021-08-20 16:44:21
  16480. * @LastAuthor : LQ
  16481. * @lastTime : 2021-08-20 17:02:34
  16482. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radio.js
  16483. */
  16484. var _default = {
  16485. // radio组件
  16486. radio: {
  16487. name: '',
  16488. shape: '',
  16489. disabled: '',
  16490. labelDisabled: '',
  16491. activeColor: '',
  16492. inactiveColor: '',
  16493. iconSize: '',
  16494. labelSize: '',
  16495. label: '',
  16496. labelColor: '',
  16497. size: '',
  16498. iconColor: '',
  16499. placement: ''
  16500. }
  16501. };
  16502. exports.default = _default;
  16503. /***/ }),
  16504. /* 126 */
  16505. /*!***************************************************************************************************************!*\
  16506. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/radioGroup.js ***!
  16507. \***************************************************************************************************************/
  16508. /*! no static exports found */
  16509. /***/ (function(module, exports, __webpack_require__) {
  16510. "use strict";
  16511. Object.defineProperty(exports, "__esModule", {
  16512. value: true
  16513. });
  16514. exports.default = void 0;
  16515. /*
  16516. * @Author : LQ
  16517. * @Description :
  16518. * @version : 1.0
  16519. * @Date : 2021-08-20 16:44:21
  16520. * @LastAuthor : LQ
  16521. * @lastTime : 2021-08-20 17:03:12
  16522. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radioGroup.js
  16523. */
  16524. var _default = {
  16525. // radio-group组件
  16526. radioGroup: {
  16527. value: '',
  16528. disabled: false,
  16529. shape: 'circle',
  16530. activeColor: '#2979ff',
  16531. inactiveColor: '#c8c9cc',
  16532. name: '',
  16533. size: 18,
  16534. placement: 'row',
  16535. label: '',
  16536. labelColor: '#303133',
  16537. labelSize: 14,
  16538. labelDisabled: false,
  16539. iconColor: '#ffffff',
  16540. iconSize: 12,
  16541. borderBottom: false,
  16542. iconPlacement: 'left'
  16543. }
  16544. };
  16545. exports.default = _default;
  16546. /***/ }),
  16547. /* 127 */
  16548. /*!*********************************************************************************************************!*\
  16549. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/rate.js ***!
  16550. \*********************************************************************************************************/
  16551. /*! no static exports found */
  16552. /***/ (function(module, exports, __webpack_require__) {
  16553. "use strict";
  16554. Object.defineProperty(exports, "__esModule", {
  16555. value: true
  16556. });
  16557. exports.default = void 0;
  16558. /*
  16559. * @Author : LQ
  16560. * @Description :
  16561. * @version : 1.0
  16562. * @Date : 2021-08-20 16:44:21
  16563. * @LastAuthor : LQ
  16564. * @lastTime : 2021-08-20 17:05:09
  16565. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rate.js
  16566. */
  16567. var _default = {
  16568. // rate组件
  16569. rate: {
  16570. value: 1,
  16571. count: 5,
  16572. disabled: false,
  16573. size: 18,
  16574. inactiveColor: '#b2b2b2',
  16575. activeColor: '#FA3534',
  16576. gutter: 4,
  16577. minCount: 1,
  16578. allowHalf: false,
  16579. activeIcon: 'star-fill',
  16580. inactiveIcon: 'star',
  16581. touchable: true
  16582. }
  16583. };
  16584. exports.default = _default;
  16585. /***/ }),
  16586. /* 128 */
  16587. /*!*************************************************************************************************************!*\
  16588. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/readMore.js ***!
  16589. \*************************************************************************************************************/
  16590. /*! no static exports found */
  16591. /***/ (function(module, exports, __webpack_require__) {
  16592. "use strict";
  16593. Object.defineProperty(exports, "__esModule", {
  16594. value: true
  16595. });
  16596. exports.default = void 0;
  16597. /*
  16598. * @Author : LQ
  16599. * @Description :
  16600. * @version : 1.0
  16601. * @Date : 2021-08-20 16:44:21
  16602. * @LastAuthor : LQ
  16603. * @lastTime : 2021-08-20 17:18:41
  16604. * @FilePath : /u-view2.0/uview-ui/libs/config/props/readMore.js
  16605. */
  16606. var _default = {
  16607. // readMore
  16608. readMore: {
  16609. showHeight: 400,
  16610. toggle: false,
  16611. closeText: '展开阅读全文',
  16612. openText: '收起',
  16613. color: '#2979ff',
  16614. fontSize: 14,
  16615. textIndent: '2em',
  16616. name: ''
  16617. }
  16618. };
  16619. exports.default = _default;
  16620. /***/ }),
  16621. /* 129 */
  16622. /*!********************************************************************************************************!*\
  16623. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/row.js ***!
  16624. \********************************************************************************************************/
  16625. /*! no static exports found */
  16626. /***/ (function(module, exports, __webpack_require__) {
  16627. "use strict";
  16628. Object.defineProperty(exports, "__esModule", {
  16629. value: true
  16630. });
  16631. exports.default = void 0;
  16632. /*
  16633. * @Author : LQ
  16634. * @Description :
  16635. * @version : 1.0
  16636. * @Date : 2021-08-20 16:44:21
  16637. * @LastAuthor : LQ
  16638. * @lastTime : 2021-08-20 17:18:58
  16639. * @FilePath : /u-view2.0/uview-ui/libs/config/props/row.js
  16640. */
  16641. var _default = {
  16642. // row
  16643. row: {
  16644. gutter: 0,
  16645. justify: 'start',
  16646. align: 'center'
  16647. }
  16648. };
  16649. exports.default = _default;
  16650. /***/ }),
  16651. /* 130 */
  16652. /*!**************************************************************************************************************!*\
  16653. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/rowNotice.js ***!
  16654. \**************************************************************************************************************/
  16655. /*! no static exports found */
  16656. /***/ (function(module, exports, __webpack_require__) {
  16657. "use strict";
  16658. Object.defineProperty(exports, "__esModule", {
  16659. value: true
  16660. });
  16661. exports.default = void 0;
  16662. /*
  16663. * @Author : LQ
  16664. * @Description :
  16665. * @version : 1.0
  16666. * @Date : 2021-08-20 16:44:21
  16667. * @LastAuthor : LQ
  16668. * @lastTime : 2021-08-20 17:19:13
  16669. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rowNotice.js
  16670. */
  16671. var _default = {
  16672. // rowNotice
  16673. rowNotice: {
  16674. text: '',
  16675. icon: 'volume',
  16676. mode: '',
  16677. color: '#f9ae3d',
  16678. bgColor: '#fdf6ec',
  16679. fontSize: 14,
  16680. speed: 80
  16681. }
  16682. };
  16683. exports.default = _default;
  16684. /***/ }),
  16685. /* 131 */
  16686. /*!***************************************************************************************************************!*\
  16687. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/scrollList.js ***!
  16688. \***************************************************************************************************************/
  16689. /*! no static exports found */
  16690. /***/ (function(module, exports, __webpack_require__) {
  16691. "use strict";
  16692. Object.defineProperty(exports, "__esModule", {
  16693. value: true
  16694. });
  16695. exports.default = void 0;
  16696. /*
  16697. * @Author : LQ
  16698. * @Description :
  16699. * @version : 1.0
  16700. * @Date : 2021-08-20 16:44:21
  16701. * @LastAuthor : LQ
  16702. * @lastTime : 2021-08-20 17:19:28
  16703. * @FilePath : /u-view2.0/uview-ui/libs/config/props/scrollList.js
  16704. */
  16705. var _default = {
  16706. // scrollList
  16707. scrollList: {
  16708. indicatorWidth: 50,
  16709. indicatorBarWidth: 20,
  16710. indicator: true,
  16711. indicatorColor: '#f2f2f2',
  16712. indicatorActiveColor: '#3c9cff',
  16713. indicatorStyle: ''
  16714. }
  16715. };
  16716. exports.default = _default;
  16717. /***/ }),
  16718. /* 132 */
  16719. /*!***********************************************************************************************************!*\
  16720. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/search.js ***!
  16721. \***********************************************************************************************************/
  16722. /*! no static exports found */
  16723. /***/ (function(module, exports, __webpack_require__) {
  16724. "use strict";
  16725. Object.defineProperty(exports, "__esModule", {
  16726. value: true
  16727. });
  16728. exports.default = void 0;
  16729. /*
  16730. * @Author : LQ
  16731. * @Description :
  16732. * @version : 1.0
  16733. * @Date : 2021-08-20 16:44:21
  16734. * @LastAuthor : LQ
  16735. * @lastTime : 2021-08-20 17:19:45
  16736. * @FilePath : /u-view2.0/uview-ui/libs/config/props/search.js
  16737. */
  16738. var _default = {
  16739. // search
  16740. search: {
  16741. shape: 'round',
  16742. bgColor: '#f2f2f2',
  16743. placeholder: '请输入关键字',
  16744. clearabled: true,
  16745. focus: false,
  16746. showAction: true,
  16747. actionStyle: function actionStyle() {
  16748. return {};
  16749. },
  16750. actionText: '搜索',
  16751. inputAlign: 'left',
  16752. inputStyle: function inputStyle() {
  16753. return {};
  16754. },
  16755. disabled: false,
  16756. borderColor: 'transparent',
  16757. searchIconColor: '#909399',
  16758. searchIconSize: 22,
  16759. color: '#606266',
  16760. placeholderColor: '#909399',
  16761. searchIcon: 'search',
  16762. margin: '0',
  16763. animation: false,
  16764. value: '',
  16765. maxlength: '-1',
  16766. height: 32,
  16767. label: null
  16768. }
  16769. };
  16770. exports.default = _default;
  16771. /***/ }),
  16772. /* 133 */
  16773. /*!************************************************************************************************************!*\
  16774. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/section.js ***!
  16775. \************************************************************************************************************/
  16776. /*! no static exports found */
  16777. /***/ (function(module, exports, __webpack_require__) {
  16778. "use strict";
  16779. Object.defineProperty(exports, "__esModule", {
  16780. value: true
  16781. });
  16782. exports.default = void 0;
  16783. /*
  16784. * @Author : LQ
  16785. * @Description :
  16786. * @version : 1.0
  16787. * @Date : 2021-08-20 16:44:21
  16788. * @LastAuthor : LQ
  16789. * @lastTime : 2021-08-20 17:07:33
  16790. * @FilePath : /u-view2.0/uview-ui/libs/config/props/section.js
  16791. */
  16792. var _default = {
  16793. // u-section组件
  16794. section: {
  16795. title: '',
  16796. subTitle: '更多',
  16797. right: true,
  16798. fontSize: 15,
  16799. bold: true,
  16800. color: '#303133',
  16801. subColor: '#909399',
  16802. showLine: true,
  16803. lineColor: '',
  16804. arrow: true
  16805. }
  16806. };
  16807. exports.default = _default;
  16808. /***/ }),
  16809. /* 134 */
  16810. /*!*************************************************************************************************************!*\
  16811. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/skeleton.js ***!
  16812. \*************************************************************************************************************/
  16813. /*! no static exports found */
  16814. /***/ (function(module, exports, __webpack_require__) {
  16815. "use strict";
  16816. Object.defineProperty(exports, "__esModule", {
  16817. value: true
  16818. });
  16819. exports.default = void 0;
  16820. /*
  16821. * @Author : LQ
  16822. * @Description :
  16823. * @version : 1.0
  16824. * @Date : 2021-08-20 16:44:21
  16825. * @LastAuthor : LQ
  16826. * @lastTime : 2021-08-20 17:20:14
  16827. * @FilePath : /u-view2.0/uview-ui/libs/config/props/skeleton.js
  16828. */
  16829. var _default = {
  16830. // skeleton
  16831. skeleton: {
  16832. loading: true,
  16833. animate: true,
  16834. rows: 0,
  16835. rowsWidth: '100%',
  16836. rowsHeight: 18,
  16837. title: true,
  16838. titleWidth: '50%',
  16839. titleHeight: 18,
  16840. avatar: false,
  16841. avatarSize: 32,
  16842. avatarShape: 'circle'
  16843. }
  16844. };
  16845. exports.default = _default;
  16846. /***/ }),
  16847. /* 135 */
  16848. /*!***********************************************************************************************************!*\
  16849. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/slider.js ***!
  16850. \***********************************************************************************************************/
  16851. /*! no static exports found */
  16852. /***/ (function(module, exports, __webpack_require__) {
  16853. "use strict";
  16854. Object.defineProperty(exports, "__esModule", {
  16855. value: true
  16856. });
  16857. exports.default = void 0;
  16858. /*
  16859. * @Author : LQ
  16860. * @Description :
  16861. * @version : 1.0
  16862. * @Date : 2021-08-20 16:44:21
  16863. * @LastAuthor : LQ
  16864. * @lastTime : 2021-08-20 17:08:25
  16865. * @FilePath : /u-view2.0/uview-ui/libs/config/props/slider.js
  16866. */
  16867. var _default = {
  16868. // slider组件
  16869. slider: {
  16870. value: 0,
  16871. blockSize: 18,
  16872. min: 0,
  16873. max: 100,
  16874. step: 1,
  16875. activeColor: '#2979ff',
  16876. inactiveColor: '#c0c4cc',
  16877. blockColor: '#ffffff',
  16878. showValue: false,
  16879. disabled: false,
  16880. blockStyle: function blockStyle() {}
  16881. }
  16882. };
  16883. exports.default = _default;
  16884. /***/ }),
  16885. /* 136 */
  16886. /*!**************************************************************************************************************!*\
  16887. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/statusBar.js ***!
  16888. \**************************************************************************************************************/
  16889. /*! no static exports found */
  16890. /***/ (function(module, exports, __webpack_require__) {
  16891. "use strict";
  16892. Object.defineProperty(exports, "__esModule", {
  16893. value: true
  16894. });
  16895. exports.default = void 0;
  16896. /*
  16897. * @Author : LQ
  16898. * @Description :
  16899. * @version : 1.0
  16900. * @Date : 2021-08-20 16:44:21
  16901. * @LastAuthor : LQ
  16902. * @lastTime : 2021-08-20 17:20:39
  16903. * @FilePath : /u-view2.0/uview-ui/libs/config/props/statusBar.js
  16904. */
  16905. var _default = {
  16906. // statusBar
  16907. statusBar: {
  16908. bgColor: 'transparent'
  16909. }
  16910. };
  16911. exports.default = _default;
  16912. /***/ }),
  16913. /* 137 */
  16914. /*!**********************************************************************************************************!*\
  16915. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/steps.js ***!
  16916. \**********************************************************************************************************/
  16917. /*! no static exports found */
  16918. /***/ (function(module, exports, __webpack_require__) {
  16919. "use strict";
  16920. Object.defineProperty(exports, "__esModule", {
  16921. value: true
  16922. });
  16923. exports.default = void 0;
  16924. /*
  16925. * @Author : LQ
  16926. * @Description :
  16927. * @version : 1.0
  16928. * @Date : 2021-08-20 16:44:21
  16929. * @LastAuthor : LQ
  16930. * @lastTime : 2021-08-20 17:12:37
  16931. * @FilePath : /u-view2.0/uview-ui/libs/config/props/steps.js
  16932. */
  16933. var _default = {
  16934. // steps组件
  16935. steps: {
  16936. direction: 'row',
  16937. current: 0,
  16938. activeColor: '#3c9cff',
  16939. inactiveColor: '#969799',
  16940. activeIcon: '',
  16941. inactiveIcon: '',
  16942. dot: false
  16943. }
  16944. };
  16945. exports.default = _default;
  16946. /***/ }),
  16947. /* 138 */
  16948. /*!**************************************************************************************************************!*\
  16949. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/stepsItem.js ***!
  16950. \**************************************************************************************************************/
  16951. /*! no static exports found */
  16952. /***/ (function(module, exports, __webpack_require__) {
  16953. "use strict";
  16954. Object.defineProperty(exports, "__esModule", {
  16955. value: true
  16956. });
  16957. exports.default = void 0;
  16958. /*
  16959. * @Author : LQ
  16960. * @Description :
  16961. * @version : 1.0
  16962. * @Date : 2021-08-20 16:44:21
  16963. * @LastAuthor : LQ
  16964. * @lastTime : 2021-08-20 17:12:55
  16965. * @FilePath : /u-view2.0/uview-ui/libs/config/props/stepsItem.js
  16966. */
  16967. var _default = {
  16968. // steps-item组件
  16969. stepsItem: {
  16970. title: '',
  16971. desc: '',
  16972. iconSize: 17,
  16973. error: false
  16974. }
  16975. };
  16976. exports.default = _default;
  16977. /***/ }),
  16978. /* 139 */
  16979. /*!***********************************************************************************************************!*\
  16980. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/sticky.js ***!
  16981. \***********************************************************************************************************/
  16982. /*! no static exports found */
  16983. /***/ (function(module, exports, __webpack_require__) {
  16984. "use strict";
  16985. Object.defineProperty(exports, "__esModule", {
  16986. value: true
  16987. });
  16988. exports.default = void 0;
  16989. /*
  16990. * @Author : LQ
  16991. * @Description :
  16992. * @version : 1.0
  16993. * @Date : 2021-08-20 16:44:21
  16994. * @LastAuthor : LQ
  16995. * @lastTime : 2021-08-20 17:01:30
  16996. * @FilePath : /u-view2.0/uview-ui/libs/config/props/sticky.js
  16997. */
  16998. var _default = {
  16999. // sticky组件
  17000. sticky: {
  17001. offsetTop: 0,
  17002. customNavHeight: 0,
  17003. disabled: false,
  17004. bgColor: 'transparent',
  17005. zIndex: '',
  17006. index: ''
  17007. }
  17008. };
  17009. exports.default = _default;
  17010. /***/ }),
  17011. /* 140 */
  17012. /*!***************************************************************************************************************!*\
  17013. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/subsection.js ***!
  17014. \***************************************************************************************************************/
  17015. /*! no static exports found */
  17016. /***/ (function(module, exports, __webpack_require__) {
  17017. "use strict";
  17018. Object.defineProperty(exports, "__esModule", {
  17019. value: true
  17020. });
  17021. exports.default = void 0;
  17022. /*
  17023. * @Author : LQ
  17024. * @Description :
  17025. * @version : 1.0
  17026. * @Date : 2021-08-20 16:44:21
  17027. * @LastAuthor : LQ
  17028. * @lastTime : 2021-08-20 17:12:20
  17029. * @FilePath : /u-view2.0/uview-ui/libs/config/props/subsection.js
  17030. */
  17031. var _default = {
  17032. // subsection组件
  17033. subsection: {
  17034. list: [],
  17035. current: 0,
  17036. activeColor: '#3c9cff',
  17037. inactiveColor: '#303133',
  17038. mode: 'button',
  17039. fontSize: 12,
  17040. bold: true,
  17041. bgColor: '#eeeeef',
  17042. keyName: 'name'
  17043. }
  17044. };
  17045. exports.default = _default;
  17046. /***/ }),
  17047. /* 141 */
  17048. /*!****************************************************************************************************************!*\
  17049. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/swipeAction.js ***!
  17050. \****************************************************************************************************************/
  17051. /*! no static exports found */
  17052. /***/ (function(module, exports, __webpack_require__) {
  17053. "use strict";
  17054. Object.defineProperty(exports, "__esModule", {
  17055. value: true
  17056. });
  17057. exports.default = void 0;
  17058. /*
  17059. * @Author : LQ
  17060. * @Description :
  17061. * @version : 1.0
  17062. * @Date : 2021-08-20 16:44:21
  17063. * @LastAuthor : LQ
  17064. * @lastTime : 2021-08-20 17:00:42
  17065. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeAction.js
  17066. */
  17067. var _default = {
  17068. // swipe-action组件
  17069. swipeAction: {
  17070. autoClose: true
  17071. }
  17072. };
  17073. exports.default = _default;
  17074. /***/ }),
  17075. /* 142 */
  17076. /*!********************************************************************************************************************!*\
  17077. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/swipeActionItem.js ***!
  17078. \********************************************************************************************************************/
  17079. /*! no static exports found */
  17080. /***/ (function(module, exports, __webpack_require__) {
  17081. "use strict";
  17082. Object.defineProperty(exports, "__esModule", {
  17083. value: true
  17084. });
  17085. exports.default = void 0;
  17086. /*
  17087. * @Author : LQ
  17088. * @Description :
  17089. * @version : 1.0
  17090. * @Date : 2021-08-20 16:44:21
  17091. * @LastAuthor : LQ
  17092. * @lastTime : 2021-08-20 17:01:13
  17093. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeActionItem.js
  17094. */
  17095. var _default = {
  17096. // swipeActionItem 组件
  17097. swipeActionItem: {
  17098. show: false,
  17099. name: '',
  17100. disabled: false,
  17101. threshold: 20,
  17102. autoClose: true,
  17103. options: [],
  17104. duration: 300
  17105. }
  17106. };
  17107. exports.default = _default;
  17108. /***/ }),
  17109. /* 143 */
  17110. /*!***********************************************************************************************************!*\
  17111. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/swiper.js ***!
  17112. \***********************************************************************************************************/
  17113. /*! no static exports found */
  17114. /***/ (function(module, exports, __webpack_require__) {
  17115. "use strict";
  17116. Object.defineProperty(exports, "__esModule", {
  17117. value: true
  17118. });
  17119. exports.default = void 0;
  17120. /*
  17121. * @Author : LQ
  17122. * @Description :
  17123. * @version : 1.0
  17124. * @Date : 2021-08-20 16:44:21
  17125. * @LastAuthor : LQ
  17126. * @lastTime : 2021-08-20 17:21:38
  17127. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiper.js
  17128. */
  17129. var _default = {
  17130. // swiper 组件
  17131. swiper: {
  17132. list: function list() {
  17133. return [];
  17134. },
  17135. indicator: false,
  17136. indicatorActiveColor: '#FFFFFF',
  17137. indicatorInactiveColor: 'rgba(255, 255, 255, 0.35)',
  17138. indicatorStyle: '',
  17139. indicatorMode: 'line',
  17140. autoplay: true,
  17141. current: 0,
  17142. currentItemId: '',
  17143. interval: 3000,
  17144. duration: 300,
  17145. circular: false,
  17146. previousMargin: 0,
  17147. nextMargin: 0,
  17148. acceleration: false,
  17149. displayMultipleItems: 1,
  17150. easingFunction: 'default',
  17151. keyName: 'url',
  17152. imgMode: 'aspectFill',
  17153. height: 130,
  17154. bgColor: '#f3f4f6',
  17155. radius: 4,
  17156. loading: false,
  17157. showTitle: false
  17158. }
  17159. };
  17160. exports.default = _default;
  17161. /***/ }),
  17162. /* 144 */
  17163. /*!*********************************************************************************************************************!*\
  17164. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/swipterIndicator.js ***!
  17165. \*********************************************************************************************************************/
  17166. /*! no static exports found */
  17167. /***/ (function(module, exports, __webpack_require__) {
  17168. "use strict";
  17169. Object.defineProperty(exports, "__esModule", {
  17170. value: true
  17171. });
  17172. exports.default = void 0;
  17173. /*
  17174. * @Author : LQ
  17175. * @Description :
  17176. * @version : 1.0
  17177. * @Date : 2021-08-20 16:44:21
  17178. * @LastAuthor : LQ
  17179. * @lastTime : 2021-08-20 17:22:07
  17180. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiperIndicator.js
  17181. */
  17182. var _default = {
  17183. // swiperIndicator 组件
  17184. swiperIndicator: {
  17185. length: 0,
  17186. current: 0,
  17187. indicatorActiveColor: '',
  17188. indicatorInactiveColor: '',
  17189. indicatorMode: 'line'
  17190. }
  17191. };
  17192. exports.default = _default;
  17193. /***/ }),
  17194. /* 145 */
  17195. /*!***********************************************************************************************************!*\
  17196. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/switch.js ***!
  17197. \***********************************************************************************************************/
  17198. /*! no static exports found */
  17199. /***/ (function(module, exports, __webpack_require__) {
  17200. "use strict";
  17201. Object.defineProperty(exports, "__esModule", {
  17202. value: true
  17203. });
  17204. exports.default = void 0;
  17205. /*
  17206. * @Author : LQ
  17207. * @Description :
  17208. * @version : 1.0
  17209. * @Date : 2021-08-20 16:44:21
  17210. * @LastAuthor : LQ
  17211. * @lastTime : 2021-08-20 17:22:24
  17212. * @FilePath : /u-view2.0/uview-ui/libs/config/props/switch.js
  17213. */
  17214. var _default = {
  17215. // switch
  17216. switch: {
  17217. loading: false,
  17218. disabled: false,
  17219. size: 25,
  17220. activeColor: '#2979ff',
  17221. inactiveColor: '#ffffff',
  17222. value: false,
  17223. activeValue: true,
  17224. inactiveValue: false,
  17225. asyncChange: false,
  17226. space: 0
  17227. }
  17228. };
  17229. exports.default = _default;
  17230. /***/ }),
  17231. /* 146 */
  17232. /*!***********************************************************************************************************!*\
  17233. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/tabbar.js ***!
  17234. \***********************************************************************************************************/
  17235. /*! no static exports found */
  17236. /***/ (function(module, exports, __webpack_require__) {
  17237. "use strict";
  17238. Object.defineProperty(exports, "__esModule", {
  17239. value: true
  17240. });
  17241. exports.default = void 0;
  17242. /*
  17243. * @Author : LQ
  17244. * @Description :
  17245. * @version : 1.0
  17246. * @Date : 2021-08-20 16:44:21
  17247. * @LastAuthor : LQ
  17248. * @lastTime : 2021-08-20 17:22:40
  17249. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbar.js
  17250. */
  17251. var _default = {
  17252. // tabbar
  17253. tabbar: {
  17254. value: null,
  17255. safeAreaInsetBottom: true,
  17256. border: true,
  17257. zIndex: 1,
  17258. activeColor: '#1989fa',
  17259. inactiveColor: '#7d7e80',
  17260. fixed: true,
  17261. placeholder: true
  17262. }
  17263. };
  17264. exports.default = _default;
  17265. /***/ }),
  17266. /* 147 */
  17267. /*!***************************************************************************************************************!*\
  17268. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/tabbarItem.js ***!
  17269. \***************************************************************************************************************/
  17270. /*! no static exports found */
  17271. /***/ (function(module, exports, __webpack_require__) {
  17272. "use strict";
  17273. Object.defineProperty(exports, "__esModule", {
  17274. value: true
  17275. });
  17276. exports.default = void 0;
  17277. /*
  17278. * @Author : LQ
  17279. * @Description :
  17280. * @version : 1.0
  17281. * @Date : 2021-08-20 16:44:21
  17282. * @LastAuthor : LQ
  17283. * @lastTime : 2021-08-20 17:22:55
  17284. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbarItem.js
  17285. */
  17286. var _default = {
  17287. //
  17288. tabbarItem: {
  17289. name: null,
  17290. icon: '',
  17291. badge: null,
  17292. dot: false,
  17293. text: '',
  17294. badgeStyle: 'top: 6px;right:2px;'
  17295. }
  17296. };
  17297. exports.default = _default;
  17298. /***/ }),
  17299. /* 148 */
  17300. /*!*********************************************************************************************************!*\
  17301. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/tabs.js ***!
  17302. \*********************************************************************************************************/
  17303. /*! no static exports found */
  17304. /***/ (function(module, exports, __webpack_require__) {
  17305. "use strict";
  17306. Object.defineProperty(exports, "__esModule", {
  17307. value: true
  17308. });
  17309. exports.default = void 0;
  17310. /*
  17311. * @Author : LQ
  17312. * @Description :
  17313. * @version : 1.0
  17314. * @Date : 2021-08-20 16:44:21
  17315. * @LastAuthor : LQ
  17316. * @lastTime : 2021-08-20 17:23:14
  17317. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabs.js
  17318. */
  17319. var _default = {
  17320. //
  17321. tabs: {
  17322. duration: 300,
  17323. list: function list() {
  17324. return [];
  17325. },
  17326. lineColor: '#3c9cff',
  17327. activeStyle: function activeStyle() {
  17328. return {
  17329. color: '#303133'
  17330. };
  17331. },
  17332. inactiveStyle: function inactiveStyle() {
  17333. return {
  17334. color: '#606266'
  17335. };
  17336. },
  17337. lineWidth: 20,
  17338. lineHeight: 3,
  17339. lineBgSize: 'cover',
  17340. itemStyle: function itemStyle() {
  17341. return {
  17342. height: '44px'
  17343. };
  17344. },
  17345. scrollable: true,
  17346. current: 0,
  17347. keyName: 'name'
  17348. }
  17349. };
  17350. exports.default = _default;
  17351. /***/ }),
  17352. /* 149 */
  17353. /*!********************************************************************************************************!*\
  17354. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/tag.js ***!
  17355. \********************************************************************************************************/
  17356. /*! no static exports found */
  17357. /***/ (function(module, exports, __webpack_require__) {
  17358. "use strict";
  17359. Object.defineProperty(exports, "__esModule", {
  17360. value: true
  17361. });
  17362. exports.default = void 0;
  17363. /*
  17364. * @Author : LQ
  17365. * @Description :
  17366. * @version : 1.0
  17367. * @Date : 2021-08-20 16:44:21
  17368. * @LastAuthor : LQ
  17369. * @lastTime : 2021-08-20 17:23:37
  17370. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tag.js
  17371. */
  17372. var _default = {
  17373. // tag 组件
  17374. tag: {
  17375. type: 'primary',
  17376. disabled: false,
  17377. size: 'medium',
  17378. shape: 'square',
  17379. text: '',
  17380. bgColor: '',
  17381. color: '',
  17382. borderColor: '',
  17383. closeColor: '#C6C7CB',
  17384. name: '',
  17385. plainFill: false,
  17386. plain: false,
  17387. closable: false,
  17388. show: true,
  17389. icon: ''
  17390. }
  17391. };
  17392. exports.default = _default;
  17393. /***/ }),
  17394. /* 150 */
  17395. /*!*********************************************************************************************************!*\
  17396. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/text.js ***!
  17397. \*********************************************************************************************************/
  17398. /*! no static exports found */
  17399. /***/ (function(module, exports, __webpack_require__) {
  17400. "use strict";
  17401. Object.defineProperty(exports, "__esModule", {
  17402. value: true
  17403. });
  17404. exports.default = void 0;
  17405. /*
  17406. * @Author : LQ
  17407. * @Description :
  17408. * @version : 1.0
  17409. * @Date : 2021-08-20 16:44:21
  17410. * @LastAuthor : LQ
  17411. * @lastTime : 2021-08-20 17:23:58
  17412. * @FilePath : /u-view2.0/uview-ui/libs/config/props/text.js
  17413. */
  17414. var _default = {
  17415. // text 组件
  17416. text: {
  17417. type: '',
  17418. show: true,
  17419. text: '',
  17420. prefixIcon: '',
  17421. suffixIcon: '',
  17422. mode: '',
  17423. href: '',
  17424. format: '',
  17425. call: false,
  17426. openType: '',
  17427. bold: false,
  17428. block: false,
  17429. lines: '',
  17430. color: '#303133',
  17431. size: 15,
  17432. iconStyle: function iconStyle() {
  17433. return {
  17434. fontSize: '15px'
  17435. };
  17436. },
  17437. decoration: 'none',
  17438. margin: 0,
  17439. lineHeight: '',
  17440. align: 'left',
  17441. wordWrap: 'normal'
  17442. }
  17443. };
  17444. exports.default = _default;
  17445. /***/ }),
  17446. /* 151 */
  17447. /*!*************************************************************************************************************!*\
  17448. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/textarea.js ***!
  17449. \*************************************************************************************************************/
  17450. /*! no static exports found */
  17451. /***/ (function(module, exports, __webpack_require__) {
  17452. "use strict";
  17453. Object.defineProperty(exports, "__esModule", {
  17454. value: true
  17455. });
  17456. exports.default = void 0;
  17457. /*
  17458. * @Author : LQ
  17459. * @Description :
  17460. * @version : 1.0
  17461. * @Date : 2021-08-20 16:44:21
  17462. * @LastAuthor : LQ
  17463. * @lastTime : 2021-08-20 17:24:32
  17464. * @FilePath : /u-view2.0/uview-ui/libs/config/props/textarea.js
  17465. */
  17466. var _default = {
  17467. // textarea 组件
  17468. textarea: {
  17469. value: '',
  17470. placeholder: '',
  17471. placeholderClass: 'textarea-placeholder',
  17472. placeholderStyle: 'color: #c0c4cc',
  17473. height: 70,
  17474. confirmType: 'done',
  17475. disabled: false,
  17476. count: false,
  17477. focus: false,
  17478. autoHeight: false,
  17479. fixed: false,
  17480. cursorSpacing: 0,
  17481. cursor: '',
  17482. showConfirmBar: true,
  17483. selectionStart: -1,
  17484. selectionEnd: -1,
  17485. adjustPosition: true,
  17486. disableDefaultPadding: false,
  17487. holdKeyboard: false,
  17488. maxlength: 140,
  17489. border: 'surround',
  17490. formatter: null
  17491. }
  17492. };
  17493. exports.default = _default;
  17494. /***/ }),
  17495. /* 152 */
  17496. /*!**********************************************************************************************************!*\
  17497. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/toast.js ***!
  17498. \**********************************************************************************************************/
  17499. /*! no static exports found */
  17500. /***/ (function(module, exports, __webpack_require__) {
  17501. "use strict";
  17502. Object.defineProperty(exports, "__esModule", {
  17503. value: true
  17504. });
  17505. exports.default = void 0;
  17506. /*
  17507. * @Author : LQ
  17508. * @Description :
  17509. * @version : 1.0
  17510. * @Date : 2021-08-20 16:44:21
  17511. * @LastAuthor : LQ
  17512. * @lastTime : 2021-08-20 17:07:07
  17513. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toast.js
  17514. */
  17515. var _default = {
  17516. // toast组件
  17517. toast: {
  17518. zIndex: 10090,
  17519. loading: false,
  17520. text: '',
  17521. icon: '',
  17522. type: '',
  17523. loadingMode: '',
  17524. show: '',
  17525. overlay: false,
  17526. position: 'center',
  17527. params: function params() {},
  17528. duration: 2000,
  17529. isTab: false,
  17530. url: '',
  17531. callback: null,
  17532. back: false
  17533. }
  17534. };
  17535. exports.default = _default;
  17536. /***/ }),
  17537. /* 153 */
  17538. /*!************************************************************************************************************!*\
  17539. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/toolbar.js ***!
  17540. \************************************************************************************************************/
  17541. /*! no static exports found */
  17542. /***/ (function(module, exports, __webpack_require__) {
  17543. "use strict";
  17544. Object.defineProperty(exports, "__esModule", {
  17545. value: true
  17546. });
  17547. exports.default = void 0;
  17548. /*
  17549. * @Author : LQ
  17550. * @Description :
  17551. * @version : 1.0
  17552. * @Date : 2021-08-20 16:44:21
  17553. * @LastAuthor : LQ
  17554. * @lastTime : 2021-08-20 17:24:55
  17555. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toolbar.js
  17556. */
  17557. var _default = {
  17558. // toolbar 组件
  17559. toolbar: {
  17560. show: true,
  17561. cancelText: '取消',
  17562. confirmText: '确认',
  17563. cancelColor: '#909193',
  17564. confirmColor: '#3c9cff',
  17565. title: ''
  17566. }
  17567. };
  17568. exports.default = _default;
  17569. /***/ }),
  17570. /* 154 */
  17571. /*!************************************************************************************************************!*\
  17572. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/tooltip.js ***!
  17573. \************************************************************************************************************/
  17574. /*! no static exports found */
  17575. /***/ (function(module, exports, __webpack_require__) {
  17576. "use strict";
  17577. Object.defineProperty(exports, "__esModule", {
  17578. value: true
  17579. });
  17580. exports.default = void 0;
  17581. /*
  17582. * @Author : LQ
  17583. * @Description :
  17584. * @version : 1.0
  17585. * @Date : 2021-08-20 16:44:21
  17586. * @LastAuthor : LQ
  17587. * @lastTime : 2021-08-20 17:25:14
  17588. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tooltip.js
  17589. */
  17590. var _default = {
  17591. // tooltip 组件
  17592. tooltip: {
  17593. text: '',
  17594. copyText: '',
  17595. size: 14,
  17596. color: '#606266',
  17597. bgColor: 'transparent',
  17598. direction: 'top',
  17599. zIndex: 10071,
  17600. showCopy: true,
  17601. buttons: function buttons() {
  17602. return [];
  17603. },
  17604. overlay: true,
  17605. showToast: true
  17606. }
  17607. };
  17608. exports.default = _default;
  17609. /***/ }),
  17610. /* 155 */
  17611. /*!***************************************************************************************************************!*\
  17612. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/transition.js ***!
  17613. \***************************************************************************************************************/
  17614. /*! no static exports found */
  17615. /***/ (function(module, exports, __webpack_require__) {
  17616. "use strict";
  17617. Object.defineProperty(exports, "__esModule", {
  17618. value: true
  17619. });
  17620. exports.default = void 0;
  17621. /*
  17622. * @Author : LQ
  17623. * @Description :
  17624. * @version : 1.0
  17625. * @Date : 2021-08-20 16:44:21
  17626. * @LastAuthor : LQ
  17627. * @lastTime : 2021-08-20 16:59:00
  17628. * @FilePath : /u-view2.0/uview-ui/libs/config/props/transition.js
  17629. */
  17630. var _default = {
  17631. // transition动画组件的props
  17632. transition: {
  17633. show: false,
  17634. mode: 'fade',
  17635. duration: '300',
  17636. timingFunction: 'ease-out'
  17637. }
  17638. };
  17639. exports.default = _default;
  17640. /***/ }),
  17641. /* 156 */
  17642. /*!***********************************************************************************************************!*\
  17643. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/props/upload.js ***!
  17644. \***********************************************************************************************************/
  17645. /*! no static exports found */
  17646. /***/ (function(module, exports, __webpack_require__) {
  17647. "use strict";
  17648. Object.defineProperty(exports, "__esModule", {
  17649. value: true
  17650. });
  17651. exports.default = void 0;
  17652. /*
  17653. * @Author : LQ
  17654. * @Description :
  17655. * @version : 1.0
  17656. * @Date : 2021-08-20 16:44:21
  17657. * @LastAuthor : LQ
  17658. * @lastTime : 2021-08-20 17:09:50
  17659. * @FilePath : /u-view2.0/uview-ui/libs/config/props/upload.js
  17660. */
  17661. var _default = {
  17662. // upload组件
  17663. upload: {
  17664. accept: 'image',
  17665. capture: function capture() {
  17666. return ['album', 'camera'];
  17667. },
  17668. compressed: true,
  17669. camera: 'back',
  17670. maxDuration: 60,
  17671. uploadIcon: 'camera-fill',
  17672. uploadIconColor: '#D3D4D6',
  17673. useBeforeRead: false,
  17674. previewFullImage: true,
  17675. maxCount: 52,
  17676. disabled: false,
  17677. imageMode: 'aspectFill',
  17678. name: '',
  17679. sizeType: function sizeType() {
  17680. return ['original', 'compressed'];
  17681. },
  17682. multiple: false,
  17683. deletable: true,
  17684. maxSize: Number.MAX_VALUE,
  17685. fileList: function fileList() {
  17686. return [];
  17687. },
  17688. uploadText: '',
  17689. width: 80,
  17690. height: 80,
  17691. previewImage: true
  17692. }
  17693. };
  17694. exports.default = _default;
  17695. /***/ }),
  17696. /* 157 */
  17697. /*!*****************************************************************************************************!*\
  17698. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/config/zIndex.js ***!
  17699. \*****************************************************************************************************/
  17700. /*! no static exports found */
  17701. /***/ (function(module, exports, __webpack_require__) {
  17702. "use strict";
  17703. Object.defineProperty(exports, "__esModule", {
  17704. value: true
  17705. });
  17706. exports.default = void 0;
  17707. // uniapp在H5中各API的z-index值如下:
  17708. /**
  17709. * actionsheet: 999
  17710. * modal: 999
  17711. * navigate: 998
  17712. * tabbar: 998
  17713. * toast: 999
  17714. */
  17715. var _default = {
  17716. toast: 10090,
  17717. noNetwork: 10080,
  17718. // popup包含popup,actionsheet,keyboard,picker的值
  17719. popup: 10075,
  17720. mask: 10070,
  17721. navbar: 980,
  17722. topTips: 975,
  17723. sticky: 970,
  17724. indexListSticky: 965
  17725. };
  17726. exports.default = _default;
  17727. /***/ }),
  17728. /* 158 */
  17729. /*!*********************************************************************************************************!*\
  17730. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/function/platform.js ***!
  17731. \*********************************************************************************************************/
  17732. /*! no static exports found */
  17733. /***/ (function(module, exports, __webpack_require__) {
  17734. "use strict";
  17735. Object.defineProperty(exports, "__esModule", {
  17736. value: true
  17737. });
  17738. exports.default = void 0;
  17739. /**
  17740. * 注意:
  17741. * 此部分内容,在vue-cli模式下,需要在vue.config.js加入如下内容才有效:
  17742. * module.exports = {
  17743. * transpileDependencies: ['uview-v2']
  17744. * }
  17745. */
  17746. var platform = 'none';
  17747. platform = 'vue2';
  17748. platform = 'weixin';
  17749. platform = 'mp';
  17750. var _default = platform;
  17751. exports.default = _default;
  17752. /***/ }),
  17753. /* 159 */
  17754. /*!**************************************************************************************************************!*\
  17755. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/zhouWei-request/js_sdk/requestConfig.js ***!
  17756. \**************************************************************************************************************/
  17757. /*! no static exports found */
  17758. /***/ (function(module, exports, __webpack_require__) {
  17759. "use strict";
  17760. /* WEBPACK VAR INJECTION */(function(uni) {
  17761. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  17762. Object.defineProperty(exports, "__esModule", {
  17763. value: true
  17764. });
  17765. exports.default = void 0;
  17766. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 56));
  17767. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 58));
  17768. var _request = _interopRequireDefault(__webpack_require__(/*! ./request */ 160));
  17769. function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
  17770. function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
  17771. function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
  17772. // 全局配置的请求域名
  17773. // let baseUrl = "http://39.104.176.9:8082/lzkj-admin/";
  17774. var baseUrl = "http://192.168.1.151:8080/";
  17775. // let baseUrl = "https://byg.nmglzrj.com/lzkj-admin/";
  17776. //可以new多个request来支持多个域名请求
  17777. var $http = new _request.default({
  17778. //接口请求地址
  17779. baseUrl: baseUrl,
  17780. //服务器本地上传文件地址
  17781. fileUrl: baseUrl,
  17782. // 服务器上传图片默认url
  17783. defaultUploadUrl: "api/common/v1/upload_image",
  17784. //设置请求头(如果使用报错跨域问题,可能是content-type请求类型和后台那边设置的不一致)
  17785. header: {
  17786. 'content-type': 'application/json;charset=UTF-8'
  17787. },
  17788. // 请求超时时间(默认6000)
  17789. timeout: 100000,
  17790. // 默认配置(可不写)
  17791. config: {
  17792. // 是否自动提示错误
  17793. isPrompt: false,
  17794. // 是否显示加载动画
  17795. load: true,
  17796. // 是否使用数据工厂
  17797. isFactory: true
  17798. }
  17799. });
  17800. // 添加获取七牛云token的方法
  17801. $http.getQnToken = function (callback) {
  17802. //该地址需要开发者自行配置(每个后台的接口风格都不一样)
  17803. $http.get("api/kemean/aid/qn_upload").then(function (data) {
  17804. /*
  17805. *接口返回参数:
  17806. *visitPrefix:访问文件的域名
  17807. *token:七牛云上传token
  17808. *folderPath:上传的文件夹
  17809. *region: 地区 默认为:SCN
  17810. */
  17811. callback({
  17812. visitPrefix: data.visitPrefix,
  17813. token: data.token,
  17814. folderPath: data.folderPath,
  17815. region: "SCN"
  17816. });
  17817. });
  17818. };
  17819. // 添加获取阿里云token的方法
  17820. $http.getAliToken = function (callback) {
  17821. //该地址需要开发者自行配置(每个后台的接口风格都不一样)
  17822. $http.get("api/open/v1/ali_oss_upload").then(function (data) {
  17823. /*
  17824. *接口返回参数:
  17825. *visitPrefix: 访问文件的域名
  17826. *folderPath: 上传的文件夹
  17827. *region: 地区
  17828. *bucket: 阿里云的 bucket
  17829. *accessKeyId: 阿里云的访问ID
  17830. *accessKeySecret: 阿里云的访问密钥
  17831. *stsToken: 阿里云的访问token
  17832. */
  17833. callback({
  17834. accessKeyId: data.accessKeyId,
  17835. accessKeySecret: data.accessKeySecret,
  17836. bucket: data.bucket,
  17837. region: data.region,
  17838. visitPrefix: data.visitPrefix,
  17839. token: data.token,
  17840. folderPath: data.folderPath,
  17841. stsToken: data.securityToken
  17842. });
  17843. });
  17844. };
  17845. //当前接口请求数
  17846. var requestNum = 0;
  17847. //请求开始拦截器
  17848. $http.requestStart = function (options) {
  17849. if (options.load) {
  17850. if (requestNum <= 0) {
  17851. //打开加载动画
  17852. uni.showLoading({
  17853. title: '加载中',
  17854. mask: true
  17855. });
  17856. }
  17857. requestNum += 1;
  17858. }
  17859. // 图片、视频上传大小限制
  17860. if (options.method == "FILE") {
  17861. // 文件最大字节: options.maxSize 可以在调用方法的时候加入参数
  17862. var maxSize = options.maxSize || '';
  17863. var _iterator = _createForOfIteratorHelper(options.files),
  17864. _step;
  17865. try {
  17866. for (_iterator.s(); !(_step = _iterator.n()).done;) {
  17867. var item = _step.value;
  17868. if (item.fileType == 'image') {
  17869. if (maxSize && item.size > maxSize) {
  17870. setTimeout(function () {
  17871. uni.showToast({
  17872. title: "图片过大,请重新上传",
  17873. icon: "none"
  17874. });
  17875. }, 500);
  17876. return false;
  17877. }
  17878. } else if (item.fileType == "video") {
  17879. if (item.duration < 3) {
  17880. setTimeout(function () {
  17881. uni.showToast({
  17882. title: "视频长度不足3秒,请重新上传",
  17883. icon: "none"
  17884. });
  17885. }, 500);
  17886. return false;
  17887. }
  17888. }
  17889. }
  17890. } catch (err) {
  17891. _iterator.e(err);
  17892. } finally {
  17893. _iterator.f();
  17894. }
  17895. }
  17896. //请求前加入token
  17897. options.header['authorization'] = 'Bearer ' + uni.getStorageSync('token');
  17898. return options; // return false 表示请求拦截,不会继续请求
  17899. };
  17900. //请求结束
  17901. $http.requestEnd = function (options) {
  17902. //判断当前接口是否需要加载动画
  17903. if (options.load) {
  17904. requestNum = requestNum - 1;
  17905. if (requestNum <= 0) {
  17906. uni.hideLoading();
  17907. }
  17908. }
  17909. };
  17910. //登录弹窗次数
  17911. var loginPopupNum = 0;
  17912. //所有接口数据处理(可在接口里设置不调用此方法)
  17913. //此方法需要开发者根据各自的接口返回类型修改,以下只是模板
  17914. $http.dataFactory = /*#__PURE__*/function () {
  17915. var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(res) {
  17916. var httpData, content;
  17917. return _regenerator.default.wrap(function _callee$(_context) {
  17918. while (1) {
  17919. switch (_context.prev = _context.next) {
  17920. case 0:
  17921. console.log("接口请求数据", {
  17922. url: res.url,
  17923. resolve: res.response,
  17924. header: res.header,
  17925. data: res.data,
  17926. method: res.method
  17927. });
  17928. if (!(res.response.statusCode && res.response.statusCode == 200)) {
  17929. _context.next = 18;
  17930. break;
  17931. }
  17932. httpData = res.response.data;
  17933. if (typeof httpData == "string") {
  17934. httpData = JSON.parse(httpData);
  17935. }
  17936. /*********以下只是模板(及共参考),需要开发者根据各自的接口返回类型修改*********/
  17937. //判断数据是否请求成功
  17938. if (!(httpData.success || httpData.code == 200)) {
  17939. _context.next = 8;
  17940. break;
  17941. }
  17942. return _context.abrupt("return", Promise.resolve(httpData));
  17943. case 8:
  17944. if (!(httpData.code == "1000" || httpData.code == "401" || httpData.code == 1100)) {
  17945. _context.next = 14;
  17946. break;
  17947. }
  17948. content = '登录过期,请重新登录~';
  17949. if (loginPopupNum <= 0) {
  17950. loginPopupNum++;
  17951. uni.showModal({
  17952. title: '温馨提示',
  17953. content: content,
  17954. confirmText: "登录",
  17955. cancelText: "取消",
  17956. success: function success(res) {
  17957. loginPopupNum--;
  17958. if (res.confirm) {
  17959. uni.login({
  17960. provider: 'weixin',
  17961. //使用微信登录
  17962. success: function success(loginRes) {
  17963. $http.post('appraisal/WeiXin/getOpenId', {
  17964. code: loginRes.code
  17965. }).then(function (res) {
  17966. uni.setStorageSync('token', res.data.token);
  17967. uni.setStorageSync('openId', res.data.user.openId);
  17968. uni.setStorageSync('phonenumber', res.data.user.phonenumber);
  17969. uni.setStorageSync('userName', res.data.user.userName);
  17970. uni.setStorageSync('userId', res.data.user.userId);
  17971. }).catch(function (err) {});
  17972. }
  17973. });
  17974. // uni.navigateTo({
  17975. // url: "/pages/login/index"
  17976. // });
  17977. }
  17978. }
  17979. });
  17980. }
  17981. // 返回错误的结果(catch接受数据)
  17982. return _context.abrupt("return", Promise.reject({
  17983. statusCode: 0,
  17984. errMsg: "【request】" + (httpData.info || httpData.msg)
  17985. }));
  17986. case 14:
  17987. //其他错误提示
  17988. if (res.isPrompt) {
  17989. uni.showToast({
  17990. title: httpData.info || httpData.msg,
  17991. icon: "none",
  17992. duration: 3000
  17993. });
  17994. }
  17995. // 返回错误的结果(catch接受数据)
  17996. return _context.abrupt("return", Promise.reject({
  17997. statusCode: 0,
  17998. errMsg: "【request】" + (httpData.info || httpData.msg)
  17999. }));
  18000. case 16:
  18001. _context.next = 19;
  18002. break;
  18003. case 18:
  18004. return _context.abrupt("return", Promise.reject({
  18005. statusCode: res.response.statusCode,
  18006. errMsg: "【request】数据工厂验证不通过"
  18007. }));
  18008. case 19:
  18009. case "end":
  18010. return _context.stop();
  18011. }
  18012. }
  18013. }, _callee);
  18014. }));
  18015. return function (_x) {
  18016. return _ref.apply(this, arguments);
  18017. };
  18018. }();
  18019. // 错误回调
  18020. $http.requestError = function (e) {
  18021. // e.statusCode === 0 是参数效验错误抛出的
  18022. if (e.statusCode === 0) {
  18023. throw e;
  18024. } else {
  18025. uni.showToast({
  18026. title: "网络错误,请检查一下网络",
  18027. icon: "none"
  18028. });
  18029. }
  18030. };
  18031. var _default = $http;
  18032. exports.default = _default;
  18033. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18034. /***/ }),
  18035. /* 160 */
  18036. /*!**************************************************************************************************************!*\
  18037. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/zhouWei-request/js_sdk/request/index.js ***!
  18038. \**************************************************************************************************************/
  18039. /*! no static exports found */
  18040. /***/ (function(module, exports, __webpack_require__) {
  18041. "use strict";
  18042. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  18043. Object.defineProperty(exports, "__esModule", {
  18044. value: true
  18045. });
  18046. exports.default = void 0;
  18047. var _upload = _interopRequireDefault(__webpack_require__(/*! ./upload/upload.js */ 161));
  18048. /***************纯粹的数据请求(如果使用这种可以删除掉fileUpload.js)******************/
  18049. // import request from "./core/request.js";
  18050. // export default request;
  18051. /********数据请求同时继承了文件上传(包括七牛云上传)************/
  18052. var _default = _upload.default;
  18053. exports.default = _default;
  18054. /***/ }),
  18055. /* 161 */
  18056. /*!**********************************************************************************************************************!*\
  18057. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/zhouWei-request/js_sdk/request/upload/upload.js ***!
  18058. \**********************************************************************************************************************/
  18059. /*! no static exports found */
  18060. /***/ (function(module, exports, __webpack_require__) {
  18061. "use strict";
  18062. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  18063. Object.defineProperty(exports, "__esModule", {
  18064. value: true
  18065. });
  18066. exports.default = void 0;
  18067. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 56));
  18068. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  18069. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  18070. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 58));
  18071. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  18072. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  18073. var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ 162));
  18074. var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ 163));
  18075. var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ 165));
  18076. var _request2 = _interopRequireDefault(__webpack_require__(/*! ./../core/request.js */ 166));
  18077. var _utils = __webpack_require__(/*! ./../core/utils.js */ 167);
  18078. 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; }
  18079. 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; }
  18080. function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
  18081. function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
  18082. var _require = __webpack_require__(/*! ./utils */ 168),
  18083. chooseImage = _require.chooseImage,
  18084. chooseVideo = _require.chooseVideo,
  18085. qiniuUpload = _require.qiniuUpload,
  18086. aliUpload = _require.aliUpload,
  18087. urlUpload = _require.urlUpload;
  18088. var fileUpload = /*#__PURE__*/function (_request) {
  18089. (0, _inherits2.default)(fileUpload, _request);
  18090. var _super = _createSuper(fileUpload);
  18091. function fileUpload(props) {
  18092. (0, _classCallCheck2.default)(this, fileUpload);
  18093. // 调用实现父类的构造函数
  18094. return _super.call(this, props);
  18095. }
  18096. //七牛云上传图片
  18097. (0, _createClass2.default)(fileUpload, [{
  18098. key: "qnImgUpload",
  18099. value: function () {
  18100. var _qnImgUpload = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  18101. var options,
  18102. files,
  18103. _args = arguments;
  18104. return _regenerator.default.wrap(function _callee$(_context) {
  18105. while (1) {
  18106. switch (_context.prev = _context.next) {
  18107. case 0:
  18108. options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
  18109. _context.prev = 1;
  18110. _context.next = 4;
  18111. return chooseImage(options);
  18112. case 4:
  18113. files = _context.sent;
  18114. // 选择完成回调
  18115. options.onSelectComplete && options.onSelectComplete(files);
  18116. _context.next = 12;
  18117. break;
  18118. case 8:
  18119. _context.prev = 8;
  18120. _context.t0 = _context["catch"](1);
  18121. this.requestError && this.requestError(_context.t0);
  18122. return _context.abrupt("return", Promise.reject(_context.t0));
  18123. case 12:
  18124. if (!files) {
  18125. _context.next = 14;
  18126. break;
  18127. }
  18128. return _context.abrupt("return", this.qnFileUpload(_objectSpread(_objectSpread({}, options), {}, {
  18129. files: files
  18130. })));
  18131. case 14:
  18132. case "end":
  18133. return _context.stop();
  18134. }
  18135. }
  18136. }, _callee, this, [[1, 8]]);
  18137. }));
  18138. function qnImgUpload() {
  18139. return _qnImgUpload.apply(this, arguments);
  18140. }
  18141. return qnImgUpload;
  18142. }() //七牛云上传视频
  18143. }, {
  18144. key: "qnVideoUpload",
  18145. value: function () {
  18146. var _qnVideoUpload = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
  18147. var options,
  18148. files,
  18149. _args2 = arguments;
  18150. return _regenerator.default.wrap(function _callee2$(_context2) {
  18151. while (1) {
  18152. switch (_context2.prev = _context2.next) {
  18153. case 0:
  18154. options = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
  18155. _context2.prev = 1;
  18156. _context2.next = 4;
  18157. return chooseVideo(options);
  18158. case 4:
  18159. files = _context2.sent;
  18160. // 选择完成回调
  18161. options.onSelectComplete && options.onSelectComplete(files);
  18162. _context2.next = 12;
  18163. break;
  18164. case 8:
  18165. _context2.prev = 8;
  18166. _context2.t0 = _context2["catch"](1);
  18167. this.requestError && this.requestError(_context2.t0);
  18168. return _context2.abrupt("return", Promise.reject(_context2.t0));
  18169. case 12:
  18170. if (!files) {
  18171. _context2.next = 14;
  18172. break;
  18173. }
  18174. return _context2.abrupt("return", this.qnFileUpload(_objectSpread(_objectSpread({}, options), {}, {
  18175. files: files
  18176. })));
  18177. case 14:
  18178. case "end":
  18179. return _context2.stop();
  18180. }
  18181. }
  18182. }, _callee2, this, [[1, 8]]);
  18183. }));
  18184. function qnVideoUpload() {
  18185. return _qnVideoUpload.apply(this, arguments);
  18186. }
  18187. return qnVideoUpload;
  18188. }() //七牛云文件上传(支持多张上传)
  18189. }, {
  18190. key: "qnFileUpload",
  18191. value: function () {
  18192. var _qnFileUpload = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
  18193. var options,
  18194. requestInfo,
  18195. requestStart,
  18196. changekeys,
  18197. requestResult,
  18198. _args3 = arguments;
  18199. return _regenerator.default.wrap(function _callee3$(_context3) {
  18200. while (1) {
  18201. switch (_context3.prev = _context3.next) {
  18202. case 0:
  18203. options = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
  18204. _context3.prev = 1;
  18205. // 数据合并
  18206. requestInfo = _objectSpread(_objectSpread(_objectSpread({}, this.config), options), {}, {
  18207. header: {},
  18208. method: "FILE"
  18209. });
  18210. //请求前回调
  18211. if (!this.requestStart) {
  18212. _context3.next = 11;
  18213. break;
  18214. }
  18215. requestStart = this.requestStart(requestInfo);
  18216. if (!((0, _typeof2.default)(requestStart) == "object")) {
  18217. _context3.next = 10;
  18218. break;
  18219. }
  18220. changekeys = ["load", "files"];
  18221. changekeys.forEach(function (key) {
  18222. requestInfo[key] = requestStart[key];
  18223. });
  18224. _context3.next = 11;
  18225. break;
  18226. case 10:
  18227. throw {
  18228. errMsg: "【request】请求开始拦截器未通过",
  18229. statusCode: 0,
  18230. data: requestInfo.data,
  18231. method: requestInfo.method,
  18232. header: requestInfo.header,
  18233. url: requestInfo.url
  18234. };
  18235. case 11:
  18236. _context3.next = 13;
  18237. return qiniuUpload(requestInfo, this.getQnToken);
  18238. case 13:
  18239. requestResult = _context3.sent;
  18240. return _context3.abrupt("return", Promise.resolve(requestResult));
  18241. case 17:
  18242. _context3.prev = 17;
  18243. _context3.t0 = _context3["catch"](1);
  18244. this.requestError && this.requestError(_context3.t0);
  18245. return _context3.abrupt("return", Promise.reject(_context3.t0));
  18246. case 21:
  18247. _context3.prev = 21;
  18248. this.requestEnd && this.requestEnd(requestInfo);
  18249. return _context3.finish(21);
  18250. case 24:
  18251. case "end":
  18252. return _context3.stop();
  18253. }
  18254. }
  18255. }, _callee3, this, [[1, 17, 21, 24]]);
  18256. }));
  18257. function qnFileUpload() {
  18258. return _qnFileUpload.apply(this, arguments);
  18259. }
  18260. return qnFileUpload;
  18261. }() //阿里云上传图片
  18262. }, {
  18263. key: "aliImgUpload",
  18264. value: function () {
  18265. var _aliImgUpload = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
  18266. var options,
  18267. files,
  18268. _args4 = arguments;
  18269. return _regenerator.default.wrap(function _callee4$(_context4) {
  18270. while (1) {
  18271. switch (_context4.prev = _context4.next) {
  18272. case 0:
  18273. options = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
  18274. _context4.prev = 1;
  18275. _context4.next = 4;
  18276. return chooseImage(options);
  18277. case 4:
  18278. files = _context4.sent;
  18279. // 选择完成回调
  18280. options.onSelectComplete && options.onSelectComplete(files);
  18281. _context4.next = 12;
  18282. break;
  18283. case 8:
  18284. _context4.prev = 8;
  18285. _context4.t0 = _context4["catch"](1);
  18286. this.requestError && this.requestError(_context4.t0);
  18287. return _context4.abrupt("return", Promise.reject(_context4.t0));
  18288. case 12:
  18289. if (!files) {
  18290. _context4.next = 14;
  18291. break;
  18292. }
  18293. return _context4.abrupt("return", this.aliFileUpload(_objectSpread(_objectSpread({}, options), {}, {
  18294. files: files
  18295. })));
  18296. case 14:
  18297. case "end":
  18298. return _context4.stop();
  18299. }
  18300. }
  18301. }, _callee4, this, [[1, 8]]);
  18302. }));
  18303. function aliImgUpload() {
  18304. return _aliImgUpload.apply(this, arguments);
  18305. }
  18306. return aliImgUpload;
  18307. }() //阿里云上传视频
  18308. }, {
  18309. key: "aliVideoUpload",
  18310. value: function () {
  18311. var _aliVideoUpload = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
  18312. var options,
  18313. files,
  18314. _args5 = arguments;
  18315. return _regenerator.default.wrap(function _callee5$(_context5) {
  18316. while (1) {
  18317. switch (_context5.prev = _context5.next) {
  18318. case 0:
  18319. options = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
  18320. _context5.prev = 1;
  18321. _context5.next = 4;
  18322. return chooseVideo(options);
  18323. case 4:
  18324. files = _context5.sent;
  18325. // 选择完成回调
  18326. options.onSelectComplete && options.onSelectComplete(files);
  18327. _context5.next = 12;
  18328. break;
  18329. case 8:
  18330. _context5.prev = 8;
  18331. _context5.t0 = _context5["catch"](1);
  18332. this.requestError && this.requestError(_context5.t0);
  18333. return _context5.abrupt("return", Promise.reject(_context5.t0));
  18334. case 12:
  18335. if (!files) {
  18336. _context5.next = 14;
  18337. break;
  18338. }
  18339. return _context5.abrupt("return", this.aliFileUpload(_objectSpread(_objectSpread({}, options), {}, {
  18340. files: files
  18341. })));
  18342. case 14:
  18343. case "end":
  18344. return _context5.stop();
  18345. }
  18346. }
  18347. }, _callee5, this, [[1, 8]]);
  18348. }));
  18349. function aliVideoUpload() {
  18350. return _aliVideoUpload.apply(this, arguments);
  18351. }
  18352. return aliVideoUpload;
  18353. }() //阿里云文件上传(支持多张上传)
  18354. }, {
  18355. key: "aliFileUpload",
  18356. value: function () {
  18357. var _aliFileUpload = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6() {
  18358. var options,
  18359. requestInfo,
  18360. requestStart,
  18361. changekeys,
  18362. requestResult,
  18363. _args6 = arguments;
  18364. return _regenerator.default.wrap(function _callee6$(_context6) {
  18365. while (1) {
  18366. switch (_context6.prev = _context6.next) {
  18367. case 0:
  18368. options = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
  18369. _context6.prev = 1;
  18370. // 数据合并
  18371. requestInfo = _objectSpread(_objectSpread(_objectSpread({}, this.config), options), {}, {
  18372. header: {},
  18373. method: "FILE"
  18374. });
  18375. //请求前回调
  18376. if (!this.requestStart) {
  18377. _context6.next = 11;
  18378. break;
  18379. }
  18380. requestStart = this.requestStart(requestInfo);
  18381. if (!((0, _typeof2.default)(requestStart) == "object")) {
  18382. _context6.next = 10;
  18383. break;
  18384. }
  18385. changekeys = ["load", "files"];
  18386. changekeys.forEach(function (key) {
  18387. requestInfo[key] = requestStart[key];
  18388. });
  18389. _context6.next = 11;
  18390. break;
  18391. case 10:
  18392. throw {
  18393. errMsg: "【request】请求开始拦截器未通过",
  18394. statusCode: 0,
  18395. data: requestInfo.data,
  18396. method: requestInfo.method,
  18397. header: requestInfo.header,
  18398. url: requestInfo.url
  18399. };
  18400. case 11:
  18401. _context6.next = 13;
  18402. return aliUpload(requestInfo, this.getAliToken);
  18403. case 13:
  18404. requestResult = _context6.sent;
  18405. return _context6.abrupt("return", Promise.resolve(requestResult));
  18406. case 17:
  18407. _context6.prev = 17;
  18408. _context6.t0 = _context6["catch"](1);
  18409. this.requestError && this.requestError(_context6.t0);
  18410. return _context6.abrupt("return", Promise.reject(_context6.t0));
  18411. case 21:
  18412. _context6.prev = 21;
  18413. this.requestEnd && this.requestEnd(requestInfo);
  18414. return _context6.finish(21);
  18415. case 24:
  18416. case "end":
  18417. return _context6.stop();
  18418. }
  18419. }
  18420. }, _callee6, this, [[1, 17, 21, 24]]);
  18421. }));
  18422. function aliFileUpload() {
  18423. return _aliFileUpload.apply(this, arguments);
  18424. }
  18425. return aliFileUpload;
  18426. }() //本地服务器图片上传
  18427. }, {
  18428. key: "urlImgUpload",
  18429. value: function () {
  18430. var _urlImgUpload = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
  18431. var options,
  18432. _args7 = arguments;
  18433. return _regenerator.default.wrap(function _callee7$(_context7) {
  18434. while (1) {
  18435. switch (_context7.prev = _context7.next) {
  18436. case 0:
  18437. options = {};
  18438. if (_args7[0]) {
  18439. if (typeof _args7[0] == "string") {
  18440. options.url = _args7[0];
  18441. } else if ((0, _typeof2.default)(_args7[0]) == "object") {
  18442. options = Object.assign(options, _args7[0]);
  18443. }
  18444. }
  18445. if (_args7[1] && (0, _typeof2.default)(_args7[1]) == "object") {
  18446. options = Object.assign(options, _args7[1]);
  18447. }
  18448. _context7.prev = 3;
  18449. _context7.next = 6;
  18450. return chooseImage(options);
  18451. case 6:
  18452. options.files = _context7.sent;
  18453. // 选择完成回调
  18454. options.onSelectComplete && options.onSelectComplete(options.files);
  18455. _context7.next = 14;
  18456. break;
  18457. case 10:
  18458. _context7.prev = 10;
  18459. _context7.t0 = _context7["catch"](3);
  18460. this.requestError && this.requestError(_context7.t0);
  18461. return _context7.abrupt("return", Promise.reject(_context7.t0));
  18462. case 14:
  18463. if (!options.files) {
  18464. _context7.next = 16;
  18465. break;
  18466. }
  18467. return _context7.abrupt("return", this.urlFileUpload(options));
  18468. case 16:
  18469. case "end":
  18470. return _context7.stop();
  18471. }
  18472. }
  18473. }, _callee7, this, [[3, 10]]);
  18474. }));
  18475. function urlImgUpload() {
  18476. return _urlImgUpload.apply(this, arguments);
  18477. }
  18478. return urlImgUpload;
  18479. }() //本地服务器上传视频
  18480. }, {
  18481. key: "urlVideoUpload",
  18482. value: function () {
  18483. var _urlVideoUpload = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
  18484. var options,
  18485. _args8 = arguments;
  18486. return _regenerator.default.wrap(function _callee8$(_context8) {
  18487. while (1) {
  18488. switch (_context8.prev = _context8.next) {
  18489. case 0:
  18490. options = {};
  18491. if (_args8[0]) {
  18492. if (typeof _args8[0] == "string") {
  18493. options.url = _args8[0];
  18494. } else if ((0, _typeof2.default)(_args8[0]) == "object") {
  18495. options = Object.assign(options, _args8[0]);
  18496. }
  18497. }
  18498. if (_args8[1] && (0, _typeof2.default)(_args8[1]) == "object") {
  18499. options = Object.assign(options, _args8[1]);
  18500. }
  18501. _context8.prev = 3;
  18502. _context8.next = 6;
  18503. return chooseVideo(options);
  18504. case 6:
  18505. options.files = _context8.sent;
  18506. // 选择完成回调
  18507. options.onSelectComplete && options.onSelectComplete(options.files);
  18508. _context8.next = 14;
  18509. break;
  18510. case 10:
  18511. _context8.prev = 10;
  18512. _context8.t0 = _context8["catch"](3);
  18513. this.requestError && this.requestError(_context8.t0);
  18514. return _context8.abrupt("return", Promise.reject(_context8.t0));
  18515. case 14:
  18516. if (!options.files) {
  18517. _context8.next = 16;
  18518. break;
  18519. }
  18520. return _context8.abrupt("return", this.urlFileUpload(options));
  18521. case 16:
  18522. case "end":
  18523. return _context8.stop();
  18524. }
  18525. }
  18526. }, _callee8, this, [[3, 10]]);
  18527. }));
  18528. function urlVideoUpload() {
  18529. return _urlVideoUpload.apply(this, arguments);
  18530. }
  18531. return urlVideoUpload;
  18532. }() //本地服务器文件上传方法
  18533. }, {
  18534. key: "urlFileUpload",
  18535. value: function () {
  18536. var _urlFileUpload = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9() {
  18537. var requestInfo,
  18538. runRequestStart,
  18539. requestStart,
  18540. changekeys,
  18541. requestResult,
  18542. _args9 = arguments;
  18543. return _regenerator.default.wrap(function _callee9$(_context9) {
  18544. while (1) {
  18545. switch (_context9.prev = _context9.next) {
  18546. case 0:
  18547. requestInfo = {
  18548. method: "FILE"
  18549. };
  18550. if (_args9[0]) {
  18551. if (typeof _args9[0] == "string") {
  18552. requestInfo.url = _args9[0];
  18553. } else if ((0, _typeof2.default)(_args9[0]) == "object") {
  18554. requestInfo = Object.assign(requestInfo, _args9[0]);
  18555. }
  18556. }
  18557. if (_args9[1] && (0, _typeof2.default)(_args9[1]) == "object") {
  18558. requestInfo = Object.assign(requestInfo, _args9[1]);
  18559. }
  18560. if (!requestInfo.url && this.defaultUploadUrl) {
  18561. requestInfo.url = this.defaultUploadUrl;
  18562. }
  18563. if (!requestInfo.name && this.defaultFileName) {
  18564. requestInfo.name = this.defaultFileName;
  18565. }
  18566. // 请求数据
  18567. // 是否运行过请求开始钩子
  18568. runRequestStart = false;
  18569. _context9.prev = 6;
  18570. if (requestInfo.url) {
  18571. _context9.next = 9;
  18572. break;
  18573. }
  18574. throw {
  18575. errMsg: "【request】文件上传缺失数据url",
  18576. statusCode: 0,
  18577. data: requestInfo.data,
  18578. method: requestInfo.method,
  18579. header: requestInfo.header,
  18580. url: requestInfo.url
  18581. };
  18582. case 9:
  18583. // 数据合并
  18584. requestInfo = (0, _utils.mergeConfig)(this, requestInfo);
  18585. // 代表之前运行到这里
  18586. runRequestStart = true;
  18587. //请求前回调
  18588. if (!this.requestStart) {
  18589. _context9.next = 19;
  18590. break;
  18591. }
  18592. requestStart = this.requestStart(requestInfo);
  18593. if (!((0, _typeof2.default)(requestStart) == "object")) {
  18594. _context9.next = 18;
  18595. break;
  18596. }
  18597. changekeys = ["data", "header", "isPrompt", "load", "isFactory", "files"];
  18598. changekeys.forEach(function (key) {
  18599. requestInfo[key] = requestStart[key];
  18600. });
  18601. _context9.next = 19;
  18602. break;
  18603. case 18:
  18604. throw {
  18605. errMsg: "【request】请求开始拦截器未通过",
  18606. statusCode: 0,
  18607. data: requestInfo.data,
  18608. method: requestInfo.method,
  18609. header: requestInfo.header,
  18610. url: requestInfo.url
  18611. };
  18612. case 19:
  18613. _context9.next = 21;
  18614. return urlUpload(requestInfo, this.dataFactory);
  18615. case 21:
  18616. requestResult = _context9.sent;
  18617. return _context9.abrupt("return", Promise.resolve(requestResult));
  18618. case 25:
  18619. _context9.prev = 25;
  18620. _context9.t0 = _context9["catch"](6);
  18621. this.requestError && this.requestError(_context9.t0);
  18622. return _context9.abrupt("return", Promise.reject(_context9.t0));
  18623. case 29:
  18624. _context9.prev = 29;
  18625. if (runRequestStart) {
  18626. this.requestEnd && this.requestEnd(requestInfo);
  18627. }
  18628. return _context9.finish(29);
  18629. case 32:
  18630. case "end":
  18631. return _context9.stop();
  18632. }
  18633. }
  18634. }, _callee9, this, [[6, 25, 29, 32]]);
  18635. }));
  18636. function urlFileUpload() {
  18637. return _urlFileUpload.apply(this, arguments);
  18638. }
  18639. return urlFileUpload;
  18640. }()
  18641. }]);
  18642. return fileUpload;
  18643. }(_request2.default);
  18644. exports.default = fileUpload;
  18645. /***/ }),
  18646. /* 162 */
  18647. /*!*********************************************************!*\
  18648. !*** ./node_modules/@babel/runtime/helpers/inherits.js ***!
  18649. \*********************************************************/
  18650. /*! no static exports found */
  18651. /***/ (function(module, exports, __webpack_require__) {
  18652. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  18653. function _inherits(subClass, superClass) {
  18654. if (typeof superClass !== "function" && superClass !== null) {
  18655. throw new TypeError("Super expression must either be null or a function");
  18656. }
  18657. subClass.prototype = Object.create(superClass && superClass.prototype, {
  18658. constructor: {
  18659. value: subClass,
  18660. writable: true,
  18661. configurable: true
  18662. }
  18663. });
  18664. Object.defineProperty(subClass, "prototype", {
  18665. writable: false
  18666. });
  18667. if (superClass) setPrototypeOf(subClass, superClass);
  18668. }
  18669. module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18670. /***/ }),
  18671. /* 163 */
  18672. /*!**************************************************************************!*\
  18673. !*** ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
  18674. \**************************************************************************/
  18675. /*! no static exports found */
  18676. /***/ (function(module, exports, __webpack_require__) {
  18677. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  18678. var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ 164);
  18679. function _possibleConstructorReturn(self, call) {
  18680. if (call && (_typeof(call) === "object" || typeof call === "function")) {
  18681. return call;
  18682. } else if (call !== void 0) {
  18683. throw new TypeError("Derived constructors may only return object or undefined");
  18684. }
  18685. return assertThisInitialized(self);
  18686. }
  18687. module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18688. /***/ }),
  18689. /* 164 */
  18690. /*!**********************************************************************!*\
  18691. !*** ./node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
  18692. \**********************************************************************/
  18693. /*! no static exports found */
  18694. /***/ (function(module, exports) {
  18695. function _assertThisInitialized(self) {
  18696. if (self === void 0) {
  18697. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  18698. }
  18699. return self;
  18700. }
  18701. module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18702. /***/ }),
  18703. /* 165 */
  18704. /*!***************************************************************!*\
  18705. !*** ./node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
  18706. \***************************************************************/
  18707. /*! no static exports found */
  18708. /***/ (function(module, exports) {
  18709. function _getPrototypeOf(o) {
  18710. module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
  18711. return o.__proto__ || Object.getPrototypeOf(o);
  18712. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18713. return _getPrototypeOf(o);
  18714. }
  18715. module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18716. /***/ }),
  18717. /* 166 */
  18718. /*!*********************************************************************************************************************!*\
  18719. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/zhouWei-request/js_sdk/request/core/request.js ***!
  18720. \*********************************************************************************************************************/
  18721. /*! no static exports found */
  18722. /***/ (function(module, exports, __webpack_require__) {
  18723. "use strict";
  18724. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  18725. Object.defineProperty(exports, "__esModule", {
  18726. value: true
  18727. });
  18728. exports.default = void 0;
  18729. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 56));
  18730. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  18731. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 58));
  18732. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  18733. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  18734. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  18735. var _utils = __webpack_require__(/*! ./utils.js */ 167);
  18736. 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; }
  18737. 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; }
  18738. var request = /*#__PURE__*/function () {
  18739. function request(options) {
  18740. (0, _classCallCheck2.default)(this, request);
  18741. //请求公共地址
  18742. this.baseUrl = options.baseUrl || "";
  18743. //公共文件上传请求地址
  18744. this.fileUrl = options.fileUrl || "";
  18745. // 超时时间
  18746. this.timeout = options.timeout || 100000;
  18747. // 服务器上传图片默认url
  18748. this.defaultUploadUrl = options.defaultUploadUrl || "";
  18749. // 服务器上传文件名称
  18750. this.defaultFileName = options.defaultFileName || "";
  18751. //默认请求头
  18752. this.header = options.header || {};
  18753. //默认配置
  18754. this.config = options.config || {
  18755. isPrompt: false,
  18756. load: true,
  18757. isFactory: true,
  18758. resend: 0
  18759. };
  18760. }
  18761. //post请求
  18762. (0, _createClass2.default)(request, [{
  18763. key: "post",
  18764. value: function post() {
  18765. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  18766. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  18767. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  18768. return this.request(_objectSpread({
  18769. method: "POST",
  18770. data: data,
  18771. url: url
  18772. }, options));
  18773. }
  18774. //get请求
  18775. }, {
  18776. key: "get",
  18777. value: function get() {
  18778. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  18779. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  18780. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  18781. return this.request(_objectSpread({
  18782. method: "GET",
  18783. data: data,
  18784. url: url
  18785. }, options));
  18786. }
  18787. //put请求
  18788. }, {
  18789. key: "put",
  18790. value: function put() {
  18791. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  18792. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  18793. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  18794. return this.request(_objectSpread({
  18795. method: "PUT",
  18796. data: data,
  18797. url: url
  18798. }, options));
  18799. }
  18800. //delete请求
  18801. }, {
  18802. key: "delete",
  18803. value: function _delete() {
  18804. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  18805. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  18806. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  18807. return this.request(_objectSpread({
  18808. method: "DELETE",
  18809. data: data,
  18810. url: url
  18811. }, options));
  18812. }
  18813. //jsonp请求(只限于H5使用)
  18814. }, {
  18815. key: "jsonp",
  18816. value: function jsonp() {
  18817. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  18818. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  18819. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  18820. return this.request(_objectSpread({
  18821. method: "JSONP",
  18822. data: data,
  18823. url: url
  18824. }, options));
  18825. }
  18826. //接口请求方法
  18827. }, {
  18828. key: "request",
  18829. value: function () {
  18830. var _request = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(data) {
  18831. var requestInfo, runRequestStart, requestStart, changekeys, requestResult, result;
  18832. return _regenerator.default.wrap(function _callee$(_context) {
  18833. while (1) {
  18834. switch (_context.prev = _context.next) {
  18835. case 0:
  18836. // 请求数据
  18837. runRequestStart = false;
  18838. _context.prev = 1;
  18839. if (data.url) {
  18840. _context.next = 4;
  18841. break;
  18842. }
  18843. throw {
  18844. errMsg: "【request】缺失数据url",
  18845. statusCode: 0
  18846. };
  18847. case 4:
  18848. // 数据合并
  18849. requestInfo = (0, _utils.mergeConfig)(this, data);
  18850. // 代表之前运行到这里
  18851. runRequestStart = true;
  18852. //请求前回调
  18853. if (!this.requestStart) {
  18854. _context.next = 14;
  18855. break;
  18856. }
  18857. requestStart = this.requestStart(requestInfo);
  18858. if (!((0, _typeof2.default)(requestStart) == "object")) {
  18859. _context.next = 13;
  18860. break;
  18861. }
  18862. changekeys = ["data", "header", "isPrompt", "load", "isFactory"];
  18863. changekeys.forEach(function (key) {
  18864. requestInfo[key] = requestStart[key];
  18865. });
  18866. _context.next = 14;
  18867. break;
  18868. case 13:
  18869. throw {
  18870. errMsg: "【request】请求开始拦截器未通过",
  18871. statusCode: 0,
  18872. data: requestInfo.data,
  18873. method: requestInfo.method,
  18874. header: requestInfo.header,
  18875. url: requestInfo.url
  18876. };
  18877. case 14:
  18878. requestResult = {};
  18879. if (!(requestInfo.method == "JSONP")) {
  18880. _context.next = 21;
  18881. break;
  18882. }
  18883. _context.next = 18;
  18884. return (0, _utils.jsonpRequest)(requestInfo);
  18885. case 18:
  18886. requestResult = _context.sent;
  18887. _context.next = 24;
  18888. break;
  18889. case 21:
  18890. _context.next = 23;
  18891. return (0, _utils.dispatchRequest)(requestInfo);
  18892. case 23:
  18893. requestResult = _context.sent;
  18894. case 24:
  18895. if (!(requestInfo.isFactory && this.dataFactory)) {
  18896. _context.next = 31;
  18897. break;
  18898. }
  18899. _context.next = 27;
  18900. return this.dataFactory(_objectSpread(_objectSpread({}, requestInfo), {}, {
  18901. response: requestResult
  18902. }));
  18903. case 27:
  18904. result = _context.sent;
  18905. return _context.abrupt("return", Promise.resolve(result));
  18906. case 31:
  18907. return _context.abrupt("return", Promise.resolve(requestResult));
  18908. case 32:
  18909. _context.next = 38;
  18910. break;
  18911. case 34:
  18912. _context.prev = 34;
  18913. _context.t0 = _context["catch"](1);
  18914. this.requestError && this.requestError(_context.t0);
  18915. return _context.abrupt("return", Promise.reject(_context.t0));
  18916. case 38:
  18917. _context.prev = 38;
  18918. // 如果请求开始未运行到,请求结束也不运行
  18919. if (runRequestStart) {
  18920. this.requestEnd && this.requestEnd(requestInfo);
  18921. }
  18922. return _context.finish(38);
  18923. case 41:
  18924. case "end":
  18925. return _context.stop();
  18926. }
  18927. }
  18928. }, _callee, this, [[1, 34, 38, 41]]);
  18929. }));
  18930. function request(_x) {
  18931. return _request.apply(this, arguments);
  18932. }
  18933. return request;
  18934. }()
  18935. }]);
  18936. return request;
  18937. }();
  18938. exports.default = request;
  18939. /***/ }),
  18940. /* 167 */
  18941. /*!*******************************************************************************************************************!*\
  18942. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/zhouWei-request/js_sdk/request/core/utils.js ***!
  18943. \*******************************************************************************************************************/
  18944. /*! no static exports found */
  18945. /***/ (function(module, exports, __webpack_require__) {
  18946. "use strict";
  18947. /* WEBPACK VAR INJECTION */(function(uni) {
  18948. Object.defineProperty(exports, "__esModule", {
  18949. value: true
  18950. });
  18951. exports.mergeConfig = exports.jsonpRequest = exports.dispatchRequest = void 0;
  18952. // 获取合并的数据
  18953. var mergeConfig = function mergeConfig(_this, options) {
  18954. //判断url是不是链接
  18955. var urlType = /^(http|https):\/\//.test(options.url);
  18956. var config = Object.assign({
  18957. timeout: _this.timeout
  18958. }, _this.config, options);
  18959. if (options.method == "FILE") {
  18960. config.url = urlType ? options.url : _this.fileUrl + options.url;
  18961. } else {
  18962. config.url = urlType ? options.url : _this.baseUrl + options.url;
  18963. }
  18964. //请求头
  18965. if (options.header) {
  18966. config.header = Object.assign({}, _this.header, options.header);
  18967. } else {
  18968. config.header = Object.assign({}, _this.header);
  18969. }
  18970. return config;
  18971. };
  18972. // 请求
  18973. exports.mergeConfig = mergeConfig;
  18974. var dispatchRequest = function dispatchRequest(requestInfo) {
  18975. return new Promise(function (resolve, reject) {
  18976. var requestAbort = true;
  18977. var requestData = {
  18978. url: requestInfo.url,
  18979. header: requestInfo.header,
  18980. //加入请求头
  18981. success: function success(res) {
  18982. requestAbort = false;
  18983. resolve(res);
  18984. },
  18985. fail: function fail(err) {
  18986. requestAbort = false;
  18987. if (err.errMsg == "request:fail abort") {
  18988. reject({
  18989. errMsg: "请求超时,请重新尝试",
  18990. statusCode: 0
  18991. });
  18992. } else {
  18993. reject(err);
  18994. }
  18995. }
  18996. };
  18997. //请求类型
  18998. if (requestInfo.method) {
  18999. requestData.method = requestInfo.method;
  19000. }
  19001. if (requestInfo.data) {
  19002. requestData.data = requestInfo.data;
  19003. }
  19004. if (requestInfo.timeout) {
  19005. requestData.timeout = requestInfo.timeout;
  19006. }
  19007. if (requestInfo.dataType) {
  19008. requestData.dataType = requestInfo.dataType;
  19009. }
  19010. if (requestInfo.responseType) {
  19011. requestData.responseType = requestInfo.responseType;
  19012. }
  19013. var requestTask = uni.request(requestData);
  19014. setTimeout(function () {
  19015. if (requestAbort) {
  19016. requestTask.abort();
  19017. }
  19018. }, requestInfo.timeout);
  19019. });
  19020. };
  19021. // jsonp请求
  19022. exports.dispatchRequest = dispatchRequest;
  19023. var jsonpRequest = function jsonpRequest(requestInfo) {
  19024. return new Promise(function (resolve, reject) {
  19025. var dataStr = '';
  19026. Object.keys(requestInfo.data).forEach(function (key) {
  19027. dataStr += key + '=' + requestInfo.data[key] + '&';
  19028. });
  19029. //匹配最后一个&并去除
  19030. if (dataStr !== '') {
  19031. dataStr = dataStr.substr(0, dataStr.lastIndexOf('&'));
  19032. }
  19033. requestInfo.url = requestInfo.url + '?' + dataStr;
  19034. var callbackName = "callback" + Math.ceil(Math.random() * 1000000);
  19035. });
  19036. };
  19037. exports.jsonpRequest = jsonpRequest;
  19038. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19039. /***/ }),
  19040. /* 168 */
  19041. /*!*********************************************************************************************************************!*\
  19042. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/zhouWei-request/js_sdk/request/upload/utils.js ***!
  19043. \*********************************************************************************************************************/
  19044. /*! no static exports found */
  19045. /***/ (function(module, exports, __webpack_require__) {
  19046. "use strict";
  19047. /* WEBPACK VAR INJECTION */(function(uni) {
  19048. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  19049. Object.defineProperty(exports, "__esModule", {
  19050. value: true
  19051. });
  19052. exports.urlUpload = exports.randomChar = exports.qiniuUpload = exports.chooseVideo = exports.chooseImage = exports.aliUpload = void 0;
  19053. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  19054. 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; }
  19055. 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; }
  19056. var qiniuUploader = __webpack_require__(/*! ./qiniuUploader */ 169);
  19057. var aliUploader = __webpack_require__(/*! ./aliUploader */ 170);
  19058. //七牛云上传文件命名
  19059. var randomChar = function randomChar(l) {
  19060. var url = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
  19061. var x = "0123456789qwertyuioplkjhgfdsazxcvbnm";
  19062. var tmp = "";
  19063. var time = new Date();
  19064. for (var i = 0; i < l; i++) {
  19065. tmp += x.charAt(Math.ceil(Math.random() * 100000000) % x.length);
  19066. }
  19067. return "file/" + url + time.getTime() + tmp;
  19068. };
  19069. //图片选择
  19070. exports.randomChar = randomChar;
  19071. var chooseImage = function chooseImage(data) {
  19072. return new Promise(function (resolve, reject) {
  19073. uni.chooseImage({
  19074. count: data.count || 9,
  19075. //默认9
  19076. sizeType: data.sizeType || ['original', 'compressed'],
  19077. //可以指定是原图还是压缩图,默认二者都有
  19078. sourceType: data.sourceType || ['album', 'camera'],
  19079. //从相册选择
  19080. success: function success(res) {
  19081. for (var i = 0; i < res.tempFiles.length; i++) {
  19082. res.tempFiles[i].fileType = "image";
  19083. }
  19084. resolve(res.tempFiles);
  19085. },
  19086. fail: function fail(err) {
  19087. reject({
  19088. errMsg: err.errMsg,
  19089. errCode: err.errCode,
  19090. statusCode: 0
  19091. });
  19092. }
  19093. });
  19094. });
  19095. };
  19096. //视频选择
  19097. exports.chooseImage = chooseImage;
  19098. var chooseVideo = function chooseVideo(data) {
  19099. return new Promise(function (resolve, reject) {
  19100. uni.chooseVideo({
  19101. sourceType: data.sourceType || ['album', 'camera'],
  19102. //从相册选择
  19103. compressed: data.compressed || false,
  19104. //是否压缩所选的视频源文件,默认值为 true,需要压缩。
  19105. maxDuration: data.maxDuration || 60,
  19106. //拍摄视频最长拍摄时间,单位秒。最长支持 60 秒。
  19107. camera: data.camera || 'back',
  19108. //'front'、'back',默认'back'
  19109. success: function success(res) {
  19110. var files = [{
  19111. path: res.tempFilePath,
  19112. fileType: "video"
  19113. }];
  19114. files[0].duration = res.duration;
  19115. files[0].size = res.size;
  19116. files[0].height = res.height;
  19117. files[0].width = res.width;
  19118. resolve(files);
  19119. },
  19120. fail: function fail(err) {
  19121. reject({
  19122. errMsg: err.errMsg,
  19123. errCode: err.errCode,
  19124. statusCode: 0
  19125. });
  19126. }
  19127. });
  19128. });
  19129. };
  19130. // 七牛云上传
  19131. exports.chooseVideo = chooseVideo;
  19132. var qiniuUpload = function qiniuUpload(requestInfo, getQnToken) {
  19133. return new Promise(function (resolve, reject) {
  19134. if (Array.isArray(requestInfo.files)) {
  19135. var len = requestInfo.files.length;
  19136. var fileList = new Array();
  19137. if (getQnToken) {
  19138. getQnToken(function (qnRes) {
  19139. /*
  19140. *接口返回参数:
  19141. *visitPrefix:访问文件的域名
  19142. *token:七牛云上传token
  19143. *folderPath:上传的文件夹
  19144. *region: 地区 默认为:SCN
  19145. */
  19146. var prefixLen = qnRes.visitPrefix.length;
  19147. if (qnRes.visitPrefix.charAt(prefixLen - 1) == '/') {
  19148. qnRes.visitPrefix = qnRes.visitPrefix.substring(0, prefixLen - 1);
  19149. }
  19150. uploadFile(0);
  19151. function uploadFile(i) {
  19152. var item = requestInfo.files[i];
  19153. var updateUrl = randomChar(10, qnRes.folderPath);
  19154. var fileData = _objectSpread({
  19155. fileIndex: i,
  19156. files: requestInfo.files
  19157. }, item);
  19158. if (item.name) {
  19159. fileData.name = item.name;
  19160. var nameArr = item.name.split(".");
  19161. updateUrl += "." + nameArr[nameArr.length - 1];
  19162. }
  19163. // 交给七牛上传
  19164. qiniuUploader.upload(item.path || item, function (res) {
  19165. fileData.url = res.imageURL;
  19166. requestInfo.onEachUpdate && requestInfo.onEachUpdate(_objectSpread({
  19167. url: res.imageURL
  19168. }, fileData));
  19169. fileList.push(res.imageURL);
  19170. if (len - 1 > i) {
  19171. uploadFile(i + 1);
  19172. } else {
  19173. resolve(fileList);
  19174. }
  19175. }, function (error) {
  19176. reject(error);
  19177. }, {
  19178. region: qnRes.region || 'SCN',
  19179. //地区
  19180. domain: qnRes.visitPrefix,
  19181. // bucket 域名,下载资源时用到。
  19182. key: updateUrl,
  19183. uptoken: qnRes.token,
  19184. // 由其他程序生成七牛 uptoken
  19185. uptokenURL: 'UpTokenURL.com/uptoken' // 上传地址
  19186. }, function (res) {
  19187. console.log(requestInfo);
  19188. requestInfo.onProgressUpdate && requestInfo.onProgressUpdate(Object.assign({}, fileData, res));
  19189. // console.log('上传进度', res.progress)
  19190. // console.log('已经上传的数据长度', res.totalBytesSent)
  19191. // console.log('预期需要上传的数据总长度', res.totalBytesExpectedToSend)
  19192. });
  19193. }
  19194. });
  19195. } else {
  19196. reject({
  19197. errMsg: "请添加七牛云回调方法:getQnToken",
  19198. statusCode: 0
  19199. });
  19200. }
  19201. } else {
  19202. reject({
  19203. errMsg: "files 必须是数组类型",
  19204. statusCode: 0
  19205. });
  19206. }
  19207. ;
  19208. });
  19209. };
  19210. // 阿里云oss上传
  19211. exports.qiniuUpload = qiniuUpload;
  19212. var aliUpload = function aliUpload(requestInfo, getAliToken) {
  19213. return new Promise(function (resolve, reject) {
  19214. if (Array.isArray(requestInfo.files)) {
  19215. var len = requestInfo.files.length;
  19216. var fileList = new Array();
  19217. if (getAliToken) {
  19218. getAliToken(function (aliRes) {
  19219. /*
  19220. *接口返回参数:
  19221. *visitPrefix:访问文件的域名
  19222. *folderPath:上传的文件夹
  19223. *accessKeyId: 您的oss的访问ID
  19224. *accessKeySecret: 您的oss的访问密钥
  19225. * timeout: 签名过期时间(毫秒)
  19226. */
  19227. var aliyunOssKey = aliUploader({
  19228. accessKeyId: aliRes.accessKeyId,
  19229. accessKeySecret: aliRes.accessKeySecret,
  19230. timeout: aliRes.timeout
  19231. });
  19232. var prefixLen = aliRes.visitPrefix.length;
  19233. if (aliRes.visitPrefix.charAt(prefixLen - 1) == '/') {
  19234. aliRes.visitPrefix = aliRes.visitPrefix.substring(0, prefixLen - 1);
  19235. }
  19236. uploadFile(0);
  19237. function uploadFile(i) {
  19238. var item = requestInfo.files[i];
  19239. var updateUrl = randomChar(10, aliRes.folderPath);
  19240. var fileData = _objectSpread({
  19241. fileIndex: i,
  19242. files: requestInfo.files
  19243. }, item);
  19244. if (item.name) {
  19245. fileData.name = item.name;
  19246. var nameArr = item.name.split(".");
  19247. updateUrl += "." + nameArr[nameArr.length - 1];
  19248. }
  19249. if (item.path) {
  19250. var _nameArr = item.path.split(".");
  19251. updateUrl += "." + _nameArr[_nameArr.length - 1];
  19252. }
  19253. console.log("----------111", {
  19254. url: aliRes.visitPrefix,
  19255. // 开发者服务器的URL。
  19256. filePath: item.path,
  19257. name: 'file',
  19258. // 必须填file。
  19259. formData: {
  19260. key: updateUrl,
  19261. policy: aliyunOssKey.policy,
  19262. OSSAccessKeyId: aliyunOssKey.accessKeyId,
  19263. signature: aliyunOssKey.signature
  19264. }
  19265. });
  19266. uni.uploadFile({
  19267. url: aliRes.visitPrefix,
  19268. // 开发者服务器的URL。
  19269. filePath: item.path,
  19270. name: 'file',
  19271. // 必须填file。
  19272. formData: {
  19273. key: updateUrl,
  19274. policy: aliyunOssKey.policy,
  19275. OSSAccessKeyId: aliyunOssKey.accessKeyId,
  19276. signature: aliyunOssKey.signature
  19277. },
  19278. success: function success(res) {
  19279. if (res.statusCode === 204) {
  19280. fileData.url = aliRes.visitPrefix + "/" + updateUrl;
  19281. requestInfo.onEachUpdate && requestInfo.onEachUpdate(_objectSpread({
  19282. url: fileData.url
  19283. }, fileData));
  19284. fileList.push(fileData.url);
  19285. if (len - 1 > i) {
  19286. uploadFile(i + 1);
  19287. } else {
  19288. resolve(fileList);
  19289. }
  19290. } else {
  19291. console.log("----失败", res);
  19292. reject(res);
  19293. }
  19294. },
  19295. fail: function fail(err) {
  19296. console.log("----失败", err);
  19297. reject(err);
  19298. }
  19299. });
  19300. }
  19301. });
  19302. } else {
  19303. reject({
  19304. errMsg: "请添加阿里云回调方法:getAliToken",
  19305. statusCode: 0
  19306. });
  19307. }
  19308. } else {
  19309. reject({
  19310. errMsg: "files 必须是数组类型",
  19311. statusCode: 0
  19312. });
  19313. }
  19314. ;
  19315. });
  19316. };
  19317. // 服务器URL上传
  19318. exports.aliUpload = aliUpload;
  19319. var urlUpload = function urlUpload(requestInfo, dataFactory) {
  19320. return new Promise(function (resolve, reject) {
  19321. // 本地文件上传去掉默认Content-Type
  19322. if (requestInfo.header['Content-Type']) {
  19323. delete requestInfo.header['Content-Type'];
  19324. }
  19325. // 本地文件上传去掉默认Content-Type
  19326. if (requestInfo.header['content-type']) {
  19327. delete requestInfo.header['content-type'];
  19328. }
  19329. if (Array.isArray(requestInfo.files)) {
  19330. var fileUpload = function fileUpload(i) {
  19331. var item = requestInfo.files[i];
  19332. var fileData = _objectSpread({
  19333. fileIndex: i,
  19334. files: requestInfo.files
  19335. }, item);
  19336. var config = {
  19337. url: requestInfo.url,
  19338. filePath: item.path,
  19339. header: requestInfo.header,
  19340. //加入请求头
  19341. name: requestInfo.name || "file",
  19342. success: function success(response) {
  19343. //是否用外部的数据处理方法
  19344. if (requestInfo.isFactory && dataFactory) {
  19345. //数据处理
  19346. dataFactory(_objectSpread(_objectSpread({}, requestInfo), {}, {
  19347. response: response
  19348. })).then(function (data) {
  19349. fileList.push(data);
  19350. requestInfo.onEachUpdate && requestInfo.onEachUpdate(_objectSpread({
  19351. data: data
  19352. }, fileData));
  19353. if (len <= i) {
  19354. resolve(fileList);
  19355. } else {
  19356. fileUpload(i + 1);
  19357. }
  19358. }, function (err) {
  19359. reject(err);
  19360. });
  19361. } else {
  19362. requestInfo.onEachUpdate && requestInfo.onEachUpdate(_objectSpread({
  19363. data: response
  19364. }, fileData));
  19365. fileList.push(response);
  19366. if (len <= i) {
  19367. resolve(fileList);
  19368. } else {
  19369. fileUpload(i + 1);
  19370. }
  19371. }
  19372. },
  19373. fail: function fail(err) {
  19374. reject(err);
  19375. }
  19376. };
  19377. if (requestInfo.data) {
  19378. config.formData = requestInfo.data;
  19379. }
  19380. var uploadTask = uni.uploadFile(config);
  19381. uploadTask.onProgressUpdate(function (res) {
  19382. requestInfo.onProgressUpdate && requestInfo.onProgressUpdate(Object.assign({}, fileData, res));
  19383. });
  19384. };
  19385. var len = requestInfo.files.length - 1;
  19386. var fileList = new Array();
  19387. fileUpload(0);
  19388. } else {
  19389. reject({
  19390. errMsg: "files 必须是数组类型",
  19391. statusCode: 0
  19392. });
  19393. }
  19394. });
  19395. };
  19396. exports.urlUpload = urlUpload;
  19397. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19398. /***/ }),
  19399. /* 169 */
  19400. /*!*****************************************************************************************************************************!*\
  19401. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/zhouWei-request/js_sdk/request/upload/qiniuUploader.js ***!
  19402. \*****************************************************************************************************************************/
  19403. /*! no static exports found */
  19404. /***/ (function(module, exports, __webpack_require__) {
  19405. /* WEBPACK VAR INJECTION */(function(wx) {// created by gpake
  19406. (function () {
  19407. var config = {
  19408. qiniuRegion: '',
  19409. qiniuImageURLPrefix: '',
  19410. qiniuUploadToken: '',
  19411. qiniuUploadTokenURL: '',
  19412. qiniuUploadTokenFunction: null,
  19413. qiniuShouldUseQiniuFileName: false
  19414. };
  19415. module.exports = {
  19416. init: init,
  19417. upload: upload
  19418. };
  19419. // 在整个程序生命周期中,只需要 init 一次即可
  19420. // 如果需要变更参数,再调用 init 即可
  19421. function init(options) {
  19422. config = {
  19423. qiniuRegion: '',
  19424. qiniuImageURLPrefix: '',
  19425. qiniuUploadToken: '',
  19426. qiniuUploadTokenURL: '',
  19427. qiniuUploadTokenFunction: null,
  19428. qiniuShouldUseQiniuFileName: false
  19429. };
  19430. updateConfigWithOptions(options);
  19431. }
  19432. function updateConfigWithOptions(options) {
  19433. if (options.region) {
  19434. config.qiniuRegion = options.region;
  19435. } else {
  19436. console.error('qiniu uploader need your bucket region');
  19437. }
  19438. if (options.uptoken) {
  19439. config.qiniuUploadToken = options.uptoken;
  19440. } else if (options.uptokenURL) {
  19441. config.qiniuUploadTokenURL = options.uptokenURL;
  19442. } else if (options.uptokenFunc) {
  19443. config.qiniuUploadTokenFunction = options.uptokenFunc;
  19444. }
  19445. if (options.domain) {
  19446. config.qiniuImageURLPrefix = options.domain;
  19447. }
  19448. config.qiniuShouldUseQiniuFileName = options.shouldUseQiniuFileName;
  19449. }
  19450. function upload(filePath, success, fail, options, progress, cancelTask) {
  19451. if (null == filePath) {
  19452. console.error('qiniu uploader need filePath to upload');
  19453. return;
  19454. }
  19455. if (options) {
  19456. updateConfigWithOptions(options);
  19457. }
  19458. if (config.qiniuUploadToken) {
  19459. doUpload(filePath, success, fail, options, progress, cancelTask);
  19460. } else if (config.qiniuUploadTokenURL) {
  19461. getQiniuToken(function () {
  19462. doUpload(filePath, success, fail, options, progress, cancelTask);
  19463. });
  19464. } else if (config.qiniuUploadTokenFunction) {
  19465. config.qiniuUploadToken = config.qiniuUploadTokenFunction();
  19466. if (null == config.qiniuUploadToken && config.qiniuUploadToken.length > 0) {
  19467. console.error('qiniu UploadTokenFunction result is null, please check the return value');
  19468. return;
  19469. }
  19470. doUpload(filePath, success, fail, options, progress, cancelTask);
  19471. } else {
  19472. console.error('qiniu uploader need one of [uptoken, uptokenURL, uptokenFunc]');
  19473. return;
  19474. }
  19475. }
  19476. function doUpload(filePath, _success, _fail, options, progress, cancelTask) {
  19477. if (null == config.qiniuUploadToken && config.qiniuUploadToken.length > 0) {
  19478. console.error('qiniu UploadToken is null, please check the init config or networking');
  19479. return;
  19480. }
  19481. var url = uploadURLFromRegionCode(config.qiniuRegion);
  19482. var fileName = filePath.split('//')[1];
  19483. if (options && options.key) {
  19484. fileName = options.key;
  19485. }
  19486. var formData = {
  19487. 'token': config.qiniuUploadToken
  19488. };
  19489. if (!config.qiniuShouldUseQiniuFileName) {
  19490. formData['key'] = fileName;
  19491. }
  19492. var uploadTask = wx.uploadFile({
  19493. url: url,
  19494. filePath: filePath,
  19495. name: 'file',
  19496. formData: formData,
  19497. success: function success(res) {
  19498. var dataString = res.data;
  19499. if (res.data.hasOwnProperty('type') && res.data.type === 'Buffer') {
  19500. dataString = String.fromCharCode.apply(null, res.data.data);
  19501. }
  19502. try {
  19503. var dataObject = JSON.parse(dataString);
  19504. //do something
  19505. var imageUrl = config.qiniuImageURLPrefix + '/' + dataObject.key;
  19506. dataObject.imageURL = imageUrl;
  19507. if (_success) {
  19508. _success(dataObject);
  19509. }
  19510. } catch (e) {
  19511. console.log('parse JSON failed, origin String is: ' + dataString);
  19512. if (_fail) {
  19513. _fail(e);
  19514. }
  19515. }
  19516. },
  19517. fail: function fail(error) {
  19518. console.error(error);
  19519. if (_fail) {
  19520. _fail(error);
  19521. }
  19522. }
  19523. });
  19524. uploadTask.onProgressUpdate(function (res) {
  19525. progress && progress(res);
  19526. });
  19527. cancelTask && cancelTask(function () {
  19528. uploadTask.abort();
  19529. });
  19530. }
  19531. function getQiniuToken(callback) {
  19532. wx.request({
  19533. url: config.qiniuUploadTokenURL,
  19534. success: function success(res) {
  19535. var token = res.data.uptoken;
  19536. if (token && token.length > 0) {
  19537. config.qiniuUploadToken = token;
  19538. if (callback) {
  19539. callback();
  19540. }
  19541. } else {
  19542. console.error('qiniuUploader cannot get your token, please check the uptokenURL or server');
  19543. }
  19544. },
  19545. fail: function fail(error) {
  19546. console.error('qiniu UploadToken is null, please check the init config or networking: ' + error);
  19547. }
  19548. });
  19549. }
  19550. function uploadURLFromRegionCode(code) {
  19551. var uploadURL = null;
  19552. switch (code) {
  19553. case 'ECN':
  19554. uploadURL = 'https://up.qbox.me';
  19555. break;
  19556. case 'NCN':
  19557. uploadURL = 'https://up-z1.qbox.me';
  19558. break;
  19559. case 'SCN':
  19560. uploadURL = 'https://up-z2.qbox.me';
  19561. break;
  19562. case 'NA':
  19563. uploadURL = 'https://up-na0.qbox.me';
  19564. break;
  19565. case 'ASG':
  19566. uploadURL = 'https://up-as0.qbox.me';
  19567. break;
  19568. default:
  19569. console.error('please make the region is with one of [ECN, SCN, NCN, NA, ASG]');
  19570. }
  19571. return uploadURL;
  19572. }
  19573. })();
  19574. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  19575. /***/ }),
  19576. /* 170 */
  19577. /*!***************************************************************************************************************************!*\
  19578. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/zhouWei-request/js_sdk/request/upload/aliUploader.js ***!
  19579. \***************************************************************************************************************************/
  19580. /*! no static exports found */
  19581. /***/ (function(module, exports, __webpack_require__) {
  19582. var Base64 = __webpack_require__(/*! ./Base64.js */ 171);
  19583. __webpack_require__(/*! ./hmac.js */ 172);
  19584. __webpack_require__(/*! ./sha1.js */ 174);
  19585. var Crypto = __webpack_require__(/*! ./crypto.js */ 173);
  19586. // 获取policy
  19587. var getPolicyBase64 = function getPolicyBase64(timeout) {
  19588. var dateTime = new Date().getTime();
  19589. var date = new Date(dateTime + (timeout || 1800000));
  19590. var srcT = date.toISOString();
  19591. var policyText = {
  19592. "expiration": srcT,
  19593. //设置该Policy的失效时间
  19594. "conditions": [["content-length-range", 0, 100 * 1024 * 1024] // 设置上传文件的大小限制,100mb
  19595. ]
  19596. };
  19597. var policyBase64 = Base64.encode(JSON.stringify(policyText));
  19598. return policyBase64;
  19599. };
  19600. // 获取签名
  19601. var getSignature = function getSignature(policyBase64, AccessKeySecret) {
  19602. var bytes = Crypto.HMAC(Crypto.SHA1, policyBase64, AccessKeySecret, {
  19603. asBytes: true
  19604. });
  19605. var signature = Crypto.util.bytesToBase64(bytes);
  19606. return signature;
  19607. };
  19608. // 获取阿里云token信息
  19609. var getAliyunOssKey = function getAliyunOssKey(options) {
  19610. var policyBase64 = getPolicyBase64(options.timeout);
  19611. var signature = getSignature(policyBase64, options.accessKeySecret);
  19612. return {
  19613. policy: policyBase64,
  19614. accessKeyId: options.accessKeyId,
  19615. accessKeySecret: options.accessKeySecret,
  19616. signature: signature,
  19617. success_action_status: '200'
  19618. };
  19619. };
  19620. module.exports = getAliyunOssKey;
  19621. /***/ }),
  19622. /* 171 */
  19623. /*!**********************************************************************************************************************!*\
  19624. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/zhouWei-request/js_sdk/request/upload/Base64.js ***!
  19625. \**********************************************************************************************************************/
  19626. /*! no static exports found */
  19627. /***/ (function(module, exports) {
  19628. var Base64 = {
  19629. // private property
  19630. _keyStr: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
  19631. // public method for encoding
  19632. encode: function encode(input) {
  19633. var output = "";
  19634. var chr1, chr2, chr3, enc1, enc2, enc3, enc4;
  19635. var i = 0;
  19636. input = Base64._utf8_encode(input);
  19637. while (i < input.length) {
  19638. chr1 = input.charCodeAt(i++);
  19639. chr2 = input.charCodeAt(i++);
  19640. chr3 = input.charCodeAt(i++);
  19641. enc1 = chr1 >> 2;
  19642. enc2 = (chr1 & 3) << 4 | chr2 >> 4;
  19643. enc3 = (chr2 & 15) << 2 | chr3 >> 6;
  19644. enc4 = chr3 & 63;
  19645. if (isNaN(chr2)) {
  19646. enc3 = enc4 = 64;
  19647. } else if (isNaN(chr3)) {
  19648. enc4 = 64;
  19649. }
  19650. output = output + this._keyStr.charAt(enc1) + this._keyStr.charAt(enc2) + this._keyStr.charAt(enc3) + this._keyStr.charAt(enc4);
  19651. }
  19652. return output;
  19653. },
  19654. // public method for decoding
  19655. decode: function decode(input) {
  19656. var output = "";
  19657. var chr1, chr2, chr3;
  19658. var enc1, enc2, enc3, enc4;
  19659. var i = 0;
  19660. input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
  19661. while (i < input.length) {
  19662. enc1 = this._keyStr.indexOf(input.charAt(i++));
  19663. enc2 = this._keyStr.indexOf(input.charAt(i++));
  19664. enc3 = this._keyStr.indexOf(input.charAt(i++));
  19665. enc4 = this._keyStr.indexOf(input.charAt(i++));
  19666. chr1 = enc1 << 2 | enc2 >> 4;
  19667. chr2 = (enc2 & 15) << 4 | enc3 >> 2;
  19668. chr3 = (enc3 & 3) << 6 | enc4;
  19669. output = output + String.fromCharCode(chr1);
  19670. if (enc3 != 64) {
  19671. output = output + String.fromCharCode(chr2);
  19672. }
  19673. if (enc4 != 64) {
  19674. output = output + String.fromCharCode(chr3);
  19675. }
  19676. }
  19677. output = Base64._utf8_decode(output);
  19678. return output;
  19679. },
  19680. // private method for UTF-8 encoding
  19681. _utf8_encode: function _utf8_encode(string) {
  19682. string = string.replace(/\r\n/g, "\n");
  19683. var utftext = "";
  19684. for (var n = 0; n < string.length; n++) {
  19685. var c = string.charCodeAt(n);
  19686. if (c < 128) {
  19687. utftext += String.fromCharCode(c);
  19688. } else if (c > 127 && c < 2048) {
  19689. utftext += String.fromCharCode(c >> 6 | 192);
  19690. utftext += String.fromCharCode(c & 63 | 128);
  19691. } else {
  19692. utftext += String.fromCharCode(c >> 12 | 224);
  19693. utftext += String.fromCharCode(c >> 6 & 63 | 128);
  19694. utftext += String.fromCharCode(c & 63 | 128);
  19695. }
  19696. }
  19697. return utftext;
  19698. },
  19699. // private method for UTF-8 decoding
  19700. _utf8_decode: function _utf8_decode(utftext) {
  19701. var string = "";
  19702. var i = 0;
  19703. var c = c1 = c2 = 0;
  19704. while (i < utftext.length) {
  19705. c = utftext.charCodeAt(i);
  19706. if (c < 128) {
  19707. string += String.fromCharCode(c);
  19708. i++;
  19709. } else if (c > 191 && c < 224) {
  19710. c2 = utftext.charCodeAt(i + 1);
  19711. string += String.fromCharCode((c & 31) << 6 | c2 & 63);
  19712. i += 2;
  19713. } else {
  19714. c2 = utftext.charCodeAt(i + 1);
  19715. c3 = utftext.charCodeAt(i + 2);
  19716. string += String.fromCharCode((c & 15) << 12 | (c2 & 63) << 6 | c3 & 63);
  19717. i += 3;
  19718. }
  19719. }
  19720. return string;
  19721. }
  19722. };
  19723. module.exports = Base64;
  19724. /***/ }),
  19725. /* 172 */
  19726. /*!********************************************************************************************************************!*\
  19727. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/zhouWei-request/js_sdk/request/upload/hmac.js ***!
  19728. \********************************************************************************************************************/
  19729. /*! no static exports found */
  19730. /***/ (function(module, exports, __webpack_require__) {
  19731. /*!
  19732. * Crypto-JS v1.1.0
  19733. * http://code.google.com/p/crypto-js/
  19734. * Copyright (c) 2009, Jeff Mott. All rights reserved.
  19735. * http://code.google.com/p/crypto-js/wiki/License
  19736. */
  19737. var Crypto = __webpack_require__(/*! ./crypto.js */ 173);
  19738. (function () {
  19739. // Shortcut
  19740. var util = Crypto.util;
  19741. Crypto.HMAC = function (hasher, message, key, options) {
  19742. // Allow arbitrary length keys
  19743. key = key.length > hasher._blocksize * 4 ? hasher(key, {
  19744. asBytes: true
  19745. }) : util.stringToBytes(key);
  19746. // XOR keys with pad constants
  19747. var okey = key,
  19748. ikey = key.slice(0);
  19749. for (var i = 0; i < hasher._blocksize * 4; i++) {
  19750. okey[i] ^= 0x5C;
  19751. ikey[i] ^= 0x36;
  19752. }
  19753. var hmacbytes = hasher(util.bytesToString(okey) + hasher(util.bytesToString(ikey) + message, {
  19754. asString: true
  19755. }), {
  19756. asBytes: true
  19757. });
  19758. return options && options.asBytes ? hmacbytes : options && options.asString ? util.bytesToString(hmacbytes) : util.bytesToHex(hmacbytes);
  19759. };
  19760. })();
  19761. module.exports = Crypto;
  19762. /***/ }),
  19763. /* 173 */
  19764. /*!**********************************************************************************************************************!*\
  19765. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/zhouWei-request/js_sdk/request/upload/crypto.js ***!
  19766. \**********************************************************************************************************************/
  19767. /*! no static exports found */
  19768. /***/ (function(module, exports) {
  19769. /*!
  19770. * Crypto-JS v1.1.0
  19771. * http://code.google.com/p/crypto-js/
  19772. * Copyright (c) 2009, Jeff Mott. All rights reserved.
  19773. * http://code.google.com/p/crypto-js/wiki/License
  19774. */
  19775. var Crypto = {};
  19776. (function () {
  19777. var base64map = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
  19778. // Crypto utilities
  19779. var util = Crypto.util = {
  19780. // Bit-wise rotate left
  19781. rotl: function rotl(n, b) {
  19782. return n << b | n >>> 32 - b;
  19783. },
  19784. // Bit-wise rotate right
  19785. rotr: function rotr(n, b) {
  19786. return n << 32 - b | n >>> b;
  19787. },
  19788. // Swap big-endian to little-endian and vice versa
  19789. endian: function endian(n) {
  19790. // If number given, swap endian
  19791. if (n.constructor == Number) {
  19792. return util.rotl(n, 8) & 0x00FF00FF | util.rotl(n, 24) & 0xFF00FF00;
  19793. }
  19794. // Else, assume array and swap all items
  19795. for (var i = 0; i < n.length; i++) {
  19796. n[i] = util.endian(n[i]);
  19797. }
  19798. return n;
  19799. },
  19800. // Generate an array of any length of random bytes
  19801. randomBytes: function randomBytes(n) {
  19802. for (var bytes = []; n > 0; n--) {
  19803. bytes.push(Math.floor(Math.random() * 256));
  19804. }
  19805. return bytes;
  19806. },
  19807. // Convert a string to a byte array
  19808. stringToBytes: function stringToBytes(str) {
  19809. var bytes = [];
  19810. for (var i = 0; i < str.length; i++) {
  19811. bytes.push(str.charCodeAt(i));
  19812. }
  19813. return bytes;
  19814. },
  19815. // Convert a byte array to a string
  19816. bytesToString: function bytesToString(bytes) {
  19817. var str = [];
  19818. for (var i = 0; i < bytes.length; i++) {
  19819. str.push(String.fromCharCode(bytes[i]));
  19820. }
  19821. return str.join("");
  19822. },
  19823. // Convert a string to big-endian 32-bit words
  19824. stringToWords: function stringToWords(str) {
  19825. var words = [];
  19826. for (var c = 0, b = 0; c < str.length; c++, b += 8) {
  19827. words[b >>> 5] |= str.charCodeAt(c) << 24 - b % 32;
  19828. }
  19829. return words;
  19830. },
  19831. // Convert a byte array to big-endian 32-bits words
  19832. bytesToWords: function bytesToWords(bytes) {
  19833. var words = [];
  19834. for (var i = 0, b = 0; i < bytes.length; i++, b += 8) {
  19835. words[b >>> 5] |= bytes[i] << 24 - b % 32;
  19836. }
  19837. return words;
  19838. },
  19839. // Convert big-endian 32-bit words to a byte array
  19840. wordsToBytes: function wordsToBytes(words) {
  19841. var bytes = [];
  19842. for (var b = 0; b < words.length * 32; b += 8) {
  19843. bytes.push(words[b >>> 5] >>> 24 - b % 32 & 0xFF);
  19844. }
  19845. return bytes;
  19846. },
  19847. // Convert a byte array to a hex string
  19848. bytesToHex: function bytesToHex(bytes) {
  19849. var hex = [];
  19850. for (var i = 0; i < bytes.length; i++) {
  19851. hex.push((bytes[i] >>> 4).toString(16));
  19852. hex.push((bytes[i] & 0xF).toString(16));
  19853. }
  19854. return hex.join("");
  19855. },
  19856. // Convert a hex string to a byte array
  19857. hexToBytes: function hexToBytes(hex) {
  19858. var bytes = [];
  19859. for (var c = 0; c < hex.length; c += 2) {
  19860. bytes.push(parseInt(hex.substr(c, 2), 16));
  19861. }
  19862. return bytes;
  19863. },
  19864. // Convert a byte array to a base-64 string
  19865. bytesToBase64: function bytesToBase64(bytes) {
  19866. // Use browser-native function if it exists
  19867. // if (typeof btoa == "function") return btoa(util.bytesToString(bytes));
  19868. var base64 = [],
  19869. overflow;
  19870. for (var i = 0; i < bytes.length; i++) {
  19871. switch (i % 3) {
  19872. case 0:
  19873. base64.push(base64map.charAt(bytes[i] >>> 2));
  19874. overflow = (bytes[i] & 0x3) << 4;
  19875. break;
  19876. case 1:
  19877. base64.push(base64map.charAt(overflow | bytes[i] >>> 4));
  19878. overflow = (bytes[i] & 0xF) << 2;
  19879. break;
  19880. case 2:
  19881. base64.push(base64map.charAt(overflow | bytes[i] >>> 6));
  19882. base64.push(base64map.charAt(bytes[i] & 0x3F));
  19883. overflow = -1;
  19884. }
  19885. }
  19886. // Encode overflow bits, if there are any
  19887. if (overflow != undefined && overflow != -1) base64.push(base64map.charAt(overflow));
  19888. // Add padding
  19889. while (base64.length % 4 != 0) {
  19890. base64.push("=");
  19891. }
  19892. return base64.join("");
  19893. },
  19894. // Convert a base-64 string to a byte array
  19895. base64ToBytes: function base64ToBytes(base64) {
  19896. // Use browser-native function if it exists
  19897. if (typeof atob == "function") return util.stringToBytes(atob(base64));
  19898. // Remove non-base-64 characters
  19899. base64 = base64.replace(/[^A-Z0-9+\/]/ig, "");
  19900. var bytes = [];
  19901. for (var i = 0; i < base64.length; i++) {
  19902. switch (i % 4) {
  19903. case 1:
  19904. bytes.push(base64map.indexOf(base64.charAt(i - 1)) << 2 | base64map.indexOf(base64.charAt(i)) >>> 4);
  19905. break;
  19906. case 2:
  19907. bytes.push((base64map.indexOf(base64.charAt(i - 1)) & 0xF) << 4 | base64map.indexOf(base64.charAt(i)) >>> 2);
  19908. break;
  19909. case 3:
  19910. bytes.push((base64map.indexOf(base64.charAt(i - 1)) & 0x3) << 6 | base64map.indexOf(base64.charAt(i)));
  19911. break;
  19912. }
  19913. }
  19914. return bytes;
  19915. }
  19916. };
  19917. // Crypto mode namespace
  19918. Crypto.mode = {};
  19919. })();
  19920. module.exports = Crypto;
  19921. /***/ }),
  19922. /* 174 */
  19923. /*!********************************************************************************************************************!*\
  19924. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/zhouWei-request/js_sdk/request/upload/sha1.js ***!
  19925. \********************************************************************************************************************/
  19926. /*! no static exports found */
  19927. /***/ (function(module, exports, __webpack_require__) {
  19928. /*!
  19929. * Crypto-JS v1.1.0
  19930. * http://code.google.com/p/crypto-js/
  19931. * Copyright (c) 2009, Jeff Mott. All rights reserved.
  19932. * http://code.google.com/p/crypto-js/wiki/License
  19933. */
  19934. var Crypto = __webpack_require__(/*! ./crypto.js */ 173);
  19935. (function () {
  19936. // Shortcut
  19937. var util = Crypto.util;
  19938. // Public API
  19939. var SHA1 = Crypto.SHA1 = function (message, options) {
  19940. var digestbytes = util.wordsToBytes(SHA1._sha1(message));
  19941. return options && options.asBytes ? digestbytes : options && options.asString ? util.bytesToString(digestbytes) : util.bytesToHex(digestbytes);
  19942. };
  19943. // The core
  19944. SHA1._sha1 = function (message) {
  19945. var m = util.stringToWords(message),
  19946. l = message.length * 8,
  19947. w = [],
  19948. H0 = 1732584193,
  19949. H1 = -271733879,
  19950. H2 = -1732584194,
  19951. H3 = 271733878,
  19952. H4 = -1009589776;
  19953. // Padding
  19954. m[l >> 5] |= 0x80 << 24 - l % 32;
  19955. m[(l + 64 >>> 9 << 4) + 15] = l;
  19956. for (var i = 0; i < m.length; i += 16) {
  19957. var a = H0,
  19958. b = H1,
  19959. c = H2,
  19960. d = H3,
  19961. e = H4;
  19962. for (var j = 0; j < 80; j++) {
  19963. if (j < 16) w[j] = m[i + j];else {
  19964. var n = w[j - 3] ^ w[j - 8] ^ w[j - 14] ^ w[j - 16];
  19965. w[j] = n << 1 | n >>> 31;
  19966. }
  19967. var t = (H0 << 5 | H0 >>> 27) + H4 + (w[j] >>> 0) + (j < 20 ? (H1 & H2 | ~H1 & H3) + 1518500249 : j < 40 ? (H1 ^ H2 ^ H3) + 1859775393 : j < 60 ? (H1 & H2 | H1 & H3 | H2 & H3) - 1894007588 : (H1 ^ H2 ^ H3) - 899497514);
  19968. H4 = H3;
  19969. H3 = H2;
  19970. H2 = H1 << 30 | H1 >>> 2;
  19971. H1 = H0;
  19972. H0 = t;
  19973. }
  19974. H0 += a;
  19975. H1 += b;
  19976. H2 += c;
  19977. H3 += d;
  19978. H4 += e;
  19979. }
  19980. return [H0, H1, H2, H3, H4];
  19981. };
  19982. // Package private blocksize
  19983. SHA1._blocksize = 16;
  19984. })();
  19985. module.exports = Crypto;
  19986. /***/ }),
  19987. /* 175 */,
  19988. /* 176 */,
  19989. /* 177 */,
  19990. /* 178 */,
  19991. /* 179 */,
  19992. /* 180 */,
  19993. /* 181 */,
  19994. /* 182 */,
  19995. /* 183 */,
  19996. /* 184 */,
  19997. /* 185 */,
  19998. /* 186 */,
  19999. /* 187 */,
  20000. /* 188 */,
  20001. /* 189 */,
  20002. /* 190 */,
  20003. /* 191 */,
  20004. /* 192 */,
  20005. /* 193 */,
  20006. /* 194 */,
  20007. /* 195 */,
  20008. /* 196 */,
  20009. /* 197 */,
  20010. /* 198 */,
  20011. /* 199 */,
  20012. /* 200 */,
  20013. /* 201 */,
  20014. /* 202 */,
  20015. /* 203 */,
  20016. /* 204 */,
  20017. /* 205 */,
  20018. /* 206 */,
  20019. /* 207 */,
  20020. /* 208 */,
  20021. /* 209 */,
  20022. /* 210 */,
  20023. /* 211 */,
  20024. /* 212 */,
  20025. /* 213 */,
  20026. /* 214 */,
  20027. /* 215 */,
  20028. /* 216 */,
  20029. /* 217 */,
  20030. /* 218 */,
  20031. /* 219 */,
  20032. /* 220 */,
  20033. /* 221 */,
  20034. /* 222 */,
  20035. /* 223 */,
  20036. /* 224 */,
  20037. /* 225 */,
  20038. /* 226 */,
  20039. /* 227 */,
  20040. /* 228 */,
  20041. /* 229 */,
  20042. /* 230 */,
  20043. /* 231 */,
  20044. /* 232 */,
  20045. /* 233 */,
  20046. /* 234 */,
  20047. /* 235 */,
  20048. /* 236 */,
  20049. /* 237 */,
  20050. /* 238 */,
  20051. /* 239 */,
  20052. /* 240 */,
  20053. /* 241 */,
  20054. /* 242 */,
  20055. /* 243 */,
  20056. /* 244 */,
  20057. /* 245 */,
  20058. /* 246 */,
  20059. /* 247 */,
  20060. /* 248 */,
  20061. /* 249 */,
  20062. /* 250 */,
  20063. /* 251 */,
  20064. /* 252 */,
  20065. /* 253 */,
  20066. /* 254 */,
  20067. /* 255 */,
  20068. /* 256 */,
  20069. /* 257 */,
  20070. /* 258 */,
  20071. /* 259 */,
  20072. /* 260 */,
  20073. /* 261 */,
  20074. /* 262 */
  20075. /*!************************************************************************************************************!*\
  20076. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/components/u-picker/props.js ***!
  20077. \************************************************************************************************************/
  20078. /*! no static exports found */
  20079. /***/ (function(module, exports, __webpack_require__) {
  20080. "use strict";
  20081. /* WEBPACK VAR INJECTION */(function(uni) {
  20082. Object.defineProperty(exports, "__esModule", {
  20083. value: true
  20084. });
  20085. exports.default = void 0;
  20086. var _default = {
  20087. props: {
  20088. // 是否展示picker弹窗
  20089. show: {
  20090. type: Boolean,
  20091. default: uni.$u.props.picker.show
  20092. },
  20093. // 是否展示顶部的操作栏
  20094. showToolbar: {
  20095. type: Boolean,
  20096. default: uni.$u.props.picker.showToolbar
  20097. },
  20098. // 顶部标题
  20099. title: {
  20100. type: String,
  20101. default: uni.$u.props.picker.title
  20102. },
  20103. // 对象数组,设置每一列的数据
  20104. columns: {
  20105. type: Array,
  20106. default: uni.$u.props.picker.columns
  20107. },
  20108. // 是否显示加载中状态
  20109. loading: {
  20110. type: Boolean,
  20111. default: uni.$u.props.picker.loading
  20112. },
  20113. // 各列中,单个选项的高度
  20114. itemHeight: {
  20115. type: [String, Number],
  20116. default: uni.$u.props.picker.itemHeight
  20117. },
  20118. // 取消按钮的文字
  20119. cancelText: {
  20120. type: String,
  20121. default: uni.$u.props.picker.cancelText
  20122. },
  20123. // 确认按钮的文字
  20124. confirmText: {
  20125. type: String,
  20126. default: uni.$u.props.picker.confirmText
  20127. },
  20128. // 取消按钮的颜色
  20129. cancelColor: {
  20130. type: String,
  20131. default: uni.$u.props.picker.cancelColor
  20132. },
  20133. // 确认按钮的颜色
  20134. confirmColor: {
  20135. type: String,
  20136. default: uni.$u.props.picker.confirmColor
  20137. },
  20138. // 每列中可见选项的数量
  20139. visibleItemCount: {
  20140. type: [String, Number],
  20141. default: uni.$u.props.picker.visibleItemCount
  20142. },
  20143. // 选项对象中,需要展示的属性键名
  20144. keyName: {
  20145. type: String,
  20146. default: uni.$u.props.picker.keyName
  20147. },
  20148. // 是否允许点击遮罩关闭选择器
  20149. closeOnClickOverlay: {
  20150. type: Boolean,
  20151. default: uni.$u.props.picker.closeOnClickOverlay
  20152. },
  20153. // 各列的默认索引
  20154. defaultIndex: {
  20155. type: Array,
  20156. default: uni.$u.props.picker.defaultIndex
  20157. },
  20158. // 是否在手指松开时立即触发 change 事件。若不开启则会在滚动动画结束后触发 change 事件,只在微信2.21.1及以上有效
  20159. immediateChange: {
  20160. type: Boolean,
  20161. default: uni.$u.props.picker.immediateChange
  20162. }
  20163. }
  20164. };
  20165. exports.default = _default;
  20166. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20167. /***/ }),
  20168. /* 263 */,
  20169. /* 264 */,
  20170. /* 265 */,
  20171. /* 266 */,
  20172. /* 267 */,
  20173. /* 268 */,
  20174. /* 269 */,
  20175. /* 270 */
  20176. /*!***********************************************************************************************************!*\
  20177. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/components/u-empty/props.js ***!
  20178. \***********************************************************************************************************/
  20179. /*! no static exports found */
  20180. /***/ (function(module, exports, __webpack_require__) {
  20181. "use strict";
  20182. /* WEBPACK VAR INJECTION */(function(uni) {
  20183. Object.defineProperty(exports, "__esModule", {
  20184. value: true
  20185. });
  20186. exports.default = void 0;
  20187. var _default = {
  20188. props: {
  20189. // 内置图标名称,或图片路径,建议绝对路径
  20190. icon: {
  20191. type: String,
  20192. default: uni.$u.props.empty.icon
  20193. },
  20194. // 提示文字
  20195. text: {
  20196. type: String,
  20197. default: uni.$u.props.empty.text
  20198. },
  20199. // 文字颜色
  20200. textColor: {
  20201. type: String,
  20202. default: uni.$u.props.empty.textColor
  20203. },
  20204. // 文字大小
  20205. textSize: {
  20206. type: [String, Number],
  20207. default: uni.$u.props.empty.textSize
  20208. },
  20209. // 图标的颜色
  20210. iconColor: {
  20211. type: String,
  20212. default: uni.$u.props.empty.iconColor
  20213. },
  20214. // 图标的大小
  20215. iconSize: {
  20216. type: [String, Number],
  20217. default: uni.$u.props.empty.iconSize
  20218. },
  20219. // 选择预置的图标类型
  20220. mode: {
  20221. type: String,
  20222. default: uni.$u.props.empty.mode
  20223. },
  20224. // 图标宽度,单位px
  20225. width: {
  20226. type: [String, Number],
  20227. default: uni.$u.props.empty.width
  20228. },
  20229. // 图标高度,单位px
  20230. height: {
  20231. type: [String, Number],
  20232. default: uni.$u.props.empty.height
  20233. },
  20234. // 是否显示组件
  20235. show: {
  20236. type: Boolean,
  20237. default: uni.$u.props.empty.show
  20238. },
  20239. // 组件距离上一个元素之间的距离,默认px单位
  20240. marginTop: {
  20241. type: [String, Number],
  20242. default: uni.$u.props.empty.marginTop
  20243. }
  20244. }
  20245. };
  20246. exports.default = _default;
  20247. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20248. /***/ }),
  20249. /* 271 */,
  20250. /* 272 */,
  20251. /* 273 */,
  20252. /* 274 */,
  20253. /* 275 */,
  20254. /* 276 */,
  20255. /* 277 */,
  20256. /* 278 */
  20257. /*!**********************************************************************************************************!*\
  20258. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/components/u-form/props.js ***!
  20259. \**********************************************************************************************************/
  20260. /*! no static exports found */
  20261. /***/ (function(module, exports, __webpack_require__) {
  20262. "use strict";
  20263. /* WEBPACK VAR INJECTION */(function(uni) {
  20264. Object.defineProperty(exports, "__esModule", {
  20265. value: true
  20266. });
  20267. exports.default = void 0;
  20268. var _default = {
  20269. props: {
  20270. // 当前form的需要验证字段的集合
  20271. model: {
  20272. type: Object,
  20273. default: uni.$u.props.form.model
  20274. },
  20275. // 验证规则
  20276. rules: {
  20277. type: [Object, Function, Array],
  20278. default: uni.$u.props.form.rules
  20279. },
  20280. // 有错误时的提示方式,message-提示信息,toast-进行toast提示
  20281. // border-bottom-下边框呈现红色,none-无提示
  20282. errorType: {
  20283. type: String,
  20284. default: uni.$u.props.form.errorType
  20285. },
  20286. // 是否显示表单域的下划线边框
  20287. borderBottom: {
  20288. type: Boolean,
  20289. default: uni.$u.props.form.borderBottom
  20290. },
  20291. // label的位置,left-左边,top-上边
  20292. labelPosition: {
  20293. type: String,
  20294. default: uni.$u.props.form.labelPosition
  20295. },
  20296. // label的宽度,单位px
  20297. labelWidth: {
  20298. type: [String, Number],
  20299. default: uni.$u.props.form.labelWidth
  20300. },
  20301. // lable字体的对齐方式
  20302. labelAlign: {
  20303. type: String,
  20304. default: uni.$u.props.form.labelAlign
  20305. },
  20306. // lable的样式,对象形式
  20307. labelStyle: {
  20308. type: Object,
  20309. default: uni.$u.props.form.labelStyle
  20310. }
  20311. }
  20312. };
  20313. exports.default = _default;
  20314. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20315. /***/ }),
  20316. /* 279 */
  20317. /*!************************************************************************************************************!*\
  20318. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/util/async-validator.js ***!
  20319. \************************************************************************************************************/
  20320. /*! no static exports found */
  20321. /***/ (function(module, exports, __webpack_require__) {
  20322. "use strict";
  20323. /* WEBPACK VAR INJECTION */(function(process) {
  20324. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20325. Object.defineProperty(exports, "__esModule", {
  20326. value: true
  20327. });
  20328. exports.default = void 0;
  20329. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  20330. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  20331. 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; }
  20332. 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; }
  20333. function _extends() {
  20334. _extends = Object.assign || function (target) {
  20335. for (var i = 1; i < arguments.length; i++) {
  20336. var source = arguments[i];
  20337. for (var key in source) {
  20338. if (Object.prototype.hasOwnProperty.call(source, key)) {
  20339. target[key] = source[key];
  20340. }
  20341. }
  20342. }
  20343. return target;
  20344. };
  20345. return _extends.apply(this, arguments);
  20346. }
  20347. /* eslint no-console:0 */
  20348. var formatRegExp = /%[sdj%]/g;
  20349. var warning = function warning() {}; // don't print warning message when in production env or node runtime
  20350. if (typeof process !== 'undefined' && Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"dogProject","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}) && "development" !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {
  20351. warning = function warning(type, errors) {
  20352. if (typeof console !== 'undefined' && console.warn) {
  20353. if (errors.every(function (e) {
  20354. return typeof e === 'string';
  20355. })) {
  20356. console.warn(type, errors);
  20357. }
  20358. }
  20359. };
  20360. }
  20361. function convertFieldsError(errors) {
  20362. if (!errors || !errors.length) return null;
  20363. var fields = {};
  20364. errors.forEach(function (error) {
  20365. var field = error.field;
  20366. fields[field] = fields[field] || [];
  20367. fields[field].push(error);
  20368. });
  20369. return fields;
  20370. }
  20371. function format() {
  20372. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  20373. args[_key] = arguments[_key];
  20374. }
  20375. var i = 1;
  20376. var f = args[0];
  20377. var len = args.length;
  20378. if (typeof f === 'function') {
  20379. return f.apply(null, args.slice(1));
  20380. }
  20381. if (typeof f === 'string') {
  20382. var str = String(f).replace(formatRegExp, function (x) {
  20383. if (x === '%%') {
  20384. return '%';
  20385. }
  20386. if (i >= len) {
  20387. return x;
  20388. }
  20389. switch (x) {
  20390. case '%s':
  20391. return String(args[i++]);
  20392. case '%d':
  20393. return Number(args[i++]);
  20394. case '%j':
  20395. try {
  20396. return JSON.stringify(args[i++]);
  20397. } catch (_) {
  20398. return '[Circular]';
  20399. }
  20400. break;
  20401. default:
  20402. return x;
  20403. }
  20404. });
  20405. for (var arg = args[i]; i < len; arg = args[++i]) {
  20406. str += " ".concat(arg);
  20407. }
  20408. return str;
  20409. }
  20410. return f;
  20411. }
  20412. function isNativeStringType(type) {
  20413. return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern';
  20414. }
  20415. function isEmptyValue(value, type) {
  20416. if (value === undefined || value === null) {
  20417. return true;
  20418. }
  20419. if (type === 'array' && Array.isArray(value) && !value.length) {
  20420. return true;
  20421. }
  20422. if (isNativeStringType(type) && typeof value === 'string' && !value) {
  20423. return true;
  20424. }
  20425. return false;
  20426. }
  20427. function asyncParallelArray(arr, func, callback) {
  20428. var results = [];
  20429. var total = 0;
  20430. var arrLength = arr.length;
  20431. function count(errors) {
  20432. results.push.apply(results, errors);
  20433. total++;
  20434. if (total === arrLength) {
  20435. callback(results);
  20436. }
  20437. }
  20438. arr.forEach(function (a) {
  20439. func(a, count);
  20440. });
  20441. }
  20442. function asyncSerialArray(arr, func, callback) {
  20443. var index = 0;
  20444. var arrLength = arr.length;
  20445. function next(errors) {
  20446. if (errors && errors.length) {
  20447. callback(errors);
  20448. return;
  20449. }
  20450. var original = index;
  20451. index += 1;
  20452. if (original < arrLength) {
  20453. func(arr[original], next);
  20454. } else {
  20455. callback([]);
  20456. }
  20457. }
  20458. next([]);
  20459. }
  20460. function flattenObjArr(objArr) {
  20461. var ret = [];
  20462. Object.keys(objArr).forEach(function (k) {
  20463. ret.push.apply(ret, objArr[k]);
  20464. });
  20465. return ret;
  20466. }
  20467. function asyncMap(objArr, option, func, callback) {
  20468. if (option.first) {
  20469. var _pending = new Promise(function (resolve, reject) {
  20470. var next = function next(errors) {
  20471. callback(errors);
  20472. return errors.length ? reject({
  20473. errors: errors,
  20474. fields: convertFieldsError(errors)
  20475. }) : resolve();
  20476. };
  20477. var flattenArr = flattenObjArr(objArr);
  20478. asyncSerialArray(flattenArr, func, next);
  20479. });
  20480. _pending.catch(function (e) {
  20481. return e;
  20482. });
  20483. return _pending;
  20484. }
  20485. var firstFields = option.firstFields || [];
  20486. if (firstFields === true) {
  20487. firstFields = Object.keys(objArr);
  20488. }
  20489. var objArrKeys = Object.keys(objArr);
  20490. var objArrLength = objArrKeys.length;
  20491. var total = 0;
  20492. var results = [];
  20493. var pending = new Promise(function (resolve, reject) {
  20494. var next = function next(errors) {
  20495. results.push.apply(results, errors);
  20496. total++;
  20497. if (total === objArrLength) {
  20498. callback(results);
  20499. return results.length ? reject({
  20500. errors: results,
  20501. fields: convertFieldsError(results)
  20502. }) : resolve();
  20503. }
  20504. };
  20505. if (!objArrKeys.length) {
  20506. callback(results);
  20507. resolve();
  20508. }
  20509. objArrKeys.forEach(function (key) {
  20510. var arr = objArr[key];
  20511. if (firstFields.indexOf(key) !== -1) {
  20512. asyncSerialArray(arr, func, next);
  20513. } else {
  20514. asyncParallelArray(arr, func, next);
  20515. }
  20516. });
  20517. });
  20518. pending.catch(function (e) {
  20519. return e;
  20520. });
  20521. return pending;
  20522. }
  20523. function complementError(rule) {
  20524. return function (oe) {
  20525. if (oe && oe.message) {
  20526. oe.field = oe.field || rule.fullField;
  20527. return oe;
  20528. }
  20529. return {
  20530. message: typeof oe === 'function' ? oe() : oe,
  20531. field: oe.field || rule.fullField
  20532. };
  20533. };
  20534. }
  20535. function deepMerge(target, source) {
  20536. if (source) {
  20537. for (var s in source) {
  20538. if (source.hasOwnProperty(s)) {
  20539. var value = source[s];
  20540. if ((0, _typeof2.default)(value) === 'object' && (0, _typeof2.default)(target[s]) === 'object') {
  20541. target[s] = _objectSpread(_objectSpread({}, target[s]), value);
  20542. } else {
  20543. target[s] = value;
  20544. }
  20545. }
  20546. }
  20547. }
  20548. return target;
  20549. }
  20550. /**
  20551. * Rule for validating required fields.
  20552. *
  20553. * @param rule The validation rule.
  20554. * @param value The value of the field on the source object.
  20555. * @param source The source object being validated.
  20556. * @param errors An array of errors that this rule may add
  20557. * validation errors to.
  20558. * @param options The validation options.
  20559. * @param options.messages The validation messages.
  20560. */
  20561. function required(rule, value, source, errors, options, type) {
  20562. if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) {
  20563. errors.push(format(options.messages.required, rule.fullField));
  20564. }
  20565. }
  20566. /**
  20567. * Rule for validating whitespace.
  20568. *
  20569. * @param rule The validation rule.
  20570. * @param value The value of the field on the source object.
  20571. * @param source The source object being validated.
  20572. * @param errors An array of errors that this rule may add
  20573. * validation errors to.
  20574. * @param options The validation options.
  20575. * @param options.messages The validation messages.
  20576. */
  20577. function whitespace(rule, value, source, errors, options) {
  20578. if (/^\s+$/.test(value) || value === '') {
  20579. errors.push(format(options.messages.whitespace, rule.fullField));
  20580. }
  20581. }
  20582. /* eslint max-len:0 */
  20583. var pattern = {
  20584. // http://emailregex.com/
  20585. 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,}))$/,
  20586. 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'),
  20587. hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
  20588. };
  20589. var types = {
  20590. integer: function integer(value) {
  20591. return /^(-)?\d+$/.test(value);
  20592. },
  20593. float: function float(value) {
  20594. return /^(-)?\d+(\.\d+)?$/.test(value);
  20595. },
  20596. array: function array(value) {
  20597. return Array.isArray(value);
  20598. },
  20599. regexp: function regexp(value) {
  20600. if (value instanceof RegExp) {
  20601. return true;
  20602. }
  20603. try {
  20604. return !!new RegExp(value);
  20605. } catch (e) {
  20606. return false;
  20607. }
  20608. },
  20609. date: function date(value) {
  20610. return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function';
  20611. },
  20612. number: function number(value) {
  20613. if (isNaN(value)) {
  20614. return false;
  20615. }
  20616. // 修改源码,将字符串数值先转为数值
  20617. return typeof +value === 'number';
  20618. },
  20619. object: function object(value) {
  20620. return (0, _typeof2.default)(value) === 'object' && !types.array(value);
  20621. },
  20622. method: function method(value) {
  20623. return typeof value === 'function';
  20624. },
  20625. email: function email(value) {
  20626. return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
  20627. },
  20628. url: function url(value) {
  20629. return typeof value === 'string' && !!value.match(pattern.url);
  20630. },
  20631. hex: function hex(value) {
  20632. return typeof value === 'string' && !!value.match(pattern.hex);
  20633. }
  20634. };
  20635. /**
  20636. * Rule for validating the type of a value.
  20637. *
  20638. * @param rule The validation rule.
  20639. * @param value The value of the field on the source object.
  20640. * @param source The source object being validated.
  20641. * @param errors An array of errors that this rule may add
  20642. * validation errors to.
  20643. * @param options The validation options.
  20644. * @param options.messages The validation messages.
  20645. */
  20646. function type(rule, value, source, errors, options) {
  20647. if (rule.required && value === undefined) {
  20648. required(rule, value, source, errors, options);
  20649. return;
  20650. }
  20651. var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];
  20652. var ruleType = rule.type;
  20653. if (custom.indexOf(ruleType) > -1) {
  20654. if (!types[ruleType](value)) {
  20655. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  20656. } // straight typeof check
  20657. } else if (ruleType && (0, _typeof2.default)(value) !== rule.type) {
  20658. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  20659. }
  20660. }
  20661. /**
  20662. * Rule for validating minimum and maximum allowed values.
  20663. *
  20664. * @param rule The validation rule.
  20665. * @param value The value of the field on the source object.
  20666. * @param source The source object being validated.
  20667. * @param errors An array of errors that this rule may add
  20668. * validation errors to.
  20669. * @param options The validation options.
  20670. * @param options.messages The validation messages.
  20671. */
  20672. function range(rule, value, source, errors, options) {
  20673. var len = typeof rule.len === 'number';
  20674. var min = typeof rule.min === 'number';
  20675. var max = typeof rule.max === 'number'; // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane)
  20676. var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
  20677. var val = value;
  20678. var key = null;
  20679. var num = typeof value === 'number';
  20680. var str = typeof value === 'string';
  20681. var arr = Array.isArray(value);
  20682. if (num) {
  20683. key = 'number';
  20684. } else if (str) {
  20685. key = 'string';
  20686. } else if (arr) {
  20687. key = 'array';
  20688. } // if the value is not of a supported type for range validation
  20689. // the validation rule rule should use the
  20690. // type property to also test for a particular type
  20691. if (!key) {
  20692. return false;
  20693. }
  20694. if (arr) {
  20695. val = value.length;
  20696. }
  20697. if (str) {
  20698. // 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3
  20699. val = value.replace(spRegexp, '_').length;
  20700. }
  20701. if (len) {
  20702. if (val !== rule.len) {
  20703. errors.push(format(options.messages[key].len, rule.fullField, rule.len));
  20704. }
  20705. } else if (min && !max && val < rule.min) {
  20706. errors.push(format(options.messages[key].min, rule.fullField, rule.min));
  20707. } else if (max && !min && val > rule.max) {
  20708. errors.push(format(options.messages[key].max, rule.fullField, rule.max));
  20709. } else if (min && max && (val < rule.min || val > rule.max)) {
  20710. errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));
  20711. }
  20712. }
  20713. var ENUM = 'enum';
  20714. /**
  20715. * Rule for validating a value exists in an enumerable list.
  20716. *
  20717. * @param rule The validation rule.
  20718. * @param value The value of the field on the source object.
  20719. * @param source The source object being validated.
  20720. * @param errors An array of errors that this rule may add
  20721. * validation errors to.
  20722. * @param options The validation options.
  20723. * @param options.messages The validation messages.
  20724. */
  20725. function enumerable(rule, value, source, errors, options) {
  20726. rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : [];
  20727. if (rule[ENUM].indexOf(value) === -1) {
  20728. errors.push(format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', ')));
  20729. }
  20730. }
  20731. /**
  20732. * Rule for validating a regular expression pattern.
  20733. *
  20734. * @param rule The validation rule.
  20735. * @param value The value of the field on the source object.
  20736. * @param source The source object being validated.
  20737. * @param errors An array of errors that this rule may add
  20738. * validation errors to.
  20739. * @param options The validation options.
  20740. * @param options.messages The validation messages.
  20741. */
  20742. function pattern$1(rule, value, source, errors, options) {
  20743. if (rule.pattern) {
  20744. if (rule.pattern instanceof RegExp) {
  20745. // if a RegExp instance is passed, reset `lastIndex` in case its `global`
  20746. // flag is accidentally set to `true`, which in a validation scenario
  20747. // is not necessary and the result might be misleading
  20748. rule.pattern.lastIndex = 0;
  20749. if (!rule.pattern.test(value)) {
  20750. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  20751. }
  20752. } else if (typeof rule.pattern === 'string') {
  20753. var _pattern = new RegExp(rule.pattern);
  20754. if (!_pattern.test(value)) {
  20755. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  20756. }
  20757. }
  20758. }
  20759. }
  20760. var rules = {
  20761. required: required,
  20762. whitespace: whitespace,
  20763. type: type,
  20764. range: range,
  20765. enum: enumerable,
  20766. pattern: pattern$1
  20767. };
  20768. /**
  20769. * Performs validation for string types.
  20770. *
  20771. * @param rule The validation rule.
  20772. * @param value The value of the field on the source object.
  20773. * @param callback The callback function.
  20774. * @param source The source object being validated.
  20775. * @param options The validation options.
  20776. * @param options.messages The validation messages.
  20777. */
  20778. function string(rule, value, callback, source, options) {
  20779. var errors = [];
  20780. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20781. if (validate) {
  20782. if (isEmptyValue(value, 'string') && !rule.required) {
  20783. return callback();
  20784. }
  20785. rules.required(rule, value, source, errors, options, 'string');
  20786. if (!isEmptyValue(value, 'string')) {
  20787. rules.type(rule, value, source, errors, options);
  20788. rules.range(rule, value, source, errors, options);
  20789. rules.pattern(rule, value, source, errors, options);
  20790. if (rule.whitespace === true) {
  20791. rules.whitespace(rule, value, source, errors, options);
  20792. }
  20793. }
  20794. }
  20795. callback(errors);
  20796. }
  20797. /**
  20798. * Validates a function.
  20799. *
  20800. * @param rule The validation rule.
  20801. * @param value The value of the field on the source object.
  20802. * @param callback The callback function.
  20803. * @param source The source object being validated.
  20804. * @param options The validation options.
  20805. * @param options.messages The validation messages.
  20806. */
  20807. function method(rule, value, callback, source, options) {
  20808. var errors = [];
  20809. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20810. if (validate) {
  20811. if (isEmptyValue(value) && !rule.required) {
  20812. return callback();
  20813. }
  20814. rules.required(rule, value, source, errors, options);
  20815. if (value !== undefined) {
  20816. rules.type(rule, value, source, errors, options);
  20817. }
  20818. }
  20819. callback(errors);
  20820. }
  20821. /**
  20822. * Validates a number.
  20823. *
  20824. * @param rule The validation rule.
  20825. * @param value The value of the field on the source object.
  20826. * @param callback The callback function.
  20827. * @param source The source object being validated.
  20828. * @param options The validation options.
  20829. * @param options.messages The validation messages.
  20830. */
  20831. function number(rule, value, callback, source, options) {
  20832. var errors = [];
  20833. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20834. if (validate) {
  20835. if (value === '') {
  20836. value = undefined;
  20837. }
  20838. if (isEmptyValue(value) && !rule.required) {
  20839. return callback();
  20840. }
  20841. rules.required(rule, value, source, errors, options);
  20842. if (value !== undefined) {
  20843. rules.type(rule, value, source, errors, options);
  20844. rules.range(rule, value, source, errors, options);
  20845. }
  20846. }
  20847. callback(errors);
  20848. }
  20849. /**
  20850. * Validates a boolean.
  20851. *
  20852. * @param rule The validation rule.
  20853. * @param value The value of the field on the source object.
  20854. * @param callback The callback function.
  20855. * @param source The source object being validated.
  20856. * @param options The validation options.
  20857. * @param options.messages The validation messages.
  20858. */
  20859. function _boolean(rule, value, callback, source, options) {
  20860. var errors = [];
  20861. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20862. if (validate) {
  20863. if (isEmptyValue(value) && !rule.required) {
  20864. return callback();
  20865. }
  20866. rules.required(rule, value, source, errors, options);
  20867. if (value !== undefined) {
  20868. rules.type(rule, value, source, errors, options);
  20869. }
  20870. }
  20871. callback(errors);
  20872. }
  20873. /**
  20874. * Validates the regular expression type.
  20875. *
  20876. * @param rule The validation rule.
  20877. * @param value The value of the field on the source object.
  20878. * @param callback The callback function.
  20879. * @param source The source object being validated.
  20880. * @param options The validation options.
  20881. * @param options.messages The validation messages.
  20882. */
  20883. function regexp(rule, value, callback, source, options) {
  20884. var errors = [];
  20885. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20886. if (validate) {
  20887. if (isEmptyValue(value) && !rule.required) {
  20888. return callback();
  20889. }
  20890. rules.required(rule, value, source, errors, options);
  20891. if (!isEmptyValue(value)) {
  20892. rules.type(rule, value, source, errors, options);
  20893. }
  20894. }
  20895. callback(errors);
  20896. }
  20897. /**
  20898. * Validates a number is an integer.
  20899. *
  20900. * @param rule The validation rule.
  20901. * @param value The value of the field on the source object.
  20902. * @param callback The callback function.
  20903. * @param source The source object being validated.
  20904. * @param options The validation options.
  20905. * @param options.messages The validation messages.
  20906. */
  20907. function integer(rule, value, callback, source, options) {
  20908. var errors = [];
  20909. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20910. if (validate) {
  20911. if (isEmptyValue(value) && !rule.required) {
  20912. return callback();
  20913. }
  20914. rules.required(rule, value, source, errors, options);
  20915. if (value !== undefined) {
  20916. rules.type(rule, value, source, errors, options);
  20917. rules.range(rule, value, source, errors, options);
  20918. }
  20919. }
  20920. callback(errors);
  20921. }
  20922. /**
  20923. * Validates a number is a floating point number.
  20924. *
  20925. * @param rule The validation rule.
  20926. * @param value The value of the field on the source object.
  20927. * @param callback The callback function.
  20928. * @param source The source object being validated.
  20929. * @param options The validation options.
  20930. * @param options.messages The validation messages.
  20931. */
  20932. function floatFn(rule, value, callback, source, options) {
  20933. var errors = [];
  20934. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20935. if (validate) {
  20936. if (isEmptyValue(value) && !rule.required) {
  20937. return callback();
  20938. }
  20939. rules.required(rule, value, source, errors, options);
  20940. if (value !== undefined) {
  20941. rules.type(rule, value, source, errors, options);
  20942. rules.range(rule, value, source, errors, options);
  20943. }
  20944. }
  20945. callback(errors);
  20946. }
  20947. /**
  20948. * Validates an array.
  20949. *
  20950. * @param rule The validation rule.
  20951. * @param value The value of the field on the source object.
  20952. * @param callback The callback function.
  20953. * @param source The source object being validated.
  20954. * @param options The validation options.
  20955. * @param options.messages The validation messages.
  20956. */
  20957. function array(rule, value, callback, source, options) {
  20958. var errors = [];
  20959. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20960. if (validate) {
  20961. if (isEmptyValue(value, 'array') && !rule.required) {
  20962. return callback();
  20963. }
  20964. rules.required(rule, value, source, errors, options, 'array');
  20965. if (!isEmptyValue(value, 'array')) {
  20966. rules.type(rule, value, source, errors, options);
  20967. rules.range(rule, value, source, errors, options);
  20968. }
  20969. }
  20970. callback(errors);
  20971. }
  20972. /**
  20973. * Validates an object.
  20974. *
  20975. * @param rule The validation rule.
  20976. * @param value The value of the field on the source object.
  20977. * @param callback The callback function.
  20978. * @param source The source object being validated.
  20979. * @param options The validation options.
  20980. * @param options.messages The validation messages.
  20981. */
  20982. function object(rule, value, callback, source, options) {
  20983. var errors = [];
  20984. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20985. if (validate) {
  20986. if (isEmptyValue(value) && !rule.required) {
  20987. return callback();
  20988. }
  20989. rules.required(rule, value, source, errors, options);
  20990. if (value !== undefined) {
  20991. rules.type(rule, value, source, errors, options);
  20992. }
  20993. }
  20994. callback(errors);
  20995. }
  20996. var ENUM$1 = 'enum';
  20997. /**
  20998. * Validates an enumerable list.
  20999. *
  21000. * @param rule The validation rule.
  21001. * @param value The value of the field on the source object.
  21002. * @param callback The callback function.
  21003. * @param source The source object being validated.
  21004. * @param options The validation options.
  21005. * @param options.messages The validation messages.
  21006. */
  21007. function enumerable$1(rule, value, callback, source, options) {
  21008. var errors = [];
  21009. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21010. if (validate) {
  21011. if (isEmptyValue(value) && !rule.required) {
  21012. return callback();
  21013. }
  21014. rules.required(rule, value, source, errors, options);
  21015. if (value !== undefined) {
  21016. rules[ENUM$1](rule, value, source, errors, options);
  21017. }
  21018. }
  21019. callback(errors);
  21020. }
  21021. /**
  21022. * Validates a regular expression pattern.
  21023. *
  21024. * Performs validation when a rule only contains
  21025. * a pattern property but is not declared as a string type.
  21026. *
  21027. * @param rule The validation rule.
  21028. * @param value The value of the field on the source object.
  21029. * @param callback The callback function.
  21030. * @param source The source object being validated.
  21031. * @param options The validation options.
  21032. * @param options.messages The validation messages.
  21033. */
  21034. function pattern$2(rule, value, callback, source, options) {
  21035. var errors = [];
  21036. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21037. if (validate) {
  21038. if (isEmptyValue(value, 'string') && !rule.required) {
  21039. return callback();
  21040. }
  21041. rules.required(rule, value, source, errors, options);
  21042. if (!isEmptyValue(value, 'string')) {
  21043. rules.pattern(rule, value, source, errors, options);
  21044. }
  21045. }
  21046. callback(errors);
  21047. }
  21048. function date(rule, value, callback, source, options) {
  21049. var errors = [];
  21050. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21051. if (validate) {
  21052. if (isEmptyValue(value) && !rule.required) {
  21053. return callback();
  21054. }
  21055. rules.required(rule, value, source, errors, options);
  21056. if (!isEmptyValue(value)) {
  21057. var dateObject;
  21058. if (typeof value === 'number') {
  21059. dateObject = new Date(value);
  21060. } else {
  21061. dateObject = value;
  21062. }
  21063. rules.type(rule, dateObject, source, errors, options);
  21064. if (dateObject) {
  21065. rules.range(rule, dateObject.getTime(), source, errors, options);
  21066. }
  21067. }
  21068. }
  21069. callback(errors);
  21070. }
  21071. function required$1(rule, value, callback, source, options) {
  21072. var errors = [];
  21073. var type = Array.isArray(value) ? 'array' : (0, _typeof2.default)(value);
  21074. rules.required(rule, value, source, errors, options, type);
  21075. callback(errors);
  21076. }
  21077. function type$1(rule, value, callback, source, options) {
  21078. var ruleType = rule.type;
  21079. var errors = [];
  21080. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21081. if (validate) {
  21082. if (isEmptyValue(value, ruleType) && !rule.required) {
  21083. return callback();
  21084. }
  21085. rules.required(rule, value, source, errors, options, ruleType);
  21086. if (!isEmptyValue(value, ruleType)) {
  21087. rules.type(rule, value, source, errors, options);
  21088. }
  21089. }
  21090. callback(errors);
  21091. }
  21092. /**
  21093. * Performs validation for any type.
  21094. *
  21095. * @param rule The validation rule.
  21096. * @param value The value of the field on the source object.
  21097. * @param callback The callback function.
  21098. * @param source The source object being validated.
  21099. * @param options The validation options.
  21100. * @param options.messages The validation messages.
  21101. */
  21102. function any(rule, value, callback, source, options) {
  21103. var errors = [];
  21104. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21105. if (validate) {
  21106. if (isEmptyValue(value) && !rule.required) {
  21107. return callback();
  21108. }
  21109. rules.required(rule, value, source, errors, options);
  21110. }
  21111. callback(errors);
  21112. }
  21113. var validators = {
  21114. string: string,
  21115. method: method,
  21116. number: number,
  21117. boolean: _boolean,
  21118. regexp: regexp,
  21119. integer: integer,
  21120. float: floatFn,
  21121. array: array,
  21122. object: object,
  21123. enum: enumerable$1,
  21124. pattern: pattern$2,
  21125. date: date,
  21126. url: type$1,
  21127. hex: type$1,
  21128. email: type$1,
  21129. required: required$1,
  21130. any: any
  21131. };
  21132. function newMessages() {
  21133. return {
  21134. default: 'Validation error on field %s',
  21135. required: '%s is required',
  21136. enum: '%s must be one of %s',
  21137. whitespace: '%s cannot be empty',
  21138. date: {
  21139. format: '%s date %s is invalid for format %s',
  21140. parse: '%s date could not be parsed, %s is invalid ',
  21141. invalid: '%s date %s is invalid'
  21142. },
  21143. types: {
  21144. string: '%s is not a %s',
  21145. method: '%s is not a %s (function)',
  21146. array: '%s is not an %s',
  21147. object: '%s is not an %s',
  21148. number: '%s is not a %s',
  21149. date: '%s is not a %s',
  21150. boolean: '%s is not a %s',
  21151. integer: '%s is not an %s',
  21152. float: '%s is not a %s',
  21153. regexp: '%s is not a valid %s',
  21154. email: '%s is not a valid %s',
  21155. url: '%s is not a valid %s',
  21156. hex: '%s is not a valid %s'
  21157. },
  21158. string: {
  21159. len: '%s must be exactly %s characters',
  21160. min: '%s must be at least %s characters',
  21161. max: '%s cannot be longer than %s characters',
  21162. range: '%s must be between %s and %s characters'
  21163. },
  21164. number: {
  21165. len: '%s must equal %s',
  21166. min: '%s cannot be less than %s',
  21167. max: '%s cannot be greater than %s',
  21168. range: '%s must be between %s and %s'
  21169. },
  21170. array: {
  21171. len: '%s must be exactly %s in length',
  21172. min: '%s cannot be less than %s in length',
  21173. max: '%s cannot be greater than %s in length',
  21174. range: '%s must be between %s and %s in length'
  21175. },
  21176. pattern: {
  21177. mismatch: '%s value %s does not match pattern %s'
  21178. },
  21179. clone: function clone() {
  21180. var cloned = JSON.parse(JSON.stringify(this));
  21181. cloned.clone = this.clone;
  21182. return cloned;
  21183. }
  21184. };
  21185. }
  21186. var messages = newMessages();
  21187. /**
  21188. * Encapsulates a validation schema.
  21189. *
  21190. * @param descriptor An object declaring validation rules
  21191. * for this schema.
  21192. */
  21193. function Schema(descriptor) {
  21194. this.rules = null;
  21195. this._messages = messages;
  21196. this.define(descriptor);
  21197. }
  21198. Schema.prototype = {
  21199. messages: function messages(_messages) {
  21200. if (_messages) {
  21201. this._messages = deepMerge(newMessages(), _messages);
  21202. }
  21203. return this._messages;
  21204. },
  21205. define: function define(rules) {
  21206. if (!rules) {
  21207. throw new Error('Cannot configure a schema with no rules');
  21208. }
  21209. if ((0, _typeof2.default)(rules) !== 'object' || Array.isArray(rules)) {
  21210. throw new Error('Rules must be an object');
  21211. }
  21212. this.rules = {};
  21213. var z;
  21214. var item;
  21215. for (z in rules) {
  21216. if (rules.hasOwnProperty(z)) {
  21217. item = rules[z];
  21218. this.rules[z] = Array.isArray(item) ? item : [item];
  21219. }
  21220. }
  21221. },
  21222. validate: function validate(source_, o, oc) {
  21223. var _this = this;
  21224. if (o === void 0) {
  21225. o = {};
  21226. }
  21227. if (oc === void 0) {
  21228. oc = function oc() {};
  21229. }
  21230. var source = source_;
  21231. var options = o;
  21232. var callback = oc;
  21233. if (typeof options === 'function') {
  21234. callback = options;
  21235. options = {};
  21236. }
  21237. if (!this.rules || Object.keys(this.rules).length === 0) {
  21238. if (callback) {
  21239. callback();
  21240. }
  21241. return Promise.resolve();
  21242. }
  21243. function complete(results) {
  21244. var i;
  21245. var errors = [];
  21246. var fields = {};
  21247. function add(e) {
  21248. if (Array.isArray(e)) {
  21249. var _errors;
  21250. errors = (_errors = errors).concat.apply(_errors, e);
  21251. } else {
  21252. errors.push(e);
  21253. }
  21254. }
  21255. for (i = 0; i < results.length; i++) {
  21256. add(results[i]);
  21257. }
  21258. if (!errors.length) {
  21259. errors = null;
  21260. fields = null;
  21261. } else {
  21262. fields = convertFieldsError(errors);
  21263. }
  21264. callback(errors, fields);
  21265. }
  21266. if (options.messages) {
  21267. var messages$1 = this.messages();
  21268. if (messages$1 === messages) {
  21269. messages$1 = newMessages();
  21270. }
  21271. deepMerge(messages$1, options.messages);
  21272. options.messages = messages$1;
  21273. } else {
  21274. options.messages = this.messages();
  21275. }
  21276. var arr;
  21277. var value;
  21278. var series = {};
  21279. var keys = options.keys || Object.keys(this.rules);
  21280. keys.forEach(function (z) {
  21281. arr = _this.rules[z];
  21282. value = source[z];
  21283. arr.forEach(function (r) {
  21284. var rule = r;
  21285. if (typeof rule.transform === 'function') {
  21286. if (source === source_) {
  21287. source = _objectSpread({}, source);
  21288. }
  21289. value = source[z] = rule.transform(value);
  21290. }
  21291. if (typeof rule === 'function') {
  21292. rule = {
  21293. validator: rule
  21294. };
  21295. } else {
  21296. rule = _objectSpread({}, rule);
  21297. }
  21298. rule.validator = _this.getValidationMethod(rule);
  21299. rule.field = z;
  21300. rule.fullField = rule.fullField || z;
  21301. rule.type = _this.getType(rule);
  21302. if (!rule.validator) {
  21303. return;
  21304. }
  21305. series[z] = series[z] || [];
  21306. series[z].push({
  21307. rule: rule,
  21308. value: value,
  21309. source: source,
  21310. field: z
  21311. });
  21312. });
  21313. });
  21314. var errorFields = {};
  21315. return asyncMap(series, options, function (data, doIt) {
  21316. var rule = data.rule;
  21317. var deep = (rule.type === 'object' || rule.type === 'array') && ((0, _typeof2.default)(rule.fields) === 'object' || (0, _typeof2.default)(rule.defaultField) === 'object');
  21318. deep = deep && (rule.required || !rule.required && data.value);
  21319. rule.field = data.field;
  21320. function addFullfield(key, schema) {
  21321. return _objectSpread(_objectSpread({}, schema), {}, {
  21322. fullField: "".concat(rule.fullField, ".").concat(key)
  21323. });
  21324. }
  21325. function cb(e) {
  21326. if (e === void 0) {
  21327. e = [];
  21328. }
  21329. var errors = e;
  21330. if (!Array.isArray(errors)) {
  21331. errors = [errors];
  21332. }
  21333. if (!options.suppressWarning && errors.length) {
  21334. Schema.warning('async-validator:', errors);
  21335. }
  21336. if (errors.length && rule.message) {
  21337. errors = [].concat(rule.message);
  21338. }
  21339. errors = errors.map(complementError(rule));
  21340. if (options.first && errors.length) {
  21341. errorFields[rule.field] = 1;
  21342. return doIt(errors);
  21343. }
  21344. if (!deep) {
  21345. doIt(errors);
  21346. } else {
  21347. // if rule is required but the target object
  21348. // does not exist fail at the rule level and don't
  21349. // go deeper
  21350. if (rule.required && !data.value) {
  21351. if (rule.message) {
  21352. errors = [].concat(rule.message).map(complementError(rule));
  21353. } else if (options.error) {
  21354. errors = [options.error(rule, format(options.messages.required, rule.field))];
  21355. } else {
  21356. errors = [];
  21357. }
  21358. return doIt(errors);
  21359. }
  21360. var fieldsSchema = {};
  21361. if (rule.defaultField) {
  21362. for (var k in data.value) {
  21363. if (data.value.hasOwnProperty(k)) {
  21364. fieldsSchema[k] = rule.defaultField;
  21365. }
  21366. }
  21367. }
  21368. fieldsSchema = _objectSpread(_objectSpread({}, fieldsSchema), data.rule.fields);
  21369. for (var f in fieldsSchema) {
  21370. if (fieldsSchema.hasOwnProperty(f)) {
  21371. var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]];
  21372. fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f));
  21373. }
  21374. }
  21375. var schema = new Schema(fieldsSchema);
  21376. schema.messages(options.messages);
  21377. if (data.rule.options) {
  21378. data.rule.options.messages = options.messages;
  21379. data.rule.options.error = options.error;
  21380. }
  21381. schema.validate(data.value, data.rule.options || options, function (errs) {
  21382. var finalErrors = [];
  21383. if (errors && errors.length) {
  21384. finalErrors.push.apply(finalErrors, errors);
  21385. }
  21386. if (errs && errs.length) {
  21387. finalErrors.push.apply(finalErrors, errs);
  21388. }
  21389. doIt(finalErrors.length ? finalErrors : null);
  21390. });
  21391. }
  21392. }
  21393. var res;
  21394. if (rule.asyncValidator) {
  21395. res = rule.asyncValidator(rule, data.value, cb, data.source, options);
  21396. } else if (rule.validator) {
  21397. res = rule.validator(rule, data.value, cb, data.source, options);
  21398. if (res === true) {
  21399. cb();
  21400. } else if (res === false) {
  21401. cb(rule.message || "".concat(rule.field, " fails"));
  21402. } else if (res instanceof Array) {
  21403. cb(res);
  21404. } else if (res instanceof Error) {
  21405. cb(res.message);
  21406. }
  21407. }
  21408. if (res && res.then) {
  21409. res.then(function () {
  21410. return cb();
  21411. }, function (e) {
  21412. return cb(e);
  21413. });
  21414. }
  21415. }, function (results) {
  21416. complete(results);
  21417. });
  21418. },
  21419. getType: function getType(rule) {
  21420. if (rule.type === undefined && rule.pattern instanceof RegExp) {
  21421. rule.type = 'pattern';
  21422. }
  21423. if (typeof rule.validator !== 'function' && rule.type && !validators.hasOwnProperty(rule.type)) {
  21424. throw new Error(format('Unknown rule type %s', rule.type));
  21425. }
  21426. return rule.type || 'string';
  21427. },
  21428. getValidationMethod: function getValidationMethod(rule) {
  21429. if (typeof rule.validator === 'function') {
  21430. return rule.validator;
  21431. }
  21432. var keys = Object.keys(rule);
  21433. var messageIndex = keys.indexOf('message');
  21434. if (messageIndex !== -1) {
  21435. keys.splice(messageIndex, 1);
  21436. }
  21437. if (keys.length === 1 && keys[0] === 'required') {
  21438. return validators.required;
  21439. }
  21440. return validators[this.getType(rule)] || false;
  21441. }
  21442. };
  21443. Schema.register = function register(type, validator) {
  21444. if (typeof validator !== 'function') {
  21445. throw new Error('Cannot register a validator by type, validator is not a function');
  21446. }
  21447. validators[type] = validator;
  21448. };
  21449. Schema.warning = warning;
  21450. Schema.messages = messages;
  21451. var _default = Schema; // # sourceMappingURL=index.js.map
  21452. exports.default = _default;
  21453. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/node-libs-browser/mock/process.js */ 280)))
  21454. /***/ }),
  21455. /* 280 */
  21456. /*!********************************************************!*\
  21457. !*** ./node_modules/node-libs-browser/mock/process.js ***!
  21458. \********************************************************/
  21459. /*! no static exports found */
  21460. /***/ (function(module, exports, __webpack_require__) {
  21461. exports.nextTick = function nextTick(fn) {
  21462. var args = Array.prototype.slice.call(arguments);
  21463. args.shift();
  21464. setTimeout(function () {
  21465. fn.apply(null, args);
  21466. }, 0);
  21467. };
  21468. exports.platform = exports.arch =
  21469. exports.execPath = exports.title = 'browser';
  21470. exports.pid = 1;
  21471. exports.browser = true;
  21472. exports.env = {};
  21473. exports.argv = [];
  21474. exports.binding = function (name) {
  21475. throw new Error('No such module. (Possibly not yet loaded)')
  21476. };
  21477. (function () {
  21478. var cwd = '/';
  21479. var path;
  21480. exports.cwd = function () { return cwd };
  21481. exports.chdir = function (dir) {
  21482. if (!path) path = __webpack_require__(/*! path */ 281);
  21483. cwd = path.resolve(dir, cwd);
  21484. };
  21485. })();
  21486. exports.exit = exports.kill =
  21487. exports.umask = exports.dlopen =
  21488. exports.uptime = exports.memoryUsage =
  21489. exports.uvCounters = function() {};
  21490. exports.features = {};
  21491. /***/ }),
  21492. /* 281 */
  21493. /*!***********************************************!*\
  21494. !*** ./node_modules/path-browserify/index.js ***!
  21495. \***********************************************/
  21496. /*! no static exports found */
  21497. /***/ (function(module, exports, __webpack_require__) {
  21498. /* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
  21499. // backported and transplited with Babel, with backwards-compat fixes
  21500. // Copyright Joyent, Inc. and other Node contributors.
  21501. //
  21502. // Permission is hereby granted, free of charge, to any person obtaining a
  21503. // copy of this software and associated documentation files (the
  21504. // "Software"), to deal in the Software without restriction, including
  21505. // without limitation the rights to use, copy, modify, merge, publish,
  21506. // distribute, sublicense, and/or sell copies of the Software, and to permit
  21507. // persons to whom the Software is furnished to do so, subject to the
  21508. // following conditions:
  21509. //
  21510. // The above copyright notice and this permission notice shall be included
  21511. // in all copies or substantial portions of the Software.
  21512. //
  21513. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  21514. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  21515. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  21516. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  21517. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  21518. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  21519. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  21520. // resolves . and .. elements in a path array with directory names there
  21521. // must be no slashes, empty elements, or device names (c:\) in the array
  21522. // (so also no leading and trailing slashes - it does not distinguish
  21523. // relative and absolute paths)
  21524. function normalizeArray(parts, allowAboveRoot) {
  21525. // if the path tries to go above the root, `up` ends up > 0
  21526. var up = 0;
  21527. for (var i = parts.length - 1; i >= 0; i--) {
  21528. var last = parts[i];
  21529. if (last === '.') {
  21530. parts.splice(i, 1);
  21531. } else if (last === '..') {
  21532. parts.splice(i, 1);
  21533. up++;
  21534. } else if (up) {
  21535. parts.splice(i, 1);
  21536. up--;
  21537. }
  21538. }
  21539. // if the path is allowed to go above the root, restore leading ..s
  21540. if (allowAboveRoot) {
  21541. for (; up--; up) {
  21542. parts.unshift('..');
  21543. }
  21544. }
  21545. return parts;
  21546. }
  21547. // path.resolve([from ...], to)
  21548. // posix version
  21549. exports.resolve = function() {
  21550. var resolvedPath = '',
  21551. resolvedAbsolute = false;
  21552. for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
  21553. var path = (i >= 0) ? arguments[i] : process.cwd();
  21554. // Skip empty and invalid entries
  21555. if (typeof path !== 'string') {
  21556. throw new TypeError('Arguments to path.resolve must be strings');
  21557. } else if (!path) {
  21558. continue;
  21559. }
  21560. resolvedPath = path + '/' + resolvedPath;
  21561. resolvedAbsolute = path.charAt(0) === '/';
  21562. }
  21563. // At this point the path should be resolved to a full absolute path, but
  21564. // handle relative paths to be safe (might happen when process.cwd() fails)
  21565. // Normalize the path
  21566. resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
  21567. return !!p;
  21568. }), !resolvedAbsolute).join('/');
  21569. return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
  21570. };
  21571. // path.normalize(path)
  21572. // posix version
  21573. exports.normalize = function(path) {
  21574. var isAbsolute = exports.isAbsolute(path),
  21575. trailingSlash = substr(path, -1) === '/';
  21576. // Normalize the path
  21577. path = normalizeArray(filter(path.split('/'), function(p) {
  21578. return !!p;
  21579. }), !isAbsolute).join('/');
  21580. if (!path && !isAbsolute) {
  21581. path = '.';
  21582. }
  21583. if (path && trailingSlash) {
  21584. path += '/';
  21585. }
  21586. return (isAbsolute ? '/' : '') + path;
  21587. };
  21588. // posix version
  21589. exports.isAbsolute = function(path) {
  21590. return path.charAt(0) === '/';
  21591. };
  21592. // posix version
  21593. exports.join = function() {
  21594. var paths = Array.prototype.slice.call(arguments, 0);
  21595. return exports.normalize(filter(paths, function(p, index) {
  21596. if (typeof p !== 'string') {
  21597. throw new TypeError('Arguments to path.join must be strings');
  21598. }
  21599. return p;
  21600. }).join('/'));
  21601. };
  21602. // path.relative(from, to)
  21603. // posix version
  21604. exports.relative = function(from, to) {
  21605. from = exports.resolve(from).substr(1);
  21606. to = exports.resolve(to).substr(1);
  21607. function trim(arr) {
  21608. var start = 0;
  21609. for (; start < arr.length; start++) {
  21610. if (arr[start] !== '') break;
  21611. }
  21612. var end = arr.length - 1;
  21613. for (; end >= 0; end--) {
  21614. if (arr[end] !== '') break;
  21615. }
  21616. if (start > end) return [];
  21617. return arr.slice(start, end - start + 1);
  21618. }
  21619. var fromParts = trim(from.split('/'));
  21620. var toParts = trim(to.split('/'));
  21621. var length = Math.min(fromParts.length, toParts.length);
  21622. var samePartsLength = length;
  21623. for (var i = 0; i < length; i++) {
  21624. if (fromParts[i] !== toParts[i]) {
  21625. samePartsLength = i;
  21626. break;
  21627. }
  21628. }
  21629. var outputParts = [];
  21630. for (var i = samePartsLength; i < fromParts.length; i++) {
  21631. outputParts.push('..');
  21632. }
  21633. outputParts = outputParts.concat(toParts.slice(samePartsLength));
  21634. return outputParts.join('/');
  21635. };
  21636. exports.sep = '/';
  21637. exports.delimiter = ':';
  21638. exports.dirname = function (path) {
  21639. if (typeof path !== 'string') path = path + '';
  21640. if (path.length === 0) return '.';
  21641. var code = path.charCodeAt(0);
  21642. var hasRoot = code === 47 /*/*/;
  21643. var end = -1;
  21644. var matchedSlash = true;
  21645. for (var i = path.length - 1; i >= 1; --i) {
  21646. code = path.charCodeAt(i);
  21647. if (code === 47 /*/*/) {
  21648. if (!matchedSlash) {
  21649. end = i;
  21650. break;
  21651. }
  21652. } else {
  21653. // We saw the first non-path separator
  21654. matchedSlash = false;
  21655. }
  21656. }
  21657. if (end === -1) return hasRoot ? '/' : '.';
  21658. if (hasRoot && end === 1) {
  21659. // return '//';
  21660. // Backwards-compat fix:
  21661. return '/';
  21662. }
  21663. return path.slice(0, end);
  21664. };
  21665. function basename(path) {
  21666. if (typeof path !== 'string') path = path + '';
  21667. var start = 0;
  21668. var end = -1;
  21669. var matchedSlash = true;
  21670. var i;
  21671. for (i = path.length - 1; i >= 0; --i) {
  21672. if (path.charCodeAt(i) === 47 /*/*/) {
  21673. // If we reached a path separator that was not part of a set of path
  21674. // separators at the end of the string, stop now
  21675. if (!matchedSlash) {
  21676. start = i + 1;
  21677. break;
  21678. }
  21679. } else if (end === -1) {
  21680. // We saw the first non-path separator, mark this as the end of our
  21681. // path component
  21682. matchedSlash = false;
  21683. end = i + 1;
  21684. }
  21685. }
  21686. if (end === -1) return '';
  21687. return path.slice(start, end);
  21688. }
  21689. // Uses a mixed approach for backwards-compatibility, as ext behavior changed
  21690. // in new Node.js versions, so only basename() above is backported here
  21691. exports.basename = function (path, ext) {
  21692. var f = basename(path);
  21693. if (ext && f.substr(-1 * ext.length) === ext) {
  21694. f = f.substr(0, f.length - ext.length);
  21695. }
  21696. return f;
  21697. };
  21698. exports.extname = function (path) {
  21699. if (typeof path !== 'string') path = path + '';
  21700. var startDot = -1;
  21701. var startPart = 0;
  21702. var end = -1;
  21703. var matchedSlash = true;
  21704. // Track the state of characters (if any) we see before our first dot and
  21705. // after any path separator we find
  21706. var preDotState = 0;
  21707. for (var i = path.length - 1; i >= 0; --i) {
  21708. var code = path.charCodeAt(i);
  21709. if (code === 47 /*/*/) {
  21710. // If we reached a path separator that was not part of a set of path
  21711. // separators at the end of the string, stop now
  21712. if (!matchedSlash) {
  21713. startPart = i + 1;
  21714. break;
  21715. }
  21716. continue;
  21717. }
  21718. if (end === -1) {
  21719. // We saw the first non-path separator, mark this as the end of our
  21720. // extension
  21721. matchedSlash = false;
  21722. end = i + 1;
  21723. }
  21724. if (code === 46 /*.*/) {
  21725. // If this is our first dot, mark it as the start of our extension
  21726. if (startDot === -1)
  21727. startDot = i;
  21728. else if (preDotState !== 1)
  21729. preDotState = 1;
  21730. } else if (startDot !== -1) {
  21731. // We saw a non-dot and non-path separator before our dot, so we should
  21732. // have a good chance at having a non-empty extension
  21733. preDotState = -1;
  21734. }
  21735. }
  21736. if (startDot === -1 || end === -1 ||
  21737. // We saw a non-dot character immediately before the dot
  21738. preDotState === 0 ||
  21739. // The (right-most) trimmed path component is exactly '..'
  21740. preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
  21741. return '';
  21742. }
  21743. return path.slice(startDot, end);
  21744. };
  21745. function filter (xs, f) {
  21746. if (xs.filter) return xs.filter(f);
  21747. var res = [];
  21748. for (var i = 0; i < xs.length; i++) {
  21749. if (f(xs[i], i, xs)) res.push(xs[i]);
  21750. }
  21751. return res;
  21752. }
  21753. // String.prototype.substr - negative index don't work in IE8
  21754. var substr = 'ab'.substr(-1) === 'b'
  21755. ? function (str, start, len) { return str.substr(start, len) }
  21756. : function (str, start, len) {
  21757. if (start < 0) start = str.length + start;
  21758. return str.substr(start, len);
  21759. }
  21760. ;
  21761. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ 280)))
  21762. /***/ }),
  21763. /* 282 */,
  21764. /* 283 */,
  21765. /* 284 */,
  21766. /* 285 */,
  21767. /* 286 */,
  21768. /* 287 */
  21769. /*!***************************************************************************************************************!*\
  21770. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/components/u-form-item/props.js ***!
  21771. \***************************************************************************************************************/
  21772. /*! no static exports found */
  21773. /***/ (function(module, exports, __webpack_require__) {
  21774. "use strict";
  21775. /* WEBPACK VAR INJECTION */(function(uni) {
  21776. Object.defineProperty(exports, "__esModule", {
  21777. value: true
  21778. });
  21779. exports.default = void 0;
  21780. var _default = {
  21781. props: {
  21782. // input的label提示语
  21783. label: {
  21784. type: String,
  21785. default: uni.$u.props.formItem.label
  21786. },
  21787. // 绑定的值
  21788. prop: {
  21789. type: String,
  21790. default: uni.$u.props.formItem.prop
  21791. },
  21792. // 是否显示表单域的下划线边框
  21793. borderBottom: {
  21794. type: [String, Boolean],
  21795. default: uni.$u.props.formItem.borderBottom
  21796. },
  21797. // label的位置,left-左边,top-上边
  21798. labelPosition: {
  21799. type: String,
  21800. default: uni.$u.props.formItem.labelPosition
  21801. },
  21802. // label的宽度,单位px
  21803. labelWidth: {
  21804. type: [String, Number],
  21805. default: uni.$u.props.formItem.labelWidth
  21806. },
  21807. // 右侧图标
  21808. rightIcon: {
  21809. type: String,
  21810. default: uni.$u.props.formItem.rightIcon
  21811. },
  21812. // 左侧图标
  21813. leftIcon: {
  21814. type: String,
  21815. default: uni.$u.props.formItem.leftIcon
  21816. },
  21817. // 是否显示左边的必填星号,只作显示用,具体校验必填的逻辑,请在rules中配置
  21818. required: {
  21819. type: Boolean,
  21820. default: uni.$u.props.formItem.required
  21821. },
  21822. leftIconStyle: {
  21823. type: [String, Object],
  21824. default: uni.$u.props.formItem.leftIconStyle
  21825. }
  21826. }
  21827. };
  21828. exports.default = _default;
  21829. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21830. /***/ }),
  21831. /* 288 */,
  21832. /* 289 */,
  21833. /* 290 */,
  21834. /* 291 */,
  21835. /* 292 */,
  21836. /* 293 */,
  21837. /* 294 */,
  21838. /* 295 */
  21839. /*!***********************************************************************************************************!*\
  21840. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/components/u-input/props.js ***!
  21841. \***********************************************************************************************************/
  21842. /*! no static exports found */
  21843. /***/ (function(module, exports, __webpack_require__) {
  21844. "use strict";
  21845. /* WEBPACK VAR INJECTION */(function(uni) {
  21846. Object.defineProperty(exports, "__esModule", {
  21847. value: true
  21848. });
  21849. exports.default = void 0;
  21850. var _default = {
  21851. props: {
  21852. // 输入的值
  21853. value: {
  21854. type: [String, Number],
  21855. default: uni.$u.props.input.value
  21856. },
  21857. // 输入框类型
  21858. // number-数字输入键盘,app-vue下可以输入浮点数,app-nvue和小程序平台下只能输入整数
  21859. // idcard-身份证输入键盘,微信、支付宝、百度、QQ小程序
  21860. // digit-带小数点的数字键盘,App的nvue页面、微信、支付宝、百度、头条、QQ小程序
  21861. // text-文本输入键盘
  21862. type: {
  21863. type: String,
  21864. default: uni.$u.props.input.type
  21865. },
  21866. // 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true,
  21867. // 兼容性:微信小程序、百度小程序、字节跳动小程序、QQ小程序
  21868. fixed: {
  21869. type: Boolean,
  21870. default: uni.$u.props.input.fixed
  21871. },
  21872. // 是否禁用输入框
  21873. disabled: {
  21874. type: Boolean,
  21875. default: uni.$u.props.input.disabled
  21876. },
  21877. // 禁用状态时的背景色
  21878. disabledColor: {
  21879. type: String,
  21880. default: uni.$u.props.input.disabledColor
  21881. },
  21882. // 是否显示清除控件
  21883. clearable: {
  21884. type: Boolean,
  21885. default: uni.$u.props.input.clearable
  21886. },
  21887. // 是否密码类型
  21888. password: {
  21889. type: Boolean,
  21890. default: uni.$u.props.input.password
  21891. },
  21892. // 最大输入长度,设置为 -1 的时候不限制最大长度
  21893. maxlength: {
  21894. type: [String, Number],
  21895. default: uni.$u.props.input.maxlength
  21896. },
  21897. // 输入框为空时的占位符
  21898. placeholder: {
  21899. type: String,
  21900. default: uni.$u.props.input.placeholder
  21901. },
  21902. // 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
  21903. placeholderClass: {
  21904. type: String,
  21905. default: uni.$u.props.input.placeholderClass
  21906. },
  21907. // 指定placeholder的样式
  21908. placeholderStyle: {
  21909. type: [String, Object],
  21910. default: uni.$u.props.input.placeholderStyle
  21911. },
  21912. // 是否显示输入字数统计,只在 type ="text"或type ="textarea"时有效
  21913. showWordLimit: {
  21914. type: Boolean,
  21915. default: uni.$u.props.input.showWordLimit
  21916. },
  21917. // 设置右下角按钮的文字,有效值:send|search|next|go|done,兼容性详见uni-app文档
  21918. // https://uniapp.dcloud.io/component/input
  21919. // https://uniapp.dcloud.io/component/textarea
  21920. confirmType: {
  21921. type: String,
  21922. default: uni.$u.props.input.confirmType
  21923. },
  21924. // 点击键盘右下角按钮时是否保持键盘不收起,H5无效
  21925. confirmHold: {
  21926. type: Boolean,
  21927. default: uni.$u.props.input.confirmHold
  21928. },
  21929. // focus时,点击页面的时候不收起键盘,微信小程序有效
  21930. holdKeyboard: {
  21931. type: Boolean,
  21932. default: uni.$u.props.input.holdKeyboard
  21933. },
  21934. // 自动获取焦点
  21935. // 在 H5 平台能否聚焦以及软键盘是否跟随弹出,取决于当前浏览器本身的实现。nvue 页面不支持,需使用组件的 focus()、blur() 方法控制焦点
  21936. focus: {
  21937. type: Boolean,
  21938. default: uni.$u.props.input.focus
  21939. },
  21940. // 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效
  21941. autoBlur: {
  21942. type: Boolean,
  21943. default: uni.$u.props.input.autoBlur
  21944. },
  21945. // 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效
  21946. disableDefaultPadding: {
  21947. type: Boolean,
  21948. default: uni.$u.props.input.disableDefaultPadding
  21949. },
  21950. // 指定focus时光标的位置
  21951. cursor: {
  21952. type: [String, Number],
  21953. default: uni.$u.props.input.cursor
  21954. },
  21955. // 输入框聚焦时底部与键盘的距离
  21956. cursorSpacing: {
  21957. type: [String, Number],
  21958. default: uni.$u.props.input.cursorSpacing
  21959. },
  21960. // 光标起始位置,自动聚集时有效,需与selection-end搭配使用
  21961. selectionStart: {
  21962. type: [String, Number],
  21963. default: uni.$u.props.input.selectionStart
  21964. },
  21965. // 光标结束位置,自动聚集时有效,需与selection-start搭配使用
  21966. selectionEnd: {
  21967. type: [String, Number],
  21968. default: uni.$u.props.input.selectionEnd
  21969. },
  21970. // 键盘弹起时,是否自动上推页面
  21971. adjustPosition: {
  21972. type: Boolean,
  21973. default: uni.$u.props.input.adjustPosition
  21974. },
  21975. // 输入框内容对齐方式,可选值为:left|center|right
  21976. inputAlign: {
  21977. type: String,
  21978. default: uni.$u.props.input.inputAlign
  21979. },
  21980. // 输入框字体的大小
  21981. fontSize: {
  21982. type: [String, Number],
  21983. default: uni.$u.props.input.fontSize
  21984. },
  21985. // 输入框字体颜色
  21986. color: {
  21987. type: String,
  21988. default: uni.$u.props.input.color
  21989. },
  21990. // 输入框前置图标
  21991. prefixIcon: {
  21992. type: String,
  21993. default: uni.$u.props.input.prefixIcon
  21994. },
  21995. // 前置图标样式,对象或字符串
  21996. prefixIconStyle: {
  21997. type: [String, Object],
  21998. default: uni.$u.props.input.prefixIconStyle
  21999. },
  22000. // 输入框后置图标
  22001. suffixIcon: {
  22002. type: String,
  22003. default: uni.$u.props.input.suffixIcon
  22004. },
  22005. // 后置图标样式,对象或字符串
  22006. suffixIconStyle: {
  22007. type: [String, Object],
  22008. default: uni.$u.props.input.suffixIconStyle
  22009. },
  22010. // 边框类型,surround-四周边框,bottom-底部边框,none-无边框
  22011. border: {
  22012. type: String,
  22013. default: uni.$u.props.input.border
  22014. },
  22015. // 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会
  22016. readonly: {
  22017. type: Boolean,
  22018. default: uni.$u.props.input.readonly
  22019. },
  22020. // 输入框形状,circle-圆形,square-方形
  22021. shape: {
  22022. type: String,
  22023. default: uni.$u.props.input.shape
  22024. },
  22025. // 用于处理或者过滤输入框内容的方法
  22026. formatter: {
  22027. type: [Function, null],
  22028. default: uni.$u.props.input.formatter
  22029. },
  22030. // 是否忽略组件内对文本合成系统事件的处理
  22031. ignoreCompositionEvent: {
  22032. type: Boolean,
  22033. default: true
  22034. }
  22035. }
  22036. };
  22037. exports.default = _default;
  22038. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22039. /***/ }),
  22040. /* 296 */,
  22041. /* 297 */,
  22042. /* 298 */,
  22043. /* 299 */,
  22044. /* 300 */,
  22045. /* 301 */
  22046. /*!**********************************************************************************************************!*\
  22047. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/components/u-icon/icons.js ***!
  22048. \**********************************************************************************************************/
  22049. /*! no static exports found */
  22050. /***/ (function(module, exports, __webpack_require__) {
  22051. "use strict";
  22052. Object.defineProperty(exports, "__esModule", {
  22053. value: true
  22054. });
  22055. exports.default = void 0;
  22056. var _default = {
  22057. 'uicon-level': "\uE693",
  22058. 'uicon-column-line': "\uE68E",
  22059. 'uicon-checkbox-mark': "\uE807",
  22060. 'uicon-folder': "\uE7F5",
  22061. 'uicon-movie': "\uE7F6",
  22062. 'uicon-star-fill': "\uE669",
  22063. 'uicon-star': "\uE65F",
  22064. 'uicon-phone-fill': "\uE64F",
  22065. 'uicon-phone': "\uE622",
  22066. 'uicon-apple-fill': "\uE881",
  22067. 'uicon-chrome-circle-fill': "\uE885",
  22068. 'uicon-backspace': "\uE67B",
  22069. 'uicon-attach': "\uE632",
  22070. 'uicon-cut': "\uE948",
  22071. 'uicon-empty-car': "\uE602",
  22072. 'uicon-empty-coupon': "\uE682",
  22073. 'uicon-empty-address': "\uE646",
  22074. 'uicon-empty-favor': "\uE67C",
  22075. 'uicon-empty-permission': "\uE686",
  22076. 'uicon-empty-news': "\uE687",
  22077. 'uicon-empty-search': "\uE664",
  22078. 'uicon-github-circle-fill': "\uE887",
  22079. 'uicon-rmb': "\uE608",
  22080. 'uicon-person-delete-fill': "\uE66A",
  22081. 'uicon-reload': "\uE788",
  22082. 'uicon-order': "\uE68F",
  22083. 'uicon-server-man': "\uE6BC",
  22084. 'uicon-search': "\uE62A",
  22085. 'uicon-fingerprint': "\uE955",
  22086. 'uicon-more-dot-fill': "\uE630",
  22087. 'uicon-scan': "\uE662",
  22088. 'uicon-share-square': "\uE60B",
  22089. 'uicon-map': "\uE61D",
  22090. 'uicon-map-fill': "\uE64E",
  22091. 'uicon-tags': "\uE629",
  22092. 'uicon-tags-fill': "\uE651",
  22093. 'uicon-bookmark-fill': "\uE63B",
  22094. 'uicon-bookmark': "\uE60A",
  22095. 'uicon-eye': "\uE613",
  22096. 'uicon-eye-fill': "\uE641",
  22097. 'uicon-mic': "\uE64A",
  22098. 'uicon-mic-off': "\uE649",
  22099. 'uicon-calendar': "\uE66E",
  22100. 'uicon-calendar-fill': "\uE634",
  22101. 'uicon-trash': "\uE623",
  22102. 'uicon-trash-fill': "\uE658",
  22103. 'uicon-play-left': "\uE66D",
  22104. 'uicon-play-right': "\uE610",
  22105. 'uicon-minus': "\uE618",
  22106. 'uicon-plus': "\uE62D",
  22107. 'uicon-info': "\uE653",
  22108. 'uicon-info-circle': "\uE7D2",
  22109. 'uicon-info-circle-fill': "\uE64B",
  22110. 'uicon-question': "\uE715",
  22111. 'uicon-error': "\uE6D3",
  22112. 'uicon-close': "\uE685",
  22113. 'uicon-checkmark': "\uE6A8",
  22114. 'uicon-android-circle-fill': "\uE67E",
  22115. 'uicon-android-fill': "\uE67D",
  22116. 'uicon-ie': "\uE87B",
  22117. 'uicon-IE-circle-fill': "\uE889",
  22118. 'uicon-google': "\uE87A",
  22119. 'uicon-google-circle-fill': "\uE88A",
  22120. 'uicon-setting-fill': "\uE872",
  22121. 'uicon-setting': "\uE61F",
  22122. 'uicon-minus-square-fill': "\uE855",
  22123. 'uicon-plus-square-fill': "\uE856",
  22124. 'uicon-heart': "\uE7DF",
  22125. 'uicon-heart-fill': "\uE851",
  22126. 'uicon-camera': "\uE7D7",
  22127. 'uicon-camera-fill': "\uE870",
  22128. 'uicon-more-circle': "\uE63E",
  22129. 'uicon-more-circle-fill': "\uE645",
  22130. 'uicon-chat': "\uE620",
  22131. 'uicon-chat-fill': "\uE61E",
  22132. 'uicon-bag-fill': "\uE617",
  22133. 'uicon-bag': "\uE619",
  22134. 'uicon-error-circle-fill': "\uE62C",
  22135. 'uicon-error-circle': "\uE624",
  22136. 'uicon-close-circle': "\uE63F",
  22137. 'uicon-close-circle-fill': "\uE637",
  22138. 'uicon-checkmark-circle': "\uE63D",
  22139. 'uicon-checkmark-circle-fill': "\uE635",
  22140. 'uicon-question-circle-fill': "\uE666",
  22141. 'uicon-question-circle': "\uE625",
  22142. 'uicon-share': "\uE631",
  22143. 'uicon-share-fill': "\uE65E",
  22144. 'uicon-shopping-cart': "\uE621",
  22145. 'uicon-shopping-cart-fill': "\uE65D",
  22146. 'uicon-bell': "\uE609",
  22147. 'uicon-bell-fill': "\uE640",
  22148. 'uicon-list': "\uE650",
  22149. 'uicon-list-dot': "\uE616",
  22150. 'uicon-zhihu': "\uE6BA",
  22151. 'uicon-zhihu-circle-fill': "\uE709",
  22152. 'uicon-zhifubao': "\uE6B9",
  22153. 'uicon-zhifubao-circle-fill': "\uE6B8",
  22154. 'uicon-weixin-circle-fill': "\uE6B1",
  22155. 'uicon-weixin-fill': "\uE6B2",
  22156. 'uicon-twitter-circle-fill': "\uE6AB",
  22157. 'uicon-twitter': "\uE6AA",
  22158. 'uicon-taobao-circle-fill': "\uE6A7",
  22159. 'uicon-taobao': "\uE6A6",
  22160. 'uicon-weibo-circle-fill': "\uE6A5",
  22161. 'uicon-weibo': "\uE6A4",
  22162. 'uicon-qq-fill': "\uE6A1",
  22163. 'uicon-qq-circle-fill': "\uE6A0",
  22164. 'uicon-moments-circel-fill': "\uE69A",
  22165. 'uicon-moments': "\uE69B",
  22166. 'uicon-qzone': "\uE695",
  22167. 'uicon-qzone-circle-fill': "\uE696",
  22168. 'uicon-baidu-circle-fill': "\uE680",
  22169. 'uicon-baidu': "\uE681",
  22170. 'uicon-facebook-circle-fill': "\uE68A",
  22171. 'uicon-facebook': "\uE689",
  22172. 'uicon-car': "\uE60C",
  22173. 'uicon-car-fill': "\uE636",
  22174. 'uicon-warning-fill': "\uE64D",
  22175. 'uicon-warning': "\uE694",
  22176. 'uicon-clock-fill': "\uE638",
  22177. 'uicon-clock': "\uE60F",
  22178. 'uicon-edit-pen': "\uE612",
  22179. 'uicon-edit-pen-fill': "\uE66B",
  22180. 'uicon-email': "\uE611",
  22181. 'uicon-email-fill': "\uE642",
  22182. 'uicon-minus-circle': "\uE61B",
  22183. 'uicon-minus-circle-fill': "\uE652",
  22184. 'uicon-plus-circle': "\uE62E",
  22185. 'uicon-plus-circle-fill': "\uE661",
  22186. 'uicon-file-text': "\uE663",
  22187. 'uicon-file-text-fill': "\uE665",
  22188. 'uicon-pushpin': "\uE7E3",
  22189. 'uicon-pushpin-fill': "\uE86E",
  22190. 'uicon-grid': "\uE673",
  22191. 'uicon-grid-fill': "\uE678",
  22192. 'uicon-play-circle': "\uE647",
  22193. 'uicon-play-circle-fill': "\uE655",
  22194. 'uicon-pause-circle-fill': "\uE654",
  22195. 'uicon-pause': "\uE8FA",
  22196. 'uicon-pause-circle': "\uE643",
  22197. 'uicon-eye-off': "\uE648",
  22198. 'uicon-eye-off-outline': "\uE62B",
  22199. 'uicon-gift-fill': "\uE65C",
  22200. 'uicon-gift': "\uE65B",
  22201. 'uicon-rmb-circle-fill': "\uE657",
  22202. 'uicon-rmb-circle': "\uE677",
  22203. 'uicon-kefu-ermai': "\uE656",
  22204. 'uicon-server-fill': "\uE751",
  22205. 'uicon-coupon-fill': "\uE8C4",
  22206. 'uicon-coupon': "\uE8AE",
  22207. 'uicon-integral': "\uE704",
  22208. 'uicon-integral-fill': "\uE703",
  22209. 'uicon-home-fill': "\uE964",
  22210. 'uicon-home': "\uE965",
  22211. 'uicon-hourglass-half-fill': "\uE966",
  22212. 'uicon-hourglass': "\uE967",
  22213. 'uicon-account': "\uE628",
  22214. 'uicon-plus-people-fill': "\uE626",
  22215. 'uicon-minus-people-fill': "\uE615",
  22216. 'uicon-account-fill': "\uE614",
  22217. 'uicon-thumb-down-fill': "\uE726",
  22218. 'uicon-thumb-down': "\uE727",
  22219. 'uicon-thumb-up': "\uE733",
  22220. 'uicon-thumb-up-fill': "\uE72F",
  22221. 'uicon-lock-fill': "\uE979",
  22222. 'uicon-lock-open': "\uE973",
  22223. 'uicon-lock-opened-fill': "\uE974",
  22224. 'uicon-lock': "\uE97A",
  22225. 'uicon-red-packet-fill': "\uE690",
  22226. 'uicon-photo-fill': "\uE98B",
  22227. 'uicon-photo': "\uE98D",
  22228. 'uicon-volume-off-fill': "\uE659",
  22229. 'uicon-volume-off': "\uE644",
  22230. 'uicon-volume-fill': "\uE670",
  22231. 'uicon-volume': "\uE633",
  22232. 'uicon-red-packet': "\uE691",
  22233. 'uicon-download': "\uE63C",
  22234. 'uicon-arrow-up-fill': "\uE6B0",
  22235. 'uicon-arrow-down-fill': "\uE600",
  22236. 'uicon-play-left-fill': "\uE675",
  22237. 'uicon-play-right-fill': "\uE676",
  22238. 'uicon-rewind-left-fill': "\uE679",
  22239. 'uicon-rewind-right-fill': "\uE67A",
  22240. 'uicon-arrow-downward': "\uE604",
  22241. 'uicon-arrow-leftward': "\uE601",
  22242. 'uicon-arrow-rightward': "\uE603",
  22243. 'uicon-arrow-upward': "\uE607",
  22244. 'uicon-arrow-down': "\uE60D",
  22245. 'uicon-arrow-right': "\uE605",
  22246. 'uicon-arrow-left': "\uE60E",
  22247. 'uicon-arrow-up': "\uE606",
  22248. 'uicon-skip-back-left': "\uE674",
  22249. 'uicon-skip-forward-right': "\uE672",
  22250. 'uicon-rewind-right': "\uE66F",
  22251. 'uicon-rewind-left': "\uE671",
  22252. 'uicon-arrow-right-double': "\uE68D",
  22253. 'uicon-arrow-left-double': "\uE68C",
  22254. 'uicon-wifi-off': "\uE668",
  22255. 'uicon-wifi': "\uE667",
  22256. 'uicon-empty-data': "\uE62F",
  22257. 'uicon-empty-history': "\uE684",
  22258. 'uicon-empty-list': "\uE68B",
  22259. 'uicon-empty-page': "\uE627",
  22260. 'uicon-empty-order': "\uE639",
  22261. 'uicon-man': "\uE697",
  22262. 'uicon-woman': "\uE69C",
  22263. 'uicon-man-add': "\uE61C",
  22264. 'uicon-man-add-fill': "\uE64C",
  22265. 'uicon-man-delete': "\uE61A",
  22266. 'uicon-man-delete-fill': "\uE66A",
  22267. 'uicon-zh': "\uE70A",
  22268. 'uicon-en': "\uE692"
  22269. };
  22270. exports.default = _default;
  22271. /***/ }),
  22272. /* 302 */
  22273. /*!**********************************************************************************************************!*\
  22274. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/components/u-icon/props.js ***!
  22275. \**********************************************************************************************************/
  22276. /*! no static exports found */
  22277. /***/ (function(module, exports, __webpack_require__) {
  22278. "use strict";
  22279. /* WEBPACK VAR INJECTION */(function(uni) {
  22280. Object.defineProperty(exports, "__esModule", {
  22281. value: true
  22282. });
  22283. exports.default = void 0;
  22284. var _default = {
  22285. props: {
  22286. // 图标类名
  22287. name: {
  22288. type: String,
  22289. default: uni.$u.props.icon.name
  22290. },
  22291. // 图标颜色,可接受主题色
  22292. color: {
  22293. type: String,
  22294. default: uni.$u.props.icon.color
  22295. },
  22296. // 字体大小,单位px
  22297. size: {
  22298. type: [String, Number],
  22299. default: uni.$u.props.icon.size
  22300. },
  22301. // 是否显示粗体
  22302. bold: {
  22303. type: Boolean,
  22304. default: uni.$u.props.icon.bold
  22305. },
  22306. // 点击图标的时候传递事件出去的index(用于区分点击了哪一个)
  22307. index: {
  22308. type: [String, Number],
  22309. default: uni.$u.props.icon.index
  22310. },
  22311. // 触摸图标时的类名
  22312. hoverClass: {
  22313. type: String,
  22314. default: uni.$u.props.icon.hoverClass
  22315. },
  22316. // 自定义扩展前缀,方便用户扩展自己的图标库
  22317. customPrefix: {
  22318. type: String,
  22319. default: uni.$u.props.icon.customPrefix
  22320. },
  22321. // 图标右边或者下面的文字
  22322. label: {
  22323. type: [String, Number],
  22324. default: uni.$u.props.icon.label
  22325. },
  22326. // label的位置,只能右边或者下边
  22327. labelPos: {
  22328. type: String,
  22329. default: uni.$u.props.icon.labelPos
  22330. },
  22331. // label的大小
  22332. labelSize: {
  22333. type: [String, Number],
  22334. default: uni.$u.props.icon.labelSize
  22335. },
  22336. // label的颜色
  22337. labelColor: {
  22338. type: String,
  22339. default: uni.$u.props.icon.labelColor
  22340. },
  22341. // label与图标的距离
  22342. space: {
  22343. type: [String, Number],
  22344. default: uni.$u.props.icon.space
  22345. },
  22346. // 图片的mode
  22347. imgMode: {
  22348. type: String,
  22349. default: uni.$u.props.icon.imgMode
  22350. },
  22351. // 用于显示图片小图标时,图片的宽度
  22352. width: {
  22353. type: [String, Number],
  22354. default: uni.$u.props.icon.width
  22355. },
  22356. // 用于显示图片小图标时,图片的高度
  22357. height: {
  22358. type: [String, Number],
  22359. default: uni.$u.props.icon.height
  22360. },
  22361. // 用于解决某些情况下,让图标垂直居中的用途
  22362. top: {
  22363. type: [String, Number],
  22364. default: uni.$u.props.icon.top
  22365. },
  22366. // 是否阻止事件传播
  22367. stop: {
  22368. type: Boolean,
  22369. default: uni.$u.props.icon.stop
  22370. }
  22371. }
  22372. };
  22373. exports.default = _default;
  22374. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22375. /***/ }),
  22376. /* 303 */,
  22377. /* 304 */,
  22378. /* 305 */,
  22379. /* 306 */,
  22380. /* 307 */,
  22381. /* 308 */,
  22382. /* 309 */,
  22383. /* 310 */
  22384. /*!************************************************************************************************************!*\
  22385. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/components/u-upload/utils.js ***!
  22386. \************************************************************************************************************/
  22387. /*! no static exports found */
  22388. /***/ (function(module, exports, __webpack_require__) {
  22389. "use strict";
  22390. /* WEBPACK VAR INJECTION */(function(uni, wx) {
  22391. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  22392. Object.defineProperty(exports, "__esModule", {
  22393. value: true
  22394. });
  22395. exports.chooseFile = chooseFile;
  22396. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  22397. 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; }
  22398. 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; }
  22399. function pickExclude(obj, keys) {
  22400. // 某些情况下,type可能会为
  22401. if (!['[object Object]', '[object File]'].includes(Object.prototype.toString.call(obj))) {
  22402. return {};
  22403. }
  22404. return Object.keys(obj).reduce(function (prev, key) {
  22405. if (!keys.includes(key)) {
  22406. prev[key] = obj[key];
  22407. }
  22408. return prev;
  22409. }, {});
  22410. }
  22411. function formatImage(res) {
  22412. return res.tempFiles.map(function (item) {
  22413. return _objectSpread(_objectSpread({}, pickExclude(item, ['path'])), {}, {
  22414. type: 'image',
  22415. url: item.path,
  22416. thumb: item.path,
  22417. size: item.size
  22418. });
  22419. });
  22420. }
  22421. function formatVideo(res) {
  22422. return [_objectSpread(_objectSpread({}, pickExclude(res, ['tempFilePath', 'thumbTempFilePath', 'errMsg'])), {}, {
  22423. type: 'video',
  22424. url: res.tempFilePath,
  22425. thumb: res.thumbTempFilePath,
  22426. size: res.size
  22427. })];
  22428. }
  22429. function formatMedia(res) {
  22430. return res.tempFiles.map(function (item) {
  22431. return _objectSpread(_objectSpread({}, pickExclude(item, ['fileType', 'thumbTempFilePath', 'tempFilePath'])), {}, {
  22432. type: res.type,
  22433. url: item.tempFilePath,
  22434. thumb: res.type === 'video' ? item.thumbTempFilePath : item.tempFilePath,
  22435. size: item.size
  22436. });
  22437. });
  22438. }
  22439. function formatFile(res) {
  22440. return res.tempFiles.map(function (item) {
  22441. return _objectSpread(_objectSpread({}, pickExclude(item, ['path'])), {}, {
  22442. url: item.path,
  22443. size: item.size
  22444. });
  22445. });
  22446. }
  22447. function chooseFile(_ref) {
  22448. var accept = _ref.accept,
  22449. multiple = _ref.multiple,
  22450. capture = _ref.capture,
  22451. compressed = _ref.compressed,
  22452. maxDuration = _ref.maxDuration,
  22453. sizeType = _ref.sizeType,
  22454. camera = _ref.camera,
  22455. maxCount = _ref.maxCount;
  22456. return new Promise(function (resolve, reject) {
  22457. switch (accept) {
  22458. case 'image':
  22459. uni.chooseImage({
  22460. count: multiple ? Math.min(maxCount, 9) : 1,
  22461. sourceType: capture,
  22462. sizeType: sizeType,
  22463. success: function success(res) {
  22464. return resolve(formatImage(res));
  22465. },
  22466. fail: reject
  22467. });
  22468. break;
  22469. // 只有微信小程序才支持chooseMedia接口
  22470. case 'media':
  22471. wx.chooseMedia({
  22472. count: multiple ? Math.min(maxCount, 9) : 1,
  22473. sourceType: capture,
  22474. maxDuration: maxDuration,
  22475. sizeType: sizeType,
  22476. camera: camera,
  22477. success: function success(res) {
  22478. return resolve(formatMedia(res));
  22479. },
  22480. fail: reject
  22481. });
  22482. break;
  22483. case 'video':
  22484. uni.chooseVideo({
  22485. sourceType: capture,
  22486. compressed: compressed,
  22487. maxDuration: maxDuration,
  22488. camera: camera,
  22489. success: function success(res) {
  22490. return resolve(formatVideo(res));
  22491. },
  22492. fail: reject
  22493. });
  22494. break;
  22495. // 只有微信小程序才支持chooseMessageFile接口
  22496. case 'file':
  22497. wx.chooseMessageFile({
  22498. count: multiple ? maxCount : 1,
  22499. type: accept,
  22500. success: function success(res) {
  22501. return resolve(formatFile(res));
  22502. },
  22503. fail: reject
  22504. });
  22505. break;
  22506. default:
  22507. // 此为保底选项,在accept不为上面任意一项的时候选取全部文件
  22508. wx.chooseMessageFile({
  22509. count: multiple ? maxCount : 1,
  22510. type: 'all',
  22511. success: function success(res) {
  22512. return resolve(formatFile(res));
  22513. },
  22514. fail: reject
  22515. });
  22516. }
  22517. });
  22518. }
  22519. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  22520. /***/ }),
  22521. /* 311 */
  22522. /*!************************************************************************************************************!*\
  22523. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/components/u-upload/mixin.js ***!
  22524. \************************************************************************************************************/
  22525. /*! no static exports found */
  22526. /***/ (function(module, exports, __webpack_require__) {
  22527. "use strict";
  22528. Object.defineProperty(exports, "__esModule", {
  22529. value: true
  22530. });
  22531. exports.default = void 0;
  22532. var _default = {
  22533. watch: {
  22534. // 监听accept的变化,判断是否符合个平台要求
  22535. // 只有微信小程序才支持选择媒体,文件类型,所以这里做一个判断提示
  22536. accept: {
  22537. immediate: true,
  22538. handler: function handler(val) {}
  22539. }
  22540. }
  22541. };
  22542. exports.default = _default;
  22543. /***/ }),
  22544. /* 312 */
  22545. /*!************************************************************************************************************!*\
  22546. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/components/u-upload/props.js ***!
  22547. \************************************************************************************************************/
  22548. /*! no static exports found */
  22549. /***/ (function(module, exports, __webpack_require__) {
  22550. "use strict";
  22551. /* WEBPACK VAR INJECTION */(function(uni) {
  22552. Object.defineProperty(exports, "__esModule", {
  22553. value: true
  22554. });
  22555. exports.default = void 0;
  22556. var _default = {
  22557. props: {
  22558. // 接受的文件类型, 可选值为all media image file video
  22559. accept: {
  22560. type: String,
  22561. default: uni.$u.props.upload.accept
  22562. },
  22563. // 图片或视频拾取模式,当accept为image类型时设置capture可选额外camera可以直接调起摄像头
  22564. capture: {
  22565. type: [String, Array],
  22566. default: uni.$u.props.upload.capture
  22567. },
  22568. // 当accept为video时生效,是否压缩视频,默认为true
  22569. compressed: {
  22570. type: Boolean,
  22571. default: uni.$u.props.upload.compressed
  22572. },
  22573. // 当accept为video时生效,可选值为back或front
  22574. camera: {
  22575. type: String,
  22576. default: uni.$u.props.upload.camera
  22577. },
  22578. // 当accept为video时生效,拍摄视频最长拍摄时间,单位秒
  22579. maxDuration: {
  22580. type: Number,
  22581. default: uni.$u.props.upload.maxDuration
  22582. },
  22583. // 上传区域的图标,只能内置图标
  22584. uploadIcon: {
  22585. type: String,
  22586. default: uni.$u.props.upload.uploadIcon
  22587. },
  22588. // 上传区域的图标的颜色,默认
  22589. uploadIconColor: {
  22590. type: String,
  22591. default: uni.$u.props.upload.uploadIconColor
  22592. },
  22593. // 是否开启文件读取前事件
  22594. useBeforeRead: {
  22595. type: Boolean,
  22596. default: uni.$u.props.upload.useBeforeRead
  22597. },
  22598. // 读取后的处理函数
  22599. afterRead: {
  22600. type: Function,
  22601. default: null
  22602. },
  22603. // 读取前的处理函数
  22604. beforeRead: {
  22605. type: Function,
  22606. default: null
  22607. },
  22608. // 是否显示组件自带的图片预览功能
  22609. previewFullImage: {
  22610. type: Boolean,
  22611. default: uni.$u.props.upload.previewFullImage
  22612. },
  22613. // 最大上传数量
  22614. maxCount: {
  22615. type: [String, Number],
  22616. default: uni.$u.props.upload.maxCount
  22617. },
  22618. // 是否启用
  22619. disabled: {
  22620. type: Boolean,
  22621. default: uni.$u.props.upload.disabled
  22622. },
  22623. // 预览上传的图片时的裁剪模式,和image组件mode属性一致
  22624. imageMode: {
  22625. type: String,
  22626. default: uni.$u.props.upload.imageMode
  22627. },
  22628. // 标识符,可以在回调函数的第二项参数中获取
  22629. name: {
  22630. type: String,
  22631. default: uni.$u.props.upload.name
  22632. },
  22633. // 所选的图片的尺寸, 可选值为original compressed
  22634. sizeType: {
  22635. type: Array,
  22636. default: uni.$u.props.upload.sizeType
  22637. },
  22638. // 是否开启图片多选,部分安卓机型不支持
  22639. multiple: {
  22640. type: Boolean,
  22641. default: uni.$u.props.upload.multiple
  22642. },
  22643. // 是否展示删除按钮
  22644. deletable: {
  22645. type: Boolean,
  22646. default: uni.$u.props.upload.deletable
  22647. },
  22648. // 文件大小限制,单位为byte
  22649. maxSize: {
  22650. type: [String, Number],
  22651. default: uni.$u.props.upload.maxSize
  22652. },
  22653. // 显示已上传的文件列表
  22654. fileList: {
  22655. type: Array,
  22656. default: uni.$u.props.upload.fileList
  22657. },
  22658. // 上传区域的提示文字
  22659. uploadText: {
  22660. type: String,
  22661. default: uni.$u.props.upload.uploadText
  22662. },
  22663. // 内部预览图片区域和选择图片按钮的区域宽度
  22664. width: {
  22665. type: [String, Number],
  22666. default: uni.$u.props.upload.width
  22667. },
  22668. // 内部预览图片区域和选择图片按钮的区域高度
  22669. height: {
  22670. type: [String, Number],
  22671. default: uni.$u.props.upload.height
  22672. },
  22673. // 是否在上传完成后展示预览图
  22674. previewImage: {
  22675. type: Boolean,
  22676. default: uni.$u.props.upload.previewImage
  22677. }
  22678. }
  22679. };
  22680. exports.default = _default;
  22681. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22682. /***/ }),
  22683. /* 313 */,
  22684. /* 314 */,
  22685. /* 315 */,
  22686. /* 316 */,
  22687. /* 317 */,
  22688. /* 318 */,
  22689. /* 319 */,
  22690. /* 320 */
  22691. /*!****************************************************************************************************!*\
  22692. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/mixin/button.js ***!
  22693. \****************************************************************************************************/
  22694. /*! no static exports found */
  22695. /***/ (function(module, exports, __webpack_require__) {
  22696. "use strict";
  22697. Object.defineProperty(exports, "__esModule", {
  22698. value: true
  22699. });
  22700. exports.default = void 0;
  22701. var _default = {
  22702. props: {
  22703. lang: String,
  22704. sessionFrom: String,
  22705. sendMessageTitle: String,
  22706. sendMessagePath: String,
  22707. sendMessageImg: String,
  22708. showMessageCard: Boolean,
  22709. appParameter: String,
  22710. formType: String,
  22711. openType: String
  22712. }
  22713. };
  22714. exports.default = _default;
  22715. /***/ }),
  22716. /* 321 */
  22717. /*!******************************************************************************************************!*\
  22718. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/mixin/openType.js ***!
  22719. \******************************************************************************************************/
  22720. /*! no static exports found */
  22721. /***/ (function(module, exports, __webpack_require__) {
  22722. "use strict";
  22723. Object.defineProperty(exports, "__esModule", {
  22724. value: true
  22725. });
  22726. exports.default = void 0;
  22727. var _default = {
  22728. props: {
  22729. openType: String
  22730. },
  22731. methods: {
  22732. onGetUserInfo: function onGetUserInfo(event) {
  22733. this.$emit('getuserinfo', event.detail);
  22734. },
  22735. onContact: function onContact(event) {
  22736. this.$emit('contact', event.detail);
  22737. },
  22738. onGetPhoneNumber: function onGetPhoneNumber(event) {
  22739. this.$emit('getphonenumber', event.detail);
  22740. },
  22741. onError: function onError(event) {
  22742. this.$emit('error', event.detail);
  22743. },
  22744. onLaunchApp: function onLaunchApp(event) {
  22745. this.$emit('launchapp', event.detail);
  22746. },
  22747. onOpenSetting: function onOpenSetting(event) {
  22748. this.$emit('opensetting', event.detail);
  22749. }
  22750. }
  22751. };
  22752. exports.default = _default;
  22753. /***/ }),
  22754. /* 322 */
  22755. /*!************************************************************************************************************!*\
  22756. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/components/u-button/props.js ***!
  22757. \************************************************************************************************************/
  22758. /*! no static exports found */
  22759. /***/ (function(module, exports, __webpack_require__) {
  22760. "use strict";
  22761. /* WEBPACK VAR INJECTION */(function(uni) {
  22762. Object.defineProperty(exports, "__esModule", {
  22763. value: true
  22764. });
  22765. exports.default = void 0;
  22766. /*
  22767. * @Author : LQ
  22768. * @Description :
  22769. * @version : 1.0
  22770. * @Date : 2021-08-16 10:04:04
  22771. * @LastAuthor : LQ
  22772. * @lastTime : 2021-08-16 10:04:24
  22773. * @FilePath : /u-view2.0/uview-ui/components/u-button/props.js
  22774. */
  22775. var _default = {
  22776. props: {
  22777. // 是否细边框
  22778. hairline: {
  22779. type: Boolean,
  22780. default: uni.$u.props.button.hairline
  22781. },
  22782. // 按钮的预置样式,info,primary,error,warning,success
  22783. type: {
  22784. type: String,
  22785. default: uni.$u.props.button.type
  22786. },
  22787. // 按钮尺寸,large,normal,small,mini
  22788. size: {
  22789. type: String,
  22790. default: uni.$u.props.button.size
  22791. },
  22792. // 按钮形状,circle(两边为半圆),square(带圆角)
  22793. shape: {
  22794. type: String,
  22795. default: uni.$u.props.button.shape
  22796. },
  22797. // 按钮是否镂空
  22798. plain: {
  22799. type: Boolean,
  22800. default: uni.$u.props.button.plain
  22801. },
  22802. // 是否禁止状态
  22803. disabled: {
  22804. type: Boolean,
  22805. default: uni.$u.props.button.disabled
  22806. },
  22807. // 是否加载中
  22808. loading: {
  22809. type: Boolean,
  22810. default: uni.$u.props.button.loading
  22811. },
  22812. // 加载中提示文字
  22813. loadingText: {
  22814. type: [String, Number],
  22815. default: uni.$u.props.button.loadingText
  22816. },
  22817. // 加载状态图标类型
  22818. loadingMode: {
  22819. type: String,
  22820. default: uni.$u.props.button.loadingMode
  22821. },
  22822. // 加载图标大小
  22823. loadingSize: {
  22824. type: [String, Number],
  22825. default: uni.$u.props.button.loadingSize
  22826. },
  22827. // 开放能力,具体请看uniapp稳定关于button组件部分说明
  22828. // https://uniapp.dcloud.io/component/button
  22829. openType: {
  22830. type: String,
  22831. default: uni.$u.props.button.openType
  22832. },
  22833. // 用于 <form> 组件,点击分别会触发 <form> 组件的 submit/reset 事件
  22834. // 取值为submit(提交表单),reset(重置表单)
  22835. formType: {
  22836. type: String,
  22837. default: uni.$u.props.button.formType
  22838. },
  22839. // 打开 APP 时,向 APP 传递的参数,open-type=launchApp时有效
  22840. // 只微信小程序、QQ小程序有效
  22841. appParameter: {
  22842. type: String,
  22843. default: uni.$u.props.button.appParameter
  22844. },
  22845. // 指定是否阻止本节点的祖先节点出现点击态,微信小程序有效
  22846. hoverStopPropagation: {
  22847. type: Boolean,
  22848. default: uni.$u.props.button.hoverStopPropagation
  22849. },
  22850. // 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文。只微信小程序有效
  22851. lang: {
  22852. type: String,
  22853. default: uni.$u.props.button.lang
  22854. },
  22855. // 会话来源,open-type="contact"时有效。只微信小程序有效
  22856. sessionFrom: {
  22857. type: String,
  22858. default: uni.$u.props.button.sessionFrom
  22859. },
  22860. // 会话内消息卡片标题,open-type="contact"时有效
  22861. // 默认当前标题,只微信小程序有效
  22862. sendMessageTitle: {
  22863. type: String,
  22864. default: uni.$u.props.button.sendMessageTitle
  22865. },
  22866. // 会话内消息卡片点击跳转小程序路径,open-type="contact"时有效
  22867. // 默认当前分享路径,只微信小程序有效
  22868. sendMessagePath: {
  22869. type: String,
  22870. default: uni.$u.props.button.sendMessagePath
  22871. },
  22872. // 会话内消息卡片图片,open-type="contact"时有效
  22873. // 默认当前页面截图,只微信小程序有效
  22874. sendMessageImg: {
  22875. type: String,
  22876. default: uni.$u.props.button.sendMessageImg
  22877. },
  22878. // 是否显示会话内消息卡片,设置此参数为 true,用户进入客服会话会在右下角显示"可能要发送的小程序"提示,
  22879. // 用户点击后可以快速发送小程序消息,open-type="contact"时有效
  22880. showMessageCard: {
  22881. type: Boolean,
  22882. default: uni.$u.props.button.showMessageCard
  22883. },
  22884. // 额外传参参数,用于小程序的data-xxx属性,通过target.dataset.name获取
  22885. dataName: {
  22886. type: String,
  22887. default: uni.$u.props.button.dataName
  22888. },
  22889. // 节流,一定时间内只能触发一次
  22890. throttleTime: {
  22891. type: [String, Number],
  22892. default: uni.$u.props.button.throttleTime
  22893. },
  22894. // 按住后多久出现点击态,单位毫秒
  22895. hoverStartTime: {
  22896. type: [String, Number],
  22897. default: uni.$u.props.button.hoverStartTime
  22898. },
  22899. // 手指松开后点击态保留时间,单位毫秒
  22900. hoverStayTime: {
  22901. type: [String, Number],
  22902. default: uni.$u.props.button.hoverStayTime
  22903. },
  22904. // 按钮文字,之所以通过props传入,是因为slot传入的话
  22905. // nvue中无法控制文字的样式
  22906. text: {
  22907. type: [String, Number],
  22908. default: uni.$u.props.button.text
  22909. },
  22910. // 按钮图标
  22911. icon: {
  22912. type: String,
  22913. default: uni.$u.props.button.icon
  22914. },
  22915. // 按钮图标
  22916. iconColor: {
  22917. type: String,
  22918. default: uni.$u.props.button.icon
  22919. },
  22920. // 按钮颜色,支持传入linear-gradient渐变色
  22921. color: {
  22922. type: String,
  22923. default: uni.$u.props.button.color
  22924. }
  22925. }
  22926. };
  22927. exports.default = _default;
  22928. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22929. /***/ }),
  22930. /* 323 */,
  22931. /* 324 */,
  22932. /* 325 */,
  22933. /* 326 */,
  22934. /* 327 */,
  22935. /* 328 */,
  22936. /* 329 */,
  22937. /* 330 */
  22938. /*!******************************************************************************************************************!*\
  22939. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/components/u-action-sheet/props.js ***!
  22940. \******************************************************************************************************************/
  22941. /*! no static exports found */
  22942. /***/ (function(module, exports, __webpack_require__) {
  22943. "use strict";
  22944. /* WEBPACK VAR INJECTION */(function(uni) {
  22945. Object.defineProperty(exports, "__esModule", {
  22946. value: true
  22947. });
  22948. exports.default = void 0;
  22949. var _default = {
  22950. props: {
  22951. // 操作菜单是否展示 (默认false)
  22952. show: {
  22953. type: Boolean,
  22954. default: uni.$u.props.actionSheet.show
  22955. },
  22956. // 标题
  22957. title: {
  22958. type: String,
  22959. default: uni.$u.props.actionSheet.title
  22960. },
  22961. // 选项上方的描述信息
  22962. description: {
  22963. type: String,
  22964. default: uni.$u.props.actionSheet.description
  22965. },
  22966. // 数据
  22967. actions: {
  22968. type: Array,
  22969. default: uni.$u.props.actionSheet.actions
  22970. },
  22971. // 取消按钮的文字,不为空时显示按钮
  22972. cancelText: {
  22973. type: String,
  22974. default: uni.$u.props.actionSheet.cancelText
  22975. },
  22976. // 点击某个菜单项时是否关闭弹窗
  22977. closeOnClickAction: {
  22978. type: Boolean,
  22979. default: uni.$u.props.actionSheet.closeOnClickAction
  22980. },
  22981. // 处理底部安全区(默认true)
  22982. safeAreaInsetBottom: {
  22983. type: Boolean,
  22984. default: uni.$u.props.actionSheet.safeAreaInsetBottom
  22985. },
  22986. // 小程序的打开方式
  22987. openType: {
  22988. type: String,
  22989. default: uni.$u.props.actionSheet.openType
  22990. },
  22991. // 点击遮罩是否允许关闭 (默认true)
  22992. closeOnClickOverlay: {
  22993. type: Boolean,
  22994. default: uni.$u.props.actionSheet.closeOnClickOverlay
  22995. },
  22996. // 圆角值
  22997. round: {
  22998. type: [Boolean, String, Number],
  22999. default: uni.$u.props.actionSheet.round
  23000. }
  23001. }
  23002. };
  23003. exports.default = _default;
  23004. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23005. /***/ }),
  23006. /* 331 */,
  23007. /* 332 */,
  23008. /* 333 */,
  23009. /* 334 */,
  23010. /* 335 */,
  23011. /* 336 */,
  23012. /* 337 */,
  23013. /* 338 */
  23014. /*!*********************************************************************************************************************!*\
  23015. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/components/u-datetime-picker/props.js ***!
  23016. \*********************************************************************************************************************/
  23017. /*! no static exports found */
  23018. /***/ (function(module, exports, __webpack_require__) {
  23019. "use strict";
  23020. /* WEBPACK VAR INJECTION */(function(uni) {
  23021. Object.defineProperty(exports, "__esModule", {
  23022. value: true
  23023. });
  23024. exports.default = void 0;
  23025. var _default = {
  23026. props: {
  23027. // 是否打开组件
  23028. show: {
  23029. type: Boolean,
  23030. default: uni.$u.props.datetimePicker.show
  23031. },
  23032. // 是否展示顶部的操作栏
  23033. showToolbar: {
  23034. type: Boolean,
  23035. default: uni.$u.props.datetimePicker.showToolbar
  23036. },
  23037. // 绑定值
  23038. value: {
  23039. type: [String, Number],
  23040. default: uni.$u.props.datetimePicker.value
  23041. },
  23042. // 顶部标题
  23043. title: {
  23044. type: String,
  23045. default: uni.$u.props.datetimePicker.title
  23046. },
  23047. // 展示格式,mode=date为日期选择,mode=time为时间选择,mode=year-month为年月选择,mode=datetime为日期时间选择
  23048. mode: {
  23049. type: String,
  23050. default: uni.$u.props.datetimePicker.mode
  23051. },
  23052. // 可选的最大时间
  23053. maxDate: {
  23054. type: Number,
  23055. // 最大默认值为后10年
  23056. default: uni.$u.props.datetimePicker.maxDate
  23057. },
  23058. // 可选的最小时间
  23059. minDate: {
  23060. type: Number,
  23061. // 最小默认值为前10年
  23062. default: uni.$u.props.datetimePicker.minDate
  23063. },
  23064. // 可选的最小小时,仅mode=time有效
  23065. minHour: {
  23066. type: Number,
  23067. default: uni.$u.props.datetimePicker.minHour
  23068. },
  23069. // 可选的最大小时,仅mode=time有效
  23070. maxHour: {
  23071. type: Number,
  23072. default: uni.$u.props.datetimePicker.maxHour
  23073. },
  23074. // 可选的最小分钟,仅mode=time有效
  23075. minMinute: {
  23076. type: Number,
  23077. default: uni.$u.props.datetimePicker.minMinute
  23078. },
  23079. // 可选的最大分钟,仅mode=time有效
  23080. maxMinute: {
  23081. type: Number,
  23082. default: uni.$u.props.datetimePicker.maxMinute
  23083. },
  23084. // 选项过滤函数
  23085. filter: {
  23086. type: [Function, null],
  23087. default: uni.$u.props.datetimePicker.filter
  23088. },
  23089. // 选项格式化函数
  23090. formatter: {
  23091. type: [Function, null],
  23092. default: uni.$u.props.datetimePicker.formatter
  23093. },
  23094. // 是否显示加载中状态
  23095. loading: {
  23096. type: Boolean,
  23097. default: uni.$u.props.datetimePicker.loading
  23098. },
  23099. // 各列中,单个选项的高度
  23100. itemHeight: {
  23101. type: [String, Number],
  23102. default: uni.$u.props.datetimePicker.itemHeight
  23103. },
  23104. // 取消按钮的文字
  23105. cancelText: {
  23106. type: String,
  23107. default: uni.$u.props.datetimePicker.cancelText
  23108. },
  23109. // 确认按钮的文字
  23110. confirmText: {
  23111. type: String,
  23112. default: uni.$u.props.datetimePicker.confirmText
  23113. },
  23114. // 取消按钮的颜色
  23115. cancelColor: {
  23116. type: String,
  23117. default: uni.$u.props.datetimePicker.cancelColor
  23118. },
  23119. // 确认按钮的颜色
  23120. confirmColor: {
  23121. type: String,
  23122. default: uni.$u.props.datetimePicker.confirmColor
  23123. },
  23124. // 每列中可见选项的数量
  23125. visibleItemCount: {
  23126. type: [String, Number],
  23127. default: uni.$u.props.datetimePicker.visibleItemCount
  23128. },
  23129. // 是否允许点击遮罩关闭选择器
  23130. closeOnClickOverlay: {
  23131. type: Boolean,
  23132. default: uni.$u.props.datetimePicker.closeOnClickOverlay
  23133. },
  23134. // 各列的默认索引
  23135. defaultIndex: {
  23136. type: Array,
  23137. default: uni.$u.props.datetimePicker.defaultIndex
  23138. }
  23139. }
  23140. };
  23141. exports.default = _default;
  23142. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23143. /***/ }),
  23144. /* 339 */
  23145. /*!**************************************************************************************************!*\
  23146. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/libs/util/dayjs.js ***!
  23147. \**************************************************************************************************/
  23148. /*! no static exports found */
  23149. /***/ (function(module, exports, __webpack_require__) {
  23150. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23151. !function (t, e) {
  23152. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' ? module.exports = e() : true ? !(__WEBPACK_AMD_DEFINE_FACTORY__ = (e),
  23153. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23154. (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
  23155. __WEBPACK_AMD_DEFINE_FACTORY__),
  23156. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23157. }(this, function () {
  23158. 'use strict';
  23159. var t = 'millisecond';
  23160. var e = 'second';
  23161. var n = 'minute';
  23162. var r = 'hour';
  23163. var i = 'day';
  23164. var s = 'week';
  23165. var u = 'month';
  23166. var a = 'quarter';
  23167. var o = 'year';
  23168. var f = 'date';
  23169. var h = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/;
  23170. var c = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;
  23171. var d = {
  23172. name: 'en',
  23173. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  23174. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_')
  23175. };
  23176. var $ = function $(t, e, n) {
  23177. var r = String(t);
  23178. return !r || r.length >= e ? t : "".concat(Array(e + 1 - r.length).join(n)).concat(t);
  23179. };
  23180. var l = {
  23181. s: $,
  23182. z: function z(t) {
  23183. var e = -t.utcOffset();
  23184. var n = Math.abs(e);
  23185. var r = Math.floor(n / 60);
  23186. var i = n % 60;
  23187. return "".concat((e <= 0 ? '+' : '-') + $(r, 2, '0'), ":").concat($(i, 2, '0'));
  23188. },
  23189. m: function t(e, n) {
  23190. if (e.date() < n.date()) return -t(n, e);
  23191. var r = 12 * (n.year() - e.year()) + (n.month() - e.month());
  23192. var i = e.clone().add(r, u);
  23193. var s = n - i < 0;
  23194. var a = e.clone().add(r + (s ? -1 : 1), u);
  23195. return +(-(r + (n - i) / (s ? i - a : a - i)) || 0);
  23196. },
  23197. a: function a(t) {
  23198. return t < 0 ? Math.ceil(t) || 0 : Math.floor(t);
  23199. },
  23200. p: function p(h) {
  23201. return {
  23202. M: u,
  23203. y: o,
  23204. w: s,
  23205. d: i,
  23206. D: f,
  23207. h: r,
  23208. m: n,
  23209. s: e,
  23210. ms: t,
  23211. Q: a
  23212. }[h] || String(h || '').toLowerCase().replace(/s$/, '');
  23213. },
  23214. u: function u(t) {
  23215. return void 0 === t;
  23216. }
  23217. };
  23218. var y = 'en';
  23219. var M = {};
  23220. M[y] = d;
  23221. var m = function m(t) {
  23222. return t instanceof S;
  23223. };
  23224. var D = function D(t, e, n) {
  23225. var r;
  23226. if (!t) return y;
  23227. if (typeof t === 'string') M[t] && (r = t), e && (M[t] = e, r = t);else {
  23228. var _i = t.name;
  23229. M[_i] = t, r = _i;
  23230. }
  23231. return !n && r && (y = r), r || !n && y;
  23232. };
  23233. var v = function v(t, e) {
  23234. if (m(t)) return t.clone();
  23235. var n = _typeof(e) === 'object' ? e : {};
  23236. return n.date = t, n.args = arguments, new S(n);
  23237. };
  23238. var g = l;
  23239. g.l = D, g.i = m, g.w = function (t, e) {
  23240. return v(t, {
  23241. locale: e.$L,
  23242. utc: e.$u,
  23243. x: e.$x,
  23244. $offset: e.$offset
  23245. });
  23246. };
  23247. var S = function () {
  23248. function d(t) {
  23249. this.$L = D(t.locale, null, !0), this.parse(t);
  23250. }
  23251. var $ = d.prototype;
  23252. return $.parse = function (t) {
  23253. this.$d = function (t) {
  23254. var e = t.date;
  23255. var n = t.utc;
  23256. if (e === null) return new Date(NaN);
  23257. if (g.u(e)) return new Date();
  23258. if (e instanceof Date) return new Date(e);
  23259. if (typeof e === 'string' && !/Z$/i.test(e)) {
  23260. var _r = e.match(h);
  23261. if (_r) {
  23262. var _i2 = _r[2] - 1 || 0;
  23263. var _s = (_r[7] || '0').substring(0, 3);
  23264. return n ? new Date(Date.UTC(_r[1], _i2, _r[3] || 1, _r[4] || 0, _r[5] || 0, _r[6] || 0, _s)) : new Date(_r[1], _i2, _r[3] || 1, _r[4] || 0, _r[5] || 0, _r[6] || 0, _s);
  23265. }
  23266. }
  23267. return new Date(e);
  23268. }(t), this.$x = t.x || {}, this.init();
  23269. }, $.init = function () {
  23270. var t = this.$d;
  23271. this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
  23272. }, $.$utils = function () {
  23273. return g;
  23274. }, $.isValid = function () {
  23275. return !(this.$d.toString() === 'Invalid Date');
  23276. }, $.isSame = function (t, e) {
  23277. var n = v(t);
  23278. return this.startOf(e) <= n && n <= this.endOf(e);
  23279. }, $.isAfter = function (t, e) {
  23280. return v(t) < this.startOf(e);
  23281. }, $.isBefore = function (t, e) {
  23282. return this.endOf(e) < v(t);
  23283. }, $.$g = function (t, e, n) {
  23284. return g.u(t) ? this[e] : this.set(n, t);
  23285. }, $.unix = function () {
  23286. return Math.floor(this.valueOf() / 1e3);
  23287. }, $.valueOf = function () {
  23288. return this.$d.getTime();
  23289. }, $.startOf = function (t, a) {
  23290. var h = this;
  23291. var c = !!g.u(a) || a;
  23292. var d = g.p(t);
  23293. var $ = function $(t, e) {
  23294. var n = g.w(h.$u ? Date.UTC(h.$y, e, t) : new Date(h.$y, e, t), h);
  23295. return c ? n : n.endOf(i);
  23296. };
  23297. var l = function l(t, e) {
  23298. return g.w(h.toDate()[t].apply(h.toDate('s'), (c ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e)), h);
  23299. };
  23300. var y = this.$W;
  23301. var M = this.$M;
  23302. var m = this.$D;
  23303. var D = "set".concat(this.$u ? 'UTC' : '');
  23304. switch (d) {
  23305. case o:
  23306. return c ? $(1, 0) : $(31, 11);
  23307. case u:
  23308. return c ? $(1, M) : $(0, M + 1);
  23309. case s:
  23310. var v = this.$locale().weekStart || 0;
  23311. var S = (y < v ? y + 7 : y) - v;
  23312. return $(c ? m - S : m + (6 - S), M);
  23313. case i:
  23314. case f:
  23315. return l("".concat(D, "Hours"), 0);
  23316. case r:
  23317. return l("".concat(D, "Minutes"), 1);
  23318. case n:
  23319. return l("".concat(D, "Seconds"), 2);
  23320. case e:
  23321. return l("".concat(D, "Milliseconds"), 3);
  23322. default:
  23323. return this.clone();
  23324. }
  23325. }, $.endOf = function (t) {
  23326. return this.startOf(t, !1);
  23327. }, $.$set = function (s, a) {
  23328. var h;
  23329. var c = g.p(s);
  23330. var d = "set".concat(this.$u ? 'UTC' : '');
  23331. var $ = (h = {}, h[i] = "".concat(d, "Date"), h[f] = "".concat(d, "Date"), h[u] = "".concat(d, "Month"), h[o] = "".concat(d, "FullYear"), h[r] = "".concat(d, "Hours"), h[n] = "".concat(d, "Minutes"), h[e] = "".concat(d, "Seconds"), h[t] = "".concat(d, "Milliseconds"), h)[c];
  23332. var l = c === i ? this.$D + (a - this.$W) : a;
  23333. if (c === u || c === o) {
  23334. var _y = this.clone().set(f, 1);
  23335. _y.$d[$](l), _y.init(), this.$d = _y.set(f, Math.min(this.$D, _y.daysInMonth())).$d;
  23336. } else $ && this.$d[$](l);
  23337. return this.init(), this;
  23338. }, $.set = function (t, e) {
  23339. return this.clone().$set(t, e);
  23340. }, $.get = function (t) {
  23341. return this[g.p(t)]();
  23342. }, $.add = function (t, a) {
  23343. var f;
  23344. var h = this;
  23345. t = Number(t);
  23346. var c = g.p(a);
  23347. var d = function d(e) {
  23348. var n = v(h);
  23349. return g.w(n.date(n.date() + Math.round(e * t)), h);
  23350. };
  23351. if (c === u) return this.set(u, this.$M + t);
  23352. if (c === o) return this.set(o, this.$y + t);
  23353. if (c === i) return d(1);
  23354. if (c === s) return d(7);
  23355. var $ = (f = {}, f[n] = 6e4, f[r] = 36e5, f[e] = 1e3, f)[c] || 1;
  23356. var l = this.$d.getTime() + t * $;
  23357. return g.w(l, this);
  23358. }, $.subtract = function (t, e) {
  23359. return this.add(-1 * t, e);
  23360. }, $.format = function (t) {
  23361. var e = this;
  23362. if (!this.isValid()) return 'Invalid Date';
  23363. var n = t || 'YYYY-MM-DDTHH:mm:ssZ';
  23364. var r = g.z(this);
  23365. var i = this.$locale();
  23366. var s = this.$H;
  23367. var u = this.$m;
  23368. var a = this.$M;
  23369. var o = i.weekdays;
  23370. var f = i.months;
  23371. var h = function h(t, r, i, s) {
  23372. return t && (t[r] || t(e, n)) || i[r].substr(0, s);
  23373. };
  23374. var d = function d(t) {
  23375. return g.s(s % 12 || 12, t, '0');
  23376. };
  23377. var $ = i.meridiem || function (t, e, n) {
  23378. var r = t < 12 ? 'AM' : 'PM';
  23379. return n ? r.toLowerCase() : r;
  23380. };
  23381. var l = {
  23382. YY: String(this.$y).slice(-2),
  23383. YYYY: this.$y,
  23384. M: a + 1,
  23385. MM: g.s(a + 1, 2, '0'),
  23386. MMM: h(i.monthsShort, a, f, 3),
  23387. MMMM: h(f, a),
  23388. D: this.$D,
  23389. DD: g.s(this.$D, 2, '0'),
  23390. d: String(this.$W),
  23391. dd: h(i.weekdaysMin, this.$W, o, 2),
  23392. ddd: h(i.weekdaysShort, this.$W, o, 3),
  23393. dddd: o[this.$W],
  23394. H: String(s),
  23395. HH: g.s(s, 2, '0'),
  23396. h: d(1),
  23397. hh: d(2),
  23398. a: $(s, u, !0),
  23399. A: $(s, u, !1),
  23400. m: String(u),
  23401. mm: g.s(u, 2, '0'),
  23402. s: String(this.$s),
  23403. ss: g.s(this.$s, 2, '0'),
  23404. SSS: g.s(this.$ms, 3, '0'),
  23405. Z: r
  23406. };
  23407. return n.replace(c, function (t, e) {
  23408. return e || l[t] || r.replace(':', '');
  23409. });
  23410. }, $.utcOffset = function () {
  23411. return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
  23412. }, $.diff = function (t, f, h) {
  23413. var c;
  23414. var d = g.p(f);
  23415. var $ = v(t);
  23416. var l = 6e4 * ($.utcOffset() - this.utcOffset());
  23417. var y = this - $;
  23418. var M = g.m(this, $);
  23419. return M = (c = {}, c[o] = M / 12, c[u] = M, c[a] = M / 3, c[s] = (y - l) / 6048e5, c[i] = (y - l) / 864e5, c[r] = y / 36e5, c[n] = y / 6e4, c[e] = y / 1e3, c)[d] || y, h ? M : g.a(M);
  23420. }, $.daysInMonth = function () {
  23421. return this.endOf(u).$D;
  23422. }, $.$locale = function () {
  23423. return M[this.$L];
  23424. }, $.locale = function (t, e) {
  23425. if (!t) return this.$L;
  23426. var n = this.clone();
  23427. var r = D(t, e, !0);
  23428. return r && (n.$L = r), n;
  23429. }, $.clone = function () {
  23430. return g.w(this.$d, this);
  23431. }, $.toDate = function () {
  23432. return new Date(this.valueOf());
  23433. }, $.toJSON = function () {
  23434. return this.isValid() ? this.toISOString() : null;
  23435. }, $.toISOString = function () {
  23436. return this.$d.toISOString();
  23437. }, $.toString = function () {
  23438. return this.$d.toUTCString();
  23439. }, d;
  23440. }();
  23441. var p = S.prototype;
  23442. return v.prototype = p, [['$ms', t], ['$s', e], ['$m', n], ['$H', r], ['$W', i], ['$M', u], ['$y', o], ['$D', f]].forEach(function (t) {
  23443. p[t[1]] = function (e) {
  23444. return this.$g(e, t[0], t[1]);
  23445. };
  23446. }), v.extend = function (t, e) {
  23447. return t.$i || (t(e, S, v), t.$i = !0), v;
  23448. }, v.locale = D, v.isDayjs = m, v.unix = function (t) {
  23449. return v(1e3 * t);
  23450. }, v.en = M[y], v.Ls = M, v.p = {}, v;
  23451. });
  23452. /***/ }),
  23453. /* 340 */,
  23454. /* 341 */,
  23455. /* 342 */,
  23456. /* 343 */,
  23457. /* 344 */,
  23458. /* 345 */,
  23459. /* 346 */,
  23460. /* 347 */
  23461. /*!*************************************************************************************************************!*\
  23462. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/components/u-divider/props.js ***!
  23463. \*************************************************************************************************************/
  23464. /*! no static exports found */
  23465. /***/ (function(module, exports, __webpack_require__) {
  23466. "use strict";
  23467. /* WEBPACK VAR INJECTION */(function(uni) {
  23468. Object.defineProperty(exports, "__esModule", {
  23469. value: true
  23470. });
  23471. exports.default = void 0;
  23472. var _default = {
  23473. props: {
  23474. // 是否虚线
  23475. dashed: {
  23476. type: Boolean,
  23477. default: uni.$u.props.divider.dashed
  23478. },
  23479. // 是否细线
  23480. hairline: {
  23481. type: Boolean,
  23482. default: uni.$u.props.divider.hairline
  23483. },
  23484. // 是否以点替代文字,优先于text字段起作用
  23485. dot: {
  23486. type: Boolean,
  23487. default: uni.$u.props.divider.dot
  23488. },
  23489. // 内容文本的位置,left-左边,center-中间,right-右边
  23490. textPosition: {
  23491. type: String,
  23492. default: uni.$u.props.divider.textPosition
  23493. },
  23494. // 文本内容
  23495. text: {
  23496. type: [String, Number],
  23497. default: uni.$u.props.divider.text
  23498. },
  23499. // 文本大小
  23500. textSize: {
  23501. type: [String, Number],
  23502. default: uni.$u.props.divider.textSize
  23503. },
  23504. // 文本颜色
  23505. textColor: {
  23506. type: String,
  23507. default: uni.$u.props.divider.textColor
  23508. },
  23509. // 线条颜色
  23510. lineColor: {
  23511. type: String,
  23512. default: uni.$u.props.divider.lineColor
  23513. }
  23514. }
  23515. };
  23516. exports.default = _default;
  23517. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23518. /***/ }),
  23519. /* 348 */,
  23520. /* 349 */,
  23521. /* 350 */,
  23522. /* 351 */,
  23523. /* 352 */,
  23524. /* 353 */,
  23525. /* 354 */,
  23526. /* 355 */
  23527. /*!***********************************************************************************************************!*\
  23528. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/components/u-popup/props.js ***!
  23529. \***********************************************************************************************************/
  23530. /*! no static exports found */
  23531. /***/ (function(module, exports, __webpack_require__) {
  23532. "use strict";
  23533. /* WEBPACK VAR INJECTION */(function(uni) {
  23534. Object.defineProperty(exports, "__esModule", {
  23535. value: true
  23536. });
  23537. exports.default = void 0;
  23538. var _default = {
  23539. props: {
  23540. // 是否展示弹窗
  23541. show: {
  23542. type: Boolean,
  23543. default: uni.$u.props.popup.show
  23544. },
  23545. // 是否显示遮罩
  23546. overlay: {
  23547. type: Boolean,
  23548. default: uni.$u.props.popup.overlay
  23549. },
  23550. // 弹出的方向,可选值为 top bottom right left center
  23551. mode: {
  23552. type: String,
  23553. default: uni.$u.props.popup.mode
  23554. },
  23555. // 动画时长,单位ms
  23556. duration: {
  23557. type: [String, Number],
  23558. default: uni.$u.props.popup.duration
  23559. },
  23560. // 是否显示关闭图标
  23561. closeable: {
  23562. type: Boolean,
  23563. default: uni.$u.props.popup.closeable
  23564. },
  23565. // 自定义遮罩的样式
  23566. overlayStyle: {
  23567. type: [Object, String],
  23568. default: uni.$u.props.popup.overlayStyle
  23569. },
  23570. // 点击遮罩是否关闭弹窗
  23571. closeOnClickOverlay: {
  23572. type: Boolean,
  23573. default: uni.$u.props.popup.closeOnClickOverlay
  23574. },
  23575. // 层级
  23576. zIndex: {
  23577. type: [String, Number],
  23578. default: uni.$u.props.popup.zIndex
  23579. },
  23580. // 是否为iPhoneX留出底部安全距离
  23581. safeAreaInsetBottom: {
  23582. type: Boolean,
  23583. default: uni.$u.props.popup.safeAreaInsetBottom
  23584. },
  23585. // 是否留出顶部安全距离(状态栏高度)
  23586. safeAreaInsetTop: {
  23587. type: Boolean,
  23588. default: uni.$u.props.popup.safeAreaInsetTop
  23589. },
  23590. // 自定义关闭图标位置,top-left为左上角,top-right为右上角,bottom-left为左下角,bottom-right为右下角
  23591. closeIconPos: {
  23592. type: String,
  23593. default: uni.$u.props.popup.closeIconPos
  23594. },
  23595. // 是否显示圆角
  23596. round: {
  23597. type: [Boolean, String, Number],
  23598. default: uni.$u.props.popup.round
  23599. },
  23600. // mode=center,也即中部弹出时,是否使用缩放模式
  23601. zoom: {
  23602. type: Boolean,
  23603. default: uni.$u.props.popup.zoom
  23604. },
  23605. // 弹窗背景色,设置为transparent可去除白色背景
  23606. bgColor: {
  23607. type: String,
  23608. default: uni.$u.props.popup.bgColor
  23609. },
  23610. // 遮罩的透明度,0-1之间
  23611. overlayOpacity: {
  23612. type: [Number, String],
  23613. default: uni.$u.props.popup.overlayOpacity
  23614. }
  23615. }
  23616. };
  23617. exports.default = _default;
  23618. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23619. /***/ }),
  23620. /* 356 */,
  23621. /* 357 */,
  23622. /* 358 */,
  23623. /* 359 */,
  23624. /* 360 */,
  23625. /* 361 */,
  23626. /* 362 */,
  23627. /* 363 */
  23628. /*!*************************************************************************************************************!*\
  23629. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/components/u-toolbar/props.js ***!
  23630. \*************************************************************************************************************/
  23631. /*! no static exports found */
  23632. /***/ (function(module, exports, __webpack_require__) {
  23633. "use strict";
  23634. /* WEBPACK VAR INJECTION */(function(uni) {
  23635. Object.defineProperty(exports, "__esModule", {
  23636. value: true
  23637. });
  23638. exports.default = void 0;
  23639. var _default = {
  23640. props: {
  23641. // 是否展示工具条
  23642. show: {
  23643. type: Boolean,
  23644. default: uni.$u.props.toolbar.show
  23645. },
  23646. // 取消按钮的文字
  23647. cancelText: {
  23648. type: String,
  23649. default: uni.$u.props.toolbar.cancelText
  23650. },
  23651. // 确认按钮的文字
  23652. confirmText: {
  23653. type: String,
  23654. default: uni.$u.props.toolbar.confirmText
  23655. },
  23656. // 取消按钮的颜色
  23657. cancelColor: {
  23658. type: String,
  23659. default: uni.$u.props.toolbar.cancelColor
  23660. },
  23661. // 确认按钮的颜色
  23662. confirmColor: {
  23663. type: String,
  23664. default: uni.$u.props.toolbar.confirmColor
  23665. },
  23666. // 标题文字
  23667. title: {
  23668. type: String,
  23669. default: uni.$u.props.toolbar.title
  23670. }
  23671. }
  23672. };
  23673. exports.default = _default;
  23674. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23675. /***/ }),
  23676. /* 364 */,
  23677. /* 365 */,
  23678. /* 366 */,
  23679. /* 367 */,
  23680. /* 368 */,
  23681. /* 369 */,
  23682. /* 370 */,
  23683. /* 371 */
  23684. /*!******************************************************************************************************************!*\
  23685. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/components/u-loading-icon/props.js ***!
  23686. \******************************************************************************************************************/
  23687. /*! no static exports found */
  23688. /***/ (function(module, exports, __webpack_require__) {
  23689. "use strict";
  23690. /* WEBPACK VAR INJECTION */(function(uni) {
  23691. Object.defineProperty(exports, "__esModule", {
  23692. value: true
  23693. });
  23694. exports.default = void 0;
  23695. var _default = {
  23696. props: {
  23697. // 是否显示组件
  23698. show: {
  23699. type: Boolean,
  23700. default: uni.$u.props.loadingIcon.show
  23701. },
  23702. // 颜色
  23703. color: {
  23704. type: String,
  23705. default: uni.$u.props.loadingIcon.color
  23706. },
  23707. // 提示文字颜色
  23708. textColor: {
  23709. type: String,
  23710. default: uni.$u.props.loadingIcon.textColor
  23711. },
  23712. // 文字和图标是否垂直排列
  23713. vertical: {
  23714. type: Boolean,
  23715. default: uni.$u.props.loadingIcon.vertical
  23716. },
  23717. // 模式选择,circle-圆形,spinner-花朵形,semicircle-半圆形
  23718. mode: {
  23719. type: String,
  23720. default: uni.$u.props.loadingIcon.mode
  23721. },
  23722. // 图标大小,单位默认px
  23723. size: {
  23724. type: [String, Number],
  23725. default: uni.$u.props.loadingIcon.size
  23726. },
  23727. // 文字大小
  23728. textSize: {
  23729. type: [String, Number],
  23730. default: uni.$u.props.loadingIcon.textSize
  23731. },
  23732. // 文字内容
  23733. text: {
  23734. type: [String, Number],
  23735. default: uni.$u.props.loadingIcon.text
  23736. },
  23737. // 动画模式
  23738. timingFunction: {
  23739. type: String,
  23740. default: uni.$u.props.loadingIcon.timingFunction
  23741. },
  23742. // 动画执行周期时间
  23743. duration: {
  23744. type: [String, Number],
  23745. default: uni.$u.props.loadingIcon.duration
  23746. },
  23747. // mode=circle时的暗边颜色
  23748. inactiveColor: {
  23749. type: String,
  23750. default: uni.$u.props.loadingIcon.inactiveColor
  23751. }
  23752. }
  23753. };
  23754. exports.default = _default;
  23755. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23756. /***/ }),
  23757. /* 372 */,
  23758. /* 373 */,
  23759. /* 374 */,
  23760. /* 375 */,
  23761. /* 376 */,
  23762. /* 377 */,
  23763. /* 378 */,
  23764. /* 379 */
  23765. /*!**********************************************************************************************************!*\
  23766. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/components/u-line/props.js ***!
  23767. \**********************************************************************************************************/
  23768. /*! no static exports found */
  23769. /***/ (function(module, exports, __webpack_require__) {
  23770. "use strict";
  23771. /* WEBPACK VAR INJECTION */(function(uni) {
  23772. Object.defineProperty(exports, "__esModule", {
  23773. value: true
  23774. });
  23775. exports.default = void 0;
  23776. var _default = {
  23777. props: {
  23778. color: {
  23779. type: String,
  23780. default: uni.$u.props.line.color
  23781. },
  23782. // 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等
  23783. length: {
  23784. type: [String, Number],
  23785. default: uni.$u.props.line.length
  23786. },
  23787. // 线条方向,col-竖向,row-横向
  23788. direction: {
  23789. type: String,
  23790. default: uni.$u.props.line.direction
  23791. },
  23792. // 是否显示细边框
  23793. hairline: {
  23794. type: Boolean,
  23795. default: uni.$u.props.line.hairline
  23796. },
  23797. // 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
  23798. margin: {
  23799. type: [String, Number],
  23800. default: uni.$u.props.line.margin
  23801. },
  23802. // 是否虚线,true-虚线,false-实线
  23803. dashed: {
  23804. type: Boolean,
  23805. default: uni.$u.props.line.dashed
  23806. }
  23807. }
  23808. };
  23809. exports.default = _default;
  23810. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23811. /***/ }),
  23812. /* 380 */,
  23813. /* 381 */,
  23814. /* 382 */,
  23815. /* 383 */,
  23816. /* 384 */,
  23817. /* 385 */,
  23818. /* 386 */,
  23819. /* 387 */,
  23820. /* 388 */,
  23821. /* 389 */,
  23822. /* 390 */,
  23823. /* 391 */,
  23824. /* 392 */,
  23825. /* 393 */,
  23826. /* 394 */
  23827. /*!*********************************************************************************************************!*\
  23828. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/components/u-gap/props.js ***!
  23829. \*********************************************************************************************************/
  23830. /*! no static exports found */
  23831. /***/ (function(module, exports, __webpack_require__) {
  23832. "use strict";
  23833. /* WEBPACK VAR INJECTION */(function(uni) {
  23834. Object.defineProperty(exports, "__esModule", {
  23835. value: true
  23836. });
  23837. exports.default = void 0;
  23838. var _default = {
  23839. props: {
  23840. // 背景颜色(默认transparent)
  23841. bgColor: {
  23842. type: String,
  23843. default: uni.$u.props.gap.bgColor
  23844. },
  23845. // 分割槽高度,单位px(默认30)
  23846. height: {
  23847. type: [String, Number],
  23848. default: uni.$u.props.gap.height
  23849. },
  23850. // 与上一个组件的距离
  23851. marginTop: {
  23852. type: [String, Number],
  23853. default: uni.$u.props.gap.marginTop
  23854. },
  23855. // 与下一个组件的距离
  23856. marginBottom: {
  23857. type: [String, Number],
  23858. default: uni.$u.props.gap.marginBottom
  23859. }
  23860. }
  23861. };
  23862. exports.default = _default;
  23863. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23864. /***/ }),
  23865. /* 395 */,
  23866. /* 396 */,
  23867. /* 397 */,
  23868. /* 398 */,
  23869. /* 399 */,
  23870. /* 400 */,
  23871. /* 401 */,
  23872. /* 402 */
  23873. /*!*************************************************************************************************************!*\
  23874. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/components/u-overlay/props.js ***!
  23875. \*************************************************************************************************************/
  23876. /*! no static exports found */
  23877. /***/ (function(module, exports, __webpack_require__) {
  23878. "use strict";
  23879. /* WEBPACK VAR INJECTION */(function(uni) {
  23880. Object.defineProperty(exports, "__esModule", {
  23881. value: true
  23882. });
  23883. exports.default = void 0;
  23884. var _default = {
  23885. props: {
  23886. // 是否显示遮罩
  23887. show: {
  23888. type: Boolean,
  23889. default: uni.$u.props.overlay.show
  23890. },
  23891. // 层级z-index
  23892. zIndex: {
  23893. type: [String, Number],
  23894. default: uni.$u.props.overlay.zIndex
  23895. },
  23896. // 遮罩的过渡时间,单位为ms
  23897. duration: {
  23898. type: [String, Number],
  23899. default: uni.$u.props.overlay.duration
  23900. },
  23901. // 不透明度值,当做rgba的第四个参数
  23902. opacity: {
  23903. type: [String, Number],
  23904. default: uni.$u.props.overlay.opacity
  23905. }
  23906. }
  23907. };
  23908. exports.default = _default;
  23909. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23910. /***/ }),
  23911. /* 403 */,
  23912. /* 404 */,
  23913. /* 405 */,
  23914. /* 406 */,
  23915. /* 407 */,
  23916. /* 408 */,
  23917. /* 409 */,
  23918. /* 410 */
  23919. /*!****************************************************************************************************************!*\
  23920. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/components/u-transition/props.js ***!
  23921. \****************************************************************************************************************/
  23922. /*! no static exports found */
  23923. /***/ (function(module, exports, __webpack_require__) {
  23924. "use strict";
  23925. /* WEBPACK VAR INJECTION */(function(uni) {
  23926. Object.defineProperty(exports, "__esModule", {
  23927. value: true
  23928. });
  23929. exports.default = void 0;
  23930. var _default = {
  23931. props: {
  23932. // 是否展示组件
  23933. show: {
  23934. type: Boolean,
  23935. default: uni.$u.props.transition.show
  23936. },
  23937. // 使用的动画模式
  23938. mode: {
  23939. type: String,
  23940. default: uni.$u.props.transition.mode
  23941. },
  23942. // 动画的执行时间,单位ms
  23943. duration: {
  23944. type: [String, Number],
  23945. default: uni.$u.props.transition.duration
  23946. },
  23947. // 使用的动画过渡函数
  23948. timingFunction: {
  23949. type: String,
  23950. default: uni.$u.props.transition.timingFunction
  23951. }
  23952. }
  23953. };
  23954. exports.default = _default;
  23955. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23956. /***/ }),
  23957. /* 411 */
  23958. /*!*********************************************************************************************************************!*\
  23959. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/components/u-transition/transition.js ***!
  23960. \*********************************************************************************************************************/
  23961. /*! no static exports found */
  23962. /***/ (function(module, exports, __webpack_require__) {
  23963. "use strict";
  23964. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  23965. Object.defineProperty(exports, "__esModule", {
  23966. value: true
  23967. });
  23968. exports.default = void 0;
  23969. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 56));
  23970. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 58));
  23971. var _nvueAniMap = _interopRequireDefault(__webpack_require__(/*! ./nvue.ani-map.js */ 412));
  23972. // 定义一个一定时间后自动成功的promise,让调用nextTick方法处,进入下一个then方法
  23973. var nextTick = function nextTick() {
  23974. return new Promise(function (resolve) {
  23975. return setTimeout(resolve, 1000 / 50);
  23976. });
  23977. };
  23978. // nvue动画模块实现细节抽离在外部文件
  23979. // 定义类名,通过给元素动态切换类名,赋予元素一定的css动画样式
  23980. var getClassNames = function getClassNames(name) {
  23981. return {
  23982. enter: "u-".concat(name, "-enter u-").concat(name, "-enter-active"),
  23983. 'enter-to': "u-".concat(name, "-enter-to u-").concat(name, "-enter-active"),
  23984. leave: "u-".concat(name, "-leave u-").concat(name, "-leave-active"),
  23985. 'leave-to': "u-".concat(name, "-leave-to u-").concat(name, "-leave-active")
  23986. };
  23987. };
  23988. var _default = {
  23989. methods: {
  23990. // 组件被点击发出事件
  23991. clickHandler: function clickHandler() {
  23992. this.$emit('click');
  23993. },
  23994. // vue版本的组件进场处理
  23995. vueEnter: function vueEnter() {
  23996. var _this = this;
  23997. // 动画进入时的类名
  23998. var classNames = getClassNames(this.mode);
  23999. // 定义状态和发出动画进入前事件
  24000. this.status = 'enter';
  24001. this.$emit('beforeEnter');
  24002. this.inited = true;
  24003. this.display = true;
  24004. this.classes = classNames.enter;
  24005. this.$nextTick( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  24006. return _regenerator.default.wrap(function _callee$(_context) {
  24007. while (1) {
  24008. switch (_context.prev = _context.next) {
  24009. case 0:
  24010. // 标识动画尚未结束
  24011. _this.$emit('enter');
  24012. _this.transitionEnded = false;
  24013. // 组件动画进入后触发的事件
  24014. _this.$emit('afterEnter');
  24015. // 赋予组件enter-to类名
  24016. _this.classes = classNames['enter-to'];
  24017. case 4:
  24018. case "end":
  24019. return _context.stop();
  24020. }
  24021. }
  24022. }, _callee);
  24023. })));
  24024. },
  24025. // 动画离场处理
  24026. vueLeave: function vueLeave() {
  24027. var _this2 = this;
  24028. // 如果不是展示状态,无需执行逻辑
  24029. if (!this.display) return;
  24030. var classNames = getClassNames(this.mode);
  24031. // 标记离开状态和发出事件
  24032. this.status = 'leave';
  24033. this.$emit('beforeLeave');
  24034. // 获得类名
  24035. this.classes = classNames.leave;
  24036. this.$nextTick(function () {
  24037. // 动画正在离场的状态
  24038. _this2.transitionEnded = false;
  24039. _this2.$emit('leave');
  24040. // 组件执行动画,到了执行的执行时间后,执行一些额外处理
  24041. setTimeout(_this2.onTransitionEnd, _this2.duration);
  24042. _this2.classes = classNames['leave-to'];
  24043. });
  24044. },
  24045. // 完成过渡后触发
  24046. onTransitionEnd: function onTransitionEnd() {
  24047. // 如果已经是结束的状态,无需再处理
  24048. if (this.transitionEnded) return;
  24049. this.transitionEnded = true;
  24050. // 发出组件动画执行后的事件
  24051. this.$emit(this.status === 'leave' ? 'afterLeave' : 'afterEnter');
  24052. if (!this.show && this.display) {
  24053. this.display = false;
  24054. this.inited = false;
  24055. }
  24056. }
  24057. }
  24058. };
  24059. exports.default = _default;
  24060. /***/ }),
  24061. /* 412 */
  24062. /*!***********************************************************************************************************************!*\
  24063. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/components/u-transition/nvue.ani-map.js ***!
  24064. \***********************************************************************************************************************/
  24065. /*! no static exports found */
  24066. /***/ (function(module, exports, __webpack_require__) {
  24067. "use strict";
  24068. Object.defineProperty(exports, "__esModule", {
  24069. value: true
  24070. });
  24071. exports.default = void 0;
  24072. var _default = {
  24073. fade: {
  24074. enter: {
  24075. opacity: 0
  24076. },
  24077. 'enter-to': {
  24078. opacity: 1
  24079. },
  24080. leave: {
  24081. opacity: 1
  24082. },
  24083. 'leave-to': {
  24084. opacity: 0
  24085. }
  24086. },
  24087. 'fade-up': {
  24088. enter: {
  24089. opacity: 0,
  24090. transform: 'translateY(100%)'
  24091. },
  24092. 'enter-to': {
  24093. opacity: 1,
  24094. transform: 'translateY(0)'
  24095. },
  24096. leave: {
  24097. opacity: 1,
  24098. transform: 'translateY(0)'
  24099. },
  24100. 'leave-to': {
  24101. opacity: 0,
  24102. transform: 'translateY(100%)'
  24103. }
  24104. },
  24105. 'fade-down': {
  24106. enter: {
  24107. opacity: 0,
  24108. transform: 'translateY(-100%)'
  24109. },
  24110. 'enter-to': {
  24111. opacity: 1,
  24112. transform: 'translateY(0)'
  24113. },
  24114. leave: {
  24115. opacity: 1,
  24116. transform: 'translateY(0)'
  24117. },
  24118. 'leave-to': {
  24119. opacity: 0,
  24120. transform: 'translateY(-100%)'
  24121. }
  24122. },
  24123. 'fade-left': {
  24124. enter: {
  24125. opacity: 0,
  24126. transform: 'translateX(-100%)'
  24127. },
  24128. 'enter-to': {
  24129. opacity: 1,
  24130. transform: 'translateY(0)'
  24131. },
  24132. leave: {
  24133. opacity: 1,
  24134. transform: 'translateY(0)'
  24135. },
  24136. 'leave-to': {
  24137. opacity: 0,
  24138. transform: 'translateX(-100%)'
  24139. }
  24140. },
  24141. 'fade-right': {
  24142. enter: {
  24143. opacity: 0,
  24144. transform: 'translateX(100%)'
  24145. },
  24146. 'enter-to': {
  24147. opacity: 1,
  24148. transform: 'translateY(0)'
  24149. },
  24150. leave: {
  24151. opacity: 1,
  24152. transform: 'translateY(0)'
  24153. },
  24154. 'leave-to': {
  24155. opacity: 0,
  24156. transform: 'translateX(100%)'
  24157. }
  24158. },
  24159. 'slide-up': {
  24160. enter: {
  24161. transform: 'translateY(100%)'
  24162. },
  24163. 'enter-to': {
  24164. transform: 'translateY(0)'
  24165. },
  24166. leave: {
  24167. transform: 'translateY(0)'
  24168. },
  24169. 'leave-to': {
  24170. transform: 'translateY(100%)'
  24171. }
  24172. },
  24173. 'slide-down': {
  24174. enter: {
  24175. transform: 'translateY(-100%)'
  24176. },
  24177. 'enter-to': {
  24178. transform: 'translateY(0)'
  24179. },
  24180. leave: {
  24181. transform: 'translateY(0)'
  24182. },
  24183. 'leave-to': {
  24184. transform: 'translateY(-100%)'
  24185. }
  24186. },
  24187. 'slide-left': {
  24188. enter: {
  24189. transform: 'translateX(-100%)'
  24190. },
  24191. 'enter-to': {
  24192. transform: 'translateY(0)'
  24193. },
  24194. leave: {
  24195. transform: 'translateY(0)'
  24196. },
  24197. 'leave-to': {
  24198. transform: 'translateX(-100%)'
  24199. }
  24200. },
  24201. 'slide-right': {
  24202. enter: {
  24203. transform: 'translateX(100%)'
  24204. },
  24205. 'enter-to': {
  24206. transform: 'translateY(0)'
  24207. },
  24208. leave: {
  24209. transform: 'translateY(0)'
  24210. },
  24211. 'leave-to': {
  24212. transform: 'translateX(100%)'
  24213. }
  24214. },
  24215. zoom: {
  24216. enter: {
  24217. transform: 'scale(0.95)'
  24218. },
  24219. 'enter-to': {
  24220. transform: 'scale(1)'
  24221. },
  24222. leave: {
  24223. transform: 'scale(1)'
  24224. },
  24225. 'leave-to': {
  24226. transform: 'scale(0.95)'
  24227. }
  24228. },
  24229. 'fade-zoom': {
  24230. enter: {
  24231. opacity: 0,
  24232. transform: 'scale(0.95)'
  24233. },
  24234. 'enter-to': {
  24235. opacity: 1,
  24236. transform: 'scale(1)'
  24237. },
  24238. leave: {
  24239. opacity: 1,
  24240. transform: 'scale(1)'
  24241. },
  24242. 'leave-to': {
  24243. opacity: 0,
  24244. transform: 'scale(0.95)'
  24245. }
  24246. }
  24247. };
  24248. exports.default = _default;
  24249. /***/ }),
  24250. /* 413 */,
  24251. /* 414 */,
  24252. /* 415 */,
  24253. /* 416 */,
  24254. /* 417 */,
  24255. /* 418 */,
  24256. /* 419 */,
  24257. /* 420 */
  24258. /*!****************************************************************************************************************!*\
  24259. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/components/u-status-bar/props.js ***!
  24260. \****************************************************************************************************************/
  24261. /*! no static exports found */
  24262. /***/ (function(module, exports, __webpack_require__) {
  24263. "use strict";
  24264. /* WEBPACK VAR INJECTION */(function(uni) {
  24265. Object.defineProperty(exports, "__esModule", {
  24266. value: true
  24267. });
  24268. exports.default = void 0;
  24269. var _default = {
  24270. props: {
  24271. bgColor: {
  24272. type: String,
  24273. default: uni.$u.props.statusBar.bgColor
  24274. }
  24275. }
  24276. };
  24277. exports.default = _default;
  24278. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  24279. /***/ }),
  24280. /* 421 */,
  24281. /* 422 */,
  24282. /* 423 */,
  24283. /* 424 */,
  24284. /* 425 */,
  24285. /* 426 */,
  24286. /* 427 */,
  24287. /* 428 */
  24288. /*!*****************************************************************************************************************!*\
  24289. !*** D:/Project/vueProject/academicAdministrationSystem/uni_modules/uview-ui/components/u-safe-bottom/props.js ***!
  24290. \*****************************************************************************************************************/
  24291. /*! no static exports found */
  24292. /***/ (function(module, exports, __webpack_require__) {
  24293. "use strict";
  24294. Object.defineProperty(exports, "__esModule", {
  24295. value: true
  24296. });
  24297. exports.default = void 0;
  24298. var _default = {
  24299. props: {}
  24300. };
  24301. exports.default = _default;
  24302. /***/ })
  24303. ]]);
  24304. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map