vendor.js 649 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343
  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'];
  15. var target = typeof globalThis !== 'undefined' ? globalThis : function () {
  16. return this;
  17. }();
  18. var key = ['w', 'x'].join('');
  19. var oldWx = target[key];
  20. function isWxKey(key) {
  21. return objectKeys.indexOf(key) > -1 || typeof oldWx[key] === 'function';
  22. }
  23. function initWx() {
  24. var newWx = {};
  25. for (var _key in oldWx) {
  26. if (isWxKey(_key)) {
  27. // TODO wrapper function
  28. newWx[_key] = oldWx[_key];
  29. }
  30. }
  31. return newWx;
  32. }
  33. target[key] = initWx();
  34. var _default = target[key];
  35. exports.default = _default;
  36. /***/ }),
  37. /* 2 */
  38. /*!************************************************************!*\
  39. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  40. \************************************************************/
  41. /*! no static exports found */
  42. /***/ (function(module, exports, __webpack_require__) {
  43. "use strict";
  44. /* WEBPACK VAR INJECTION */(function(wx, global) {
  45. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  46. Object.defineProperty(exports, "__esModule", {
  47. value: true
  48. });
  49. exports.createApp = createApp;
  50. exports.createComponent = createComponent;
  51. exports.createPage = createPage;
  52. exports.createPlugin = createPlugin;
  53. exports.createSubpackageApp = createSubpackageApp;
  54. exports.default = void 0;
  55. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  56. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  57. var _construct2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/construct */ 15));
  58. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  59. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  60. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 22);
  61. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  62. 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; }
  63. 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; }
  64. var realAtob;
  65. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  66. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  67. if (typeof atob !== 'function') {
  68. realAtob = function realAtob(str) {
  69. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  70. if (!b64re.test(str)) {
  71. throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  72. }
  73. // Adding the padding if missing, for semplicity
  74. str += '=='.slice(2 - (str.length & 3));
  75. var bitmap;
  76. var result = '';
  77. var r1;
  78. var r2;
  79. var i = 0;
  80. for (; i < str.length;) {
  81. 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++)));
  82. 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);
  83. }
  84. return result;
  85. };
  86. } else {
  87. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  88. realAtob = atob;
  89. }
  90. function b64DecodeUnicode(str) {
  91. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  92. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  93. }).join(''));
  94. }
  95. function getCurrentUserInfo() {
  96. var token = wx.getStorageSync('uni_id_token') || '';
  97. var tokenArr = token.split('.');
  98. if (!token || tokenArr.length !== 3) {
  99. return {
  100. uid: null,
  101. role: [],
  102. permission: [],
  103. tokenExpired: 0
  104. };
  105. }
  106. var userInfo;
  107. try {
  108. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  109. } catch (error) {
  110. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  111. }
  112. userInfo.tokenExpired = userInfo.exp * 1000;
  113. delete userInfo.exp;
  114. delete userInfo.iat;
  115. return userInfo;
  116. }
  117. function uniIdMixin(Vue) {
  118. Vue.prototype.uniIDHasRole = function (roleId) {
  119. var _getCurrentUserInfo = getCurrentUserInfo(),
  120. role = _getCurrentUserInfo.role;
  121. return role.indexOf(roleId) > -1;
  122. };
  123. Vue.prototype.uniIDHasPermission = function (permissionId) {
  124. var _getCurrentUserInfo2 = getCurrentUserInfo(),
  125. permission = _getCurrentUserInfo2.permission;
  126. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  127. };
  128. Vue.prototype.uniIDTokenValid = function () {
  129. var _getCurrentUserInfo3 = getCurrentUserInfo(),
  130. tokenExpired = _getCurrentUserInfo3.tokenExpired;
  131. return tokenExpired > Date.now();
  132. };
  133. }
  134. var _toString = Object.prototype.toString;
  135. var hasOwnProperty = Object.prototype.hasOwnProperty;
  136. function isFn(fn) {
  137. return typeof fn === 'function';
  138. }
  139. function isStr(str) {
  140. return typeof str === 'string';
  141. }
  142. function isObject(obj) {
  143. return obj !== null && (0, _typeof2.default)(obj) === 'object';
  144. }
  145. function isPlainObject(obj) {
  146. return _toString.call(obj) === '[object Object]';
  147. }
  148. function hasOwn(obj, key) {
  149. return hasOwnProperty.call(obj, key);
  150. }
  151. function noop() {}
  152. /**
  153. * Create a cached version of a pure function.
  154. */
  155. function cached(fn) {
  156. var cache = Object.create(null);
  157. return function cachedFn(str) {
  158. var hit = cache[str];
  159. return hit || (cache[str] = fn(str));
  160. };
  161. }
  162. /**
  163. * Camelize a hyphen-delimited string.
  164. */
  165. var camelizeRE = /-(\w)/g;
  166. var camelize = cached(function (str) {
  167. return str.replace(camelizeRE, function (_, c) {
  168. return c ? c.toUpperCase() : '';
  169. });
  170. });
  171. function sortObject(obj) {
  172. var sortObj = {};
  173. if (isPlainObject(obj)) {
  174. Object.keys(obj).sort().forEach(function (key) {
  175. sortObj[key] = obj[key];
  176. });
  177. }
  178. return !Object.keys(sortObj) ? obj : sortObj;
  179. }
  180. var HOOKS = ['invoke', 'success', 'fail', 'complete', 'returnValue'];
  181. var globalInterceptors = {};
  182. var scopedInterceptors = {};
  183. function mergeHook(parentVal, childVal) {
  184. var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal;
  185. return res ? dedupeHooks(res) : res;
  186. }
  187. function dedupeHooks(hooks) {
  188. var res = [];
  189. for (var i = 0; i < hooks.length; i++) {
  190. if (res.indexOf(hooks[i]) === -1) {
  191. res.push(hooks[i]);
  192. }
  193. }
  194. return res;
  195. }
  196. function removeHook(hooks, hook) {
  197. var index = hooks.indexOf(hook);
  198. if (index !== -1) {
  199. hooks.splice(index, 1);
  200. }
  201. }
  202. function mergeInterceptorHook(interceptor, option) {
  203. Object.keys(option).forEach(function (hook) {
  204. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  205. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  206. }
  207. });
  208. }
  209. function removeInterceptorHook(interceptor, option) {
  210. if (!interceptor || !option) {
  211. return;
  212. }
  213. Object.keys(option).forEach(function (hook) {
  214. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  215. removeHook(interceptor[hook], option[hook]);
  216. }
  217. });
  218. }
  219. function addInterceptor(method, option) {
  220. if (typeof method === 'string' && isPlainObject(option)) {
  221. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  222. } else if (isPlainObject(method)) {
  223. mergeInterceptorHook(globalInterceptors, method);
  224. }
  225. }
  226. function removeInterceptor(method, option) {
  227. if (typeof method === 'string') {
  228. if (isPlainObject(option)) {
  229. removeInterceptorHook(scopedInterceptors[method], option);
  230. } else {
  231. delete scopedInterceptors[method];
  232. }
  233. } else if (isPlainObject(method)) {
  234. removeInterceptorHook(globalInterceptors, method);
  235. }
  236. }
  237. function wrapperHook(hook) {
  238. return function (data) {
  239. return hook(data) || data;
  240. };
  241. }
  242. function isPromise(obj) {
  243. return !!obj && ((0, _typeof2.default)(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  244. }
  245. function queue(hooks, data) {
  246. var promise = false;
  247. for (var i = 0; i < hooks.length; i++) {
  248. var hook = hooks[i];
  249. if (promise) {
  250. promise = Promise.resolve(wrapperHook(hook));
  251. } else {
  252. var res = hook(data);
  253. if (isPromise(res)) {
  254. promise = Promise.resolve(res);
  255. }
  256. if (res === false) {
  257. return {
  258. then: function then() {}
  259. };
  260. }
  261. }
  262. }
  263. return promise || {
  264. then: function then(callback) {
  265. return callback(data);
  266. }
  267. };
  268. }
  269. function wrapperOptions(interceptor) {
  270. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  271. ['success', 'fail', 'complete'].forEach(function (name) {
  272. if (Array.isArray(interceptor[name])) {
  273. var oldCallback = options[name];
  274. options[name] = function callbackInterceptor(res) {
  275. queue(interceptor[name], res).then(function (res) {
  276. /* eslint-disable no-mixed-operators */
  277. return isFn(oldCallback) && oldCallback(res) || res;
  278. });
  279. };
  280. }
  281. });
  282. return options;
  283. }
  284. function wrapperReturnValue(method, returnValue) {
  285. var returnValueHooks = [];
  286. if (Array.isArray(globalInterceptors.returnValue)) {
  287. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(globalInterceptors.returnValue));
  288. }
  289. var interceptor = scopedInterceptors[method];
  290. if (interceptor && Array.isArray(interceptor.returnValue)) {
  291. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(interceptor.returnValue));
  292. }
  293. returnValueHooks.forEach(function (hook) {
  294. returnValue = hook(returnValue) || returnValue;
  295. });
  296. return returnValue;
  297. }
  298. function getApiInterceptorHooks(method) {
  299. var interceptor = Object.create(null);
  300. Object.keys(globalInterceptors).forEach(function (hook) {
  301. if (hook !== 'returnValue') {
  302. interceptor[hook] = globalInterceptors[hook].slice();
  303. }
  304. });
  305. var scopedInterceptor = scopedInterceptors[method];
  306. if (scopedInterceptor) {
  307. Object.keys(scopedInterceptor).forEach(function (hook) {
  308. if (hook !== 'returnValue') {
  309. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  310. }
  311. });
  312. }
  313. return interceptor;
  314. }
  315. function invokeApi(method, api, options) {
  316. for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
  317. params[_key - 3] = arguments[_key];
  318. }
  319. var interceptor = getApiInterceptorHooks(method);
  320. if (interceptor && Object.keys(interceptor).length) {
  321. if (Array.isArray(interceptor.invoke)) {
  322. var res = queue(interceptor.invoke, options);
  323. return res.then(function (options) {
  324. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  325. });
  326. } else {
  327. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  328. }
  329. }
  330. return api.apply(void 0, [options].concat(params));
  331. }
  332. var promiseInterceptor = {
  333. returnValue: function returnValue(res) {
  334. if (!isPromise(res)) {
  335. return res;
  336. }
  337. return new Promise(function (resolve, reject) {
  338. res.then(function (res) {
  339. if (res[0]) {
  340. reject(res[0]);
  341. } else {
  342. resolve(res[1]);
  343. }
  344. });
  345. });
  346. }
  347. };
  348. var SYNC_API_RE = /^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting/;
  349. var CONTEXT_API_RE = /^create|Manager$/;
  350. // Context例外情况
  351. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  352. // 同步例外情况
  353. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  354. var CALLBACK_API_RE = /^on|^off/;
  355. function isContextApi(name) {
  356. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  357. }
  358. function isSyncApi(name) {
  359. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  360. }
  361. function isCallbackApi(name) {
  362. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  363. }
  364. function handlePromise(promise) {
  365. return promise.then(function (data) {
  366. return [null, data];
  367. }).catch(function (err) {
  368. return [err];
  369. });
  370. }
  371. function shouldPromise(name) {
  372. if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) {
  373. return false;
  374. }
  375. return true;
  376. }
  377. /* eslint-disable no-extend-native */
  378. if (!Promise.prototype.finally) {
  379. Promise.prototype.finally = function (callback) {
  380. var promise = this.constructor;
  381. return this.then(function (value) {
  382. return promise.resolve(callback()).then(function () {
  383. return value;
  384. });
  385. }, function (reason) {
  386. return promise.resolve(callback()).then(function () {
  387. throw reason;
  388. });
  389. });
  390. };
  391. }
  392. function promisify(name, api) {
  393. if (!shouldPromise(name) || !isFn(api)) {
  394. return api;
  395. }
  396. return function promiseApi() {
  397. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  398. for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  399. params[_key2 - 1] = arguments[_key2];
  400. }
  401. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  402. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  403. }
  404. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  405. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  406. success: resolve,
  407. fail: reject
  408. })].concat(params));
  409. })));
  410. };
  411. }
  412. var EPS = 1e-4;
  413. var BASE_DEVICE_WIDTH = 750;
  414. var isIOS = false;
  415. var deviceWidth = 0;
  416. var deviceDPR = 0;
  417. function checkDeviceWidth() {
  418. var _wx$getSystemInfoSync = wx.getSystemInfoSync(),
  419. platform = _wx$getSystemInfoSync.platform,
  420. pixelRatio = _wx$getSystemInfoSync.pixelRatio,
  421. windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  422. deviceWidth = windowWidth;
  423. deviceDPR = pixelRatio;
  424. isIOS = platform === 'ios';
  425. }
  426. function upx2px(number, newDeviceWidth) {
  427. if (deviceWidth === 0) {
  428. checkDeviceWidth();
  429. }
  430. number = Number(number);
  431. if (number === 0) {
  432. return 0;
  433. }
  434. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  435. if (result < 0) {
  436. result = -result;
  437. }
  438. result = Math.floor(result + EPS);
  439. if (result === 0) {
  440. if (deviceDPR === 1 || !isIOS) {
  441. result = 1;
  442. } else {
  443. result = 0.5;
  444. }
  445. }
  446. return number < 0 ? -result : result;
  447. }
  448. var LOCALE_ZH_HANS = 'zh-Hans';
  449. var LOCALE_ZH_HANT = 'zh-Hant';
  450. var LOCALE_EN = 'en';
  451. var LOCALE_FR = 'fr';
  452. var LOCALE_ES = 'es';
  453. var messages = {};
  454. var locale;
  455. {
  456. locale = normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  457. }
  458. function initI18nMessages() {
  459. if (!isEnableLocale()) {
  460. return;
  461. }
  462. var localeKeys = Object.keys(__uniConfig.locales);
  463. if (localeKeys.length) {
  464. localeKeys.forEach(function (locale) {
  465. var curMessages = messages[locale];
  466. var userMessages = __uniConfig.locales[locale];
  467. if (curMessages) {
  468. Object.assign(curMessages, userMessages);
  469. } else {
  470. messages[locale] = userMessages;
  471. }
  472. });
  473. }
  474. }
  475. initI18nMessages();
  476. var i18n = (0, _uniI18n.initVueI18n)(locale, {});
  477. var t = i18n.t;
  478. var i18nMixin = i18n.mixin = {
  479. beforeCreate: function beforeCreate() {
  480. var _this = this;
  481. var unwatch = i18n.i18n.watchLocale(function () {
  482. _this.$forceUpdate();
  483. });
  484. this.$once('hook:beforeDestroy', function () {
  485. unwatch();
  486. });
  487. },
  488. methods: {
  489. $$t: function $$t(key, values) {
  490. return t(key, values);
  491. }
  492. }
  493. };
  494. var setLocale = i18n.setLocale;
  495. var getLocale = i18n.getLocale;
  496. function initAppLocale(Vue, appVm, locale) {
  497. var state = Vue.observable({
  498. locale: locale || i18n.getLocale()
  499. });
  500. var localeWatchers = [];
  501. appVm.$watchLocale = function (fn) {
  502. localeWatchers.push(fn);
  503. };
  504. Object.defineProperty(appVm, '$locale', {
  505. get: function get() {
  506. return state.locale;
  507. },
  508. set: function set(v) {
  509. state.locale = v;
  510. localeWatchers.forEach(function (watch) {
  511. return watch(v);
  512. });
  513. }
  514. });
  515. }
  516. function isEnableLocale() {
  517. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  518. }
  519. function include(str, parts) {
  520. return !!parts.find(function (part) {
  521. return str.indexOf(part) !== -1;
  522. });
  523. }
  524. function startsWith(str, parts) {
  525. return parts.find(function (part) {
  526. return str.indexOf(part) === 0;
  527. });
  528. }
  529. function normalizeLocale(locale, messages) {
  530. if (!locale) {
  531. return;
  532. }
  533. locale = locale.trim().replace(/_/g, '-');
  534. if (messages && messages[locale]) {
  535. return locale;
  536. }
  537. locale = locale.toLowerCase();
  538. if (locale === 'chinese') {
  539. // 支付宝
  540. return LOCALE_ZH_HANS;
  541. }
  542. if (locale.indexOf('zh') === 0) {
  543. if (locale.indexOf('-hans') > -1) {
  544. return LOCALE_ZH_HANS;
  545. }
  546. if (locale.indexOf('-hant') > -1) {
  547. return LOCALE_ZH_HANT;
  548. }
  549. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  550. return LOCALE_ZH_HANT;
  551. }
  552. return LOCALE_ZH_HANS;
  553. }
  554. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  555. if (lang) {
  556. return lang;
  557. }
  558. }
  559. // export function initI18n() {
  560. // const localeKeys = Object.keys(__uniConfig.locales || {})
  561. // if (localeKeys.length) {
  562. // localeKeys.forEach((locale) =>
  563. // i18n.add(locale, __uniConfig.locales[locale])
  564. // )
  565. // }
  566. // }
  567. function getLocale$1() {
  568. // 优先使用 $locale
  569. if (isFn(getApp)) {
  570. var app = getApp({
  571. allowDefault: true
  572. });
  573. if (app && app.$vm) {
  574. return app.$vm.$locale;
  575. }
  576. }
  577. return normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  578. }
  579. function setLocale$1(locale) {
  580. var app = isFn(getApp) ? getApp() : false;
  581. if (!app) {
  582. return false;
  583. }
  584. var oldLocale = app.$vm.$locale;
  585. if (oldLocale !== locale) {
  586. app.$vm.$locale = locale;
  587. onLocaleChangeCallbacks.forEach(function (fn) {
  588. return fn({
  589. locale: locale
  590. });
  591. });
  592. return true;
  593. }
  594. return false;
  595. }
  596. var onLocaleChangeCallbacks = [];
  597. function onLocaleChange(fn) {
  598. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  599. onLocaleChangeCallbacks.push(fn);
  600. }
  601. }
  602. if (typeof global !== 'undefined') {
  603. global.getLocale = getLocale$1;
  604. }
  605. var interceptors = {
  606. promiseInterceptor: promiseInterceptor
  607. };
  608. var baseApi = /*#__PURE__*/Object.freeze({
  609. __proto__: null,
  610. upx2px: upx2px,
  611. getLocale: getLocale$1,
  612. setLocale: setLocale$1,
  613. onLocaleChange: onLocaleChange,
  614. addInterceptor: addInterceptor,
  615. removeInterceptor: removeInterceptor,
  616. interceptors: interceptors
  617. });
  618. function findExistsPageIndex(url) {
  619. var pages = getCurrentPages();
  620. var len = pages.length;
  621. while (len--) {
  622. var page = pages[len];
  623. if (page.$page && page.$page.fullPath === url) {
  624. return len;
  625. }
  626. }
  627. return -1;
  628. }
  629. var redirectTo = {
  630. name: function name(fromArgs) {
  631. if (fromArgs.exists === 'back' && fromArgs.delta) {
  632. return 'navigateBack';
  633. }
  634. return 'redirectTo';
  635. },
  636. args: function args(fromArgs) {
  637. if (fromArgs.exists === 'back' && fromArgs.url) {
  638. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  639. if (existsPageIndex !== -1) {
  640. var delta = getCurrentPages().length - 1 - existsPageIndex;
  641. if (delta > 0) {
  642. fromArgs.delta = delta;
  643. }
  644. }
  645. }
  646. }
  647. };
  648. var previewImage = {
  649. args: function args(fromArgs) {
  650. var currentIndex = parseInt(fromArgs.current);
  651. if (isNaN(currentIndex)) {
  652. return;
  653. }
  654. var urls = fromArgs.urls;
  655. if (!Array.isArray(urls)) {
  656. return;
  657. }
  658. var len = urls.length;
  659. if (!len) {
  660. return;
  661. }
  662. if (currentIndex < 0) {
  663. currentIndex = 0;
  664. } else if (currentIndex >= len) {
  665. currentIndex = len - 1;
  666. }
  667. if (currentIndex > 0) {
  668. fromArgs.current = urls[currentIndex];
  669. fromArgs.urls = urls.filter(function (item, index) {
  670. return index < currentIndex ? item !== urls[currentIndex] : true;
  671. });
  672. } else {
  673. fromArgs.current = urls[0];
  674. }
  675. return {
  676. indicator: false,
  677. loop: false
  678. };
  679. }
  680. };
  681. var UUID_KEY = '__DC_STAT_UUID';
  682. var deviceId;
  683. function useDeviceId(result) {
  684. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  685. if (!deviceId) {
  686. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  687. wx.setStorage({
  688. key: UUID_KEY,
  689. data: deviceId
  690. });
  691. }
  692. result.deviceId = deviceId;
  693. }
  694. function addSafeAreaInsets(result) {
  695. if (result.safeArea) {
  696. var safeArea = result.safeArea;
  697. result.safeAreaInsets = {
  698. top: safeArea.top,
  699. left: safeArea.left,
  700. right: result.windowWidth - safeArea.right,
  701. bottom: result.screenHeight - safeArea.bottom
  702. };
  703. }
  704. }
  705. function populateParameters(result) {
  706. var _result$brand = result.brand,
  707. brand = _result$brand === void 0 ? '' : _result$brand,
  708. _result$model = result.model,
  709. model = _result$model === void 0 ? '' : _result$model,
  710. _result$system = result.system,
  711. system = _result$system === void 0 ? '' : _result$system,
  712. _result$language = result.language,
  713. language = _result$language === void 0 ? '' : _result$language,
  714. theme = result.theme,
  715. version = result.version,
  716. platform = result.platform,
  717. fontSizeSetting = result.fontSizeSetting,
  718. SDKVersion = result.SDKVersion,
  719. pixelRatio = result.pixelRatio,
  720. deviceOrientation = result.deviceOrientation;
  721. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  722. // osName osVersion
  723. var osName = '';
  724. var osVersion = '';
  725. {
  726. osName = system.split(' ')[0] || '';
  727. osVersion = system.split(' ')[1] || '';
  728. }
  729. var hostVersion = version;
  730. // deviceType
  731. var deviceType = getGetDeviceType(result, model);
  732. // deviceModel
  733. var deviceBrand = getDeviceBrand(brand);
  734. // hostName
  735. var _hostName = getHostName(result);
  736. // deviceOrientation
  737. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  738. // devicePixelRatio
  739. var _devicePixelRatio = pixelRatio;
  740. // SDKVersion
  741. var _SDKVersion = SDKVersion;
  742. // hostLanguage
  743. var hostLanguage = language.replace(/_/g, '-');
  744. // wx.getAccountInfoSync
  745. var parameters = {
  746. appId: "__UNI__5C2D7AA",
  747. appName: "saas_manager",
  748. appVersion: "1.0.0",
  749. appVersionCode: "100",
  750. appLanguage: getAppLanguage(hostLanguage),
  751. uniCompileVersion: "3.6.18",
  752. uniRuntimeVersion: "3.6.18",
  753. uniPlatform: undefined || "mp-weixin",
  754. deviceBrand: deviceBrand,
  755. deviceModel: model,
  756. deviceType: deviceType,
  757. devicePixelRatio: _devicePixelRatio,
  758. deviceOrientation: _deviceOrientation,
  759. osName: osName.toLocaleLowerCase(),
  760. osVersion: osVersion,
  761. hostTheme: theme,
  762. hostVersion: hostVersion,
  763. hostLanguage: hostLanguage,
  764. hostName: _hostName,
  765. hostSDKVersion: _SDKVersion,
  766. hostFontSizeSetting: fontSizeSetting,
  767. windowTop: 0,
  768. windowBottom: 0,
  769. // TODO
  770. osLanguage: undefined,
  771. osTheme: undefined,
  772. ua: undefined,
  773. hostPackageName: undefined,
  774. browserName: undefined,
  775. browserVersion: undefined
  776. };
  777. Object.assign(result, parameters);
  778. }
  779. function getGetDeviceType(result, model) {
  780. var deviceType = result.deviceType || 'phone';
  781. {
  782. var deviceTypeMaps = {
  783. ipad: 'pad',
  784. windows: 'pc',
  785. mac: 'pc'
  786. };
  787. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  788. var _model = model.toLocaleLowerCase();
  789. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  790. var _m = deviceTypeMapsKeys[index];
  791. if (_model.indexOf(_m) !== -1) {
  792. deviceType = deviceTypeMaps[_m];
  793. break;
  794. }
  795. }
  796. }
  797. return deviceType;
  798. }
  799. function getDeviceBrand(brand) {
  800. var deviceBrand = brand;
  801. if (deviceBrand) {
  802. deviceBrand = brand.toLocaleLowerCase();
  803. }
  804. return deviceBrand;
  805. }
  806. function getAppLanguage(defaultLanguage) {
  807. return getLocale$1 ? getLocale$1() : defaultLanguage;
  808. }
  809. function getHostName(result) {
  810. var _platform = 'WeChat';
  811. var _hostName = result.hostName || _platform; // mp-jd
  812. {
  813. if (result.environment) {
  814. _hostName = result.environment;
  815. } else if (result.host && result.host.env) {
  816. _hostName = result.host.env;
  817. }
  818. }
  819. return _hostName;
  820. }
  821. var getSystemInfo = {
  822. returnValue: function returnValue(result) {
  823. useDeviceId(result);
  824. addSafeAreaInsets(result);
  825. populateParameters(result);
  826. }
  827. };
  828. var showActionSheet = {
  829. args: function args(fromArgs) {
  830. if ((0, _typeof2.default)(fromArgs) === 'object') {
  831. fromArgs.alertText = fromArgs.title;
  832. }
  833. }
  834. };
  835. var getAppBaseInfo = {
  836. returnValue: function returnValue(result) {
  837. var _result = result,
  838. version = _result.version,
  839. language = _result.language,
  840. SDKVersion = _result.SDKVersion,
  841. theme = _result.theme;
  842. var _hostName = getHostName(result);
  843. var hostLanguage = language.replace('_', '-');
  844. result = sortObject(Object.assign(result, {
  845. appId: "__UNI__5C2D7AA",
  846. appName: "saas_manager",
  847. appVersion: "1.0.0",
  848. appVersionCode: "100",
  849. appLanguage: getAppLanguage(hostLanguage),
  850. hostVersion: version,
  851. hostLanguage: hostLanguage,
  852. hostName: _hostName,
  853. hostSDKVersion: SDKVersion,
  854. hostTheme: theme
  855. }));
  856. }
  857. };
  858. var getDeviceInfo = {
  859. returnValue: function returnValue(result) {
  860. var _result2 = result,
  861. brand = _result2.brand,
  862. model = _result2.model;
  863. var deviceType = getGetDeviceType(result, model);
  864. var deviceBrand = getDeviceBrand(brand);
  865. useDeviceId(result);
  866. result = sortObject(Object.assign(result, {
  867. deviceType: deviceType,
  868. deviceBrand: deviceBrand,
  869. deviceModel: model
  870. }));
  871. }
  872. };
  873. var getWindowInfo = {
  874. returnValue: function returnValue(result) {
  875. addSafeAreaInsets(result);
  876. result = sortObject(Object.assign(result, {
  877. windowTop: 0,
  878. windowBottom: 0
  879. }));
  880. }
  881. };
  882. var getAppAuthorizeSetting = {
  883. returnValue: function returnValue(result) {
  884. var locationReducedAccuracy = result.locationReducedAccuracy;
  885. result.locationAccuracy = 'unsupported';
  886. if (locationReducedAccuracy === true) {
  887. result.locationAccuracy = 'reduced';
  888. } else if (locationReducedAccuracy === false) {
  889. result.locationAccuracy = 'full';
  890. }
  891. }
  892. };
  893. // import navigateTo from 'uni-helpers/navigate-to'
  894. var protocols = {
  895. redirectTo: redirectTo,
  896. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  897. previewImage: previewImage,
  898. getSystemInfo: getSystemInfo,
  899. getSystemInfoSync: getSystemInfo,
  900. showActionSheet: showActionSheet,
  901. getAppBaseInfo: getAppBaseInfo,
  902. getDeviceInfo: getDeviceInfo,
  903. getWindowInfo: getWindowInfo,
  904. getAppAuthorizeSetting: getAppAuthorizeSetting
  905. };
  906. var todos = ['vibrate', 'preloadPage', 'unPreloadPage', 'loadSubPackage'];
  907. var canIUses = [];
  908. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  909. function processCallback(methodName, method, returnValue) {
  910. return function (res) {
  911. return method(processReturnValue(methodName, res, returnValue));
  912. };
  913. }
  914. function processArgs(methodName, fromArgs) {
  915. var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  916. var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  917. var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  918. if (isPlainObject(fromArgs)) {
  919. // 一般 api 的参数解析
  920. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  921. if (isFn(argsOption)) {
  922. argsOption = argsOption(fromArgs, toArgs) || {};
  923. }
  924. for (var key in fromArgs) {
  925. if (hasOwn(argsOption, key)) {
  926. var keyOption = argsOption[key];
  927. if (isFn(keyOption)) {
  928. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  929. }
  930. if (!keyOption) {
  931. // 不支持的参数
  932. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  933. } else if (isStr(keyOption)) {
  934. // 重写参数 key
  935. toArgs[keyOption] = fromArgs[key];
  936. } else if (isPlainObject(keyOption)) {
  937. // {name:newName,value:value}可重新指定参数 key:value
  938. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  939. }
  940. } else if (CALLBACKS.indexOf(key) !== -1) {
  941. if (isFn(fromArgs[key])) {
  942. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  943. }
  944. } else {
  945. if (!keepFromArgs) {
  946. toArgs[key] = fromArgs[key];
  947. }
  948. }
  949. }
  950. return toArgs;
  951. } else if (isFn(fromArgs)) {
  952. fromArgs = processCallback(methodName, fromArgs, returnValue);
  953. }
  954. return fromArgs;
  955. }
  956. function processReturnValue(methodName, res, returnValue) {
  957. var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  958. if (isFn(protocols.returnValue)) {
  959. // 处理通用 returnValue
  960. res = protocols.returnValue(methodName, res);
  961. }
  962. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  963. }
  964. function wrapper(methodName, method) {
  965. if (hasOwn(protocols, methodName)) {
  966. var protocol = protocols[methodName];
  967. if (!protocol) {
  968. // 暂不支持的 api
  969. return function () {
  970. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  971. };
  972. }
  973. return function (arg1, arg2) {
  974. // 目前 api 最多两个参数
  975. var options = protocol;
  976. if (isFn(protocol)) {
  977. options = protocol(arg1);
  978. }
  979. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  980. var args = [arg1];
  981. if (typeof arg2 !== 'undefined') {
  982. args.push(arg2);
  983. }
  984. if (isFn(options.name)) {
  985. methodName = options.name(arg1);
  986. } else if (isStr(options.name)) {
  987. methodName = options.name;
  988. }
  989. var returnValue = wx[methodName].apply(wx, args);
  990. if (isSyncApi(methodName)) {
  991. // 同步 api
  992. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  993. }
  994. return returnValue;
  995. };
  996. }
  997. return method;
  998. }
  999. var todoApis = Object.create(null);
  1000. var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
  1001. function createTodoApi(name) {
  1002. return function todoApi(_ref) {
  1003. var fail = _ref.fail,
  1004. complete = _ref.complete;
  1005. var res = {
  1006. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
  1007. };
  1008. isFn(fail) && fail(res);
  1009. isFn(complete) && complete(res);
  1010. };
  1011. }
  1012. TODOS.forEach(function (name) {
  1013. todoApis[name] = createTodoApi(name);
  1014. });
  1015. var providers = {
  1016. oauth: ['weixin'],
  1017. share: ['weixin'],
  1018. payment: ['wxpay'],
  1019. push: ['weixin']
  1020. };
  1021. function getProvider(_ref2) {
  1022. var service = _ref2.service,
  1023. success = _ref2.success,
  1024. fail = _ref2.fail,
  1025. complete = _ref2.complete;
  1026. var res = false;
  1027. if (providers[service]) {
  1028. res = {
  1029. errMsg: 'getProvider:ok',
  1030. service: service,
  1031. provider: providers[service]
  1032. };
  1033. isFn(success) && success(res);
  1034. } else {
  1035. res = {
  1036. errMsg: 'getProvider:fail service not found'
  1037. };
  1038. isFn(fail) && fail(res);
  1039. }
  1040. isFn(complete) && complete(res);
  1041. }
  1042. var extraApi = /*#__PURE__*/Object.freeze({
  1043. __proto__: null,
  1044. getProvider: getProvider
  1045. });
  1046. var getEmitter = function () {
  1047. var Emitter;
  1048. return function getUniEmitter() {
  1049. if (!Emitter) {
  1050. Emitter = new _vue.default();
  1051. }
  1052. return Emitter;
  1053. };
  1054. }();
  1055. function apply(ctx, method, args) {
  1056. return ctx[method].apply(ctx, args);
  1057. }
  1058. function $on() {
  1059. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  1060. }
  1061. function $off() {
  1062. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  1063. }
  1064. function $once() {
  1065. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  1066. }
  1067. function $emit() {
  1068. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  1069. }
  1070. var eventApi = /*#__PURE__*/Object.freeze({
  1071. __proto__: null,
  1072. $on: $on,
  1073. $off: $off,
  1074. $once: $once,
  1075. $emit: $emit
  1076. });
  1077. /**
  1078. * 框架内 try-catch
  1079. */
  1080. /**
  1081. * 开发者 try-catch
  1082. */
  1083. function tryCatch(fn) {
  1084. return function () {
  1085. try {
  1086. return fn.apply(fn, arguments);
  1087. } catch (e) {
  1088. // TODO
  1089. console.error(e);
  1090. }
  1091. };
  1092. }
  1093. function getApiCallbacks(params) {
  1094. var apiCallbacks = {};
  1095. for (var name in params) {
  1096. var param = params[name];
  1097. if (isFn(param)) {
  1098. apiCallbacks[name] = tryCatch(param);
  1099. delete params[name];
  1100. }
  1101. }
  1102. return apiCallbacks;
  1103. }
  1104. var cid;
  1105. var cidErrMsg;
  1106. var enabled;
  1107. function normalizePushMessage(message) {
  1108. try {
  1109. return JSON.parse(message);
  1110. } catch (e) {}
  1111. return message;
  1112. }
  1113. function invokePushCallback(args) {
  1114. if (args.type === 'enabled') {
  1115. enabled = true;
  1116. } else if (args.type === 'clientId') {
  1117. cid = args.cid;
  1118. cidErrMsg = args.errMsg;
  1119. invokeGetPushCidCallbacks(cid, args.errMsg);
  1120. } else if (args.type === 'pushMsg') {
  1121. var message = {
  1122. type: 'receive',
  1123. data: normalizePushMessage(args.message)
  1124. };
  1125. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  1126. var callback = onPushMessageCallbacks[i];
  1127. callback(message);
  1128. // 该消息已被阻止
  1129. if (message.stopped) {
  1130. break;
  1131. }
  1132. }
  1133. } else if (args.type === 'click') {
  1134. onPushMessageCallbacks.forEach(function (callback) {
  1135. callback({
  1136. type: 'click',
  1137. data: normalizePushMessage(args.message)
  1138. });
  1139. });
  1140. }
  1141. }
  1142. var getPushCidCallbacks = [];
  1143. function invokeGetPushCidCallbacks(cid, errMsg) {
  1144. getPushCidCallbacks.forEach(function (callback) {
  1145. callback(cid, errMsg);
  1146. });
  1147. getPushCidCallbacks.length = 0;
  1148. }
  1149. function getPushClientId(args) {
  1150. if (!isPlainObject(args)) {
  1151. args = {};
  1152. }
  1153. var _getApiCallbacks = getApiCallbacks(args),
  1154. success = _getApiCallbacks.success,
  1155. fail = _getApiCallbacks.fail,
  1156. complete = _getApiCallbacks.complete;
  1157. var hasSuccess = isFn(success);
  1158. var hasFail = isFn(fail);
  1159. var hasComplete = isFn(complete);
  1160. Promise.resolve().then(function () {
  1161. if (typeof enabled === 'undefined') {
  1162. enabled = false;
  1163. cid = '';
  1164. cidErrMsg = 'uniPush is not enabled';
  1165. }
  1166. getPushCidCallbacks.push(function (cid, errMsg) {
  1167. var res;
  1168. if (cid) {
  1169. res = {
  1170. errMsg: 'getPushClientId:ok',
  1171. cid: cid
  1172. };
  1173. hasSuccess && success(res);
  1174. } else {
  1175. res = {
  1176. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
  1177. };
  1178. hasFail && fail(res);
  1179. }
  1180. hasComplete && complete(res);
  1181. });
  1182. if (typeof cid !== 'undefined') {
  1183. invokeGetPushCidCallbacks(cid, cidErrMsg);
  1184. }
  1185. });
  1186. }
  1187. var onPushMessageCallbacks = [];
  1188. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  1189. var onPushMessage = function onPushMessage(fn) {
  1190. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  1191. onPushMessageCallbacks.push(fn);
  1192. }
  1193. };
  1194. var offPushMessage = function offPushMessage(fn) {
  1195. if (!fn) {
  1196. onPushMessageCallbacks.length = 0;
  1197. } else {
  1198. var index = onPushMessageCallbacks.indexOf(fn);
  1199. if (index > -1) {
  1200. onPushMessageCallbacks.splice(index, 1);
  1201. }
  1202. }
  1203. };
  1204. var baseInfo = wx.getAppBaseInfo && wx.getAppBaseInfo();
  1205. if (!baseInfo) {
  1206. baseInfo = wx.getSystemInfoSync();
  1207. }
  1208. var host = baseInfo ? baseInfo.host : null;
  1209. var shareVideoMessage = host && host.env === 'SAAASDK' ? wx.miniapp.shareVideoMessage : wx.shareVideoMessage;
  1210. var api = /*#__PURE__*/Object.freeze({
  1211. __proto__: null,
  1212. shareVideoMessage: shareVideoMessage,
  1213. getPushClientId: getPushClientId,
  1214. onPushMessage: onPushMessage,
  1215. offPushMessage: offPushMessage,
  1216. invokePushCallback: invokePushCallback
  1217. });
  1218. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1219. function findVmByVueId(vm, vuePid) {
  1220. var $children = vm.$children;
  1221. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1222. for (var i = $children.length - 1; i >= 0; i--) {
  1223. var childVm = $children[i];
  1224. if (childVm.$scope._$vueId === vuePid) {
  1225. return childVm;
  1226. }
  1227. }
  1228. // 反向递归查找
  1229. var parentVm;
  1230. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1231. parentVm = findVmByVueId($children[_i], vuePid);
  1232. if (parentVm) {
  1233. return parentVm;
  1234. }
  1235. }
  1236. }
  1237. function initBehavior(options) {
  1238. return Behavior(options);
  1239. }
  1240. function isPage() {
  1241. return !!this.route;
  1242. }
  1243. function initRelation(detail) {
  1244. this.triggerEvent('__l', detail);
  1245. }
  1246. function selectAllComponents(mpInstance, selector, $refs) {
  1247. var components = mpInstance.selectAllComponents(selector) || [];
  1248. components.forEach(function (component) {
  1249. var ref = component.dataset.ref;
  1250. $refs[ref] = component.$vm || toSkip(component);
  1251. {
  1252. if (component.dataset.vueGeneric === 'scoped') {
  1253. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1254. selectAllComponents(scopedComponent, selector, $refs);
  1255. });
  1256. }
  1257. }
  1258. });
  1259. }
  1260. function syncRefs(refs, newRefs) {
  1261. var oldKeys = (0, _construct2.default)(Set, (0, _toConsumableArray2.default)(Object.keys(refs)));
  1262. var newKeys = Object.keys(newRefs);
  1263. newKeys.forEach(function (key) {
  1264. var oldValue = refs[key];
  1265. var newValue = newRefs[key];
  1266. if (Array.isArray(oldValue) && Array.isArray(newValue) && oldValue.length === newValue.length && newValue.every(function (value) {
  1267. return oldValue.includes(value);
  1268. })) {
  1269. return;
  1270. }
  1271. refs[key] = newValue;
  1272. oldKeys.delete(key);
  1273. });
  1274. oldKeys.forEach(function (key) {
  1275. delete refs[key];
  1276. });
  1277. return refs;
  1278. }
  1279. function initRefs(vm) {
  1280. var mpInstance = vm.$scope;
  1281. var refs = {};
  1282. Object.defineProperty(vm, '$refs', {
  1283. get: function get() {
  1284. var $refs = {};
  1285. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1286. // TODO 暂不考虑 for 中的 scoped
  1287. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for') || [];
  1288. forComponents.forEach(function (component) {
  1289. var ref = component.dataset.ref;
  1290. if (!$refs[ref]) {
  1291. $refs[ref] = [];
  1292. }
  1293. $refs[ref].push(component.$vm || toSkip(component));
  1294. });
  1295. return syncRefs(refs, $refs);
  1296. }
  1297. });
  1298. }
  1299. function handleLink(event) {
  1300. var _ref3 = event.detail || event.value,
  1301. vuePid = _ref3.vuePid,
  1302. vueOptions = _ref3.vueOptions; // detail 是微信,value 是百度(dipatch)
  1303. var parentVm;
  1304. if (vuePid) {
  1305. parentVm = findVmByVueId(this.$vm, vuePid);
  1306. }
  1307. if (!parentVm) {
  1308. parentVm = this.$vm;
  1309. }
  1310. vueOptions.parent = parentVm;
  1311. }
  1312. function markMPComponent(component) {
  1313. // 在 Vue 中标记为小程序组件
  1314. var IS_MP = '__v_isMPComponent';
  1315. Object.defineProperty(component, IS_MP, {
  1316. configurable: true,
  1317. enumerable: false,
  1318. value: true
  1319. });
  1320. return component;
  1321. }
  1322. function toSkip(obj) {
  1323. var OB = '__ob__';
  1324. var SKIP = '__v_skip';
  1325. if (isObject(obj) && Object.isExtensible(obj)) {
  1326. // 避免被 @vue/composition-api 观测
  1327. Object.defineProperty(obj, OB, {
  1328. configurable: true,
  1329. enumerable: false,
  1330. value: (0, _defineProperty2.default)({}, SKIP, true)
  1331. });
  1332. }
  1333. return obj;
  1334. }
  1335. var MPPage = Page;
  1336. var MPComponent = Component;
  1337. var customizeRE = /:/g;
  1338. var customize = cached(function (str) {
  1339. return camelize(str.replace(customizeRE, '-'));
  1340. });
  1341. function initTriggerEvent(mpInstance) {
  1342. var oldTriggerEvent = mpInstance.triggerEvent;
  1343. var newTriggerEvent = function newTriggerEvent(event) {
  1344. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
  1345. args[_key3 - 1] = arguments[_key3];
  1346. }
  1347. // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
  1348. if (this.$vm || this.dataset && this.dataset.comType) {
  1349. event = customize(event);
  1350. } else {
  1351. // 针对微信/QQ小程序单独补充驼峰格式事件,以兼容历史项目
  1352. var newEvent = customize(event);
  1353. if (newEvent !== event) {
  1354. oldTriggerEvent.apply(this, [newEvent].concat(args));
  1355. }
  1356. }
  1357. return oldTriggerEvent.apply(this, [event].concat(args));
  1358. };
  1359. try {
  1360. // 京东小程序 triggerEvent 为只读
  1361. mpInstance.triggerEvent = newTriggerEvent;
  1362. } catch (error) {
  1363. mpInstance._triggerEvent = newTriggerEvent;
  1364. }
  1365. }
  1366. function initHook(name, options, isComponent) {
  1367. var oldHook = options[name];
  1368. options[name] = function () {
  1369. markMPComponent(this);
  1370. initTriggerEvent(this);
  1371. if (oldHook) {
  1372. for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  1373. args[_key4] = arguments[_key4];
  1374. }
  1375. return oldHook.apply(this, args);
  1376. }
  1377. };
  1378. }
  1379. if (!MPPage.__$wrappered) {
  1380. MPPage.__$wrappered = true;
  1381. Page = function Page() {
  1382. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1383. initHook('onLoad', options);
  1384. return MPPage(options);
  1385. };
  1386. Page.after = MPPage.after;
  1387. Component = function Component() {
  1388. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1389. initHook('created', options);
  1390. return MPComponent(options);
  1391. };
  1392. }
  1393. var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
  1394. function initMocks(vm, mocks) {
  1395. var mpInstance = vm.$mp[vm.mpType];
  1396. mocks.forEach(function (mock) {
  1397. if (hasOwn(mpInstance, mock)) {
  1398. vm[mock] = mpInstance[mock];
  1399. }
  1400. });
  1401. }
  1402. function hasHook(hook, vueOptions) {
  1403. if (!vueOptions) {
  1404. return true;
  1405. }
  1406. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  1407. return true;
  1408. }
  1409. vueOptions = vueOptions.default || vueOptions;
  1410. if (isFn(vueOptions)) {
  1411. if (isFn(vueOptions.extendOptions[hook])) {
  1412. return true;
  1413. }
  1414. if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
  1415. return true;
  1416. }
  1417. return false;
  1418. }
  1419. if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
  1420. return true;
  1421. }
  1422. var mixins = vueOptions.mixins;
  1423. if (Array.isArray(mixins)) {
  1424. return !!mixins.find(function (mixin) {
  1425. return hasHook(hook, mixin);
  1426. });
  1427. }
  1428. }
  1429. function initHooks(mpOptions, hooks, vueOptions) {
  1430. hooks.forEach(function (hook) {
  1431. if (hasHook(hook, vueOptions)) {
  1432. mpOptions[hook] = function (args) {
  1433. return this.$vm && this.$vm.__call_hook(hook, args);
  1434. };
  1435. }
  1436. });
  1437. }
  1438. function initUnknownHooks(mpOptions, vueOptions) {
  1439. var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1440. findHooks(vueOptions).forEach(function (hook) {
  1441. return initHook$1(mpOptions, hook, excludes);
  1442. });
  1443. }
  1444. function findHooks(vueOptions) {
  1445. var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  1446. if (vueOptions) {
  1447. Object.keys(vueOptions).forEach(function (name) {
  1448. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  1449. hooks.push(name);
  1450. }
  1451. });
  1452. }
  1453. return hooks;
  1454. }
  1455. function initHook$1(mpOptions, hook, excludes) {
  1456. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  1457. mpOptions[hook] = function (args) {
  1458. return this.$vm && this.$vm.__call_hook(hook, args);
  1459. };
  1460. }
  1461. }
  1462. function initVueComponent(Vue, vueOptions) {
  1463. vueOptions = vueOptions.default || vueOptions;
  1464. var VueComponent;
  1465. if (isFn(vueOptions)) {
  1466. VueComponent = vueOptions;
  1467. } else {
  1468. VueComponent = Vue.extend(vueOptions);
  1469. }
  1470. vueOptions = VueComponent.options;
  1471. return [VueComponent, vueOptions];
  1472. }
  1473. function initSlots(vm, vueSlots) {
  1474. if (Array.isArray(vueSlots) && vueSlots.length) {
  1475. var $slots = Object.create(null);
  1476. vueSlots.forEach(function (slotName) {
  1477. $slots[slotName] = true;
  1478. });
  1479. vm.$scopedSlots = vm.$slots = $slots;
  1480. }
  1481. }
  1482. function initVueIds(vueIds, mpInstance) {
  1483. vueIds = (vueIds || '').split(',');
  1484. var len = vueIds.length;
  1485. if (len === 1) {
  1486. mpInstance._$vueId = vueIds[0];
  1487. } else if (len === 2) {
  1488. mpInstance._$vueId = vueIds[0];
  1489. mpInstance._$vuePid = vueIds[1];
  1490. }
  1491. }
  1492. function initData(vueOptions, context) {
  1493. var data = vueOptions.data || {};
  1494. var methods = vueOptions.methods || {};
  1495. if (typeof data === 'function') {
  1496. try {
  1497. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  1498. } catch (e) {
  1499. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"saas_manager","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  1500. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  1501. }
  1502. }
  1503. } else {
  1504. try {
  1505. // 对 data 格式化
  1506. data = JSON.parse(JSON.stringify(data));
  1507. } catch (e) {}
  1508. }
  1509. if (!isPlainObject(data)) {
  1510. data = {};
  1511. }
  1512. Object.keys(methods).forEach(function (methodName) {
  1513. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  1514. data[methodName] = methods[methodName];
  1515. }
  1516. });
  1517. return data;
  1518. }
  1519. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  1520. function createObserver(name) {
  1521. return function observer(newVal, oldVal) {
  1522. if (this.$vm) {
  1523. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  1524. }
  1525. };
  1526. }
  1527. function initBehaviors(vueOptions, initBehavior) {
  1528. var vueBehaviors = vueOptions.behaviors;
  1529. var vueExtends = vueOptions.extends;
  1530. var vueMixins = vueOptions.mixins;
  1531. var vueProps = vueOptions.props;
  1532. if (!vueProps) {
  1533. vueOptions.props = vueProps = [];
  1534. }
  1535. var behaviors = [];
  1536. if (Array.isArray(vueBehaviors)) {
  1537. vueBehaviors.forEach(function (behavior) {
  1538. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  1539. if (behavior === 'uni://form-field') {
  1540. if (Array.isArray(vueProps)) {
  1541. vueProps.push('name');
  1542. vueProps.push('value');
  1543. } else {
  1544. vueProps.name = {
  1545. type: String,
  1546. default: ''
  1547. };
  1548. vueProps.value = {
  1549. type: [String, Number, Boolean, Array, Object, Date],
  1550. default: ''
  1551. };
  1552. }
  1553. }
  1554. });
  1555. }
  1556. if (isPlainObject(vueExtends) && vueExtends.props) {
  1557. behaviors.push(initBehavior({
  1558. properties: initProperties(vueExtends.props, true)
  1559. }));
  1560. }
  1561. if (Array.isArray(vueMixins)) {
  1562. vueMixins.forEach(function (vueMixin) {
  1563. if (isPlainObject(vueMixin) && vueMixin.props) {
  1564. behaviors.push(initBehavior({
  1565. properties: initProperties(vueMixin.props, true)
  1566. }));
  1567. }
  1568. });
  1569. }
  1570. return behaviors;
  1571. }
  1572. function parsePropType(key, type, defaultValue, file) {
  1573. // [String]=>String
  1574. if (Array.isArray(type) && type.length === 1) {
  1575. return type[0];
  1576. }
  1577. return type;
  1578. }
  1579. function initProperties(props) {
  1580. var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  1581. var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  1582. var options = arguments.length > 3 ? arguments[3] : undefined;
  1583. var properties = {};
  1584. if (!isBehavior) {
  1585. properties.vueId = {
  1586. type: String,
  1587. value: ''
  1588. };
  1589. {
  1590. if (options.virtualHost) {
  1591. properties.virtualHostStyle = {
  1592. type: null,
  1593. value: ''
  1594. };
  1595. properties.virtualHostClass = {
  1596. type: null,
  1597. value: ''
  1598. };
  1599. }
  1600. }
  1601. // scopedSlotsCompiler auto
  1602. properties.scopedSlotsCompiler = {
  1603. type: String,
  1604. value: ''
  1605. };
  1606. properties.vueSlots = {
  1607. // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  1608. type: null,
  1609. value: [],
  1610. observer: function observer(newVal, oldVal) {
  1611. var $slots = Object.create(null);
  1612. newVal.forEach(function (slotName) {
  1613. $slots[slotName] = true;
  1614. });
  1615. this.setData({
  1616. $slots: $slots
  1617. });
  1618. }
  1619. };
  1620. }
  1621. if (Array.isArray(props)) {
  1622. // ['title']
  1623. props.forEach(function (key) {
  1624. properties[key] = {
  1625. type: null,
  1626. observer: createObserver(key)
  1627. };
  1628. });
  1629. } else if (isPlainObject(props)) {
  1630. // {title:{type:String,default:''},content:String}
  1631. Object.keys(props).forEach(function (key) {
  1632. var opts = props[key];
  1633. if (isPlainObject(opts)) {
  1634. // title:{type:String,default:''}
  1635. var value = opts.default;
  1636. if (isFn(value)) {
  1637. value = value();
  1638. }
  1639. opts.type = parsePropType(key, opts.type);
  1640. properties[key] = {
  1641. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  1642. value: value,
  1643. observer: createObserver(key)
  1644. };
  1645. } else {
  1646. // content:String
  1647. var type = parsePropType(key, opts);
  1648. properties[key] = {
  1649. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  1650. observer: createObserver(key)
  1651. };
  1652. }
  1653. });
  1654. }
  1655. return properties;
  1656. }
  1657. function wrapper$1(event) {
  1658. // TODO 又得兼容 mpvue 的 mp 对象
  1659. try {
  1660. event.mp = JSON.parse(JSON.stringify(event));
  1661. } catch (e) {}
  1662. event.stopPropagation = noop;
  1663. event.preventDefault = noop;
  1664. event.target = event.target || {};
  1665. if (!hasOwn(event, 'detail')) {
  1666. event.detail = {};
  1667. }
  1668. if (hasOwn(event, 'markerId')) {
  1669. event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
  1670. event.detail.markerId = event.markerId;
  1671. }
  1672. if (isPlainObject(event.detail)) {
  1673. event.target = Object.assign({}, event.target, event.detail);
  1674. }
  1675. return event;
  1676. }
  1677. function getExtraValue(vm, dataPathsArray) {
  1678. var context = vm;
  1679. dataPathsArray.forEach(function (dataPathArray) {
  1680. var dataPath = dataPathArray[0];
  1681. var value = dataPathArray[2];
  1682. if (dataPath || typeof value !== 'undefined') {
  1683. // ['','',index,'disable']
  1684. var propPath = dataPathArray[1];
  1685. var valuePath = dataPathArray[3];
  1686. var vFor;
  1687. if (Number.isInteger(dataPath)) {
  1688. vFor = dataPath;
  1689. } else if (!dataPath) {
  1690. vFor = context;
  1691. } else if (typeof dataPath === 'string' && dataPath) {
  1692. if (dataPath.indexOf('#s#') === 0) {
  1693. vFor = dataPath.substr(3);
  1694. } else {
  1695. vFor = vm.__get_value(dataPath, context);
  1696. }
  1697. }
  1698. if (Number.isInteger(vFor)) {
  1699. context = value;
  1700. } else if (!propPath) {
  1701. context = vFor[value];
  1702. } else {
  1703. if (Array.isArray(vFor)) {
  1704. context = vFor.find(function (vForItem) {
  1705. return vm.__get_value(propPath, vForItem) === value;
  1706. });
  1707. } else if (isPlainObject(vFor)) {
  1708. context = Object.keys(vFor).find(function (vForKey) {
  1709. return vm.__get_value(propPath, vFor[vForKey]) === value;
  1710. });
  1711. } else {
  1712. console.error('v-for 暂不支持循环数据:', vFor);
  1713. }
  1714. }
  1715. if (valuePath) {
  1716. context = vm.__get_value(valuePath, context);
  1717. }
  1718. }
  1719. });
  1720. return context;
  1721. }
  1722. function processEventExtra(vm, extra, event, __args__) {
  1723. var extraObj = {};
  1724. if (Array.isArray(extra) && extra.length) {
  1725. /**
  1726. *[
  1727. * ['data.items', 'data.id', item.data.id],
  1728. * ['metas', 'id', meta.id]
  1729. *],
  1730. *[
  1731. * ['data.items', 'data.id', item.data.id],
  1732. * ['metas', 'id', meta.id]
  1733. *],
  1734. *'test'
  1735. */
  1736. extra.forEach(function (dataPath, index) {
  1737. if (typeof dataPath === 'string') {
  1738. if (!dataPath) {
  1739. // model,prop.sync
  1740. extraObj['$' + index] = vm;
  1741. } else {
  1742. if (dataPath === '$event') {
  1743. // $event
  1744. extraObj['$' + index] = event;
  1745. } else if (dataPath === 'arguments') {
  1746. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  1747. } else if (dataPath.indexOf('$event.') === 0) {
  1748. // $event.target.value
  1749. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1750. } else {
  1751. extraObj['$' + index] = vm.__get_value(dataPath);
  1752. }
  1753. }
  1754. } else {
  1755. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1756. }
  1757. });
  1758. }
  1759. return extraObj;
  1760. }
  1761. function getObjByArray(arr) {
  1762. var obj = {};
  1763. for (var i = 1; i < arr.length; i++) {
  1764. var element = arr[i];
  1765. obj[element[0]] = element[1];
  1766. }
  1767. return obj;
  1768. }
  1769. function processEventArgs(vm, event) {
  1770. var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1771. var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  1772. var isCustom = arguments.length > 4 ? arguments[4] : undefined;
  1773. var methodName = arguments.length > 5 ? arguments[5] : undefined;
  1774. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  1775. // fixed 用户直接触发 mpInstance.triggerEvent
  1776. var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
  1777. if (isCustom) {
  1778. // 自定义事件
  1779. isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
  1780. if (!args.length) {
  1781. // 无参数,直接传入 event 或 detail 数组
  1782. if (isCustomMPEvent) {
  1783. return [event];
  1784. }
  1785. return __args__;
  1786. }
  1787. }
  1788. var extraObj = processEventExtra(vm, extra, event, __args__);
  1789. var ret = [];
  1790. args.forEach(function (arg) {
  1791. if (arg === '$event') {
  1792. if (methodName === '__set_model' && !isCustom) {
  1793. // input v-model value
  1794. ret.push(event.target.value);
  1795. } else {
  1796. if (isCustom && !isCustomMPEvent) {
  1797. ret.push(__args__[0]);
  1798. } else {
  1799. // wxcomponent 组件或内置组件
  1800. ret.push(event);
  1801. }
  1802. }
  1803. } else {
  1804. if (Array.isArray(arg) && arg[0] === 'o') {
  1805. ret.push(getObjByArray(arg));
  1806. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  1807. ret.push(extraObj[arg]);
  1808. } else {
  1809. ret.push(arg);
  1810. }
  1811. }
  1812. });
  1813. return ret;
  1814. }
  1815. var ONCE = '~';
  1816. var CUSTOM = '^';
  1817. function isMatchEventType(eventType, optType) {
  1818. return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
  1819. }
  1820. function getContextVm(vm) {
  1821. var $parent = vm.$parent;
  1822. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  1823. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  1824. $parent = $parent.$parent;
  1825. }
  1826. return $parent && $parent.$parent;
  1827. }
  1828. function handleEvent(event) {
  1829. var _this2 = this;
  1830. event = wrapper$1(event);
  1831. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  1832. var dataset = (event.currentTarget || event.target).dataset;
  1833. if (!dataset) {
  1834. return console.warn('事件信息不存在');
  1835. }
  1836. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  1837. if (!eventOpts) {
  1838. return console.warn('事件信息不存在');
  1839. }
  1840. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  1841. var eventType = event.type;
  1842. var ret = [];
  1843. eventOpts.forEach(function (eventOpt) {
  1844. var type = eventOpt[0];
  1845. var eventsArray = eventOpt[1];
  1846. var isCustom = type.charAt(0) === CUSTOM;
  1847. type = isCustom ? type.slice(1) : type;
  1848. var isOnce = type.charAt(0) === ONCE;
  1849. type = isOnce ? type.slice(1) : type;
  1850. if (eventsArray && isMatchEventType(eventType, type)) {
  1851. eventsArray.forEach(function (eventArray) {
  1852. var methodName = eventArray[0];
  1853. if (methodName) {
  1854. var handlerCtx = _this2.$vm;
  1855. if (handlerCtx.$options.generic) {
  1856. // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  1857. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  1858. }
  1859. if (methodName === '$emit') {
  1860. handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
  1861. return;
  1862. }
  1863. var handler = handlerCtx[methodName];
  1864. if (!isFn(handler)) {
  1865. var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
  1866. var path = _this2.route || _this2.is;
  1867. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  1868. }
  1869. if (isOnce) {
  1870. if (handler.once) {
  1871. return;
  1872. }
  1873. handler.once = true;
  1874. }
  1875. var params = processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
  1876. params = Array.isArray(params) ? params : [];
  1877. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  1878. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  1879. // eslint-disable-next-line no-sparse-arrays
  1880. params = params.concat([,,,,,,,,,, event]);
  1881. }
  1882. ret.push(handler.apply(handlerCtx, params));
  1883. }
  1884. });
  1885. }
  1886. });
  1887. if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
  1888. return ret[0];
  1889. }
  1890. }
  1891. var eventChannels = {};
  1892. var eventChannelStack = [];
  1893. function getEventChannel(id) {
  1894. if (id) {
  1895. var eventChannel = eventChannels[id];
  1896. delete eventChannels[id];
  1897. return eventChannel;
  1898. }
  1899. return eventChannelStack.shift();
  1900. }
  1901. var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
  1902. function initEventChannel() {
  1903. _vue.default.prototype.getOpenerEventChannel = function () {
  1904. // 微信小程序使用自身getOpenerEventChannel
  1905. {
  1906. return this.$scope.getOpenerEventChannel();
  1907. }
  1908. };
  1909. var callHook = _vue.default.prototype.__call_hook;
  1910. _vue.default.prototype.__call_hook = function (hook, args) {
  1911. if (hook === 'onLoad' && args && args.__id__) {
  1912. this.__eventChannel__ = getEventChannel(args.__id__);
  1913. delete args.__id__;
  1914. }
  1915. return callHook.call(this, hook, args);
  1916. };
  1917. }
  1918. function initScopedSlotsParams() {
  1919. var center = {};
  1920. var parents = {};
  1921. _vue.default.prototype.$hasScopedSlotsParams = function (vueId) {
  1922. var has = center[vueId];
  1923. if (!has) {
  1924. parents[vueId] = this;
  1925. this.$on('hook:destroyed', function () {
  1926. delete parents[vueId];
  1927. });
  1928. }
  1929. return has;
  1930. };
  1931. _vue.default.prototype.$getScopedSlotsParams = function (vueId, name, key) {
  1932. var data = center[vueId];
  1933. if (data) {
  1934. var object = data[name] || {};
  1935. return key ? object[key] : object;
  1936. } else {
  1937. parents[vueId] = this;
  1938. this.$on('hook:destroyed', function () {
  1939. delete parents[vueId];
  1940. });
  1941. }
  1942. };
  1943. _vue.default.prototype.$setScopedSlotsParams = function (name, value) {
  1944. var vueIds = this.$options.propsData.vueId;
  1945. if (vueIds) {
  1946. var vueId = vueIds.split(',')[0];
  1947. var object = center[vueId] = center[vueId] || {};
  1948. object[name] = value;
  1949. if (parents[vueId]) {
  1950. parents[vueId].$forceUpdate();
  1951. }
  1952. }
  1953. };
  1954. _vue.default.mixin({
  1955. destroyed: function destroyed() {
  1956. var propsData = this.$options.propsData;
  1957. var vueId = propsData && propsData.vueId;
  1958. if (vueId) {
  1959. delete center[vueId];
  1960. delete parents[vueId];
  1961. }
  1962. }
  1963. });
  1964. }
  1965. function parseBaseApp(vm, _ref4) {
  1966. var mocks = _ref4.mocks,
  1967. initRefs = _ref4.initRefs;
  1968. initEventChannel();
  1969. {
  1970. initScopedSlotsParams();
  1971. }
  1972. if (vm.$options.store) {
  1973. _vue.default.prototype.$store = vm.$options.store;
  1974. }
  1975. uniIdMixin(_vue.default);
  1976. _vue.default.prototype.mpHost = "mp-weixin";
  1977. _vue.default.mixin({
  1978. beforeCreate: function beforeCreate() {
  1979. if (!this.$options.mpType) {
  1980. return;
  1981. }
  1982. this.mpType = this.$options.mpType;
  1983. this.$mp = (0, _defineProperty2.default)({
  1984. data: {}
  1985. }, this.mpType, this.$options.mpInstance);
  1986. this.$scope = this.$options.mpInstance;
  1987. delete this.$options.mpType;
  1988. delete this.$options.mpInstance;
  1989. if (this.mpType === 'page' && typeof getApp === 'function') {
  1990. // hack vue-i18n
  1991. var app = getApp();
  1992. if (app.$vm && app.$vm.$i18n) {
  1993. this._i18n = app.$vm.$i18n;
  1994. }
  1995. }
  1996. if (this.mpType !== 'app') {
  1997. initRefs(this);
  1998. initMocks(this, mocks);
  1999. }
  2000. }
  2001. });
  2002. var appOptions = {
  2003. onLaunch: function onLaunch(args) {
  2004. if (this.$vm) {
  2005. // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  2006. return;
  2007. }
  2008. {
  2009. if (wx.canIUse && !wx.canIUse('nextTick')) {
  2010. // 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  2011. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  2012. }
  2013. }
  2014. this.$vm = vm;
  2015. this.$vm.$mp = {
  2016. app: this
  2017. };
  2018. this.$vm.$scope = this;
  2019. // vm 上也挂载 globalData
  2020. this.$vm.globalData = this.globalData;
  2021. this.$vm._isMounted = true;
  2022. this.$vm.__call_hook('mounted', args);
  2023. this.$vm.__call_hook('onLaunch', args);
  2024. }
  2025. };
  2026. // 兼容旧版本 globalData
  2027. appOptions.globalData = vm.$options.globalData || {};
  2028. // 将 methods 中的方法挂在 getApp() 中
  2029. var methods = vm.$options.methods;
  2030. if (methods) {
  2031. Object.keys(methods).forEach(function (name) {
  2032. appOptions[name] = methods[name];
  2033. });
  2034. }
  2035. initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
  2036. initHooks(appOptions, hooks);
  2037. initUnknownHooks(appOptions, vm.$options);
  2038. return appOptions;
  2039. }
  2040. function parseApp(vm) {
  2041. return parseBaseApp(vm, {
  2042. mocks: mocks,
  2043. initRefs: initRefs
  2044. });
  2045. }
  2046. function createApp(vm) {
  2047. App(parseApp(vm));
  2048. return vm;
  2049. }
  2050. var encodeReserveRE = /[!'()*]/g;
  2051. var encodeReserveReplacer = function encodeReserveReplacer(c) {
  2052. return '%' + c.charCodeAt(0).toString(16);
  2053. };
  2054. var commaRE = /%2C/g;
  2055. // fixed encodeURIComponent which is more conformant to RFC3986:
  2056. // - escapes [!'()*]
  2057. // - preserve commas
  2058. var encode = function encode(str) {
  2059. return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
  2060. };
  2061. function stringifyQuery(obj) {
  2062. var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  2063. var res = obj ? Object.keys(obj).map(function (key) {
  2064. var val = obj[key];
  2065. if (val === undefined) {
  2066. return '';
  2067. }
  2068. if (val === null) {
  2069. return encodeStr(key);
  2070. }
  2071. if (Array.isArray(val)) {
  2072. var result = [];
  2073. val.forEach(function (val2) {
  2074. if (val2 === undefined) {
  2075. return;
  2076. }
  2077. if (val2 === null) {
  2078. result.push(encodeStr(key));
  2079. } else {
  2080. result.push(encodeStr(key) + '=' + encodeStr(val2));
  2081. }
  2082. });
  2083. return result.join('&');
  2084. }
  2085. return encodeStr(key) + '=' + encodeStr(val);
  2086. }).filter(function (x) {
  2087. return x.length > 0;
  2088. }).join('&') : null;
  2089. return res ? "?".concat(res) : '';
  2090. }
  2091. function parseBaseComponent(vueComponentOptions) {
  2092. var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  2093. isPage = _ref5.isPage,
  2094. initRelation = _ref5.initRelation;
  2095. var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
  2096. var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
  2097. _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
  2098. VueComponent = _initVueComponent2[0],
  2099. vueOptions = _initVueComponent2[1];
  2100. var options = _objectSpread({
  2101. multipleSlots: true,
  2102. addGlobalClass: true
  2103. }, vueOptions.options || {});
  2104. {
  2105. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  2106. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  2107. Object.assign(options, vueOptions['mp-weixin'].options);
  2108. }
  2109. }
  2110. var componentOptions = {
  2111. options: options,
  2112. data: initData(vueOptions, _vue.default.prototype),
  2113. behaviors: initBehaviors(vueOptions, initBehavior),
  2114. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  2115. lifetimes: {
  2116. attached: function attached() {
  2117. var properties = this.properties;
  2118. var options = {
  2119. mpType: isPage.call(this) ? 'page' : 'component',
  2120. mpInstance: this,
  2121. propsData: properties
  2122. };
  2123. initVueIds(properties.vueId, this);
  2124. // 处理父子关系
  2125. initRelation.call(this, {
  2126. vuePid: this._$vuePid,
  2127. vueOptions: options
  2128. });
  2129. // 初始化 vue 实例
  2130. this.$vm = new VueComponent(options);
  2131. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  2132. initSlots(this.$vm, properties.vueSlots);
  2133. // 触发首次 setData
  2134. this.$vm.$mount();
  2135. },
  2136. ready: function ready() {
  2137. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  2138. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  2139. if (this.$vm) {
  2140. this.$vm._isMounted = true;
  2141. this.$vm.__call_hook('mounted');
  2142. this.$vm.__call_hook('onReady');
  2143. }
  2144. },
  2145. detached: function detached() {
  2146. this.$vm && this.$vm.$destroy();
  2147. }
  2148. },
  2149. pageLifetimes: {
  2150. show: function show(args) {
  2151. this.$vm && this.$vm.__call_hook('onPageShow', args);
  2152. },
  2153. hide: function hide() {
  2154. this.$vm && this.$vm.__call_hook('onPageHide');
  2155. },
  2156. resize: function resize(size) {
  2157. this.$vm && this.$vm.__call_hook('onPageResize', size);
  2158. }
  2159. },
  2160. methods: {
  2161. __l: handleLink,
  2162. __e: handleEvent
  2163. }
  2164. };
  2165. // externalClasses
  2166. if (vueOptions.externalClasses) {
  2167. componentOptions.externalClasses = vueOptions.externalClasses;
  2168. }
  2169. if (Array.isArray(vueOptions.wxsCallMethods)) {
  2170. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  2171. componentOptions.methods[callMethod] = function (args) {
  2172. return this.$vm[callMethod](args);
  2173. };
  2174. });
  2175. }
  2176. if (needVueOptions) {
  2177. return [componentOptions, vueOptions, VueComponent];
  2178. }
  2179. if (isPage) {
  2180. return componentOptions;
  2181. }
  2182. return [componentOptions, VueComponent];
  2183. }
  2184. function parseComponent(vueComponentOptions, needVueOptions) {
  2185. return parseBaseComponent(vueComponentOptions, {
  2186. isPage: isPage,
  2187. initRelation: initRelation
  2188. }, needVueOptions);
  2189. }
  2190. var hooks$1 = ['onShow', 'onHide', 'onUnload'];
  2191. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  2192. function parseBasePage(vuePageOptions) {
  2193. var _parseComponent = parseComponent(vuePageOptions, true),
  2194. _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
  2195. pageOptions = _parseComponent2[0],
  2196. vueOptions = _parseComponent2[1];
  2197. initHooks(pageOptions.methods, hooks$1, vueOptions);
  2198. pageOptions.methods.onLoad = function (query) {
  2199. this.options = query;
  2200. var copyQuery = Object.assign({}, query);
  2201. delete copyQuery.__id__;
  2202. this.$page = {
  2203. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
  2204. };
  2205. this.$vm.$mp.query = query; // 兼容 mpvue
  2206. this.$vm.__call_hook('onLoad', query);
  2207. };
  2208. {
  2209. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  2210. }
  2211. return pageOptions;
  2212. }
  2213. function parsePage(vuePageOptions) {
  2214. return parseBasePage(vuePageOptions);
  2215. }
  2216. function createPage(vuePageOptions) {
  2217. {
  2218. return Component(parsePage(vuePageOptions));
  2219. }
  2220. }
  2221. function createComponent(vueOptions) {
  2222. {
  2223. return Component(parseComponent(vueOptions));
  2224. }
  2225. }
  2226. function createSubpackageApp(vm) {
  2227. var appOptions = parseApp(vm);
  2228. var app = getApp({
  2229. allowDefault: true
  2230. });
  2231. vm.$scope = app;
  2232. var globalData = app.globalData;
  2233. if (globalData) {
  2234. Object.keys(appOptions.globalData).forEach(function (name) {
  2235. if (!hasOwn(globalData, name)) {
  2236. globalData[name] = appOptions.globalData[name];
  2237. }
  2238. });
  2239. }
  2240. Object.keys(appOptions).forEach(function (name) {
  2241. if (!hasOwn(app, name)) {
  2242. app[name] = appOptions[name];
  2243. }
  2244. });
  2245. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2246. wx.onAppShow(function () {
  2247. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  2248. args[_key5] = arguments[_key5];
  2249. }
  2250. vm.__call_hook('onShow', args);
  2251. });
  2252. }
  2253. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2254. wx.onAppHide(function () {
  2255. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  2256. args[_key6] = arguments[_key6];
  2257. }
  2258. vm.__call_hook('onHide', args);
  2259. });
  2260. }
  2261. if (isFn(appOptions.onLaunch)) {
  2262. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2263. vm.__call_hook('onLaunch', args);
  2264. }
  2265. return vm;
  2266. }
  2267. function createPlugin(vm) {
  2268. var appOptions = parseApp(vm);
  2269. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2270. wx.onAppShow(function () {
  2271. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  2272. args[_key7] = arguments[_key7];
  2273. }
  2274. vm.__call_hook('onShow', args);
  2275. });
  2276. }
  2277. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2278. wx.onAppHide(function () {
  2279. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  2280. args[_key8] = arguments[_key8];
  2281. }
  2282. vm.__call_hook('onHide', args);
  2283. });
  2284. }
  2285. if (isFn(appOptions.onLaunch)) {
  2286. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2287. vm.__call_hook('onLaunch', args);
  2288. }
  2289. return vm;
  2290. }
  2291. todos.forEach(function (todoApi) {
  2292. protocols[todoApi] = false;
  2293. });
  2294. canIUses.forEach(function (canIUseApi) {
  2295. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  2296. if (!wx.canIUse(apiName)) {
  2297. protocols[canIUseApi] = false;
  2298. }
  2299. });
  2300. var uni = {};
  2301. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  2302. uni = new Proxy({}, {
  2303. get: function get(target, name) {
  2304. if (hasOwn(target, name)) {
  2305. return target[name];
  2306. }
  2307. if (baseApi[name]) {
  2308. return baseApi[name];
  2309. }
  2310. if (api[name]) {
  2311. return promisify(name, api[name]);
  2312. }
  2313. {
  2314. if (extraApi[name]) {
  2315. return promisify(name, extraApi[name]);
  2316. }
  2317. if (todoApis[name]) {
  2318. return promisify(name, todoApis[name]);
  2319. }
  2320. }
  2321. if (eventApi[name]) {
  2322. return eventApi[name];
  2323. }
  2324. return promisify(name, wrapper(name, wx[name]));
  2325. },
  2326. set: function set(target, name, value) {
  2327. target[name] = value;
  2328. return true;
  2329. }
  2330. });
  2331. } else {
  2332. Object.keys(baseApi).forEach(function (name) {
  2333. uni[name] = baseApi[name];
  2334. });
  2335. {
  2336. Object.keys(todoApis).forEach(function (name) {
  2337. uni[name] = promisify(name, todoApis[name]);
  2338. });
  2339. Object.keys(extraApi).forEach(function (name) {
  2340. uni[name] = promisify(name, todoApis[name]);
  2341. });
  2342. }
  2343. Object.keys(eventApi).forEach(function (name) {
  2344. uni[name] = eventApi[name];
  2345. });
  2346. Object.keys(api).forEach(function (name) {
  2347. uni[name] = promisify(name, api[name]);
  2348. });
  2349. Object.keys(wx).forEach(function (name) {
  2350. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  2351. uni[name] = promisify(name, wrapper(name, wx[name]));
  2352. }
  2353. });
  2354. }
  2355. wx.createApp = createApp;
  2356. wx.createPage = createPage;
  2357. wx.createComponent = createComponent;
  2358. wx.createSubpackageApp = createSubpackageApp;
  2359. wx.createPlugin = createPlugin;
  2360. var uni$1 = uni;
  2361. var _default = uni$1;
  2362. exports.default = _default;
  2363. /* 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)))
  2364. /***/ }),
  2365. /* 3 */
  2366. /*!***********************************!*\
  2367. !*** (webpack)/buildin/global.js ***!
  2368. \***********************************/
  2369. /*! no static exports found */
  2370. /***/ (function(module, exports) {
  2371. var g;
  2372. // This works in non-strict mode
  2373. g = (function() {
  2374. return this;
  2375. })();
  2376. try {
  2377. // This works if eval is allowed (see CSP)
  2378. g = g || new Function("return this")();
  2379. } catch (e) {
  2380. // This works if the window reference is available
  2381. if (typeof window === "object") g = window;
  2382. }
  2383. // g can still be undefined, but nothing to do about it...
  2384. // We return undefined, instead of nothing here, so it's
  2385. // easier to handle this case. if(!global) { ...}
  2386. module.exports = g;
  2387. /***/ }),
  2388. /* 4 */
  2389. /*!**********************************************************************!*\
  2390. !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  2391. \**********************************************************************/
  2392. /*! no static exports found */
  2393. /***/ (function(module, exports) {
  2394. function _interopRequireDefault(obj) {
  2395. return obj && obj.__esModule ? obj : {
  2396. "default": obj
  2397. };
  2398. }
  2399. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2400. /***/ }),
  2401. /* 5 */
  2402. /*!**************************************************************!*\
  2403. !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  2404. \**************************************************************/
  2405. /*! no static exports found */
  2406. /***/ (function(module, exports, __webpack_require__) {
  2407. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  2408. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 7);
  2409. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2410. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  2411. function _slicedToArray(arr, i) {
  2412. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
  2413. }
  2414. module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2415. /***/ }),
  2416. /* 6 */
  2417. /*!***************************************************************!*\
  2418. !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  2419. \***************************************************************/
  2420. /*! no static exports found */
  2421. /***/ (function(module, exports) {
  2422. function _arrayWithHoles(arr) {
  2423. if (Array.isArray(arr)) return arr;
  2424. }
  2425. module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2426. /***/ }),
  2427. /* 7 */
  2428. /*!*********************************************************************!*\
  2429. !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  2430. \*********************************************************************/
  2431. /*! no static exports found */
  2432. /***/ (function(module, exports) {
  2433. function _iterableToArrayLimit(arr, i) {
  2434. var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
  2435. if (null != _i) {
  2436. var _s,
  2437. _e,
  2438. _x,
  2439. _r,
  2440. _arr = [],
  2441. _n = !0,
  2442. _d = !1;
  2443. try {
  2444. if (_x = (_i = _i.call(arr)).next, 0 === i) {
  2445. if (Object(_i) !== _i) return;
  2446. _n = !1;
  2447. } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
  2448. ;
  2449. }
  2450. } catch (err) {
  2451. _d = !0, _e = err;
  2452. } finally {
  2453. try {
  2454. if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
  2455. } finally {
  2456. if (_d) throw _e;
  2457. }
  2458. }
  2459. return _arr;
  2460. }
  2461. }
  2462. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2463. /***/ }),
  2464. /* 8 */
  2465. /*!***************************************************************************!*\
  2466. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  2467. \***************************************************************************/
  2468. /*! no static exports found */
  2469. /***/ (function(module, exports, __webpack_require__) {
  2470. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2471. function _unsupportedIterableToArray(o, minLen) {
  2472. if (!o) return;
  2473. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  2474. var n = Object.prototype.toString.call(o).slice(8, -1);
  2475. if (n === "Object" && o.constructor) n = o.constructor.name;
  2476. if (n === "Map" || n === "Set") return Array.from(o);
  2477. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  2478. }
  2479. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2480. /***/ }),
  2481. /* 9 */
  2482. /*!*****************************************************************!*\
  2483. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  2484. \*****************************************************************/
  2485. /*! no static exports found */
  2486. /***/ (function(module, exports) {
  2487. function _arrayLikeToArray(arr, len) {
  2488. if (len == null || len > arr.length) len = arr.length;
  2489. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  2490. arr2[i] = arr[i];
  2491. }
  2492. return arr2;
  2493. }
  2494. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2495. /***/ }),
  2496. /* 10 */
  2497. /*!****************************************************************!*\
  2498. !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
  2499. \****************************************************************/
  2500. /*! no static exports found */
  2501. /***/ (function(module, exports) {
  2502. function _nonIterableRest() {
  2503. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2504. }
  2505. module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2506. /***/ }),
  2507. /* 11 */
  2508. /*!***************************************************************!*\
  2509. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  2510. \***************************************************************/
  2511. /*! no static exports found */
  2512. /***/ (function(module, exports, __webpack_require__) {
  2513. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  2514. function _defineProperty(obj, key, value) {
  2515. key = toPropertyKey(key);
  2516. if (key in obj) {
  2517. Object.defineProperty(obj, key, {
  2518. value: value,
  2519. enumerable: true,
  2520. configurable: true,
  2521. writable: true
  2522. });
  2523. } else {
  2524. obj[key] = value;
  2525. }
  2526. return obj;
  2527. }
  2528. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2529. /***/ }),
  2530. /* 12 */
  2531. /*!**************************************************************!*\
  2532. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  2533. \**************************************************************/
  2534. /*! no static exports found */
  2535. /***/ (function(module, exports, __webpack_require__) {
  2536. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2537. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
  2538. function _toPropertyKey(arg) {
  2539. var key = toPrimitive(arg, "string");
  2540. return _typeof(key) === "symbol" ? key : String(key);
  2541. }
  2542. module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2543. /***/ }),
  2544. /* 13 */
  2545. /*!*******************************************************!*\
  2546. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  2547. \*******************************************************/
  2548. /*! no static exports found */
  2549. /***/ (function(module, exports) {
  2550. function _typeof(obj) {
  2551. "@babel/helpers - typeof";
  2552. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
  2553. return typeof obj;
  2554. } : function (obj) {
  2555. return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  2556. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
  2557. }
  2558. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2559. /***/ }),
  2560. /* 14 */
  2561. /*!************************************************************!*\
  2562. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  2563. \************************************************************/
  2564. /*! no static exports found */
  2565. /***/ (function(module, exports, __webpack_require__) {
  2566. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2567. function _toPrimitive(input, hint) {
  2568. if (_typeof(input) !== "object" || input === null) return input;
  2569. var prim = input[Symbol.toPrimitive];
  2570. if (prim !== undefined) {
  2571. var res = prim.call(input, hint || "default");
  2572. if (_typeof(res) !== "object") return res;
  2573. throw new TypeError("@@toPrimitive must return a primitive value.");
  2574. }
  2575. return (hint === "string" ? String : Number)(input);
  2576. }
  2577. module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2578. /***/ }),
  2579. /* 15 */
  2580. /*!**********************************************************!*\
  2581. !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  2582. \**********************************************************/
  2583. /*! no static exports found */
  2584. /***/ (function(module, exports, __webpack_require__) {
  2585. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  2586. var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 17);
  2587. function _construct(Parent, args, Class) {
  2588. if (isNativeReflectConstruct()) {
  2589. module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
  2590. } else {
  2591. module.exports = _construct = function _construct(Parent, args, Class) {
  2592. var a = [null];
  2593. a.push.apply(a, args);
  2594. var Constructor = Function.bind.apply(Parent, a);
  2595. var instance = new Constructor();
  2596. if (Class) setPrototypeOf(instance, Class.prototype);
  2597. return instance;
  2598. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2599. }
  2600. return _construct.apply(null, arguments);
  2601. }
  2602. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2603. /***/ }),
  2604. /* 16 */
  2605. /*!***************************************************************!*\
  2606. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  2607. \***************************************************************/
  2608. /*! no static exports found */
  2609. /***/ (function(module, exports) {
  2610. function _setPrototypeOf(o, p) {
  2611. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  2612. o.__proto__ = p;
  2613. return o;
  2614. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2615. return _setPrototypeOf(o, p);
  2616. }
  2617. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2618. /***/ }),
  2619. /* 17 */
  2620. /*!*************************************************************************!*\
  2621. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  2622. \*************************************************************************/
  2623. /*! no static exports found */
  2624. /***/ (function(module, exports) {
  2625. function _isNativeReflectConstruct() {
  2626. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  2627. if (Reflect.construct.sham) return false;
  2628. if (typeof Proxy === "function") return true;
  2629. try {
  2630. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  2631. return true;
  2632. } catch (e) {
  2633. return false;
  2634. }
  2635. }
  2636. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2637. /***/ }),
  2638. /* 18 */
  2639. /*!******************************************************************!*\
  2640. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  2641. \******************************************************************/
  2642. /*! no static exports found */
  2643. /***/ (function(module, exports, __webpack_require__) {
  2644. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
  2645. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  2646. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2647. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
  2648. function _toConsumableArray(arr) {
  2649. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  2650. }
  2651. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2652. /***/ }),
  2653. /* 19 */
  2654. /*!******************************************************************!*\
  2655. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  2656. \******************************************************************/
  2657. /*! no static exports found */
  2658. /***/ (function(module, exports, __webpack_require__) {
  2659. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2660. function _arrayWithoutHoles(arr) {
  2661. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  2662. }
  2663. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2664. /***/ }),
  2665. /* 20 */
  2666. /*!****************************************************************!*\
  2667. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  2668. \****************************************************************/
  2669. /*! no static exports found */
  2670. /***/ (function(module, exports) {
  2671. function _iterableToArray(iter) {
  2672. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  2673. }
  2674. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2675. /***/ }),
  2676. /* 21 */
  2677. /*!******************************************************************!*\
  2678. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  2679. \******************************************************************/
  2680. /*! no static exports found */
  2681. /***/ (function(module, exports) {
  2682. function _nonIterableSpread() {
  2683. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2684. }
  2685. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2686. /***/ }),
  2687. /* 22 */
  2688. /*!*************************************************************!*\
  2689. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  2690. \*************************************************************/
  2691. /*! no static exports found */
  2692. /***/ (function(module, exports, __webpack_require__) {
  2693. "use strict";
  2694. /* WEBPACK VAR INJECTION */(function(uni, global) {
  2695. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  2696. Object.defineProperty(exports, "__esModule", {
  2697. value: true
  2698. });
  2699. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  2700. exports.compileI18nJsonStr = compileI18nJsonStr;
  2701. exports.hasI18nJson = hasI18nJson;
  2702. exports.initVueI18n = initVueI18n;
  2703. exports.isI18nStr = isI18nStr;
  2704. exports.isString = void 0;
  2705. exports.normalizeLocale = normalizeLocale;
  2706. exports.parseI18nJson = parseI18nJson;
  2707. exports.resolveLocale = resolveLocale;
  2708. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  2709. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  2710. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  2711. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  2712. var isArray = Array.isArray;
  2713. var isObject = function isObject(val) {
  2714. return val !== null && (0, _typeof2.default)(val) === 'object';
  2715. };
  2716. var defaultDelimiters = ['{', '}'];
  2717. var BaseFormatter = /*#__PURE__*/function () {
  2718. function BaseFormatter() {
  2719. (0, _classCallCheck2.default)(this, BaseFormatter);
  2720. this._caches = Object.create(null);
  2721. }
  2722. (0, _createClass2.default)(BaseFormatter, [{
  2723. key: "interpolate",
  2724. value: function interpolate(message, values) {
  2725. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  2726. if (!values) {
  2727. return [message];
  2728. }
  2729. var tokens = this._caches[message];
  2730. if (!tokens) {
  2731. tokens = parse(message, delimiters);
  2732. this._caches[message] = tokens;
  2733. }
  2734. return compile(tokens, values);
  2735. }
  2736. }]);
  2737. return BaseFormatter;
  2738. }();
  2739. exports.Formatter = BaseFormatter;
  2740. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  2741. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  2742. function parse(format, _ref) {
  2743. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  2744. startDelimiter = _ref2[0],
  2745. endDelimiter = _ref2[1];
  2746. var tokens = [];
  2747. var position = 0;
  2748. var text = '';
  2749. while (position < format.length) {
  2750. var char = format[position++];
  2751. if (char === startDelimiter) {
  2752. if (text) {
  2753. tokens.push({
  2754. type: 'text',
  2755. value: text
  2756. });
  2757. }
  2758. text = '';
  2759. var sub = '';
  2760. char = format[position++];
  2761. while (char !== undefined && char !== endDelimiter) {
  2762. sub += char;
  2763. char = format[position++];
  2764. }
  2765. var isClosed = char === endDelimiter;
  2766. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  2767. tokens.push({
  2768. value: sub,
  2769. type: type
  2770. });
  2771. }
  2772. // else if (char === '%') {
  2773. // // when found rails i18n syntax, skip text capture
  2774. // if (format[position] !== '{') {
  2775. // text += char
  2776. // }
  2777. // }
  2778. else {
  2779. text += char;
  2780. }
  2781. }
  2782. text && tokens.push({
  2783. type: 'text',
  2784. value: text
  2785. });
  2786. return tokens;
  2787. }
  2788. function compile(tokens, values) {
  2789. var compiled = [];
  2790. var index = 0;
  2791. var mode = isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  2792. if (mode === 'unknown') {
  2793. return compiled;
  2794. }
  2795. while (index < tokens.length) {
  2796. var token = tokens[index];
  2797. switch (token.type) {
  2798. case 'text':
  2799. compiled.push(token.value);
  2800. break;
  2801. case 'list':
  2802. compiled.push(values[parseInt(token.value, 10)]);
  2803. break;
  2804. case 'named':
  2805. if (mode === 'named') {
  2806. compiled.push(values[token.value]);
  2807. } else {
  2808. if (true) {
  2809. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  2810. }
  2811. }
  2812. break;
  2813. case 'unknown':
  2814. if (true) {
  2815. console.warn("Detect 'unknown' type of token!");
  2816. }
  2817. break;
  2818. }
  2819. index++;
  2820. }
  2821. return compiled;
  2822. }
  2823. var LOCALE_ZH_HANS = 'zh-Hans';
  2824. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  2825. var LOCALE_ZH_HANT = 'zh-Hant';
  2826. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  2827. var LOCALE_EN = 'en';
  2828. exports.LOCALE_EN = LOCALE_EN;
  2829. var LOCALE_FR = 'fr';
  2830. exports.LOCALE_FR = LOCALE_FR;
  2831. var LOCALE_ES = 'es';
  2832. exports.LOCALE_ES = LOCALE_ES;
  2833. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2834. var hasOwn = function hasOwn(val, key) {
  2835. return hasOwnProperty.call(val, key);
  2836. };
  2837. var defaultFormatter = new BaseFormatter();
  2838. function include(str, parts) {
  2839. return !!parts.find(function (part) {
  2840. return str.indexOf(part) !== -1;
  2841. });
  2842. }
  2843. function startsWith(str, parts) {
  2844. return parts.find(function (part) {
  2845. return str.indexOf(part) === 0;
  2846. });
  2847. }
  2848. function normalizeLocale(locale, messages) {
  2849. if (!locale) {
  2850. return;
  2851. }
  2852. locale = locale.trim().replace(/_/g, '-');
  2853. if (messages && messages[locale]) {
  2854. return locale;
  2855. }
  2856. locale = locale.toLowerCase();
  2857. if (locale.indexOf('zh') === 0) {
  2858. if (locale.indexOf('-hans') > -1) {
  2859. return LOCALE_ZH_HANS;
  2860. }
  2861. if (locale.indexOf('-hant') > -1) {
  2862. return LOCALE_ZH_HANT;
  2863. }
  2864. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  2865. return LOCALE_ZH_HANT;
  2866. }
  2867. return LOCALE_ZH_HANS;
  2868. }
  2869. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  2870. if (lang) {
  2871. return lang;
  2872. }
  2873. }
  2874. var I18n = /*#__PURE__*/function () {
  2875. function I18n(_ref3) {
  2876. var locale = _ref3.locale,
  2877. fallbackLocale = _ref3.fallbackLocale,
  2878. messages = _ref3.messages,
  2879. watcher = _ref3.watcher,
  2880. formater = _ref3.formater;
  2881. (0, _classCallCheck2.default)(this, I18n);
  2882. this.locale = LOCALE_EN;
  2883. this.fallbackLocale = LOCALE_EN;
  2884. this.message = {};
  2885. this.messages = {};
  2886. this.watchers = [];
  2887. if (fallbackLocale) {
  2888. this.fallbackLocale = fallbackLocale;
  2889. }
  2890. this.formater = formater || defaultFormatter;
  2891. this.messages = messages || {};
  2892. this.setLocale(locale || LOCALE_EN);
  2893. if (watcher) {
  2894. this.watchLocale(watcher);
  2895. }
  2896. }
  2897. (0, _createClass2.default)(I18n, [{
  2898. key: "setLocale",
  2899. value: function setLocale(locale) {
  2900. var _this = this;
  2901. var oldLocale = this.locale;
  2902. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  2903. if (!this.messages[this.locale]) {
  2904. // 可能初始化时不存在
  2905. this.messages[this.locale] = {};
  2906. }
  2907. this.message = this.messages[this.locale];
  2908. // 仅发生变化时,通知
  2909. if (oldLocale !== this.locale) {
  2910. this.watchers.forEach(function (watcher) {
  2911. watcher(_this.locale, oldLocale);
  2912. });
  2913. }
  2914. }
  2915. }, {
  2916. key: "getLocale",
  2917. value: function getLocale() {
  2918. return this.locale;
  2919. }
  2920. }, {
  2921. key: "watchLocale",
  2922. value: function watchLocale(fn) {
  2923. var _this2 = this;
  2924. var index = this.watchers.push(fn) - 1;
  2925. return function () {
  2926. _this2.watchers.splice(index, 1);
  2927. };
  2928. }
  2929. }, {
  2930. key: "add",
  2931. value: function add(locale, message) {
  2932. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  2933. var curMessages = this.messages[locale];
  2934. if (curMessages) {
  2935. if (override) {
  2936. Object.assign(curMessages, message);
  2937. } else {
  2938. Object.keys(message).forEach(function (key) {
  2939. if (!hasOwn(curMessages, key)) {
  2940. curMessages[key] = message[key];
  2941. }
  2942. });
  2943. }
  2944. } else {
  2945. this.messages[locale] = message;
  2946. }
  2947. }
  2948. }, {
  2949. key: "f",
  2950. value: function f(message, values, delimiters) {
  2951. return this.formater.interpolate(message, values, delimiters).join('');
  2952. }
  2953. }, {
  2954. key: "t",
  2955. value: function t(key, locale, values) {
  2956. var message = this.message;
  2957. if (typeof locale === 'string') {
  2958. locale = normalizeLocale(locale, this.messages);
  2959. locale && (message = this.messages[locale]);
  2960. } else {
  2961. values = locale;
  2962. }
  2963. if (!hasOwn(message, key)) {
  2964. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  2965. return key;
  2966. }
  2967. return this.formater.interpolate(message[key], values).join('');
  2968. }
  2969. }]);
  2970. return I18n;
  2971. }();
  2972. exports.I18n = I18n;
  2973. function watchAppLocale(appVm, i18n) {
  2974. // 需要保证 watch 的触发在组件渲染之前
  2975. if (appVm.$watchLocale) {
  2976. // vue2
  2977. appVm.$watchLocale(function (newLocale) {
  2978. i18n.setLocale(newLocale);
  2979. });
  2980. } else {
  2981. appVm.$watch(function () {
  2982. return appVm.$locale;
  2983. }, function (newLocale) {
  2984. i18n.setLocale(newLocale);
  2985. });
  2986. }
  2987. }
  2988. function getDefaultLocale() {
  2989. if (typeof uni !== 'undefined' && uni.getLocale) {
  2990. return uni.getLocale();
  2991. }
  2992. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  2993. if (typeof global !== 'undefined' && global.getLocale) {
  2994. return global.getLocale();
  2995. }
  2996. return LOCALE_EN;
  2997. }
  2998. function initVueI18n(locale) {
  2999. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3000. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  3001. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  3002. // 兼容旧版本入参
  3003. if (typeof locale !== 'string') {
  3004. var _ref4 = [messages, locale];
  3005. locale = _ref4[0];
  3006. messages = _ref4[1];
  3007. }
  3008. if (typeof locale !== 'string') {
  3009. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  3010. locale = getDefaultLocale();
  3011. }
  3012. if (typeof fallbackLocale !== 'string') {
  3013. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  3014. }
  3015. var i18n = new I18n({
  3016. locale: locale,
  3017. fallbackLocale: fallbackLocale,
  3018. messages: messages,
  3019. watcher: watcher
  3020. });
  3021. var _t = function t(key, values) {
  3022. if (typeof getApp !== 'function') {
  3023. // app view
  3024. /* eslint-disable no-func-assign */
  3025. _t = function t(key, values) {
  3026. return i18n.t(key, values);
  3027. };
  3028. } else {
  3029. var isWatchedAppLocale = false;
  3030. _t = function t(key, values) {
  3031. var appVm = getApp().$vm;
  3032. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  3033. // options: {
  3034. // type: Array,
  3035. // default () {
  3036. // return [{
  3037. // icon: 'shop',
  3038. // text: t("uni-goods-nav.options.shop"),
  3039. // }, {
  3040. // icon: 'cart',
  3041. // text: t("uni-goods-nav.options.cart")
  3042. // }]
  3043. // }
  3044. // },
  3045. if (appVm) {
  3046. // 触发响应式
  3047. appVm.$locale;
  3048. if (!isWatchedAppLocale) {
  3049. isWatchedAppLocale = true;
  3050. watchAppLocale(appVm, i18n);
  3051. }
  3052. }
  3053. return i18n.t(key, values);
  3054. };
  3055. }
  3056. return _t(key, values);
  3057. };
  3058. return {
  3059. i18n: i18n,
  3060. f: function f(message, values, delimiters) {
  3061. return i18n.f(message, values, delimiters);
  3062. },
  3063. t: function t(key, values) {
  3064. return _t(key, values);
  3065. },
  3066. add: function add(locale, message) {
  3067. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3068. return i18n.add(locale, message, override);
  3069. },
  3070. watch: function watch(fn) {
  3071. return i18n.watchLocale(fn);
  3072. },
  3073. getLocale: function getLocale() {
  3074. return i18n.getLocale();
  3075. },
  3076. setLocale: function setLocale(newLocale) {
  3077. return i18n.setLocale(newLocale);
  3078. }
  3079. };
  3080. }
  3081. var isString = function isString(val) {
  3082. return typeof val === 'string';
  3083. };
  3084. exports.isString = isString;
  3085. var formater;
  3086. function hasI18nJson(jsonObj, delimiters) {
  3087. if (!formater) {
  3088. formater = new BaseFormatter();
  3089. }
  3090. return walkJsonObj(jsonObj, function (jsonObj, key) {
  3091. var value = jsonObj[key];
  3092. if (isString(value)) {
  3093. if (isI18nStr(value, delimiters)) {
  3094. return true;
  3095. }
  3096. } else {
  3097. return hasI18nJson(value, delimiters);
  3098. }
  3099. });
  3100. }
  3101. function parseI18nJson(jsonObj, values, delimiters) {
  3102. if (!formater) {
  3103. formater = new BaseFormatter();
  3104. }
  3105. walkJsonObj(jsonObj, function (jsonObj, key) {
  3106. var value = jsonObj[key];
  3107. if (isString(value)) {
  3108. if (isI18nStr(value, delimiters)) {
  3109. jsonObj[key] = compileStr(value, values, delimiters);
  3110. }
  3111. } else {
  3112. parseI18nJson(value, values, delimiters);
  3113. }
  3114. });
  3115. return jsonObj;
  3116. }
  3117. function compileI18nJsonStr(jsonStr, _ref5) {
  3118. var locale = _ref5.locale,
  3119. locales = _ref5.locales,
  3120. delimiters = _ref5.delimiters;
  3121. if (!isI18nStr(jsonStr, delimiters)) {
  3122. return jsonStr;
  3123. }
  3124. if (!formater) {
  3125. formater = new BaseFormatter();
  3126. }
  3127. var localeValues = [];
  3128. Object.keys(locales).forEach(function (name) {
  3129. if (name !== locale) {
  3130. localeValues.push({
  3131. locale: name,
  3132. values: locales[name]
  3133. });
  3134. }
  3135. });
  3136. localeValues.unshift({
  3137. locale: locale,
  3138. values: locales[locale]
  3139. });
  3140. try {
  3141. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  3142. } catch (e) {}
  3143. return jsonStr;
  3144. }
  3145. function isI18nStr(value, delimiters) {
  3146. return value.indexOf(delimiters[0]) > -1;
  3147. }
  3148. function compileStr(value, values, delimiters) {
  3149. return formater.interpolate(value, values, delimiters).join('');
  3150. }
  3151. function compileValue(jsonObj, key, localeValues, delimiters) {
  3152. var value = jsonObj[key];
  3153. if (isString(value)) {
  3154. // 存在国际化
  3155. if (isI18nStr(value, delimiters)) {
  3156. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  3157. if (localeValues.length > 1) {
  3158. // 格式化国际化语言
  3159. var valueLocales = jsonObj[key + 'Locales'] = {};
  3160. localeValues.forEach(function (localValue) {
  3161. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  3162. });
  3163. }
  3164. }
  3165. } else {
  3166. compileJsonObj(value, localeValues, delimiters);
  3167. }
  3168. }
  3169. function compileJsonObj(jsonObj, localeValues, delimiters) {
  3170. walkJsonObj(jsonObj, function (jsonObj, key) {
  3171. compileValue(jsonObj, key, localeValues, delimiters);
  3172. });
  3173. return jsonObj;
  3174. }
  3175. function walkJsonObj(jsonObj, walk) {
  3176. if (isArray(jsonObj)) {
  3177. for (var i = 0; i < jsonObj.length; i++) {
  3178. if (walk(jsonObj, i)) {
  3179. return true;
  3180. }
  3181. }
  3182. } else if (isObject(jsonObj)) {
  3183. for (var key in jsonObj) {
  3184. if (walk(jsonObj, key)) {
  3185. return true;
  3186. }
  3187. }
  3188. }
  3189. return false;
  3190. }
  3191. function resolveLocale(locales) {
  3192. return function (locale) {
  3193. if (!locale) {
  3194. return locale;
  3195. }
  3196. locale = normalizeLocale(locale) || locale;
  3197. return resolveLocaleChain(locale).find(function (locale) {
  3198. return locales.indexOf(locale) > -1;
  3199. });
  3200. };
  3201. }
  3202. function resolveLocaleChain(locale) {
  3203. var chain = [];
  3204. var tokens = locale.split('-');
  3205. while (tokens.length) {
  3206. chain.push(tokens.join('-'));
  3207. tokens.pop();
  3208. }
  3209. return chain;
  3210. }
  3211. /* 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)))
  3212. /***/ }),
  3213. /* 23 */
  3214. /*!***************************************************************!*\
  3215. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  3216. \***************************************************************/
  3217. /*! no static exports found */
  3218. /***/ (function(module, exports) {
  3219. function _classCallCheck(instance, Constructor) {
  3220. if (!(instance instanceof Constructor)) {
  3221. throw new TypeError("Cannot call a class as a function");
  3222. }
  3223. }
  3224. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3225. /***/ }),
  3226. /* 24 */
  3227. /*!************************************************************!*\
  3228. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  3229. \************************************************************/
  3230. /*! no static exports found */
  3231. /***/ (function(module, exports, __webpack_require__) {
  3232. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  3233. function _defineProperties(target, props) {
  3234. for (var i = 0; i < props.length; i++) {
  3235. var descriptor = props[i];
  3236. descriptor.enumerable = descriptor.enumerable || false;
  3237. descriptor.configurable = true;
  3238. if ("value" in descriptor) descriptor.writable = true;
  3239. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  3240. }
  3241. }
  3242. function _createClass(Constructor, protoProps, staticProps) {
  3243. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  3244. if (staticProps) _defineProperties(Constructor, staticProps);
  3245. Object.defineProperty(Constructor, "prototype", {
  3246. writable: false
  3247. });
  3248. return Constructor;
  3249. }
  3250. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3251. /***/ }),
  3252. /* 25 */
  3253. /*!******************************************************************************************!*\
  3254. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  3255. \******************************************************************************************/
  3256. /*! exports provided: default */
  3257. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3258. "use strict";
  3259. __webpack_require__.r(__webpack_exports__);
  3260. /* WEBPACK VAR INJECTION */(function(global) {/*!
  3261. * Vue.js v2.6.11
  3262. * (c) 2014-2022 Evan You
  3263. * Released under the MIT License.
  3264. */
  3265. /* */
  3266. var emptyObject = Object.freeze({});
  3267. // These helpers produce better VM code in JS engines due to their
  3268. // explicitness and function inlining.
  3269. function isUndef (v) {
  3270. return v === undefined || v === null
  3271. }
  3272. function isDef (v) {
  3273. return v !== undefined && v !== null
  3274. }
  3275. function isTrue (v) {
  3276. return v === true
  3277. }
  3278. function isFalse (v) {
  3279. return v === false
  3280. }
  3281. /**
  3282. * Check if value is primitive.
  3283. */
  3284. function isPrimitive (value) {
  3285. return (
  3286. typeof value === 'string' ||
  3287. typeof value === 'number' ||
  3288. // $flow-disable-line
  3289. typeof value === 'symbol' ||
  3290. typeof value === 'boolean'
  3291. )
  3292. }
  3293. /**
  3294. * Quick object check - this is primarily used to tell
  3295. * Objects from primitive values when we know the value
  3296. * is a JSON-compliant type.
  3297. */
  3298. function isObject (obj) {
  3299. return obj !== null && typeof obj === 'object'
  3300. }
  3301. /**
  3302. * Get the raw type string of a value, e.g., [object Object].
  3303. */
  3304. var _toString = Object.prototype.toString;
  3305. function toRawType (value) {
  3306. return _toString.call(value).slice(8, -1)
  3307. }
  3308. /**
  3309. * Strict object type check. Only returns true
  3310. * for plain JavaScript objects.
  3311. */
  3312. function isPlainObject (obj) {
  3313. return _toString.call(obj) === '[object Object]'
  3314. }
  3315. function isRegExp (v) {
  3316. return _toString.call(v) === '[object RegExp]'
  3317. }
  3318. /**
  3319. * Check if val is a valid array index.
  3320. */
  3321. function isValidArrayIndex (val) {
  3322. var n = parseFloat(String(val));
  3323. return n >= 0 && Math.floor(n) === n && isFinite(val)
  3324. }
  3325. function isPromise (val) {
  3326. return (
  3327. isDef(val) &&
  3328. typeof val.then === 'function' &&
  3329. typeof val.catch === 'function'
  3330. )
  3331. }
  3332. /**
  3333. * Convert a value to a string that is actually rendered.
  3334. */
  3335. function toString (val) {
  3336. return val == null
  3337. ? ''
  3338. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  3339. ? JSON.stringify(val, null, 2)
  3340. : String(val)
  3341. }
  3342. /**
  3343. * Convert an input value to a number for persistence.
  3344. * If the conversion fails, return original string.
  3345. */
  3346. function toNumber (val) {
  3347. var n = parseFloat(val);
  3348. return isNaN(n) ? val : n
  3349. }
  3350. /**
  3351. * Make a map and return a function for checking if a key
  3352. * is in that map.
  3353. */
  3354. function makeMap (
  3355. str,
  3356. expectsLowerCase
  3357. ) {
  3358. var map = Object.create(null);
  3359. var list = str.split(',');
  3360. for (var i = 0; i < list.length; i++) {
  3361. map[list[i]] = true;
  3362. }
  3363. return expectsLowerCase
  3364. ? function (val) { return map[val.toLowerCase()]; }
  3365. : function (val) { return map[val]; }
  3366. }
  3367. /**
  3368. * Check if a tag is a built-in tag.
  3369. */
  3370. var isBuiltInTag = makeMap('slot,component', true);
  3371. /**
  3372. * Check if an attribute is a reserved attribute.
  3373. */
  3374. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  3375. /**
  3376. * Remove an item from an array.
  3377. */
  3378. function remove (arr, item) {
  3379. if (arr.length) {
  3380. var index = arr.indexOf(item);
  3381. if (index > -1) {
  3382. return arr.splice(index, 1)
  3383. }
  3384. }
  3385. }
  3386. /**
  3387. * Check whether an object has the property.
  3388. */
  3389. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3390. function hasOwn (obj, key) {
  3391. return hasOwnProperty.call(obj, key)
  3392. }
  3393. /**
  3394. * Create a cached version of a pure function.
  3395. */
  3396. function cached (fn) {
  3397. var cache = Object.create(null);
  3398. return (function cachedFn (str) {
  3399. var hit = cache[str];
  3400. return hit || (cache[str] = fn(str))
  3401. })
  3402. }
  3403. /**
  3404. * Camelize a hyphen-delimited string.
  3405. */
  3406. var camelizeRE = /-(\w)/g;
  3407. var camelize = cached(function (str) {
  3408. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  3409. });
  3410. /**
  3411. * Capitalize a string.
  3412. */
  3413. var capitalize = cached(function (str) {
  3414. return str.charAt(0).toUpperCase() + str.slice(1)
  3415. });
  3416. /**
  3417. * Hyphenate a camelCase string.
  3418. */
  3419. var hyphenateRE = /\B([A-Z])/g;
  3420. var hyphenate = cached(function (str) {
  3421. return str.replace(hyphenateRE, '-$1').toLowerCase()
  3422. });
  3423. /**
  3424. * Simple bind polyfill for environments that do not support it,
  3425. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  3426. * since native bind is now performant enough in most browsers.
  3427. * But removing it would mean breaking code that was able to run in
  3428. * PhantomJS 1.x, so this must be kept for backward compatibility.
  3429. */
  3430. /* istanbul ignore next */
  3431. function polyfillBind (fn, ctx) {
  3432. function boundFn (a) {
  3433. var l = arguments.length;
  3434. return l
  3435. ? l > 1
  3436. ? fn.apply(ctx, arguments)
  3437. : fn.call(ctx, a)
  3438. : fn.call(ctx)
  3439. }
  3440. boundFn._length = fn.length;
  3441. return boundFn
  3442. }
  3443. function nativeBind (fn, ctx) {
  3444. return fn.bind(ctx)
  3445. }
  3446. var bind = Function.prototype.bind
  3447. ? nativeBind
  3448. : polyfillBind;
  3449. /**
  3450. * Convert an Array-like object to a real Array.
  3451. */
  3452. function toArray (list, start) {
  3453. start = start || 0;
  3454. var i = list.length - start;
  3455. var ret = new Array(i);
  3456. while (i--) {
  3457. ret[i] = list[i + start];
  3458. }
  3459. return ret
  3460. }
  3461. /**
  3462. * Mix properties into target object.
  3463. */
  3464. function extend (to, _from) {
  3465. for (var key in _from) {
  3466. to[key] = _from[key];
  3467. }
  3468. return to
  3469. }
  3470. /**
  3471. * Merge an Array of Objects into a single Object.
  3472. */
  3473. function toObject (arr) {
  3474. var res = {};
  3475. for (var i = 0; i < arr.length; i++) {
  3476. if (arr[i]) {
  3477. extend(res, arr[i]);
  3478. }
  3479. }
  3480. return res
  3481. }
  3482. /* eslint-disable no-unused-vars */
  3483. /**
  3484. * Perform no operation.
  3485. * Stubbing args to make Flow happy without leaving useless transpiled code
  3486. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  3487. */
  3488. function noop (a, b, c) {}
  3489. /**
  3490. * Always return false.
  3491. */
  3492. var no = function (a, b, c) { return false; };
  3493. /* eslint-enable no-unused-vars */
  3494. /**
  3495. * Return the same value.
  3496. */
  3497. var identity = function (_) { return _; };
  3498. /**
  3499. * Check if two values are loosely equal - that is,
  3500. * if they are plain objects, do they have the same shape?
  3501. */
  3502. function looseEqual (a, b) {
  3503. if (a === b) { return true }
  3504. var isObjectA = isObject(a);
  3505. var isObjectB = isObject(b);
  3506. if (isObjectA && isObjectB) {
  3507. try {
  3508. var isArrayA = Array.isArray(a);
  3509. var isArrayB = Array.isArray(b);
  3510. if (isArrayA && isArrayB) {
  3511. return a.length === b.length && a.every(function (e, i) {
  3512. return looseEqual(e, b[i])
  3513. })
  3514. } else if (a instanceof Date && b instanceof Date) {
  3515. return a.getTime() === b.getTime()
  3516. } else if (!isArrayA && !isArrayB) {
  3517. var keysA = Object.keys(a);
  3518. var keysB = Object.keys(b);
  3519. return keysA.length === keysB.length && keysA.every(function (key) {
  3520. return looseEqual(a[key], b[key])
  3521. })
  3522. } else {
  3523. /* istanbul ignore next */
  3524. return false
  3525. }
  3526. } catch (e) {
  3527. /* istanbul ignore next */
  3528. return false
  3529. }
  3530. } else if (!isObjectA && !isObjectB) {
  3531. return String(a) === String(b)
  3532. } else {
  3533. return false
  3534. }
  3535. }
  3536. /**
  3537. * Return the first index at which a loosely equal value can be
  3538. * found in the array (if value is a plain object, the array must
  3539. * contain an object of the same shape), or -1 if it is not present.
  3540. */
  3541. function looseIndexOf (arr, val) {
  3542. for (var i = 0; i < arr.length; i++) {
  3543. if (looseEqual(arr[i], val)) { return i }
  3544. }
  3545. return -1
  3546. }
  3547. /**
  3548. * Ensure a function is called only once.
  3549. */
  3550. function once (fn) {
  3551. var called = false;
  3552. return function () {
  3553. if (!called) {
  3554. called = true;
  3555. fn.apply(this, arguments);
  3556. }
  3557. }
  3558. }
  3559. var ASSET_TYPES = [
  3560. 'component',
  3561. 'directive',
  3562. 'filter'
  3563. ];
  3564. var LIFECYCLE_HOOKS = [
  3565. 'beforeCreate',
  3566. 'created',
  3567. 'beforeMount',
  3568. 'mounted',
  3569. 'beforeUpdate',
  3570. 'updated',
  3571. 'beforeDestroy',
  3572. 'destroyed',
  3573. 'activated',
  3574. 'deactivated',
  3575. 'errorCaptured',
  3576. 'serverPrefetch'
  3577. ];
  3578. /* */
  3579. var config = ({
  3580. /**
  3581. * Option merge strategies (used in core/util/options)
  3582. */
  3583. // $flow-disable-line
  3584. optionMergeStrategies: Object.create(null),
  3585. /**
  3586. * Whether to suppress warnings.
  3587. */
  3588. silent: false,
  3589. /**
  3590. * Show production mode tip message on boot?
  3591. */
  3592. productionTip: "development" !== 'production',
  3593. /**
  3594. * Whether to enable devtools
  3595. */
  3596. devtools: "development" !== 'production',
  3597. /**
  3598. * Whether to record perf
  3599. */
  3600. performance: false,
  3601. /**
  3602. * Error handler for watcher errors
  3603. */
  3604. errorHandler: null,
  3605. /**
  3606. * Warn handler for watcher warns
  3607. */
  3608. warnHandler: null,
  3609. /**
  3610. * Ignore certain custom elements
  3611. */
  3612. ignoredElements: [],
  3613. /**
  3614. * Custom user key aliases for v-on
  3615. */
  3616. // $flow-disable-line
  3617. keyCodes: Object.create(null),
  3618. /**
  3619. * Check if a tag is reserved so that it cannot be registered as a
  3620. * component. This is platform-dependent and may be overwritten.
  3621. */
  3622. isReservedTag: no,
  3623. /**
  3624. * Check if an attribute is reserved so that it cannot be used as a component
  3625. * prop. This is platform-dependent and may be overwritten.
  3626. */
  3627. isReservedAttr: no,
  3628. /**
  3629. * Check if a tag is an unknown element.
  3630. * Platform-dependent.
  3631. */
  3632. isUnknownElement: no,
  3633. /**
  3634. * Get the namespace of an element
  3635. */
  3636. getTagNamespace: noop,
  3637. /**
  3638. * Parse the real tag name for the specific platform.
  3639. */
  3640. parsePlatformTagName: identity,
  3641. /**
  3642. * Check if an attribute must be bound using property, e.g. value
  3643. * Platform-dependent.
  3644. */
  3645. mustUseProp: no,
  3646. /**
  3647. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  3648. * This will significantly reduce performance if set to false.
  3649. */
  3650. async: true,
  3651. /**
  3652. * Exposed for legacy reasons
  3653. */
  3654. _lifecycleHooks: LIFECYCLE_HOOKS
  3655. });
  3656. /* */
  3657. /**
  3658. * unicode letters used for parsing html tags, component names and property paths.
  3659. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  3660. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  3661. */
  3662. 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/;
  3663. /**
  3664. * Check if a string starts with $ or _
  3665. */
  3666. function isReserved (str) {
  3667. var c = (str + '').charCodeAt(0);
  3668. return c === 0x24 || c === 0x5F
  3669. }
  3670. /**
  3671. * Define a property.
  3672. */
  3673. function def (obj, key, val, enumerable) {
  3674. Object.defineProperty(obj, key, {
  3675. value: val,
  3676. enumerable: !!enumerable,
  3677. writable: true,
  3678. configurable: true
  3679. });
  3680. }
  3681. /**
  3682. * Parse simple path.
  3683. */
  3684. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  3685. function parsePath (path) {
  3686. if (bailRE.test(path)) {
  3687. return
  3688. }
  3689. var segments = path.split('.');
  3690. return function (obj) {
  3691. for (var i = 0; i < segments.length; i++) {
  3692. if (!obj) { return }
  3693. obj = obj[segments[i]];
  3694. }
  3695. return obj
  3696. }
  3697. }
  3698. /* */
  3699. // can we use __proto__?
  3700. var hasProto = '__proto__' in {};
  3701. // Browser environment sniffing
  3702. var inBrowser = typeof window !== 'undefined';
  3703. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  3704. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  3705. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  3706. var isIE = UA && /msie|trident/.test(UA);
  3707. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  3708. var isEdge = UA && UA.indexOf('edge/') > 0;
  3709. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  3710. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  3711. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  3712. var isPhantomJS = UA && /phantomjs/.test(UA);
  3713. var isFF = UA && UA.match(/firefox\/(\d+)/);
  3714. // Firefox has a "watch" function on Object.prototype...
  3715. var nativeWatch = ({}).watch;
  3716. if (inBrowser) {
  3717. try {
  3718. var opts = {};
  3719. Object.defineProperty(opts, 'passive', ({
  3720. get: function get () {
  3721. }
  3722. })); // https://github.com/facebook/flow/issues/285
  3723. window.addEventListener('test-passive', null, opts);
  3724. } catch (e) {}
  3725. }
  3726. // this needs to be lazy-evaled because vue may be required before
  3727. // vue-server-renderer can set VUE_ENV
  3728. var _isServer;
  3729. var isServerRendering = function () {
  3730. if (_isServer === undefined) {
  3731. /* istanbul ignore if */
  3732. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  3733. // detect presence of vue-server-renderer and avoid
  3734. // Webpack shimming the process
  3735. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  3736. } else {
  3737. _isServer = false;
  3738. }
  3739. }
  3740. return _isServer
  3741. };
  3742. // detect devtools
  3743. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  3744. /* istanbul ignore next */
  3745. function isNative (Ctor) {
  3746. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  3747. }
  3748. var hasSymbol =
  3749. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  3750. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  3751. var _Set;
  3752. /* istanbul ignore if */ // $flow-disable-line
  3753. if (typeof Set !== 'undefined' && isNative(Set)) {
  3754. // use native Set when available.
  3755. _Set = Set;
  3756. } else {
  3757. // a non-standard Set polyfill that only works with primitive keys.
  3758. _Set = /*@__PURE__*/(function () {
  3759. function Set () {
  3760. this.set = Object.create(null);
  3761. }
  3762. Set.prototype.has = function has (key) {
  3763. return this.set[key] === true
  3764. };
  3765. Set.prototype.add = function add (key) {
  3766. this.set[key] = true;
  3767. };
  3768. Set.prototype.clear = function clear () {
  3769. this.set = Object.create(null);
  3770. };
  3771. return Set;
  3772. }());
  3773. }
  3774. /* */
  3775. var warn = noop;
  3776. var tip = noop;
  3777. var generateComponentTrace = (noop); // work around flow check
  3778. var formatComponentName = (noop);
  3779. if (true) {
  3780. var hasConsole = typeof console !== 'undefined';
  3781. var classifyRE = /(?:^|[-_])(\w)/g;
  3782. var classify = function (str) { return str
  3783. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  3784. .replace(/[-_]/g, ''); };
  3785. warn = function (msg, vm) {
  3786. var trace = vm ? generateComponentTrace(vm) : '';
  3787. if (config.warnHandler) {
  3788. config.warnHandler.call(null, msg, vm, trace);
  3789. } else if (hasConsole && (!config.silent)) {
  3790. console.error(("[Vue warn]: " + msg + trace));
  3791. }
  3792. };
  3793. tip = function (msg, vm) {
  3794. if (hasConsole && (!config.silent)) {
  3795. console.warn("[Vue tip]: " + msg + (
  3796. vm ? generateComponentTrace(vm) : ''
  3797. ));
  3798. }
  3799. };
  3800. formatComponentName = function (vm, includeFile) {
  3801. if (vm.$root === vm) {
  3802. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  3803. return ('') + vm.$options.__file
  3804. }
  3805. return '<Root>'
  3806. }
  3807. var options = typeof vm === 'function' && vm.cid != null
  3808. ? vm.options
  3809. : vm._isVue
  3810. ? vm.$options || vm.constructor.options
  3811. : vm;
  3812. var name = options.name || options._componentTag;
  3813. var file = options.__file;
  3814. if (!name && file) {
  3815. var match = file.match(/([^/\\]+)\.vue$/);
  3816. name = match && match[1];
  3817. }
  3818. return (
  3819. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  3820. (file && includeFile !== false ? (" at " + file) : '')
  3821. )
  3822. };
  3823. var repeat = function (str, n) {
  3824. var res = '';
  3825. while (n) {
  3826. if (n % 2 === 1) { res += str; }
  3827. if (n > 1) { str += str; }
  3828. n >>= 1;
  3829. }
  3830. return res
  3831. };
  3832. generateComponentTrace = function (vm) {
  3833. if (vm._isVue && vm.$parent) {
  3834. var tree = [];
  3835. var currentRecursiveSequence = 0;
  3836. while (vm && vm.$options.name !== 'PageBody') {
  3837. if (tree.length > 0) {
  3838. var last = tree[tree.length - 1];
  3839. if (last.constructor === vm.constructor) {
  3840. currentRecursiveSequence++;
  3841. vm = vm.$parent;
  3842. continue
  3843. } else if (currentRecursiveSequence > 0) {
  3844. tree[tree.length - 1] = [last, currentRecursiveSequence];
  3845. currentRecursiveSequence = 0;
  3846. }
  3847. }
  3848. !vm.$options.isReserved && tree.push(vm);
  3849. vm = vm.$parent;
  3850. }
  3851. return '\n\nfound in\n\n' + tree
  3852. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  3853. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  3854. : formatComponentName(vm))); })
  3855. .join('\n')
  3856. } else {
  3857. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  3858. }
  3859. };
  3860. }
  3861. /* */
  3862. var uid = 0;
  3863. /**
  3864. * A dep is an observable that can have multiple
  3865. * directives subscribing to it.
  3866. */
  3867. var Dep = function Dep () {
  3868. this.id = uid++;
  3869. this.subs = [];
  3870. };
  3871. Dep.prototype.addSub = function addSub (sub) {
  3872. this.subs.push(sub);
  3873. };
  3874. Dep.prototype.removeSub = function removeSub (sub) {
  3875. remove(this.subs, sub);
  3876. };
  3877. Dep.prototype.depend = function depend () {
  3878. if (Dep.SharedObject.target) {
  3879. Dep.SharedObject.target.addDep(this);
  3880. }
  3881. };
  3882. Dep.prototype.notify = function notify () {
  3883. // stabilize the subscriber list first
  3884. var subs = this.subs.slice();
  3885. if ( true && !config.async) {
  3886. // subs aren't sorted in scheduler if not running async
  3887. // we need to sort them now to make sure they fire in correct
  3888. // order
  3889. subs.sort(function (a, b) { return a.id - b.id; });
  3890. }
  3891. for (var i = 0, l = subs.length; i < l; i++) {
  3892. subs[i].update();
  3893. }
  3894. };
  3895. // The current target watcher being evaluated.
  3896. // This is globally unique because only one watcher
  3897. // can be evaluated at a time.
  3898. // fixed by xxxxxx (nvue shared vuex)
  3899. /* eslint-disable no-undef */
  3900. Dep.SharedObject = {};
  3901. Dep.SharedObject.target = null;
  3902. Dep.SharedObject.targetStack = [];
  3903. function pushTarget (target) {
  3904. Dep.SharedObject.targetStack.push(target);
  3905. Dep.SharedObject.target = target;
  3906. Dep.target = target;
  3907. }
  3908. function popTarget () {
  3909. Dep.SharedObject.targetStack.pop();
  3910. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  3911. Dep.target = Dep.SharedObject.target;
  3912. }
  3913. /* */
  3914. var VNode = function VNode (
  3915. tag,
  3916. data,
  3917. children,
  3918. text,
  3919. elm,
  3920. context,
  3921. componentOptions,
  3922. asyncFactory
  3923. ) {
  3924. this.tag = tag;
  3925. this.data = data;
  3926. this.children = children;
  3927. this.text = text;
  3928. this.elm = elm;
  3929. this.ns = undefined;
  3930. this.context = context;
  3931. this.fnContext = undefined;
  3932. this.fnOptions = undefined;
  3933. this.fnScopeId = undefined;
  3934. this.key = data && data.key;
  3935. this.componentOptions = componentOptions;
  3936. this.componentInstance = undefined;
  3937. this.parent = undefined;
  3938. this.raw = false;
  3939. this.isStatic = false;
  3940. this.isRootInsert = true;
  3941. this.isComment = false;
  3942. this.isCloned = false;
  3943. this.isOnce = false;
  3944. this.asyncFactory = asyncFactory;
  3945. this.asyncMeta = undefined;
  3946. this.isAsyncPlaceholder = false;
  3947. };
  3948. var prototypeAccessors = { child: { configurable: true } };
  3949. // DEPRECATED: alias for componentInstance for backwards compat.
  3950. /* istanbul ignore next */
  3951. prototypeAccessors.child.get = function () {
  3952. return this.componentInstance
  3953. };
  3954. Object.defineProperties( VNode.prototype, prototypeAccessors );
  3955. var createEmptyVNode = function (text) {
  3956. if ( text === void 0 ) text = '';
  3957. var node = new VNode();
  3958. node.text = text;
  3959. node.isComment = true;
  3960. return node
  3961. };
  3962. function createTextVNode (val) {
  3963. return new VNode(undefined, undefined, undefined, String(val))
  3964. }
  3965. // optimized shallow clone
  3966. // used for static nodes and slot nodes because they may be reused across
  3967. // multiple renders, cloning them avoids errors when DOM manipulations rely
  3968. // on their elm reference.
  3969. function cloneVNode (vnode) {
  3970. var cloned = new VNode(
  3971. vnode.tag,
  3972. vnode.data,
  3973. // #7975
  3974. // clone children array to avoid mutating original in case of cloning
  3975. // a child.
  3976. vnode.children && vnode.children.slice(),
  3977. vnode.text,
  3978. vnode.elm,
  3979. vnode.context,
  3980. vnode.componentOptions,
  3981. vnode.asyncFactory
  3982. );
  3983. cloned.ns = vnode.ns;
  3984. cloned.isStatic = vnode.isStatic;
  3985. cloned.key = vnode.key;
  3986. cloned.isComment = vnode.isComment;
  3987. cloned.fnContext = vnode.fnContext;
  3988. cloned.fnOptions = vnode.fnOptions;
  3989. cloned.fnScopeId = vnode.fnScopeId;
  3990. cloned.asyncMeta = vnode.asyncMeta;
  3991. cloned.isCloned = true;
  3992. return cloned
  3993. }
  3994. /*
  3995. * not type checking this file because flow doesn't play well with
  3996. * dynamically accessing methods on Array prototype
  3997. */
  3998. var arrayProto = Array.prototype;
  3999. var arrayMethods = Object.create(arrayProto);
  4000. var methodsToPatch = [
  4001. 'push',
  4002. 'pop',
  4003. 'shift',
  4004. 'unshift',
  4005. 'splice',
  4006. 'sort',
  4007. 'reverse'
  4008. ];
  4009. /**
  4010. * Intercept mutating methods and emit events
  4011. */
  4012. methodsToPatch.forEach(function (method) {
  4013. // cache original method
  4014. var original = arrayProto[method];
  4015. def(arrayMethods, method, function mutator () {
  4016. var args = [], len = arguments.length;
  4017. while ( len-- ) args[ len ] = arguments[ len ];
  4018. var result = original.apply(this, args);
  4019. var ob = this.__ob__;
  4020. var inserted;
  4021. switch (method) {
  4022. case 'push':
  4023. case 'unshift':
  4024. inserted = args;
  4025. break
  4026. case 'splice':
  4027. inserted = args.slice(2);
  4028. break
  4029. }
  4030. if (inserted) { ob.observeArray(inserted); }
  4031. // notify change
  4032. ob.dep.notify();
  4033. return result
  4034. });
  4035. });
  4036. /* */
  4037. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  4038. /**
  4039. * In some cases we may want to disable observation inside a component's
  4040. * update computation.
  4041. */
  4042. var shouldObserve = true;
  4043. function toggleObserving (value) {
  4044. shouldObserve = value;
  4045. }
  4046. /**
  4047. * Observer class that is attached to each observed
  4048. * object. Once attached, the observer converts the target
  4049. * object's property keys into getter/setters that
  4050. * collect dependencies and dispatch updates.
  4051. */
  4052. var Observer = function Observer (value) {
  4053. this.value = value;
  4054. this.dep = new Dep();
  4055. this.vmCount = 0;
  4056. def(value, '__ob__', this);
  4057. if (Array.isArray(value)) {
  4058. if (hasProto) {
  4059. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  4060. if(value.push !== value.__proto__.push){
  4061. copyAugment(value, arrayMethods, arrayKeys);
  4062. } else {
  4063. protoAugment(value, arrayMethods);
  4064. }
  4065. }
  4066. } else {
  4067. copyAugment(value, arrayMethods, arrayKeys);
  4068. }
  4069. this.observeArray(value);
  4070. } else {
  4071. this.walk(value);
  4072. }
  4073. };
  4074. /**
  4075. * Walk through all properties and convert them into
  4076. * getter/setters. This method should only be called when
  4077. * value type is Object.
  4078. */
  4079. Observer.prototype.walk = function walk (obj) {
  4080. var keys = Object.keys(obj);
  4081. for (var i = 0; i < keys.length; i++) {
  4082. defineReactive$$1(obj, keys[i]);
  4083. }
  4084. };
  4085. /**
  4086. * Observe a list of Array items.
  4087. */
  4088. Observer.prototype.observeArray = function observeArray (items) {
  4089. for (var i = 0, l = items.length; i < l; i++) {
  4090. observe(items[i]);
  4091. }
  4092. };
  4093. // helpers
  4094. /**
  4095. * Augment a target Object or Array by intercepting
  4096. * the prototype chain using __proto__
  4097. */
  4098. function protoAugment (target, src) {
  4099. /* eslint-disable no-proto */
  4100. target.__proto__ = src;
  4101. /* eslint-enable no-proto */
  4102. }
  4103. /**
  4104. * Augment a target Object or Array by defining
  4105. * hidden properties.
  4106. */
  4107. /* istanbul ignore next */
  4108. function copyAugment (target, src, keys) {
  4109. for (var i = 0, l = keys.length; i < l; i++) {
  4110. var key = keys[i];
  4111. def(target, key, src[key]);
  4112. }
  4113. }
  4114. /**
  4115. * Attempt to create an observer instance for a value,
  4116. * returns the new observer if successfully observed,
  4117. * or the existing observer if the value already has one.
  4118. */
  4119. function observe (value, asRootData) {
  4120. if (!isObject(value) || value instanceof VNode) {
  4121. return
  4122. }
  4123. var ob;
  4124. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  4125. ob = value.__ob__;
  4126. } else if (
  4127. shouldObserve &&
  4128. !isServerRendering() &&
  4129. (Array.isArray(value) || isPlainObject(value)) &&
  4130. Object.isExtensible(value) &&
  4131. !value._isVue &&
  4132. !value.__v_isMPComponent
  4133. ) {
  4134. ob = new Observer(value);
  4135. }
  4136. if (asRootData && ob) {
  4137. ob.vmCount++;
  4138. }
  4139. return ob
  4140. }
  4141. /**
  4142. * Define a reactive property on an Object.
  4143. */
  4144. function defineReactive$$1 (
  4145. obj,
  4146. key,
  4147. val,
  4148. customSetter,
  4149. shallow
  4150. ) {
  4151. var dep = new Dep();
  4152. var property = Object.getOwnPropertyDescriptor(obj, key);
  4153. if (property && property.configurable === false) {
  4154. return
  4155. }
  4156. // cater for pre-defined getter/setters
  4157. var getter = property && property.get;
  4158. var setter = property && property.set;
  4159. if ((!getter || setter) && arguments.length === 2) {
  4160. val = obj[key];
  4161. }
  4162. var childOb = !shallow && observe(val);
  4163. Object.defineProperty(obj, key, {
  4164. enumerable: true,
  4165. configurable: true,
  4166. get: function reactiveGetter () {
  4167. var value = getter ? getter.call(obj) : val;
  4168. if (Dep.SharedObject.target) { // fixed by xxxxxx
  4169. dep.depend();
  4170. if (childOb) {
  4171. childOb.dep.depend();
  4172. if (Array.isArray(value)) {
  4173. dependArray(value);
  4174. }
  4175. }
  4176. }
  4177. return value
  4178. },
  4179. set: function reactiveSetter (newVal) {
  4180. var value = getter ? getter.call(obj) : val;
  4181. /* eslint-disable no-self-compare */
  4182. if (newVal === value || (newVal !== newVal && value !== value)) {
  4183. return
  4184. }
  4185. /* eslint-enable no-self-compare */
  4186. if ( true && customSetter) {
  4187. customSetter();
  4188. }
  4189. // #7981: for accessor properties without setter
  4190. if (getter && !setter) { return }
  4191. if (setter) {
  4192. setter.call(obj, newVal);
  4193. } else {
  4194. val = newVal;
  4195. }
  4196. childOb = !shallow && observe(newVal);
  4197. dep.notify();
  4198. }
  4199. });
  4200. }
  4201. /**
  4202. * Set a property on an object. Adds the new property and
  4203. * triggers change notification if the property doesn't
  4204. * already exist.
  4205. */
  4206. function set (target, key, val) {
  4207. if ( true &&
  4208. (isUndef(target) || isPrimitive(target))
  4209. ) {
  4210. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  4211. }
  4212. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4213. target.length = Math.max(target.length, key);
  4214. target.splice(key, 1, val);
  4215. return val
  4216. }
  4217. if (key in target && !(key in Object.prototype)) {
  4218. target[key] = val;
  4219. return val
  4220. }
  4221. var ob = (target).__ob__;
  4222. if (target._isVue || (ob && ob.vmCount)) {
  4223. true && warn(
  4224. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  4225. 'at runtime - declare it upfront in the data option.'
  4226. );
  4227. return val
  4228. }
  4229. if (!ob) {
  4230. target[key] = val;
  4231. return val
  4232. }
  4233. defineReactive$$1(ob.value, key, val);
  4234. ob.dep.notify();
  4235. return val
  4236. }
  4237. /**
  4238. * Delete a property and trigger change if necessary.
  4239. */
  4240. function del (target, key) {
  4241. if ( true &&
  4242. (isUndef(target) || isPrimitive(target))
  4243. ) {
  4244. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  4245. }
  4246. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4247. target.splice(key, 1);
  4248. return
  4249. }
  4250. var ob = (target).__ob__;
  4251. if (target._isVue || (ob && ob.vmCount)) {
  4252. true && warn(
  4253. 'Avoid deleting properties on a Vue instance or its root $data ' +
  4254. '- just set it to null.'
  4255. );
  4256. return
  4257. }
  4258. if (!hasOwn(target, key)) {
  4259. return
  4260. }
  4261. delete target[key];
  4262. if (!ob) {
  4263. return
  4264. }
  4265. ob.dep.notify();
  4266. }
  4267. /**
  4268. * Collect dependencies on array elements when the array is touched, since
  4269. * we cannot intercept array element access like property getters.
  4270. */
  4271. function dependArray (value) {
  4272. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  4273. e = value[i];
  4274. e && e.__ob__ && e.__ob__.dep.depend();
  4275. if (Array.isArray(e)) {
  4276. dependArray(e);
  4277. }
  4278. }
  4279. }
  4280. /* */
  4281. /**
  4282. * Option overwriting strategies are functions that handle
  4283. * how to merge a parent option value and a child option
  4284. * value into the final value.
  4285. */
  4286. var strats = config.optionMergeStrategies;
  4287. /**
  4288. * Options with restrictions
  4289. */
  4290. if (true) {
  4291. strats.el = strats.propsData = function (parent, child, vm, key) {
  4292. if (!vm) {
  4293. warn(
  4294. "option \"" + key + "\" can only be used during instance " +
  4295. 'creation with the `new` keyword.'
  4296. );
  4297. }
  4298. return defaultStrat(parent, child)
  4299. };
  4300. }
  4301. /**
  4302. * Helper that recursively merges two data objects together.
  4303. */
  4304. function mergeData (to, from) {
  4305. if (!from) { return to }
  4306. var key, toVal, fromVal;
  4307. var keys = hasSymbol
  4308. ? Reflect.ownKeys(from)
  4309. : Object.keys(from);
  4310. for (var i = 0; i < keys.length; i++) {
  4311. key = keys[i];
  4312. // in case the object is already observed...
  4313. if (key === '__ob__') { continue }
  4314. toVal = to[key];
  4315. fromVal = from[key];
  4316. if (!hasOwn(to, key)) {
  4317. set(to, key, fromVal);
  4318. } else if (
  4319. toVal !== fromVal &&
  4320. isPlainObject(toVal) &&
  4321. isPlainObject(fromVal)
  4322. ) {
  4323. mergeData(toVal, fromVal);
  4324. }
  4325. }
  4326. return to
  4327. }
  4328. /**
  4329. * Data
  4330. */
  4331. function mergeDataOrFn (
  4332. parentVal,
  4333. childVal,
  4334. vm
  4335. ) {
  4336. if (!vm) {
  4337. // in a Vue.extend merge, both should be functions
  4338. if (!childVal) {
  4339. return parentVal
  4340. }
  4341. if (!parentVal) {
  4342. return childVal
  4343. }
  4344. // when parentVal & childVal are both present,
  4345. // we need to return a function that returns the
  4346. // merged result of both functions... no need to
  4347. // check if parentVal is a function here because
  4348. // it has to be a function to pass previous merges.
  4349. return function mergedDataFn () {
  4350. return mergeData(
  4351. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  4352. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  4353. )
  4354. }
  4355. } else {
  4356. return function mergedInstanceDataFn () {
  4357. // instance merge
  4358. var instanceData = typeof childVal === 'function'
  4359. ? childVal.call(vm, vm)
  4360. : childVal;
  4361. var defaultData = typeof parentVal === 'function'
  4362. ? parentVal.call(vm, vm)
  4363. : parentVal;
  4364. if (instanceData) {
  4365. return mergeData(instanceData, defaultData)
  4366. } else {
  4367. return defaultData
  4368. }
  4369. }
  4370. }
  4371. }
  4372. strats.data = function (
  4373. parentVal,
  4374. childVal,
  4375. vm
  4376. ) {
  4377. if (!vm) {
  4378. if (childVal && typeof childVal !== 'function') {
  4379. true && warn(
  4380. 'The "data" option should be a function ' +
  4381. 'that returns a per-instance value in component ' +
  4382. 'definitions.',
  4383. vm
  4384. );
  4385. return parentVal
  4386. }
  4387. return mergeDataOrFn(parentVal, childVal)
  4388. }
  4389. return mergeDataOrFn(parentVal, childVal, vm)
  4390. };
  4391. /**
  4392. * Hooks and props are merged as arrays.
  4393. */
  4394. function mergeHook (
  4395. parentVal,
  4396. childVal
  4397. ) {
  4398. var res = childVal
  4399. ? parentVal
  4400. ? parentVal.concat(childVal)
  4401. : Array.isArray(childVal)
  4402. ? childVal
  4403. : [childVal]
  4404. : parentVal;
  4405. return res
  4406. ? dedupeHooks(res)
  4407. : res
  4408. }
  4409. function dedupeHooks (hooks) {
  4410. var res = [];
  4411. for (var i = 0; i < hooks.length; i++) {
  4412. if (res.indexOf(hooks[i]) === -1) {
  4413. res.push(hooks[i]);
  4414. }
  4415. }
  4416. return res
  4417. }
  4418. LIFECYCLE_HOOKS.forEach(function (hook) {
  4419. strats[hook] = mergeHook;
  4420. });
  4421. /**
  4422. * Assets
  4423. *
  4424. * When a vm is present (instance creation), we need to do
  4425. * a three-way merge between constructor options, instance
  4426. * options and parent options.
  4427. */
  4428. function mergeAssets (
  4429. parentVal,
  4430. childVal,
  4431. vm,
  4432. key
  4433. ) {
  4434. var res = Object.create(parentVal || null);
  4435. if (childVal) {
  4436. true && assertObjectType(key, childVal, vm);
  4437. return extend(res, childVal)
  4438. } else {
  4439. return res
  4440. }
  4441. }
  4442. ASSET_TYPES.forEach(function (type) {
  4443. strats[type + 's'] = mergeAssets;
  4444. });
  4445. /**
  4446. * Watchers.
  4447. *
  4448. * Watchers hashes should not overwrite one
  4449. * another, so we merge them as arrays.
  4450. */
  4451. strats.watch = function (
  4452. parentVal,
  4453. childVal,
  4454. vm,
  4455. key
  4456. ) {
  4457. // work around Firefox's Object.prototype.watch...
  4458. if (parentVal === nativeWatch) { parentVal = undefined; }
  4459. if (childVal === nativeWatch) { childVal = undefined; }
  4460. /* istanbul ignore if */
  4461. if (!childVal) { return Object.create(parentVal || null) }
  4462. if (true) {
  4463. assertObjectType(key, childVal, vm);
  4464. }
  4465. if (!parentVal) { return childVal }
  4466. var ret = {};
  4467. extend(ret, parentVal);
  4468. for (var key$1 in childVal) {
  4469. var parent = ret[key$1];
  4470. var child = childVal[key$1];
  4471. if (parent && !Array.isArray(parent)) {
  4472. parent = [parent];
  4473. }
  4474. ret[key$1] = parent
  4475. ? parent.concat(child)
  4476. : Array.isArray(child) ? child : [child];
  4477. }
  4478. return ret
  4479. };
  4480. /**
  4481. * Other object hashes.
  4482. */
  4483. strats.props =
  4484. strats.methods =
  4485. strats.inject =
  4486. strats.computed = function (
  4487. parentVal,
  4488. childVal,
  4489. vm,
  4490. key
  4491. ) {
  4492. if (childVal && "development" !== 'production') {
  4493. assertObjectType(key, childVal, vm);
  4494. }
  4495. if (!parentVal) { return childVal }
  4496. var ret = Object.create(null);
  4497. extend(ret, parentVal);
  4498. if (childVal) { extend(ret, childVal); }
  4499. return ret
  4500. };
  4501. strats.provide = mergeDataOrFn;
  4502. /**
  4503. * Default strategy.
  4504. */
  4505. var defaultStrat = function (parentVal, childVal) {
  4506. return childVal === undefined
  4507. ? parentVal
  4508. : childVal
  4509. };
  4510. /**
  4511. * Validate component names
  4512. */
  4513. function checkComponents (options) {
  4514. for (var key in options.components) {
  4515. validateComponentName(key);
  4516. }
  4517. }
  4518. function validateComponentName (name) {
  4519. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  4520. warn(
  4521. 'Invalid component name: "' + name + '". Component names ' +
  4522. 'should conform to valid custom element name in html5 specification.'
  4523. );
  4524. }
  4525. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  4526. warn(
  4527. 'Do not use built-in or reserved HTML elements as component ' +
  4528. 'id: ' + name
  4529. );
  4530. }
  4531. }
  4532. /**
  4533. * Ensure all props option syntax are normalized into the
  4534. * Object-based format.
  4535. */
  4536. function normalizeProps (options, vm) {
  4537. var props = options.props;
  4538. if (!props) { return }
  4539. var res = {};
  4540. var i, val, name;
  4541. if (Array.isArray(props)) {
  4542. i = props.length;
  4543. while (i--) {
  4544. val = props[i];
  4545. if (typeof val === 'string') {
  4546. name = camelize(val);
  4547. res[name] = { type: null };
  4548. } else if (true) {
  4549. warn('props must be strings when using array syntax.');
  4550. }
  4551. }
  4552. } else if (isPlainObject(props)) {
  4553. for (var key in props) {
  4554. val = props[key];
  4555. name = camelize(key);
  4556. res[name] = isPlainObject(val)
  4557. ? val
  4558. : { type: val };
  4559. }
  4560. } else if (true) {
  4561. warn(
  4562. "Invalid value for option \"props\": expected an Array or an Object, " +
  4563. "but got " + (toRawType(props)) + ".",
  4564. vm
  4565. );
  4566. }
  4567. options.props = res;
  4568. }
  4569. /**
  4570. * Normalize all injections into Object-based format
  4571. */
  4572. function normalizeInject (options, vm) {
  4573. var inject = options.inject;
  4574. if (!inject) { return }
  4575. var normalized = options.inject = {};
  4576. if (Array.isArray(inject)) {
  4577. for (var i = 0; i < inject.length; i++) {
  4578. normalized[inject[i]] = { from: inject[i] };
  4579. }
  4580. } else if (isPlainObject(inject)) {
  4581. for (var key in inject) {
  4582. var val = inject[key];
  4583. normalized[key] = isPlainObject(val)
  4584. ? extend({ from: key }, val)
  4585. : { from: val };
  4586. }
  4587. } else if (true) {
  4588. warn(
  4589. "Invalid value for option \"inject\": expected an Array or an Object, " +
  4590. "but got " + (toRawType(inject)) + ".",
  4591. vm
  4592. );
  4593. }
  4594. }
  4595. /**
  4596. * Normalize raw function directives into object format.
  4597. */
  4598. function normalizeDirectives (options) {
  4599. var dirs = options.directives;
  4600. if (dirs) {
  4601. for (var key in dirs) {
  4602. var def$$1 = dirs[key];
  4603. if (typeof def$$1 === 'function') {
  4604. dirs[key] = { bind: def$$1, update: def$$1 };
  4605. }
  4606. }
  4607. }
  4608. }
  4609. function assertObjectType (name, value, vm) {
  4610. if (!isPlainObject(value)) {
  4611. warn(
  4612. "Invalid value for option \"" + name + "\": expected an Object, " +
  4613. "but got " + (toRawType(value)) + ".",
  4614. vm
  4615. );
  4616. }
  4617. }
  4618. /**
  4619. * Merge two option objects into a new one.
  4620. * Core utility used in both instantiation and inheritance.
  4621. */
  4622. function mergeOptions (
  4623. parent,
  4624. child,
  4625. vm
  4626. ) {
  4627. if (true) {
  4628. checkComponents(child);
  4629. }
  4630. if (typeof child === 'function') {
  4631. child = child.options;
  4632. }
  4633. normalizeProps(child, vm);
  4634. normalizeInject(child, vm);
  4635. normalizeDirectives(child);
  4636. // Apply extends and mixins on the child options,
  4637. // but only if it is a raw options object that isn't
  4638. // the result of another mergeOptions call.
  4639. // Only merged options has the _base property.
  4640. if (!child._base) {
  4641. if (child.extends) {
  4642. parent = mergeOptions(parent, child.extends, vm);
  4643. }
  4644. if (child.mixins) {
  4645. for (var i = 0, l = child.mixins.length; i < l; i++) {
  4646. parent = mergeOptions(parent, child.mixins[i], vm);
  4647. }
  4648. }
  4649. }
  4650. var options = {};
  4651. var key;
  4652. for (key in parent) {
  4653. mergeField(key);
  4654. }
  4655. for (key in child) {
  4656. if (!hasOwn(parent, key)) {
  4657. mergeField(key);
  4658. }
  4659. }
  4660. function mergeField (key) {
  4661. var strat = strats[key] || defaultStrat;
  4662. options[key] = strat(parent[key], child[key], vm, key);
  4663. }
  4664. return options
  4665. }
  4666. /**
  4667. * Resolve an asset.
  4668. * This function is used because child instances need access
  4669. * to assets defined in its ancestor chain.
  4670. */
  4671. function resolveAsset (
  4672. options,
  4673. type,
  4674. id,
  4675. warnMissing
  4676. ) {
  4677. /* istanbul ignore if */
  4678. if (typeof id !== 'string') {
  4679. return
  4680. }
  4681. var assets = options[type];
  4682. // check local registration variations first
  4683. if (hasOwn(assets, id)) { return assets[id] }
  4684. var camelizedId = camelize(id);
  4685. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  4686. var PascalCaseId = capitalize(camelizedId);
  4687. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  4688. // fallback to prototype chain
  4689. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  4690. if ( true && warnMissing && !res) {
  4691. warn(
  4692. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  4693. options
  4694. );
  4695. }
  4696. return res
  4697. }
  4698. /* */
  4699. function validateProp (
  4700. key,
  4701. propOptions,
  4702. propsData,
  4703. vm
  4704. ) {
  4705. var prop = propOptions[key];
  4706. var absent = !hasOwn(propsData, key);
  4707. var value = propsData[key];
  4708. // boolean casting
  4709. var booleanIndex = getTypeIndex(Boolean, prop.type);
  4710. if (booleanIndex > -1) {
  4711. if (absent && !hasOwn(prop, 'default')) {
  4712. value = false;
  4713. } else if (value === '' || value === hyphenate(key)) {
  4714. // only cast empty string / same name to boolean if
  4715. // boolean has higher priority
  4716. var stringIndex = getTypeIndex(String, prop.type);
  4717. if (stringIndex < 0 || booleanIndex < stringIndex) {
  4718. value = true;
  4719. }
  4720. }
  4721. }
  4722. // check default value
  4723. if (value === undefined) {
  4724. value = getPropDefaultValue(vm, prop, key);
  4725. // since the default value is a fresh copy,
  4726. // make sure to observe it.
  4727. var prevShouldObserve = shouldObserve;
  4728. toggleObserving(true);
  4729. observe(value);
  4730. toggleObserving(prevShouldObserve);
  4731. }
  4732. if (
  4733. true
  4734. ) {
  4735. assertProp(prop, key, value, vm, absent);
  4736. }
  4737. return value
  4738. }
  4739. /**
  4740. * Get the default value of a prop.
  4741. */
  4742. function getPropDefaultValue (vm, prop, key) {
  4743. // no default, return undefined
  4744. if (!hasOwn(prop, 'default')) {
  4745. return undefined
  4746. }
  4747. var def = prop.default;
  4748. // warn against non-factory defaults for Object & Array
  4749. if ( true && isObject(def)) {
  4750. warn(
  4751. 'Invalid default value for prop "' + key + '": ' +
  4752. 'Props with type Object/Array must use a factory function ' +
  4753. 'to return the default value.',
  4754. vm
  4755. );
  4756. }
  4757. // the raw prop value was also undefined from previous render,
  4758. // return previous default value to avoid unnecessary watcher trigger
  4759. if (vm && vm.$options.propsData &&
  4760. vm.$options.propsData[key] === undefined &&
  4761. vm._props[key] !== undefined
  4762. ) {
  4763. return vm._props[key]
  4764. }
  4765. // call factory function for non-Function types
  4766. // a value is Function if its prototype is function even across different execution context
  4767. return typeof def === 'function' && getType(prop.type) !== 'Function'
  4768. ? def.call(vm)
  4769. : def
  4770. }
  4771. /**
  4772. * Assert whether a prop is valid.
  4773. */
  4774. function assertProp (
  4775. prop,
  4776. name,
  4777. value,
  4778. vm,
  4779. absent
  4780. ) {
  4781. if (prop.required && absent) {
  4782. warn(
  4783. 'Missing required prop: "' + name + '"',
  4784. vm
  4785. );
  4786. return
  4787. }
  4788. if (value == null && !prop.required) {
  4789. return
  4790. }
  4791. var type = prop.type;
  4792. var valid = !type || type === true;
  4793. var expectedTypes = [];
  4794. if (type) {
  4795. if (!Array.isArray(type)) {
  4796. type = [type];
  4797. }
  4798. for (var i = 0; i < type.length && !valid; i++) {
  4799. var assertedType = assertType(value, type[i]);
  4800. expectedTypes.push(assertedType.expectedType || '');
  4801. valid = assertedType.valid;
  4802. }
  4803. }
  4804. if (!valid) {
  4805. warn(
  4806. getInvalidTypeMessage(name, value, expectedTypes),
  4807. vm
  4808. );
  4809. return
  4810. }
  4811. var validator = prop.validator;
  4812. if (validator) {
  4813. if (!validator(value)) {
  4814. warn(
  4815. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  4816. vm
  4817. );
  4818. }
  4819. }
  4820. }
  4821. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  4822. function assertType (value, type) {
  4823. var valid;
  4824. var expectedType = getType(type);
  4825. if (simpleCheckRE.test(expectedType)) {
  4826. var t = typeof value;
  4827. valid = t === expectedType.toLowerCase();
  4828. // for primitive wrapper objects
  4829. if (!valid && t === 'object') {
  4830. valid = value instanceof type;
  4831. }
  4832. } else if (expectedType === 'Object') {
  4833. valid = isPlainObject(value);
  4834. } else if (expectedType === 'Array') {
  4835. valid = Array.isArray(value);
  4836. } else {
  4837. valid = value instanceof type;
  4838. }
  4839. return {
  4840. valid: valid,
  4841. expectedType: expectedType
  4842. }
  4843. }
  4844. /**
  4845. * Use function string name to check built-in types,
  4846. * because a simple equality check will fail when running
  4847. * across different vms / iframes.
  4848. */
  4849. function getType (fn) {
  4850. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  4851. return match ? match[1] : ''
  4852. }
  4853. function isSameType (a, b) {
  4854. return getType(a) === getType(b)
  4855. }
  4856. function getTypeIndex (type, expectedTypes) {
  4857. if (!Array.isArray(expectedTypes)) {
  4858. return isSameType(expectedTypes, type) ? 0 : -1
  4859. }
  4860. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  4861. if (isSameType(expectedTypes[i], type)) {
  4862. return i
  4863. }
  4864. }
  4865. return -1
  4866. }
  4867. function getInvalidTypeMessage (name, value, expectedTypes) {
  4868. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  4869. " Expected " + (expectedTypes.map(capitalize).join(', '));
  4870. var expectedType = expectedTypes[0];
  4871. var receivedType = toRawType(value);
  4872. var expectedValue = styleValue(value, expectedType);
  4873. var receivedValue = styleValue(value, receivedType);
  4874. // check if we need to specify expected value
  4875. if (expectedTypes.length === 1 &&
  4876. isExplicable(expectedType) &&
  4877. !isBoolean(expectedType, receivedType)) {
  4878. message += " with value " + expectedValue;
  4879. }
  4880. message += ", got " + receivedType + " ";
  4881. // check if we need to specify received value
  4882. if (isExplicable(receivedType)) {
  4883. message += "with value " + receivedValue + ".";
  4884. }
  4885. return message
  4886. }
  4887. function styleValue (value, type) {
  4888. if (type === 'String') {
  4889. return ("\"" + value + "\"")
  4890. } else if (type === 'Number') {
  4891. return ("" + (Number(value)))
  4892. } else {
  4893. return ("" + value)
  4894. }
  4895. }
  4896. function isExplicable (value) {
  4897. var explicitTypes = ['string', 'number', 'boolean'];
  4898. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  4899. }
  4900. function isBoolean () {
  4901. var args = [], len = arguments.length;
  4902. while ( len-- ) args[ len ] = arguments[ len ];
  4903. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  4904. }
  4905. /* */
  4906. function handleError (err, vm, info) {
  4907. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  4908. // See: https://github.com/vuejs/vuex/issues/1505
  4909. pushTarget();
  4910. try {
  4911. if (vm) {
  4912. var cur = vm;
  4913. while ((cur = cur.$parent)) {
  4914. var hooks = cur.$options.errorCaptured;
  4915. if (hooks) {
  4916. for (var i = 0; i < hooks.length; i++) {
  4917. try {
  4918. var capture = hooks[i].call(cur, err, vm, info) === false;
  4919. if (capture) { return }
  4920. } catch (e) {
  4921. globalHandleError(e, cur, 'errorCaptured hook');
  4922. }
  4923. }
  4924. }
  4925. }
  4926. }
  4927. globalHandleError(err, vm, info);
  4928. } finally {
  4929. popTarget();
  4930. }
  4931. }
  4932. function invokeWithErrorHandling (
  4933. handler,
  4934. context,
  4935. args,
  4936. vm,
  4937. info
  4938. ) {
  4939. var res;
  4940. try {
  4941. res = args ? handler.apply(context, args) : handler.call(context);
  4942. if (res && !res._isVue && isPromise(res) && !res._handled) {
  4943. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  4944. // issue #9511
  4945. // avoid catch triggering multiple times when nested calls
  4946. res._handled = true;
  4947. }
  4948. } catch (e) {
  4949. handleError(e, vm, info);
  4950. }
  4951. return res
  4952. }
  4953. function globalHandleError (err, vm, info) {
  4954. if (config.errorHandler) {
  4955. try {
  4956. return config.errorHandler.call(null, err, vm, info)
  4957. } catch (e) {
  4958. // if the user intentionally throws the original error in the handler,
  4959. // do not log it twice
  4960. if (e !== err) {
  4961. logError(e, null, 'config.errorHandler');
  4962. }
  4963. }
  4964. }
  4965. logError(err, vm, info);
  4966. }
  4967. function logError (err, vm, info) {
  4968. if (true) {
  4969. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  4970. }
  4971. /* istanbul ignore else */
  4972. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  4973. console.error(err);
  4974. } else {
  4975. throw err
  4976. }
  4977. }
  4978. /* */
  4979. var callbacks = [];
  4980. var pending = false;
  4981. function flushCallbacks () {
  4982. pending = false;
  4983. var copies = callbacks.slice(0);
  4984. callbacks.length = 0;
  4985. for (var i = 0; i < copies.length; i++) {
  4986. copies[i]();
  4987. }
  4988. }
  4989. // Here we have async deferring wrappers using microtasks.
  4990. // In 2.5 we used (macro) tasks (in combination with microtasks).
  4991. // However, it has subtle problems when state is changed right before repaint
  4992. // (e.g. #6813, out-in transitions).
  4993. // Also, using (macro) tasks in event handler would cause some weird behaviors
  4994. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  4995. // So we now use microtasks everywhere, again.
  4996. // A major drawback of this tradeoff is that there are some scenarios
  4997. // where microtasks have too high a priority and fire in between supposedly
  4998. // sequential events (e.g. #4521, #6690, which have workarounds)
  4999. // or even between bubbling of the same event (#6566).
  5000. var timerFunc;
  5001. // The nextTick behavior leverages the microtask queue, which can be accessed
  5002. // via either native Promise.then or MutationObserver.
  5003. // MutationObserver has wider support, however it is seriously bugged in
  5004. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  5005. // completely stops working after triggering a few times... so, if native
  5006. // Promise is available, we will use it:
  5007. /* istanbul ignore next, $flow-disable-line */
  5008. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  5009. var p = Promise.resolve();
  5010. timerFunc = function () {
  5011. p.then(flushCallbacks);
  5012. // In problematic UIWebViews, Promise.then doesn't completely break, but
  5013. // it can get stuck in a weird state where callbacks are pushed into the
  5014. // microtask queue but the queue isn't being flushed, until the browser
  5015. // needs to do some other work, e.g. handle a timer. Therefore we can
  5016. // "force" the microtask queue to be flushed by adding an empty timer.
  5017. if (isIOS) { setTimeout(noop); }
  5018. };
  5019. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  5020. isNative(MutationObserver) ||
  5021. // PhantomJS and iOS 7.x
  5022. MutationObserver.toString() === '[object MutationObserverConstructor]'
  5023. )) {
  5024. // Use MutationObserver where native Promise is not available,
  5025. // e.g. PhantomJS, iOS7, Android 4.4
  5026. // (#6466 MutationObserver is unreliable in IE11)
  5027. var counter = 1;
  5028. var observer = new MutationObserver(flushCallbacks);
  5029. var textNode = document.createTextNode(String(counter));
  5030. observer.observe(textNode, {
  5031. characterData: true
  5032. });
  5033. timerFunc = function () {
  5034. counter = (counter + 1) % 2;
  5035. textNode.data = String(counter);
  5036. };
  5037. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  5038. // Fallback to setImmediate.
  5039. // Technically it leverages the (macro) task queue,
  5040. // but it is still a better choice than setTimeout.
  5041. timerFunc = function () {
  5042. setImmediate(flushCallbacks);
  5043. };
  5044. } else {
  5045. // Fallback to setTimeout.
  5046. timerFunc = function () {
  5047. setTimeout(flushCallbacks, 0);
  5048. };
  5049. }
  5050. function nextTick (cb, ctx) {
  5051. var _resolve;
  5052. callbacks.push(function () {
  5053. if (cb) {
  5054. try {
  5055. cb.call(ctx);
  5056. } catch (e) {
  5057. handleError(e, ctx, 'nextTick');
  5058. }
  5059. } else if (_resolve) {
  5060. _resolve(ctx);
  5061. }
  5062. });
  5063. if (!pending) {
  5064. pending = true;
  5065. timerFunc();
  5066. }
  5067. // $flow-disable-line
  5068. if (!cb && typeof Promise !== 'undefined') {
  5069. return new Promise(function (resolve) {
  5070. _resolve = resolve;
  5071. })
  5072. }
  5073. }
  5074. /* */
  5075. /* not type checking this file because flow doesn't play well with Proxy */
  5076. var initProxy;
  5077. if (true) {
  5078. var allowedGlobals = makeMap(
  5079. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  5080. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  5081. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  5082. 'require' // for Webpack/Browserify
  5083. );
  5084. var warnNonPresent = function (target, key) {
  5085. warn(
  5086. "Property or method \"" + key + "\" is not defined on the instance but " +
  5087. 'referenced during render. Make sure that this property is reactive, ' +
  5088. 'either in the data option, or for class-based components, by ' +
  5089. 'initializing the property. ' +
  5090. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  5091. target
  5092. );
  5093. };
  5094. var warnReservedPrefix = function (target, key) {
  5095. warn(
  5096. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  5097. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  5098. 'prevent conflicts with Vue internals. ' +
  5099. 'See: https://vuejs.org/v2/api/#data',
  5100. target
  5101. );
  5102. };
  5103. var hasProxy =
  5104. typeof Proxy !== 'undefined' && isNative(Proxy);
  5105. if (hasProxy) {
  5106. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  5107. config.keyCodes = new Proxy(config.keyCodes, {
  5108. set: function set (target, key, value) {
  5109. if (isBuiltInModifier(key)) {
  5110. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  5111. return false
  5112. } else {
  5113. target[key] = value;
  5114. return true
  5115. }
  5116. }
  5117. });
  5118. }
  5119. var hasHandler = {
  5120. has: function has (target, key) {
  5121. var has = key in target;
  5122. var isAllowed = allowedGlobals(key) ||
  5123. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  5124. if (!has && !isAllowed) {
  5125. if (key in target.$data) { warnReservedPrefix(target, key); }
  5126. else { warnNonPresent(target, key); }
  5127. }
  5128. return has || !isAllowed
  5129. }
  5130. };
  5131. var getHandler = {
  5132. get: function get (target, key) {
  5133. if (typeof key === 'string' && !(key in target)) {
  5134. if (key in target.$data) { warnReservedPrefix(target, key); }
  5135. else { warnNonPresent(target, key); }
  5136. }
  5137. return target[key]
  5138. }
  5139. };
  5140. initProxy = function initProxy (vm) {
  5141. if (hasProxy) {
  5142. // determine which proxy handler to use
  5143. var options = vm.$options;
  5144. var handlers = options.render && options.render._withStripped
  5145. ? getHandler
  5146. : hasHandler;
  5147. vm._renderProxy = new Proxy(vm, handlers);
  5148. } else {
  5149. vm._renderProxy = vm;
  5150. }
  5151. };
  5152. }
  5153. /* */
  5154. var seenObjects = new _Set();
  5155. /**
  5156. * Recursively traverse an object to evoke all converted
  5157. * getters, so that every nested property inside the object
  5158. * is collected as a "deep" dependency.
  5159. */
  5160. function traverse (val) {
  5161. _traverse(val, seenObjects);
  5162. seenObjects.clear();
  5163. }
  5164. function _traverse (val, seen) {
  5165. var i, keys;
  5166. var isA = Array.isArray(val);
  5167. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  5168. return
  5169. }
  5170. if (val.__ob__) {
  5171. var depId = val.__ob__.dep.id;
  5172. if (seen.has(depId)) {
  5173. return
  5174. }
  5175. seen.add(depId);
  5176. }
  5177. if (isA) {
  5178. i = val.length;
  5179. while (i--) { _traverse(val[i], seen); }
  5180. } else {
  5181. keys = Object.keys(val);
  5182. i = keys.length;
  5183. while (i--) { _traverse(val[keys[i]], seen); }
  5184. }
  5185. }
  5186. var mark;
  5187. var measure;
  5188. if (true) {
  5189. var perf = inBrowser && window.performance;
  5190. /* istanbul ignore if */
  5191. if (
  5192. perf &&
  5193. perf.mark &&
  5194. perf.measure &&
  5195. perf.clearMarks &&
  5196. perf.clearMeasures
  5197. ) {
  5198. mark = function (tag) { return perf.mark(tag); };
  5199. measure = function (name, startTag, endTag) {
  5200. perf.measure(name, startTag, endTag);
  5201. perf.clearMarks(startTag);
  5202. perf.clearMarks(endTag);
  5203. // perf.clearMeasures(name)
  5204. };
  5205. }
  5206. }
  5207. /* */
  5208. var normalizeEvent = cached(function (name) {
  5209. var passive = name.charAt(0) === '&';
  5210. name = passive ? name.slice(1) : name;
  5211. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  5212. name = once$$1 ? name.slice(1) : name;
  5213. var capture = name.charAt(0) === '!';
  5214. name = capture ? name.slice(1) : name;
  5215. return {
  5216. name: name,
  5217. once: once$$1,
  5218. capture: capture,
  5219. passive: passive
  5220. }
  5221. });
  5222. function createFnInvoker (fns, vm) {
  5223. function invoker () {
  5224. var arguments$1 = arguments;
  5225. var fns = invoker.fns;
  5226. if (Array.isArray(fns)) {
  5227. var cloned = fns.slice();
  5228. for (var i = 0; i < cloned.length; i++) {
  5229. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  5230. }
  5231. } else {
  5232. // return handler return value for single handlers
  5233. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  5234. }
  5235. }
  5236. invoker.fns = fns;
  5237. return invoker
  5238. }
  5239. function updateListeners (
  5240. on,
  5241. oldOn,
  5242. add,
  5243. remove$$1,
  5244. createOnceHandler,
  5245. vm
  5246. ) {
  5247. var name, def$$1, cur, old, event;
  5248. for (name in on) {
  5249. def$$1 = cur = on[name];
  5250. old = oldOn[name];
  5251. event = normalizeEvent(name);
  5252. if (isUndef(cur)) {
  5253. true && warn(
  5254. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  5255. vm
  5256. );
  5257. } else if (isUndef(old)) {
  5258. if (isUndef(cur.fns)) {
  5259. cur = on[name] = createFnInvoker(cur, vm);
  5260. }
  5261. if (isTrue(event.once)) {
  5262. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  5263. }
  5264. add(event.name, cur, event.capture, event.passive, event.params);
  5265. } else if (cur !== old) {
  5266. old.fns = cur;
  5267. on[name] = old;
  5268. }
  5269. }
  5270. for (name in oldOn) {
  5271. if (isUndef(on[name])) {
  5272. event = normalizeEvent(name);
  5273. remove$$1(event.name, oldOn[name], event.capture);
  5274. }
  5275. }
  5276. }
  5277. /* */
  5278. /* */
  5279. // fixed by xxxxxx (mp properties)
  5280. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  5281. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  5282. if (isUndef(propOptions)) {
  5283. return res
  5284. }
  5285. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  5286. var attrs = data.attrs;
  5287. var props = data.props;
  5288. if (isDef(attrs) || isDef(props)) {
  5289. for (var key in propOptions) {
  5290. var altKey = hyphenate(key);
  5291. var result = checkProp(res, props, key, altKey, true) ||
  5292. checkProp(res, attrs, key, altKey, false);
  5293. // externalClass
  5294. if (
  5295. result &&
  5296. res[key] &&
  5297. externalClasses.indexOf(altKey) !== -1 &&
  5298. context[camelize(res[key])]
  5299. ) {
  5300. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  5301. res[key] = context[camelize(res[key])];
  5302. }
  5303. }
  5304. }
  5305. return res
  5306. }
  5307. function extractPropsFromVNodeData (
  5308. data,
  5309. Ctor,
  5310. tag,
  5311. context// fixed by xxxxxx
  5312. ) {
  5313. // we are only extracting raw values here.
  5314. // validation and default values are handled in the child
  5315. // component itself.
  5316. var propOptions = Ctor.options.props;
  5317. if (isUndef(propOptions)) {
  5318. // fixed by xxxxxx
  5319. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  5320. }
  5321. var res = {};
  5322. var attrs = data.attrs;
  5323. var props = data.props;
  5324. if (isDef(attrs) || isDef(props)) {
  5325. for (var key in propOptions) {
  5326. var altKey = hyphenate(key);
  5327. if (true) {
  5328. var keyInLowerCase = key.toLowerCase();
  5329. if (
  5330. key !== keyInLowerCase &&
  5331. attrs && hasOwn(attrs, keyInLowerCase)
  5332. ) {
  5333. tip(
  5334. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  5335. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  5336. " \"" + key + "\". " +
  5337. "Note that HTML attributes are case-insensitive and camelCased " +
  5338. "props need to use their kebab-case equivalents when using in-DOM " +
  5339. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  5340. );
  5341. }
  5342. }
  5343. checkProp(res, props, key, altKey, true) ||
  5344. checkProp(res, attrs, key, altKey, false);
  5345. }
  5346. }
  5347. // fixed by xxxxxx
  5348. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  5349. }
  5350. function checkProp (
  5351. res,
  5352. hash,
  5353. key,
  5354. altKey,
  5355. preserve
  5356. ) {
  5357. if (isDef(hash)) {
  5358. if (hasOwn(hash, key)) {
  5359. res[key] = hash[key];
  5360. if (!preserve) {
  5361. delete hash[key];
  5362. }
  5363. return true
  5364. } else if (hasOwn(hash, altKey)) {
  5365. res[key] = hash[altKey];
  5366. if (!preserve) {
  5367. delete hash[altKey];
  5368. }
  5369. return true
  5370. }
  5371. }
  5372. return false
  5373. }
  5374. /* */
  5375. // The template compiler attempts to minimize the need for normalization by
  5376. // statically analyzing the template at compile time.
  5377. //
  5378. // For plain HTML markup, normalization can be completely skipped because the
  5379. // generated render function is guaranteed to return Array<VNode>. There are
  5380. // two cases where extra normalization is needed:
  5381. // 1. When the children contains components - because a functional component
  5382. // may return an Array instead of a single root. In this case, just a simple
  5383. // normalization is needed - if any child is an Array, we flatten the whole
  5384. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  5385. // because functional components already normalize their own children.
  5386. function simpleNormalizeChildren (children) {
  5387. for (var i = 0; i < children.length; i++) {
  5388. if (Array.isArray(children[i])) {
  5389. return Array.prototype.concat.apply([], children)
  5390. }
  5391. }
  5392. return children
  5393. }
  5394. // 2. When the children contains constructs that always generated nested Arrays,
  5395. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  5396. // with hand-written render functions / JSX. In such cases a full normalization
  5397. // is needed to cater to all possible types of children values.
  5398. function normalizeChildren (children) {
  5399. return isPrimitive(children)
  5400. ? [createTextVNode(children)]
  5401. : Array.isArray(children)
  5402. ? normalizeArrayChildren(children)
  5403. : undefined
  5404. }
  5405. function isTextNode (node) {
  5406. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  5407. }
  5408. function normalizeArrayChildren (children, nestedIndex) {
  5409. var res = [];
  5410. var i, c, lastIndex, last;
  5411. for (i = 0; i < children.length; i++) {
  5412. c = children[i];
  5413. if (isUndef(c) || typeof c === 'boolean') { continue }
  5414. lastIndex = res.length - 1;
  5415. last = res[lastIndex];
  5416. // nested
  5417. if (Array.isArray(c)) {
  5418. if (c.length > 0) {
  5419. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  5420. // merge adjacent text nodes
  5421. if (isTextNode(c[0]) && isTextNode(last)) {
  5422. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  5423. c.shift();
  5424. }
  5425. res.push.apply(res, c);
  5426. }
  5427. } else if (isPrimitive(c)) {
  5428. if (isTextNode(last)) {
  5429. // merge adjacent text nodes
  5430. // this is necessary for SSR hydration because text nodes are
  5431. // essentially merged when rendered to HTML strings
  5432. res[lastIndex] = createTextVNode(last.text + c);
  5433. } else if (c !== '') {
  5434. // convert primitive to vnode
  5435. res.push(createTextVNode(c));
  5436. }
  5437. } else {
  5438. if (isTextNode(c) && isTextNode(last)) {
  5439. // merge adjacent text nodes
  5440. res[lastIndex] = createTextVNode(last.text + c.text);
  5441. } else {
  5442. // default key for nested array children (likely generated by v-for)
  5443. if (isTrue(children._isVList) &&
  5444. isDef(c.tag) &&
  5445. isUndef(c.key) &&
  5446. isDef(nestedIndex)) {
  5447. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  5448. }
  5449. res.push(c);
  5450. }
  5451. }
  5452. }
  5453. return res
  5454. }
  5455. /* */
  5456. function initProvide (vm) {
  5457. var provide = vm.$options.provide;
  5458. if (provide) {
  5459. vm._provided = typeof provide === 'function'
  5460. ? provide.call(vm)
  5461. : provide;
  5462. }
  5463. }
  5464. function initInjections (vm) {
  5465. var result = resolveInject(vm.$options.inject, vm);
  5466. if (result) {
  5467. toggleObserving(false);
  5468. Object.keys(result).forEach(function (key) {
  5469. /* istanbul ignore else */
  5470. if (true) {
  5471. defineReactive$$1(vm, key, result[key], function () {
  5472. warn(
  5473. "Avoid mutating an injected value directly since the changes will be " +
  5474. "overwritten whenever the provided component re-renders. " +
  5475. "injection being mutated: \"" + key + "\"",
  5476. vm
  5477. );
  5478. });
  5479. } else {}
  5480. });
  5481. toggleObserving(true);
  5482. }
  5483. }
  5484. function resolveInject (inject, vm) {
  5485. if (inject) {
  5486. // inject is :any because flow is not smart enough to figure out cached
  5487. var result = Object.create(null);
  5488. var keys = hasSymbol
  5489. ? Reflect.ownKeys(inject)
  5490. : Object.keys(inject);
  5491. for (var i = 0; i < keys.length; i++) {
  5492. var key = keys[i];
  5493. // #6574 in case the inject object is observed...
  5494. if (key === '__ob__') { continue }
  5495. var provideKey = inject[key].from;
  5496. var source = vm;
  5497. while (source) {
  5498. if (source._provided && hasOwn(source._provided, provideKey)) {
  5499. result[key] = source._provided[provideKey];
  5500. break
  5501. }
  5502. source = source.$parent;
  5503. }
  5504. if (!source) {
  5505. if ('default' in inject[key]) {
  5506. var provideDefault = inject[key].default;
  5507. result[key] = typeof provideDefault === 'function'
  5508. ? provideDefault.call(vm)
  5509. : provideDefault;
  5510. } else if (true) {
  5511. warn(("Injection \"" + key + "\" not found"), vm);
  5512. }
  5513. }
  5514. }
  5515. return result
  5516. }
  5517. }
  5518. /* */
  5519. /**
  5520. * Runtime helper for resolving raw children VNodes into a slot object.
  5521. */
  5522. function resolveSlots (
  5523. children,
  5524. context
  5525. ) {
  5526. if (!children || !children.length) {
  5527. return {}
  5528. }
  5529. var slots = {};
  5530. for (var i = 0, l = children.length; i < l; i++) {
  5531. var child = children[i];
  5532. var data = child.data;
  5533. // remove slot attribute if the node is resolved as a Vue slot node
  5534. if (data && data.attrs && data.attrs.slot) {
  5535. delete data.attrs.slot;
  5536. }
  5537. // named slots should only be respected if the vnode was rendered in the
  5538. // same context.
  5539. if ((child.context === context || child.fnContext === context) &&
  5540. data && data.slot != null
  5541. ) {
  5542. var name = data.slot;
  5543. var slot = (slots[name] || (slots[name] = []));
  5544. if (child.tag === 'template') {
  5545. slot.push.apply(slot, child.children || []);
  5546. } else {
  5547. slot.push(child);
  5548. }
  5549. } else {
  5550. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  5551. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  5552. (slots['page'] || (slots['page'] = [])).push(child);
  5553. }else{
  5554. (slots.default || (slots.default = [])).push(child);
  5555. }
  5556. }
  5557. }
  5558. // ignore slots that contains only whitespace
  5559. for (var name$1 in slots) {
  5560. if (slots[name$1].every(isWhitespace)) {
  5561. delete slots[name$1];
  5562. }
  5563. }
  5564. return slots
  5565. }
  5566. function isWhitespace (node) {
  5567. return (node.isComment && !node.asyncFactory) || node.text === ' '
  5568. }
  5569. /* */
  5570. function normalizeScopedSlots (
  5571. slots,
  5572. normalSlots,
  5573. prevSlots
  5574. ) {
  5575. var res;
  5576. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  5577. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  5578. var key = slots && slots.$key;
  5579. if (!slots) {
  5580. res = {};
  5581. } else if (slots._normalized) {
  5582. // fast path 1: child component re-render only, parent did not change
  5583. return slots._normalized
  5584. } else if (
  5585. isStable &&
  5586. prevSlots &&
  5587. prevSlots !== emptyObject &&
  5588. key === prevSlots.$key &&
  5589. !hasNormalSlots &&
  5590. !prevSlots.$hasNormal
  5591. ) {
  5592. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  5593. // only need to normalize once
  5594. return prevSlots
  5595. } else {
  5596. res = {};
  5597. for (var key$1 in slots) {
  5598. if (slots[key$1] && key$1[0] !== '$') {
  5599. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  5600. }
  5601. }
  5602. }
  5603. // expose normal slots on scopedSlots
  5604. for (var key$2 in normalSlots) {
  5605. if (!(key$2 in res)) {
  5606. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  5607. }
  5608. }
  5609. // avoriaz seems to mock a non-extensible $scopedSlots object
  5610. // and when that is passed down this would cause an error
  5611. if (slots && Object.isExtensible(slots)) {
  5612. (slots)._normalized = res;
  5613. }
  5614. def(res, '$stable', isStable);
  5615. def(res, '$key', key);
  5616. def(res, '$hasNormal', hasNormalSlots);
  5617. return res
  5618. }
  5619. function normalizeScopedSlot(normalSlots, key, fn) {
  5620. var normalized = function () {
  5621. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  5622. res = res && typeof res === 'object' && !Array.isArray(res)
  5623. ? [res] // single vnode
  5624. : normalizeChildren(res);
  5625. return res && (
  5626. res.length === 0 ||
  5627. (res.length === 1 && res[0].isComment) // #9658
  5628. ) ? undefined
  5629. : res
  5630. };
  5631. // this is a slot using the new v-slot syntax without scope. although it is
  5632. // compiled as a scoped slot, render fn users would expect it to be present
  5633. // on this.$slots because the usage is semantically a normal slot.
  5634. if (fn.proxy) {
  5635. Object.defineProperty(normalSlots, key, {
  5636. get: normalized,
  5637. enumerable: true,
  5638. configurable: true
  5639. });
  5640. }
  5641. return normalized
  5642. }
  5643. function proxyNormalSlot(slots, key) {
  5644. return function () { return slots[key]; }
  5645. }
  5646. /* */
  5647. /**
  5648. * Runtime helper for rendering v-for lists.
  5649. */
  5650. function renderList (
  5651. val,
  5652. render
  5653. ) {
  5654. var ret, i, l, keys, key;
  5655. if (Array.isArray(val) || typeof val === 'string') {
  5656. ret = new Array(val.length);
  5657. for (i = 0, l = val.length; i < l; i++) {
  5658. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  5659. }
  5660. } else if (typeof val === 'number') {
  5661. ret = new Array(val);
  5662. for (i = 0; i < val; i++) {
  5663. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  5664. }
  5665. } else if (isObject(val)) {
  5666. if (hasSymbol && val[Symbol.iterator]) {
  5667. ret = [];
  5668. var iterator = val[Symbol.iterator]();
  5669. var result = iterator.next();
  5670. while (!result.done) {
  5671. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  5672. result = iterator.next();
  5673. }
  5674. } else {
  5675. keys = Object.keys(val);
  5676. ret = new Array(keys.length);
  5677. for (i = 0, l = keys.length; i < l; i++) {
  5678. key = keys[i];
  5679. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  5680. }
  5681. }
  5682. }
  5683. if (!isDef(ret)) {
  5684. ret = [];
  5685. }
  5686. (ret)._isVList = true;
  5687. return ret
  5688. }
  5689. /* */
  5690. /**
  5691. * Runtime helper for rendering <slot>
  5692. */
  5693. function renderSlot (
  5694. name,
  5695. fallback,
  5696. props,
  5697. bindObject
  5698. ) {
  5699. var scopedSlotFn = this.$scopedSlots[name];
  5700. var nodes;
  5701. if (scopedSlotFn) { // scoped slot
  5702. props = props || {};
  5703. if (bindObject) {
  5704. if ( true && !isObject(bindObject)) {
  5705. warn(
  5706. 'slot v-bind without argument expects an Object',
  5707. this
  5708. );
  5709. }
  5710. props = extend(extend({}, bindObject), props);
  5711. }
  5712. // fixed by xxxxxx app-plus scopedSlot
  5713. nodes = scopedSlotFn(props, this, props._i) || fallback;
  5714. } else {
  5715. nodes = this.$slots[name] || fallback;
  5716. }
  5717. var target = props && props.slot;
  5718. if (target) {
  5719. return this.$createElement('template', { slot: target }, nodes)
  5720. } else {
  5721. return nodes
  5722. }
  5723. }
  5724. /* */
  5725. /**
  5726. * Runtime helper for resolving filters
  5727. */
  5728. function resolveFilter (id) {
  5729. return resolveAsset(this.$options, 'filters', id, true) || identity
  5730. }
  5731. /* */
  5732. function isKeyNotMatch (expect, actual) {
  5733. if (Array.isArray(expect)) {
  5734. return expect.indexOf(actual) === -1
  5735. } else {
  5736. return expect !== actual
  5737. }
  5738. }
  5739. /**
  5740. * Runtime helper for checking keyCodes from config.
  5741. * exposed as Vue.prototype._k
  5742. * passing in eventKeyName as last argument separately for backwards compat
  5743. */
  5744. function checkKeyCodes (
  5745. eventKeyCode,
  5746. key,
  5747. builtInKeyCode,
  5748. eventKeyName,
  5749. builtInKeyName
  5750. ) {
  5751. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  5752. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  5753. return isKeyNotMatch(builtInKeyName, eventKeyName)
  5754. } else if (mappedKeyCode) {
  5755. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  5756. } else if (eventKeyName) {
  5757. return hyphenate(eventKeyName) !== key
  5758. }
  5759. }
  5760. /* */
  5761. /**
  5762. * Runtime helper for merging v-bind="object" into a VNode's data.
  5763. */
  5764. function bindObjectProps (
  5765. data,
  5766. tag,
  5767. value,
  5768. asProp,
  5769. isSync
  5770. ) {
  5771. if (value) {
  5772. if (!isObject(value)) {
  5773. true && warn(
  5774. 'v-bind without argument expects an Object or Array value',
  5775. this
  5776. );
  5777. } else {
  5778. if (Array.isArray(value)) {
  5779. value = toObject(value);
  5780. }
  5781. var hash;
  5782. var loop = function ( key ) {
  5783. if (
  5784. key === 'class' ||
  5785. key === 'style' ||
  5786. isReservedAttribute(key)
  5787. ) {
  5788. hash = data;
  5789. } else {
  5790. var type = data.attrs && data.attrs.type;
  5791. hash = asProp || config.mustUseProp(tag, type, key)
  5792. ? data.domProps || (data.domProps = {})
  5793. : data.attrs || (data.attrs = {});
  5794. }
  5795. var camelizedKey = camelize(key);
  5796. var hyphenatedKey = hyphenate(key);
  5797. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  5798. hash[key] = value[key];
  5799. if (isSync) {
  5800. var on = data.on || (data.on = {});
  5801. on[("update:" + key)] = function ($event) {
  5802. value[key] = $event;
  5803. };
  5804. }
  5805. }
  5806. };
  5807. for (var key in value) loop( key );
  5808. }
  5809. }
  5810. return data
  5811. }
  5812. /* */
  5813. /**
  5814. * Runtime helper for rendering static trees.
  5815. */
  5816. function renderStatic (
  5817. index,
  5818. isInFor
  5819. ) {
  5820. var cached = this._staticTrees || (this._staticTrees = []);
  5821. var tree = cached[index];
  5822. // if has already-rendered static tree and not inside v-for,
  5823. // we can reuse the same tree.
  5824. if (tree && !isInFor) {
  5825. return tree
  5826. }
  5827. // otherwise, render a fresh tree.
  5828. tree = cached[index] = this.$options.staticRenderFns[index].call(
  5829. this._renderProxy,
  5830. null,
  5831. this // for render fns generated for functional component templates
  5832. );
  5833. markStatic(tree, ("__static__" + index), false);
  5834. return tree
  5835. }
  5836. /**
  5837. * Runtime helper for v-once.
  5838. * Effectively it means marking the node as static with a unique key.
  5839. */
  5840. function markOnce (
  5841. tree,
  5842. index,
  5843. key
  5844. ) {
  5845. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  5846. return tree
  5847. }
  5848. function markStatic (
  5849. tree,
  5850. key,
  5851. isOnce
  5852. ) {
  5853. if (Array.isArray(tree)) {
  5854. for (var i = 0; i < tree.length; i++) {
  5855. if (tree[i] && typeof tree[i] !== 'string') {
  5856. markStaticNode(tree[i], (key + "_" + i), isOnce);
  5857. }
  5858. }
  5859. } else {
  5860. markStaticNode(tree, key, isOnce);
  5861. }
  5862. }
  5863. function markStaticNode (node, key, isOnce) {
  5864. node.isStatic = true;
  5865. node.key = key;
  5866. node.isOnce = isOnce;
  5867. }
  5868. /* */
  5869. function bindObjectListeners (data, value) {
  5870. if (value) {
  5871. if (!isPlainObject(value)) {
  5872. true && warn(
  5873. 'v-on without argument expects an Object value',
  5874. this
  5875. );
  5876. } else {
  5877. var on = data.on = data.on ? extend({}, data.on) : {};
  5878. for (var key in value) {
  5879. var existing = on[key];
  5880. var ours = value[key];
  5881. on[key] = existing ? [].concat(existing, ours) : ours;
  5882. }
  5883. }
  5884. }
  5885. return data
  5886. }
  5887. /* */
  5888. function resolveScopedSlots (
  5889. fns, // see flow/vnode
  5890. res,
  5891. // the following are added in 2.6
  5892. hasDynamicKeys,
  5893. contentHashKey
  5894. ) {
  5895. res = res || { $stable: !hasDynamicKeys };
  5896. for (var i = 0; i < fns.length; i++) {
  5897. var slot = fns[i];
  5898. if (Array.isArray(slot)) {
  5899. resolveScopedSlots(slot, res, hasDynamicKeys);
  5900. } else if (slot) {
  5901. // marker for reverse proxying v-slot without scope on this.$slots
  5902. if (slot.proxy) {
  5903. slot.fn.proxy = true;
  5904. }
  5905. res[slot.key] = slot.fn;
  5906. }
  5907. }
  5908. if (contentHashKey) {
  5909. (res).$key = contentHashKey;
  5910. }
  5911. return res
  5912. }
  5913. /* */
  5914. function bindDynamicKeys (baseObj, values) {
  5915. for (var i = 0; i < values.length; i += 2) {
  5916. var key = values[i];
  5917. if (typeof key === 'string' && key) {
  5918. baseObj[values[i]] = values[i + 1];
  5919. } else if ( true && key !== '' && key !== null) {
  5920. // null is a special value for explicitly removing a binding
  5921. warn(
  5922. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  5923. this
  5924. );
  5925. }
  5926. }
  5927. return baseObj
  5928. }
  5929. // helper to dynamically append modifier runtime markers to event names.
  5930. // ensure only append when value is already string, otherwise it will be cast
  5931. // to string and cause the type check to miss.
  5932. function prependModifier (value, symbol) {
  5933. return typeof value === 'string' ? symbol + value : value
  5934. }
  5935. /* */
  5936. function installRenderHelpers (target) {
  5937. target._o = markOnce;
  5938. target._n = toNumber;
  5939. target._s = toString;
  5940. target._l = renderList;
  5941. target._t = renderSlot;
  5942. target._q = looseEqual;
  5943. target._i = looseIndexOf;
  5944. target._m = renderStatic;
  5945. target._f = resolveFilter;
  5946. target._k = checkKeyCodes;
  5947. target._b = bindObjectProps;
  5948. target._v = createTextVNode;
  5949. target._e = createEmptyVNode;
  5950. target._u = resolveScopedSlots;
  5951. target._g = bindObjectListeners;
  5952. target._d = bindDynamicKeys;
  5953. target._p = prependModifier;
  5954. }
  5955. /* */
  5956. function FunctionalRenderContext (
  5957. data,
  5958. props,
  5959. children,
  5960. parent,
  5961. Ctor
  5962. ) {
  5963. var this$1 = this;
  5964. var options = Ctor.options;
  5965. // ensure the createElement function in functional components
  5966. // gets a unique context - this is necessary for correct named slot check
  5967. var contextVm;
  5968. if (hasOwn(parent, '_uid')) {
  5969. contextVm = Object.create(parent);
  5970. // $flow-disable-line
  5971. contextVm._original = parent;
  5972. } else {
  5973. // the context vm passed in is a functional context as well.
  5974. // in this case we want to make sure we are able to get a hold to the
  5975. // real context instance.
  5976. contextVm = parent;
  5977. // $flow-disable-line
  5978. parent = parent._original;
  5979. }
  5980. var isCompiled = isTrue(options._compiled);
  5981. var needNormalization = !isCompiled;
  5982. this.data = data;
  5983. this.props = props;
  5984. this.children = children;
  5985. this.parent = parent;
  5986. this.listeners = data.on || emptyObject;
  5987. this.injections = resolveInject(options.inject, parent);
  5988. this.slots = function () {
  5989. if (!this$1.$slots) {
  5990. normalizeScopedSlots(
  5991. data.scopedSlots,
  5992. this$1.$slots = resolveSlots(children, parent)
  5993. );
  5994. }
  5995. return this$1.$slots
  5996. };
  5997. Object.defineProperty(this, 'scopedSlots', ({
  5998. enumerable: true,
  5999. get: function get () {
  6000. return normalizeScopedSlots(data.scopedSlots, this.slots())
  6001. }
  6002. }));
  6003. // support for compiled functional template
  6004. if (isCompiled) {
  6005. // exposing $options for renderStatic()
  6006. this.$options = options;
  6007. // pre-resolve slots for renderSlot()
  6008. this.$slots = this.slots();
  6009. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  6010. }
  6011. if (options._scopeId) {
  6012. this._c = function (a, b, c, d) {
  6013. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  6014. if (vnode && !Array.isArray(vnode)) {
  6015. vnode.fnScopeId = options._scopeId;
  6016. vnode.fnContext = parent;
  6017. }
  6018. return vnode
  6019. };
  6020. } else {
  6021. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  6022. }
  6023. }
  6024. installRenderHelpers(FunctionalRenderContext.prototype);
  6025. function createFunctionalComponent (
  6026. Ctor,
  6027. propsData,
  6028. data,
  6029. contextVm,
  6030. children
  6031. ) {
  6032. var options = Ctor.options;
  6033. var props = {};
  6034. var propOptions = options.props;
  6035. if (isDef(propOptions)) {
  6036. for (var key in propOptions) {
  6037. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  6038. }
  6039. } else {
  6040. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  6041. if (isDef(data.props)) { mergeProps(props, data.props); }
  6042. }
  6043. var renderContext = new FunctionalRenderContext(
  6044. data,
  6045. props,
  6046. children,
  6047. contextVm,
  6048. Ctor
  6049. );
  6050. var vnode = options.render.call(null, renderContext._c, renderContext);
  6051. if (vnode instanceof VNode) {
  6052. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  6053. } else if (Array.isArray(vnode)) {
  6054. var vnodes = normalizeChildren(vnode) || [];
  6055. var res = new Array(vnodes.length);
  6056. for (var i = 0; i < vnodes.length; i++) {
  6057. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  6058. }
  6059. return res
  6060. }
  6061. }
  6062. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  6063. // #7817 clone node before setting fnContext, otherwise if the node is reused
  6064. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  6065. // that should not be matched to match.
  6066. var clone = cloneVNode(vnode);
  6067. clone.fnContext = contextVm;
  6068. clone.fnOptions = options;
  6069. if (true) {
  6070. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  6071. }
  6072. if (data.slot) {
  6073. (clone.data || (clone.data = {})).slot = data.slot;
  6074. }
  6075. return clone
  6076. }
  6077. function mergeProps (to, from) {
  6078. for (var key in from) {
  6079. to[camelize(key)] = from[key];
  6080. }
  6081. }
  6082. /* */
  6083. /* */
  6084. /* */
  6085. /* */
  6086. // inline hooks to be invoked on component VNodes during patch
  6087. var componentVNodeHooks = {
  6088. init: function init (vnode, hydrating) {
  6089. if (
  6090. vnode.componentInstance &&
  6091. !vnode.componentInstance._isDestroyed &&
  6092. vnode.data.keepAlive
  6093. ) {
  6094. // kept-alive components, treat as a patch
  6095. var mountedNode = vnode; // work around flow
  6096. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  6097. } else {
  6098. var child = vnode.componentInstance = createComponentInstanceForVnode(
  6099. vnode,
  6100. activeInstance
  6101. );
  6102. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  6103. }
  6104. },
  6105. prepatch: function prepatch (oldVnode, vnode) {
  6106. var options = vnode.componentOptions;
  6107. var child = vnode.componentInstance = oldVnode.componentInstance;
  6108. updateChildComponent(
  6109. child,
  6110. options.propsData, // updated props
  6111. options.listeners, // updated listeners
  6112. vnode, // new parent vnode
  6113. options.children // new children
  6114. );
  6115. },
  6116. insert: function insert (vnode) {
  6117. var context = vnode.context;
  6118. var componentInstance = vnode.componentInstance;
  6119. if (!componentInstance._isMounted) {
  6120. callHook(componentInstance, 'onServiceCreated');
  6121. callHook(componentInstance, 'onServiceAttached');
  6122. componentInstance._isMounted = true;
  6123. callHook(componentInstance, 'mounted');
  6124. }
  6125. if (vnode.data.keepAlive) {
  6126. if (context._isMounted) {
  6127. // vue-router#1212
  6128. // During updates, a kept-alive component's child components may
  6129. // change, so directly walking the tree here may call activated hooks
  6130. // on incorrect children. Instead we push them into a queue which will
  6131. // be processed after the whole patch process ended.
  6132. queueActivatedComponent(componentInstance);
  6133. } else {
  6134. activateChildComponent(componentInstance, true /* direct */);
  6135. }
  6136. }
  6137. },
  6138. destroy: function destroy (vnode) {
  6139. var componentInstance = vnode.componentInstance;
  6140. if (!componentInstance._isDestroyed) {
  6141. if (!vnode.data.keepAlive) {
  6142. componentInstance.$destroy();
  6143. } else {
  6144. deactivateChildComponent(componentInstance, true /* direct */);
  6145. }
  6146. }
  6147. }
  6148. };
  6149. var hooksToMerge = Object.keys(componentVNodeHooks);
  6150. function createComponent (
  6151. Ctor,
  6152. data,
  6153. context,
  6154. children,
  6155. tag
  6156. ) {
  6157. if (isUndef(Ctor)) {
  6158. return
  6159. }
  6160. var baseCtor = context.$options._base;
  6161. // plain options object: turn it into a constructor
  6162. if (isObject(Ctor)) {
  6163. Ctor = baseCtor.extend(Ctor);
  6164. }
  6165. // if at this stage it's not a constructor or an async component factory,
  6166. // reject.
  6167. if (typeof Ctor !== 'function') {
  6168. if (true) {
  6169. warn(("Invalid Component definition: " + (String(Ctor))), context);
  6170. }
  6171. return
  6172. }
  6173. // async component
  6174. var asyncFactory;
  6175. if (isUndef(Ctor.cid)) {
  6176. asyncFactory = Ctor;
  6177. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  6178. if (Ctor === undefined) {
  6179. // return a placeholder node for async component, which is rendered
  6180. // as a comment node but preserves all the raw information for the node.
  6181. // the information will be used for async server-rendering and hydration.
  6182. return createAsyncPlaceholder(
  6183. asyncFactory,
  6184. data,
  6185. context,
  6186. children,
  6187. tag
  6188. )
  6189. }
  6190. }
  6191. data = data || {};
  6192. // resolve constructor options in case global mixins are applied after
  6193. // component constructor creation
  6194. resolveConstructorOptions(Ctor);
  6195. // transform component v-model data into props & events
  6196. if (isDef(data.model)) {
  6197. transformModel(Ctor.options, data);
  6198. }
  6199. // extract props
  6200. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  6201. // functional component
  6202. if (isTrue(Ctor.options.functional)) {
  6203. return createFunctionalComponent(Ctor, propsData, data, context, children)
  6204. }
  6205. // extract listeners, since these needs to be treated as
  6206. // child component listeners instead of DOM listeners
  6207. var listeners = data.on;
  6208. // replace with listeners with .native modifier
  6209. // so it gets processed during parent component patch.
  6210. data.on = data.nativeOn;
  6211. if (isTrue(Ctor.options.abstract)) {
  6212. // abstract components do not keep anything
  6213. // other than props & listeners & slot
  6214. // work around flow
  6215. var slot = data.slot;
  6216. data = {};
  6217. if (slot) {
  6218. data.slot = slot;
  6219. }
  6220. }
  6221. // install component management hooks onto the placeholder node
  6222. installComponentHooks(data);
  6223. // return a placeholder vnode
  6224. var name = Ctor.options.name || tag;
  6225. var vnode = new VNode(
  6226. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  6227. data, undefined, undefined, undefined, context,
  6228. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  6229. asyncFactory
  6230. );
  6231. return vnode
  6232. }
  6233. function createComponentInstanceForVnode (
  6234. vnode, // we know it's MountedComponentVNode but flow doesn't
  6235. parent // activeInstance in lifecycle state
  6236. ) {
  6237. var options = {
  6238. _isComponent: true,
  6239. _parentVnode: vnode,
  6240. parent: parent
  6241. };
  6242. // check inline-template render functions
  6243. var inlineTemplate = vnode.data.inlineTemplate;
  6244. if (isDef(inlineTemplate)) {
  6245. options.render = inlineTemplate.render;
  6246. options.staticRenderFns = inlineTemplate.staticRenderFns;
  6247. }
  6248. return new vnode.componentOptions.Ctor(options)
  6249. }
  6250. function installComponentHooks (data) {
  6251. var hooks = data.hook || (data.hook = {});
  6252. for (var i = 0; i < hooksToMerge.length; i++) {
  6253. var key = hooksToMerge[i];
  6254. var existing = hooks[key];
  6255. var toMerge = componentVNodeHooks[key];
  6256. if (existing !== toMerge && !(existing && existing._merged)) {
  6257. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  6258. }
  6259. }
  6260. }
  6261. function mergeHook$1 (f1, f2) {
  6262. var merged = function (a, b) {
  6263. // flow complains about extra args which is why we use any
  6264. f1(a, b);
  6265. f2(a, b);
  6266. };
  6267. merged._merged = true;
  6268. return merged
  6269. }
  6270. // transform component v-model info (value and callback) into
  6271. // prop and event handler respectively.
  6272. function transformModel (options, data) {
  6273. var prop = (options.model && options.model.prop) || 'value';
  6274. var event = (options.model && options.model.event) || 'input'
  6275. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  6276. var on = data.on || (data.on = {});
  6277. var existing = on[event];
  6278. var callback = data.model.callback;
  6279. if (isDef(existing)) {
  6280. if (
  6281. Array.isArray(existing)
  6282. ? existing.indexOf(callback) === -1
  6283. : existing !== callback
  6284. ) {
  6285. on[event] = [callback].concat(existing);
  6286. }
  6287. } else {
  6288. on[event] = callback;
  6289. }
  6290. }
  6291. /* */
  6292. var SIMPLE_NORMALIZE = 1;
  6293. var ALWAYS_NORMALIZE = 2;
  6294. // wrapper function for providing a more flexible interface
  6295. // without getting yelled at by flow
  6296. function createElement (
  6297. context,
  6298. tag,
  6299. data,
  6300. children,
  6301. normalizationType,
  6302. alwaysNormalize
  6303. ) {
  6304. if (Array.isArray(data) || isPrimitive(data)) {
  6305. normalizationType = children;
  6306. children = data;
  6307. data = undefined;
  6308. }
  6309. if (isTrue(alwaysNormalize)) {
  6310. normalizationType = ALWAYS_NORMALIZE;
  6311. }
  6312. return _createElement(context, tag, data, children, normalizationType)
  6313. }
  6314. function _createElement (
  6315. context,
  6316. tag,
  6317. data,
  6318. children,
  6319. normalizationType
  6320. ) {
  6321. if (isDef(data) && isDef((data).__ob__)) {
  6322. true && warn(
  6323. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  6324. 'Always create fresh vnode data objects in each render!',
  6325. context
  6326. );
  6327. return createEmptyVNode()
  6328. }
  6329. // object syntax in v-bind
  6330. if (isDef(data) && isDef(data.is)) {
  6331. tag = data.is;
  6332. }
  6333. if (!tag) {
  6334. // in case of component :is set to falsy value
  6335. return createEmptyVNode()
  6336. }
  6337. // warn against non-primitive key
  6338. if ( true &&
  6339. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  6340. ) {
  6341. {
  6342. warn(
  6343. 'Avoid using non-primitive value as key, ' +
  6344. 'use string/number value instead.',
  6345. context
  6346. );
  6347. }
  6348. }
  6349. // support single function children as default scoped slot
  6350. if (Array.isArray(children) &&
  6351. typeof children[0] === 'function'
  6352. ) {
  6353. data = data || {};
  6354. data.scopedSlots = { default: children[0] };
  6355. children.length = 0;
  6356. }
  6357. if (normalizationType === ALWAYS_NORMALIZE) {
  6358. children = normalizeChildren(children);
  6359. } else if (normalizationType === SIMPLE_NORMALIZE) {
  6360. children = simpleNormalizeChildren(children);
  6361. }
  6362. var vnode, ns;
  6363. if (typeof tag === 'string') {
  6364. var Ctor;
  6365. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  6366. if (config.isReservedTag(tag)) {
  6367. // platform built-in elements
  6368. if ( true && isDef(data) && isDef(data.nativeOn)) {
  6369. warn(
  6370. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  6371. context
  6372. );
  6373. }
  6374. vnode = new VNode(
  6375. config.parsePlatformTagName(tag), data, children,
  6376. undefined, undefined, context
  6377. );
  6378. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  6379. // component
  6380. vnode = createComponent(Ctor, data, context, children, tag);
  6381. } else {
  6382. // unknown or unlisted namespaced elements
  6383. // check at runtime because it may get assigned a namespace when its
  6384. // parent normalizes children
  6385. vnode = new VNode(
  6386. tag, data, children,
  6387. undefined, undefined, context
  6388. );
  6389. }
  6390. } else {
  6391. // direct component options / constructor
  6392. vnode = createComponent(tag, data, context, children);
  6393. }
  6394. if (Array.isArray(vnode)) {
  6395. return vnode
  6396. } else if (isDef(vnode)) {
  6397. if (isDef(ns)) { applyNS(vnode, ns); }
  6398. if (isDef(data)) { registerDeepBindings(data); }
  6399. return vnode
  6400. } else {
  6401. return createEmptyVNode()
  6402. }
  6403. }
  6404. function applyNS (vnode, ns, force) {
  6405. vnode.ns = ns;
  6406. if (vnode.tag === 'foreignObject') {
  6407. // use default namespace inside foreignObject
  6408. ns = undefined;
  6409. force = true;
  6410. }
  6411. if (isDef(vnode.children)) {
  6412. for (var i = 0, l = vnode.children.length; i < l; i++) {
  6413. var child = vnode.children[i];
  6414. if (isDef(child.tag) && (
  6415. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  6416. applyNS(child, ns, force);
  6417. }
  6418. }
  6419. }
  6420. }
  6421. // ref #5318
  6422. // necessary to ensure parent re-render when deep bindings like :style and
  6423. // :class are used on slot nodes
  6424. function registerDeepBindings (data) {
  6425. if (isObject(data.style)) {
  6426. traverse(data.style);
  6427. }
  6428. if (isObject(data.class)) {
  6429. traverse(data.class);
  6430. }
  6431. }
  6432. /* */
  6433. function initRender (vm) {
  6434. vm._vnode = null; // the root of the child tree
  6435. vm._staticTrees = null; // v-once cached trees
  6436. var options = vm.$options;
  6437. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  6438. var renderContext = parentVnode && parentVnode.context;
  6439. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  6440. vm.$scopedSlots = emptyObject;
  6441. // bind the createElement fn to this instance
  6442. // so that we get proper render context inside it.
  6443. // args order: tag, data, children, normalizationType, alwaysNormalize
  6444. // internal version is used by render functions compiled from templates
  6445. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  6446. // normalization is always applied for the public version, used in
  6447. // user-written render functions.
  6448. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  6449. // $attrs & $listeners are exposed for easier HOC creation.
  6450. // they need to be reactive so that HOCs using them are always updated
  6451. var parentData = parentVnode && parentVnode.data;
  6452. /* istanbul ignore else */
  6453. if (true) {
  6454. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  6455. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  6456. }, true);
  6457. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  6458. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  6459. }, true);
  6460. } else {}
  6461. }
  6462. var currentRenderingInstance = null;
  6463. function renderMixin (Vue) {
  6464. // install runtime convenience helpers
  6465. installRenderHelpers(Vue.prototype);
  6466. Vue.prototype.$nextTick = function (fn) {
  6467. return nextTick(fn, this)
  6468. };
  6469. Vue.prototype._render = function () {
  6470. var vm = this;
  6471. var ref = vm.$options;
  6472. var render = ref.render;
  6473. var _parentVnode = ref._parentVnode;
  6474. if (_parentVnode) {
  6475. vm.$scopedSlots = normalizeScopedSlots(
  6476. _parentVnode.data.scopedSlots,
  6477. vm.$slots,
  6478. vm.$scopedSlots
  6479. );
  6480. }
  6481. // set parent vnode. this allows render functions to have access
  6482. // to the data on the placeholder node.
  6483. vm.$vnode = _parentVnode;
  6484. // render self
  6485. var vnode;
  6486. try {
  6487. // There's no need to maintain a stack because all render fns are called
  6488. // separately from one another. Nested component's render fns are called
  6489. // when parent component is patched.
  6490. currentRenderingInstance = vm;
  6491. vnode = render.call(vm._renderProxy, vm.$createElement);
  6492. } catch (e) {
  6493. handleError(e, vm, "render");
  6494. // return error render result,
  6495. // or previous vnode to prevent render error causing blank component
  6496. /* istanbul ignore else */
  6497. if ( true && vm.$options.renderError) {
  6498. try {
  6499. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  6500. } catch (e) {
  6501. handleError(e, vm, "renderError");
  6502. vnode = vm._vnode;
  6503. }
  6504. } else {
  6505. vnode = vm._vnode;
  6506. }
  6507. } finally {
  6508. currentRenderingInstance = null;
  6509. }
  6510. // if the returned array contains only a single node, allow it
  6511. if (Array.isArray(vnode) && vnode.length === 1) {
  6512. vnode = vnode[0];
  6513. }
  6514. // return empty vnode in case the render function errored out
  6515. if (!(vnode instanceof VNode)) {
  6516. if ( true && Array.isArray(vnode)) {
  6517. warn(
  6518. 'Multiple root nodes returned from render function. Render function ' +
  6519. 'should return a single root node.',
  6520. vm
  6521. );
  6522. }
  6523. vnode = createEmptyVNode();
  6524. }
  6525. // set parent
  6526. vnode.parent = _parentVnode;
  6527. return vnode
  6528. };
  6529. }
  6530. /* */
  6531. function ensureCtor (comp, base) {
  6532. if (
  6533. comp.__esModule ||
  6534. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  6535. ) {
  6536. comp = comp.default;
  6537. }
  6538. return isObject(comp)
  6539. ? base.extend(comp)
  6540. : comp
  6541. }
  6542. function createAsyncPlaceholder (
  6543. factory,
  6544. data,
  6545. context,
  6546. children,
  6547. tag
  6548. ) {
  6549. var node = createEmptyVNode();
  6550. node.asyncFactory = factory;
  6551. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  6552. return node
  6553. }
  6554. function resolveAsyncComponent (
  6555. factory,
  6556. baseCtor
  6557. ) {
  6558. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  6559. return factory.errorComp
  6560. }
  6561. if (isDef(factory.resolved)) {
  6562. return factory.resolved
  6563. }
  6564. var owner = currentRenderingInstance;
  6565. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  6566. // already pending
  6567. factory.owners.push(owner);
  6568. }
  6569. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  6570. return factory.loadingComp
  6571. }
  6572. if (owner && !isDef(factory.owners)) {
  6573. var owners = factory.owners = [owner];
  6574. var sync = true;
  6575. var timerLoading = null;
  6576. var timerTimeout = null
  6577. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  6578. var forceRender = function (renderCompleted) {
  6579. for (var i = 0, l = owners.length; i < l; i++) {
  6580. (owners[i]).$forceUpdate();
  6581. }
  6582. if (renderCompleted) {
  6583. owners.length = 0;
  6584. if (timerLoading !== null) {
  6585. clearTimeout(timerLoading);
  6586. timerLoading = null;
  6587. }
  6588. if (timerTimeout !== null) {
  6589. clearTimeout(timerTimeout);
  6590. timerTimeout = null;
  6591. }
  6592. }
  6593. };
  6594. var resolve = once(function (res) {
  6595. // cache resolved
  6596. factory.resolved = ensureCtor(res, baseCtor);
  6597. // invoke callbacks only if this is not a synchronous resolve
  6598. // (async resolves are shimmed as synchronous during SSR)
  6599. if (!sync) {
  6600. forceRender(true);
  6601. } else {
  6602. owners.length = 0;
  6603. }
  6604. });
  6605. var reject = once(function (reason) {
  6606. true && warn(
  6607. "Failed to resolve async component: " + (String(factory)) +
  6608. (reason ? ("\nReason: " + reason) : '')
  6609. );
  6610. if (isDef(factory.errorComp)) {
  6611. factory.error = true;
  6612. forceRender(true);
  6613. }
  6614. });
  6615. var res = factory(resolve, reject);
  6616. if (isObject(res)) {
  6617. if (isPromise(res)) {
  6618. // () => Promise
  6619. if (isUndef(factory.resolved)) {
  6620. res.then(resolve, reject);
  6621. }
  6622. } else if (isPromise(res.component)) {
  6623. res.component.then(resolve, reject);
  6624. if (isDef(res.error)) {
  6625. factory.errorComp = ensureCtor(res.error, baseCtor);
  6626. }
  6627. if (isDef(res.loading)) {
  6628. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  6629. if (res.delay === 0) {
  6630. factory.loading = true;
  6631. } else {
  6632. timerLoading = setTimeout(function () {
  6633. timerLoading = null;
  6634. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  6635. factory.loading = true;
  6636. forceRender(false);
  6637. }
  6638. }, res.delay || 200);
  6639. }
  6640. }
  6641. if (isDef(res.timeout)) {
  6642. timerTimeout = setTimeout(function () {
  6643. timerTimeout = null;
  6644. if (isUndef(factory.resolved)) {
  6645. reject(
  6646. true
  6647. ? ("timeout (" + (res.timeout) + "ms)")
  6648. : undefined
  6649. );
  6650. }
  6651. }, res.timeout);
  6652. }
  6653. }
  6654. }
  6655. sync = false;
  6656. // return in case resolved synchronously
  6657. return factory.loading
  6658. ? factory.loadingComp
  6659. : factory.resolved
  6660. }
  6661. }
  6662. /* */
  6663. function isAsyncPlaceholder (node) {
  6664. return node.isComment && node.asyncFactory
  6665. }
  6666. /* */
  6667. function getFirstComponentChild (children) {
  6668. if (Array.isArray(children)) {
  6669. for (var i = 0; i < children.length; i++) {
  6670. var c = children[i];
  6671. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  6672. return c
  6673. }
  6674. }
  6675. }
  6676. }
  6677. /* */
  6678. /* */
  6679. function initEvents (vm) {
  6680. vm._events = Object.create(null);
  6681. vm._hasHookEvent = false;
  6682. // init parent attached events
  6683. var listeners = vm.$options._parentListeners;
  6684. if (listeners) {
  6685. updateComponentListeners(vm, listeners);
  6686. }
  6687. }
  6688. var target;
  6689. function add (event, fn) {
  6690. target.$on(event, fn);
  6691. }
  6692. function remove$1 (event, fn) {
  6693. target.$off(event, fn);
  6694. }
  6695. function createOnceHandler (event, fn) {
  6696. var _target = target;
  6697. return function onceHandler () {
  6698. var res = fn.apply(null, arguments);
  6699. if (res !== null) {
  6700. _target.$off(event, onceHandler);
  6701. }
  6702. }
  6703. }
  6704. function updateComponentListeners (
  6705. vm,
  6706. listeners,
  6707. oldListeners
  6708. ) {
  6709. target = vm;
  6710. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  6711. target = undefined;
  6712. }
  6713. function eventsMixin (Vue) {
  6714. var hookRE = /^hook:/;
  6715. Vue.prototype.$on = function (event, fn) {
  6716. var vm = this;
  6717. if (Array.isArray(event)) {
  6718. for (var i = 0, l = event.length; i < l; i++) {
  6719. vm.$on(event[i], fn);
  6720. }
  6721. } else {
  6722. (vm._events[event] || (vm._events[event] = [])).push(fn);
  6723. // optimize hook:event cost by using a boolean flag marked at registration
  6724. // instead of a hash lookup
  6725. if (hookRE.test(event)) {
  6726. vm._hasHookEvent = true;
  6727. }
  6728. }
  6729. return vm
  6730. };
  6731. Vue.prototype.$once = function (event, fn) {
  6732. var vm = this;
  6733. function on () {
  6734. vm.$off(event, on);
  6735. fn.apply(vm, arguments);
  6736. }
  6737. on.fn = fn;
  6738. vm.$on(event, on);
  6739. return vm
  6740. };
  6741. Vue.prototype.$off = function (event, fn) {
  6742. var vm = this;
  6743. // all
  6744. if (!arguments.length) {
  6745. vm._events = Object.create(null);
  6746. return vm
  6747. }
  6748. // array of events
  6749. if (Array.isArray(event)) {
  6750. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  6751. vm.$off(event[i$1], fn);
  6752. }
  6753. return vm
  6754. }
  6755. // specific event
  6756. var cbs = vm._events[event];
  6757. if (!cbs) {
  6758. return vm
  6759. }
  6760. if (!fn) {
  6761. vm._events[event] = null;
  6762. return vm
  6763. }
  6764. // specific handler
  6765. var cb;
  6766. var i = cbs.length;
  6767. while (i--) {
  6768. cb = cbs[i];
  6769. if (cb === fn || cb.fn === fn) {
  6770. cbs.splice(i, 1);
  6771. break
  6772. }
  6773. }
  6774. return vm
  6775. };
  6776. Vue.prototype.$emit = function (event) {
  6777. var vm = this;
  6778. if (true) {
  6779. var lowerCaseEvent = event.toLowerCase();
  6780. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  6781. tip(
  6782. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  6783. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  6784. "Note that HTML attributes are case-insensitive and you cannot use " +
  6785. "v-on to listen to camelCase events when using in-DOM templates. " +
  6786. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  6787. );
  6788. }
  6789. }
  6790. var cbs = vm._events[event];
  6791. if (cbs) {
  6792. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  6793. var args = toArray(arguments, 1);
  6794. var info = "event handler for \"" + event + "\"";
  6795. for (var i = 0, l = cbs.length; i < l; i++) {
  6796. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  6797. }
  6798. }
  6799. return vm
  6800. };
  6801. }
  6802. /* */
  6803. var activeInstance = null;
  6804. var isUpdatingChildComponent = false;
  6805. function setActiveInstance(vm) {
  6806. var prevActiveInstance = activeInstance;
  6807. activeInstance = vm;
  6808. return function () {
  6809. activeInstance = prevActiveInstance;
  6810. }
  6811. }
  6812. function initLifecycle (vm) {
  6813. var options = vm.$options;
  6814. // locate first non-abstract parent
  6815. var parent = options.parent;
  6816. if (parent && !options.abstract) {
  6817. while (parent.$options.abstract && parent.$parent) {
  6818. parent = parent.$parent;
  6819. }
  6820. parent.$children.push(vm);
  6821. }
  6822. vm.$parent = parent;
  6823. vm.$root = parent ? parent.$root : vm;
  6824. vm.$children = [];
  6825. vm.$refs = {};
  6826. vm._watcher = null;
  6827. vm._inactive = null;
  6828. vm._directInactive = false;
  6829. vm._isMounted = false;
  6830. vm._isDestroyed = false;
  6831. vm._isBeingDestroyed = false;
  6832. }
  6833. function lifecycleMixin (Vue) {
  6834. Vue.prototype._update = function (vnode, hydrating) {
  6835. var vm = this;
  6836. var prevEl = vm.$el;
  6837. var prevVnode = vm._vnode;
  6838. var restoreActiveInstance = setActiveInstance(vm);
  6839. vm._vnode = vnode;
  6840. // Vue.prototype.__patch__ is injected in entry points
  6841. // based on the rendering backend used.
  6842. if (!prevVnode) {
  6843. // initial render
  6844. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  6845. } else {
  6846. // updates
  6847. vm.$el = vm.__patch__(prevVnode, vnode);
  6848. }
  6849. restoreActiveInstance();
  6850. // update __vue__ reference
  6851. if (prevEl) {
  6852. prevEl.__vue__ = null;
  6853. }
  6854. if (vm.$el) {
  6855. vm.$el.__vue__ = vm;
  6856. }
  6857. // if parent is an HOC, update its $el as well
  6858. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  6859. vm.$parent.$el = vm.$el;
  6860. }
  6861. // updated hook is called by the scheduler to ensure that children are
  6862. // updated in a parent's updated hook.
  6863. };
  6864. Vue.prototype.$forceUpdate = function () {
  6865. var vm = this;
  6866. if (vm._watcher) {
  6867. vm._watcher.update();
  6868. }
  6869. };
  6870. Vue.prototype.$destroy = function () {
  6871. var vm = this;
  6872. if (vm._isBeingDestroyed) {
  6873. return
  6874. }
  6875. callHook(vm, 'beforeDestroy');
  6876. vm._isBeingDestroyed = true;
  6877. // remove self from parent
  6878. var parent = vm.$parent;
  6879. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  6880. remove(parent.$children, vm);
  6881. }
  6882. // teardown watchers
  6883. if (vm._watcher) {
  6884. vm._watcher.teardown();
  6885. }
  6886. var i = vm._watchers.length;
  6887. while (i--) {
  6888. vm._watchers[i].teardown();
  6889. }
  6890. // remove reference from data ob
  6891. // frozen object may not have observer.
  6892. if (vm._data.__ob__) {
  6893. vm._data.__ob__.vmCount--;
  6894. }
  6895. // call the last hook...
  6896. vm._isDestroyed = true;
  6897. // invoke destroy hooks on current rendered tree
  6898. vm.__patch__(vm._vnode, null);
  6899. // fire destroyed hook
  6900. callHook(vm, 'destroyed');
  6901. // turn off all instance listeners.
  6902. vm.$off();
  6903. // remove __vue__ reference
  6904. if (vm.$el) {
  6905. vm.$el.__vue__ = null;
  6906. }
  6907. // release circular reference (#6759)
  6908. if (vm.$vnode) {
  6909. vm.$vnode.parent = null;
  6910. }
  6911. };
  6912. }
  6913. function updateChildComponent (
  6914. vm,
  6915. propsData,
  6916. listeners,
  6917. parentVnode,
  6918. renderChildren
  6919. ) {
  6920. if (true) {
  6921. isUpdatingChildComponent = true;
  6922. }
  6923. // determine whether component has slot children
  6924. // we need to do this before overwriting $options._renderChildren.
  6925. // check if there are dynamic scopedSlots (hand-written or compiled but with
  6926. // dynamic slot names). Static scoped slots compiled from template has the
  6927. // "$stable" marker.
  6928. var newScopedSlots = parentVnode.data.scopedSlots;
  6929. var oldScopedSlots = vm.$scopedSlots;
  6930. var hasDynamicScopedSlot = !!(
  6931. (newScopedSlots && !newScopedSlots.$stable) ||
  6932. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  6933. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  6934. );
  6935. // Any static slot children from the parent may have changed during parent's
  6936. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  6937. // update is necessary to ensure correctness.
  6938. var needsForceUpdate = !!(
  6939. renderChildren || // has new static slots
  6940. vm.$options._renderChildren || // has old static slots
  6941. hasDynamicScopedSlot
  6942. );
  6943. vm.$options._parentVnode = parentVnode;
  6944. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  6945. if (vm._vnode) { // update child tree's parent
  6946. vm._vnode.parent = parentVnode;
  6947. }
  6948. vm.$options._renderChildren = renderChildren;
  6949. // update $attrs and $listeners hash
  6950. // these are also reactive so they may trigger child update if the child
  6951. // used them during render
  6952. vm.$attrs = parentVnode.data.attrs || emptyObject;
  6953. vm.$listeners = listeners || emptyObject;
  6954. // update props
  6955. if (propsData && vm.$options.props) {
  6956. toggleObserving(false);
  6957. var props = vm._props;
  6958. var propKeys = vm.$options._propKeys || [];
  6959. for (var i = 0; i < propKeys.length; i++) {
  6960. var key = propKeys[i];
  6961. var propOptions = vm.$options.props; // wtf flow?
  6962. props[key] = validateProp(key, propOptions, propsData, vm);
  6963. }
  6964. toggleObserving(true);
  6965. // keep a copy of raw propsData
  6966. vm.$options.propsData = propsData;
  6967. }
  6968. // fixed by xxxxxx update properties(mp runtime)
  6969. vm._$updateProperties && vm._$updateProperties(vm);
  6970. // update listeners
  6971. listeners = listeners || emptyObject;
  6972. var oldListeners = vm.$options._parentListeners;
  6973. vm.$options._parentListeners = listeners;
  6974. updateComponentListeners(vm, listeners, oldListeners);
  6975. // resolve slots + force update if has children
  6976. if (needsForceUpdate) {
  6977. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  6978. vm.$forceUpdate();
  6979. }
  6980. if (true) {
  6981. isUpdatingChildComponent = false;
  6982. }
  6983. }
  6984. function isInInactiveTree (vm) {
  6985. while (vm && (vm = vm.$parent)) {
  6986. if (vm._inactive) { return true }
  6987. }
  6988. return false
  6989. }
  6990. function activateChildComponent (vm, direct) {
  6991. if (direct) {
  6992. vm._directInactive = false;
  6993. if (isInInactiveTree(vm)) {
  6994. return
  6995. }
  6996. } else if (vm._directInactive) {
  6997. return
  6998. }
  6999. if (vm._inactive || vm._inactive === null) {
  7000. vm._inactive = false;
  7001. for (var i = 0; i < vm.$children.length; i++) {
  7002. activateChildComponent(vm.$children[i]);
  7003. }
  7004. callHook(vm, 'activated');
  7005. }
  7006. }
  7007. function deactivateChildComponent (vm, direct) {
  7008. if (direct) {
  7009. vm._directInactive = true;
  7010. if (isInInactiveTree(vm)) {
  7011. return
  7012. }
  7013. }
  7014. if (!vm._inactive) {
  7015. vm._inactive = true;
  7016. for (var i = 0; i < vm.$children.length; i++) {
  7017. deactivateChildComponent(vm.$children[i]);
  7018. }
  7019. callHook(vm, 'deactivated');
  7020. }
  7021. }
  7022. function callHook (vm, hook) {
  7023. // #7573 disable dep collection when invoking lifecycle hooks
  7024. pushTarget();
  7025. var handlers = vm.$options[hook];
  7026. var info = hook + " hook";
  7027. if (handlers) {
  7028. for (var i = 0, j = handlers.length; i < j; i++) {
  7029. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  7030. }
  7031. }
  7032. if (vm._hasHookEvent) {
  7033. vm.$emit('hook:' + hook);
  7034. }
  7035. popTarget();
  7036. }
  7037. /* */
  7038. var MAX_UPDATE_COUNT = 100;
  7039. var queue = [];
  7040. var activatedChildren = [];
  7041. var has = {};
  7042. var circular = {};
  7043. var waiting = false;
  7044. var flushing = false;
  7045. var index = 0;
  7046. /**
  7047. * Reset the scheduler's state.
  7048. */
  7049. function resetSchedulerState () {
  7050. index = queue.length = activatedChildren.length = 0;
  7051. has = {};
  7052. if (true) {
  7053. circular = {};
  7054. }
  7055. waiting = flushing = false;
  7056. }
  7057. // Async edge case #6566 requires saving the timestamp when event listeners are
  7058. // attached. However, calling performance.now() has a perf overhead especially
  7059. // if the page has thousands of event listeners. Instead, we take a timestamp
  7060. // every time the scheduler flushes and use that for all event listeners
  7061. // attached during that flush.
  7062. var currentFlushTimestamp = 0;
  7063. // Async edge case fix requires storing an event listener's attach timestamp.
  7064. var getNow = Date.now;
  7065. // Determine what event timestamp the browser is using. Annoyingly, the
  7066. // timestamp can either be hi-res (relative to page load) or low-res
  7067. // (relative to UNIX epoch), so in order to compare time we have to use the
  7068. // same timestamp type when saving the flush timestamp.
  7069. // All IE versions use low-res event timestamps, and have problematic clock
  7070. // implementations (#9632)
  7071. if (inBrowser && !isIE) {
  7072. var performance = window.performance;
  7073. if (
  7074. performance &&
  7075. typeof performance.now === 'function' &&
  7076. getNow() > document.createEvent('Event').timeStamp
  7077. ) {
  7078. // if the event timestamp, although evaluated AFTER the Date.now(), is
  7079. // smaller than it, it means the event is using a hi-res timestamp,
  7080. // and we need to use the hi-res version for event listener timestamps as
  7081. // well.
  7082. getNow = function () { return performance.now(); };
  7083. }
  7084. }
  7085. /**
  7086. * Flush both queues and run the watchers.
  7087. */
  7088. function flushSchedulerQueue () {
  7089. currentFlushTimestamp = getNow();
  7090. flushing = true;
  7091. var watcher, id;
  7092. // Sort queue before flush.
  7093. // This ensures that:
  7094. // 1. Components are updated from parent to child. (because parent is always
  7095. // created before the child)
  7096. // 2. A component's user watchers are run before its render watcher (because
  7097. // user watchers are created before the render watcher)
  7098. // 3. If a component is destroyed during a parent component's watcher run,
  7099. // its watchers can be skipped.
  7100. queue.sort(function (a, b) { return a.id - b.id; });
  7101. // do not cache length because more watchers might be pushed
  7102. // as we run existing watchers
  7103. for (index = 0; index < queue.length; index++) {
  7104. watcher = queue[index];
  7105. if (watcher.before) {
  7106. watcher.before();
  7107. }
  7108. id = watcher.id;
  7109. has[id] = null;
  7110. watcher.run();
  7111. // in dev build, check and stop circular updates.
  7112. if ( true && has[id] != null) {
  7113. circular[id] = (circular[id] || 0) + 1;
  7114. if (circular[id] > MAX_UPDATE_COUNT) {
  7115. warn(
  7116. 'You may have an infinite update loop ' + (
  7117. watcher.user
  7118. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  7119. : "in a component render function."
  7120. ),
  7121. watcher.vm
  7122. );
  7123. break
  7124. }
  7125. }
  7126. }
  7127. // keep copies of post queues before resetting state
  7128. var activatedQueue = activatedChildren.slice();
  7129. var updatedQueue = queue.slice();
  7130. resetSchedulerState();
  7131. // call component updated and activated hooks
  7132. callActivatedHooks(activatedQueue);
  7133. callUpdatedHooks(updatedQueue);
  7134. // devtool hook
  7135. /* istanbul ignore if */
  7136. if (devtools && config.devtools) {
  7137. devtools.emit('flush');
  7138. }
  7139. }
  7140. function callUpdatedHooks (queue) {
  7141. var i = queue.length;
  7142. while (i--) {
  7143. var watcher = queue[i];
  7144. var vm = watcher.vm;
  7145. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  7146. callHook(vm, 'updated');
  7147. }
  7148. }
  7149. }
  7150. /**
  7151. * Queue a kept-alive component that was activated during patch.
  7152. * The queue will be processed after the entire tree has been patched.
  7153. */
  7154. function queueActivatedComponent (vm) {
  7155. // setting _inactive to false here so that a render function can
  7156. // rely on checking whether it's in an inactive tree (e.g. router-view)
  7157. vm._inactive = false;
  7158. activatedChildren.push(vm);
  7159. }
  7160. function callActivatedHooks (queue) {
  7161. for (var i = 0; i < queue.length; i++) {
  7162. queue[i]._inactive = true;
  7163. activateChildComponent(queue[i], true /* true */);
  7164. }
  7165. }
  7166. /**
  7167. * Push a watcher into the watcher queue.
  7168. * Jobs with duplicate IDs will be skipped unless it's
  7169. * pushed when the queue is being flushed.
  7170. */
  7171. function queueWatcher (watcher) {
  7172. var id = watcher.id;
  7173. if (has[id] == null) {
  7174. has[id] = true;
  7175. if (!flushing) {
  7176. queue.push(watcher);
  7177. } else {
  7178. // if already flushing, splice the watcher based on its id
  7179. // if already past its id, it will be run next immediately.
  7180. var i = queue.length - 1;
  7181. while (i > index && queue[i].id > watcher.id) {
  7182. i--;
  7183. }
  7184. queue.splice(i + 1, 0, watcher);
  7185. }
  7186. // queue the flush
  7187. if (!waiting) {
  7188. waiting = true;
  7189. if ( true && !config.async) {
  7190. flushSchedulerQueue();
  7191. return
  7192. }
  7193. nextTick(flushSchedulerQueue);
  7194. }
  7195. }
  7196. }
  7197. /* */
  7198. var uid$2 = 0;
  7199. /**
  7200. * A watcher parses an expression, collects dependencies,
  7201. * and fires callback when the expression value changes.
  7202. * This is used for both the $watch() api and directives.
  7203. */
  7204. var Watcher = function Watcher (
  7205. vm,
  7206. expOrFn,
  7207. cb,
  7208. options,
  7209. isRenderWatcher
  7210. ) {
  7211. this.vm = vm;
  7212. if (isRenderWatcher) {
  7213. vm._watcher = this;
  7214. }
  7215. vm._watchers.push(this);
  7216. // options
  7217. if (options) {
  7218. this.deep = !!options.deep;
  7219. this.user = !!options.user;
  7220. this.lazy = !!options.lazy;
  7221. this.sync = !!options.sync;
  7222. this.before = options.before;
  7223. } else {
  7224. this.deep = this.user = this.lazy = this.sync = false;
  7225. }
  7226. this.cb = cb;
  7227. this.id = ++uid$2; // uid for batching
  7228. this.active = true;
  7229. this.dirty = this.lazy; // for lazy watchers
  7230. this.deps = [];
  7231. this.newDeps = [];
  7232. this.depIds = new _Set();
  7233. this.newDepIds = new _Set();
  7234. this.expression = true
  7235. ? expOrFn.toString()
  7236. : undefined;
  7237. // parse expression for getter
  7238. if (typeof expOrFn === 'function') {
  7239. this.getter = expOrFn;
  7240. } else {
  7241. this.getter = parsePath(expOrFn);
  7242. if (!this.getter) {
  7243. this.getter = noop;
  7244. true && warn(
  7245. "Failed watching path: \"" + expOrFn + "\" " +
  7246. 'Watcher only accepts simple dot-delimited paths. ' +
  7247. 'For full control, use a function instead.',
  7248. vm
  7249. );
  7250. }
  7251. }
  7252. this.value = this.lazy
  7253. ? undefined
  7254. : this.get();
  7255. };
  7256. /**
  7257. * Evaluate the getter, and re-collect dependencies.
  7258. */
  7259. Watcher.prototype.get = function get () {
  7260. pushTarget(this);
  7261. var value;
  7262. var vm = this.vm;
  7263. try {
  7264. value = this.getter.call(vm, vm);
  7265. } catch (e) {
  7266. if (this.user) {
  7267. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  7268. } else {
  7269. throw e
  7270. }
  7271. } finally {
  7272. // "touch" every property so they are all tracked as
  7273. // dependencies for deep watching
  7274. if (this.deep) {
  7275. traverse(value);
  7276. }
  7277. popTarget();
  7278. this.cleanupDeps();
  7279. }
  7280. return value
  7281. };
  7282. /**
  7283. * Add a dependency to this directive.
  7284. */
  7285. Watcher.prototype.addDep = function addDep (dep) {
  7286. var id = dep.id;
  7287. if (!this.newDepIds.has(id)) {
  7288. this.newDepIds.add(id);
  7289. this.newDeps.push(dep);
  7290. if (!this.depIds.has(id)) {
  7291. dep.addSub(this);
  7292. }
  7293. }
  7294. };
  7295. /**
  7296. * Clean up for dependency collection.
  7297. */
  7298. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  7299. var i = this.deps.length;
  7300. while (i--) {
  7301. var dep = this.deps[i];
  7302. if (!this.newDepIds.has(dep.id)) {
  7303. dep.removeSub(this);
  7304. }
  7305. }
  7306. var tmp = this.depIds;
  7307. this.depIds = this.newDepIds;
  7308. this.newDepIds = tmp;
  7309. this.newDepIds.clear();
  7310. tmp = this.deps;
  7311. this.deps = this.newDeps;
  7312. this.newDeps = tmp;
  7313. this.newDeps.length = 0;
  7314. };
  7315. /**
  7316. * Subscriber interface.
  7317. * Will be called when a dependency changes.
  7318. */
  7319. Watcher.prototype.update = function update () {
  7320. /* istanbul ignore else */
  7321. if (this.lazy) {
  7322. this.dirty = true;
  7323. } else if (this.sync) {
  7324. this.run();
  7325. } else {
  7326. queueWatcher(this);
  7327. }
  7328. };
  7329. /**
  7330. * Scheduler job interface.
  7331. * Will be called by the scheduler.
  7332. */
  7333. Watcher.prototype.run = function run () {
  7334. if (this.active) {
  7335. var value = this.get();
  7336. if (
  7337. value !== this.value ||
  7338. // Deep watchers and watchers on Object/Arrays should fire even
  7339. // when the value is the same, because the value may
  7340. // have mutated.
  7341. isObject(value) ||
  7342. this.deep
  7343. ) {
  7344. // set new value
  7345. var oldValue = this.value;
  7346. this.value = value;
  7347. if (this.user) {
  7348. try {
  7349. this.cb.call(this.vm, value, oldValue);
  7350. } catch (e) {
  7351. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  7352. }
  7353. } else {
  7354. this.cb.call(this.vm, value, oldValue);
  7355. }
  7356. }
  7357. }
  7358. };
  7359. /**
  7360. * Evaluate the value of the watcher.
  7361. * This only gets called for lazy watchers.
  7362. */
  7363. Watcher.prototype.evaluate = function evaluate () {
  7364. this.value = this.get();
  7365. this.dirty = false;
  7366. };
  7367. /**
  7368. * Depend on all deps collected by this watcher.
  7369. */
  7370. Watcher.prototype.depend = function depend () {
  7371. var i = this.deps.length;
  7372. while (i--) {
  7373. this.deps[i].depend();
  7374. }
  7375. };
  7376. /**
  7377. * Remove self from all dependencies' subscriber list.
  7378. */
  7379. Watcher.prototype.teardown = function teardown () {
  7380. if (this.active) {
  7381. // remove self from vm's watcher list
  7382. // this is a somewhat expensive operation so we skip it
  7383. // if the vm is being destroyed.
  7384. if (!this.vm._isBeingDestroyed) {
  7385. remove(this.vm._watchers, this);
  7386. }
  7387. var i = this.deps.length;
  7388. while (i--) {
  7389. this.deps[i].removeSub(this);
  7390. }
  7391. this.active = false;
  7392. }
  7393. };
  7394. /* */
  7395. var sharedPropertyDefinition = {
  7396. enumerable: true,
  7397. configurable: true,
  7398. get: noop,
  7399. set: noop
  7400. };
  7401. function proxy (target, sourceKey, key) {
  7402. sharedPropertyDefinition.get = function proxyGetter () {
  7403. return this[sourceKey][key]
  7404. };
  7405. sharedPropertyDefinition.set = function proxySetter (val) {
  7406. this[sourceKey][key] = val;
  7407. };
  7408. Object.defineProperty(target, key, sharedPropertyDefinition);
  7409. }
  7410. function initState (vm) {
  7411. vm._watchers = [];
  7412. var opts = vm.$options;
  7413. if (opts.props) { initProps(vm, opts.props); }
  7414. if (opts.methods) { initMethods(vm, opts.methods); }
  7415. if (opts.data) {
  7416. initData(vm);
  7417. } else {
  7418. observe(vm._data = {}, true /* asRootData */);
  7419. }
  7420. if (opts.computed) { initComputed(vm, opts.computed); }
  7421. if (opts.watch && opts.watch !== nativeWatch) {
  7422. initWatch(vm, opts.watch);
  7423. }
  7424. }
  7425. function initProps (vm, propsOptions) {
  7426. var propsData = vm.$options.propsData || {};
  7427. var props = vm._props = {};
  7428. // cache prop keys so that future props updates can iterate using Array
  7429. // instead of dynamic object key enumeration.
  7430. var keys = vm.$options._propKeys = [];
  7431. var isRoot = !vm.$parent;
  7432. // root instance props should be converted
  7433. if (!isRoot) {
  7434. toggleObserving(false);
  7435. }
  7436. var loop = function ( key ) {
  7437. keys.push(key);
  7438. var value = validateProp(key, propsOptions, propsData, vm);
  7439. /* istanbul ignore else */
  7440. if (true) {
  7441. var hyphenatedKey = hyphenate(key);
  7442. if (isReservedAttribute(hyphenatedKey) ||
  7443. config.isReservedAttr(hyphenatedKey)) {
  7444. warn(
  7445. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  7446. vm
  7447. );
  7448. }
  7449. defineReactive$$1(props, key, value, function () {
  7450. if (!isRoot && !isUpdatingChildComponent) {
  7451. {
  7452. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  7453. return
  7454. }
  7455. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  7456. if(
  7457. key === 'value' &&
  7458. Array.isArray(vm.$options.behaviors) &&
  7459. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  7460. ){
  7461. return
  7462. }
  7463. if(vm._getFormData){
  7464. return
  7465. }
  7466. var $parent = vm.$parent;
  7467. while($parent){
  7468. if($parent.__next_tick_pending){
  7469. return
  7470. }
  7471. $parent = $parent.$parent;
  7472. }
  7473. }
  7474. warn(
  7475. "Avoid mutating a prop directly since the value will be " +
  7476. "overwritten whenever the parent component re-renders. " +
  7477. "Instead, use a data or computed property based on the prop's " +
  7478. "value. Prop being mutated: \"" + key + "\"",
  7479. vm
  7480. );
  7481. }
  7482. });
  7483. } else {}
  7484. // static props are already proxied on the component's prototype
  7485. // during Vue.extend(). We only need to proxy props defined at
  7486. // instantiation here.
  7487. if (!(key in vm)) {
  7488. proxy(vm, "_props", key);
  7489. }
  7490. };
  7491. for (var key in propsOptions) loop( key );
  7492. toggleObserving(true);
  7493. }
  7494. function initData (vm) {
  7495. var data = vm.$options.data;
  7496. data = vm._data = typeof data === 'function'
  7497. ? getData(data, vm)
  7498. : data || {};
  7499. if (!isPlainObject(data)) {
  7500. data = {};
  7501. true && warn(
  7502. 'data functions should return an object:\n' +
  7503. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  7504. vm
  7505. );
  7506. }
  7507. // proxy data on instance
  7508. var keys = Object.keys(data);
  7509. var props = vm.$options.props;
  7510. var methods = vm.$options.methods;
  7511. var i = keys.length;
  7512. while (i--) {
  7513. var key = keys[i];
  7514. if (true) {
  7515. if (methods && hasOwn(methods, key)) {
  7516. warn(
  7517. ("Method \"" + key + "\" has already been defined as a data property."),
  7518. vm
  7519. );
  7520. }
  7521. }
  7522. if (props && hasOwn(props, key)) {
  7523. true && warn(
  7524. "The data property \"" + key + "\" is already declared as a prop. " +
  7525. "Use prop default value instead.",
  7526. vm
  7527. );
  7528. } else if (!isReserved(key)) {
  7529. proxy(vm, "_data", key);
  7530. }
  7531. }
  7532. // observe data
  7533. observe(data, true /* asRootData */);
  7534. }
  7535. function getData (data, vm) {
  7536. // #7573 disable dep collection when invoking data getters
  7537. pushTarget();
  7538. try {
  7539. return data.call(vm, vm)
  7540. } catch (e) {
  7541. handleError(e, vm, "data()");
  7542. return {}
  7543. } finally {
  7544. popTarget();
  7545. }
  7546. }
  7547. var computedWatcherOptions = { lazy: true };
  7548. function initComputed (vm, computed) {
  7549. // $flow-disable-line
  7550. var watchers = vm._computedWatchers = Object.create(null);
  7551. // computed properties are just getters during SSR
  7552. var isSSR = isServerRendering();
  7553. for (var key in computed) {
  7554. var userDef = computed[key];
  7555. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  7556. if ( true && getter == null) {
  7557. warn(
  7558. ("Getter is missing for computed property \"" + key + "\"."),
  7559. vm
  7560. );
  7561. }
  7562. if (!isSSR) {
  7563. // create internal watcher for the computed property.
  7564. watchers[key] = new Watcher(
  7565. vm,
  7566. getter || noop,
  7567. noop,
  7568. computedWatcherOptions
  7569. );
  7570. }
  7571. // component-defined computed properties are already defined on the
  7572. // component prototype. We only need to define computed properties defined
  7573. // at instantiation here.
  7574. if (!(key in vm)) {
  7575. defineComputed(vm, key, userDef);
  7576. } else if (true) {
  7577. if (key in vm.$data) {
  7578. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  7579. } else if (vm.$options.props && key in vm.$options.props) {
  7580. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  7581. }
  7582. }
  7583. }
  7584. }
  7585. function defineComputed (
  7586. target,
  7587. key,
  7588. userDef
  7589. ) {
  7590. var shouldCache = !isServerRendering();
  7591. if (typeof userDef === 'function') {
  7592. sharedPropertyDefinition.get = shouldCache
  7593. ? createComputedGetter(key)
  7594. : createGetterInvoker(userDef);
  7595. sharedPropertyDefinition.set = noop;
  7596. } else {
  7597. sharedPropertyDefinition.get = userDef.get
  7598. ? shouldCache && userDef.cache !== false
  7599. ? createComputedGetter(key)
  7600. : createGetterInvoker(userDef.get)
  7601. : noop;
  7602. sharedPropertyDefinition.set = userDef.set || noop;
  7603. }
  7604. if ( true &&
  7605. sharedPropertyDefinition.set === noop) {
  7606. sharedPropertyDefinition.set = function () {
  7607. warn(
  7608. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  7609. this
  7610. );
  7611. };
  7612. }
  7613. Object.defineProperty(target, key, sharedPropertyDefinition);
  7614. }
  7615. function createComputedGetter (key) {
  7616. return function computedGetter () {
  7617. var watcher = this._computedWatchers && this._computedWatchers[key];
  7618. if (watcher) {
  7619. if (watcher.dirty) {
  7620. watcher.evaluate();
  7621. }
  7622. if (Dep.SharedObject.target) {// fixed by xxxxxx
  7623. watcher.depend();
  7624. }
  7625. return watcher.value
  7626. }
  7627. }
  7628. }
  7629. function createGetterInvoker(fn) {
  7630. return function computedGetter () {
  7631. return fn.call(this, this)
  7632. }
  7633. }
  7634. function initMethods (vm, methods) {
  7635. var props = vm.$options.props;
  7636. for (var key in methods) {
  7637. if (true) {
  7638. if (typeof methods[key] !== 'function') {
  7639. warn(
  7640. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  7641. "Did you reference the function correctly?",
  7642. vm
  7643. );
  7644. }
  7645. if (props && hasOwn(props, key)) {
  7646. warn(
  7647. ("Method \"" + key + "\" has already been defined as a prop."),
  7648. vm
  7649. );
  7650. }
  7651. if ((key in vm) && isReserved(key)) {
  7652. warn(
  7653. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  7654. "Avoid defining component methods that start with _ or $."
  7655. );
  7656. }
  7657. }
  7658. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  7659. }
  7660. }
  7661. function initWatch (vm, watch) {
  7662. for (var key in watch) {
  7663. var handler = watch[key];
  7664. if (Array.isArray(handler)) {
  7665. for (var i = 0; i < handler.length; i++) {
  7666. createWatcher(vm, key, handler[i]);
  7667. }
  7668. } else {
  7669. createWatcher(vm, key, handler);
  7670. }
  7671. }
  7672. }
  7673. function createWatcher (
  7674. vm,
  7675. expOrFn,
  7676. handler,
  7677. options
  7678. ) {
  7679. if (isPlainObject(handler)) {
  7680. options = handler;
  7681. handler = handler.handler;
  7682. }
  7683. if (typeof handler === 'string') {
  7684. handler = vm[handler];
  7685. }
  7686. return vm.$watch(expOrFn, handler, options)
  7687. }
  7688. function stateMixin (Vue) {
  7689. // flow somehow has problems with directly declared definition object
  7690. // when using Object.defineProperty, so we have to procedurally build up
  7691. // the object here.
  7692. var dataDef = {};
  7693. dataDef.get = function () { return this._data };
  7694. var propsDef = {};
  7695. propsDef.get = function () { return this._props };
  7696. if (true) {
  7697. dataDef.set = function () {
  7698. warn(
  7699. 'Avoid replacing instance root $data. ' +
  7700. 'Use nested data properties instead.',
  7701. this
  7702. );
  7703. };
  7704. propsDef.set = function () {
  7705. warn("$props is readonly.", this);
  7706. };
  7707. }
  7708. Object.defineProperty(Vue.prototype, '$data', dataDef);
  7709. Object.defineProperty(Vue.prototype, '$props', propsDef);
  7710. Vue.prototype.$set = set;
  7711. Vue.prototype.$delete = del;
  7712. Vue.prototype.$watch = function (
  7713. expOrFn,
  7714. cb,
  7715. options
  7716. ) {
  7717. var vm = this;
  7718. if (isPlainObject(cb)) {
  7719. return createWatcher(vm, expOrFn, cb, options)
  7720. }
  7721. options = options || {};
  7722. options.user = true;
  7723. var watcher = new Watcher(vm, expOrFn, cb, options);
  7724. if (options.immediate) {
  7725. try {
  7726. cb.call(vm, watcher.value);
  7727. } catch (error) {
  7728. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  7729. }
  7730. }
  7731. return function unwatchFn () {
  7732. watcher.teardown();
  7733. }
  7734. };
  7735. }
  7736. /* */
  7737. var uid$3 = 0;
  7738. function initMixin (Vue) {
  7739. Vue.prototype._init = function (options) {
  7740. var vm = this;
  7741. // a uid
  7742. vm._uid = uid$3++;
  7743. var startTag, endTag;
  7744. /* istanbul ignore if */
  7745. if ( true && config.performance && mark) {
  7746. startTag = "vue-perf-start:" + (vm._uid);
  7747. endTag = "vue-perf-end:" + (vm._uid);
  7748. mark(startTag);
  7749. }
  7750. // a flag to avoid this being observed
  7751. vm._isVue = true;
  7752. // merge options
  7753. if (options && options._isComponent) {
  7754. // optimize internal component instantiation
  7755. // since dynamic options merging is pretty slow, and none of the
  7756. // internal component options needs special treatment.
  7757. initInternalComponent(vm, options);
  7758. } else {
  7759. vm.$options = mergeOptions(
  7760. resolveConstructorOptions(vm.constructor),
  7761. options || {},
  7762. vm
  7763. );
  7764. }
  7765. /* istanbul ignore else */
  7766. if (true) {
  7767. initProxy(vm);
  7768. } else {}
  7769. // expose real self
  7770. vm._self = vm;
  7771. initLifecycle(vm);
  7772. initEvents(vm);
  7773. initRender(vm);
  7774. callHook(vm, 'beforeCreate');
  7775. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  7776. initState(vm);
  7777. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  7778. !vm._$fallback && callHook(vm, 'created');
  7779. /* istanbul ignore if */
  7780. if ( true && config.performance && mark) {
  7781. vm._name = formatComponentName(vm, false);
  7782. mark(endTag);
  7783. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  7784. }
  7785. if (vm.$options.el) {
  7786. vm.$mount(vm.$options.el);
  7787. }
  7788. };
  7789. }
  7790. function initInternalComponent (vm, options) {
  7791. var opts = vm.$options = Object.create(vm.constructor.options);
  7792. // doing this because it's faster than dynamic enumeration.
  7793. var parentVnode = options._parentVnode;
  7794. opts.parent = options.parent;
  7795. opts._parentVnode = parentVnode;
  7796. var vnodeComponentOptions = parentVnode.componentOptions;
  7797. opts.propsData = vnodeComponentOptions.propsData;
  7798. opts._parentListeners = vnodeComponentOptions.listeners;
  7799. opts._renderChildren = vnodeComponentOptions.children;
  7800. opts._componentTag = vnodeComponentOptions.tag;
  7801. if (options.render) {
  7802. opts.render = options.render;
  7803. opts.staticRenderFns = options.staticRenderFns;
  7804. }
  7805. }
  7806. function resolveConstructorOptions (Ctor) {
  7807. var options = Ctor.options;
  7808. if (Ctor.super) {
  7809. var superOptions = resolveConstructorOptions(Ctor.super);
  7810. var cachedSuperOptions = Ctor.superOptions;
  7811. if (superOptions !== cachedSuperOptions) {
  7812. // super option changed,
  7813. // need to resolve new options.
  7814. Ctor.superOptions = superOptions;
  7815. // check if there are any late-modified/attached options (#4976)
  7816. var modifiedOptions = resolveModifiedOptions(Ctor);
  7817. // update base extend options
  7818. if (modifiedOptions) {
  7819. extend(Ctor.extendOptions, modifiedOptions);
  7820. }
  7821. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  7822. if (options.name) {
  7823. options.components[options.name] = Ctor;
  7824. }
  7825. }
  7826. }
  7827. return options
  7828. }
  7829. function resolveModifiedOptions (Ctor) {
  7830. var modified;
  7831. var latest = Ctor.options;
  7832. var sealed = Ctor.sealedOptions;
  7833. for (var key in latest) {
  7834. if (latest[key] !== sealed[key]) {
  7835. if (!modified) { modified = {}; }
  7836. modified[key] = latest[key];
  7837. }
  7838. }
  7839. return modified
  7840. }
  7841. function Vue (options) {
  7842. if ( true &&
  7843. !(this instanceof Vue)
  7844. ) {
  7845. warn('Vue is a constructor and should be called with the `new` keyword');
  7846. }
  7847. this._init(options);
  7848. }
  7849. initMixin(Vue);
  7850. stateMixin(Vue);
  7851. eventsMixin(Vue);
  7852. lifecycleMixin(Vue);
  7853. renderMixin(Vue);
  7854. /* */
  7855. function initUse (Vue) {
  7856. Vue.use = function (plugin) {
  7857. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  7858. if (installedPlugins.indexOf(plugin) > -1) {
  7859. return this
  7860. }
  7861. // additional parameters
  7862. var args = toArray(arguments, 1);
  7863. args.unshift(this);
  7864. if (typeof plugin.install === 'function') {
  7865. plugin.install.apply(plugin, args);
  7866. } else if (typeof plugin === 'function') {
  7867. plugin.apply(null, args);
  7868. }
  7869. installedPlugins.push(plugin);
  7870. return this
  7871. };
  7872. }
  7873. /* */
  7874. function initMixin$1 (Vue) {
  7875. Vue.mixin = function (mixin) {
  7876. this.options = mergeOptions(this.options, mixin);
  7877. return this
  7878. };
  7879. }
  7880. /* */
  7881. function initExtend (Vue) {
  7882. /**
  7883. * Each instance constructor, including Vue, has a unique
  7884. * cid. This enables us to create wrapped "child
  7885. * constructors" for prototypal inheritance and cache them.
  7886. */
  7887. Vue.cid = 0;
  7888. var cid = 1;
  7889. /**
  7890. * Class inheritance
  7891. */
  7892. Vue.extend = function (extendOptions) {
  7893. extendOptions = extendOptions || {};
  7894. var Super = this;
  7895. var SuperId = Super.cid;
  7896. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  7897. if (cachedCtors[SuperId]) {
  7898. return cachedCtors[SuperId]
  7899. }
  7900. var name = extendOptions.name || Super.options.name;
  7901. if ( true && name) {
  7902. validateComponentName(name);
  7903. }
  7904. var Sub = function VueComponent (options) {
  7905. this._init(options);
  7906. };
  7907. Sub.prototype = Object.create(Super.prototype);
  7908. Sub.prototype.constructor = Sub;
  7909. Sub.cid = cid++;
  7910. Sub.options = mergeOptions(
  7911. Super.options,
  7912. extendOptions
  7913. );
  7914. Sub['super'] = Super;
  7915. // For props and computed properties, we define the proxy getters on
  7916. // the Vue instances at extension time, on the extended prototype. This
  7917. // avoids Object.defineProperty calls for each instance created.
  7918. if (Sub.options.props) {
  7919. initProps$1(Sub);
  7920. }
  7921. if (Sub.options.computed) {
  7922. initComputed$1(Sub);
  7923. }
  7924. // allow further extension/mixin/plugin usage
  7925. Sub.extend = Super.extend;
  7926. Sub.mixin = Super.mixin;
  7927. Sub.use = Super.use;
  7928. // create asset registers, so extended classes
  7929. // can have their private assets too.
  7930. ASSET_TYPES.forEach(function (type) {
  7931. Sub[type] = Super[type];
  7932. });
  7933. // enable recursive self-lookup
  7934. if (name) {
  7935. Sub.options.components[name] = Sub;
  7936. }
  7937. // keep a reference to the super options at extension time.
  7938. // later at instantiation we can check if Super's options have
  7939. // been updated.
  7940. Sub.superOptions = Super.options;
  7941. Sub.extendOptions = extendOptions;
  7942. Sub.sealedOptions = extend({}, Sub.options);
  7943. // cache constructor
  7944. cachedCtors[SuperId] = Sub;
  7945. return Sub
  7946. };
  7947. }
  7948. function initProps$1 (Comp) {
  7949. var props = Comp.options.props;
  7950. for (var key in props) {
  7951. proxy(Comp.prototype, "_props", key);
  7952. }
  7953. }
  7954. function initComputed$1 (Comp) {
  7955. var computed = Comp.options.computed;
  7956. for (var key in computed) {
  7957. defineComputed(Comp.prototype, key, computed[key]);
  7958. }
  7959. }
  7960. /* */
  7961. function initAssetRegisters (Vue) {
  7962. /**
  7963. * Create asset registration methods.
  7964. */
  7965. ASSET_TYPES.forEach(function (type) {
  7966. Vue[type] = function (
  7967. id,
  7968. definition
  7969. ) {
  7970. if (!definition) {
  7971. return this.options[type + 's'][id]
  7972. } else {
  7973. /* istanbul ignore if */
  7974. if ( true && type === 'component') {
  7975. validateComponentName(id);
  7976. }
  7977. if (type === 'component' && isPlainObject(definition)) {
  7978. definition.name = definition.name || id;
  7979. definition = this.options._base.extend(definition);
  7980. }
  7981. if (type === 'directive' && typeof definition === 'function') {
  7982. definition = { bind: definition, update: definition };
  7983. }
  7984. this.options[type + 's'][id] = definition;
  7985. return definition
  7986. }
  7987. };
  7988. });
  7989. }
  7990. /* */
  7991. function getComponentName (opts) {
  7992. return opts && (opts.Ctor.options.name || opts.tag)
  7993. }
  7994. function matches (pattern, name) {
  7995. if (Array.isArray(pattern)) {
  7996. return pattern.indexOf(name) > -1
  7997. } else if (typeof pattern === 'string') {
  7998. return pattern.split(',').indexOf(name) > -1
  7999. } else if (isRegExp(pattern)) {
  8000. return pattern.test(name)
  8001. }
  8002. /* istanbul ignore next */
  8003. return false
  8004. }
  8005. function pruneCache (keepAliveInstance, filter) {
  8006. var cache = keepAliveInstance.cache;
  8007. var keys = keepAliveInstance.keys;
  8008. var _vnode = keepAliveInstance._vnode;
  8009. for (var key in cache) {
  8010. var cachedNode = cache[key];
  8011. if (cachedNode) {
  8012. var name = getComponentName(cachedNode.componentOptions);
  8013. if (name && !filter(name)) {
  8014. pruneCacheEntry(cache, key, keys, _vnode);
  8015. }
  8016. }
  8017. }
  8018. }
  8019. function pruneCacheEntry (
  8020. cache,
  8021. key,
  8022. keys,
  8023. current
  8024. ) {
  8025. var cached$$1 = cache[key];
  8026. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  8027. cached$$1.componentInstance.$destroy();
  8028. }
  8029. cache[key] = null;
  8030. remove(keys, key);
  8031. }
  8032. var patternTypes = [String, RegExp, Array];
  8033. var KeepAlive = {
  8034. name: 'keep-alive',
  8035. abstract: true,
  8036. props: {
  8037. include: patternTypes,
  8038. exclude: patternTypes,
  8039. max: [String, Number]
  8040. },
  8041. created: function created () {
  8042. this.cache = Object.create(null);
  8043. this.keys = [];
  8044. },
  8045. destroyed: function destroyed () {
  8046. for (var key in this.cache) {
  8047. pruneCacheEntry(this.cache, key, this.keys);
  8048. }
  8049. },
  8050. mounted: function mounted () {
  8051. var this$1 = this;
  8052. this.$watch('include', function (val) {
  8053. pruneCache(this$1, function (name) { return matches(val, name); });
  8054. });
  8055. this.$watch('exclude', function (val) {
  8056. pruneCache(this$1, function (name) { return !matches(val, name); });
  8057. });
  8058. },
  8059. render: function render () {
  8060. var slot = this.$slots.default;
  8061. var vnode = getFirstComponentChild(slot);
  8062. var componentOptions = vnode && vnode.componentOptions;
  8063. if (componentOptions) {
  8064. // check pattern
  8065. var name = getComponentName(componentOptions);
  8066. var ref = this;
  8067. var include = ref.include;
  8068. var exclude = ref.exclude;
  8069. if (
  8070. // not included
  8071. (include && (!name || !matches(include, name))) ||
  8072. // excluded
  8073. (exclude && name && matches(exclude, name))
  8074. ) {
  8075. return vnode
  8076. }
  8077. var ref$1 = this;
  8078. var cache = ref$1.cache;
  8079. var keys = ref$1.keys;
  8080. var key = vnode.key == null
  8081. // same constructor may get registered as different local components
  8082. // so cid alone is not enough (#3269)
  8083. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  8084. : vnode.key;
  8085. if (cache[key]) {
  8086. vnode.componentInstance = cache[key].componentInstance;
  8087. // make current key freshest
  8088. remove(keys, key);
  8089. keys.push(key);
  8090. } else {
  8091. cache[key] = vnode;
  8092. keys.push(key);
  8093. // prune oldest entry
  8094. if (this.max && keys.length > parseInt(this.max)) {
  8095. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  8096. }
  8097. }
  8098. vnode.data.keepAlive = true;
  8099. }
  8100. return vnode || (slot && slot[0])
  8101. }
  8102. };
  8103. var builtInComponents = {
  8104. KeepAlive: KeepAlive
  8105. };
  8106. /* */
  8107. function initGlobalAPI (Vue) {
  8108. // config
  8109. var configDef = {};
  8110. configDef.get = function () { return config; };
  8111. if (true) {
  8112. configDef.set = function () {
  8113. warn(
  8114. 'Do not replace the Vue.config object, set individual fields instead.'
  8115. );
  8116. };
  8117. }
  8118. Object.defineProperty(Vue, 'config', configDef);
  8119. // exposed util methods.
  8120. // NOTE: these are not considered part of the public API - avoid relying on
  8121. // them unless you are aware of the risk.
  8122. Vue.util = {
  8123. warn: warn,
  8124. extend: extend,
  8125. mergeOptions: mergeOptions,
  8126. defineReactive: defineReactive$$1
  8127. };
  8128. Vue.set = set;
  8129. Vue.delete = del;
  8130. Vue.nextTick = nextTick;
  8131. // 2.6 explicit observable API
  8132. Vue.observable = function (obj) {
  8133. observe(obj);
  8134. return obj
  8135. };
  8136. Vue.options = Object.create(null);
  8137. ASSET_TYPES.forEach(function (type) {
  8138. Vue.options[type + 's'] = Object.create(null);
  8139. });
  8140. // this is used to identify the "base" constructor to extend all plain-object
  8141. // components with in Weex's multi-instance scenarios.
  8142. Vue.options._base = Vue;
  8143. extend(Vue.options.components, builtInComponents);
  8144. initUse(Vue);
  8145. initMixin$1(Vue);
  8146. initExtend(Vue);
  8147. initAssetRegisters(Vue);
  8148. }
  8149. initGlobalAPI(Vue);
  8150. Object.defineProperty(Vue.prototype, '$isServer', {
  8151. get: isServerRendering
  8152. });
  8153. Object.defineProperty(Vue.prototype, '$ssrContext', {
  8154. get: function get () {
  8155. /* istanbul ignore next */
  8156. return this.$vnode && this.$vnode.ssrContext
  8157. }
  8158. });
  8159. // expose FunctionalRenderContext for ssr runtime helper installation
  8160. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  8161. value: FunctionalRenderContext
  8162. });
  8163. Vue.version = '2.6.11';
  8164. /**
  8165. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  8166. */
  8167. var ARRAYTYPE = '[object Array]';
  8168. var OBJECTTYPE = '[object Object]';
  8169. var NULLTYPE = '[object Null]';
  8170. var UNDEFINEDTYPE = '[object Undefined]';
  8171. // const FUNCTIONTYPE = '[object Function]'
  8172. function diff(current, pre) {
  8173. var result = {};
  8174. syncKeys(current, pre);
  8175. _diff(current, pre, '', result);
  8176. return result
  8177. }
  8178. function syncKeys(current, pre) {
  8179. if (current === pre) { return }
  8180. var rootCurrentType = type(current);
  8181. var rootPreType = type(pre);
  8182. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  8183. if(Object.keys(current).length >= Object.keys(pre).length){
  8184. for (var key in pre) {
  8185. var currentValue = current[key];
  8186. if (currentValue === undefined) {
  8187. current[key] = null;
  8188. } else {
  8189. syncKeys(currentValue, pre[key]);
  8190. }
  8191. }
  8192. }
  8193. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  8194. if (current.length >= pre.length) {
  8195. pre.forEach(function (item, index) {
  8196. syncKeys(current[index], item);
  8197. });
  8198. }
  8199. }
  8200. }
  8201. function nullOrUndefined(currentType, preType) {
  8202. if(
  8203. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  8204. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  8205. ) {
  8206. return false
  8207. }
  8208. return true
  8209. }
  8210. function _diff(current, pre, path, result) {
  8211. if (current === pre) { return }
  8212. var rootCurrentType = type(current);
  8213. var rootPreType = type(pre);
  8214. if (rootCurrentType == OBJECTTYPE) {
  8215. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  8216. setResult(result, path, current);
  8217. } else {
  8218. var loop = function ( key ) {
  8219. var currentValue = current[key];
  8220. var preValue = pre[key];
  8221. var currentType = type(currentValue);
  8222. var preType = type(preValue);
  8223. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  8224. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  8225. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8226. }
  8227. } else if (currentType == ARRAYTYPE) {
  8228. if (preType != ARRAYTYPE) {
  8229. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8230. } else {
  8231. if (currentValue.length < preValue.length) {
  8232. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8233. } else {
  8234. currentValue.forEach(function (item, index) {
  8235. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  8236. });
  8237. }
  8238. }
  8239. } else if (currentType == OBJECTTYPE) {
  8240. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  8241. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8242. } else {
  8243. for (var subKey in currentValue) {
  8244. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  8245. }
  8246. }
  8247. }
  8248. };
  8249. for (var key in current) loop( key );
  8250. }
  8251. } else if (rootCurrentType == ARRAYTYPE) {
  8252. if (rootPreType != ARRAYTYPE) {
  8253. setResult(result, path, current);
  8254. } else {
  8255. if (current.length < pre.length) {
  8256. setResult(result, path, current);
  8257. } else {
  8258. current.forEach(function (item, index) {
  8259. _diff(item, pre[index], path + '[' + index + ']', result);
  8260. });
  8261. }
  8262. }
  8263. } else {
  8264. setResult(result, path, current);
  8265. }
  8266. }
  8267. function setResult(result, k, v) {
  8268. // if (type(v) != FUNCTIONTYPE) {
  8269. result[k] = v;
  8270. // }
  8271. }
  8272. function type(obj) {
  8273. return Object.prototype.toString.call(obj)
  8274. }
  8275. /* */
  8276. function flushCallbacks$1(vm) {
  8277. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  8278. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"saas_manager","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8279. var mpInstance = vm.$scope;
  8280. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8281. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  8282. }
  8283. var copies = vm.__next_tick_callbacks.slice(0);
  8284. vm.__next_tick_callbacks.length = 0;
  8285. for (var i = 0; i < copies.length; i++) {
  8286. copies[i]();
  8287. }
  8288. }
  8289. }
  8290. function hasRenderWatcher(vm) {
  8291. return queue.find(function (watcher) { return vm._watcher === watcher; })
  8292. }
  8293. function nextTick$1(vm, cb) {
  8294. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  8295. //2.nextTick 之前存在 render watcher
  8296. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  8297. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"saas_manager","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8298. var mpInstance = vm.$scope;
  8299. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8300. ']:nextVueTick');
  8301. }
  8302. return nextTick(cb, vm)
  8303. }else{
  8304. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"saas_manager","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8305. var mpInstance$1 = vm.$scope;
  8306. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  8307. ']:nextMPTick');
  8308. }
  8309. }
  8310. var _resolve;
  8311. if (!vm.__next_tick_callbacks) {
  8312. vm.__next_tick_callbacks = [];
  8313. }
  8314. vm.__next_tick_callbacks.push(function () {
  8315. if (cb) {
  8316. try {
  8317. cb.call(vm);
  8318. } catch (e) {
  8319. handleError(e, vm, 'nextTick');
  8320. }
  8321. } else if (_resolve) {
  8322. _resolve(vm);
  8323. }
  8324. });
  8325. // $flow-disable-line
  8326. if (!cb && typeof Promise !== 'undefined') {
  8327. return new Promise(function (resolve) {
  8328. _resolve = resolve;
  8329. })
  8330. }
  8331. }
  8332. /* */
  8333. function clearInstance(key, value) {
  8334. // 简易去除 Vue 和小程序组件实例
  8335. if (value) {
  8336. if (value._isVue || value.__v_isMPComponent) {
  8337. return {}
  8338. }
  8339. }
  8340. return value
  8341. }
  8342. function cloneWithData(vm) {
  8343. // 确保当前 vm 所有数据被同步
  8344. var ret = Object.create(null);
  8345. var dataKeys = [].concat(
  8346. Object.keys(vm._data || {}),
  8347. Object.keys(vm._computedWatchers || {}));
  8348. dataKeys.reduce(function(ret, key) {
  8349. ret[key] = vm[key];
  8350. return ret
  8351. }, ret);
  8352. // vue-composition-api
  8353. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  8354. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  8355. if (rawBindings) {
  8356. Object.keys(rawBindings).forEach(function (key) {
  8357. ret[key] = vm[key];
  8358. });
  8359. }
  8360. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  8361. Object.assign(ret, vm.$mp.data || {});
  8362. if (
  8363. Array.isArray(vm.$options.behaviors) &&
  8364. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  8365. ) { //form-field
  8366. ret['name'] = vm.name;
  8367. ret['value'] = vm.value;
  8368. }
  8369. return JSON.parse(JSON.stringify(ret, clearInstance))
  8370. }
  8371. var patch = function(oldVnode, vnode) {
  8372. var this$1 = this;
  8373. if (vnode === null) { //destroy
  8374. return
  8375. }
  8376. if (this.mpType === 'page' || this.mpType === 'component') {
  8377. var mpInstance = this.$scope;
  8378. var data = Object.create(null);
  8379. try {
  8380. data = cloneWithData(this);
  8381. } catch (err) {
  8382. console.error(err);
  8383. }
  8384. data.__webviewId__ = mpInstance.data.__webviewId__;
  8385. var mpData = Object.create(null);
  8386. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  8387. mpData[key] = mpInstance.data[key];
  8388. });
  8389. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  8390. if (Object.keys(diffData).length) {
  8391. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"saas_manager","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8392. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  8393. ']差量更新',
  8394. JSON.stringify(diffData));
  8395. }
  8396. this.__next_tick_pending = true;
  8397. mpInstance.setData(diffData, function () {
  8398. this$1.__next_tick_pending = false;
  8399. flushCallbacks$1(this$1);
  8400. });
  8401. } else {
  8402. flushCallbacks$1(this);
  8403. }
  8404. }
  8405. };
  8406. /* */
  8407. function createEmptyRender() {
  8408. }
  8409. function mountComponent$1(
  8410. vm,
  8411. el,
  8412. hydrating
  8413. ) {
  8414. if (!vm.mpType) {//main.js 中的 new Vue
  8415. return vm
  8416. }
  8417. if (vm.mpType === 'app') {
  8418. vm.$options.render = createEmptyRender;
  8419. }
  8420. if (!vm.$options.render) {
  8421. vm.$options.render = createEmptyRender;
  8422. if (true) {
  8423. /* istanbul ignore if */
  8424. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  8425. vm.$options.el || el) {
  8426. warn(
  8427. 'You are using the runtime-only build of Vue where the template ' +
  8428. 'compiler is not available. Either pre-compile the templates into ' +
  8429. 'render functions, or use the compiler-included build.',
  8430. vm
  8431. );
  8432. } else {
  8433. warn(
  8434. 'Failed to mount component: template or render function not defined.',
  8435. vm
  8436. );
  8437. }
  8438. }
  8439. }
  8440. !vm._$fallback && callHook(vm, 'beforeMount');
  8441. var updateComponent = function () {
  8442. vm._update(vm._render(), hydrating);
  8443. };
  8444. // we set this to vm._watcher inside the watcher's constructor
  8445. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  8446. // component's mounted hook), which relies on vm._watcher being already defined
  8447. new Watcher(vm, updateComponent, noop, {
  8448. before: function before() {
  8449. if (vm._isMounted && !vm._isDestroyed) {
  8450. callHook(vm, 'beforeUpdate');
  8451. }
  8452. }
  8453. }, true /* isRenderWatcher */);
  8454. hydrating = false;
  8455. return vm
  8456. }
  8457. /* */
  8458. function renderClass (
  8459. staticClass,
  8460. dynamicClass
  8461. ) {
  8462. if (isDef(staticClass) || isDef(dynamicClass)) {
  8463. return concat(staticClass, stringifyClass(dynamicClass))
  8464. }
  8465. /* istanbul ignore next */
  8466. return ''
  8467. }
  8468. function concat (a, b) {
  8469. return a ? b ? (a + ' ' + b) : a : (b || '')
  8470. }
  8471. function stringifyClass (value) {
  8472. if (Array.isArray(value)) {
  8473. return stringifyArray(value)
  8474. }
  8475. if (isObject(value)) {
  8476. return stringifyObject(value)
  8477. }
  8478. if (typeof value === 'string') {
  8479. return value
  8480. }
  8481. /* istanbul ignore next */
  8482. return ''
  8483. }
  8484. function stringifyArray (value) {
  8485. var res = '';
  8486. var stringified;
  8487. for (var i = 0, l = value.length; i < l; i++) {
  8488. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  8489. if (res) { res += ' '; }
  8490. res += stringified;
  8491. }
  8492. }
  8493. return res
  8494. }
  8495. function stringifyObject (value) {
  8496. var res = '';
  8497. for (var key in value) {
  8498. if (value[key]) {
  8499. if (res) { res += ' '; }
  8500. res += key;
  8501. }
  8502. }
  8503. return res
  8504. }
  8505. /* */
  8506. var parseStyleText = cached(function (cssText) {
  8507. var res = {};
  8508. var listDelimiter = /;(?![^(]*\))/g;
  8509. var propertyDelimiter = /:(.+)/;
  8510. cssText.split(listDelimiter).forEach(function (item) {
  8511. if (item) {
  8512. var tmp = item.split(propertyDelimiter);
  8513. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  8514. }
  8515. });
  8516. return res
  8517. });
  8518. // normalize possible array / string values into Object
  8519. function normalizeStyleBinding (bindingStyle) {
  8520. if (Array.isArray(bindingStyle)) {
  8521. return toObject(bindingStyle)
  8522. }
  8523. if (typeof bindingStyle === 'string') {
  8524. return parseStyleText(bindingStyle)
  8525. }
  8526. return bindingStyle
  8527. }
  8528. /* */
  8529. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  8530. function getTarget(obj, path) {
  8531. var parts = path.split('.');
  8532. var key = parts[0];
  8533. if (key.indexOf('__$n') === 0) { //number index
  8534. key = parseInt(key.replace('__$n', ''));
  8535. }
  8536. if (parts.length === 1) {
  8537. return obj[key]
  8538. }
  8539. return getTarget(obj[key], parts.slice(1).join('.'))
  8540. }
  8541. function internalMixin(Vue) {
  8542. Vue.config.errorHandler = function(err, vm, info) {
  8543. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  8544. console.error(err);
  8545. /* eslint-disable no-undef */
  8546. var app = typeof getApp === 'function' && getApp();
  8547. if (app && app.onError) {
  8548. app.onError(err);
  8549. }
  8550. };
  8551. var oldEmit = Vue.prototype.$emit;
  8552. Vue.prototype.$emit = function(event) {
  8553. if (this.$scope && event) {
  8554. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  8555. if (triggerEvent) {
  8556. try {
  8557. triggerEvent.call(this.$scope, event, {
  8558. __args__: toArray(arguments, 1)
  8559. });
  8560. } catch (error) {
  8561. }
  8562. }
  8563. }
  8564. return oldEmit.apply(this, arguments)
  8565. };
  8566. Vue.prototype.$nextTick = function(fn) {
  8567. return nextTick$1(this, fn)
  8568. };
  8569. MP_METHODS.forEach(function (method) {
  8570. Vue.prototype[method] = function(args) {
  8571. if (this.$scope && this.$scope[method]) {
  8572. return this.$scope[method](args)
  8573. }
  8574. // mp-alipay
  8575. if (typeof my === 'undefined') {
  8576. return
  8577. }
  8578. if (method === 'createSelectorQuery') {
  8579. /* eslint-disable no-undef */
  8580. return my.createSelectorQuery(args)
  8581. } else if (method === 'createIntersectionObserver') {
  8582. /* eslint-disable no-undef */
  8583. return my.createIntersectionObserver(args)
  8584. }
  8585. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  8586. };
  8587. });
  8588. Vue.prototype.__init_provide = initProvide;
  8589. Vue.prototype.__init_injections = initInjections;
  8590. Vue.prototype.__call_hook = function(hook, args) {
  8591. var vm = this;
  8592. // #7573 disable dep collection when invoking lifecycle hooks
  8593. pushTarget();
  8594. var handlers = vm.$options[hook];
  8595. var info = hook + " hook";
  8596. var ret;
  8597. if (handlers) {
  8598. for (var i = 0, j = handlers.length; i < j; i++) {
  8599. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  8600. }
  8601. }
  8602. if (vm._hasHookEvent) {
  8603. vm.$emit('hook:' + hook, args);
  8604. }
  8605. popTarget();
  8606. return ret
  8607. };
  8608. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  8609. if (Array.isArray(modifiers)) {
  8610. if (modifiers.indexOf('trim') !== -1) {
  8611. value = value.trim();
  8612. }
  8613. if (modifiers.indexOf('number') !== -1) {
  8614. value = this._n(value);
  8615. }
  8616. }
  8617. if (!target) {
  8618. target = this;
  8619. }
  8620. // 解决动态属性添加
  8621. Vue.set(target, key, value);
  8622. };
  8623. Vue.prototype.__set_sync = function(target, key, value) {
  8624. if (!target) {
  8625. target = this;
  8626. }
  8627. // 解决动态属性添加
  8628. Vue.set(target, key, value);
  8629. };
  8630. Vue.prototype.__get_orig = function(item) {
  8631. if (isPlainObject(item)) {
  8632. return item['$orig'] || item
  8633. }
  8634. return item
  8635. };
  8636. Vue.prototype.__get_value = function(dataPath, target) {
  8637. return getTarget(target || this, dataPath)
  8638. };
  8639. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  8640. return renderClass(staticClass, dynamicClass)
  8641. };
  8642. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  8643. if (!dynamicStyle && !staticStyle) {
  8644. return ''
  8645. }
  8646. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  8647. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  8648. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  8649. };
  8650. Vue.prototype.__map = function(val, iteratee) {
  8651. //TODO 暂不考虑 string
  8652. var ret, i, l, keys, key;
  8653. if (Array.isArray(val)) {
  8654. ret = new Array(val.length);
  8655. for (i = 0, l = val.length; i < l; i++) {
  8656. ret[i] = iteratee(val[i], i);
  8657. }
  8658. return ret
  8659. } else if (isObject(val)) {
  8660. keys = Object.keys(val);
  8661. ret = Object.create(null);
  8662. for (i = 0, l = keys.length; i < l; i++) {
  8663. key = keys[i];
  8664. ret[key] = iteratee(val[key], key, i);
  8665. }
  8666. return ret
  8667. } else if (typeof val === 'number') {
  8668. ret = new Array(val);
  8669. for (i = 0, l = val; i < l; i++) {
  8670. // 第一个参数暂时仍和小程序一致
  8671. ret[i] = iteratee(i, i);
  8672. }
  8673. return ret
  8674. }
  8675. return []
  8676. };
  8677. }
  8678. /* */
  8679. var LIFECYCLE_HOOKS$1 = [
  8680. //App
  8681. 'onLaunch',
  8682. 'onShow',
  8683. 'onHide',
  8684. 'onUniNViewMessage',
  8685. 'onPageNotFound',
  8686. 'onThemeChange',
  8687. 'onError',
  8688. 'onUnhandledRejection',
  8689. //Page
  8690. 'onInit',
  8691. 'onLoad',
  8692. // 'onShow',
  8693. 'onReady',
  8694. // 'onHide',
  8695. 'onUnload',
  8696. 'onPullDownRefresh',
  8697. 'onReachBottom',
  8698. 'onTabItemTap',
  8699. 'onAddToFavorites',
  8700. 'onShareTimeline',
  8701. 'onShareAppMessage',
  8702. 'onResize',
  8703. 'onPageScroll',
  8704. 'onNavigationBarButtonTap',
  8705. 'onBackPress',
  8706. 'onNavigationBarSearchInputChanged',
  8707. 'onNavigationBarSearchInputConfirmed',
  8708. 'onNavigationBarSearchInputClicked',
  8709. //Component
  8710. // 'onReady', // 兼容旧版本,应该移除该事件
  8711. 'onPageShow',
  8712. 'onPageHide',
  8713. 'onPageResize',
  8714. 'onUploadDouyinVideo'
  8715. ];
  8716. function lifecycleMixin$1(Vue) {
  8717. //fixed vue-class-component
  8718. var oldExtend = Vue.extend;
  8719. Vue.extend = function(extendOptions) {
  8720. extendOptions = extendOptions || {};
  8721. var methods = extendOptions.methods;
  8722. if (methods) {
  8723. Object.keys(methods).forEach(function (methodName) {
  8724. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  8725. extendOptions[methodName] = methods[methodName];
  8726. delete methods[methodName];
  8727. }
  8728. });
  8729. }
  8730. return oldExtend.call(this, extendOptions)
  8731. };
  8732. var strategies = Vue.config.optionMergeStrategies;
  8733. var mergeHook = strategies.created;
  8734. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  8735. strategies[hook] = mergeHook;
  8736. });
  8737. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  8738. }
  8739. /* */
  8740. // install platform patch function
  8741. Vue.prototype.__patch__ = patch;
  8742. // public mount method
  8743. Vue.prototype.$mount = function(
  8744. el ,
  8745. hydrating
  8746. ) {
  8747. return mountComponent$1(this, el, hydrating)
  8748. };
  8749. lifecycleMixin$1(Vue);
  8750. internalMixin(Vue);
  8751. /* */
  8752. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  8753. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  8754. /***/ }),
  8755. /* 26 */
  8756. /*!**********************************************************!*\
  8757. !*** C:/Users/1/Desktop/project/saas_manager/pages.json ***!
  8758. \**********************************************************/
  8759. /*! no static exports found */
  8760. /***/ (function(module, exports) {
  8761. /***/ }),
  8762. /* 27 */,
  8763. /* 28 */,
  8764. /* 29 */,
  8765. /* 30 */,
  8766. /* 31 */,
  8767. /* 32 */
  8768. /*!**********************************************************************************************************!*\
  8769. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  8770. \**********************************************************************************************************/
  8771. /*! exports provided: default */
  8772. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8773. "use strict";
  8774. __webpack_require__.r(__webpack_exports__);
  8775. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  8776. /* globals __VUE_SSR_CONTEXT__ */
  8777. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  8778. // This module is a runtime utility for cleaner component module output and will
  8779. // be included in the final webpack user bundle.
  8780. function normalizeComponent (
  8781. scriptExports,
  8782. render,
  8783. staticRenderFns,
  8784. functionalTemplate,
  8785. injectStyles,
  8786. scopeId,
  8787. moduleIdentifier, /* server only */
  8788. shadowMode, /* vue-cli only */
  8789. components, // fixed by xxxxxx auto components
  8790. renderjs // fixed by xxxxxx renderjs
  8791. ) {
  8792. // Vue.extend constructor export interop
  8793. var options = typeof scriptExports === 'function'
  8794. ? scriptExports.options
  8795. : scriptExports
  8796. // fixed by xxxxxx auto components
  8797. if (components) {
  8798. if (!options.components) {
  8799. options.components = {}
  8800. }
  8801. var hasOwn = Object.prototype.hasOwnProperty
  8802. for (var name in components) {
  8803. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  8804. options.components[name] = components[name]
  8805. }
  8806. }
  8807. }
  8808. // fixed by xxxxxx renderjs
  8809. if (renderjs) {
  8810. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  8811. this[renderjs.__module] = this
  8812. });
  8813. (options.mixins || (options.mixins = [])).push(renderjs)
  8814. }
  8815. // render functions
  8816. if (render) {
  8817. options.render = render
  8818. options.staticRenderFns = staticRenderFns
  8819. options._compiled = true
  8820. }
  8821. // functional template
  8822. if (functionalTemplate) {
  8823. options.functional = true
  8824. }
  8825. // scopedId
  8826. if (scopeId) {
  8827. options._scopeId = 'data-v-' + scopeId
  8828. }
  8829. var hook
  8830. if (moduleIdentifier) { // server build
  8831. hook = function (context) {
  8832. // 2.3 injection
  8833. context =
  8834. context || // cached call
  8835. (this.$vnode && this.$vnode.ssrContext) || // stateful
  8836. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  8837. // 2.2 with runInNewContext: true
  8838. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  8839. context = __VUE_SSR_CONTEXT__
  8840. }
  8841. // inject component styles
  8842. if (injectStyles) {
  8843. injectStyles.call(this, context)
  8844. }
  8845. // register component module identifier for async chunk inferrence
  8846. if (context && context._registeredComponents) {
  8847. context._registeredComponents.add(moduleIdentifier)
  8848. }
  8849. }
  8850. // used by ssr in case component is cached and beforeCreate
  8851. // never gets called
  8852. options._ssrRegister = hook
  8853. } else if (injectStyles) {
  8854. hook = shadowMode
  8855. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  8856. : injectStyles
  8857. }
  8858. if (hook) {
  8859. if (options.functional) {
  8860. // for template-only hot-reload because in that case the render fn doesn't
  8861. // go through the normalizer
  8862. options._injectStyles = hook
  8863. // register for functioal component in vue file
  8864. var originalRender = options.render
  8865. options.render = function renderWithStyleInjection (h, context) {
  8866. hook.call(context)
  8867. return originalRender(h, context)
  8868. }
  8869. } else {
  8870. // inject component registration as beforeCreate hook
  8871. var existing = options.beforeCreate
  8872. options.beforeCreate = existing
  8873. ? [].concat(existing, hook)
  8874. : [hook]
  8875. }
  8876. }
  8877. return {
  8878. exports: scriptExports,
  8879. options: options
  8880. }
  8881. }
  8882. /***/ }),
  8883. /* 33 */
  8884. /*!**************************************************************!*\
  8885. !*** C:/Users/1/Desktop/project/saas_manager/common/tool.js ***!
  8886. \**************************************************************/
  8887. /*! no static exports found */
  8888. /***/ (function(module, exports, __webpack_require__) {
  8889. "use strict";
  8890. /* WEBPACK VAR INJECTION */(function(uni) {
  8891. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  8892. Object.defineProperty(exports, "__esModule", {
  8893. value: true
  8894. });
  8895. exports.default = void 0;
  8896. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 34));
  8897. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 36));
  8898. var _index = _interopRequireDefault(__webpack_require__(/*! @/store/index.js */ 37));
  8899. // import config from "@/common/config";
  8900. // import api from "@/common/api.js";
  8901. var _default = {
  8902. isGoLogin: function isGoLogin() {
  8903. var isBack = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  8904. if (!uni.getStorageSync("user_account")) {
  8905. uni.navigateTo({
  8906. url: "/pages4/login/login?isBack=" + isBack
  8907. });
  8908. return true;
  8909. } else {
  8910. return false;
  8911. }
  8912. },
  8913. isLogin: function isLogin() {
  8914. if (uni.getStorageSync("user_account")) {
  8915. return true;
  8916. } else {
  8917. return false;
  8918. }
  8919. },
  8920. isLogout: function isLogout() {
  8921. // uni.removeStorageSync('user_account')
  8922. // uni.removeStorageSync('token')
  8923. },
  8924. //提示
  8925. showToast: function showToast(title) {
  8926. var icon = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "none";
  8927. var time = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 2000;
  8928. return setTimeout(function () {
  8929. uni.showToast({
  8930. title: title,
  8931. icon: icon,
  8932. duration: time
  8933. });
  8934. }, 500);
  8935. },
  8936. //图片路径填补
  8937. splitImgHost: function splitImgHost(url) {
  8938. var scale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  8939. var width = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 250;
  8940. if (!url) {
  8941. return "";
  8942. } else if (url.indexOf("http") != -1 || url.indexOf("https") != -1 || url.indexOf("wxfile") != -1) {} else {
  8943. url = config.BASE_IMG_URL + url;
  8944. }
  8945. if (scale) {
  8946. url = url + "?x-oss-process=image/resize,w_" + width;
  8947. }
  8948. return url;
  8949. },
  8950. setUuid: function setUuid(id) {
  8951. uni.setStorageSync("uuid", id);
  8952. },
  8953. getUuid: function getUuid() {
  8954. return uni.getStorageSync("uuid");
  8955. },
  8956. exit: function exit() {
  8957. uni.removeStorageSync("user_account");
  8958. uni.removeStorageSync("token");
  8959. _index.default.state.userInfo = null;
  8960. uni.reLaunch({
  8961. url: "/pages/index/index"
  8962. });
  8963. },
  8964. //压缩图片
  8965. imageInfos: function imageInfos(url) {
  8966. var self = this;
  8967. return new Promise(function (resolve, reject) {
  8968. uni.getImageInfo({
  8969. src: url,
  8970. success: function () {
  8971. var _success = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(res) {
  8972. var canvasWidth, canvasHeight, waitUpload;
  8973. return _regenerator.default.wrap(function _callee3$(_context3) {
  8974. while (1) {
  8975. switch (_context3.prev = _context3.next) {
  8976. case 0:
  8977. canvasWidth = res.width; //图片原始长宽
  8978. canvasHeight = res.height;
  8979. if (!(canvasWidth > 2000 || canvasHeight > 2000)) {
  8980. _context3.next = 6;
  8981. break;
  8982. }
  8983. uni.compressImage({
  8984. src: url,
  8985. quality: 75,
  8986. width: "35%",
  8987. height: "35%",
  8988. success: function () {
  8989. var _success2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(rest) {
  8990. var waitUpload;
  8991. return _regenerator.default.wrap(function _callee$(_context) {
  8992. while (1) {
  8993. switch (_context.prev = _context.next) {
  8994. case 0:
  8995. _context.next = 2;
  8996. return self.uploadFile(rest.tempFilePath, 0);
  8997. case 2:
  8998. waitUpload = _context.sent;
  8999. console.log(waitUpload, "waitUpload");
  9000. resolve(waitUpload);
  9001. case 5:
  9002. case "end":
  9003. return _context.stop();
  9004. }
  9005. }
  9006. }, _callee);
  9007. }));
  9008. function success(_x2) {
  9009. return _success2.apply(this, arguments);
  9010. }
  9011. return success;
  9012. }()
  9013. });
  9014. _context3.next = 15;
  9015. break;
  9016. case 6:
  9017. if (!(canvasWidth > 1000 || canvasHeight > 1000)) {
  9018. _context3.next = 10;
  9019. break;
  9020. }
  9021. uni.compressImage({
  9022. src: url,
  9023. quality: 75,
  9024. width: "50%",
  9025. height: "50%",
  9026. success: function () {
  9027. var _success3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(rest) {
  9028. var waitUpload;
  9029. return _regenerator.default.wrap(function _callee2$(_context2) {
  9030. while (1) {
  9031. switch (_context2.prev = _context2.next) {
  9032. case 0:
  9033. _context2.next = 2;
  9034. return self.uploadFile(rest.tempFilePath, 0);
  9035. case 2:
  9036. waitUpload = _context2.sent;
  9037. console.log(waitUpload, "waitUpload");
  9038. resolve(waitUpload);
  9039. case 5:
  9040. case "end":
  9041. return _context2.stop();
  9042. }
  9043. }
  9044. }, _callee2);
  9045. }));
  9046. function success(_x3) {
  9047. return _success3.apply(this, arguments);
  9048. }
  9049. return success;
  9050. }()
  9051. });
  9052. _context3.next = 15;
  9053. break;
  9054. case 10:
  9055. _context3.next = 12;
  9056. return self.uploadFile(url, 0);
  9057. case 12:
  9058. waitUpload = _context3.sent;
  9059. console.log(waitUpload, "waitUpload");
  9060. resolve(waitUpload);
  9061. // console.log('无需压缩', url);
  9062. // resolve(url);
  9063. case 15:
  9064. case "end":
  9065. return _context3.stop();
  9066. }
  9067. }
  9068. }, _callee3);
  9069. }));
  9070. function success(_x) {
  9071. return _success.apply(this, arguments);
  9072. }
  9073. return success;
  9074. }()
  9075. });
  9076. });
  9077. },
  9078. //上传图片
  9079. uploadFile: function uploadFile(options, int) {
  9080. var _this = this;
  9081. return new Promise(function (resolve, reject) {
  9082. var self = _this;
  9083. if (options.indexOf("//tmp") === -1 && options.indexOf("//temp") === -1) {
  9084. resolve(options);
  9085. return;
  9086. }
  9087. var data = {
  9088. imageStatus: int
  9089. };
  9090. api.aliyunpolicy(data).then(function (res) {
  9091. var ossToken = res.data.data.resultContent;
  9092. uni.uploadFile({
  9093. url: ossToken.host,
  9094. name: "file",
  9095. filePath: options,
  9096. fileType: "image",
  9097. header: {
  9098. AuthorizationToken: "WX " + uni.getStorageSync("token")
  9099. },
  9100. formData: {
  9101. key: ossToken.dir,
  9102. OSSAccessKeyId: ossToken.accessid,
  9103. policy: ossToken.policy,
  9104. Signature: ossToken.signature,
  9105. // callback: ossToken.callback,
  9106. success_action_status: 200
  9107. },
  9108. success: function success(result) {
  9109. // if (result.statusCode === 200) {
  9110. resolve(ossToken.dir);
  9111. // } else {
  9112. // uni.showToast({
  9113. // title: '上传失败',
  9114. // icon: 'none'
  9115. // });
  9116. // return;
  9117. // }
  9118. },
  9119. fail: function fail(error) {
  9120. uni.showToast({
  9121. title: "上传接口报错",
  9122. icon: "none"
  9123. });
  9124. return;
  9125. }
  9126. });
  9127. });
  9128. });
  9129. }
  9130. };
  9131. exports.default = _default;
  9132. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9133. /***/ }),
  9134. /* 34 */
  9135. /*!************************************************************************************************!*\
  9136. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  9137. \************************************************************************************************/
  9138. /*! no static exports found */
  9139. /***/ (function(module, exports, __webpack_require__) {
  9140. // TODO(Babel 8): Remove this file.
  9141. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 35)();
  9142. module.exports = runtime;
  9143. /***/ }),
  9144. /* 35 */
  9145. /*!*******************************************************************!*\
  9146. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  9147. \*******************************************************************/
  9148. /*! no static exports found */
  9149. /***/ (function(module, exports, __webpack_require__) {
  9150. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  9151. function _regeneratorRuntime() {
  9152. "use strict";
  9153. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  9154. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  9155. return exports;
  9156. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  9157. var exports = {},
  9158. Op = Object.prototype,
  9159. hasOwn = Op.hasOwnProperty,
  9160. defineProperty = Object.defineProperty || function (obj, key, desc) {
  9161. obj[key] = desc.value;
  9162. },
  9163. $Symbol = "function" == typeof Symbol ? Symbol : {},
  9164. iteratorSymbol = $Symbol.iterator || "@@iterator",
  9165. asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
  9166. toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  9167. function define(obj, key, value) {
  9168. return Object.defineProperty(obj, key, {
  9169. value: value,
  9170. enumerable: !0,
  9171. configurable: !0,
  9172. writable: !0
  9173. }), obj[key];
  9174. }
  9175. try {
  9176. define({}, "");
  9177. } catch (err) {
  9178. define = function define(obj, key, value) {
  9179. return obj[key] = value;
  9180. };
  9181. }
  9182. function wrap(innerFn, outerFn, self, tryLocsList) {
  9183. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
  9184. generator = Object.create(protoGenerator.prototype),
  9185. context = new Context(tryLocsList || []);
  9186. return defineProperty(generator, "_invoke", {
  9187. value: makeInvokeMethod(innerFn, self, context)
  9188. }), generator;
  9189. }
  9190. function tryCatch(fn, obj, arg) {
  9191. try {
  9192. return {
  9193. type: "normal",
  9194. arg: fn.call(obj, arg)
  9195. };
  9196. } catch (err) {
  9197. return {
  9198. type: "throw",
  9199. arg: err
  9200. };
  9201. }
  9202. }
  9203. exports.wrap = wrap;
  9204. var ContinueSentinel = {};
  9205. function Generator() {}
  9206. function GeneratorFunction() {}
  9207. function GeneratorFunctionPrototype() {}
  9208. var IteratorPrototype = {};
  9209. define(IteratorPrototype, iteratorSymbol, function () {
  9210. return this;
  9211. });
  9212. var getProto = Object.getPrototypeOf,
  9213. NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  9214. NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
  9215. var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
  9216. function defineIteratorMethods(prototype) {
  9217. ["next", "throw", "return"].forEach(function (method) {
  9218. define(prototype, method, function (arg) {
  9219. return this._invoke(method, arg);
  9220. });
  9221. });
  9222. }
  9223. function AsyncIterator(generator, PromiseImpl) {
  9224. function invoke(method, arg, resolve, reject) {
  9225. var record = tryCatch(generator[method], generator, arg);
  9226. if ("throw" !== record.type) {
  9227. var result = record.arg,
  9228. value = result.value;
  9229. return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
  9230. invoke("next", value, resolve, reject);
  9231. }, function (err) {
  9232. invoke("throw", err, resolve, reject);
  9233. }) : PromiseImpl.resolve(value).then(function (unwrapped) {
  9234. result.value = unwrapped, resolve(result);
  9235. }, function (error) {
  9236. return invoke("throw", error, resolve, reject);
  9237. });
  9238. }
  9239. reject(record.arg);
  9240. }
  9241. var previousPromise;
  9242. defineProperty(this, "_invoke", {
  9243. value: function value(method, arg) {
  9244. function callInvokeWithMethodAndArg() {
  9245. return new PromiseImpl(function (resolve, reject) {
  9246. invoke(method, arg, resolve, reject);
  9247. });
  9248. }
  9249. return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  9250. }
  9251. });
  9252. }
  9253. function makeInvokeMethod(innerFn, self, context) {
  9254. var state = "suspendedStart";
  9255. return function (method, arg) {
  9256. if ("executing" === state) throw new Error("Generator is already running");
  9257. if ("completed" === state) {
  9258. if ("throw" === method) throw arg;
  9259. return doneResult();
  9260. }
  9261. for (context.method = method, context.arg = arg;;) {
  9262. var delegate = context.delegate;
  9263. if (delegate) {
  9264. var delegateResult = maybeInvokeDelegate(delegate, context);
  9265. if (delegateResult) {
  9266. if (delegateResult === ContinueSentinel) continue;
  9267. return delegateResult;
  9268. }
  9269. }
  9270. if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
  9271. if ("suspendedStart" === state) throw state = "completed", context.arg;
  9272. context.dispatchException(context.arg);
  9273. } else "return" === context.method && context.abrupt("return", context.arg);
  9274. state = "executing";
  9275. var record = tryCatch(innerFn, self, context);
  9276. if ("normal" === record.type) {
  9277. if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
  9278. return {
  9279. value: record.arg,
  9280. done: context.done
  9281. };
  9282. }
  9283. "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
  9284. }
  9285. };
  9286. }
  9287. function maybeInvokeDelegate(delegate, context) {
  9288. var methodName = context.method,
  9289. method = delegate.iterator[methodName];
  9290. if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
  9291. var record = tryCatch(method, delegate.iterator, context.arg);
  9292. if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
  9293. var info = record.arg;
  9294. return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
  9295. }
  9296. function pushTryEntry(locs) {
  9297. var entry = {
  9298. tryLoc: locs[0]
  9299. };
  9300. 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
  9301. }
  9302. function resetTryEntry(entry) {
  9303. var record = entry.completion || {};
  9304. record.type = "normal", delete record.arg, entry.completion = record;
  9305. }
  9306. function Context(tryLocsList) {
  9307. this.tryEntries = [{
  9308. tryLoc: "root"
  9309. }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
  9310. }
  9311. function values(iterable) {
  9312. if (iterable) {
  9313. var iteratorMethod = iterable[iteratorSymbol];
  9314. if (iteratorMethod) return iteratorMethod.call(iterable);
  9315. if ("function" == typeof iterable.next) return iterable;
  9316. if (!isNaN(iterable.length)) {
  9317. var i = -1,
  9318. next = function next() {
  9319. for (; ++i < iterable.length;) {
  9320. if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
  9321. }
  9322. return next.value = undefined, next.done = !0, next;
  9323. };
  9324. return next.next = next;
  9325. }
  9326. }
  9327. return {
  9328. next: doneResult
  9329. };
  9330. }
  9331. function doneResult() {
  9332. return {
  9333. value: undefined,
  9334. done: !0
  9335. };
  9336. }
  9337. return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
  9338. value: GeneratorFunctionPrototype,
  9339. configurable: !0
  9340. }), defineProperty(GeneratorFunctionPrototype, "constructor", {
  9341. value: GeneratorFunction,
  9342. configurable: !0
  9343. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
  9344. var ctor = "function" == typeof genFun && genFun.constructor;
  9345. return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
  9346. }, exports.mark = function (genFun) {
  9347. return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
  9348. }, exports.awrap = function (arg) {
  9349. return {
  9350. __await: arg
  9351. };
  9352. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
  9353. return this;
  9354. }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
  9355. void 0 === PromiseImpl && (PromiseImpl = Promise);
  9356. var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
  9357. return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
  9358. return result.done ? result.value : iter.next();
  9359. });
  9360. }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
  9361. return this;
  9362. }), define(Gp, "toString", function () {
  9363. return "[object Generator]";
  9364. }), exports.keys = function (val) {
  9365. var object = Object(val),
  9366. keys = [];
  9367. for (var key in object) {
  9368. keys.push(key);
  9369. }
  9370. return keys.reverse(), function next() {
  9371. for (; keys.length;) {
  9372. var key = keys.pop();
  9373. if (key in object) return next.value = key, next.done = !1, next;
  9374. }
  9375. return next.done = !0, next;
  9376. };
  9377. }, exports.values = values, Context.prototype = {
  9378. constructor: Context,
  9379. reset: function reset(skipTempReset) {
  9380. if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
  9381. "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
  9382. }
  9383. },
  9384. stop: function stop() {
  9385. this.done = !0;
  9386. var rootRecord = this.tryEntries[0].completion;
  9387. if ("throw" === rootRecord.type) throw rootRecord.arg;
  9388. return this.rval;
  9389. },
  9390. dispatchException: function dispatchException(exception) {
  9391. if (this.done) throw exception;
  9392. var context = this;
  9393. function handle(loc, caught) {
  9394. return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
  9395. }
  9396. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  9397. var entry = this.tryEntries[i],
  9398. record = entry.completion;
  9399. if ("root" === entry.tryLoc) return handle("end");
  9400. if (entry.tryLoc <= this.prev) {
  9401. var hasCatch = hasOwn.call(entry, "catchLoc"),
  9402. hasFinally = hasOwn.call(entry, "finallyLoc");
  9403. if (hasCatch && hasFinally) {
  9404. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  9405. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  9406. } else if (hasCatch) {
  9407. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  9408. } else {
  9409. if (!hasFinally) throw new Error("try statement without catch or finally");
  9410. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  9411. }
  9412. }
  9413. }
  9414. },
  9415. abrupt: function abrupt(type, arg) {
  9416. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  9417. var entry = this.tryEntries[i];
  9418. if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
  9419. var finallyEntry = entry;
  9420. break;
  9421. }
  9422. }
  9423. finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
  9424. var record = finallyEntry ? finallyEntry.completion : {};
  9425. return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
  9426. },
  9427. complete: function complete(record, afterLoc) {
  9428. if ("throw" === record.type) throw record.arg;
  9429. return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
  9430. },
  9431. finish: function finish(finallyLoc) {
  9432. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  9433. var entry = this.tryEntries[i];
  9434. if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
  9435. }
  9436. },
  9437. "catch": function _catch(tryLoc) {
  9438. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  9439. var entry = this.tryEntries[i];
  9440. if (entry.tryLoc === tryLoc) {
  9441. var record = entry.completion;
  9442. if ("throw" === record.type) {
  9443. var thrown = record.arg;
  9444. resetTryEntry(entry);
  9445. }
  9446. return thrown;
  9447. }
  9448. }
  9449. throw new Error("illegal catch attempt");
  9450. },
  9451. delegateYield: function delegateYield(iterable, resultName, nextLoc) {
  9452. return this.delegate = {
  9453. iterator: values(iterable),
  9454. resultName: resultName,
  9455. nextLoc: nextLoc
  9456. }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
  9457. }
  9458. }, exports;
  9459. }
  9460. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  9461. /***/ }),
  9462. /* 36 */
  9463. /*!*****************************************************************!*\
  9464. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  9465. \*****************************************************************/
  9466. /*! no static exports found */
  9467. /***/ (function(module, exports) {
  9468. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  9469. try {
  9470. var info = gen[key](arg);
  9471. var value = info.value;
  9472. } catch (error) {
  9473. reject(error);
  9474. return;
  9475. }
  9476. if (info.done) {
  9477. resolve(value);
  9478. } else {
  9479. Promise.resolve(value).then(_next, _throw);
  9480. }
  9481. }
  9482. function _asyncToGenerator(fn) {
  9483. return function () {
  9484. var self = this,
  9485. args = arguments;
  9486. return new Promise(function (resolve, reject) {
  9487. var gen = fn.apply(self, args);
  9488. function _next(value) {
  9489. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  9490. }
  9491. function _throw(err) {
  9492. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  9493. }
  9494. _next(undefined);
  9495. });
  9496. };
  9497. }
  9498. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  9499. /***/ }),
  9500. /* 37 */
  9501. /*!**************************************************************!*\
  9502. !*** C:/Users/1/Desktop/project/saas_manager/store/index.js ***!
  9503. \**************************************************************/
  9504. /*! no static exports found */
  9505. /***/ (function(module, exports, __webpack_require__) {
  9506. "use strict";
  9507. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9508. Object.defineProperty(exports, "__esModule", {
  9509. value: true
  9510. });
  9511. exports.default = void 0;
  9512. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 34));
  9513. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9514. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 36));
  9515. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  9516. var _vuex = _interopRequireDefault(__webpack_require__(/*! vuex */ 38));
  9517. var _tool = _interopRequireDefault(__webpack_require__(/*! @/common/tool */ 33));
  9518. 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; }
  9519. 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; }
  9520. _vue.default.use(_vuex.default);
  9521. var store = new _vuex.default.Store({
  9522. state: {
  9523. hideBuyState: false,
  9524. //是否隐藏购买流程和订单列表
  9525. login: true,
  9526. token: "",
  9527. avatarUrl: "",
  9528. userName: "",
  9529. playNextId: "",
  9530. //正在播放的节id
  9531. userInfo: null,
  9532. dictObj: null,
  9533. chapterOpen: true,
  9534. allowLoading: true,
  9535. goodsAuditionConfigIdList: [],
  9536. //当前访问页面的试听节ID
  9537. shoppingCartList: [],
  9538. //购物车支付商品
  9539. applyData: {},
  9540. //预约考试数据存放
  9541. backPageApplyData: {},
  9542. //预约考试返回页面的数据存放
  9543. playSectionId: 0,
  9544. //正在播放的录播节ID
  9545. copyData: null,
  9546. //存放审核资料数据
  9547. playChannelId: 0,
  9548. //正在播放的直播频道号
  9549. playVID: 0,
  9550. //正在播放的保利威视频ID
  9551. liveLast: null,
  9552. tabNums: 0,
  9553. // '我的'右上角的数字
  9554. sysTime: 0,
  9555. //系统时间
  9556. scene: 0,
  9557. //进入小程序的场景值
  9558. sac: "",
  9559. config: {}
  9560. },
  9561. getters: {
  9562. sysTime: function sysTime(state) {
  9563. return state.sysTime;
  9564. },
  9565. userInfo: function userInfo(state) {
  9566. // if (state.userInfo == null) {
  9567. // if (uni.getStorageSync('user_account')) {
  9568. // getUserInfo(state)
  9569. // }
  9570. // }
  9571. return state.userInfo;
  9572. },
  9573. dictObj: function dictObj(state) {
  9574. if (state.dictObj == null) {
  9575. api.dictList().then(function (res) {
  9576. if (res.data.code === 200) {
  9577. var newList = {};
  9578. var list = res.data.data;
  9579. for (var i = 0; i < list.length; i++) {
  9580. var item = list[i];
  9581. if (newList.hasOwnProperty(item.dictType)) {
  9582. newList[item.dictType].push(item.dictLabel);
  9583. } else {
  9584. newList[item.dictType] = [item.dictLabel];
  9585. }
  9586. }
  9587. state.dictObj = newList;
  9588. }
  9589. });
  9590. }
  9591. return state.dictObj;
  9592. },
  9593. allowLoading: function allowLoading(state) {
  9594. return state.allowLoading;
  9595. },
  9596. playNextId: function playNextId(state) {
  9597. return state.playNextId;
  9598. },
  9599. chapterOpen: function chapterOpen(state) {
  9600. return state.chapterOpen;
  9601. },
  9602. goodsAuditionConfigIdList: function goodsAuditionConfigIdList(state) {
  9603. return state.goodsAuditionConfigIdList;
  9604. },
  9605. hideBuyState: function hideBuyState(state) {
  9606. return state.hideBuyState;
  9607. },
  9608. shoppingCartList: function shoppingCartList(state) {
  9609. return state.shoppingCartList;
  9610. },
  9611. getApplyData: function getApplyData(state) {
  9612. return state.applyData;
  9613. },
  9614. getBackPageApplyData: function getBackPageApplyData(state) {
  9615. return state.backPageApplyData;
  9616. },
  9617. playSectionId: function playSectionId(state) {
  9618. return state.playSectionId;
  9619. },
  9620. getCopyData: function getCopyData(state) {
  9621. return state.copyData;
  9622. },
  9623. playChannelId: function playChannelId(state) {
  9624. return state.playChannelId;
  9625. },
  9626. playVID: function playVID(state) {
  9627. return state.playVID;
  9628. },
  9629. liveLast: function liveLast(state) {
  9630. return state.liveLast;
  9631. },
  9632. sac: function sac(state) {
  9633. return state.sac;
  9634. },
  9635. config: function config(state) {
  9636. return state.config;
  9637. }
  9638. },
  9639. mutations: {
  9640. commonSystemTime: function commonSystemTime(state, time) {
  9641. state.sysTime = time;
  9642. },
  9643. tabNum: function tabNum(state, nums) {
  9644. // state.tabLists[4].count = nums
  9645. // if (nums) {
  9646. // uni.setTabBarBadge({
  9647. // index: 4,
  9648. // text: nums + ''
  9649. // })
  9650. // } else {
  9651. // uni.removeTabBarBadge({
  9652. // index: 4
  9653. // })
  9654. // }
  9655. },
  9656. updateLiveLast: function updateLiveLast(state, liveLast) {
  9657. state.liveLast = liveLast;
  9658. },
  9659. updateAllowLoading: function updateAllowLoading(state, isShowloading) {
  9660. state.allowLoading = isShowloading;
  9661. },
  9662. updatePlayNextId: function updatePlayNextId(state, str) {
  9663. console.log(str, "str");
  9664. state.playNextId = str;
  9665. },
  9666. updateChapterOpen: function updateChapterOpen(state, boolean) {
  9667. state.chapterOpen = boolean;
  9668. },
  9669. updataCopyData: function updataCopyData(state, objs) {
  9670. state.copyData = objs;
  9671. },
  9672. updateApplyData: function updateApplyData(state, arrays) {
  9673. state.applyData = arrays;
  9674. },
  9675. updateBackApplyData: function updateBackApplyData(state, arrays) {
  9676. state.backPageApplyData = arrays;
  9677. },
  9678. updateUserInfo: function updateUserInfo(state, provider) {
  9679. state.userInfo = provider.userInfo;
  9680. },
  9681. setGoodsAuditionConfigIdList: function setGoodsAuditionConfigIdList(state, provider) {
  9682. state.goodsAuditionConfigIdList = provider.goodsAuditionConfigIdList;
  9683. },
  9684. setShoppingCartList: function setShoppingCartList(state, provider) {
  9685. state.shoppingCartList = provider.shoppingCartList;
  9686. },
  9687. setPlaySectionId: function setPlaySectionId(state, provider) {
  9688. state.playSectionId = provider.playSectionId;
  9689. },
  9690. setPlayChannelId: function setPlayChannelId(state, provider) {
  9691. state.playChannelId = provider.playChannelId;
  9692. },
  9693. setPlayVID: function setPlayVID(state, provider) {
  9694. state.playVID = provider.playVID;
  9695. },
  9696. setScene: function setScene(state, scene) {
  9697. state.scene = scene;
  9698. },
  9699. setSac: function setSac(state, sac) {
  9700. state.sac = sac;
  9701. },
  9702. setConfig: function setConfig(state, config) {
  9703. state.config = config;
  9704. }
  9705. },
  9706. actions: {
  9707. /**
  9708. * 设置系统时间
  9709. */
  9710. setSystemTime: function setSystemTime(_ref) {
  9711. var commit = _ref.commit;
  9712. return new Promise(function (resolve) {
  9713. api.commonSystemTime().then(function (res) {
  9714. if (res.data.code == 200) {
  9715. commit("commonSystemTime", res.data.data);
  9716. resolve();
  9717. }
  9718. });
  9719. });
  9720. },
  9721. changeTabsNum: function changeTabsNum(_ref2) {
  9722. var commit = _ref2.commit;
  9723. api.getinfoAttached().then(function (res) {
  9724. if (res.data.code === 200) {
  9725. var nums = res.data.data.informSum + res.data.data.orderSum + res.data.data.periodSum + res.data.data.planSum + res.data.data.subscribeSum;
  9726. commit("tabNum", nums);
  9727. }
  9728. });
  9729. },
  9730. getUserInfo: function getUserInfo(context) {
  9731. return new Promise( /*#__PURE__*/function () {
  9732. var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(resolve) {
  9733. var resdata;
  9734. return _regenerator.default.wrap(function _callee$(_context) {
  9735. while (1) {
  9736. switch (_context.prev = _context.next) {
  9737. case 0:
  9738. _context.next = 2;
  9739. return api.getInfo();
  9740. case 2:
  9741. resdata = _context.sent;
  9742. if (resdata.data.code == 200) {
  9743. context.state.userInfo = resdata.data.data;
  9744. _tool.default.setUuid(new Date().valueOf() + "");
  9745. resolve();
  9746. }
  9747. case 4:
  9748. case "end":
  9749. return _context.stop();
  9750. }
  9751. }
  9752. }, _callee);
  9753. }));
  9754. return function (_x) {
  9755. return _ref3.apply(this, arguments);
  9756. };
  9757. }());
  9758. },
  9759. appCommonConfig: function appCommonConfig(context, data) {
  9760. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
  9761. var resdata;
  9762. return _regenerator.default.wrap(function _callee2$(_context2) {
  9763. while (1) {
  9764. switch (_context2.prev = _context2.next) {
  9765. case 0:
  9766. _context2.next = 2;
  9767. return api.appCommonConfig(data);
  9768. case 2:
  9769. resdata = _context2.sent;
  9770. if (resdata.data.code == 200) {
  9771. context.state.hideBuyState = resdata.data.data.hide;
  9772. }
  9773. case 4:
  9774. case "end":
  9775. return _context2.stop();
  9776. }
  9777. }
  9778. }, _callee2);
  9779. }))();
  9780. },
  9781. getConfig: function getConfig(_ref4) {
  9782. var commit = _ref4.commit;
  9783. return new Promise( /*#__PURE__*/function () {
  9784. var _ref5 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(resolve) {
  9785. var config;
  9786. return _regenerator.default.wrap(function _callee3$(_context3) {
  9787. while (1) {
  9788. switch (_context3.prev = _context3.next) {
  9789. case 0:
  9790. config = {};
  9791. api.mobileConfig().then(function (res) {
  9792. var data = res.data.rows.find(function (e) {
  9793. return e.configKey == "home.mobile";
  9794. });
  9795. if (data) {
  9796. config = _objectSpread(_objectSpread({}, config), JSON.parse(data.configValue));
  9797. }
  9798. var header = res.data.rows.find(function (e) {
  9799. return e.configKey == "home.header";
  9800. });
  9801. if (header) {
  9802. config = _objectSpread(_objectSpread({}, config), {}, {
  9803. companyName: JSON.parse(header.configValue).companyName
  9804. });
  9805. }
  9806. var foot = res.data.rows.find(function (e) {
  9807. return e.configKey == "home.footer.record";
  9808. });
  9809. if (foot) {
  9810. config = _objectSpread(_objectSpread({}, config), JSON.parse(foot.configValue));
  9811. }
  9812. commit("setConfig", config);
  9813. resolve(config);
  9814. });
  9815. case 2:
  9816. case "end":
  9817. return _context3.stop();
  9818. }
  9819. }
  9820. }, _callee3);
  9821. }));
  9822. return function (_x2) {
  9823. return _ref5.apply(this, arguments);
  9824. };
  9825. }());
  9826. }
  9827. }
  9828. });
  9829. function getUserInfo(_x3) {
  9830. return _getUserInfo.apply(this, arguments);
  9831. }
  9832. function _getUserInfo() {
  9833. _getUserInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(state) {
  9834. var resdata;
  9835. return _regenerator.default.wrap(function _callee4$(_context4) {
  9836. while (1) {
  9837. switch (_context4.prev = _context4.next) {
  9838. case 0:
  9839. _context4.next = 2;
  9840. return api.getInfo();
  9841. case 2:
  9842. resdata = _context4.sent;
  9843. if (resdata.data.code == 200) {
  9844. state.userInfo = resdata.data.data;
  9845. }
  9846. case 4:
  9847. case "end":
  9848. return _context4.stop();
  9849. }
  9850. }
  9851. }, _callee4);
  9852. }));
  9853. return _getUserInfo.apply(this, arguments);
  9854. }
  9855. var _default = store;
  9856. exports.default = _default;
  9857. /***/ }),
  9858. /* 38 */
  9859. /*!**************************************************************************************!*\
  9860. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vuex3/dist/vuex.common.js ***!
  9861. \**************************************************************************************/
  9862. /*! no static exports found */
  9863. /***/ (function(module, exports, __webpack_require__) {
  9864. "use strict";
  9865. /* WEBPACK VAR INJECTION */(function(global) {/*!
  9866. * vuex v3.6.2
  9867. * (c) 2021 Evan You
  9868. * @license MIT
  9869. */
  9870. function applyMixin (Vue) {
  9871. var version = Number(Vue.version.split('.')[0]);
  9872. if (version >= 2) {
  9873. Vue.mixin({ beforeCreate: vuexInit });
  9874. } else {
  9875. // override init and inject vuex init procedure
  9876. // for 1.x backwards compatibility.
  9877. var _init = Vue.prototype._init;
  9878. Vue.prototype._init = function (options) {
  9879. if ( options === void 0 ) options = {};
  9880. options.init = options.init
  9881. ? [vuexInit].concat(options.init)
  9882. : vuexInit;
  9883. _init.call(this, options);
  9884. };
  9885. }
  9886. /**
  9887. * Vuex init hook, injected into each instances init hooks list.
  9888. */
  9889. function vuexInit () {
  9890. var options = this.$options;
  9891. // store injection
  9892. if (options.store) {
  9893. this.$store = typeof options.store === 'function'
  9894. ? options.store()
  9895. : options.store;
  9896. } else if (options.parent && options.parent.$store) {
  9897. this.$store = options.parent.$store;
  9898. }
  9899. }
  9900. }
  9901. var target = typeof window !== 'undefined'
  9902. ? window
  9903. : typeof global !== 'undefined'
  9904. ? global
  9905. : {};
  9906. var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  9907. function devtoolPlugin (store) {
  9908. if (!devtoolHook) { return }
  9909. store._devtoolHook = devtoolHook;
  9910. devtoolHook.emit('vuex:init', store);
  9911. devtoolHook.on('vuex:travel-to-state', function (targetState) {
  9912. store.replaceState(targetState);
  9913. });
  9914. store.subscribe(function (mutation, state) {
  9915. devtoolHook.emit('vuex:mutation', mutation, state);
  9916. }, { prepend: true });
  9917. store.subscribeAction(function (action, state) {
  9918. devtoolHook.emit('vuex:action', action, state);
  9919. }, { prepend: true });
  9920. }
  9921. /**
  9922. * Get the first item that pass the test
  9923. * by second argument function
  9924. *
  9925. * @param {Array} list
  9926. * @param {Function} f
  9927. * @return {*}
  9928. */
  9929. function find (list, f) {
  9930. return list.filter(f)[0]
  9931. }
  9932. /**
  9933. * Deep copy the given object considering circular structure.
  9934. * This function caches all nested objects and its copies.
  9935. * If it detects circular structure, use cached copy to avoid infinite loop.
  9936. *
  9937. * @param {*} obj
  9938. * @param {Array<Object>} cache
  9939. * @return {*}
  9940. */
  9941. function deepCopy (obj, cache) {
  9942. if ( cache === void 0 ) cache = [];
  9943. // just return if obj is immutable value
  9944. if (obj === null || typeof obj !== 'object') {
  9945. return obj
  9946. }
  9947. // if obj is hit, it is in circular structure
  9948. var hit = find(cache, function (c) { return c.original === obj; });
  9949. if (hit) {
  9950. return hit.copy
  9951. }
  9952. var copy = Array.isArray(obj) ? [] : {};
  9953. // put the copy into cache at first
  9954. // because we want to refer it in recursive deepCopy
  9955. cache.push({
  9956. original: obj,
  9957. copy: copy
  9958. });
  9959. Object.keys(obj).forEach(function (key) {
  9960. copy[key] = deepCopy(obj[key], cache);
  9961. });
  9962. return copy
  9963. }
  9964. /**
  9965. * forEach for object
  9966. */
  9967. function forEachValue (obj, fn) {
  9968. Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
  9969. }
  9970. function isObject (obj) {
  9971. return obj !== null && typeof obj === 'object'
  9972. }
  9973. function isPromise (val) {
  9974. return val && typeof val.then === 'function'
  9975. }
  9976. function assert (condition, msg) {
  9977. if (!condition) { throw new Error(("[vuex] " + msg)) }
  9978. }
  9979. function partial (fn, arg) {
  9980. return function () {
  9981. return fn(arg)
  9982. }
  9983. }
  9984. // Base data struct for store's module, package with some attribute and method
  9985. var Module = function Module (rawModule, runtime) {
  9986. this.runtime = runtime;
  9987. // Store some children item
  9988. this._children = Object.create(null);
  9989. // Store the origin module object which passed by programmer
  9990. this._rawModule = rawModule;
  9991. var rawState = rawModule.state;
  9992. // Store the origin module's state
  9993. this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
  9994. };
  9995. var prototypeAccessors = { namespaced: { configurable: true } };
  9996. prototypeAccessors.namespaced.get = function () {
  9997. return !!this._rawModule.namespaced
  9998. };
  9999. Module.prototype.addChild = function addChild (key, module) {
  10000. this._children[key] = module;
  10001. };
  10002. Module.prototype.removeChild = function removeChild (key) {
  10003. delete this._children[key];
  10004. };
  10005. Module.prototype.getChild = function getChild (key) {
  10006. return this._children[key]
  10007. };
  10008. Module.prototype.hasChild = function hasChild (key) {
  10009. return key in this._children
  10010. };
  10011. Module.prototype.update = function update (rawModule) {
  10012. this._rawModule.namespaced = rawModule.namespaced;
  10013. if (rawModule.actions) {
  10014. this._rawModule.actions = rawModule.actions;
  10015. }
  10016. if (rawModule.mutations) {
  10017. this._rawModule.mutations = rawModule.mutations;
  10018. }
  10019. if (rawModule.getters) {
  10020. this._rawModule.getters = rawModule.getters;
  10021. }
  10022. };
  10023. Module.prototype.forEachChild = function forEachChild (fn) {
  10024. forEachValue(this._children, fn);
  10025. };
  10026. Module.prototype.forEachGetter = function forEachGetter (fn) {
  10027. if (this._rawModule.getters) {
  10028. forEachValue(this._rawModule.getters, fn);
  10029. }
  10030. };
  10031. Module.prototype.forEachAction = function forEachAction (fn) {
  10032. if (this._rawModule.actions) {
  10033. forEachValue(this._rawModule.actions, fn);
  10034. }
  10035. };
  10036. Module.prototype.forEachMutation = function forEachMutation (fn) {
  10037. if (this._rawModule.mutations) {
  10038. forEachValue(this._rawModule.mutations, fn);
  10039. }
  10040. };
  10041. Object.defineProperties( Module.prototype, prototypeAccessors );
  10042. var ModuleCollection = function ModuleCollection (rawRootModule) {
  10043. // register root module (Vuex.Store options)
  10044. this.register([], rawRootModule, false);
  10045. };
  10046. ModuleCollection.prototype.get = function get (path) {
  10047. return path.reduce(function (module, key) {
  10048. return module.getChild(key)
  10049. }, this.root)
  10050. };
  10051. ModuleCollection.prototype.getNamespace = function getNamespace (path) {
  10052. var module = this.root;
  10053. return path.reduce(function (namespace, key) {
  10054. module = module.getChild(key);
  10055. return namespace + (module.namespaced ? key + '/' : '')
  10056. }, '')
  10057. };
  10058. ModuleCollection.prototype.update = function update$1 (rawRootModule) {
  10059. update([], this.root, rawRootModule);
  10060. };
  10061. ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
  10062. var this$1 = this;
  10063. if ( runtime === void 0 ) runtime = true;
  10064. if ((true)) {
  10065. assertRawModule(path, rawModule);
  10066. }
  10067. var newModule = new Module(rawModule, runtime);
  10068. if (path.length === 0) {
  10069. this.root = newModule;
  10070. } else {
  10071. var parent = this.get(path.slice(0, -1));
  10072. parent.addChild(path[path.length - 1], newModule);
  10073. }
  10074. // register nested modules
  10075. if (rawModule.modules) {
  10076. forEachValue(rawModule.modules, function (rawChildModule, key) {
  10077. this$1.register(path.concat(key), rawChildModule, runtime);
  10078. });
  10079. }
  10080. };
  10081. ModuleCollection.prototype.unregister = function unregister (path) {
  10082. var parent = this.get(path.slice(0, -1));
  10083. var key = path[path.length - 1];
  10084. var child = parent.getChild(key);
  10085. if (!child) {
  10086. if ((true)) {
  10087. console.warn(
  10088. "[vuex] trying to unregister module '" + key + "', which is " +
  10089. "not registered"
  10090. );
  10091. }
  10092. return
  10093. }
  10094. if (!child.runtime) {
  10095. return
  10096. }
  10097. parent.removeChild(key);
  10098. };
  10099. ModuleCollection.prototype.isRegistered = function isRegistered (path) {
  10100. var parent = this.get(path.slice(0, -1));
  10101. var key = path[path.length - 1];
  10102. if (parent) {
  10103. return parent.hasChild(key)
  10104. }
  10105. return false
  10106. };
  10107. function update (path, targetModule, newModule) {
  10108. if ((true)) {
  10109. assertRawModule(path, newModule);
  10110. }
  10111. // update target module
  10112. targetModule.update(newModule);
  10113. // update nested modules
  10114. if (newModule.modules) {
  10115. for (var key in newModule.modules) {
  10116. if (!targetModule.getChild(key)) {
  10117. if ((true)) {
  10118. console.warn(
  10119. "[vuex] trying to add a new module '" + key + "' on hot reloading, " +
  10120. 'manual reload is needed'
  10121. );
  10122. }
  10123. return
  10124. }
  10125. update(
  10126. path.concat(key),
  10127. targetModule.getChild(key),
  10128. newModule.modules[key]
  10129. );
  10130. }
  10131. }
  10132. }
  10133. var functionAssert = {
  10134. assert: function (value) { return typeof value === 'function'; },
  10135. expected: 'function'
  10136. };
  10137. var objectAssert = {
  10138. assert: function (value) { return typeof value === 'function' ||
  10139. (typeof value === 'object' && typeof value.handler === 'function'); },
  10140. expected: 'function or object with "handler" function'
  10141. };
  10142. var assertTypes = {
  10143. getters: functionAssert,
  10144. mutations: functionAssert,
  10145. actions: objectAssert
  10146. };
  10147. function assertRawModule (path, rawModule) {
  10148. Object.keys(assertTypes).forEach(function (key) {
  10149. if (!rawModule[key]) { return }
  10150. var assertOptions = assertTypes[key];
  10151. forEachValue(rawModule[key], function (value, type) {
  10152. assert(
  10153. assertOptions.assert(value),
  10154. makeAssertionMessage(path, key, type, value, assertOptions.expected)
  10155. );
  10156. });
  10157. });
  10158. }
  10159. function makeAssertionMessage (path, key, type, value, expected) {
  10160. var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
  10161. if (path.length > 0) {
  10162. buf += " in module \"" + (path.join('.')) + "\"";
  10163. }
  10164. buf += " is " + (JSON.stringify(value)) + ".";
  10165. return buf
  10166. }
  10167. var Vue; // bind on install
  10168. var Store = function Store (options) {
  10169. var this$1 = this;
  10170. if ( options === void 0 ) options = {};
  10171. // Auto install if it is not done yet and `window` has `Vue`.
  10172. // To allow users to avoid auto-installation in some cases,
  10173. // this code should be placed here. See #731
  10174. if (!Vue && typeof window !== 'undefined' && window.Vue) {
  10175. install(window.Vue);
  10176. }
  10177. if ((true)) {
  10178. assert(Vue, "must call Vue.use(Vuex) before creating a store instance.");
  10179. assert(typeof Promise !== 'undefined', "vuex requires a Promise polyfill in this browser.");
  10180. assert(this instanceof Store, "store must be called with the new operator.");
  10181. }
  10182. var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
  10183. var strict = options.strict; if ( strict === void 0 ) strict = false;
  10184. // store internal state
  10185. this._committing = false;
  10186. this._actions = Object.create(null);
  10187. this._actionSubscribers = [];
  10188. this._mutations = Object.create(null);
  10189. this._wrappedGetters = Object.create(null);
  10190. this._modules = new ModuleCollection(options);
  10191. this._modulesNamespaceMap = Object.create(null);
  10192. this._subscribers = [];
  10193. this._watcherVM = new Vue();
  10194. this._makeLocalGettersCache = Object.create(null);
  10195. // bind commit and dispatch to self
  10196. var store = this;
  10197. var ref = this;
  10198. var dispatch = ref.dispatch;
  10199. var commit = ref.commit;
  10200. this.dispatch = function boundDispatch (type, payload) {
  10201. return dispatch.call(store, type, payload)
  10202. };
  10203. this.commit = function boundCommit (type, payload, options) {
  10204. return commit.call(store, type, payload, options)
  10205. };
  10206. // strict mode
  10207. this.strict = strict;
  10208. var state = this._modules.root.state;
  10209. // init root module.
  10210. // this also recursively registers all sub-modules
  10211. // and collects all module getters inside this._wrappedGetters
  10212. installModule(this, state, [], this._modules.root);
  10213. // initialize the store vm, which is responsible for the reactivity
  10214. // (also registers _wrappedGetters as computed properties)
  10215. resetStoreVM(this, state);
  10216. // apply plugins
  10217. plugins.forEach(function (plugin) { return plugin(this$1); });
  10218. var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
  10219. if (useDevtools) {
  10220. devtoolPlugin(this);
  10221. }
  10222. };
  10223. var prototypeAccessors$1 = { state: { configurable: true } };
  10224. prototypeAccessors$1.state.get = function () {
  10225. return this._vm._data.$$state
  10226. };
  10227. prototypeAccessors$1.state.set = function (v) {
  10228. if ((true)) {
  10229. assert(false, "use store.replaceState() to explicit replace store state.");
  10230. }
  10231. };
  10232. Store.prototype.commit = function commit (_type, _payload, _options) {
  10233. var this$1 = this;
  10234. // check object-style commit
  10235. var ref = unifyObjectStyle(_type, _payload, _options);
  10236. var type = ref.type;
  10237. var payload = ref.payload;
  10238. var options = ref.options;
  10239. var mutation = { type: type, payload: payload };
  10240. var entry = this._mutations[type];
  10241. if (!entry) {
  10242. if ((true)) {
  10243. console.error(("[vuex] unknown mutation type: " + type));
  10244. }
  10245. return
  10246. }
  10247. this._withCommit(function () {
  10248. entry.forEach(function commitIterator (handler) {
  10249. handler(payload);
  10250. });
  10251. });
  10252. this._subscribers
  10253. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  10254. .forEach(function (sub) { return sub(mutation, this$1.state); });
  10255. if (
  10256. ( true) &&
  10257. options && options.silent
  10258. ) {
  10259. console.warn(
  10260. "[vuex] mutation type: " + type + ". Silent option has been removed. " +
  10261. 'Use the filter functionality in the vue-devtools'
  10262. );
  10263. }
  10264. };
  10265. Store.prototype.dispatch = function dispatch (_type, _payload) {
  10266. var this$1 = this;
  10267. // check object-style dispatch
  10268. var ref = unifyObjectStyle(_type, _payload);
  10269. var type = ref.type;
  10270. var payload = ref.payload;
  10271. var action = { type: type, payload: payload };
  10272. var entry = this._actions[type];
  10273. if (!entry) {
  10274. if ((true)) {
  10275. console.error(("[vuex] unknown action type: " + type));
  10276. }
  10277. return
  10278. }
  10279. try {
  10280. this._actionSubscribers
  10281. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  10282. .filter(function (sub) { return sub.before; })
  10283. .forEach(function (sub) { return sub.before(action, this$1.state); });
  10284. } catch (e) {
  10285. if ((true)) {
  10286. console.warn("[vuex] error in before action subscribers: ");
  10287. console.error(e);
  10288. }
  10289. }
  10290. var result = entry.length > 1
  10291. ? Promise.all(entry.map(function (handler) { return handler(payload); }))
  10292. : entry[0](payload);
  10293. return new Promise(function (resolve, reject) {
  10294. result.then(function (res) {
  10295. try {
  10296. this$1._actionSubscribers
  10297. .filter(function (sub) { return sub.after; })
  10298. .forEach(function (sub) { return sub.after(action, this$1.state); });
  10299. } catch (e) {
  10300. if ((true)) {
  10301. console.warn("[vuex] error in after action subscribers: ");
  10302. console.error(e);
  10303. }
  10304. }
  10305. resolve(res);
  10306. }, function (error) {
  10307. try {
  10308. this$1._actionSubscribers
  10309. .filter(function (sub) { return sub.error; })
  10310. .forEach(function (sub) { return sub.error(action, this$1.state, error); });
  10311. } catch (e) {
  10312. if ((true)) {
  10313. console.warn("[vuex] error in error action subscribers: ");
  10314. console.error(e);
  10315. }
  10316. }
  10317. reject(error);
  10318. });
  10319. })
  10320. };
  10321. Store.prototype.subscribe = function subscribe (fn, options) {
  10322. return genericSubscribe(fn, this._subscribers, options)
  10323. };
  10324. Store.prototype.subscribeAction = function subscribeAction (fn, options) {
  10325. var subs = typeof fn === 'function' ? { before: fn } : fn;
  10326. return genericSubscribe(subs, this._actionSubscribers, options)
  10327. };
  10328. Store.prototype.watch = function watch (getter, cb, options) {
  10329. var this$1 = this;
  10330. if ((true)) {
  10331. assert(typeof getter === 'function', "store.watch only accepts a function.");
  10332. }
  10333. return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
  10334. };
  10335. Store.prototype.replaceState = function replaceState (state) {
  10336. var this$1 = this;
  10337. this._withCommit(function () {
  10338. this$1._vm._data.$$state = state;
  10339. });
  10340. };
  10341. Store.prototype.registerModule = function registerModule (path, rawModule, options) {
  10342. if ( options === void 0 ) options = {};
  10343. if (typeof path === 'string') { path = [path]; }
  10344. if ((true)) {
  10345. assert(Array.isArray(path), "module path must be a string or an Array.");
  10346. assert(path.length > 0, 'cannot register the root module by using registerModule.');
  10347. }
  10348. this._modules.register(path, rawModule);
  10349. installModule(this, this.state, path, this._modules.get(path), options.preserveState);
  10350. // reset store to update getters...
  10351. resetStoreVM(this, this.state);
  10352. };
  10353. Store.prototype.unregisterModule = function unregisterModule (path) {
  10354. var this$1 = this;
  10355. if (typeof path === 'string') { path = [path]; }
  10356. if ((true)) {
  10357. assert(Array.isArray(path), "module path must be a string or an Array.");
  10358. }
  10359. this._modules.unregister(path);
  10360. this._withCommit(function () {
  10361. var parentState = getNestedState(this$1.state, path.slice(0, -1));
  10362. Vue.delete(parentState, path[path.length - 1]);
  10363. });
  10364. resetStore(this);
  10365. };
  10366. Store.prototype.hasModule = function hasModule (path) {
  10367. if (typeof path === 'string') { path = [path]; }
  10368. if ((true)) {
  10369. assert(Array.isArray(path), "module path must be a string or an Array.");
  10370. }
  10371. return this._modules.isRegistered(path)
  10372. };
  10373. Store.prototype[[104,111,116,85,112,100,97,116,101].map(function (item) {return String.fromCharCode(item)}).join('')] = function (newOptions) {
  10374. this._modules.update(newOptions);
  10375. resetStore(this, true);
  10376. };
  10377. Store.prototype._withCommit = function _withCommit (fn) {
  10378. var committing = this._committing;
  10379. this._committing = true;
  10380. fn();
  10381. this._committing = committing;
  10382. };
  10383. Object.defineProperties( Store.prototype, prototypeAccessors$1 );
  10384. function genericSubscribe (fn, subs, options) {
  10385. if (subs.indexOf(fn) < 0) {
  10386. options && options.prepend
  10387. ? subs.unshift(fn)
  10388. : subs.push(fn);
  10389. }
  10390. return function () {
  10391. var i = subs.indexOf(fn);
  10392. if (i > -1) {
  10393. subs.splice(i, 1);
  10394. }
  10395. }
  10396. }
  10397. function resetStore (store, hot) {
  10398. store._actions = Object.create(null);
  10399. store._mutations = Object.create(null);
  10400. store._wrappedGetters = Object.create(null);
  10401. store._modulesNamespaceMap = Object.create(null);
  10402. var state = store.state;
  10403. // init all modules
  10404. installModule(store, state, [], store._modules.root, true);
  10405. // reset vm
  10406. resetStoreVM(store, state, hot);
  10407. }
  10408. function resetStoreVM (store, state, hot) {
  10409. var oldVm = store._vm;
  10410. // bind store public getters
  10411. store.getters = {};
  10412. // reset local getters cache
  10413. store._makeLocalGettersCache = Object.create(null);
  10414. var wrappedGetters = store._wrappedGetters;
  10415. var computed = {};
  10416. forEachValue(wrappedGetters, function (fn, key) {
  10417. // use computed to leverage its lazy-caching mechanism
  10418. // direct inline function use will lead to closure preserving oldVm.
  10419. // using partial to return function with only arguments preserved in closure environment.
  10420. computed[key] = partial(fn, store);
  10421. Object.defineProperty(store.getters, key, {
  10422. get: function () { return store._vm[key]; },
  10423. enumerable: true // for local getters
  10424. });
  10425. });
  10426. // use a Vue instance to store the state tree
  10427. // suppress warnings just in case the user has added
  10428. // some funky global mixins
  10429. var silent = Vue.config.silent;
  10430. Vue.config.silent = true;
  10431. store._vm = new Vue({
  10432. data: {
  10433. $$state: state
  10434. },
  10435. computed: computed
  10436. });
  10437. Vue.config.silent = silent;
  10438. // enable strict mode for new vm
  10439. if (store.strict) {
  10440. enableStrictMode(store);
  10441. }
  10442. if (oldVm) {
  10443. if (hot) {
  10444. // dispatch changes in all subscribed watchers
  10445. // to force getter re-evaluation for hot reloading.
  10446. store._withCommit(function () {
  10447. oldVm._data.$$state = null;
  10448. });
  10449. }
  10450. Vue.nextTick(function () { return oldVm.$destroy(); });
  10451. }
  10452. }
  10453. function installModule (store, rootState, path, module, hot) {
  10454. var isRoot = !path.length;
  10455. var namespace = store._modules.getNamespace(path);
  10456. // register in namespace map
  10457. if (module.namespaced) {
  10458. if (store._modulesNamespaceMap[namespace] && ("development" !== 'production')) {
  10459. console.error(("[vuex] duplicate namespace " + namespace + " for the namespaced module " + (path.join('/'))));
  10460. }
  10461. store._modulesNamespaceMap[namespace] = module;
  10462. }
  10463. // set state
  10464. if (!isRoot && !hot) {
  10465. var parentState = getNestedState(rootState, path.slice(0, -1));
  10466. var moduleName = path[path.length - 1];
  10467. store._withCommit(function () {
  10468. if ((true)) {
  10469. if (moduleName in parentState) {
  10470. console.warn(
  10471. ("[vuex] state field \"" + moduleName + "\" was overridden by a module with the same name at \"" + (path.join('.')) + "\"")
  10472. );
  10473. }
  10474. }
  10475. Vue.set(parentState, moduleName, module.state);
  10476. });
  10477. }
  10478. var local = module.context = makeLocalContext(store, namespace, path);
  10479. module.forEachMutation(function (mutation, key) {
  10480. var namespacedType = namespace + key;
  10481. registerMutation(store, namespacedType, mutation, local);
  10482. });
  10483. module.forEachAction(function (action, key) {
  10484. var type = action.root ? key : namespace + key;
  10485. var handler = action.handler || action;
  10486. registerAction(store, type, handler, local);
  10487. });
  10488. module.forEachGetter(function (getter, key) {
  10489. var namespacedType = namespace + key;
  10490. registerGetter(store, namespacedType, getter, local);
  10491. });
  10492. module.forEachChild(function (child, key) {
  10493. installModule(store, rootState, path.concat(key), child, hot);
  10494. });
  10495. }
  10496. /**
  10497. * make localized dispatch, commit, getters and state
  10498. * if there is no namespace, just use root ones
  10499. */
  10500. function makeLocalContext (store, namespace, path) {
  10501. var noNamespace = namespace === '';
  10502. var local = {
  10503. dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
  10504. var args = unifyObjectStyle(_type, _payload, _options);
  10505. var payload = args.payload;
  10506. var options = args.options;
  10507. var type = args.type;
  10508. if (!options || !options.root) {
  10509. type = namespace + type;
  10510. if (( true) && !store._actions[type]) {
  10511. console.error(("[vuex] unknown local action type: " + (args.type) + ", global type: " + type));
  10512. return
  10513. }
  10514. }
  10515. return store.dispatch(type, payload)
  10516. },
  10517. commit: noNamespace ? store.commit : function (_type, _payload, _options) {
  10518. var args = unifyObjectStyle(_type, _payload, _options);
  10519. var payload = args.payload;
  10520. var options = args.options;
  10521. var type = args.type;
  10522. if (!options || !options.root) {
  10523. type = namespace + type;
  10524. if (( true) && !store._mutations[type]) {
  10525. console.error(("[vuex] unknown local mutation type: " + (args.type) + ", global type: " + type));
  10526. return
  10527. }
  10528. }
  10529. store.commit(type, payload, options);
  10530. }
  10531. };
  10532. // getters and state object must be gotten lazily
  10533. // because they will be changed by vm update
  10534. Object.defineProperties(local, {
  10535. getters: {
  10536. get: noNamespace
  10537. ? function () { return store.getters; }
  10538. : function () { return makeLocalGetters(store, namespace); }
  10539. },
  10540. state: {
  10541. get: function () { return getNestedState(store.state, path); }
  10542. }
  10543. });
  10544. return local
  10545. }
  10546. function makeLocalGetters (store, namespace) {
  10547. if (!store._makeLocalGettersCache[namespace]) {
  10548. var gettersProxy = {};
  10549. var splitPos = namespace.length;
  10550. Object.keys(store.getters).forEach(function (type) {
  10551. // skip if the target getter is not match this namespace
  10552. if (type.slice(0, splitPos) !== namespace) { return }
  10553. // extract local getter type
  10554. var localType = type.slice(splitPos);
  10555. // Add a port to the getters proxy.
  10556. // Define as getter property because
  10557. // we do not want to evaluate the getters in this time.
  10558. Object.defineProperty(gettersProxy, localType, {
  10559. get: function () { return store.getters[type]; },
  10560. enumerable: true
  10561. });
  10562. });
  10563. store._makeLocalGettersCache[namespace] = gettersProxy;
  10564. }
  10565. return store._makeLocalGettersCache[namespace]
  10566. }
  10567. function registerMutation (store, type, handler, local) {
  10568. var entry = store._mutations[type] || (store._mutations[type] = []);
  10569. entry.push(function wrappedMutationHandler (payload) {
  10570. handler.call(store, local.state, payload);
  10571. });
  10572. }
  10573. function registerAction (store, type, handler, local) {
  10574. var entry = store._actions[type] || (store._actions[type] = []);
  10575. entry.push(function wrappedActionHandler (payload) {
  10576. var res = handler.call(store, {
  10577. dispatch: local.dispatch,
  10578. commit: local.commit,
  10579. getters: local.getters,
  10580. state: local.state,
  10581. rootGetters: store.getters,
  10582. rootState: store.state
  10583. }, payload);
  10584. if (!isPromise(res)) {
  10585. res = Promise.resolve(res);
  10586. }
  10587. if (store._devtoolHook) {
  10588. return res.catch(function (err) {
  10589. store._devtoolHook.emit('vuex:error', err);
  10590. throw err
  10591. })
  10592. } else {
  10593. return res
  10594. }
  10595. });
  10596. }
  10597. function registerGetter (store, type, rawGetter, local) {
  10598. if (store._wrappedGetters[type]) {
  10599. if ((true)) {
  10600. console.error(("[vuex] duplicate getter key: " + type));
  10601. }
  10602. return
  10603. }
  10604. store._wrappedGetters[type] = function wrappedGetter (store) {
  10605. return rawGetter(
  10606. local.state, // local state
  10607. local.getters, // local getters
  10608. store.state, // root state
  10609. store.getters // root getters
  10610. )
  10611. };
  10612. }
  10613. function enableStrictMode (store) {
  10614. store._vm.$watch(function () { return this._data.$$state }, function () {
  10615. if ((true)) {
  10616. assert(store._committing, "do not mutate vuex store state outside mutation handlers.");
  10617. }
  10618. }, { deep: true, sync: true });
  10619. }
  10620. function getNestedState (state, path) {
  10621. return path.reduce(function (state, key) { return state[key]; }, state)
  10622. }
  10623. function unifyObjectStyle (type, payload, options) {
  10624. if (isObject(type) && type.type) {
  10625. options = payload;
  10626. payload = type;
  10627. type = type.type;
  10628. }
  10629. if ((true)) {
  10630. assert(typeof type === 'string', ("expects string as the type, but found " + (typeof type) + "."));
  10631. }
  10632. return { type: type, payload: payload, options: options }
  10633. }
  10634. function install (_Vue) {
  10635. if (Vue && _Vue === Vue) {
  10636. if ((true)) {
  10637. console.error(
  10638. '[vuex] already installed. Vue.use(Vuex) should be called only once.'
  10639. );
  10640. }
  10641. return
  10642. }
  10643. Vue = _Vue;
  10644. applyMixin(Vue);
  10645. }
  10646. /**
  10647. * Reduce the code which written in Vue.js for getting the state.
  10648. * @param {String} [namespace] - Module's namespace
  10649. * @param {Object|Array} states # Object's item can be a function which accept state and getters for param, you can do something for state and getters in it.
  10650. * @param {Object}
  10651. */
  10652. var mapState = normalizeNamespace(function (namespace, states) {
  10653. var res = {};
  10654. if (( true) && !isValidMap(states)) {
  10655. console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');
  10656. }
  10657. normalizeMap(states).forEach(function (ref) {
  10658. var key = ref.key;
  10659. var val = ref.val;
  10660. res[key] = function mappedState () {
  10661. var state = this.$store.state;
  10662. var getters = this.$store.getters;
  10663. if (namespace) {
  10664. var module = getModuleByNamespace(this.$store, 'mapState', namespace);
  10665. if (!module) {
  10666. return
  10667. }
  10668. state = module.context.state;
  10669. getters = module.context.getters;
  10670. }
  10671. return typeof val === 'function'
  10672. ? val.call(this, state, getters)
  10673. : state[val]
  10674. };
  10675. // mark vuex getter for devtools
  10676. res[key].vuex = true;
  10677. });
  10678. return res
  10679. });
  10680. /**
  10681. * Reduce the code which written in Vue.js for committing the mutation
  10682. * @param {String} [namespace] - Module's namespace
  10683. * @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept another params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
  10684. * @return {Object}
  10685. */
  10686. var mapMutations = normalizeNamespace(function (namespace, mutations) {
  10687. var res = {};
  10688. if (( true) && !isValidMap(mutations)) {
  10689. console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');
  10690. }
  10691. normalizeMap(mutations).forEach(function (ref) {
  10692. var key = ref.key;
  10693. var val = ref.val;
  10694. res[key] = function mappedMutation () {
  10695. var args = [], len = arguments.length;
  10696. while ( len-- ) args[ len ] = arguments[ len ];
  10697. // Get the commit method from store
  10698. var commit = this.$store.commit;
  10699. if (namespace) {
  10700. var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
  10701. if (!module) {
  10702. return
  10703. }
  10704. commit = module.context.commit;
  10705. }
  10706. return typeof val === 'function'
  10707. ? val.apply(this, [commit].concat(args))
  10708. : commit.apply(this.$store, [val].concat(args))
  10709. };
  10710. });
  10711. return res
  10712. });
  10713. /**
  10714. * Reduce the code which written in Vue.js for getting the getters
  10715. * @param {String} [namespace] - Module's namespace
  10716. * @param {Object|Array} getters
  10717. * @return {Object}
  10718. */
  10719. var mapGetters = normalizeNamespace(function (namespace, getters) {
  10720. var res = {};
  10721. if (( true) && !isValidMap(getters)) {
  10722. console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');
  10723. }
  10724. normalizeMap(getters).forEach(function (ref) {
  10725. var key = ref.key;
  10726. var val = ref.val;
  10727. // The namespace has been mutated by normalizeNamespace
  10728. val = namespace + val;
  10729. res[key] = function mappedGetter () {
  10730. if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
  10731. return
  10732. }
  10733. if (( true) && !(val in this.$store.getters)) {
  10734. console.error(("[vuex] unknown getter: " + val));
  10735. return
  10736. }
  10737. return this.$store.getters[val]
  10738. };
  10739. // mark vuex getter for devtools
  10740. res[key].vuex = true;
  10741. });
  10742. return res
  10743. });
  10744. /**
  10745. * Reduce the code which written in Vue.js for dispatch the action
  10746. * @param {String} [namespace] - Module's namespace
  10747. * @param {Object|Array} actions # Object's item can be a function which accept `dispatch` function as the first param, it can accept anthor params. You can dispatch action and do any other things in this function. specially, You need to pass anthor params from the mapped function.
  10748. * @return {Object}
  10749. */
  10750. var mapActions = normalizeNamespace(function (namespace, actions) {
  10751. var res = {};
  10752. if (( true) && !isValidMap(actions)) {
  10753. console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');
  10754. }
  10755. normalizeMap(actions).forEach(function (ref) {
  10756. var key = ref.key;
  10757. var val = ref.val;
  10758. res[key] = function mappedAction () {
  10759. var args = [], len = arguments.length;
  10760. while ( len-- ) args[ len ] = arguments[ len ];
  10761. // get dispatch function from store
  10762. var dispatch = this.$store.dispatch;
  10763. if (namespace) {
  10764. var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
  10765. if (!module) {
  10766. return
  10767. }
  10768. dispatch = module.context.dispatch;
  10769. }
  10770. return typeof val === 'function'
  10771. ? val.apply(this, [dispatch].concat(args))
  10772. : dispatch.apply(this.$store, [val].concat(args))
  10773. };
  10774. });
  10775. return res
  10776. });
  10777. /**
  10778. * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
  10779. * @param {String} namespace
  10780. * @return {Object}
  10781. */
  10782. var createNamespacedHelpers = function (namespace) { return ({
  10783. mapState: mapState.bind(null, namespace),
  10784. mapGetters: mapGetters.bind(null, namespace),
  10785. mapMutations: mapMutations.bind(null, namespace),
  10786. mapActions: mapActions.bind(null, namespace)
  10787. }); };
  10788. /**
  10789. * Normalize the map
  10790. * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
  10791. * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
  10792. * @param {Array|Object} map
  10793. * @return {Object}
  10794. */
  10795. function normalizeMap (map) {
  10796. if (!isValidMap(map)) {
  10797. return []
  10798. }
  10799. return Array.isArray(map)
  10800. ? map.map(function (key) { return ({ key: key, val: key }); })
  10801. : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
  10802. }
  10803. /**
  10804. * Validate whether given map is valid or not
  10805. * @param {*} map
  10806. * @return {Boolean}
  10807. */
  10808. function isValidMap (map) {
  10809. return Array.isArray(map) || isObject(map)
  10810. }
  10811. /**
  10812. * Return a function expect two param contains namespace and map. it will normalize the namespace and then the param's function will handle the new namespace and the map.
  10813. * @param {Function} fn
  10814. * @return {Function}
  10815. */
  10816. function normalizeNamespace (fn) {
  10817. return function (namespace, map) {
  10818. if (typeof namespace !== 'string') {
  10819. map = namespace;
  10820. namespace = '';
  10821. } else if (namespace.charAt(namespace.length - 1) !== '/') {
  10822. namespace += '/';
  10823. }
  10824. return fn(namespace, map)
  10825. }
  10826. }
  10827. /**
  10828. * Search a special module from store by namespace. if module not exist, print error message.
  10829. * @param {Object} store
  10830. * @param {String} helper
  10831. * @param {String} namespace
  10832. * @return {Object}
  10833. */
  10834. function getModuleByNamespace (store, helper, namespace) {
  10835. var module = store._modulesNamespaceMap[namespace];
  10836. if (( true) && !module) {
  10837. console.error(("[vuex] module namespace not found in " + helper + "(): " + namespace));
  10838. }
  10839. return module
  10840. }
  10841. // Credits: borrowed code from fcomb/redux-logger
  10842. function createLogger (ref) {
  10843. if ( ref === void 0 ) ref = {};
  10844. var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
  10845. var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
  10846. var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
  10847. var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };
  10848. var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };
  10849. var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };
  10850. var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;
  10851. var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;
  10852. var logger = ref.logger; if ( logger === void 0 ) logger = console;
  10853. return function (store) {
  10854. var prevState = deepCopy(store.state);
  10855. if (typeof logger === 'undefined') {
  10856. return
  10857. }
  10858. if (logMutations) {
  10859. store.subscribe(function (mutation, state) {
  10860. var nextState = deepCopy(state);
  10861. if (filter(mutation, prevState, nextState)) {
  10862. var formattedTime = getFormattedTime();
  10863. var formattedMutation = mutationTransformer(mutation);
  10864. var message = "mutation " + (mutation.type) + formattedTime;
  10865. startMessage(logger, message, collapsed);
  10866. logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
  10867. logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
  10868. logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
  10869. endMessage(logger);
  10870. }
  10871. prevState = nextState;
  10872. });
  10873. }
  10874. if (logActions) {
  10875. store.subscribeAction(function (action, state) {
  10876. if (actionFilter(action, state)) {
  10877. var formattedTime = getFormattedTime();
  10878. var formattedAction = actionTransformer(action);
  10879. var message = "action " + (action.type) + formattedTime;
  10880. startMessage(logger, message, collapsed);
  10881. logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
  10882. endMessage(logger);
  10883. }
  10884. });
  10885. }
  10886. }
  10887. }
  10888. function startMessage (logger, message, collapsed) {
  10889. var startMessage = collapsed
  10890. ? logger.groupCollapsed
  10891. : logger.group;
  10892. // render
  10893. try {
  10894. startMessage.call(logger, message);
  10895. } catch (e) {
  10896. logger.log(message);
  10897. }
  10898. }
  10899. function endMessage (logger) {
  10900. try {
  10901. logger.groupEnd();
  10902. } catch (e) {
  10903. logger.log('—— log end ——');
  10904. }
  10905. }
  10906. function getFormattedTime () {
  10907. var time = new Date();
  10908. return (" @ " + (pad(time.getHours(), 2)) + ":" + (pad(time.getMinutes(), 2)) + ":" + (pad(time.getSeconds(), 2)) + "." + (pad(time.getMilliseconds(), 3)))
  10909. }
  10910. function repeat (str, times) {
  10911. return (new Array(times + 1)).join(str)
  10912. }
  10913. function pad (num, maxLength) {
  10914. return repeat('0', maxLength - num.toString().length) + num
  10915. }
  10916. var index_cjs = {
  10917. Store: Store,
  10918. install: install,
  10919. version: '3.6.2',
  10920. mapState: mapState,
  10921. mapMutations: mapMutations,
  10922. mapGetters: mapGetters,
  10923. mapActions: mapActions,
  10924. createNamespacedHelpers: createNamespacedHelpers,
  10925. createLogger: createLogger
  10926. };
  10927. module.exports = index_cjs;
  10928. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  10929. /***/ }),
  10930. /* 39 */
  10931. /*!*****************************************************************************!*\
  10932. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/index.js ***!
  10933. \*****************************************************************************/
  10934. /*! no static exports found */
  10935. /***/ (function(module, exports, __webpack_require__) {
  10936. "use strict";
  10937. /* WEBPACK VAR INJECTION */(function(uni) {
  10938. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10939. Object.defineProperty(exports, "__esModule", {
  10940. value: true
  10941. });
  10942. exports.default = void 0;
  10943. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  10944. var _mixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mixin.js */ 40));
  10945. var _mpMixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mpMixin.js */ 41));
  10946. var _luchRequest = _interopRequireDefault(__webpack_require__(/*! ./libs/luch-request */ 42));
  10947. var _route = _interopRequireDefault(__webpack_require__(/*! ./libs/util/route.js */ 60));
  10948. var _colorGradient = _interopRequireDefault(__webpack_require__(/*! ./libs/function/colorGradient.js */ 61));
  10949. var _test = _interopRequireDefault(__webpack_require__(/*! ./libs/function/test.js */ 62));
  10950. var _debounce = _interopRequireDefault(__webpack_require__(/*! ./libs/function/debounce.js */ 63));
  10951. var _throttle = _interopRequireDefault(__webpack_require__(/*! ./libs/function/throttle.js */ 64));
  10952. var _index = _interopRequireDefault(__webpack_require__(/*! ./libs/function/index.js */ 65));
  10953. var _config = _interopRequireDefault(__webpack_require__(/*! ./libs/config/config.js */ 68));
  10954. var _props = _interopRequireDefault(__webpack_require__(/*! ./libs/config/props.js */ 69));
  10955. var _zIndex = _interopRequireDefault(__webpack_require__(/*! ./libs/config/zIndex.js */ 159));
  10956. var _color = _interopRequireDefault(__webpack_require__(/*! ./libs/config/color.js */ 117));
  10957. var _platform = _interopRequireDefault(__webpack_require__(/*! ./libs/function/platform */ 160));
  10958. 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; }
  10959. 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; }
  10960. // 看到此报错,是因为没有配置vue.config.js的【transpileDependencies】,详见:https://www.uviewui.com/components/npmSetting.html#_5-cli模式额外配置
  10961. var pleaseSetTranspileDependencies = {},
  10962. babelTest = pleaseSetTranspileDependencies === null || pleaseSetTranspileDependencies === void 0 ? void 0 : pleaseSetTranspileDependencies.test;
  10963. // 引入全局mixin
  10964. var $u = _objectSpread(_objectSpread({
  10965. route: _route.default,
  10966. date: _index.default.timeFormat,
  10967. // 另名date
  10968. colorGradient: _colorGradient.default.colorGradient,
  10969. hexToRgb: _colorGradient.default.hexToRgb,
  10970. rgbToHex: _colorGradient.default.rgbToHex,
  10971. colorToRgba: _colorGradient.default.colorToRgba,
  10972. test: _test.default,
  10973. type: ['primary', 'success', 'error', 'warning', 'info'],
  10974. http: new _luchRequest.default(),
  10975. config: _config.default,
  10976. // uView配置信息相关,比如版本号
  10977. zIndex: _zIndex.default,
  10978. debounce: _debounce.default,
  10979. throttle: _throttle.default,
  10980. mixin: _mixin.default,
  10981. mpMixin: _mpMixin.default,
  10982. props: _props.default
  10983. }, _index.default), {}, {
  10984. color: _color.default,
  10985. platform: _platform.default
  10986. });
  10987. // $u挂载到uni对象上
  10988. uni.$u = $u;
  10989. var install = function install(Vue) {
  10990. // 时间格式化,同时两个名称,date和timeFormat
  10991. Vue.filter('timeFormat', function (timestamp, format) {
  10992. return uni.$u.timeFormat(timestamp, format);
  10993. });
  10994. Vue.filter('date', function (timestamp, format) {
  10995. return uni.$u.timeFormat(timestamp, format);
  10996. });
  10997. // 将多久以前的方法,注入到全局过滤器
  10998. Vue.filter('timeFrom', function (timestamp, format) {
  10999. return uni.$u.timeFrom(timestamp, format);
  11000. });
  11001. // 同时挂载到uni和Vue.prototype中
  11002. // 只有vue,挂载到Vue.prototype才有意义,因为nvue中全局Vue.prototype和Vue.mixin是无效的
  11003. Vue.prototype.$u = $u;
  11004. Vue.mixin(_mixin.default);
  11005. };
  11006. var _default = {
  11007. install: install
  11008. };
  11009. exports.default = _default;
  11010. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  11011. /***/ }),
  11012. /* 40 */
  11013. /*!****************************************************************************************!*\
  11014. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/mixin/mixin.js ***!
  11015. \****************************************************************************************/
  11016. /*! no static exports found */
  11017. /***/ (function(module, exports, __webpack_require__) {
  11018. /* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
  11019. // 定义每个组件都可能需要用到的外部样式以及类名
  11020. props: {
  11021. // 每个组件都有的父组件传递的样式,可以为字符串或者对象形式
  11022. customStyle: {
  11023. type: [Object, String],
  11024. default: function _default() {
  11025. return {};
  11026. }
  11027. },
  11028. customClass: {
  11029. type: String,
  11030. default: ''
  11031. },
  11032. // 跳转的页面路径
  11033. url: {
  11034. type: String,
  11035. default: ''
  11036. },
  11037. // 页面跳转的类型
  11038. linkType: {
  11039. type: String,
  11040. default: 'navigateTo'
  11041. }
  11042. },
  11043. data: function data() {
  11044. return {};
  11045. },
  11046. onLoad: function onLoad() {
  11047. // getRect挂载到$u上,因为这方法需要使用in(this),所以无法把它独立成一个单独的文件导出
  11048. this.$u.getRect = this.$uGetRect;
  11049. },
  11050. created: function created() {
  11051. // 组件当中,只有created声明周期,为了能在组件使用,故也在created中将方法挂载到$u
  11052. this.$u.getRect = this.$uGetRect;
  11053. },
  11054. computed: {
  11055. // 在2.x版本中,将会把$u挂载到uni对象下,导致在模板中无法使用uni.$u.xxx形式
  11056. // 所以这里通过computed计算属性将其附加到this.$u上,就可以在模板或者js中使用uni.$u.xxx
  11057. // 只在nvue环境通过此方式引入完整的$u,其他平台会出现性能问题,非nvue则按需引入(主要原因是props过大)
  11058. $u: function $u() {
  11059. // 在非nvue端,移除props,http,mixin等对象,避免在小程序setData时数据过大影响性能
  11060. return uni.$u.deepMerge(uni.$u, {
  11061. props: undefined,
  11062. http: undefined,
  11063. mixin: undefined
  11064. });
  11065. },
  11066. /**
  11067. * 生成bem规则类名
  11068. * 由于微信小程序,H5,nvue之间绑定class的差异,无法通过:class="[bem()]"的形式进行同用
  11069. * 故采用如下折中做法,最后返回的是数组(一般平台)或字符串(支付宝和字节跳动平台),类似['a', 'b', 'c']或'a b c'的形式
  11070. * @param {String} name 组件名称
  11071. * @param {Array} fixed 一直会存在的类名
  11072. * @param {Array} change 会根据变量值为true或者false而出现或者隐藏的类名
  11073. * @returns {Array|string}
  11074. */
  11075. bem: function bem() {
  11076. return function (name, fixed, change) {
  11077. var _this = this;
  11078. // 类名前缀
  11079. var prefix = "u-".concat(name, "--");
  11080. var classes = {};
  11081. if (fixed) {
  11082. fixed.map(function (item) {
  11083. // 这里的类名,会一直存在
  11084. classes[prefix + _this[item]] = true;
  11085. });
  11086. }
  11087. if (change) {
  11088. change.map(function (item) {
  11089. // 这里的类名,会根据this[item]的值为true或者false,而进行添加或者移除某一个类
  11090. _this[item] ? classes[prefix + item] = _this[item] : delete classes[prefix + item];
  11091. });
  11092. }
  11093. return Object.keys(classes);
  11094. // 支付宝,头条小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效
  11095. };
  11096. }
  11097. },
  11098. methods: {
  11099. // 跳转某一个页面
  11100. openPage: function openPage() {
  11101. var urlKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'url';
  11102. var url = this[urlKey];
  11103. if (url) {
  11104. // 执行类似uni.navigateTo的方法
  11105. uni[this.linkType]({
  11106. url: url
  11107. });
  11108. }
  11109. },
  11110. // 查询节点信息
  11111. // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
  11112. // 解决办法为在组件根部再套一个没有任何作用的view元素
  11113. $uGetRect: function $uGetRect(selector, all) {
  11114. var _this2 = this;
  11115. return new Promise(function (resolve) {
  11116. uni.createSelectorQuery().in(_this2)[all ? 'selectAll' : 'select'](selector).boundingClientRect(function (rect) {
  11117. if (all && Array.isArray(rect) && rect.length) {
  11118. resolve(rect);
  11119. }
  11120. if (!all && rect) {
  11121. resolve(rect);
  11122. }
  11123. }).exec();
  11124. });
  11125. },
  11126. getParentData: function getParentData() {
  11127. var _this3 = this;
  11128. var parentName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  11129. // 避免在created中去定义parent变量
  11130. if (!this.parent) this.parent = {};
  11131. // 这里的本质原理是,通过获取父组件实例(也即类似u-radio的父组件u-radio-group的this)
  11132. // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
  11133. // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
  11134. // 此处并不会自动更新子组件的数据,而是依赖父组件u-radio-group去监听data的变化,手动调用更新子组件的方法去重新获取
  11135. this.parent = uni.$u.$parent.call(this, parentName);
  11136. if (this.parent.children) {
  11137. // 如果父组件的children不存在本组件的实例,才将本实例添加到父组件的children中
  11138. this.parent.children.indexOf(this) === -1 && this.parent.children.push(this);
  11139. }
  11140. if (this.parent && this.parentData) {
  11141. // 历遍parentData中的属性,将parent中的同名属性赋值给parentData
  11142. Object.keys(this.parentData).map(function (key) {
  11143. _this3.parentData[key] = _this3.parent[key];
  11144. });
  11145. }
  11146. },
  11147. // 阻止事件冒泡
  11148. preventEvent: function preventEvent(e) {
  11149. e && typeof e.stopPropagation === 'function' && e.stopPropagation();
  11150. },
  11151. // 空操作
  11152. noop: function noop(e) {
  11153. this.preventEvent(e);
  11154. }
  11155. },
  11156. onReachBottom: function onReachBottom() {
  11157. uni.$emit('uOnReachBottom');
  11158. },
  11159. beforeDestroy: function beforeDestroy() {
  11160. var _this4 = this;
  11161. // 判断当前页面是否存在parent和chldren,一般在checkbox和checkbox-group父子联动的场景会有此情况
  11162. // 组件销毁时,移除子组件在父组件children数组中的实例,释放资源,避免数据混乱
  11163. if (this.parent && uni.$u.test.array(this.parent.children)) {
  11164. // 组件销毁时,移除父组件中的children数组中对应的实例
  11165. var childrenList = this.parent.children;
  11166. childrenList.map(function (child, index) {
  11167. // 如果相等,则移除
  11168. if (child === _this4) {
  11169. childrenList.splice(index, 1);
  11170. }
  11171. });
  11172. }
  11173. }
  11174. };
  11175. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  11176. /***/ }),
  11177. /* 41 */
  11178. /*!******************************************************************************************!*\
  11179. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/mixin/mpMixin.js ***!
  11180. \******************************************************************************************/
  11181. /*! no static exports found */
  11182. /***/ (function(module, exports, __webpack_require__) {
  11183. "use strict";
  11184. Object.defineProperty(exports, "__esModule", {
  11185. value: true
  11186. });
  11187. exports.default = void 0;
  11188. var _default = {
  11189. // 将自定义节点设置成虚拟的,更加接近Vue组件的表现,能更好的使用flex属性
  11190. options: {
  11191. virtualHost: true
  11192. }
  11193. };
  11194. exports.default = _default;
  11195. /***/ }),
  11196. /* 42 */
  11197. /*!***********************************************************************************************!*\
  11198. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/luch-request/index.js ***!
  11199. \***********************************************************************************************/
  11200. /*! no static exports found */
  11201. /***/ (function(module, exports, __webpack_require__) {
  11202. "use strict";
  11203. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  11204. Object.defineProperty(exports, "__esModule", {
  11205. value: true
  11206. });
  11207. exports.default = void 0;
  11208. var _Request = _interopRequireDefault(__webpack_require__(/*! ./core/Request */ 43));
  11209. var _default = _Request.default;
  11210. exports.default = _default;
  11211. /***/ }),
  11212. /* 43 */
  11213. /*!******************************************************************************************************!*\
  11214. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/luch-request/core/Request.js ***!
  11215. \******************************************************************************************************/
  11216. /*! no static exports found */
  11217. /***/ (function(module, exports, __webpack_require__) {
  11218. "use strict";
  11219. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  11220. Object.defineProperty(exports, "__esModule", {
  11221. value: true
  11222. });
  11223. exports.default = void 0;
  11224. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  11225. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  11226. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  11227. var _dispatchRequest = _interopRequireDefault(__webpack_require__(/*! ./dispatchRequest */ 44));
  11228. var _InterceptorManager = _interopRequireDefault(__webpack_require__(/*! ./InterceptorManager */ 52));
  11229. var _mergeConfig = _interopRequireDefault(__webpack_require__(/*! ./mergeConfig */ 53));
  11230. var _defaults = _interopRequireDefault(__webpack_require__(/*! ./defaults */ 54));
  11231. var _utils = __webpack_require__(/*! ../utils */ 47);
  11232. var _clone = _interopRequireDefault(__webpack_require__(/*! ../utils/clone */ 55));
  11233. 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; }
  11234. 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; }
  11235. var Request = /*#__PURE__*/function () {
  11236. /**
  11237. * @param {Object} arg - 全局配置
  11238. * @param {String} arg.baseURL - 全局根路径
  11239. * @param {Object} arg.header - 全局header
  11240. * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式
  11241. * @param {String} arg.dataType = [json] - 全局默认的dataType
  11242. * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持
  11243. * @param {Object} arg.custom - 全局默认的自定义参数
  11244. * @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序(2.10.0)、支付宝小程序
  11245. * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+)
  11246. * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+)
  11247. * @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+)
  11248. * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
  11249. */
  11250. function Request() {
  11251. var arg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  11252. (0, _classCallCheck2.default)(this, Request);
  11253. if (!(0, _utils.isPlainObject)(arg)) {
  11254. arg = {};
  11255. console.warn('设置全局参数必须接收一个Object');
  11256. }
  11257. this.config = (0, _clone.default)(_objectSpread(_objectSpread({}, _defaults.default), arg));
  11258. this.interceptors = {
  11259. request: new _InterceptorManager.default(),
  11260. response: new _InterceptorManager.default()
  11261. };
  11262. }
  11263. /**
  11264. * @Function
  11265. * @param {Request~setConfigCallback} f - 设置全局默认配置
  11266. */
  11267. (0, _createClass2.default)(Request, [{
  11268. key: "setConfig",
  11269. value: function setConfig(f) {
  11270. this.config = f(this.config);
  11271. }
  11272. }, {
  11273. key: "middleware",
  11274. value: function middleware(config) {
  11275. config = (0, _mergeConfig.default)(this.config, config);
  11276. var chain = [_dispatchRequest.default, undefined];
  11277. var promise = Promise.resolve(config);
  11278. this.interceptors.request.forEach(function (interceptor) {
  11279. chain.unshift(interceptor.fulfilled, interceptor.rejected);
  11280. });
  11281. this.interceptors.response.forEach(function (interceptor) {
  11282. chain.push(interceptor.fulfilled, interceptor.rejected);
  11283. });
  11284. while (chain.length) {
  11285. promise = promise.then(chain.shift(), chain.shift());
  11286. }
  11287. return promise;
  11288. }
  11289. /**
  11290. * @Function
  11291. * @param {Object} config - 请求配置项
  11292. * @prop {String} options.url - 请求路径
  11293. * @prop {Object} options.data - 请求参数
  11294. * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型
  11295. * @prop {Object} [options.dataType = config.dataType] - 如果设为 json,会尝试对返回的数据做一次 JSON.parse
  11296. * @prop {Object} [options.header = config.header] - 请求header
  11297. * @prop {Object} [options.method = config.method] - 请求方法
  11298. * @returns {Promise<unknown>}
  11299. */
  11300. }, {
  11301. key: "request",
  11302. value: function request() {
  11303. var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  11304. return this.middleware(config);
  11305. }
  11306. }, {
  11307. key: "get",
  11308. value: function get(url) {
  11309. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  11310. return this.middleware(_objectSpread({
  11311. url: url,
  11312. method: 'GET'
  11313. }, options));
  11314. }
  11315. }, {
  11316. key: "post",
  11317. value: function post(url, data) {
  11318. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  11319. return this.middleware(_objectSpread({
  11320. url: url,
  11321. data: data,
  11322. method: 'POST'
  11323. }, options));
  11324. }
  11325. }, {
  11326. key: "put",
  11327. value: function put(url, data) {
  11328. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  11329. return this.middleware(_objectSpread({
  11330. url: url,
  11331. data: data,
  11332. method: 'PUT'
  11333. }, options));
  11334. }
  11335. }, {
  11336. key: "delete",
  11337. value: function _delete(url, data) {
  11338. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  11339. return this.middleware(_objectSpread({
  11340. url: url,
  11341. data: data,
  11342. method: 'DELETE'
  11343. }, options));
  11344. }
  11345. }, {
  11346. key: "connect",
  11347. value: function connect(url, data) {
  11348. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  11349. return this.middleware(_objectSpread({
  11350. url: url,
  11351. data: data,
  11352. method: 'CONNECT'
  11353. }, options));
  11354. }
  11355. }, {
  11356. key: "head",
  11357. value: function head(url, data) {
  11358. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  11359. return this.middleware(_objectSpread({
  11360. url: url,
  11361. data: data,
  11362. method: 'HEAD'
  11363. }, options));
  11364. }
  11365. }, {
  11366. key: "options",
  11367. value: function options(url, data) {
  11368. var _options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  11369. return this.middleware(_objectSpread({
  11370. url: url,
  11371. data: data,
  11372. method: 'OPTIONS'
  11373. }, _options));
  11374. }
  11375. }, {
  11376. key: "trace",
  11377. value: function trace(url, data) {
  11378. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  11379. return this.middleware(_objectSpread({
  11380. url: url,
  11381. data: data,
  11382. method: 'TRACE'
  11383. }, options));
  11384. }
  11385. }, {
  11386. key: "upload",
  11387. value: function upload(url) {
  11388. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  11389. config.url = url;
  11390. config.method = 'UPLOAD';
  11391. return this.middleware(config);
  11392. }
  11393. }, {
  11394. key: "download",
  11395. value: function download(url) {
  11396. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  11397. config.url = url;
  11398. config.method = 'DOWNLOAD';
  11399. return this.middleware(config);
  11400. }
  11401. }]);
  11402. return Request;
  11403. }();
  11404. /**
  11405. * setConfig回调
  11406. * @return {Object} - 返回操作后的config
  11407. * @callback Request~setConfigCallback
  11408. * @param {Object} config - 全局默认config
  11409. */
  11410. exports.default = Request;
  11411. /***/ }),
  11412. /* 44 */
  11413. /*!**************************************************************************************************************!*\
  11414. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/luch-request/core/dispatchRequest.js ***!
  11415. \**************************************************************************************************************/
  11416. /*! no static exports found */
  11417. /***/ (function(module, exports, __webpack_require__) {
  11418. "use strict";
  11419. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  11420. Object.defineProperty(exports, "__esModule", {
  11421. value: true
  11422. });
  11423. exports.default = void 0;
  11424. var _index = _interopRequireDefault(__webpack_require__(/*! ../adapters/index */ 45));
  11425. var _default = function _default(config) {
  11426. return (0, _index.default)(config);
  11427. };
  11428. exports.default = _default;
  11429. /***/ }),
  11430. /* 45 */
  11431. /*!********************************************************************************************************!*\
  11432. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/luch-request/adapters/index.js ***!
  11433. \********************************************************************************************************/
  11434. /*! no static exports found */
  11435. /***/ (function(module, exports, __webpack_require__) {
  11436. "use strict";
  11437. /* WEBPACK VAR INJECTION */(function(uni) {
  11438. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  11439. Object.defineProperty(exports, "__esModule", {
  11440. value: true
  11441. });
  11442. exports.default = void 0;
  11443. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  11444. var _buildURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/buildURL */ 46));
  11445. var _buildFullPath = _interopRequireDefault(__webpack_require__(/*! ../core/buildFullPath */ 48));
  11446. var _settle = _interopRequireDefault(__webpack_require__(/*! ../core/settle */ 51));
  11447. var _utils = __webpack_require__(/*! ../utils */ 47);
  11448. 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; }
  11449. 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; }
  11450. /**
  11451. * 返回可选值存在的配置
  11452. * @param {Array} keys - 可选值数组
  11453. * @param {Object} config2 - 配置
  11454. * @return {{}} - 存在的配置项
  11455. */
  11456. var mergeKeys = function mergeKeys(keys, config2) {
  11457. var config = {};
  11458. keys.forEach(function (prop) {
  11459. if (!(0, _utils.isUndefined)(config2[prop])) {
  11460. config[prop] = config2[prop];
  11461. }
  11462. });
  11463. return config;
  11464. };
  11465. var _default = function _default(config) {
  11466. return new Promise(function (resolve, reject) {
  11467. var fullPath = (0, _buildURL.default)((0, _buildFullPath.default)(config.baseURL, config.url), config.params);
  11468. var _config = {
  11469. url: fullPath,
  11470. header: config.header,
  11471. complete: function complete(response) {
  11472. config.fullPath = fullPath;
  11473. response.config = config;
  11474. try {
  11475. // 对可能字符串不是json 的情况容错
  11476. if (typeof response.data === 'string') {
  11477. response.data = JSON.parse(response.data);
  11478. }
  11479. // eslint-disable-next-line no-empty
  11480. } catch (e) {}
  11481. (0, _settle.default)(resolve, reject, response);
  11482. }
  11483. };
  11484. var requestTask;
  11485. if (config.method === 'UPLOAD') {
  11486. delete _config.header['content-type'];
  11487. delete _config.header['Content-Type'];
  11488. var otherConfig = {
  11489. filePath: config.filePath,
  11490. name: config.name
  11491. };
  11492. var optionalKeys = ['formData'];
  11493. requestTask = uni.uploadFile(_objectSpread(_objectSpread(_objectSpread({}, _config), otherConfig), mergeKeys(optionalKeys, config)));
  11494. } else if (config.method === 'DOWNLOAD') {
  11495. requestTask = uni.downloadFile(_config);
  11496. } else {
  11497. var _optionalKeys = ['data', 'method', 'timeout', 'dataType', 'responseType'];
  11498. requestTask = uni.request(_objectSpread(_objectSpread({}, _config), mergeKeys(_optionalKeys, config)));
  11499. }
  11500. if (config.getTask) {
  11501. config.getTask(requestTask, config);
  11502. }
  11503. });
  11504. };
  11505. exports.default = _default;
  11506. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  11507. /***/ }),
  11508. /* 46 */
  11509. /*!**********************************************************************************************************!*\
  11510. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/luch-request/helpers/buildURL.js ***!
  11511. \**********************************************************************************************************/
  11512. /*! no static exports found */
  11513. /***/ (function(module, exports, __webpack_require__) {
  11514. "use strict";
  11515. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  11516. Object.defineProperty(exports, "__esModule", {
  11517. value: true
  11518. });
  11519. exports.default = buildURL;
  11520. var utils = _interopRequireWildcard(__webpack_require__(/*! ../utils */ 47));
  11521. 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); }
  11522. 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; }
  11523. function encode(val) {
  11524. return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
  11525. }
  11526. /**
  11527. * Build a URL by appending params to the end
  11528. *
  11529. * @param {string} url The base of the url (e.g., http://www.google.com)
  11530. * @param {object} [params] The params to be appended
  11531. * @returns {string} The formatted url
  11532. */
  11533. function buildURL(url, params) {
  11534. /* eslint no-param-reassign:0 */
  11535. if (!params) {
  11536. return url;
  11537. }
  11538. var serializedParams;
  11539. if (utils.isURLSearchParams(params)) {
  11540. serializedParams = params.toString();
  11541. } else {
  11542. var parts = [];
  11543. utils.forEach(params, function (val, key) {
  11544. if (val === null || typeof val === 'undefined') {
  11545. return;
  11546. }
  11547. if (utils.isArray(val)) {
  11548. key = "".concat(key, "[]");
  11549. } else {
  11550. val = [val];
  11551. }
  11552. utils.forEach(val, function (v) {
  11553. if (utils.isDate(v)) {
  11554. v = v.toISOString();
  11555. } else if (utils.isObject(v)) {
  11556. v = JSON.stringify(v);
  11557. }
  11558. parts.push("".concat(encode(key), "=").concat(encode(v)));
  11559. });
  11560. });
  11561. serializedParams = parts.join('&');
  11562. }
  11563. if (serializedParams) {
  11564. var hashmarkIndex = url.indexOf('#');
  11565. if (hashmarkIndex !== -1) {
  11566. url = url.slice(0, hashmarkIndex);
  11567. }
  11568. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  11569. }
  11570. return url;
  11571. }
  11572. /***/ }),
  11573. /* 47 */
  11574. /*!***********************************************************************************************!*\
  11575. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/luch-request/utils.js ***!
  11576. \***********************************************************************************************/
  11577. /*! no static exports found */
  11578. /***/ (function(module, exports, __webpack_require__) {
  11579. "use strict";
  11580. // utils is a library of generic helper functions non-specific to axios
  11581. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  11582. Object.defineProperty(exports, "__esModule", {
  11583. value: true
  11584. });
  11585. exports.deepMerge = deepMerge;
  11586. exports.forEach = forEach;
  11587. exports.isArray = isArray;
  11588. exports.isBoolean = isBoolean;
  11589. exports.isDate = isDate;
  11590. exports.isObject = isObject;
  11591. exports.isPlainObject = isPlainObject;
  11592. exports.isURLSearchParams = isURLSearchParams;
  11593. exports.isUndefined = isUndefined;
  11594. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  11595. var toString = Object.prototype.toString;
  11596. /**
  11597. * Determine if a value is an Array
  11598. *
  11599. * @param {Object} val The value to test
  11600. * @returns {boolean} True if value is an Array, otherwise false
  11601. */
  11602. function isArray(val) {
  11603. return toString.call(val) === '[object Array]';
  11604. }
  11605. /**
  11606. * Determine if a value is an Object
  11607. *
  11608. * @param {Object} val The value to test
  11609. * @returns {boolean} True if value is an Object, otherwise false
  11610. */
  11611. function isObject(val) {
  11612. return val !== null && (0, _typeof2.default)(val) === 'object';
  11613. }
  11614. /**
  11615. * Determine if a value is a Date
  11616. *
  11617. * @param {Object} val The value to test
  11618. * @returns {boolean} True if value is a Date, otherwise false
  11619. */
  11620. function isDate(val) {
  11621. return toString.call(val) === '[object Date]';
  11622. }
  11623. /**
  11624. * Determine if a value is a URLSearchParams object
  11625. *
  11626. * @param {Object} val The value to test
  11627. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  11628. */
  11629. function isURLSearchParams(val) {
  11630. return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  11631. }
  11632. /**
  11633. * Iterate over an Array or an Object invoking a function for each item.
  11634. *
  11635. * If `obj` is an Array callback will be called passing
  11636. * the value, index, and complete array for each item.
  11637. *
  11638. * If 'obj' is an Object callback will be called passing
  11639. * the value, key, and complete object for each property.
  11640. *
  11641. * @param {Object|Array} obj The object to iterate
  11642. * @param {Function} fn The callback to invoke for each item
  11643. */
  11644. function forEach(obj, fn) {
  11645. // Don't bother if no value provided
  11646. if (obj === null || typeof obj === 'undefined') {
  11647. return;
  11648. }
  11649. // Force an array if not already something iterable
  11650. if ((0, _typeof2.default)(obj) !== 'object') {
  11651. /* eslint no-param-reassign:0 */
  11652. obj = [obj];
  11653. }
  11654. if (isArray(obj)) {
  11655. // Iterate over array values
  11656. for (var i = 0, l = obj.length; i < l; i++) {
  11657. fn.call(null, obj[i], i, obj);
  11658. }
  11659. } else {
  11660. // Iterate over object keys
  11661. for (var key in obj) {
  11662. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  11663. fn.call(null, obj[key], key, obj);
  11664. }
  11665. }
  11666. }
  11667. }
  11668. /**
  11669. * 是否为boolean 值
  11670. * @param val
  11671. * @returns {boolean}
  11672. */
  11673. function isBoolean(val) {
  11674. return typeof val === 'boolean';
  11675. }
  11676. /**
  11677. * 是否为真正的对象{} new Object
  11678. * @param {any} obj - 检测的对象
  11679. * @returns {boolean}
  11680. */
  11681. function isPlainObject(obj) {
  11682. return Object.prototype.toString.call(obj) === '[object Object]';
  11683. }
  11684. /**
  11685. * Function equal to merge with the difference being that no reference
  11686. * to original objects is kept.
  11687. *
  11688. * @see merge
  11689. * @param {Object} obj1 Object to merge
  11690. * @returns {Object} Result of all merge properties
  11691. */
  11692. function deepMerge( /* obj1, obj2, obj3, ... */
  11693. ) {
  11694. var result = {};
  11695. function assignValue(val, key) {
  11696. if ((0, _typeof2.default)(result[key]) === 'object' && (0, _typeof2.default)(val) === 'object') {
  11697. result[key] = deepMerge(result[key], val);
  11698. } else if ((0, _typeof2.default)(val) === 'object') {
  11699. result[key] = deepMerge({}, val);
  11700. } else {
  11701. result[key] = val;
  11702. }
  11703. }
  11704. for (var i = 0, l = arguments.length; i < l; i++) {
  11705. forEach(arguments[i], assignValue);
  11706. }
  11707. return result;
  11708. }
  11709. function isUndefined(val) {
  11710. return typeof val === 'undefined';
  11711. }
  11712. /***/ }),
  11713. /* 48 */
  11714. /*!************************************************************************************************************!*\
  11715. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/luch-request/core/buildFullPath.js ***!
  11716. \************************************************************************************************************/
  11717. /*! no static exports found */
  11718. /***/ (function(module, exports, __webpack_require__) {
  11719. "use strict";
  11720. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  11721. Object.defineProperty(exports, "__esModule", {
  11722. value: true
  11723. });
  11724. exports.default = buildFullPath;
  11725. var _isAbsoluteURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/isAbsoluteURL */ 49));
  11726. var _combineURLs = _interopRequireDefault(__webpack_require__(/*! ../helpers/combineURLs */ 50));
  11727. /**
  11728. * Creates a new URL by combining the baseURL with the requestedURL,
  11729. * only when the requestedURL is not already an absolute URL.
  11730. * If the requestURL is absolute, this function returns the requestedURL untouched.
  11731. *
  11732. * @param {string} baseURL The base URL
  11733. * @param {string} requestedURL Absolute or relative URL to combine
  11734. * @returns {string} The combined full path
  11735. */
  11736. function buildFullPath(baseURL, requestedURL) {
  11737. if (baseURL && !(0, _isAbsoluteURL.default)(requestedURL)) {
  11738. return (0, _combineURLs.default)(baseURL, requestedURL);
  11739. }
  11740. return requestedURL;
  11741. }
  11742. /***/ }),
  11743. /* 49 */
  11744. /*!***************************************************************************************************************!*\
  11745. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js ***!
  11746. \***************************************************************************************************************/
  11747. /*! no static exports found */
  11748. /***/ (function(module, exports, __webpack_require__) {
  11749. "use strict";
  11750. /**
  11751. * Determines whether the specified URL is absolute
  11752. *
  11753. * @param {string} url The URL to test
  11754. * @returns {boolean} True if the specified URL is absolute, otherwise false
  11755. */
  11756. Object.defineProperty(exports, "__esModule", {
  11757. value: true
  11758. });
  11759. exports.default = isAbsoluteURL;
  11760. function isAbsoluteURL(url) {
  11761. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  11762. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  11763. // by any combination of letters, digits, plus, period, or hyphen.
  11764. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
  11765. }
  11766. /***/ }),
  11767. /* 50 */
  11768. /*!*************************************************************************************************************!*\
  11769. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/luch-request/helpers/combineURLs.js ***!
  11770. \*************************************************************************************************************/
  11771. /*! no static exports found */
  11772. /***/ (function(module, exports, __webpack_require__) {
  11773. "use strict";
  11774. /**
  11775. * Creates a new URL by combining the specified URLs
  11776. *
  11777. * @param {string} baseURL The base URL
  11778. * @param {string} relativeURL The relative URL
  11779. * @returns {string} The combined URL
  11780. */
  11781. Object.defineProperty(exports, "__esModule", {
  11782. value: true
  11783. });
  11784. exports.default = combineURLs;
  11785. function combineURLs(baseURL, relativeURL) {
  11786. return relativeURL ? "".concat(baseURL.replace(/\/+$/, ''), "/").concat(relativeURL.replace(/^\/+/, '')) : baseURL;
  11787. }
  11788. /***/ }),
  11789. /* 51 */
  11790. /*!*****************************************************************************************************!*\
  11791. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/luch-request/core/settle.js ***!
  11792. \*****************************************************************************************************/
  11793. /*! no static exports found */
  11794. /***/ (function(module, exports, __webpack_require__) {
  11795. "use strict";
  11796. Object.defineProperty(exports, "__esModule", {
  11797. value: true
  11798. });
  11799. exports.default = settle;
  11800. /**
  11801. * Resolve or reject a Promise based on response status.
  11802. *
  11803. * @param {Function} resolve A function that resolves the promise.
  11804. * @param {Function} reject A function that rejects the promise.
  11805. * @param {object} response The response.
  11806. */
  11807. function settle(resolve, reject, response) {
  11808. var validateStatus = response.config.validateStatus;
  11809. var status = response.statusCode;
  11810. if (status && (!validateStatus || validateStatus(status))) {
  11811. resolve(response);
  11812. } else {
  11813. reject(response);
  11814. }
  11815. }
  11816. /***/ }),
  11817. /* 52 */
  11818. /*!*****************************************************************************************************************!*\
  11819. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/luch-request/core/InterceptorManager.js ***!
  11820. \*****************************************************************************************************************/
  11821. /*! no static exports found */
  11822. /***/ (function(module, exports, __webpack_require__) {
  11823. "use strict";
  11824. Object.defineProperty(exports, "__esModule", {
  11825. value: true
  11826. });
  11827. exports.default = void 0;
  11828. function InterceptorManager() {
  11829. this.handlers = [];
  11830. }
  11831. /**
  11832. * Add a new interceptor to the stack
  11833. *
  11834. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  11835. * @param {Function} rejected The function to handle `reject` for a `Promise`
  11836. *
  11837. * @return {Number} An ID used to remove interceptor later
  11838. */
  11839. InterceptorManager.prototype.use = function use(fulfilled, rejected) {
  11840. this.handlers.push({
  11841. fulfilled: fulfilled,
  11842. rejected: rejected
  11843. });
  11844. return this.handlers.length - 1;
  11845. };
  11846. /**
  11847. * Remove an interceptor from the stack
  11848. *
  11849. * @param {Number} id The ID that was returned by `use`
  11850. */
  11851. InterceptorManager.prototype.eject = function eject(id) {
  11852. if (this.handlers[id]) {
  11853. this.handlers[id] = null;
  11854. }
  11855. };
  11856. /**
  11857. * Iterate over all the registered interceptors
  11858. *
  11859. * This method is particularly useful for skipping over any
  11860. * interceptors that may have become `null` calling `eject`.
  11861. *
  11862. * @param {Function} fn The function to call for each interceptor
  11863. */
  11864. InterceptorManager.prototype.forEach = function forEach(fn) {
  11865. this.handlers.forEach(function (h) {
  11866. if (h !== null) {
  11867. fn(h);
  11868. }
  11869. });
  11870. };
  11871. var _default = InterceptorManager;
  11872. exports.default = _default;
  11873. /***/ }),
  11874. /* 53 */
  11875. /*!**********************************************************************************************************!*\
  11876. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/luch-request/core/mergeConfig.js ***!
  11877. \**********************************************************************************************************/
  11878. /*! no static exports found */
  11879. /***/ (function(module, exports, __webpack_require__) {
  11880. "use strict";
  11881. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  11882. Object.defineProperty(exports, "__esModule", {
  11883. value: true
  11884. });
  11885. exports.default = void 0;
  11886. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  11887. var _utils = __webpack_require__(/*! ../utils */ 47);
  11888. 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; }
  11889. 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; }
  11890. /**
  11891. * 合并局部配置优先的配置,如果局部有该配置项则用局部,如果全局有该配置项则用全局
  11892. * @param {Array} keys - 配置项
  11893. * @param {Object} globalsConfig - 当前的全局配置
  11894. * @param {Object} config2 - 局部配置
  11895. * @return {{}}
  11896. */
  11897. var mergeKeys = function mergeKeys(keys, globalsConfig, config2) {
  11898. var config = {};
  11899. keys.forEach(function (prop) {
  11900. if (!(0, _utils.isUndefined)(config2[prop])) {
  11901. config[prop] = config2[prop];
  11902. } else if (!(0, _utils.isUndefined)(globalsConfig[prop])) {
  11903. config[prop] = globalsConfig[prop];
  11904. }
  11905. });
  11906. return config;
  11907. };
  11908. /**
  11909. *
  11910. * @param globalsConfig - 当前实例的全局配置
  11911. * @param config2 - 当前的局部配置
  11912. * @return - 合并后的配置
  11913. */
  11914. var _default = function _default(globalsConfig) {
  11915. var config2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  11916. var method = config2.method || globalsConfig.method || 'GET';
  11917. var config = {
  11918. baseURL: globalsConfig.baseURL || '',
  11919. method: method,
  11920. url: config2.url || '',
  11921. params: config2.params || {},
  11922. custom: _objectSpread(_objectSpread({}, globalsConfig.custom || {}), config2.custom || {}),
  11923. header: (0, _utils.deepMerge)(globalsConfig.header || {}, config2.header || {})
  11924. };
  11925. var defaultToConfig2Keys = ['getTask', 'validateStatus'];
  11926. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultToConfig2Keys, globalsConfig, config2));
  11927. // eslint-disable-next-line no-empty
  11928. if (method === 'DOWNLOAD') {} else if (method === 'UPLOAD') {
  11929. delete config.header['content-type'];
  11930. delete config.header['Content-Type'];
  11931. var uploadKeys = ['filePath', 'name', 'formData'];
  11932. uploadKeys.forEach(function (prop) {
  11933. if (!(0, _utils.isUndefined)(config2[prop])) {
  11934. config[prop] = config2[prop];
  11935. }
  11936. });
  11937. } else {
  11938. var defaultsKeys = ['data', 'timeout', 'dataType', 'responseType'];
  11939. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultsKeys, globalsConfig, config2));
  11940. }
  11941. return config;
  11942. };
  11943. exports.default = _default;
  11944. /***/ }),
  11945. /* 54 */
  11946. /*!*******************************************************************************************************!*\
  11947. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/luch-request/core/defaults.js ***!
  11948. \*******************************************************************************************************/
  11949. /*! no static exports found */
  11950. /***/ (function(module, exports, __webpack_require__) {
  11951. "use strict";
  11952. Object.defineProperty(exports, "__esModule", {
  11953. value: true
  11954. });
  11955. exports.default = void 0;
  11956. /**
  11957. * 默认的全局配置
  11958. */
  11959. var _default = {
  11960. baseURL: '',
  11961. header: {},
  11962. method: 'GET',
  11963. dataType: 'json',
  11964. responseType: 'text',
  11965. custom: {},
  11966. timeout: 60000,
  11967. validateStatus: function validateStatus(status) {
  11968. return status >= 200 && status < 300;
  11969. }
  11970. };
  11971. exports.default = _default;
  11972. /***/ }),
  11973. /* 55 */
  11974. /*!*****************************************************************************************************!*\
  11975. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/luch-request/utils/clone.js ***!
  11976. \*****************************************************************************************************/
  11977. /*! no static exports found */
  11978. /***/ (function(module, exports, __webpack_require__) {
  11979. "use strict";
  11980. /* WEBPACK VAR INJECTION */(function(Buffer) {
  11981. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  11982. Object.defineProperty(exports, "__esModule", {
  11983. value: true
  11984. });
  11985. exports.default = void 0;
  11986. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  11987. /* eslint-disable */
  11988. var clone = function () {
  11989. 'use strict';
  11990. function _instanceof(obj, type) {
  11991. return type != null && obj instanceof type;
  11992. }
  11993. var nativeMap;
  11994. try {
  11995. nativeMap = Map;
  11996. } catch (_) {
  11997. // maybe a reference error because no `Map`. Give it a dummy value that no
  11998. // value will ever be an instanceof.
  11999. nativeMap = function nativeMap() {};
  12000. }
  12001. var nativeSet;
  12002. try {
  12003. nativeSet = Set;
  12004. } catch (_) {
  12005. nativeSet = function nativeSet() {};
  12006. }
  12007. var nativePromise;
  12008. try {
  12009. nativePromise = Promise;
  12010. } catch (_) {
  12011. nativePromise = function nativePromise() {};
  12012. }
  12013. /**
  12014. * Clones (copies) an Object using deep copying.
  12015. *
  12016. * This function supports circular references by default, but if you are certain
  12017. * there are no circular references in your object, you can save some CPU time
  12018. * by calling clone(obj, false).
  12019. *
  12020. * Caution: if `circular` is false and `parent` contains circular references,
  12021. * your program may enter an infinite loop and crash.
  12022. *
  12023. * @param `parent` - the object to be cloned
  12024. * @param `circular` - set to true if the object to be cloned may contain
  12025. * circular references. (optional - true by default)
  12026. * @param `depth` - set to a number if the object is only to be cloned to
  12027. * a particular depth. (optional - defaults to Infinity)
  12028. * @param `prototype` - sets the prototype to be used when cloning an object.
  12029. * (optional - defaults to parent prototype).
  12030. * @param `includeNonEnumerable` - set to true if the non-enumerable properties
  12031. * should be cloned as well. Non-enumerable properties on the prototype
  12032. * chain will be ignored. (optional - false by default)
  12033. */
  12034. function clone(parent, circular, depth, prototype, includeNonEnumerable) {
  12035. if ((0, _typeof2.default)(circular) === 'object') {
  12036. depth = circular.depth;
  12037. prototype = circular.prototype;
  12038. includeNonEnumerable = circular.includeNonEnumerable;
  12039. circular = circular.circular;
  12040. }
  12041. // maintain two arrays for circular references, where corresponding parents
  12042. // and children have the same index
  12043. var allParents = [];
  12044. var allChildren = [];
  12045. var useBuffer = typeof Buffer != 'undefined';
  12046. if (typeof circular == 'undefined') circular = true;
  12047. if (typeof depth == 'undefined') depth = Infinity;
  12048. // recurse this function so we don't reset allParents and allChildren
  12049. function _clone(parent, depth) {
  12050. // cloning null always returns null
  12051. if (parent === null) return null;
  12052. if (depth === 0) return parent;
  12053. var child;
  12054. var proto;
  12055. if ((0, _typeof2.default)(parent) != 'object') {
  12056. return parent;
  12057. }
  12058. if (_instanceof(parent, nativeMap)) {
  12059. child = new nativeMap();
  12060. } else if (_instanceof(parent, nativeSet)) {
  12061. child = new nativeSet();
  12062. } else if (_instanceof(parent, nativePromise)) {
  12063. child = new nativePromise(function (resolve, reject) {
  12064. parent.then(function (value) {
  12065. resolve(_clone(value, depth - 1));
  12066. }, function (err) {
  12067. reject(_clone(err, depth - 1));
  12068. });
  12069. });
  12070. } else if (clone.__isArray(parent)) {
  12071. child = [];
  12072. } else if (clone.__isRegExp(parent)) {
  12073. child = new RegExp(parent.source, __getRegExpFlags(parent));
  12074. if (parent.lastIndex) child.lastIndex = parent.lastIndex;
  12075. } else if (clone.__isDate(parent)) {
  12076. child = new Date(parent.getTime());
  12077. } else if (useBuffer && Buffer.isBuffer(parent)) {
  12078. if (Buffer.from) {
  12079. // Node.js >= 5.10.0
  12080. child = Buffer.from(parent);
  12081. } else {
  12082. // Older Node.js versions
  12083. child = new Buffer(parent.length);
  12084. parent.copy(child);
  12085. }
  12086. return child;
  12087. } else if (_instanceof(parent, Error)) {
  12088. child = Object.create(parent);
  12089. } else {
  12090. if (typeof prototype == 'undefined') {
  12091. proto = Object.getPrototypeOf(parent);
  12092. child = Object.create(proto);
  12093. } else {
  12094. child = Object.create(prototype);
  12095. proto = prototype;
  12096. }
  12097. }
  12098. if (circular) {
  12099. var index = allParents.indexOf(parent);
  12100. if (index != -1) {
  12101. return allChildren[index];
  12102. }
  12103. allParents.push(parent);
  12104. allChildren.push(child);
  12105. }
  12106. if (_instanceof(parent, nativeMap)) {
  12107. parent.forEach(function (value, key) {
  12108. var keyChild = _clone(key, depth - 1);
  12109. var valueChild = _clone(value, depth - 1);
  12110. child.set(keyChild, valueChild);
  12111. });
  12112. }
  12113. if (_instanceof(parent, nativeSet)) {
  12114. parent.forEach(function (value) {
  12115. var entryChild = _clone(value, depth - 1);
  12116. child.add(entryChild);
  12117. });
  12118. }
  12119. for (var i in parent) {
  12120. var attrs = Object.getOwnPropertyDescriptor(parent, i);
  12121. if (attrs) {
  12122. child[i] = _clone(parent[i], depth - 1);
  12123. }
  12124. try {
  12125. var objProperty = Object.getOwnPropertyDescriptor(parent, i);
  12126. if (objProperty.set === 'undefined') {
  12127. // no setter defined. Skip cloning this property
  12128. continue;
  12129. }
  12130. child[i] = _clone(parent[i], depth - 1);
  12131. } catch (e) {
  12132. if (e instanceof TypeError) {
  12133. // when in strict mode, TypeError will be thrown if child[i] property only has a getter
  12134. // we can't do anything about this, other than inform the user that this property cannot be set.
  12135. continue;
  12136. } else if (e instanceof ReferenceError) {
  12137. //this may happen in non strict mode
  12138. continue;
  12139. }
  12140. }
  12141. }
  12142. if (Object.getOwnPropertySymbols) {
  12143. var symbols = Object.getOwnPropertySymbols(parent);
  12144. for (var i = 0; i < symbols.length; i++) {
  12145. // Don't need to worry about cloning a symbol because it is a primitive,
  12146. // like a number or string.
  12147. var symbol = symbols[i];
  12148. var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
  12149. if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
  12150. continue;
  12151. }
  12152. child[symbol] = _clone(parent[symbol], depth - 1);
  12153. Object.defineProperty(child, symbol, descriptor);
  12154. }
  12155. }
  12156. if (includeNonEnumerable) {
  12157. var allPropertyNames = Object.getOwnPropertyNames(parent);
  12158. for (var i = 0; i < allPropertyNames.length; i++) {
  12159. var propertyName = allPropertyNames[i];
  12160. var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
  12161. if (descriptor && descriptor.enumerable) {
  12162. continue;
  12163. }
  12164. child[propertyName] = _clone(parent[propertyName], depth - 1);
  12165. Object.defineProperty(child, propertyName, descriptor);
  12166. }
  12167. }
  12168. return child;
  12169. }
  12170. return _clone(parent, depth);
  12171. }
  12172. /**
  12173. * Simple flat clone using prototype, accepts only objects, usefull for property
  12174. * override on FLAT configuration object (no nested props).
  12175. *
  12176. * USE WITH CAUTION! This may not behave as you wish if you do not know how this
  12177. * works.
  12178. */
  12179. clone.clonePrototype = function clonePrototype(parent) {
  12180. if (parent === null) return null;
  12181. var c = function c() {};
  12182. c.prototype = parent;
  12183. return new c();
  12184. };
  12185. // private utility functions
  12186. function __objToStr(o) {
  12187. return Object.prototype.toString.call(o);
  12188. }
  12189. clone.__objToStr = __objToStr;
  12190. function __isDate(o) {
  12191. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Date]';
  12192. }
  12193. clone.__isDate = __isDate;
  12194. function __isArray(o) {
  12195. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Array]';
  12196. }
  12197. clone.__isArray = __isArray;
  12198. function __isRegExp(o) {
  12199. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object RegExp]';
  12200. }
  12201. clone.__isRegExp = __isRegExp;
  12202. function __getRegExpFlags(re) {
  12203. var flags = '';
  12204. if (re.global) flags += 'g';
  12205. if (re.ignoreCase) flags += 'i';
  12206. if (re.multiline) flags += 'm';
  12207. return flags;
  12208. }
  12209. clone.__getRegExpFlags = __getRegExpFlags;
  12210. return clone;
  12211. }();
  12212. var _default = clone;
  12213. exports.default = _default;
  12214. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/buffer/index.js */ 56).Buffer))
  12215. /***/ }),
  12216. /* 56 */
  12217. /*!**************************************!*\
  12218. !*** ./node_modules/buffer/index.js ***!
  12219. \**************************************/
  12220. /*! no static exports found */
  12221. /***/ (function(module, exports, __webpack_require__) {
  12222. "use strict";
  12223. /* WEBPACK VAR INJECTION */(function(global) {/*!
  12224. * The buffer module from node.js, for the browser.
  12225. *
  12226. * @author Feross Aboukhadijeh <http://feross.org>
  12227. * @license MIT
  12228. */
  12229. /* eslint-disable no-proto */
  12230. var base64 = __webpack_require__(/*! base64-js */ 57)
  12231. var ieee754 = __webpack_require__(/*! ieee754 */ 58)
  12232. var isArray = __webpack_require__(/*! isarray */ 59)
  12233. exports.Buffer = Buffer
  12234. exports.SlowBuffer = SlowBuffer
  12235. exports.INSPECT_MAX_BYTES = 50
  12236. /**
  12237. * If `Buffer.TYPED_ARRAY_SUPPORT`:
  12238. * === true Use Uint8Array implementation (fastest)
  12239. * === false Use Object implementation (most compatible, even IE6)
  12240. *
  12241. * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
  12242. * Opera 11.6+, iOS 4.2+.
  12243. *
  12244. * Due to various browser bugs, sometimes the Object implementation will be used even
  12245. * when the browser supports typed arrays.
  12246. *
  12247. * Note:
  12248. *
  12249. * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
  12250. * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
  12251. *
  12252. * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
  12253. *
  12254. * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
  12255. * incorrect length in some situations.
  12256. * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
  12257. * get the Object implementation, which is slower but behaves correctly.
  12258. */
  12259. Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
  12260. ? global.TYPED_ARRAY_SUPPORT
  12261. : typedArraySupport()
  12262. /*
  12263. * Export kMaxLength after typed array support is determined.
  12264. */
  12265. exports.kMaxLength = kMaxLength()
  12266. function typedArraySupport () {
  12267. try {
  12268. var arr = new Uint8Array(1)
  12269. arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
  12270. return arr.foo() === 42 && // typed array instances can be augmented
  12271. typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
  12272. arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  12273. } catch (e) {
  12274. return false
  12275. }
  12276. }
  12277. function kMaxLength () {
  12278. return Buffer.TYPED_ARRAY_SUPPORT
  12279. ? 0x7fffffff
  12280. : 0x3fffffff
  12281. }
  12282. function createBuffer (that, length) {
  12283. if (kMaxLength() < length) {
  12284. throw new RangeError('Invalid typed array length')
  12285. }
  12286. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12287. // Return an augmented `Uint8Array` instance, for best performance
  12288. that = new Uint8Array(length)
  12289. that.__proto__ = Buffer.prototype
  12290. } else {
  12291. // Fallback: Return an object instance of the Buffer class
  12292. if (that === null) {
  12293. that = new Buffer(length)
  12294. }
  12295. that.length = length
  12296. }
  12297. return that
  12298. }
  12299. /**
  12300. * The Buffer constructor returns instances of `Uint8Array` that have their
  12301. * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
  12302. * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
  12303. * and the `Uint8Array` methods. Square bracket notation works as expected -- it
  12304. * returns a single octet.
  12305. *
  12306. * The `Uint8Array` prototype remains unmodified.
  12307. */
  12308. function Buffer (arg, encodingOrOffset, length) {
  12309. if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
  12310. return new Buffer(arg, encodingOrOffset, length)
  12311. }
  12312. // Common case.
  12313. if (typeof arg === 'number') {
  12314. if (typeof encodingOrOffset === 'string') {
  12315. throw new Error(
  12316. 'If encoding is specified then the first argument must be a string'
  12317. )
  12318. }
  12319. return allocUnsafe(this, arg)
  12320. }
  12321. return from(this, arg, encodingOrOffset, length)
  12322. }
  12323. Buffer.poolSize = 8192 // not used by this implementation
  12324. // TODO: Legacy, not needed anymore. Remove in next major version.
  12325. Buffer._augment = function (arr) {
  12326. arr.__proto__ = Buffer.prototype
  12327. return arr
  12328. }
  12329. function from (that, value, encodingOrOffset, length) {
  12330. if (typeof value === 'number') {
  12331. throw new TypeError('"value" argument must not be a number')
  12332. }
  12333. if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
  12334. return fromArrayBuffer(that, value, encodingOrOffset, length)
  12335. }
  12336. if (typeof value === 'string') {
  12337. return fromString(that, value, encodingOrOffset)
  12338. }
  12339. return fromObject(that, value)
  12340. }
  12341. /**
  12342. * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
  12343. * if value is a number.
  12344. * Buffer.from(str[, encoding])
  12345. * Buffer.from(array)
  12346. * Buffer.from(buffer)
  12347. * Buffer.from(arrayBuffer[, byteOffset[, length]])
  12348. **/
  12349. Buffer.from = function (value, encodingOrOffset, length) {
  12350. return from(null, value, encodingOrOffset, length)
  12351. }
  12352. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12353. Buffer.prototype.__proto__ = Uint8Array.prototype
  12354. Buffer.__proto__ = Uint8Array
  12355. if (typeof Symbol !== 'undefined' && Symbol.species &&
  12356. Buffer[Symbol.species] === Buffer) {
  12357. // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
  12358. Object.defineProperty(Buffer, Symbol.species, {
  12359. value: null,
  12360. configurable: true
  12361. })
  12362. }
  12363. }
  12364. function assertSize (size) {
  12365. if (typeof size !== 'number') {
  12366. throw new TypeError('"size" argument must be a number')
  12367. } else if (size < 0) {
  12368. throw new RangeError('"size" argument must not be negative')
  12369. }
  12370. }
  12371. function alloc (that, size, fill, encoding) {
  12372. assertSize(size)
  12373. if (size <= 0) {
  12374. return createBuffer(that, size)
  12375. }
  12376. if (fill !== undefined) {
  12377. // Only pay attention to encoding if it's a string. This
  12378. // prevents accidentally sending in a number that would
  12379. // be interpretted as a start offset.
  12380. return typeof encoding === 'string'
  12381. ? createBuffer(that, size).fill(fill, encoding)
  12382. : createBuffer(that, size).fill(fill)
  12383. }
  12384. return createBuffer(that, size)
  12385. }
  12386. /**
  12387. * Creates a new filled Buffer instance.
  12388. * alloc(size[, fill[, encoding]])
  12389. **/
  12390. Buffer.alloc = function (size, fill, encoding) {
  12391. return alloc(null, size, fill, encoding)
  12392. }
  12393. function allocUnsafe (that, size) {
  12394. assertSize(size)
  12395. that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  12396. if (!Buffer.TYPED_ARRAY_SUPPORT) {
  12397. for (var i = 0; i < size; ++i) {
  12398. that[i] = 0
  12399. }
  12400. }
  12401. return that
  12402. }
  12403. /**
  12404. * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
  12405. * */
  12406. Buffer.allocUnsafe = function (size) {
  12407. return allocUnsafe(null, size)
  12408. }
  12409. /**
  12410. * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
  12411. */
  12412. Buffer.allocUnsafeSlow = function (size) {
  12413. return allocUnsafe(null, size)
  12414. }
  12415. function fromString (that, string, encoding) {
  12416. if (typeof encoding !== 'string' || encoding === '') {
  12417. encoding = 'utf8'
  12418. }
  12419. if (!Buffer.isEncoding(encoding)) {
  12420. throw new TypeError('"encoding" must be a valid string encoding')
  12421. }
  12422. var length = byteLength(string, encoding) | 0
  12423. that = createBuffer(that, length)
  12424. var actual = that.write(string, encoding)
  12425. if (actual !== length) {
  12426. // Writing a hex string, for example, that contains invalid characters will
  12427. // cause everything after the first invalid character to be ignored. (e.g.
  12428. // 'abxxcd' will be treated as 'ab')
  12429. that = that.slice(0, actual)
  12430. }
  12431. return that
  12432. }
  12433. function fromArrayLike (that, array) {
  12434. var length = array.length < 0 ? 0 : checked(array.length) | 0
  12435. that = createBuffer(that, length)
  12436. for (var i = 0; i < length; i += 1) {
  12437. that[i] = array[i] & 255
  12438. }
  12439. return that
  12440. }
  12441. function fromArrayBuffer (that, array, byteOffset, length) {
  12442. array.byteLength // this throws if `array` is not a valid ArrayBuffer
  12443. if (byteOffset < 0 || array.byteLength < byteOffset) {
  12444. throw new RangeError('\'offset\' is out of bounds')
  12445. }
  12446. if (array.byteLength < byteOffset + (length || 0)) {
  12447. throw new RangeError('\'length\' is out of bounds')
  12448. }
  12449. if (byteOffset === undefined && length === undefined) {
  12450. array = new Uint8Array(array)
  12451. } else if (length === undefined) {
  12452. array = new Uint8Array(array, byteOffset)
  12453. } else {
  12454. array = new Uint8Array(array, byteOffset, length)
  12455. }
  12456. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12457. // Return an augmented `Uint8Array` instance, for best performance
  12458. that = array
  12459. that.__proto__ = Buffer.prototype
  12460. } else {
  12461. // Fallback: Return an object instance of the Buffer class
  12462. that = fromArrayLike(that, array)
  12463. }
  12464. return that
  12465. }
  12466. function fromObject (that, obj) {
  12467. if (Buffer.isBuffer(obj)) {
  12468. var len = checked(obj.length) | 0
  12469. that = createBuffer(that, len)
  12470. if (that.length === 0) {
  12471. return that
  12472. }
  12473. obj.copy(that, 0, 0, len)
  12474. return that
  12475. }
  12476. if (obj) {
  12477. if ((typeof ArrayBuffer !== 'undefined' &&
  12478. obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
  12479. if (typeof obj.length !== 'number' || isnan(obj.length)) {
  12480. return createBuffer(that, 0)
  12481. }
  12482. return fromArrayLike(that, obj)
  12483. }
  12484. if (obj.type === 'Buffer' && isArray(obj.data)) {
  12485. return fromArrayLike(that, obj.data)
  12486. }
  12487. }
  12488. throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
  12489. }
  12490. function checked (length) {
  12491. // Note: cannot use `length < kMaxLength()` here because that fails when
  12492. // length is NaN (which is otherwise coerced to zero.)
  12493. if (length >= kMaxLength()) {
  12494. throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
  12495. 'size: 0x' + kMaxLength().toString(16) + ' bytes')
  12496. }
  12497. return length | 0
  12498. }
  12499. function SlowBuffer (length) {
  12500. if (+length != length) { // eslint-disable-line eqeqeq
  12501. length = 0
  12502. }
  12503. return Buffer.alloc(+length)
  12504. }
  12505. Buffer.isBuffer = function isBuffer (b) {
  12506. return !!(b != null && b._isBuffer)
  12507. }
  12508. Buffer.compare = function compare (a, b) {
  12509. if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
  12510. throw new TypeError('Arguments must be Buffers')
  12511. }
  12512. if (a === b) return 0
  12513. var x = a.length
  12514. var y = b.length
  12515. for (var i = 0, len = Math.min(x, y); i < len; ++i) {
  12516. if (a[i] !== b[i]) {
  12517. x = a[i]
  12518. y = b[i]
  12519. break
  12520. }
  12521. }
  12522. if (x < y) return -1
  12523. if (y < x) return 1
  12524. return 0
  12525. }
  12526. Buffer.isEncoding = function isEncoding (encoding) {
  12527. switch (String(encoding).toLowerCase()) {
  12528. case 'hex':
  12529. case 'utf8':
  12530. case 'utf-8':
  12531. case 'ascii':
  12532. case 'latin1':
  12533. case 'binary':
  12534. case 'base64':
  12535. case 'ucs2':
  12536. case 'ucs-2':
  12537. case 'utf16le':
  12538. case 'utf-16le':
  12539. return true
  12540. default:
  12541. return false
  12542. }
  12543. }
  12544. Buffer.concat = function concat (list, length) {
  12545. if (!isArray(list)) {
  12546. throw new TypeError('"list" argument must be an Array of Buffers')
  12547. }
  12548. if (list.length === 0) {
  12549. return Buffer.alloc(0)
  12550. }
  12551. var i
  12552. if (length === undefined) {
  12553. length = 0
  12554. for (i = 0; i < list.length; ++i) {
  12555. length += list[i].length
  12556. }
  12557. }
  12558. var buffer = Buffer.allocUnsafe(length)
  12559. var pos = 0
  12560. for (i = 0; i < list.length; ++i) {
  12561. var buf = list[i]
  12562. if (!Buffer.isBuffer(buf)) {
  12563. throw new TypeError('"list" argument must be an Array of Buffers')
  12564. }
  12565. buf.copy(buffer, pos)
  12566. pos += buf.length
  12567. }
  12568. return buffer
  12569. }
  12570. function byteLength (string, encoding) {
  12571. if (Buffer.isBuffer(string)) {
  12572. return string.length
  12573. }
  12574. if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
  12575. (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
  12576. return string.byteLength
  12577. }
  12578. if (typeof string !== 'string') {
  12579. string = '' + string
  12580. }
  12581. var len = string.length
  12582. if (len === 0) return 0
  12583. // Use a for loop to avoid recursion
  12584. var loweredCase = false
  12585. for (;;) {
  12586. switch (encoding) {
  12587. case 'ascii':
  12588. case 'latin1':
  12589. case 'binary':
  12590. return len
  12591. case 'utf8':
  12592. case 'utf-8':
  12593. case undefined:
  12594. return utf8ToBytes(string).length
  12595. case 'ucs2':
  12596. case 'ucs-2':
  12597. case 'utf16le':
  12598. case 'utf-16le':
  12599. return len * 2
  12600. case 'hex':
  12601. return len >>> 1
  12602. case 'base64':
  12603. return base64ToBytes(string).length
  12604. default:
  12605. if (loweredCase) return utf8ToBytes(string).length // assume utf8
  12606. encoding = ('' + encoding).toLowerCase()
  12607. loweredCase = true
  12608. }
  12609. }
  12610. }
  12611. Buffer.byteLength = byteLength
  12612. function slowToString (encoding, start, end) {
  12613. var loweredCase = false
  12614. // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
  12615. // property of a typed array.
  12616. // This behaves neither like String nor Uint8Array in that we set start/end
  12617. // to their upper/lower bounds if the value passed is out of range.
  12618. // undefined is handled specially as per ECMA-262 6th Edition,
  12619. // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
  12620. if (start === undefined || start < 0) {
  12621. start = 0
  12622. }
  12623. // Return early if start > this.length. Done here to prevent potential uint32
  12624. // coercion fail below.
  12625. if (start > this.length) {
  12626. return ''
  12627. }
  12628. if (end === undefined || end > this.length) {
  12629. end = this.length
  12630. }
  12631. if (end <= 0) {
  12632. return ''
  12633. }
  12634. // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
  12635. end >>>= 0
  12636. start >>>= 0
  12637. if (end <= start) {
  12638. return ''
  12639. }
  12640. if (!encoding) encoding = 'utf8'
  12641. while (true) {
  12642. switch (encoding) {
  12643. case 'hex':
  12644. return hexSlice(this, start, end)
  12645. case 'utf8':
  12646. case 'utf-8':
  12647. return utf8Slice(this, start, end)
  12648. case 'ascii':
  12649. return asciiSlice(this, start, end)
  12650. case 'latin1':
  12651. case 'binary':
  12652. return latin1Slice(this, start, end)
  12653. case 'base64':
  12654. return base64Slice(this, start, end)
  12655. case 'ucs2':
  12656. case 'ucs-2':
  12657. case 'utf16le':
  12658. case 'utf-16le':
  12659. return utf16leSlice(this, start, end)
  12660. default:
  12661. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  12662. encoding = (encoding + '').toLowerCase()
  12663. loweredCase = true
  12664. }
  12665. }
  12666. }
  12667. // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
  12668. // Buffer instances.
  12669. Buffer.prototype._isBuffer = true
  12670. function swap (b, n, m) {
  12671. var i = b[n]
  12672. b[n] = b[m]
  12673. b[m] = i
  12674. }
  12675. Buffer.prototype.swap16 = function swap16 () {
  12676. var len = this.length
  12677. if (len % 2 !== 0) {
  12678. throw new RangeError('Buffer size must be a multiple of 16-bits')
  12679. }
  12680. for (var i = 0; i < len; i += 2) {
  12681. swap(this, i, i + 1)
  12682. }
  12683. return this
  12684. }
  12685. Buffer.prototype.swap32 = function swap32 () {
  12686. var len = this.length
  12687. if (len % 4 !== 0) {
  12688. throw new RangeError('Buffer size must be a multiple of 32-bits')
  12689. }
  12690. for (var i = 0; i < len; i += 4) {
  12691. swap(this, i, i + 3)
  12692. swap(this, i + 1, i + 2)
  12693. }
  12694. return this
  12695. }
  12696. Buffer.prototype.swap64 = function swap64 () {
  12697. var len = this.length
  12698. if (len % 8 !== 0) {
  12699. throw new RangeError('Buffer size must be a multiple of 64-bits')
  12700. }
  12701. for (var i = 0; i < len; i += 8) {
  12702. swap(this, i, i + 7)
  12703. swap(this, i + 1, i + 6)
  12704. swap(this, i + 2, i + 5)
  12705. swap(this, i + 3, i + 4)
  12706. }
  12707. return this
  12708. }
  12709. Buffer.prototype.toString = function toString () {
  12710. var length = this.length | 0
  12711. if (length === 0) return ''
  12712. if (arguments.length === 0) return utf8Slice(this, 0, length)
  12713. return slowToString.apply(this, arguments)
  12714. }
  12715. Buffer.prototype.equals = function equals (b) {
  12716. if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  12717. if (this === b) return true
  12718. return Buffer.compare(this, b) === 0
  12719. }
  12720. Buffer.prototype.inspect = function inspect () {
  12721. var str = ''
  12722. var max = exports.INSPECT_MAX_BYTES
  12723. if (this.length > 0) {
  12724. str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
  12725. if (this.length > max) str += ' ... '
  12726. }
  12727. return '<Buffer ' + str + '>'
  12728. }
  12729. Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  12730. if (!Buffer.isBuffer(target)) {
  12731. throw new TypeError('Argument must be a Buffer')
  12732. }
  12733. if (start === undefined) {
  12734. start = 0
  12735. }
  12736. if (end === undefined) {
  12737. end = target ? target.length : 0
  12738. }
  12739. if (thisStart === undefined) {
  12740. thisStart = 0
  12741. }
  12742. if (thisEnd === undefined) {
  12743. thisEnd = this.length
  12744. }
  12745. if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
  12746. throw new RangeError('out of range index')
  12747. }
  12748. if (thisStart >= thisEnd && start >= end) {
  12749. return 0
  12750. }
  12751. if (thisStart >= thisEnd) {
  12752. return -1
  12753. }
  12754. if (start >= end) {
  12755. return 1
  12756. }
  12757. start >>>= 0
  12758. end >>>= 0
  12759. thisStart >>>= 0
  12760. thisEnd >>>= 0
  12761. if (this === target) return 0
  12762. var x = thisEnd - thisStart
  12763. var y = end - start
  12764. var len = Math.min(x, y)
  12765. var thisCopy = this.slice(thisStart, thisEnd)
  12766. var targetCopy = target.slice(start, end)
  12767. for (var i = 0; i < len; ++i) {
  12768. if (thisCopy[i] !== targetCopy[i]) {
  12769. x = thisCopy[i]
  12770. y = targetCopy[i]
  12771. break
  12772. }
  12773. }
  12774. if (x < y) return -1
  12775. if (y < x) return 1
  12776. return 0
  12777. }
  12778. // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
  12779. // OR the last index of `val` in `buffer` at offset <= `byteOffset`.
  12780. //
  12781. // Arguments:
  12782. // - buffer - a Buffer to search
  12783. // - val - a string, Buffer, or number
  12784. // - byteOffset - an index into `buffer`; will be clamped to an int32
  12785. // - encoding - an optional encoding, relevant is val is a string
  12786. // - dir - true for indexOf, false for lastIndexOf
  12787. function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
  12788. // Empty buffer means no match
  12789. if (buffer.length === 0) return -1
  12790. // Normalize byteOffset
  12791. if (typeof byteOffset === 'string') {
  12792. encoding = byteOffset
  12793. byteOffset = 0
  12794. } else if (byteOffset > 0x7fffffff) {
  12795. byteOffset = 0x7fffffff
  12796. } else if (byteOffset < -0x80000000) {
  12797. byteOffset = -0x80000000
  12798. }
  12799. byteOffset = +byteOffset // Coerce to Number.
  12800. if (isNaN(byteOffset)) {
  12801. // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
  12802. byteOffset = dir ? 0 : (buffer.length - 1)
  12803. }
  12804. // Normalize byteOffset: negative offsets start from the end of the buffer
  12805. if (byteOffset < 0) byteOffset = buffer.length + byteOffset
  12806. if (byteOffset >= buffer.length) {
  12807. if (dir) return -1
  12808. else byteOffset = buffer.length - 1
  12809. } else if (byteOffset < 0) {
  12810. if (dir) byteOffset = 0
  12811. else return -1
  12812. }
  12813. // Normalize val
  12814. if (typeof val === 'string') {
  12815. val = Buffer.from(val, encoding)
  12816. }
  12817. // Finally, search either indexOf (if dir is true) or lastIndexOf
  12818. if (Buffer.isBuffer(val)) {
  12819. // Special case: looking for empty string/buffer always fails
  12820. if (val.length === 0) {
  12821. return -1
  12822. }
  12823. return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
  12824. } else if (typeof val === 'number') {
  12825. val = val & 0xFF // Search for a byte value [0-255]
  12826. if (Buffer.TYPED_ARRAY_SUPPORT &&
  12827. typeof Uint8Array.prototype.indexOf === 'function') {
  12828. if (dir) {
  12829. return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
  12830. } else {
  12831. return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
  12832. }
  12833. }
  12834. return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
  12835. }
  12836. throw new TypeError('val must be string, number or Buffer')
  12837. }
  12838. function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
  12839. var indexSize = 1
  12840. var arrLength = arr.length
  12841. var valLength = val.length
  12842. if (encoding !== undefined) {
  12843. encoding = String(encoding).toLowerCase()
  12844. if (encoding === 'ucs2' || encoding === 'ucs-2' ||
  12845. encoding === 'utf16le' || encoding === 'utf-16le') {
  12846. if (arr.length < 2 || val.length < 2) {
  12847. return -1
  12848. }
  12849. indexSize = 2
  12850. arrLength /= 2
  12851. valLength /= 2
  12852. byteOffset /= 2
  12853. }
  12854. }
  12855. function read (buf, i) {
  12856. if (indexSize === 1) {
  12857. return buf[i]
  12858. } else {
  12859. return buf.readUInt16BE(i * indexSize)
  12860. }
  12861. }
  12862. var i
  12863. if (dir) {
  12864. var foundIndex = -1
  12865. for (i = byteOffset; i < arrLength; i++) {
  12866. if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
  12867. if (foundIndex === -1) foundIndex = i
  12868. if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
  12869. } else {
  12870. if (foundIndex !== -1) i -= i - foundIndex
  12871. foundIndex = -1
  12872. }
  12873. }
  12874. } else {
  12875. if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
  12876. for (i = byteOffset; i >= 0; i--) {
  12877. var found = true
  12878. for (var j = 0; j < valLength; j++) {
  12879. if (read(arr, i + j) !== read(val, j)) {
  12880. found = false
  12881. break
  12882. }
  12883. }
  12884. if (found) return i
  12885. }
  12886. }
  12887. return -1
  12888. }
  12889. Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
  12890. return this.indexOf(val, byteOffset, encoding) !== -1
  12891. }
  12892. Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
  12893. return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
  12894. }
  12895. Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
  12896. return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
  12897. }
  12898. function hexWrite (buf, string, offset, length) {
  12899. offset = Number(offset) || 0
  12900. var remaining = buf.length - offset
  12901. if (!length) {
  12902. length = remaining
  12903. } else {
  12904. length = Number(length)
  12905. if (length > remaining) {
  12906. length = remaining
  12907. }
  12908. }
  12909. // must be an even number of digits
  12910. var strLen = string.length
  12911. if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
  12912. if (length > strLen / 2) {
  12913. length = strLen / 2
  12914. }
  12915. for (var i = 0; i < length; ++i) {
  12916. var parsed = parseInt(string.substr(i * 2, 2), 16)
  12917. if (isNaN(parsed)) return i
  12918. buf[offset + i] = parsed
  12919. }
  12920. return i
  12921. }
  12922. function utf8Write (buf, string, offset, length) {
  12923. return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
  12924. }
  12925. function asciiWrite (buf, string, offset, length) {
  12926. return blitBuffer(asciiToBytes(string), buf, offset, length)
  12927. }
  12928. function latin1Write (buf, string, offset, length) {
  12929. return asciiWrite(buf, string, offset, length)
  12930. }
  12931. function base64Write (buf, string, offset, length) {
  12932. return blitBuffer(base64ToBytes(string), buf, offset, length)
  12933. }
  12934. function ucs2Write (buf, string, offset, length) {
  12935. return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
  12936. }
  12937. Buffer.prototype.write = function write (string, offset, length, encoding) {
  12938. // Buffer#write(string)
  12939. if (offset === undefined) {
  12940. encoding = 'utf8'
  12941. length = this.length
  12942. offset = 0
  12943. // Buffer#write(string, encoding)
  12944. } else if (length === undefined && typeof offset === 'string') {
  12945. encoding = offset
  12946. length = this.length
  12947. offset = 0
  12948. // Buffer#write(string, offset[, length][, encoding])
  12949. } else if (isFinite(offset)) {
  12950. offset = offset | 0
  12951. if (isFinite(length)) {
  12952. length = length | 0
  12953. if (encoding === undefined) encoding = 'utf8'
  12954. } else {
  12955. encoding = length
  12956. length = undefined
  12957. }
  12958. // legacy write(string, encoding, offset, length) - remove in v0.13
  12959. } else {
  12960. throw new Error(
  12961. 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
  12962. )
  12963. }
  12964. var remaining = this.length - offset
  12965. if (length === undefined || length > remaining) length = remaining
  12966. if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
  12967. throw new RangeError('Attempt to write outside buffer bounds')
  12968. }
  12969. if (!encoding) encoding = 'utf8'
  12970. var loweredCase = false
  12971. for (;;) {
  12972. switch (encoding) {
  12973. case 'hex':
  12974. return hexWrite(this, string, offset, length)
  12975. case 'utf8':
  12976. case 'utf-8':
  12977. return utf8Write(this, string, offset, length)
  12978. case 'ascii':
  12979. return asciiWrite(this, string, offset, length)
  12980. case 'latin1':
  12981. case 'binary':
  12982. return latin1Write(this, string, offset, length)
  12983. case 'base64':
  12984. // Warning: maxLength not taken into account in base64Write
  12985. return base64Write(this, string, offset, length)
  12986. case 'ucs2':
  12987. case 'ucs-2':
  12988. case 'utf16le':
  12989. case 'utf-16le':
  12990. return ucs2Write(this, string, offset, length)
  12991. default:
  12992. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  12993. encoding = ('' + encoding).toLowerCase()
  12994. loweredCase = true
  12995. }
  12996. }
  12997. }
  12998. Buffer.prototype.toJSON = function toJSON () {
  12999. return {
  13000. type: 'Buffer',
  13001. data: Array.prototype.slice.call(this._arr || this, 0)
  13002. }
  13003. }
  13004. function base64Slice (buf, start, end) {
  13005. if (start === 0 && end === buf.length) {
  13006. return base64.fromByteArray(buf)
  13007. } else {
  13008. return base64.fromByteArray(buf.slice(start, end))
  13009. }
  13010. }
  13011. function utf8Slice (buf, start, end) {
  13012. end = Math.min(buf.length, end)
  13013. var res = []
  13014. var i = start
  13015. while (i < end) {
  13016. var firstByte = buf[i]
  13017. var codePoint = null
  13018. var bytesPerSequence = (firstByte > 0xEF) ? 4
  13019. : (firstByte > 0xDF) ? 3
  13020. : (firstByte > 0xBF) ? 2
  13021. : 1
  13022. if (i + bytesPerSequence <= end) {
  13023. var secondByte, thirdByte, fourthByte, tempCodePoint
  13024. switch (bytesPerSequence) {
  13025. case 1:
  13026. if (firstByte < 0x80) {
  13027. codePoint = firstByte
  13028. }
  13029. break
  13030. case 2:
  13031. secondByte = buf[i + 1]
  13032. if ((secondByte & 0xC0) === 0x80) {
  13033. tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
  13034. if (tempCodePoint > 0x7F) {
  13035. codePoint = tempCodePoint
  13036. }
  13037. }
  13038. break
  13039. case 3:
  13040. secondByte = buf[i + 1]
  13041. thirdByte = buf[i + 2]
  13042. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
  13043. tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
  13044. if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
  13045. codePoint = tempCodePoint
  13046. }
  13047. }
  13048. break
  13049. case 4:
  13050. secondByte = buf[i + 1]
  13051. thirdByte = buf[i + 2]
  13052. fourthByte = buf[i + 3]
  13053. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
  13054. tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
  13055. if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
  13056. codePoint = tempCodePoint
  13057. }
  13058. }
  13059. }
  13060. }
  13061. if (codePoint === null) {
  13062. // we did not generate a valid codePoint so insert a
  13063. // replacement char (U+FFFD) and advance only 1 byte
  13064. codePoint = 0xFFFD
  13065. bytesPerSequence = 1
  13066. } else if (codePoint > 0xFFFF) {
  13067. // encode to utf16 (surrogate pair dance)
  13068. codePoint -= 0x10000
  13069. res.push(codePoint >>> 10 & 0x3FF | 0xD800)
  13070. codePoint = 0xDC00 | codePoint & 0x3FF
  13071. }
  13072. res.push(codePoint)
  13073. i += bytesPerSequence
  13074. }
  13075. return decodeCodePointsArray(res)
  13076. }
  13077. // Based on http://stackoverflow.com/a/22747272/680742, the browser with
  13078. // the lowest limit is Chrome, with 0x10000 args.
  13079. // We go 1 magnitude less, for safety
  13080. var MAX_ARGUMENTS_LENGTH = 0x1000
  13081. function decodeCodePointsArray (codePoints) {
  13082. var len = codePoints.length
  13083. if (len <= MAX_ARGUMENTS_LENGTH) {
  13084. return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
  13085. }
  13086. // Decode in chunks to avoid "call stack size exceeded".
  13087. var res = ''
  13088. var i = 0
  13089. while (i < len) {
  13090. res += String.fromCharCode.apply(
  13091. String,
  13092. codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
  13093. )
  13094. }
  13095. return res
  13096. }
  13097. function asciiSlice (buf, start, end) {
  13098. var ret = ''
  13099. end = Math.min(buf.length, end)
  13100. for (var i = start; i < end; ++i) {
  13101. ret += String.fromCharCode(buf[i] & 0x7F)
  13102. }
  13103. return ret
  13104. }
  13105. function latin1Slice (buf, start, end) {
  13106. var ret = ''
  13107. end = Math.min(buf.length, end)
  13108. for (var i = start; i < end; ++i) {
  13109. ret += String.fromCharCode(buf[i])
  13110. }
  13111. return ret
  13112. }
  13113. function hexSlice (buf, start, end) {
  13114. var len = buf.length
  13115. if (!start || start < 0) start = 0
  13116. if (!end || end < 0 || end > len) end = len
  13117. var out = ''
  13118. for (var i = start; i < end; ++i) {
  13119. out += toHex(buf[i])
  13120. }
  13121. return out
  13122. }
  13123. function utf16leSlice (buf, start, end) {
  13124. var bytes = buf.slice(start, end)
  13125. var res = ''
  13126. for (var i = 0; i < bytes.length; i += 2) {
  13127. res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  13128. }
  13129. return res
  13130. }
  13131. Buffer.prototype.slice = function slice (start, end) {
  13132. var len = this.length
  13133. start = ~~start
  13134. end = end === undefined ? len : ~~end
  13135. if (start < 0) {
  13136. start += len
  13137. if (start < 0) start = 0
  13138. } else if (start > len) {
  13139. start = len
  13140. }
  13141. if (end < 0) {
  13142. end += len
  13143. if (end < 0) end = 0
  13144. } else if (end > len) {
  13145. end = len
  13146. }
  13147. if (end < start) end = start
  13148. var newBuf
  13149. if (Buffer.TYPED_ARRAY_SUPPORT) {
  13150. newBuf = this.subarray(start, end)
  13151. newBuf.__proto__ = Buffer.prototype
  13152. } else {
  13153. var sliceLen = end - start
  13154. newBuf = new Buffer(sliceLen, undefined)
  13155. for (var i = 0; i < sliceLen; ++i) {
  13156. newBuf[i] = this[i + start]
  13157. }
  13158. }
  13159. return newBuf
  13160. }
  13161. /*
  13162. * Need to make sure that buffer isn't trying to write out of bounds.
  13163. */
  13164. function checkOffset (offset, ext, length) {
  13165. if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  13166. if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
  13167. }
  13168. Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  13169. offset = offset | 0
  13170. byteLength = byteLength | 0
  13171. if (!noAssert) checkOffset(offset, byteLength, this.length)
  13172. var val = this[offset]
  13173. var mul = 1
  13174. var i = 0
  13175. while (++i < byteLength && (mul *= 0x100)) {
  13176. val += this[offset + i] * mul
  13177. }
  13178. return val
  13179. }
  13180. Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  13181. offset = offset | 0
  13182. byteLength = byteLength | 0
  13183. if (!noAssert) {
  13184. checkOffset(offset, byteLength, this.length)
  13185. }
  13186. var val = this[offset + --byteLength]
  13187. var mul = 1
  13188. while (byteLength > 0 && (mul *= 0x100)) {
  13189. val += this[offset + --byteLength] * mul
  13190. }
  13191. return val
  13192. }
  13193. Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  13194. if (!noAssert) checkOffset(offset, 1, this.length)
  13195. return this[offset]
  13196. }
  13197. Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  13198. if (!noAssert) checkOffset(offset, 2, this.length)
  13199. return this[offset] | (this[offset + 1] << 8)
  13200. }
  13201. Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  13202. if (!noAssert) checkOffset(offset, 2, this.length)
  13203. return (this[offset] << 8) | this[offset + 1]
  13204. }
  13205. Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  13206. if (!noAssert) checkOffset(offset, 4, this.length)
  13207. return ((this[offset]) |
  13208. (this[offset + 1] << 8) |
  13209. (this[offset + 2] << 16)) +
  13210. (this[offset + 3] * 0x1000000)
  13211. }
  13212. Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  13213. if (!noAssert) checkOffset(offset, 4, this.length)
  13214. return (this[offset] * 0x1000000) +
  13215. ((this[offset + 1] << 16) |
  13216. (this[offset + 2] << 8) |
  13217. this[offset + 3])
  13218. }
  13219. Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  13220. offset = offset | 0
  13221. byteLength = byteLength | 0
  13222. if (!noAssert) checkOffset(offset, byteLength, this.length)
  13223. var val = this[offset]
  13224. var mul = 1
  13225. var i = 0
  13226. while (++i < byteLength && (mul *= 0x100)) {
  13227. val += this[offset + i] * mul
  13228. }
  13229. mul *= 0x80
  13230. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  13231. return val
  13232. }
  13233. Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  13234. offset = offset | 0
  13235. byteLength = byteLength | 0
  13236. if (!noAssert) checkOffset(offset, byteLength, this.length)
  13237. var i = byteLength
  13238. var mul = 1
  13239. var val = this[offset + --i]
  13240. while (i > 0 && (mul *= 0x100)) {
  13241. val += this[offset + --i] * mul
  13242. }
  13243. mul *= 0x80
  13244. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  13245. return val
  13246. }
  13247. Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  13248. if (!noAssert) checkOffset(offset, 1, this.length)
  13249. if (!(this[offset] & 0x80)) return (this[offset])
  13250. return ((0xff - this[offset] + 1) * -1)
  13251. }
  13252. Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  13253. if (!noAssert) checkOffset(offset, 2, this.length)
  13254. var val = this[offset] | (this[offset + 1] << 8)
  13255. return (val & 0x8000) ? val | 0xFFFF0000 : val
  13256. }
  13257. Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  13258. if (!noAssert) checkOffset(offset, 2, this.length)
  13259. var val = this[offset + 1] | (this[offset] << 8)
  13260. return (val & 0x8000) ? val | 0xFFFF0000 : val
  13261. }
  13262. Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  13263. if (!noAssert) checkOffset(offset, 4, this.length)
  13264. return (this[offset]) |
  13265. (this[offset + 1] << 8) |
  13266. (this[offset + 2] << 16) |
  13267. (this[offset + 3] << 24)
  13268. }
  13269. Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  13270. if (!noAssert) checkOffset(offset, 4, this.length)
  13271. return (this[offset] << 24) |
  13272. (this[offset + 1] << 16) |
  13273. (this[offset + 2] << 8) |
  13274. (this[offset + 3])
  13275. }
  13276. Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  13277. if (!noAssert) checkOffset(offset, 4, this.length)
  13278. return ieee754.read(this, offset, true, 23, 4)
  13279. }
  13280. Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  13281. if (!noAssert) checkOffset(offset, 4, this.length)
  13282. return ieee754.read(this, offset, false, 23, 4)
  13283. }
  13284. Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  13285. if (!noAssert) checkOffset(offset, 8, this.length)
  13286. return ieee754.read(this, offset, true, 52, 8)
  13287. }
  13288. Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  13289. if (!noAssert) checkOffset(offset, 8, this.length)
  13290. return ieee754.read(this, offset, false, 52, 8)
  13291. }
  13292. function checkInt (buf, value, offset, ext, max, min) {
  13293. if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
  13294. if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
  13295. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  13296. }
  13297. Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  13298. value = +value
  13299. offset = offset | 0
  13300. byteLength = byteLength | 0
  13301. if (!noAssert) {
  13302. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  13303. checkInt(this, value, offset, byteLength, maxBytes, 0)
  13304. }
  13305. var mul = 1
  13306. var i = 0
  13307. this[offset] = value & 0xFF
  13308. while (++i < byteLength && (mul *= 0x100)) {
  13309. this[offset + i] = (value / mul) & 0xFF
  13310. }
  13311. return offset + byteLength
  13312. }
  13313. Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  13314. value = +value
  13315. offset = offset | 0
  13316. byteLength = byteLength | 0
  13317. if (!noAssert) {
  13318. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  13319. checkInt(this, value, offset, byteLength, maxBytes, 0)
  13320. }
  13321. var i = byteLength - 1
  13322. var mul = 1
  13323. this[offset + i] = value & 0xFF
  13324. while (--i >= 0 && (mul *= 0x100)) {
  13325. this[offset + i] = (value / mul) & 0xFF
  13326. }
  13327. return offset + byteLength
  13328. }
  13329. Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  13330. value = +value
  13331. offset = offset | 0
  13332. if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  13333. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  13334. this[offset] = (value & 0xff)
  13335. return offset + 1
  13336. }
  13337. function objectWriteUInt16 (buf, value, offset, littleEndian) {
  13338. if (value < 0) value = 0xffff + value + 1
  13339. for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
  13340. buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
  13341. (littleEndian ? i : 1 - i) * 8
  13342. }
  13343. }
  13344. Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  13345. value = +value
  13346. offset = offset | 0
  13347. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  13348. if (Buffer.TYPED_ARRAY_SUPPORT) {
  13349. this[offset] = (value & 0xff)
  13350. this[offset + 1] = (value >>> 8)
  13351. } else {
  13352. objectWriteUInt16(this, value, offset, true)
  13353. }
  13354. return offset + 2
  13355. }
  13356. Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  13357. value = +value
  13358. offset = offset | 0
  13359. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  13360. if (Buffer.TYPED_ARRAY_SUPPORT) {
  13361. this[offset] = (value >>> 8)
  13362. this[offset + 1] = (value & 0xff)
  13363. } else {
  13364. objectWriteUInt16(this, value, offset, false)
  13365. }
  13366. return offset + 2
  13367. }
  13368. function objectWriteUInt32 (buf, value, offset, littleEndian) {
  13369. if (value < 0) value = 0xffffffff + value + 1
  13370. for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
  13371. buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  13372. }
  13373. }
  13374. Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  13375. value = +value
  13376. offset = offset | 0
  13377. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  13378. if (Buffer.TYPED_ARRAY_SUPPORT) {
  13379. this[offset + 3] = (value >>> 24)
  13380. this[offset + 2] = (value >>> 16)
  13381. this[offset + 1] = (value >>> 8)
  13382. this[offset] = (value & 0xff)
  13383. } else {
  13384. objectWriteUInt32(this, value, offset, true)
  13385. }
  13386. return offset + 4
  13387. }
  13388. Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  13389. value = +value
  13390. offset = offset | 0
  13391. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  13392. if (Buffer.TYPED_ARRAY_SUPPORT) {
  13393. this[offset] = (value >>> 24)
  13394. this[offset + 1] = (value >>> 16)
  13395. this[offset + 2] = (value >>> 8)
  13396. this[offset + 3] = (value & 0xff)
  13397. } else {
  13398. objectWriteUInt32(this, value, offset, false)
  13399. }
  13400. return offset + 4
  13401. }
  13402. Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  13403. value = +value
  13404. offset = offset | 0
  13405. if (!noAssert) {
  13406. var limit = Math.pow(2, 8 * byteLength - 1)
  13407. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  13408. }
  13409. var i = 0
  13410. var mul = 1
  13411. var sub = 0
  13412. this[offset] = value & 0xFF
  13413. while (++i < byteLength && (mul *= 0x100)) {
  13414. if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
  13415. sub = 1
  13416. }
  13417. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  13418. }
  13419. return offset + byteLength
  13420. }
  13421. Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  13422. value = +value
  13423. offset = offset | 0
  13424. if (!noAssert) {
  13425. var limit = Math.pow(2, 8 * byteLength - 1)
  13426. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  13427. }
  13428. var i = byteLength - 1
  13429. var mul = 1
  13430. var sub = 0
  13431. this[offset + i] = value & 0xFF
  13432. while (--i >= 0 && (mul *= 0x100)) {
  13433. if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
  13434. sub = 1
  13435. }
  13436. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  13437. }
  13438. return offset + byteLength
  13439. }
  13440. Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  13441. value = +value
  13442. offset = offset | 0
  13443. if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  13444. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  13445. if (value < 0) value = 0xff + value + 1
  13446. this[offset] = (value & 0xff)
  13447. return offset + 1
  13448. }
  13449. Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  13450. value = +value
  13451. offset = offset | 0
  13452. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  13453. if (Buffer.TYPED_ARRAY_SUPPORT) {
  13454. this[offset] = (value & 0xff)
  13455. this[offset + 1] = (value >>> 8)
  13456. } else {
  13457. objectWriteUInt16(this, value, offset, true)
  13458. }
  13459. return offset + 2
  13460. }
  13461. Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  13462. value = +value
  13463. offset = offset | 0
  13464. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  13465. if (Buffer.TYPED_ARRAY_SUPPORT) {
  13466. this[offset] = (value >>> 8)
  13467. this[offset + 1] = (value & 0xff)
  13468. } else {
  13469. objectWriteUInt16(this, value, offset, false)
  13470. }
  13471. return offset + 2
  13472. }
  13473. Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  13474. value = +value
  13475. offset = offset | 0
  13476. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  13477. if (Buffer.TYPED_ARRAY_SUPPORT) {
  13478. this[offset] = (value & 0xff)
  13479. this[offset + 1] = (value >>> 8)
  13480. this[offset + 2] = (value >>> 16)
  13481. this[offset + 3] = (value >>> 24)
  13482. } else {
  13483. objectWriteUInt32(this, value, offset, true)
  13484. }
  13485. return offset + 4
  13486. }
  13487. Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  13488. value = +value
  13489. offset = offset | 0
  13490. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  13491. if (value < 0) value = 0xffffffff + value + 1
  13492. if (Buffer.TYPED_ARRAY_SUPPORT) {
  13493. this[offset] = (value >>> 24)
  13494. this[offset + 1] = (value >>> 16)
  13495. this[offset + 2] = (value >>> 8)
  13496. this[offset + 3] = (value & 0xff)
  13497. } else {
  13498. objectWriteUInt32(this, value, offset, false)
  13499. }
  13500. return offset + 4
  13501. }
  13502. function checkIEEE754 (buf, value, offset, ext, max, min) {
  13503. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  13504. if (offset < 0) throw new RangeError('Index out of range')
  13505. }
  13506. function writeFloat (buf, value, offset, littleEndian, noAssert) {
  13507. if (!noAssert) {
  13508. checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  13509. }
  13510. ieee754.write(buf, value, offset, littleEndian, 23, 4)
  13511. return offset + 4
  13512. }
  13513. Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  13514. return writeFloat(this, value, offset, true, noAssert)
  13515. }
  13516. Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  13517. return writeFloat(this, value, offset, false, noAssert)
  13518. }
  13519. function writeDouble (buf, value, offset, littleEndian, noAssert) {
  13520. if (!noAssert) {
  13521. checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  13522. }
  13523. ieee754.write(buf, value, offset, littleEndian, 52, 8)
  13524. return offset + 8
  13525. }
  13526. Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  13527. return writeDouble(this, value, offset, true, noAssert)
  13528. }
  13529. Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  13530. return writeDouble(this, value, offset, false, noAssert)
  13531. }
  13532. // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
  13533. Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  13534. if (!start) start = 0
  13535. if (!end && end !== 0) end = this.length
  13536. if (targetStart >= target.length) targetStart = target.length
  13537. if (!targetStart) targetStart = 0
  13538. if (end > 0 && end < start) end = start
  13539. // Copy 0 bytes; we're done
  13540. if (end === start) return 0
  13541. if (target.length === 0 || this.length === 0) return 0
  13542. // Fatal error conditions
  13543. if (targetStart < 0) {
  13544. throw new RangeError('targetStart out of bounds')
  13545. }
  13546. if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  13547. if (end < 0) throw new RangeError('sourceEnd out of bounds')
  13548. // Are we oob?
  13549. if (end > this.length) end = this.length
  13550. if (target.length - targetStart < end - start) {
  13551. end = target.length - targetStart + start
  13552. }
  13553. var len = end - start
  13554. var i
  13555. if (this === target && start < targetStart && targetStart < end) {
  13556. // descending copy from end
  13557. for (i = len - 1; i >= 0; --i) {
  13558. target[i + targetStart] = this[i + start]
  13559. }
  13560. } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
  13561. // ascending copy from start
  13562. for (i = 0; i < len; ++i) {
  13563. target[i + targetStart] = this[i + start]
  13564. }
  13565. } else {
  13566. Uint8Array.prototype.set.call(
  13567. target,
  13568. this.subarray(start, start + len),
  13569. targetStart
  13570. )
  13571. }
  13572. return len
  13573. }
  13574. // Usage:
  13575. // buffer.fill(number[, offset[, end]])
  13576. // buffer.fill(buffer[, offset[, end]])
  13577. // buffer.fill(string[, offset[, end]][, encoding])
  13578. Buffer.prototype.fill = function fill (val, start, end, encoding) {
  13579. // Handle string cases:
  13580. if (typeof val === 'string') {
  13581. if (typeof start === 'string') {
  13582. encoding = start
  13583. start = 0
  13584. end = this.length
  13585. } else if (typeof end === 'string') {
  13586. encoding = end
  13587. end = this.length
  13588. }
  13589. if (val.length === 1) {
  13590. var code = val.charCodeAt(0)
  13591. if (code < 256) {
  13592. val = code
  13593. }
  13594. }
  13595. if (encoding !== undefined && typeof encoding !== 'string') {
  13596. throw new TypeError('encoding must be a string')
  13597. }
  13598. if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
  13599. throw new TypeError('Unknown encoding: ' + encoding)
  13600. }
  13601. } else if (typeof val === 'number') {
  13602. val = val & 255
  13603. }
  13604. // Invalid ranges are not set to a default, so can range check early.
  13605. if (start < 0 || this.length < start || this.length < end) {
  13606. throw new RangeError('Out of range index')
  13607. }
  13608. if (end <= start) {
  13609. return this
  13610. }
  13611. start = start >>> 0
  13612. end = end === undefined ? this.length : end >>> 0
  13613. if (!val) val = 0
  13614. var i
  13615. if (typeof val === 'number') {
  13616. for (i = start; i < end; ++i) {
  13617. this[i] = val
  13618. }
  13619. } else {
  13620. var bytes = Buffer.isBuffer(val)
  13621. ? val
  13622. : utf8ToBytes(new Buffer(val, encoding).toString())
  13623. var len = bytes.length
  13624. for (i = 0; i < end - start; ++i) {
  13625. this[i + start] = bytes[i % len]
  13626. }
  13627. }
  13628. return this
  13629. }
  13630. // HELPER FUNCTIONS
  13631. // ================
  13632. var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
  13633. function base64clean (str) {
  13634. // Node strips out invalid characters like \n and \t from the string, base64-js does not
  13635. str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  13636. // Node converts strings with length < 2 to ''
  13637. if (str.length < 2) return ''
  13638. // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  13639. while (str.length % 4 !== 0) {
  13640. str = str + '='
  13641. }
  13642. return str
  13643. }
  13644. function stringtrim (str) {
  13645. if (str.trim) return str.trim()
  13646. return str.replace(/^\s+|\s+$/g, '')
  13647. }
  13648. function toHex (n) {
  13649. if (n < 16) return '0' + n.toString(16)
  13650. return n.toString(16)
  13651. }
  13652. function utf8ToBytes (string, units) {
  13653. units = units || Infinity
  13654. var codePoint
  13655. var length = string.length
  13656. var leadSurrogate = null
  13657. var bytes = []
  13658. for (var i = 0; i < length; ++i) {
  13659. codePoint = string.charCodeAt(i)
  13660. // is surrogate component
  13661. if (codePoint > 0xD7FF && codePoint < 0xE000) {
  13662. // last char was a lead
  13663. if (!leadSurrogate) {
  13664. // no lead yet
  13665. if (codePoint > 0xDBFF) {
  13666. // unexpected trail
  13667. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  13668. continue
  13669. } else if (i + 1 === length) {
  13670. // unpaired lead
  13671. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  13672. continue
  13673. }
  13674. // valid lead
  13675. leadSurrogate = codePoint
  13676. continue
  13677. }
  13678. // 2 leads in a row
  13679. if (codePoint < 0xDC00) {
  13680. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  13681. leadSurrogate = codePoint
  13682. continue
  13683. }
  13684. // valid surrogate pair
  13685. codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
  13686. } else if (leadSurrogate) {
  13687. // valid bmp char, but last char was a lead
  13688. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  13689. }
  13690. leadSurrogate = null
  13691. // encode utf8
  13692. if (codePoint < 0x80) {
  13693. if ((units -= 1) < 0) break
  13694. bytes.push(codePoint)
  13695. } else if (codePoint < 0x800) {
  13696. if ((units -= 2) < 0) break
  13697. bytes.push(
  13698. codePoint >> 0x6 | 0xC0,
  13699. codePoint & 0x3F | 0x80
  13700. )
  13701. } else if (codePoint < 0x10000) {
  13702. if ((units -= 3) < 0) break
  13703. bytes.push(
  13704. codePoint >> 0xC | 0xE0,
  13705. codePoint >> 0x6 & 0x3F | 0x80,
  13706. codePoint & 0x3F | 0x80
  13707. )
  13708. } else if (codePoint < 0x110000) {
  13709. if ((units -= 4) < 0) break
  13710. bytes.push(
  13711. codePoint >> 0x12 | 0xF0,
  13712. codePoint >> 0xC & 0x3F | 0x80,
  13713. codePoint >> 0x6 & 0x3F | 0x80,
  13714. codePoint & 0x3F | 0x80
  13715. )
  13716. } else {
  13717. throw new Error('Invalid code point')
  13718. }
  13719. }
  13720. return bytes
  13721. }
  13722. function asciiToBytes (str) {
  13723. var byteArray = []
  13724. for (var i = 0; i < str.length; ++i) {
  13725. // Node's code seems to be doing this and not & 0x7F..
  13726. byteArray.push(str.charCodeAt(i) & 0xFF)
  13727. }
  13728. return byteArray
  13729. }
  13730. function utf16leToBytes (str, units) {
  13731. var c, hi, lo
  13732. var byteArray = []
  13733. for (var i = 0; i < str.length; ++i) {
  13734. if ((units -= 2) < 0) break
  13735. c = str.charCodeAt(i)
  13736. hi = c >> 8
  13737. lo = c % 256
  13738. byteArray.push(lo)
  13739. byteArray.push(hi)
  13740. }
  13741. return byteArray
  13742. }
  13743. function base64ToBytes (str) {
  13744. return base64.toByteArray(base64clean(str))
  13745. }
  13746. function blitBuffer (src, dst, offset, length) {
  13747. for (var i = 0; i < length; ++i) {
  13748. if ((i + offset >= dst.length) || (i >= src.length)) break
  13749. dst[i + offset] = src[i]
  13750. }
  13751. return i
  13752. }
  13753. function isnan (val) {
  13754. return val !== val // eslint-disable-line no-self-compare
  13755. }
  13756. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 3)))
  13757. /***/ }),
  13758. /* 57 */
  13759. /*!*****************************************!*\
  13760. !*** ./node_modules/base64-js/index.js ***!
  13761. \*****************************************/
  13762. /*! no static exports found */
  13763. /***/ (function(module, exports, __webpack_require__) {
  13764. "use strict";
  13765. exports.byteLength = byteLength
  13766. exports.toByteArray = toByteArray
  13767. exports.fromByteArray = fromByteArray
  13768. var lookup = []
  13769. var revLookup = []
  13770. var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
  13771. var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  13772. for (var i = 0, len = code.length; i < len; ++i) {
  13773. lookup[i] = code[i]
  13774. revLookup[code.charCodeAt(i)] = i
  13775. }
  13776. // Support decoding URL-safe base64 strings, as Node.js does.
  13777. // See: https://en.wikipedia.org/wiki/Base64#URL_applications
  13778. revLookup['-'.charCodeAt(0)] = 62
  13779. revLookup['_'.charCodeAt(0)] = 63
  13780. function getLens (b64) {
  13781. var len = b64.length
  13782. if (len % 4 > 0) {
  13783. throw new Error('Invalid string. Length must be a multiple of 4')
  13784. }
  13785. // Trim off extra bytes after placeholder bytes are found
  13786. // See: https://github.com/beatgammit/base64-js/issues/42
  13787. var validLen = b64.indexOf('=')
  13788. if (validLen === -1) validLen = len
  13789. var placeHoldersLen = validLen === len
  13790. ? 0
  13791. : 4 - (validLen % 4)
  13792. return [validLen, placeHoldersLen]
  13793. }
  13794. // base64 is 4/3 + up to two characters of the original data
  13795. function byteLength (b64) {
  13796. var lens = getLens(b64)
  13797. var validLen = lens[0]
  13798. var placeHoldersLen = lens[1]
  13799. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  13800. }
  13801. function _byteLength (b64, validLen, placeHoldersLen) {
  13802. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  13803. }
  13804. function toByteArray (b64) {
  13805. var tmp
  13806. var lens = getLens(b64)
  13807. var validLen = lens[0]
  13808. var placeHoldersLen = lens[1]
  13809. var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
  13810. var curByte = 0
  13811. // if there are placeholders, only get up to the last complete 4 chars
  13812. var len = placeHoldersLen > 0
  13813. ? validLen - 4
  13814. : validLen
  13815. var i
  13816. for (i = 0; i < len; i += 4) {
  13817. tmp =
  13818. (revLookup[b64.charCodeAt(i)] << 18) |
  13819. (revLookup[b64.charCodeAt(i + 1)] << 12) |
  13820. (revLookup[b64.charCodeAt(i + 2)] << 6) |
  13821. revLookup[b64.charCodeAt(i + 3)]
  13822. arr[curByte++] = (tmp >> 16) & 0xFF
  13823. arr[curByte++] = (tmp >> 8) & 0xFF
  13824. arr[curByte++] = tmp & 0xFF
  13825. }
  13826. if (placeHoldersLen === 2) {
  13827. tmp =
  13828. (revLookup[b64.charCodeAt(i)] << 2) |
  13829. (revLookup[b64.charCodeAt(i + 1)] >> 4)
  13830. arr[curByte++] = tmp & 0xFF
  13831. }
  13832. if (placeHoldersLen === 1) {
  13833. tmp =
  13834. (revLookup[b64.charCodeAt(i)] << 10) |
  13835. (revLookup[b64.charCodeAt(i + 1)] << 4) |
  13836. (revLookup[b64.charCodeAt(i + 2)] >> 2)
  13837. arr[curByte++] = (tmp >> 8) & 0xFF
  13838. arr[curByte++] = tmp & 0xFF
  13839. }
  13840. return arr
  13841. }
  13842. function tripletToBase64 (num) {
  13843. return lookup[num >> 18 & 0x3F] +
  13844. lookup[num >> 12 & 0x3F] +
  13845. lookup[num >> 6 & 0x3F] +
  13846. lookup[num & 0x3F]
  13847. }
  13848. function encodeChunk (uint8, start, end) {
  13849. var tmp
  13850. var output = []
  13851. for (var i = start; i < end; i += 3) {
  13852. tmp =
  13853. ((uint8[i] << 16) & 0xFF0000) +
  13854. ((uint8[i + 1] << 8) & 0xFF00) +
  13855. (uint8[i + 2] & 0xFF)
  13856. output.push(tripletToBase64(tmp))
  13857. }
  13858. return output.join('')
  13859. }
  13860. function fromByteArray (uint8) {
  13861. var tmp
  13862. var len = uint8.length
  13863. var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
  13864. var parts = []
  13865. var maxChunkLength = 16383 // must be multiple of 3
  13866. // go through the array every three bytes, we'll deal with trailing stuff later
  13867. for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
  13868. parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
  13869. }
  13870. // pad the end with zeros, but make sure to not forget the extra bytes
  13871. if (extraBytes === 1) {
  13872. tmp = uint8[len - 1]
  13873. parts.push(
  13874. lookup[tmp >> 2] +
  13875. lookup[(tmp << 4) & 0x3F] +
  13876. '=='
  13877. )
  13878. } else if (extraBytes === 2) {
  13879. tmp = (uint8[len - 2] << 8) + uint8[len - 1]
  13880. parts.push(
  13881. lookup[tmp >> 10] +
  13882. lookup[(tmp >> 4) & 0x3F] +
  13883. lookup[(tmp << 2) & 0x3F] +
  13884. '='
  13885. )
  13886. }
  13887. return parts.join('')
  13888. }
  13889. /***/ }),
  13890. /* 58 */
  13891. /*!***************************************!*\
  13892. !*** ./node_modules/ieee754/index.js ***!
  13893. \***************************************/
  13894. /*! no static exports found */
  13895. /***/ (function(module, exports) {
  13896. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  13897. exports.read = function (buffer, offset, isLE, mLen, nBytes) {
  13898. var e, m
  13899. var eLen = (nBytes * 8) - mLen - 1
  13900. var eMax = (1 << eLen) - 1
  13901. var eBias = eMax >> 1
  13902. var nBits = -7
  13903. var i = isLE ? (nBytes - 1) : 0
  13904. var d = isLE ? -1 : 1
  13905. var s = buffer[offset + i]
  13906. i += d
  13907. e = s & ((1 << (-nBits)) - 1)
  13908. s >>= (-nBits)
  13909. nBits += eLen
  13910. for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  13911. m = e & ((1 << (-nBits)) - 1)
  13912. e >>= (-nBits)
  13913. nBits += mLen
  13914. for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  13915. if (e === 0) {
  13916. e = 1 - eBias
  13917. } else if (e === eMax) {
  13918. return m ? NaN : ((s ? -1 : 1) * Infinity)
  13919. } else {
  13920. m = m + Math.pow(2, mLen)
  13921. e = e - eBias
  13922. }
  13923. return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
  13924. }
  13925. exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
  13926. var e, m, c
  13927. var eLen = (nBytes * 8) - mLen - 1
  13928. var eMax = (1 << eLen) - 1
  13929. var eBias = eMax >> 1
  13930. var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
  13931. var i = isLE ? 0 : (nBytes - 1)
  13932. var d = isLE ? 1 : -1
  13933. var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
  13934. value = Math.abs(value)
  13935. if (isNaN(value) || value === Infinity) {
  13936. m = isNaN(value) ? 1 : 0
  13937. e = eMax
  13938. } else {
  13939. e = Math.floor(Math.log(value) / Math.LN2)
  13940. if (value * (c = Math.pow(2, -e)) < 1) {
  13941. e--
  13942. c *= 2
  13943. }
  13944. if (e + eBias >= 1) {
  13945. value += rt / c
  13946. } else {
  13947. value += rt * Math.pow(2, 1 - eBias)
  13948. }
  13949. if (value * c >= 2) {
  13950. e++
  13951. c /= 2
  13952. }
  13953. if (e + eBias >= eMax) {
  13954. m = 0
  13955. e = eMax
  13956. } else if (e + eBias >= 1) {
  13957. m = ((value * c) - 1) * Math.pow(2, mLen)
  13958. e = e + eBias
  13959. } else {
  13960. m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
  13961. e = 0
  13962. }
  13963. }
  13964. for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
  13965. e = (e << mLen) | m
  13966. eLen += mLen
  13967. for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
  13968. buffer[offset + i - d] |= s * 128
  13969. }
  13970. /***/ }),
  13971. /* 59 */
  13972. /*!***************************************!*\
  13973. !*** ./node_modules/isarray/index.js ***!
  13974. \***************************************/
  13975. /*! no static exports found */
  13976. /***/ (function(module, exports) {
  13977. var toString = {}.toString;
  13978. module.exports = Array.isArray || function (arr) {
  13979. return toString.call(arr) == '[object Array]';
  13980. };
  13981. /***/ }),
  13982. /* 60 */
  13983. /*!***************************************************************************************!*\
  13984. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/util/route.js ***!
  13985. \***************************************************************************************/
  13986. /*! no static exports found */
  13987. /***/ (function(module, exports, __webpack_require__) {
  13988. "use strict";
  13989. /* WEBPACK VAR INJECTION */(function(uni) {
  13990. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13991. Object.defineProperty(exports, "__esModule", {
  13992. value: true
  13993. });
  13994. exports.default = void 0;
  13995. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 34));
  13996. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 36));
  13997. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  13998. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  13999. /**
  14000. * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
  14001. * 并且带有路由拦截功能
  14002. */
  14003. var Router = /*#__PURE__*/function () {
  14004. function Router() {
  14005. (0, _classCallCheck2.default)(this, Router);
  14006. // 原始属性定义
  14007. this.config = {
  14008. type: 'navigateTo',
  14009. url: '',
  14010. delta: 1,
  14011. // navigateBack页面后退时,回退的层数
  14012. params: {},
  14013. // 传递的参数
  14014. animationType: 'pop-in',
  14015. // 窗口动画,只在APP有效
  14016. animationDuration: 300,
  14017. // 窗口动画持续时间,单位毫秒,只在APP有效
  14018. intercept: false // 是否需要拦截
  14019. };
  14020. // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
  14021. // 这里在构造函数中进行this绑定
  14022. this.route = this.route.bind(this);
  14023. }
  14024. // 判断url前面是否有"/",如果没有则加上,否则无法跳转
  14025. (0, _createClass2.default)(Router, [{
  14026. key: "addRootPath",
  14027. value: function addRootPath(url) {
  14028. return url[0] === '/' ? url : "/".concat(url);
  14029. }
  14030. // 整合路由参数
  14031. }, {
  14032. key: "mixinParam",
  14033. value: function mixinParam(url, params) {
  14034. url = url && this.addRootPath(url);
  14035. // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
  14036. // 如果有url中有get参数,转换后无需带上"?"
  14037. var query = '';
  14038. if (/.*\/.*\?.*=.*/.test(url)) {
  14039. // object对象转为get类型的参数
  14040. query = uni.$u.queryParams(params, false);
  14041. // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
  14042. return url += "&".concat(query);
  14043. }
  14044. // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
  14045. query = uni.$u.queryParams(params);
  14046. return url += query;
  14047. }
  14048. // 对外的方法名称
  14049. }, {
  14050. key: "route",
  14051. value: function () {
  14052. var _route = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  14053. var options,
  14054. params,
  14055. mergeConfig,
  14056. isNext,
  14057. _args = arguments;
  14058. return _regenerator.default.wrap(function _callee$(_context) {
  14059. while (1) {
  14060. switch (_context.prev = _context.next) {
  14061. case 0:
  14062. options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
  14063. params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
  14064. // 合并用户的配置和内部的默认配置
  14065. mergeConfig = {};
  14066. if (typeof options === 'string') {
  14067. // 如果options为字符串,则为route(url, params)的形式
  14068. mergeConfig.url = this.mixinParam(options, params);
  14069. mergeConfig.type = 'navigateTo';
  14070. } else {
  14071. mergeConfig = uni.$u.deepMerge(options, this.config);
  14072. // 否则正常使用mergeConfig中的url和params进行拼接
  14073. mergeConfig.url = this.mixinParam(options.url, options.params);
  14074. }
  14075. // 如果本次跳转的路径和本页面路径一致,不执行跳转,防止用户快速点击跳转按钮,造成多次跳转同一个页面的问题
  14076. if (!(mergeConfig.url === uni.$u.page())) {
  14077. _context.next = 6;
  14078. break;
  14079. }
  14080. return _context.abrupt("return");
  14081. case 6:
  14082. if (params.intercept) {
  14083. this.config.intercept = params.intercept;
  14084. }
  14085. // params参数也带给拦截器
  14086. mergeConfig.params = params;
  14087. // 合并内外部参数
  14088. mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
  14089. // 判断用户是否定义了拦截器
  14090. if (!(typeof uni.$u.routeIntercept === 'function')) {
  14091. _context.next = 16;
  14092. break;
  14093. }
  14094. _context.next = 12;
  14095. return new Promise(function (resolve, reject) {
  14096. uni.$u.routeIntercept(mergeConfig, resolve);
  14097. });
  14098. case 12:
  14099. isNext = _context.sent;
  14100. // 如果isNext为true,则执行路由跳转
  14101. isNext && this.openPage(mergeConfig);
  14102. _context.next = 17;
  14103. break;
  14104. case 16:
  14105. this.openPage(mergeConfig);
  14106. case 17:
  14107. case "end":
  14108. return _context.stop();
  14109. }
  14110. }
  14111. }, _callee, this);
  14112. }));
  14113. function route() {
  14114. return _route.apply(this, arguments);
  14115. }
  14116. return route;
  14117. }() // 执行路由跳转
  14118. }, {
  14119. key: "openPage",
  14120. value: function openPage(config) {
  14121. // 解构参数
  14122. var url = config.url,
  14123. type = config.type,
  14124. delta = config.delta,
  14125. animationType = config.animationType,
  14126. animationDuration = config.animationDuration;
  14127. if (config.type == 'navigateTo' || config.type == 'to') {
  14128. uni.navigateTo({
  14129. url: url,
  14130. animationType: animationType,
  14131. animationDuration: animationDuration
  14132. });
  14133. }
  14134. if (config.type == 'redirectTo' || config.type == 'redirect') {
  14135. uni.redirectTo({
  14136. url: url
  14137. });
  14138. }
  14139. if (config.type == 'switchTab' || config.type == 'tab') {
  14140. uni.switchTab({
  14141. url: url
  14142. });
  14143. }
  14144. if (config.type == 'reLaunch' || config.type == 'launch') {
  14145. uni.reLaunch({
  14146. url: url
  14147. });
  14148. }
  14149. if (config.type == 'navigateBack' || config.type == 'back') {
  14150. uni.navigateBack({
  14151. delta: delta
  14152. });
  14153. }
  14154. }
  14155. }]);
  14156. return Router;
  14157. }();
  14158. var _default = new Router().route;
  14159. exports.default = _default;
  14160. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  14161. /***/ }),
  14162. /* 61 */
  14163. /*!***************************************************************************************************!*\
  14164. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/function/colorGradient.js ***!
  14165. \***************************************************************************************************/
  14166. /*! no static exports found */
  14167. /***/ (function(module, exports, __webpack_require__) {
  14168. "use strict";
  14169. Object.defineProperty(exports, "__esModule", {
  14170. value: true
  14171. });
  14172. exports.default = void 0;
  14173. /**
  14174. * 求两个颜色之间的渐变值
  14175. * @param {string} startColor 开始的颜色
  14176. * @param {string} endColor 结束的颜色
  14177. * @param {number} step 颜色等分的份额
  14178. * */
  14179. function colorGradient() {
  14180. var startColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'rgb(0, 0, 0)';
  14181. var endColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rgb(255, 255, 255)';
  14182. var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
  14183. var startRGB = hexToRgb(startColor, false); // 转换为rgb数组模式
  14184. var startR = startRGB[0];
  14185. var startG = startRGB[1];
  14186. var startB = startRGB[2];
  14187. var endRGB = hexToRgb(endColor, false);
  14188. var endR = endRGB[0];
  14189. var endG = endRGB[1];
  14190. var endB = endRGB[2];
  14191. var sR = (endR - startR) / step; // 总差值
  14192. var sG = (endG - startG) / step;
  14193. var sB = (endB - startB) / step;
  14194. var colorArr = [];
  14195. for (var i = 0; i < step; i++) {
  14196. // 计算每一步的hex值
  14197. var hex = rgbToHex("rgb(".concat(Math.round(sR * i + startR), ",").concat(Math.round(sG * i + startG), ",").concat(Math.round(sB * i + startB), ")"));
  14198. // 确保第一个颜色值为startColor的值
  14199. if (i === 0) hex = rgbToHex(startColor);
  14200. // 确保最后一个颜色值为endColor的值
  14201. if (i === step - 1) hex = rgbToHex(endColor);
  14202. colorArr.push(hex);
  14203. }
  14204. return colorArr;
  14205. }
  14206. // 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
  14207. function hexToRgb(sColor) {
  14208. var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  14209. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  14210. sColor = String(sColor).toLowerCase();
  14211. if (sColor && reg.test(sColor)) {
  14212. if (sColor.length === 4) {
  14213. var sColorNew = '#';
  14214. for (var i = 1; i < 4; i += 1) {
  14215. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  14216. }
  14217. sColor = sColorNew;
  14218. }
  14219. // 处理六位的颜色值
  14220. var sColorChange = [];
  14221. for (var _i = 1; _i < 7; _i += 2) {
  14222. sColorChange.push(parseInt("0x".concat(sColor.slice(_i, _i + 2))));
  14223. }
  14224. if (!str) {
  14225. return sColorChange;
  14226. }
  14227. return "rgb(".concat(sColorChange[0], ",").concat(sColorChange[1], ",").concat(sColorChange[2], ")");
  14228. }
  14229. if (/^(rgb|RGB)/.test(sColor)) {
  14230. var arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  14231. return arr.map(function (val) {
  14232. return Number(val);
  14233. });
  14234. }
  14235. return sColor;
  14236. }
  14237. // 将rgb表示方式转换为hex表示方式
  14238. function rgbToHex(rgb) {
  14239. var _this = rgb;
  14240. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  14241. if (/^(rgb|RGB)/.test(_this)) {
  14242. var aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  14243. var strHex = '#';
  14244. for (var i = 0; i < aColor.length; i++) {
  14245. var hex = Number(aColor[i]).toString(16);
  14246. hex = String(hex).length == 1 ? "".concat(0, hex) : hex; // 保证每个rgb的值为2位
  14247. if (hex === '0') {
  14248. hex += hex;
  14249. }
  14250. strHex += hex;
  14251. }
  14252. if (strHex.length !== 7) {
  14253. strHex = _this;
  14254. }
  14255. return strHex;
  14256. }
  14257. if (reg.test(_this)) {
  14258. var aNum = _this.replace(/#/, '').split('');
  14259. if (aNum.length === 6) {
  14260. return _this;
  14261. }
  14262. if (aNum.length === 3) {
  14263. var numHex = '#';
  14264. for (var _i2 = 0; _i2 < aNum.length; _i2 += 1) {
  14265. numHex += aNum[_i2] + aNum[_i2];
  14266. }
  14267. return numHex;
  14268. }
  14269. } else {
  14270. return _this;
  14271. }
  14272. }
  14273. /**
  14274. * JS颜色十六进制转换为rgb或rgba,返回的格式为 rgba(255,255,255,0.5)字符串
  14275. * sHex为传入的十六进制的色值
  14276. * alpha为rgba的透明度
  14277. */
  14278. function colorToRgba(color, alpha) {
  14279. color = rgbToHex(color);
  14280. // 十六进制颜色值的正则表达式
  14281. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  14282. /* 16进制颜色转为RGB格式 */
  14283. var sColor = String(color).toLowerCase();
  14284. if (sColor && reg.test(sColor)) {
  14285. if (sColor.length === 4) {
  14286. var sColorNew = '#';
  14287. for (var i = 1; i < 4; i += 1) {
  14288. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  14289. }
  14290. sColor = sColorNew;
  14291. }
  14292. // 处理六位的颜色值
  14293. var sColorChange = [];
  14294. for (var _i3 = 1; _i3 < 7; _i3 += 2) {
  14295. sColorChange.push(parseInt("0x".concat(sColor.slice(_i3, _i3 + 2))));
  14296. }
  14297. // return sColorChange.join(',')
  14298. return "rgba(".concat(sColorChange.join(','), ",").concat(alpha, ")");
  14299. }
  14300. return sColor;
  14301. }
  14302. var _default = {
  14303. colorGradient: colorGradient,
  14304. hexToRgb: hexToRgb,
  14305. rgbToHex: rgbToHex,
  14306. colorToRgba: colorToRgba
  14307. };
  14308. exports.default = _default;
  14309. /***/ }),
  14310. /* 62 */
  14311. /*!******************************************************************************************!*\
  14312. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/function/test.js ***!
  14313. \******************************************************************************************/
  14314. /*! no static exports found */
  14315. /***/ (function(module, exports, __webpack_require__) {
  14316. "use strict";
  14317. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  14318. Object.defineProperty(exports, "__esModule", {
  14319. value: true
  14320. });
  14321. exports.default = void 0;
  14322. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  14323. /**
  14324. * 验证电子邮箱格式
  14325. */
  14326. function email(value) {
  14327. return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
  14328. }
  14329. /**
  14330. * 验证手机格式
  14331. */
  14332. function mobile(value) {
  14333. return /^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/.test(value);
  14334. }
  14335. /**
  14336. * 验证URL格式
  14337. */
  14338. function url(value) {
  14339. 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);
  14340. }
  14341. /**
  14342. * 验证日期格式
  14343. */
  14344. function date(value) {
  14345. if (!value) return false;
  14346. // 判断是否数值或者字符串数值(意味着为时间戳),转为数值,否则new Date无法识别字符串时间戳
  14347. if (number(value)) value = +value;
  14348. return !/Invalid|NaN/.test(new Date(value).toString());
  14349. }
  14350. /**
  14351. * 验证ISO类型的日期格式
  14352. */
  14353. function dateISO(value) {
  14354. return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
  14355. }
  14356. /**
  14357. * 验证十进制数字
  14358. */
  14359. function number(value) {
  14360. return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value);
  14361. }
  14362. /**
  14363. * 验证字符串
  14364. */
  14365. function string(value) {
  14366. return typeof value === 'string';
  14367. }
  14368. /**
  14369. * 验证整数
  14370. */
  14371. function digits(value) {
  14372. return /^\d+$/.test(value);
  14373. }
  14374. /**
  14375. * 验证身份证号码
  14376. */
  14377. function idCard(value) {
  14378. 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);
  14379. }
  14380. /**
  14381. * 是否车牌号
  14382. */
  14383. function carNo(value) {
  14384. // 新能源车牌
  14385. var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
  14386. // 旧车牌
  14387. var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
  14388. if (value.length === 7) {
  14389. return creg.test(value);
  14390. }
  14391. if (value.length === 8) {
  14392. return xreg.test(value);
  14393. }
  14394. return false;
  14395. }
  14396. /**
  14397. * 金额,只允许2位小数
  14398. */
  14399. function amount(value) {
  14400. // 金额,只允许保留两位小数
  14401. return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
  14402. }
  14403. /**
  14404. * 中文
  14405. */
  14406. function chinese(value) {
  14407. var reg = /^[\u4e00-\u9fa5]+$/gi;
  14408. return reg.test(value);
  14409. }
  14410. /**
  14411. * 只能输入字母
  14412. */
  14413. function letter(value) {
  14414. return /^[a-zA-Z]*$/.test(value);
  14415. }
  14416. /**
  14417. * 只能是字母或者数字
  14418. */
  14419. function enOrNum(value) {
  14420. // 英文或者数字
  14421. var reg = /^[0-9a-zA-Z]*$/g;
  14422. return reg.test(value);
  14423. }
  14424. /**
  14425. * 验证是否包含某个值
  14426. */
  14427. function contains(value, param) {
  14428. return value.indexOf(param) >= 0;
  14429. }
  14430. /**
  14431. * 验证一个值范围[min, max]
  14432. */
  14433. function range(value, param) {
  14434. return value >= param[0] && value <= param[1];
  14435. }
  14436. /**
  14437. * 验证一个长度范围[min, max]
  14438. */
  14439. function rangeLength(value, param) {
  14440. return value.length >= param[0] && value.length <= param[1];
  14441. }
  14442. /**
  14443. * 是否固定电话
  14444. */
  14445. function landline(value) {
  14446. var reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
  14447. return reg.test(value);
  14448. }
  14449. /**
  14450. * 判断是否为空
  14451. */
  14452. function empty(value) {
  14453. switch ((0, _typeof2.default)(value)) {
  14454. case 'undefined':
  14455. return true;
  14456. case 'string':
  14457. if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true;
  14458. break;
  14459. case 'boolean':
  14460. if (!value) return true;
  14461. break;
  14462. case 'number':
  14463. if (value === 0 || isNaN(value)) return true;
  14464. break;
  14465. case 'object':
  14466. if (value === null || value.length === 0) return true;
  14467. for (var i in value) {
  14468. return false;
  14469. }
  14470. return true;
  14471. }
  14472. return false;
  14473. }
  14474. /**
  14475. * 是否json字符串
  14476. */
  14477. function jsonString(value) {
  14478. if (typeof value === 'string') {
  14479. try {
  14480. var obj = JSON.parse(value);
  14481. if ((0, _typeof2.default)(obj) === 'object' && obj) {
  14482. return true;
  14483. }
  14484. return false;
  14485. } catch (e) {
  14486. return false;
  14487. }
  14488. }
  14489. return false;
  14490. }
  14491. /**
  14492. * 是否数组
  14493. */
  14494. function array(value) {
  14495. if (typeof Array.isArray === 'function') {
  14496. return Array.isArray(value);
  14497. }
  14498. return Object.prototype.toString.call(value) === '[object Array]';
  14499. }
  14500. /**
  14501. * 是否对象
  14502. */
  14503. function object(value) {
  14504. return Object.prototype.toString.call(value) === '[object Object]';
  14505. }
  14506. /**
  14507. * 是否短信验证码
  14508. */
  14509. function code(value) {
  14510. var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  14511. return new RegExp("^\\d{".concat(len, "}$")).test(value);
  14512. }
  14513. /**
  14514. * 是否函数方法
  14515. * @param {Object} value
  14516. */
  14517. function func(value) {
  14518. return typeof value === 'function';
  14519. }
  14520. /**
  14521. * 是否promise对象
  14522. * @param {Object} value
  14523. */
  14524. function promise(value) {
  14525. return object(value) && func(value.then) && func(value.catch);
  14526. }
  14527. /** 是否图片格式
  14528. * @param {Object} value
  14529. */
  14530. function image(value) {
  14531. var newValue = value.split('?')[0];
  14532. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  14533. return IMAGE_REGEXP.test(newValue);
  14534. }
  14535. /**
  14536. * 是否视频格式
  14537. * @param {Object} value
  14538. */
  14539. function video(value) {
  14540. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;
  14541. return VIDEO_REGEXP.test(value);
  14542. }
  14543. /**
  14544. * 是否为正则对象
  14545. * @param {Object}
  14546. * @return {Boolean}
  14547. */
  14548. function regExp(o) {
  14549. return o && Object.prototype.toString.call(o) === '[object RegExp]';
  14550. }
  14551. var _default = {
  14552. email: email,
  14553. mobile: mobile,
  14554. url: url,
  14555. date: date,
  14556. dateISO: dateISO,
  14557. number: number,
  14558. digits: digits,
  14559. idCard: idCard,
  14560. carNo: carNo,
  14561. amount: amount,
  14562. chinese: chinese,
  14563. letter: letter,
  14564. enOrNum: enOrNum,
  14565. contains: contains,
  14566. range: range,
  14567. rangeLength: rangeLength,
  14568. empty: empty,
  14569. isEmpty: empty,
  14570. jsonString: jsonString,
  14571. landline: landline,
  14572. object: object,
  14573. array: array,
  14574. code: code,
  14575. func: func,
  14576. promise: promise,
  14577. video: video,
  14578. image: image,
  14579. regExp: regExp,
  14580. string: string
  14581. };
  14582. exports.default = _default;
  14583. /***/ }),
  14584. /* 63 */
  14585. /*!**********************************************************************************************!*\
  14586. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/function/debounce.js ***!
  14587. \**********************************************************************************************/
  14588. /*! no static exports found */
  14589. /***/ (function(module, exports, __webpack_require__) {
  14590. "use strict";
  14591. Object.defineProperty(exports, "__esModule", {
  14592. value: true
  14593. });
  14594. exports.default = void 0;
  14595. var timeout = null;
  14596. /**
  14597. * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
  14598. *
  14599. * @param {Function} func 要执行的回调函数
  14600. * @param {Number} wait 延时的时间
  14601. * @param {Boolean} immediate 是否立即执行
  14602. * @return null
  14603. */
  14604. function debounce(func) {
  14605. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  14606. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  14607. // 清除定时器
  14608. if (timeout !== null) clearTimeout(timeout);
  14609. // 立即执行,此类情况一般用不到
  14610. if (immediate) {
  14611. var callNow = !timeout;
  14612. timeout = setTimeout(function () {
  14613. timeout = null;
  14614. }, wait);
  14615. if (callNow) typeof func === 'function' && func();
  14616. } else {
  14617. // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
  14618. timeout = setTimeout(function () {
  14619. typeof func === 'function' && func();
  14620. }, wait);
  14621. }
  14622. }
  14623. var _default = debounce;
  14624. exports.default = _default;
  14625. /***/ }),
  14626. /* 64 */
  14627. /*!**********************************************************************************************!*\
  14628. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/function/throttle.js ***!
  14629. \**********************************************************************************************/
  14630. /*! no static exports found */
  14631. /***/ (function(module, exports, __webpack_require__) {
  14632. "use strict";
  14633. Object.defineProperty(exports, "__esModule", {
  14634. value: true
  14635. });
  14636. exports.default = void 0;
  14637. var timer;
  14638. var flag;
  14639. /**
  14640. * 节流原理:在一定时间内,只能触发一次
  14641. *
  14642. * @param {Function} func 要执行的回调函数
  14643. * @param {Number} wait 延时的时间
  14644. * @param {Boolean} immediate 是否立即执行
  14645. * @return null
  14646. */
  14647. function throttle(func) {
  14648. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  14649. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  14650. if (immediate) {
  14651. if (!flag) {
  14652. flag = true;
  14653. // 如果是立即执行,则在wait毫秒内开始时执行
  14654. typeof func === 'function' && func();
  14655. timer = setTimeout(function () {
  14656. flag = false;
  14657. }, wait);
  14658. }
  14659. } else if (!flag) {
  14660. flag = true;
  14661. // 如果是非立即执行,则在wait毫秒内的结束处执行
  14662. timer = setTimeout(function () {
  14663. flag = false;
  14664. typeof func === 'function' && func();
  14665. }, wait);
  14666. }
  14667. }
  14668. var _default = throttle;
  14669. exports.default = _default;
  14670. /***/ }),
  14671. /* 65 */
  14672. /*!*******************************************************************************************!*\
  14673. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/function/index.js ***!
  14674. \*******************************************************************************************/
  14675. /*! no static exports found */
  14676. /***/ (function(module, exports, __webpack_require__) {
  14677. "use strict";
  14678. /* WEBPACK VAR INJECTION */(function(uni) {
  14679. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  14680. Object.defineProperty(exports, "__esModule", {
  14681. value: true
  14682. });
  14683. exports.default = void 0;
  14684. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  14685. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  14686. var _test = _interopRequireDefault(__webpack_require__(/*! ./test.js */ 62));
  14687. var _digit = __webpack_require__(/*! ./digit.js */ 66);
  14688. /**
  14689. * @description 如果value小于min,取min;如果value大于max,取max
  14690. * @param {number} min
  14691. * @param {number} max
  14692. * @param {number} value
  14693. */
  14694. function range() {
  14695. var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  14696. var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  14697. var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
  14698. return Math.max(min, Math.min(max, Number(value)));
  14699. }
  14700. /**
  14701. * @description 用于获取用户传递值的px值 如果用户传递了"xxpx"或者"xxrpx",取出其数值部分,如果是"xxxrpx"还需要用过uni.upx2px进行转换
  14702. * @param {number|string} value 用户传递值的px值
  14703. * @param {boolean} unit
  14704. * @returns {number|string}
  14705. */
  14706. function getPx(value) {
  14707. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  14708. if (_test.default.number(value)) {
  14709. return unit ? "".concat(value, "px") : Number(value);
  14710. }
  14711. // 如果带有rpx,先取出其数值部分,再转为px值
  14712. if (/(rpx|upx)$/.test(value)) {
  14713. return unit ? "".concat(uni.upx2px(parseInt(value)), "px") : Number(uni.upx2px(parseInt(value)));
  14714. }
  14715. return unit ? "".concat(parseInt(value), "px") : parseInt(value);
  14716. }
  14717. /**
  14718. * @description 进行延时,以达到可以简写代码的目的 比如: await uni.$u.sleep(20)将会阻塞20ms
  14719. * @param {number} value 堵塞时间 单位ms 毫秒
  14720. * @returns {Promise} 返回promise
  14721. */
  14722. function sleep() {
  14723. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 30;
  14724. return new Promise(function (resolve) {
  14725. setTimeout(function () {
  14726. resolve();
  14727. }, value);
  14728. });
  14729. }
  14730. /**
  14731. * @description 运行期判断平台
  14732. * @returns {string} 返回所在平台(小写)
  14733. * @link 运行期判断平台 https://uniapp.dcloud.io/frame?id=判断平台
  14734. */
  14735. function os() {
  14736. return uni.getSystemInfoSync().platform.toLowerCase();
  14737. }
  14738. /**
  14739. * @description 获取系统信息同步接口
  14740. * @link 获取系统信息同步接口 https://uniapp.dcloud.io/api/system/info?id=getsysteminfosync
  14741. */
  14742. function sys() {
  14743. return uni.getSystemInfoSync();
  14744. }
  14745. /**
  14746. * @description 取一个区间数
  14747. * @param {Number} min 最小值
  14748. * @param {Number} max 最大值
  14749. */
  14750. function random(min, max) {
  14751. if (min >= 0 && max > 0 && max >= min) {
  14752. var gab = max - min + 1;
  14753. return Math.floor(Math.random() * gab + min);
  14754. }
  14755. return 0;
  14756. }
  14757. /**
  14758. * @param {Number} len uuid的长度
  14759. * @param {Boolean} firstU 将返回的首字母置为"u"
  14760. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  14761. */
  14762. function guid() {
  14763. var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
  14764. var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  14765. var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  14766. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  14767. var uuid = [];
  14768. radix = radix || chars.length;
  14769. if (len) {
  14770. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  14771. for (var i = 0; i < len; i++) {
  14772. uuid[i] = chars[0 | Math.random() * radix];
  14773. }
  14774. } else {
  14775. var r;
  14776. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  14777. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  14778. uuid[14] = '4';
  14779. for (var _i = 0; _i < 36; _i++) {
  14780. if (!uuid[_i]) {
  14781. r = 0 | Math.random() * 16;
  14782. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  14783. }
  14784. }
  14785. }
  14786. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  14787. if (firstU) {
  14788. uuid.shift();
  14789. return "u".concat(uuid.join(''));
  14790. }
  14791. return uuid.join('');
  14792. }
  14793. /**
  14794. * @description 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  14795. this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  14796. 这里默认值等于undefined有它的含义,因为最顶层元素(组件)的$parent就是undefined,意味着不传name
  14797. 值(默认为undefined),就是查找最顶层的$parent
  14798. * @param {string|undefined} name 父组件的参数名
  14799. */
  14800. function $parent() {
  14801. var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  14802. var parent = this.$parent;
  14803. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  14804. while (parent) {
  14805. // 父组件
  14806. if (parent.$options && parent.$options.name !== name) {
  14807. // 如果组件的name不相等,继续上一级寻找
  14808. parent = parent.$parent;
  14809. } else {
  14810. return parent;
  14811. }
  14812. }
  14813. return false;
  14814. }
  14815. /**
  14816. * @description 样式转换
  14817. * 对象转字符串,或者字符串转对象
  14818. * @param {object | string} customStyle 需要转换的目标
  14819. * @param {String} target 转换的目的,object-转为对象,string-转为字符串
  14820. * @returns {object|string}
  14821. */
  14822. function addStyle(customStyle) {
  14823. var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'object';
  14824. // 字符串转字符串,对象转对象情形,直接返回
  14825. if (_test.default.empty(customStyle) || (0, _typeof2.default)(customStyle) === 'object' && target === 'object' || target === 'string' && typeof customStyle === 'string') {
  14826. return customStyle;
  14827. }
  14828. // 字符串转对象
  14829. if (target === 'object') {
  14830. // 去除字符串样式中的两端空格(中间的空格不能去掉,比如padding: 20px 0如果去掉了就错了),空格是无用的
  14831. customStyle = trim(customStyle);
  14832. // 根据";"将字符串转为数组形式
  14833. var styleArray = customStyle.split(';');
  14834. var style = {};
  14835. // 历遍数组,拼接成对象
  14836. for (var i = 0; i < styleArray.length; i++) {
  14837. // 'font-size:20px;color:red;',如此最后字符串有";"的话,会导致styleArray最后一个元素为空字符串,这里需要过滤
  14838. if (styleArray[i]) {
  14839. var item = styleArray[i].split(':');
  14840. style[trim(item[0])] = trim(item[1]);
  14841. }
  14842. }
  14843. return style;
  14844. }
  14845. // 这里为对象转字符串形式
  14846. var string = '';
  14847. for (var _i2 in customStyle) {
  14848. // 驼峰转为中划线的形式,否则css内联样式,无法识别驼峰样式属性名
  14849. var key = _i2.replace(/([A-Z])/g, '-$1').toLowerCase();
  14850. string += "".concat(key, ":").concat(customStyle[_i2], ";");
  14851. }
  14852. // 去除两端空格
  14853. return trim(string);
  14854. }
  14855. /**
  14856. * @description 添加单位,如果有rpx,upx,%,px等单位结尾或者值为auto,直接返回,否则加上px单位结尾
  14857. * @param {string|number} value 需要添加单位的值
  14858. * @param {string} unit 添加的单位名 比如px
  14859. */
  14860. function addUnit() {
  14861. var _uni$$u$config$unit, _uni, _uni$$u, _uni$$u$config;
  14862. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'auto';
  14863. 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';
  14864. value = String(value);
  14865. // 用uView内置验证规则中的number判断是否为数值
  14866. return _test.default.number(value) ? "".concat(value).concat(unit) : value;
  14867. }
  14868. /**
  14869. * @description 深度克隆
  14870. * @param {object} obj 需要深度克隆的对象
  14871. * @returns {*} 克隆后的对象或者原值(不是对象)
  14872. */
  14873. function deepClone(obj) {
  14874. // 对常见的“非”值,直接返回原来值
  14875. if ([null, undefined, NaN, false].includes(obj)) return obj;
  14876. if ((0, _typeof2.default)(obj) !== 'object' && typeof obj !== 'function') {
  14877. // 原始类型直接返回
  14878. return obj;
  14879. }
  14880. var o = _test.default.array(obj) ? [] : {};
  14881. for (var i in obj) {
  14882. if (obj.hasOwnProperty(i)) {
  14883. o[i] = (0, _typeof2.default)(obj[i]) === 'object' ? deepClone(obj[i]) : obj[i];
  14884. }
  14885. }
  14886. return o;
  14887. }
  14888. /**
  14889. * @description JS对象深度合并
  14890. * @param {object} target 需要拷贝的对象
  14891. * @param {object} source 拷贝的来源对象
  14892. * @returns {object|boolean} 深度合并后的对象或者false(入参有不是对象)
  14893. */
  14894. function deepMerge() {
  14895. var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  14896. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  14897. target = deepClone(target);
  14898. if ((0, _typeof2.default)(target) !== 'object' || (0, _typeof2.default)(source) !== 'object') return false;
  14899. for (var prop in source) {
  14900. if (!source.hasOwnProperty(prop)) continue;
  14901. if (prop in target) {
  14902. if ((0, _typeof2.default)(target[prop]) !== 'object') {
  14903. target[prop] = source[prop];
  14904. } else if ((0, _typeof2.default)(source[prop]) !== 'object') {
  14905. target[prop] = source[prop];
  14906. } else if (target[prop].concat && source[prop].concat) {
  14907. target[prop] = target[prop].concat(source[prop]);
  14908. } else {
  14909. target[prop] = deepMerge(target[prop], source[prop]);
  14910. }
  14911. } else {
  14912. target[prop] = source[prop];
  14913. }
  14914. }
  14915. return target;
  14916. }
  14917. /**
  14918. * @description error提示
  14919. * @param {*} err 错误内容
  14920. */
  14921. function error(err) {
  14922. // 开发环境才提示,生产环境不会提示
  14923. if (true) {
  14924. console.error("uView\u63D0\u793A\uFF1A".concat(err));
  14925. }
  14926. }
  14927. /**
  14928. * @description 打乱数组
  14929. * @param {array} array 需要打乱的数组
  14930. * @returns {array} 打乱后的数组
  14931. */
  14932. function randomArray() {
  14933. var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  14934. // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
  14935. return array.sort(function () {
  14936. return Math.random() - 0.5;
  14937. });
  14938. }
  14939. // padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
  14940. // 所以这里做一个兼容polyfill的兼容处理
  14941. if (!String.prototype.padStart) {
  14942. // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
  14943. String.prototype.padStart = function (maxLength) {
  14944. var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
  14945. if (Object.prototype.toString.call(fillString) !== '[object String]') {
  14946. throw new TypeError('fillString must be String');
  14947. }
  14948. var str = this;
  14949. // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
  14950. if (str.length >= maxLength) return String(str);
  14951. var fillLength = maxLength - str.length;
  14952. var times = Math.ceil(fillLength / fillString.length);
  14953. while (times >>= 1) {
  14954. fillString += fillString;
  14955. if (times === 1) {
  14956. fillString += fillString;
  14957. }
  14958. }
  14959. return fillString.slice(0, fillLength) + str;
  14960. };
  14961. }
  14962. /**
  14963. * @description 格式化时间
  14964. * @param {String|Number} dateTime 需要格式化的时间戳
  14965. * @param {String} fmt 格式化规则 yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合 默认yyyy-mm-dd
  14966. * @returns {string} 返回格式化后的字符串
  14967. */
  14968. function timeFormat() {
  14969. var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  14970. var formatStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  14971. var date;
  14972. // 若传入时间为假值,则取当前时间
  14973. if (!dateTime) {
  14974. date = new Date();
  14975. }
  14976. // 若为unix秒时间戳,则转为毫秒时间戳(逻辑有点奇怪,但不敢改,以保证历史兼容)
  14977. else if (/^\d{10}$/.test(dateTime === null || dateTime === void 0 ? void 0 : dateTime.toString().trim())) {
  14978. date = new Date(dateTime * 1000);
  14979. }
  14980. // 若用户传入字符串格式时间戳,new Date无法解析,需做兼容
  14981. else if (typeof dateTime === 'string' && /^\d+$/.test(dateTime.trim())) {
  14982. date = new Date(Number(dateTime));
  14983. }
  14984. // 处理平台性差异,在Safari/Webkit中,new Date仅支持/作为分割符的字符串时间
  14985. // 处理 '2022-07-10 01:02:03',跳过 '2022-07-10T01:02:03'
  14986. else if (typeof dateTime === 'string' && dateTime.includes('-') && !dateTime.includes('T')) {
  14987. date = new Date(dateTime.replace(/-/g, '/'));
  14988. }
  14989. // 其他都认为符合 RFC 2822 规范
  14990. else {
  14991. date = new Date(dateTime);
  14992. }
  14993. var timeSource = {
  14994. 'y': date.getFullYear().toString(),
  14995. // 年
  14996. 'm': (date.getMonth() + 1).toString().padStart(2, '0'),
  14997. // 月
  14998. 'd': date.getDate().toString().padStart(2, '0'),
  14999. // 日
  15000. 'h': date.getHours().toString().padStart(2, '0'),
  15001. // 时
  15002. 'M': date.getMinutes().toString().padStart(2, '0'),
  15003. // 分
  15004. 's': date.getSeconds().toString().padStart(2, '0') // 秒
  15005. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  15006. };
  15007. for (var key in timeSource) {
  15008. var _ref = new RegExp("".concat(key, "+")).exec(formatStr) || [],
  15009. _ref2 = (0, _slicedToArray2.default)(_ref, 1),
  15010. ret = _ref2[0];
  15011. if (ret) {
  15012. // 年可能只需展示两位
  15013. var beginIndex = key === 'y' && ret.length === 2 ? 2 : 0;
  15014. formatStr = formatStr.replace(ret, timeSource[key].slice(beginIndex));
  15015. }
  15016. }
  15017. return formatStr;
  15018. }
  15019. /**
  15020. * @description 时间戳转为多久之前
  15021. * @param {String|Number} timestamp 时间戳
  15022. * @param {String|Boolean} format
  15023. * 格式化规则如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
  15024. * 如果为布尔值false,无论什么时间,都返回多久以前的格式
  15025. * @returns {string} 转化后的内容
  15026. */
  15027. function timeFrom() {
  15028. var timestamp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  15029. var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  15030. if (timestamp == null) timestamp = Number(new Date());
  15031. timestamp = parseInt(timestamp);
  15032. // 判断用户输入的时间戳是秒还是毫秒,一般前端js获取的时间戳是毫秒(13位),后端传过来的为秒(10位)
  15033. if (timestamp.toString().length == 10) timestamp *= 1000;
  15034. var timer = new Date().getTime() - timestamp;
  15035. timer = parseInt(timer / 1000);
  15036. // 如果小于5分钟,则返回"刚刚",其他以此类推
  15037. var tips = '';
  15038. switch (true) {
  15039. case timer < 300:
  15040. tips = '刚刚';
  15041. break;
  15042. case timer >= 300 && timer < 3600:
  15043. tips = "".concat(parseInt(timer / 60), "\u5206\u949F\u524D");
  15044. break;
  15045. case timer >= 3600 && timer < 86400:
  15046. tips = "".concat(parseInt(timer / 3600), "\u5C0F\u65F6\u524D");
  15047. break;
  15048. case timer >= 86400 && timer < 2592000:
  15049. tips = "".concat(parseInt(timer / 86400), "\u5929\u524D");
  15050. break;
  15051. default:
  15052. // 如果format为false,则无论什么时间戳,都显示xx之前
  15053. if (format === false) {
  15054. if (timer >= 2592000 && timer < 365 * 86400) {
  15055. tips = "".concat(parseInt(timer / (86400 * 30)), "\u4E2A\u6708\u524D");
  15056. } else {
  15057. tips = "".concat(parseInt(timer / (86400 * 365)), "\u5E74\u524D");
  15058. }
  15059. } else {
  15060. tips = timeFormat(timestamp, format);
  15061. }
  15062. }
  15063. return tips;
  15064. }
  15065. /**
  15066. * @description 去除空格
  15067. * @param String str 需要去除空格的字符串
  15068. * @param String pos both(左右)|left|right|all 默认both
  15069. */
  15070. function trim(str) {
  15071. var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
  15072. str = String(str);
  15073. if (pos == 'both') {
  15074. return str.replace(/^\s+|\s+$/g, '');
  15075. }
  15076. if (pos == 'left') {
  15077. return str.replace(/^\s*/, '');
  15078. }
  15079. if (pos == 'right') {
  15080. return str.replace(/(\s*$)/g, '');
  15081. }
  15082. if (pos == 'all') {
  15083. return str.replace(/\s+/g, '');
  15084. }
  15085. return str;
  15086. }
  15087. /**
  15088. * @description 对象转url参数
  15089. * @param {object} data,对象
  15090. * @param {Boolean} isPrefix,是否自动加上"?"
  15091. * @param {string} arrayFormat 规则 indices|brackets|repeat|comma
  15092. */
  15093. function queryParams() {
  15094. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  15095. var isPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  15096. var arrayFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'brackets';
  15097. var prefix = isPrefix ? '?' : '';
  15098. var _result = [];
  15099. if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';
  15100. var _loop = function _loop(key) {
  15101. var value = data[key];
  15102. // 去掉为空的参数
  15103. if (['', undefined, null].indexOf(value) >= 0) {
  15104. return "continue";
  15105. }
  15106. // 如果值为数组,另行处理
  15107. if (value.constructor === Array) {
  15108. // e.g. {ids: [1, 2, 3]}
  15109. switch (arrayFormat) {
  15110. case 'indices':
  15111. // 结果: ids[0]=1&ids[1]=2&ids[2]=3
  15112. for (var i = 0; i < value.length; i++) {
  15113. _result.push("".concat(key, "[").concat(i, "]=").concat(value[i]));
  15114. }
  15115. break;
  15116. case 'brackets':
  15117. // 结果: ids[]=1&ids[]=2&ids[]=3
  15118. value.forEach(function (_value) {
  15119. _result.push("".concat(key, "[]=").concat(_value));
  15120. });
  15121. break;
  15122. case 'repeat':
  15123. // 结果: ids=1&ids=2&ids=3
  15124. value.forEach(function (_value) {
  15125. _result.push("".concat(key, "=").concat(_value));
  15126. });
  15127. break;
  15128. case 'comma':
  15129. // 结果: ids=1,2,3
  15130. var commaStr = '';
  15131. value.forEach(function (_value) {
  15132. commaStr += (commaStr ? ',' : '') + _value;
  15133. });
  15134. _result.push("".concat(key, "=").concat(commaStr));
  15135. break;
  15136. default:
  15137. value.forEach(function (_value) {
  15138. _result.push("".concat(key, "[]=").concat(_value));
  15139. });
  15140. }
  15141. } else {
  15142. _result.push("".concat(key, "=").concat(value));
  15143. }
  15144. };
  15145. for (var key in data) {
  15146. var _ret = _loop(key);
  15147. if (_ret === "continue") continue;
  15148. }
  15149. return _result.length ? prefix + _result.join('&') : '';
  15150. }
  15151. /**
  15152. * 显示消息提示框
  15153. * @param {String} title 提示的内容,长度与 icon 取值有关。
  15154. * @param {Number} duration 提示的延迟时间,单位毫秒,默认:2000
  15155. */
  15156. function toast(title) {
  15157. var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
  15158. uni.showToast({
  15159. title: String(title),
  15160. icon: 'none',
  15161. duration: duration
  15162. });
  15163. }
  15164. /**
  15165. * @description 根据主题type值,获取对应的图标
  15166. * @param {String} type 主题名称,primary|info|error|warning|success
  15167. * @param {boolean} fill 是否使用fill填充实体的图标
  15168. */
  15169. function type2icon() {
  15170. var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';
  15171. var fill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  15172. // 如果非预置值,默认为success
  15173. if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success';
  15174. var iconName = '';
  15175. // 目前(2019-12-12),info和primary使用同一个图标
  15176. switch (type) {
  15177. case 'primary':
  15178. iconName = 'info-circle';
  15179. break;
  15180. case 'info':
  15181. iconName = 'info-circle';
  15182. break;
  15183. case 'error':
  15184. iconName = 'close-circle';
  15185. break;
  15186. case 'warning':
  15187. iconName = 'error-circle';
  15188. break;
  15189. case 'success':
  15190. iconName = 'checkmark-circle';
  15191. break;
  15192. default:
  15193. iconName = 'checkmark-circle';
  15194. }
  15195. // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的
  15196. if (fill) iconName += '-fill';
  15197. return iconName;
  15198. }
  15199. /**
  15200. * @description 数字格式化
  15201. * @param {number|string} number 要格式化的数字
  15202. * @param {number} decimals 保留几位小数
  15203. * @param {string} decimalPoint 小数点符号
  15204. * @param {string} thousandsSeparator 千分位符号
  15205. * @returns {string} 格式化后的数字
  15206. */
  15207. function priceFormat(number) {
  15208. var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  15209. var decimalPoint = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.';
  15210. var thousandsSeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ',';
  15211. number = "".concat(number).replace(/[^0-9+-Ee.]/g, '');
  15212. var n = !isFinite(+number) ? 0 : +number;
  15213. var prec = !isFinite(+decimals) ? 0 : Math.abs(decimals);
  15214. var sep = typeof thousandsSeparator === 'undefined' ? ',' : thousandsSeparator;
  15215. var dec = typeof decimalPoint === 'undefined' ? '.' : decimalPoint;
  15216. var s = '';
  15217. s = (prec ? (0, _digit.round)(n, prec) + '' : "".concat(Math.round(n))).split('.');
  15218. var re = /(-?\d+)(\d{3})/;
  15219. while (re.test(s[0])) {
  15220. s[0] = s[0].replace(re, "$1".concat(sep, "$2"));
  15221. }
  15222. if ((s[1] || '').length < prec) {
  15223. s[1] = s[1] || '';
  15224. s[1] += new Array(prec - s[1].length + 1).join('0');
  15225. }
  15226. return s.join(dec);
  15227. }
  15228. /**
  15229. * @description 获取duration值
  15230. * 如果带有ms或者s直接返回,如果大于一定值,认为是ms单位,小于一定值,认为是s单位
  15231. * 比如以30位阈值,那么300大于30,可以理解为用户想要的是300ms,而不是想花300s去执行一个动画
  15232. * @param {String|number} value 比如: "1s"|"100ms"|1|100
  15233. * @param {boolean} unit 提示: 如果是false 默认返回number
  15234. * @return {string|number}
  15235. */
  15236. function getDuration(value) {
  15237. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  15238. var valueNum = parseInt(value);
  15239. if (unit) {
  15240. if (/s$/.test(value)) return value;
  15241. return value > 30 ? "".concat(value, "ms") : "".concat(value, "s");
  15242. }
  15243. if (/ms$/.test(value)) return valueNum;
  15244. if (/s$/.test(value)) return valueNum > 30 ? valueNum : valueNum * 1000;
  15245. return valueNum;
  15246. }
  15247. /**
  15248. * @description 日期的月或日补零操作
  15249. * @param {String} value 需要补零的值
  15250. */
  15251. function padZero(value) {
  15252. return "00".concat(value).slice(-2);
  15253. }
  15254. /**
  15255. * @description 在u-form的子组件内容发生变化,或者失去焦点时,尝试通知u-form执行校验方法
  15256. * @param {*} instance
  15257. * @param {*} event
  15258. */
  15259. function formValidate(instance, event) {
  15260. var formItem = uni.$u.$parent.call(instance, 'u-form-item');
  15261. var form = uni.$u.$parent.call(instance, 'u-form');
  15262. // 如果发生变化的input或者textarea等,其父组件中有u-form-item或者u-form等,就执行form的validate方法
  15263. // 同时将form-item的pros传递给form,让其进行精确对象验证
  15264. if (formItem && form) {
  15265. form.validateField(formItem.prop, function () {}, event);
  15266. }
  15267. }
  15268. /**
  15269. * @description 获取某个对象下的属性,用于通过类似'a.b.c'的形式去获取一个对象的的属性的形式
  15270. * @param {object} obj 对象
  15271. * @param {string} key 需要获取的属性字段
  15272. * @returns {*}
  15273. */
  15274. function getProperty(obj, key) {
  15275. if (!obj) {
  15276. return;
  15277. }
  15278. if (typeof key !== 'string' || key === '') {
  15279. return '';
  15280. }
  15281. if (key.indexOf('.') !== -1) {
  15282. var keys = key.split('.');
  15283. var firstObj = obj[keys[0]] || {};
  15284. for (var i = 1; i < keys.length; i++) {
  15285. if (firstObj) {
  15286. firstObj = firstObj[keys[i]];
  15287. }
  15288. }
  15289. return firstObj;
  15290. }
  15291. return obj[key];
  15292. }
  15293. /**
  15294. * @description 设置对象的属性值,如果'a.b.c'的形式进行设置
  15295. * @param {object} obj 对象
  15296. * @param {string} key 需要设置的属性
  15297. * @param {string} value 设置的值
  15298. */
  15299. function setProperty(obj, key, value) {
  15300. if (!obj) {
  15301. return;
  15302. }
  15303. // 递归赋值
  15304. var inFn = function inFn(_obj, keys, v) {
  15305. // 最后一个属性key
  15306. if (keys.length === 1) {
  15307. _obj[keys[0]] = v;
  15308. return;
  15309. }
  15310. // 0~length-1个key
  15311. while (keys.length > 1) {
  15312. var k = keys[0];
  15313. if (!_obj[k] || (0, _typeof2.default)(_obj[k]) !== 'object') {
  15314. _obj[k] = {};
  15315. }
  15316. var _key = keys.shift();
  15317. // 自调用判断是否存在属性,不存在则自动创建对象
  15318. inFn(_obj[k], keys, v);
  15319. }
  15320. };
  15321. if (typeof key !== 'string' || key === '') {} else if (key.indexOf('.') !== -1) {
  15322. // 支持多层级赋值操作
  15323. var keys = key.split('.');
  15324. inFn(obj, keys, value);
  15325. } else {
  15326. obj[key] = value;
  15327. }
  15328. }
  15329. /**
  15330. * @description 获取当前页面路径
  15331. */
  15332. function page() {
  15333. var _pages$route, _pages;
  15334. var pages = getCurrentPages();
  15335. // 某些特殊情况下(比如页面进行redirectTo时的一些时机),pages可能为空数组
  15336. return "/".concat((_pages$route = (_pages = pages[pages.length - 1]) === null || _pages === void 0 ? void 0 : _pages.route) !== null && _pages$route !== void 0 ? _pages$route : '');
  15337. }
  15338. /**
  15339. * @description 获取当前路由栈实例数组
  15340. */
  15341. function pages() {
  15342. var pages = getCurrentPages();
  15343. return pages;
  15344. }
  15345. /**
  15346. * @description 修改uView内置属性值
  15347. * @param {object} props 修改内置props属性
  15348. * @param {object} config 修改内置config属性
  15349. * @param {object} color 修改内置color属性
  15350. * @param {object} zIndex 修改内置zIndex属性
  15351. */
  15352. function setConfig(_ref3) {
  15353. var _ref3$props = _ref3.props,
  15354. props = _ref3$props === void 0 ? {} : _ref3$props,
  15355. _ref3$config = _ref3.config,
  15356. config = _ref3$config === void 0 ? {} : _ref3$config,
  15357. _ref3$color = _ref3.color,
  15358. color = _ref3$color === void 0 ? {} : _ref3$color,
  15359. _ref3$zIndex = _ref3.zIndex,
  15360. zIndex = _ref3$zIndex === void 0 ? {} : _ref3$zIndex;
  15361. var deepMerge = uni.$u.deepMerge;
  15362. uni.$u.config = deepMerge(uni.$u.config, config);
  15363. uni.$u.props = deepMerge(uni.$u.props, props);
  15364. uni.$u.color = deepMerge(uni.$u.color, color);
  15365. uni.$u.zIndex = deepMerge(uni.$u.zIndex, zIndex);
  15366. }
  15367. var _default = {
  15368. range: range,
  15369. getPx: getPx,
  15370. sleep: sleep,
  15371. os: os,
  15372. sys: sys,
  15373. random: random,
  15374. guid: guid,
  15375. $parent: $parent,
  15376. addStyle: addStyle,
  15377. addUnit: addUnit,
  15378. deepClone: deepClone,
  15379. deepMerge: deepMerge,
  15380. error: error,
  15381. randomArray: randomArray,
  15382. timeFormat: timeFormat,
  15383. timeFrom: timeFrom,
  15384. trim: trim,
  15385. queryParams: queryParams,
  15386. toast: toast,
  15387. type2icon: type2icon,
  15388. priceFormat: priceFormat,
  15389. getDuration: getDuration,
  15390. padZero: padZero,
  15391. formValidate: formValidate,
  15392. getProperty: getProperty,
  15393. setProperty: setProperty,
  15394. page: page,
  15395. pages: pages,
  15396. setConfig: setConfig
  15397. };
  15398. exports.default = _default;
  15399. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  15400. /***/ }),
  15401. /* 66 */
  15402. /*!*******************************************************************************************!*\
  15403. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/function/digit.js ***!
  15404. \*******************************************************************************************/
  15405. /*! no static exports found */
  15406. /***/ (function(module, exports, __webpack_require__) {
  15407. "use strict";
  15408. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15409. Object.defineProperty(exports, "__esModule", {
  15410. value: true
  15411. });
  15412. exports.default = void 0;
  15413. exports.divide = divide;
  15414. exports.enableBoundaryChecking = enableBoundaryChecking;
  15415. exports.minus = minus;
  15416. exports.plus = plus;
  15417. exports.round = round;
  15418. exports.times = times;
  15419. var _toArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toArray */ 67));
  15420. var _boundaryCheckingState = true; // 是否进行越界检查的全局开关
  15421. /**
  15422. * 把错误的数据转正
  15423. * @private
  15424. * @example strip(0.09999999999999998)=0.1
  15425. */
  15426. function strip(num) {
  15427. var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 15;
  15428. return +parseFloat(Number(num).toPrecision(precision));
  15429. }
  15430. /**
  15431. * Return digits length of a number
  15432. * @private
  15433. * @param {*number} num Input number
  15434. */
  15435. function digitLength(num) {
  15436. // Get digit length of e
  15437. var eSplit = num.toString().split(/[eE]/);
  15438. var len = (eSplit[0].split('.')[1] || '').length - +(eSplit[1] || 0);
  15439. return len > 0 ? len : 0;
  15440. }
  15441. /**
  15442. * 把小数转成整数,如果是小数则放大成整数
  15443. * @private
  15444. * @param {*number} num 输入数
  15445. */
  15446. function float2Fixed(num) {
  15447. if (num.toString().indexOf('e') === -1) {
  15448. return Number(num.toString().replace('.', ''));
  15449. }
  15450. var dLen = digitLength(num);
  15451. return dLen > 0 ? strip(Number(num) * Math.pow(10, dLen)) : Number(num);
  15452. }
  15453. /**
  15454. * 检测数字是否越界,如果越界给出提示
  15455. * @private
  15456. * @param {*number} num 输入数
  15457. */
  15458. function checkBoundary(num) {
  15459. if (_boundaryCheckingState) {
  15460. if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) {
  15461. console.warn("".concat(num, " \u8D85\u51FA\u4E86\u7CBE\u5EA6\u9650\u5236\uFF0C\u7ED3\u679C\u53EF\u80FD\u4E0D\u6B63\u786E"));
  15462. }
  15463. }
  15464. }
  15465. /**
  15466. * 把递归操作扁平迭代化
  15467. * @param {number[]} arr 要操作的数字数组
  15468. * @param {function} operation 迭代操作
  15469. * @private
  15470. */
  15471. function iteratorOperation(arr, operation) {
  15472. var _arr = (0, _toArray2.default)(arr),
  15473. num1 = _arr[0],
  15474. num2 = _arr[1],
  15475. others = _arr.slice(2);
  15476. var res = operation(num1, num2);
  15477. others.forEach(function (num) {
  15478. res = operation(res, num);
  15479. });
  15480. return res;
  15481. }
  15482. /**
  15483. * 高精度乘法
  15484. * @export
  15485. */
  15486. function times() {
  15487. for (var _len = arguments.length, nums = new Array(_len), _key = 0; _key < _len; _key++) {
  15488. nums[_key] = arguments[_key];
  15489. }
  15490. if (nums.length > 2) {
  15491. return iteratorOperation(nums, times);
  15492. }
  15493. var num1 = nums[0],
  15494. num2 = nums[1];
  15495. var num1Changed = float2Fixed(num1);
  15496. var num2Changed = float2Fixed(num2);
  15497. var baseNum = digitLength(num1) + digitLength(num2);
  15498. var leftValue = num1Changed * num2Changed;
  15499. checkBoundary(leftValue);
  15500. return leftValue / Math.pow(10, baseNum);
  15501. }
  15502. /**
  15503. * 高精度加法
  15504. * @export
  15505. */
  15506. function plus() {
  15507. for (var _len2 = arguments.length, nums = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  15508. nums[_key2] = arguments[_key2];
  15509. }
  15510. if (nums.length > 2) {
  15511. return iteratorOperation(nums, plus);
  15512. }
  15513. var num1 = nums[0],
  15514. num2 = nums[1];
  15515. // 取最大的小数位
  15516. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  15517. // 把小数都转为整数然后再计算
  15518. return (times(num1, baseNum) + times(num2, baseNum)) / baseNum;
  15519. }
  15520. /**
  15521. * 高精度减法
  15522. * @export
  15523. */
  15524. function minus() {
  15525. for (var _len3 = arguments.length, nums = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  15526. nums[_key3] = arguments[_key3];
  15527. }
  15528. if (nums.length > 2) {
  15529. return iteratorOperation(nums, minus);
  15530. }
  15531. var num1 = nums[0],
  15532. num2 = nums[1];
  15533. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  15534. return (times(num1, baseNum) - times(num2, baseNum)) / baseNum;
  15535. }
  15536. /**
  15537. * 高精度除法
  15538. * @export
  15539. */
  15540. function divide() {
  15541. for (var _len4 = arguments.length, nums = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  15542. nums[_key4] = arguments[_key4];
  15543. }
  15544. if (nums.length > 2) {
  15545. return iteratorOperation(nums, divide);
  15546. }
  15547. var num1 = nums[0],
  15548. num2 = nums[1];
  15549. var num1Changed = float2Fixed(num1);
  15550. var num2Changed = float2Fixed(num2);
  15551. checkBoundary(num1Changed);
  15552. checkBoundary(num2Changed);
  15553. // 重要,这里必须用strip进行修正
  15554. return times(num1Changed / num2Changed, strip(Math.pow(10, digitLength(num2) - digitLength(num1))));
  15555. }
  15556. /**
  15557. * 四舍五入
  15558. * @export
  15559. */
  15560. function round(num, ratio) {
  15561. var base = Math.pow(10, ratio);
  15562. var result = divide(Math.round(Math.abs(times(num, base))), base);
  15563. if (num < 0 && result !== 0) {
  15564. result = times(result, -1);
  15565. }
  15566. // 位数不足则补0
  15567. return result;
  15568. }
  15569. /**
  15570. * 是否进行边界检查,默认开启
  15571. * @param flag 标记开关,true 为开启,false 为关闭,默认为 true
  15572. * @export
  15573. */
  15574. function enableBoundaryChecking() {
  15575. var flag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  15576. _boundaryCheckingState = flag;
  15577. }
  15578. var _default = {
  15579. times: times,
  15580. plus: plus,
  15581. minus: minus,
  15582. divide: divide,
  15583. round: round,
  15584. enableBoundaryChecking: enableBoundaryChecking
  15585. };
  15586. exports.default = _default;
  15587. /***/ }),
  15588. /* 67 */
  15589. /*!********************************************************!*\
  15590. !*** ./node_modules/@babel/runtime/helpers/toArray.js ***!
  15591. \********************************************************/
  15592. /*! no static exports found */
  15593. /***/ (function(module, exports, __webpack_require__) {
  15594. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  15595. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  15596. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  15597. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  15598. function _toArray(arr) {
  15599. return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
  15600. }
  15601. module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  15602. /***/ }),
  15603. /* 68 */
  15604. /*!******************************************************************************************!*\
  15605. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/config.js ***!
  15606. \******************************************************************************************/
  15607. /*! no static exports found */
  15608. /***/ (function(module, exports, __webpack_require__) {
  15609. "use strict";
  15610. Object.defineProperty(exports, "__esModule", {
  15611. value: true
  15612. });
  15613. exports.default = void 0;
  15614. // 此版本发布于2022-00-24
  15615. var version = '2.0.34';
  15616. // 开发环境才提示,生产环境不会提示
  15617. if (true) {
  15618. console.log("\n %c uView V".concat(version, " %c https://uviewui.com/ \n\n"), 'color: #ffffff; background: #3c9cff; padding:5px 0; border-radius: 5px;');
  15619. }
  15620. var _default = {
  15621. v: version,
  15622. version: version,
  15623. // 主题名称
  15624. type: ['primary', 'success', 'info', 'error', 'warning'],
  15625. // 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持
  15626. color: {
  15627. 'u-primary': '#2979ff',
  15628. 'u-warning': '#ff9900',
  15629. 'u-success': '#19be6b',
  15630. 'u-error': '#fa3534',
  15631. 'u-info': '#909399',
  15632. 'u-main-color': '#303133',
  15633. 'u-content-color': '#606266',
  15634. 'u-tips-color': '#909399',
  15635. 'u-light-color': '#c0c4cc'
  15636. },
  15637. // 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx
  15638. unit: 'px'
  15639. };
  15640. exports.default = _default;
  15641. /***/ }),
  15642. /* 69 */
  15643. /*!*****************************************************************************************!*\
  15644. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props.js ***!
  15645. \*****************************************************************************************/
  15646. /*! no static exports found */
  15647. /***/ (function(module, exports, __webpack_require__) {
  15648. "use strict";
  15649. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15650. Object.defineProperty(exports, "__esModule", {
  15651. value: true
  15652. });
  15653. exports.default = void 0;
  15654. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  15655. var _config = _interopRequireDefault(__webpack_require__(/*! ./config */ 68));
  15656. var _actionSheet = _interopRequireDefault(__webpack_require__(/*! ./props/actionSheet.js */ 70));
  15657. var _album = _interopRequireDefault(__webpack_require__(/*! ./props/album.js */ 71));
  15658. var _alert = _interopRequireDefault(__webpack_require__(/*! ./props/alert.js */ 72));
  15659. var _avatar = _interopRequireDefault(__webpack_require__(/*! ./props/avatar */ 73));
  15660. var _avatarGroup = _interopRequireDefault(__webpack_require__(/*! ./props/avatarGroup */ 74));
  15661. var _backtop = _interopRequireDefault(__webpack_require__(/*! ./props/backtop */ 75));
  15662. var _badge = _interopRequireDefault(__webpack_require__(/*! ./props/badge */ 76));
  15663. var _button = _interopRequireDefault(__webpack_require__(/*! ./props/button */ 77));
  15664. var _calendar = _interopRequireDefault(__webpack_require__(/*! ./props/calendar */ 78));
  15665. var _carKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/carKeyboard */ 79));
  15666. var _cell = _interopRequireDefault(__webpack_require__(/*! ./props/cell */ 80));
  15667. var _cellGroup = _interopRequireDefault(__webpack_require__(/*! ./props/cellGroup */ 81));
  15668. var _checkbox = _interopRequireDefault(__webpack_require__(/*! ./props/checkbox */ 82));
  15669. var _checkboxGroup = _interopRequireDefault(__webpack_require__(/*! ./props/checkboxGroup */ 83));
  15670. var _circleProgress = _interopRequireDefault(__webpack_require__(/*! ./props/circleProgress */ 84));
  15671. var _code = _interopRequireDefault(__webpack_require__(/*! ./props/code */ 85));
  15672. var _codeInput = _interopRequireDefault(__webpack_require__(/*! ./props/codeInput */ 86));
  15673. var _col = _interopRequireDefault(__webpack_require__(/*! ./props/col */ 87));
  15674. var _collapse = _interopRequireDefault(__webpack_require__(/*! ./props/collapse */ 88));
  15675. var _collapseItem = _interopRequireDefault(__webpack_require__(/*! ./props/collapseItem */ 89));
  15676. var _columnNotice = _interopRequireDefault(__webpack_require__(/*! ./props/columnNotice */ 90));
  15677. var _countDown = _interopRequireDefault(__webpack_require__(/*! ./props/countDown */ 91));
  15678. var _countTo = _interopRequireDefault(__webpack_require__(/*! ./props/countTo */ 92));
  15679. var _datetimePicker = _interopRequireDefault(__webpack_require__(/*! ./props/datetimePicker */ 93));
  15680. var _divider = _interopRequireDefault(__webpack_require__(/*! ./props/divider */ 94));
  15681. var _empty = _interopRequireDefault(__webpack_require__(/*! ./props/empty */ 95));
  15682. var _form = _interopRequireDefault(__webpack_require__(/*! ./props/form */ 96));
  15683. var _formItem = _interopRequireDefault(__webpack_require__(/*! ./props/formItem */ 97));
  15684. var _gap = _interopRequireDefault(__webpack_require__(/*! ./props/gap */ 98));
  15685. var _grid = _interopRequireDefault(__webpack_require__(/*! ./props/grid */ 99));
  15686. var _gridItem = _interopRequireDefault(__webpack_require__(/*! ./props/gridItem */ 100));
  15687. var _icon = _interopRequireDefault(__webpack_require__(/*! ./props/icon */ 101));
  15688. var _image = _interopRequireDefault(__webpack_require__(/*! ./props/image */ 102));
  15689. var _indexAnchor = _interopRequireDefault(__webpack_require__(/*! ./props/indexAnchor */ 103));
  15690. var _indexList = _interopRequireDefault(__webpack_require__(/*! ./props/indexList */ 104));
  15691. var _input = _interopRequireDefault(__webpack_require__(/*! ./props/input */ 105));
  15692. var _keyboard = _interopRequireDefault(__webpack_require__(/*! ./props/keyboard */ 106));
  15693. var _line = _interopRequireDefault(__webpack_require__(/*! ./props/line */ 107));
  15694. var _lineProgress = _interopRequireDefault(__webpack_require__(/*! ./props/lineProgress */ 108));
  15695. var _link = _interopRequireDefault(__webpack_require__(/*! ./props/link */ 109));
  15696. var _list = _interopRequireDefault(__webpack_require__(/*! ./props/list */ 110));
  15697. var _listItem = _interopRequireDefault(__webpack_require__(/*! ./props/listItem */ 111));
  15698. var _loadingIcon = _interopRequireDefault(__webpack_require__(/*! ./props/loadingIcon */ 112));
  15699. var _loadingPage = _interopRequireDefault(__webpack_require__(/*! ./props/loadingPage */ 113));
  15700. var _loadmore = _interopRequireDefault(__webpack_require__(/*! ./props/loadmore */ 114));
  15701. var _modal = _interopRequireDefault(__webpack_require__(/*! ./props/modal */ 115));
  15702. var _navbar = _interopRequireDefault(__webpack_require__(/*! ./props/navbar */ 116));
  15703. var _noNetwork = _interopRequireDefault(__webpack_require__(/*! ./props/noNetwork */ 118));
  15704. var _noticeBar = _interopRequireDefault(__webpack_require__(/*! ./props/noticeBar */ 119));
  15705. var _notify = _interopRequireDefault(__webpack_require__(/*! ./props/notify */ 120));
  15706. var _numberBox = _interopRequireDefault(__webpack_require__(/*! ./props/numberBox */ 121));
  15707. var _numberKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/numberKeyboard */ 122));
  15708. var _overlay = _interopRequireDefault(__webpack_require__(/*! ./props/overlay */ 123));
  15709. var _parse = _interopRequireDefault(__webpack_require__(/*! ./props/parse */ 124));
  15710. var _picker = _interopRequireDefault(__webpack_require__(/*! ./props/picker */ 125));
  15711. var _popup = _interopRequireDefault(__webpack_require__(/*! ./props/popup */ 126));
  15712. var _radio = _interopRequireDefault(__webpack_require__(/*! ./props/radio */ 127));
  15713. var _radioGroup = _interopRequireDefault(__webpack_require__(/*! ./props/radioGroup */ 128));
  15714. var _rate = _interopRequireDefault(__webpack_require__(/*! ./props/rate */ 129));
  15715. var _readMore = _interopRequireDefault(__webpack_require__(/*! ./props/readMore */ 130));
  15716. var _row = _interopRequireDefault(__webpack_require__(/*! ./props/row */ 131));
  15717. var _rowNotice = _interopRequireDefault(__webpack_require__(/*! ./props/rowNotice */ 132));
  15718. var _scrollList = _interopRequireDefault(__webpack_require__(/*! ./props/scrollList */ 133));
  15719. var _search = _interopRequireDefault(__webpack_require__(/*! ./props/search */ 134));
  15720. var _section = _interopRequireDefault(__webpack_require__(/*! ./props/section */ 135));
  15721. var _skeleton = _interopRequireDefault(__webpack_require__(/*! ./props/skeleton */ 136));
  15722. var _slider = _interopRequireDefault(__webpack_require__(/*! ./props/slider */ 137));
  15723. var _statusBar = _interopRequireDefault(__webpack_require__(/*! ./props/statusBar */ 138));
  15724. var _steps = _interopRequireDefault(__webpack_require__(/*! ./props/steps */ 139));
  15725. var _stepsItem = _interopRequireDefault(__webpack_require__(/*! ./props/stepsItem */ 140));
  15726. var _sticky = _interopRequireDefault(__webpack_require__(/*! ./props/sticky */ 141));
  15727. var _subsection = _interopRequireDefault(__webpack_require__(/*! ./props/subsection */ 142));
  15728. var _swipeAction = _interopRequireDefault(__webpack_require__(/*! ./props/swipeAction */ 143));
  15729. var _swipeActionItem = _interopRequireDefault(__webpack_require__(/*! ./props/swipeActionItem */ 144));
  15730. var _swiper = _interopRequireDefault(__webpack_require__(/*! ./props/swiper */ 145));
  15731. var _swipterIndicator = _interopRequireDefault(__webpack_require__(/*! ./props/swipterIndicator */ 146));
  15732. var _switch2 = _interopRequireDefault(__webpack_require__(/*! ./props/switch */ 147));
  15733. var _tabbar = _interopRequireDefault(__webpack_require__(/*! ./props/tabbar */ 148));
  15734. var _tabbarItem = _interopRequireDefault(__webpack_require__(/*! ./props/tabbarItem */ 149));
  15735. var _tabs = _interopRequireDefault(__webpack_require__(/*! ./props/tabs */ 150));
  15736. var _tag = _interopRequireDefault(__webpack_require__(/*! ./props/tag */ 151));
  15737. var _text = _interopRequireDefault(__webpack_require__(/*! ./props/text */ 152));
  15738. var _textarea = _interopRequireDefault(__webpack_require__(/*! ./props/textarea */ 153));
  15739. var _toast = _interopRequireDefault(__webpack_require__(/*! ./props/toast */ 154));
  15740. var _toolbar = _interopRequireDefault(__webpack_require__(/*! ./props/toolbar */ 155));
  15741. var _tooltip = _interopRequireDefault(__webpack_require__(/*! ./props/tooltip */ 156));
  15742. var _transition = _interopRequireDefault(__webpack_require__(/*! ./props/transition */ 157));
  15743. var _upload = _interopRequireDefault(__webpack_require__(/*! ./props/upload */ 158));
  15744. 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; }
  15745. 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; }
  15746. var color = _config.default.color;
  15747. 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);
  15748. exports.default = _default;
  15749. /***/ }),
  15750. /* 70 */
  15751. /*!*****************************************************************************************************!*\
  15752. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/actionSheet.js ***!
  15753. \*****************************************************************************************************/
  15754. /*! no static exports found */
  15755. /***/ (function(module, exports, __webpack_require__) {
  15756. "use strict";
  15757. Object.defineProperty(exports, "__esModule", {
  15758. value: true
  15759. });
  15760. exports.default = void 0;
  15761. /*
  15762. * @Author : LQ
  15763. * @Description :
  15764. * @version : 1.0
  15765. * @Date : 2021-08-20 16:44:21
  15766. * @LastAuthor : LQ
  15767. * @lastTime : 2021-08-20 16:44:35
  15768. * @FilePath : /u-view2.0/uview-ui/libs/config/props/actionSheet.js
  15769. */
  15770. var _default = {
  15771. // action-sheet组件
  15772. actionSheet: {
  15773. show: false,
  15774. title: '',
  15775. description: '',
  15776. actions: function actions() {
  15777. return [];
  15778. },
  15779. index: '',
  15780. cancelText: '',
  15781. closeOnClickAction: true,
  15782. safeAreaInsetBottom: true,
  15783. openType: '',
  15784. closeOnClickOverlay: true,
  15785. round: 0
  15786. }
  15787. };
  15788. exports.default = _default;
  15789. /***/ }),
  15790. /* 71 */
  15791. /*!***********************************************************************************************!*\
  15792. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/album.js ***!
  15793. \***********************************************************************************************/
  15794. /*! no static exports found */
  15795. /***/ (function(module, exports, __webpack_require__) {
  15796. "use strict";
  15797. Object.defineProperty(exports, "__esModule", {
  15798. value: true
  15799. });
  15800. exports.default = void 0;
  15801. /*
  15802. * @Author : LQ
  15803. * @Description :
  15804. * @version : 1.0
  15805. * @Date : 2021-08-20 16:44:21
  15806. * @LastAuthor : LQ
  15807. * @lastTime : 2021-08-20 16:47:24
  15808. * @FilePath : /u-view2.0/uview-ui/libs/config/props/album.js
  15809. */
  15810. var _default = {
  15811. // album 组件
  15812. album: {
  15813. urls: function urls() {
  15814. return [];
  15815. },
  15816. keyName: '',
  15817. singleSize: 180,
  15818. multipleSize: 70,
  15819. space: 6,
  15820. singleMode: 'scaleToFill',
  15821. multipleMode: 'aspectFill',
  15822. maxCount: 9,
  15823. previewFullImage: true,
  15824. rowCount: 3,
  15825. showMore: true
  15826. }
  15827. };
  15828. exports.default = _default;
  15829. /***/ }),
  15830. /* 72 */
  15831. /*!***********************************************************************************************!*\
  15832. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/alert.js ***!
  15833. \***********************************************************************************************/
  15834. /*! no static exports found */
  15835. /***/ (function(module, exports, __webpack_require__) {
  15836. "use strict";
  15837. Object.defineProperty(exports, "__esModule", {
  15838. value: true
  15839. });
  15840. exports.default = void 0;
  15841. /*
  15842. * @Author : LQ
  15843. * @Description :
  15844. * @version : 1.0
  15845. * @Date : 2021-08-20 16:44:21
  15846. * @LastAuthor : LQ
  15847. * @lastTime : 2021-08-20 16:48:53
  15848. * @FilePath : /u-view2.0/uview-ui/libs/config/props/alert.js
  15849. */
  15850. var _default = {
  15851. // alert警告组件
  15852. alert: {
  15853. title: '',
  15854. type: 'warning',
  15855. description: '',
  15856. closable: false,
  15857. showIcon: false,
  15858. effect: 'light',
  15859. center: false,
  15860. fontSize: 14
  15861. }
  15862. };
  15863. exports.default = _default;
  15864. /***/ }),
  15865. /* 73 */
  15866. /*!************************************************************************************************!*\
  15867. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/avatar.js ***!
  15868. \************************************************************************************************/
  15869. /*! no static exports found */
  15870. /***/ (function(module, exports, __webpack_require__) {
  15871. "use strict";
  15872. Object.defineProperty(exports, "__esModule", {
  15873. value: true
  15874. });
  15875. exports.default = void 0;
  15876. /*
  15877. * @Author : LQ
  15878. * @Description :
  15879. * @version : 1.0
  15880. * @Date : 2021-08-20 16:44:21
  15881. * @LastAuthor : LQ
  15882. * @lastTime : 2021-08-20 16:49:22
  15883. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatar.js
  15884. */
  15885. var _default = {
  15886. // avatar 组件
  15887. avatar: {
  15888. src: '',
  15889. shape: 'circle',
  15890. size: 40,
  15891. mode: 'scaleToFill',
  15892. text: '',
  15893. bgColor: '#c0c4cc',
  15894. color: '#ffffff',
  15895. fontSize: 18,
  15896. icon: '',
  15897. mpAvatar: false,
  15898. randomBgColor: false,
  15899. defaultUrl: '',
  15900. colorIndex: '',
  15901. name: ''
  15902. }
  15903. };
  15904. exports.default = _default;
  15905. /***/ }),
  15906. /* 74 */
  15907. /*!*****************************************************************************************************!*\
  15908. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/avatarGroup.js ***!
  15909. \*****************************************************************************************************/
  15910. /*! no static exports found */
  15911. /***/ (function(module, exports, __webpack_require__) {
  15912. "use strict";
  15913. Object.defineProperty(exports, "__esModule", {
  15914. value: true
  15915. });
  15916. exports.default = void 0;
  15917. /*
  15918. * @Author : LQ
  15919. * @Description :
  15920. * @version : 1.0
  15921. * @Date : 2021-08-20 16:44:21
  15922. * @LastAuthor : LQ
  15923. * @lastTime : 2021-08-20 16:49:55
  15924. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatarGroup.js
  15925. */
  15926. var _default = {
  15927. // avatarGroup 组件
  15928. avatarGroup: {
  15929. urls: function urls() {
  15930. return [];
  15931. },
  15932. maxCount: 5,
  15933. shape: 'circle',
  15934. mode: 'scaleToFill',
  15935. showMore: true,
  15936. size: 40,
  15937. keyName: '',
  15938. gap: 0.5,
  15939. extraValue: 0
  15940. }
  15941. };
  15942. exports.default = _default;
  15943. /***/ }),
  15944. /* 75 */
  15945. /*!*************************************************************************************************!*\
  15946. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/backtop.js ***!
  15947. \*************************************************************************************************/
  15948. /*! no static exports found */
  15949. /***/ (function(module, exports, __webpack_require__) {
  15950. "use strict";
  15951. Object.defineProperty(exports, "__esModule", {
  15952. value: true
  15953. });
  15954. exports.default = void 0;
  15955. /*
  15956. * @Author : LQ
  15957. * @Description :
  15958. * @version : 1.0
  15959. * @Date : 2021-08-20 16:44:21
  15960. * @LastAuthor : LQ
  15961. * @lastTime : 2021-08-20 16:50:18
  15962. * @FilePath : /u-view2.0/uview-ui/libs/config/props/backtop.js
  15963. */
  15964. var _default = {
  15965. // backtop组件
  15966. backtop: {
  15967. mode: 'circle',
  15968. icon: 'arrow-upward',
  15969. text: '',
  15970. duration: 100,
  15971. scrollTop: 0,
  15972. top: 400,
  15973. bottom: 100,
  15974. right: 20,
  15975. zIndex: 9,
  15976. iconStyle: function iconStyle() {
  15977. return {
  15978. color: '#909399',
  15979. fontSize: '19px'
  15980. };
  15981. }
  15982. }
  15983. };
  15984. exports.default = _default;
  15985. /***/ }),
  15986. /* 76 */
  15987. /*!***********************************************************************************************!*\
  15988. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/badge.js ***!
  15989. \***********************************************************************************************/
  15990. /*! no static exports found */
  15991. /***/ (function(module, exports, __webpack_require__) {
  15992. "use strict";
  15993. Object.defineProperty(exports, "__esModule", {
  15994. value: true
  15995. });
  15996. exports.default = void 0;
  15997. /*
  15998. * @Author : LQ
  15999. * @Description :
  16000. * @version : 1.0
  16001. * @Date : 2021-08-20 16:44:21
  16002. * @LastAuthor : LQ
  16003. * @lastTime : 2021-08-23 19:51:50
  16004. * @FilePath : /u-view2.0/uview-ui/libs/config/props/badge.js
  16005. */
  16006. var _default = {
  16007. // 徽标数组件
  16008. badge: {
  16009. isDot: false,
  16010. value: '',
  16011. show: true,
  16012. max: 999,
  16013. type: 'error',
  16014. showZero: false,
  16015. bgColor: null,
  16016. color: null,
  16017. shape: 'circle',
  16018. numberType: 'overflow',
  16019. offset: function offset() {
  16020. return [];
  16021. },
  16022. inverted: false,
  16023. absolute: false
  16024. }
  16025. };
  16026. exports.default = _default;
  16027. /***/ }),
  16028. /* 77 */
  16029. /*!************************************************************************************************!*\
  16030. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/button.js ***!
  16031. \************************************************************************************************/
  16032. /*! no static exports found */
  16033. /***/ (function(module, exports, __webpack_require__) {
  16034. "use strict";
  16035. Object.defineProperty(exports, "__esModule", {
  16036. value: true
  16037. });
  16038. exports.default = void 0;
  16039. /*
  16040. * @Author : LQ
  16041. * @Description :
  16042. * @version : 1.0
  16043. * @Date : 2021-08-20 16:44:21
  16044. * @LastAuthor : LQ
  16045. * @lastTime : 2021-08-20 16:51:27
  16046. * @FilePath : /u-view2.0/uview-ui/libs/config/props/button.js
  16047. */
  16048. var _default = {
  16049. // button组件
  16050. button: {
  16051. hairline: false,
  16052. type: 'info',
  16053. size: 'normal',
  16054. shape: 'square',
  16055. plain: false,
  16056. disabled: false,
  16057. loading: false,
  16058. loadingText: '',
  16059. loadingMode: 'spinner',
  16060. loadingSize: 15,
  16061. openType: '',
  16062. formType: '',
  16063. appParameter: '',
  16064. hoverStopPropagation: true,
  16065. lang: 'en',
  16066. sessionFrom: '',
  16067. sendMessageTitle: '',
  16068. sendMessagePath: '',
  16069. sendMessageImg: '',
  16070. showMessageCard: false,
  16071. dataName: '',
  16072. throttleTime: 0,
  16073. hoverStartTime: 0,
  16074. hoverStayTime: 200,
  16075. text: '',
  16076. icon: '',
  16077. iconColor: '',
  16078. color: ''
  16079. }
  16080. };
  16081. exports.default = _default;
  16082. /***/ }),
  16083. /* 78 */
  16084. /*!**************************************************************************************************!*\
  16085. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/calendar.js ***!
  16086. \**************************************************************************************************/
  16087. /*! no static exports found */
  16088. /***/ (function(module, exports, __webpack_require__) {
  16089. "use strict";
  16090. Object.defineProperty(exports, "__esModule", {
  16091. value: true
  16092. });
  16093. exports.default = void 0;
  16094. /*
  16095. * @Author : LQ
  16096. * @Description :
  16097. * @version : 1.0
  16098. * @Date : 2021-08-20 16:44:21
  16099. * @LastAuthor : LQ
  16100. * @lastTime : 2021-08-20 16:52:43
  16101. * @FilePath : /u-view2.0/uview-ui/libs/config/props/calendar.js
  16102. */
  16103. var _default = {
  16104. // calendar 组件
  16105. calendar: {
  16106. title: '日期选择',
  16107. showTitle: true,
  16108. showSubtitle: true,
  16109. mode: 'single',
  16110. startText: '开始',
  16111. endText: '结束',
  16112. customList: function customList() {
  16113. return [];
  16114. },
  16115. color: '#3c9cff',
  16116. minDate: 0,
  16117. maxDate: 0,
  16118. defaultDate: null,
  16119. maxCount: Number.MAX_SAFE_INTEGER,
  16120. // Infinity
  16121. rowHeight: 56,
  16122. formatter: null,
  16123. showLunar: false,
  16124. showMark: true,
  16125. confirmText: '确定',
  16126. confirmDisabledText: '确定',
  16127. show: false,
  16128. closeOnClickOverlay: false,
  16129. readonly: false,
  16130. showConfirm: true,
  16131. maxRange: Number.MAX_SAFE_INTEGER,
  16132. // Infinity
  16133. rangePrompt: '',
  16134. showRangePrompt: true,
  16135. allowSameDay: false,
  16136. round: 0,
  16137. monthNum: 3
  16138. }
  16139. };
  16140. exports.default = _default;
  16141. /***/ }),
  16142. /* 79 */
  16143. /*!*****************************************************************************************************!*\
  16144. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/carKeyboard.js ***!
  16145. \*****************************************************************************************************/
  16146. /*! no static exports found */
  16147. /***/ (function(module, exports, __webpack_require__) {
  16148. "use strict";
  16149. Object.defineProperty(exports, "__esModule", {
  16150. value: true
  16151. });
  16152. exports.default = void 0;
  16153. /*
  16154. * @Author : LQ
  16155. * @Description :
  16156. * @version : 1.0
  16157. * @Date : 2021-08-20 16:44:21
  16158. * @LastAuthor : LQ
  16159. * @lastTime : 2021-08-20 16:53:20
  16160. * @FilePath : /u-view2.0/uview-ui/libs/config/props/carKeyboard.js
  16161. */
  16162. var _default = {
  16163. // 车牌号键盘
  16164. carKeyboard: {
  16165. random: false
  16166. }
  16167. };
  16168. exports.default = _default;
  16169. /***/ }),
  16170. /* 80 */
  16171. /*!**********************************************************************************************!*\
  16172. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/cell.js ***!
  16173. \**********************************************************************************************/
  16174. /*! no static exports found */
  16175. /***/ (function(module, exports, __webpack_require__) {
  16176. "use strict";
  16177. Object.defineProperty(exports, "__esModule", {
  16178. value: true
  16179. });
  16180. exports.default = void 0;
  16181. /*
  16182. * @Author : LQ
  16183. * @Description :
  16184. * @version : 1.0
  16185. * @Date : 2021-08-20 16:44:21
  16186. * @LastAuthor : LQ
  16187. * @lastTime : 2021-08-23 20:53:09
  16188. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cell.js
  16189. */
  16190. var _default = {
  16191. // cell组件的props
  16192. cell: {
  16193. customClass: '',
  16194. title: '',
  16195. label: '',
  16196. value: '',
  16197. icon: '',
  16198. disabled: false,
  16199. border: true,
  16200. center: false,
  16201. url: '',
  16202. linkType: 'navigateTo',
  16203. clickable: false,
  16204. isLink: false,
  16205. required: false,
  16206. arrowDirection: '',
  16207. iconStyle: {},
  16208. rightIconStyle: {},
  16209. rightIcon: 'arrow-right',
  16210. titleStyle: {},
  16211. size: '',
  16212. stop: true,
  16213. name: ''
  16214. }
  16215. };
  16216. exports.default = _default;
  16217. /***/ }),
  16218. /* 81 */
  16219. /*!***************************************************************************************************!*\
  16220. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/cellGroup.js ***!
  16221. \***************************************************************************************************/
  16222. /*! no static exports found */
  16223. /***/ (function(module, exports, __webpack_require__) {
  16224. "use strict";
  16225. Object.defineProperty(exports, "__esModule", {
  16226. value: true
  16227. });
  16228. exports.default = void 0;
  16229. /*
  16230. * @Author : LQ
  16231. * @Description :
  16232. * @version : 1.0
  16233. * @Date : 2021-08-20 16:44:21
  16234. * @LastAuthor : LQ
  16235. * @lastTime : 2021-08-20 16:54:16
  16236. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cellGroup.js
  16237. */
  16238. var _default = {
  16239. // cell-group组件的props
  16240. cellGroup: {
  16241. title: '',
  16242. border: true,
  16243. customStyle: {}
  16244. }
  16245. };
  16246. exports.default = _default;
  16247. /***/ }),
  16248. /* 82 */
  16249. /*!**************************************************************************************************!*\
  16250. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/checkbox.js ***!
  16251. \**************************************************************************************************/
  16252. /*! no static exports found */
  16253. /***/ (function(module, exports, __webpack_require__) {
  16254. "use strict";
  16255. Object.defineProperty(exports, "__esModule", {
  16256. value: true
  16257. });
  16258. exports.default = void 0;
  16259. /*
  16260. * @Author : LQ
  16261. * @Description :
  16262. * @version : 1.0
  16263. * @Date : 2021-08-20 16:44:21
  16264. * @LastAuthor : LQ
  16265. * @lastTime : 2021-08-23 21:06:59
  16266. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkbox.js
  16267. */
  16268. var _default = {
  16269. // checkbox组件
  16270. checkbox: {
  16271. name: '',
  16272. shape: '',
  16273. size: '',
  16274. checkbox: false,
  16275. disabled: '',
  16276. activeColor: '',
  16277. inactiveColor: '',
  16278. iconSize: '',
  16279. iconColor: '',
  16280. label: '',
  16281. labelSize: '',
  16282. labelColor: '',
  16283. labelDisabled: ''
  16284. }
  16285. };
  16286. exports.default = _default;
  16287. /***/ }),
  16288. /* 83 */
  16289. /*!*******************************************************************************************************!*\
  16290. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/checkboxGroup.js ***!
  16291. \*******************************************************************************************************/
  16292. /*! no static exports found */
  16293. /***/ (function(module, exports, __webpack_require__) {
  16294. "use strict";
  16295. Object.defineProperty(exports, "__esModule", {
  16296. value: true
  16297. });
  16298. exports.default = void 0;
  16299. /*
  16300. * @Author : LQ
  16301. * @Description :
  16302. * @version : 1.0
  16303. * @Date : 2021-08-20 16:44:21
  16304. * @LastAuthor : LQ
  16305. * @lastTime : 2021-08-20 16:54:47
  16306. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkboxGroup.js
  16307. */
  16308. var _default = {
  16309. // checkbox-group组件
  16310. checkboxGroup: {
  16311. name: '',
  16312. value: function value() {
  16313. return [];
  16314. },
  16315. shape: 'square',
  16316. disabled: false,
  16317. activeColor: '#2979ff',
  16318. inactiveColor: '#c8c9cc',
  16319. size: 18,
  16320. placement: 'row',
  16321. labelSize: 14,
  16322. labelColor: '#303133',
  16323. labelDisabled: false,
  16324. iconColor: '#ffffff',
  16325. iconSize: 12,
  16326. iconPlacement: 'left',
  16327. borderBottom: false
  16328. }
  16329. };
  16330. exports.default = _default;
  16331. /***/ }),
  16332. /* 84 */
  16333. /*!********************************************************************************************************!*\
  16334. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/circleProgress.js ***!
  16335. \********************************************************************************************************/
  16336. /*! no static exports found */
  16337. /***/ (function(module, exports, __webpack_require__) {
  16338. "use strict";
  16339. Object.defineProperty(exports, "__esModule", {
  16340. value: true
  16341. });
  16342. exports.default = void 0;
  16343. /*
  16344. * @Author : LQ
  16345. * @Description :
  16346. * @version : 1.0
  16347. * @Date : 2021-08-20 16:44:21
  16348. * @LastAuthor : LQ
  16349. * @lastTime : 2021-08-20 16:55:02
  16350. * @FilePath : /u-view2.0/uview-ui/libs/config/props/circleProgress.js
  16351. */
  16352. var _default = {
  16353. // circleProgress 组件
  16354. circleProgress: {
  16355. percentage: 30
  16356. }
  16357. };
  16358. exports.default = _default;
  16359. /***/ }),
  16360. /* 85 */
  16361. /*!**********************************************************************************************!*\
  16362. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/code.js ***!
  16363. \**********************************************************************************************/
  16364. /*! no static exports found */
  16365. /***/ (function(module, exports, __webpack_require__) {
  16366. "use strict";
  16367. Object.defineProperty(exports, "__esModule", {
  16368. value: true
  16369. });
  16370. exports.default = void 0;
  16371. /*
  16372. * @Author : LQ
  16373. * @Description :
  16374. * @version : 1.0
  16375. * @Date : 2021-08-20 16:44:21
  16376. * @LastAuthor : LQ
  16377. * @lastTime : 2021-08-20 16:55:27
  16378. * @FilePath : /u-view2.0/uview-ui/libs/config/props/code.js
  16379. */
  16380. var _default = {
  16381. // code 组件
  16382. code: {
  16383. seconds: 60,
  16384. startText: '获取验证码',
  16385. changeText: 'X秒重新获取',
  16386. endText: '重新获取',
  16387. keepRunning: false,
  16388. uniqueKey: ''
  16389. }
  16390. };
  16391. exports.default = _default;
  16392. /***/ }),
  16393. /* 86 */
  16394. /*!***************************************************************************************************!*\
  16395. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/codeInput.js ***!
  16396. \***************************************************************************************************/
  16397. /*! no static exports found */
  16398. /***/ (function(module, exports, __webpack_require__) {
  16399. "use strict";
  16400. Object.defineProperty(exports, "__esModule", {
  16401. value: true
  16402. });
  16403. exports.default = void 0;
  16404. /*
  16405. * @Author : LQ
  16406. * @Description :
  16407. * @version : 1.0
  16408. * @Date : 2021-08-20 16:44:21
  16409. * @LastAuthor : LQ
  16410. * @lastTime : 2021-08-20 16:55:58
  16411. * @FilePath : /u-view2.0/uview-ui/libs/config/props/codeInput.js
  16412. */
  16413. var _default = {
  16414. // codeInput 组件
  16415. codeInput: {
  16416. adjustPosition: true,
  16417. maxlength: 6,
  16418. dot: false,
  16419. mode: 'box',
  16420. hairline: false,
  16421. space: 10,
  16422. value: '',
  16423. focus: false,
  16424. bold: false,
  16425. color: '#606266',
  16426. fontSize: 18,
  16427. size: 35,
  16428. disabledKeyboard: false,
  16429. borderColor: '#c9cacc',
  16430. disabledDot: true
  16431. }
  16432. };
  16433. exports.default = _default;
  16434. /***/ }),
  16435. /* 87 */
  16436. /*!*********************************************************************************************!*\
  16437. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/col.js ***!
  16438. \*********************************************************************************************/
  16439. /*! no static exports found */
  16440. /***/ (function(module, exports, __webpack_require__) {
  16441. "use strict";
  16442. Object.defineProperty(exports, "__esModule", {
  16443. value: true
  16444. });
  16445. exports.default = void 0;
  16446. /*
  16447. * @Author : LQ
  16448. * @Description :
  16449. * @version : 1.0
  16450. * @Date : 2021-08-20 16:44:21
  16451. * @LastAuthor : LQ
  16452. * @lastTime : 2021-08-20 16:56:12
  16453. * @FilePath : /u-view2.0/uview-ui/libs/config/props/col.js
  16454. */
  16455. var _default = {
  16456. // col 组件
  16457. col: {
  16458. span: 12,
  16459. offset: 0,
  16460. justify: 'start',
  16461. align: 'stretch',
  16462. textAlign: 'left'
  16463. }
  16464. };
  16465. exports.default = _default;
  16466. /***/ }),
  16467. /* 88 */
  16468. /*!**************************************************************************************************!*\
  16469. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/collapse.js ***!
  16470. \**************************************************************************************************/
  16471. /*! no static exports found */
  16472. /***/ (function(module, exports, __webpack_require__) {
  16473. "use strict";
  16474. Object.defineProperty(exports, "__esModule", {
  16475. value: true
  16476. });
  16477. exports.default = void 0;
  16478. /*
  16479. * @Author : LQ
  16480. * @Description :
  16481. * @version : 1.0
  16482. * @Date : 2021-08-20 16:44:21
  16483. * @LastAuthor : LQ
  16484. * @lastTime : 2021-08-20 16:56:30
  16485. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapse.js
  16486. */
  16487. var _default = {
  16488. // collapse 组件
  16489. collapse: {
  16490. value: null,
  16491. accordion: false,
  16492. border: true
  16493. }
  16494. };
  16495. exports.default = _default;
  16496. /***/ }),
  16497. /* 89 */
  16498. /*!******************************************************************************************************!*\
  16499. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/collapseItem.js ***!
  16500. \******************************************************************************************************/
  16501. /*! no static exports found */
  16502. /***/ (function(module, exports, __webpack_require__) {
  16503. "use strict";
  16504. Object.defineProperty(exports, "__esModule", {
  16505. value: true
  16506. });
  16507. exports.default = void 0;
  16508. /*
  16509. * @Author : LQ
  16510. * @Description :
  16511. * @version : 1.0
  16512. * @Date : 2021-08-20 16:44:21
  16513. * @LastAuthor : LQ
  16514. * @lastTime : 2021-08-20 16:56:42
  16515. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapseItem.js
  16516. */
  16517. var _default = {
  16518. // collapseItem 组件
  16519. collapseItem: {
  16520. title: '',
  16521. value: '',
  16522. label: '',
  16523. disabled: false,
  16524. isLink: true,
  16525. clickable: true,
  16526. border: true,
  16527. align: 'left',
  16528. name: '',
  16529. icon: '',
  16530. duration: 300
  16531. }
  16532. };
  16533. exports.default = _default;
  16534. /***/ }),
  16535. /* 90 */
  16536. /*!******************************************************************************************************!*\
  16537. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/columnNotice.js ***!
  16538. \******************************************************************************************************/
  16539. /*! no static exports found */
  16540. /***/ (function(module, exports, __webpack_require__) {
  16541. "use strict";
  16542. Object.defineProperty(exports, "__esModule", {
  16543. value: true
  16544. });
  16545. exports.default = void 0;
  16546. /*
  16547. * @Author : LQ
  16548. * @Description :
  16549. * @version : 1.0
  16550. * @Date : 2021-08-20 16:44:21
  16551. * @LastAuthor : LQ
  16552. * @lastTime : 2021-08-20 16:57:16
  16553. * @FilePath : /u-view2.0/uview-ui/libs/config/props/columnNotice.js
  16554. */
  16555. var _default = {
  16556. // columnNotice 组件
  16557. columnNotice: {
  16558. text: '',
  16559. icon: 'volume',
  16560. mode: '',
  16561. color: '#f9ae3d',
  16562. bgColor: '#fdf6ec',
  16563. fontSize: 14,
  16564. speed: 80,
  16565. step: false,
  16566. duration: 1500,
  16567. disableTouch: true
  16568. }
  16569. };
  16570. exports.default = _default;
  16571. /***/ }),
  16572. /* 91 */
  16573. /*!***************************************************************************************************!*\
  16574. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/countDown.js ***!
  16575. \***************************************************************************************************/
  16576. /*! no static exports found */
  16577. /***/ (function(module, exports, __webpack_require__) {
  16578. "use strict";
  16579. Object.defineProperty(exports, "__esModule", {
  16580. value: true
  16581. });
  16582. exports.default = void 0;
  16583. /*
  16584. * @Author : LQ
  16585. * @Description :
  16586. * @version : 1.0
  16587. * @Date : 2021-08-20 16:44:21
  16588. * @LastAuthor : LQ
  16589. * @lastTime : 2021-08-20 17:11:29
  16590. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countDown.js
  16591. */
  16592. var _default = {
  16593. // u-count-down 计时器组件
  16594. countDown: {
  16595. time: 0,
  16596. format: 'HH:mm:ss',
  16597. autoStart: true,
  16598. millisecond: false
  16599. }
  16600. };
  16601. exports.default = _default;
  16602. /***/ }),
  16603. /* 92 */
  16604. /*!*************************************************************************************************!*\
  16605. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/countTo.js ***!
  16606. \*************************************************************************************************/
  16607. /*! no static exports found */
  16608. /***/ (function(module, exports, __webpack_require__) {
  16609. "use strict";
  16610. Object.defineProperty(exports, "__esModule", {
  16611. value: true
  16612. });
  16613. exports.default = void 0;
  16614. /*
  16615. * @Author : LQ
  16616. * @Description :
  16617. * @version : 1.0
  16618. * @Date : 2021-08-20 16:44:21
  16619. * @LastAuthor : LQ
  16620. * @lastTime : 2021-08-20 16:57:32
  16621. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countTo.js
  16622. */
  16623. var _default = {
  16624. // countTo 组件
  16625. countTo: {
  16626. startVal: 0,
  16627. endVal: 0,
  16628. duration: 2000,
  16629. autoplay: true,
  16630. decimals: 0,
  16631. useEasing: true,
  16632. decimal: '.',
  16633. color: '#606266',
  16634. fontSize: 22,
  16635. bold: false,
  16636. separator: ''
  16637. }
  16638. };
  16639. exports.default = _default;
  16640. /***/ }),
  16641. /* 93 */
  16642. /*!********************************************************************************************************!*\
  16643. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/datetimePicker.js ***!
  16644. \********************************************************************************************************/
  16645. /*! no static exports found */
  16646. /***/ (function(module, exports, __webpack_require__) {
  16647. "use strict";
  16648. Object.defineProperty(exports, "__esModule", {
  16649. value: true
  16650. });
  16651. exports.default = void 0;
  16652. /*
  16653. * @Author : LQ
  16654. * @Description :
  16655. * @version : 1.0
  16656. * @Date : 2021-08-20 16:44:21
  16657. * @LastAuthor : LQ
  16658. * @lastTime : 2021-08-20 16:57:48
  16659. * @FilePath : /u-view2.0/uview-ui/libs/config/props/datetimePicker.js
  16660. */
  16661. var _default = {
  16662. // datetimePicker 组件
  16663. datetimePicker: {
  16664. show: false,
  16665. showToolbar: true,
  16666. value: '',
  16667. title: '',
  16668. mode: 'datetime',
  16669. maxDate: new Date(new Date().getFullYear() + 10, 0, 1).getTime(),
  16670. minDate: new Date(new Date().getFullYear() - 10, 0, 1).getTime(),
  16671. minHour: 0,
  16672. maxHour: 23,
  16673. minMinute: 0,
  16674. maxMinute: 59,
  16675. filter: null,
  16676. formatter: null,
  16677. loading: false,
  16678. itemHeight: 44,
  16679. cancelText: '取消',
  16680. confirmText: '确认',
  16681. cancelColor: '#909193',
  16682. confirmColor: '#3c9cff',
  16683. visibleItemCount: 5,
  16684. closeOnClickOverlay: false,
  16685. defaultIndex: function defaultIndex() {
  16686. return [];
  16687. }
  16688. }
  16689. };
  16690. exports.default = _default;
  16691. /***/ }),
  16692. /* 94 */
  16693. /*!*************************************************************************************************!*\
  16694. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/divider.js ***!
  16695. \*************************************************************************************************/
  16696. /*! no static exports found */
  16697. /***/ (function(module, exports, __webpack_require__) {
  16698. "use strict";
  16699. Object.defineProperty(exports, "__esModule", {
  16700. value: true
  16701. });
  16702. exports.default = void 0;
  16703. /*
  16704. * @Author : LQ
  16705. * @Description :
  16706. * @version : 1.0
  16707. * @Date : 2021-08-20 16:44:21
  16708. * @LastAuthor : LQ
  16709. * @lastTime : 2021-08-20 16:58:03
  16710. * @FilePath : /u-view2.0/uview-ui/libs/config/props/divider.js
  16711. */
  16712. var _default = {
  16713. // divider组件
  16714. divider: {
  16715. dashed: false,
  16716. hairline: true,
  16717. dot: false,
  16718. textPosition: 'center',
  16719. text: '',
  16720. textSize: 14,
  16721. textColor: '#909399',
  16722. lineColor: '#dcdfe6'
  16723. }
  16724. };
  16725. exports.default = _default;
  16726. /***/ }),
  16727. /* 95 */
  16728. /*!***********************************************************************************************!*\
  16729. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/empty.js ***!
  16730. \***********************************************************************************************/
  16731. /*! no static exports found */
  16732. /***/ (function(module, exports, __webpack_require__) {
  16733. "use strict";
  16734. Object.defineProperty(exports, "__esModule", {
  16735. value: true
  16736. });
  16737. exports.default = void 0;
  16738. /*
  16739. * @Author : LQ
  16740. * @Description :
  16741. * @version : 1.0
  16742. * @Date : 2021-08-20 16:44:21
  16743. * @LastAuthor : LQ
  16744. * @lastTime : 2021-08-20 17:03:27
  16745. * @FilePath : /u-view2.0/uview-ui/libs/config/props/empty.js
  16746. */
  16747. var _default = {
  16748. // empty组件
  16749. empty: {
  16750. icon: '',
  16751. text: '',
  16752. textColor: '#c0c4cc',
  16753. textSize: 14,
  16754. iconColor: '#c0c4cc',
  16755. iconSize: 90,
  16756. mode: 'data',
  16757. width: 160,
  16758. height: 160,
  16759. show: true,
  16760. marginTop: 0
  16761. }
  16762. };
  16763. exports.default = _default;
  16764. /***/ }),
  16765. /* 96 */
  16766. /*!**********************************************************************************************!*\
  16767. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/form.js ***!
  16768. \**********************************************************************************************/
  16769. /*! no static exports found */
  16770. /***/ (function(module, exports, __webpack_require__) {
  16771. "use strict";
  16772. Object.defineProperty(exports, "__esModule", {
  16773. value: true
  16774. });
  16775. exports.default = void 0;
  16776. /*
  16777. * @Author : LQ
  16778. * @Description :
  16779. * @version : 1.0
  16780. * @Date : 2021-08-20 16:44:21
  16781. * @LastAuthor : LQ
  16782. * @lastTime : 2021-08-20 17:03:49
  16783. * @FilePath : /u-view2.0/uview-ui/libs/config/props/form.js
  16784. */
  16785. var _default = {
  16786. // form 组件
  16787. form: {
  16788. model: function model() {
  16789. return {};
  16790. },
  16791. rules: function rules() {
  16792. return {};
  16793. },
  16794. errorType: 'message',
  16795. borderBottom: true,
  16796. labelPosition: 'left',
  16797. labelWidth: 45,
  16798. labelAlign: 'left',
  16799. labelStyle: function labelStyle() {
  16800. return {};
  16801. }
  16802. }
  16803. };
  16804. exports.default = _default;
  16805. /***/ }),
  16806. /* 97 */
  16807. /*!**************************************************************************************************!*\
  16808. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/formItem.js ***!
  16809. \**************************************************************************************************/
  16810. /*! no static exports found */
  16811. /***/ (function(module, exports, __webpack_require__) {
  16812. "use strict";
  16813. Object.defineProperty(exports, "__esModule", {
  16814. value: true
  16815. });
  16816. exports.default = void 0;
  16817. /*
  16818. * @Author : LQ
  16819. * @Description :
  16820. * @version : 1.0
  16821. * @Date : 2021-08-20 16:44:21
  16822. * @LastAuthor : LQ
  16823. * @lastTime : 2021-08-20 17:04:32
  16824. * @FilePath : /u-view2.0/uview-ui/libs/config/props/formItem.js
  16825. */
  16826. var _default = {
  16827. // formItem 组件
  16828. formItem: {
  16829. label: '',
  16830. prop: '',
  16831. borderBottom: '',
  16832. labelPosition: '',
  16833. labelWidth: '',
  16834. rightIcon: '',
  16835. leftIcon: '',
  16836. required: false,
  16837. leftIconStyle: ''
  16838. }
  16839. };
  16840. exports.default = _default;
  16841. /***/ }),
  16842. /* 98 */
  16843. /*!*********************************************************************************************!*\
  16844. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/gap.js ***!
  16845. \*********************************************************************************************/
  16846. /*! no static exports found */
  16847. /***/ (function(module, exports, __webpack_require__) {
  16848. "use strict";
  16849. Object.defineProperty(exports, "__esModule", {
  16850. value: true
  16851. });
  16852. exports.default = void 0;
  16853. /*
  16854. * @Author : LQ
  16855. * @Description :
  16856. * @version : 1.0
  16857. * @Date : 2021-08-20 16:44:21
  16858. * @LastAuthor : LQ
  16859. * @lastTime : 2021-08-20 17:05:25
  16860. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gap.js
  16861. */
  16862. var _default = {
  16863. // gap组件
  16864. gap: {
  16865. bgColor: 'transparent',
  16866. height: 20,
  16867. marginTop: 0,
  16868. marginBottom: 0,
  16869. customStyle: {}
  16870. }
  16871. };
  16872. exports.default = _default;
  16873. /***/ }),
  16874. /* 99 */
  16875. /*!**********************************************************************************************!*\
  16876. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/grid.js ***!
  16877. \**********************************************************************************************/
  16878. /*! no static exports found */
  16879. /***/ (function(module, exports, __webpack_require__) {
  16880. "use strict";
  16881. Object.defineProperty(exports, "__esModule", {
  16882. value: true
  16883. });
  16884. exports.default = void 0;
  16885. /*
  16886. * @Author : LQ
  16887. * @Description :
  16888. * @version : 1.0
  16889. * @Date : 2021-08-20 16:44:21
  16890. * @LastAuthor : LQ
  16891. * @lastTime : 2021-08-20 17:05:57
  16892. * @FilePath : /u-view2.0/uview-ui/libs/config/props/grid.js
  16893. */
  16894. var _default = {
  16895. // grid组件
  16896. grid: {
  16897. col: 3,
  16898. border: false,
  16899. align: 'left'
  16900. }
  16901. };
  16902. exports.default = _default;
  16903. /***/ }),
  16904. /* 100 */
  16905. /*!**************************************************************************************************!*\
  16906. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/gridItem.js ***!
  16907. \**************************************************************************************************/
  16908. /*! no static exports found */
  16909. /***/ (function(module, exports, __webpack_require__) {
  16910. "use strict";
  16911. Object.defineProperty(exports, "__esModule", {
  16912. value: true
  16913. });
  16914. exports.default = void 0;
  16915. /*
  16916. * @Author : LQ
  16917. * @Description :
  16918. * @version : 1.0
  16919. * @Date : 2021-08-20 16:44:21
  16920. * @LastAuthor : LQ
  16921. * @lastTime : 2021-08-20 17:06:13
  16922. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gridItem.js
  16923. */
  16924. var _default = {
  16925. // grid-item组件
  16926. gridItem: {
  16927. name: null,
  16928. bgColor: 'transparent'
  16929. }
  16930. };
  16931. exports.default = _default;
  16932. /***/ }),
  16933. /* 101 */
  16934. /*!**********************************************************************************************!*\
  16935. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/icon.js ***!
  16936. \**********************************************************************************************/
  16937. /*! no static exports found */
  16938. /***/ (function(module, exports, __webpack_require__) {
  16939. "use strict";
  16940. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  16941. Object.defineProperty(exports, "__esModule", {
  16942. value: true
  16943. });
  16944. exports.default = void 0;
  16945. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 68));
  16946. /*
  16947. * @Author : LQ
  16948. * @Description :
  16949. * @version : 1.0
  16950. * @Date : 2021-08-20 16:44:21
  16951. * @LastAuthor : LQ
  16952. * @lastTime : 2021-08-20 18:00:14
  16953. * @FilePath : /u-view2.0/uview-ui/libs/config/props/icon.js
  16954. */
  16955. var color = _config.default.color;
  16956. var _default = {
  16957. // icon组件
  16958. icon: {
  16959. name: '',
  16960. color: color['u-content-color'],
  16961. size: '16px',
  16962. bold: false,
  16963. index: '',
  16964. hoverClass: '',
  16965. customPrefix: 'uicon',
  16966. label: '',
  16967. labelPos: 'right',
  16968. labelSize: '15px',
  16969. labelColor: color['u-content-color'],
  16970. space: '3px',
  16971. imgMode: '',
  16972. width: '',
  16973. height: '',
  16974. top: 0,
  16975. stop: false
  16976. }
  16977. };
  16978. exports.default = _default;
  16979. /***/ }),
  16980. /* 102 */
  16981. /*!***********************************************************************************************!*\
  16982. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/image.js ***!
  16983. \***********************************************************************************************/
  16984. /*! no static exports found */
  16985. /***/ (function(module, exports, __webpack_require__) {
  16986. "use strict";
  16987. Object.defineProperty(exports, "__esModule", {
  16988. value: true
  16989. });
  16990. exports.default = void 0;
  16991. /*
  16992. * @Author : LQ
  16993. * @Description :
  16994. * @version : 1.0
  16995. * @Date : 2021-08-20 16:44:21
  16996. * @LastAuthor : LQ
  16997. * @lastTime : 2021-08-20 17:01:51
  16998. * @FilePath : /u-view2.0/uview-ui/libs/config/props/image.js
  16999. */
  17000. var _default = {
  17001. // image组件
  17002. image: {
  17003. src: '',
  17004. mode: 'aspectFill',
  17005. width: '300',
  17006. height: '225',
  17007. shape: 'square',
  17008. radius: 0,
  17009. lazyLoad: true,
  17010. showMenuByLongpress: true,
  17011. loadingIcon: 'photo',
  17012. errorIcon: 'error-circle',
  17013. showLoading: true,
  17014. showError: true,
  17015. fade: true,
  17016. webp: false,
  17017. duration: 500,
  17018. bgColor: '#f3f4f6'
  17019. }
  17020. };
  17021. exports.default = _default;
  17022. /***/ }),
  17023. /* 103 */
  17024. /*!*****************************************************************************************************!*\
  17025. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/indexAnchor.js ***!
  17026. \*****************************************************************************************************/
  17027. /*! no static exports found */
  17028. /***/ (function(module, exports, __webpack_require__) {
  17029. "use strict";
  17030. Object.defineProperty(exports, "__esModule", {
  17031. value: true
  17032. });
  17033. exports.default = void 0;
  17034. /*
  17035. * @Author : LQ
  17036. * @Description :
  17037. * @version : 1.0
  17038. * @Date : 2021-08-20 16:44:21
  17039. * @LastAuthor : LQ
  17040. * @lastTime : 2021-08-20 17:13:15
  17041. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexAnchor.js
  17042. */
  17043. var _default = {
  17044. // indexAnchor 组件
  17045. indexAnchor: {
  17046. text: '',
  17047. color: '#606266',
  17048. size: 14,
  17049. bgColor: '#dedede',
  17050. height: 32
  17051. }
  17052. };
  17053. exports.default = _default;
  17054. /***/ }),
  17055. /* 104 */
  17056. /*!***************************************************************************************************!*\
  17057. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/indexList.js ***!
  17058. \***************************************************************************************************/
  17059. /*! no static exports found */
  17060. /***/ (function(module, exports, __webpack_require__) {
  17061. "use strict";
  17062. Object.defineProperty(exports, "__esModule", {
  17063. value: true
  17064. });
  17065. exports.default = void 0;
  17066. /*
  17067. * @Author : LQ
  17068. * @Description :
  17069. * @version : 1.0
  17070. * @Date : 2021-08-20 16:44:21
  17071. * @LastAuthor : LQ
  17072. * @lastTime : 2021-08-20 17:13:35
  17073. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexList.js
  17074. */
  17075. var _default = {
  17076. // indexList 组件
  17077. indexList: {
  17078. inactiveColor: '#606266',
  17079. activeColor: '#5677fc',
  17080. indexList: function indexList() {
  17081. return [];
  17082. },
  17083. sticky: true,
  17084. customNavHeight: 0
  17085. }
  17086. };
  17087. exports.default = _default;
  17088. /***/ }),
  17089. /* 105 */
  17090. /*!***********************************************************************************************!*\
  17091. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/input.js ***!
  17092. \***********************************************************************************************/
  17093. /*! no static exports found */
  17094. /***/ (function(module, exports, __webpack_require__) {
  17095. "use strict";
  17096. Object.defineProperty(exports, "__esModule", {
  17097. value: true
  17098. });
  17099. exports.default = void 0;
  17100. /*
  17101. * @Author : LQ
  17102. * @Description :
  17103. * @version : 1.0
  17104. * @Date : 2021-08-20 16:44:21
  17105. * @LastAuthor : LQ
  17106. * @lastTime : 2021-08-20 17:13:55
  17107. * @FilePath : /u-view2.0/uview-ui/libs/config/props/input.js
  17108. */
  17109. var _default = {
  17110. // index 组件
  17111. input: {
  17112. value: '',
  17113. type: 'text',
  17114. fixed: false,
  17115. disabled: false,
  17116. disabledColor: '#f5f7fa',
  17117. clearable: false,
  17118. password: false,
  17119. maxlength: -1,
  17120. placeholder: null,
  17121. placeholderClass: 'input-placeholder',
  17122. placeholderStyle: 'color: #c0c4cc',
  17123. showWordLimit: false,
  17124. confirmType: 'done',
  17125. confirmHold: false,
  17126. holdKeyboard: false,
  17127. focus: false,
  17128. autoBlur: false,
  17129. disableDefaultPadding: false,
  17130. cursor: -1,
  17131. cursorSpacing: 30,
  17132. selectionStart: -1,
  17133. selectionEnd: -1,
  17134. adjustPosition: true,
  17135. inputAlign: 'left',
  17136. fontSize: '15px',
  17137. color: '#303133',
  17138. prefixIcon: '',
  17139. prefixIconStyle: '',
  17140. suffixIcon: '',
  17141. suffixIconStyle: '',
  17142. border: 'surround',
  17143. readonly: false,
  17144. shape: 'square',
  17145. formatter: null
  17146. }
  17147. };
  17148. exports.default = _default;
  17149. /***/ }),
  17150. /* 106 */
  17151. /*!**************************************************************************************************!*\
  17152. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/keyboard.js ***!
  17153. \**************************************************************************************************/
  17154. /*! no static exports found */
  17155. /***/ (function(module, exports, __webpack_require__) {
  17156. "use strict";
  17157. Object.defineProperty(exports, "__esModule", {
  17158. value: true
  17159. });
  17160. exports.default = void 0;
  17161. /*
  17162. * @Author : LQ
  17163. * @Description :
  17164. * @version : 1.0
  17165. * @Date : 2021-08-20 16:44:21
  17166. * @LastAuthor : LQ
  17167. * @lastTime : 2021-08-20 17:07:49
  17168. * @FilePath : /u-view2.0/uview-ui/libs/config/props/keyboard.js
  17169. */
  17170. var _default = {
  17171. // 键盘组件
  17172. keyboard: {
  17173. mode: 'number',
  17174. dotDisabled: false,
  17175. tooltip: true,
  17176. showTips: true,
  17177. tips: '',
  17178. showCancel: true,
  17179. showConfirm: true,
  17180. random: false,
  17181. safeAreaInsetBottom: true,
  17182. closeOnClickOverlay: true,
  17183. show: false,
  17184. overlay: true,
  17185. zIndex: 10075,
  17186. cancelText: '取消',
  17187. confirmText: '确定',
  17188. autoChange: false
  17189. }
  17190. };
  17191. exports.default = _default;
  17192. /***/ }),
  17193. /* 107 */
  17194. /*!**********************************************************************************************!*\
  17195. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/line.js ***!
  17196. \**********************************************************************************************/
  17197. /*! no static exports found */
  17198. /***/ (function(module, exports, __webpack_require__) {
  17199. "use strict";
  17200. Object.defineProperty(exports, "__esModule", {
  17201. value: true
  17202. });
  17203. exports.default = void 0;
  17204. /*
  17205. * @Author : LQ
  17206. * @Description :
  17207. * @version : 1.0
  17208. * @Date : 2021-08-20 16:44:21
  17209. * @LastAuthor : LQ
  17210. * @lastTime : 2021-08-20 17:04:49
  17211. * @FilePath : /u-view2.0/uview-ui/libs/config/props/line.js
  17212. */
  17213. var _default = {
  17214. // line组件
  17215. line: {
  17216. color: '#d6d7d9',
  17217. length: '100%',
  17218. direction: 'row',
  17219. hairline: true,
  17220. margin: 0,
  17221. dashed: false
  17222. }
  17223. };
  17224. exports.default = _default;
  17225. /***/ }),
  17226. /* 108 */
  17227. /*!******************************************************************************************************!*\
  17228. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/lineProgress.js ***!
  17229. \******************************************************************************************************/
  17230. /*! no static exports found */
  17231. /***/ (function(module, exports, __webpack_require__) {
  17232. "use strict";
  17233. Object.defineProperty(exports, "__esModule", {
  17234. value: true
  17235. });
  17236. exports.default = void 0;
  17237. /*
  17238. * @Author : LQ
  17239. * @Description :
  17240. * @version : 1.0
  17241. * @Date : 2021-08-20 16:44:21
  17242. * @LastAuthor : LQ
  17243. * @lastTime : 2021-08-20 17:14:11
  17244. * @FilePath : /u-view2.0/uview-ui/libs/config/props/lineProgress.js
  17245. */
  17246. var _default = {
  17247. // lineProgress 组件
  17248. lineProgress: {
  17249. activeColor: '#19be6b',
  17250. inactiveColor: '#ececec',
  17251. percentage: 0,
  17252. showText: true,
  17253. height: 12
  17254. }
  17255. };
  17256. exports.default = _default;
  17257. /***/ }),
  17258. /* 109 */
  17259. /*!**********************************************************************************************!*\
  17260. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/link.js ***!
  17261. \**********************************************************************************************/
  17262. /*! no static exports found */
  17263. /***/ (function(module, exports, __webpack_require__) {
  17264. "use strict";
  17265. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  17266. Object.defineProperty(exports, "__esModule", {
  17267. value: true
  17268. });
  17269. exports.default = void 0;
  17270. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 68));
  17271. /*
  17272. * @Author : LQ
  17273. * @Description :
  17274. * @version : 1.0
  17275. * @Date : 2021-08-20 16:44:21
  17276. * @LastAuthor : LQ
  17277. * @lastTime : 2021-08-20 17:45:36
  17278. * @FilePath : /u-view2.0/uview-ui/libs/config/props/link.js
  17279. */
  17280. var color = _config.default.color;
  17281. var _default = {
  17282. // link超链接组件props参数
  17283. link: {
  17284. color: color['u-primary'],
  17285. fontSize: 15,
  17286. underLine: false,
  17287. href: '',
  17288. mpTips: '链接已复制,请在浏览器打开',
  17289. lineColor: '',
  17290. text: ''
  17291. }
  17292. };
  17293. exports.default = _default;
  17294. /***/ }),
  17295. /* 110 */
  17296. /*!**********************************************************************************************!*\
  17297. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/list.js ***!
  17298. \**********************************************************************************************/
  17299. /*! no static exports found */
  17300. /***/ (function(module, exports, __webpack_require__) {
  17301. "use strict";
  17302. Object.defineProperty(exports, "__esModule", {
  17303. value: true
  17304. });
  17305. exports.default = void 0;
  17306. /*
  17307. * @Author : LQ
  17308. * @Description :
  17309. * @version : 1.0
  17310. * @Date : 2021-08-20 16:44:21
  17311. * @LastAuthor : LQ
  17312. * @lastTime : 2021-08-20 17:14:53
  17313. * @FilePath : /u-view2.0/uview-ui/libs/config/props/list.js
  17314. */
  17315. var _default = {
  17316. // list 组件
  17317. list: {
  17318. showScrollbar: false,
  17319. lowerThreshold: 50,
  17320. upperThreshold: 0,
  17321. scrollTop: 0,
  17322. offsetAccuracy: 10,
  17323. enableFlex: false,
  17324. pagingEnabled: false,
  17325. scrollable: true,
  17326. scrollIntoView: '',
  17327. scrollWithAnimation: false,
  17328. enableBackToTop: false,
  17329. height: 0,
  17330. width: 0,
  17331. preLoadScreen: 1
  17332. }
  17333. };
  17334. exports.default = _default;
  17335. /***/ }),
  17336. /* 111 */
  17337. /*!**************************************************************************************************!*\
  17338. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/listItem.js ***!
  17339. \**************************************************************************************************/
  17340. /*! no static exports found */
  17341. /***/ (function(module, exports, __webpack_require__) {
  17342. "use strict";
  17343. Object.defineProperty(exports, "__esModule", {
  17344. value: true
  17345. });
  17346. exports.default = void 0;
  17347. /*
  17348. * @Author : LQ
  17349. * @Description :
  17350. * @version : 1.0
  17351. * @Date : 2021-08-20 16:44:21
  17352. * @LastAuthor : LQ
  17353. * @lastTime : 2021-08-20 17:15:40
  17354. * @FilePath : /u-view2.0/uview-ui/libs/config/props/listItem.js
  17355. */
  17356. var _default = {
  17357. // listItem 组件
  17358. listItem: {
  17359. anchor: ''
  17360. }
  17361. };
  17362. exports.default = _default;
  17363. /***/ }),
  17364. /* 112 */
  17365. /*!*****************************************************************************************************!*\
  17366. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/loadingIcon.js ***!
  17367. \*****************************************************************************************************/
  17368. /*! no static exports found */
  17369. /***/ (function(module, exports, __webpack_require__) {
  17370. "use strict";
  17371. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  17372. Object.defineProperty(exports, "__esModule", {
  17373. value: true
  17374. });
  17375. exports.default = void 0;
  17376. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 68));
  17377. /*
  17378. * @Author : LQ
  17379. * @Description :
  17380. * @version : 1.0
  17381. * @Date : 2021-08-20 16:44:21
  17382. * @LastAuthor : LQ
  17383. * @lastTime : 2021-08-20 17:45:47
  17384. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingIcon.js
  17385. */
  17386. var color = _config.default.color;
  17387. var _default = {
  17388. // loading-icon加载中图标组件
  17389. loadingIcon: {
  17390. show: true,
  17391. color: color['u-tips-color'],
  17392. textColor: color['u-tips-color'],
  17393. vertical: false,
  17394. mode: 'spinner',
  17395. size: 24,
  17396. textSize: 15,
  17397. text: '',
  17398. timingFunction: 'ease-in-out',
  17399. duration: 1200,
  17400. inactiveColor: ''
  17401. }
  17402. };
  17403. exports.default = _default;
  17404. /***/ }),
  17405. /* 113 */
  17406. /*!*****************************************************************************************************!*\
  17407. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/loadingPage.js ***!
  17408. \*****************************************************************************************************/
  17409. /*! no static exports found */
  17410. /***/ (function(module, exports, __webpack_require__) {
  17411. "use strict";
  17412. Object.defineProperty(exports, "__esModule", {
  17413. value: true
  17414. });
  17415. exports.default = void 0;
  17416. /*
  17417. * @Author : LQ
  17418. * @Description :
  17419. * @version : 1.0
  17420. * @Date : 2021-08-20 16:44:21
  17421. * @LastAuthor : LQ
  17422. * @lastTime : 2021-08-20 17:00:23
  17423. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingPage.js
  17424. */
  17425. var _default = {
  17426. // loading-page组件
  17427. loadingPage: {
  17428. loadingText: '正在加载',
  17429. image: '',
  17430. loadingMode: 'circle',
  17431. loading: false,
  17432. bgColor: '#ffffff',
  17433. color: '#C8C8C8',
  17434. fontSize: 19,
  17435. iconSize: 28,
  17436. loadingColor: '#C8C8C8'
  17437. }
  17438. };
  17439. exports.default = _default;
  17440. /***/ }),
  17441. /* 114 */
  17442. /*!**************************************************************************************************!*\
  17443. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/loadmore.js ***!
  17444. \**************************************************************************************************/
  17445. /*! no static exports found */
  17446. /***/ (function(module, exports, __webpack_require__) {
  17447. "use strict";
  17448. Object.defineProperty(exports, "__esModule", {
  17449. value: true
  17450. });
  17451. exports.default = void 0;
  17452. /*
  17453. * @Author : LQ
  17454. * @Description :
  17455. * @version : 1.0
  17456. * @Date : 2021-08-20 16:44:21
  17457. * @LastAuthor : LQ
  17458. * @lastTime : 2021-08-20 17:15:26
  17459. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadmore.js
  17460. */
  17461. var _default = {
  17462. // loadmore 组件
  17463. loadmore: {
  17464. status: 'loadmore',
  17465. bgColor: 'transparent',
  17466. icon: true,
  17467. fontSize: 14,
  17468. iconSize: 17,
  17469. color: '#606266',
  17470. loadingIcon: 'spinner',
  17471. loadmoreText: '加载更多',
  17472. loadingText: '正在加载...',
  17473. nomoreText: '没有更多了',
  17474. isDot: false,
  17475. iconColor: '#b7b7b7',
  17476. marginTop: 10,
  17477. marginBottom: 10,
  17478. height: 'auto',
  17479. line: false,
  17480. lineColor: '#E6E8EB',
  17481. dashed: false
  17482. }
  17483. };
  17484. exports.default = _default;
  17485. /***/ }),
  17486. /* 115 */
  17487. /*!***********************************************************************************************!*\
  17488. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/modal.js ***!
  17489. \***********************************************************************************************/
  17490. /*! no static exports found */
  17491. /***/ (function(module, exports, __webpack_require__) {
  17492. "use strict";
  17493. Object.defineProperty(exports, "__esModule", {
  17494. value: true
  17495. });
  17496. exports.default = void 0;
  17497. /*
  17498. * @Author : LQ
  17499. * @Description :
  17500. * @version : 1.0
  17501. * @Date : 2021-08-20 16:44:21
  17502. * @LastAuthor : LQ
  17503. * @lastTime : 2021-08-20 17:15:59
  17504. * @FilePath : /u-view2.0/uview-ui/libs/config/props/modal.js
  17505. */
  17506. var _default = {
  17507. // modal 组件
  17508. modal: {
  17509. show: false,
  17510. title: '',
  17511. content: '',
  17512. confirmText: '确认',
  17513. cancelText: '取消',
  17514. showConfirmButton: true,
  17515. showCancelButton: false,
  17516. confirmColor: '#2979ff',
  17517. cancelColor: '#606266',
  17518. buttonReverse: false,
  17519. zoom: true,
  17520. asyncClose: false,
  17521. closeOnClickOverlay: false,
  17522. negativeTop: 0,
  17523. width: '650rpx',
  17524. confirmButtonShape: ''
  17525. }
  17526. };
  17527. exports.default = _default;
  17528. /***/ }),
  17529. /* 116 */
  17530. /*!************************************************************************************************!*\
  17531. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/navbar.js ***!
  17532. \************************************************************************************************/
  17533. /*! no static exports found */
  17534. /***/ (function(module, exports, __webpack_require__) {
  17535. "use strict";
  17536. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  17537. Object.defineProperty(exports, "__esModule", {
  17538. value: true
  17539. });
  17540. exports.default = void 0;
  17541. var _color = _interopRequireDefault(__webpack_require__(/*! ../color */ 117));
  17542. /*
  17543. * @Author : LQ
  17544. * @Description :
  17545. * @version : 1.0
  17546. * @Date : 2021-08-20 16:44:21
  17547. * @LastAuthor : LQ
  17548. * @lastTime : 2021-08-20 17:16:18
  17549. * @FilePath : /u-view2.0/uview-ui/libs/config/props/navbar.js
  17550. */
  17551. var _default = {
  17552. // navbar 组件
  17553. navbar: {
  17554. safeAreaInsetTop: true,
  17555. placeholder: false,
  17556. fixed: true,
  17557. border: false,
  17558. leftIcon: 'arrow-left',
  17559. leftText: '',
  17560. rightText: '',
  17561. rightIcon: '',
  17562. title: '',
  17563. bgColor: '#ffffff',
  17564. titleWidth: '400rpx',
  17565. height: '44px',
  17566. leftIconSize: 20,
  17567. leftIconColor: _color.default.mainColor,
  17568. autoBack: false,
  17569. titleStyle: ''
  17570. }
  17571. };
  17572. exports.default = _default;
  17573. /***/ }),
  17574. /* 117 */
  17575. /*!*****************************************************************************************!*\
  17576. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/color.js ***!
  17577. \*****************************************************************************************/
  17578. /*! no static exports found */
  17579. /***/ (function(module, exports, __webpack_require__) {
  17580. "use strict";
  17581. Object.defineProperty(exports, "__esModule", {
  17582. value: true
  17583. });
  17584. exports.default = void 0;
  17585. // 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供
  17586. // 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)
  17587. var color = {
  17588. primary: '#3c9cff',
  17589. info: '#909399',
  17590. default: '#909399',
  17591. warning: '#f9ae3d',
  17592. error: '#f56c6c',
  17593. success: '#5ac725',
  17594. mainColor: '#303133',
  17595. contentColor: '#606266',
  17596. tipsColor: '#909399',
  17597. lightColor: '#c0c4cc',
  17598. borderColor: '#e4e7ed'
  17599. };
  17600. var _default = color;
  17601. exports.default = _default;
  17602. /***/ }),
  17603. /* 118 */
  17604. /*!***************************************************************************************************!*\
  17605. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/noNetwork.js ***!
  17606. \***************************************************************************************************/
  17607. /*! no static exports found */
  17608. /***/ (function(module, exports, __webpack_require__) {
  17609. "use strict";
  17610. Object.defineProperty(exports, "__esModule", {
  17611. value: true
  17612. });
  17613. exports.default = void 0;
  17614. /*
  17615. * @Author : LQ
  17616. * @Description :
  17617. * @version : 1.0
  17618. * @Date : 2021-08-20 16:44:21
  17619. * @LastAuthor : LQ
  17620. * @lastTime : 2021-08-20 17:16:39
  17621. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noNetwork.js
  17622. */
  17623. var _default = {
  17624. // noNetwork
  17625. noNetwork: {
  17626. tips: '哎呀,网络信号丢失',
  17627. zIndex: '',
  17628. 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'
  17629. }
  17630. };
  17631. exports.default = _default;
  17632. /***/ }),
  17633. /* 119 */
  17634. /*!***************************************************************************************************!*\
  17635. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/noticeBar.js ***!
  17636. \***************************************************************************************************/
  17637. /*! no static exports found */
  17638. /***/ (function(module, exports, __webpack_require__) {
  17639. "use strict";
  17640. Object.defineProperty(exports, "__esModule", {
  17641. value: true
  17642. });
  17643. exports.default = void 0;
  17644. /*
  17645. * @Author : LQ
  17646. * @Description :
  17647. * @version : 1.0
  17648. * @Date : 2021-08-20 16:44:21
  17649. * @LastAuthor : LQ
  17650. * @lastTime : 2021-08-20 17:17:13
  17651. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noticeBar.js
  17652. */
  17653. var _default = {
  17654. // noticeBar
  17655. noticeBar: {
  17656. text: function text() {
  17657. return [];
  17658. },
  17659. direction: 'row',
  17660. step: false,
  17661. icon: 'volume',
  17662. mode: '',
  17663. color: '#f9ae3d',
  17664. bgColor: '#fdf6ec',
  17665. speed: 80,
  17666. fontSize: 14,
  17667. duration: 2000,
  17668. disableTouch: true,
  17669. url: '',
  17670. linkType: 'navigateTo'
  17671. }
  17672. };
  17673. exports.default = _default;
  17674. /***/ }),
  17675. /* 120 */
  17676. /*!************************************************************************************************!*\
  17677. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/notify.js ***!
  17678. \************************************************************************************************/
  17679. /*! no static exports found */
  17680. /***/ (function(module, exports, __webpack_require__) {
  17681. "use strict";
  17682. Object.defineProperty(exports, "__esModule", {
  17683. value: true
  17684. });
  17685. exports.default = void 0;
  17686. /*
  17687. * @Author : LQ
  17688. * @Description :
  17689. * @version : 1.0
  17690. * @Date : 2021-08-20 16:44:21
  17691. * @LastAuthor : LQ
  17692. * @lastTime : 2021-08-20 17:10:21
  17693. * @FilePath : /u-view2.0/uview-ui/libs/config/props/notify.js
  17694. */
  17695. var _default = {
  17696. // notify组件
  17697. notify: {
  17698. top: 0,
  17699. type: 'primary',
  17700. color: '#ffffff',
  17701. bgColor: '',
  17702. message: '',
  17703. duration: 3000,
  17704. fontSize: 15,
  17705. safeAreaInsetTop: false
  17706. }
  17707. };
  17708. exports.default = _default;
  17709. /***/ }),
  17710. /* 121 */
  17711. /*!***************************************************************************************************!*\
  17712. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/numberBox.js ***!
  17713. \***************************************************************************************************/
  17714. /*! no static exports found */
  17715. /***/ (function(module, exports, __webpack_require__) {
  17716. "use strict";
  17717. Object.defineProperty(exports, "__esModule", {
  17718. value: true
  17719. });
  17720. exports.default = void 0;
  17721. /*
  17722. * @Author : LQ
  17723. * @Description :
  17724. * @version : 1.0
  17725. * @Date : 2021-08-20 16:44:21
  17726. * @LastAuthor : LQ
  17727. * @lastTime : 2021-08-20 17:11:46
  17728. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberBox.js
  17729. */
  17730. var _default = {
  17731. // 步进器组件
  17732. numberBox: {
  17733. name: '',
  17734. value: 0,
  17735. min: 1,
  17736. max: Number.MAX_SAFE_INTEGER,
  17737. step: 1,
  17738. integer: false,
  17739. disabled: false,
  17740. disabledInput: false,
  17741. asyncChange: false,
  17742. inputWidth: 35,
  17743. showMinus: true,
  17744. showPlus: true,
  17745. decimalLength: null,
  17746. longPress: true,
  17747. color: '#323233',
  17748. buttonSize: 30,
  17749. bgColor: '#EBECEE',
  17750. cursorSpacing: 100,
  17751. disableMinus: false,
  17752. disablePlus: false,
  17753. iconStyle: ''
  17754. }
  17755. };
  17756. exports.default = _default;
  17757. /***/ }),
  17758. /* 122 */
  17759. /*!********************************************************************************************************!*\
  17760. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/numberKeyboard.js ***!
  17761. \********************************************************************************************************/
  17762. /*! no static exports found */
  17763. /***/ (function(module, exports, __webpack_require__) {
  17764. "use strict";
  17765. Object.defineProperty(exports, "__esModule", {
  17766. value: true
  17767. });
  17768. exports.default = void 0;
  17769. /*
  17770. * @Author : LQ
  17771. * @Description :
  17772. * @version : 1.0
  17773. * @Date : 2021-08-20 16:44:21
  17774. * @LastAuthor : LQ
  17775. * @lastTime : 2021-08-20 17:08:05
  17776. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberKeyboard.js
  17777. */
  17778. var _default = {
  17779. // 数字键盘
  17780. numberKeyboard: {
  17781. mode: 'number',
  17782. dotDisabled: false,
  17783. random: false
  17784. }
  17785. };
  17786. exports.default = _default;
  17787. /***/ }),
  17788. /* 123 */
  17789. /*!*************************************************************************************************!*\
  17790. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/overlay.js ***!
  17791. \*************************************************************************************************/
  17792. /*! no static exports found */
  17793. /***/ (function(module, exports, __webpack_require__) {
  17794. "use strict";
  17795. Object.defineProperty(exports, "__esModule", {
  17796. value: true
  17797. });
  17798. exports.default = void 0;
  17799. /*
  17800. * @Author : LQ
  17801. * @Description :
  17802. * @version : 1.0
  17803. * @Date : 2021-08-20 16:44:21
  17804. * @LastAuthor : LQ
  17805. * @lastTime : 2021-08-20 17:06:50
  17806. * @FilePath : /u-view2.0/uview-ui/libs/config/props/overlay.js
  17807. */
  17808. var _default = {
  17809. // overlay组件
  17810. overlay: {
  17811. show: false,
  17812. zIndex: 10070,
  17813. duration: 300,
  17814. opacity: 0.5
  17815. }
  17816. };
  17817. exports.default = _default;
  17818. /***/ }),
  17819. /* 124 */
  17820. /*!***********************************************************************************************!*\
  17821. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/parse.js ***!
  17822. \***********************************************************************************************/
  17823. /*! no static exports found */
  17824. /***/ (function(module, exports, __webpack_require__) {
  17825. "use strict";
  17826. Object.defineProperty(exports, "__esModule", {
  17827. value: true
  17828. });
  17829. exports.default = void 0;
  17830. /*
  17831. * @Author : LQ
  17832. * @Description :
  17833. * @version : 1.0
  17834. * @Date : 2021-08-20 16:44:21
  17835. * @LastAuthor : LQ
  17836. * @lastTime : 2021-08-20 17:17:33
  17837. * @FilePath : /u-view2.0/uview-ui/libs/config/props/parse.js
  17838. */
  17839. var _default = {
  17840. // parse
  17841. parse: {
  17842. copyLink: true,
  17843. errorImg: '',
  17844. lazyLoad: false,
  17845. loadingImg: '',
  17846. pauseVideo: true,
  17847. previewImg: true,
  17848. setTitle: true,
  17849. showImgMenu: true
  17850. }
  17851. };
  17852. exports.default = _default;
  17853. /***/ }),
  17854. /* 125 */
  17855. /*!************************************************************************************************!*\
  17856. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/picker.js ***!
  17857. \************************************************************************************************/
  17858. /*! no static exports found */
  17859. /***/ (function(module, exports, __webpack_require__) {
  17860. "use strict";
  17861. Object.defineProperty(exports, "__esModule", {
  17862. value: true
  17863. });
  17864. exports.default = void 0;
  17865. /*
  17866. * @Author : LQ
  17867. * @Description :
  17868. * @version : 1.0
  17869. * @Date : 2021-08-20 16:44:21
  17870. * @LastAuthor : LQ
  17871. * @lastTime : 2021-08-20 17:18:20
  17872. * @FilePath : /u-view2.0/uview-ui/libs/config/props/picker.js
  17873. */
  17874. var _default = {
  17875. // picker
  17876. picker: {
  17877. show: false,
  17878. showToolbar: true,
  17879. title: '',
  17880. columns: function columns() {
  17881. return [];
  17882. },
  17883. loading: false,
  17884. itemHeight: 44,
  17885. cancelText: '取消',
  17886. confirmText: '确定',
  17887. cancelColor: '#909193',
  17888. confirmColor: '#3c9cff',
  17889. visibleItemCount: 5,
  17890. keyName: 'text',
  17891. closeOnClickOverlay: false,
  17892. defaultIndex: function defaultIndex() {
  17893. return [];
  17894. },
  17895. immediateChange: false
  17896. }
  17897. };
  17898. exports.default = _default;
  17899. /***/ }),
  17900. /* 126 */
  17901. /*!***********************************************************************************************!*\
  17902. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/popup.js ***!
  17903. \***********************************************************************************************/
  17904. /*! no static exports found */
  17905. /***/ (function(module, exports, __webpack_require__) {
  17906. "use strict";
  17907. Object.defineProperty(exports, "__esModule", {
  17908. value: true
  17909. });
  17910. exports.default = void 0;
  17911. /*
  17912. * @Author : LQ
  17913. * @Description :
  17914. * @version : 1.0
  17915. * @Date : 2021-08-20 16:44:21
  17916. * @LastAuthor : LQ
  17917. * @lastTime : 2021-08-20 17:06:33
  17918. * @FilePath : /u-view2.0/uview-ui/libs/config/props/popup.js
  17919. */
  17920. var _default = {
  17921. // popup组件
  17922. popup: {
  17923. show: false,
  17924. overlay: true,
  17925. mode: 'bottom',
  17926. duration: 300,
  17927. closeable: false,
  17928. overlayStyle: function overlayStyle() {},
  17929. closeOnClickOverlay: true,
  17930. zIndex: 10075,
  17931. safeAreaInsetBottom: true,
  17932. safeAreaInsetTop: false,
  17933. closeIconPos: 'top-right',
  17934. round: 0,
  17935. zoom: true,
  17936. bgColor: '',
  17937. overlayOpacity: 0.5
  17938. }
  17939. };
  17940. exports.default = _default;
  17941. /***/ }),
  17942. /* 127 */
  17943. /*!***********************************************************************************************!*\
  17944. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/radio.js ***!
  17945. \***********************************************************************************************/
  17946. /*! no static exports found */
  17947. /***/ (function(module, exports, __webpack_require__) {
  17948. "use strict";
  17949. Object.defineProperty(exports, "__esModule", {
  17950. value: true
  17951. });
  17952. exports.default = void 0;
  17953. /*
  17954. * @Author : LQ
  17955. * @Description :
  17956. * @version : 1.0
  17957. * @Date : 2021-08-20 16:44:21
  17958. * @LastAuthor : LQ
  17959. * @lastTime : 2021-08-20 17:02:34
  17960. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radio.js
  17961. */
  17962. var _default = {
  17963. // radio组件
  17964. radio: {
  17965. name: '',
  17966. shape: '',
  17967. disabled: '',
  17968. labelDisabled: '',
  17969. activeColor: '',
  17970. inactiveColor: '',
  17971. iconSize: '',
  17972. labelSize: '',
  17973. label: '',
  17974. labelColor: '',
  17975. size: '',
  17976. iconColor: '',
  17977. placement: ''
  17978. }
  17979. };
  17980. exports.default = _default;
  17981. /***/ }),
  17982. /* 128 */
  17983. /*!****************************************************************************************************!*\
  17984. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/radioGroup.js ***!
  17985. \****************************************************************************************************/
  17986. /*! no static exports found */
  17987. /***/ (function(module, exports, __webpack_require__) {
  17988. "use strict";
  17989. Object.defineProperty(exports, "__esModule", {
  17990. value: true
  17991. });
  17992. exports.default = void 0;
  17993. /*
  17994. * @Author : LQ
  17995. * @Description :
  17996. * @version : 1.0
  17997. * @Date : 2021-08-20 16:44:21
  17998. * @LastAuthor : LQ
  17999. * @lastTime : 2021-08-20 17:03:12
  18000. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radioGroup.js
  18001. */
  18002. var _default = {
  18003. // radio-group组件
  18004. radioGroup: {
  18005. value: '',
  18006. disabled: false,
  18007. shape: 'circle',
  18008. activeColor: '#2979ff',
  18009. inactiveColor: '#c8c9cc',
  18010. name: '',
  18011. size: 18,
  18012. placement: 'row',
  18013. label: '',
  18014. labelColor: '#303133',
  18015. labelSize: 14,
  18016. labelDisabled: false,
  18017. iconColor: '#ffffff',
  18018. iconSize: 12,
  18019. borderBottom: false,
  18020. iconPlacement: 'left'
  18021. }
  18022. };
  18023. exports.default = _default;
  18024. /***/ }),
  18025. /* 129 */
  18026. /*!**********************************************************************************************!*\
  18027. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/rate.js ***!
  18028. \**********************************************************************************************/
  18029. /*! no static exports found */
  18030. /***/ (function(module, exports, __webpack_require__) {
  18031. "use strict";
  18032. Object.defineProperty(exports, "__esModule", {
  18033. value: true
  18034. });
  18035. exports.default = void 0;
  18036. /*
  18037. * @Author : LQ
  18038. * @Description :
  18039. * @version : 1.0
  18040. * @Date : 2021-08-20 16:44:21
  18041. * @LastAuthor : LQ
  18042. * @lastTime : 2021-08-20 17:05:09
  18043. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rate.js
  18044. */
  18045. var _default = {
  18046. // rate组件
  18047. rate: {
  18048. value: 1,
  18049. count: 5,
  18050. disabled: false,
  18051. size: 18,
  18052. inactiveColor: '#b2b2b2',
  18053. activeColor: '#FA3534',
  18054. gutter: 4,
  18055. minCount: 1,
  18056. allowHalf: false,
  18057. activeIcon: 'star-fill',
  18058. inactiveIcon: 'star',
  18059. touchable: true
  18060. }
  18061. };
  18062. exports.default = _default;
  18063. /***/ }),
  18064. /* 130 */
  18065. /*!**************************************************************************************************!*\
  18066. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/readMore.js ***!
  18067. \**************************************************************************************************/
  18068. /*! no static exports found */
  18069. /***/ (function(module, exports, __webpack_require__) {
  18070. "use strict";
  18071. Object.defineProperty(exports, "__esModule", {
  18072. value: true
  18073. });
  18074. exports.default = void 0;
  18075. /*
  18076. * @Author : LQ
  18077. * @Description :
  18078. * @version : 1.0
  18079. * @Date : 2021-08-20 16:44:21
  18080. * @LastAuthor : LQ
  18081. * @lastTime : 2021-08-20 17:18:41
  18082. * @FilePath : /u-view2.0/uview-ui/libs/config/props/readMore.js
  18083. */
  18084. var _default = {
  18085. // readMore
  18086. readMore: {
  18087. showHeight: 400,
  18088. toggle: false,
  18089. closeText: '展开阅读全文',
  18090. openText: '收起',
  18091. color: '#2979ff',
  18092. fontSize: 14,
  18093. textIndent: '2em',
  18094. name: ''
  18095. }
  18096. };
  18097. exports.default = _default;
  18098. /***/ }),
  18099. /* 131 */
  18100. /*!*********************************************************************************************!*\
  18101. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/row.js ***!
  18102. \*********************************************************************************************/
  18103. /*! no static exports found */
  18104. /***/ (function(module, exports, __webpack_require__) {
  18105. "use strict";
  18106. Object.defineProperty(exports, "__esModule", {
  18107. value: true
  18108. });
  18109. exports.default = void 0;
  18110. /*
  18111. * @Author : LQ
  18112. * @Description :
  18113. * @version : 1.0
  18114. * @Date : 2021-08-20 16:44:21
  18115. * @LastAuthor : LQ
  18116. * @lastTime : 2021-08-20 17:18:58
  18117. * @FilePath : /u-view2.0/uview-ui/libs/config/props/row.js
  18118. */
  18119. var _default = {
  18120. // row
  18121. row: {
  18122. gutter: 0,
  18123. justify: 'start',
  18124. align: 'center'
  18125. }
  18126. };
  18127. exports.default = _default;
  18128. /***/ }),
  18129. /* 132 */
  18130. /*!***************************************************************************************************!*\
  18131. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/rowNotice.js ***!
  18132. \***************************************************************************************************/
  18133. /*! no static exports found */
  18134. /***/ (function(module, exports, __webpack_require__) {
  18135. "use strict";
  18136. Object.defineProperty(exports, "__esModule", {
  18137. value: true
  18138. });
  18139. exports.default = void 0;
  18140. /*
  18141. * @Author : LQ
  18142. * @Description :
  18143. * @version : 1.0
  18144. * @Date : 2021-08-20 16:44:21
  18145. * @LastAuthor : LQ
  18146. * @lastTime : 2021-08-20 17:19:13
  18147. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rowNotice.js
  18148. */
  18149. var _default = {
  18150. // rowNotice
  18151. rowNotice: {
  18152. text: '',
  18153. icon: 'volume',
  18154. mode: '',
  18155. color: '#f9ae3d',
  18156. bgColor: '#fdf6ec',
  18157. fontSize: 14,
  18158. speed: 80
  18159. }
  18160. };
  18161. exports.default = _default;
  18162. /***/ }),
  18163. /* 133 */
  18164. /*!****************************************************************************************************!*\
  18165. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/scrollList.js ***!
  18166. \****************************************************************************************************/
  18167. /*! no static exports found */
  18168. /***/ (function(module, exports, __webpack_require__) {
  18169. "use strict";
  18170. Object.defineProperty(exports, "__esModule", {
  18171. value: true
  18172. });
  18173. exports.default = void 0;
  18174. /*
  18175. * @Author : LQ
  18176. * @Description :
  18177. * @version : 1.0
  18178. * @Date : 2021-08-20 16:44:21
  18179. * @LastAuthor : LQ
  18180. * @lastTime : 2021-08-20 17:19:28
  18181. * @FilePath : /u-view2.0/uview-ui/libs/config/props/scrollList.js
  18182. */
  18183. var _default = {
  18184. // scrollList
  18185. scrollList: {
  18186. indicatorWidth: 50,
  18187. indicatorBarWidth: 20,
  18188. indicator: true,
  18189. indicatorColor: '#f2f2f2',
  18190. indicatorActiveColor: '#3c9cff',
  18191. indicatorStyle: ''
  18192. }
  18193. };
  18194. exports.default = _default;
  18195. /***/ }),
  18196. /* 134 */
  18197. /*!************************************************************************************************!*\
  18198. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/search.js ***!
  18199. \************************************************************************************************/
  18200. /*! no static exports found */
  18201. /***/ (function(module, exports, __webpack_require__) {
  18202. "use strict";
  18203. Object.defineProperty(exports, "__esModule", {
  18204. value: true
  18205. });
  18206. exports.default = void 0;
  18207. /*
  18208. * @Author : LQ
  18209. * @Description :
  18210. * @version : 1.0
  18211. * @Date : 2021-08-20 16:44:21
  18212. * @LastAuthor : LQ
  18213. * @lastTime : 2021-08-20 17:19:45
  18214. * @FilePath : /u-view2.0/uview-ui/libs/config/props/search.js
  18215. */
  18216. var _default = {
  18217. // search
  18218. search: {
  18219. shape: 'round',
  18220. bgColor: '#f2f2f2',
  18221. placeholder: '请输入关键字',
  18222. clearabled: true,
  18223. focus: false,
  18224. showAction: true,
  18225. actionStyle: function actionStyle() {
  18226. return {};
  18227. },
  18228. actionText: '搜索',
  18229. inputAlign: 'left',
  18230. inputStyle: function inputStyle() {
  18231. return {};
  18232. },
  18233. disabled: false,
  18234. borderColor: 'transparent',
  18235. searchIconColor: '#909399',
  18236. searchIconSize: 22,
  18237. color: '#606266',
  18238. placeholderColor: '#909399',
  18239. searchIcon: 'search',
  18240. margin: '0',
  18241. animation: false,
  18242. value: '',
  18243. maxlength: '-1',
  18244. height: 32,
  18245. label: null
  18246. }
  18247. };
  18248. exports.default = _default;
  18249. /***/ }),
  18250. /* 135 */
  18251. /*!*************************************************************************************************!*\
  18252. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/section.js ***!
  18253. \*************************************************************************************************/
  18254. /*! no static exports found */
  18255. /***/ (function(module, exports, __webpack_require__) {
  18256. "use strict";
  18257. Object.defineProperty(exports, "__esModule", {
  18258. value: true
  18259. });
  18260. exports.default = void 0;
  18261. /*
  18262. * @Author : LQ
  18263. * @Description :
  18264. * @version : 1.0
  18265. * @Date : 2021-08-20 16:44:21
  18266. * @LastAuthor : LQ
  18267. * @lastTime : 2021-08-20 17:07:33
  18268. * @FilePath : /u-view2.0/uview-ui/libs/config/props/section.js
  18269. */
  18270. var _default = {
  18271. // u-section组件
  18272. section: {
  18273. title: '',
  18274. subTitle: '更多',
  18275. right: true,
  18276. fontSize: 15,
  18277. bold: true,
  18278. color: '#303133',
  18279. subColor: '#909399',
  18280. showLine: true,
  18281. lineColor: '',
  18282. arrow: true
  18283. }
  18284. };
  18285. exports.default = _default;
  18286. /***/ }),
  18287. /* 136 */
  18288. /*!**************************************************************************************************!*\
  18289. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/skeleton.js ***!
  18290. \**************************************************************************************************/
  18291. /*! no static exports found */
  18292. /***/ (function(module, exports, __webpack_require__) {
  18293. "use strict";
  18294. Object.defineProperty(exports, "__esModule", {
  18295. value: true
  18296. });
  18297. exports.default = void 0;
  18298. /*
  18299. * @Author : LQ
  18300. * @Description :
  18301. * @version : 1.0
  18302. * @Date : 2021-08-20 16:44:21
  18303. * @LastAuthor : LQ
  18304. * @lastTime : 2021-08-20 17:20:14
  18305. * @FilePath : /u-view2.0/uview-ui/libs/config/props/skeleton.js
  18306. */
  18307. var _default = {
  18308. // skeleton
  18309. skeleton: {
  18310. loading: true,
  18311. animate: true,
  18312. rows: 0,
  18313. rowsWidth: '100%',
  18314. rowsHeight: 18,
  18315. title: true,
  18316. titleWidth: '50%',
  18317. titleHeight: 18,
  18318. avatar: false,
  18319. avatarSize: 32,
  18320. avatarShape: 'circle'
  18321. }
  18322. };
  18323. exports.default = _default;
  18324. /***/ }),
  18325. /* 137 */
  18326. /*!************************************************************************************************!*\
  18327. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/slider.js ***!
  18328. \************************************************************************************************/
  18329. /*! no static exports found */
  18330. /***/ (function(module, exports, __webpack_require__) {
  18331. "use strict";
  18332. Object.defineProperty(exports, "__esModule", {
  18333. value: true
  18334. });
  18335. exports.default = void 0;
  18336. /*
  18337. * @Author : LQ
  18338. * @Description :
  18339. * @version : 1.0
  18340. * @Date : 2021-08-20 16:44:21
  18341. * @LastAuthor : LQ
  18342. * @lastTime : 2021-08-20 17:08:25
  18343. * @FilePath : /u-view2.0/uview-ui/libs/config/props/slider.js
  18344. */
  18345. var _default = {
  18346. // slider组件
  18347. slider: {
  18348. value: 0,
  18349. blockSize: 18,
  18350. min: 0,
  18351. max: 100,
  18352. step: 1,
  18353. activeColor: '#2979ff',
  18354. inactiveColor: '#c0c4cc',
  18355. blockColor: '#ffffff',
  18356. showValue: false,
  18357. disabled: false,
  18358. blockStyle: function blockStyle() {}
  18359. }
  18360. };
  18361. exports.default = _default;
  18362. /***/ }),
  18363. /* 138 */
  18364. /*!***************************************************************************************************!*\
  18365. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/statusBar.js ***!
  18366. \***************************************************************************************************/
  18367. /*! no static exports found */
  18368. /***/ (function(module, exports, __webpack_require__) {
  18369. "use strict";
  18370. Object.defineProperty(exports, "__esModule", {
  18371. value: true
  18372. });
  18373. exports.default = void 0;
  18374. /*
  18375. * @Author : LQ
  18376. * @Description :
  18377. * @version : 1.0
  18378. * @Date : 2021-08-20 16:44:21
  18379. * @LastAuthor : LQ
  18380. * @lastTime : 2021-08-20 17:20:39
  18381. * @FilePath : /u-view2.0/uview-ui/libs/config/props/statusBar.js
  18382. */
  18383. var _default = {
  18384. // statusBar
  18385. statusBar: {
  18386. bgColor: 'transparent'
  18387. }
  18388. };
  18389. exports.default = _default;
  18390. /***/ }),
  18391. /* 139 */
  18392. /*!***********************************************************************************************!*\
  18393. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/steps.js ***!
  18394. \***********************************************************************************************/
  18395. /*! no static exports found */
  18396. /***/ (function(module, exports, __webpack_require__) {
  18397. "use strict";
  18398. Object.defineProperty(exports, "__esModule", {
  18399. value: true
  18400. });
  18401. exports.default = void 0;
  18402. /*
  18403. * @Author : LQ
  18404. * @Description :
  18405. * @version : 1.0
  18406. * @Date : 2021-08-20 16:44:21
  18407. * @LastAuthor : LQ
  18408. * @lastTime : 2021-08-20 17:12:37
  18409. * @FilePath : /u-view2.0/uview-ui/libs/config/props/steps.js
  18410. */
  18411. var _default = {
  18412. // steps组件
  18413. steps: {
  18414. direction: 'row',
  18415. current: 0,
  18416. activeColor: '#3c9cff',
  18417. inactiveColor: '#969799',
  18418. activeIcon: '',
  18419. inactiveIcon: '',
  18420. dot: false
  18421. }
  18422. };
  18423. exports.default = _default;
  18424. /***/ }),
  18425. /* 140 */
  18426. /*!***************************************************************************************************!*\
  18427. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/stepsItem.js ***!
  18428. \***************************************************************************************************/
  18429. /*! no static exports found */
  18430. /***/ (function(module, exports, __webpack_require__) {
  18431. "use strict";
  18432. Object.defineProperty(exports, "__esModule", {
  18433. value: true
  18434. });
  18435. exports.default = void 0;
  18436. /*
  18437. * @Author : LQ
  18438. * @Description :
  18439. * @version : 1.0
  18440. * @Date : 2021-08-20 16:44:21
  18441. * @LastAuthor : LQ
  18442. * @lastTime : 2021-08-20 17:12:55
  18443. * @FilePath : /u-view2.0/uview-ui/libs/config/props/stepsItem.js
  18444. */
  18445. var _default = {
  18446. // steps-item组件
  18447. stepsItem: {
  18448. title: '',
  18449. desc: '',
  18450. iconSize: 17,
  18451. error: false
  18452. }
  18453. };
  18454. exports.default = _default;
  18455. /***/ }),
  18456. /* 141 */
  18457. /*!************************************************************************************************!*\
  18458. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/sticky.js ***!
  18459. \************************************************************************************************/
  18460. /*! no static exports found */
  18461. /***/ (function(module, exports, __webpack_require__) {
  18462. "use strict";
  18463. Object.defineProperty(exports, "__esModule", {
  18464. value: true
  18465. });
  18466. exports.default = void 0;
  18467. /*
  18468. * @Author : LQ
  18469. * @Description :
  18470. * @version : 1.0
  18471. * @Date : 2021-08-20 16:44:21
  18472. * @LastAuthor : LQ
  18473. * @lastTime : 2021-08-20 17:01:30
  18474. * @FilePath : /u-view2.0/uview-ui/libs/config/props/sticky.js
  18475. */
  18476. var _default = {
  18477. // sticky组件
  18478. sticky: {
  18479. offsetTop: 0,
  18480. customNavHeight: 0,
  18481. disabled: false,
  18482. bgColor: 'transparent',
  18483. zIndex: '',
  18484. index: ''
  18485. }
  18486. };
  18487. exports.default = _default;
  18488. /***/ }),
  18489. /* 142 */
  18490. /*!****************************************************************************************************!*\
  18491. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/subsection.js ***!
  18492. \****************************************************************************************************/
  18493. /*! no static exports found */
  18494. /***/ (function(module, exports, __webpack_require__) {
  18495. "use strict";
  18496. Object.defineProperty(exports, "__esModule", {
  18497. value: true
  18498. });
  18499. exports.default = void 0;
  18500. /*
  18501. * @Author : LQ
  18502. * @Description :
  18503. * @version : 1.0
  18504. * @Date : 2021-08-20 16:44:21
  18505. * @LastAuthor : LQ
  18506. * @lastTime : 2021-08-20 17:12:20
  18507. * @FilePath : /u-view2.0/uview-ui/libs/config/props/subsection.js
  18508. */
  18509. var _default = {
  18510. // subsection组件
  18511. subsection: {
  18512. list: [],
  18513. current: 0,
  18514. activeColor: '#3c9cff',
  18515. inactiveColor: '#303133',
  18516. mode: 'button',
  18517. fontSize: 12,
  18518. bold: true,
  18519. bgColor: '#eeeeef',
  18520. keyName: 'name'
  18521. }
  18522. };
  18523. exports.default = _default;
  18524. /***/ }),
  18525. /* 143 */
  18526. /*!*****************************************************************************************************!*\
  18527. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/swipeAction.js ***!
  18528. \*****************************************************************************************************/
  18529. /*! no static exports found */
  18530. /***/ (function(module, exports, __webpack_require__) {
  18531. "use strict";
  18532. Object.defineProperty(exports, "__esModule", {
  18533. value: true
  18534. });
  18535. exports.default = void 0;
  18536. /*
  18537. * @Author : LQ
  18538. * @Description :
  18539. * @version : 1.0
  18540. * @Date : 2021-08-20 16:44:21
  18541. * @LastAuthor : LQ
  18542. * @lastTime : 2021-08-20 17:00:42
  18543. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeAction.js
  18544. */
  18545. var _default = {
  18546. // swipe-action组件
  18547. swipeAction: {
  18548. autoClose: true
  18549. }
  18550. };
  18551. exports.default = _default;
  18552. /***/ }),
  18553. /* 144 */
  18554. /*!*********************************************************************************************************!*\
  18555. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/swipeActionItem.js ***!
  18556. \*********************************************************************************************************/
  18557. /*! no static exports found */
  18558. /***/ (function(module, exports, __webpack_require__) {
  18559. "use strict";
  18560. Object.defineProperty(exports, "__esModule", {
  18561. value: true
  18562. });
  18563. exports.default = void 0;
  18564. /*
  18565. * @Author : LQ
  18566. * @Description :
  18567. * @version : 1.0
  18568. * @Date : 2021-08-20 16:44:21
  18569. * @LastAuthor : LQ
  18570. * @lastTime : 2021-08-20 17:01:13
  18571. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeActionItem.js
  18572. */
  18573. var _default = {
  18574. // swipeActionItem 组件
  18575. swipeActionItem: {
  18576. show: false,
  18577. name: '',
  18578. disabled: false,
  18579. threshold: 20,
  18580. autoClose: true,
  18581. options: [],
  18582. duration: 300
  18583. }
  18584. };
  18585. exports.default = _default;
  18586. /***/ }),
  18587. /* 145 */
  18588. /*!************************************************************************************************!*\
  18589. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/swiper.js ***!
  18590. \************************************************************************************************/
  18591. /*! no static exports found */
  18592. /***/ (function(module, exports, __webpack_require__) {
  18593. "use strict";
  18594. Object.defineProperty(exports, "__esModule", {
  18595. value: true
  18596. });
  18597. exports.default = void 0;
  18598. /*
  18599. * @Author : LQ
  18600. * @Description :
  18601. * @version : 1.0
  18602. * @Date : 2021-08-20 16:44:21
  18603. * @LastAuthor : LQ
  18604. * @lastTime : 2021-08-20 17:21:38
  18605. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiper.js
  18606. */
  18607. var _default = {
  18608. // swiper 组件
  18609. swiper: {
  18610. list: function list() {
  18611. return [];
  18612. },
  18613. indicator: false,
  18614. indicatorActiveColor: '#FFFFFF',
  18615. indicatorInactiveColor: 'rgba(255, 255, 255, 0.35)',
  18616. indicatorStyle: '',
  18617. indicatorMode: 'line',
  18618. autoplay: true,
  18619. current: 0,
  18620. currentItemId: '',
  18621. interval: 3000,
  18622. duration: 300,
  18623. circular: false,
  18624. previousMargin: 0,
  18625. nextMargin: 0,
  18626. acceleration: false,
  18627. displayMultipleItems: 1,
  18628. easingFunction: 'default',
  18629. keyName: 'url',
  18630. imgMode: 'aspectFill',
  18631. height: 130,
  18632. bgColor: '#f3f4f6',
  18633. radius: 4,
  18634. loading: false,
  18635. showTitle: false
  18636. }
  18637. };
  18638. exports.default = _default;
  18639. /***/ }),
  18640. /* 146 */
  18641. /*!**********************************************************************************************************!*\
  18642. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/swipterIndicator.js ***!
  18643. \**********************************************************************************************************/
  18644. /*! no static exports found */
  18645. /***/ (function(module, exports, __webpack_require__) {
  18646. "use strict";
  18647. Object.defineProperty(exports, "__esModule", {
  18648. value: true
  18649. });
  18650. exports.default = void 0;
  18651. /*
  18652. * @Author : LQ
  18653. * @Description :
  18654. * @version : 1.0
  18655. * @Date : 2021-08-20 16:44:21
  18656. * @LastAuthor : LQ
  18657. * @lastTime : 2021-08-20 17:22:07
  18658. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiperIndicator.js
  18659. */
  18660. var _default = {
  18661. // swiperIndicator 组件
  18662. swiperIndicator: {
  18663. length: 0,
  18664. current: 0,
  18665. indicatorActiveColor: '',
  18666. indicatorInactiveColor: '',
  18667. indicatorMode: 'line'
  18668. }
  18669. };
  18670. exports.default = _default;
  18671. /***/ }),
  18672. /* 147 */
  18673. /*!************************************************************************************************!*\
  18674. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/switch.js ***!
  18675. \************************************************************************************************/
  18676. /*! no static exports found */
  18677. /***/ (function(module, exports, __webpack_require__) {
  18678. "use strict";
  18679. Object.defineProperty(exports, "__esModule", {
  18680. value: true
  18681. });
  18682. exports.default = void 0;
  18683. /*
  18684. * @Author : LQ
  18685. * @Description :
  18686. * @version : 1.0
  18687. * @Date : 2021-08-20 16:44:21
  18688. * @LastAuthor : LQ
  18689. * @lastTime : 2021-08-20 17:22:24
  18690. * @FilePath : /u-view2.0/uview-ui/libs/config/props/switch.js
  18691. */
  18692. var _default = {
  18693. // switch
  18694. switch: {
  18695. loading: false,
  18696. disabled: false,
  18697. size: 25,
  18698. activeColor: '#2979ff',
  18699. inactiveColor: '#ffffff',
  18700. value: false,
  18701. activeValue: true,
  18702. inactiveValue: false,
  18703. asyncChange: false,
  18704. space: 0
  18705. }
  18706. };
  18707. exports.default = _default;
  18708. /***/ }),
  18709. /* 148 */
  18710. /*!************************************************************************************************!*\
  18711. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/tabbar.js ***!
  18712. \************************************************************************************************/
  18713. /*! no static exports found */
  18714. /***/ (function(module, exports, __webpack_require__) {
  18715. "use strict";
  18716. Object.defineProperty(exports, "__esModule", {
  18717. value: true
  18718. });
  18719. exports.default = void 0;
  18720. /*
  18721. * @Author : LQ
  18722. * @Description :
  18723. * @version : 1.0
  18724. * @Date : 2021-08-20 16:44:21
  18725. * @LastAuthor : LQ
  18726. * @lastTime : 2021-08-20 17:22:40
  18727. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbar.js
  18728. */
  18729. var _default = {
  18730. // tabbar
  18731. tabbar: {
  18732. value: null,
  18733. safeAreaInsetBottom: true,
  18734. border: true,
  18735. zIndex: 1,
  18736. activeColor: '#1989fa',
  18737. inactiveColor: '#7d7e80',
  18738. fixed: true,
  18739. placeholder: true
  18740. }
  18741. };
  18742. exports.default = _default;
  18743. /***/ }),
  18744. /* 149 */
  18745. /*!****************************************************************************************************!*\
  18746. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/tabbarItem.js ***!
  18747. \****************************************************************************************************/
  18748. /*! no static exports found */
  18749. /***/ (function(module, exports, __webpack_require__) {
  18750. "use strict";
  18751. Object.defineProperty(exports, "__esModule", {
  18752. value: true
  18753. });
  18754. exports.default = void 0;
  18755. /*
  18756. * @Author : LQ
  18757. * @Description :
  18758. * @version : 1.0
  18759. * @Date : 2021-08-20 16:44:21
  18760. * @LastAuthor : LQ
  18761. * @lastTime : 2021-08-20 17:22:55
  18762. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbarItem.js
  18763. */
  18764. var _default = {
  18765. //
  18766. tabbarItem: {
  18767. name: null,
  18768. icon: '',
  18769. badge: null,
  18770. dot: false,
  18771. text: '',
  18772. badgeStyle: 'top: 6px;right:2px;'
  18773. }
  18774. };
  18775. exports.default = _default;
  18776. /***/ }),
  18777. /* 150 */
  18778. /*!**********************************************************************************************!*\
  18779. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/tabs.js ***!
  18780. \**********************************************************************************************/
  18781. /*! no static exports found */
  18782. /***/ (function(module, exports, __webpack_require__) {
  18783. "use strict";
  18784. Object.defineProperty(exports, "__esModule", {
  18785. value: true
  18786. });
  18787. exports.default = void 0;
  18788. /*
  18789. * @Author : LQ
  18790. * @Description :
  18791. * @version : 1.0
  18792. * @Date : 2021-08-20 16:44:21
  18793. * @LastAuthor : LQ
  18794. * @lastTime : 2021-08-20 17:23:14
  18795. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabs.js
  18796. */
  18797. var _default = {
  18798. //
  18799. tabs: {
  18800. duration: 300,
  18801. list: function list() {
  18802. return [];
  18803. },
  18804. lineColor: '#3c9cff',
  18805. activeStyle: function activeStyle() {
  18806. return {
  18807. color: '#303133'
  18808. };
  18809. },
  18810. inactiveStyle: function inactiveStyle() {
  18811. return {
  18812. color: '#606266'
  18813. };
  18814. },
  18815. lineWidth: 20,
  18816. lineHeight: 3,
  18817. lineBgSize: 'cover',
  18818. itemStyle: function itemStyle() {
  18819. return {
  18820. height: '44px'
  18821. };
  18822. },
  18823. scrollable: true,
  18824. current: 0,
  18825. keyName: 'name'
  18826. }
  18827. };
  18828. exports.default = _default;
  18829. /***/ }),
  18830. /* 151 */
  18831. /*!*********************************************************************************************!*\
  18832. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/tag.js ***!
  18833. \*********************************************************************************************/
  18834. /*! no static exports found */
  18835. /***/ (function(module, exports, __webpack_require__) {
  18836. "use strict";
  18837. Object.defineProperty(exports, "__esModule", {
  18838. value: true
  18839. });
  18840. exports.default = void 0;
  18841. /*
  18842. * @Author : LQ
  18843. * @Description :
  18844. * @version : 1.0
  18845. * @Date : 2021-08-20 16:44:21
  18846. * @LastAuthor : LQ
  18847. * @lastTime : 2021-08-20 17:23:37
  18848. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tag.js
  18849. */
  18850. var _default = {
  18851. // tag 组件
  18852. tag: {
  18853. type: 'primary',
  18854. disabled: false,
  18855. size: 'medium',
  18856. shape: 'square',
  18857. text: '',
  18858. bgColor: '',
  18859. color: '',
  18860. borderColor: '',
  18861. closeColor: '#C6C7CB',
  18862. name: '',
  18863. plainFill: false,
  18864. plain: false,
  18865. closable: false,
  18866. show: true,
  18867. icon: ''
  18868. }
  18869. };
  18870. exports.default = _default;
  18871. /***/ }),
  18872. /* 152 */
  18873. /*!**********************************************************************************************!*\
  18874. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/text.js ***!
  18875. \**********************************************************************************************/
  18876. /*! no static exports found */
  18877. /***/ (function(module, exports, __webpack_require__) {
  18878. "use strict";
  18879. Object.defineProperty(exports, "__esModule", {
  18880. value: true
  18881. });
  18882. exports.default = void 0;
  18883. /*
  18884. * @Author : LQ
  18885. * @Description :
  18886. * @version : 1.0
  18887. * @Date : 2021-08-20 16:44:21
  18888. * @LastAuthor : LQ
  18889. * @lastTime : 2021-08-20 17:23:58
  18890. * @FilePath : /u-view2.0/uview-ui/libs/config/props/text.js
  18891. */
  18892. var _default = {
  18893. // text 组件
  18894. text: {
  18895. type: '',
  18896. show: true,
  18897. text: '',
  18898. prefixIcon: '',
  18899. suffixIcon: '',
  18900. mode: '',
  18901. href: '',
  18902. format: '',
  18903. call: false,
  18904. openType: '',
  18905. bold: false,
  18906. block: false,
  18907. lines: '',
  18908. color: '#303133',
  18909. size: 15,
  18910. iconStyle: function iconStyle() {
  18911. return {
  18912. fontSize: '15px'
  18913. };
  18914. },
  18915. decoration: 'none',
  18916. margin: 0,
  18917. lineHeight: '',
  18918. align: 'left',
  18919. wordWrap: 'normal'
  18920. }
  18921. };
  18922. exports.default = _default;
  18923. /***/ }),
  18924. /* 153 */
  18925. /*!**************************************************************************************************!*\
  18926. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/textarea.js ***!
  18927. \**************************************************************************************************/
  18928. /*! no static exports found */
  18929. /***/ (function(module, exports, __webpack_require__) {
  18930. "use strict";
  18931. Object.defineProperty(exports, "__esModule", {
  18932. value: true
  18933. });
  18934. exports.default = void 0;
  18935. /*
  18936. * @Author : LQ
  18937. * @Description :
  18938. * @version : 1.0
  18939. * @Date : 2021-08-20 16:44:21
  18940. * @LastAuthor : LQ
  18941. * @lastTime : 2021-08-20 17:24:32
  18942. * @FilePath : /u-view2.0/uview-ui/libs/config/props/textarea.js
  18943. */
  18944. var _default = {
  18945. // textarea 组件
  18946. textarea: {
  18947. value: '',
  18948. placeholder: '',
  18949. placeholderClass: 'textarea-placeholder',
  18950. placeholderStyle: 'color: #c0c4cc',
  18951. height: 70,
  18952. confirmType: 'done',
  18953. disabled: false,
  18954. count: false,
  18955. focus: false,
  18956. autoHeight: false,
  18957. fixed: false,
  18958. cursorSpacing: 0,
  18959. cursor: '',
  18960. showConfirmBar: true,
  18961. selectionStart: -1,
  18962. selectionEnd: -1,
  18963. adjustPosition: true,
  18964. disableDefaultPadding: false,
  18965. holdKeyboard: false,
  18966. maxlength: 140,
  18967. border: 'surround',
  18968. formatter: null
  18969. }
  18970. };
  18971. exports.default = _default;
  18972. /***/ }),
  18973. /* 154 */
  18974. /*!***********************************************************************************************!*\
  18975. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/toast.js ***!
  18976. \***********************************************************************************************/
  18977. /*! no static exports found */
  18978. /***/ (function(module, exports, __webpack_require__) {
  18979. "use strict";
  18980. Object.defineProperty(exports, "__esModule", {
  18981. value: true
  18982. });
  18983. exports.default = void 0;
  18984. /*
  18985. * @Author : LQ
  18986. * @Description :
  18987. * @version : 1.0
  18988. * @Date : 2021-08-20 16:44:21
  18989. * @LastAuthor : LQ
  18990. * @lastTime : 2021-08-20 17:07:07
  18991. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toast.js
  18992. */
  18993. var _default = {
  18994. // toast组件
  18995. toast: {
  18996. zIndex: 10090,
  18997. loading: false,
  18998. text: '',
  18999. icon: '',
  19000. type: '',
  19001. loadingMode: '',
  19002. show: '',
  19003. overlay: false,
  19004. position: 'center',
  19005. params: function params() {},
  19006. duration: 2000,
  19007. isTab: false,
  19008. url: '',
  19009. callback: null,
  19010. back: false
  19011. }
  19012. };
  19013. exports.default = _default;
  19014. /***/ }),
  19015. /* 155 */
  19016. /*!*************************************************************************************************!*\
  19017. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/toolbar.js ***!
  19018. \*************************************************************************************************/
  19019. /*! no static exports found */
  19020. /***/ (function(module, exports, __webpack_require__) {
  19021. "use strict";
  19022. Object.defineProperty(exports, "__esModule", {
  19023. value: true
  19024. });
  19025. exports.default = void 0;
  19026. /*
  19027. * @Author : LQ
  19028. * @Description :
  19029. * @version : 1.0
  19030. * @Date : 2021-08-20 16:44:21
  19031. * @LastAuthor : LQ
  19032. * @lastTime : 2021-08-20 17:24:55
  19033. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toolbar.js
  19034. */
  19035. var _default = {
  19036. // toolbar 组件
  19037. toolbar: {
  19038. show: true,
  19039. cancelText: '取消',
  19040. confirmText: '确认',
  19041. cancelColor: '#909193',
  19042. confirmColor: '#3c9cff',
  19043. title: ''
  19044. }
  19045. };
  19046. exports.default = _default;
  19047. /***/ }),
  19048. /* 156 */
  19049. /*!*************************************************************************************************!*\
  19050. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/tooltip.js ***!
  19051. \*************************************************************************************************/
  19052. /*! no static exports found */
  19053. /***/ (function(module, exports, __webpack_require__) {
  19054. "use strict";
  19055. Object.defineProperty(exports, "__esModule", {
  19056. value: true
  19057. });
  19058. exports.default = void 0;
  19059. /*
  19060. * @Author : LQ
  19061. * @Description :
  19062. * @version : 1.0
  19063. * @Date : 2021-08-20 16:44:21
  19064. * @LastAuthor : LQ
  19065. * @lastTime : 2021-08-20 17:25:14
  19066. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tooltip.js
  19067. */
  19068. var _default = {
  19069. // tooltip 组件
  19070. tooltip: {
  19071. text: '',
  19072. copyText: '',
  19073. size: 14,
  19074. color: '#606266',
  19075. bgColor: 'transparent',
  19076. direction: 'top',
  19077. zIndex: 10071,
  19078. showCopy: true,
  19079. buttons: function buttons() {
  19080. return [];
  19081. },
  19082. overlay: true,
  19083. showToast: true
  19084. }
  19085. };
  19086. exports.default = _default;
  19087. /***/ }),
  19088. /* 157 */
  19089. /*!****************************************************************************************************!*\
  19090. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/transition.js ***!
  19091. \****************************************************************************************************/
  19092. /*! no static exports found */
  19093. /***/ (function(module, exports, __webpack_require__) {
  19094. "use strict";
  19095. Object.defineProperty(exports, "__esModule", {
  19096. value: true
  19097. });
  19098. exports.default = void 0;
  19099. /*
  19100. * @Author : LQ
  19101. * @Description :
  19102. * @version : 1.0
  19103. * @Date : 2021-08-20 16:44:21
  19104. * @LastAuthor : LQ
  19105. * @lastTime : 2021-08-20 16:59:00
  19106. * @FilePath : /u-view2.0/uview-ui/libs/config/props/transition.js
  19107. */
  19108. var _default = {
  19109. // transition动画组件的props
  19110. transition: {
  19111. show: false,
  19112. mode: 'fade',
  19113. duration: '300',
  19114. timingFunction: 'ease-out'
  19115. }
  19116. };
  19117. exports.default = _default;
  19118. /***/ }),
  19119. /* 158 */
  19120. /*!************************************************************************************************!*\
  19121. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/props/upload.js ***!
  19122. \************************************************************************************************/
  19123. /*! no static exports found */
  19124. /***/ (function(module, exports, __webpack_require__) {
  19125. "use strict";
  19126. Object.defineProperty(exports, "__esModule", {
  19127. value: true
  19128. });
  19129. exports.default = void 0;
  19130. /*
  19131. * @Author : LQ
  19132. * @Description :
  19133. * @version : 1.0
  19134. * @Date : 2021-08-20 16:44:21
  19135. * @LastAuthor : LQ
  19136. * @lastTime : 2021-08-20 17:09:50
  19137. * @FilePath : /u-view2.0/uview-ui/libs/config/props/upload.js
  19138. */
  19139. var _default = {
  19140. // upload组件
  19141. upload: {
  19142. accept: 'image',
  19143. capture: function capture() {
  19144. return ['album', 'camera'];
  19145. },
  19146. compressed: true,
  19147. camera: 'back',
  19148. maxDuration: 60,
  19149. uploadIcon: 'camera-fill',
  19150. uploadIconColor: '#D3D4D6',
  19151. useBeforeRead: false,
  19152. previewFullImage: true,
  19153. maxCount: 52,
  19154. disabled: false,
  19155. imageMode: 'aspectFill',
  19156. name: '',
  19157. sizeType: function sizeType() {
  19158. return ['original', 'compressed'];
  19159. },
  19160. multiple: false,
  19161. deletable: true,
  19162. maxSize: Number.MAX_VALUE,
  19163. fileList: function fileList() {
  19164. return [];
  19165. },
  19166. uploadText: '',
  19167. width: 80,
  19168. height: 80,
  19169. previewImage: true
  19170. }
  19171. };
  19172. exports.default = _default;
  19173. /***/ }),
  19174. /* 159 */
  19175. /*!******************************************************************************************!*\
  19176. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/config/zIndex.js ***!
  19177. \******************************************************************************************/
  19178. /*! no static exports found */
  19179. /***/ (function(module, exports, __webpack_require__) {
  19180. "use strict";
  19181. Object.defineProperty(exports, "__esModule", {
  19182. value: true
  19183. });
  19184. exports.default = void 0;
  19185. // uniapp在H5中各API的z-index值如下:
  19186. /**
  19187. * actionsheet: 999
  19188. * modal: 999
  19189. * navigate: 998
  19190. * tabbar: 998
  19191. * toast: 999
  19192. */
  19193. var _default = {
  19194. toast: 10090,
  19195. noNetwork: 10080,
  19196. // popup包含popup,actionsheet,keyboard,picker的值
  19197. popup: 10075,
  19198. mask: 10070,
  19199. navbar: 980,
  19200. topTips: 975,
  19201. sticky: 970,
  19202. indexListSticky: 965
  19203. };
  19204. exports.default = _default;
  19205. /***/ }),
  19206. /* 160 */
  19207. /*!**********************************************************************************************!*\
  19208. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/libs/function/platform.js ***!
  19209. \**********************************************************************************************/
  19210. /*! no static exports found */
  19211. /***/ (function(module, exports, __webpack_require__) {
  19212. "use strict";
  19213. Object.defineProperty(exports, "__esModule", {
  19214. value: true
  19215. });
  19216. exports.default = void 0;
  19217. /**
  19218. * 注意:
  19219. * 此部分内容,在vue-cli模式下,需要在vue.config.js加入如下内容才有效:
  19220. * module.exports = {
  19221. * transpileDependencies: ['uview-v2']
  19222. * }
  19223. */
  19224. var platform = 'none';
  19225. platform = 'vue2';
  19226. platform = 'weixin';
  19227. platform = 'mp';
  19228. var _default = platform;
  19229. exports.default = _default;
  19230. /***/ }),
  19231. /* 161 */,
  19232. /* 162 */,
  19233. /* 163 */,
  19234. /* 164 */,
  19235. /* 165 */,
  19236. /* 166 */,
  19237. /* 167 */,
  19238. /* 168 */,
  19239. /* 169 */,
  19240. /* 170 */,
  19241. /* 171 */,
  19242. /* 172 */,
  19243. /* 173 */,
  19244. /* 174 */,
  19245. /* 175 */,
  19246. /* 176 */
  19247. /*!***********************************************************************************************!*\
  19248. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/components/u-icon/icons.js ***!
  19249. \***********************************************************************************************/
  19250. /*! no static exports found */
  19251. /***/ (function(module, exports, __webpack_require__) {
  19252. "use strict";
  19253. Object.defineProperty(exports, "__esModule", {
  19254. value: true
  19255. });
  19256. exports.default = void 0;
  19257. var _default = {
  19258. 'uicon-level': "\uE693",
  19259. 'uicon-column-line': "\uE68E",
  19260. 'uicon-checkbox-mark': "\uE807",
  19261. 'uicon-folder': "\uE7F5",
  19262. 'uicon-movie': "\uE7F6",
  19263. 'uicon-star-fill': "\uE669",
  19264. 'uicon-star': "\uE65F",
  19265. 'uicon-phone-fill': "\uE64F",
  19266. 'uicon-phone': "\uE622",
  19267. 'uicon-apple-fill': "\uE881",
  19268. 'uicon-chrome-circle-fill': "\uE885",
  19269. 'uicon-backspace': "\uE67B",
  19270. 'uicon-attach': "\uE632",
  19271. 'uicon-cut': "\uE948",
  19272. 'uicon-empty-car': "\uE602",
  19273. 'uicon-empty-coupon': "\uE682",
  19274. 'uicon-empty-address': "\uE646",
  19275. 'uicon-empty-favor': "\uE67C",
  19276. 'uicon-empty-permission': "\uE686",
  19277. 'uicon-empty-news': "\uE687",
  19278. 'uicon-empty-search': "\uE664",
  19279. 'uicon-github-circle-fill': "\uE887",
  19280. 'uicon-rmb': "\uE608",
  19281. 'uicon-person-delete-fill': "\uE66A",
  19282. 'uicon-reload': "\uE788",
  19283. 'uicon-order': "\uE68F",
  19284. 'uicon-server-man': "\uE6BC",
  19285. 'uicon-search': "\uE62A",
  19286. 'uicon-fingerprint': "\uE955",
  19287. 'uicon-more-dot-fill': "\uE630",
  19288. 'uicon-scan': "\uE662",
  19289. 'uicon-share-square': "\uE60B",
  19290. 'uicon-map': "\uE61D",
  19291. 'uicon-map-fill': "\uE64E",
  19292. 'uicon-tags': "\uE629",
  19293. 'uicon-tags-fill': "\uE651",
  19294. 'uicon-bookmark-fill': "\uE63B",
  19295. 'uicon-bookmark': "\uE60A",
  19296. 'uicon-eye': "\uE613",
  19297. 'uicon-eye-fill': "\uE641",
  19298. 'uicon-mic': "\uE64A",
  19299. 'uicon-mic-off': "\uE649",
  19300. 'uicon-calendar': "\uE66E",
  19301. 'uicon-calendar-fill': "\uE634",
  19302. 'uicon-trash': "\uE623",
  19303. 'uicon-trash-fill': "\uE658",
  19304. 'uicon-play-left': "\uE66D",
  19305. 'uicon-play-right': "\uE610",
  19306. 'uicon-minus': "\uE618",
  19307. 'uicon-plus': "\uE62D",
  19308. 'uicon-info': "\uE653",
  19309. 'uicon-info-circle': "\uE7D2",
  19310. 'uicon-info-circle-fill': "\uE64B",
  19311. 'uicon-question': "\uE715",
  19312. 'uicon-error': "\uE6D3",
  19313. 'uicon-close': "\uE685",
  19314. 'uicon-checkmark': "\uE6A8",
  19315. 'uicon-android-circle-fill': "\uE67E",
  19316. 'uicon-android-fill': "\uE67D",
  19317. 'uicon-ie': "\uE87B",
  19318. 'uicon-IE-circle-fill': "\uE889",
  19319. 'uicon-google': "\uE87A",
  19320. 'uicon-google-circle-fill': "\uE88A",
  19321. 'uicon-setting-fill': "\uE872",
  19322. 'uicon-setting': "\uE61F",
  19323. 'uicon-minus-square-fill': "\uE855",
  19324. 'uicon-plus-square-fill': "\uE856",
  19325. 'uicon-heart': "\uE7DF",
  19326. 'uicon-heart-fill': "\uE851",
  19327. 'uicon-camera': "\uE7D7",
  19328. 'uicon-camera-fill': "\uE870",
  19329. 'uicon-more-circle': "\uE63E",
  19330. 'uicon-more-circle-fill': "\uE645",
  19331. 'uicon-chat': "\uE620",
  19332. 'uicon-chat-fill': "\uE61E",
  19333. 'uicon-bag-fill': "\uE617",
  19334. 'uicon-bag': "\uE619",
  19335. 'uicon-error-circle-fill': "\uE62C",
  19336. 'uicon-error-circle': "\uE624",
  19337. 'uicon-close-circle': "\uE63F",
  19338. 'uicon-close-circle-fill': "\uE637",
  19339. 'uicon-checkmark-circle': "\uE63D",
  19340. 'uicon-checkmark-circle-fill': "\uE635",
  19341. 'uicon-question-circle-fill': "\uE666",
  19342. 'uicon-question-circle': "\uE625",
  19343. 'uicon-share': "\uE631",
  19344. 'uicon-share-fill': "\uE65E",
  19345. 'uicon-shopping-cart': "\uE621",
  19346. 'uicon-shopping-cart-fill': "\uE65D",
  19347. 'uicon-bell': "\uE609",
  19348. 'uicon-bell-fill': "\uE640",
  19349. 'uicon-list': "\uE650",
  19350. 'uicon-list-dot': "\uE616",
  19351. 'uicon-zhihu': "\uE6BA",
  19352. 'uicon-zhihu-circle-fill': "\uE709",
  19353. 'uicon-zhifubao': "\uE6B9",
  19354. 'uicon-zhifubao-circle-fill': "\uE6B8",
  19355. 'uicon-weixin-circle-fill': "\uE6B1",
  19356. 'uicon-weixin-fill': "\uE6B2",
  19357. 'uicon-twitter-circle-fill': "\uE6AB",
  19358. 'uicon-twitter': "\uE6AA",
  19359. 'uicon-taobao-circle-fill': "\uE6A7",
  19360. 'uicon-taobao': "\uE6A6",
  19361. 'uicon-weibo-circle-fill': "\uE6A5",
  19362. 'uicon-weibo': "\uE6A4",
  19363. 'uicon-qq-fill': "\uE6A1",
  19364. 'uicon-qq-circle-fill': "\uE6A0",
  19365. 'uicon-moments-circel-fill': "\uE69A",
  19366. 'uicon-moments': "\uE69B",
  19367. 'uicon-qzone': "\uE695",
  19368. 'uicon-qzone-circle-fill': "\uE696",
  19369. 'uicon-baidu-circle-fill': "\uE680",
  19370. 'uicon-baidu': "\uE681",
  19371. 'uicon-facebook-circle-fill': "\uE68A",
  19372. 'uicon-facebook': "\uE689",
  19373. 'uicon-car': "\uE60C",
  19374. 'uicon-car-fill': "\uE636",
  19375. 'uicon-warning-fill': "\uE64D",
  19376. 'uicon-warning': "\uE694",
  19377. 'uicon-clock-fill': "\uE638",
  19378. 'uicon-clock': "\uE60F",
  19379. 'uicon-edit-pen': "\uE612",
  19380. 'uicon-edit-pen-fill': "\uE66B",
  19381. 'uicon-email': "\uE611",
  19382. 'uicon-email-fill': "\uE642",
  19383. 'uicon-minus-circle': "\uE61B",
  19384. 'uicon-minus-circle-fill': "\uE652",
  19385. 'uicon-plus-circle': "\uE62E",
  19386. 'uicon-plus-circle-fill': "\uE661",
  19387. 'uicon-file-text': "\uE663",
  19388. 'uicon-file-text-fill': "\uE665",
  19389. 'uicon-pushpin': "\uE7E3",
  19390. 'uicon-pushpin-fill': "\uE86E",
  19391. 'uicon-grid': "\uE673",
  19392. 'uicon-grid-fill': "\uE678",
  19393. 'uicon-play-circle': "\uE647",
  19394. 'uicon-play-circle-fill': "\uE655",
  19395. 'uicon-pause-circle-fill': "\uE654",
  19396. 'uicon-pause': "\uE8FA",
  19397. 'uicon-pause-circle': "\uE643",
  19398. 'uicon-eye-off': "\uE648",
  19399. 'uicon-eye-off-outline': "\uE62B",
  19400. 'uicon-gift-fill': "\uE65C",
  19401. 'uicon-gift': "\uE65B",
  19402. 'uicon-rmb-circle-fill': "\uE657",
  19403. 'uicon-rmb-circle': "\uE677",
  19404. 'uicon-kefu-ermai': "\uE656",
  19405. 'uicon-server-fill': "\uE751",
  19406. 'uicon-coupon-fill': "\uE8C4",
  19407. 'uicon-coupon': "\uE8AE",
  19408. 'uicon-integral': "\uE704",
  19409. 'uicon-integral-fill': "\uE703",
  19410. 'uicon-home-fill': "\uE964",
  19411. 'uicon-home': "\uE965",
  19412. 'uicon-hourglass-half-fill': "\uE966",
  19413. 'uicon-hourglass': "\uE967",
  19414. 'uicon-account': "\uE628",
  19415. 'uicon-plus-people-fill': "\uE626",
  19416. 'uicon-minus-people-fill': "\uE615",
  19417. 'uicon-account-fill': "\uE614",
  19418. 'uicon-thumb-down-fill': "\uE726",
  19419. 'uicon-thumb-down': "\uE727",
  19420. 'uicon-thumb-up': "\uE733",
  19421. 'uicon-thumb-up-fill': "\uE72F",
  19422. 'uicon-lock-fill': "\uE979",
  19423. 'uicon-lock-open': "\uE973",
  19424. 'uicon-lock-opened-fill': "\uE974",
  19425. 'uicon-lock': "\uE97A",
  19426. 'uicon-red-packet-fill': "\uE690",
  19427. 'uicon-photo-fill': "\uE98B",
  19428. 'uicon-photo': "\uE98D",
  19429. 'uicon-volume-off-fill': "\uE659",
  19430. 'uicon-volume-off': "\uE644",
  19431. 'uicon-volume-fill': "\uE670",
  19432. 'uicon-volume': "\uE633",
  19433. 'uicon-red-packet': "\uE691",
  19434. 'uicon-download': "\uE63C",
  19435. 'uicon-arrow-up-fill': "\uE6B0",
  19436. 'uicon-arrow-down-fill': "\uE600",
  19437. 'uicon-play-left-fill': "\uE675",
  19438. 'uicon-play-right-fill': "\uE676",
  19439. 'uicon-rewind-left-fill': "\uE679",
  19440. 'uicon-rewind-right-fill': "\uE67A",
  19441. 'uicon-arrow-downward': "\uE604",
  19442. 'uicon-arrow-leftward': "\uE601",
  19443. 'uicon-arrow-rightward': "\uE603",
  19444. 'uicon-arrow-upward': "\uE607",
  19445. 'uicon-arrow-down': "\uE60D",
  19446. 'uicon-arrow-right': "\uE605",
  19447. 'uicon-arrow-left': "\uE60E",
  19448. 'uicon-arrow-up': "\uE606",
  19449. 'uicon-skip-back-left': "\uE674",
  19450. 'uicon-skip-forward-right': "\uE672",
  19451. 'uicon-rewind-right': "\uE66F",
  19452. 'uicon-rewind-left': "\uE671",
  19453. 'uicon-arrow-right-double': "\uE68D",
  19454. 'uicon-arrow-left-double': "\uE68C",
  19455. 'uicon-wifi-off': "\uE668",
  19456. 'uicon-wifi': "\uE667",
  19457. 'uicon-empty-data': "\uE62F",
  19458. 'uicon-empty-history': "\uE684",
  19459. 'uicon-empty-list': "\uE68B",
  19460. 'uicon-empty-page': "\uE627",
  19461. 'uicon-empty-order': "\uE639",
  19462. 'uicon-man': "\uE697",
  19463. 'uicon-woman': "\uE69C",
  19464. 'uicon-man-add': "\uE61C",
  19465. 'uicon-man-add-fill': "\uE64C",
  19466. 'uicon-man-delete': "\uE61A",
  19467. 'uicon-man-delete-fill': "\uE66A",
  19468. 'uicon-zh': "\uE70A",
  19469. 'uicon-en': "\uE692"
  19470. };
  19471. exports.default = _default;
  19472. /***/ }),
  19473. /* 177 */
  19474. /*!***********************************************************************************************!*\
  19475. !*** C:/Users/1/Desktop/project/saas_manager/uni_modules/uview-ui/components/u-icon/props.js ***!
  19476. \***********************************************************************************************/
  19477. /*! no static exports found */
  19478. /***/ (function(module, exports, __webpack_require__) {
  19479. "use strict";
  19480. /* WEBPACK VAR INJECTION */(function(uni) {
  19481. Object.defineProperty(exports, "__esModule", {
  19482. value: true
  19483. });
  19484. exports.default = void 0;
  19485. var _default = {
  19486. props: {
  19487. // 图标类名
  19488. name: {
  19489. type: String,
  19490. default: uni.$u.props.icon.name
  19491. },
  19492. // 图标颜色,可接受主题色
  19493. color: {
  19494. type: String,
  19495. default: uni.$u.props.icon.color
  19496. },
  19497. // 字体大小,单位px
  19498. size: {
  19499. type: [String, Number],
  19500. default: uni.$u.props.icon.size
  19501. },
  19502. // 是否显示粗体
  19503. bold: {
  19504. type: Boolean,
  19505. default: uni.$u.props.icon.bold
  19506. },
  19507. // 点击图标的时候传递事件出去的index(用于区分点击了哪一个)
  19508. index: {
  19509. type: [String, Number],
  19510. default: uni.$u.props.icon.index
  19511. },
  19512. // 触摸图标时的类名
  19513. hoverClass: {
  19514. type: String,
  19515. default: uni.$u.props.icon.hoverClass
  19516. },
  19517. // 自定义扩展前缀,方便用户扩展自己的图标库
  19518. customPrefix: {
  19519. type: String,
  19520. default: uni.$u.props.icon.customPrefix
  19521. },
  19522. // 图标右边或者下面的文字
  19523. label: {
  19524. type: [String, Number],
  19525. default: uni.$u.props.icon.label
  19526. },
  19527. // label的位置,只能右边或者下边
  19528. labelPos: {
  19529. type: String,
  19530. default: uni.$u.props.icon.labelPos
  19531. },
  19532. // label的大小
  19533. labelSize: {
  19534. type: [String, Number],
  19535. default: uni.$u.props.icon.labelSize
  19536. },
  19537. // label的颜色
  19538. labelColor: {
  19539. type: String,
  19540. default: uni.$u.props.icon.labelColor
  19541. },
  19542. // label与图标的距离
  19543. space: {
  19544. type: [String, Number],
  19545. default: uni.$u.props.icon.space
  19546. },
  19547. // 图片的mode
  19548. imgMode: {
  19549. type: String,
  19550. default: uni.$u.props.icon.imgMode
  19551. },
  19552. // 用于显示图片小图标时,图片的宽度
  19553. width: {
  19554. type: [String, Number],
  19555. default: uni.$u.props.icon.width
  19556. },
  19557. // 用于显示图片小图标时,图片的高度
  19558. height: {
  19559. type: [String, Number],
  19560. default: uni.$u.props.icon.height
  19561. },
  19562. // 用于解决某些情况下,让图标垂直居中的用途
  19563. top: {
  19564. type: [String, Number],
  19565. default: uni.$u.props.icon.top
  19566. },
  19567. // 是否阻止事件传播
  19568. stop: {
  19569. type: Boolean,
  19570. default: uni.$u.props.icon.stop
  19571. }
  19572. }
  19573. };
  19574. exports.default = _default;
  19575. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19576. /***/ })
  19577. ]]);
  19578. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map