vendor.js 757 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],[
  2. /* 0 */,
  3. /* 1 */
  4. /*!*********************************************************!*\
  5. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js ***!
  6. \*********************************************************/
  7. /*! no static exports found */
  8. /***/ (function(module, exports, __webpack_require__) {
  9. "use strict";
  10. Object.defineProperty(exports, "__esModule", {
  11. value: true
  12. });
  13. exports.default = void 0;
  14. var objectKeys = ['qy', 'env', 'error', 'version', 'lanDebug', 'cloud', 'serviceMarket', 'router', 'worklet', '__webpack_require_UNI_MP_PLUGIN__'];
  15. var singlePageDisableKey = ['lanDebug', 'router', 'worklet'];
  16. var target = typeof globalThis !== 'undefined' ? globalThis : function () {
  17. return this;
  18. }();
  19. var key = ['w', 'x'].join('');
  20. var oldWx = target[key];
  21. var launchOption = oldWx.getLaunchOptionsSync ? oldWx.getLaunchOptionsSync() : null;
  22. function isWxKey(key) {
  23. if (launchOption && launchOption.scene === 1154 && singlePageDisableKey.includes(key)) {
  24. return false;
  25. }
  26. return objectKeys.indexOf(key) > -1 || typeof oldWx[key] === 'function';
  27. }
  28. function initWx() {
  29. var newWx = {};
  30. for (var _key in oldWx) {
  31. if (isWxKey(_key)) {
  32. // TODO wrapper function
  33. newWx[_key] = oldWx[_key];
  34. }
  35. }
  36. return newWx;
  37. }
  38. target[key] = initWx();
  39. var _default = target[key];
  40. exports.default = _default;
  41. /***/ }),
  42. /* 2 */
  43. /*!************************************************************!*\
  44. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  45. \************************************************************/
  46. /*! no static exports found */
  47. /***/ (function(module, exports, __webpack_require__) {
  48. "use strict";
  49. /* WEBPACK VAR INJECTION */(function(wx, global) {
  50. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  51. Object.defineProperty(exports, "__esModule", {
  52. value: true
  53. });
  54. exports.createApp = createApp;
  55. exports.createComponent = createComponent;
  56. exports.createPage = createPage;
  57. exports.createPlugin = createPlugin;
  58. exports.createSubpackageApp = createSubpackageApp;
  59. exports.default = void 0;
  60. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  61. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  62. var _construct2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/construct */ 15));
  63. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  64. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  65. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 22);
  66. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  67. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  68. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  69. var realAtob;
  70. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  71. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  72. if (typeof atob !== 'function') {
  73. realAtob = function realAtob(str) {
  74. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  75. if (!b64re.test(str)) {
  76. throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  77. }
  78. // Adding the padding if missing, for semplicity
  79. str += '=='.slice(2 - (str.length & 3));
  80. var bitmap;
  81. var result = '';
  82. var r1;
  83. var r2;
  84. var i = 0;
  85. for (; i < str.length;) {
  86. bitmap = b64.indexOf(str.charAt(i++)) << 18 | b64.indexOf(str.charAt(i++)) << 12 | (r1 = b64.indexOf(str.charAt(i++))) << 6 | (r2 = b64.indexOf(str.charAt(i++)));
  87. result += r1 === 64 ? String.fromCharCode(bitmap >> 16 & 255) : r2 === 64 ? String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255) : String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255, bitmap & 255);
  88. }
  89. return result;
  90. };
  91. } else {
  92. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  93. realAtob = atob;
  94. }
  95. function b64DecodeUnicode(str) {
  96. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  97. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  98. }).join(''));
  99. }
  100. function getCurrentUserInfo() {
  101. var token = wx.getStorageSync('uni_id_token') || '';
  102. var tokenArr = token.split('.');
  103. if (!token || tokenArr.length !== 3) {
  104. return {
  105. uid: null,
  106. role: [],
  107. permission: [],
  108. tokenExpired: 0
  109. };
  110. }
  111. var userInfo;
  112. try {
  113. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  114. } catch (error) {
  115. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  116. }
  117. userInfo.tokenExpired = userInfo.exp * 1000;
  118. delete userInfo.exp;
  119. delete userInfo.iat;
  120. return userInfo;
  121. }
  122. function uniIdMixin(Vue) {
  123. Vue.prototype.uniIDHasRole = function (roleId) {
  124. var _getCurrentUserInfo = getCurrentUserInfo(),
  125. role = _getCurrentUserInfo.role;
  126. return role.indexOf(roleId) > -1;
  127. };
  128. Vue.prototype.uniIDHasPermission = function (permissionId) {
  129. var _getCurrentUserInfo2 = getCurrentUserInfo(),
  130. permission = _getCurrentUserInfo2.permission;
  131. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  132. };
  133. Vue.prototype.uniIDTokenValid = function () {
  134. var _getCurrentUserInfo3 = getCurrentUserInfo(),
  135. tokenExpired = _getCurrentUserInfo3.tokenExpired;
  136. return tokenExpired > Date.now();
  137. };
  138. }
  139. var _toString = Object.prototype.toString;
  140. var hasOwnProperty = Object.prototype.hasOwnProperty;
  141. function isFn(fn) {
  142. return typeof fn === 'function';
  143. }
  144. function isStr(str) {
  145. return typeof str === 'string';
  146. }
  147. function isObject(obj) {
  148. return obj !== null && (0, _typeof2.default)(obj) === 'object';
  149. }
  150. function isPlainObject(obj) {
  151. return _toString.call(obj) === '[object Object]';
  152. }
  153. function hasOwn(obj, key) {
  154. return hasOwnProperty.call(obj, key);
  155. }
  156. function noop() {}
  157. /**
  158. * Create a cached version of a pure function.
  159. */
  160. function cached(fn) {
  161. var cache = Object.create(null);
  162. return function cachedFn(str) {
  163. var hit = cache[str];
  164. return hit || (cache[str] = fn(str));
  165. };
  166. }
  167. /**
  168. * Camelize a hyphen-delimited string.
  169. */
  170. var camelizeRE = /-(\w)/g;
  171. var camelize = cached(function (str) {
  172. return str.replace(camelizeRE, function (_, c) {
  173. return c ? c.toUpperCase() : '';
  174. });
  175. });
  176. function sortObject(obj) {
  177. var sortObj = {};
  178. if (isPlainObject(obj)) {
  179. Object.keys(obj).sort().forEach(function (key) {
  180. sortObj[key] = obj[key];
  181. });
  182. }
  183. return !Object.keys(sortObj) ? obj : sortObj;
  184. }
  185. var HOOKS = ['invoke', 'success', 'fail', 'complete', 'returnValue'];
  186. var globalInterceptors = {};
  187. var scopedInterceptors = {};
  188. function mergeHook(parentVal, childVal) {
  189. var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal;
  190. return res ? dedupeHooks(res) : res;
  191. }
  192. function dedupeHooks(hooks) {
  193. var res = [];
  194. for (var i = 0; i < hooks.length; i++) {
  195. if (res.indexOf(hooks[i]) === -1) {
  196. res.push(hooks[i]);
  197. }
  198. }
  199. return res;
  200. }
  201. function removeHook(hooks, hook) {
  202. var index = hooks.indexOf(hook);
  203. if (index !== -1) {
  204. hooks.splice(index, 1);
  205. }
  206. }
  207. function mergeInterceptorHook(interceptor, option) {
  208. Object.keys(option).forEach(function (hook) {
  209. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  210. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  211. }
  212. });
  213. }
  214. function removeInterceptorHook(interceptor, option) {
  215. if (!interceptor || !option) {
  216. return;
  217. }
  218. Object.keys(option).forEach(function (hook) {
  219. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  220. removeHook(interceptor[hook], option[hook]);
  221. }
  222. });
  223. }
  224. function addInterceptor(method, option) {
  225. if (typeof method === 'string' && isPlainObject(option)) {
  226. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  227. } else if (isPlainObject(method)) {
  228. mergeInterceptorHook(globalInterceptors, method);
  229. }
  230. }
  231. function removeInterceptor(method, option) {
  232. if (typeof method === 'string') {
  233. if (isPlainObject(option)) {
  234. removeInterceptorHook(scopedInterceptors[method], option);
  235. } else {
  236. delete scopedInterceptors[method];
  237. }
  238. } else if (isPlainObject(method)) {
  239. removeInterceptorHook(globalInterceptors, method);
  240. }
  241. }
  242. function wrapperHook(hook, params) {
  243. return function (data) {
  244. return hook(data, params) || data;
  245. };
  246. }
  247. function isPromise(obj) {
  248. return !!obj && ((0, _typeof2.default)(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  249. }
  250. function queue(hooks, data, params) {
  251. var promise = false;
  252. for (var i = 0; i < hooks.length; i++) {
  253. var hook = hooks[i];
  254. if (promise) {
  255. promise = Promise.resolve(wrapperHook(hook, params));
  256. } else {
  257. var res = hook(data, params);
  258. if (isPromise(res)) {
  259. promise = Promise.resolve(res);
  260. }
  261. if (res === false) {
  262. return {
  263. then: function then() {}
  264. };
  265. }
  266. }
  267. }
  268. return promise || {
  269. then: function then(callback) {
  270. return callback(data);
  271. }
  272. };
  273. }
  274. function wrapperOptions(interceptor) {
  275. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  276. ['success', 'fail', 'complete'].forEach(function (name) {
  277. if (Array.isArray(interceptor[name])) {
  278. var oldCallback = options[name];
  279. options[name] = function callbackInterceptor(res) {
  280. queue(interceptor[name], res, options).then(function (res) {
  281. /* eslint-disable no-mixed-operators */
  282. return isFn(oldCallback) && oldCallback(res) || res;
  283. });
  284. };
  285. }
  286. });
  287. return options;
  288. }
  289. function wrapperReturnValue(method, returnValue) {
  290. var returnValueHooks = [];
  291. if (Array.isArray(globalInterceptors.returnValue)) {
  292. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(globalInterceptors.returnValue));
  293. }
  294. var interceptor = scopedInterceptors[method];
  295. if (interceptor && Array.isArray(interceptor.returnValue)) {
  296. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(interceptor.returnValue));
  297. }
  298. returnValueHooks.forEach(function (hook) {
  299. returnValue = hook(returnValue) || returnValue;
  300. });
  301. return returnValue;
  302. }
  303. function getApiInterceptorHooks(method) {
  304. var interceptor = Object.create(null);
  305. Object.keys(globalInterceptors).forEach(function (hook) {
  306. if (hook !== 'returnValue') {
  307. interceptor[hook] = globalInterceptors[hook].slice();
  308. }
  309. });
  310. var scopedInterceptor = scopedInterceptors[method];
  311. if (scopedInterceptor) {
  312. Object.keys(scopedInterceptor).forEach(function (hook) {
  313. if (hook !== 'returnValue') {
  314. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  315. }
  316. });
  317. }
  318. return interceptor;
  319. }
  320. function invokeApi(method, api, options) {
  321. for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
  322. params[_key - 3] = arguments[_key];
  323. }
  324. var interceptor = getApiInterceptorHooks(method);
  325. if (interceptor && Object.keys(interceptor).length) {
  326. if (Array.isArray(interceptor.invoke)) {
  327. var res = queue(interceptor.invoke, options);
  328. return res.then(function (options) {
  329. // 重新访问 getApiInterceptorHooks, 允许 invoke 中再次调用 addInterceptor,removeInterceptor
  330. return api.apply(void 0, [wrapperOptions(getApiInterceptorHooks(method), options)].concat(params));
  331. });
  332. } else {
  333. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  334. }
  335. }
  336. return api.apply(void 0, [options].concat(params));
  337. }
  338. var promiseInterceptor = {
  339. returnValue: function returnValue(res) {
  340. if (!isPromise(res)) {
  341. return res;
  342. }
  343. return new Promise(function (resolve, reject) {
  344. res.then(function (res) {
  345. if (!res) {
  346. resolve(res);
  347. return;
  348. }
  349. if (res[0]) {
  350. reject(res[0]);
  351. } else {
  352. resolve(res[1]);
  353. }
  354. });
  355. });
  356. }
  357. };
  358. var SYNC_API_RE = /^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting|initUTS|requireUTS|registerUTS/;
  359. var CONTEXT_API_RE = /^create|Manager$/;
  360. // Context例外情况
  361. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  362. // 同步例外情况
  363. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  364. var CALLBACK_API_RE = /^on|^off/;
  365. function isContextApi(name) {
  366. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  367. }
  368. function isSyncApi(name) {
  369. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  370. }
  371. function isCallbackApi(name) {
  372. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  373. }
  374. function handlePromise(promise) {
  375. return promise.then(function (data) {
  376. return [null, data];
  377. }).catch(function (err) {
  378. return [err];
  379. });
  380. }
  381. function shouldPromise(name) {
  382. if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) {
  383. return false;
  384. }
  385. return true;
  386. }
  387. /* eslint-disable no-extend-native */
  388. if (!Promise.prototype.finally) {
  389. Promise.prototype.finally = function (callback) {
  390. var promise = this.constructor;
  391. return this.then(function (value) {
  392. return promise.resolve(callback()).then(function () {
  393. return value;
  394. });
  395. }, function (reason) {
  396. return promise.resolve(callback()).then(function () {
  397. throw reason;
  398. });
  399. });
  400. };
  401. }
  402. function promisify(name, api) {
  403. if (!shouldPromise(name) || !isFn(api)) {
  404. return api;
  405. }
  406. return function promiseApi() {
  407. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  408. for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  409. params[_key2 - 1] = arguments[_key2];
  410. }
  411. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  412. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  413. }
  414. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  415. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  416. success: resolve,
  417. fail: reject
  418. })].concat(params));
  419. })));
  420. };
  421. }
  422. var EPS = 1e-4;
  423. var BASE_DEVICE_WIDTH = 750;
  424. var isIOS = false;
  425. var deviceWidth = 0;
  426. var deviceDPR = 0;
  427. function checkDeviceWidth() {
  428. var _wx$getSystemInfoSync = wx.getSystemInfoSync(),
  429. platform = _wx$getSystemInfoSync.platform,
  430. pixelRatio = _wx$getSystemInfoSync.pixelRatio,
  431. windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  432. deviceWidth = windowWidth;
  433. deviceDPR = pixelRatio;
  434. isIOS = platform === 'ios';
  435. }
  436. function upx2px(number, newDeviceWidth) {
  437. if (deviceWidth === 0) {
  438. checkDeviceWidth();
  439. }
  440. number = Number(number);
  441. if (number === 0) {
  442. return 0;
  443. }
  444. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  445. if (result < 0) {
  446. result = -result;
  447. }
  448. result = Math.floor(result + EPS);
  449. if (result === 0) {
  450. if (deviceDPR === 1 || !isIOS) {
  451. result = 1;
  452. } else {
  453. result = 0.5;
  454. }
  455. }
  456. return number < 0 ? -result : result;
  457. }
  458. var LOCALE_ZH_HANS = 'zh-Hans';
  459. var LOCALE_ZH_HANT = 'zh-Hant';
  460. var LOCALE_EN = 'en';
  461. var LOCALE_FR = 'fr';
  462. var LOCALE_ES = 'es';
  463. var messages = {};
  464. var locale;
  465. {
  466. locale = normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  467. }
  468. function initI18nMessages() {
  469. if (!isEnableLocale()) {
  470. return;
  471. }
  472. var localeKeys = Object.keys(__uniConfig.locales);
  473. if (localeKeys.length) {
  474. localeKeys.forEach(function (locale) {
  475. var curMessages = messages[locale];
  476. var userMessages = __uniConfig.locales[locale];
  477. if (curMessages) {
  478. Object.assign(curMessages, userMessages);
  479. } else {
  480. messages[locale] = userMessages;
  481. }
  482. });
  483. }
  484. }
  485. initI18nMessages();
  486. var i18n = (0, _uniI18n.initVueI18n)(locale, {});
  487. var t = i18n.t;
  488. var i18nMixin = i18n.mixin = {
  489. beforeCreate: function beforeCreate() {
  490. var _this = this;
  491. var unwatch = i18n.i18n.watchLocale(function () {
  492. _this.$forceUpdate();
  493. });
  494. this.$once('hook:beforeDestroy', function () {
  495. unwatch();
  496. });
  497. },
  498. methods: {
  499. $$t: function $$t(key, values) {
  500. return t(key, values);
  501. }
  502. }
  503. };
  504. var setLocale = i18n.setLocale;
  505. var getLocale = i18n.getLocale;
  506. function initAppLocale(Vue, appVm, locale) {
  507. var state = Vue.observable({
  508. locale: locale || i18n.getLocale()
  509. });
  510. var localeWatchers = [];
  511. appVm.$watchLocale = function (fn) {
  512. localeWatchers.push(fn);
  513. };
  514. Object.defineProperty(appVm, '$locale', {
  515. get: function get() {
  516. return state.locale;
  517. },
  518. set: function set(v) {
  519. state.locale = v;
  520. localeWatchers.forEach(function (watch) {
  521. return watch(v);
  522. });
  523. }
  524. });
  525. }
  526. function isEnableLocale() {
  527. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  528. }
  529. function include(str, parts) {
  530. return !!parts.find(function (part) {
  531. return str.indexOf(part) !== -1;
  532. });
  533. }
  534. function startsWith(str, parts) {
  535. return parts.find(function (part) {
  536. return str.indexOf(part) === 0;
  537. });
  538. }
  539. function normalizeLocale(locale, messages) {
  540. if (!locale) {
  541. return;
  542. }
  543. locale = locale.trim().replace(/_/g, '-');
  544. if (messages && messages[locale]) {
  545. return locale;
  546. }
  547. locale = locale.toLowerCase();
  548. if (locale === 'chinese') {
  549. // 支付宝
  550. return LOCALE_ZH_HANS;
  551. }
  552. if (locale.indexOf('zh') === 0) {
  553. if (locale.indexOf('-hans') > -1) {
  554. return LOCALE_ZH_HANS;
  555. }
  556. if (locale.indexOf('-hant') > -1) {
  557. return LOCALE_ZH_HANT;
  558. }
  559. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  560. return LOCALE_ZH_HANT;
  561. }
  562. return LOCALE_ZH_HANS;
  563. }
  564. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  565. if (lang) {
  566. return lang;
  567. }
  568. }
  569. // export function initI18n() {
  570. // const localeKeys = Object.keys(__uniConfig.locales || {})
  571. // if (localeKeys.length) {
  572. // localeKeys.forEach((locale) =>
  573. // i18n.add(locale, __uniConfig.locales[locale])
  574. // )
  575. // }
  576. // }
  577. function getLocale$1() {
  578. // 优先使用 $locale
  579. if (isFn(getApp)) {
  580. var app = getApp({
  581. allowDefault: true
  582. });
  583. if (app && app.$vm) {
  584. return app.$vm.$locale;
  585. }
  586. }
  587. return normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  588. }
  589. function setLocale$1(locale) {
  590. var app = isFn(getApp) ? getApp() : false;
  591. if (!app) {
  592. return false;
  593. }
  594. var oldLocale = app.$vm.$locale;
  595. if (oldLocale !== locale) {
  596. app.$vm.$locale = locale;
  597. onLocaleChangeCallbacks.forEach(function (fn) {
  598. return fn({
  599. locale: locale
  600. });
  601. });
  602. return true;
  603. }
  604. return false;
  605. }
  606. var onLocaleChangeCallbacks = [];
  607. function onLocaleChange(fn) {
  608. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  609. onLocaleChangeCallbacks.push(fn);
  610. }
  611. }
  612. if (typeof global !== 'undefined') {
  613. global.getLocale = getLocale$1;
  614. }
  615. var interceptors = {
  616. promiseInterceptor: promiseInterceptor
  617. };
  618. var baseApi = /*#__PURE__*/Object.freeze({
  619. __proto__: null,
  620. upx2px: upx2px,
  621. getLocale: getLocale$1,
  622. setLocale: setLocale$1,
  623. onLocaleChange: onLocaleChange,
  624. addInterceptor: addInterceptor,
  625. removeInterceptor: removeInterceptor,
  626. interceptors: interceptors
  627. });
  628. function findExistsPageIndex(url) {
  629. var pages = getCurrentPages();
  630. var len = pages.length;
  631. while (len--) {
  632. var page = pages[len];
  633. if (page.$page && page.$page.fullPath === url) {
  634. return len;
  635. }
  636. }
  637. return -1;
  638. }
  639. var redirectTo = {
  640. name: function name(fromArgs) {
  641. if (fromArgs.exists === 'back' && fromArgs.delta) {
  642. return 'navigateBack';
  643. }
  644. return 'redirectTo';
  645. },
  646. args: function args(fromArgs) {
  647. if (fromArgs.exists === 'back' && fromArgs.url) {
  648. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  649. if (existsPageIndex !== -1) {
  650. var delta = getCurrentPages().length - 1 - existsPageIndex;
  651. if (delta > 0) {
  652. fromArgs.delta = delta;
  653. }
  654. }
  655. }
  656. }
  657. };
  658. var previewImage = {
  659. args: function args(fromArgs) {
  660. var currentIndex = parseInt(fromArgs.current);
  661. if (isNaN(currentIndex)) {
  662. return;
  663. }
  664. var urls = fromArgs.urls;
  665. if (!Array.isArray(urls)) {
  666. return;
  667. }
  668. var len = urls.length;
  669. if (!len) {
  670. return;
  671. }
  672. if (currentIndex < 0) {
  673. currentIndex = 0;
  674. } else if (currentIndex >= len) {
  675. currentIndex = len - 1;
  676. }
  677. if (currentIndex > 0) {
  678. fromArgs.current = urls[currentIndex];
  679. fromArgs.urls = urls.filter(function (item, index) {
  680. return index < currentIndex ? item !== urls[currentIndex] : true;
  681. });
  682. } else {
  683. fromArgs.current = urls[0];
  684. }
  685. return {
  686. indicator: false,
  687. loop: false
  688. };
  689. }
  690. };
  691. var UUID_KEY = '__DC_STAT_UUID';
  692. var deviceId;
  693. function useDeviceId(result) {
  694. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  695. if (!deviceId) {
  696. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  697. wx.setStorage({
  698. key: UUID_KEY,
  699. data: deviceId
  700. });
  701. }
  702. result.deviceId = deviceId;
  703. }
  704. function addSafeAreaInsets(result) {
  705. if (result.safeArea) {
  706. var safeArea = result.safeArea;
  707. result.safeAreaInsets = {
  708. top: safeArea.top,
  709. left: safeArea.left,
  710. right: result.windowWidth - safeArea.right,
  711. bottom: result.screenHeight - safeArea.bottom
  712. };
  713. }
  714. }
  715. function populateParameters(result) {
  716. var _result$brand = result.brand,
  717. brand = _result$brand === void 0 ? '' : _result$brand,
  718. _result$model = result.model,
  719. model = _result$model === void 0 ? '' : _result$model,
  720. _result$system = result.system,
  721. system = _result$system === void 0 ? '' : _result$system,
  722. _result$language = result.language,
  723. language = _result$language === void 0 ? '' : _result$language,
  724. theme = result.theme,
  725. version = result.version,
  726. platform = result.platform,
  727. fontSizeSetting = result.fontSizeSetting,
  728. SDKVersion = result.SDKVersion,
  729. pixelRatio = result.pixelRatio,
  730. deviceOrientation = result.deviceOrientation;
  731. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  732. var extraParam = {};
  733. // osName osVersion
  734. var osName = '';
  735. var osVersion = '';
  736. {
  737. osName = system.split(' ')[0] || '';
  738. osVersion = system.split(' ')[1] || '';
  739. }
  740. var hostVersion = version;
  741. // deviceType
  742. var deviceType = getGetDeviceType(result, model);
  743. // deviceModel
  744. var deviceBrand = getDeviceBrand(brand);
  745. // hostName
  746. var _hostName = getHostName(result);
  747. // deviceOrientation
  748. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  749. // devicePixelRatio
  750. var _devicePixelRatio = pixelRatio;
  751. // SDKVersion
  752. var _SDKVersion = SDKVersion;
  753. // hostLanguage
  754. var hostLanguage = language.replace(/_/g, '-');
  755. // wx.getAccountInfoSync
  756. var parameters = {
  757. appId: "__UNI__3CF9DA8",
  758. appName: "Ruoyi-AbuCoder-UniApp-WX",
  759. appVersion: "1.0.0",
  760. appVersionCode: "100",
  761. appLanguage: getAppLanguage(hostLanguage),
  762. uniCompileVersion: "4.36",
  763. uniCompilerVersion: "4.36",
  764. uniRuntimeVersion: "4.36",
  765. uniPlatform: undefined || "mp-weixin",
  766. deviceBrand: deviceBrand,
  767. deviceModel: model,
  768. deviceType: deviceType,
  769. devicePixelRatio: _devicePixelRatio,
  770. deviceOrientation: _deviceOrientation,
  771. osName: osName.toLocaleLowerCase(),
  772. osVersion: osVersion,
  773. hostTheme: theme,
  774. hostVersion: hostVersion,
  775. hostLanguage: hostLanguage,
  776. hostName: _hostName,
  777. hostSDKVersion: _SDKVersion,
  778. hostFontSizeSetting: fontSizeSetting,
  779. windowTop: 0,
  780. windowBottom: 0,
  781. // TODO
  782. osLanguage: undefined,
  783. osTheme: undefined,
  784. ua: undefined,
  785. hostPackageName: undefined,
  786. browserName: undefined,
  787. browserVersion: undefined,
  788. isUniAppX: false
  789. };
  790. Object.assign(result, parameters, extraParam);
  791. }
  792. function getGetDeviceType(result, model) {
  793. var deviceType = result.deviceType || 'phone';
  794. {
  795. var deviceTypeMaps = {
  796. ipad: 'pad',
  797. windows: 'pc',
  798. mac: 'pc'
  799. };
  800. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  801. var _model = model.toLocaleLowerCase();
  802. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  803. var _m = deviceTypeMapsKeys[index];
  804. if (_model.indexOf(_m) !== -1) {
  805. deviceType = deviceTypeMaps[_m];
  806. break;
  807. }
  808. }
  809. }
  810. return deviceType;
  811. }
  812. function getDeviceBrand(brand) {
  813. var deviceBrand = brand;
  814. if (deviceBrand) {
  815. deviceBrand = brand.toLocaleLowerCase();
  816. }
  817. return deviceBrand;
  818. }
  819. function getAppLanguage(defaultLanguage) {
  820. return getLocale$1 ? getLocale$1() : defaultLanguage;
  821. }
  822. function getHostName(result) {
  823. var _platform = 'WeChat';
  824. var _hostName = result.hostName || _platform; // mp-jd
  825. {
  826. if (result.environment) {
  827. _hostName = result.environment;
  828. } else if (result.host && result.host.env) {
  829. _hostName = result.host.env;
  830. }
  831. }
  832. return _hostName;
  833. }
  834. var getSystemInfo = {
  835. returnValue: function returnValue(result) {
  836. useDeviceId(result);
  837. addSafeAreaInsets(result);
  838. populateParameters(result);
  839. }
  840. };
  841. var showActionSheet = {
  842. args: function args(fromArgs) {
  843. if ((0, _typeof2.default)(fromArgs) === 'object') {
  844. fromArgs.alertText = fromArgs.title;
  845. }
  846. }
  847. };
  848. var getAppBaseInfo = {
  849. returnValue: function returnValue(result) {
  850. var _result = result,
  851. version = _result.version,
  852. language = _result.language,
  853. SDKVersion = _result.SDKVersion,
  854. theme = _result.theme;
  855. var _hostName = getHostName(result);
  856. var hostLanguage = language.replace('_', '-');
  857. result = sortObject(Object.assign(result, {
  858. appId: "__UNI__3CF9DA8",
  859. appName: "Ruoyi-AbuCoder-UniApp-WX",
  860. appVersion: "1.0.0",
  861. appVersionCode: "100",
  862. appLanguage: getAppLanguage(hostLanguage),
  863. hostVersion: version,
  864. hostLanguage: hostLanguage,
  865. hostName: _hostName,
  866. hostSDKVersion: SDKVersion,
  867. hostTheme: theme,
  868. isUniAppX: false,
  869. uniPlatform: undefined || "mp-weixin",
  870. uniCompileVersion: "4.36",
  871. uniCompilerVersion: "4.36"
  872. }));
  873. }
  874. };
  875. var getDeviceInfo = {
  876. returnValue: function returnValue(result) {
  877. var _result2 = result,
  878. brand = _result2.brand,
  879. model = _result2.model;
  880. var deviceType = getGetDeviceType(result, model);
  881. var deviceBrand = getDeviceBrand(brand);
  882. useDeviceId(result);
  883. result = sortObject(Object.assign(result, {
  884. deviceType: deviceType,
  885. deviceBrand: deviceBrand,
  886. deviceModel: model
  887. }));
  888. }
  889. };
  890. var getWindowInfo = {
  891. returnValue: function returnValue(result) {
  892. addSafeAreaInsets(result);
  893. result = sortObject(Object.assign(result, {
  894. windowTop: 0,
  895. windowBottom: 0
  896. }));
  897. }
  898. };
  899. var getAppAuthorizeSetting = {
  900. returnValue: function returnValue(result) {
  901. var locationReducedAccuracy = result.locationReducedAccuracy;
  902. result.locationAccuracy = 'unsupported';
  903. if (locationReducedAccuracy === true) {
  904. result.locationAccuracy = 'reduced';
  905. } else if (locationReducedAccuracy === false) {
  906. result.locationAccuracy = 'full';
  907. }
  908. }
  909. };
  910. // import navigateTo from 'uni-helpers/navigate-to'
  911. var compressImage = {
  912. args: function args(fromArgs) {
  913. // https://developers.weixin.qq.com/community/develop/doc/000c08940c865011298e0a43256800?highLine=compressHeight
  914. if (fromArgs.compressedHeight && !fromArgs.compressHeight) {
  915. fromArgs.compressHeight = fromArgs.compressedHeight;
  916. }
  917. if (fromArgs.compressedWidth && !fromArgs.compressWidth) {
  918. fromArgs.compressWidth = fromArgs.compressedWidth;
  919. }
  920. }
  921. };
  922. var protocols = {
  923. redirectTo: redirectTo,
  924. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  925. previewImage: previewImage,
  926. getSystemInfo: getSystemInfo,
  927. getSystemInfoSync: getSystemInfo,
  928. showActionSheet: showActionSheet,
  929. getAppBaseInfo: getAppBaseInfo,
  930. getDeviceInfo: getDeviceInfo,
  931. getWindowInfo: getWindowInfo,
  932. getAppAuthorizeSetting: getAppAuthorizeSetting,
  933. compressImage: compressImage
  934. };
  935. var todos = ['vibrate', 'preloadPage', 'unPreloadPage', 'loadSubPackage'];
  936. var canIUses = [];
  937. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  938. function processCallback(methodName, method, returnValue) {
  939. return function (res) {
  940. return method(processReturnValue(methodName, res, returnValue));
  941. };
  942. }
  943. function processArgs(methodName, fromArgs) {
  944. var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  945. var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  946. var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  947. if (isPlainObject(fromArgs)) {
  948. // 一般 api 的参数解析
  949. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  950. if (isFn(argsOption)) {
  951. argsOption = argsOption(fromArgs, toArgs) || {};
  952. }
  953. for (var key in fromArgs) {
  954. if (hasOwn(argsOption, key)) {
  955. var keyOption = argsOption[key];
  956. if (isFn(keyOption)) {
  957. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  958. }
  959. if (!keyOption) {
  960. // 不支持的参数
  961. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  962. } else if (isStr(keyOption)) {
  963. // 重写参数 key
  964. toArgs[keyOption] = fromArgs[key];
  965. } else if (isPlainObject(keyOption)) {
  966. // {name:newName,value:value}可重新指定参数 key:value
  967. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  968. }
  969. } else if (CALLBACKS.indexOf(key) !== -1) {
  970. if (isFn(fromArgs[key])) {
  971. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  972. }
  973. } else {
  974. if (!keepFromArgs) {
  975. toArgs[key] = fromArgs[key];
  976. }
  977. }
  978. }
  979. return toArgs;
  980. } else if (isFn(fromArgs)) {
  981. fromArgs = processCallback(methodName, fromArgs, returnValue);
  982. }
  983. return fromArgs;
  984. }
  985. function processReturnValue(methodName, res, returnValue) {
  986. var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  987. if (isFn(protocols.returnValue)) {
  988. // 处理通用 returnValue
  989. res = protocols.returnValue(methodName, res);
  990. }
  991. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  992. }
  993. function wrapper(methodName, method) {
  994. if (hasOwn(protocols, methodName)) {
  995. var protocol = protocols[methodName];
  996. if (!protocol) {
  997. // 暂不支持的 api
  998. return function () {
  999. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  1000. };
  1001. }
  1002. return function (arg1, arg2) {
  1003. // 目前 api 最多两个参数
  1004. var options = protocol;
  1005. if (isFn(protocol)) {
  1006. options = protocol(arg1);
  1007. }
  1008. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  1009. var args = [arg1];
  1010. if (typeof arg2 !== 'undefined') {
  1011. args.push(arg2);
  1012. }
  1013. if (isFn(options.name)) {
  1014. methodName = options.name(arg1);
  1015. } else if (isStr(options.name)) {
  1016. methodName = options.name;
  1017. }
  1018. var returnValue = wx[methodName].apply(wx, args);
  1019. if (isSyncApi(methodName)) {
  1020. // 同步 api
  1021. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  1022. }
  1023. return returnValue;
  1024. };
  1025. }
  1026. return method;
  1027. }
  1028. var todoApis = Object.create(null);
  1029. var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
  1030. function createTodoApi(name) {
  1031. return function todoApi(_ref) {
  1032. var fail = _ref.fail,
  1033. complete = _ref.complete;
  1034. var res = {
  1035. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
  1036. };
  1037. isFn(fail) && fail(res);
  1038. isFn(complete) && complete(res);
  1039. };
  1040. }
  1041. TODOS.forEach(function (name) {
  1042. todoApis[name] = createTodoApi(name);
  1043. });
  1044. var providers = {
  1045. oauth: ['weixin'],
  1046. share: ['weixin'],
  1047. payment: ['wxpay'],
  1048. push: ['weixin']
  1049. };
  1050. function getProvider(_ref2) {
  1051. var service = _ref2.service,
  1052. success = _ref2.success,
  1053. fail = _ref2.fail,
  1054. complete = _ref2.complete;
  1055. var res = false;
  1056. if (providers[service]) {
  1057. res = {
  1058. errMsg: 'getProvider:ok',
  1059. service: service,
  1060. provider: providers[service]
  1061. };
  1062. isFn(success) && success(res);
  1063. } else {
  1064. res = {
  1065. errMsg: 'getProvider:fail service not found'
  1066. };
  1067. isFn(fail) && fail(res);
  1068. }
  1069. isFn(complete) && complete(res);
  1070. }
  1071. var extraApi = /*#__PURE__*/Object.freeze({
  1072. __proto__: null,
  1073. getProvider: getProvider
  1074. });
  1075. var getEmitter = function () {
  1076. var Emitter;
  1077. return function getUniEmitter() {
  1078. if (!Emitter) {
  1079. Emitter = new _vue.default();
  1080. }
  1081. return Emitter;
  1082. };
  1083. }();
  1084. function apply(ctx, method, args) {
  1085. return ctx[method].apply(ctx, args);
  1086. }
  1087. function $on() {
  1088. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  1089. }
  1090. function $off() {
  1091. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  1092. }
  1093. function $once() {
  1094. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  1095. }
  1096. function $emit() {
  1097. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  1098. }
  1099. var eventApi = /*#__PURE__*/Object.freeze({
  1100. __proto__: null,
  1101. $on: $on,
  1102. $off: $off,
  1103. $once: $once,
  1104. $emit: $emit
  1105. });
  1106. /**
  1107. * 框架内 try-catch
  1108. */
  1109. /**
  1110. * 开发者 try-catch
  1111. */
  1112. function tryCatch(fn) {
  1113. return function () {
  1114. try {
  1115. return fn.apply(fn, arguments);
  1116. } catch (e) {
  1117. // TODO
  1118. console.error(e);
  1119. }
  1120. };
  1121. }
  1122. function getApiCallbacks(params) {
  1123. var apiCallbacks = {};
  1124. for (var name in params) {
  1125. var param = params[name];
  1126. if (isFn(param)) {
  1127. apiCallbacks[name] = tryCatch(param);
  1128. delete params[name];
  1129. }
  1130. }
  1131. return apiCallbacks;
  1132. }
  1133. var cid;
  1134. var cidErrMsg;
  1135. var enabled;
  1136. function normalizePushMessage(message) {
  1137. try {
  1138. return JSON.parse(message);
  1139. } catch (e) {}
  1140. return message;
  1141. }
  1142. function invokePushCallback(args) {
  1143. if (args.type === 'enabled') {
  1144. enabled = true;
  1145. } else if (args.type === 'clientId') {
  1146. cid = args.cid;
  1147. cidErrMsg = args.errMsg;
  1148. invokeGetPushCidCallbacks(cid, args.errMsg);
  1149. } else if (args.type === 'pushMsg') {
  1150. var message = {
  1151. type: 'receive',
  1152. data: normalizePushMessage(args.message)
  1153. };
  1154. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  1155. var callback = onPushMessageCallbacks[i];
  1156. callback(message);
  1157. // 该消息已被阻止
  1158. if (message.stopped) {
  1159. break;
  1160. }
  1161. }
  1162. } else if (args.type === 'click') {
  1163. onPushMessageCallbacks.forEach(function (callback) {
  1164. callback({
  1165. type: 'click',
  1166. data: normalizePushMessage(args.message)
  1167. });
  1168. });
  1169. }
  1170. }
  1171. var getPushCidCallbacks = [];
  1172. function invokeGetPushCidCallbacks(cid, errMsg) {
  1173. getPushCidCallbacks.forEach(function (callback) {
  1174. callback(cid, errMsg);
  1175. });
  1176. getPushCidCallbacks.length = 0;
  1177. }
  1178. function getPushClientId(args) {
  1179. if (!isPlainObject(args)) {
  1180. args = {};
  1181. }
  1182. var _getApiCallbacks = getApiCallbacks(args),
  1183. success = _getApiCallbacks.success,
  1184. fail = _getApiCallbacks.fail,
  1185. complete = _getApiCallbacks.complete;
  1186. var hasSuccess = isFn(success);
  1187. var hasFail = isFn(fail);
  1188. var hasComplete = isFn(complete);
  1189. Promise.resolve().then(function () {
  1190. if (typeof enabled === 'undefined') {
  1191. enabled = false;
  1192. cid = '';
  1193. cidErrMsg = 'uniPush is not enabled';
  1194. }
  1195. getPushCidCallbacks.push(function (cid, errMsg) {
  1196. var res;
  1197. if (cid) {
  1198. res = {
  1199. errMsg: 'getPushClientId:ok',
  1200. cid: cid
  1201. };
  1202. hasSuccess && success(res);
  1203. } else {
  1204. res = {
  1205. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
  1206. };
  1207. hasFail && fail(res);
  1208. }
  1209. hasComplete && complete(res);
  1210. });
  1211. if (typeof cid !== 'undefined') {
  1212. invokeGetPushCidCallbacks(cid, cidErrMsg);
  1213. }
  1214. });
  1215. }
  1216. var onPushMessageCallbacks = [];
  1217. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  1218. var onPushMessage = function onPushMessage(fn) {
  1219. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  1220. onPushMessageCallbacks.push(fn);
  1221. }
  1222. };
  1223. var offPushMessage = function offPushMessage(fn) {
  1224. if (!fn) {
  1225. onPushMessageCallbacks.length = 0;
  1226. } else {
  1227. var index = onPushMessageCallbacks.indexOf(fn);
  1228. if (index > -1) {
  1229. onPushMessageCallbacks.splice(index, 1);
  1230. }
  1231. }
  1232. };
  1233. var baseInfo = wx.getAppBaseInfo && wx.getAppBaseInfo();
  1234. if (!baseInfo) {
  1235. baseInfo = wx.getSystemInfoSync();
  1236. }
  1237. var host = baseInfo ? baseInfo.host : null;
  1238. var shareVideoMessage = host && host.env === 'SAAASDK' ? wx.miniapp.shareVideoMessage : wx.shareVideoMessage;
  1239. var api = /*#__PURE__*/Object.freeze({
  1240. __proto__: null,
  1241. shareVideoMessage: shareVideoMessage,
  1242. getPushClientId: getPushClientId,
  1243. onPushMessage: onPushMessage,
  1244. offPushMessage: offPushMessage,
  1245. invokePushCallback: invokePushCallback
  1246. });
  1247. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1248. function findVmByVueId(vm, vuePid) {
  1249. var $children = vm.$children;
  1250. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1251. for (var i = $children.length - 1; i >= 0; i--) {
  1252. var childVm = $children[i];
  1253. if (childVm.$scope._$vueId === vuePid) {
  1254. return childVm;
  1255. }
  1256. }
  1257. // 反向递归查找
  1258. var parentVm;
  1259. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1260. parentVm = findVmByVueId($children[_i], vuePid);
  1261. if (parentVm) {
  1262. return parentVm;
  1263. }
  1264. }
  1265. }
  1266. function initBehavior(options) {
  1267. return Behavior(options);
  1268. }
  1269. function isPage() {
  1270. return !!this.route;
  1271. }
  1272. function initRelation(detail) {
  1273. this.triggerEvent('__l', detail);
  1274. }
  1275. function selectAllComponents(mpInstance, selector, $refs) {
  1276. var components = mpInstance.selectAllComponents(selector) || [];
  1277. components.forEach(function (component) {
  1278. var ref = component.dataset.ref;
  1279. $refs[ref] = component.$vm || toSkip(component);
  1280. {
  1281. if (component.dataset.vueGeneric === 'scoped') {
  1282. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1283. selectAllComponents(scopedComponent, selector, $refs);
  1284. });
  1285. }
  1286. }
  1287. });
  1288. }
  1289. function syncRefs(refs, newRefs) {
  1290. var oldKeys = (0, _construct2.default)(Set, (0, _toConsumableArray2.default)(Object.keys(refs)));
  1291. var newKeys = Object.keys(newRefs);
  1292. newKeys.forEach(function (key) {
  1293. var oldValue = refs[key];
  1294. var newValue = newRefs[key];
  1295. if (Array.isArray(oldValue) && Array.isArray(newValue) && oldValue.length === newValue.length && newValue.every(function (value) {
  1296. return oldValue.includes(value);
  1297. })) {
  1298. return;
  1299. }
  1300. refs[key] = newValue;
  1301. oldKeys.delete(key);
  1302. });
  1303. oldKeys.forEach(function (key) {
  1304. delete refs[key];
  1305. });
  1306. return refs;
  1307. }
  1308. function initRefs(vm) {
  1309. var mpInstance = vm.$scope;
  1310. var refs = {};
  1311. Object.defineProperty(vm, '$refs', {
  1312. get: function get() {
  1313. var $refs = {};
  1314. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1315. // TODO 暂不考虑 for 中的 scoped
  1316. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for') || [];
  1317. forComponents.forEach(function (component) {
  1318. var ref = component.dataset.ref;
  1319. if (!$refs[ref]) {
  1320. $refs[ref] = [];
  1321. }
  1322. $refs[ref].push(component.$vm || toSkip(component));
  1323. });
  1324. return syncRefs(refs, $refs);
  1325. }
  1326. });
  1327. }
  1328. function handleLink(event) {
  1329. var _ref3 = event.detail || event.value,
  1330. vuePid = _ref3.vuePid,
  1331. vueOptions = _ref3.vueOptions; // detail 是微信,value 是百度(dipatch)
  1332. var parentVm;
  1333. if (vuePid) {
  1334. parentVm = findVmByVueId(this.$vm, vuePid);
  1335. }
  1336. if (!parentVm) {
  1337. parentVm = this.$vm;
  1338. }
  1339. vueOptions.parent = parentVm;
  1340. }
  1341. function markMPComponent(component) {
  1342. // 在 Vue 中标记为小程序组件
  1343. var IS_MP = '__v_isMPComponent';
  1344. Object.defineProperty(component, IS_MP, {
  1345. configurable: true,
  1346. enumerable: false,
  1347. value: true
  1348. });
  1349. return component;
  1350. }
  1351. function toSkip(obj) {
  1352. var OB = '__ob__';
  1353. var SKIP = '__v_skip';
  1354. if (isObject(obj) && Object.isExtensible(obj)) {
  1355. // 避免被 @vue/composition-api 观测
  1356. Object.defineProperty(obj, OB, {
  1357. configurable: true,
  1358. enumerable: false,
  1359. value: (0, _defineProperty2.default)({}, SKIP, true)
  1360. });
  1361. }
  1362. return obj;
  1363. }
  1364. var WORKLET_RE = /_(.*)_worklet_factory_/;
  1365. function initWorkletMethods(mpMethods, vueMethods) {
  1366. if (vueMethods) {
  1367. Object.keys(vueMethods).forEach(function (name) {
  1368. var matches = name.match(WORKLET_RE);
  1369. if (matches) {
  1370. var workletName = matches[1];
  1371. mpMethods[name] = vueMethods[name];
  1372. mpMethods[workletName] = vueMethods[workletName];
  1373. }
  1374. });
  1375. }
  1376. }
  1377. var MPPage = Page;
  1378. var MPComponent = Component;
  1379. var customizeRE = /:/g;
  1380. var customize = cached(function (str) {
  1381. return camelize(str.replace(customizeRE, '-'));
  1382. });
  1383. function initTriggerEvent(mpInstance) {
  1384. var oldTriggerEvent = mpInstance.triggerEvent;
  1385. var newTriggerEvent = function newTriggerEvent(event) {
  1386. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
  1387. args[_key3 - 1] = arguments[_key3];
  1388. }
  1389. // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
  1390. if (this.$vm || this.dataset && this.dataset.comType) {
  1391. event = customize(event);
  1392. } else {
  1393. // 针对微信/QQ小程序单独补充驼峰格式事件,以兼容历史项目
  1394. var newEvent = customize(event);
  1395. if (newEvent !== event) {
  1396. oldTriggerEvent.apply(this, [newEvent].concat(args));
  1397. }
  1398. }
  1399. return oldTriggerEvent.apply(this, [event].concat(args));
  1400. };
  1401. try {
  1402. // 京东小程序 triggerEvent 为只读
  1403. mpInstance.triggerEvent = newTriggerEvent;
  1404. } catch (error) {
  1405. mpInstance._triggerEvent = newTriggerEvent;
  1406. }
  1407. }
  1408. function initHook(name, options, isComponent) {
  1409. var oldHook = options[name];
  1410. options[name] = function () {
  1411. markMPComponent(this);
  1412. initTriggerEvent(this);
  1413. if (oldHook) {
  1414. for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  1415. args[_key4] = arguments[_key4];
  1416. }
  1417. return oldHook.apply(this, args);
  1418. }
  1419. };
  1420. }
  1421. if (!MPPage.__$wrappered) {
  1422. MPPage.__$wrappered = true;
  1423. Page = function Page() {
  1424. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1425. initHook('onLoad', options);
  1426. return MPPage(options);
  1427. };
  1428. Page.after = MPPage.after;
  1429. Component = function Component() {
  1430. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1431. initHook('created', options);
  1432. return MPComponent(options);
  1433. };
  1434. }
  1435. var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
  1436. function initMocks(vm, mocks) {
  1437. var mpInstance = vm.$mp[vm.mpType];
  1438. mocks.forEach(function (mock) {
  1439. if (hasOwn(mpInstance, mock)) {
  1440. vm[mock] = mpInstance[mock];
  1441. }
  1442. });
  1443. }
  1444. function hasHook(hook, vueOptions) {
  1445. if (!vueOptions) {
  1446. return true;
  1447. }
  1448. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  1449. return true;
  1450. }
  1451. vueOptions = vueOptions.default || vueOptions;
  1452. if (isFn(vueOptions)) {
  1453. if (isFn(vueOptions.extendOptions[hook])) {
  1454. return true;
  1455. }
  1456. if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
  1457. return true;
  1458. }
  1459. return false;
  1460. }
  1461. if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
  1462. return true;
  1463. }
  1464. var mixins = vueOptions.mixins;
  1465. if (Array.isArray(mixins)) {
  1466. return !!mixins.find(function (mixin) {
  1467. return hasHook(hook, mixin);
  1468. });
  1469. }
  1470. }
  1471. function initHooks(mpOptions, hooks, vueOptions) {
  1472. hooks.forEach(function (hook) {
  1473. if (hasHook(hook, vueOptions)) {
  1474. mpOptions[hook] = function (args) {
  1475. return this.$vm && this.$vm.__call_hook(hook, args);
  1476. };
  1477. }
  1478. });
  1479. }
  1480. function initUnknownHooks(mpOptions, vueOptions) {
  1481. var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1482. findHooks(vueOptions).forEach(function (hook) {
  1483. return initHook$1(mpOptions, hook, excludes);
  1484. });
  1485. }
  1486. function findHooks(vueOptions) {
  1487. var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  1488. if (vueOptions) {
  1489. Object.keys(vueOptions).forEach(function (name) {
  1490. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  1491. hooks.push(name);
  1492. }
  1493. });
  1494. }
  1495. return hooks;
  1496. }
  1497. function initHook$1(mpOptions, hook, excludes) {
  1498. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  1499. mpOptions[hook] = function (args) {
  1500. return this.$vm && this.$vm.__call_hook(hook, args);
  1501. };
  1502. }
  1503. }
  1504. function initVueComponent(Vue, vueOptions) {
  1505. vueOptions = vueOptions.default || vueOptions;
  1506. var VueComponent;
  1507. if (isFn(vueOptions)) {
  1508. VueComponent = vueOptions;
  1509. } else {
  1510. VueComponent = Vue.extend(vueOptions);
  1511. }
  1512. vueOptions = VueComponent.options;
  1513. return [VueComponent, vueOptions];
  1514. }
  1515. function initSlots(vm, vueSlots) {
  1516. if (Array.isArray(vueSlots) && vueSlots.length) {
  1517. var $slots = Object.create(null);
  1518. vueSlots.forEach(function (slotName) {
  1519. $slots[slotName] = true;
  1520. });
  1521. vm.$scopedSlots = vm.$slots = $slots;
  1522. }
  1523. }
  1524. function initVueIds(vueIds, mpInstance) {
  1525. vueIds = (vueIds || '').split(',');
  1526. var len = vueIds.length;
  1527. if (len === 1) {
  1528. mpInstance._$vueId = vueIds[0];
  1529. } else if (len === 2) {
  1530. mpInstance._$vueId = vueIds[0];
  1531. mpInstance._$vuePid = vueIds[1];
  1532. }
  1533. }
  1534. function initData(vueOptions, context) {
  1535. var data = vueOptions.data || {};
  1536. var methods = vueOptions.methods || {};
  1537. if (typeof data === 'function') {
  1538. try {
  1539. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  1540. } catch (e) {
  1541. if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"Ruoyi-AbuCoder-UniApp-WX","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  1542. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  1543. }
  1544. }
  1545. } else {
  1546. try {
  1547. // 对 data 格式化
  1548. data = JSON.parse(JSON.stringify(data));
  1549. } catch (e) {}
  1550. }
  1551. if (!isPlainObject(data)) {
  1552. data = {};
  1553. }
  1554. Object.keys(methods).forEach(function (methodName) {
  1555. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  1556. data[methodName] = methods[methodName];
  1557. }
  1558. });
  1559. return data;
  1560. }
  1561. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  1562. function createObserver(name) {
  1563. return function observer(newVal, oldVal) {
  1564. if (this.$vm) {
  1565. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  1566. }
  1567. };
  1568. }
  1569. function initBehaviors(vueOptions, initBehavior) {
  1570. var vueBehaviors = vueOptions.behaviors;
  1571. var vueExtends = vueOptions.extends;
  1572. var vueMixins = vueOptions.mixins;
  1573. var vueProps = vueOptions.props;
  1574. if (!vueProps) {
  1575. vueOptions.props = vueProps = [];
  1576. }
  1577. var behaviors = [];
  1578. if (Array.isArray(vueBehaviors)) {
  1579. vueBehaviors.forEach(function (behavior) {
  1580. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  1581. if (behavior === 'uni://form-field') {
  1582. if (Array.isArray(vueProps)) {
  1583. vueProps.push('name');
  1584. vueProps.push('value');
  1585. } else {
  1586. vueProps.name = {
  1587. type: String,
  1588. default: ''
  1589. };
  1590. vueProps.value = {
  1591. type: [String, Number, Boolean, Array, Object, Date],
  1592. default: ''
  1593. };
  1594. }
  1595. }
  1596. });
  1597. }
  1598. if (isPlainObject(vueExtends) && vueExtends.props) {
  1599. behaviors.push(initBehavior({
  1600. properties: initProperties(vueExtends.props, true)
  1601. }));
  1602. }
  1603. if (Array.isArray(vueMixins)) {
  1604. vueMixins.forEach(function (vueMixin) {
  1605. if (isPlainObject(vueMixin) && vueMixin.props) {
  1606. behaviors.push(initBehavior({
  1607. properties: initProperties(vueMixin.props, true)
  1608. }));
  1609. }
  1610. });
  1611. }
  1612. return behaviors;
  1613. }
  1614. function parsePropType(key, type, defaultValue, file) {
  1615. // [String]=>String
  1616. if (Array.isArray(type) && type.length === 1) {
  1617. return type[0];
  1618. }
  1619. return type;
  1620. }
  1621. function initProperties(props) {
  1622. var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  1623. var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  1624. var options = arguments.length > 3 ? arguments[3] : undefined;
  1625. var properties = {};
  1626. if (!isBehavior) {
  1627. properties.vueId = {
  1628. type: String,
  1629. value: ''
  1630. };
  1631. {
  1632. if (options.virtualHost) {
  1633. properties.virtualHostStyle = {
  1634. type: null,
  1635. value: ''
  1636. };
  1637. properties.virtualHostClass = {
  1638. type: null,
  1639. value: ''
  1640. };
  1641. }
  1642. }
  1643. // scopedSlotsCompiler auto
  1644. properties.scopedSlotsCompiler = {
  1645. type: String,
  1646. value: ''
  1647. };
  1648. properties.vueSlots = {
  1649. // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  1650. type: null,
  1651. value: [],
  1652. observer: function observer(newVal, oldVal) {
  1653. var $slots = Object.create(null);
  1654. newVal.forEach(function (slotName) {
  1655. $slots[slotName] = true;
  1656. });
  1657. this.setData({
  1658. $slots: $slots
  1659. });
  1660. }
  1661. };
  1662. }
  1663. if (Array.isArray(props)) {
  1664. // ['title']
  1665. props.forEach(function (key) {
  1666. properties[key] = {
  1667. type: null,
  1668. observer: createObserver(key)
  1669. };
  1670. });
  1671. } else if (isPlainObject(props)) {
  1672. // {title:{type:String,default:''},content:String}
  1673. Object.keys(props).forEach(function (key) {
  1674. var opts = props[key];
  1675. if (isPlainObject(opts)) {
  1676. // title:{type:String,default:''}
  1677. var value = opts.default;
  1678. if (isFn(value)) {
  1679. value = value();
  1680. }
  1681. opts.type = parsePropType(key, opts.type);
  1682. properties[key] = {
  1683. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  1684. value: value,
  1685. observer: createObserver(key)
  1686. };
  1687. } else {
  1688. // content:String
  1689. var type = parsePropType(key, opts);
  1690. properties[key] = {
  1691. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  1692. observer: createObserver(key)
  1693. };
  1694. }
  1695. });
  1696. }
  1697. return properties;
  1698. }
  1699. function wrapper$1(event) {
  1700. // TODO 又得兼容 mpvue 的 mp 对象
  1701. try {
  1702. event.mp = JSON.parse(JSON.stringify(event));
  1703. } catch (e) {}
  1704. event.stopPropagation = noop;
  1705. event.preventDefault = noop;
  1706. event.target = event.target || {};
  1707. if (!hasOwn(event, 'detail')) {
  1708. event.detail = {};
  1709. }
  1710. if (hasOwn(event, 'markerId')) {
  1711. event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
  1712. event.detail.markerId = event.markerId;
  1713. }
  1714. if (isPlainObject(event.detail)) {
  1715. event.target = Object.assign({}, event.target, event.detail);
  1716. }
  1717. return event;
  1718. }
  1719. function getExtraValue(vm, dataPathsArray) {
  1720. var context = vm;
  1721. dataPathsArray.forEach(function (dataPathArray) {
  1722. var dataPath = dataPathArray[0];
  1723. var value = dataPathArray[2];
  1724. if (dataPath || typeof value !== 'undefined') {
  1725. // ['','',index,'disable']
  1726. var propPath = dataPathArray[1];
  1727. var valuePath = dataPathArray[3];
  1728. var vFor;
  1729. if (Number.isInteger(dataPath)) {
  1730. vFor = dataPath;
  1731. } else if (!dataPath) {
  1732. vFor = context;
  1733. } else if (typeof dataPath === 'string' && dataPath) {
  1734. if (dataPath.indexOf('#s#') === 0) {
  1735. vFor = dataPath.substr(3);
  1736. } else {
  1737. vFor = vm.__get_value(dataPath, context);
  1738. }
  1739. }
  1740. if (Number.isInteger(vFor)) {
  1741. context = value;
  1742. } else if (!propPath) {
  1743. context = vFor[value];
  1744. } else {
  1745. if (Array.isArray(vFor)) {
  1746. context = vFor.find(function (vForItem) {
  1747. return vm.__get_value(propPath, vForItem) === value;
  1748. });
  1749. } else if (isPlainObject(vFor)) {
  1750. context = Object.keys(vFor).find(function (vForKey) {
  1751. return vm.__get_value(propPath, vFor[vForKey]) === value;
  1752. });
  1753. } else {
  1754. console.error('v-for 暂不支持循环数据:', vFor);
  1755. }
  1756. }
  1757. if (valuePath) {
  1758. context = vm.__get_value(valuePath, context);
  1759. }
  1760. }
  1761. });
  1762. return context;
  1763. }
  1764. function processEventExtra(vm, extra, event, __args__) {
  1765. var extraObj = {};
  1766. if (Array.isArray(extra) && extra.length) {
  1767. /**
  1768. *[
  1769. * ['data.items', 'data.id', item.data.id],
  1770. * ['metas', 'id', meta.id]
  1771. *],
  1772. *[
  1773. * ['data.items', 'data.id', item.data.id],
  1774. * ['metas', 'id', meta.id]
  1775. *],
  1776. *'test'
  1777. */
  1778. extra.forEach(function (dataPath, index) {
  1779. if (typeof dataPath === 'string') {
  1780. if (!dataPath) {
  1781. // model,prop.sync
  1782. extraObj['$' + index] = vm;
  1783. } else {
  1784. if (dataPath === '$event') {
  1785. // $event
  1786. extraObj['$' + index] = event;
  1787. } else if (dataPath === 'arguments') {
  1788. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  1789. } else if (dataPath.indexOf('$event.') === 0) {
  1790. // $event.target.value
  1791. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1792. } else {
  1793. extraObj['$' + index] = vm.__get_value(dataPath);
  1794. }
  1795. }
  1796. } else {
  1797. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1798. }
  1799. });
  1800. }
  1801. return extraObj;
  1802. }
  1803. function getObjByArray(arr) {
  1804. var obj = {};
  1805. for (var i = 1; i < arr.length; i++) {
  1806. var element = arr[i];
  1807. obj[element[0]] = element[1];
  1808. }
  1809. return obj;
  1810. }
  1811. function processEventArgs(vm, event) {
  1812. var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1813. var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  1814. var isCustom = arguments.length > 4 ? arguments[4] : undefined;
  1815. var methodName = arguments.length > 5 ? arguments[5] : undefined;
  1816. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  1817. // fixed 用户直接触发 mpInstance.triggerEvent
  1818. var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
  1819. if (isCustom) {
  1820. // 自定义事件
  1821. isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
  1822. if (!args.length) {
  1823. // 无参数,直接传入 event 或 detail 数组
  1824. if (isCustomMPEvent) {
  1825. return [event];
  1826. }
  1827. return __args__;
  1828. }
  1829. }
  1830. var extraObj = processEventExtra(vm, extra, event, __args__);
  1831. var ret = [];
  1832. args.forEach(function (arg) {
  1833. if (arg === '$event') {
  1834. if (methodName === '__set_model' && !isCustom) {
  1835. // input v-model value
  1836. ret.push(event.target.value);
  1837. } else {
  1838. if (isCustom && !isCustomMPEvent) {
  1839. ret.push(__args__[0]);
  1840. } else {
  1841. // wxcomponent 组件或内置组件
  1842. ret.push(event);
  1843. }
  1844. }
  1845. } else {
  1846. if (Array.isArray(arg) && arg[0] === 'o') {
  1847. ret.push(getObjByArray(arg));
  1848. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  1849. ret.push(extraObj[arg]);
  1850. } else {
  1851. ret.push(arg);
  1852. }
  1853. }
  1854. });
  1855. return ret;
  1856. }
  1857. var ONCE = '~';
  1858. var CUSTOM = '^';
  1859. function isMatchEventType(eventType, optType) {
  1860. return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
  1861. }
  1862. function getContextVm(vm) {
  1863. var $parent = vm.$parent;
  1864. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  1865. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  1866. $parent = $parent.$parent;
  1867. }
  1868. return $parent && $parent.$parent;
  1869. }
  1870. function handleEvent(event) {
  1871. var _this2 = this;
  1872. event = wrapper$1(event);
  1873. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  1874. var dataset = (event.currentTarget || event.target).dataset;
  1875. if (!dataset) {
  1876. return console.warn('事件信息不存在');
  1877. }
  1878. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  1879. if (!eventOpts) {
  1880. return console.warn('事件信息不存在');
  1881. }
  1882. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  1883. var eventType = event.type;
  1884. var ret = [];
  1885. eventOpts.forEach(function (eventOpt) {
  1886. var type = eventOpt[0];
  1887. var eventsArray = eventOpt[1];
  1888. var isCustom = type.charAt(0) === CUSTOM;
  1889. type = isCustom ? type.slice(1) : type;
  1890. var isOnce = type.charAt(0) === ONCE;
  1891. type = isOnce ? type.slice(1) : type;
  1892. if (eventsArray && isMatchEventType(eventType, type)) {
  1893. eventsArray.forEach(function (eventArray) {
  1894. var methodName = eventArray[0];
  1895. if (methodName) {
  1896. var handlerCtx = _this2.$vm;
  1897. if (handlerCtx.$options.generic) {
  1898. // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  1899. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  1900. }
  1901. if (methodName === '$emit') {
  1902. handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
  1903. return;
  1904. }
  1905. var handler = handlerCtx[methodName];
  1906. if (!isFn(handler)) {
  1907. var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
  1908. var path = _this2.route || _this2.is;
  1909. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  1910. }
  1911. if (isOnce) {
  1912. if (handler.once) {
  1913. return;
  1914. }
  1915. handler.once = true;
  1916. }
  1917. var params = processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
  1918. params = Array.isArray(params) ? params : [];
  1919. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  1920. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  1921. // eslint-disable-next-line no-sparse-arrays
  1922. params = params.concat([,,,,,,,,,, event]);
  1923. }
  1924. ret.push(handler.apply(handlerCtx, params));
  1925. }
  1926. });
  1927. }
  1928. });
  1929. if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
  1930. return ret[0];
  1931. }
  1932. }
  1933. var eventChannels = {};
  1934. function getEventChannel(id) {
  1935. var eventChannel = eventChannels[id];
  1936. delete eventChannels[id];
  1937. return eventChannel;
  1938. }
  1939. var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
  1940. function initEventChannel() {
  1941. _vue.default.prototype.getOpenerEventChannel = function () {
  1942. // 微信小程序使用自身getOpenerEventChannel
  1943. {
  1944. return this.$scope.getOpenerEventChannel();
  1945. }
  1946. };
  1947. var callHook = _vue.default.prototype.__call_hook;
  1948. _vue.default.prototype.__call_hook = function (hook, args) {
  1949. if (hook === 'onLoad' && args && args.__id__) {
  1950. this.__eventChannel__ = getEventChannel(args.__id__);
  1951. delete args.__id__;
  1952. }
  1953. return callHook.call(this, hook, args);
  1954. };
  1955. }
  1956. function initScopedSlotsParams() {
  1957. var center = {};
  1958. var parents = {};
  1959. function currentId(fn) {
  1960. var vueIds = this.$options.propsData.vueId;
  1961. if (vueIds) {
  1962. var vueId = vueIds.split(',')[0];
  1963. fn(vueId);
  1964. }
  1965. }
  1966. _vue.default.prototype.$hasSSP = function (vueId) {
  1967. var slot = center[vueId];
  1968. if (!slot) {
  1969. parents[vueId] = this;
  1970. this.$on('hook:destroyed', function () {
  1971. delete parents[vueId];
  1972. });
  1973. }
  1974. return slot;
  1975. };
  1976. _vue.default.prototype.$getSSP = function (vueId, name, needAll) {
  1977. var slot = center[vueId];
  1978. if (slot) {
  1979. var params = slot[name] || [];
  1980. if (needAll) {
  1981. return params;
  1982. }
  1983. return params[0];
  1984. }
  1985. };
  1986. _vue.default.prototype.$setSSP = function (name, value) {
  1987. var index = 0;
  1988. currentId.call(this, function (vueId) {
  1989. var slot = center[vueId];
  1990. var params = slot[name] = slot[name] || [];
  1991. params.push(value);
  1992. index = params.length - 1;
  1993. });
  1994. return index;
  1995. };
  1996. _vue.default.prototype.$initSSP = function () {
  1997. currentId.call(this, function (vueId) {
  1998. center[vueId] = {};
  1999. });
  2000. };
  2001. _vue.default.prototype.$callSSP = function () {
  2002. currentId.call(this, function (vueId) {
  2003. if (parents[vueId]) {
  2004. parents[vueId].$forceUpdate();
  2005. }
  2006. });
  2007. };
  2008. _vue.default.mixin({
  2009. destroyed: function destroyed() {
  2010. var propsData = this.$options.propsData;
  2011. var vueId = propsData && propsData.vueId;
  2012. if (vueId) {
  2013. delete center[vueId];
  2014. delete parents[vueId];
  2015. }
  2016. }
  2017. });
  2018. }
  2019. function parseBaseApp(vm, _ref4) {
  2020. var mocks = _ref4.mocks,
  2021. initRefs = _ref4.initRefs;
  2022. initEventChannel();
  2023. {
  2024. initScopedSlotsParams();
  2025. }
  2026. if (vm.$options.store) {
  2027. _vue.default.prototype.$store = vm.$options.store;
  2028. }
  2029. uniIdMixin(_vue.default);
  2030. _vue.default.prototype.mpHost = "mp-weixin";
  2031. _vue.default.mixin({
  2032. beforeCreate: function beforeCreate() {
  2033. if (!this.$options.mpType) {
  2034. return;
  2035. }
  2036. this.mpType = this.$options.mpType;
  2037. this.$mp = (0, _defineProperty2.default)({
  2038. data: {}
  2039. }, this.mpType, this.$options.mpInstance);
  2040. this.$scope = this.$options.mpInstance;
  2041. delete this.$options.mpType;
  2042. delete this.$options.mpInstance;
  2043. if (this.mpType === 'page' && typeof getApp === 'function') {
  2044. // hack vue-i18n
  2045. var app = getApp();
  2046. if (app.$vm && app.$vm.$i18n) {
  2047. this._i18n = app.$vm.$i18n;
  2048. }
  2049. }
  2050. if (this.mpType !== 'app') {
  2051. initRefs(this);
  2052. initMocks(this, mocks);
  2053. }
  2054. }
  2055. });
  2056. var appOptions = {
  2057. onLaunch: function onLaunch(args) {
  2058. if (this.$vm) {
  2059. // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  2060. return;
  2061. }
  2062. {
  2063. if (wx.canIUse && !wx.canIUse('nextTick')) {
  2064. // 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  2065. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  2066. }
  2067. }
  2068. this.$vm = vm;
  2069. this.$vm.$mp = {
  2070. app: this
  2071. };
  2072. this.$vm.$scope = this;
  2073. // vm 上也挂载 globalData
  2074. this.$vm.globalData = this.globalData;
  2075. this.$vm._isMounted = true;
  2076. this.$vm.__call_hook('mounted', args);
  2077. this.$vm.__call_hook('onLaunch', args);
  2078. }
  2079. };
  2080. // 兼容旧版本 globalData
  2081. appOptions.globalData = vm.$options.globalData || {};
  2082. // 将 methods 中的方法挂在 getApp() 中
  2083. var methods = vm.$options.methods;
  2084. if (methods) {
  2085. Object.keys(methods).forEach(function (name) {
  2086. appOptions[name] = methods[name];
  2087. });
  2088. }
  2089. initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
  2090. initHooks(appOptions, hooks);
  2091. initUnknownHooks(appOptions, vm.$options);
  2092. return appOptions;
  2093. }
  2094. function parseApp(vm) {
  2095. return parseBaseApp(vm, {
  2096. mocks: mocks,
  2097. initRefs: initRefs
  2098. });
  2099. }
  2100. function createApp(vm) {
  2101. App(parseApp(vm));
  2102. return vm;
  2103. }
  2104. var encodeReserveRE = /[!'()*]/g;
  2105. var encodeReserveReplacer = function encodeReserveReplacer(c) {
  2106. return '%' + c.charCodeAt(0).toString(16);
  2107. };
  2108. var commaRE = /%2C/g;
  2109. // fixed encodeURIComponent which is more conformant to RFC3986:
  2110. // - escapes [!'()*]
  2111. // - preserve commas
  2112. var encode = function encode(str) {
  2113. return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
  2114. };
  2115. function stringifyQuery(obj) {
  2116. var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  2117. var res = obj ? Object.keys(obj).map(function (key) {
  2118. var val = obj[key];
  2119. if (val === undefined) {
  2120. return '';
  2121. }
  2122. if (val === null) {
  2123. return encodeStr(key);
  2124. }
  2125. if (Array.isArray(val)) {
  2126. var result = [];
  2127. val.forEach(function (val2) {
  2128. if (val2 === undefined) {
  2129. return;
  2130. }
  2131. if (val2 === null) {
  2132. result.push(encodeStr(key));
  2133. } else {
  2134. result.push(encodeStr(key) + '=' + encodeStr(val2));
  2135. }
  2136. });
  2137. return result.join('&');
  2138. }
  2139. return encodeStr(key) + '=' + encodeStr(val);
  2140. }).filter(function (x) {
  2141. return x.length > 0;
  2142. }).join('&') : null;
  2143. return res ? "?".concat(res) : '';
  2144. }
  2145. function parseBaseComponent(vueComponentOptions) {
  2146. var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  2147. isPage = _ref5.isPage,
  2148. initRelation = _ref5.initRelation;
  2149. var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
  2150. var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
  2151. _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
  2152. VueComponent = _initVueComponent2[0],
  2153. vueOptions = _initVueComponent2[1];
  2154. var options = _objectSpread({
  2155. multipleSlots: true,
  2156. // styleIsolation: 'apply-shared',
  2157. addGlobalClass: true
  2158. }, vueOptions.options || {});
  2159. {
  2160. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  2161. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  2162. Object.assign(options, vueOptions['mp-weixin'].options);
  2163. }
  2164. }
  2165. var componentOptions = {
  2166. options: options,
  2167. data: initData(vueOptions, _vue.default.prototype),
  2168. behaviors: initBehaviors(vueOptions, initBehavior),
  2169. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  2170. lifetimes: {
  2171. attached: function attached() {
  2172. var properties = this.properties;
  2173. var options = {
  2174. mpType: isPage.call(this) ? 'page' : 'component',
  2175. mpInstance: this,
  2176. propsData: properties
  2177. };
  2178. initVueIds(properties.vueId, this);
  2179. // 处理父子关系
  2180. initRelation.call(this, {
  2181. vuePid: this._$vuePid,
  2182. vueOptions: options
  2183. });
  2184. // 初始化 vue 实例
  2185. this.$vm = new VueComponent(options);
  2186. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  2187. initSlots(this.$vm, properties.vueSlots);
  2188. // 触发首次 setData
  2189. this.$vm.$mount();
  2190. },
  2191. ready: function ready() {
  2192. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  2193. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  2194. if (this.$vm) {
  2195. this.$vm._isMounted = true;
  2196. this.$vm.__call_hook('mounted');
  2197. this.$vm.__call_hook('onReady');
  2198. }
  2199. },
  2200. detached: function detached() {
  2201. this.$vm && this.$vm.$destroy();
  2202. }
  2203. },
  2204. pageLifetimes: {
  2205. show: function show(args) {
  2206. this.$vm && this.$vm.__call_hook('onPageShow', args);
  2207. },
  2208. hide: function hide() {
  2209. this.$vm && this.$vm.__call_hook('onPageHide');
  2210. },
  2211. resize: function resize(size) {
  2212. this.$vm && this.$vm.__call_hook('onPageResize', size);
  2213. }
  2214. },
  2215. methods: {
  2216. __l: handleLink,
  2217. __e: handleEvent
  2218. }
  2219. };
  2220. // externalClasses
  2221. if (vueOptions.externalClasses) {
  2222. componentOptions.externalClasses = vueOptions.externalClasses;
  2223. }
  2224. if (Array.isArray(vueOptions.wxsCallMethods)) {
  2225. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  2226. componentOptions.methods[callMethod] = function (args) {
  2227. return this.$vm[callMethod](args);
  2228. };
  2229. });
  2230. }
  2231. if (needVueOptions) {
  2232. return [componentOptions, vueOptions, VueComponent];
  2233. }
  2234. if (isPage) {
  2235. return componentOptions;
  2236. }
  2237. return [componentOptions, VueComponent];
  2238. }
  2239. function parseComponent(vueComponentOptions, needVueOptions) {
  2240. return parseBaseComponent(vueComponentOptions, {
  2241. isPage: isPage,
  2242. initRelation: initRelation
  2243. }, needVueOptions);
  2244. }
  2245. var hooks$1 = ['onShow', 'onHide', 'onUnload'];
  2246. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  2247. function parseBasePage(vuePageOptions) {
  2248. var _parseComponent = parseComponent(vuePageOptions, true),
  2249. _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
  2250. pageOptions = _parseComponent2[0],
  2251. vueOptions = _parseComponent2[1];
  2252. initHooks(pageOptions.methods, hooks$1, vueOptions);
  2253. pageOptions.methods.onLoad = function (query) {
  2254. this.options = query;
  2255. var copyQuery = Object.assign({}, query);
  2256. delete copyQuery.__id__;
  2257. this.$page = {
  2258. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
  2259. };
  2260. this.$vm.$mp.query = query; // 兼容 mpvue
  2261. this.$vm.__call_hook('onLoad', query);
  2262. };
  2263. {
  2264. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  2265. }
  2266. {
  2267. initWorkletMethods(pageOptions.methods, vueOptions.methods);
  2268. }
  2269. return pageOptions;
  2270. }
  2271. function parsePage(vuePageOptions) {
  2272. return parseBasePage(vuePageOptions);
  2273. }
  2274. function createPage(vuePageOptions) {
  2275. {
  2276. return Component(parsePage(vuePageOptions));
  2277. }
  2278. }
  2279. function createComponent(vueOptions) {
  2280. {
  2281. return Component(parseComponent(vueOptions));
  2282. }
  2283. }
  2284. function createSubpackageApp(vm) {
  2285. var appOptions = parseApp(vm);
  2286. var app = getApp({
  2287. allowDefault: true
  2288. });
  2289. vm.$scope = app;
  2290. var globalData = app.globalData;
  2291. if (globalData) {
  2292. Object.keys(appOptions.globalData).forEach(function (name) {
  2293. if (!hasOwn(globalData, name)) {
  2294. globalData[name] = appOptions.globalData[name];
  2295. }
  2296. });
  2297. }
  2298. Object.keys(appOptions).forEach(function (name) {
  2299. if (!hasOwn(app, name)) {
  2300. app[name] = appOptions[name];
  2301. }
  2302. });
  2303. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2304. wx.onAppShow(function () {
  2305. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  2306. args[_key5] = arguments[_key5];
  2307. }
  2308. vm.__call_hook('onShow', args);
  2309. });
  2310. }
  2311. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2312. wx.onAppHide(function () {
  2313. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  2314. args[_key6] = arguments[_key6];
  2315. }
  2316. vm.__call_hook('onHide', args);
  2317. });
  2318. }
  2319. if (isFn(appOptions.onLaunch)) {
  2320. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2321. vm.__call_hook('onLaunch', args);
  2322. }
  2323. return vm;
  2324. }
  2325. function createPlugin(vm) {
  2326. var appOptions = parseApp(vm);
  2327. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2328. wx.onAppShow(function () {
  2329. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  2330. args[_key7] = arguments[_key7];
  2331. }
  2332. vm.__call_hook('onShow', args);
  2333. });
  2334. }
  2335. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2336. wx.onAppHide(function () {
  2337. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  2338. args[_key8] = arguments[_key8];
  2339. }
  2340. vm.__call_hook('onHide', args);
  2341. });
  2342. }
  2343. if (isFn(appOptions.onLaunch)) {
  2344. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2345. vm.__call_hook('onLaunch', args);
  2346. }
  2347. return vm;
  2348. }
  2349. todos.forEach(function (todoApi) {
  2350. protocols[todoApi] = false;
  2351. });
  2352. canIUses.forEach(function (canIUseApi) {
  2353. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  2354. if (!wx.canIUse(apiName)) {
  2355. protocols[canIUseApi] = false;
  2356. }
  2357. });
  2358. var uni = {};
  2359. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  2360. uni = new Proxy({}, {
  2361. get: function get(target, name) {
  2362. if (hasOwn(target, name)) {
  2363. return target[name];
  2364. }
  2365. if (baseApi[name]) {
  2366. return baseApi[name];
  2367. }
  2368. if (api[name]) {
  2369. return promisify(name, api[name]);
  2370. }
  2371. {
  2372. if (extraApi[name]) {
  2373. return promisify(name, extraApi[name]);
  2374. }
  2375. if (todoApis[name]) {
  2376. return promisify(name, todoApis[name]);
  2377. }
  2378. }
  2379. if (eventApi[name]) {
  2380. return eventApi[name];
  2381. }
  2382. return promisify(name, wrapper(name, wx[name]));
  2383. },
  2384. set: function set(target, name, value) {
  2385. target[name] = value;
  2386. return true;
  2387. }
  2388. });
  2389. } else {
  2390. Object.keys(baseApi).forEach(function (name) {
  2391. uni[name] = baseApi[name];
  2392. });
  2393. {
  2394. Object.keys(todoApis).forEach(function (name) {
  2395. uni[name] = promisify(name, todoApis[name]);
  2396. });
  2397. Object.keys(extraApi).forEach(function (name) {
  2398. uni[name] = promisify(name, extraApi[name]);
  2399. });
  2400. }
  2401. Object.keys(eventApi).forEach(function (name) {
  2402. uni[name] = eventApi[name];
  2403. });
  2404. Object.keys(api).forEach(function (name) {
  2405. uni[name] = promisify(name, api[name]);
  2406. });
  2407. Object.keys(wx).forEach(function (name) {
  2408. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  2409. uni[name] = promisify(name, wrapper(name, wx[name]));
  2410. }
  2411. });
  2412. }
  2413. wx.createApp = createApp;
  2414. wx.createPage = createPage;
  2415. wx.createComponent = createComponent;
  2416. wx.createSubpackageApp = createSubpackageApp;
  2417. wx.createPlugin = createPlugin;
  2418. var uni$1 = uni;
  2419. var _default = uni$1;
  2420. exports.default = _default;
  2421. /* 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)))
  2422. /***/ }),
  2423. /* 3 */
  2424. /*!***********************************!*\
  2425. !*** (webpack)/buildin/global.js ***!
  2426. \***********************************/
  2427. /*! no static exports found */
  2428. /***/ (function(module, exports) {
  2429. var g;
  2430. // This works in non-strict mode
  2431. g = (function() {
  2432. return this;
  2433. })();
  2434. try {
  2435. // This works if eval is allowed (see CSP)
  2436. g = g || new Function("return this")();
  2437. } catch (e) {
  2438. // This works if the window reference is available
  2439. if (typeof window === "object") g = window;
  2440. }
  2441. // g can still be undefined, but nothing to do about it...
  2442. // We return undefined, instead of nothing here, so it's
  2443. // easier to handle this case. if(!global) { ...}
  2444. module.exports = g;
  2445. /***/ }),
  2446. /* 4 */
  2447. /*!**********************************************************************!*\
  2448. !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  2449. \**********************************************************************/
  2450. /*! no static exports found */
  2451. /***/ (function(module, exports) {
  2452. function _interopRequireDefault(obj) {
  2453. return obj && obj.__esModule ? obj : {
  2454. "default": obj
  2455. };
  2456. }
  2457. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2458. /***/ }),
  2459. /* 5 */
  2460. /*!**************************************************************!*\
  2461. !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  2462. \**************************************************************/
  2463. /*! no static exports found */
  2464. /***/ (function(module, exports, __webpack_require__) {
  2465. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  2466. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 7);
  2467. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2468. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  2469. function _slicedToArray(arr, i) {
  2470. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
  2471. }
  2472. module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2473. /***/ }),
  2474. /* 6 */
  2475. /*!***************************************************************!*\
  2476. !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  2477. \***************************************************************/
  2478. /*! no static exports found */
  2479. /***/ (function(module, exports) {
  2480. function _arrayWithHoles(arr) {
  2481. if (Array.isArray(arr)) return arr;
  2482. }
  2483. module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2484. /***/ }),
  2485. /* 7 */
  2486. /*!*********************************************************************!*\
  2487. !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  2488. \*********************************************************************/
  2489. /*! no static exports found */
  2490. /***/ (function(module, exports) {
  2491. function _iterableToArrayLimit(r, l) {
  2492. var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  2493. if (null != t) {
  2494. var e,
  2495. n,
  2496. i,
  2497. u,
  2498. a = [],
  2499. f = !0,
  2500. o = !1;
  2501. try {
  2502. if (i = (t = t.call(r)).next, 0 === l) {
  2503. if (Object(t) !== t) return;
  2504. f = !1;
  2505. } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) {
  2506. ;
  2507. }
  2508. } catch (r) {
  2509. o = !0, n = r;
  2510. } finally {
  2511. try {
  2512. if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
  2513. } finally {
  2514. if (o) throw n;
  2515. }
  2516. }
  2517. return a;
  2518. }
  2519. }
  2520. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2521. /***/ }),
  2522. /* 8 */
  2523. /*!***************************************************************************!*\
  2524. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  2525. \***************************************************************************/
  2526. /*! no static exports found */
  2527. /***/ (function(module, exports, __webpack_require__) {
  2528. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2529. function _unsupportedIterableToArray(o, minLen) {
  2530. if (!o) return;
  2531. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  2532. var n = Object.prototype.toString.call(o).slice(8, -1);
  2533. if (n === "Object" && o.constructor) n = o.constructor.name;
  2534. if (n === "Map" || n === "Set") return Array.from(o);
  2535. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  2536. }
  2537. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2538. /***/ }),
  2539. /* 9 */
  2540. /*!*****************************************************************!*\
  2541. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  2542. \*****************************************************************/
  2543. /*! no static exports found */
  2544. /***/ (function(module, exports) {
  2545. function _arrayLikeToArray(arr, len) {
  2546. if (len == null || len > arr.length) len = arr.length;
  2547. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  2548. arr2[i] = arr[i];
  2549. }
  2550. return arr2;
  2551. }
  2552. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2553. /***/ }),
  2554. /* 10 */
  2555. /*!****************************************************************!*\
  2556. !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
  2557. \****************************************************************/
  2558. /*! no static exports found */
  2559. /***/ (function(module, exports) {
  2560. function _nonIterableRest() {
  2561. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2562. }
  2563. module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2564. /***/ }),
  2565. /* 11 */
  2566. /*!***************************************************************!*\
  2567. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  2568. \***************************************************************/
  2569. /*! no static exports found */
  2570. /***/ (function(module, exports, __webpack_require__) {
  2571. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  2572. function _defineProperty(obj, key, value) {
  2573. key = toPropertyKey(key);
  2574. if (key in obj) {
  2575. Object.defineProperty(obj, key, {
  2576. value: value,
  2577. enumerable: true,
  2578. configurable: true,
  2579. writable: true
  2580. });
  2581. } else {
  2582. obj[key] = value;
  2583. }
  2584. return obj;
  2585. }
  2586. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2587. /***/ }),
  2588. /* 12 */
  2589. /*!**************************************************************!*\
  2590. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  2591. \**************************************************************/
  2592. /*! no static exports found */
  2593. /***/ (function(module, exports, __webpack_require__) {
  2594. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2595. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
  2596. function toPropertyKey(t) {
  2597. var i = toPrimitive(t, "string");
  2598. return "symbol" == _typeof(i) ? i : i + "";
  2599. }
  2600. module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2601. /***/ }),
  2602. /* 13 */
  2603. /*!*******************************************************!*\
  2604. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  2605. \*******************************************************/
  2606. /*! no static exports found */
  2607. /***/ (function(module, exports) {
  2608. function _typeof(o) {
  2609. "@babel/helpers - typeof";
  2610. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
  2611. return typeof o;
  2612. } : function (o) {
  2613. return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
  2614. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
  2615. }
  2616. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2617. /***/ }),
  2618. /* 14 */
  2619. /*!************************************************************!*\
  2620. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  2621. \************************************************************/
  2622. /*! no static exports found */
  2623. /***/ (function(module, exports, __webpack_require__) {
  2624. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2625. function toPrimitive(t, r) {
  2626. if ("object" != _typeof(t) || !t) return t;
  2627. var e = t[Symbol.toPrimitive];
  2628. if (void 0 !== e) {
  2629. var i = e.call(t, r || "default");
  2630. if ("object" != _typeof(i)) return i;
  2631. throw new TypeError("@@toPrimitive must return a primitive value.");
  2632. }
  2633. return ("string" === r ? String : Number)(t);
  2634. }
  2635. module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2636. /***/ }),
  2637. /* 15 */
  2638. /*!**********************************************************!*\
  2639. !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  2640. \**********************************************************/
  2641. /*! no static exports found */
  2642. /***/ (function(module, exports, __webpack_require__) {
  2643. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  2644. var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 17);
  2645. function _construct(t, e, r) {
  2646. if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
  2647. var o = [null];
  2648. o.push.apply(o, e);
  2649. var p = new (t.bind.apply(t, o))();
  2650. return r && setPrototypeOf(p, r.prototype), p;
  2651. }
  2652. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2653. /***/ }),
  2654. /* 16 */
  2655. /*!***************************************************************!*\
  2656. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  2657. \***************************************************************/
  2658. /*! no static exports found */
  2659. /***/ (function(module, exports) {
  2660. function _setPrototypeOf(o, p) {
  2661. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  2662. o.__proto__ = p;
  2663. return o;
  2664. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2665. return _setPrototypeOf(o, p);
  2666. }
  2667. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2668. /***/ }),
  2669. /* 17 */
  2670. /*!*************************************************************************!*\
  2671. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  2672. \*************************************************************************/
  2673. /*! no static exports found */
  2674. /***/ (function(module, exports) {
  2675. function _isNativeReflectConstruct() {
  2676. try {
  2677. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  2678. } catch (t) {}
  2679. return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() {
  2680. return !!t;
  2681. }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
  2682. }
  2683. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2684. /***/ }),
  2685. /* 18 */
  2686. /*!******************************************************************!*\
  2687. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  2688. \******************************************************************/
  2689. /*! no static exports found */
  2690. /***/ (function(module, exports, __webpack_require__) {
  2691. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
  2692. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  2693. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2694. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
  2695. function _toConsumableArray(arr) {
  2696. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  2697. }
  2698. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2699. /***/ }),
  2700. /* 19 */
  2701. /*!******************************************************************!*\
  2702. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  2703. \******************************************************************/
  2704. /*! no static exports found */
  2705. /***/ (function(module, exports, __webpack_require__) {
  2706. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2707. function _arrayWithoutHoles(arr) {
  2708. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  2709. }
  2710. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2711. /***/ }),
  2712. /* 20 */
  2713. /*!****************************************************************!*\
  2714. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  2715. \****************************************************************/
  2716. /*! no static exports found */
  2717. /***/ (function(module, exports) {
  2718. function _iterableToArray(iter) {
  2719. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  2720. }
  2721. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2722. /***/ }),
  2723. /* 21 */
  2724. /*!******************************************************************!*\
  2725. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  2726. \******************************************************************/
  2727. /*! no static exports found */
  2728. /***/ (function(module, exports) {
  2729. function _nonIterableSpread() {
  2730. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2731. }
  2732. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2733. /***/ }),
  2734. /* 22 */
  2735. /*!*************************************************************!*\
  2736. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  2737. \*************************************************************/
  2738. /*! no static exports found */
  2739. /***/ (function(module, exports, __webpack_require__) {
  2740. "use strict";
  2741. /* WEBPACK VAR INJECTION */(function(uni, global) {
  2742. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  2743. Object.defineProperty(exports, "__esModule", {
  2744. value: true
  2745. });
  2746. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  2747. exports.compileI18nJsonStr = compileI18nJsonStr;
  2748. exports.hasI18nJson = hasI18nJson;
  2749. exports.initVueI18n = initVueI18n;
  2750. exports.isI18nStr = isI18nStr;
  2751. exports.isString = void 0;
  2752. exports.normalizeLocale = normalizeLocale;
  2753. exports.parseI18nJson = parseI18nJson;
  2754. exports.resolveLocale = resolveLocale;
  2755. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  2756. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  2757. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  2758. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  2759. var isObject = function isObject(val) {
  2760. return val !== null && (0, _typeof2.default)(val) === 'object';
  2761. };
  2762. var defaultDelimiters = ['{', '}'];
  2763. var BaseFormatter = /*#__PURE__*/function () {
  2764. function BaseFormatter() {
  2765. (0, _classCallCheck2.default)(this, BaseFormatter);
  2766. this._caches = Object.create(null);
  2767. }
  2768. (0, _createClass2.default)(BaseFormatter, [{
  2769. key: "interpolate",
  2770. value: function interpolate(message, values) {
  2771. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  2772. if (!values) {
  2773. return [message];
  2774. }
  2775. var tokens = this._caches[message];
  2776. if (!tokens) {
  2777. tokens = parse(message, delimiters);
  2778. this._caches[message] = tokens;
  2779. }
  2780. return compile(tokens, values);
  2781. }
  2782. }]);
  2783. return BaseFormatter;
  2784. }();
  2785. exports.Formatter = BaseFormatter;
  2786. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  2787. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  2788. function parse(format, _ref) {
  2789. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  2790. startDelimiter = _ref2[0],
  2791. endDelimiter = _ref2[1];
  2792. var tokens = [];
  2793. var position = 0;
  2794. var text = '';
  2795. while (position < format.length) {
  2796. var char = format[position++];
  2797. if (char === startDelimiter) {
  2798. if (text) {
  2799. tokens.push({
  2800. type: 'text',
  2801. value: text
  2802. });
  2803. }
  2804. text = '';
  2805. var sub = '';
  2806. char = format[position++];
  2807. while (char !== undefined && char !== endDelimiter) {
  2808. sub += char;
  2809. char = format[position++];
  2810. }
  2811. var isClosed = char === endDelimiter;
  2812. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  2813. tokens.push({
  2814. value: sub,
  2815. type: type
  2816. });
  2817. }
  2818. // else if (char === '%') {
  2819. // // when found rails i18n syntax, skip text capture
  2820. // if (format[position] !== '{') {
  2821. // text += char
  2822. // }
  2823. // }
  2824. else {
  2825. text += char;
  2826. }
  2827. }
  2828. text && tokens.push({
  2829. type: 'text',
  2830. value: text
  2831. });
  2832. return tokens;
  2833. }
  2834. function compile(tokens, values) {
  2835. var compiled = [];
  2836. var index = 0;
  2837. var mode = Array.isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  2838. if (mode === 'unknown') {
  2839. return compiled;
  2840. }
  2841. while (index < tokens.length) {
  2842. var token = tokens[index];
  2843. switch (token.type) {
  2844. case 'text':
  2845. compiled.push(token.value);
  2846. break;
  2847. case 'list':
  2848. compiled.push(values[parseInt(token.value, 10)]);
  2849. break;
  2850. case 'named':
  2851. if (mode === 'named') {
  2852. compiled.push(values[token.value]);
  2853. } else {
  2854. if (true) {
  2855. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  2856. }
  2857. }
  2858. break;
  2859. case 'unknown':
  2860. if (true) {
  2861. console.warn("Detect 'unknown' type of token!");
  2862. }
  2863. break;
  2864. }
  2865. index++;
  2866. }
  2867. return compiled;
  2868. }
  2869. var LOCALE_ZH_HANS = 'zh-Hans';
  2870. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  2871. var LOCALE_ZH_HANT = 'zh-Hant';
  2872. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  2873. var LOCALE_EN = 'en';
  2874. exports.LOCALE_EN = LOCALE_EN;
  2875. var LOCALE_FR = 'fr';
  2876. exports.LOCALE_FR = LOCALE_FR;
  2877. var LOCALE_ES = 'es';
  2878. exports.LOCALE_ES = LOCALE_ES;
  2879. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2880. var hasOwn = function hasOwn(val, key) {
  2881. return hasOwnProperty.call(val, key);
  2882. };
  2883. var defaultFormatter = new BaseFormatter();
  2884. function include(str, parts) {
  2885. return !!parts.find(function (part) {
  2886. return str.indexOf(part) !== -1;
  2887. });
  2888. }
  2889. function startsWith(str, parts) {
  2890. return parts.find(function (part) {
  2891. return str.indexOf(part) === 0;
  2892. });
  2893. }
  2894. function normalizeLocale(locale, messages) {
  2895. if (!locale) {
  2896. return;
  2897. }
  2898. locale = locale.trim().replace(/_/g, '-');
  2899. if (messages && messages[locale]) {
  2900. return locale;
  2901. }
  2902. locale = locale.toLowerCase();
  2903. if (locale === 'chinese') {
  2904. // 支付宝
  2905. return LOCALE_ZH_HANS;
  2906. }
  2907. if (locale.indexOf('zh') === 0) {
  2908. if (locale.indexOf('-hans') > -1) {
  2909. return LOCALE_ZH_HANS;
  2910. }
  2911. if (locale.indexOf('-hant') > -1) {
  2912. return LOCALE_ZH_HANT;
  2913. }
  2914. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  2915. return LOCALE_ZH_HANT;
  2916. }
  2917. return LOCALE_ZH_HANS;
  2918. }
  2919. var locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES];
  2920. if (messages && Object.keys(messages).length > 0) {
  2921. locales = Object.keys(messages);
  2922. }
  2923. var lang = startsWith(locale, locales);
  2924. if (lang) {
  2925. return lang;
  2926. }
  2927. }
  2928. var I18n = /*#__PURE__*/function () {
  2929. function I18n(_ref3) {
  2930. var locale = _ref3.locale,
  2931. fallbackLocale = _ref3.fallbackLocale,
  2932. messages = _ref3.messages,
  2933. watcher = _ref3.watcher,
  2934. formater = _ref3.formater;
  2935. (0, _classCallCheck2.default)(this, I18n);
  2936. this.locale = LOCALE_EN;
  2937. this.fallbackLocale = LOCALE_EN;
  2938. this.message = {};
  2939. this.messages = {};
  2940. this.watchers = [];
  2941. if (fallbackLocale) {
  2942. this.fallbackLocale = fallbackLocale;
  2943. }
  2944. this.formater = formater || defaultFormatter;
  2945. this.messages = messages || {};
  2946. this.setLocale(locale || LOCALE_EN);
  2947. if (watcher) {
  2948. this.watchLocale(watcher);
  2949. }
  2950. }
  2951. (0, _createClass2.default)(I18n, [{
  2952. key: "setLocale",
  2953. value: function setLocale(locale) {
  2954. var _this = this;
  2955. var oldLocale = this.locale;
  2956. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  2957. if (!this.messages[this.locale]) {
  2958. // 可能初始化时不存在
  2959. this.messages[this.locale] = {};
  2960. }
  2961. this.message = this.messages[this.locale];
  2962. // 仅发生变化时,通知
  2963. if (oldLocale !== this.locale) {
  2964. this.watchers.forEach(function (watcher) {
  2965. watcher(_this.locale, oldLocale);
  2966. });
  2967. }
  2968. }
  2969. }, {
  2970. key: "getLocale",
  2971. value: function getLocale() {
  2972. return this.locale;
  2973. }
  2974. }, {
  2975. key: "watchLocale",
  2976. value: function watchLocale(fn) {
  2977. var _this2 = this;
  2978. var index = this.watchers.push(fn) - 1;
  2979. return function () {
  2980. _this2.watchers.splice(index, 1);
  2981. };
  2982. }
  2983. }, {
  2984. key: "add",
  2985. value: function add(locale, message) {
  2986. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  2987. var curMessages = this.messages[locale];
  2988. if (curMessages) {
  2989. if (override) {
  2990. Object.assign(curMessages, message);
  2991. } else {
  2992. Object.keys(message).forEach(function (key) {
  2993. if (!hasOwn(curMessages, key)) {
  2994. curMessages[key] = message[key];
  2995. }
  2996. });
  2997. }
  2998. } else {
  2999. this.messages[locale] = message;
  3000. }
  3001. }
  3002. }, {
  3003. key: "f",
  3004. value: function f(message, values, delimiters) {
  3005. return this.formater.interpolate(message, values, delimiters).join('');
  3006. }
  3007. }, {
  3008. key: "t",
  3009. value: function t(key, locale, values) {
  3010. var message = this.message;
  3011. if (typeof locale === 'string') {
  3012. locale = normalizeLocale(locale, this.messages);
  3013. locale && (message = this.messages[locale]);
  3014. } else {
  3015. values = locale;
  3016. }
  3017. if (!hasOwn(message, key)) {
  3018. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  3019. return key;
  3020. }
  3021. return this.formater.interpolate(message[key], values).join('');
  3022. }
  3023. }]);
  3024. return I18n;
  3025. }();
  3026. exports.I18n = I18n;
  3027. function watchAppLocale(appVm, i18n) {
  3028. // 需要保证 watch 的触发在组件渲染之前
  3029. if (appVm.$watchLocale) {
  3030. // vue2
  3031. appVm.$watchLocale(function (newLocale) {
  3032. i18n.setLocale(newLocale);
  3033. });
  3034. } else {
  3035. appVm.$watch(function () {
  3036. return appVm.$locale;
  3037. }, function (newLocale) {
  3038. i18n.setLocale(newLocale);
  3039. });
  3040. }
  3041. }
  3042. function getDefaultLocale() {
  3043. if (typeof uni !== 'undefined' && uni.getLocale) {
  3044. return uni.getLocale();
  3045. }
  3046. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  3047. if (typeof global !== 'undefined' && global.getLocale) {
  3048. return global.getLocale();
  3049. }
  3050. return LOCALE_EN;
  3051. }
  3052. function initVueI18n(locale) {
  3053. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3054. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  3055. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  3056. // 兼容旧版本入参
  3057. if (typeof locale !== 'string') {
  3058. var _ref4 = [messages, locale];
  3059. locale = _ref4[0];
  3060. messages = _ref4[1];
  3061. }
  3062. if (typeof locale !== 'string') {
  3063. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  3064. locale = getDefaultLocale();
  3065. }
  3066. if (typeof fallbackLocale !== 'string') {
  3067. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  3068. }
  3069. var i18n = new I18n({
  3070. locale: locale,
  3071. fallbackLocale: fallbackLocale,
  3072. messages: messages,
  3073. watcher: watcher
  3074. });
  3075. var _t = function t(key, values) {
  3076. if (typeof getApp !== 'function') {
  3077. // app view
  3078. /* eslint-disable no-func-assign */
  3079. _t = function t(key, values) {
  3080. return i18n.t(key, values);
  3081. };
  3082. } else {
  3083. var isWatchedAppLocale = false;
  3084. _t = function t(key, values) {
  3085. var appVm = getApp().$vm;
  3086. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  3087. // options: {
  3088. // type: Array,
  3089. // default () {
  3090. // return [{
  3091. // icon: 'shop',
  3092. // text: t("uni-goods-nav.options.shop"),
  3093. // }, {
  3094. // icon: 'cart',
  3095. // text: t("uni-goods-nav.options.cart")
  3096. // }]
  3097. // }
  3098. // },
  3099. if (appVm) {
  3100. // 触发响应式
  3101. appVm.$locale;
  3102. if (!isWatchedAppLocale) {
  3103. isWatchedAppLocale = true;
  3104. watchAppLocale(appVm, i18n);
  3105. }
  3106. }
  3107. return i18n.t(key, values);
  3108. };
  3109. }
  3110. return _t(key, values);
  3111. };
  3112. return {
  3113. i18n: i18n,
  3114. f: function f(message, values, delimiters) {
  3115. return i18n.f(message, values, delimiters);
  3116. },
  3117. t: function t(key, values) {
  3118. return _t(key, values);
  3119. },
  3120. add: function add(locale, message) {
  3121. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3122. return i18n.add(locale, message, override);
  3123. },
  3124. watch: function watch(fn) {
  3125. return i18n.watchLocale(fn);
  3126. },
  3127. getLocale: function getLocale() {
  3128. return i18n.getLocale();
  3129. },
  3130. setLocale: function setLocale(newLocale) {
  3131. return i18n.setLocale(newLocale);
  3132. }
  3133. };
  3134. }
  3135. var isString = function isString(val) {
  3136. return typeof val === 'string';
  3137. };
  3138. exports.isString = isString;
  3139. var formater;
  3140. function hasI18nJson(jsonObj, delimiters) {
  3141. if (!formater) {
  3142. formater = new BaseFormatter();
  3143. }
  3144. return walkJsonObj(jsonObj, function (jsonObj, key) {
  3145. var value = jsonObj[key];
  3146. if (isString(value)) {
  3147. if (isI18nStr(value, delimiters)) {
  3148. return true;
  3149. }
  3150. } else {
  3151. return hasI18nJson(value, delimiters);
  3152. }
  3153. });
  3154. }
  3155. function parseI18nJson(jsonObj, values, delimiters) {
  3156. if (!formater) {
  3157. formater = new BaseFormatter();
  3158. }
  3159. walkJsonObj(jsonObj, function (jsonObj, key) {
  3160. var value = jsonObj[key];
  3161. if (isString(value)) {
  3162. if (isI18nStr(value, delimiters)) {
  3163. jsonObj[key] = compileStr(value, values, delimiters);
  3164. }
  3165. } else {
  3166. parseI18nJson(value, values, delimiters);
  3167. }
  3168. });
  3169. return jsonObj;
  3170. }
  3171. function compileI18nJsonStr(jsonStr, _ref5) {
  3172. var locale = _ref5.locale,
  3173. locales = _ref5.locales,
  3174. delimiters = _ref5.delimiters;
  3175. if (!isI18nStr(jsonStr, delimiters)) {
  3176. return jsonStr;
  3177. }
  3178. if (!formater) {
  3179. formater = new BaseFormatter();
  3180. }
  3181. var localeValues = [];
  3182. Object.keys(locales).forEach(function (name) {
  3183. if (name !== locale) {
  3184. localeValues.push({
  3185. locale: name,
  3186. values: locales[name]
  3187. });
  3188. }
  3189. });
  3190. localeValues.unshift({
  3191. locale: locale,
  3192. values: locales[locale]
  3193. });
  3194. try {
  3195. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  3196. } catch (e) {}
  3197. return jsonStr;
  3198. }
  3199. function isI18nStr(value, delimiters) {
  3200. return value.indexOf(delimiters[0]) > -1;
  3201. }
  3202. function compileStr(value, values, delimiters) {
  3203. return formater.interpolate(value, values, delimiters).join('');
  3204. }
  3205. function compileValue(jsonObj, key, localeValues, delimiters) {
  3206. var value = jsonObj[key];
  3207. if (isString(value)) {
  3208. // 存在国际化
  3209. if (isI18nStr(value, delimiters)) {
  3210. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  3211. if (localeValues.length > 1) {
  3212. // 格式化国际化语言
  3213. var valueLocales = jsonObj[key + 'Locales'] = {};
  3214. localeValues.forEach(function (localValue) {
  3215. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  3216. });
  3217. }
  3218. }
  3219. } else {
  3220. compileJsonObj(value, localeValues, delimiters);
  3221. }
  3222. }
  3223. function compileJsonObj(jsonObj, localeValues, delimiters) {
  3224. walkJsonObj(jsonObj, function (jsonObj, key) {
  3225. compileValue(jsonObj, key, localeValues, delimiters);
  3226. });
  3227. return jsonObj;
  3228. }
  3229. function walkJsonObj(jsonObj, walk) {
  3230. if (Array.isArray(jsonObj)) {
  3231. for (var i = 0; i < jsonObj.length; i++) {
  3232. if (walk(jsonObj, i)) {
  3233. return true;
  3234. }
  3235. }
  3236. } else if (isObject(jsonObj)) {
  3237. for (var key in jsonObj) {
  3238. if (walk(jsonObj, key)) {
  3239. return true;
  3240. }
  3241. }
  3242. }
  3243. return false;
  3244. }
  3245. function resolveLocale(locales) {
  3246. return function (locale) {
  3247. if (!locale) {
  3248. return locale;
  3249. }
  3250. locale = normalizeLocale(locale) || locale;
  3251. return resolveLocaleChain(locale).find(function (locale) {
  3252. return locales.indexOf(locale) > -1;
  3253. });
  3254. };
  3255. }
  3256. function resolveLocaleChain(locale) {
  3257. var chain = [];
  3258. var tokens = locale.split('-');
  3259. while (tokens.length) {
  3260. chain.push(tokens.join('-'));
  3261. tokens.pop();
  3262. }
  3263. return chain;
  3264. }
  3265. /* 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)))
  3266. /***/ }),
  3267. /* 23 */
  3268. /*!***************************************************************!*\
  3269. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  3270. \***************************************************************/
  3271. /*! no static exports found */
  3272. /***/ (function(module, exports) {
  3273. function _classCallCheck(instance, Constructor) {
  3274. if (!(instance instanceof Constructor)) {
  3275. throw new TypeError("Cannot call a class as a function");
  3276. }
  3277. }
  3278. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3279. /***/ }),
  3280. /* 24 */
  3281. /*!************************************************************!*\
  3282. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  3283. \************************************************************/
  3284. /*! no static exports found */
  3285. /***/ (function(module, exports, __webpack_require__) {
  3286. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  3287. function _defineProperties(target, props) {
  3288. for (var i = 0; i < props.length; i++) {
  3289. var descriptor = props[i];
  3290. descriptor.enumerable = descriptor.enumerable || false;
  3291. descriptor.configurable = true;
  3292. if ("value" in descriptor) descriptor.writable = true;
  3293. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  3294. }
  3295. }
  3296. function _createClass(Constructor, protoProps, staticProps) {
  3297. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  3298. if (staticProps) _defineProperties(Constructor, staticProps);
  3299. Object.defineProperty(Constructor, "prototype", {
  3300. writable: false
  3301. });
  3302. return Constructor;
  3303. }
  3304. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3305. /***/ }),
  3306. /* 25 */
  3307. /*!******************************************************************************************!*\
  3308. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  3309. \******************************************************************************************/
  3310. /*! exports provided: default */
  3311. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3312. "use strict";
  3313. __webpack_require__.r(__webpack_exports__);
  3314. /* WEBPACK VAR INJECTION */(function(global) {/*!
  3315. * Vue.js v2.6.11
  3316. * (c) 2014-2024 Evan You
  3317. * Released under the MIT License.
  3318. */
  3319. /* */
  3320. var emptyObject = Object.freeze({});
  3321. // These helpers produce better VM code in JS engines due to their
  3322. // explicitness and function inlining.
  3323. function isUndef (v) {
  3324. return v === undefined || v === null
  3325. }
  3326. function isDef (v) {
  3327. return v !== undefined && v !== null
  3328. }
  3329. function isTrue (v) {
  3330. return v === true
  3331. }
  3332. function isFalse (v) {
  3333. return v === false
  3334. }
  3335. /**
  3336. * Check if value is primitive.
  3337. */
  3338. function isPrimitive (value) {
  3339. return (
  3340. typeof value === 'string' ||
  3341. typeof value === 'number' ||
  3342. // $flow-disable-line
  3343. typeof value === 'symbol' ||
  3344. typeof value === 'boolean'
  3345. )
  3346. }
  3347. /**
  3348. * Quick object check - this is primarily used to tell
  3349. * Objects from primitive values when we know the value
  3350. * is a JSON-compliant type.
  3351. */
  3352. function isObject (obj) {
  3353. return obj !== null && typeof obj === 'object'
  3354. }
  3355. /**
  3356. * Get the raw type string of a value, e.g., [object Object].
  3357. */
  3358. var _toString = Object.prototype.toString;
  3359. function toRawType (value) {
  3360. return _toString.call(value).slice(8, -1)
  3361. }
  3362. /**
  3363. * Strict object type check. Only returns true
  3364. * for plain JavaScript objects.
  3365. */
  3366. function isPlainObject (obj) {
  3367. return _toString.call(obj) === '[object Object]'
  3368. }
  3369. function isRegExp (v) {
  3370. return _toString.call(v) === '[object RegExp]'
  3371. }
  3372. /**
  3373. * Check if val is a valid array index.
  3374. */
  3375. function isValidArrayIndex (val) {
  3376. var n = parseFloat(String(val));
  3377. return n >= 0 && Math.floor(n) === n && isFinite(val)
  3378. }
  3379. function isPromise (val) {
  3380. return (
  3381. isDef(val) &&
  3382. typeof val.then === 'function' &&
  3383. typeof val.catch === 'function'
  3384. )
  3385. }
  3386. /**
  3387. * Convert a value to a string that is actually rendered.
  3388. */
  3389. function toString (val) {
  3390. return val == null
  3391. ? ''
  3392. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  3393. ? JSON.stringify(val, null, 2)
  3394. : String(val)
  3395. }
  3396. /**
  3397. * Convert an input value to a number for persistence.
  3398. * If the conversion fails, return original string.
  3399. */
  3400. function toNumber (val) {
  3401. var n = parseFloat(val);
  3402. return isNaN(n) ? val : n
  3403. }
  3404. /**
  3405. * Make a map and return a function for checking if a key
  3406. * is in that map.
  3407. */
  3408. function makeMap (
  3409. str,
  3410. expectsLowerCase
  3411. ) {
  3412. var map = Object.create(null);
  3413. var list = str.split(',');
  3414. for (var i = 0; i < list.length; i++) {
  3415. map[list[i]] = true;
  3416. }
  3417. return expectsLowerCase
  3418. ? function (val) { return map[val.toLowerCase()]; }
  3419. : function (val) { return map[val]; }
  3420. }
  3421. /**
  3422. * Check if a tag is a built-in tag.
  3423. */
  3424. var isBuiltInTag = makeMap('slot,component', true);
  3425. /**
  3426. * Check if an attribute is a reserved attribute.
  3427. */
  3428. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  3429. /**
  3430. * Remove an item from an array.
  3431. */
  3432. function remove (arr, item) {
  3433. if (arr.length) {
  3434. var index = arr.indexOf(item);
  3435. if (index > -1) {
  3436. return arr.splice(index, 1)
  3437. }
  3438. }
  3439. }
  3440. /**
  3441. * Check whether an object has the property.
  3442. */
  3443. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3444. function hasOwn (obj, key) {
  3445. return hasOwnProperty.call(obj, key)
  3446. }
  3447. /**
  3448. * Create a cached version of a pure function.
  3449. */
  3450. function cached (fn) {
  3451. var cache = Object.create(null);
  3452. return (function cachedFn (str) {
  3453. var hit = cache[str];
  3454. return hit || (cache[str] = fn(str))
  3455. })
  3456. }
  3457. /**
  3458. * Camelize a hyphen-delimited string.
  3459. */
  3460. var camelizeRE = /-(\w)/g;
  3461. var camelize = cached(function (str) {
  3462. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  3463. });
  3464. /**
  3465. * Capitalize a string.
  3466. */
  3467. var capitalize = cached(function (str) {
  3468. return str.charAt(0).toUpperCase() + str.slice(1)
  3469. });
  3470. /**
  3471. * Hyphenate a camelCase string.
  3472. */
  3473. var hyphenateRE = /\B([A-Z])/g;
  3474. var hyphenate = cached(function (str) {
  3475. return str.replace(hyphenateRE, '-$1').toLowerCase()
  3476. });
  3477. /**
  3478. * Simple bind polyfill for environments that do not support it,
  3479. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  3480. * since native bind is now performant enough in most browsers.
  3481. * But removing it would mean breaking code that was able to run in
  3482. * PhantomJS 1.x, so this must be kept for backward compatibility.
  3483. */
  3484. /* istanbul ignore next */
  3485. function polyfillBind (fn, ctx) {
  3486. function boundFn (a) {
  3487. var l = arguments.length;
  3488. return l
  3489. ? l > 1
  3490. ? fn.apply(ctx, arguments)
  3491. : fn.call(ctx, a)
  3492. : fn.call(ctx)
  3493. }
  3494. boundFn._length = fn.length;
  3495. return boundFn
  3496. }
  3497. function nativeBind (fn, ctx) {
  3498. return fn.bind(ctx)
  3499. }
  3500. var bind = Function.prototype.bind
  3501. ? nativeBind
  3502. : polyfillBind;
  3503. /**
  3504. * Convert an Array-like object to a real Array.
  3505. */
  3506. function toArray (list, start) {
  3507. start = start || 0;
  3508. var i = list.length - start;
  3509. var ret = new Array(i);
  3510. while (i--) {
  3511. ret[i] = list[i + start];
  3512. }
  3513. return ret
  3514. }
  3515. /**
  3516. * Mix properties into target object.
  3517. */
  3518. function extend (to, _from) {
  3519. for (var key in _from) {
  3520. to[key] = _from[key];
  3521. }
  3522. return to
  3523. }
  3524. /**
  3525. * Merge an Array of Objects into a single Object.
  3526. */
  3527. function toObject (arr) {
  3528. var res = {};
  3529. for (var i = 0; i < arr.length; i++) {
  3530. if (arr[i]) {
  3531. extend(res, arr[i]);
  3532. }
  3533. }
  3534. return res
  3535. }
  3536. /* eslint-disable no-unused-vars */
  3537. /**
  3538. * Perform no operation.
  3539. * Stubbing args to make Flow happy without leaving useless transpiled code
  3540. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  3541. */
  3542. function noop (a, b, c) {}
  3543. /**
  3544. * Always return false.
  3545. */
  3546. var no = function (a, b, c) { return false; };
  3547. /* eslint-enable no-unused-vars */
  3548. /**
  3549. * Return the same value.
  3550. */
  3551. var identity = function (_) { return _; };
  3552. /**
  3553. * Check if two values are loosely equal - that is,
  3554. * if they are plain objects, do they have the same shape?
  3555. */
  3556. function looseEqual (a, b) {
  3557. if (a === b) { return true }
  3558. var isObjectA = isObject(a);
  3559. var isObjectB = isObject(b);
  3560. if (isObjectA && isObjectB) {
  3561. try {
  3562. var isArrayA = Array.isArray(a);
  3563. var isArrayB = Array.isArray(b);
  3564. if (isArrayA && isArrayB) {
  3565. return a.length === b.length && a.every(function (e, i) {
  3566. return looseEqual(e, b[i])
  3567. })
  3568. } else if (a instanceof Date && b instanceof Date) {
  3569. return a.getTime() === b.getTime()
  3570. } else if (!isArrayA && !isArrayB) {
  3571. var keysA = Object.keys(a);
  3572. var keysB = Object.keys(b);
  3573. return keysA.length === keysB.length && keysA.every(function (key) {
  3574. return looseEqual(a[key], b[key])
  3575. })
  3576. } else {
  3577. /* istanbul ignore next */
  3578. return false
  3579. }
  3580. } catch (e) {
  3581. /* istanbul ignore next */
  3582. return false
  3583. }
  3584. } else if (!isObjectA && !isObjectB) {
  3585. return String(a) === String(b)
  3586. } else {
  3587. return false
  3588. }
  3589. }
  3590. /**
  3591. * Return the first index at which a loosely equal value can be
  3592. * found in the array (if value is a plain object, the array must
  3593. * contain an object of the same shape), or -1 if it is not present.
  3594. */
  3595. function looseIndexOf (arr, val) {
  3596. for (var i = 0; i < arr.length; i++) {
  3597. if (looseEqual(arr[i], val)) { return i }
  3598. }
  3599. return -1
  3600. }
  3601. /**
  3602. * Ensure a function is called only once.
  3603. */
  3604. function once (fn) {
  3605. var called = false;
  3606. return function () {
  3607. if (!called) {
  3608. called = true;
  3609. fn.apply(this, arguments);
  3610. }
  3611. }
  3612. }
  3613. var ASSET_TYPES = [
  3614. 'component',
  3615. 'directive',
  3616. 'filter'
  3617. ];
  3618. var LIFECYCLE_HOOKS = [
  3619. 'beforeCreate',
  3620. 'created',
  3621. 'beforeMount',
  3622. 'mounted',
  3623. 'beforeUpdate',
  3624. 'updated',
  3625. 'beforeDestroy',
  3626. 'destroyed',
  3627. 'activated',
  3628. 'deactivated',
  3629. 'errorCaptured',
  3630. 'serverPrefetch'
  3631. ];
  3632. /* */
  3633. var config = ({
  3634. /**
  3635. * Option merge strategies (used in core/util/options)
  3636. */
  3637. // $flow-disable-line
  3638. optionMergeStrategies: Object.create(null),
  3639. /**
  3640. * Whether to suppress warnings.
  3641. */
  3642. silent: false,
  3643. /**
  3644. * Show production mode tip message on boot?
  3645. */
  3646. productionTip: "development" !== 'production',
  3647. /**
  3648. * Whether to enable devtools
  3649. */
  3650. devtools: "development" !== 'production',
  3651. /**
  3652. * Whether to record perf
  3653. */
  3654. performance: false,
  3655. /**
  3656. * Error handler for watcher errors
  3657. */
  3658. errorHandler: null,
  3659. /**
  3660. * Warn handler for watcher warns
  3661. */
  3662. warnHandler: null,
  3663. /**
  3664. * Ignore certain custom elements
  3665. */
  3666. ignoredElements: [],
  3667. /**
  3668. * Custom user key aliases for v-on
  3669. */
  3670. // $flow-disable-line
  3671. keyCodes: Object.create(null),
  3672. /**
  3673. * Check if a tag is reserved so that it cannot be registered as a
  3674. * component. This is platform-dependent and may be overwritten.
  3675. */
  3676. isReservedTag: no,
  3677. /**
  3678. * Check if an attribute is reserved so that it cannot be used as a component
  3679. * prop. This is platform-dependent and may be overwritten.
  3680. */
  3681. isReservedAttr: no,
  3682. /**
  3683. * Check if a tag is an unknown element.
  3684. * Platform-dependent.
  3685. */
  3686. isUnknownElement: no,
  3687. /**
  3688. * Get the namespace of an element
  3689. */
  3690. getTagNamespace: noop,
  3691. /**
  3692. * Parse the real tag name for the specific platform.
  3693. */
  3694. parsePlatformTagName: identity,
  3695. /**
  3696. * Check if an attribute must be bound using property, e.g. value
  3697. * Platform-dependent.
  3698. */
  3699. mustUseProp: no,
  3700. /**
  3701. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  3702. * This will significantly reduce performance if set to false.
  3703. */
  3704. async: true,
  3705. /**
  3706. * Exposed for legacy reasons
  3707. */
  3708. _lifecycleHooks: LIFECYCLE_HOOKS
  3709. });
  3710. /* */
  3711. /**
  3712. * unicode letters used for parsing html tags, component names and property paths.
  3713. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  3714. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  3715. */
  3716. 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/;
  3717. /**
  3718. * Check if a string starts with $ or _
  3719. */
  3720. function isReserved (str) {
  3721. var c = (str + '').charCodeAt(0);
  3722. return c === 0x24 || c === 0x5F
  3723. }
  3724. /**
  3725. * Define a property.
  3726. */
  3727. function def (obj, key, val, enumerable) {
  3728. Object.defineProperty(obj, key, {
  3729. value: val,
  3730. enumerable: !!enumerable,
  3731. writable: true,
  3732. configurable: true
  3733. });
  3734. }
  3735. /**
  3736. * Parse simple path.
  3737. */
  3738. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  3739. function parsePath (path) {
  3740. if (bailRE.test(path)) {
  3741. return
  3742. }
  3743. var segments = path.split('.');
  3744. return function (obj) {
  3745. for (var i = 0; i < segments.length; i++) {
  3746. if (!obj) { return }
  3747. obj = obj[segments[i]];
  3748. }
  3749. return obj
  3750. }
  3751. }
  3752. /* */
  3753. // can we use __proto__?
  3754. var hasProto = '__proto__' in {};
  3755. // Browser environment sniffing
  3756. var inBrowser = typeof window !== 'undefined';
  3757. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  3758. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  3759. var UA = inBrowser && window.navigator && window.navigator.userAgent.toLowerCase();
  3760. var isIE = UA && /msie|trident/.test(UA);
  3761. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  3762. var isEdge = UA && UA.indexOf('edge/') > 0;
  3763. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  3764. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  3765. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  3766. var isPhantomJS = UA && /phantomjs/.test(UA);
  3767. var isFF = UA && UA.match(/firefox\/(\d+)/);
  3768. // Firefox has a "watch" function on Object.prototype...
  3769. var nativeWatch = ({}).watch;
  3770. if (inBrowser) {
  3771. try {
  3772. var opts = {};
  3773. Object.defineProperty(opts, 'passive', ({
  3774. get: function get () {
  3775. }
  3776. })); // https://github.com/facebook/flow/issues/285
  3777. window.addEventListener('test-passive', null, opts);
  3778. } catch (e) {}
  3779. }
  3780. // this needs to be lazy-evaled because vue may be required before
  3781. // vue-server-renderer can set VUE_ENV
  3782. var _isServer;
  3783. var isServerRendering = function () {
  3784. if (_isServer === undefined) {
  3785. /* istanbul ignore if */
  3786. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  3787. // detect presence of vue-server-renderer and avoid
  3788. // Webpack shimming the process
  3789. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  3790. } else {
  3791. _isServer = false;
  3792. }
  3793. }
  3794. return _isServer
  3795. };
  3796. // detect devtools
  3797. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  3798. /* istanbul ignore next */
  3799. function isNative (Ctor) {
  3800. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  3801. }
  3802. var hasSymbol =
  3803. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  3804. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  3805. var _Set;
  3806. /* istanbul ignore if */ // $flow-disable-line
  3807. if (typeof Set !== 'undefined' && isNative(Set)) {
  3808. // use native Set when available.
  3809. _Set = Set;
  3810. } else {
  3811. // a non-standard Set polyfill that only works with primitive keys.
  3812. _Set = /*@__PURE__*/(function () {
  3813. function Set () {
  3814. this.set = Object.create(null);
  3815. }
  3816. Set.prototype.has = function has (key) {
  3817. return this.set[key] === true
  3818. };
  3819. Set.prototype.add = function add (key) {
  3820. this.set[key] = true;
  3821. };
  3822. Set.prototype.clear = function clear () {
  3823. this.set = Object.create(null);
  3824. };
  3825. return Set;
  3826. }());
  3827. }
  3828. /* */
  3829. var warn = noop;
  3830. var tip = noop;
  3831. var generateComponentTrace = (noop); // work around flow check
  3832. var formatComponentName = (noop);
  3833. if (true) {
  3834. var hasConsole = typeof console !== 'undefined';
  3835. var classifyRE = /(?:^|[-_])(\w)/g;
  3836. var classify = function (str) { return str
  3837. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  3838. .replace(/[-_]/g, ''); };
  3839. warn = function (msg, vm) {
  3840. var trace = vm ? generateComponentTrace(vm) : '';
  3841. if (config.warnHandler) {
  3842. config.warnHandler.call(null, msg, vm, trace);
  3843. } else if (hasConsole && (!config.silent)) {
  3844. console.error(("[Vue warn]: " + msg + trace));
  3845. }
  3846. };
  3847. tip = function (msg, vm) {
  3848. if (hasConsole && (!config.silent)) {
  3849. console.warn("[Vue tip]: " + msg + (
  3850. vm ? generateComponentTrace(vm) : ''
  3851. ));
  3852. }
  3853. };
  3854. formatComponentName = function (vm, includeFile) {
  3855. if (vm.$root === vm) {
  3856. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  3857. return ('') + vm.$options.__file
  3858. }
  3859. return '<Root>'
  3860. }
  3861. var options = typeof vm === 'function' && vm.cid != null
  3862. ? vm.options
  3863. : vm._isVue
  3864. ? vm.$options || vm.constructor.options
  3865. : vm;
  3866. var name = options.name || options._componentTag;
  3867. var file = options.__file;
  3868. if (!name && file) {
  3869. var match = file.match(/([^/\\]+)\.vue$/);
  3870. name = match && match[1];
  3871. }
  3872. return (
  3873. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  3874. (file && includeFile !== false ? (" at " + file) : '')
  3875. )
  3876. };
  3877. var repeat = function (str, n) {
  3878. var res = '';
  3879. while (n) {
  3880. if (n % 2 === 1) { res += str; }
  3881. if (n > 1) { str += str; }
  3882. n >>= 1;
  3883. }
  3884. return res
  3885. };
  3886. generateComponentTrace = function (vm) {
  3887. if (vm._isVue && vm.$parent) {
  3888. var tree = [];
  3889. var currentRecursiveSequence = 0;
  3890. while (vm && vm.$options.name !== 'PageBody') {
  3891. if (tree.length > 0) {
  3892. var last = tree[tree.length - 1];
  3893. if (last.constructor === vm.constructor) {
  3894. currentRecursiveSequence++;
  3895. vm = vm.$parent;
  3896. continue
  3897. } else if (currentRecursiveSequence > 0) {
  3898. tree[tree.length - 1] = [last, currentRecursiveSequence];
  3899. currentRecursiveSequence = 0;
  3900. }
  3901. }
  3902. !vm.$options.isReserved && tree.push(vm);
  3903. vm = vm.$parent;
  3904. }
  3905. return '\n\nfound in\n\n' + tree
  3906. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  3907. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  3908. : formatComponentName(vm))); })
  3909. .join('\n')
  3910. } else {
  3911. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  3912. }
  3913. };
  3914. }
  3915. /* */
  3916. var uid = 0;
  3917. /**
  3918. * A dep is an observable that can have multiple
  3919. * directives subscribing to it.
  3920. */
  3921. var Dep = function Dep () {
  3922. this.id = uid++;
  3923. this.subs = [];
  3924. };
  3925. Dep.prototype.addSub = function addSub (sub) {
  3926. this.subs.push(sub);
  3927. };
  3928. Dep.prototype.removeSub = function removeSub (sub) {
  3929. remove(this.subs, sub);
  3930. };
  3931. Dep.prototype.depend = function depend () {
  3932. if (Dep.SharedObject.target) {
  3933. Dep.SharedObject.target.addDep(this);
  3934. }
  3935. };
  3936. Dep.prototype.notify = function notify () {
  3937. // stabilize the subscriber list first
  3938. var subs = this.subs.slice();
  3939. if ( true && !config.async) {
  3940. // subs aren't sorted in scheduler if not running async
  3941. // we need to sort them now to make sure they fire in correct
  3942. // order
  3943. subs.sort(function (a, b) { return a.id - b.id; });
  3944. }
  3945. for (var i = 0, l = subs.length; i < l; i++) {
  3946. subs[i].update();
  3947. }
  3948. };
  3949. // The current target watcher being evaluated.
  3950. // This is globally unique because only one watcher
  3951. // can be evaluated at a time.
  3952. // fixed by xxxxxx (nvue shared vuex)
  3953. /* eslint-disable no-undef */
  3954. Dep.SharedObject = {};
  3955. Dep.SharedObject.target = null;
  3956. Dep.SharedObject.targetStack = [];
  3957. function pushTarget (target) {
  3958. Dep.SharedObject.targetStack.push(target);
  3959. Dep.SharedObject.target = target;
  3960. Dep.target = target;
  3961. }
  3962. function popTarget () {
  3963. Dep.SharedObject.targetStack.pop();
  3964. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  3965. Dep.target = Dep.SharedObject.target;
  3966. }
  3967. /* */
  3968. var VNode = function VNode (
  3969. tag,
  3970. data,
  3971. children,
  3972. text,
  3973. elm,
  3974. context,
  3975. componentOptions,
  3976. asyncFactory
  3977. ) {
  3978. this.tag = tag;
  3979. this.data = data;
  3980. this.children = children;
  3981. this.text = text;
  3982. this.elm = elm;
  3983. this.ns = undefined;
  3984. this.context = context;
  3985. this.fnContext = undefined;
  3986. this.fnOptions = undefined;
  3987. this.fnScopeId = undefined;
  3988. this.key = data && data.key;
  3989. this.componentOptions = componentOptions;
  3990. this.componentInstance = undefined;
  3991. this.parent = undefined;
  3992. this.raw = false;
  3993. this.isStatic = false;
  3994. this.isRootInsert = true;
  3995. this.isComment = false;
  3996. this.isCloned = false;
  3997. this.isOnce = false;
  3998. this.asyncFactory = asyncFactory;
  3999. this.asyncMeta = undefined;
  4000. this.isAsyncPlaceholder = false;
  4001. };
  4002. var prototypeAccessors = { child: { configurable: true } };
  4003. // DEPRECATED: alias for componentInstance for backwards compat.
  4004. /* istanbul ignore next */
  4005. prototypeAccessors.child.get = function () {
  4006. return this.componentInstance
  4007. };
  4008. Object.defineProperties( VNode.prototype, prototypeAccessors );
  4009. var createEmptyVNode = function (text) {
  4010. if ( text === void 0 ) text = '';
  4011. var node = new VNode();
  4012. node.text = text;
  4013. node.isComment = true;
  4014. return node
  4015. };
  4016. function createTextVNode (val) {
  4017. return new VNode(undefined, undefined, undefined, String(val))
  4018. }
  4019. // optimized shallow clone
  4020. // used for static nodes and slot nodes because they may be reused across
  4021. // multiple renders, cloning them avoids errors when DOM manipulations rely
  4022. // on their elm reference.
  4023. function cloneVNode (vnode) {
  4024. var cloned = new VNode(
  4025. vnode.tag,
  4026. vnode.data,
  4027. // #7975
  4028. // clone children array to avoid mutating original in case of cloning
  4029. // a child.
  4030. vnode.children && vnode.children.slice(),
  4031. vnode.text,
  4032. vnode.elm,
  4033. vnode.context,
  4034. vnode.componentOptions,
  4035. vnode.asyncFactory
  4036. );
  4037. cloned.ns = vnode.ns;
  4038. cloned.isStatic = vnode.isStatic;
  4039. cloned.key = vnode.key;
  4040. cloned.isComment = vnode.isComment;
  4041. cloned.fnContext = vnode.fnContext;
  4042. cloned.fnOptions = vnode.fnOptions;
  4043. cloned.fnScopeId = vnode.fnScopeId;
  4044. cloned.asyncMeta = vnode.asyncMeta;
  4045. cloned.isCloned = true;
  4046. return cloned
  4047. }
  4048. /*
  4049. * not type checking this file because flow doesn't play well with
  4050. * dynamically accessing methods on Array prototype
  4051. */
  4052. var arrayProto = Array.prototype;
  4053. var arrayMethods = Object.create(arrayProto);
  4054. var methodsToPatch = [
  4055. 'push',
  4056. 'pop',
  4057. 'shift',
  4058. 'unshift',
  4059. 'splice',
  4060. 'sort',
  4061. 'reverse'
  4062. ];
  4063. /**
  4064. * Intercept mutating methods and emit events
  4065. */
  4066. methodsToPatch.forEach(function (method) {
  4067. // cache original method
  4068. var original = arrayProto[method];
  4069. def(arrayMethods, method, function mutator () {
  4070. var args = [], len = arguments.length;
  4071. while ( len-- ) args[ len ] = arguments[ len ];
  4072. var result = original.apply(this, args);
  4073. var ob = this.__ob__;
  4074. var inserted;
  4075. switch (method) {
  4076. case 'push':
  4077. case 'unshift':
  4078. inserted = args;
  4079. break
  4080. case 'splice':
  4081. inserted = args.slice(2);
  4082. break
  4083. }
  4084. if (inserted) { ob.observeArray(inserted); }
  4085. // notify change
  4086. ob.dep.notify();
  4087. return result
  4088. });
  4089. });
  4090. /* */
  4091. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  4092. /**
  4093. * In some cases we may want to disable observation inside a component's
  4094. * update computation.
  4095. */
  4096. var shouldObserve = true;
  4097. function toggleObserving (value) {
  4098. shouldObserve = value;
  4099. }
  4100. /**
  4101. * Observer class that is attached to each observed
  4102. * object. Once attached, the observer converts the target
  4103. * object's property keys into getter/setters that
  4104. * collect dependencies and dispatch updates.
  4105. */
  4106. var Observer = function Observer (value) {
  4107. this.value = value;
  4108. this.dep = new Dep();
  4109. this.vmCount = 0;
  4110. def(value, '__ob__', this);
  4111. if (Array.isArray(value)) {
  4112. if (hasProto) {
  4113. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  4114. if(value.push !== value.__proto__.push){
  4115. copyAugment(value, arrayMethods, arrayKeys);
  4116. } else {
  4117. protoAugment(value, arrayMethods);
  4118. }
  4119. }
  4120. } else {
  4121. copyAugment(value, arrayMethods, arrayKeys);
  4122. }
  4123. this.observeArray(value);
  4124. } else {
  4125. this.walk(value);
  4126. }
  4127. };
  4128. /**
  4129. * Walk through all properties and convert them into
  4130. * getter/setters. This method should only be called when
  4131. * value type is Object.
  4132. */
  4133. Observer.prototype.walk = function walk (obj) {
  4134. var keys = Object.keys(obj);
  4135. for (var i = 0; i < keys.length; i++) {
  4136. defineReactive$$1(obj, keys[i]);
  4137. }
  4138. };
  4139. /**
  4140. * Observe a list of Array items.
  4141. */
  4142. Observer.prototype.observeArray = function observeArray (items) {
  4143. for (var i = 0, l = items.length; i < l; i++) {
  4144. observe(items[i]);
  4145. }
  4146. };
  4147. // helpers
  4148. /**
  4149. * Augment a target Object or Array by intercepting
  4150. * the prototype chain using __proto__
  4151. */
  4152. function protoAugment (target, src) {
  4153. /* eslint-disable no-proto */
  4154. target.__proto__ = src;
  4155. /* eslint-enable no-proto */
  4156. }
  4157. /**
  4158. * Augment a target Object or Array by defining
  4159. * hidden properties.
  4160. */
  4161. /* istanbul ignore next */
  4162. function copyAugment (target, src, keys) {
  4163. for (var i = 0, l = keys.length; i < l; i++) {
  4164. var key = keys[i];
  4165. def(target, key, src[key]);
  4166. }
  4167. }
  4168. /**
  4169. * Attempt to create an observer instance for a value,
  4170. * returns the new observer if successfully observed,
  4171. * or the existing observer if the value already has one.
  4172. */
  4173. function observe (value, asRootData) {
  4174. if (!isObject(value) || value instanceof VNode) {
  4175. return
  4176. }
  4177. var ob;
  4178. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  4179. ob = value.__ob__;
  4180. } else if (
  4181. shouldObserve &&
  4182. !isServerRendering() &&
  4183. (Array.isArray(value) || isPlainObject(value)) &&
  4184. Object.isExtensible(value) &&
  4185. !value._isVue &&
  4186. !value.__v_isMPComponent
  4187. ) {
  4188. ob = new Observer(value);
  4189. }
  4190. if (asRootData && ob) {
  4191. ob.vmCount++;
  4192. }
  4193. return ob
  4194. }
  4195. /**
  4196. * Define a reactive property on an Object.
  4197. */
  4198. function defineReactive$$1 (
  4199. obj,
  4200. key,
  4201. val,
  4202. customSetter,
  4203. shallow
  4204. ) {
  4205. var dep = new Dep();
  4206. var property = Object.getOwnPropertyDescriptor(obj, key);
  4207. if (property && property.configurable === false) {
  4208. return
  4209. }
  4210. // cater for pre-defined getter/setters
  4211. var getter = property && property.get;
  4212. var setter = property && property.set;
  4213. if ((!getter || setter) && arguments.length === 2) {
  4214. val = obj[key];
  4215. }
  4216. var childOb = !shallow && observe(val);
  4217. Object.defineProperty(obj, key, {
  4218. enumerable: true,
  4219. configurable: true,
  4220. get: function reactiveGetter () {
  4221. var value = getter ? getter.call(obj) : val;
  4222. if (Dep.SharedObject.target) { // fixed by xxxxxx
  4223. dep.depend();
  4224. if (childOb) {
  4225. childOb.dep.depend();
  4226. if (Array.isArray(value)) {
  4227. dependArray(value);
  4228. }
  4229. }
  4230. }
  4231. return value
  4232. },
  4233. set: function reactiveSetter (newVal) {
  4234. var value = getter ? getter.call(obj) : val;
  4235. /* eslint-disable no-self-compare */
  4236. if (newVal === value || (newVal !== newVal && value !== value)) {
  4237. return
  4238. }
  4239. /* eslint-enable no-self-compare */
  4240. if ( true && customSetter) {
  4241. customSetter();
  4242. }
  4243. // #7981: for accessor properties without setter
  4244. if (getter && !setter) { return }
  4245. if (setter) {
  4246. setter.call(obj, newVal);
  4247. } else {
  4248. val = newVal;
  4249. }
  4250. childOb = !shallow && observe(newVal);
  4251. dep.notify();
  4252. }
  4253. });
  4254. }
  4255. /**
  4256. * Set a property on an object. Adds the new property and
  4257. * triggers change notification if the property doesn't
  4258. * already exist.
  4259. */
  4260. function set (target, key, val) {
  4261. if ( true &&
  4262. (isUndef(target) || isPrimitive(target))
  4263. ) {
  4264. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  4265. }
  4266. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4267. target.length = Math.max(target.length, key);
  4268. target.splice(key, 1, val);
  4269. return val
  4270. }
  4271. if (key in target && !(key in Object.prototype)) {
  4272. target[key] = val;
  4273. return val
  4274. }
  4275. var ob = (target).__ob__;
  4276. if (target._isVue || (ob && ob.vmCount)) {
  4277. true && warn(
  4278. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  4279. 'at runtime - declare it upfront in the data option.'
  4280. );
  4281. return val
  4282. }
  4283. if (!ob) {
  4284. target[key] = val;
  4285. return val
  4286. }
  4287. defineReactive$$1(ob.value, key, val);
  4288. ob.dep.notify();
  4289. return val
  4290. }
  4291. /**
  4292. * Delete a property and trigger change if necessary.
  4293. */
  4294. function del (target, key) {
  4295. if ( true &&
  4296. (isUndef(target) || isPrimitive(target))
  4297. ) {
  4298. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  4299. }
  4300. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4301. target.splice(key, 1);
  4302. return
  4303. }
  4304. var ob = (target).__ob__;
  4305. if (target._isVue || (ob && ob.vmCount)) {
  4306. true && warn(
  4307. 'Avoid deleting properties on a Vue instance or its root $data ' +
  4308. '- just set it to null.'
  4309. );
  4310. return
  4311. }
  4312. if (!hasOwn(target, key)) {
  4313. return
  4314. }
  4315. delete target[key];
  4316. if (!ob) {
  4317. return
  4318. }
  4319. ob.dep.notify();
  4320. }
  4321. /**
  4322. * Collect dependencies on array elements when the array is touched, since
  4323. * we cannot intercept array element access like property getters.
  4324. */
  4325. function dependArray (value) {
  4326. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  4327. e = value[i];
  4328. e && e.__ob__ && e.__ob__.dep.depend();
  4329. if (Array.isArray(e)) {
  4330. dependArray(e);
  4331. }
  4332. }
  4333. }
  4334. /* */
  4335. /**
  4336. * Option overwriting strategies are functions that handle
  4337. * how to merge a parent option value and a child option
  4338. * value into the final value.
  4339. */
  4340. var strats = config.optionMergeStrategies;
  4341. /**
  4342. * Options with restrictions
  4343. */
  4344. if (true) {
  4345. strats.el = strats.propsData = function (parent, child, vm, key) {
  4346. if (!vm) {
  4347. warn(
  4348. "option \"" + key + "\" can only be used during instance " +
  4349. 'creation with the `new` keyword.'
  4350. );
  4351. }
  4352. return defaultStrat(parent, child)
  4353. };
  4354. }
  4355. /**
  4356. * Helper that recursively merges two data objects together.
  4357. */
  4358. function mergeData (to, from) {
  4359. if (!from) { return to }
  4360. var key, toVal, fromVal;
  4361. var keys = hasSymbol
  4362. ? Reflect.ownKeys(from)
  4363. : Object.keys(from);
  4364. for (var i = 0; i < keys.length; i++) {
  4365. key = keys[i];
  4366. // in case the object is already observed...
  4367. if (key === '__ob__') { continue }
  4368. toVal = to[key];
  4369. fromVal = from[key];
  4370. if (!hasOwn(to, key)) {
  4371. set(to, key, fromVal);
  4372. } else if (
  4373. toVal !== fromVal &&
  4374. isPlainObject(toVal) &&
  4375. isPlainObject(fromVal)
  4376. ) {
  4377. mergeData(toVal, fromVal);
  4378. }
  4379. }
  4380. return to
  4381. }
  4382. /**
  4383. * Data
  4384. */
  4385. function mergeDataOrFn (
  4386. parentVal,
  4387. childVal,
  4388. vm
  4389. ) {
  4390. if (!vm) {
  4391. // in a Vue.extend merge, both should be functions
  4392. if (!childVal) {
  4393. return parentVal
  4394. }
  4395. if (!parentVal) {
  4396. return childVal
  4397. }
  4398. // when parentVal & childVal are both present,
  4399. // we need to return a function that returns the
  4400. // merged result of both functions... no need to
  4401. // check if parentVal is a function here because
  4402. // it has to be a function to pass previous merges.
  4403. return function mergedDataFn () {
  4404. return mergeData(
  4405. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  4406. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  4407. )
  4408. }
  4409. } else {
  4410. return function mergedInstanceDataFn () {
  4411. // instance merge
  4412. var instanceData = typeof childVal === 'function'
  4413. ? childVal.call(vm, vm)
  4414. : childVal;
  4415. var defaultData = typeof parentVal === 'function'
  4416. ? parentVal.call(vm, vm)
  4417. : parentVal;
  4418. if (instanceData) {
  4419. return mergeData(instanceData, defaultData)
  4420. } else {
  4421. return defaultData
  4422. }
  4423. }
  4424. }
  4425. }
  4426. strats.data = function (
  4427. parentVal,
  4428. childVal,
  4429. vm
  4430. ) {
  4431. if (!vm) {
  4432. if (childVal && typeof childVal !== 'function') {
  4433. true && warn(
  4434. 'The "data" option should be a function ' +
  4435. 'that returns a per-instance value in component ' +
  4436. 'definitions.',
  4437. vm
  4438. );
  4439. return parentVal
  4440. }
  4441. return mergeDataOrFn(parentVal, childVal)
  4442. }
  4443. return mergeDataOrFn(parentVal, childVal, vm)
  4444. };
  4445. /**
  4446. * Hooks and props are merged as arrays.
  4447. */
  4448. function mergeHook (
  4449. parentVal,
  4450. childVal
  4451. ) {
  4452. var res = childVal
  4453. ? parentVal
  4454. ? parentVal.concat(childVal)
  4455. : Array.isArray(childVal)
  4456. ? childVal
  4457. : [childVal]
  4458. : parentVal;
  4459. return res
  4460. ? dedupeHooks(res)
  4461. : res
  4462. }
  4463. function dedupeHooks (hooks) {
  4464. var res = [];
  4465. for (var i = 0; i < hooks.length; i++) {
  4466. if (res.indexOf(hooks[i]) === -1) {
  4467. res.push(hooks[i]);
  4468. }
  4469. }
  4470. return res
  4471. }
  4472. LIFECYCLE_HOOKS.forEach(function (hook) {
  4473. strats[hook] = mergeHook;
  4474. });
  4475. /**
  4476. * Assets
  4477. *
  4478. * When a vm is present (instance creation), we need to do
  4479. * a three-way merge between constructor options, instance
  4480. * options and parent options.
  4481. */
  4482. function mergeAssets (
  4483. parentVal,
  4484. childVal,
  4485. vm,
  4486. key
  4487. ) {
  4488. var res = Object.create(parentVal || null);
  4489. if (childVal) {
  4490. true && assertObjectType(key, childVal, vm);
  4491. return extend(res, childVal)
  4492. } else {
  4493. return res
  4494. }
  4495. }
  4496. ASSET_TYPES.forEach(function (type) {
  4497. strats[type + 's'] = mergeAssets;
  4498. });
  4499. /**
  4500. * Watchers.
  4501. *
  4502. * Watchers hashes should not overwrite one
  4503. * another, so we merge them as arrays.
  4504. */
  4505. strats.watch = function (
  4506. parentVal,
  4507. childVal,
  4508. vm,
  4509. key
  4510. ) {
  4511. // work around Firefox's Object.prototype.watch...
  4512. if (parentVal === nativeWatch) { parentVal = undefined; }
  4513. if (childVal === nativeWatch) { childVal = undefined; }
  4514. /* istanbul ignore if */
  4515. if (!childVal) { return Object.create(parentVal || null) }
  4516. if (true) {
  4517. assertObjectType(key, childVal, vm);
  4518. }
  4519. if (!parentVal) { return childVal }
  4520. var ret = {};
  4521. extend(ret, parentVal);
  4522. for (var key$1 in childVal) {
  4523. var parent = ret[key$1];
  4524. var child = childVal[key$1];
  4525. if (parent && !Array.isArray(parent)) {
  4526. parent = [parent];
  4527. }
  4528. ret[key$1] = parent
  4529. ? parent.concat(child)
  4530. : Array.isArray(child) ? child : [child];
  4531. }
  4532. return ret
  4533. };
  4534. /**
  4535. * Other object hashes.
  4536. */
  4537. strats.props =
  4538. strats.methods =
  4539. strats.inject =
  4540. strats.computed = function (
  4541. parentVal,
  4542. childVal,
  4543. vm,
  4544. key
  4545. ) {
  4546. if (childVal && "development" !== 'production') {
  4547. assertObjectType(key, childVal, vm);
  4548. }
  4549. if (!parentVal) { return childVal }
  4550. var ret = Object.create(null);
  4551. extend(ret, parentVal);
  4552. if (childVal) { extend(ret, childVal); }
  4553. return ret
  4554. };
  4555. strats.provide = mergeDataOrFn;
  4556. /**
  4557. * Default strategy.
  4558. */
  4559. var defaultStrat = function (parentVal, childVal) {
  4560. return childVal === undefined
  4561. ? parentVal
  4562. : childVal
  4563. };
  4564. /**
  4565. * Validate component names
  4566. */
  4567. function checkComponents (options) {
  4568. for (var key in options.components) {
  4569. validateComponentName(key);
  4570. }
  4571. }
  4572. function validateComponentName (name) {
  4573. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  4574. warn(
  4575. 'Invalid component name: "' + name + '". Component names ' +
  4576. 'should conform to valid custom element name in html5 specification.'
  4577. );
  4578. }
  4579. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  4580. warn(
  4581. 'Do not use built-in or reserved HTML elements as component ' +
  4582. 'id: ' + name
  4583. );
  4584. }
  4585. }
  4586. /**
  4587. * Ensure all props option syntax are normalized into the
  4588. * Object-based format.
  4589. */
  4590. function normalizeProps (options, vm) {
  4591. var props = options.props;
  4592. if (!props) { return }
  4593. var res = {};
  4594. var i, val, name;
  4595. if (Array.isArray(props)) {
  4596. i = props.length;
  4597. while (i--) {
  4598. val = props[i];
  4599. if (typeof val === 'string') {
  4600. name = camelize(val);
  4601. res[name] = { type: null };
  4602. } else if (true) {
  4603. warn('props must be strings when using array syntax.');
  4604. }
  4605. }
  4606. } else if (isPlainObject(props)) {
  4607. for (var key in props) {
  4608. val = props[key];
  4609. name = camelize(key);
  4610. res[name] = isPlainObject(val)
  4611. ? val
  4612. : { type: val };
  4613. }
  4614. } else if (true) {
  4615. warn(
  4616. "Invalid value for option \"props\": expected an Array or an Object, " +
  4617. "but got " + (toRawType(props)) + ".",
  4618. vm
  4619. );
  4620. }
  4621. options.props = res;
  4622. }
  4623. /**
  4624. * Normalize all injections into Object-based format
  4625. */
  4626. function normalizeInject (options, vm) {
  4627. var inject = options.inject;
  4628. if (!inject) { return }
  4629. var normalized = options.inject = {};
  4630. if (Array.isArray(inject)) {
  4631. for (var i = 0; i < inject.length; i++) {
  4632. normalized[inject[i]] = { from: inject[i] };
  4633. }
  4634. } else if (isPlainObject(inject)) {
  4635. for (var key in inject) {
  4636. var val = inject[key];
  4637. normalized[key] = isPlainObject(val)
  4638. ? extend({ from: key }, val)
  4639. : { from: val };
  4640. }
  4641. } else if (true) {
  4642. warn(
  4643. "Invalid value for option \"inject\": expected an Array or an Object, " +
  4644. "but got " + (toRawType(inject)) + ".",
  4645. vm
  4646. );
  4647. }
  4648. }
  4649. /**
  4650. * Normalize raw function directives into object format.
  4651. */
  4652. function normalizeDirectives (options) {
  4653. var dirs = options.directives;
  4654. if (dirs) {
  4655. for (var key in dirs) {
  4656. var def$$1 = dirs[key];
  4657. if (typeof def$$1 === 'function') {
  4658. dirs[key] = { bind: def$$1, update: def$$1 };
  4659. }
  4660. }
  4661. }
  4662. }
  4663. function assertObjectType (name, value, vm) {
  4664. if (!isPlainObject(value)) {
  4665. warn(
  4666. "Invalid value for option \"" + name + "\": expected an Object, " +
  4667. "but got " + (toRawType(value)) + ".",
  4668. vm
  4669. );
  4670. }
  4671. }
  4672. /**
  4673. * Merge two option objects into a new one.
  4674. * Core utility used in both instantiation and inheritance.
  4675. */
  4676. function mergeOptions (
  4677. parent,
  4678. child,
  4679. vm
  4680. ) {
  4681. if (true) {
  4682. checkComponents(child);
  4683. }
  4684. if (typeof child === 'function') {
  4685. child = child.options;
  4686. }
  4687. normalizeProps(child, vm);
  4688. normalizeInject(child, vm);
  4689. normalizeDirectives(child);
  4690. // Apply extends and mixins on the child options,
  4691. // but only if it is a raw options object that isn't
  4692. // the result of another mergeOptions call.
  4693. // Only merged options has the _base property.
  4694. if (!child._base) {
  4695. if (child.extends) {
  4696. parent = mergeOptions(parent, child.extends, vm);
  4697. }
  4698. if (child.mixins) {
  4699. for (var i = 0, l = child.mixins.length; i < l; i++) {
  4700. parent = mergeOptions(parent, child.mixins[i], vm);
  4701. }
  4702. }
  4703. }
  4704. var options = {};
  4705. var key;
  4706. for (key in parent) {
  4707. mergeField(key);
  4708. }
  4709. for (key in child) {
  4710. if (!hasOwn(parent, key)) {
  4711. mergeField(key);
  4712. }
  4713. }
  4714. function mergeField (key) {
  4715. var strat = strats[key] || defaultStrat;
  4716. options[key] = strat(parent[key], child[key], vm, key);
  4717. }
  4718. return options
  4719. }
  4720. /**
  4721. * Resolve an asset.
  4722. * This function is used because child instances need access
  4723. * to assets defined in its ancestor chain.
  4724. */
  4725. function resolveAsset (
  4726. options,
  4727. type,
  4728. id,
  4729. warnMissing
  4730. ) {
  4731. /* istanbul ignore if */
  4732. if (typeof id !== 'string') {
  4733. return
  4734. }
  4735. var assets = options[type];
  4736. // check local registration variations first
  4737. if (hasOwn(assets, id)) { return assets[id] }
  4738. var camelizedId = camelize(id);
  4739. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  4740. var PascalCaseId = capitalize(camelizedId);
  4741. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  4742. // fallback to prototype chain
  4743. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  4744. if ( true && warnMissing && !res) {
  4745. warn(
  4746. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  4747. options
  4748. );
  4749. }
  4750. return res
  4751. }
  4752. /* */
  4753. function validateProp (
  4754. key,
  4755. propOptions,
  4756. propsData,
  4757. vm
  4758. ) {
  4759. var prop = propOptions[key];
  4760. var absent = !hasOwn(propsData, key);
  4761. var value = propsData[key];
  4762. // boolean casting
  4763. var booleanIndex = getTypeIndex(Boolean, prop.type);
  4764. if (booleanIndex > -1) {
  4765. if (absent && !hasOwn(prop, 'default')) {
  4766. value = false;
  4767. } else if (value === '' || value === hyphenate(key)) {
  4768. // only cast empty string / same name to boolean if
  4769. // boolean has higher priority
  4770. var stringIndex = getTypeIndex(String, prop.type);
  4771. if (stringIndex < 0 || booleanIndex < stringIndex) {
  4772. value = true;
  4773. }
  4774. }
  4775. }
  4776. // check default value
  4777. if (value === undefined) {
  4778. value = getPropDefaultValue(vm, prop, key);
  4779. // since the default value is a fresh copy,
  4780. // make sure to observe it.
  4781. var prevShouldObserve = shouldObserve;
  4782. toggleObserving(true);
  4783. observe(value);
  4784. toggleObserving(prevShouldObserve);
  4785. }
  4786. if (
  4787. true
  4788. ) {
  4789. assertProp(prop, key, value, vm, absent);
  4790. }
  4791. return value
  4792. }
  4793. /**
  4794. * Get the default value of a prop.
  4795. */
  4796. function getPropDefaultValue (vm, prop, key) {
  4797. // no default, return undefined
  4798. if (!hasOwn(prop, 'default')) {
  4799. return undefined
  4800. }
  4801. var def = prop.default;
  4802. // warn against non-factory defaults for Object & Array
  4803. if ( true && isObject(def)) {
  4804. warn(
  4805. 'Invalid default value for prop "' + key + '": ' +
  4806. 'Props with type Object/Array must use a factory function ' +
  4807. 'to return the default value.',
  4808. vm
  4809. );
  4810. }
  4811. // the raw prop value was also undefined from previous render,
  4812. // return previous default value to avoid unnecessary watcher trigger
  4813. if (vm && vm.$options.propsData &&
  4814. vm.$options.propsData[key] === undefined &&
  4815. vm._props[key] !== undefined
  4816. ) {
  4817. return vm._props[key]
  4818. }
  4819. // call factory function for non-Function types
  4820. // a value is Function if its prototype is function even across different execution context
  4821. return typeof def === 'function' && getType(prop.type) !== 'Function'
  4822. ? def.call(vm)
  4823. : def
  4824. }
  4825. /**
  4826. * Assert whether a prop is valid.
  4827. */
  4828. function assertProp (
  4829. prop,
  4830. name,
  4831. value,
  4832. vm,
  4833. absent
  4834. ) {
  4835. if (prop.required && absent) {
  4836. warn(
  4837. 'Missing required prop: "' + name + '"',
  4838. vm
  4839. );
  4840. return
  4841. }
  4842. if (value == null && !prop.required) {
  4843. return
  4844. }
  4845. var type = prop.type;
  4846. var valid = !type || type === true;
  4847. var expectedTypes = [];
  4848. if (type) {
  4849. if (!Array.isArray(type)) {
  4850. type = [type];
  4851. }
  4852. for (var i = 0; i < type.length && !valid; i++) {
  4853. var assertedType = assertType(value, type[i]);
  4854. expectedTypes.push(assertedType.expectedType || '');
  4855. valid = assertedType.valid;
  4856. }
  4857. }
  4858. if (!valid) {
  4859. warn(
  4860. getInvalidTypeMessage(name, value, expectedTypes),
  4861. vm
  4862. );
  4863. return
  4864. }
  4865. var validator = prop.validator;
  4866. if (validator) {
  4867. if (!validator(value)) {
  4868. warn(
  4869. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  4870. vm
  4871. );
  4872. }
  4873. }
  4874. }
  4875. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  4876. function assertType (value, type) {
  4877. var valid;
  4878. var expectedType = getType(type);
  4879. if (simpleCheckRE.test(expectedType)) {
  4880. var t = typeof value;
  4881. valid = t === expectedType.toLowerCase();
  4882. // for primitive wrapper objects
  4883. if (!valid && t === 'object') {
  4884. valid = value instanceof type;
  4885. }
  4886. } else if (expectedType === 'Object') {
  4887. valid = isPlainObject(value);
  4888. } else if (expectedType === 'Array') {
  4889. valid = Array.isArray(value);
  4890. } else {
  4891. valid = value instanceof type;
  4892. }
  4893. return {
  4894. valid: valid,
  4895. expectedType: expectedType
  4896. }
  4897. }
  4898. /**
  4899. * Use function string name to check built-in types,
  4900. * because a simple equality check will fail when running
  4901. * across different vms / iframes.
  4902. */
  4903. function getType (fn) {
  4904. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  4905. return match ? match[1] : ''
  4906. }
  4907. function isSameType (a, b) {
  4908. return getType(a) === getType(b)
  4909. }
  4910. function getTypeIndex (type, expectedTypes) {
  4911. if (!Array.isArray(expectedTypes)) {
  4912. return isSameType(expectedTypes, type) ? 0 : -1
  4913. }
  4914. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  4915. if (isSameType(expectedTypes[i], type)) {
  4916. return i
  4917. }
  4918. }
  4919. return -1
  4920. }
  4921. function getInvalidTypeMessage (name, value, expectedTypes) {
  4922. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  4923. " Expected " + (expectedTypes.map(capitalize).join(', '));
  4924. var expectedType = expectedTypes[0];
  4925. var receivedType = toRawType(value);
  4926. var expectedValue = styleValue(value, expectedType);
  4927. var receivedValue = styleValue(value, receivedType);
  4928. // check if we need to specify expected value
  4929. if (expectedTypes.length === 1 &&
  4930. isExplicable(expectedType) &&
  4931. !isBoolean(expectedType, receivedType)) {
  4932. message += " with value " + expectedValue;
  4933. }
  4934. message += ", got " + receivedType + " ";
  4935. // check if we need to specify received value
  4936. if (isExplicable(receivedType)) {
  4937. message += "with value " + receivedValue + ".";
  4938. }
  4939. return message
  4940. }
  4941. function styleValue (value, type) {
  4942. if (type === 'String') {
  4943. return ("\"" + value + "\"")
  4944. } else if (type === 'Number') {
  4945. return ("" + (Number(value)))
  4946. } else {
  4947. return ("" + value)
  4948. }
  4949. }
  4950. function isExplicable (value) {
  4951. var explicitTypes = ['string', 'number', 'boolean'];
  4952. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  4953. }
  4954. function isBoolean () {
  4955. var args = [], len = arguments.length;
  4956. while ( len-- ) args[ len ] = arguments[ len ];
  4957. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  4958. }
  4959. /* */
  4960. function handleError (err, vm, info) {
  4961. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  4962. // See: https://github.com/vuejs/vuex/issues/1505
  4963. pushTarget();
  4964. try {
  4965. if (vm) {
  4966. var cur = vm;
  4967. while ((cur = cur.$parent)) {
  4968. var hooks = cur.$options.errorCaptured;
  4969. if (hooks) {
  4970. for (var i = 0; i < hooks.length; i++) {
  4971. try {
  4972. var capture = hooks[i].call(cur, err, vm, info) === false;
  4973. if (capture) { return }
  4974. } catch (e) {
  4975. globalHandleError(e, cur, 'errorCaptured hook');
  4976. }
  4977. }
  4978. }
  4979. }
  4980. }
  4981. globalHandleError(err, vm, info);
  4982. } finally {
  4983. popTarget();
  4984. }
  4985. }
  4986. function invokeWithErrorHandling (
  4987. handler,
  4988. context,
  4989. args,
  4990. vm,
  4991. info
  4992. ) {
  4993. var res;
  4994. try {
  4995. res = args ? handler.apply(context, args) : handler.call(context);
  4996. if (res && !res._isVue && isPromise(res) && !res._handled) {
  4997. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  4998. // issue #9511
  4999. // avoid catch triggering multiple times when nested calls
  5000. res._handled = true;
  5001. }
  5002. } catch (e) {
  5003. handleError(e, vm, info);
  5004. }
  5005. return res
  5006. }
  5007. function globalHandleError (err, vm, info) {
  5008. if (config.errorHandler) {
  5009. try {
  5010. return config.errorHandler.call(null, err, vm, info)
  5011. } catch (e) {
  5012. // if the user intentionally throws the original error in the handler,
  5013. // do not log it twice
  5014. if (e !== err) {
  5015. logError(e, null, 'config.errorHandler');
  5016. }
  5017. }
  5018. }
  5019. logError(err, vm, info);
  5020. }
  5021. function logError (err, vm, info) {
  5022. if (true) {
  5023. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  5024. }
  5025. /* istanbul ignore else */
  5026. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  5027. console.error(err);
  5028. } else {
  5029. throw err
  5030. }
  5031. }
  5032. /* */
  5033. var callbacks = [];
  5034. var pending = false;
  5035. function flushCallbacks () {
  5036. pending = false;
  5037. var copies = callbacks.slice(0);
  5038. callbacks.length = 0;
  5039. for (var i = 0; i < copies.length; i++) {
  5040. copies[i]();
  5041. }
  5042. }
  5043. // Here we have async deferring wrappers using microtasks.
  5044. // In 2.5 we used (macro) tasks (in combination with microtasks).
  5045. // However, it has subtle problems when state is changed right before repaint
  5046. // (e.g. #6813, out-in transitions).
  5047. // Also, using (macro) tasks in event handler would cause some weird behaviors
  5048. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  5049. // So we now use microtasks everywhere, again.
  5050. // A major drawback of this tradeoff is that there are some scenarios
  5051. // where microtasks have too high a priority and fire in between supposedly
  5052. // sequential events (e.g. #4521, #6690, which have workarounds)
  5053. // or even between bubbling of the same event (#6566).
  5054. var timerFunc;
  5055. // The nextTick behavior leverages the microtask queue, which can be accessed
  5056. // via either native Promise.then or MutationObserver.
  5057. // MutationObserver has wider support, however it is seriously bugged in
  5058. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  5059. // completely stops working after triggering a few times... so, if native
  5060. // Promise is available, we will use it:
  5061. /* istanbul ignore next, $flow-disable-line */
  5062. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  5063. var p = Promise.resolve();
  5064. timerFunc = function () {
  5065. p.then(flushCallbacks);
  5066. // In problematic UIWebViews, Promise.then doesn't completely break, but
  5067. // it can get stuck in a weird state where callbacks are pushed into the
  5068. // microtask queue but the queue isn't being flushed, until the browser
  5069. // needs to do some other work, e.g. handle a timer. Therefore we can
  5070. // "force" the microtask queue to be flushed by adding an empty timer.
  5071. if (isIOS) { setTimeout(noop); }
  5072. };
  5073. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  5074. isNative(MutationObserver) ||
  5075. // PhantomJS and iOS 7.x
  5076. MutationObserver.toString() === '[object MutationObserverConstructor]'
  5077. )) {
  5078. // Use MutationObserver where native Promise is not available,
  5079. // e.g. PhantomJS, iOS7, Android 4.4
  5080. // (#6466 MutationObserver is unreliable in IE11)
  5081. var counter = 1;
  5082. var observer = new MutationObserver(flushCallbacks);
  5083. var textNode = document.createTextNode(String(counter));
  5084. observer.observe(textNode, {
  5085. characterData: true
  5086. });
  5087. timerFunc = function () {
  5088. counter = (counter + 1) % 2;
  5089. textNode.data = String(counter);
  5090. };
  5091. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  5092. // Fallback to setImmediate.
  5093. // Technically it leverages the (macro) task queue,
  5094. // but it is still a better choice than setTimeout.
  5095. timerFunc = function () {
  5096. setImmediate(flushCallbacks);
  5097. };
  5098. } else {
  5099. // Fallback to setTimeout.
  5100. timerFunc = function () {
  5101. setTimeout(flushCallbacks, 0);
  5102. };
  5103. }
  5104. function nextTick (cb, ctx) {
  5105. var _resolve;
  5106. callbacks.push(function () {
  5107. if (cb) {
  5108. try {
  5109. cb.call(ctx);
  5110. } catch (e) {
  5111. handleError(e, ctx, 'nextTick');
  5112. }
  5113. } else if (_resolve) {
  5114. _resolve(ctx);
  5115. }
  5116. });
  5117. if (!pending) {
  5118. pending = true;
  5119. timerFunc();
  5120. }
  5121. // $flow-disable-line
  5122. if (!cb && typeof Promise !== 'undefined') {
  5123. return new Promise(function (resolve) {
  5124. _resolve = resolve;
  5125. })
  5126. }
  5127. }
  5128. /* */
  5129. /* not type checking this file because flow doesn't play well with Proxy */
  5130. var initProxy;
  5131. if (true) {
  5132. var allowedGlobals = makeMap(
  5133. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  5134. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  5135. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  5136. 'require' // for Webpack/Browserify
  5137. );
  5138. var warnNonPresent = function (target, key) {
  5139. warn(
  5140. "Property or method \"" + key + "\" is not defined on the instance but " +
  5141. 'referenced during render. Make sure that this property is reactive, ' +
  5142. 'either in the data option, or for class-based components, by ' +
  5143. 'initializing the property. ' +
  5144. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  5145. target
  5146. );
  5147. };
  5148. var warnReservedPrefix = function (target, key) {
  5149. warn(
  5150. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  5151. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  5152. 'prevent conflicts with Vue internals. ' +
  5153. 'See: https://vuejs.org/v2/api/#data',
  5154. target
  5155. );
  5156. };
  5157. var hasProxy =
  5158. typeof Proxy !== 'undefined' && isNative(Proxy);
  5159. if (hasProxy) {
  5160. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  5161. config.keyCodes = new Proxy(config.keyCodes, {
  5162. set: function set (target, key, value) {
  5163. if (isBuiltInModifier(key)) {
  5164. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  5165. return false
  5166. } else {
  5167. target[key] = value;
  5168. return true
  5169. }
  5170. }
  5171. });
  5172. }
  5173. var hasHandler = {
  5174. has: function has (target, key) {
  5175. var has = key in target;
  5176. var isAllowed = allowedGlobals(key) ||
  5177. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  5178. if (!has && !isAllowed) {
  5179. if (key in target.$data) { warnReservedPrefix(target, key); }
  5180. else { warnNonPresent(target, key); }
  5181. }
  5182. return has || !isAllowed
  5183. }
  5184. };
  5185. var getHandler = {
  5186. get: function get (target, key) {
  5187. if (typeof key === 'string' && !(key in target)) {
  5188. if (key in target.$data) { warnReservedPrefix(target, key); }
  5189. else { warnNonPresent(target, key); }
  5190. }
  5191. return target[key]
  5192. }
  5193. };
  5194. initProxy = function initProxy (vm) {
  5195. if (hasProxy) {
  5196. // determine which proxy handler to use
  5197. var options = vm.$options;
  5198. var handlers = options.render && options.render._withStripped
  5199. ? getHandler
  5200. : hasHandler;
  5201. vm._renderProxy = new Proxy(vm, handlers);
  5202. } else {
  5203. vm._renderProxy = vm;
  5204. }
  5205. };
  5206. }
  5207. /* */
  5208. var seenObjects = new _Set();
  5209. /**
  5210. * Recursively traverse an object to evoke all converted
  5211. * getters, so that every nested property inside the object
  5212. * is collected as a "deep" dependency.
  5213. */
  5214. function traverse (val) {
  5215. _traverse(val, seenObjects);
  5216. seenObjects.clear();
  5217. }
  5218. function _traverse (val, seen) {
  5219. var i, keys;
  5220. var isA = Array.isArray(val);
  5221. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  5222. return
  5223. }
  5224. if (val.__ob__) {
  5225. var depId = val.__ob__.dep.id;
  5226. if (seen.has(depId)) {
  5227. return
  5228. }
  5229. seen.add(depId);
  5230. }
  5231. if (isA) {
  5232. i = val.length;
  5233. while (i--) { _traverse(val[i], seen); }
  5234. } else {
  5235. keys = Object.keys(val);
  5236. i = keys.length;
  5237. while (i--) { _traverse(val[keys[i]], seen); }
  5238. }
  5239. }
  5240. var mark;
  5241. var measure;
  5242. if (true) {
  5243. var perf = inBrowser && window.performance;
  5244. /* istanbul ignore if */
  5245. if (
  5246. perf &&
  5247. perf.mark &&
  5248. perf.measure &&
  5249. perf.clearMarks &&
  5250. perf.clearMeasures
  5251. ) {
  5252. mark = function (tag) { return perf.mark(tag); };
  5253. measure = function (name, startTag, endTag) {
  5254. perf.measure(name, startTag, endTag);
  5255. perf.clearMarks(startTag);
  5256. perf.clearMarks(endTag);
  5257. // perf.clearMeasures(name)
  5258. };
  5259. }
  5260. }
  5261. /* */
  5262. var normalizeEvent = cached(function (name) {
  5263. var passive = name.charAt(0) === '&';
  5264. name = passive ? name.slice(1) : name;
  5265. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  5266. name = once$$1 ? name.slice(1) : name;
  5267. var capture = name.charAt(0) === '!';
  5268. name = capture ? name.slice(1) : name;
  5269. return {
  5270. name: name,
  5271. once: once$$1,
  5272. capture: capture,
  5273. passive: passive
  5274. }
  5275. });
  5276. function createFnInvoker (fns, vm) {
  5277. function invoker () {
  5278. var arguments$1 = arguments;
  5279. var fns = invoker.fns;
  5280. if (Array.isArray(fns)) {
  5281. var cloned = fns.slice();
  5282. for (var i = 0; i < cloned.length; i++) {
  5283. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  5284. }
  5285. } else {
  5286. // return handler return value for single handlers
  5287. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  5288. }
  5289. }
  5290. invoker.fns = fns;
  5291. return invoker
  5292. }
  5293. function updateListeners (
  5294. on,
  5295. oldOn,
  5296. add,
  5297. remove$$1,
  5298. createOnceHandler,
  5299. vm
  5300. ) {
  5301. var name, def$$1, cur, old, event;
  5302. for (name in on) {
  5303. def$$1 = cur = on[name];
  5304. old = oldOn[name];
  5305. event = normalizeEvent(name);
  5306. if (isUndef(cur)) {
  5307. true && warn(
  5308. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  5309. vm
  5310. );
  5311. } else if (isUndef(old)) {
  5312. if (isUndef(cur.fns)) {
  5313. cur = on[name] = createFnInvoker(cur, vm);
  5314. }
  5315. if (isTrue(event.once)) {
  5316. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  5317. }
  5318. add(event.name, cur, event.capture, event.passive, event.params);
  5319. } else if (cur !== old) {
  5320. old.fns = cur;
  5321. on[name] = old;
  5322. }
  5323. }
  5324. for (name in oldOn) {
  5325. if (isUndef(on[name])) {
  5326. event = normalizeEvent(name);
  5327. remove$$1(event.name, oldOn[name], event.capture);
  5328. }
  5329. }
  5330. }
  5331. /* */
  5332. /* */
  5333. // fixed by xxxxxx (mp properties)
  5334. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  5335. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  5336. if (isUndef(propOptions)) {
  5337. return res
  5338. }
  5339. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  5340. var attrs = data.attrs;
  5341. var props = data.props;
  5342. if (isDef(attrs) || isDef(props)) {
  5343. for (var key in propOptions) {
  5344. var altKey = hyphenate(key);
  5345. var result = checkProp(res, props, key, altKey, true) ||
  5346. checkProp(res, attrs, key, altKey, false);
  5347. // externalClass
  5348. if (
  5349. result &&
  5350. res[key] &&
  5351. externalClasses.indexOf(altKey) !== -1 &&
  5352. context[camelize(res[key])]
  5353. ) {
  5354. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  5355. res[key] = context[camelize(res[key])];
  5356. }
  5357. }
  5358. }
  5359. return res
  5360. }
  5361. function extractPropsFromVNodeData (
  5362. data,
  5363. Ctor,
  5364. tag,
  5365. context// fixed by xxxxxx
  5366. ) {
  5367. // we are only extracting raw values here.
  5368. // validation and default values are handled in the child
  5369. // component itself.
  5370. var propOptions = Ctor.options.props;
  5371. if (isUndef(propOptions)) {
  5372. // fixed by xxxxxx
  5373. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  5374. }
  5375. var res = {};
  5376. var attrs = data.attrs;
  5377. var props = data.props;
  5378. if (isDef(attrs) || isDef(props)) {
  5379. for (var key in propOptions) {
  5380. var altKey = hyphenate(key);
  5381. if (true) {
  5382. var keyInLowerCase = key.toLowerCase();
  5383. if (
  5384. key !== keyInLowerCase &&
  5385. attrs && hasOwn(attrs, keyInLowerCase)
  5386. ) {
  5387. tip(
  5388. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  5389. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  5390. " \"" + key + "\". " +
  5391. "Note that HTML attributes are case-insensitive and camelCased " +
  5392. "props need to use their kebab-case equivalents when using in-DOM " +
  5393. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  5394. );
  5395. }
  5396. }
  5397. checkProp(res, props, key, altKey, true) ||
  5398. checkProp(res, attrs, key, altKey, false);
  5399. }
  5400. }
  5401. // fixed by xxxxxx
  5402. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  5403. }
  5404. function checkProp (
  5405. res,
  5406. hash,
  5407. key,
  5408. altKey,
  5409. preserve
  5410. ) {
  5411. if (isDef(hash)) {
  5412. if (hasOwn(hash, key)) {
  5413. res[key] = hash[key];
  5414. if (!preserve) {
  5415. delete hash[key];
  5416. }
  5417. return true
  5418. } else if (hasOwn(hash, altKey)) {
  5419. res[key] = hash[altKey];
  5420. if (!preserve) {
  5421. delete hash[altKey];
  5422. }
  5423. return true
  5424. }
  5425. }
  5426. return false
  5427. }
  5428. /* */
  5429. // The template compiler attempts to minimize the need for normalization by
  5430. // statically analyzing the template at compile time.
  5431. //
  5432. // For plain HTML markup, normalization can be completely skipped because the
  5433. // generated render function is guaranteed to return Array<VNode>. There are
  5434. // two cases where extra normalization is needed:
  5435. // 1. When the children contains components - because a functional component
  5436. // may return an Array instead of a single root. In this case, just a simple
  5437. // normalization is needed - if any child is an Array, we flatten the whole
  5438. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  5439. // because functional components already normalize their own children.
  5440. function simpleNormalizeChildren (children) {
  5441. for (var i = 0; i < children.length; i++) {
  5442. if (Array.isArray(children[i])) {
  5443. return Array.prototype.concat.apply([], children)
  5444. }
  5445. }
  5446. return children
  5447. }
  5448. // 2. When the children contains constructs that always generated nested Arrays,
  5449. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  5450. // with hand-written render functions / JSX. In such cases a full normalization
  5451. // is needed to cater to all possible types of children values.
  5452. function normalizeChildren (children) {
  5453. return isPrimitive(children)
  5454. ? [createTextVNode(children)]
  5455. : Array.isArray(children)
  5456. ? normalizeArrayChildren(children)
  5457. : undefined
  5458. }
  5459. function isTextNode (node) {
  5460. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  5461. }
  5462. function normalizeArrayChildren (children, nestedIndex) {
  5463. var res = [];
  5464. var i, c, lastIndex, last;
  5465. for (i = 0; i < children.length; i++) {
  5466. c = children[i];
  5467. if (isUndef(c) || typeof c === 'boolean') { continue }
  5468. lastIndex = res.length - 1;
  5469. last = res[lastIndex];
  5470. // nested
  5471. if (Array.isArray(c)) {
  5472. if (c.length > 0) {
  5473. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  5474. // merge adjacent text nodes
  5475. if (isTextNode(c[0]) && isTextNode(last)) {
  5476. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  5477. c.shift();
  5478. }
  5479. res.push.apply(res, c);
  5480. }
  5481. } else if (isPrimitive(c)) {
  5482. if (isTextNode(last)) {
  5483. // merge adjacent text nodes
  5484. // this is necessary for SSR hydration because text nodes are
  5485. // essentially merged when rendered to HTML strings
  5486. res[lastIndex] = createTextVNode(last.text + c);
  5487. } else if (c !== '') {
  5488. // convert primitive to vnode
  5489. res.push(createTextVNode(c));
  5490. }
  5491. } else {
  5492. if (isTextNode(c) && isTextNode(last)) {
  5493. // merge adjacent text nodes
  5494. res[lastIndex] = createTextVNode(last.text + c.text);
  5495. } else {
  5496. // default key for nested array children (likely generated by v-for)
  5497. if (isTrue(children._isVList) &&
  5498. isDef(c.tag) &&
  5499. isUndef(c.key) &&
  5500. isDef(nestedIndex)) {
  5501. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  5502. }
  5503. res.push(c);
  5504. }
  5505. }
  5506. }
  5507. return res
  5508. }
  5509. /* */
  5510. function initProvide (vm) {
  5511. var provide = vm.$options.provide;
  5512. if (provide) {
  5513. vm._provided = typeof provide === 'function'
  5514. ? provide.call(vm)
  5515. : provide;
  5516. }
  5517. }
  5518. function initInjections (vm) {
  5519. var result = resolveInject(vm.$options.inject, vm);
  5520. if (result) {
  5521. toggleObserving(false);
  5522. Object.keys(result).forEach(function (key) {
  5523. /* istanbul ignore else */
  5524. if (true) {
  5525. defineReactive$$1(vm, key, result[key], function () {
  5526. warn(
  5527. "Avoid mutating an injected value directly since the changes will be " +
  5528. "overwritten whenever the provided component re-renders. " +
  5529. "injection being mutated: \"" + key + "\"",
  5530. vm
  5531. );
  5532. });
  5533. } else {}
  5534. });
  5535. toggleObserving(true);
  5536. }
  5537. }
  5538. function resolveInject (inject, vm) {
  5539. if (inject) {
  5540. // inject is :any because flow is not smart enough to figure out cached
  5541. var result = Object.create(null);
  5542. var keys = hasSymbol
  5543. ? Reflect.ownKeys(inject)
  5544. : Object.keys(inject);
  5545. for (var i = 0; i < keys.length; i++) {
  5546. var key = keys[i];
  5547. // #6574 in case the inject object is observed...
  5548. if (key === '__ob__') { continue }
  5549. var provideKey = inject[key].from;
  5550. var source = vm;
  5551. while (source) {
  5552. if (source._provided && hasOwn(source._provided, provideKey)) {
  5553. result[key] = source._provided[provideKey];
  5554. break
  5555. }
  5556. source = source.$parent;
  5557. }
  5558. if (!source) {
  5559. if ('default' in inject[key]) {
  5560. var provideDefault = inject[key].default;
  5561. result[key] = typeof provideDefault === 'function'
  5562. ? provideDefault.call(vm)
  5563. : provideDefault;
  5564. } else if (true) {
  5565. warn(("Injection \"" + key + "\" not found"), vm);
  5566. }
  5567. }
  5568. }
  5569. return result
  5570. }
  5571. }
  5572. /* */
  5573. /**
  5574. * Runtime helper for resolving raw children VNodes into a slot object.
  5575. */
  5576. function resolveSlots (
  5577. children,
  5578. context
  5579. ) {
  5580. if (!children || !children.length) {
  5581. return {}
  5582. }
  5583. var slots = {};
  5584. for (var i = 0, l = children.length; i < l; i++) {
  5585. var child = children[i];
  5586. var data = child.data;
  5587. // remove slot attribute if the node is resolved as a Vue slot node
  5588. if (data && data.attrs && data.attrs.slot) {
  5589. delete data.attrs.slot;
  5590. }
  5591. // named slots should only be respected if the vnode was rendered in the
  5592. // same context.
  5593. if ((child.context === context || child.fnContext === context) &&
  5594. data && data.slot != null
  5595. ) {
  5596. var name = data.slot;
  5597. var slot = (slots[name] || (slots[name] = []));
  5598. if (child.tag === 'template') {
  5599. slot.push.apply(slot, child.children || []);
  5600. } else {
  5601. slot.push(child);
  5602. }
  5603. } else {
  5604. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  5605. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  5606. (slots['page'] || (slots['page'] = [])).push(child);
  5607. }else{
  5608. (slots.default || (slots.default = [])).push(child);
  5609. }
  5610. }
  5611. }
  5612. // ignore slots that contains only whitespace
  5613. for (var name$1 in slots) {
  5614. if (slots[name$1].every(isWhitespace)) {
  5615. delete slots[name$1];
  5616. }
  5617. }
  5618. return slots
  5619. }
  5620. function isWhitespace (node) {
  5621. return (node.isComment && !node.asyncFactory) || node.text === ' '
  5622. }
  5623. /* */
  5624. function normalizeScopedSlots (
  5625. slots,
  5626. normalSlots,
  5627. prevSlots
  5628. ) {
  5629. var res;
  5630. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  5631. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  5632. var key = slots && slots.$key;
  5633. if (!slots) {
  5634. res = {};
  5635. } else if (slots._normalized) {
  5636. // fast path 1: child component re-render only, parent did not change
  5637. return slots._normalized
  5638. } else if (
  5639. isStable &&
  5640. prevSlots &&
  5641. prevSlots !== emptyObject &&
  5642. key === prevSlots.$key &&
  5643. !hasNormalSlots &&
  5644. !prevSlots.$hasNormal
  5645. ) {
  5646. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  5647. // only need to normalize once
  5648. return prevSlots
  5649. } else {
  5650. res = {};
  5651. for (var key$1 in slots) {
  5652. if (slots[key$1] && key$1[0] !== '$') {
  5653. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  5654. }
  5655. }
  5656. }
  5657. // expose normal slots on scopedSlots
  5658. for (var key$2 in normalSlots) {
  5659. if (!(key$2 in res)) {
  5660. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  5661. }
  5662. }
  5663. // avoriaz seems to mock a non-extensible $scopedSlots object
  5664. // and when that is passed down this would cause an error
  5665. if (slots && Object.isExtensible(slots)) {
  5666. (slots)._normalized = res;
  5667. }
  5668. def(res, '$stable', isStable);
  5669. def(res, '$key', key);
  5670. def(res, '$hasNormal', hasNormalSlots);
  5671. return res
  5672. }
  5673. function normalizeScopedSlot(normalSlots, key, fn) {
  5674. var normalized = function () {
  5675. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  5676. res = res && typeof res === 'object' && !Array.isArray(res)
  5677. ? [res] // single vnode
  5678. : normalizeChildren(res);
  5679. return res && (
  5680. res.length === 0 ||
  5681. (res.length === 1 && res[0].isComment) // #9658
  5682. ) ? undefined
  5683. : res
  5684. };
  5685. // this is a slot using the new v-slot syntax without scope. although it is
  5686. // compiled as a scoped slot, render fn users would expect it to be present
  5687. // on this.$slots because the usage is semantically a normal slot.
  5688. if (fn.proxy) {
  5689. Object.defineProperty(normalSlots, key, {
  5690. get: normalized,
  5691. enumerable: true,
  5692. configurable: true
  5693. });
  5694. }
  5695. return normalized
  5696. }
  5697. function proxyNormalSlot(slots, key) {
  5698. return function () { return slots[key]; }
  5699. }
  5700. /* */
  5701. /**
  5702. * Runtime helper for rendering v-for lists.
  5703. */
  5704. function renderList (
  5705. val,
  5706. render
  5707. ) {
  5708. var ret, i, l, keys, key;
  5709. if (Array.isArray(val) || typeof val === 'string') {
  5710. ret = new Array(val.length);
  5711. for (i = 0, l = val.length; i < l; i++) {
  5712. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  5713. }
  5714. } else if (typeof val === 'number') {
  5715. ret = new Array(val);
  5716. for (i = 0; i < val; i++) {
  5717. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  5718. }
  5719. } else if (isObject(val)) {
  5720. if (hasSymbol && val[Symbol.iterator]) {
  5721. ret = [];
  5722. var iterator = val[Symbol.iterator]();
  5723. var result = iterator.next();
  5724. while (!result.done) {
  5725. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  5726. result = iterator.next();
  5727. }
  5728. } else {
  5729. keys = Object.keys(val);
  5730. ret = new Array(keys.length);
  5731. for (i = 0, l = keys.length; i < l; i++) {
  5732. key = keys[i];
  5733. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  5734. }
  5735. }
  5736. }
  5737. if (!isDef(ret)) {
  5738. ret = [];
  5739. }
  5740. (ret)._isVList = true;
  5741. return ret
  5742. }
  5743. /* */
  5744. /**
  5745. * Runtime helper for rendering <slot>
  5746. */
  5747. function renderSlot (
  5748. name,
  5749. fallback,
  5750. props,
  5751. bindObject
  5752. ) {
  5753. var scopedSlotFn = this.$scopedSlots[name];
  5754. var nodes;
  5755. if (scopedSlotFn) { // scoped slot
  5756. props = props || {};
  5757. if (bindObject) {
  5758. if ( true && !isObject(bindObject)) {
  5759. warn(
  5760. 'slot v-bind without argument expects an Object',
  5761. this
  5762. );
  5763. }
  5764. props = extend(extend({}, bindObject), props);
  5765. }
  5766. // fixed by xxxxxx app-plus scopedSlot
  5767. nodes = scopedSlotFn(props, this, props._i) || fallback;
  5768. } else {
  5769. nodes = this.$slots[name] || fallback;
  5770. }
  5771. var target = props && props.slot;
  5772. if (target) {
  5773. return this.$createElement('template', { slot: target }, nodes)
  5774. } else {
  5775. return nodes
  5776. }
  5777. }
  5778. /* */
  5779. /**
  5780. * Runtime helper for resolving filters
  5781. */
  5782. function resolveFilter (id) {
  5783. return resolveAsset(this.$options, 'filters', id, true) || identity
  5784. }
  5785. /* */
  5786. function isKeyNotMatch (expect, actual) {
  5787. if (Array.isArray(expect)) {
  5788. return expect.indexOf(actual) === -1
  5789. } else {
  5790. return expect !== actual
  5791. }
  5792. }
  5793. /**
  5794. * Runtime helper for checking keyCodes from config.
  5795. * exposed as Vue.prototype._k
  5796. * passing in eventKeyName as last argument separately for backwards compat
  5797. */
  5798. function checkKeyCodes (
  5799. eventKeyCode,
  5800. key,
  5801. builtInKeyCode,
  5802. eventKeyName,
  5803. builtInKeyName
  5804. ) {
  5805. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  5806. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  5807. return isKeyNotMatch(builtInKeyName, eventKeyName)
  5808. } else if (mappedKeyCode) {
  5809. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  5810. } else if (eventKeyName) {
  5811. return hyphenate(eventKeyName) !== key
  5812. }
  5813. }
  5814. /* */
  5815. /**
  5816. * Runtime helper for merging v-bind="object" into a VNode's data.
  5817. */
  5818. function bindObjectProps (
  5819. data,
  5820. tag,
  5821. value,
  5822. asProp,
  5823. isSync
  5824. ) {
  5825. if (value) {
  5826. if (!isObject(value)) {
  5827. true && warn(
  5828. 'v-bind without argument expects an Object or Array value',
  5829. this
  5830. );
  5831. } else {
  5832. if (Array.isArray(value)) {
  5833. value = toObject(value);
  5834. }
  5835. var hash;
  5836. var loop = function ( key ) {
  5837. if (
  5838. key === 'class' ||
  5839. key === 'style' ||
  5840. isReservedAttribute(key)
  5841. ) {
  5842. hash = data;
  5843. } else {
  5844. var type = data.attrs && data.attrs.type;
  5845. hash = asProp || config.mustUseProp(tag, type, key)
  5846. ? data.domProps || (data.domProps = {})
  5847. : data.attrs || (data.attrs = {});
  5848. }
  5849. var camelizedKey = camelize(key);
  5850. var hyphenatedKey = hyphenate(key);
  5851. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  5852. hash[key] = value[key];
  5853. if (isSync) {
  5854. var on = data.on || (data.on = {});
  5855. on[("update:" + key)] = function ($event) {
  5856. value[key] = $event;
  5857. };
  5858. }
  5859. }
  5860. };
  5861. for (var key in value) loop( key );
  5862. }
  5863. }
  5864. return data
  5865. }
  5866. /* */
  5867. /**
  5868. * Runtime helper for rendering static trees.
  5869. */
  5870. function renderStatic (
  5871. index,
  5872. isInFor
  5873. ) {
  5874. var cached = this._staticTrees || (this._staticTrees = []);
  5875. var tree = cached[index];
  5876. // if has already-rendered static tree and not inside v-for,
  5877. // we can reuse the same tree.
  5878. if (tree && !isInFor) {
  5879. return tree
  5880. }
  5881. // otherwise, render a fresh tree.
  5882. tree = cached[index] = this.$options.staticRenderFns[index].call(
  5883. this._renderProxy,
  5884. null,
  5885. this // for render fns generated for functional component templates
  5886. );
  5887. markStatic(tree, ("__static__" + index), false);
  5888. return tree
  5889. }
  5890. /**
  5891. * Runtime helper for v-once.
  5892. * Effectively it means marking the node as static with a unique key.
  5893. */
  5894. function markOnce (
  5895. tree,
  5896. index,
  5897. key
  5898. ) {
  5899. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  5900. return tree
  5901. }
  5902. function markStatic (
  5903. tree,
  5904. key,
  5905. isOnce
  5906. ) {
  5907. if (Array.isArray(tree)) {
  5908. for (var i = 0; i < tree.length; i++) {
  5909. if (tree[i] && typeof tree[i] !== 'string') {
  5910. markStaticNode(tree[i], (key + "_" + i), isOnce);
  5911. }
  5912. }
  5913. } else {
  5914. markStaticNode(tree, key, isOnce);
  5915. }
  5916. }
  5917. function markStaticNode (node, key, isOnce) {
  5918. node.isStatic = true;
  5919. node.key = key;
  5920. node.isOnce = isOnce;
  5921. }
  5922. /* */
  5923. function bindObjectListeners (data, value) {
  5924. if (value) {
  5925. if (!isPlainObject(value)) {
  5926. true && warn(
  5927. 'v-on without argument expects an Object value',
  5928. this
  5929. );
  5930. } else {
  5931. var on = data.on = data.on ? extend({}, data.on) : {};
  5932. for (var key in value) {
  5933. var existing = on[key];
  5934. var ours = value[key];
  5935. on[key] = existing ? [].concat(existing, ours) : ours;
  5936. }
  5937. }
  5938. }
  5939. return data
  5940. }
  5941. /* */
  5942. function resolveScopedSlots (
  5943. fns, // see flow/vnode
  5944. res,
  5945. // the following are added in 2.6
  5946. hasDynamicKeys,
  5947. contentHashKey
  5948. ) {
  5949. res = res || { $stable: !hasDynamicKeys };
  5950. for (var i = 0; i < fns.length; i++) {
  5951. var slot = fns[i];
  5952. if (Array.isArray(slot)) {
  5953. resolveScopedSlots(slot, res, hasDynamicKeys);
  5954. } else if (slot) {
  5955. // marker for reverse proxying v-slot without scope on this.$slots
  5956. if (slot.proxy) {
  5957. slot.fn.proxy = true;
  5958. }
  5959. res[slot.key] = slot.fn;
  5960. }
  5961. }
  5962. if (contentHashKey) {
  5963. (res).$key = contentHashKey;
  5964. }
  5965. return res
  5966. }
  5967. /* */
  5968. function bindDynamicKeys (baseObj, values) {
  5969. for (var i = 0; i < values.length; i += 2) {
  5970. var key = values[i];
  5971. if (typeof key === 'string' && key) {
  5972. baseObj[values[i]] = values[i + 1];
  5973. } else if ( true && key !== '' && key !== null) {
  5974. // null is a special value for explicitly removing a binding
  5975. warn(
  5976. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  5977. this
  5978. );
  5979. }
  5980. }
  5981. return baseObj
  5982. }
  5983. // helper to dynamically append modifier runtime markers to event names.
  5984. // ensure only append when value is already string, otherwise it will be cast
  5985. // to string and cause the type check to miss.
  5986. function prependModifier (value, symbol) {
  5987. return typeof value === 'string' ? symbol + value : value
  5988. }
  5989. /* */
  5990. function installRenderHelpers (target) {
  5991. target._o = markOnce;
  5992. target._n = toNumber;
  5993. target._s = toString;
  5994. target._l = renderList;
  5995. target._t = renderSlot;
  5996. target._q = looseEqual;
  5997. target._i = looseIndexOf;
  5998. target._m = renderStatic;
  5999. target._f = resolveFilter;
  6000. target._k = checkKeyCodes;
  6001. target._b = bindObjectProps;
  6002. target._v = createTextVNode;
  6003. target._e = createEmptyVNode;
  6004. target._u = resolveScopedSlots;
  6005. target._g = bindObjectListeners;
  6006. target._d = bindDynamicKeys;
  6007. target._p = prependModifier;
  6008. }
  6009. /* */
  6010. function FunctionalRenderContext (
  6011. data,
  6012. props,
  6013. children,
  6014. parent,
  6015. Ctor
  6016. ) {
  6017. var this$1 = this;
  6018. var options = Ctor.options;
  6019. // ensure the createElement function in functional components
  6020. // gets a unique context - this is necessary for correct named slot check
  6021. var contextVm;
  6022. if (hasOwn(parent, '_uid')) {
  6023. contextVm = Object.create(parent);
  6024. // $flow-disable-line
  6025. contextVm._original = parent;
  6026. } else {
  6027. // the context vm passed in is a functional context as well.
  6028. // in this case we want to make sure we are able to get a hold to the
  6029. // real context instance.
  6030. contextVm = parent;
  6031. // $flow-disable-line
  6032. parent = parent._original;
  6033. }
  6034. var isCompiled = isTrue(options._compiled);
  6035. var needNormalization = !isCompiled;
  6036. this.data = data;
  6037. this.props = props;
  6038. this.children = children;
  6039. this.parent = parent;
  6040. this.listeners = data.on || emptyObject;
  6041. this.injections = resolveInject(options.inject, parent);
  6042. this.slots = function () {
  6043. if (!this$1.$slots) {
  6044. normalizeScopedSlots(
  6045. data.scopedSlots,
  6046. this$1.$slots = resolveSlots(children, parent)
  6047. );
  6048. }
  6049. return this$1.$slots
  6050. };
  6051. Object.defineProperty(this, 'scopedSlots', ({
  6052. enumerable: true,
  6053. get: function get () {
  6054. return normalizeScopedSlots(data.scopedSlots, this.slots())
  6055. }
  6056. }));
  6057. // support for compiled functional template
  6058. if (isCompiled) {
  6059. // exposing $options for renderStatic()
  6060. this.$options = options;
  6061. // pre-resolve slots for renderSlot()
  6062. this.$slots = this.slots();
  6063. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  6064. }
  6065. if (options._scopeId) {
  6066. this._c = function (a, b, c, d) {
  6067. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  6068. if (vnode && !Array.isArray(vnode)) {
  6069. vnode.fnScopeId = options._scopeId;
  6070. vnode.fnContext = parent;
  6071. }
  6072. return vnode
  6073. };
  6074. } else {
  6075. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  6076. }
  6077. }
  6078. installRenderHelpers(FunctionalRenderContext.prototype);
  6079. function createFunctionalComponent (
  6080. Ctor,
  6081. propsData,
  6082. data,
  6083. contextVm,
  6084. children
  6085. ) {
  6086. var options = Ctor.options;
  6087. var props = {};
  6088. var propOptions = options.props;
  6089. if (isDef(propOptions)) {
  6090. for (var key in propOptions) {
  6091. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  6092. }
  6093. } else {
  6094. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  6095. if (isDef(data.props)) { mergeProps(props, data.props); }
  6096. }
  6097. var renderContext = new FunctionalRenderContext(
  6098. data,
  6099. props,
  6100. children,
  6101. contextVm,
  6102. Ctor
  6103. );
  6104. var vnode = options.render.call(null, renderContext._c, renderContext);
  6105. if (vnode instanceof VNode) {
  6106. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  6107. } else if (Array.isArray(vnode)) {
  6108. var vnodes = normalizeChildren(vnode) || [];
  6109. var res = new Array(vnodes.length);
  6110. for (var i = 0; i < vnodes.length; i++) {
  6111. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  6112. }
  6113. return res
  6114. }
  6115. }
  6116. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  6117. // #7817 clone node before setting fnContext, otherwise if the node is reused
  6118. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  6119. // that should not be matched to match.
  6120. var clone = cloneVNode(vnode);
  6121. clone.fnContext = contextVm;
  6122. clone.fnOptions = options;
  6123. if (true) {
  6124. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  6125. }
  6126. if (data.slot) {
  6127. (clone.data || (clone.data = {})).slot = data.slot;
  6128. }
  6129. return clone
  6130. }
  6131. function mergeProps (to, from) {
  6132. for (var key in from) {
  6133. to[camelize(key)] = from[key];
  6134. }
  6135. }
  6136. /* */
  6137. /* */
  6138. /* */
  6139. /* */
  6140. // inline hooks to be invoked on component VNodes during patch
  6141. var componentVNodeHooks = {
  6142. init: function init (vnode, hydrating) {
  6143. if (
  6144. vnode.componentInstance &&
  6145. !vnode.componentInstance._isDestroyed &&
  6146. vnode.data.keepAlive
  6147. ) {
  6148. // kept-alive components, treat as a patch
  6149. var mountedNode = vnode; // work around flow
  6150. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  6151. } else {
  6152. var child = vnode.componentInstance = createComponentInstanceForVnode(
  6153. vnode,
  6154. activeInstance
  6155. );
  6156. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  6157. }
  6158. },
  6159. prepatch: function prepatch (oldVnode, vnode) {
  6160. var options = vnode.componentOptions;
  6161. var child = vnode.componentInstance = oldVnode.componentInstance;
  6162. updateChildComponent(
  6163. child,
  6164. options.propsData, // updated props
  6165. options.listeners, // updated listeners
  6166. vnode, // new parent vnode
  6167. options.children // new children
  6168. );
  6169. },
  6170. insert: function insert (vnode) {
  6171. var context = vnode.context;
  6172. var componentInstance = vnode.componentInstance;
  6173. if (!componentInstance._isMounted) {
  6174. callHook(componentInstance, 'onServiceCreated');
  6175. callHook(componentInstance, 'onServiceAttached');
  6176. componentInstance._isMounted = true;
  6177. callHook(componentInstance, 'mounted');
  6178. }
  6179. if (vnode.data.keepAlive) {
  6180. if (context._isMounted) {
  6181. // vue-router#1212
  6182. // During updates, a kept-alive component's child components may
  6183. // change, so directly walking the tree here may call activated hooks
  6184. // on incorrect children. Instead we push them into a queue which will
  6185. // be processed after the whole patch process ended.
  6186. queueActivatedComponent(componentInstance);
  6187. } else {
  6188. activateChildComponent(componentInstance, true /* direct */);
  6189. }
  6190. }
  6191. },
  6192. destroy: function destroy (vnode) {
  6193. var componentInstance = vnode.componentInstance;
  6194. if (!componentInstance._isDestroyed) {
  6195. if (!vnode.data.keepAlive) {
  6196. componentInstance.$destroy();
  6197. } else {
  6198. deactivateChildComponent(componentInstance, true /* direct */);
  6199. }
  6200. }
  6201. }
  6202. };
  6203. var hooksToMerge = Object.keys(componentVNodeHooks);
  6204. function createComponent (
  6205. Ctor,
  6206. data,
  6207. context,
  6208. children,
  6209. tag
  6210. ) {
  6211. if (isUndef(Ctor)) {
  6212. return
  6213. }
  6214. var baseCtor = context.$options._base;
  6215. // plain options object: turn it into a constructor
  6216. if (isObject(Ctor)) {
  6217. Ctor = baseCtor.extend(Ctor);
  6218. }
  6219. // if at this stage it's not a constructor or an async component factory,
  6220. // reject.
  6221. if (typeof Ctor !== 'function') {
  6222. if (true) {
  6223. warn(("Invalid Component definition: " + (String(Ctor))), context);
  6224. }
  6225. return
  6226. }
  6227. // async component
  6228. var asyncFactory;
  6229. if (isUndef(Ctor.cid)) {
  6230. asyncFactory = Ctor;
  6231. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  6232. if (Ctor === undefined) {
  6233. // return a placeholder node for async component, which is rendered
  6234. // as a comment node but preserves all the raw information for the node.
  6235. // the information will be used for async server-rendering and hydration.
  6236. return createAsyncPlaceholder(
  6237. asyncFactory,
  6238. data,
  6239. context,
  6240. children,
  6241. tag
  6242. )
  6243. }
  6244. }
  6245. data = data || {};
  6246. // resolve constructor options in case global mixins are applied after
  6247. // component constructor creation
  6248. resolveConstructorOptions(Ctor);
  6249. // transform component v-model data into props & events
  6250. if (isDef(data.model)) {
  6251. transformModel(Ctor.options, data);
  6252. }
  6253. // extract props
  6254. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  6255. // functional component
  6256. if (isTrue(Ctor.options.functional)) {
  6257. return createFunctionalComponent(Ctor, propsData, data, context, children)
  6258. }
  6259. // extract listeners, since these needs to be treated as
  6260. // child component listeners instead of DOM listeners
  6261. var listeners = data.on;
  6262. // replace with listeners with .native modifier
  6263. // so it gets processed during parent component patch.
  6264. data.on = data.nativeOn;
  6265. if (isTrue(Ctor.options.abstract)) {
  6266. // abstract components do not keep anything
  6267. // other than props & listeners & slot
  6268. // work around flow
  6269. var slot = data.slot;
  6270. data = {};
  6271. if (slot) {
  6272. data.slot = slot;
  6273. }
  6274. }
  6275. // install component management hooks onto the placeholder node
  6276. installComponentHooks(data);
  6277. // return a placeholder vnode
  6278. var name = Ctor.options.name || tag;
  6279. var vnode = new VNode(
  6280. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  6281. data, undefined, undefined, undefined, context,
  6282. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  6283. asyncFactory
  6284. );
  6285. return vnode
  6286. }
  6287. function createComponentInstanceForVnode (
  6288. vnode, // we know it's MountedComponentVNode but flow doesn't
  6289. parent // activeInstance in lifecycle state
  6290. ) {
  6291. var options = {
  6292. _isComponent: true,
  6293. _parentVnode: vnode,
  6294. parent: parent
  6295. };
  6296. // check inline-template render functions
  6297. var inlineTemplate = vnode.data.inlineTemplate;
  6298. if (isDef(inlineTemplate)) {
  6299. options.render = inlineTemplate.render;
  6300. options.staticRenderFns = inlineTemplate.staticRenderFns;
  6301. }
  6302. return new vnode.componentOptions.Ctor(options)
  6303. }
  6304. function installComponentHooks (data) {
  6305. var hooks = data.hook || (data.hook = {});
  6306. for (var i = 0; i < hooksToMerge.length; i++) {
  6307. var key = hooksToMerge[i];
  6308. var existing = hooks[key];
  6309. var toMerge = componentVNodeHooks[key];
  6310. if (existing !== toMerge && !(existing && existing._merged)) {
  6311. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  6312. }
  6313. }
  6314. }
  6315. function mergeHook$1 (f1, f2) {
  6316. var merged = function (a, b) {
  6317. // flow complains about extra args which is why we use any
  6318. f1(a, b);
  6319. f2(a, b);
  6320. };
  6321. merged._merged = true;
  6322. return merged
  6323. }
  6324. // transform component v-model info (value and callback) into
  6325. // prop and event handler respectively.
  6326. function transformModel (options, data) {
  6327. var prop = (options.model && options.model.prop) || 'value';
  6328. var event = (options.model && options.model.event) || 'input'
  6329. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  6330. var on = data.on || (data.on = {});
  6331. var existing = on[event];
  6332. var callback = data.model.callback;
  6333. if (isDef(existing)) {
  6334. if (
  6335. Array.isArray(existing)
  6336. ? existing.indexOf(callback) === -1
  6337. : existing !== callback
  6338. ) {
  6339. on[event] = [callback].concat(existing);
  6340. }
  6341. } else {
  6342. on[event] = callback;
  6343. }
  6344. }
  6345. /* */
  6346. var SIMPLE_NORMALIZE = 1;
  6347. var ALWAYS_NORMALIZE = 2;
  6348. // wrapper function for providing a more flexible interface
  6349. // without getting yelled at by flow
  6350. function createElement (
  6351. context,
  6352. tag,
  6353. data,
  6354. children,
  6355. normalizationType,
  6356. alwaysNormalize
  6357. ) {
  6358. if (Array.isArray(data) || isPrimitive(data)) {
  6359. normalizationType = children;
  6360. children = data;
  6361. data = undefined;
  6362. }
  6363. if (isTrue(alwaysNormalize)) {
  6364. normalizationType = ALWAYS_NORMALIZE;
  6365. }
  6366. return _createElement(context, tag, data, children, normalizationType)
  6367. }
  6368. function _createElement (
  6369. context,
  6370. tag,
  6371. data,
  6372. children,
  6373. normalizationType
  6374. ) {
  6375. if (isDef(data) && isDef((data).__ob__)) {
  6376. true && warn(
  6377. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  6378. 'Always create fresh vnode data objects in each render!',
  6379. context
  6380. );
  6381. return createEmptyVNode()
  6382. }
  6383. // object syntax in v-bind
  6384. if (isDef(data) && isDef(data.is)) {
  6385. tag = data.is;
  6386. }
  6387. if (!tag) {
  6388. // in case of component :is set to falsy value
  6389. return createEmptyVNode()
  6390. }
  6391. // warn against non-primitive key
  6392. if ( true &&
  6393. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  6394. ) {
  6395. {
  6396. warn(
  6397. 'Avoid using non-primitive value as key, ' +
  6398. 'use string/number value instead.',
  6399. context
  6400. );
  6401. }
  6402. }
  6403. // support single function children as default scoped slot
  6404. if (Array.isArray(children) &&
  6405. typeof children[0] === 'function'
  6406. ) {
  6407. data = data || {};
  6408. data.scopedSlots = { default: children[0] };
  6409. children.length = 0;
  6410. }
  6411. if (normalizationType === ALWAYS_NORMALIZE) {
  6412. children = normalizeChildren(children);
  6413. } else if (normalizationType === SIMPLE_NORMALIZE) {
  6414. children = simpleNormalizeChildren(children);
  6415. }
  6416. var vnode, ns;
  6417. if (typeof tag === 'string') {
  6418. var Ctor;
  6419. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  6420. if (config.isReservedTag(tag)) {
  6421. // platform built-in elements
  6422. if ( true && isDef(data) && isDef(data.nativeOn)) {
  6423. warn(
  6424. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  6425. context
  6426. );
  6427. }
  6428. vnode = new VNode(
  6429. config.parsePlatformTagName(tag), data, children,
  6430. undefined, undefined, context
  6431. );
  6432. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  6433. // component
  6434. vnode = createComponent(Ctor, data, context, children, tag);
  6435. } else {
  6436. // unknown or unlisted namespaced elements
  6437. // check at runtime because it may get assigned a namespace when its
  6438. // parent normalizes children
  6439. vnode = new VNode(
  6440. tag, data, children,
  6441. undefined, undefined, context
  6442. );
  6443. }
  6444. } else {
  6445. // direct component options / constructor
  6446. vnode = createComponent(tag, data, context, children);
  6447. }
  6448. if (Array.isArray(vnode)) {
  6449. return vnode
  6450. } else if (isDef(vnode)) {
  6451. if (isDef(ns)) { applyNS(vnode, ns); }
  6452. if (isDef(data)) { registerDeepBindings(data); }
  6453. return vnode
  6454. } else {
  6455. return createEmptyVNode()
  6456. }
  6457. }
  6458. function applyNS (vnode, ns, force) {
  6459. vnode.ns = ns;
  6460. if (vnode.tag === 'foreignObject') {
  6461. // use default namespace inside foreignObject
  6462. ns = undefined;
  6463. force = true;
  6464. }
  6465. if (isDef(vnode.children)) {
  6466. for (var i = 0, l = vnode.children.length; i < l; i++) {
  6467. var child = vnode.children[i];
  6468. if (isDef(child.tag) && (
  6469. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  6470. applyNS(child, ns, force);
  6471. }
  6472. }
  6473. }
  6474. }
  6475. // ref #5318
  6476. // necessary to ensure parent re-render when deep bindings like :style and
  6477. // :class are used on slot nodes
  6478. function registerDeepBindings (data) {
  6479. if (isObject(data.style)) {
  6480. traverse(data.style);
  6481. }
  6482. if (isObject(data.class)) {
  6483. traverse(data.class);
  6484. }
  6485. }
  6486. /* */
  6487. function initRender (vm) {
  6488. vm._vnode = null; // the root of the child tree
  6489. vm._staticTrees = null; // v-once cached trees
  6490. var options = vm.$options;
  6491. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  6492. var renderContext = parentVnode && parentVnode.context;
  6493. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  6494. vm.$scopedSlots = emptyObject;
  6495. // bind the createElement fn to this instance
  6496. // so that we get proper render context inside it.
  6497. // args order: tag, data, children, normalizationType, alwaysNormalize
  6498. // internal version is used by render functions compiled from templates
  6499. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  6500. // normalization is always applied for the public version, used in
  6501. // user-written render functions.
  6502. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  6503. // $attrs & $listeners are exposed for easier HOC creation.
  6504. // they need to be reactive so that HOCs using them are always updated
  6505. var parentData = parentVnode && parentVnode.data;
  6506. /* istanbul ignore else */
  6507. if (true) {
  6508. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  6509. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  6510. }, true);
  6511. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  6512. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  6513. }, true);
  6514. } else {}
  6515. }
  6516. var currentRenderingInstance = null;
  6517. function renderMixin (Vue) {
  6518. // install runtime convenience helpers
  6519. installRenderHelpers(Vue.prototype);
  6520. Vue.prototype.$nextTick = function (fn) {
  6521. return nextTick(fn, this)
  6522. };
  6523. Vue.prototype._render = function () {
  6524. var vm = this;
  6525. var ref = vm.$options;
  6526. var render = ref.render;
  6527. var _parentVnode = ref._parentVnode;
  6528. if (_parentVnode) {
  6529. vm.$scopedSlots = normalizeScopedSlots(
  6530. _parentVnode.data.scopedSlots,
  6531. vm.$slots,
  6532. vm.$scopedSlots
  6533. );
  6534. }
  6535. // set parent vnode. this allows render functions to have access
  6536. // to the data on the placeholder node.
  6537. vm.$vnode = _parentVnode;
  6538. // render self
  6539. var vnode;
  6540. try {
  6541. // There's no need to maintain a stack because all render fns are called
  6542. // separately from one another. Nested component's render fns are called
  6543. // when parent component is patched.
  6544. currentRenderingInstance = vm;
  6545. vnode = render.call(vm._renderProxy, vm.$createElement);
  6546. } catch (e) {
  6547. handleError(e, vm, "render");
  6548. // return error render result,
  6549. // or previous vnode to prevent render error causing blank component
  6550. /* istanbul ignore else */
  6551. if ( true && vm.$options.renderError) {
  6552. try {
  6553. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  6554. } catch (e) {
  6555. handleError(e, vm, "renderError");
  6556. vnode = vm._vnode;
  6557. }
  6558. } else {
  6559. vnode = vm._vnode;
  6560. }
  6561. } finally {
  6562. currentRenderingInstance = null;
  6563. }
  6564. // if the returned array contains only a single node, allow it
  6565. if (Array.isArray(vnode) && vnode.length === 1) {
  6566. vnode = vnode[0];
  6567. }
  6568. // return empty vnode in case the render function errored out
  6569. if (!(vnode instanceof VNode)) {
  6570. if ( true && Array.isArray(vnode)) {
  6571. warn(
  6572. 'Multiple root nodes returned from render function. Render function ' +
  6573. 'should return a single root node.',
  6574. vm
  6575. );
  6576. }
  6577. vnode = createEmptyVNode();
  6578. }
  6579. // set parent
  6580. vnode.parent = _parentVnode;
  6581. return vnode
  6582. };
  6583. }
  6584. /* */
  6585. function ensureCtor (comp, base) {
  6586. if (
  6587. comp.__esModule ||
  6588. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  6589. ) {
  6590. comp = comp.default;
  6591. }
  6592. return isObject(comp)
  6593. ? base.extend(comp)
  6594. : comp
  6595. }
  6596. function createAsyncPlaceholder (
  6597. factory,
  6598. data,
  6599. context,
  6600. children,
  6601. tag
  6602. ) {
  6603. var node = createEmptyVNode();
  6604. node.asyncFactory = factory;
  6605. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  6606. return node
  6607. }
  6608. function resolveAsyncComponent (
  6609. factory,
  6610. baseCtor
  6611. ) {
  6612. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  6613. return factory.errorComp
  6614. }
  6615. if (isDef(factory.resolved)) {
  6616. return factory.resolved
  6617. }
  6618. var owner = currentRenderingInstance;
  6619. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  6620. // already pending
  6621. factory.owners.push(owner);
  6622. }
  6623. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  6624. return factory.loadingComp
  6625. }
  6626. if (owner && !isDef(factory.owners)) {
  6627. var owners = factory.owners = [owner];
  6628. var sync = true;
  6629. var timerLoading = null;
  6630. var timerTimeout = null
  6631. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  6632. var forceRender = function (renderCompleted) {
  6633. for (var i = 0, l = owners.length; i < l; i++) {
  6634. (owners[i]).$forceUpdate();
  6635. }
  6636. if (renderCompleted) {
  6637. owners.length = 0;
  6638. if (timerLoading !== null) {
  6639. clearTimeout(timerLoading);
  6640. timerLoading = null;
  6641. }
  6642. if (timerTimeout !== null) {
  6643. clearTimeout(timerTimeout);
  6644. timerTimeout = null;
  6645. }
  6646. }
  6647. };
  6648. var resolve = once(function (res) {
  6649. // cache resolved
  6650. factory.resolved = ensureCtor(res, baseCtor);
  6651. // invoke callbacks only if this is not a synchronous resolve
  6652. // (async resolves are shimmed as synchronous during SSR)
  6653. if (!sync) {
  6654. forceRender(true);
  6655. } else {
  6656. owners.length = 0;
  6657. }
  6658. });
  6659. var reject = once(function (reason) {
  6660. true && warn(
  6661. "Failed to resolve async component: " + (String(factory)) +
  6662. (reason ? ("\nReason: " + reason) : '')
  6663. );
  6664. if (isDef(factory.errorComp)) {
  6665. factory.error = true;
  6666. forceRender(true);
  6667. }
  6668. });
  6669. var res = factory(resolve, reject);
  6670. if (isObject(res)) {
  6671. if (isPromise(res)) {
  6672. // () => Promise
  6673. if (isUndef(factory.resolved)) {
  6674. res.then(resolve, reject);
  6675. }
  6676. } else if (isPromise(res.component)) {
  6677. res.component.then(resolve, reject);
  6678. if (isDef(res.error)) {
  6679. factory.errorComp = ensureCtor(res.error, baseCtor);
  6680. }
  6681. if (isDef(res.loading)) {
  6682. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  6683. if (res.delay === 0) {
  6684. factory.loading = true;
  6685. } else {
  6686. timerLoading = setTimeout(function () {
  6687. timerLoading = null;
  6688. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  6689. factory.loading = true;
  6690. forceRender(false);
  6691. }
  6692. }, res.delay || 200);
  6693. }
  6694. }
  6695. if (isDef(res.timeout)) {
  6696. timerTimeout = setTimeout(function () {
  6697. timerTimeout = null;
  6698. if (isUndef(factory.resolved)) {
  6699. reject(
  6700. true
  6701. ? ("timeout (" + (res.timeout) + "ms)")
  6702. : undefined
  6703. );
  6704. }
  6705. }, res.timeout);
  6706. }
  6707. }
  6708. }
  6709. sync = false;
  6710. // return in case resolved synchronously
  6711. return factory.loading
  6712. ? factory.loadingComp
  6713. : factory.resolved
  6714. }
  6715. }
  6716. /* */
  6717. function isAsyncPlaceholder (node) {
  6718. return node.isComment && node.asyncFactory
  6719. }
  6720. /* */
  6721. function getFirstComponentChild (children) {
  6722. if (Array.isArray(children)) {
  6723. for (var i = 0; i < children.length; i++) {
  6724. var c = children[i];
  6725. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  6726. return c
  6727. }
  6728. }
  6729. }
  6730. }
  6731. /* */
  6732. /* */
  6733. function initEvents (vm) {
  6734. vm._events = Object.create(null);
  6735. vm._hasHookEvent = false;
  6736. // init parent attached events
  6737. var listeners = vm.$options._parentListeners;
  6738. if (listeners) {
  6739. updateComponentListeners(vm, listeners);
  6740. }
  6741. }
  6742. var target;
  6743. function add (event, fn) {
  6744. target.$on(event, fn);
  6745. }
  6746. function remove$1 (event, fn) {
  6747. target.$off(event, fn);
  6748. }
  6749. function createOnceHandler (event, fn) {
  6750. var _target = target;
  6751. return function onceHandler () {
  6752. var res = fn.apply(null, arguments);
  6753. if (res !== null) {
  6754. _target.$off(event, onceHandler);
  6755. }
  6756. }
  6757. }
  6758. function updateComponentListeners (
  6759. vm,
  6760. listeners,
  6761. oldListeners
  6762. ) {
  6763. target = vm;
  6764. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  6765. target = undefined;
  6766. }
  6767. function eventsMixin (Vue) {
  6768. var hookRE = /^hook:/;
  6769. Vue.prototype.$on = function (event, fn) {
  6770. var vm = this;
  6771. if (Array.isArray(event)) {
  6772. for (var i = 0, l = event.length; i < l; i++) {
  6773. vm.$on(event[i], fn);
  6774. }
  6775. } else {
  6776. (vm._events[event] || (vm._events[event] = [])).push(fn);
  6777. // optimize hook:event cost by using a boolean flag marked at registration
  6778. // instead of a hash lookup
  6779. if (hookRE.test(event)) {
  6780. vm._hasHookEvent = true;
  6781. }
  6782. }
  6783. return vm
  6784. };
  6785. Vue.prototype.$once = function (event, fn) {
  6786. var vm = this;
  6787. function on () {
  6788. vm.$off(event, on);
  6789. fn.apply(vm, arguments);
  6790. }
  6791. on.fn = fn;
  6792. vm.$on(event, on);
  6793. return vm
  6794. };
  6795. Vue.prototype.$off = function (event, fn) {
  6796. var vm = this;
  6797. // all
  6798. if (!arguments.length) {
  6799. vm._events = Object.create(null);
  6800. return vm
  6801. }
  6802. // array of events
  6803. if (Array.isArray(event)) {
  6804. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  6805. vm.$off(event[i$1], fn);
  6806. }
  6807. return vm
  6808. }
  6809. // specific event
  6810. var cbs = vm._events[event];
  6811. if (!cbs) {
  6812. return vm
  6813. }
  6814. if (!fn) {
  6815. vm._events[event] = null;
  6816. return vm
  6817. }
  6818. // specific handler
  6819. var cb;
  6820. var i = cbs.length;
  6821. while (i--) {
  6822. cb = cbs[i];
  6823. if (cb === fn || cb.fn === fn) {
  6824. cbs.splice(i, 1);
  6825. break
  6826. }
  6827. }
  6828. return vm
  6829. };
  6830. Vue.prototype.$emit = function (event) {
  6831. var vm = this;
  6832. if (true) {
  6833. var lowerCaseEvent = event.toLowerCase();
  6834. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  6835. tip(
  6836. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  6837. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  6838. "Note that HTML attributes are case-insensitive and you cannot use " +
  6839. "v-on to listen to camelCase events when using in-DOM templates. " +
  6840. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  6841. );
  6842. }
  6843. }
  6844. var cbs = vm._events[event];
  6845. if (cbs) {
  6846. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  6847. var args = toArray(arguments, 1);
  6848. var info = "event handler for \"" + event + "\"";
  6849. for (var i = 0, l = cbs.length; i < l; i++) {
  6850. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  6851. }
  6852. }
  6853. return vm
  6854. };
  6855. }
  6856. /* */
  6857. var activeInstance = null;
  6858. var isUpdatingChildComponent = false;
  6859. function setActiveInstance(vm) {
  6860. var prevActiveInstance = activeInstance;
  6861. activeInstance = vm;
  6862. return function () {
  6863. activeInstance = prevActiveInstance;
  6864. }
  6865. }
  6866. function initLifecycle (vm) {
  6867. var options = vm.$options;
  6868. // locate first non-abstract parent
  6869. var parent = options.parent;
  6870. if (parent && !options.abstract) {
  6871. while (parent.$options.abstract && parent.$parent) {
  6872. parent = parent.$parent;
  6873. }
  6874. parent.$children.push(vm);
  6875. }
  6876. vm.$parent = parent;
  6877. vm.$root = parent ? parent.$root : vm;
  6878. vm.$children = [];
  6879. vm.$refs = {};
  6880. vm._watcher = null;
  6881. vm._inactive = null;
  6882. vm._directInactive = false;
  6883. vm._isMounted = false;
  6884. vm._isDestroyed = false;
  6885. vm._isBeingDestroyed = false;
  6886. }
  6887. function lifecycleMixin (Vue) {
  6888. Vue.prototype._update = function (vnode, hydrating) {
  6889. var vm = this;
  6890. var prevEl = vm.$el;
  6891. var prevVnode = vm._vnode;
  6892. var restoreActiveInstance = setActiveInstance(vm);
  6893. vm._vnode = vnode;
  6894. // Vue.prototype.__patch__ is injected in entry points
  6895. // based on the rendering backend used.
  6896. if (!prevVnode) {
  6897. // initial render
  6898. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  6899. } else {
  6900. // updates
  6901. vm.$el = vm.__patch__(prevVnode, vnode);
  6902. }
  6903. restoreActiveInstance();
  6904. // update __vue__ reference
  6905. if (prevEl) {
  6906. prevEl.__vue__ = null;
  6907. }
  6908. if (vm.$el) {
  6909. vm.$el.__vue__ = vm;
  6910. }
  6911. // if parent is an HOC, update its $el as well
  6912. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  6913. vm.$parent.$el = vm.$el;
  6914. }
  6915. // updated hook is called by the scheduler to ensure that children are
  6916. // updated in a parent's updated hook.
  6917. };
  6918. Vue.prototype.$forceUpdate = function () {
  6919. var vm = this;
  6920. if (vm._watcher) {
  6921. vm._watcher.update();
  6922. }
  6923. };
  6924. Vue.prototype.$destroy = function () {
  6925. var vm = this;
  6926. if (vm._isBeingDestroyed) {
  6927. return
  6928. }
  6929. callHook(vm, 'beforeDestroy');
  6930. vm._isBeingDestroyed = true;
  6931. // remove self from parent
  6932. var parent = vm.$parent;
  6933. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  6934. remove(parent.$children, vm);
  6935. }
  6936. // teardown watchers
  6937. if (vm._watcher) {
  6938. vm._watcher.teardown();
  6939. }
  6940. var i = vm._watchers.length;
  6941. while (i--) {
  6942. vm._watchers[i].teardown();
  6943. }
  6944. // remove reference from data ob
  6945. // frozen object may not have observer.
  6946. if (vm._data.__ob__) {
  6947. vm._data.__ob__.vmCount--;
  6948. }
  6949. // call the last hook...
  6950. vm._isDestroyed = true;
  6951. // invoke destroy hooks on current rendered tree
  6952. vm.__patch__(vm._vnode, null);
  6953. // fire destroyed hook
  6954. callHook(vm, 'destroyed');
  6955. // turn off all instance listeners.
  6956. vm.$off();
  6957. // remove __vue__ reference
  6958. if (vm.$el) {
  6959. vm.$el.__vue__ = null;
  6960. }
  6961. // release circular reference (#6759)
  6962. if (vm.$vnode) {
  6963. vm.$vnode.parent = null;
  6964. }
  6965. };
  6966. }
  6967. function updateChildComponent (
  6968. vm,
  6969. propsData,
  6970. listeners,
  6971. parentVnode,
  6972. renderChildren
  6973. ) {
  6974. if (true) {
  6975. isUpdatingChildComponent = true;
  6976. }
  6977. // determine whether component has slot children
  6978. // we need to do this before overwriting $options._renderChildren.
  6979. // check if there are dynamic scopedSlots (hand-written or compiled but with
  6980. // dynamic slot names). Static scoped slots compiled from template has the
  6981. // "$stable" marker.
  6982. var newScopedSlots = parentVnode.data.scopedSlots;
  6983. var oldScopedSlots = vm.$scopedSlots;
  6984. var hasDynamicScopedSlot = !!(
  6985. (newScopedSlots && !newScopedSlots.$stable) ||
  6986. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  6987. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  6988. );
  6989. // Any static slot children from the parent may have changed during parent's
  6990. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  6991. // update is necessary to ensure correctness.
  6992. var needsForceUpdate = !!(
  6993. renderChildren || // has new static slots
  6994. vm.$options._renderChildren || // has old static slots
  6995. hasDynamicScopedSlot
  6996. );
  6997. vm.$options._parentVnode = parentVnode;
  6998. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  6999. if (vm._vnode) { // update child tree's parent
  7000. vm._vnode.parent = parentVnode;
  7001. }
  7002. vm.$options._renderChildren = renderChildren;
  7003. // update $attrs and $listeners hash
  7004. // these are also reactive so they may trigger child update if the child
  7005. // used them during render
  7006. vm.$attrs = parentVnode.data.attrs || emptyObject;
  7007. vm.$listeners = listeners || emptyObject;
  7008. // update props
  7009. if (propsData && vm.$options.props) {
  7010. toggleObserving(false);
  7011. var props = vm._props;
  7012. var propKeys = vm.$options._propKeys || [];
  7013. for (var i = 0; i < propKeys.length; i++) {
  7014. var key = propKeys[i];
  7015. var propOptions = vm.$options.props; // wtf flow?
  7016. props[key] = validateProp(key, propOptions, propsData, vm);
  7017. }
  7018. toggleObserving(true);
  7019. // keep a copy of raw propsData
  7020. vm.$options.propsData = propsData;
  7021. }
  7022. // fixed by xxxxxx update properties(mp runtime)
  7023. vm._$updateProperties && vm._$updateProperties(vm);
  7024. // update listeners
  7025. listeners = listeners || emptyObject;
  7026. var oldListeners = vm.$options._parentListeners;
  7027. vm.$options._parentListeners = listeners;
  7028. updateComponentListeners(vm, listeners, oldListeners);
  7029. // resolve slots + force update if has children
  7030. if (needsForceUpdate) {
  7031. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  7032. vm.$forceUpdate();
  7033. }
  7034. if (true) {
  7035. isUpdatingChildComponent = false;
  7036. }
  7037. }
  7038. function isInInactiveTree (vm) {
  7039. while (vm && (vm = vm.$parent)) {
  7040. if (vm._inactive) { return true }
  7041. }
  7042. return false
  7043. }
  7044. function activateChildComponent (vm, direct) {
  7045. if (direct) {
  7046. vm._directInactive = false;
  7047. if (isInInactiveTree(vm)) {
  7048. return
  7049. }
  7050. } else if (vm._directInactive) {
  7051. return
  7052. }
  7053. if (vm._inactive || vm._inactive === null) {
  7054. vm._inactive = false;
  7055. for (var i = 0; i < vm.$children.length; i++) {
  7056. activateChildComponent(vm.$children[i]);
  7057. }
  7058. callHook(vm, 'activated');
  7059. }
  7060. }
  7061. function deactivateChildComponent (vm, direct) {
  7062. if (direct) {
  7063. vm._directInactive = true;
  7064. if (isInInactiveTree(vm)) {
  7065. return
  7066. }
  7067. }
  7068. if (!vm._inactive) {
  7069. vm._inactive = true;
  7070. for (var i = 0; i < vm.$children.length; i++) {
  7071. deactivateChildComponent(vm.$children[i]);
  7072. }
  7073. callHook(vm, 'deactivated');
  7074. }
  7075. }
  7076. function callHook (vm, hook) {
  7077. // #7573 disable dep collection when invoking lifecycle hooks
  7078. pushTarget();
  7079. var handlers = vm.$options[hook];
  7080. var info = hook + " hook";
  7081. if (handlers) {
  7082. for (var i = 0, j = handlers.length; i < j; i++) {
  7083. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  7084. }
  7085. }
  7086. if (vm._hasHookEvent) {
  7087. vm.$emit('hook:' + hook);
  7088. }
  7089. popTarget();
  7090. }
  7091. /* */
  7092. var MAX_UPDATE_COUNT = 100;
  7093. var queue = [];
  7094. var activatedChildren = [];
  7095. var has = {};
  7096. var circular = {};
  7097. var waiting = false;
  7098. var flushing = false;
  7099. var index = 0;
  7100. /**
  7101. * Reset the scheduler's state.
  7102. */
  7103. function resetSchedulerState () {
  7104. index = queue.length = activatedChildren.length = 0;
  7105. has = {};
  7106. if (true) {
  7107. circular = {};
  7108. }
  7109. waiting = flushing = false;
  7110. }
  7111. // Async edge case #6566 requires saving the timestamp when event listeners are
  7112. // attached. However, calling performance.now() has a perf overhead especially
  7113. // if the page has thousands of event listeners. Instead, we take a timestamp
  7114. // every time the scheduler flushes and use that for all event listeners
  7115. // attached during that flush.
  7116. var currentFlushTimestamp = 0;
  7117. // Async edge case fix requires storing an event listener's attach timestamp.
  7118. var getNow = Date.now;
  7119. // Determine what event timestamp the browser is using. Annoyingly, the
  7120. // timestamp can either be hi-res (relative to page load) or low-res
  7121. // (relative to UNIX epoch), so in order to compare time we have to use the
  7122. // same timestamp type when saving the flush timestamp.
  7123. // All IE versions use low-res event timestamps, and have problematic clock
  7124. // implementations (#9632)
  7125. if (inBrowser && !isIE) {
  7126. var performance = window.performance;
  7127. if (
  7128. performance &&
  7129. typeof performance.now === 'function' &&
  7130. getNow() > document.createEvent('Event').timeStamp
  7131. ) {
  7132. // if the event timestamp, although evaluated AFTER the Date.now(), is
  7133. // smaller than it, it means the event is using a hi-res timestamp,
  7134. // and we need to use the hi-res version for event listener timestamps as
  7135. // well.
  7136. getNow = function () { return performance.now(); };
  7137. }
  7138. }
  7139. /**
  7140. * Flush both queues and run the watchers.
  7141. */
  7142. function flushSchedulerQueue () {
  7143. currentFlushTimestamp = getNow();
  7144. flushing = true;
  7145. var watcher, id;
  7146. // Sort queue before flush.
  7147. // This ensures that:
  7148. // 1. Components are updated from parent to child. (because parent is always
  7149. // created before the child)
  7150. // 2. A component's user watchers are run before its render watcher (because
  7151. // user watchers are created before the render watcher)
  7152. // 3. If a component is destroyed during a parent component's watcher run,
  7153. // its watchers can be skipped.
  7154. queue.sort(function (a, b) { return a.id - b.id; });
  7155. // do not cache length because more watchers might be pushed
  7156. // as we run existing watchers
  7157. for (index = 0; index < queue.length; index++) {
  7158. watcher = queue[index];
  7159. if (watcher.before) {
  7160. watcher.before();
  7161. }
  7162. id = watcher.id;
  7163. has[id] = null;
  7164. watcher.run();
  7165. // in dev build, check and stop circular updates.
  7166. if ( true && has[id] != null) {
  7167. circular[id] = (circular[id] || 0) + 1;
  7168. if (circular[id] > MAX_UPDATE_COUNT) {
  7169. warn(
  7170. 'You may have an infinite update loop ' + (
  7171. watcher.user
  7172. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  7173. : "in a component render function."
  7174. ),
  7175. watcher.vm
  7176. );
  7177. break
  7178. }
  7179. }
  7180. }
  7181. // keep copies of post queues before resetting state
  7182. var activatedQueue = activatedChildren.slice();
  7183. var updatedQueue = queue.slice();
  7184. resetSchedulerState();
  7185. // call component updated and activated hooks
  7186. callActivatedHooks(activatedQueue);
  7187. callUpdatedHooks(updatedQueue);
  7188. // devtool hook
  7189. /* istanbul ignore if */
  7190. if (devtools && config.devtools) {
  7191. devtools.emit('flush');
  7192. }
  7193. }
  7194. function callUpdatedHooks (queue) {
  7195. var i = queue.length;
  7196. while (i--) {
  7197. var watcher = queue[i];
  7198. var vm = watcher.vm;
  7199. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  7200. callHook(vm, 'updated');
  7201. }
  7202. }
  7203. }
  7204. /**
  7205. * Queue a kept-alive component that was activated during patch.
  7206. * The queue will be processed after the entire tree has been patched.
  7207. */
  7208. function queueActivatedComponent (vm) {
  7209. // setting _inactive to false here so that a render function can
  7210. // rely on checking whether it's in an inactive tree (e.g. router-view)
  7211. vm._inactive = false;
  7212. activatedChildren.push(vm);
  7213. }
  7214. function callActivatedHooks (queue) {
  7215. for (var i = 0; i < queue.length; i++) {
  7216. queue[i]._inactive = true;
  7217. activateChildComponent(queue[i], true /* true */);
  7218. }
  7219. }
  7220. /**
  7221. * Push a watcher into the watcher queue.
  7222. * Jobs with duplicate IDs will be skipped unless it's
  7223. * pushed when the queue is being flushed.
  7224. */
  7225. function queueWatcher (watcher) {
  7226. var id = watcher.id;
  7227. if (has[id] == null) {
  7228. has[id] = true;
  7229. if (!flushing) {
  7230. queue.push(watcher);
  7231. } else {
  7232. // if already flushing, splice the watcher based on its id
  7233. // if already past its id, it will be run next immediately.
  7234. var i = queue.length - 1;
  7235. while (i > index && queue[i].id > watcher.id) {
  7236. i--;
  7237. }
  7238. queue.splice(i + 1, 0, watcher);
  7239. }
  7240. // queue the flush
  7241. if (!waiting) {
  7242. waiting = true;
  7243. if ( true && !config.async) {
  7244. flushSchedulerQueue();
  7245. return
  7246. }
  7247. nextTick(flushSchedulerQueue);
  7248. }
  7249. }
  7250. }
  7251. /* */
  7252. var uid$2 = 0;
  7253. /**
  7254. * A watcher parses an expression, collects dependencies,
  7255. * and fires callback when the expression value changes.
  7256. * This is used for both the $watch() api and directives.
  7257. */
  7258. var Watcher = function Watcher (
  7259. vm,
  7260. expOrFn,
  7261. cb,
  7262. options,
  7263. isRenderWatcher
  7264. ) {
  7265. this.vm = vm;
  7266. if (isRenderWatcher) {
  7267. vm._watcher = this;
  7268. }
  7269. vm._watchers.push(this);
  7270. // options
  7271. if (options) {
  7272. this.deep = !!options.deep;
  7273. this.user = !!options.user;
  7274. this.lazy = !!options.lazy;
  7275. this.sync = !!options.sync;
  7276. this.before = options.before;
  7277. } else {
  7278. this.deep = this.user = this.lazy = this.sync = false;
  7279. }
  7280. this.cb = cb;
  7281. this.id = ++uid$2; // uid for batching
  7282. this.active = true;
  7283. this.dirty = this.lazy; // for lazy watchers
  7284. this.deps = [];
  7285. this.newDeps = [];
  7286. this.depIds = new _Set();
  7287. this.newDepIds = new _Set();
  7288. this.expression = true
  7289. ? expOrFn.toString()
  7290. : undefined;
  7291. // parse expression for getter
  7292. if (typeof expOrFn === 'function') {
  7293. this.getter = expOrFn;
  7294. } else {
  7295. this.getter = parsePath(expOrFn);
  7296. if (!this.getter) {
  7297. this.getter = noop;
  7298. true && warn(
  7299. "Failed watching path: \"" + expOrFn + "\" " +
  7300. 'Watcher only accepts simple dot-delimited paths. ' +
  7301. 'For full control, use a function instead.',
  7302. vm
  7303. );
  7304. }
  7305. }
  7306. this.value = this.lazy
  7307. ? undefined
  7308. : this.get();
  7309. };
  7310. /**
  7311. * Evaluate the getter, and re-collect dependencies.
  7312. */
  7313. Watcher.prototype.get = function get () {
  7314. pushTarget(this);
  7315. var value;
  7316. var vm = this.vm;
  7317. try {
  7318. value = this.getter.call(vm, vm);
  7319. } catch (e) {
  7320. if (this.user) {
  7321. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  7322. } else {
  7323. throw e
  7324. }
  7325. } finally {
  7326. // "touch" every property so they are all tracked as
  7327. // dependencies for deep watching
  7328. if (this.deep) {
  7329. traverse(value);
  7330. }
  7331. popTarget();
  7332. this.cleanupDeps();
  7333. }
  7334. return value
  7335. };
  7336. /**
  7337. * Add a dependency to this directive.
  7338. */
  7339. Watcher.prototype.addDep = function addDep (dep) {
  7340. var id = dep.id;
  7341. if (!this.newDepIds.has(id)) {
  7342. this.newDepIds.add(id);
  7343. this.newDeps.push(dep);
  7344. if (!this.depIds.has(id)) {
  7345. dep.addSub(this);
  7346. }
  7347. }
  7348. };
  7349. /**
  7350. * Clean up for dependency collection.
  7351. */
  7352. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  7353. var i = this.deps.length;
  7354. while (i--) {
  7355. var dep = this.deps[i];
  7356. if (!this.newDepIds.has(dep.id)) {
  7357. dep.removeSub(this);
  7358. }
  7359. }
  7360. var tmp = this.depIds;
  7361. this.depIds = this.newDepIds;
  7362. this.newDepIds = tmp;
  7363. this.newDepIds.clear();
  7364. tmp = this.deps;
  7365. this.deps = this.newDeps;
  7366. this.newDeps = tmp;
  7367. this.newDeps.length = 0;
  7368. };
  7369. /**
  7370. * Subscriber interface.
  7371. * Will be called when a dependency changes.
  7372. */
  7373. Watcher.prototype.update = function update () {
  7374. /* istanbul ignore else */
  7375. if (this.lazy) {
  7376. this.dirty = true;
  7377. } else if (this.sync) {
  7378. this.run();
  7379. } else {
  7380. queueWatcher(this);
  7381. }
  7382. };
  7383. /**
  7384. * Scheduler job interface.
  7385. * Will be called by the scheduler.
  7386. */
  7387. Watcher.prototype.run = function run () {
  7388. if (this.active) {
  7389. var value = this.get();
  7390. if (
  7391. value !== this.value ||
  7392. // Deep watchers and watchers on Object/Arrays should fire even
  7393. // when the value is the same, because the value may
  7394. // have mutated.
  7395. isObject(value) ||
  7396. this.deep
  7397. ) {
  7398. // set new value
  7399. var oldValue = this.value;
  7400. this.value = value;
  7401. if (this.user) {
  7402. try {
  7403. this.cb.call(this.vm, value, oldValue);
  7404. } catch (e) {
  7405. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  7406. }
  7407. } else {
  7408. this.cb.call(this.vm, value, oldValue);
  7409. }
  7410. }
  7411. }
  7412. };
  7413. /**
  7414. * Evaluate the value of the watcher.
  7415. * This only gets called for lazy watchers.
  7416. */
  7417. Watcher.prototype.evaluate = function evaluate () {
  7418. this.value = this.get();
  7419. this.dirty = false;
  7420. };
  7421. /**
  7422. * Depend on all deps collected by this watcher.
  7423. */
  7424. Watcher.prototype.depend = function depend () {
  7425. var i = this.deps.length;
  7426. while (i--) {
  7427. this.deps[i].depend();
  7428. }
  7429. };
  7430. /**
  7431. * Remove self from all dependencies' subscriber list.
  7432. */
  7433. Watcher.prototype.teardown = function teardown () {
  7434. if (this.active) {
  7435. // remove self from vm's watcher list
  7436. // this is a somewhat expensive operation so we skip it
  7437. // if the vm is being destroyed.
  7438. if (!this.vm._isBeingDestroyed) {
  7439. remove(this.vm._watchers, this);
  7440. }
  7441. var i = this.deps.length;
  7442. while (i--) {
  7443. this.deps[i].removeSub(this);
  7444. }
  7445. this.active = false;
  7446. }
  7447. };
  7448. /* */
  7449. var sharedPropertyDefinition = {
  7450. enumerable: true,
  7451. configurable: true,
  7452. get: noop,
  7453. set: noop
  7454. };
  7455. function proxy (target, sourceKey, key) {
  7456. sharedPropertyDefinition.get = function proxyGetter () {
  7457. return this[sourceKey][key]
  7458. };
  7459. sharedPropertyDefinition.set = function proxySetter (val) {
  7460. this[sourceKey][key] = val;
  7461. };
  7462. Object.defineProperty(target, key, sharedPropertyDefinition);
  7463. }
  7464. function initState (vm) {
  7465. vm._watchers = [];
  7466. var opts = vm.$options;
  7467. if (opts.props) { initProps(vm, opts.props); }
  7468. if (opts.methods) { initMethods(vm, opts.methods); }
  7469. if (opts.data) {
  7470. initData(vm);
  7471. } else {
  7472. observe(vm._data = {}, true /* asRootData */);
  7473. }
  7474. if (opts.computed) { initComputed(vm, opts.computed); }
  7475. if (opts.watch && opts.watch !== nativeWatch) {
  7476. initWatch(vm, opts.watch);
  7477. }
  7478. }
  7479. function initProps (vm, propsOptions) {
  7480. var propsData = vm.$options.propsData || {};
  7481. var props = vm._props = {};
  7482. // cache prop keys so that future props updates can iterate using Array
  7483. // instead of dynamic object key enumeration.
  7484. var keys = vm.$options._propKeys = [];
  7485. var isRoot = !vm.$parent;
  7486. // root instance props should be converted
  7487. if (!isRoot) {
  7488. toggleObserving(false);
  7489. }
  7490. var loop = function ( key ) {
  7491. keys.push(key);
  7492. var value = validateProp(key, propsOptions, propsData, vm);
  7493. /* istanbul ignore else */
  7494. if (true) {
  7495. var hyphenatedKey = hyphenate(key);
  7496. if (isReservedAttribute(hyphenatedKey) ||
  7497. config.isReservedAttr(hyphenatedKey)) {
  7498. warn(
  7499. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  7500. vm
  7501. );
  7502. }
  7503. defineReactive$$1(props, key, value, function () {
  7504. if (!isRoot && !isUpdatingChildComponent) {
  7505. {
  7506. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  7507. return
  7508. }
  7509. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  7510. if(
  7511. key === 'value' &&
  7512. Array.isArray(vm.$options.behaviors) &&
  7513. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  7514. ){
  7515. return
  7516. }
  7517. if(vm._getFormData){
  7518. return
  7519. }
  7520. var $parent = vm.$parent;
  7521. while($parent){
  7522. if($parent.__next_tick_pending){
  7523. return
  7524. }
  7525. $parent = $parent.$parent;
  7526. }
  7527. }
  7528. warn(
  7529. "Avoid mutating a prop directly since the value will be " +
  7530. "overwritten whenever the parent component re-renders. " +
  7531. "Instead, use a data or computed property based on the prop's " +
  7532. "value. Prop being mutated: \"" + key + "\"",
  7533. vm
  7534. );
  7535. }
  7536. });
  7537. } else {}
  7538. // static props are already proxied on the component's prototype
  7539. // during Vue.extend(). We only need to proxy props defined at
  7540. // instantiation here.
  7541. if (!(key in vm)) {
  7542. proxy(vm, "_props", key);
  7543. }
  7544. };
  7545. for (var key in propsOptions) loop( key );
  7546. toggleObserving(true);
  7547. }
  7548. function initData (vm) {
  7549. var data = vm.$options.data;
  7550. data = vm._data = typeof data === 'function'
  7551. ? getData(data, vm)
  7552. : data || {};
  7553. if (!isPlainObject(data)) {
  7554. data = {};
  7555. true && warn(
  7556. 'data functions should return an object:\n' +
  7557. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  7558. vm
  7559. );
  7560. }
  7561. // proxy data on instance
  7562. var keys = Object.keys(data);
  7563. var props = vm.$options.props;
  7564. var methods = vm.$options.methods;
  7565. var i = keys.length;
  7566. while (i--) {
  7567. var key = keys[i];
  7568. if (true) {
  7569. if (methods && hasOwn(methods, key)) {
  7570. warn(
  7571. ("Method \"" + key + "\" has already been defined as a data property."),
  7572. vm
  7573. );
  7574. }
  7575. }
  7576. if (props && hasOwn(props, key)) {
  7577. true && warn(
  7578. "The data property \"" + key + "\" is already declared as a prop. " +
  7579. "Use prop default value instead.",
  7580. vm
  7581. );
  7582. } else if (!isReserved(key)) {
  7583. proxy(vm, "_data", key);
  7584. }
  7585. }
  7586. // observe data
  7587. observe(data, true /* asRootData */);
  7588. }
  7589. function getData (data, vm) {
  7590. // #7573 disable dep collection when invoking data getters
  7591. pushTarget();
  7592. try {
  7593. return data.call(vm, vm)
  7594. } catch (e) {
  7595. handleError(e, vm, "data()");
  7596. return {}
  7597. } finally {
  7598. popTarget();
  7599. }
  7600. }
  7601. var computedWatcherOptions = { lazy: true };
  7602. function initComputed (vm, computed) {
  7603. // $flow-disable-line
  7604. var watchers = vm._computedWatchers = Object.create(null);
  7605. // computed properties are just getters during SSR
  7606. var isSSR = isServerRendering();
  7607. for (var key in computed) {
  7608. var userDef = computed[key];
  7609. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  7610. if ( true && getter == null) {
  7611. warn(
  7612. ("Getter is missing for computed property \"" + key + "\"."),
  7613. vm
  7614. );
  7615. }
  7616. if (!isSSR) {
  7617. // create internal watcher for the computed property.
  7618. watchers[key] = new Watcher(
  7619. vm,
  7620. getter || noop,
  7621. noop,
  7622. computedWatcherOptions
  7623. );
  7624. }
  7625. // component-defined computed properties are already defined on the
  7626. // component prototype. We only need to define computed properties defined
  7627. // at instantiation here.
  7628. if (!(key in vm)) {
  7629. defineComputed(vm, key, userDef);
  7630. } else if (true) {
  7631. if (key in vm.$data) {
  7632. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  7633. } else if (vm.$options.props && key in vm.$options.props) {
  7634. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  7635. }
  7636. }
  7637. }
  7638. }
  7639. function defineComputed (
  7640. target,
  7641. key,
  7642. userDef
  7643. ) {
  7644. var shouldCache = !isServerRendering();
  7645. if (typeof userDef === 'function') {
  7646. sharedPropertyDefinition.get = shouldCache
  7647. ? createComputedGetter(key)
  7648. : createGetterInvoker(userDef);
  7649. sharedPropertyDefinition.set = noop;
  7650. } else {
  7651. sharedPropertyDefinition.get = userDef.get
  7652. ? shouldCache && userDef.cache !== false
  7653. ? createComputedGetter(key)
  7654. : createGetterInvoker(userDef.get)
  7655. : noop;
  7656. sharedPropertyDefinition.set = userDef.set || noop;
  7657. }
  7658. if ( true &&
  7659. sharedPropertyDefinition.set === noop) {
  7660. sharedPropertyDefinition.set = function () {
  7661. warn(
  7662. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  7663. this
  7664. );
  7665. };
  7666. }
  7667. Object.defineProperty(target, key, sharedPropertyDefinition);
  7668. }
  7669. function createComputedGetter (key) {
  7670. return function computedGetter () {
  7671. var watcher = this._computedWatchers && this._computedWatchers[key];
  7672. if (watcher) {
  7673. if (watcher.dirty) {
  7674. watcher.evaluate();
  7675. }
  7676. if (Dep.SharedObject.target) {// fixed by xxxxxx
  7677. watcher.depend();
  7678. }
  7679. return watcher.value
  7680. }
  7681. }
  7682. }
  7683. function createGetterInvoker(fn) {
  7684. return function computedGetter () {
  7685. return fn.call(this, this)
  7686. }
  7687. }
  7688. function initMethods (vm, methods) {
  7689. var props = vm.$options.props;
  7690. for (var key in methods) {
  7691. if (true) {
  7692. if (typeof methods[key] !== 'function') {
  7693. warn(
  7694. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  7695. "Did you reference the function correctly?",
  7696. vm
  7697. );
  7698. }
  7699. if (props && hasOwn(props, key)) {
  7700. warn(
  7701. ("Method \"" + key + "\" has already been defined as a prop."),
  7702. vm
  7703. );
  7704. }
  7705. if ((key in vm) && isReserved(key)) {
  7706. warn(
  7707. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  7708. "Avoid defining component methods that start with _ or $."
  7709. );
  7710. }
  7711. }
  7712. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  7713. }
  7714. }
  7715. function initWatch (vm, watch) {
  7716. for (var key in watch) {
  7717. var handler = watch[key];
  7718. if (Array.isArray(handler)) {
  7719. for (var i = 0; i < handler.length; i++) {
  7720. createWatcher(vm, key, handler[i]);
  7721. }
  7722. } else {
  7723. createWatcher(vm, key, handler);
  7724. }
  7725. }
  7726. }
  7727. function createWatcher (
  7728. vm,
  7729. expOrFn,
  7730. handler,
  7731. options
  7732. ) {
  7733. if (isPlainObject(handler)) {
  7734. options = handler;
  7735. handler = handler.handler;
  7736. }
  7737. if (typeof handler === 'string') {
  7738. handler = vm[handler];
  7739. }
  7740. return vm.$watch(expOrFn, handler, options)
  7741. }
  7742. function stateMixin (Vue) {
  7743. // flow somehow has problems with directly declared definition object
  7744. // when using Object.defineProperty, so we have to procedurally build up
  7745. // the object here.
  7746. var dataDef = {};
  7747. dataDef.get = function () { return this._data };
  7748. var propsDef = {};
  7749. propsDef.get = function () { return this._props };
  7750. if (true) {
  7751. dataDef.set = function () {
  7752. warn(
  7753. 'Avoid replacing instance root $data. ' +
  7754. 'Use nested data properties instead.',
  7755. this
  7756. );
  7757. };
  7758. propsDef.set = function () {
  7759. warn("$props is readonly.", this);
  7760. };
  7761. }
  7762. Object.defineProperty(Vue.prototype, '$data', dataDef);
  7763. Object.defineProperty(Vue.prototype, '$props', propsDef);
  7764. Vue.prototype.$set = set;
  7765. Vue.prototype.$delete = del;
  7766. Vue.prototype.$watch = function (
  7767. expOrFn,
  7768. cb,
  7769. options
  7770. ) {
  7771. var vm = this;
  7772. if (isPlainObject(cb)) {
  7773. return createWatcher(vm, expOrFn, cb, options)
  7774. }
  7775. options = options || {};
  7776. options.user = true;
  7777. var watcher = new Watcher(vm, expOrFn, cb, options);
  7778. if (options.immediate) {
  7779. try {
  7780. cb.call(vm, watcher.value);
  7781. } catch (error) {
  7782. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  7783. }
  7784. }
  7785. return function unwatchFn () {
  7786. watcher.teardown();
  7787. }
  7788. };
  7789. }
  7790. /* */
  7791. var uid$3 = 0;
  7792. function initMixin (Vue) {
  7793. Vue.prototype._init = function (options) {
  7794. var vm = this;
  7795. // a uid
  7796. vm._uid = uid$3++;
  7797. var startTag, endTag;
  7798. /* istanbul ignore if */
  7799. if ( true && config.performance && mark) {
  7800. startTag = "vue-perf-start:" + (vm._uid);
  7801. endTag = "vue-perf-end:" + (vm._uid);
  7802. mark(startTag);
  7803. }
  7804. // a flag to avoid this being observed
  7805. vm._isVue = true;
  7806. // merge options
  7807. if (options && options._isComponent) {
  7808. // optimize internal component instantiation
  7809. // since dynamic options merging is pretty slow, and none of the
  7810. // internal component options needs special treatment.
  7811. initInternalComponent(vm, options);
  7812. } else {
  7813. vm.$options = mergeOptions(
  7814. resolveConstructorOptions(vm.constructor),
  7815. options || {},
  7816. vm
  7817. );
  7818. }
  7819. /* istanbul ignore else */
  7820. if (true) {
  7821. initProxy(vm);
  7822. } else {}
  7823. // expose real self
  7824. vm._self = vm;
  7825. initLifecycle(vm);
  7826. initEvents(vm);
  7827. initRender(vm);
  7828. callHook(vm, 'beforeCreate');
  7829. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  7830. initState(vm);
  7831. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  7832. !vm._$fallback && callHook(vm, 'created');
  7833. /* istanbul ignore if */
  7834. if ( true && config.performance && mark) {
  7835. vm._name = formatComponentName(vm, false);
  7836. mark(endTag);
  7837. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  7838. }
  7839. if (vm.$options.el) {
  7840. vm.$mount(vm.$options.el);
  7841. }
  7842. };
  7843. }
  7844. function initInternalComponent (vm, options) {
  7845. var opts = vm.$options = Object.create(vm.constructor.options);
  7846. // doing this because it's faster than dynamic enumeration.
  7847. var parentVnode = options._parentVnode;
  7848. opts.parent = options.parent;
  7849. opts._parentVnode = parentVnode;
  7850. var vnodeComponentOptions = parentVnode.componentOptions;
  7851. opts.propsData = vnodeComponentOptions.propsData;
  7852. opts._parentListeners = vnodeComponentOptions.listeners;
  7853. opts._renderChildren = vnodeComponentOptions.children;
  7854. opts._componentTag = vnodeComponentOptions.tag;
  7855. if (options.render) {
  7856. opts.render = options.render;
  7857. opts.staticRenderFns = options.staticRenderFns;
  7858. }
  7859. }
  7860. function resolveConstructorOptions (Ctor) {
  7861. var options = Ctor.options;
  7862. if (Ctor.super) {
  7863. var superOptions = resolveConstructorOptions(Ctor.super);
  7864. var cachedSuperOptions = Ctor.superOptions;
  7865. if (superOptions !== cachedSuperOptions) {
  7866. // super option changed,
  7867. // need to resolve new options.
  7868. Ctor.superOptions = superOptions;
  7869. // check if there are any late-modified/attached options (#4976)
  7870. var modifiedOptions = resolveModifiedOptions(Ctor);
  7871. // update base extend options
  7872. if (modifiedOptions) {
  7873. extend(Ctor.extendOptions, modifiedOptions);
  7874. }
  7875. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  7876. if (options.name) {
  7877. options.components[options.name] = Ctor;
  7878. }
  7879. }
  7880. }
  7881. return options
  7882. }
  7883. function resolveModifiedOptions (Ctor) {
  7884. var modified;
  7885. var latest = Ctor.options;
  7886. var sealed = Ctor.sealedOptions;
  7887. for (var key in latest) {
  7888. if (latest[key] !== sealed[key]) {
  7889. if (!modified) { modified = {}; }
  7890. modified[key] = latest[key];
  7891. }
  7892. }
  7893. return modified
  7894. }
  7895. function Vue (options) {
  7896. if ( true &&
  7897. !(this instanceof Vue)
  7898. ) {
  7899. warn('Vue is a constructor and should be called with the `new` keyword');
  7900. }
  7901. this._init(options);
  7902. }
  7903. initMixin(Vue);
  7904. stateMixin(Vue);
  7905. eventsMixin(Vue);
  7906. lifecycleMixin(Vue);
  7907. renderMixin(Vue);
  7908. /* */
  7909. function initUse (Vue) {
  7910. Vue.use = function (plugin) {
  7911. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  7912. if (installedPlugins.indexOf(plugin) > -1) {
  7913. return this
  7914. }
  7915. // additional parameters
  7916. var args = toArray(arguments, 1);
  7917. args.unshift(this);
  7918. if (typeof plugin.install === 'function') {
  7919. plugin.install.apply(plugin, args);
  7920. } else if (typeof plugin === 'function') {
  7921. plugin.apply(null, args);
  7922. }
  7923. installedPlugins.push(plugin);
  7924. return this
  7925. };
  7926. }
  7927. /* */
  7928. function initMixin$1 (Vue) {
  7929. Vue.mixin = function (mixin) {
  7930. this.options = mergeOptions(this.options, mixin);
  7931. return this
  7932. };
  7933. }
  7934. /* */
  7935. function initExtend (Vue) {
  7936. /**
  7937. * Each instance constructor, including Vue, has a unique
  7938. * cid. This enables us to create wrapped "child
  7939. * constructors" for prototypal inheritance and cache them.
  7940. */
  7941. Vue.cid = 0;
  7942. var cid = 1;
  7943. /**
  7944. * Class inheritance
  7945. */
  7946. Vue.extend = function (extendOptions) {
  7947. extendOptions = extendOptions || {};
  7948. var Super = this;
  7949. var SuperId = Super.cid;
  7950. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  7951. if (cachedCtors[SuperId]) {
  7952. return cachedCtors[SuperId]
  7953. }
  7954. var name = extendOptions.name || Super.options.name;
  7955. if ( true && name) {
  7956. validateComponentName(name);
  7957. }
  7958. var Sub = function VueComponent (options) {
  7959. this._init(options);
  7960. };
  7961. Sub.prototype = Object.create(Super.prototype);
  7962. Sub.prototype.constructor = Sub;
  7963. Sub.cid = cid++;
  7964. Sub.options = mergeOptions(
  7965. Super.options,
  7966. extendOptions
  7967. );
  7968. Sub['super'] = Super;
  7969. // For props and computed properties, we define the proxy getters on
  7970. // the Vue instances at extension time, on the extended prototype. This
  7971. // avoids Object.defineProperty calls for each instance created.
  7972. if (Sub.options.props) {
  7973. initProps$1(Sub);
  7974. }
  7975. if (Sub.options.computed) {
  7976. initComputed$1(Sub);
  7977. }
  7978. // allow further extension/mixin/plugin usage
  7979. Sub.extend = Super.extend;
  7980. Sub.mixin = Super.mixin;
  7981. Sub.use = Super.use;
  7982. // create asset registers, so extended classes
  7983. // can have their private assets too.
  7984. ASSET_TYPES.forEach(function (type) {
  7985. Sub[type] = Super[type];
  7986. });
  7987. // enable recursive self-lookup
  7988. if (name) {
  7989. Sub.options.components[name] = Sub;
  7990. }
  7991. // keep a reference to the super options at extension time.
  7992. // later at instantiation we can check if Super's options have
  7993. // been updated.
  7994. Sub.superOptions = Super.options;
  7995. Sub.extendOptions = extendOptions;
  7996. Sub.sealedOptions = extend({}, Sub.options);
  7997. // cache constructor
  7998. cachedCtors[SuperId] = Sub;
  7999. return Sub
  8000. };
  8001. }
  8002. function initProps$1 (Comp) {
  8003. var props = Comp.options.props;
  8004. for (var key in props) {
  8005. proxy(Comp.prototype, "_props", key);
  8006. }
  8007. }
  8008. function initComputed$1 (Comp) {
  8009. var computed = Comp.options.computed;
  8010. for (var key in computed) {
  8011. defineComputed(Comp.prototype, key, computed[key]);
  8012. }
  8013. }
  8014. /* */
  8015. function initAssetRegisters (Vue) {
  8016. /**
  8017. * Create asset registration methods.
  8018. */
  8019. ASSET_TYPES.forEach(function (type) {
  8020. Vue[type] = function (
  8021. id,
  8022. definition
  8023. ) {
  8024. if (!definition) {
  8025. return this.options[type + 's'][id]
  8026. } else {
  8027. /* istanbul ignore if */
  8028. if ( true && type === 'component') {
  8029. validateComponentName(id);
  8030. }
  8031. if (type === 'component' && isPlainObject(definition)) {
  8032. definition.name = definition.name || id;
  8033. definition = this.options._base.extend(definition);
  8034. }
  8035. if (type === 'directive' && typeof definition === 'function') {
  8036. definition = { bind: definition, update: definition };
  8037. }
  8038. this.options[type + 's'][id] = definition;
  8039. return definition
  8040. }
  8041. };
  8042. });
  8043. }
  8044. /* */
  8045. function getComponentName (opts) {
  8046. return opts && (opts.Ctor.options.name || opts.tag)
  8047. }
  8048. function matches (pattern, name) {
  8049. if (Array.isArray(pattern)) {
  8050. return pattern.indexOf(name) > -1
  8051. } else if (typeof pattern === 'string') {
  8052. return pattern.split(',').indexOf(name) > -1
  8053. } else if (isRegExp(pattern)) {
  8054. return pattern.test(name)
  8055. }
  8056. /* istanbul ignore next */
  8057. return false
  8058. }
  8059. function pruneCache (keepAliveInstance, filter) {
  8060. var cache = keepAliveInstance.cache;
  8061. var keys = keepAliveInstance.keys;
  8062. var _vnode = keepAliveInstance._vnode;
  8063. for (var key in cache) {
  8064. var cachedNode = cache[key];
  8065. if (cachedNode) {
  8066. var name = getComponentName(cachedNode.componentOptions);
  8067. if (name && !filter(name)) {
  8068. pruneCacheEntry(cache, key, keys, _vnode);
  8069. }
  8070. }
  8071. }
  8072. }
  8073. function pruneCacheEntry (
  8074. cache,
  8075. key,
  8076. keys,
  8077. current
  8078. ) {
  8079. var cached$$1 = cache[key];
  8080. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  8081. cached$$1.componentInstance.$destroy();
  8082. }
  8083. cache[key] = null;
  8084. remove(keys, key);
  8085. }
  8086. var patternTypes = [String, RegExp, Array];
  8087. var KeepAlive = {
  8088. name: 'keep-alive',
  8089. abstract: true,
  8090. props: {
  8091. include: patternTypes,
  8092. exclude: patternTypes,
  8093. max: [String, Number]
  8094. },
  8095. created: function created () {
  8096. this.cache = Object.create(null);
  8097. this.keys = [];
  8098. },
  8099. destroyed: function destroyed () {
  8100. for (var key in this.cache) {
  8101. pruneCacheEntry(this.cache, key, this.keys);
  8102. }
  8103. },
  8104. mounted: function mounted () {
  8105. var this$1 = this;
  8106. this.$watch('include', function (val) {
  8107. pruneCache(this$1, function (name) { return matches(val, name); });
  8108. });
  8109. this.$watch('exclude', function (val) {
  8110. pruneCache(this$1, function (name) { return !matches(val, name); });
  8111. });
  8112. },
  8113. render: function render () {
  8114. var slot = this.$slots.default;
  8115. var vnode = getFirstComponentChild(slot);
  8116. var componentOptions = vnode && vnode.componentOptions;
  8117. if (componentOptions) {
  8118. // check pattern
  8119. var name = getComponentName(componentOptions);
  8120. var ref = this;
  8121. var include = ref.include;
  8122. var exclude = ref.exclude;
  8123. if (
  8124. // not included
  8125. (include && (!name || !matches(include, name))) ||
  8126. // excluded
  8127. (exclude && name && matches(exclude, name))
  8128. ) {
  8129. return vnode
  8130. }
  8131. var ref$1 = this;
  8132. var cache = ref$1.cache;
  8133. var keys = ref$1.keys;
  8134. var key = vnode.key == null
  8135. // same constructor may get registered as different local components
  8136. // so cid alone is not enough (#3269)
  8137. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  8138. : vnode.key;
  8139. if (cache[key]) {
  8140. vnode.componentInstance = cache[key].componentInstance;
  8141. // make current key freshest
  8142. remove(keys, key);
  8143. keys.push(key);
  8144. } else {
  8145. cache[key] = vnode;
  8146. keys.push(key);
  8147. // prune oldest entry
  8148. if (this.max && keys.length > parseInt(this.max)) {
  8149. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  8150. }
  8151. }
  8152. vnode.data.keepAlive = true;
  8153. }
  8154. return vnode || (slot && slot[0])
  8155. }
  8156. };
  8157. var builtInComponents = {
  8158. KeepAlive: KeepAlive
  8159. };
  8160. /* */
  8161. function initGlobalAPI (Vue) {
  8162. // config
  8163. var configDef = {};
  8164. configDef.get = function () { return config; };
  8165. if (true) {
  8166. configDef.set = function () {
  8167. warn(
  8168. 'Do not replace the Vue.config object, set individual fields instead.'
  8169. );
  8170. };
  8171. }
  8172. Object.defineProperty(Vue, 'config', configDef);
  8173. // exposed util methods.
  8174. // NOTE: these are not considered part of the public API - avoid relying on
  8175. // them unless you are aware of the risk.
  8176. Vue.util = {
  8177. warn: warn,
  8178. extend: extend,
  8179. mergeOptions: mergeOptions,
  8180. defineReactive: defineReactive$$1
  8181. };
  8182. Vue.set = set;
  8183. Vue.delete = del;
  8184. Vue.nextTick = nextTick;
  8185. // 2.6 explicit observable API
  8186. Vue.observable = function (obj) {
  8187. observe(obj);
  8188. return obj
  8189. };
  8190. Vue.options = Object.create(null);
  8191. ASSET_TYPES.forEach(function (type) {
  8192. Vue.options[type + 's'] = Object.create(null);
  8193. });
  8194. // this is used to identify the "base" constructor to extend all plain-object
  8195. // components with in Weex's multi-instance scenarios.
  8196. Vue.options._base = Vue;
  8197. extend(Vue.options.components, builtInComponents);
  8198. initUse(Vue);
  8199. initMixin$1(Vue);
  8200. initExtend(Vue);
  8201. initAssetRegisters(Vue);
  8202. }
  8203. initGlobalAPI(Vue);
  8204. Object.defineProperty(Vue.prototype, '$isServer', {
  8205. get: isServerRendering
  8206. });
  8207. Object.defineProperty(Vue.prototype, '$ssrContext', {
  8208. get: function get () {
  8209. /* istanbul ignore next */
  8210. return this.$vnode && this.$vnode.ssrContext
  8211. }
  8212. });
  8213. // expose FunctionalRenderContext for ssr runtime helper installation
  8214. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  8215. value: FunctionalRenderContext
  8216. });
  8217. Vue.version = '2.6.11';
  8218. /**
  8219. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  8220. */
  8221. var ARRAYTYPE = '[object Array]';
  8222. var OBJECTTYPE = '[object Object]';
  8223. var NULLTYPE = '[object Null]';
  8224. var UNDEFINEDTYPE = '[object Undefined]';
  8225. // const FUNCTIONTYPE = '[object Function]'
  8226. function diff(current, pre) {
  8227. var result = {};
  8228. syncKeys(current, pre);
  8229. _diff(current, pre, '', result);
  8230. return result
  8231. }
  8232. function syncKeys(current, pre) {
  8233. if (current === pre) { return }
  8234. var rootCurrentType = type(current);
  8235. var rootPreType = type(pre);
  8236. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  8237. if(Object.keys(current).length >= Object.keys(pre).length){
  8238. for (var key in pre) {
  8239. var currentValue = current[key];
  8240. if (currentValue === undefined) {
  8241. current[key] = null;
  8242. } else {
  8243. syncKeys(currentValue, pre[key]);
  8244. }
  8245. }
  8246. }
  8247. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  8248. if (current.length >= pre.length) {
  8249. pre.forEach(function (item, index) {
  8250. syncKeys(current[index], item);
  8251. });
  8252. }
  8253. }
  8254. }
  8255. function nullOrUndefined(currentType, preType) {
  8256. if(
  8257. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  8258. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  8259. ) {
  8260. return false
  8261. }
  8262. return true
  8263. }
  8264. function _diff(current, pre, path, result) {
  8265. if (current === pre) { return }
  8266. var rootCurrentType = type(current);
  8267. var rootPreType = type(pre);
  8268. if (rootCurrentType == OBJECTTYPE) {
  8269. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  8270. setResult(result, path, current);
  8271. } else {
  8272. var loop = function ( key ) {
  8273. var currentValue = current[key];
  8274. var preValue = pre[key];
  8275. var currentType = type(currentValue);
  8276. var preType = type(preValue);
  8277. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  8278. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  8279. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8280. }
  8281. } else if (currentType == ARRAYTYPE) {
  8282. if (preType != ARRAYTYPE) {
  8283. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8284. } else {
  8285. if (currentValue.length < preValue.length) {
  8286. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8287. } else {
  8288. currentValue.forEach(function (item, index) {
  8289. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  8290. });
  8291. }
  8292. }
  8293. } else if (currentType == OBJECTTYPE) {
  8294. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  8295. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8296. } else {
  8297. for (var subKey in currentValue) {
  8298. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  8299. }
  8300. }
  8301. }
  8302. };
  8303. for (var key in current) loop( key );
  8304. }
  8305. } else if (rootCurrentType == ARRAYTYPE) {
  8306. if (rootPreType != ARRAYTYPE) {
  8307. setResult(result, path, current);
  8308. } else {
  8309. if (current.length < pre.length) {
  8310. setResult(result, path, current);
  8311. } else {
  8312. current.forEach(function (item, index) {
  8313. _diff(item, pre[index], path + '[' + index + ']', result);
  8314. });
  8315. }
  8316. }
  8317. } else {
  8318. setResult(result, path, current);
  8319. }
  8320. }
  8321. function setResult(result, k, v) {
  8322. // if (type(v) != FUNCTIONTYPE) {
  8323. result[k] = v;
  8324. // }
  8325. }
  8326. function type(obj) {
  8327. return Object.prototype.toString.call(obj)
  8328. }
  8329. /* */
  8330. function flushCallbacks$1(vm) {
  8331. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  8332. if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"Ruoyi-AbuCoder-UniApp-WX","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8333. var mpInstance = vm.$scope;
  8334. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8335. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  8336. }
  8337. var copies = vm.__next_tick_callbacks.slice(0);
  8338. vm.__next_tick_callbacks.length = 0;
  8339. for (var i = 0; i < copies.length; i++) {
  8340. copies[i]();
  8341. }
  8342. }
  8343. }
  8344. function hasRenderWatcher(vm) {
  8345. return queue.find(function (watcher) { return vm._watcher === watcher; })
  8346. }
  8347. function nextTick$1(vm, cb) {
  8348. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  8349. //2.nextTick 之前存在 render watcher
  8350. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  8351. if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"Ruoyi-AbuCoder-UniApp-WX","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
  8352. var mpInstance = vm.$scope;
  8353. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8354. ']:nextVueTick');
  8355. }
  8356. return nextTick(cb, vm)
  8357. }else{
  8358. if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"Ruoyi-AbuCoder-UniApp-WX","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
  8359. var mpInstance$1 = vm.$scope;
  8360. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  8361. ']:nextMPTick');
  8362. }
  8363. }
  8364. var _resolve;
  8365. if (!vm.__next_tick_callbacks) {
  8366. vm.__next_tick_callbacks = [];
  8367. }
  8368. vm.__next_tick_callbacks.push(function () {
  8369. if (cb) {
  8370. try {
  8371. cb.call(vm);
  8372. } catch (e) {
  8373. handleError(e, vm, 'nextTick');
  8374. }
  8375. } else if (_resolve) {
  8376. _resolve(vm);
  8377. }
  8378. });
  8379. // $flow-disable-line
  8380. if (!cb && typeof Promise !== 'undefined') {
  8381. return new Promise(function (resolve) {
  8382. _resolve = resolve;
  8383. })
  8384. }
  8385. }
  8386. /* */
  8387. function clearInstance(key, value) {
  8388. // 简易去除 Vue 和小程序组件实例
  8389. if (value) {
  8390. if (value._isVue || value.__v_isMPComponent) {
  8391. return {}
  8392. }
  8393. }
  8394. return value
  8395. }
  8396. function cloneWithData(vm) {
  8397. // 确保当前 vm 所有数据被同步
  8398. var ret = Object.create(null);
  8399. var dataKeys = [].concat(
  8400. Object.keys(vm._data || {}),
  8401. Object.keys(vm._computedWatchers || {}));
  8402. dataKeys.reduce(function(ret, key) {
  8403. ret[key] = vm[key];
  8404. return ret
  8405. }, ret);
  8406. // vue-composition-api
  8407. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  8408. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  8409. if (rawBindings) {
  8410. Object.keys(rawBindings).forEach(function (key) {
  8411. ret[key] = vm[key];
  8412. });
  8413. }
  8414. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  8415. Object.assign(ret, vm.$mp.data || {});
  8416. if (
  8417. Array.isArray(vm.$options.behaviors) &&
  8418. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  8419. ) { //form-field
  8420. ret['name'] = vm.name;
  8421. ret['value'] = vm.value;
  8422. }
  8423. return JSON.parse(JSON.stringify(ret, clearInstance))
  8424. }
  8425. var patch = function(oldVnode, vnode) {
  8426. var this$1 = this;
  8427. if (vnode === null) { //destroy
  8428. return
  8429. }
  8430. if (this.mpType === 'page' || this.mpType === 'component') {
  8431. var mpInstance = this.$scope;
  8432. var data = Object.create(null);
  8433. try {
  8434. data = cloneWithData(this);
  8435. } catch (err) {
  8436. console.error(err);
  8437. }
  8438. data.__webviewId__ = mpInstance.data.__webviewId__;
  8439. var mpData = Object.create(null);
  8440. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  8441. mpData[key] = mpInstance.data[key];
  8442. });
  8443. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  8444. if (Object.keys(diffData).length) {
  8445. if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"Ruoyi-AbuCoder-UniApp-WX","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8446. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  8447. ']差量更新',
  8448. JSON.stringify(diffData));
  8449. }
  8450. this.__next_tick_pending = true;
  8451. mpInstance.setData(diffData, function () {
  8452. this$1.__next_tick_pending = false;
  8453. flushCallbacks$1(this$1);
  8454. });
  8455. } else {
  8456. flushCallbacks$1(this);
  8457. }
  8458. }
  8459. };
  8460. /* */
  8461. function createEmptyRender() {
  8462. }
  8463. function mountComponent$1(
  8464. vm,
  8465. el,
  8466. hydrating
  8467. ) {
  8468. if (!vm.mpType) {//main.js 中的 new Vue
  8469. return vm
  8470. }
  8471. if (vm.mpType === 'app') {
  8472. vm.$options.render = createEmptyRender;
  8473. }
  8474. if (!vm.$options.render) {
  8475. vm.$options.render = createEmptyRender;
  8476. if (true) {
  8477. /* istanbul ignore if */
  8478. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  8479. vm.$options.el || el) {
  8480. warn(
  8481. 'You are using the runtime-only build of Vue where the template ' +
  8482. 'compiler is not available. Either pre-compile the templates into ' +
  8483. 'render functions, or use the compiler-included build.',
  8484. vm
  8485. );
  8486. } else {
  8487. warn(
  8488. 'Failed to mount component: template or render function not defined.',
  8489. vm
  8490. );
  8491. }
  8492. }
  8493. }
  8494. !vm._$fallback && callHook(vm, 'beforeMount');
  8495. var updateComponent = function () {
  8496. vm._update(vm._render(), hydrating);
  8497. };
  8498. // we set this to vm._watcher inside the watcher's constructor
  8499. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  8500. // component's mounted hook), which relies on vm._watcher being already defined
  8501. new Watcher(vm, updateComponent, noop, {
  8502. before: function before() {
  8503. if (vm._isMounted && !vm._isDestroyed) {
  8504. callHook(vm, 'beforeUpdate');
  8505. }
  8506. }
  8507. }, true /* isRenderWatcher */);
  8508. hydrating = false;
  8509. return vm
  8510. }
  8511. /* */
  8512. function renderClass (
  8513. staticClass,
  8514. dynamicClass
  8515. ) {
  8516. if (isDef(staticClass) || isDef(dynamicClass)) {
  8517. return concat(staticClass, stringifyClass(dynamicClass))
  8518. }
  8519. /* istanbul ignore next */
  8520. return ''
  8521. }
  8522. function concat (a, b) {
  8523. return a ? b ? (a + ' ' + b) : a : (b || '')
  8524. }
  8525. function stringifyClass (value) {
  8526. if (Array.isArray(value)) {
  8527. return stringifyArray(value)
  8528. }
  8529. if (isObject(value)) {
  8530. return stringifyObject(value)
  8531. }
  8532. if (typeof value === 'string') {
  8533. return value
  8534. }
  8535. /* istanbul ignore next */
  8536. return ''
  8537. }
  8538. function stringifyArray (value) {
  8539. var res = '';
  8540. var stringified;
  8541. for (var i = 0, l = value.length; i < l; i++) {
  8542. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  8543. if (res) { res += ' '; }
  8544. res += stringified;
  8545. }
  8546. }
  8547. return res
  8548. }
  8549. function stringifyObject (value) {
  8550. var res = '';
  8551. for (var key in value) {
  8552. if (value[key]) {
  8553. if (res) { res += ' '; }
  8554. res += key;
  8555. }
  8556. }
  8557. return res
  8558. }
  8559. /* */
  8560. var parseStyleText = cached(function (cssText) {
  8561. var res = {};
  8562. var listDelimiter = /;(?![^(]*\))/g;
  8563. var propertyDelimiter = /:(.+)/;
  8564. cssText.split(listDelimiter).forEach(function (item) {
  8565. if (item) {
  8566. var tmp = item.split(propertyDelimiter);
  8567. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  8568. }
  8569. });
  8570. return res
  8571. });
  8572. // normalize possible array / string values into Object
  8573. function normalizeStyleBinding (bindingStyle) {
  8574. if (Array.isArray(bindingStyle)) {
  8575. return toObject(bindingStyle)
  8576. }
  8577. if (typeof bindingStyle === 'string') {
  8578. return parseStyleText(bindingStyle)
  8579. }
  8580. return bindingStyle
  8581. }
  8582. /* */
  8583. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  8584. function getTarget(obj, path) {
  8585. var parts = path.split('.');
  8586. var key = parts[0];
  8587. if (key.indexOf('__$n') === 0) { //number index
  8588. key = parseInt(key.replace('__$n', ''));
  8589. }
  8590. if (parts.length === 1) {
  8591. return obj[key]
  8592. }
  8593. return getTarget(obj[key], parts.slice(1).join('.'))
  8594. }
  8595. function internalMixin(Vue) {
  8596. Vue.config.errorHandler = function(err, vm, info) {
  8597. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  8598. console.error(err);
  8599. /* eslint-disable no-undef */
  8600. var app = typeof getApp === 'function' && getApp();
  8601. if (app && app.onError) {
  8602. app.onError(err);
  8603. }
  8604. };
  8605. var oldEmit = Vue.prototype.$emit;
  8606. Vue.prototype.$emit = function(event) {
  8607. if (this.$scope && event) {
  8608. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  8609. if (triggerEvent) {
  8610. try {
  8611. triggerEvent.call(this.$scope, event, {
  8612. __args__: toArray(arguments, 1)
  8613. });
  8614. } catch (error) {
  8615. }
  8616. }
  8617. }
  8618. return oldEmit.apply(this, arguments)
  8619. };
  8620. Vue.prototype.$nextTick = function(fn) {
  8621. return nextTick$1(this, fn)
  8622. };
  8623. MP_METHODS.forEach(function (method) {
  8624. Vue.prototype[method] = function(args) {
  8625. if (this.$scope && this.$scope[method]) {
  8626. return this.$scope[method](args)
  8627. }
  8628. // mp-alipay
  8629. if (typeof my === 'undefined') {
  8630. return
  8631. }
  8632. if (method === 'createSelectorQuery') {
  8633. /* eslint-disable no-undef */
  8634. return my.createSelectorQuery(args)
  8635. } else if (method === 'createIntersectionObserver') {
  8636. /* eslint-disable no-undef */
  8637. return my.createIntersectionObserver(args)
  8638. }
  8639. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  8640. };
  8641. });
  8642. Vue.prototype.__init_provide = initProvide;
  8643. Vue.prototype.__init_injections = initInjections;
  8644. Vue.prototype.__call_hook = function(hook, args) {
  8645. var vm = this;
  8646. // #7573 disable dep collection when invoking lifecycle hooks
  8647. pushTarget();
  8648. var handlers = vm.$options[hook];
  8649. var info = hook + " hook";
  8650. var ret;
  8651. if (handlers) {
  8652. for (var i = 0, j = handlers.length; i < j; i++) {
  8653. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  8654. }
  8655. }
  8656. if (vm._hasHookEvent) {
  8657. vm.$emit('hook:' + hook, args);
  8658. }
  8659. popTarget();
  8660. return ret
  8661. };
  8662. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  8663. if (Array.isArray(modifiers)) {
  8664. if (modifiers.indexOf('trim') !== -1) {
  8665. value = value.trim();
  8666. }
  8667. if (modifiers.indexOf('number') !== -1) {
  8668. value = this._n(value);
  8669. }
  8670. }
  8671. if (!target) {
  8672. target = this;
  8673. }
  8674. // 解决动态属性添加
  8675. Vue.set(target, key, value);
  8676. };
  8677. Vue.prototype.__set_sync = function(target, key, value) {
  8678. if (!target) {
  8679. target = this;
  8680. }
  8681. // 解决动态属性添加
  8682. Vue.set(target, key, value);
  8683. };
  8684. Vue.prototype.__get_orig = function(item) {
  8685. if (isPlainObject(item)) {
  8686. return item['$orig'] || item
  8687. }
  8688. return item
  8689. };
  8690. Vue.prototype.__get_value = function(dataPath, target) {
  8691. return getTarget(target || this, dataPath)
  8692. };
  8693. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  8694. return renderClass(staticClass, dynamicClass)
  8695. };
  8696. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  8697. if (!dynamicStyle && !staticStyle) {
  8698. return ''
  8699. }
  8700. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  8701. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  8702. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  8703. };
  8704. Vue.prototype.__map = function(val, iteratee) {
  8705. //TODO 暂不考虑 string
  8706. var ret, i, l, keys, key;
  8707. if (Array.isArray(val)) {
  8708. ret = new Array(val.length);
  8709. for (i = 0, l = val.length; i < l; i++) {
  8710. ret[i] = iteratee(val[i], i);
  8711. }
  8712. return ret
  8713. } else if (isObject(val)) {
  8714. keys = Object.keys(val);
  8715. ret = Object.create(null);
  8716. for (i = 0, l = keys.length; i < l; i++) {
  8717. key = keys[i];
  8718. ret[key] = iteratee(val[key], key, i);
  8719. }
  8720. return ret
  8721. } else if (typeof val === 'number') {
  8722. ret = new Array(val);
  8723. for (i = 0, l = val; i < l; i++) {
  8724. // 第一个参数暂时仍和小程序一致
  8725. ret[i] = iteratee(i, i);
  8726. }
  8727. return ret
  8728. }
  8729. return []
  8730. };
  8731. }
  8732. /* */
  8733. var LIFECYCLE_HOOKS$1 = [
  8734. //App
  8735. 'onLaunch',
  8736. 'onShow',
  8737. 'onHide',
  8738. 'onUniNViewMessage',
  8739. 'onPageNotFound',
  8740. 'onThemeChange',
  8741. 'onError',
  8742. 'onUnhandledRejection',
  8743. //Page
  8744. 'onInit',
  8745. 'onLoad',
  8746. // 'onShow',
  8747. 'onReady',
  8748. // 'onHide',
  8749. 'onUnload',
  8750. 'onPullDownRefresh',
  8751. 'onReachBottom',
  8752. 'onTabItemTap',
  8753. 'onAddToFavorites',
  8754. 'onShareTimeline',
  8755. 'onShareAppMessage',
  8756. 'onResize',
  8757. 'onPageScroll',
  8758. 'onNavigationBarButtonTap',
  8759. 'onBackPress',
  8760. 'onNavigationBarSearchInputChanged',
  8761. 'onNavigationBarSearchInputConfirmed',
  8762. 'onNavigationBarSearchInputClicked',
  8763. 'onUploadDouyinVideo',
  8764. 'onNFCReadMessage',
  8765. //Component
  8766. // 'onReady', // 兼容旧版本,应该移除该事件
  8767. 'onPageShow',
  8768. 'onPageHide',
  8769. 'onPageResize'
  8770. ];
  8771. function lifecycleMixin$1(Vue) {
  8772. //fixed vue-class-component
  8773. var oldExtend = Vue.extend;
  8774. Vue.extend = function(extendOptions) {
  8775. extendOptions = extendOptions || {};
  8776. var methods = extendOptions.methods;
  8777. if (methods) {
  8778. Object.keys(methods).forEach(function (methodName) {
  8779. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  8780. extendOptions[methodName] = methods[methodName];
  8781. delete methods[methodName];
  8782. }
  8783. });
  8784. }
  8785. return oldExtend.call(this, extendOptions)
  8786. };
  8787. var strategies = Vue.config.optionMergeStrategies;
  8788. var mergeHook = strategies.created;
  8789. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  8790. strategies[hook] = mergeHook;
  8791. });
  8792. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  8793. }
  8794. /* */
  8795. // install platform patch function
  8796. Vue.prototype.__patch__ = patch;
  8797. // public mount method
  8798. Vue.prototype.$mount = function(
  8799. el ,
  8800. hydrating
  8801. ) {
  8802. return mountComponent$1(this, el, hydrating)
  8803. };
  8804. lifecycleMixin$1(Vue);
  8805. internalMixin(Vue);
  8806. /* */
  8807. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  8808. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  8809. /***/ }),
  8810. /* 26 */
  8811. /*!*****************************************************************!*\
  8812. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/pages.json ***!
  8813. \*****************************************************************/
  8814. /*! no static exports found */
  8815. /***/ (function(module, exports) {
  8816. /***/ }),
  8817. /* 27 */,
  8818. /* 28 */,
  8819. /* 29 */,
  8820. /* 30 */
  8821. /*!************************************************************************************************!*\
  8822. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  8823. \************************************************************************************************/
  8824. /*! no static exports found */
  8825. /***/ (function(module, exports, __webpack_require__) {
  8826. // TODO(Babel 8): Remove this file.
  8827. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 31)();
  8828. module.exports = runtime;
  8829. /***/ }),
  8830. /* 31 */
  8831. /*!*******************************************************************!*\
  8832. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  8833. \*******************************************************************/
  8834. /*! no static exports found */
  8835. /***/ (function(module, exports, __webpack_require__) {
  8836. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  8837. function _regeneratorRuntime() {
  8838. "use strict";
  8839. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  8840. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  8841. return e;
  8842. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  8843. var t,
  8844. e = {},
  8845. r = Object.prototype,
  8846. n = r.hasOwnProperty,
  8847. o = Object.defineProperty || function (t, e, r) {
  8848. t[e] = r.value;
  8849. },
  8850. i = "function" == typeof Symbol ? Symbol : {},
  8851. a = i.iterator || "@@iterator",
  8852. c = i.asyncIterator || "@@asyncIterator",
  8853. u = i.toStringTag || "@@toStringTag";
  8854. function define(t, e, r) {
  8855. return Object.defineProperty(t, e, {
  8856. value: r,
  8857. enumerable: !0,
  8858. configurable: !0,
  8859. writable: !0
  8860. }), t[e];
  8861. }
  8862. try {
  8863. define({}, "");
  8864. } catch (t) {
  8865. define = function define(t, e, r) {
  8866. return t[e] = r;
  8867. };
  8868. }
  8869. function wrap(t, e, r, n) {
  8870. var i = e && e.prototype instanceof Generator ? e : Generator,
  8871. a = Object.create(i.prototype),
  8872. c = new Context(n || []);
  8873. return o(a, "_invoke", {
  8874. value: makeInvokeMethod(t, r, c)
  8875. }), a;
  8876. }
  8877. function tryCatch(t, e, r) {
  8878. try {
  8879. return {
  8880. type: "normal",
  8881. arg: t.call(e, r)
  8882. };
  8883. } catch (t) {
  8884. return {
  8885. type: "throw",
  8886. arg: t
  8887. };
  8888. }
  8889. }
  8890. e.wrap = wrap;
  8891. var h = "suspendedStart",
  8892. l = "suspendedYield",
  8893. f = "executing",
  8894. s = "completed",
  8895. y = {};
  8896. function Generator() {}
  8897. function GeneratorFunction() {}
  8898. function GeneratorFunctionPrototype() {}
  8899. var p = {};
  8900. define(p, a, function () {
  8901. return this;
  8902. });
  8903. var d = Object.getPrototypeOf,
  8904. v = d && d(d(values([])));
  8905. v && v !== r && n.call(v, a) && (p = v);
  8906. var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
  8907. function defineIteratorMethods(t) {
  8908. ["next", "throw", "return"].forEach(function (e) {
  8909. define(t, e, function (t) {
  8910. return this._invoke(e, t);
  8911. });
  8912. });
  8913. }
  8914. function AsyncIterator(t, e) {
  8915. function invoke(r, o, i, a) {
  8916. var c = tryCatch(t[r], t, o);
  8917. if ("throw" !== c.type) {
  8918. var u = c.arg,
  8919. h = u.value;
  8920. return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
  8921. invoke("next", t, i, a);
  8922. }, function (t) {
  8923. invoke("throw", t, i, a);
  8924. }) : e.resolve(h).then(function (t) {
  8925. u.value = t, i(u);
  8926. }, function (t) {
  8927. return invoke("throw", t, i, a);
  8928. });
  8929. }
  8930. a(c.arg);
  8931. }
  8932. var r;
  8933. o(this, "_invoke", {
  8934. value: function value(t, n) {
  8935. function callInvokeWithMethodAndArg() {
  8936. return new e(function (e, r) {
  8937. invoke(t, n, e, r);
  8938. });
  8939. }
  8940. return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  8941. }
  8942. });
  8943. }
  8944. function makeInvokeMethod(e, r, n) {
  8945. var o = h;
  8946. return function (i, a) {
  8947. if (o === f) throw Error("Generator is already running");
  8948. if (o === s) {
  8949. if ("throw" === i) throw a;
  8950. return {
  8951. value: t,
  8952. done: !0
  8953. };
  8954. }
  8955. for (n.method = i, n.arg = a;;) {
  8956. var c = n.delegate;
  8957. if (c) {
  8958. var u = maybeInvokeDelegate(c, n);
  8959. if (u) {
  8960. if (u === y) continue;
  8961. return u;
  8962. }
  8963. }
  8964. if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
  8965. if (o === h) throw o = s, n.arg;
  8966. n.dispatchException(n.arg);
  8967. } else "return" === n.method && n.abrupt("return", n.arg);
  8968. o = f;
  8969. var p = tryCatch(e, r, n);
  8970. if ("normal" === p.type) {
  8971. if (o = n.done ? s : l, p.arg === y) continue;
  8972. return {
  8973. value: p.arg,
  8974. done: n.done
  8975. };
  8976. }
  8977. "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
  8978. }
  8979. };
  8980. }
  8981. function maybeInvokeDelegate(e, r) {
  8982. var n = r.method,
  8983. o = e.iterator[n];
  8984. if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
  8985. var i = tryCatch(o, e.iterator, r.arg);
  8986. if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
  8987. var a = i.arg;
  8988. return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
  8989. }
  8990. function pushTryEntry(t) {
  8991. var e = {
  8992. tryLoc: t[0]
  8993. };
  8994. 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
  8995. }
  8996. function resetTryEntry(t) {
  8997. var e = t.completion || {};
  8998. e.type = "normal", delete e.arg, t.completion = e;
  8999. }
  9000. function Context(t) {
  9001. this.tryEntries = [{
  9002. tryLoc: "root"
  9003. }], t.forEach(pushTryEntry, this), this.reset(!0);
  9004. }
  9005. function values(e) {
  9006. if (e || "" === e) {
  9007. var r = e[a];
  9008. if (r) return r.call(e);
  9009. if ("function" == typeof e.next) return e;
  9010. if (!isNaN(e.length)) {
  9011. var o = -1,
  9012. i = function next() {
  9013. for (; ++o < e.length;) {
  9014. if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
  9015. }
  9016. return next.value = t, next.done = !0, next;
  9017. };
  9018. return i.next = i;
  9019. }
  9020. }
  9021. throw new TypeError(_typeof(e) + " is not iterable");
  9022. }
  9023. return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
  9024. value: GeneratorFunctionPrototype,
  9025. configurable: !0
  9026. }), o(GeneratorFunctionPrototype, "constructor", {
  9027. value: GeneratorFunction,
  9028. configurable: !0
  9029. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
  9030. var e = "function" == typeof t && t.constructor;
  9031. return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
  9032. }, e.mark = function (t) {
  9033. return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
  9034. }, e.awrap = function (t) {
  9035. return {
  9036. __await: t
  9037. };
  9038. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
  9039. return this;
  9040. }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
  9041. void 0 === i && (i = Promise);
  9042. var a = new AsyncIterator(wrap(t, r, n, o), i);
  9043. return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
  9044. return t.done ? t.value : a.next();
  9045. });
  9046. }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
  9047. return this;
  9048. }), define(g, "toString", function () {
  9049. return "[object Generator]";
  9050. }), e.keys = function (t) {
  9051. var e = Object(t),
  9052. r = [];
  9053. for (var n in e) {
  9054. r.push(n);
  9055. }
  9056. return r.reverse(), function next() {
  9057. for (; r.length;) {
  9058. var t = r.pop();
  9059. if (t in e) return next.value = t, next.done = !1, next;
  9060. }
  9061. return next.done = !0, next;
  9062. };
  9063. }, e.values = values, Context.prototype = {
  9064. constructor: Context,
  9065. reset: function reset(e) {
  9066. if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) {
  9067. "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
  9068. }
  9069. },
  9070. stop: function stop() {
  9071. this.done = !0;
  9072. var t = this.tryEntries[0].completion;
  9073. if ("throw" === t.type) throw t.arg;
  9074. return this.rval;
  9075. },
  9076. dispatchException: function dispatchException(e) {
  9077. if (this.done) throw e;
  9078. var r = this;
  9079. function handle(n, o) {
  9080. return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
  9081. }
  9082. for (var o = this.tryEntries.length - 1; o >= 0; --o) {
  9083. var i = this.tryEntries[o],
  9084. a = i.completion;
  9085. if ("root" === i.tryLoc) return handle("end");
  9086. if (i.tryLoc <= this.prev) {
  9087. var c = n.call(i, "catchLoc"),
  9088. u = n.call(i, "finallyLoc");
  9089. if (c && u) {
  9090. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  9091. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  9092. } else if (c) {
  9093. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  9094. } else {
  9095. if (!u) throw Error("try statement without catch or finally");
  9096. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  9097. }
  9098. }
  9099. }
  9100. },
  9101. abrupt: function abrupt(t, e) {
  9102. for (var r = this.tryEntries.length - 1; r >= 0; --r) {
  9103. var o = this.tryEntries[r];
  9104. if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
  9105. var i = o;
  9106. break;
  9107. }
  9108. }
  9109. i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
  9110. var a = i ? i.completion : {};
  9111. return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
  9112. },
  9113. complete: function complete(t, e) {
  9114. if ("throw" === t.type) throw t.arg;
  9115. return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
  9116. },
  9117. finish: function finish(t) {
  9118. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  9119. var r = this.tryEntries[e];
  9120. if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
  9121. }
  9122. },
  9123. "catch": function _catch(t) {
  9124. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  9125. var r = this.tryEntries[e];
  9126. if (r.tryLoc === t) {
  9127. var n = r.completion;
  9128. if ("throw" === n.type) {
  9129. var o = n.arg;
  9130. resetTryEntry(r);
  9131. }
  9132. return o;
  9133. }
  9134. }
  9135. throw Error("illegal catch attempt");
  9136. },
  9137. delegateYield: function delegateYield(e, r, n) {
  9138. return this.delegate = {
  9139. iterator: values(e),
  9140. resultName: r,
  9141. nextLoc: n
  9142. }, "next" === this.method && (this.arg = t), y;
  9143. }
  9144. }, e;
  9145. }
  9146. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  9147. /***/ }),
  9148. /* 32 */
  9149. /*!*****************************************************************!*\
  9150. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  9151. \*****************************************************************/
  9152. /*! no static exports found */
  9153. /***/ (function(module, exports) {
  9154. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  9155. try {
  9156. var info = gen[key](arg);
  9157. var value = info.value;
  9158. } catch (error) {
  9159. reject(error);
  9160. return;
  9161. }
  9162. if (info.done) {
  9163. resolve(value);
  9164. } else {
  9165. Promise.resolve(value).then(_next, _throw);
  9166. }
  9167. }
  9168. function _asyncToGenerator(fn) {
  9169. return function () {
  9170. var self = this,
  9171. args = arguments;
  9172. return new Promise(function (resolve, reject) {
  9173. var gen = fn.apply(self, args);
  9174. function _next(value) {
  9175. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  9176. }
  9177. function _throw(err) {
  9178. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  9179. }
  9180. _next(undefined);
  9181. });
  9182. };
  9183. }
  9184. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  9185. /***/ }),
  9186. /* 33 */,
  9187. /* 34 */,
  9188. /* 35 */
  9189. /*!**********************************************************************************************************!*\
  9190. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  9191. \**********************************************************************************************************/
  9192. /*! exports provided: default */
  9193. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9194. "use strict";
  9195. __webpack_require__.r(__webpack_exports__);
  9196. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  9197. /* globals __VUE_SSR_CONTEXT__ */
  9198. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  9199. // This module is a runtime utility for cleaner component module output and will
  9200. // be included in the final webpack user bundle.
  9201. function normalizeComponent (
  9202. scriptExports,
  9203. render,
  9204. staticRenderFns,
  9205. functionalTemplate,
  9206. injectStyles,
  9207. scopeId,
  9208. moduleIdentifier, /* server only */
  9209. shadowMode, /* vue-cli only */
  9210. components, // fixed by xxxxxx auto components
  9211. renderjs // fixed by xxxxxx renderjs
  9212. ) {
  9213. // Vue.extend constructor export interop
  9214. var options = typeof scriptExports === 'function'
  9215. ? scriptExports.options
  9216. : scriptExports
  9217. // fixed by xxxxxx auto components
  9218. if (components) {
  9219. if (!options.components) {
  9220. options.components = {}
  9221. }
  9222. var hasOwn = Object.prototype.hasOwnProperty
  9223. for (var name in components) {
  9224. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  9225. options.components[name] = components[name]
  9226. }
  9227. }
  9228. }
  9229. // fixed by xxxxxx renderjs
  9230. if (renderjs) {
  9231. if(typeof renderjs.beforeCreate === 'function'){
  9232. renderjs.beforeCreate = [renderjs.beforeCreate]
  9233. }
  9234. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  9235. this[renderjs.__module] = this
  9236. });
  9237. (options.mixins || (options.mixins = [])).push(renderjs)
  9238. }
  9239. // render functions
  9240. if (render) {
  9241. options.render = render
  9242. options.staticRenderFns = staticRenderFns
  9243. options._compiled = true
  9244. }
  9245. // functional template
  9246. if (functionalTemplate) {
  9247. options.functional = true
  9248. }
  9249. // scopedId
  9250. if (scopeId) {
  9251. options._scopeId = 'data-v-' + scopeId
  9252. }
  9253. var hook
  9254. if (moduleIdentifier) { // server build
  9255. hook = function (context) {
  9256. // 2.3 injection
  9257. context =
  9258. context || // cached call
  9259. (this.$vnode && this.$vnode.ssrContext) || // stateful
  9260. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  9261. // 2.2 with runInNewContext: true
  9262. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  9263. context = __VUE_SSR_CONTEXT__
  9264. }
  9265. // inject component styles
  9266. if (injectStyles) {
  9267. injectStyles.call(this, context)
  9268. }
  9269. // register component module identifier for async chunk inferrence
  9270. if (context && context._registeredComponents) {
  9271. context._registeredComponents.add(moduleIdentifier)
  9272. }
  9273. }
  9274. // used by ssr in case component is cached and beforeCreate
  9275. // never gets called
  9276. options._ssrRegister = hook
  9277. } else if (injectStyles) {
  9278. hook = shadowMode
  9279. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  9280. : injectStyles
  9281. }
  9282. if (hook) {
  9283. if (options.functional) {
  9284. // for template-only hot-reload because in that case the render fn doesn't
  9285. // go through the normalizer
  9286. options._injectStyles = hook
  9287. // register for functioal component in vue file
  9288. var originalRender = options.render
  9289. options.render = function renderWithStyleInjection (h, context) {
  9290. hook.call(context)
  9291. return originalRender(h, context)
  9292. }
  9293. } else {
  9294. // inject component registration as beforeCreate hook
  9295. var existing = options.beforeCreate
  9296. options.beforeCreate = existing
  9297. ? [].concat(existing, hook)
  9298. : [hook]
  9299. }
  9300. }
  9301. return {
  9302. exports: scriptExports,
  9303. options: options
  9304. }
  9305. }
  9306. /***/ }),
  9307. /* 36 */
  9308. /*!***********************************************************************!*\
  9309. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/utils/request.js ***!
  9310. \***********************************************************************/
  9311. /*! no static exports found */
  9312. /***/ (function(module, exports, __webpack_require__) {
  9313. "use strict";
  9314. /* WEBPACK VAR INJECTION */(function(uni) {
  9315. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9316. Object.defineProperty(exports, "__esModule", {
  9317. value: true
  9318. });
  9319. exports.request = void 0;
  9320. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9321. var _auth = __webpack_require__(/*! ./auth */ 37);
  9322. var _apiconfig = __webpack_require__(/*! ./apiconfig */ 38);
  9323. 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; }
  9324. 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; }
  9325. var request = function request(config) {
  9326. console.log('token', (0, _auth.getToken)());
  9327. // 解构
  9328. var _config$method = config.method,
  9329. method = _config$method === void 0 ? 'GET' : _config$method,
  9330. _config$url = config.url,
  9331. url = _config$url === void 0 ? '' : _config$url,
  9332. _config$data = config.data,
  9333. data = _config$data === void 0 ? {} : _config$data,
  9334. _config$header = config.header,
  9335. header = _config$header === void 0 ? {} : _config$header;
  9336. // 请求拦截器
  9337. uni.showLoading({
  9338. title: '加载中'
  9339. });
  9340. // 返回
  9341. return new Promise(function (resolve, reject) {
  9342. uni.request({
  9343. // 行
  9344. method: method,
  9345. url: _apiconfig.baseUrl + url,
  9346. // 头
  9347. header: _objectSpread({
  9348. 'content-type': 'application/x-www-form-urlencoded',
  9349. 'authorization': (0, _auth.getToken)()
  9350. }, header),
  9351. // 体
  9352. data: data,
  9353. // 结果
  9354. success: function success(res) {
  9355. // 响应拦截器 - 成功
  9356. resolve(res.data);
  9357. },
  9358. fail: function fail(err) {
  9359. // 响应拦截器 - 失败
  9360. uni.showToast({
  9361. title: '请求失败,请刷新重试',
  9362. icon: 'none'
  9363. });
  9364. reject(err);
  9365. },
  9366. complete: function complete() {
  9367. uni.hideLoading();
  9368. }
  9369. });
  9370. });
  9371. // ...
  9372. };
  9373. exports.request = request;
  9374. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9375. /***/ }),
  9376. /* 37 */
  9377. /*!********************************************************************!*\
  9378. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/utils/auth.js ***!
  9379. \********************************************************************/
  9380. /*! no static exports found */
  9381. /***/ (function(module, exports, __webpack_require__) {
  9382. "use strict";
  9383. /* WEBPACK VAR INJECTION */(function(uni) {
  9384. Object.defineProperty(exports, "__esModule", {
  9385. value: true
  9386. });
  9387. exports.getConfig = getConfig;
  9388. exports.getRememberInfo = getRememberInfo;
  9389. exports.getShareID = getShareID;
  9390. exports.getToken = getToken;
  9391. exports.getUserInfo = getUserInfo;
  9392. exports.removeRememberInfo = removeRememberInfo;
  9393. exports.removeToken = removeToken;
  9394. exports.removeUserInfo = removeUserInfo;
  9395. exports.setRememberInfo = setRememberInfo;
  9396. exports.setShareID = setShareID;
  9397. exports.setToken = setToken;
  9398. exports.setUserInfo = setUserInfo;
  9399. var _apiconfig = __webpack_require__(/*! ./apiconfig */ 38);
  9400. // 该文件用来存储localStorage 本地缓存的方法
  9401. /**
  9402. * 操作用户token
  9403. */
  9404. function setToken(value) {
  9405. uni.setStorageSync('token', value);
  9406. // console.log('存储用户信息成功');
  9407. }
  9408. /**
  9409. * 获取缓存的Openid
  9410. */
  9411. function getToken() {
  9412. var token = uni.getStorageSync('token');
  9413. return token;
  9414. }
  9415. /**
  9416. * 移除用户token=openid
  9417. */
  9418. function removeToken() {
  9419. uni.removeStorageSync('token');
  9420. }
  9421. /**
  9422. * 操作用户信息
  9423. * 缓存微信用户信息
  9424. */
  9425. function setUserInfo(value) {
  9426. try {
  9427. var newValue = JSON.stringify(value);
  9428. uni.setStorageSync('userinfo', newValue);
  9429. // console.log('存储用户信息成功');
  9430. } catch (e) {
  9431. return;
  9432. }
  9433. }
  9434. /**
  9435. * 获取缓存的微信用户信息
  9436. */
  9437. function getUserInfo() {
  9438. var userinfo = uni.getStorageSync('userinfo');
  9439. // console.log('userinfo', userinfo)
  9440. if (userinfo) {
  9441. return JSON.parse(userinfo);
  9442. }
  9443. }
  9444. /**
  9445. * 移除缓存的用户信息
  9446. */
  9447. function removeUserInfo() {
  9448. uni.removeStorageSync('userinfo');
  9449. }
  9450. /**
  9451. * 操作会员信息
  9452. * 会员信息存储缓存
  9453. */
  9454. function setRememberInfo(value) {
  9455. try {
  9456. uni.setStorageSync('rememberInfo', value);
  9457. // console.log('存储会员信息成功');
  9458. } catch (e) {
  9459. return;
  9460. }
  9461. }
  9462. /**
  9463. * 获取缓存的会员信息
  9464. */
  9465. function getRememberInfo() {
  9466. var rememberInfo = uni.getStorageSync('rememberInfo');
  9467. if (rememberInfo) {
  9468. // console.log('会员信息获取成功:', rememberInfo)
  9469. return rememberInfo;
  9470. }
  9471. }
  9472. /**
  9473. * 移除缓存的会员信息
  9474. */
  9475. function removeRememberInfo() {
  9476. uni.removeStorageSync('rememberInfo');
  9477. // console.log("清楚会员信息成功!")
  9478. }
  9479. /**
  9480. * 缓存用户分享ID
  9481. * 登录时传到后端
  9482. */
  9483. function setShareID(value) {
  9484. try {
  9485. uni.setStorageSync("shareid", value);
  9486. } catch (e) {
  9487. return;
  9488. }
  9489. }
  9490. /**
  9491. * 获取用户分享ID
  9492. * 登录时传到后端
  9493. */
  9494. function getShareID() {
  9495. var shareid = uni.getStorageSync("shareid");
  9496. if (shareid) {
  9497. return shareid;
  9498. }
  9499. }
  9500. function getConfig() {
  9501. var base = {
  9502. baseUrl: _apiconfig.baseUrl,
  9503. uploadUrl: _apiconfig.uploadUrl
  9504. };
  9505. return base;
  9506. }
  9507. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9508. /***/ }),
  9509. /* 38 */
  9510. /*!*************************************************************************!*\
  9511. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/utils/apiconfig.js ***!
  9512. \*************************************************************************/
  9513. /*! no static exports found */
  9514. /***/ (function(module, exports, __webpack_require__) {
  9515. "use strict";
  9516. Object.defineProperty(exports, "__esModule", {
  9517. value: true
  9518. });
  9519. exports.uploadUrl = exports.baseUrl = void 0;
  9520. /**
  9521. * author:AbuCoder
  9522. * date:2023年4月7日13:53:23
  9523. * 正式上线,baseUrl请换成线上地址
  9524. */
  9525. // export const baseUrl = 'https://abucoder.rasmall.cn/prod-api/wxapi/';//上线时使用https地址
  9526. // export const uploadUrl = baseUrl+'/upload'//图片上传地址,上线时使用https地址
  9527. // export const baseUrl = 'http://localhost:8083/wxapi/';//本地调试用该地址
  9528. var baseUrl = 'http://172.16.8.26:8083'; //本地调试用该地址
  9529. exports.baseUrl = baseUrl;
  9530. var uploadUrl = baseUrl + 'upload'; //图片上传地址
  9531. exports.uploadUrl = uploadUrl;
  9532. /***/ }),
  9533. /* 39 */
  9534. /*!*********************************************************************!*\
  9535. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/utils/share.js ***!
  9536. \*********************************************************************/
  9537. /*! no static exports found */
  9538. /***/ (function(module, exports, __webpack_require__) {
  9539. "use strict";
  9540. /* WEBPACK VAR INJECTION */(function(uni) {
  9541. Object.defineProperty(exports, "__esModule", {
  9542. value: true
  9543. });
  9544. exports.default = void 0;
  9545. /**
  9546. * author:AbuCoder
  9547. * date:2022年5月22日13:53:23
  9548. * description:全局分享
  9549. * 在项目的 main.js 文件中引入该 share.js 文件并使用 Vue.mixin() 方法将之全局混入:
  9550. */
  9551. var _default = {
  9552. data: function data() {
  9553. return {
  9554. // 默认的全局分享内容
  9555. share: {
  9556. title: '我在使用“AbuCoder"小程序,你也要不要试试呢~',
  9557. //分享时的标题
  9558. path: '/pages/index/index?shareid=' + uni.getStorageSync('token'),
  9559. // 全局分享的路径,比如 首页
  9560. imageUrl: '/static/img/share.jpg' // 全局分享的图片(可本地可网络)
  9561. }
  9562. };
  9563. },
  9564. // 定义全局分享
  9565. // 1.发送给朋友
  9566. onShareAppMessage: function onShareAppMessage(res) {
  9567. return {
  9568. title: this.share.title,
  9569. path: this.share.path,
  9570. imageUrl: this.share.imageUrl
  9571. };
  9572. },
  9573. //2.分享到朋友圈
  9574. onShareTimeline: function onShareTimeline(res) {
  9575. return {
  9576. title: this.share.title,
  9577. path: this.share.path,
  9578. imageUrl: this.share.imageUrl
  9579. };
  9580. }
  9581. };
  9582. exports.default = _default;
  9583. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9584. /***/ }),
  9585. /* 40 */
  9586. /*!************************************************************************************!*\
  9587. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/index.js ***!
  9588. \************************************************************************************/
  9589. /*! no static exports found */
  9590. /***/ (function(module, exports, __webpack_require__) {
  9591. "use strict";
  9592. /* WEBPACK VAR INJECTION */(function(uni) {
  9593. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9594. Object.defineProperty(exports, "__esModule", {
  9595. value: true
  9596. });
  9597. exports.default = void 0;
  9598. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9599. var _mixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mixin.js */ 41));
  9600. var _mpMixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mpMixin.js */ 42));
  9601. var _luchRequest = _interopRequireDefault(__webpack_require__(/*! ./libs/luch-request */ 43));
  9602. var _route = _interopRequireDefault(__webpack_require__(/*! ./libs/util/route.js */ 61));
  9603. var _colorGradient = _interopRequireDefault(__webpack_require__(/*! ./libs/function/colorGradient.js */ 62));
  9604. var _test = _interopRequireDefault(__webpack_require__(/*! ./libs/function/test.js */ 63));
  9605. var _debounce = _interopRequireDefault(__webpack_require__(/*! ./libs/function/debounce.js */ 64));
  9606. var _throttle = _interopRequireDefault(__webpack_require__(/*! ./libs/function/throttle.js */ 65));
  9607. var _index = _interopRequireDefault(__webpack_require__(/*! ./libs/function/index.js */ 66));
  9608. var _config = _interopRequireDefault(__webpack_require__(/*! ./libs/config/config.js */ 69));
  9609. var _props = _interopRequireDefault(__webpack_require__(/*! ./libs/config/props.js */ 70));
  9610. var _zIndex = _interopRequireDefault(__webpack_require__(/*! ./libs/config/zIndex.js */ 160));
  9611. var _color = _interopRequireDefault(__webpack_require__(/*! ./libs/config/color.js */ 118));
  9612. var _platform = _interopRequireDefault(__webpack_require__(/*! ./libs/function/platform */ 161));
  9613. 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; }
  9614. 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; }
  9615. // 看到此报错,是因为没有配置vue.config.js的【transpileDependencies】,详见:https://www.uviewui.com/components/npmSetting.html#_5-cli模式额外配置
  9616. var pleaseSetTranspileDependencies = {},
  9617. babelTest = pleaseSetTranspileDependencies === null || pleaseSetTranspileDependencies === void 0 ? void 0 : pleaseSetTranspileDependencies.test;
  9618. // 引入全局mixin
  9619. var $u = _objectSpread(_objectSpread({
  9620. route: _route.default,
  9621. date: _index.default.timeFormat,
  9622. // 另名date
  9623. colorGradient: _colorGradient.default.colorGradient,
  9624. hexToRgb: _colorGradient.default.hexToRgb,
  9625. rgbToHex: _colorGradient.default.rgbToHex,
  9626. colorToRgba: _colorGradient.default.colorToRgba,
  9627. test: _test.default,
  9628. type: ['primary', 'success', 'error', 'warning', 'info'],
  9629. http: new _luchRequest.default(),
  9630. config: _config.default,
  9631. // uView配置信息相关,比如版本号
  9632. zIndex: _zIndex.default,
  9633. debounce: _debounce.default,
  9634. throttle: _throttle.default,
  9635. mixin: _mixin.default,
  9636. mpMixin: _mpMixin.default,
  9637. props: _props.default
  9638. }, _index.default), {}, {
  9639. color: _color.default,
  9640. platform: _platform.default
  9641. });
  9642. // $u挂载到uni对象上
  9643. uni.$u = $u;
  9644. var install = function install(Vue) {
  9645. // 时间格式化,同时两个名称,date和timeFormat
  9646. Vue.filter('timeFormat', function (timestamp, format) {
  9647. return uni.$u.timeFormat(timestamp, format);
  9648. });
  9649. Vue.filter('date', function (timestamp, format) {
  9650. return uni.$u.timeFormat(timestamp, format);
  9651. });
  9652. // 将多久以前的方法,注入到全局过滤器
  9653. Vue.filter('timeFrom', function (timestamp, format) {
  9654. return uni.$u.timeFrom(timestamp, format);
  9655. });
  9656. // 同时挂载到uni和Vue.prototype中
  9657. // 只有vue,挂载到Vue.prototype才有意义,因为nvue中全局Vue.prototype和Vue.mixin是无效的
  9658. Vue.prototype.$u = $u;
  9659. Vue.mixin(_mixin.default);
  9660. };
  9661. var _default = {
  9662. install: install
  9663. };
  9664. exports.default = _default;
  9665. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9666. /***/ }),
  9667. /* 41 */
  9668. /*!***********************************************************************************************!*\
  9669. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/mixin/mixin.js ***!
  9670. \***********************************************************************************************/
  9671. /*! no static exports found */
  9672. /***/ (function(module, exports, __webpack_require__) {
  9673. /* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
  9674. // 定义每个组件都可能需要用到的外部样式以及类名
  9675. props: {
  9676. // 每个组件都有的父组件传递的样式,可以为字符串或者对象形式
  9677. customStyle: {
  9678. type: [Object, String],
  9679. default: function _default() {
  9680. return {};
  9681. }
  9682. },
  9683. customClass: {
  9684. type: String,
  9685. default: ''
  9686. },
  9687. // 跳转的页面路径
  9688. url: {
  9689. type: String,
  9690. default: ''
  9691. },
  9692. // 页面跳转的类型
  9693. linkType: {
  9694. type: String,
  9695. default: 'navigateTo'
  9696. }
  9697. },
  9698. data: function data() {
  9699. return {};
  9700. },
  9701. onLoad: function onLoad() {
  9702. // getRect挂载到$u上,因为这方法需要使用in(this),所以无法把它独立成一个单独的文件导出
  9703. this.$u.getRect = this.$uGetRect;
  9704. },
  9705. created: function created() {
  9706. // 组件当中,只有created声明周期,为了能在组件使用,故也在created中将方法挂载到$u
  9707. this.$u.getRect = this.$uGetRect;
  9708. },
  9709. computed: {
  9710. // 在2.x版本中,将会把$u挂载到uni对象下,导致在模板中无法使用uni.$u.xxx形式
  9711. // 所以这里通过computed计算属性将其附加到this.$u上,就可以在模板或者js中使用uni.$u.xxx
  9712. // 只在nvue环境通过此方式引入完整的$u,其他平台会出现性能问题,非nvue则按需引入(主要原因是props过大)
  9713. $u: function $u() {
  9714. // 在非nvue端,移除props,http,mixin等对象,避免在小程序setData时数据过大影响性能
  9715. return uni.$u.deepMerge(uni.$u, {
  9716. props: undefined,
  9717. http: undefined,
  9718. mixin: undefined
  9719. });
  9720. },
  9721. /**
  9722. * 生成bem规则类名
  9723. * 由于微信小程序,H5,nvue之间绑定class的差异,无法通过:class="[bem()]"的形式进行同用
  9724. * 故采用如下折中做法,最后返回的是数组(一般平台)或字符串(支付宝和字节跳动平台),类似['a', 'b', 'c']或'a b c'的形式
  9725. * @param {String} name 组件名称
  9726. * @param {Array} fixed 一直会存在的类名
  9727. * @param {Array} change 会根据变量值为true或者false而出现或者隐藏的类名
  9728. * @returns {Array|string}
  9729. */
  9730. bem: function bem() {
  9731. return function (name, fixed, change) {
  9732. var _this = this;
  9733. // 类名前缀
  9734. var prefix = "u-".concat(name, "--");
  9735. var classes = {};
  9736. if (fixed) {
  9737. fixed.map(function (item) {
  9738. // 这里的类名,会一直存在
  9739. classes[prefix + _this[item]] = true;
  9740. });
  9741. }
  9742. if (change) {
  9743. change.map(function (item) {
  9744. // 这里的类名,会根据this[item]的值为true或者false,而进行添加或者移除某一个类
  9745. _this[item] ? classes[prefix + item] = _this[item] : delete classes[prefix + item];
  9746. });
  9747. }
  9748. return Object.keys(classes);
  9749. // 支付宝,头条小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效
  9750. };
  9751. }
  9752. },
  9753. methods: {
  9754. // 跳转某一个页面
  9755. openPage: function openPage() {
  9756. var urlKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'url';
  9757. var url = this[urlKey];
  9758. if (url) {
  9759. // 执行类似uni.navigateTo的方法
  9760. uni[this.linkType]({
  9761. url: url
  9762. });
  9763. }
  9764. },
  9765. // 查询节点信息
  9766. // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
  9767. // 解决办法为在组件根部再套一个没有任何作用的view元素
  9768. $uGetRect: function $uGetRect(selector, all) {
  9769. var _this2 = this;
  9770. return new Promise(function (resolve) {
  9771. uni.createSelectorQuery().in(_this2)[all ? 'selectAll' : 'select'](selector).boundingClientRect(function (rect) {
  9772. if (all && Array.isArray(rect) && rect.length) {
  9773. resolve(rect);
  9774. }
  9775. if (!all && rect) {
  9776. resolve(rect);
  9777. }
  9778. }).exec();
  9779. });
  9780. },
  9781. getParentData: function getParentData() {
  9782. var _this3 = this;
  9783. var parentName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  9784. // 避免在created中去定义parent变量
  9785. if (!this.parent) this.parent = {};
  9786. // 这里的本质原理是,通过获取父组件实例(也即类似u-radio的父组件u-radio-group的this)
  9787. // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
  9788. // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
  9789. // 此处并不会自动更新子组件的数据,而是依赖父组件u-radio-group去监听data的变化,手动调用更新子组件的方法去重新获取
  9790. this.parent = uni.$u.$parent.call(this, parentName);
  9791. if (this.parent.children) {
  9792. // 如果父组件的children不存在本组件的实例,才将本实例添加到父组件的children中
  9793. this.parent.children.indexOf(this) === -1 && this.parent.children.push(this);
  9794. }
  9795. if (this.parent && this.parentData) {
  9796. // 历遍parentData中的属性,将parent中的同名属性赋值给parentData
  9797. Object.keys(this.parentData).map(function (key) {
  9798. _this3.parentData[key] = _this3.parent[key];
  9799. });
  9800. }
  9801. },
  9802. // 阻止事件冒泡
  9803. preventEvent: function preventEvent(e) {
  9804. e && typeof e.stopPropagation === 'function' && e.stopPropagation();
  9805. },
  9806. // 空操作
  9807. noop: function noop(e) {
  9808. this.preventEvent(e);
  9809. }
  9810. },
  9811. onReachBottom: function onReachBottom() {
  9812. uni.$emit('uOnReachBottom');
  9813. },
  9814. beforeDestroy: function beforeDestroy() {
  9815. var _this4 = this;
  9816. // 判断当前页面是否存在parent和chldren,一般在checkbox和checkbox-group父子联动的场景会有此情况
  9817. // 组件销毁时,移除子组件在父组件children数组中的实例,释放资源,避免数据混乱
  9818. if (this.parent && uni.$u.test.array(this.parent.children)) {
  9819. // 组件销毁时,移除父组件中的children数组中对应的实例
  9820. var childrenList = this.parent.children;
  9821. childrenList.map(function (child, index) {
  9822. // 如果相等,则移除
  9823. if (child === _this4) {
  9824. childrenList.splice(index, 1);
  9825. }
  9826. });
  9827. }
  9828. }
  9829. };
  9830. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9831. /***/ }),
  9832. /* 42 */
  9833. /*!*************************************************************************************************!*\
  9834. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/mixin/mpMixin.js ***!
  9835. \*************************************************************************************************/
  9836. /*! no static exports found */
  9837. /***/ (function(module, exports, __webpack_require__) {
  9838. "use strict";
  9839. Object.defineProperty(exports, "__esModule", {
  9840. value: true
  9841. });
  9842. exports.default = void 0;
  9843. var _default = {
  9844. // 将自定义节点设置成虚拟的,更加接近Vue组件的表现,能更好的使用flex属性
  9845. options: {
  9846. virtualHost: true
  9847. }
  9848. };
  9849. exports.default = _default;
  9850. /***/ }),
  9851. /* 43 */
  9852. /*!******************************************************************************************************!*\
  9853. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/luch-request/index.js ***!
  9854. \******************************************************************************************************/
  9855. /*! no static exports found */
  9856. /***/ (function(module, exports, __webpack_require__) {
  9857. "use strict";
  9858. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9859. Object.defineProperty(exports, "__esModule", {
  9860. value: true
  9861. });
  9862. exports.default = void 0;
  9863. var _Request = _interopRequireDefault(__webpack_require__(/*! ./core/Request */ 44));
  9864. var _default = _Request.default;
  9865. exports.default = _default;
  9866. /***/ }),
  9867. /* 44 */
  9868. /*!*************************************************************************************************************!*\
  9869. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/luch-request/core/Request.js ***!
  9870. \*************************************************************************************************************/
  9871. /*! no static exports found */
  9872. /***/ (function(module, exports, __webpack_require__) {
  9873. "use strict";
  9874. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9875. Object.defineProperty(exports, "__esModule", {
  9876. value: true
  9877. });
  9878. exports.default = void 0;
  9879. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9880. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  9881. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  9882. var _dispatchRequest = _interopRequireDefault(__webpack_require__(/*! ./dispatchRequest */ 45));
  9883. var _InterceptorManager = _interopRequireDefault(__webpack_require__(/*! ./InterceptorManager */ 53));
  9884. var _mergeConfig = _interopRequireDefault(__webpack_require__(/*! ./mergeConfig */ 54));
  9885. var _defaults = _interopRequireDefault(__webpack_require__(/*! ./defaults */ 55));
  9886. var _utils = __webpack_require__(/*! ../utils */ 48);
  9887. var _clone = _interopRequireDefault(__webpack_require__(/*! ../utils/clone */ 56));
  9888. 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; }
  9889. 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; }
  9890. var Request = /*#__PURE__*/function () {
  9891. /**
  9892. * @param {Object} arg - 全局配置
  9893. * @param {String} arg.baseURL - 全局根路径
  9894. * @param {Object} arg.header - 全局header
  9895. * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式
  9896. * @param {String} arg.dataType = [json] - 全局默认的dataType
  9897. * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持
  9898. * @param {Object} arg.custom - 全局默认的自定义参数
  9899. * @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序(2.10.0)、支付宝小程序
  9900. * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+)
  9901. * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+)
  9902. * @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+)
  9903. * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
  9904. */
  9905. function Request() {
  9906. var arg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9907. (0, _classCallCheck2.default)(this, Request);
  9908. if (!(0, _utils.isPlainObject)(arg)) {
  9909. arg = {};
  9910. console.warn('设置全局参数必须接收一个Object');
  9911. }
  9912. this.config = (0, _clone.default)(_objectSpread(_objectSpread({}, _defaults.default), arg));
  9913. this.interceptors = {
  9914. request: new _InterceptorManager.default(),
  9915. response: new _InterceptorManager.default()
  9916. };
  9917. }
  9918. /**
  9919. * @Function
  9920. * @param {Request~setConfigCallback} f - 设置全局默认配置
  9921. */
  9922. (0, _createClass2.default)(Request, [{
  9923. key: "setConfig",
  9924. value: function setConfig(f) {
  9925. this.config = f(this.config);
  9926. }
  9927. }, {
  9928. key: "middleware",
  9929. value: function middleware(config) {
  9930. config = (0, _mergeConfig.default)(this.config, config);
  9931. var chain = [_dispatchRequest.default, undefined];
  9932. var promise = Promise.resolve(config);
  9933. this.interceptors.request.forEach(function (interceptor) {
  9934. chain.unshift(interceptor.fulfilled, interceptor.rejected);
  9935. });
  9936. this.interceptors.response.forEach(function (interceptor) {
  9937. chain.push(interceptor.fulfilled, interceptor.rejected);
  9938. });
  9939. while (chain.length) {
  9940. promise = promise.then(chain.shift(), chain.shift());
  9941. }
  9942. return promise;
  9943. }
  9944. /**
  9945. * @Function
  9946. * @param {Object} config - 请求配置项
  9947. * @prop {String} options.url - 请求路径
  9948. * @prop {Object} options.data - 请求参数
  9949. * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型
  9950. * @prop {Object} [options.dataType = config.dataType] - 如果设为 json,会尝试对返回的数据做一次 JSON.parse
  9951. * @prop {Object} [options.header = config.header] - 请求header
  9952. * @prop {Object} [options.method = config.method] - 请求方法
  9953. * @returns {Promise<unknown>}
  9954. */
  9955. }, {
  9956. key: "request",
  9957. value: function request() {
  9958. var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9959. return this.middleware(config);
  9960. }
  9961. }, {
  9962. key: "get",
  9963. value: function get(url) {
  9964. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9965. return this.middleware(_objectSpread({
  9966. url: url,
  9967. method: 'GET'
  9968. }, options));
  9969. }
  9970. }, {
  9971. key: "post",
  9972. value: function post(url, data) {
  9973. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9974. return this.middleware(_objectSpread({
  9975. url: url,
  9976. data: data,
  9977. method: 'POST'
  9978. }, options));
  9979. }
  9980. }, {
  9981. key: "put",
  9982. value: function put(url, data) {
  9983. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9984. return this.middleware(_objectSpread({
  9985. url: url,
  9986. data: data,
  9987. method: 'PUT'
  9988. }, options));
  9989. }
  9990. }, {
  9991. key: "delete",
  9992. value: function _delete(url, data) {
  9993. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9994. return this.middleware(_objectSpread({
  9995. url: url,
  9996. data: data,
  9997. method: 'DELETE'
  9998. }, options));
  9999. }
  10000. }, {
  10001. key: "connect",
  10002. value: function connect(url, data) {
  10003. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  10004. return this.middleware(_objectSpread({
  10005. url: url,
  10006. data: data,
  10007. method: 'CONNECT'
  10008. }, options));
  10009. }
  10010. }, {
  10011. key: "head",
  10012. value: function head(url, data) {
  10013. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  10014. return this.middleware(_objectSpread({
  10015. url: url,
  10016. data: data,
  10017. method: 'HEAD'
  10018. }, options));
  10019. }
  10020. }, {
  10021. key: "options",
  10022. value: function options(url, data) {
  10023. var _options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  10024. return this.middleware(_objectSpread({
  10025. url: url,
  10026. data: data,
  10027. method: 'OPTIONS'
  10028. }, _options));
  10029. }
  10030. }, {
  10031. key: "trace",
  10032. value: function trace(url, data) {
  10033. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  10034. return this.middleware(_objectSpread({
  10035. url: url,
  10036. data: data,
  10037. method: 'TRACE'
  10038. }, options));
  10039. }
  10040. }, {
  10041. key: "upload",
  10042. value: function upload(url) {
  10043. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  10044. config.url = url;
  10045. config.method = 'UPLOAD';
  10046. return this.middleware(config);
  10047. }
  10048. }, {
  10049. key: "download",
  10050. value: function download(url) {
  10051. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  10052. config.url = url;
  10053. config.method = 'DOWNLOAD';
  10054. return this.middleware(config);
  10055. }
  10056. }]);
  10057. return Request;
  10058. }();
  10059. /**
  10060. * setConfig回调
  10061. * @return {Object} - 返回操作后的config
  10062. * @callback Request~setConfigCallback
  10063. * @param {Object} config - 全局默认config
  10064. */
  10065. exports.default = Request;
  10066. /***/ }),
  10067. /* 45 */
  10068. /*!*********************************************************************************************************************!*\
  10069. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/luch-request/core/dispatchRequest.js ***!
  10070. \*********************************************************************************************************************/
  10071. /*! no static exports found */
  10072. /***/ (function(module, exports, __webpack_require__) {
  10073. "use strict";
  10074. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10075. Object.defineProperty(exports, "__esModule", {
  10076. value: true
  10077. });
  10078. exports.default = void 0;
  10079. var _index = _interopRequireDefault(__webpack_require__(/*! ../adapters/index */ 46));
  10080. var _default = function _default(config) {
  10081. return (0, _index.default)(config);
  10082. };
  10083. exports.default = _default;
  10084. /***/ }),
  10085. /* 46 */
  10086. /*!***************************************************************************************************************!*\
  10087. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/luch-request/adapters/index.js ***!
  10088. \***************************************************************************************************************/
  10089. /*! no static exports found */
  10090. /***/ (function(module, exports, __webpack_require__) {
  10091. "use strict";
  10092. /* WEBPACK VAR INJECTION */(function(uni) {
  10093. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10094. Object.defineProperty(exports, "__esModule", {
  10095. value: true
  10096. });
  10097. exports.default = void 0;
  10098. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  10099. var _buildURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/buildURL */ 47));
  10100. var _buildFullPath = _interopRequireDefault(__webpack_require__(/*! ../core/buildFullPath */ 49));
  10101. var _settle = _interopRequireDefault(__webpack_require__(/*! ../core/settle */ 52));
  10102. var _utils = __webpack_require__(/*! ../utils */ 48);
  10103. 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; }
  10104. 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; }
  10105. /**
  10106. * 返回可选值存在的配置
  10107. * @param {Array} keys - 可选值数组
  10108. * @param {Object} config2 - 配置
  10109. * @return {{}} - 存在的配置项
  10110. */
  10111. var mergeKeys = function mergeKeys(keys, config2) {
  10112. var config = {};
  10113. keys.forEach(function (prop) {
  10114. if (!(0, _utils.isUndefined)(config2[prop])) {
  10115. config[prop] = config2[prop];
  10116. }
  10117. });
  10118. return config;
  10119. };
  10120. var _default = function _default(config) {
  10121. return new Promise(function (resolve, reject) {
  10122. var fullPath = (0, _buildURL.default)((0, _buildFullPath.default)(config.baseURL, config.url), config.params);
  10123. var _config = {
  10124. url: fullPath,
  10125. header: config.header,
  10126. complete: function complete(response) {
  10127. config.fullPath = fullPath;
  10128. response.config = config;
  10129. try {
  10130. // 对可能字符串不是json 的情况容错
  10131. if (typeof response.data === 'string') {
  10132. response.data = JSON.parse(response.data);
  10133. }
  10134. // eslint-disable-next-line no-empty
  10135. } catch (e) {}
  10136. (0, _settle.default)(resolve, reject, response);
  10137. }
  10138. };
  10139. var requestTask;
  10140. if (config.method === 'UPLOAD') {
  10141. delete _config.header['content-type'];
  10142. delete _config.header['Content-Type'];
  10143. var otherConfig = {
  10144. filePath: config.filePath,
  10145. name: config.name
  10146. };
  10147. var optionalKeys = ['formData'];
  10148. requestTask = uni.uploadFile(_objectSpread(_objectSpread(_objectSpread({}, _config), otherConfig), mergeKeys(optionalKeys, config)));
  10149. } else if (config.method === 'DOWNLOAD') {
  10150. requestTask = uni.downloadFile(_config);
  10151. } else {
  10152. var _optionalKeys = ['data', 'method', 'timeout', 'dataType', 'responseType'];
  10153. requestTask = uni.request(_objectSpread(_objectSpread({}, _config), mergeKeys(_optionalKeys, config)));
  10154. }
  10155. if (config.getTask) {
  10156. config.getTask(requestTask, config);
  10157. }
  10158. });
  10159. };
  10160. exports.default = _default;
  10161. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  10162. /***/ }),
  10163. /* 47 */
  10164. /*!*****************************************************************************************************************!*\
  10165. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/luch-request/helpers/buildURL.js ***!
  10166. \*****************************************************************************************************************/
  10167. /*! no static exports found */
  10168. /***/ (function(module, exports, __webpack_require__) {
  10169. "use strict";
  10170. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  10171. Object.defineProperty(exports, "__esModule", {
  10172. value: true
  10173. });
  10174. exports.default = buildURL;
  10175. var utils = _interopRequireWildcard(__webpack_require__(/*! ../utils */ 48));
  10176. 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); }
  10177. 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; }
  10178. function encode(val) {
  10179. return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
  10180. }
  10181. /**
  10182. * Build a URL by appending params to the end
  10183. *
  10184. * @param {string} url The base of the url (e.g., http://www.google.com)
  10185. * @param {object} [params] The params to be appended
  10186. * @returns {string} The formatted url
  10187. */
  10188. function buildURL(url, params) {
  10189. /* eslint no-param-reassign:0 */
  10190. if (!params) {
  10191. return url;
  10192. }
  10193. var serializedParams;
  10194. if (utils.isURLSearchParams(params)) {
  10195. serializedParams = params.toString();
  10196. } else {
  10197. var parts = [];
  10198. utils.forEach(params, function (val, key) {
  10199. if (val === null || typeof val === 'undefined') {
  10200. return;
  10201. }
  10202. if (utils.isArray(val)) {
  10203. key = "".concat(key, "[]");
  10204. } else {
  10205. val = [val];
  10206. }
  10207. utils.forEach(val, function (v) {
  10208. if (utils.isDate(v)) {
  10209. v = v.toISOString();
  10210. } else if (utils.isObject(v)) {
  10211. v = JSON.stringify(v);
  10212. }
  10213. parts.push("".concat(encode(key), "=").concat(encode(v)));
  10214. });
  10215. });
  10216. serializedParams = parts.join('&');
  10217. }
  10218. if (serializedParams) {
  10219. var hashmarkIndex = url.indexOf('#');
  10220. if (hashmarkIndex !== -1) {
  10221. url = url.slice(0, hashmarkIndex);
  10222. }
  10223. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  10224. }
  10225. return url;
  10226. }
  10227. /***/ }),
  10228. /* 48 */
  10229. /*!******************************************************************************************************!*\
  10230. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/luch-request/utils.js ***!
  10231. \******************************************************************************************************/
  10232. /*! no static exports found */
  10233. /***/ (function(module, exports, __webpack_require__) {
  10234. "use strict";
  10235. // utils is a library of generic helper functions non-specific to axios
  10236. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10237. Object.defineProperty(exports, "__esModule", {
  10238. value: true
  10239. });
  10240. exports.deepMerge = deepMerge;
  10241. exports.forEach = forEach;
  10242. exports.isArray = isArray;
  10243. exports.isBoolean = isBoolean;
  10244. exports.isDate = isDate;
  10245. exports.isObject = isObject;
  10246. exports.isPlainObject = isPlainObject;
  10247. exports.isURLSearchParams = isURLSearchParams;
  10248. exports.isUndefined = isUndefined;
  10249. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  10250. var toString = Object.prototype.toString;
  10251. /**
  10252. * Determine if a value is an Array
  10253. *
  10254. * @param {Object} val The value to test
  10255. * @returns {boolean} True if value is an Array, otherwise false
  10256. */
  10257. function isArray(val) {
  10258. return toString.call(val) === '[object Array]';
  10259. }
  10260. /**
  10261. * Determine if a value is an Object
  10262. *
  10263. * @param {Object} val The value to test
  10264. * @returns {boolean} True if value is an Object, otherwise false
  10265. */
  10266. function isObject(val) {
  10267. return val !== null && (0, _typeof2.default)(val) === 'object';
  10268. }
  10269. /**
  10270. * Determine if a value is a Date
  10271. *
  10272. * @param {Object} val The value to test
  10273. * @returns {boolean} True if value is a Date, otherwise false
  10274. */
  10275. function isDate(val) {
  10276. return toString.call(val) === '[object Date]';
  10277. }
  10278. /**
  10279. * Determine if a value is a URLSearchParams object
  10280. *
  10281. * @param {Object} val The value to test
  10282. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  10283. */
  10284. function isURLSearchParams(val) {
  10285. return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  10286. }
  10287. /**
  10288. * Iterate over an Array or an Object invoking a function for each item.
  10289. *
  10290. * If `obj` is an Array callback will be called passing
  10291. * the value, index, and complete array for each item.
  10292. *
  10293. * If 'obj' is an Object callback will be called passing
  10294. * the value, key, and complete object for each property.
  10295. *
  10296. * @param {Object|Array} obj The object to iterate
  10297. * @param {Function} fn The callback to invoke for each item
  10298. */
  10299. function forEach(obj, fn) {
  10300. // Don't bother if no value provided
  10301. if (obj === null || typeof obj === 'undefined') {
  10302. return;
  10303. }
  10304. // Force an array if not already something iterable
  10305. if ((0, _typeof2.default)(obj) !== 'object') {
  10306. /* eslint no-param-reassign:0 */
  10307. obj = [obj];
  10308. }
  10309. if (isArray(obj)) {
  10310. // Iterate over array values
  10311. for (var i = 0, l = obj.length; i < l; i++) {
  10312. fn.call(null, obj[i], i, obj);
  10313. }
  10314. } else {
  10315. // Iterate over object keys
  10316. for (var key in obj) {
  10317. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  10318. fn.call(null, obj[key], key, obj);
  10319. }
  10320. }
  10321. }
  10322. }
  10323. /**
  10324. * 是否为boolean 值
  10325. * @param val
  10326. * @returns {boolean}
  10327. */
  10328. function isBoolean(val) {
  10329. return typeof val === 'boolean';
  10330. }
  10331. /**
  10332. * 是否为真正的对象{} new Object
  10333. * @param {any} obj - 检测的对象
  10334. * @returns {boolean}
  10335. */
  10336. function isPlainObject(obj) {
  10337. return Object.prototype.toString.call(obj) === '[object Object]';
  10338. }
  10339. /**
  10340. * Function equal to merge with the difference being that no reference
  10341. * to original objects is kept.
  10342. *
  10343. * @see merge
  10344. * @param {Object} obj1 Object to merge
  10345. * @returns {Object} Result of all merge properties
  10346. */
  10347. function deepMerge( /* obj1, obj2, obj3, ... */
  10348. ) {
  10349. var result = {};
  10350. function assignValue(val, key) {
  10351. if ((0, _typeof2.default)(result[key]) === 'object' && (0, _typeof2.default)(val) === 'object') {
  10352. result[key] = deepMerge(result[key], val);
  10353. } else if ((0, _typeof2.default)(val) === 'object') {
  10354. result[key] = deepMerge({}, val);
  10355. } else {
  10356. result[key] = val;
  10357. }
  10358. }
  10359. for (var i = 0, l = arguments.length; i < l; i++) {
  10360. forEach(arguments[i], assignValue);
  10361. }
  10362. return result;
  10363. }
  10364. function isUndefined(val) {
  10365. return typeof val === 'undefined';
  10366. }
  10367. /***/ }),
  10368. /* 49 */
  10369. /*!*******************************************************************************************************************!*\
  10370. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/luch-request/core/buildFullPath.js ***!
  10371. \*******************************************************************************************************************/
  10372. /*! no static exports found */
  10373. /***/ (function(module, exports, __webpack_require__) {
  10374. "use strict";
  10375. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10376. Object.defineProperty(exports, "__esModule", {
  10377. value: true
  10378. });
  10379. exports.default = buildFullPath;
  10380. var _isAbsoluteURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/isAbsoluteURL */ 50));
  10381. var _combineURLs = _interopRequireDefault(__webpack_require__(/*! ../helpers/combineURLs */ 51));
  10382. /**
  10383. * Creates a new URL by combining the baseURL with the requestedURL,
  10384. * only when the requestedURL is not already an absolute URL.
  10385. * If the requestURL is absolute, this function returns the requestedURL untouched.
  10386. *
  10387. * @param {string} baseURL The base URL
  10388. * @param {string} requestedURL Absolute or relative URL to combine
  10389. * @returns {string} The combined full path
  10390. */
  10391. function buildFullPath(baseURL, requestedURL) {
  10392. if (baseURL && !(0, _isAbsoluteURL.default)(requestedURL)) {
  10393. return (0, _combineURLs.default)(baseURL, requestedURL);
  10394. }
  10395. return requestedURL;
  10396. }
  10397. /***/ }),
  10398. /* 50 */
  10399. /*!**********************************************************************************************************************!*\
  10400. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js ***!
  10401. \**********************************************************************************************************************/
  10402. /*! no static exports found */
  10403. /***/ (function(module, exports, __webpack_require__) {
  10404. "use strict";
  10405. /**
  10406. * Determines whether the specified URL is absolute
  10407. *
  10408. * @param {string} url The URL to test
  10409. * @returns {boolean} True if the specified URL is absolute, otherwise false
  10410. */
  10411. Object.defineProperty(exports, "__esModule", {
  10412. value: true
  10413. });
  10414. exports.default = isAbsoluteURL;
  10415. function isAbsoluteURL(url) {
  10416. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  10417. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  10418. // by any combination of letters, digits, plus, period, or hyphen.
  10419. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
  10420. }
  10421. /***/ }),
  10422. /* 51 */
  10423. /*!********************************************************************************************************************!*\
  10424. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/luch-request/helpers/combineURLs.js ***!
  10425. \********************************************************************************************************************/
  10426. /*! no static exports found */
  10427. /***/ (function(module, exports, __webpack_require__) {
  10428. "use strict";
  10429. /**
  10430. * Creates a new URL by combining the specified URLs
  10431. *
  10432. * @param {string} baseURL The base URL
  10433. * @param {string} relativeURL The relative URL
  10434. * @returns {string} The combined URL
  10435. */
  10436. Object.defineProperty(exports, "__esModule", {
  10437. value: true
  10438. });
  10439. exports.default = combineURLs;
  10440. function combineURLs(baseURL, relativeURL) {
  10441. return relativeURL ? "".concat(baseURL.replace(/\/+$/, ''), "/").concat(relativeURL.replace(/^\/+/, '')) : baseURL;
  10442. }
  10443. /***/ }),
  10444. /* 52 */
  10445. /*!************************************************************************************************************!*\
  10446. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/luch-request/core/settle.js ***!
  10447. \************************************************************************************************************/
  10448. /*! no static exports found */
  10449. /***/ (function(module, exports, __webpack_require__) {
  10450. "use strict";
  10451. Object.defineProperty(exports, "__esModule", {
  10452. value: true
  10453. });
  10454. exports.default = settle;
  10455. /**
  10456. * Resolve or reject a Promise based on response status.
  10457. *
  10458. * @param {Function} resolve A function that resolves the promise.
  10459. * @param {Function} reject A function that rejects the promise.
  10460. * @param {object} response The response.
  10461. */
  10462. function settle(resolve, reject, response) {
  10463. var validateStatus = response.config.validateStatus;
  10464. var status = response.statusCode;
  10465. if (status && (!validateStatus || validateStatus(status))) {
  10466. resolve(response);
  10467. } else {
  10468. reject(response);
  10469. }
  10470. }
  10471. /***/ }),
  10472. /* 53 */
  10473. /*!************************************************************************************************************************!*\
  10474. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/luch-request/core/InterceptorManager.js ***!
  10475. \************************************************************************************************************************/
  10476. /*! no static exports found */
  10477. /***/ (function(module, exports, __webpack_require__) {
  10478. "use strict";
  10479. Object.defineProperty(exports, "__esModule", {
  10480. value: true
  10481. });
  10482. exports.default = void 0;
  10483. function InterceptorManager() {
  10484. this.handlers = [];
  10485. }
  10486. /**
  10487. * Add a new interceptor to the stack
  10488. *
  10489. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  10490. * @param {Function} rejected The function to handle `reject` for a `Promise`
  10491. *
  10492. * @return {Number} An ID used to remove interceptor later
  10493. */
  10494. InterceptorManager.prototype.use = function use(fulfilled, rejected) {
  10495. this.handlers.push({
  10496. fulfilled: fulfilled,
  10497. rejected: rejected
  10498. });
  10499. return this.handlers.length - 1;
  10500. };
  10501. /**
  10502. * Remove an interceptor from the stack
  10503. *
  10504. * @param {Number} id The ID that was returned by `use`
  10505. */
  10506. InterceptorManager.prototype.eject = function eject(id) {
  10507. if (this.handlers[id]) {
  10508. this.handlers[id] = null;
  10509. }
  10510. };
  10511. /**
  10512. * Iterate over all the registered interceptors
  10513. *
  10514. * This method is particularly useful for skipping over any
  10515. * interceptors that may have become `null` calling `eject`.
  10516. *
  10517. * @param {Function} fn The function to call for each interceptor
  10518. */
  10519. InterceptorManager.prototype.forEach = function forEach(fn) {
  10520. this.handlers.forEach(function (h) {
  10521. if (h !== null) {
  10522. fn(h);
  10523. }
  10524. });
  10525. };
  10526. var _default = InterceptorManager;
  10527. exports.default = _default;
  10528. /***/ }),
  10529. /* 54 */
  10530. /*!*****************************************************************************************************************!*\
  10531. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/luch-request/core/mergeConfig.js ***!
  10532. \*****************************************************************************************************************/
  10533. /*! no static exports found */
  10534. /***/ (function(module, exports, __webpack_require__) {
  10535. "use strict";
  10536. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10537. Object.defineProperty(exports, "__esModule", {
  10538. value: true
  10539. });
  10540. exports.default = void 0;
  10541. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  10542. var _utils = __webpack_require__(/*! ../utils */ 48);
  10543. 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; }
  10544. 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; }
  10545. /**
  10546. * 合并局部配置优先的配置,如果局部有该配置项则用局部,如果全局有该配置项则用全局
  10547. * @param {Array} keys - 配置项
  10548. * @param {Object} globalsConfig - 当前的全局配置
  10549. * @param {Object} config2 - 局部配置
  10550. * @return {{}}
  10551. */
  10552. var mergeKeys = function mergeKeys(keys, globalsConfig, config2) {
  10553. var config = {};
  10554. keys.forEach(function (prop) {
  10555. if (!(0, _utils.isUndefined)(config2[prop])) {
  10556. config[prop] = config2[prop];
  10557. } else if (!(0, _utils.isUndefined)(globalsConfig[prop])) {
  10558. config[prop] = globalsConfig[prop];
  10559. }
  10560. });
  10561. return config;
  10562. };
  10563. /**
  10564. *
  10565. * @param globalsConfig - 当前实例的全局配置
  10566. * @param config2 - 当前的局部配置
  10567. * @return - 合并后的配置
  10568. */
  10569. var _default = function _default(globalsConfig) {
  10570. var config2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  10571. var method = config2.method || globalsConfig.method || 'GET';
  10572. var config = {
  10573. baseURL: globalsConfig.baseURL || '',
  10574. method: method,
  10575. url: config2.url || '',
  10576. params: config2.params || {},
  10577. custom: _objectSpread(_objectSpread({}, globalsConfig.custom || {}), config2.custom || {}),
  10578. header: (0, _utils.deepMerge)(globalsConfig.header || {}, config2.header || {})
  10579. };
  10580. var defaultToConfig2Keys = ['getTask', 'validateStatus'];
  10581. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultToConfig2Keys, globalsConfig, config2));
  10582. // eslint-disable-next-line no-empty
  10583. if (method === 'DOWNLOAD') {} else if (method === 'UPLOAD') {
  10584. delete config.header['content-type'];
  10585. delete config.header['Content-Type'];
  10586. var uploadKeys = ['filePath', 'name', 'formData'];
  10587. uploadKeys.forEach(function (prop) {
  10588. if (!(0, _utils.isUndefined)(config2[prop])) {
  10589. config[prop] = config2[prop];
  10590. }
  10591. });
  10592. } else {
  10593. var defaultsKeys = ['data', 'timeout', 'dataType', 'responseType'];
  10594. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultsKeys, globalsConfig, config2));
  10595. }
  10596. return config;
  10597. };
  10598. exports.default = _default;
  10599. /***/ }),
  10600. /* 55 */
  10601. /*!**************************************************************************************************************!*\
  10602. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/luch-request/core/defaults.js ***!
  10603. \**************************************************************************************************************/
  10604. /*! no static exports found */
  10605. /***/ (function(module, exports, __webpack_require__) {
  10606. "use strict";
  10607. Object.defineProperty(exports, "__esModule", {
  10608. value: true
  10609. });
  10610. exports.default = void 0;
  10611. /**
  10612. * 默认的全局配置
  10613. */
  10614. var _default = {
  10615. baseURL: '',
  10616. header: {},
  10617. method: 'GET',
  10618. dataType: 'json',
  10619. responseType: 'text',
  10620. custom: {},
  10621. timeout: 60000,
  10622. validateStatus: function validateStatus(status) {
  10623. return status >= 200 && status < 300;
  10624. }
  10625. };
  10626. exports.default = _default;
  10627. /***/ }),
  10628. /* 56 */
  10629. /*!************************************************************************************************************!*\
  10630. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/luch-request/utils/clone.js ***!
  10631. \************************************************************************************************************/
  10632. /*! no static exports found */
  10633. /***/ (function(module, exports, __webpack_require__) {
  10634. "use strict";
  10635. /* WEBPACK VAR INJECTION */(function(Buffer) {
  10636. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10637. Object.defineProperty(exports, "__esModule", {
  10638. value: true
  10639. });
  10640. exports.default = void 0;
  10641. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  10642. /* eslint-disable */
  10643. var clone = function () {
  10644. 'use strict';
  10645. function _instanceof(obj, type) {
  10646. return type != null && obj instanceof type;
  10647. }
  10648. var nativeMap;
  10649. try {
  10650. nativeMap = Map;
  10651. } catch (_) {
  10652. // maybe a reference error because no `Map`. Give it a dummy value that no
  10653. // value will ever be an instanceof.
  10654. nativeMap = function nativeMap() {};
  10655. }
  10656. var nativeSet;
  10657. try {
  10658. nativeSet = Set;
  10659. } catch (_) {
  10660. nativeSet = function nativeSet() {};
  10661. }
  10662. var nativePromise;
  10663. try {
  10664. nativePromise = Promise;
  10665. } catch (_) {
  10666. nativePromise = function nativePromise() {};
  10667. }
  10668. /**
  10669. * Clones (copies) an Object using deep copying.
  10670. *
  10671. * This function supports circular references by default, but if you are certain
  10672. * there are no circular references in your object, you can save some CPU time
  10673. * by calling clone(obj, false).
  10674. *
  10675. * Caution: if `circular` is false and `parent` contains circular references,
  10676. * your program may enter an infinite loop and crash.
  10677. *
  10678. * @param `parent` - the object to be cloned
  10679. * @param `circular` - set to true if the object to be cloned may contain
  10680. * circular references. (optional - true by default)
  10681. * @param `depth` - set to a number if the object is only to be cloned to
  10682. * a particular depth. (optional - defaults to Infinity)
  10683. * @param `prototype` - sets the prototype to be used when cloning an object.
  10684. * (optional - defaults to parent prototype).
  10685. * @param `includeNonEnumerable` - set to true if the non-enumerable properties
  10686. * should be cloned as well. Non-enumerable properties on the prototype
  10687. * chain will be ignored. (optional - false by default)
  10688. */
  10689. function clone(parent, circular, depth, prototype, includeNonEnumerable) {
  10690. if ((0, _typeof2.default)(circular) === 'object') {
  10691. depth = circular.depth;
  10692. prototype = circular.prototype;
  10693. includeNonEnumerable = circular.includeNonEnumerable;
  10694. circular = circular.circular;
  10695. }
  10696. // maintain two arrays for circular references, where corresponding parents
  10697. // and children have the same index
  10698. var allParents = [];
  10699. var allChildren = [];
  10700. var useBuffer = typeof Buffer != 'undefined';
  10701. if (typeof circular == 'undefined') circular = true;
  10702. if (typeof depth == 'undefined') depth = Infinity;
  10703. // recurse this function so we don't reset allParents and allChildren
  10704. function _clone(parent, depth) {
  10705. // cloning null always returns null
  10706. if (parent === null) return null;
  10707. if (depth === 0) return parent;
  10708. var child;
  10709. var proto;
  10710. if ((0, _typeof2.default)(parent) != 'object') {
  10711. return parent;
  10712. }
  10713. if (_instanceof(parent, nativeMap)) {
  10714. child = new nativeMap();
  10715. } else if (_instanceof(parent, nativeSet)) {
  10716. child = new nativeSet();
  10717. } else if (_instanceof(parent, nativePromise)) {
  10718. child = new nativePromise(function (resolve, reject) {
  10719. parent.then(function (value) {
  10720. resolve(_clone(value, depth - 1));
  10721. }, function (err) {
  10722. reject(_clone(err, depth - 1));
  10723. });
  10724. });
  10725. } else if (clone.__isArray(parent)) {
  10726. child = [];
  10727. } else if (clone.__isRegExp(parent)) {
  10728. child = new RegExp(parent.source, __getRegExpFlags(parent));
  10729. if (parent.lastIndex) child.lastIndex = parent.lastIndex;
  10730. } else if (clone.__isDate(parent)) {
  10731. child = new Date(parent.getTime());
  10732. } else if (useBuffer && Buffer.isBuffer(parent)) {
  10733. if (Buffer.from) {
  10734. // Node.js >= 5.10.0
  10735. child = Buffer.from(parent);
  10736. } else {
  10737. // Older Node.js versions
  10738. child = new Buffer(parent.length);
  10739. parent.copy(child);
  10740. }
  10741. return child;
  10742. } else if (_instanceof(parent, Error)) {
  10743. child = Object.create(parent);
  10744. } else {
  10745. if (typeof prototype == 'undefined') {
  10746. proto = Object.getPrototypeOf(parent);
  10747. child = Object.create(proto);
  10748. } else {
  10749. child = Object.create(prototype);
  10750. proto = prototype;
  10751. }
  10752. }
  10753. if (circular) {
  10754. var index = allParents.indexOf(parent);
  10755. if (index != -1) {
  10756. return allChildren[index];
  10757. }
  10758. allParents.push(parent);
  10759. allChildren.push(child);
  10760. }
  10761. if (_instanceof(parent, nativeMap)) {
  10762. parent.forEach(function (value, key) {
  10763. var keyChild = _clone(key, depth - 1);
  10764. var valueChild = _clone(value, depth - 1);
  10765. child.set(keyChild, valueChild);
  10766. });
  10767. }
  10768. if (_instanceof(parent, nativeSet)) {
  10769. parent.forEach(function (value) {
  10770. var entryChild = _clone(value, depth - 1);
  10771. child.add(entryChild);
  10772. });
  10773. }
  10774. for (var i in parent) {
  10775. var attrs = Object.getOwnPropertyDescriptor(parent, i);
  10776. if (attrs) {
  10777. child[i] = _clone(parent[i], depth - 1);
  10778. }
  10779. try {
  10780. var objProperty = Object.getOwnPropertyDescriptor(parent, i);
  10781. if (objProperty.set === 'undefined') {
  10782. // no setter defined. Skip cloning this property
  10783. continue;
  10784. }
  10785. child[i] = _clone(parent[i], depth - 1);
  10786. } catch (e) {
  10787. if (e instanceof TypeError) {
  10788. // when in strict mode, TypeError will be thrown if child[i] property only has a getter
  10789. // we can't do anything about this, other than inform the user that this property cannot be set.
  10790. continue;
  10791. } else if (e instanceof ReferenceError) {
  10792. //this may happen in non strict mode
  10793. continue;
  10794. }
  10795. }
  10796. }
  10797. if (Object.getOwnPropertySymbols) {
  10798. var symbols = Object.getOwnPropertySymbols(parent);
  10799. for (var i = 0; i < symbols.length; i++) {
  10800. // Don't need to worry about cloning a symbol because it is a primitive,
  10801. // like a number or string.
  10802. var symbol = symbols[i];
  10803. var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
  10804. if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
  10805. continue;
  10806. }
  10807. child[symbol] = _clone(parent[symbol], depth - 1);
  10808. Object.defineProperty(child, symbol, descriptor);
  10809. }
  10810. }
  10811. if (includeNonEnumerable) {
  10812. var allPropertyNames = Object.getOwnPropertyNames(parent);
  10813. for (var i = 0; i < allPropertyNames.length; i++) {
  10814. var propertyName = allPropertyNames[i];
  10815. var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
  10816. if (descriptor && descriptor.enumerable) {
  10817. continue;
  10818. }
  10819. child[propertyName] = _clone(parent[propertyName], depth - 1);
  10820. Object.defineProperty(child, propertyName, descriptor);
  10821. }
  10822. }
  10823. return child;
  10824. }
  10825. return _clone(parent, depth);
  10826. }
  10827. /**
  10828. * Simple flat clone using prototype, accepts only objects, usefull for property
  10829. * override on FLAT configuration object (no nested props).
  10830. *
  10831. * USE WITH CAUTION! This may not behave as you wish if you do not know how this
  10832. * works.
  10833. */
  10834. clone.clonePrototype = function clonePrototype(parent) {
  10835. if (parent === null) return null;
  10836. var c = function c() {};
  10837. c.prototype = parent;
  10838. return new c();
  10839. };
  10840. // private utility functions
  10841. function __objToStr(o) {
  10842. return Object.prototype.toString.call(o);
  10843. }
  10844. clone.__objToStr = __objToStr;
  10845. function __isDate(o) {
  10846. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Date]';
  10847. }
  10848. clone.__isDate = __isDate;
  10849. function __isArray(o) {
  10850. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Array]';
  10851. }
  10852. clone.__isArray = __isArray;
  10853. function __isRegExp(o) {
  10854. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object RegExp]';
  10855. }
  10856. clone.__isRegExp = __isRegExp;
  10857. function __getRegExpFlags(re) {
  10858. var flags = '';
  10859. if (re.global) flags += 'g';
  10860. if (re.ignoreCase) flags += 'i';
  10861. if (re.multiline) flags += 'm';
  10862. return flags;
  10863. }
  10864. clone.__getRegExpFlags = __getRegExpFlags;
  10865. return clone;
  10866. }();
  10867. var _default = clone;
  10868. exports.default = _default;
  10869. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../../../../../Software/HBuilderX/plugins/uniapp-cli/node_modules/buffer/index.js */ 57).Buffer))
  10870. /***/ }),
  10871. /* 57 */
  10872. /*!**************************************!*\
  10873. !*** ./node_modules/buffer/index.js ***!
  10874. \**************************************/
  10875. /*! no static exports found */
  10876. /***/ (function(module, exports, __webpack_require__) {
  10877. "use strict";
  10878. /* WEBPACK VAR INJECTION */(function(global) {/*!
  10879. * The buffer module from node.js, for the browser.
  10880. *
  10881. * @author Feross Aboukhadijeh <http://feross.org>
  10882. * @license MIT
  10883. */
  10884. /* eslint-disable no-proto */
  10885. var base64 = __webpack_require__(/*! base64-js */ 58)
  10886. var ieee754 = __webpack_require__(/*! ieee754 */ 59)
  10887. var isArray = __webpack_require__(/*! isarray */ 60)
  10888. exports.Buffer = Buffer
  10889. exports.SlowBuffer = SlowBuffer
  10890. exports.INSPECT_MAX_BYTES = 50
  10891. /**
  10892. * If `Buffer.TYPED_ARRAY_SUPPORT`:
  10893. * === true Use Uint8Array implementation (fastest)
  10894. * === false Use Object implementation (most compatible, even IE6)
  10895. *
  10896. * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
  10897. * Opera 11.6+, iOS 4.2+.
  10898. *
  10899. * Due to various browser bugs, sometimes the Object implementation will be used even
  10900. * when the browser supports typed arrays.
  10901. *
  10902. * Note:
  10903. *
  10904. * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
  10905. * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
  10906. *
  10907. * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
  10908. *
  10909. * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
  10910. * incorrect length in some situations.
  10911. * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
  10912. * get the Object implementation, which is slower but behaves correctly.
  10913. */
  10914. Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
  10915. ? global.TYPED_ARRAY_SUPPORT
  10916. : typedArraySupport()
  10917. /*
  10918. * Export kMaxLength after typed array support is determined.
  10919. */
  10920. exports.kMaxLength = kMaxLength()
  10921. function typedArraySupport () {
  10922. try {
  10923. var arr = new Uint8Array(1)
  10924. arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
  10925. return arr.foo() === 42 && // typed array instances can be augmented
  10926. typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
  10927. arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  10928. } catch (e) {
  10929. return false
  10930. }
  10931. }
  10932. function kMaxLength () {
  10933. return Buffer.TYPED_ARRAY_SUPPORT
  10934. ? 0x7fffffff
  10935. : 0x3fffffff
  10936. }
  10937. function createBuffer (that, length) {
  10938. if (kMaxLength() < length) {
  10939. throw new RangeError('Invalid typed array length')
  10940. }
  10941. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10942. // Return an augmented `Uint8Array` instance, for best performance
  10943. that = new Uint8Array(length)
  10944. that.__proto__ = Buffer.prototype
  10945. } else {
  10946. // Fallback: Return an object instance of the Buffer class
  10947. if (that === null) {
  10948. that = new Buffer(length)
  10949. }
  10950. that.length = length
  10951. }
  10952. return that
  10953. }
  10954. /**
  10955. * The Buffer constructor returns instances of `Uint8Array` that have their
  10956. * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
  10957. * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
  10958. * and the `Uint8Array` methods. Square bracket notation works as expected -- it
  10959. * returns a single octet.
  10960. *
  10961. * The `Uint8Array` prototype remains unmodified.
  10962. */
  10963. function Buffer (arg, encodingOrOffset, length) {
  10964. if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
  10965. return new Buffer(arg, encodingOrOffset, length)
  10966. }
  10967. // Common case.
  10968. if (typeof arg === 'number') {
  10969. if (typeof encodingOrOffset === 'string') {
  10970. throw new Error(
  10971. 'If encoding is specified then the first argument must be a string'
  10972. )
  10973. }
  10974. return allocUnsafe(this, arg)
  10975. }
  10976. return from(this, arg, encodingOrOffset, length)
  10977. }
  10978. Buffer.poolSize = 8192 // not used by this implementation
  10979. // TODO: Legacy, not needed anymore. Remove in next major version.
  10980. Buffer._augment = function (arr) {
  10981. arr.__proto__ = Buffer.prototype
  10982. return arr
  10983. }
  10984. function from (that, value, encodingOrOffset, length) {
  10985. if (typeof value === 'number') {
  10986. throw new TypeError('"value" argument must not be a number')
  10987. }
  10988. if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
  10989. return fromArrayBuffer(that, value, encodingOrOffset, length)
  10990. }
  10991. if (typeof value === 'string') {
  10992. return fromString(that, value, encodingOrOffset)
  10993. }
  10994. return fromObject(that, value)
  10995. }
  10996. /**
  10997. * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
  10998. * if value is a number.
  10999. * Buffer.from(str[, encoding])
  11000. * Buffer.from(array)
  11001. * Buffer.from(buffer)
  11002. * Buffer.from(arrayBuffer[, byteOffset[, length]])
  11003. **/
  11004. Buffer.from = function (value, encodingOrOffset, length) {
  11005. return from(null, value, encodingOrOffset, length)
  11006. }
  11007. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11008. Buffer.prototype.__proto__ = Uint8Array.prototype
  11009. Buffer.__proto__ = Uint8Array
  11010. if (typeof Symbol !== 'undefined' && Symbol.species &&
  11011. Buffer[Symbol.species] === Buffer) {
  11012. // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
  11013. Object.defineProperty(Buffer, Symbol.species, {
  11014. value: null,
  11015. configurable: true
  11016. })
  11017. }
  11018. }
  11019. function assertSize (size) {
  11020. if (typeof size !== 'number') {
  11021. throw new TypeError('"size" argument must be a number')
  11022. } else if (size < 0) {
  11023. throw new RangeError('"size" argument must not be negative')
  11024. }
  11025. }
  11026. function alloc (that, size, fill, encoding) {
  11027. assertSize(size)
  11028. if (size <= 0) {
  11029. return createBuffer(that, size)
  11030. }
  11031. if (fill !== undefined) {
  11032. // Only pay attention to encoding if it's a string. This
  11033. // prevents accidentally sending in a number that would
  11034. // be interpretted as a start offset.
  11035. return typeof encoding === 'string'
  11036. ? createBuffer(that, size).fill(fill, encoding)
  11037. : createBuffer(that, size).fill(fill)
  11038. }
  11039. return createBuffer(that, size)
  11040. }
  11041. /**
  11042. * Creates a new filled Buffer instance.
  11043. * alloc(size[, fill[, encoding]])
  11044. **/
  11045. Buffer.alloc = function (size, fill, encoding) {
  11046. return alloc(null, size, fill, encoding)
  11047. }
  11048. function allocUnsafe (that, size) {
  11049. assertSize(size)
  11050. that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  11051. if (!Buffer.TYPED_ARRAY_SUPPORT) {
  11052. for (var i = 0; i < size; ++i) {
  11053. that[i] = 0
  11054. }
  11055. }
  11056. return that
  11057. }
  11058. /**
  11059. * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
  11060. * */
  11061. Buffer.allocUnsafe = function (size) {
  11062. return allocUnsafe(null, size)
  11063. }
  11064. /**
  11065. * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
  11066. */
  11067. Buffer.allocUnsafeSlow = function (size) {
  11068. return allocUnsafe(null, size)
  11069. }
  11070. function fromString (that, string, encoding) {
  11071. if (typeof encoding !== 'string' || encoding === '') {
  11072. encoding = 'utf8'
  11073. }
  11074. if (!Buffer.isEncoding(encoding)) {
  11075. throw new TypeError('"encoding" must be a valid string encoding')
  11076. }
  11077. var length = byteLength(string, encoding) | 0
  11078. that = createBuffer(that, length)
  11079. var actual = that.write(string, encoding)
  11080. if (actual !== length) {
  11081. // Writing a hex string, for example, that contains invalid characters will
  11082. // cause everything after the first invalid character to be ignored. (e.g.
  11083. // 'abxxcd' will be treated as 'ab')
  11084. that = that.slice(0, actual)
  11085. }
  11086. return that
  11087. }
  11088. function fromArrayLike (that, array) {
  11089. var length = array.length < 0 ? 0 : checked(array.length) | 0
  11090. that = createBuffer(that, length)
  11091. for (var i = 0; i < length; i += 1) {
  11092. that[i] = array[i] & 255
  11093. }
  11094. return that
  11095. }
  11096. function fromArrayBuffer (that, array, byteOffset, length) {
  11097. array.byteLength // this throws if `array` is not a valid ArrayBuffer
  11098. if (byteOffset < 0 || array.byteLength < byteOffset) {
  11099. throw new RangeError('\'offset\' is out of bounds')
  11100. }
  11101. if (array.byteLength < byteOffset + (length || 0)) {
  11102. throw new RangeError('\'length\' is out of bounds')
  11103. }
  11104. if (byteOffset === undefined && length === undefined) {
  11105. array = new Uint8Array(array)
  11106. } else if (length === undefined) {
  11107. array = new Uint8Array(array, byteOffset)
  11108. } else {
  11109. array = new Uint8Array(array, byteOffset, length)
  11110. }
  11111. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11112. // Return an augmented `Uint8Array` instance, for best performance
  11113. that = array
  11114. that.__proto__ = Buffer.prototype
  11115. } else {
  11116. // Fallback: Return an object instance of the Buffer class
  11117. that = fromArrayLike(that, array)
  11118. }
  11119. return that
  11120. }
  11121. function fromObject (that, obj) {
  11122. if (Buffer.isBuffer(obj)) {
  11123. var len = checked(obj.length) | 0
  11124. that = createBuffer(that, len)
  11125. if (that.length === 0) {
  11126. return that
  11127. }
  11128. obj.copy(that, 0, 0, len)
  11129. return that
  11130. }
  11131. if (obj) {
  11132. if ((typeof ArrayBuffer !== 'undefined' &&
  11133. obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
  11134. if (typeof obj.length !== 'number' || isnan(obj.length)) {
  11135. return createBuffer(that, 0)
  11136. }
  11137. return fromArrayLike(that, obj)
  11138. }
  11139. if (obj.type === 'Buffer' && isArray(obj.data)) {
  11140. return fromArrayLike(that, obj.data)
  11141. }
  11142. }
  11143. throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
  11144. }
  11145. function checked (length) {
  11146. // Note: cannot use `length < kMaxLength()` here because that fails when
  11147. // length is NaN (which is otherwise coerced to zero.)
  11148. if (length >= kMaxLength()) {
  11149. throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
  11150. 'size: 0x' + kMaxLength().toString(16) + ' bytes')
  11151. }
  11152. return length | 0
  11153. }
  11154. function SlowBuffer (length) {
  11155. if (+length != length) { // eslint-disable-line eqeqeq
  11156. length = 0
  11157. }
  11158. return Buffer.alloc(+length)
  11159. }
  11160. Buffer.isBuffer = function isBuffer (b) {
  11161. return !!(b != null && b._isBuffer)
  11162. }
  11163. Buffer.compare = function compare (a, b) {
  11164. if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
  11165. throw new TypeError('Arguments must be Buffers')
  11166. }
  11167. if (a === b) return 0
  11168. var x = a.length
  11169. var y = b.length
  11170. for (var i = 0, len = Math.min(x, y); i < len; ++i) {
  11171. if (a[i] !== b[i]) {
  11172. x = a[i]
  11173. y = b[i]
  11174. break
  11175. }
  11176. }
  11177. if (x < y) return -1
  11178. if (y < x) return 1
  11179. return 0
  11180. }
  11181. Buffer.isEncoding = function isEncoding (encoding) {
  11182. switch (String(encoding).toLowerCase()) {
  11183. case 'hex':
  11184. case 'utf8':
  11185. case 'utf-8':
  11186. case 'ascii':
  11187. case 'latin1':
  11188. case 'binary':
  11189. case 'base64':
  11190. case 'ucs2':
  11191. case 'ucs-2':
  11192. case 'utf16le':
  11193. case 'utf-16le':
  11194. return true
  11195. default:
  11196. return false
  11197. }
  11198. }
  11199. Buffer.concat = function concat (list, length) {
  11200. if (!isArray(list)) {
  11201. throw new TypeError('"list" argument must be an Array of Buffers')
  11202. }
  11203. if (list.length === 0) {
  11204. return Buffer.alloc(0)
  11205. }
  11206. var i
  11207. if (length === undefined) {
  11208. length = 0
  11209. for (i = 0; i < list.length; ++i) {
  11210. length += list[i].length
  11211. }
  11212. }
  11213. var buffer = Buffer.allocUnsafe(length)
  11214. var pos = 0
  11215. for (i = 0; i < list.length; ++i) {
  11216. var buf = list[i]
  11217. if (!Buffer.isBuffer(buf)) {
  11218. throw new TypeError('"list" argument must be an Array of Buffers')
  11219. }
  11220. buf.copy(buffer, pos)
  11221. pos += buf.length
  11222. }
  11223. return buffer
  11224. }
  11225. function byteLength (string, encoding) {
  11226. if (Buffer.isBuffer(string)) {
  11227. return string.length
  11228. }
  11229. if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
  11230. (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
  11231. return string.byteLength
  11232. }
  11233. if (typeof string !== 'string') {
  11234. string = '' + string
  11235. }
  11236. var len = string.length
  11237. if (len === 0) return 0
  11238. // Use a for loop to avoid recursion
  11239. var loweredCase = false
  11240. for (;;) {
  11241. switch (encoding) {
  11242. case 'ascii':
  11243. case 'latin1':
  11244. case 'binary':
  11245. return len
  11246. case 'utf8':
  11247. case 'utf-8':
  11248. case undefined:
  11249. return utf8ToBytes(string).length
  11250. case 'ucs2':
  11251. case 'ucs-2':
  11252. case 'utf16le':
  11253. case 'utf-16le':
  11254. return len * 2
  11255. case 'hex':
  11256. return len >>> 1
  11257. case 'base64':
  11258. return base64ToBytes(string).length
  11259. default:
  11260. if (loweredCase) return utf8ToBytes(string).length // assume utf8
  11261. encoding = ('' + encoding).toLowerCase()
  11262. loweredCase = true
  11263. }
  11264. }
  11265. }
  11266. Buffer.byteLength = byteLength
  11267. function slowToString (encoding, start, end) {
  11268. var loweredCase = false
  11269. // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
  11270. // property of a typed array.
  11271. // This behaves neither like String nor Uint8Array in that we set start/end
  11272. // to their upper/lower bounds if the value passed is out of range.
  11273. // undefined is handled specially as per ECMA-262 6th Edition,
  11274. // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
  11275. if (start === undefined || start < 0) {
  11276. start = 0
  11277. }
  11278. // Return early if start > this.length. Done here to prevent potential uint32
  11279. // coercion fail below.
  11280. if (start > this.length) {
  11281. return ''
  11282. }
  11283. if (end === undefined || end > this.length) {
  11284. end = this.length
  11285. }
  11286. if (end <= 0) {
  11287. return ''
  11288. }
  11289. // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
  11290. end >>>= 0
  11291. start >>>= 0
  11292. if (end <= start) {
  11293. return ''
  11294. }
  11295. if (!encoding) encoding = 'utf8'
  11296. while (true) {
  11297. switch (encoding) {
  11298. case 'hex':
  11299. return hexSlice(this, start, end)
  11300. case 'utf8':
  11301. case 'utf-8':
  11302. return utf8Slice(this, start, end)
  11303. case 'ascii':
  11304. return asciiSlice(this, start, end)
  11305. case 'latin1':
  11306. case 'binary':
  11307. return latin1Slice(this, start, end)
  11308. case 'base64':
  11309. return base64Slice(this, start, end)
  11310. case 'ucs2':
  11311. case 'ucs-2':
  11312. case 'utf16le':
  11313. case 'utf-16le':
  11314. return utf16leSlice(this, start, end)
  11315. default:
  11316. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  11317. encoding = (encoding + '').toLowerCase()
  11318. loweredCase = true
  11319. }
  11320. }
  11321. }
  11322. // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
  11323. // Buffer instances.
  11324. Buffer.prototype._isBuffer = true
  11325. function swap (b, n, m) {
  11326. var i = b[n]
  11327. b[n] = b[m]
  11328. b[m] = i
  11329. }
  11330. Buffer.prototype.swap16 = function swap16 () {
  11331. var len = this.length
  11332. if (len % 2 !== 0) {
  11333. throw new RangeError('Buffer size must be a multiple of 16-bits')
  11334. }
  11335. for (var i = 0; i < len; i += 2) {
  11336. swap(this, i, i + 1)
  11337. }
  11338. return this
  11339. }
  11340. Buffer.prototype.swap32 = function swap32 () {
  11341. var len = this.length
  11342. if (len % 4 !== 0) {
  11343. throw new RangeError('Buffer size must be a multiple of 32-bits')
  11344. }
  11345. for (var i = 0; i < len; i += 4) {
  11346. swap(this, i, i + 3)
  11347. swap(this, i + 1, i + 2)
  11348. }
  11349. return this
  11350. }
  11351. Buffer.prototype.swap64 = function swap64 () {
  11352. var len = this.length
  11353. if (len % 8 !== 0) {
  11354. throw new RangeError('Buffer size must be a multiple of 64-bits')
  11355. }
  11356. for (var i = 0; i < len; i += 8) {
  11357. swap(this, i, i + 7)
  11358. swap(this, i + 1, i + 6)
  11359. swap(this, i + 2, i + 5)
  11360. swap(this, i + 3, i + 4)
  11361. }
  11362. return this
  11363. }
  11364. Buffer.prototype.toString = function toString () {
  11365. var length = this.length | 0
  11366. if (length === 0) return ''
  11367. if (arguments.length === 0) return utf8Slice(this, 0, length)
  11368. return slowToString.apply(this, arguments)
  11369. }
  11370. Buffer.prototype.equals = function equals (b) {
  11371. if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  11372. if (this === b) return true
  11373. return Buffer.compare(this, b) === 0
  11374. }
  11375. Buffer.prototype.inspect = function inspect () {
  11376. var str = ''
  11377. var max = exports.INSPECT_MAX_BYTES
  11378. if (this.length > 0) {
  11379. str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
  11380. if (this.length > max) str += ' ... '
  11381. }
  11382. return '<Buffer ' + str + '>'
  11383. }
  11384. Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  11385. if (!Buffer.isBuffer(target)) {
  11386. throw new TypeError('Argument must be a Buffer')
  11387. }
  11388. if (start === undefined) {
  11389. start = 0
  11390. }
  11391. if (end === undefined) {
  11392. end = target ? target.length : 0
  11393. }
  11394. if (thisStart === undefined) {
  11395. thisStart = 0
  11396. }
  11397. if (thisEnd === undefined) {
  11398. thisEnd = this.length
  11399. }
  11400. if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
  11401. throw new RangeError('out of range index')
  11402. }
  11403. if (thisStart >= thisEnd && start >= end) {
  11404. return 0
  11405. }
  11406. if (thisStart >= thisEnd) {
  11407. return -1
  11408. }
  11409. if (start >= end) {
  11410. return 1
  11411. }
  11412. start >>>= 0
  11413. end >>>= 0
  11414. thisStart >>>= 0
  11415. thisEnd >>>= 0
  11416. if (this === target) return 0
  11417. var x = thisEnd - thisStart
  11418. var y = end - start
  11419. var len = Math.min(x, y)
  11420. var thisCopy = this.slice(thisStart, thisEnd)
  11421. var targetCopy = target.slice(start, end)
  11422. for (var i = 0; i < len; ++i) {
  11423. if (thisCopy[i] !== targetCopy[i]) {
  11424. x = thisCopy[i]
  11425. y = targetCopy[i]
  11426. break
  11427. }
  11428. }
  11429. if (x < y) return -1
  11430. if (y < x) return 1
  11431. return 0
  11432. }
  11433. // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
  11434. // OR the last index of `val` in `buffer` at offset <= `byteOffset`.
  11435. //
  11436. // Arguments:
  11437. // - buffer - a Buffer to search
  11438. // - val - a string, Buffer, or number
  11439. // - byteOffset - an index into `buffer`; will be clamped to an int32
  11440. // - encoding - an optional encoding, relevant is val is a string
  11441. // - dir - true for indexOf, false for lastIndexOf
  11442. function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
  11443. // Empty buffer means no match
  11444. if (buffer.length === 0) return -1
  11445. // Normalize byteOffset
  11446. if (typeof byteOffset === 'string') {
  11447. encoding = byteOffset
  11448. byteOffset = 0
  11449. } else if (byteOffset > 0x7fffffff) {
  11450. byteOffset = 0x7fffffff
  11451. } else if (byteOffset < -0x80000000) {
  11452. byteOffset = -0x80000000
  11453. }
  11454. byteOffset = +byteOffset // Coerce to Number.
  11455. if (isNaN(byteOffset)) {
  11456. // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
  11457. byteOffset = dir ? 0 : (buffer.length - 1)
  11458. }
  11459. // Normalize byteOffset: negative offsets start from the end of the buffer
  11460. if (byteOffset < 0) byteOffset = buffer.length + byteOffset
  11461. if (byteOffset >= buffer.length) {
  11462. if (dir) return -1
  11463. else byteOffset = buffer.length - 1
  11464. } else if (byteOffset < 0) {
  11465. if (dir) byteOffset = 0
  11466. else return -1
  11467. }
  11468. // Normalize val
  11469. if (typeof val === 'string') {
  11470. val = Buffer.from(val, encoding)
  11471. }
  11472. // Finally, search either indexOf (if dir is true) or lastIndexOf
  11473. if (Buffer.isBuffer(val)) {
  11474. // Special case: looking for empty string/buffer always fails
  11475. if (val.length === 0) {
  11476. return -1
  11477. }
  11478. return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
  11479. } else if (typeof val === 'number') {
  11480. val = val & 0xFF // Search for a byte value [0-255]
  11481. if (Buffer.TYPED_ARRAY_SUPPORT &&
  11482. typeof Uint8Array.prototype.indexOf === 'function') {
  11483. if (dir) {
  11484. return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
  11485. } else {
  11486. return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
  11487. }
  11488. }
  11489. return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
  11490. }
  11491. throw new TypeError('val must be string, number or Buffer')
  11492. }
  11493. function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
  11494. var indexSize = 1
  11495. var arrLength = arr.length
  11496. var valLength = val.length
  11497. if (encoding !== undefined) {
  11498. encoding = String(encoding).toLowerCase()
  11499. if (encoding === 'ucs2' || encoding === 'ucs-2' ||
  11500. encoding === 'utf16le' || encoding === 'utf-16le') {
  11501. if (arr.length < 2 || val.length < 2) {
  11502. return -1
  11503. }
  11504. indexSize = 2
  11505. arrLength /= 2
  11506. valLength /= 2
  11507. byteOffset /= 2
  11508. }
  11509. }
  11510. function read (buf, i) {
  11511. if (indexSize === 1) {
  11512. return buf[i]
  11513. } else {
  11514. return buf.readUInt16BE(i * indexSize)
  11515. }
  11516. }
  11517. var i
  11518. if (dir) {
  11519. var foundIndex = -1
  11520. for (i = byteOffset; i < arrLength; i++) {
  11521. if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
  11522. if (foundIndex === -1) foundIndex = i
  11523. if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
  11524. } else {
  11525. if (foundIndex !== -1) i -= i - foundIndex
  11526. foundIndex = -1
  11527. }
  11528. }
  11529. } else {
  11530. if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
  11531. for (i = byteOffset; i >= 0; i--) {
  11532. var found = true
  11533. for (var j = 0; j < valLength; j++) {
  11534. if (read(arr, i + j) !== read(val, j)) {
  11535. found = false
  11536. break
  11537. }
  11538. }
  11539. if (found) return i
  11540. }
  11541. }
  11542. return -1
  11543. }
  11544. Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
  11545. return this.indexOf(val, byteOffset, encoding) !== -1
  11546. }
  11547. Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
  11548. return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
  11549. }
  11550. Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
  11551. return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
  11552. }
  11553. function hexWrite (buf, string, offset, length) {
  11554. offset = Number(offset) || 0
  11555. var remaining = buf.length - offset
  11556. if (!length) {
  11557. length = remaining
  11558. } else {
  11559. length = Number(length)
  11560. if (length > remaining) {
  11561. length = remaining
  11562. }
  11563. }
  11564. // must be an even number of digits
  11565. var strLen = string.length
  11566. if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
  11567. if (length > strLen / 2) {
  11568. length = strLen / 2
  11569. }
  11570. for (var i = 0; i < length; ++i) {
  11571. var parsed = parseInt(string.substr(i * 2, 2), 16)
  11572. if (isNaN(parsed)) return i
  11573. buf[offset + i] = parsed
  11574. }
  11575. return i
  11576. }
  11577. function utf8Write (buf, string, offset, length) {
  11578. return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
  11579. }
  11580. function asciiWrite (buf, string, offset, length) {
  11581. return blitBuffer(asciiToBytes(string), buf, offset, length)
  11582. }
  11583. function latin1Write (buf, string, offset, length) {
  11584. return asciiWrite(buf, string, offset, length)
  11585. }
  11586. function base64Write (buf, string, offset, length) {
  11587. return blitBuffer(base64ToBytes(string), buf, offset, length)
  11588. }
  11589. function ucs2Write (buf, string, offset, length) {
  11590. return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
  11591. }
  11592. Buffer.prototype.write = function write (string, offset, length, encoding) {
  11593. // Buffer#write(string)
  11594. if (offset === undefined) {
  11595. encoding = 'utf8'
  11596. length = this.length
  11597. offset = 0
  11598. // Buffer#write(string, encoding)
  11599. } else if (length === undefined && typeof offset === 'string') {
  11600. encoding = offset
  11601. length = this.length
  11602. offset = 0
  11603. // Buffer#write(string, offset[, length][, encoding])
  11604. } else if (isFinite(offset)) {
  11605. offset = offset | 0
  11606. if (isFinite(length)) {
  11607. length = length | 0
  11608. if (encoding === undefined) encoding = 'utf8'
  11609. } else {
  11610. encoding = length
  11611. length = undefined
  11612. }
  11613. // legacy write(string, encoding, offset, length) - remove in v0.13
  11614. } else {
  11615. throw new Error(
  11616. 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
  11617. )
  11618. }
  11619. var remaining = this.length - offset
  11620. if (length === undefined || length > remaining) length = remaining
  11621. if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
  11622. throw new RangeError('Attempt to write outside buffer bounds')
  11623. }
  11624. if (!encoding) encoding = 'utf8'
  11625. var loweredCase = false
  11626. for (;;) {
  11627. switch (encoding) {
  11628. case 'hex':
  11629. return hexWrite(this, string, offset, length)
  11630. case 'utf8':
  11631. case 'utf-8':
  11632. return utf8Write(this, string, offset, length)
  11633. case 'ascii':
  11634. return asciiWrite(this, string, offset, length)
  11635. case 'latin1':
  11636. case 'binary':
  11637. return latin1Write(this, string, offset, length)
  11638. case 'base64':
  11639. // Warning: maxLength not taken into account in base64Write
  11640. return base64Write(this, string, offset, length)
  11641. case 'ucs2':
  11642. case 'ucs-2':
  11643. case 'utf16le':
  11644. case 'utf-16le':
  11645. return ucs2Write(this, string, offset, length)
  11646. default:
  11647. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  11648. encoding = ('' + encoding).toLowerCase()
  11649. loweredCase = true
  11650. }
  11651. }
  11652. }
  11653. Buffer.prototype.toJSON = function toJSON () {
  11654. return {
  11655. type: 'Buffer',
  11656. data: Array.prototype.slice.call(this._arr || this, 0)
  11657. }
  11658. }
  11659. function base64Slice (buf, start, end) {
  11660. if (start === 0 && end === buf.length) {
  11661. return base64.fromByteArray(buf)
  11662. } else {
  11663. return base64.fromByteArray(buf.slice(start, end))
  11664. }
  11665. }
  11666. function utf8Slice (buf, start, end) {
  11667. end = Math.min(buf.length, end)
  11668. var res = []
  11669. var i = start
  11670. while (i < end) {
  11671. var firstByte = buf[i]
  11672. var codePoint = null
  11673. var bytesPerSequence = (firstByte > 0xEF) ? 4
  11674. : (firstByte > 0xDF) ? 3
  11675. : (firstByte > 0xBF) ? 2
  11676. : 1
  11677. if (i + bytesPerSequence <= end) {
  11678. var secondByte, thirdByte, fourthByte, tempCodePoint
  11679. switch (bytesPerSequence) {
  11680. case 1:
  11681. if (firstByte < 0x80) {
  11682. codePoint = firstByte
  11683. }
  11684. break
  11685. case 2:
  11686. secondByte = buf[i + 1]
  11687. if ((secondByte & 0xC0) === 0x80) {
  11688. tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
  11689. if (tempCodePoint > 0x7F) {
  11690. codePoint = tempCodePoint
  11691. }
  11692. }
  11693. break
  11694. case 3:
  11695. secondByte = buf[i + 1]
  11696. thirdByte = buf[i + 2]
  11697. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
  11698. tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
  11699. if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
  11700. codePoint = tempCodePoint
  11701. }
  11702. }
  11703. break
  11704. case 4:
  11705. secondByte = buf[i + 1]
  11706. thirdByte = buf[i + 2]
  11707. fourthByte = buf[i + 3]
  11708. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
  11709. tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
  11710. if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
  11711. codePoint = tempCodePoint
  11712. }
  11713. }
  11714. }
  11715. }
  11716. if (codePoint === null) {
  11717. // we did not generate a valid codePoint so insert a
  11718. // replacement char (U+FFFD) and advance only 1 byte
  11719. codePoint = 0xFFFD
  11720. bytesPerSequence = 1
  11721. } else if (codePoint > 0xFFFF) {
  11722. // encode to utf16 (surrogate pair dance)
  11723. codePoint -= 0x10000
  11724. res.push(codePoint >>> 10 & 0x3FF | 0xD800)
  11725. codePoint = 0xDC00 | codePoint & 0x3FF
  11726. }
  11727. res.push(codePoint)
  11728. i += bytesPerSequence
  11729. }
  11730. return decodeCodePointsArray(res)
  11731. }
  11732. // Based on http://stackoverflow.com/a/22747272/680742, the browser with
  11733. // the lowest limit is Chrome, with 0x10000 args.
  11734. // We go 1 magnitude less, for safety
  11735. var MAX_ARGUMENTS_LENGTH = 0x1000
  11736. function decodeCodePointsArray (codePoints) {
  11737. var len = codePoints.length
  11738. if (len <= MAX_ARGUMENTS_LENGTH) {
  11739. return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
  11740. }
  11741. // Decode in chunks to avoid "call stack size exceeded".
  11742. var res = ''
  11743. var i = 0
  11744. while (i < len) {
  11745. res += String.fromCharCode.apply(
  11746. String,
  11747. codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
  11748. )
  11749. }
  11750. return res
  11751. }
  11752. function asciiSlice (buf, start, end) {
  11753. var ret = ''
  11754. end = Math.min(buf.length, end)
  11755. for (var i = start; i < end; ++i) {
  11756. ret += String.fromCharCode(buf[i] & 0x7F)
  11757. }
  11758. return ret
  11759. }
  11760. function latin1Slice (buf, start, end) {
  11761. var ret = ''
  11762. end = Math.min(buf.length, end)
  11763. for (var i = start; i < end; ++i) {
  11764. ret += String.fromCharCode(buf[i])
  11765. }
  11766. return ret
  11767. }
  11768. function hexSlice (buf, start, end) {
  11769. var len = buf.length
  11770. if (!start || start < 0) start = 0
  11771. if (!end || end < 0 || end > len) end = len
  11772. var out = ''
  11773. for (var i = start; i < end; ++i) {
  11774. out += toHex(buf[i])
  11775. }
  11776. return out
  11777. }
  11778. function utf16leSlice (buf, start, end) {
  11779. var bytes = buf.slice(start, end)
  11780. var res = ''
  11781. for (var i = 0; i < bytes.length; i += 2) {
  11782. res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  11783. }
  11784. return res
  11785. }
  11786. Buffer.prototype.slice = function slice (start, end) {
  11787. var len = this.length
  11788. start = ~~start
  11789. end = end === undefined ? len : ~~end
  11790. if (start < 0) {
  11791. start += len
  11792. if (start < 0) start = 0
  11793. } else if (start > len) {
  11794. start = len
  11795. }
  11796. if (end < 0) {
  11797. end += len
  11798. if (end < 0) end = 0
  11799. } else if (end > len) {
  11800. end = len
  11801. }
  11802. if (end < start) end = start
  11803. var newBuf
  11804. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11805. newBuf = this.subarray(start, end)
  11806. newBuf.__proto__ = Buffer.prototype
  11807. } else {
  11808. var sliceLen = end - start
  11809. newBuf = new Buffer(sliceLen, undefined)
  11810. for (var i = 0; i < sliceLen; ++i) {
  11811. newBuf[i] = this[i + start]
  11812. }
  11813. }
  11814. return newBuf
  11815. }
  11816. /*
  11817. * Need to make sure that buffer isn't trying to write out of bounds.
  11818. */
  11819. function checkOffset (offset, ext, length) {
  11820. if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  11821. if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
  11822. }
  11823. Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  11824. offset = offset | 0
  11825. byteLength = byteLength | 0
  11826. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11827. var val = this[offset]
  11828. var mul = 1
  11829. var i = 0
  11830. while (++i < byteLength && (mul *= 0x100)) {
  11831. val += this[offset + i] * mul
  11832. }
  11833. return val
  11834. }
  11835. Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  11836. offset = offset | 0
  11837. byteLength = byteLength | 0
  11838. if (!noAssert) {
  11839. checkOffset(offset, byteLength, this.length)
  11840. }
  11841. var val = this[offset + --byteLength]
  11842. var mul = 1
  11843. while (byteLength > 0 && (mul *= 0x100)) {
  11844. val += this[offset + --byteLength] * mul
  11845. }
  11846. return val
  11847. }
  11848. Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  11849. if (!noAssert) checkOffset(offset, 1, this.length)
  11850. return this[offset]
  11851. }
  11852. Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  11853. if (!noAssert) checkOffset(offset, 2, this.length)
  11854. return this[offset] | (this[offset + 1] << 8)
  11855. }
  11856. Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  11857. if (!noAssert) checkOffset(offset, 2, this.length)
  11858. return (this[offset] << 8) | this[offset + 1]
  11859. }
  11860. Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  11861. if (!noAssert) checkOffset(offset, 4, this.length)
  11862. return ((this[offset]) |
  11863. (this[offset + 1] << 8) |
  11864. (this[offset + 2] << 16)) +
  11865. (this[offset + 3] * 0x1000000)
  11866. }
  11867. Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  11868. if (!noAssert) checkOffset(offset, 4, this.length)
  11869. return (this[offset] * 0x1000000) +
  11870. ((this[offset + 1] << 16) |
  11871. (this[offset + 2] << 8) |
  11872. this[offset + 3])
  11873. }
  11874. Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  11875. offset = offset | 0
  11876. byteLength = byteLength | 0
  11877. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11878. var val = this[offset]
  11879. var mul = 1
  11880. var i = 0
  11881. while (++i < byteLength && (mul *= 0x100)) {
  11882. val += this[offset + i] * mul
  11883. }
  11884. mul *= 0x80
  11885. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11886. return val
  11887. }
  11888. Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  11889. offset = offset | 0
  11890. byteLength = byteLength | 0
  11891. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11892. var i = byteLength
  11893. var mul = 1
  11894. var val = this[offset + --i]
  11895. while (i > 0 && (mul *= 0x100)) {
  11896. val += this[offset + --i] * mul
  11897. }
  11898. mul *= 0x80
  11899. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11900. return val
  11901. }
  11902. Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  11903. if (!noAssert) checkOffset(offset, 1, this.length)
  11904. if (!(this[offset] & 0x80)) return (this[offset])
  11905. return ((0xff - this[offset] + 1) * -1)
  11906. }
  11907. Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  11908. if (!noAssert) checkOffset(offset, 2, this.length)
  11909. var val = this[offset] | (this[offset + 1] << 8)
  11910. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11911. }
  11912. Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  11913. if (!noAssert) checkOffset(offset, 2, this.length)
  11914. var val = this[offset + 1] | (this[offset] << 8)
  11915. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11916. }
  11917. Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  11918. if (!noAssert) checkOffset(offset, 4, this.length)
  11919. return (this[offset]) |
  11920. (this[offset + 1] << 8) |
  11921. (this[offset + 2] << 16) |
  11922. (this[offset + 3] << 24)
  11923. }
  11924. Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  11925. if (!noAssert) checkOffset(offset, 4, this.length)
  11926. return (this[offset] << 24) |
  11927. (this[offset + 1] << 16) |
  11928. (this[offset + 2] << 8) |
  11929. (this[offset + 3])
  11930. }
  11931. Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  11932. if (!noAssert) checkOffset(offset, 4, this.length)
  11933. return ieee754.read(this, offset, true, 23, 4)
  11934. }
  11935. Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  11936. if (!noAssert) checkOffset(offset, 4, this.length)
  11937. return ieee754.read(this, offset, false, 23, 4)
  11938. }
  11939. Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  11940. if (!noAssert) checkOffset(offset, 8, this.length)
  11941. return ieee754.read(this, offset, true, 52, 8)
  11942. }
  11943. Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  11944. if (!noAssert) checkOffset(offset, 8, this.length)
  11945. return ieee754.read(this, offset, false, 52, 8)
  11946. }
  11947. function checkInt (buf, value, offset, ext, max, min) {
  11948. if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
  11949. if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
  11950. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11951. }
  11952. Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  11953. value = +value
  11954. offset = offset | 0
  11955. byteLength = byteLength | 0
  11956. if (!noAssert) {
  11957. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11958. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11959. }
  11960. var mul = 1
  11961. var i = 0
  11962. this[offset] = value & 0xFF
  11963. while (++i < byteLength && (mul *= 0x100)) {
  11964. this[offset + i] = (value / mul) & 0xFF
  11965. }
  11966. return offset + byteLength
  11967. }
  11968. Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  11969. value = +value
  11970. offset = offset | 0
  11971. byteLength = byteLength | 0
  11972. if (!noAssert) {
  11973. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11974. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11975. }
  11976. var i = byteLength - 1
  11977. var mul = 1
  11978. this[offset + i] = value & 0xFF
  11979. while (--i >= 0 && (mul *= 0x100)) {
  11980. this[offset + i] = (value / mul) & 0xFF
  11981. }
  11982. return offset + byteLength
  11983. }
  11984. Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  11985. value = +value
  11986. offset = offset | 0
  11987. if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  11988. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  11989. this[offset] = (value & 0xff)
  11990. return offset + 1
  11991. }
  11992. function objectWriteUInt16 (buf, value, offset, littleEndian) {
  11993. if (value < 0) value = 0xffff + value + 1
  11994. for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
  11995. buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
  11996. (littleEndian ? i : 1 - i) * 8
  11997. }
  11998. }
  11999. Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  12000. value = +value
  12001. offset = offset | 0
  12002. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  12003. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12004. this[offset] = (value & 0xff)
  12005. this[offset + 1] = (value >>> 8)
  12006. } else {
  12007. objectWriteUInt16(this, value, offset, true)
  12008. }
  12009. return offset + 2
  12010. }
  12011. Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  12012. value = +value
  12013. offset = offset | 0
  12014. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  12015. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12016. this[offset] = (value >>> 8)
  12017. this[offset + 1] = (value & 0xff)
  12018. } else {
  12019. objectWriteUInt16(this, value, offset, false)
  12020. }
  12021. return offset + 2
  12022. }
  12023. function objectWriteUInt32 (buf, value, offset, littleEndian) {
  12024. if (value < 0) value = 0xffffffff + value + 1
  12025. for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
  12026. buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  12027. }
  12028. }
  12029. Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  12030. value = +value
  12031. offset = offset | 0
  12032. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  12033. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12034. this[offset + 3] = (value >>> 24)
  12035. this[offset + 2] = (value >>> 16)
  12036. this[offset + 1] = (value >>> 8)
  12037. this[offset] = (value & 0xff)
  12038. } else {
  12039. objectWriteUInt32(this, value, offset, true)
  12040. }
  12041. return offset + 4
  12042. }
  12043. Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  12044. value = +value
  12045. offset = offset | 0
  12046. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  12047. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12048. this[offset] = (value >>> 24)
  12049. this[offset + 1] = (value >>> 16)
  12050. this[offset + 2] = (value >>> 8)
  12051. this[offset + 3] = (value & 0xff)
  12052. } else {
  12053. objectWriteUInt32(this, value, offset, false)
  12054. }
  12055. return offset + 4
  12056. }
  12057. Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  12058. value = +value
  12059. offset = offset | 0
  12060. if (!noAssert) {
  12061. var limit = Math.pow(2, 8 * byteLength - 1)
  12062. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  12063. }
  12064. var i = 0
  12065. var mul = 1
  12066. var sub = 0
  12067. this[offset] = value & 0xFF
  12068. while (++i < byteLength && (mul *= 0x100)) {
  12069. if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
  12070. sub = 1
  12071. }
  12072. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  12073. }
  12074. return offset + byteLength
  12075. }
  12076. Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  12077. value = +value
  12078. offset = offset | 0
  12079. if (!noAssert) {
  12080. var limit = Math.pow(2, 8 * byteLength - 1)
  12081. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  12082. }
  12083. var i = byteLength - 1
  12084. var mul = 1
  12085. var sub = 0
  12086. this[offset + i] = value & 0xFF
  12087. while (--i >= 0 && (mul *= 0x100)) {
  12088. if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
  12089. sub = 1
  12090. }
  12091. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  12092. }
  12093. return offset + byteLength
  12094. }
  12095. Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  12096. value = +value
  12097. offset = offset | 0
  12098. if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  12099. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  12100. if (value < 0) value = 0xff + value + 1
  12101. this[offset] = (value & 0xff)
  12102. return offset + 1
  12103. }
  12104. Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  12105. value = +value
  12106. offset = offset | 0
  12107. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  12108. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12109. this[offset] = (value & 0xff)
  12110. this[offset + 1] = (value >>> 8)
  12111. } else {
  12112. objectWriteUInt16(this, value, offset, true)
  12113. }
  12114. return offset + 2
  12115. }
  12116. Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  12117. value = +value
  12118. offset = offset | 0
  12119. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  12120. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12121. this[offset] = (value >>> 8)
  12122. this[offset + 1] = (value & 0xff)
  12123. } else {
  12124. objectWriteUInt16(this, value, offset, false)
  12125. }
  12126. return offset + 2
  12127. }
  12128. Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  12129. value = +value
  12130. offset = offset | 0
  12131. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  12132. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12133. this[offset] = (value & 0xff)
  12134. this[offset + 1] = (value >>> 8)
  12135. this[offset + 2] = (value >>> 16)
  12136. this[offset + 3] = (value >>> 24)
  12137. } else {
  12138. objectWriteUInt32(this, value, offset, true)
  12139. }
  12140. return offset + 4
  12141. }
  12142. Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  12143. value = +value
  12144. offset = offset | 0
  12145. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  12146. if (value < 0) value = 0xffffffff + value + 1
  12147. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12148. this[offset] = (value >>> 24)
  12149. this[offset + 1] = (value >>> 16)
  12150. this[offset + 2] = (value >>> 8)
  12151. this[offset + 3] = (value & 0xff)
  12152. } else {
  12153. objectWriteUInt32(this, value, offset, false)
  12154. }
  12155. return offset + 4
  12156. }
  12157. function checkIEEE754 (buf, value, offset, ext, max, min) {
  12158. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  12159. if (offset < 0) throw new RangeError('Index out of range')
  12160. }
  12161. function writeFloat (buf, value, offset, littleEndian, noAssert) {
  12162. if (!noAssert) {
  12163. checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  12164. }
  12165. ieee754.write(buf, value, offset, littleEndian, 23, 4)
  12166. return offset + 4
  12167. }
  12168. Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  12169. return writeFloat(this, value, offset, true, noAssert)
  12170. }
  12171. Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  12172. return writeFloat(this, value, offset, false, noAssert)
  12173. }
  12174. function writeDouble (buf, value, offset, littleEndian, noAssert) {
  12175. if (!noAssert) {
  12176. checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  12177. }
  12178. ieee754.write(buf, value, offset, littleEndian, 52, 8)
  12179. return offset + 8
  12180. }
  12181. Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  12182. return writeDouble(this, value, offset, true, noAssert)
  12183. }
  12184. Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  12185. return writeDouble(this, value, offset, false, noAssert)
  12186. }
  12187. // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
  12188. Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  12189. if (!start) start = 0
  12190. if (!end && end !== 0) end = this.length
  12191. if (targetStart >= target.length) targetStart = target.length
  12192. if (!targetStart) targetStart = 0
  12193. if (end > 0 && end < start) end = start
  12194. // Copy 0 bytes; we're done
  12195. if (end === start) return 0
  12196. if (target.length === 0 || this.length === 0) return 0
  12197. // Fatal error conditions
  12198. if (targetStart < 0) {
  12199. throw new RangeError('targetStart out of bounds')
  12200. }
  12201. if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  12202. if (end < 0) throw new RangeError('sourceEnd out of bounds')
  12203. // Are we oob?
  12204. if (end > this.length) end = this.length
  12205. if (target.length - targetStart < end - start) {
  12206. end = target.length - targetStart + start
  12207. }
  12208. var len = end - start
  12209. var i
  12210. if (this === target && start < targetStart && targetStart < end) {
  12211. // descending copy from end
  12212. for (i = len - 1; i >= 0; --i) {
  12213. target[i + targetStart] = this[i + start]
  12214. }
  12215. } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
  12216. // ascending copy from start
  12217. for (i = 0; i < len; ++i) {
  12218. target[i + targetStart] = this[i + start]
  12219. }
  12220. } else {
  12221. Uint8Array.prototype.set.call(
  12222. target,
  12223. this.subarray(start, start + len),
  12224. targetStart
  12225. )
  12226. }
  12227. return len
  12228. }
  12229. // Usage:
  12230. // buffer.fill(number[, offset[, end]])
  12231. // buffer.fill(buffer[, offset[, end]])
  12232. // buffer.fill(string[, offset[, end]][, encoding])
  12233. Buffer.prototype.fill = function fill (val, start, end, encoding) {
  12234. // Handle string cases:
  12235. if (typeof val === 'string') {
  12236. if (typeof start === 'string') {
  12237. encoding = start
  12238. start = 0
  12239. end = this.length
  12240. } else if (typeof end === 'string') {
  12241. encoding = end
  12242. end = this.length
  12243. }
  12244. if (val.length === 1) {
  12245. var code = val.charCodeAt(0)
  12246. if (code < 256) {
  12247. val = code
  12248. }
  12249. }
  12250. if (encoding !== undefined && typeof encoding !== 'string') {
  12251. throw new TypeError('encoding must be a string')
  12252. }
  12253. if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
  12254. throw new TypeError('Unknown encoding: ' + encoding)
  12255. }
  12256. } else if (typeof val === 'number') {
  12257. val = val & 255
  12258. }
  12259. // Invalid ranges are not set to a default, so can range check early.
  12260. if (start < 0 || this.length < start || this.length < end) {
  12261. throw new RangeError('Out of range index')
  12262. }
  12263. if (end <= start) {
  12264. return this
  12265. }
  12266. start = start >>> 0
  12267. end = end === undefined ? this.length : end >>> 0
  12268. if (!val) val = 0
  12269. var i
  12270. if (typeof val === 'number') {
  12271. for (i = start; i < end; ++i) {
  12272. this[i] = val
  12273. }
  12274. } else {
  12275. var bytes = Buffer.isBuffer(val)
  12276. ? val
  12277. : utf8ToBytes(new Buffer(val, encoding).toString())
  12278. var len = bytes.length
  12279. for (i = 0; i < end - start; ++i) {
  12280. this[i + start] = bytes[i % len]
  12281. }
  12282. }
  12283. return this
  12284. }
  12285. // HELPER FUNCTIONS
  12286. // ================
  12287. var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
  12288. function base64clean (str) {
  12289. // Node strips out invalid characters like \n and \t from the string, base64-js does not
  12290. str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  12291. // Node converts strings with length < 2 to ''
  12292. if (str.length < 2) return ''
  12293. // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  12294. while (str.length % 4 !== 0) {
  12295. str = str + '='
  12296. }
  12297. return str
  12298. }
  12299. function stringtrim (str) {
  12300. if (str.trim) return str.trim()
  12301. return str.replace(/^\s+|\s+$/g, '')
  12302. }
  12303. function toHex (n) {
  12304. if (n < 16) return '0' + n.toString(16)
  12305. return n.toString(16)
  12306. }
  12307. function utf8ToBytes (string, units) {
  12308. units = units || Infinity
  12309. var codePoint
  12310. var length = string.length
  12311. var leadSurrogate = null
  12312. var bytes = []
  12313. for (var i = 0; i < length; ++i) {
  12314. codePoint = string.charCodeAt(i)
  12315. // is surrogate component
  12316. if (codePoint > 0xD7FF && codePoint < 0xE000) {
  12317. // last char was a lead
  12318. if (!leadSurrogate) {
  12319. // no lead yet
  12320. if (codePoint > 0xDBFF) {
  12321. // unexpected trail
  12322. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  12323. continue
  12324. } else if (i + 1 === length) {
  12325. // unpaired lead
  12326. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  12327. continue
  12328. }
  12329. // valid lead
  12330. leadSurrogate = codePoint
  12331. continue
  12332. }
  12333. // 2 leads in a row
  12334. if (codePoint < 0xDC00) {
  12335. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  12336. leadSurrogate = codePoint
  12337. continue
  12338. }
  12339. // valid surrogate pair
  12340. codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
  12341. } else if (leadSurrogate) {
  12342. // valid bmp char, but last char was a lead
  12343. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  12344. }
  12345. leadSurrogate = null
  12346. // encode utf8
  12347. if (codePoint < 0x80) {
  12348. if ((units -= 1) < 0) break
  12349. bytes.push(codePoint)
  12350. } else if (codePoint < 0x800) {
  12351. if ((units -= 2) < 0) break
  12352. bytes.push(
  12353. codePoint >> 0x6 | 0xC0,
  12354. codePoint & 0x3F | 0x80
  12355. )
  12356. } else if (codePoint < 0x10000) {
  12357. if ((units -= 3) < 0) break
  12358. bytes.push(
  12359. codePoint >> 0xC | 0xE0,
  12360. codePoint >> 0x6 & 0x3F | 0x80,
  12361. codePoint & 0x3F | 0x80
  12362. )
  12363. } else if (codePoint < 0x110000) {
  12364. if ((units -= 4) < 0) break
  12365. bytes.push(
  12366. codePoint >> 0x12 | 0xF0,
  12367. codePoint >> 0xC & 0x3F | 0x80,
  12368. codePoint >> 0x6 & 0x3F | 0x80,
  12369. codePoint & 0x3F | 0x80
  12370. )
  12371. } else {
  12372. throw new Error('Invalid code point')
  12373. }
  12374. }
  12375. return bytes
  12376. }
  12377. function asciiToBytes (str) {
  12378. var byteArray = []
  12379. for (var i = 0; i < str.length; ++i) {
  12380. // Node's code seems to be doing this and not & 0x7F..
  12381. byteArray.push(str.charCodeAt(i) & 0xFF)
  12382. }
  12383. return byteArray
  12384. }
  12385. function utf16leToBytes (str, units) {
  12386. var c, hi, lo
  12387. var byteArray = []
  12388. for (var i = 0; i < str.length; ++i) {
  12389. if ((units -= 2) < 0) break
  12390. c = str.charCodeAt(i)
  12391. hi = c >> 8
  12392. lo = c % 256
  12393. byteArray.push(lo)
  12394. byteArray.push(hi)
  12395. }
  12396. return byteArray
  12397. }
  12398. function base64ToBytes (str) {
  12399. return base64.toByteArray(base64clean(str))
  12400. }
  12401. function blitBuffer (src, dst, offset, length) {
  12402. for (var i = 0; i < length; ++i) {
  12403. if ((i + offset >= dst.length) || (i >= src.length)) break
  12404. dst[i + offset] = src[i]
  12405. }
  12406. return i
  12407. }
  12408. function isnan (val) {
  12409. return val !== val // eslint-disable-line no-self-compare
  12410. }
  12411. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 3)))
  12412. /***/ }),
  12413. /* 58 */
  12414. /*!*****************************************!*\
  12415. !*** ./node_modules/base64-js/index.js ***!
  12416. \*****************************************/
  12417. /*! no static exports found */
  12418. /***/ (function(module, exports, __webpack_require__) {
  12419. "use strict";
  12420. exports.byteLength = byteLength
  12421. exports.toByteArray = toByteArray
  12422. exports.fromByteArray = fromByteArray
  12423. var lookup = []
  12424. var revLookup = []
  12425. var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
  12426. var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  12427. for (var i = 0, len = code.length; i < len; ++i) {
  12428. lookup[i] = code[i]
  12429. revLookup[code.charCodeAt(i)] = i
  12430. }
  12431. // Support decoding URL-safe base64 strings, as Node.js does.
  12432. // See: https://en.wikipedia.org/wiki/Base64#URL_applications
  12433. revLookup['-'.charCodeAt(0)] = 62
  12434. revLookup['_'.charCodeAt(0)] = 63
  12435. function getLens (b64) {
  12436. var len = b64.length
  12437. if (len % 4 > 0) {
  12438. throw new Error('Invalid string. Length must be a multiple of 4')
  12439. }
  12440. // Trim off extra bytes after placeholder bytes are found
  12441. // See: https://github.com/beatgammit/base64-js/issues/42
  12442. var validLen = b64.indexOf('=')
  12443. if (validLen === -1) validLen = len
  12444. var placeHoldersLen = validLen === len
  12445. ? 0
  12446. : 4 - (validLen % 4)
  12447. return [validLen, placeHoldersLen]
  12448. }
  12449. // base64 is 4/3 + up to two characters of the original data
  12450. function byteLength (b64) {
  12451. var lens = getLens(b64)
  12452. var validLen = lens[0]
  12453. var placeHoldersLen = lens[1]
  12454. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  12455. }
  12456. function _byteLength (b64, validLen, placeHoldersLen) {
  12457. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  12458. }
  12459. function toByteArray (b64) {
  12460. var tmp
  12461. var lens = getLens(b64)
  12462. var validLen = lens[0]
  12463. var placeHoldersLen = lens[1]
  12464. var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
  12465. var curByte = 0
  12466. // if there are placeholders, only get up to the last complete 4 chars
  12467. var len = placeHoldersLen > 0
  12468. ? validLen - 4
  12469. : validLen
  12470. var i
  12471. for (i = 0; i < len; i += 4) {
  12472. tmp =
  12473. (revLookup[b64.charCodeAt(i)] << 18) |
  12474. (revLookup[b64.charCodeAt(i + 1)] << 12) |
  12475. (revLookup[b64.charCodeAt(i + 2)] << 6) |
  12476. revLookup[b64.charCodeAt(i + 3)]
  12477. arr[curByte++] = (tmp >> 16) & 0xFF
  12478. arr[curByte++] = (tmp >> 8) & 0xFF
  12479. arr[curByte++] = tmp & 0xFF
  12480. }
  12481. if (placeHoldersLen === 2) {
  12482. tmp =
  12483. (revLookup[b64.charCodeAt(i)] << 2) |
  12484. (revLookup[b64.charCodeAt(i + 1)] >> 4)
  12485. arr[curByte++] = tmp & 0xFF
  12486. }
  12487. if (placeHoldersLen === 1) {
  12488. tmp =
  12489. (revLookup[b64.charCodeAt(i)] << 10) |
  12490. (revLookup[b64.charCodeAt(i + 1)] << 4) |
  12491. (revLookup[b64.charCodeAt(i + 2)] >> 2)
  12492. arr[curByte++] = (tmp >> 8) & 0xFF
  12493. arr[curByte++] = tmp & 0xFF
  12494. }
  12495. return arr
  12496. }
  12497. function tripletToBase64 (num) {
  12498. return lookup[num >> 18 & 0x3F] +
  12499. lookup[num >> 12 & 0x3F] +
  12500. lookup[num >> 6 & 0x3F] +
  12501. lookup[num & 0x3F]
  12502. }
  12503. function encodeChunk (uint8, start, end) {
  12504. var tmp
  12505. var output = []
  12506. for (var i = start; i < end; i += 3) {
  12507. tmp =
  12508. ((uint8[i] << 16) & 0xFF0000) +
  12509. ((uint8[i + 1] << 8) & 0xFF00) +
  12510. (uint8[i + 2] & 0xFF)
  12511. output.push(tripletToBase64(tmp))
  12512. }
  12513. return output.join('')
  12514. }
  12515. function fromByteArray (uint8) {
  12516. var tmp
  12517. var len = uint8.length
  12518. var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
  12519. var parts = []
  12520. var maxChunkLength = 16383 // must be multiple of 3
  12521. // go through the array every three bytes, we'll deal with trailing stuff later
  12522. for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
  12523. parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
  12524. }
  12525. // pad the end with zeros, but make sure to not forget the extra bytes
  12526. if (extraBytes === 1) {
  12527. tmp = uint8[len - 1]
  12528. parts.push(
  12529. lookup[tmp >> 2] +
  12530. lookup[(tmp << 4) & 0x3F] +
  12531. '=='
  12532. )
  12533. } else if (extraBytes === 2) {
  12534. tmp = (uint8[len - 2] << 8) + uint8[len - 1]
  12535. parts.push(
  12536. lookup[tmp >> 10] +
  12537. lookup[(tmp >> 4) & 0x3F] +
  12538. lookup[(tmp << 2) & 0x3F] +
  12539. '='
  12540. )
  12541. }
  12542. return parts.join('')
  12543. }
  12544. /***/ }),
  12545. /* 59 */
  12546. /*!***************************************!*\
  12547. !*** ./node_modules/ieee754/index.js ***!
  12548. \***************************************/
  12549. /*! no static exports found */
  12550. /***/ (function(module, exports) {
  12551. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  12552. exports.read = function (buffer, offset, isLE, mLen, nBytes) {
  12553. var e, m
  12554. var eLen = (nBytes * 8) - mLen - 1
  12555. var eMax = (1 << eLen) - 1
  12556. var eBias = eMax >> 1
  12557. var nBits = -7
  12558. var i = isLE ? (nBytes - 1) : 0
  12559. var d = isLE ? -1 : 1
  12560. var s = buffer[offset + i]
  12561. i += d
  12562. e = s & ((1 << (-nBits)) - 1)
  12563. s >>= (-nBits)
  12564. nBits += eLen
  12565. for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  12566. m = e & ((1 << (-nBits)) - 1)
  12567. e >>= (-nBits)
  12568. nBits += mLen
  12569. for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  12570. if (e === 0) {
  12571. e = 1 - eBias
  12572. } else if (e === eMax) {
  12573. return m ? NaN : ((s ? -1 : 1) * Infinity)
  12574. } else {
  12575. m = m + Math.pow(2, mLen)
  12576. e = e - eBias
  12577. }
  12578. return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
  12579. }
  12580. exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
  12581. var e, m, c
  12582. var eLen = (nBytes * 8) - mLen - 1
  12583. var eMax = (1 << eLen) - 1
  12584. var eBias = eMax >> 1
  12585. var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
  12586. var i = isLE ? 0 : (nBytes - 1)
  12587. var d = isLE ? 1 : -1
  12588. var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
  12589. value = Math.abs(value)
  12590. if (isNaN(value) || value === Infinity) {
  12591. m = isNaN(value) ? 1 : 0
  12592. e = eMax
  12593. } else {
  12594. e = Math.floor(Math.log(value) / Math.LN2)
  12595. if (value * (c = Math.pow(2, -e)) < 1) {
  12596. e--
  12597. c *= 2
  12598. }
  12599. if (e + eBias >= 1) {
  12600. value += rt / c
  12601. } else {
  12602. value += rt * Math.pow(2, 1 - eBias)
  12603. }
  12604. if (value * c >= 2) {
  12605. e++
  12606. c /= 2
  12607. }
  12608. if (e + eBias >= eMax) {
  12609. m = 0
  12610. e = eMax
  12611. } else if (e + eBias >= 1) {
  12612. m = ((value * c) - 1) * Math.pow(2, mLen)
  12613. e = e + eBias
  12614. } else {
  12615. m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
  12616. e = 0
  12617. }
  12618. }
  12619. for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
  12620. e = (e << mLen) | m
  12621. eLen += mLen
  12622. for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
  12623. buffer[offset + i - d] |= s * 128
  12624. }
  12625. /***/ }),
  12626. /* 60 */
  12627. /*!***************************************!*\
  12628. !*** ./node_modules/isarray/index.js ***!
  12629. \***************************************/
  12630. /*! no static exports found */
  12631. /***/ (function(module, exports) {
  12632. var toString = {}.toString;
  12633. module.exports = Array.isArray || function (arr) {
  12634. return toString.call(arr) == '[object Array]';
  12635. };
  12636. /***/ }),
  12637. /* 61 */
  12638. /*!**********************************************************************************************!*\
  12639. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/util/route.js ***!
  12640. \**********************************************************************************************/
  12641. /*! no static exports found */
  12642. /***/ (function(module, exports, __webpack_require__) {
  12643. "use strict";
  12644. /* WEBPACK VAR INJECTION */(function(uni) {
  12645. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12646. Object.defineProperty(exports, "__esModule", {
  12647. value: true
  12648. });
  12649. exports.default = void 0;
  12650. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 30));
  12651. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
  12652. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  12653. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  12654. /**
  12655. * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
  12656. * 并且带有路由拦截功能
  12657. */
  12658. var Router = /*#__PURE__*/function () {
  12659. function Router() {
  12660. (0, _classCallCheck2.default)(this, Router);
  12661. // 原始属性定义
  12662. this.config = {
  12663. type: 'navigateTo',
  12664. url: '',
  12665. delta: 1,
  12666. // navigateBack页面后退时,回退的层数
  12667. params: {},
  12668. // 传递的参数
  12669. animationType: 'pop-in',
  12670. // 窗口动画,只在APP有效
  12671. animationDuration: 300,
  12672. // 窗口动画持续时间,单位毫秒,只在APP有效
  12673. intercept: false // 是否需要拦截
  12674. };
  12675. // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
  12676. // 这里在构造函数中进行this绑定
  12677. this.route = this.route.bind(this);
  12678. }
  12679. // 判断url前面是否有"/",如果没有则加上,否则无法跳转
  12680. (0, _createClass2.default)(Router, [{
  12681. key: "addRootPath",
  12682. value: function addRootPath(url) {
  12683. return url[0] === '/' ? url : "/".concat(url);
  12684. }
  12685. // 整合路由参数
  12686. }, {
  12687. key: "mixinParam",
  12688. value: function mixinParam(url, params) {
  12689. url = url && this.addRootPath(url);
  12690. // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
  12691. // 如果有url中有get参数,转换后无需带上"?"
  12692. var query = '';
  12693. if (/.*\/.*\?.*=.*/.test(url)) {
  12694. // object对象转为get类型的参数
  12695. query = uni.$u.queryParams(params, false);
  12696. // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
  12697. return url += "&".concat(query);
  12698. }
  12699. // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
  12700. query = uni.$u.queryParams(params);
  12701. return url += query;
  12702. }
  12703. // 对外的方法名称
  12704. }, {
  12705. key: "route",
  12706. value: function () {
  12707. var _route = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  12708. var options,
  12709. params,
  12710. mergeConfig,
  12711. isNext,
  12712. _args = arguments;
  12713. return _regenerator.default.wrap(function _callee$(_context) {
  12714. while (1) {
  12715. switch (_context.prev = _context.next) {
  12716. case 0:
  12717. options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
  12718. params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
  12719. // 合并用户的配置和内部的默认配置
  12720. mergeConfig = {};
  12721. if (typeof options === 'string') {
  12722. // 如果options为字符串,则为route(url, params)的形式
  12723. mergeConfig.url = this.mixinParam(options, params);
  12724. mergeConfig.type = 'navigateTo';
  12725. } else {
  12726. mergeConfig = uni.$u.deepClone(options, this.config);
  12727. // 否则正常使用mergeConfig中的url和params进行拼接
  12728. mergeConfig.url = this.mixinParam(options.url, options.params);
  12729. }
  12730. // 如果本次跳转的路径和本页面路径一致,不执行跳转,防止用户快速点击跳转按钮,造成多次跳转同一个页面的问题
  12731. if (!(mergeConfig.url === uni.$u.page())) {
  12732. _context.next = 6;
  12733. break;
  12734. }
  12735. return _context.abrupt("return");
  12736. case 6:
  12737. if (params.intercept) {
  12738. this.config.intercept = params.intercept;
  12739. }
  12740. // params参数也带给拦截器
  12741. mergeConfig.params = params;
  12742. // 合并内外部参数
  12743. mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
  12744. // 判断用户是否定义了拦截器
  12745. if (!(typeof uni.$u.routeIntercept === 'function')) {
  12746. _context.next = 16;
  12747. break;
  12748. }
  12749. _context.next = 12;
  12750. return new Promise(function (resolve, reject) {
  12751. uni.$u.routeIntercept(mergeConfig, resolve);
  12752. });
  12753. case 12:
  12754. isNext = _context.sent;
  12755. // 如果isNext为true,则执行路由跳转
  12756. isNext && this.openPage(mergeConfig);
  12757. _context.next = 17;
  12758. break;
  12759. case 16:
  12760. this.openPage(mergeConfig);
  12761. case 17:
  12762. case "end":
  12763. return _context.stop();
  12764. }
  12765. }
  12766. }, _callee, this);
  12767. }));
  12768. function route() {
  12769. return _route.apply(this, arguments);
  12770. }
  12771. return route;
  12772. }() // 执行路由跳转
  12773. }, {
  12774. key: "openPage",
  12775. value: function openPage(config) {
  12776. // 解构参数
  12777. var url = config.url,
  12778. type = config.type,
  12779. delta = config.delta,
  12780. animationType = config.animationType,
  12781. animationDuration = config.animationDuration;
  12782. if (config.type == 'navigateTo' || config.type == 'to') {
  12783. uni.navigateTo({
  12784. url: url,
  12785. animationType: animationType,
  12786. animationDuration: animationDuration
  12787. });
  12788. }
  12789. if (config.type == 'redirectTo' || config.type == 'redirect') {
  12790. uni.redirectTo({
  12791. url: url
  12792. });
  12793. }
  12794. if (config.type == 'switchTab' || config.type == 'tab') {
  12795. uni.switchTab({
  12796. url: url
  12797. });
  12798. }
  12799. if (config.type == 'reLaunch' || config.type == 'launch') {
  12800. uni.reLaunch({
  12801. url: url
  12802. });
  12803. }
  12804. if (config.type == 'navigateBack' || config.type == 'back') {
  12805. uni.navigateBack({
  12806. delta: delta
  12807. });
  12808. }
  12809. }
  12810. }]);
  12811. return Router;
  12812. }();
  12813. var _default = new Router().route;
  12814. exports.default = _default;
  12815. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  12816. /***/ }),
  12817. /* 62 */
  12818. /*!**********************************************************************************************************!*\
  12819. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/function/colorGradient.js ***!
  12820. \**********************************************************************************************************/
  12821. /*! no static exports found */
  12822. /***/ (function(module, exports, __webpack_require__) {
  12823. "use strict";
  12824. Object.defineProperty(exports, "__esModule", {
  12825. value: true
  12826. });
  12827. exports.default = void 0;
  12828. /**
  12829. * 求两个颜色之间的渐变值
  12830. * @param {string} startColor 开始的颜色
  12831. * @param {string} endColor 结束的颜色
  12832. * @param {number} step 颜色等分的份额
  12833. * */
  12834. function colorGradient() {
  12835. var startColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'rgb(0, 0, 0)';
  12836. var endColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rgb(255, 255, 255)';
  12837. var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
  12838. var startRGB = hexToRgb(startColor, false); // 转换为rgb数组模式
  12839. var startR = startRGB[0];
  12840. var startG = startRGB[1];
  12841. var startB = startRGB[2];
  12842. var endRGB = hexToRgb(endColor, false);
  12843. var endR = endRGB[0];
  12844. var endG = endRGB[1];
  12845. var endB = endRGB[2];
  12846. var sR = (endR - startR) / step; // 总差值
  12847. var sG = (endG - startG) / step;
  12848. var sB = (endB - startB) / step;
  12849. var colorArr = [];
  12850. for (var i = 0; i < step; i++) {
  12851. // 计算每一步的hex值
  12852. var hex = rgbToHex("rgb(".concat(Math.round(sR * i + startR), ",").concat(Math.round(sG * i + startG), ",").concat(Math.round(sB * i + startB), ")"));
  12853. // 确保第一个颜色值为startColor的值
  12854. if (i === 0) hex = rgbToHex(startColor);
  12855. // 确保最后一个颜色值为endColor的值
  12856. if (i === step - 1) hex = rgbToHex(endColor);
  12857. colorArr.push(hex);
  12858. }
  12859. return colorArr;
  12860. }
  12861. // 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
  12862. function hexToRgb(sColor) {
  12863. var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  12864. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12865. sColor = String(sColor).toLowerCase();
  12866. if (sColor && reg.test(sColor)) {
  12867. if (sColor.length === 4) {
  12868. var sColorNew = '#';
  12869. for (var i = 1; i < 4; i += 1) {
  12870. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  12871. }
  12872. sColor = sColorNew;
  12873. }
  12874. // 处理六位的颜色值
  12875. var sColorChange = [];
  12876. for (var _i = 1; _i < 7; _i += 2) {
  12877. sColorChange.push(parseInt("0x".concat(sColor.slice(_i, _i + 2))));
  12878. }
  12879. if (!str) {
  12880. return sColorChange;
  12881. }
  12882. return "rgb(".concat(sColorChange[0], ",").concat(sColorChange[1], ",").concat(sColorChange[2], ")");
  12883. }
  12884. if (/^(rgb|RGB)/.test(sColor)) {
  12885. var arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  12886. return arr.map(function (val) {
  12887. return Number(val);
  12888. });
  12889. }
  12890. return sColor;
  12891. }
  12892. // 将rgb表示方式转换为hex表示方式
  12893. function rgbToHex(rgb) {
  12894. var _this = rgb;
  12895. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12896. if (/^(rgb|RGB)/.test(_this)) {
  12897. var aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  12898. var strHex = '#';
  12899. for (var i = 0; i < aColor.length; i++) {
  12900. var hex = Number(aColor[i]).toString(16);
  12901. hex = String(hex).length == 1 ? "".concat(0, hex) : hex; // 保证每个rgb的值为2位
  12902. if (hex === '0') {
  12903. hex += hex;
  12904. }
  12905. strHex += hex;
  12906. }
  12907. if (strHex.length !== 7) {
  12908. strHex = _this;
  12909. }
  12910. return strHex;
  12911. }
  12912. if (reg.test(_this)) {
  12913. var aNum = _this.replace(/#/, '').split('');
  12914. if (aNum.length === 6) {
  12915. return _this;
  12916. }
  12917. if (aNum.length === 3) {
  12918. var numHex = '#';
  12919. for (var _i2 = 0; _i2 < aNum.length; _i2 += 1) {
  12920. numHex += aNum[_i2] + aNum[_i2];
  12921. }
  12922. return numHex;
  12923. }
  12924. } else {
  12925. return _this;
  12926. }
  12927. }
  12928. /**
  12929. * JS颜色十六进制转换为rgb或rgba,返回的格式为 rgba(255,255,255,0.5)字符串
  12930. * sHex为传入的十六进制的色值
  12931. * alpha为rgba的透明度
  12932. */
  12933. function colorToRgba(color, alpha) {
  12934. color = rgbToHex(color);
  12935. // 十六进制颜色值的正则表达式
  12936. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12937. /* 16进制颜色转为RGB格式 */
  12938. var sColor = String(color).toLowerCase();
  12939. if (sColor && reg.test(sColor)) {
  12940. if (sColor.length === 4) {
  12941. var sColorNew = '#';
  12942. for (var i = 1; i < 4; i += 1) {
  12943. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  12944. }
  12945. sColor = sColorNew;
  12946. }
  12947. // 处理六位的颜色值
  12948. var sColorChange = [];
  12949. for (var _i3 = 1; _i3 < 7; _i3 += 2) {
  12950. sColorChange.push(parseInt("0x".concat(sColor.slice(_i3, _i3 + 2))));
  12951. }
  12952. // return sColorChange.join(',')
  12953. return "rgba(".concat(sColorChange.join(','), ",").concat(alpha, ")");
  12954. }
  12955. return sColor;
  12956. }
  12957. var _default = {
  12958. colorGradient: colorGradient,
  12959. hexToRgb: hexToRgb,
  12960. rgbToHex: rgbToHex,
  12961. colorToRgba: colorToRgba
  12962. };
  12963. exports.default = _default;
  12964. /***/ }),
  12965. /* 63 */
  12966. /*!*************************************************************************************************!*\
  12967. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/function/test.js ***!
  12968. \*************************************************************************************************/
  12969. /*! no static exports found */
  12970. /***/ (function(module, exports, __webpack_require__) {
  12971. "use strict";
  12972. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12973. Object.defineProperty(exports, "__esModule", {
  12974. value: true
  12975. });
  12976. exports.default = void 0;
  12977. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  12978. /**
  12979. * 验证电子邮箱格式
  12980. */
  12981. function email(value) {
  12982. return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
  12983. }
  12984. /**
  12985. * 验证手机格式
  12986. */
  12987. function mobile(value) {
  12988. return /^1[23456789]\d{9}$/.test(value);
  12989. }
  12990. /**
  12991. * 验证URL格式
  12992. */
  12993. function url(value) {
  12994. 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);
  12995. }
  12996. /**
  12997. * 验证日期格式
  12998. */
  12999. function date(value) {
  13000. if (!value) return false;
  13001. // 判断是否数值或者字符串数值(意味着为时间戳),转为数值,否则new Date无法识别字符串时间戳
  13002. if (number(value)) value = +value;
  13003. return !/Invalid|NaN/.test(new Date(value).toString());
  13004. }
  13005. /**
  13006. * 验证ISO类型的日期格式
  13007. */
  13008. function dateISO(value) {
  13009. return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
  13010. }
  13011. /**
  13012. * 验证十进制数字
  13013. */
  13014. function number(value) {
  13015. return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value);
  13016. }
  13017. /**
  13018. * 验证字符串
  13019. */
  13020. function string(value) {
  13021. return typeof value === 'string';
  13022. }
  13023. /**
  13024. * 验证整数
  13025. */
  13026. function digits(value) {
  13027. return /^\d+$/.test(value);
  13028. }
  13029. /**
  13030. * 验证身份证号码
  13031. */
  13032. function idCard(value) {
  13033. 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);
  13034. }
  13035. /**
  13036. * 是否车牌号
  13037. */
  13038. function carNo(value) {
  13039. // 新能源车牌
  13040. var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
  13041. // 旧车牌
  13042. var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
  13043. if (value.length === 7) {
  13044. return creg.test(value);
  13045. }
  13046. if (value.length === 8) {
  13047. return xreg.test(value);
  13048. }
  13049. return false;
  13050. }
  13051. /**
  13052. * 金额,只允许2位小数
  13053. */
  13054. function amount(value) {
  13055. // 金额,只允许保留两位小数
  13056. return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
  13057. }
  13058. /**
  13059. * 中文
  13060. */
  13061. function chinese(value) {
  13062. var reg = /^[\u4e00-\u9fa5]+$/gi;
  13063. return reg.test(value);
  13064. }
  13065. /**
  13066. * 只能输入字母
  13067. */
  13068. function letter(value) {
  13069. return /^[a-zA-Z]*$/.test(value);
  13070. }
  13071. /**
  13072. * 只能是字母或者数字
  13073. */
  13074. function enOrNum(value) {
  13075. // 英文或者数字
  13076. var reg = /^[0-9a-zA-Z]*$/g;
  13077. return reg.test(value);
  13078. }
  13079. /**
  13080. * 验证是否包含某个值
  13081. */
  13082. function contains(value, param) {
  13083. return value.indexOf(param) >= 0;
  13084. }
  13085. /**
  13086. * 验证一个值范围[min, max]
  13087. */
  13088. function range(value, param) {
  13089. return value >= param[0] && value <= param[1];
  13090. }
  13091. /**
  13092. * 验证一个长度范围[min, max]
  13093. */
  13094. function rangeLength(value, param) {
  13095. return value.length >= param[0] && value.length <= param[1];
  13096. }
  13097. /**
  13098. * 是否固定电话
  13099. */
  13100. function landline(value) {
  13101. var reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
  13102. return reg.test(value);
  13103. }
  13104. /**
  13105. * 判断是否为空
  13106. */
  13107. function empty(value) {
  13108. switch ((0, _typeof2.default)(value)) {
  13109. case 'undefined':
  13110. return true;
  13111. case 'string':
  13112. if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true;
  13113. break;
  13114. case 'boolean':
  13115. if (!value) return true;
  13116. break;
  13117. case 'number':
  13118. if (value === 0 || isNaN(value)) return true;
  13119. break;
  13120. case 'object':
  13121. if (value === null || value.length === 0) return true;
  13122. for (var i in value) {
  13123. return false;
  13124. }
  13125. return true;
  13126. }
  13127. return false;
  13128. }
  13129. /**
  13130. * 是否json字符串
  13131. */
  13132. function jsonString(value) {
  13133. if (typeof value === 'string') {
  13134. try {
  13135. var obj = JSON.parse(value);
  13136. if ((0, _typeof2.default)(obj) === 'object' && obj) {
  13137. return true;
  13138. }
  13139. return false;
  13140. } catch (e) {
  13141. return false;
  13142. }
  13143. }
  13144. return false;
  13145. }
  13146. /**
  13147. * 是否数组
  13148. */
  13149. function array(value) {
  13150. if (typeof Array.isArray === 'function') {
  13151. return Array.isArray(value);
  13152. }
  13153. return Object.prototype.toString.call(value) === '[object Array]';
  13154. }
  13155. /**
  13156. * 是否对象
  13157. */
  13158. function object(value) {
  13159. return Object.prototype.toString.call(value) === '[object Object]';
  13160. }
  13161. /**
  13162. * 是否短信验证码
  13163. */
  13164. function code(value) {
  13165. var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  13166. return new RegExp("^\\d{".concat(len, "}$")).test(value);
  13167. }
  13168. /**
  13169. * 是否函数方法
  13170. * @param {Object} value
  13171. */
  13172. function func(value) {
  13173. return typeof value === 'function';
  13174. }
  13175. /**
  13176. * 是否promise对象
  13177. * @param {Object} value
  13178. */
  13179. function promise(value) {
  13180. return object(value) && func(value.then) && func(value.catch);
  13181. }
  13182. /** 是否图片格式
  13183. * @param {Object} value
  13184. */
  13185. function image(value) {
  13186. var newValue = value.split('?')[0];
  13187. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  13188. return IMAGE_REGEXP.test(newValue);
  13189. }
  13190. /**
  13191. * 是否视频格式
  13192. * @param {Object} value
  13193. */
  13194. function video(value) {
  13195. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;
  13196. return VIDEO_REGEXP.test(value);
  13197. }
  13198. /**
  13199. * 是否为正则对象
  13200. * @param {Object}
  13201. * @return {Boolean}
  13202. */
  13203. function regExp(o) {
  13204. return o && Object.prototype.toString.call(o) === '[object RegExp]';
  13205. }
  13206. var _default = {
  13207. email: email,
  13208. mobile: mobile,
  13209. url: url,
  13210. date: date,
  13211. dateISO: dateISO,
  13212. number: number,
  13213. digits: digits,
  13214. idCard: idCard,
  13215. carNo: carNo,
  13216. amount: amount,
  13217. chinese: chinese,
  13218. letter: letter,
  13219. enOrNum: enOrNum,
  13220. contains: contains,
  13221. range: range,
  13222. rangeLength: rangeLength,
  13223. empty: empty,
  13224. isEmpty: empty,
  13225. jsonString: jsonString,
  13226. landline: landline,
  13227. object: object,
  13228. array: array,
  13229. code: code,
  13230. func: func,
  13231. promise: promise,
  13232. video: video,
  13233. image: image,
  13234. regExp: regExp,
  13235. string: string
  13236. };
  13237. exports.default = _default;
  13238. /***/ }),
  13239. /* 64 */
  13240. /*!*****************************************************************************************************!*\
  13241. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/function/debounce.js ***!
  13242. \*****************************************************************************************************/
  13243. /*! no static exports found */
  13244. /***/ (function(module, exports, __webpack_require__) {
  13245. "use strict";
  13246. Object.defineProperty(exports, "__esModule", {
  13247. value: true
  13248. });
  13249. exports.default = void 0;
  13250. var timeout = null;
  13251. /**
  13252. * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
  13253. *
  13254. * @param {Function} func 要执行的回调函数
  13255. * @param {Number} wait 延时的时间
  13256. * @param {Boolean} immediate 是否立即执行
  13257. * @return null
  13258. */
  13259. function debounce(func) {
  13260. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  13261. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  13262. // 清除定时器
  13263. if (timeout !== null) clearTimeout(timeout);
  13264. // 立即执行,此类情况一般用不到
  13265. if (immediate) {
  13266. var callNow = !timeout;
  13267. timeout = setTimeout(function () {
  13268. timeout = null;
  13269. }, wait);
  13270. if (callNow) typeof func === 'function' && func();
  13271. } else {
  13272. // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
  13273. timeout = setTimeout(function () {
  13274. typeof func === 'function' && func();
  13275. }, wait);
  13276. }
  13277. }
  13278. var _default = debounce;
  13279. exports.default = _default;
  13280. /***/ }),
  13281. /* 65 */
  13282. /*!*****************************************************************************************************!*\
  13283. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/function/throttle.js ***!
  13284. \*****************************************************************************************************/
  13285. /*! no static exports found */
  13286. /***/ (function(module, exports, __webpack_require__) {
  13287. "use strict";
  13288. Object.defineProperty(exports, "__esModule", {
  13289. value: true
  13290. });
  13291. exports.default = void 0;
  13292. var timer;
  13293. var flag;
  13294. /**
  13295. * 节流原理:在一定时间内,只能触发一次
  13296. *
  13297. * @param {Function} func 要执行的回调函数
  13298. * @param {Number} wait 延时的时间
  13299. * @param {Boolean} immediate 是否立即执行
  13300. * @return null
  13301. */
  13302. function throttle(func) {
  13303. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  13304. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  13305. if (immediate) {
  13306. if (!flag) {
  13307. flag = true;
  13308. // 如果是立即执行,则在wait毫秒内开始时执行
  13309. typeof func === 'function' && func();
  13310. timer = setTimeout(function () {
  13311. flag = false;
  13312. }, wait);
  13313. }
  13314. } else if (!flag) {
  13315. flag = true;
  13316. // 如果是非立即执行,则在wait毫秒内的结束处执行
  13317. timer = setTimeout(function () {
  13318. flag = false;
  13319. typeof func === 'function' && func();
  13320. }, wait);
  13321. }
  13322. }
  13323. var _default = throttle;
  13324. exports.default = _default;
  13325. /***/ }),
  13326. /* 66 */
  13327. /*!**************************************************************************************************!*\
  13328. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/function/index.js ***!
  13329. \**************************************************************************************************/
  13330. /*! no static exports found */
  13331. /***/ (function(module, exports, __webpack_require__) {
  13332. "use strict";
  13333. /* WEBPACK VAR INJECTION */(function(uni) {
  13334. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13335. Object.defineProperty(exports, "__esModule", {
  13336. value: true
  13337. });
  13338. exports.default = void 0;
  13339. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  13340. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  13341. var _test = _interopRequireDefault(__webpack_require__(/*! ./test.js */ 63));
  13342. var _digit = __webpack_require__(/*! ./digit.js */ 67);
  13343. /**
  13344. * @description 如果value小于min,取min;如果value大于max,取max
  13345. * @param {number} min
  13346. * @param {number} max
  13347. * @param {number} value
  13348. */
  13349. function range() {
  13350. var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  13351. var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  13352. var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
  13353. return Math.max(min, Math.min(max, Number(value)));
  13354. }
  13355. /**
  13356. * @description 用于获取用户传递值的px值 如果用户传递了"xxpx"或者"xxrpx",取出其数值部分,如果是"xxxrpx"还需要用过uni.upx2px进行转换
  13357. * @param {number|string} value 用户传递值的px值
  13358. * @param {boolean} unit
  13359. * @returns {number|string}
  13360. */
  13361. function getPx(value) {
  13362. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13363. if (_test.default.number(value)) {
  13364. return unit ? "".concat(value, "px") : Number(value);
  13365. }
  13366. // 如果带有rpx,先取出其数值部分,再转为px值
  13367. if (/(rpx|upx)$/.test(value)) {
  13368. return unit ? "".concat(uni.upx2px(parseInt(value)), "px") : Number(uni.upx2px(parseInt(value)));
  13369. }
  13370. return unit ? "".concat(parseInt(value), "px") : parseInt(value);
  13371. }
  13372. /**
  13373. * @description 进行延时,以达到可以简写代码的目的 比如: await uni.$u.sleep(20)将会阻塞20ms
  13374. * @param {number} value 堵塞时间 单位ms 毫秒
  13375. * @returns {Promise} 返回promise
  13376. */
  13377. function sleep() {
  13378. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 30;
  13379. return new Promise(function (resolve) {
  13380. setTimeout(function () {
  13381. resolve();
  13382. }, value);
  13383. });
  13384. }
  13385. /**
  13386. * @description 运行期判断平台
  13387. * @returns {string} 返回所在平台(小写)
  13388. * @link 运行期判断平台 https://uniapp.dcloud.io/frame?id=判断平台
  13389. */
  13390. function os() {
  13391. return uni.getSystemInfoSync().platform.toLowerCase();
  13392. }
  13393. /**
  13394. * @description 获取系统信息同步接口
  13395. * @link 获取系统信息同步接口 https://uniapp.dcloud.io/api/system/info?id=getsysteminfosync
  13396. */
  13397. function sys() {
  13398. return uni.getSystemInfoSync();
  13399. }
  13400. /**
  13401. * @description 取一个区间数
  13402. * @param {Number} min 最小值
  13403. * @param {Number} max 最大值
  13404. */
  13405. function random(min, max) {
  13406. if (min >= 0 && max > 0 && max >= min) {
  13407. var gab = max - min + 1;
  13408. return Math.floor(Math.random() * gab + min);
  13409. }
  13410. return 0;
  13411. }
  13412. /**
  13413. * @param {Number} len uuid的长度
  13414. * @param {Boolean} firstU 将返回的首字母置为"u"
  13415. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  13416. */
  13417. function guid() {
  13418. var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
  13419. var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13420. var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  13421. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  13422. var uuid = [];
  13423. radix = radix || chars.length;
  13424. if (len) {
  13425. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  13426. for (var i = 0; i < len; i++) {
  13427. uuid[i] = chars[0 | Math.random() * radix];
  13428. }
  13429. } else {
  13430. var r;
  13431. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  13432. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  13433. uuid[14] = '4';
  13434. for (var _i = 0; _i < 36; _i++) {
  13435. if (!uuid[_i]) {
  13436. r = 0 | Math.random() * 16;
  13437. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  13438. }
  13439. }
  13440. }
  13441. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  13442. if (firstU) {
  13443. uuid.shift();
  13444. return "u".concat(uuid.join(''));
  13445. }
  13446. return uuid.join('');
  13447. }
  13448. /**
  13449. * @description 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  13450. this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  13451. 这里默认值等于undefined有它的含义,因为最顶层元素(组件)的$parent就是undefined,意味着不传name
  13452. 值(默认为undefined),就是查找最顶层的$parent
  13453. * @param {string|undefined} name 父组件的参数名
  13454. */
  13455. function $parent() {
  13456. var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  13457. var parent = this.$parent;
  13458. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  13459. while (parent) {
  13460. // 父组件
  13461. if (parent.$options && parent.$options.name !== name) {
  13462. // 如果组件的name不相等,继续上一级寻找
  13463. parent = parent.$parent;
  13464. } else {
  13465. return parent;
  13466. }
  13467. }
  13468. return false;
  13469. }
  13470. /**
  13471. * @description 样式转换
  13472. * 对象转字符串,或者字符串转对象
  13473. * @param {object | string} customStyle 需要转换的目标
  13474. * @param {String} target 转换的目的,object-转为对象,string-转为字符串
  13475. * @returns {object|string}
  13476. */
  13477. function addStyle(customStyle) {
  13478. var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'object';
  13479. // 字符串转字符串,对象转对象情形,直接返回
  13480. if (_test.default.empty(customStyle) || (0, _typeof2.default)(customStyle) === 'object' && target === 'object' || target === 'string' && typeof customStyle === 'string') {
  13481. return customStyle;
  13482. }
  13483. // 字符串转对象
  13484. if (target === 'object') {
  13485. // 去除字符串样式中的两端空格(中间的空格不能去掉,比如padding: 20px 0如果去掉了就错了),空格是无用的
  13486. customStyle = trim(customStyle);
  13487. // 根据";"将字符串转为数组形式
  13488. var styleArray = customStyle.split(';');
  13489. var style = {};
  13490. // 历遍数组,拼接成对象
  13491. for (var i = 0; i < styleArray.length; i++) {
  13492. // 'font-size:20px;color:red;',如此最后字符串有";"的话,会导致styleArray最后一个元素为空字符串,这里需要过滤
  13493. if (styleArray[i]) {
  13494. var item = styleArray[i].split(':');
  13495. style[trim(item[0])] = trim(item[1]);
  13496. }
  13497. }
  13498. return style;
  13499. }
  13500. // 这里为对象转字符串形式
  13501. var string = '';
  13502. for (var _i2 in customStyle) {
  13503. // 驼峰转为中划线的形式,否则css内联样式,无法识别驼峰样式属性名
  13504. var key = _i2.replace(/([A-Z])/g, '-$1').toLowerCase();
  13505. string += "".concat(key, ":").concat(customStyle[_i2], ";");
  13506. }
  13507. // 去除两端空格
  13508. return trim(string);
  13509. }
  13510. /**
  13511. * @description 添加单位,如果有rpx,upx,%,px等单位结尾或者值为auto,直接返回,否则加上px单位结尾
  13512. * @param {string|number} value 需要添加单位的值
  13513. * @param {string} unit 添加的单位名 比如px
  13514. */
  13515. function addUnit() {
  13516. var _uni$$u$config$unit, _uni, _uni$$u, _uni$$u$config;
  13517. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'auto';
  13518. 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';
  13519. value = String(value);
  13520. // 用uView内置验证规则中的number判断是否为数值
  13521. return _test.default.number(value) ? "".concat(value).concat(unit) : value;
  13522. }
  13523. /**
  13524. * @description 深度克隆
  13525. * @param {object} obj 需要深度克隆的对象
  13526. * @returns {*} 克隆后的对象或者原值(不是对象)
  13527. */
  13528. function deepClone(obj) {
  13529. // 对常见的“非”值,直接返回原来值
  13530. if ([null, undefined, NaN, false].includes(obj)) return obj;
  13531. if ((0, _typeof2.default)(obj) !== 'object' && typeof obj !== 'function') {
  13532. // 原始类型直接返回
  13533. return obj;
  13534. }
  13535. var o = _test.default.array(obj) ? [] : {};
  13536. for (var i in obj) {
  13537. if (obj.hasOwnProperty(i)) {
  13538. o[i] = (0, _typeof2.default)(obj[i]) === 'object' ? deepClone(obj[i]) : obj[i];
  13539. }
  13540. }
  13541. return o;
  13542. }
  13543. /**
  13544. * @description JS对象深度合并
  13545. * @param {object} target 需要拷贝的对象
  13546. * @param {object} source 拷贝的来源对象
  13547. * @returns {object|boolean} 深度合并后的对象或者false(入参有不是对象)
  13548. */
  13549. function deepMerge() {
  13550. var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13551. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  13552. target = deepClone(target);
  13553. if ((0, _typeof2.default)(target) !== 'object' || (0, _typeof2.default)(source) !== 'object') return false;
  13554. for (var prop in source) {
  13555. if (!source.hasOwnProperty(prop)) continue;
  13556. if (prop in target) {
  13557. if ((0, _typeof2.default)(target[prop]) !== 'object') {
  13558. target[prop] = source[prop];
  13559. } else if ((0, _typeof2.default)(source[prop]) !== 'object') {
  13560. target[prop] = source[prop];
  13561. } else if (target[prop].concat && source[prop].concat) {
  13562. target[prop] = target[prop].concat(source[prop]);
  13563. } else {
  13564. target[prop] = deepMerge(target[prop], source[prop]);
  13565. }
  13566. } else {
  13567. target[prop] = source[prop];
  13568. }
  13569. }
  13570. return target;
  13571. }
  13572. /**
  13573. * @description error提示
  13574. * @param {*} err 错误内容
  13575. */
  13576. function error(err) {
  13577. // 开发环境才提示,生产环境不会提示
  13578. if (true) {
  13579. console.error("uView\u63D0\u793A\uFF1A".concat(err));
  13580. }
  13581. }
  13582. /**
  13583. * @description 打乱数组
  13584. * @param {array} array 需要打乱的数组
  13585. * @returns {array} 打乱后的数组
  13586. */
  13587. function randomArray() {
  13588. var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  13589. // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
  13590. return array.sort(function () {
  13591. return Math.random() - 0.5;
  13592. });
  13593. }
  13594. // padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
  13595. // 所以这里做一个兼容polyfill的兼容处理
  13596. if (!String.prototype.padStart) {
  13597. // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
  13598. String.prototype.padStart = function (maxLength) {
  13599. var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
  13600. if (Object.prototype.toString.call(fillString) !== '[object String]') {
  13601. throw new TypeError('fillString must be String');
  13602. }
  13603. var str = this;
  13604. // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
  13605. if (str.length >= maxLength) return String(str);
  13606. var fillLength = maxLength - str.length;
  13607. var times = Math.ceil(fillLength / fillString.length);
  13608. while (times >>= 1) {
  13609. fillString += fillString;
  13610. if (times === 1) {
  13611. fillString += fillString;
  13612. }
  13613. }
  13614. return fillString.slice(0, fillLength) + str;
  13615. };
  13616. }
  13617. /**
  13618. * @description 格式化时间
  13619. * @param {String|Number} dateTime 需要格式化的时间戳
  13620. * @param {String} fmt 格式化规则 yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合 默认yyyy-mm-dd
  13621. * @returns {string} 返回格式化后的字符串
  13622. */
  13623. function timeFormat() {
  13624. var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  13625. var formatStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  13626. var date;
  13627. // 若传入时间为假值,则取当前时间
  13628. if (!dateTime) {
  13629. date = new Date();
  13630. }
  13631. // 若为unix秒时间戳,则转为毫秒时间戳(逻辑有点奇怪,但不敢改,以保证历史兼容)
  13632. else if (/^\d{10}$/.test(dateTime === null || dateTime === void 0 ? void 0 : dateTime.toString().trim())) {
  13633. date = new Date(dateTime * 1000);
  13634. }
  13635. // 若用户传入字符串格式时间戳,new Date无法解析,需做兼容
  13636. else if (typeof dateTime === 'string' && /^\d+$/.test(dateTime.trim())) {
  13637. date = new Date(Number(dateTime));
  13638. }
  13639. // 其他都认为符合 RFC 2822 规范
  13640. else {
  13641. // 处理平台性差异,在Safari/Webkit中,new Date仅支持/作为分割符的字符串时间
  13642. date = new Date(typeof dateTime === 'string' ? dateTime.replace(/-/g, '/') : dateTime);
  13643. }
  13644. var timeSource = {
  13645. 'y': date.getFullYear().toString(),
  13646. // 年
  13647. 'm': (date.getMonth() + 1).toString().padStart(2, '0'),
  13648. // 月
  13649. 'd': date.getDate().toString().padStart(2, '0'),
  13650. // 日
  13651. 'h': date.getHours().toString().padStart(2, '0'),
  13652. // 时
  13653. 'M': date.getMinutes().toString().padStart(2, '0'),
  13654. // 分
  13655. 's': date.getSeconds().toString().padStart(2, '0') // 秒
  13656. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  13657. };
  13658. for (var key in timeSource) {
  13659. var _ref = new RegExp("".concat(key, "+")).exec(formatStr) || [],
  13660. _ref2 = (0, _slicedToArray2.default)(_ref, 1),
  13661. ret = _ref2[0];
  13662. if (ret) {
  13663. // 年可能只需展示两位
  13664. var beginIndex = key === 'y' && ret.length === 2 ? 2 : 0;
  13665. formatStr = formatStr.replace(ret, timeSource[key].slice(beginIndex));
  13666. }
  13667. }
  13668. return formatStr;
  13669. }
  13670. /**
  13671. * @description 时间戳转为多久之前
  13672. * @param {String|Number} timestamp 时间戳
  13673. * @param {String|Boolean} format
  13674. * 格式化规则如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
  13675. * 如果为布尔值false,无论什么时间,都返回多久以前的格式
  13676. * @returns {string} 转化后的内容
  13677. */
  13678. function timeFrom() {
  13679. var timestamp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  13680. var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  13681. if (timestamp == null) timestamp = Number(new Date());
  13682. timestamp = parseInt(timestamp);
  13683. // 判断用户输入的时间戳是秒还是毫秒,一般前端js获取的时间戳是毫秒(13位),后端传过来的为秒(10位)
  13684. if (timestamp.toString().length == 10) timestamp *= 1000;
  13685. var timer = new Date().getTime() - timestamp;
  13686. timer = parseInt(timer / 1000);
  13687. // 如果小于5分钟,则返回"刚刚",其他以此类推
  13688. var tips = '';
  13689. switch (true) {
  13690. case timer < 300:
  13691. tips = '刚刚';
  13692. break;
  13693. case timer >= 300 && timer < 3600:
  13694. tips = "".concat(parseInt(timer / 60), "\u5206\u949F\u524D");
  13695. break;
  13696. case timer >= 3600 && timer < 86400:
  13697. tips = "".concat(parseInt(timer / 3600), "\u5C0F\u65F6\u524D");
  13698. break;
  13699. case timer >= 86400 && timer < 2592000:
  13700. tips = "".concat(parseInt(timer / 86400), "\u5929\u524D");
  13701. break;
  13702. default:
  13703. // 如果format为false,则无论什么时间戳,都显示xx之前
  13704. if (format === false) {
  13705. if (timer >= 2592000 && timer < 365 * 86400) {
  13706. tips = "".concat(parseInt(timer / (86400 * 30)), "\u4E2A\u6708\u524D");
  13707. } else {
  13708. tips = "".concat(parseInt(timer / (86400 * 365)), "\u5E74\u524D");
  13709. }
  13710. } else {
  13711. tips = timeFormat(timestamp, format);
  13712. }
  13713. }
  13714. return tips;
  13715. }
  13716. /**
  13717. * @description 去除空格
  13718. * @param String str 需要去除空格的字符串
  13719. * @param String pos both(左右)|left|right|all 默认both
  13720. */
  13721. function trim(str) {
  13722. var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
  13723. str = String(str);
  13724. if (pos == 'both') {
  13725. return str.replace(/^\s+|\s+$/g, '');
  13726. }
  13727. if (pos == 'left') {
  13728. return str.replace(/^\s*/, '');
  13729. }
  13730. if (pos == 'right') {
  13731. return str.replace(/(\s*$)/g, '');
  13732. }
  13733. if (pos == 'all') {
  13734. return str.replace(/\s+/g, '');
  13735. }
  13736. return str;
  13737. }
  13738. /**
  13739. * @description 对象转url参数
  13740. * @param {object} data,对象
  13741. * @param {Boolean} isPrefix,是否自动加上"?"
  13742. * @param {string} arrayFormat 规则 indices|brackets|repeat|comma
  13743. */
  13744. function queryParams() {
  13745. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13746. var isPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13747. var arrayFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'brackets';
  13748. var prefix = isPrefix ? '?' : '';
  13749. var _result = [];
  13750. if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';
  13751. var _loop = function _loop(key) {
  13752. var value = data[key];
  13753. // 去掉为空的参数
  13754. if (['', undefined, null].indexOf(value) >= 0) {
  13755. return "continue";
  13756. }
  13757. // 如果值为数组,另行处理
  13758. if (value.constructor === Array) {
  13759. // e.g. {ids: [1, 2, 3]}
  13760. switch (arrayFormat) {
  13761. case 'indices':
  13762. // 结果: ids[0]=1&ids[1]=2&ids[2]=3
  13763. for (var i = 0; i < value.length; i++) {
  13764. _result.push("".concat(key, "[").concat(i, "]=").concat(value[i]));
  13765. }
  13766. break;
  13767. case 'brackets':
  13768. // 结果: ids[]=1&ids[]=2&ids[]=3
  13769. value.forEach(function (_value) {
  13770. _result.push("".concat(key, "[]=").concat(_value));
  13771. });
  13772. break;
  13773. case 'repeat':
  13774. // 结果: ids=1&ids=2&ids=3
  13775. value.forEach(function (_value) {
  13776. _result.push("".concat(key, "=").concat(_value));
  13777. });
  13778. break;
  13779. case 'comma':
  13780. // 结果: ids=1,2,3
  13781. var commaStr = '';
  13782. value.forEach(function (_value) {
  13783. commaStr += (commaStr ? ',' : '') + _value;
  13784. });
  13785. _result.push("".concat(key, "=").concat(commaStr));
  13786. break;
  13787. default:
  13788. value.forEach(function (_value) {
  13789. _result.push("".concat(key, "[]=").concat(_value));
  13790. });
  13791. }
  13792. } else {
  13793. _result.push("".concat(key, "=").concat(value));
  13794. }
  13795. };
  13796. for (var key in data) {
  13797. var _ret = _loop(key);
  13798. if (_ret === "continue") continue;
  13799. }
  13800. return _result.length ? prefix + _result.join('&') : '';
  13801. }
  13802. /**
  13803. * 显示消息提示框
  13804. * @param {String} title 提示的内容,长度与 icon 取值有关。
  13805. * @param {Number} duration 提示的延迟时间,单位毫秒,默认:2000
  13806. */
  13807. function toast(title) {
  13808. var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
  13809. uni.showToast({
  13810. title: String(title),
  13811. icon: 'none',
  13812. duration: duration
  13813. });
  13814. }
  13815. /**
  13816. * @description 根据主题type值,获取对应的图标
  13817. * @param {String} type 主题名称,primary|info|error|warning|success
  13818. * @param {boolean} fill 是否使用fill填充实体的图标
  13819. */
  13820. function type2icon() {
  13821. var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';
  13822. var fill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13823. // 如果非预置值,默认为success
  13824. if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success';
  13825. var iconName = '';
  13826. // 目前(2019-12-12),info和primary使用同一个图标
  13827. switch (type) {
  13828. case 'primary':
  13829. iconName = 'info-circle';
  13830. break;
  13831. case 'info':
  13832. iconName = 'info-circle';
  13833. break;
  13834. case 'error':
  13835. iconName = 'close-circle';
  13836. break;
  13837. case 'warning':
  13838. iconName = 'error-circle';
  13839. break;
  13840. case 'success':
  13841. iconName = 'checkmark-circle';
  13842. break;
  13843. default:
  13844. iconName = 'checkmark-circle';
  13845. }
  13846. // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的
  13847. if (fill) iconName += '-fill';
  13848. return iconName;
  13849. }
  13850. /**
  13851. * @description 数字格式化
  13852. * @param {number|string} number 要格式化的数字
  13853. * @param {number} decimals 保留几位小数
  13854. * @param {string} decimalPoint 小数点符号
  13855. * @param {string} thousandsSeparator 千分位符号
  13856. * @returns {string} 格式化后的数字
  13857. */
  13858. function priceFormat(number) {
  13859. var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  13860. var decimalPoint = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.';
  13861. var thousandsSeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ',';
  13862. number = "".concat(number).replace(/[^0-9+-Ee.]/g, '');
  13863. var n = !isFinite(+number) ? 0 : +number;
  13864. var prec = !isFinite(+decimals) ? 0 : Math.abs(decimals);
  13865. var sep = typeof thousandsSeparator === 'undefined' ? ',' : thousandsSeparator;
  13866. var dec = typeof decimalPoint === 'undefined' ? '.' : decimalPoint;
  13867. var s = '';
  13868. s = (prec ? (0, _digit.round)(n, prec) + '' : "".concat(Math.round(n))).split('.');
  13869. var re = /(-?\d+)(\d{3})/;
  13870. while (re.test(s[0])) {
  13871. s[0] = s[0].replace(re, "$1".concat(sep, "$2"));
  13872. }
  13873. if ((s[1] || '').length < prec) {
  13874. s[1] = s[1] || '';
  13875. s[1] += new Array(prec - s[1].length + 1).join('0');
  13876. }
  13877. return s.join(dec);
  13878. }
  13879. /**
  13880. * @description 获取duration值
  13881. * 如果带有ms或者s直接返回,如果大于一定值,认为是ms单位,小于一定值,认为是s单位
  13882. * 比如以30位阈值,那么300大于30,可以理解为用户想要的是300ms,而不是想花300s去执行一个动画
  13883. * @param {String|number} value 比如: "1s"|"100ms"|1|100
  13884. * @param {boolean} unit 提示: 如果是false 默认返回number
  13885. * @return {string|number}
  13886. */
  13887. function getDuration(value) {
  13888. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13889. var valueNum = parseInt(value);
  13890. if (unit) {
  13891. if (/s$/.test(value)) return value;
  13892. return value > 30 ? "".concat(value, "ms") : "".concat(value, "s");
  13893. }
  13894. if (/ms$/.test(value)) return valueNum;
  13895. if (/s$/.test(value)) return valueNum > 30 ? valueNum : valueNum * 1000;
  13896. return valueNum;
  13897. }
  13898. /**
  13899. * @description 日期的月或日补零操作
  13900. * @param {String} value 需要补零的值
  13901. */
  13902. function padZero(value) {
  13903. return "00".concat(value).slice(-2);
  13904. }
  13905. /**
  13906. * @description 在u-form的子组件内容发生变化,或者失去焦点时,尝试通知u-form执行校验方法
  13907. * @param {*} instance
  13908. * @param {*} event
  13909. */
  13910. function formValidate(instance, event) {
  13911. var formItem = uni.$u.$parent.call(instance, 'u-form-item');
  13912. var form = uni.$u.$parent.call(instance, 'u-form');
  13913. // 如果发生变化的input或者textarea等,其父组件中有u-form-item或者u-form等,就执行form的validate方法
  13914. // 同时将form-item的pros传递给form,让其进行精确对象验证
  13915. if (formItem && form) {
  13916. form.validateField(formItem.prop, function () {}, event);
  13917. }
  13918. }
  13919. /**
  13920. * @description 获取某个对象下的属性,用于通过类似'a.b.c'的形式去获取一个对象的的属性的形式
  13921. * @param {object} obj 对象
  13922. * @param {string} key 需要获取的属性字段
  13923. * @returns {*}
  13924. */
  13925. function getProperty(obj, key) {
  13926. if (!obj) {
  13927. return;
  13928. }
  13929. if (typeof key !== 'string' || key === '') {
  13930. return '';
  13931. }
  13932. if (key.indexOf('.') !== -1) {
  13933. var keys = key.split('.');
  13934. var firstObj = obj[keys[0]] || {};
  13935. for (var i = 1; i < keys.length; i++) {
  13936. if (firstObj) {
  13937. firstObj = firstObj[keys[i]];
  13938. }
  13939. }
  13940. return firstObj;
  13941. }
  13942. return obj[key];
  13943. }
  13944. /**
  13945. * @description 设置对象的属性值,如果'a.b.c'的形式进行设置
  13946. * @param {object} obj 对象
  13947. * @param {string} key 需要设置的属性
  13948. * @param {string} value 设置的值
  13949. */
  13950. function setProperty(obj, key, value) {
  13951. if (!obj) {
  13952. return;
  13953. }
  13954. // 递归赋值
  13955. var inFn = function inFn(_obj, keys, v) {
  13956. // 最后一个属性key
  13957. if (keys.length === 1) {
  13958. _obj[keys[0]] = v;
  13959. return;
  13960. }
  13961. // 0~length-1个key
  13962. while (keys.length > 1) {
  13963. var k = keys[0];
  13964. if (!_obj[k] || (0, _typeof2.default)(_obj[k]) !== 'object') {
  13965. _obj[k] = {};
  13966. }
  13967. var _key = keys.shift();
  13968. // 自调用判断是否存在属性,不存在则自动创建对象
  13969. inFn(_obj[k], keys, v);
  13970. }
  13971. };
  13972. if (typeof key !== 'string' || key === '') {} else if (key.indexOf('.') !== -1) {
  13973. // 支持多层级赋值操作
  13974. var keys = key.split('.');
  13975. inFn(obj, keys, value);
  13976. } else {
  13977. obj[key] = value;
  13978. }
  13979. }
  13980. /**
  13981. * @description 获取当前页面路径
  13982. */
  13983. function page() {
  13984. var _pages$route, _pages;
  13985. var pages = getCurrentPages();
  13986. // 某些特殊情况下(比如页面进行redirectTo时的一些时机),pages可能为空数组
  13987. return "/".concat((_pages$route = (_pages = pages[pages.length - 1]) === null || _pages === void 0 ? void 0 : _pages.route) !== null && _pages$route !== void 0 ? _pages$route : '');
  13988. }
  13989. /**
  13990. * @description 获取当前路由栈实例数组
  13991. */
  13992. function pages() {
  13993. var pages = getCurrentPages();
  13994. return pages;
  13995. }
  13996. /**
  13997. * @description 修改uView内置属性值
  13998. * @param {object} props 修改内置props属性
  13999. * @param {object} config 修改内置config属性
  14000. * @param {object} color 修改内置color属性
  14001. * @param {object} zIndex 修改内置zIndex属性
  14002. */
  14003. function setConfig(_ref3) {
  14004. var _ref3$props = _ref3.props,
  14005. props = _ref3$props === void 0 ? {} : _ref3$props,
  14006. _ref3$config = _ref3.config,
  14007. config = _ref3$config === void 0 ? {} : _ref3$config,
  14008. _ref3$color = _ref3.color,
  14009. color = _ref3$color === void 0 ? {} : _ref3$color,
  14010. _ref3$zIndex = _ref3.zIndex,
  14011. zIndex = _ref3$zIndex === void 0 ? {} : _ref3$zIndex;
  14012. var deepMerge = uni.$u.deepMerge;
  14013. uni.$u.config = deepMerge(uni.$u.config, config);
  14014. uni.$u.props = deepMerge(uni.$u.props, props);
  14015. uni.$u.color = deepMerge(uni.$u.color, color);
  14016. uni.$u.zIndex = deepMerge(uni.$u.zIndex, zIndex);
  14017. }
  14018. var _default = {
  14019. range: range,
  14020. getPx: getPx,
  14021. sleep: sleep,
  14022. os: os,
  14023. sys: sys,
  14024. random: random,
  14025. guid: guid,
  14026. $parent: $parent,
  14027. addStyle: addStyle,
  14028. addUnit: addUnit,
  14029. deepClone: deepClone,
  14030. deepMerge: deepMerge,
  14031. error: error,
  14032. randomArray: randomArray,
  14033. timeFormat: timeFormat,
  14034. timeFrom: timeFrom,
  14035. trim: trim,
  14036. queryParams: queryParams,
  14037. toast: toast,
  14038. type2icon: type2icon,
  14039. priceFormat: priceFormat,
  14040. getDuration: getDuration,
  14041. padZero: padZero,
  14042. formValidate: formValidate,
  14043. getProperty: getProperty,
  14044. setProperty: setProperty,
  14045. page: page,
  14046. pages: pages,
  14047. setConfig: setConfig
  14048. };
  14049. exports.default = _default;
  14050. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  14051. /***/ }),
  14052. /* 67 */
  14053. /*!**************************************************************************************************!*\
  14054. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/function/digit.js ***!
  14055. \**************************************************************************************************/
  14056. /*! no static exports found */
  14057. /***/ (function(module, exports, __webpack_require__) {
  14058. "use strict";
  14059. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  14060. Object.defineProperty(exports, "__esModule", {
  14061. value: true
  14062. });
  14063. exports.default = void 0;
  14064. exports.divide = divide;
  14065. exports.enableBoundaryChecking = enableBoundaryChecking;
  14066. exports.minus = minus;
  14067. exports.plus = plus;
  14068. exports.round = round;
  14069. exports.times = times;
  14070. var _toArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toArray */ 68));
  14071. var _boundaryCheckingState = true; // 是否进行越界检查的全局开关
  14072. /**
  14073. * 把错误的数据转正
  14074. * @private
  14075. * @example strip(0.09999999999999998)=0.1
  14076. */
  14077. function strip(num) {
  14078. var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 15;
  14079. return +parseFloat(Number(num).toPrecision(precision));
  14080. }
  14081. /**
  14082. * Return digits length of a number
  14083. * @private
  14084. * @param {*number} num Input number
  14085. */
  14086. function digitLength(num) {
  14087. // Get digit length of e
  14088. var eSplit = num.toString().split(/[eE]/);
  14089. var len = (eSplit[0].split('.')[1] || '').length - +(eSplit[1] || 0);
  14090. return len > 0 ? len : 0;
  14091. }
  14092. /**
  14093. * 把小数转成整数,如果是小数则放大成整数
  14094. * @private
  14095. * @param {*number} num 输入数
  14096. */
  14097. function float2Fixed(num) {
  14098. if (num.toString().indexOf('e') === -1) {
  14099. return Number(num.toString().replace('.', ''));
  14100. }
  14101. var dLen = digitLength(num);
  14102. return dLen > 0 ? strip(Number(num) * Math.pow(10, dLen)) : Number(num);
  14103. }
  14104. /**
  14105. * 检测数字是否越界,如果越界给出提示
  14106. * @private
  14107. * @param {*number} num 输入数
  14108. */
  14109. function checkBoundary(num) {
  14110. if (_boundaryCheckingState) {
  14111. if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) {
  14112. console.warn("".concat(num, " \u8D85\u51FA\u4E86\u7CBE\u5EA6\u9650\u5236\uFF0C\u7ED3\u679C\u53EF\u80FD\u4E0D\u6B63\u786E"));
  14113. }
  14114. }
  14115. }
  14116. /**
  14117. * 把递归操作扁平迭代化
  14118. * @param {number[]} arr 要操作的数字数组
  14119. * @param {function} operation 迭代操作
  14120. * @private
  14121. */
  14122. function iteratorOperation(arr, operation) {
  14123. var _arr = (0, _toArray2.default)(arr),
  14124. num1 = _arr[0],
  14125. num2 = _arr[1],
  14126. others = _arr.slice(2);
  14127. var res = operation(num1, num2);
  14128. others.forEach(function (num) {
  14129. res = operation(res, num);
  14130. });
  14131. return res;
  14132. }
  14133. /**
  14134. * 高精度乘法
  14135. * @export
  14136. */
  14137. function times() {
  14138. for (var _len = arguments.length, nums = new Array(_len), _key = 0; _key < _len; _key++) {
  14139. nums[_key] = arguments[_key];
  14140. }
  14141. if (nums.length > 2) {
  14142. return iteratorOperation(nums, times);
  14143. }
  14144. var num1 = nums[0],
  14145. num2 = nums[1];
  14146. var num1Changed = float2Fixed(num1);
  14147. var num2Changed = float2Fixed(num2);
  14148. var baseNum = digitLength(num1) + digitLength(num2);
  14149. var leftValue = num1Changed * num2Changed;
  14150. checkBoundary(leftValue);
  14151. return leftValue / Math.pow(10, baseNum);
  14152. }
  14153. /**
  14154. * 高精度加法
  14155. * @export
  14156. */
  14157. function plus() {
  14158. for (var _len2 = arguments.length, nums = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  14159. nums[_key2] = arguments[_key2];
  14160. }
  14161. if (nums.length > 2) {
  14162. return iteratorOperation(nums, plus);
  14163. }
  14164. var num1 = nums[0],
  14165. num2 = nums[1];
  14166. // 取最大的小数位
  14167. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  14168. // 把小数都转为整数然后再计算
  14169. return (times(num1, baseNum) + times(num2, baseNum)) / baseNum;
  14170. }
  14171. /**
  14172. * 高精度减法
  14173. * @export
  14174. */
  14175. function minus() {
  14176. for (var _len3 = arguments.length, nums = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  14177. nums[_key3] = arguments[_key3];
  14178. }
  14179. if (nums.length > 2) {
  14180. return iteratorOperation(nums, minus);
  14181. }
  14182. var num1 = nums[0],
  14183. num2 = nums[1];
  14184. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  14185. return (times(num1, baseNum) - times(num2, baseNum)) / baseNum;
  14186. }
  14187. /**
  14188. * 高精度除法
  14189. * @export
  14190. */
  14191. function divide() {
  14192. for (var _len4 = arguments.length, nums = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  14193. nums[_key4] = arguments[_key4];
  14194. }
  14195. if (nums.length > 2) {
  14196. return iteratorOperation(nums, divide);
  14197. }
  14198. var num1 = nums[0],
  14199. num2 = nums[1];
  14200. var num1Changed = float2Fixed(num1);
  14201. var num2Changed = float2Fixed(num2);
  14202. checkBoundary(num1Changed);
  14203. checkBoundary(num2Changed);
  14204. // 重要,这里必须用strip进行修正
  14205. return times(num1Changed / num2Changed, strip(Math.pow(10, digitLength(num2) - digitLength(num1))));
  14206. }
  14207. /**
  14208. * 四舍五入
  14209. * @export
  14210. */
  14211. function round(num, ratio) {
  14212. var base = Math.pow(10, ratio);
  14213. var result = divide(Math.round(Math.abs(times(num, base))), base);
  14214. if (num < 0 && result !== 0) {
  14215. result = times(result, -1);
  14216. }
  14217. // 位数不足则补0
  14218. return result;
  14219. }
  14220. /**
  14221. * 是否进行边界检查,默认开启
  14222. * @param flag 标记开关,true 为开启,false 为关闭,默认为 true
  14223. * @export
  14224. */
  14225. function enableBoundaryChecking() {
  14226. var flag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  14227. _boundaryCheckingState = flag;
  14228. }
  14229. var _default = {
  14230. times: times,
  14231. plus: plus,
  14232. minus: minus,
  14233. divide: divide,
  14234. round: round,
  14235. enableBoundaryChecking: enableBoundaryChecking
  14236. };
  14237. exports.default = _default;
  14238. /***/ }),
  14239. /* 68 */
  14240. /*!********************************************************!*\
  14241. !*** ./node_modules/@babel/runtime/helpers/toArray.js ***!
  14242. \********************************************************/
  14243. /*! no static exports found */
  14244. /***/ (function(module, exports, __webpack_require__) {
  14245. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  14246. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  14247. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  14248. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  14249. function _toArray(arr) {
  14250. return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
  14251. }
  14252. module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  14253. /***/ }),
  14254. /* 69 */
  14255. /*!*************************************************************************************************!*\
  14256. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/config.js ***!
  14257. \*************************************************************************************************/
  14258. /*! no static exports found */
  14259. /***/ (function(module, exports, __webpack_require__) {
  14260. "use strict";
  14261. Object.defineProperty(exports, "__esModule", {
  14262. value: true
  14263. });
  14264. exports.default = void 0;
  14265. // 此版本发布于2022-04-19
  14266. var version = '2.0.31';
  14267. // 开发环境才提示,生产环境不会提示
  14268. if (true) {
  14269. console.log("\n %c uView V".concat(version, " %c https://www.uviewui.com/ \n\n"), 'color: #ffffff; background: #3c9cff; padding:5px 0;', 'color: #3c9cff;background: #ffffff; padding:5px 0;');
  14270. }
  14271. var _default = {
  14272. v: version,
  14273. version: version,
  14274. // 主题名称
  14275. type: ['primary', 'success', 'info', 'error', 'warning'],
  14276. // 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持
  14277. color: {
  14278. 'u-primary': '#2979ff',
  14279. 'u-warning': '#ff9900',
  14280. 'u-success': '#19be6b',
  14281. 'u-error': '#fa3534',
  14282. 'u-info': '#909399',
  14283. 'u-main-color': '#303133',
  14284. 'u-content-color': '#606266',
  14285. 'u-tips-color': '#909399',
  14286. 'u-light-color': '#c0c4cc'
  14287. },
  14288. // 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx
  14289. unit: 'px'
  14290. };
  14291. exports.default = _default;
  14292. /***/ }),
  14293. /* 70 */
  14294. /*!************************************************************************************************!*\
  14295. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props.js ***!
  14296. \************************************************************************************************/
  14297. /*! no static exports found */
  14298. /***/ (function(module, exports, __webpack_require__) {
  14299. "use strict";
  14300. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  14301. Object.defineProperty(exports, "__esModule", {
  14302. value: true
  14303. });
  14304. exports.default = void 0;
  14305. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  14306. var _config = _interopRequireDefault(__webpack_require__(/*! ./config */ 69));
  14307. var _actionSheet = _interopRequireDefault(__webpack_require__(/*! ./props/actionSheet.js */ 71));
  14308. var _album = _interopRequireDefault(__webpack_require__(/*! ./props/album.js */ 72));
  14309. var _alert = _interopRequireDefault(__webpack_require__(/*! ./props/alert.js */ 73));
  14310. var _avatar = _interopRequireDefault(__webpack_require__(/*! ./props/avatar */ 74));
  14311. var _avatarGroup = _interopRequireDefault(__webpack_require__(/*! ./props/avatarGroup */ 75));
  14312. var _backtop = _interopRequireDefault(__webpack_require__(/*! ./props/backtop */ 76));
  14313. var _badge = _interopRequireDefault(__webpack_require__(/*! ./props/badge */ 77));
  14314. var _button = _interopRequireDefault(__webpack_require__(/*! ./props/button */ 78));
  14315. var _calendar = _interopRequireDefault(__webpack_require__(/*! ./props/calendar */ 79));
  14316. var _carKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/carKeyboard */ 80));
  14317. var _cell = _interopRequireDefault(__webpack_require__(/*! ./props/cell */ 81));
  14318. var _cellGroup = _interopRequireDefault(__webpack_require__(/*! ./props/cellGroup */ 82));
  14319. var _checkbox = _interopRequireDefault(__webpack_require__(/*! ./props/checkbox */ 83));
  14320. var _checkboxGroup = _interopRequireDefault(__webpack_require__(/*! ./props/checkboxGroup */ 84));
  14321. var _circleProgress = _interopRequireDefault(__webpack_require__(/*! ./props/circleProgress */ 85));
  14322. var _code = _interopRequireDefault(__webpack_require__(/*! ./props/code */ 86));
  14323. var _codeInput = _interopRequireDefault(__webpack_require__(/*! ./props/codeInput */ 87));
  14324. var _col = _interopRequireDefault(__webpack_require__(/*! ./props/col */ 88));
  14325. var _collapse = _interopRequireDefault(__webpack_require__(/*! ./props/collapse */ 89));
  14326. var _collapseItem = _interopRequireDefault(__webpack_require__(/*! ./props/collapseItem */ 90));
  14327. var _columnNotice = _interopRequireDefault(__webpack_require__(/*! ./props/columnNotice */ 91));
  14328. var _countDown = _interopRequireDefault(__webpack_require__(/*! ./props/countDown */ 92));
  14329. var _countTo = _interopRequireDefault(__webpack_require__(/*! ./props/countTo */ 93));
  14330. var _datetimePicker = _interopRequireDefault(__webpack_require__(/*! ./props/datetimePicker */ 94));
  14331. var _divider = _interopRequireDefault(__webpack_require__(/*! ./props/divider */ 95));
  14332. var _empty = _interopRequireDefault(__webpack_require__(/*! ./props/empty */ 96));
  14333. var _form = _interopRequireDefault(__webpack_require__(/*! ./props/form */ 97));
  14334. var _formItem = _interopRequireDefault(__webpack_require__(/*! ./props/formItem */ 98));
  14335. var _gap = _interopRequireDefault(__webpack_require__(/*! ./props/gap */ 99));
  14336. var _grid = _interopRequireDefault(__webpack_require__(/*! ./props/grid */ 100));
  14337. var _gridItem = _interopRequireDefault(__webpack_require__(/*! ./props/gridItem */ 101));
  14338. var _icon = _interopRequireDefault(__webpack_require__(/*! ./props/icon */ 102));
  14339. var _image = _interopRequireDefault(__webpack_require__(/*! ./props/image */ 103));
  14340. var _indexAnchor = _interopRequireDefault(__webpack_require__(/*! ./props/indexAnchor */ 104));
  14341. var _indexList = _interopRequireDefault(__webpack_require__(/*! ./props/indexList */ 105));
  14342. var _input = _interopRequireDefault(__webpack_require__(/*! ./props/input */ 106));
  14343. var _keyboard = _interopRequireDefault(__webpack_require__(/*! ./props/keyboard */ 107));
  14344. var _line = _interopRequireDefault(__webpack_require__(/*! ./props/line */ 108));
  14345. var _lineProgress = _interopRequireDefault(__webpack_require__(/*! ./props/lineProgress */ 109));
  14346. var _link = _interopRequireDefault(__webpack_require__(/*! ./props/link */ 110));
  14347. var _list = _interopRequireDefault(__webpack_require__(/*! ./props/list */ 111));
  14348. var _listItem = _interopRequireDefault(__webpack_require__(/*! ./props/listItem */ 112));
  14349. var _loadingIcon = _interopRequireDefault(__webpack_require__(/*! ./props/loadingIcon */ 113));
  14350. var _loadingPage = _interopRequireDefault(__webpack_require__(/*! ./props/loadingPage */ 114));
  14351. var _loadmore = _interopRequireDefault(__webpack_require__(/*! ./props/loadmore */ 115));
  14352. var _modal = _interopRequireDefault(__webpack_require__(/*! ./props/modal */ 116));
  14353. var _navbar = _interopRequireDefault(__webpack_require__(/*! ./props/navbar */ 117));
  14354. var _noNetwork = _interopRequireDefault(__webpack_require__(/*! ./props/noNetwork */ 119));
  14355. var _noticeBar = _interopRequireDefault(__webpack_require__(/*! ./props/noticeBar */ 120));
  14356. var _notify = _interopRequireDefault(__webpack_require__(/*! ./props/notify */ 121));
  14357. var _numberBox = _interopRequireDefault(__webpack_require__(/*! ./props/numberBox */ 122));
  14358. var _numberKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/numberKeyboard */ 123));
  14359. var _overlay = _interopRequireDefault(__webpack_require__(/*! ./props/overlay */ 124));
  14360. var _parse = _interopRequireDefault(__webpack_require__(/*! ./props/parse */ 125));
  14361. var _picker = _interopRequireDefault(__webpack_require__(/*! ./props/picker */ 126));
  14362. var _popup = _interopRequireDefault(__webpack_require__(/*! ./props/popup */ 127));
  14363. var _radio = _interopRequireDefault(__webpack_require__(/*! ./props/radio */ 128));
  14364. var _radioGroup = _interopRequireDefault(__webpack_require__(/*! ./props/radioGroup */ 129));
  14365. var _rate = _interopRequireDefault(__webpack_require__(/*! ./props/rate */ 130));
  14366. var _readMore = _interopRequireDefault(__webpack_require__(/*! ./props/readMore */ 131));
  14367. var _row = _interopRequireDefault(__webpack_require__(/*! ./props/row */ 132));
  14368. var _rowNotice = _interopRequireDefault(__webpack_require__(/*! ./props/rowNotice */ 133));
  14369. var _scrollList = _interopRequireDefault(__webpack_require__(/*! ./props/scrollList */ 134));
  14370. var _search = _interopRequireDefault(__webpack_require__(/*! ./props/search */ 135));
  14371. var _section = _interopRequireDefault(__webpack_require__(/*! ./props/section */ 136));
  14372. var _skeleton = _interopRequireDefault(__webpack_require__(/*! ./props/skeleton */ 137));
  14373. var _slider = _interopRequireDefault(__webpack_require__(/*! ./props/slider */ 138));
  14374. var _statusBar = _interopRequireDefault(__webpack_require__(/*! ./props/statusBar */ 139));
  14375. var _steps = _interopRequireDefault(__webpack_require__(/*! ./props/steps */ 140));
  14376. var _stepsItem = _interopRequireDefault(__webpack_require__(/*! ./props/stepsItem */ 141));
  14377. var _sticky = _interopRequireDefault(__webpack_require__(/*! ./props/sticky */ 142));
  14378. var _subsection = _interopRequireDefault(__webpack_require__(/*! ./props/subsection */ 143));
  14379. var _swipeAction = _interopRequireDefault(__webpack_require__(/*! ./props/swipeAction */ 144));
  14380. var _swipeActionItem = _interopRequireDefault(__webpack_require__(/*! ./props/swipeActionItem */ 145));
  14381. var _swiper = _interopRequireDefault(__webpack_require__(/*! ./props/swiper */ 146));
  14382. var _swipterIndicator = _interopRequireDefault(__webpack_require__(/*! ./props/swipterIndicator */ 147));
  14383. var _switch2 = _interopRequireDefault(__webpack_require__(/*! ./props/switch */ 148));
  14384. var _tabbar = _interopRequireDefault(__webpack_require__(/*! ./props/tabbar */ 149));
  14385. var _tabbarItem = _interopRequireDefault(__webpack_require__(/*! ./props/tabbarItem */ 150));
  14386. var _tabs = _interopRequireDefault(__webpack_require__(/*! ./props/tabs */ 151));
  14387. var _tag = _interopRequireDefault(__webpack_require__(/*! ./props/tag */ 152));
  14388. var _text = _interopRequireDefault(__webpack_require__(/*! ./props/text */ 153));
  14389. var _textarea = _interopRequireDefault(__webpack_require__(/*! ./props/textarea */ 154));
  14390. var _toast = _interopRequireDefault(__webpack_require__(/*! ./props/toast */ 155));
  14391. var _toolbar = _interopRequireDefault(__webpack_require__(/*! ./props/toolbar */ 156));
  14392. var _tooltip = _interopRequireDefault(__webpack_require__(/*! ./props/tooltip */ 157));
  14393. var _transition = _interopRequireDefault(__webpack_require__(/*! ./props/transition */ 158));
  14394. var _upload = _interopRequireDefault(__webpack_require__(/*! ./props/upload */ 159));
  14395. 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; }
  14396. 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; }
  14397. var color = _config.default.color;
  14398. 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);
  14399. exports.default = _default;
  14400. /***/ }),
  14401. /* 71 */
  14402. /*!************************************************************************************************************!*\
  14403. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/actionSheet.js ***!
  14404. \************************************************************************************************************/
  14405. /*! no static exports found */
  14406. /***/ (function(module, exports, __webpack_require__) {
  14407. "use strict";
  14408. Object.defineProperty(exports, "__esModule", {
  14409. value: true
  14410. });
  14411. exports.default = void 0;
  14412. /*
  14413. * @Author : LQ
  14414. * @Description :
  14415. * @version : 1.0
  14416. * @Date : 2021-08-20 16:44:21
  14417. * @LastAuthor : LQ
  14418. * @lastTime : 2021-08-20 16:44:35
  14419. * @FilePath : /u-view2.0/uview-ui/libs/config/props/actionSheet.js
  14420. */
  14421. var _default = {
  14422. // action-sheet组件
  14423. actionSheet: {
  14424. show: false,
  14425. title: '',
  14426. description: '',
  14427. actions: function actions() {
  14428. return [];
  14429. },
  14430. index: '',
  14431. cancelText: '',
  14432. closeOnClickAction: true,
  14433. safeAreaInsetBottom: true,
  14434. openType: '',
  14435. closeOnClickOverlay: true,
  14436. round: 0
  14437. }
  14438. };
  14439. exports.default = _default;
  14440. /***/ }),
  14441. /* 72 */
  14442. /*!******************************************************************************************************!*\
  14443. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/album.js ***!
  14444. \******************************************************************************************************/
  14445. /*! no static exports found */
  14446. /***/ (function(module, exports, __webpack_require__) {
  14447. "use strict";
  14448. Object.defineProperty(exports, "__esModule", {
  14449. value: true
  14450. });
  14451. exports.default = void 0;
  14452. /*
  14453. * @Author : LQ
  14454. * @Description :
  14455. * @version : 1.0
  14456. * @Date : 2021-08-20 16:44:21
  14457. * @LastAuthor : LQ
  14458. * @lastTime : 2021-08-20 16:47:24
  14459. * @FilePath : /u-view2.0/uview-ui/libs/config/props/album.js
  14460. */
  14461. var _default = {
  14462. // album 组件
  14463. album: {
  14464. urls: function urls() {
  14465. return [];
  14466. },
  14467. keyName: '',
  14468. singleSize: 180,
  14469. multipleSize: 70,
  14470. space: 6,
  14471. singleMode: 'scaleToFill',
  14472. multipleMode: 'aspectFill',
  14473. maxCount: 9,
  14474. previewFullImage: true,
  14475. rowCount: 3,
  14476. showMore: true
  14477. }
  14478. };
  14479. exports.default = _default;
  14480. /***/ }),
  14481. /* 73 */
  14482. /*!******************************************************************************************************!*\
  14483. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/alert.js ***!
  14484. \******************************************************************************************************/
  14485. /*! no static exports found */
  14486. /***/ (function(module, exports, __webpack_require__) {
  14487. "use strict";
  14488. Object.defineProperty(exports, "__esModule", {
  14489. value: true
  14490. });
  14491. exports.default = void 0;
  14492. /*
  14493. * @Author : LQ
  14494. * @Description :
  14495. * @version : 1.0
  14496. * @Date : 2021-08-20 16:44:21
  14497. * @LastAuthor : LQ
  14498. * @lastTime : 2021-08-20 16:48:53
  14499. * @FilePath : /u-view2.0/uview-ui/libs/config/props/alert.js
  14500. */
  14501. var _default = {
  14502. // alert警告组件
  14503. alert: {
  14504. title: '',
  14505. type: 'warning',
  14506. description: '',
  14507. closable: false,
  14508. showIcon: false,
  14509. effect: 'light',
  14510. center: false,
  14511. fontSize: 14
  14512. }
  14513. };
  14514. exports.default = _default;
  14515. /***/ }),
  14516. /* 74 */
  14517. /*!*******************************************************************************************************!*\
  14518. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/avatar.js ***!
  14519. \*******************************************************************************************************/
  14520. /*! no static exports found */
  14521. /***/ (function(module, exports, __webpack_require__) {
  14522. "use strict";
  14523. Object.defineProperty(exports, "__esModule", {
  14524. value: true
  14525. });
  14526. exports.default = void 0;
  14527. /*
  14528. * @Author : LQ
  14529. * @Description :
  14530. * @version : 1.0
  14531. * @Date : 2021-08-20 16:44:21
  14532. * @LastAuthor : LQ
  14533. * @lastTime : 2021-08-20 16:49:22
  14534. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatar.js
  14535. */
  14536. var _default = {
  14537. // avatar 组件
  14538. avatar: {
  14539. src: '',
  14540. shape: 'circle',
  14541. size: 40,
  14542. mode: 'scaleToFill',
  14543. text: '',
  14544. bgColor: '#c0c4cc',
  14545. color: '#ffffff',
  14546. fontSize: 18,
  14547. icon: '',
  14548. mpAvatar: false,
  14549. randomBgColor: false,
  14550. defaultUrl: '',
  14551. colorIndex: '',
  14552. name: ''
  14553. }
  14554. };
  14555. exports.default = _default;
  14556. /***/ }),
  14557. /* 75 */
  14558. /*!************************************************************************************************************!*\
  14559. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/avatarGroup.js ***!
  14560. \************************************************************************************************************/
  14561. /*! no static exports found */
  14562. /***/ (function(module, exports, __webpack_require__) {
  14563. "use strict";
  14564. Object.defineProperty(exports, "__esModule", {
  14565. value: true
  14566. });
  14567. exports.default = void 0;
  14568. /*
  14569. * @Author : LQ
  14570. * @Description :
  14571. * @version : 1.0
  14572. * @Date : 2021-08-20 16:44:21
  14573. * @LastAuthor : LQ
  14574. * @lastTime : 2021-08-20 16:49:55
  14575. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatarGroup.js
  14576. */
  14577. var _default = {
  14578. // avatarGroup 组件
  14579. avatarGroup: {
  14580. urls: function urls() {
  14581. return [];
  14582. },
  14583. maxCount: 5,
  14584. shape: 'circle',
  14585. mode: 'scaleToFill',
  14586. showMore: true,
  14587. size: 40,
  14588. keyName: '',
  14589. gap: 0.5,
  14590. extraValue: 0
  14591. }
  14592. };
  14593. exports.default = _default;
  14594. /***/ }),
  14595. /* 76 */
  14596. /*!********************************************************************************************************!*\
  14597. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/backtop.js ***!
  14598. \********************************************************************************************************/
  14599. /*! no static exports found */
  14600. /***/ (function(module, exports, __webpack_require__) {
  14601. "use strict";
  14602. Object.defineProperty(exports, "__esModule", {
  14603. value: true
  14604. });
  14605. exports.default = void 0;
  14606. /*
  14607. * @Author : LQ
  14608. * @Description :
  14609. * @version : 1.0
  14610. * @Date : 2021-08-20 16:44:21
  14611. * @LastAuthor : LQ
  14612. * @lastTime : 2021-08-20 16:50:18
  14613. * @FilePath : /u-view2.0/uview-ui/libs/config/props/backtop.js
  14614. */
  14615. var _default = {
  14616. // backtop组件
  14617. backtop: {
  14618. mode: 'circle',
  14619. icon: 'arrow-upward',
  14620. text: '',
  14621. duration: 100,
  14622. scrollTop: 0,
  14623. top: 400,
  14624. bottom: 100,
  14625. right: 20,
  14626. zIndex: 9,
  14627. iconStyle: function iconStyle() {
  14628. return {
  14629. color: '#909399',
  14630. fontSize: '19px'
  14631. };
  14632. }
  14633. }
  14634. };
  14635. exports.default = _default;
  14636. /***/ }),
  14637. /* 77 */
  14638. /*!******************************************************************************************************!*\
  14639. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/badge.js ***!
  14640. \******************************************************************************************************/
  14641. /*! no static exports found */
  14642. /***/ (function(module, exports, __webpack_require__) {
  14643. "use strict";
  14644. Object.defineProperty(exports, "__esModule", {
  14645. value: true
  14646. });
  14647. exports.default = void 0;
  14648. /*
  14649. * @Author : LQ
  14650. * @Description :
  14651. * @version : 1.0
  14652. * @Date : 2021-08-20 16:44:21
  14653. * @LastAuthor : LQ
  14654. * @lastTime : 2021-08-23 19:51:50
  14655. * @FilePath : /u-view2.0/uview-ui/libs/config/props/badge.js
  14656. */
  14657. var _default = {
  14658. // 徽标数组件
  14659. badge: {
  14660. isDot: false,
  14661. value: '',
  14662. show: true,
  14663. max: 999,
  14664. type: 'error',
  14665. showZero: false,
  14666. bgColor: null,
  14667. color: null,
  14668. shape: 'circle',
  14669. numberType: 'overflow',
  14670. offset: function offset() {
  14671. return [];
  14672. },
  14673. inverted: false,
  14674. absolute: false
  14675. }
  14676. };
  14677. exports.default = _default;
  14678. /***/ }),
  14679. /* 78 */
  14680. /*!*******************************************************************************************************!*\
  14681. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/button.js ***!
  14682. \*******************************************************************************************************/
  14683. /*! no static exports found */
  14684. /***/ (function(module, exports, __webpack_require__) {
  14685. "use strict";
  14686. Object.defineProperty(exports, "__esModule", {
  14687. value: true
  14688. });
  14689. exports.default = void 0;
  14690. /*
  14691. * @Author : LQ
  14692. * @Description :
  14693. * @version : 1.0
  14694. * @Date : 2021-08-20 16:44:21
  14695. * @LastAuthor : LQ
  14696. * @lastTime : 2021-08-20 16:51:27
  14697. * @FilePath : /u-view2.0/uview-ui/libs/config/props/button.js
  14698. */
  14699. var _default = {
  14700. // button组件
  14701. button: {
  14702. hairline: false,
  14703. type: 'info',
  14704. size: 'normal',
  14705. shape: 'square',
  14706. plain: false,
  14707. disabled: false,
  14708. loading: false,
  14709. loadingText: '',
  14710. loadingMode: 'spinner',
  14711. loadingSize: 15,
  14712. openType: '',
  14713. formType: '',
  14714. appParameter: '',
  14715. hoverStopPropagation: true,
  14716. lang: 'en',
  14717. sessionFrom: '',
  14718. sendMessageTitle: '',
  14719. sendMessagePath: '',
  14720. sendMessageImg: '',
  14721. showMessageCard: false,
  14722. dataName: '',
  14723. throttleTime: 0,
  14724. hoverStartTime: 0,
  14725. hoverStayTime: 200,
  14726. text: '',
  14727. icon: '',
  14728. iconColor: '',
  14729. color: ''
  14730. }
  14731. };
  14732. exports.default = _default;
  14733. /***/ }),
  14734. /* 79 */
  14735. /*!*********************************************************************************************************!*\
  14736. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/calendar.js ***!
  14737. \*********************************************************************************************************/
  14738. /*! no static exports found */
  14739. /***/ (function(module, exports, __webpack_require__) {
  14740. "use strict";
  14741. Object.defineProperty(exports, "__esModule", {
  14742. value: true
  14743. });
  14744. exports.default = void 0;
  14745. /*
  14746. * @Author : LQ
  14747. * @Description :
  14748. * @version : 1.0
  14749. * @Date : 2021-08-20 16:44:21
  14750. * @LastAuthor : LQ
  14751. * @lastTime : 2021-08-20 16:52:43
  14752. * @FilePath : /u-view2.0/uview-ui/libs/config/props/calendar.js
  14753. */
  14754. var _default = {
  14755. // calendar 组件
  14756. calendar: {
  14757. title: '日期选择',
  14758. showTitle: true,
  14759. showSubtitle: true,
  14760. mode: 'single',
  14761. startText: '开始',
  14762. endText: '结束',
  14763. customList: function customList() {
  14764. return [];
  14765. },
  14766. color: '#3c9cff',
  14767. minDate: 0,
  14768. maxDate: 0,
  14769. defaultDate: null,
  14770. maxCount: Number.MAX_SAFE_INTEGER,
  14771. // Infinity
  14772. rowHeight: 56,
  14773. formatter: null,
  14774. showLunar: false,
  14775. showMark: true,
  14776. confirmText: '确定',
  14777. confirmDisabledText: '确定',
  14778. show: false,
  14779. closeOnClickOverlay: false,
  14780. readonly: false,
  14781. showConfirm: true,
  14782. maxRange: Number.MAX_SAFE_INTEGER,
  14783. // Infinity
  14784. rangePrompt: '',
  14785. showRangePrompt: true,
  14786. allowSameDay: false,
  14787. round: 0,
  14788. monthNum: 3
  14789. }
  14790. };
  14791. exports.default = _default;
  14792. /***/ }),
  14793. /* 80 */
  14794. /*!************************************************************************************************************!*\
  14795. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/carKeyboard.js ***!
  14796. \************************************************************************************************************/
  14797. /*! no static exports found */
  14798. /***/ (function(module, exports, __webpack_require__) {
  14799. "use strict";
  14800. Object.defineProperty(exports, "__esModule", {
  14801. value: true
  14802. });
  14803. exports.default = void 0;
  14804. /*
  14805. * @Author : LQ
  14806. * @Description :
  14807. * @version : 1.0
  14808. * @Date : 2021-08-20 16:44:21
  14809. * @LastAuthor : LQ
  14810. * @lastTime : 2021-08-20 16:53:20
  14811. * @FilePath : /u-view2.0/uview-ui/libs/config/props/carKeyboard.js
  14812. */
  14813. var _default = {
  14814. // 车牌号键盘
  14815. carKeyboard: {
  14816. random: false
  14817. }
  14818. };
  14819. exports.default = _default;
  14820. /***/ }),
  14821. /* 81 */
  14822. /*!*****************************************************************************************************!*\
  14823. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/cell.js ***!
  14824. \*****************************************************************************************************/
  14825. /*! no static exports found */
  14826. /***/ (function(module, exports, __webpack_require__) {
  14827. "use strict";
  14828. Object.defineProperty(exports, "__esModule", {
  14829. value: true
  14830. });
  14831. exports.default = void 0;
  14832. /*
  14833. * @Author : LQ
  14834. * @Description :
  14835. * @version : 1.0
  14836. * @Date : 2021-08-20 16:44:21
  14837. * @LastAuthor : LQ
  14838. * @lastTime : 2021-08-23 20:53:09
  14839. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cell.js
  14840. */
  14841. var _default = {
  14842. // cell组件的props
  14843. cell: {
  14844. customClass: '',
  14845. title: '',
  14846. label: '',
  14847. value: '',
  14848. icon: '',
  14849. disabled: false,
  14850. border: true,
  14851. center: false,
  14852. url: '',
  14853. linkType: 'navigateTo',
  14854. clickable: false,
  14855. isLink: false,
  14856. required: false,
  14857. arrowDirection: '',
  14858. iconStyle: {},
  14859. rightIconStyle: {},
  14860. rightIcon: 'arrow-right',
  14861. titleStyle: {},
  14862. size: '',
  14863. stop: true,
  14864. name: ''
  14865. }
  14866. };
  14867. exports.default = _default;
  14868. /***/ }),
  14869. /* 82 */
  14870. /*!**********************************************************************************************************!*\
  14871. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/cellGroup.js ***!
  14872. \**********************************************************************************************************/
  14873. /*! no static exports found */
  14874. /***/ (function(module, exports, __webpack_require__) {
  14875. "use strict";
  14876. Object.defineProperty(exports, "__esModule", {
  14877. value: true
  14878. });
  14879. exports.default = void 0;
  14880. /*
  14881. * @Author : LQ
  14882. * @Description :
  14883. * @version : 1.0
  14884. * @Date : 2021-08-20 16:44:21
  14885. * @LastAuthor : LQ
  14886. * @lastTime : 2021-08-20 16:54:16
  14887. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cellGroup.js
  14888. */
  14889. var _default = {
  14890. // cell-group组件的props
  14891. cellGroup: {
  14892. title: '',
  14893. border: true,
  14894. customStyle: {}
  14895. }
  14896. };
  14897. exports.default = _default;
  14898. /***/ }),
  14899. /* 83 */
  14900. /*!*********************************************************************************************************!*\
  14901. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/checkbox.js ***!
  14902. \*********************************************************************************************************/
  14903. /*! no static exports found */
  14904. /***/ (function(module, exports, __webpack_require__) {
  14905. "use strict";
  14906. Object.defineProperty(exports, "__esModule", {
  14907. value: true
  14908. });
  14909. exports.default = void 0;
  14910. /*
  14911. * @Author : LQ
  14912. * @Description :
  14913. * @version : 1.0
  14914. * @Date : 2021-08-20 16:44:21
  14915. * @LastAuthor : LQ
  14916. * @lastTime : 2021-08-23 21:06:59
  14917. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkbox.js
  14918. */
  14919. var _default = {
  14920. // checkbox组件
  14921. checkbox: {
  14922. name: '',
  14923. shape: '',
  14924. size: '',
  14925. checkbox: false,
  14926. disabled: '',
  14927. activeColor: '',
  14928. inactiveColor: '',
  14929. iconSize: '',
  14930. iconColor: '',
  14931. label: '',
  14932. labelSize: '',
  14933. labelColor: '',
  14934. labelDisabled: ''
  14935. }
  14936. };
  14937. exports.default = _default;
  14938. /***/ }),
  14939. /* 84 */
  14940. /*!**************************************************************************************************************!*\
  14941. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/checkboxGroup.js ***!
  14942. \**************************************************************************************************************/
  14943. /*! no static exports found */
  14944. /***/ (function(module, exports, __webpack_require__) {
  14945. "use strict";
  14946. Object.defineProperty(exports, "__esModule", {
  14947. value: true
  14948. });
  14949. exports.default = void 0;
  14950. /*
  14951. * @Author : LQ
  14952. * @Description :
  14953. * @version : 1.0
  14954. * @Date : 2021-08-20 16:44:21
  14955. * @LastAuthor : LQ
  14956. * @lastTime : 2021-08-20 16:54:47
  14957. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkboxGroup.js
  14958. */
  14959. var _default = {
  14960. // checkbox-group组件
  14961. checkboxGroup: {
  14962. name: '',
  14963. value: function value() {
  14964. return [];
  14965. },
  14966. shape: 'square',
  14967. disabled: false,
  14968. activeColor: '#2979ff',
  14969. inactiveColor: '#c8c9cc',
  14970. size: 18,
  14971. placement: 'row',
  14972. labelSize: 14,
  14973. labelColor: '#303133',
  14974. labelDisabled: false,
  14975. iconColor: '#ffffff',
  14976. iconSize: 12,
  14977. iconPlacement: 'left',
  14978. borderBottom: false
  14979. }
  14980. };
  14981. exports.default = _default;
  14982. /***/ }),
  14983. /* 85 */
  14984. /*!***************************************************************************************************************!*\
  14985. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/circleProgress.js ***!
  14986. \***************************************************************************************************************/
  14987. /*! no static exports found */
  14988. /***/ (function(module, exports, __webpack_require__) {
  14989. "use strict";
  14990. Object.defineProperty(exports, "__esModule", {
  14991. value: true
  14992. });
  14993. exports.default = void 0;
  14994. /*
  14995. * @Author : LQ
  14996. * @Description :
  14997. * @version : 1.0
  14998. * @Date : 2021-08-20 16:44:21
  14999. * @LastAuthor : LQ
  15000. * @lastTime : 2021-08-20 16:55:02
  15001. * @FilePath : /u-view2.0/uview-ui/libs/config/props/circleProgress.js
  15002. */
  15003. var _default = {
  15004. // circleProgress 组件
  15005. circleProgress: {
  15006. percentage: 30
  15007. }
  15008. };
  15009. exports.default = _default;
  15010. /***/ }),
  15011. /* 86 */
  15012. /*!*****************************************************************************************************!*\
  15013. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/code.js ***!
  15014. \*****************************************************************************************************/
  15015. /*! no static exports found */
  15016. /***/ (function(module, exports, __webpack_require__) {
  15017. "use strict";
  15018. Object.defineProperty(exports, "__esModule", {
  15019. value: true
  15020. });
  15021. exports.default = void 0;
  15022. /*
  15023. * @Author : LQ
  15024. * @Description :
  15025. * @version : 1.0
  15026. * @Date : 2021-08-20 16:44:21
  15027. * @LastAuthor : LQ
  15028. * @lastTime : 2021-08-20 16:55:27
  15029. * @FilePath : /u-view2.0/uview-ui/libs/config/props/code.js
  15030. */
  15031. var _default = {
  15032. // code 组件
  15033. code: {
  15034. seconds: 60,
  15035. startText: '获取验证码',
  15036. changeText: 'X秒重新获取',
  15037. endText: '重新获取',
  15038. keepRunning: false,
  15039. uniqueKey: ''
  15040. }
  15041. };
  15042. exports.default = _default;
  15043. /***/ }),
  15044. /* 87 */
  15045. /*!**********************************************************************************************************!*\
  15046. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/codeInput.js ***!
  15047. \**********************************************************************************************************/
  15048. /*! no static exports found */
  15049. /***/ (function(module, exports, __webpack_require__) {
  15050. "use strict";
  15051. Object.defineProperty(exports, "__esModule", {
  15052. value: true
  15053. });
  15054. exports.default = void 0;
  15055. /*
  15056. * @Author : LQ
  15057. * @Description :
  15058. * @version : 1.0
  15059. * @Date : 2021-08-20 16:44:21
  15060. * @LastAuthor : LQ
  15061. * @lastTime : 2021-08-20 16:55:58
  15062. * @FilePath : /u-view2.0/uview-ui/libs/config/props/codeInput.js
  15063. */
  15064. var _default = {
  15065. // codeInput 组件
  15066. codeInput: {
  15067. maxlength: 6,
  15068. dot: false,
  15069. mode: 'box',
  15070. hairline: false,
  15071. space: 10,
  15072. value: '',
  15073. focus: false,
  15074. bold: false,
  15075. color: '#606266',
  15076. fontSize: 18,
  15077. size: 35,
  15078. disabledKeyboard: false,
  15079. borderColor: '#c9cacc',
  15080. disabledDot: true
  15081. }
  15082. };
  15083. exports.default = _default;
  15084. /***/ }),
  15085. /* 88 */
  15086. /*!****************************************************************************************************!*\
  15087. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/col.js ***!
  15088. \****************************************************************************************************/
  15089. /*! no static exports found */
  15090. /***/ (function(module, exports, __webpack_require__) {
  15091. "use strict";
  15092. Object.defineProperty(exports, "__esModule", {
  15093. value: true
  15094. });
  15095. exports.default = void 0;
  15096. /*
  15097. * @Author : LQ
  15098. * @Description :
  15099. * @version : 1.0
  15100. * @Date : 2021-08-20 16:44:21
  15101. * @LastAuthor : LQ
  15102. * @lastTime : 2021-08-20 16:56:12
  15103. * @FilePath : /u-view2.0/uview-ui/libs/config/props/col.js
  15104. */
  15105. var _default = {
  15106. // col 组件
  15107. col: {
  15108. span: 12,
  15109. offset: 0,
  15110. justify: 'start',
  15111. align: 'stretch',
  15112. textAlign: 'left'
  15113. }
  15114. };
  15115. exports.default = _default;
  15116. /***/ }),
  15117. /* 89 */
  15118. /*!*********************************************************************************************************!*\
  15119. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/collapse.js ***!
  15120. \*********************************************************************************************************/
  15121. /*! no static exports found */
  15122. /***/ (function(module, exports, __webpack_require__) {
  15123. "use strict";
  15124. Object.defineProperty(exports, "__esModule", {
  15125. value: true
  15126. });
  15127. exports.default = void 0;
  15128. /*
  15129. * @Author : LQ
  15130. * @Description :
  15131. * @version : 1.0
  15132. * @Date : 2021-08-20 16:44:21
  15133. * @LastAuthor : LQ
  15134. * @lastTime : 2021-08-20 16:56:30
  15135. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapse.js
  15136. */
  15137. var _default = {
  15138. // collapse 组件
  15139. collapse: {
  15140. value: null,
  15141. accordion: false,
  15142. border: true
  15143. }
  15144. };
  15145. exports.default = _default;
  15146. /***/ }),
  15147. /* 90 */
  15148. /*!*************************************************************************************************************!*\
  15149. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/collapseItem.js ***!
  15150. \*************************************************************************************************************/
  15151. /*! no static exports found */
  15152. /***/ (function(module, exports, __webpack_require__) {
  15153. "use strict";
  15154. Object.defineProperty(exports, "__esModule", {
  15155. value: true
  15156. });
  15157. exports.default = void 0;
  15158. /*
  15159. * @Author : LQ
  15160. * @Description :
  15161. * @version : 1.0
  15162. * @Date : 2021-08-20 16:44:21
  15163. * @LastAuthor : LQ
  15164. * @lastTime : 2021-08-20 16:56:42
  15165. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapseItem.js
  15166. */
  15167. var _default = {
  15168. // collapseItem 组件
  15169. collapseItem: {
  15170. title: '',
  15171. value: '',
  15172. label: '',
  15173. disabled: false,
  15174. isLink: true,
  15175. clickable: true,
  15176. border: true,
  15177. align: 'left',
  15178. name: '',
  15179. icon: '',
  15180. duration: 300
  15181. }
  15182. };
  15183. exports.default = _default;
  15184. /***/ }),
  15185. /* 91 */
  15186. /*!*************************************************************************************************************!*\
  15187. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/columnNotice.js ***!
  15188. \*************************************************************************************************************/
  15189. /*! no static exports found */
  15190. /***/ (function(module, exports, __webpack_require__) {
  15191. "use strict";
  15192. Object.defineProperty(exports, "__esModule", {
  15193. value: true
  15194. });
  15195. exports.default = void 0;
  15196. /*
  15197. * @Author : LQ
  15198. * @Description :
  15199. * @version : 1.0
  15200. * @Date : 2021-08-20 16:44:21
  15201. * @LastAuthor : LQ
  15202. * @lastTime : 2021-08-20 16:57:16
  15203. * @FilePath : /u-view2.0/uview-ui/libs/config/props/columnNotice.js
  15204. */
  15205. var _default = {
  15206. // columnNotice 组件
  15207. columnNotice: {
  15208. text: '',
  15209. icon: 'volume',
  15210. mode: '',
  15211. color: '#f9ae3d',
  15212. bgColor: '#fdf6ec',
  15213. fontSize: 14,
  15214. speed: 80,
  15215. step: false,
  15216. duration: 1500,
  15217. disableTouch: true
  15218. }
  15219. };
  15220. exports.default = _default;
  15221. /***/ }),
  15222. /* 92 */
  15223. /*!**********************************************************************************************************!*\
  15224. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/countDown.js ***!
  15225. \**********************************************************************************************************/
  15226. /*! no static exports found */
  15227. /***/ (function(module, exports, __webpack_require__) {
  15228. "use strict";
  15229. Object.defineProperty(exports, "__esModule", {
  15230. value: true
  15231. });
  15232. exports.default = void 0;
  15233. /*
  15234. * @Author : LQ
  15235. * @Description :
  15236. * @version : 1.0
  15237. * @Date : 2021-08-20 16:44:21
  15238. * @LastAuthor : LQ
  15239. * @lastTime : 2021-08-20 17:11:29
  15240. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countDown.js
  15241. */
  15242. var _default = {
  15243. // u-count-down 计时器组件
  15244. countDown: {
  15245. time: 0,
  15246. format: 'HH:mm:ss',
  15247. autoStart: true,
  15248. millisecond: false
  15249. }
  15250. };
  15251. exports.default = _default;
  15252. /***/ }),
  15253. /* 93 */
  15254. /*!********************************************************************************************************!*\
  15255. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/countTo.js ***!
  15256. \********************************************************************************************************/
  15257. /*! no static exports found */
  15258. /***/ (function(module, exports, __webpack_require__) {
  15259. "use strict";
  15260. Object.defineProperty(exports, "__esModule", {
  15261. value: true
  15262. });
  15263. exports.default = void 0;
  15264. /*
  15265. * @Author : LQ
  15266. * @Description :
  15267. * @version : 1.0
  15268. * @Date : 2021-08-20 16:44:21
  15269. * @LastAuthor : LQ
  15270. * @lastTime : 2021-08-20 16:57:32
  15271. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countTo.js
  15272. */
  15273. var _default = {
  15274. // countTo 组件
  15275. countTo: {
  15276. startVal: 0,
  15277. endVal: 0,
  15278. duration: 2000,
  15279. autoplay: true,
  15280. decimals: 0,
  15281. useEasing: true,
  15282. decimal: '.',
  15283. color: '#606266',
  15284. fontSize: 22,
  15285. bold: false,
  15286. separator: ''
  15287. }
  15288. };
  15289. exports.default = _default;
  15290. /***/ }),
  15291. /* 94 */
  15292. /*!***************************************************************************************************************!*\
  15293. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/datetimePicker.js ***!
  15294. \***************************************************************************************************************/
  15295. /*! no static exports found */
  15296. /***/ (function(module, exports, __webpack_require__) {
  15297. "use strict";
  15298. Object.defineProperty(exports, "__esModule", {
  15299. value: true
  15300. });
  15301. exports.default = void 0;
  15302. /*
  15303. * @Author : LQ
  15304. * @Description :
  15305. * @version : 1.0
  15306. * @Date : 2021-08-20 16:44:21
  15307. * @LastAuthor : LQ
  15308. * @lastTime : 2021-08-20 16:57:48
  15309. * @FilePath : /u-view2.0/uview-ui/libs/config/props/datetimePicker.js
  15310. */
  15311. var _default = {
  15312. // datetimePicker 组件
  15313. datetimePicker: {
  15314. show: false,
  15315. showToolbar: true,
  15316. value: '',
  15317. title: '',
  15318. mode: 'datetime',
  15319. maxDate: new Date(new Date().getFullYear() + 10, 0, 1).getTime(),
  15320. minDate: new Date(new Date().getFullYear() - 10, 0, 1).getTime(),
  15321. minHour: 0,
  15322. maxHour: 23,
  15323. minMinute: 0,
  15324. maxMinute: 59,
  15325. filter: null,
  15326. formatter: null,
  15327. loading: false,
  15328. itemHeight: 44,
  15329. cancelText: '取消',
  15330. confirmText: '确认',
  15331. cancelColor: '#909193',
  15332. confirmColor: '#3c9cff',
  15333. visibleItemCount: 5,
  15334. closeOnClickOverlay: false,
  15335. defaultIndex: function defaultIndex() {
  15336. return [];
  15337. }
  15338. }
  15339. };
  15340. exports.default = _default;
  15341. /***/ }),
  15342. /* 95 */
  15343. /*!********************************************************************************************************!*\
  15344. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/divider.js ***!
  15345. \********************************************************************************************************/
  15346. /*! no static exports found */
  15347. /***/ (function(module, exports, __webpack_require__) {
  15348. "use strict";
  15349. Object.defineProperty(exports, "__esModule", {
  15350. value: true
  15351. });
  15352. exports.default = void 0;
  15353. /*
  15354. * @Author : LQ
  15355. * @Description :
  15356. * @version : 1.0
  15357. * @Date : 2021-08-20 16:44:21
  15358. * @LastAuthor : LQ
  15359. * @lastTime : 2021-08-20 16:58:03
  15360. * @FilePath : /u-view2.0/uview-ui/libs/config/props/divider.js
  15361. */
  15362. var _default = {
  15363. // divider组件
  15364. divider: {
  15365. dashed: false,
  15366. hairline: true,
  15367. dot: false,
  15368. textPosition: 'center',
  15369. text: '',
  15370. textSize: 14,
  15371. textColor: '#909399',
  15372. lineColor: '#dcdfe6'
  15373. }
  15374. };
  15375. exports.default = _default;
  15376. /***/ }),
  15377. /* 96 */
  15378. /*!******************************************************************************************************!*\
  15379. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/empty.js ***!
  15380. \******************************************************************************************************/
  15381. /*! no static exports found */
  15382. /***/ (function(module, exports, __webpack_require__) {
  15383. "use strict";
  15384. Object.defineProperty(exports, "__esModule", {
  15385. value: true
  15386. });
  15387. exports.default = void 0;
  15388. /*
  15389. * @Author : LQ
  15390. * @Description :
  15391. * @version : 1.0
  15392. * @Date : 2021-08-20 16:44:21
  15393. * @LastAuthor : LQ
  15394. * @lastTime : 2021-08-20 17:03:27
  15395. * @FilePath : /u-view2.0/uview-ui/libs/config/props/empty.js
  15396. */
  15397. var _default = {
  15398. // empty组件
  15399. empty: {
  15400. icon: '',
  15401. text: '',
  15402. textColor: '#c0c4cc',
  15403. textSize: 14,
  15404. iconColor: '#c0c4cc',
  15405. iconSize: 90,
  15406. mode: 'data',
  15407. width: 160,
  15408. height: 160,
  15409. show: true,
  15410. marginTop: 0
  15411. }
  15412. };
  15413. exports.default = _default;
  15414. /***/ }),
  15415. /* 97 */
  15416. /*!*****************************************************************************************************!*\
  15417. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/form.js ***!
  15418. \*****************************************************************************************************/
  15419. /*! no static exports found */
  15420. /***/ (function(module, exports, __webpack_require__) {
  15421. "use strict";
  15422. Object.defineProperty(exports, "__esModule", {
  15423. value: true
  15424. });
  15425. exports.default = void 0;
  15426. /*
  15427. * @Author : LQ
  15428. * @Description :
  15429. * @version : 1.0
  15430. * @Date : 2021-08-20 16:44:21
  15431. * @LastAuthor : LQ
  15432. * @lastTime : 2021-08-20 17:03:49
  15433. * @FilePath : /u-view2.0/uview-ui/libs/config/props/form.js
  15434. */
  15435. var _default = {
  15436. // form 组件
  15437. form: {
  15438. model: function model() {
  15439. return {};
  15440. },
  15441. rules: function rules() {
  15442. return {};
  15443. },
  15444. errorType: 'message',
  15445. borderBottom: true,
  15446. labelPosition: 'left',
  15447. labelWidth: 45,
  15448. labelAlign: 'left',
  15449. labelStyle: function labelStyle() {
  15450. return {};
  15451. }
  15452. }
  15453. };
  15454. exports.default = _default;
  15455. /***/ }),
  15456. /* 98 */
  15457. /*!*********************************************************************************************************!*\
  15458. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/formItem.js ***!
  15459. \*********************************************************************************************************/
  15460. /*! no static exports found */
  15461. /***/ (function(module, exports, __webpack_require__) {
  15462. "use strict";
  15463. Object.defineProperty(exports, "__esModule", {
  15464. value: true
  15465. });
  15466. exports.default = void 0;
  15467. /*
  15468. * @Author : LQ
  15469. * @Description :
  15470. * @version : 1.0
  15471. * @Date : 2021-08-20 16:44:21
  15472. * @LastAuthor : LQ
  15473. * @lastTime : 2021-08-20 17:04:32
  15474. * @FilePath : /u-view2.0/uview-ui/libs/config/props/formItem.js
  15475. */
  15476. var _default = {
  15477. // formItem 组件
  15478. formItem: {
  15479. label: '',
  15480. prop: '',
  15481. borderBottom: '',
  15482. labelWidth: '',
  15483. rightIcon: '',
  15484. leftIcon: '',
  15485. required: false,
  15486. leftIconStyle: ''
  15487. }
  15488. };
  15489. exports.default = _default;
  15490. /***/ }),
  15491. /* 99 */
  15492. /*!****************************************************************************************************!*\
  15493. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/gap.js ***!
  15494. \****************************************************************************************************/
  15495. /*! no static exports found */
  15496. /***/ (function(module, exports, __webpack_require__) {
  15497. "use strict";
  15498. Object.defineProperty(exports, "__esModule", {
  15499. value: true
  15500. });
  15501. exports.default = void 0;
  15502. /*
  15503. * @Author : LQ
  15504. * @Description :
  15505. * @version : 1.0
  15506. * @Date : 2021-08-20 16:44:21
  15507. * @LastAuthor : LQ
  15508. * @lastTime : 2021-08-20 17:05:25
  15509. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gap.js
  15510. */
  15511. var _default = {
  15512. // gap组件
  15513. gap: {
  15514. bgColor: 'transparent',
  15515. height: 20,
  15516. marginTop: 0,
  15517. marginBottom: 0,
  15518. customStyle: {}
  15519. }
  15520. };
  15521. exports.default = _default;
  15522. /***/ }),
  15523. /* 100 */
  15524. /*!*****************************************************************************************************!*\
  15525. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/grid.js ***!
  15526. \*****************************************************************************************************/
  15527. /*! no static exports found */
  15528. /***/ (function(module, exports, __webpack_require__) {
  15529. "use strict";
  15530. Object.defineProperty(exports, "__esModule", {
  15531. value: true
  15532. });
  15533. exports.default = void 0;
  15534. /*
  15535. * @Author : LQ
  15536. * @Description :
  15537. * @version : 1.0
  15538. * @Date : 2021-08-20 16:44:21
  15539. * @LastAuthor : LQ
  15540. * @lastTime : 2021-08-20 17:05:57
  15541. * @FilePath : /u-view2.0/uview-ui/libs/config/props/grid.js
  15542. */
  15543. var _default = {
  15544. // grid组件
  15545. grid: {
  15546. col: 3,
  15547. border: false,
  15548. align: 'left'
  15549. }
  15550. };
  15551. exports.default = _default;
  15552. /***/ }),
  15553. /* 101 */
  15554. /*!*********************************************************************************************************!*\
  15555. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/gridItem.js ***!
  15556. \*********************************************************************************************************/
  15557. /*! no static exports found */
  15558. /***/ (function(module, exports, __webpack_require__) {
  15559. "use strict";
  15560. Object.defineProperty(exports, "__esModule", {
  15561. value: true
  15562. });
  15563. exports.default = void 0;
  15564. /*
  15565. * @Author : LQ
  15566. * @Description :
  15567. * @version : 1.0
  15568. * @Date : 2021-08-20 16:44:21
  15569. * @LastAuthor : LQ
  15570. * @lastTime : 2021-08-20 17:06:13
  15571. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gridItem.js
  15572. */
  15573. var _default = {
  15574. // grid-item组件
  15575. gridItem: {
  15576. name: null,
  15577. bgColor: 'transparent'
  15578. }
  15579. };
  15580. exports.default = _default;
  15581. /***/ }),
  15582. /* 102 */
  15583. /*!*****************************************************************************************************!*\
  15584. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/icon.js ***!
  15585. \*****************************************************************************************************/
  15586. /*! no static exports found */
  15587. /***/ (function(module, exports, __webpack_require__) {
  15588. "use strict";
  15589. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15590. Object.defineProperty(exports, "__esModule", {
  15591. value: true
  15592. });
  15593. exports.default = void 0;
  15594. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 69));
  15595. /*
  15596. * @Author : LQ
  15597. * @Description :
  15598. * @version : 1.0
  15599. * @Date : 2021-08-20 16:44:21
  15600. * @LastAuthor : LQ
  15601. * @lastTime : 2021-08-20 18:00:14
  15602. * @FilePath : /u-view2.0/uview-ui/libs/config/props/icon.js
  15603. */
  15604. var color = _config.default.color;
  15605. var _default = {
  15606. // icon组件
  15607. icon: {
  15608. name: '',
  15609. color: color['u-content-color'],
  15610. size: '16px',
  15611. bold: false,
  15612. index: '',
  15613. hoverClass: '',
  15614. customPrefix: 'uicon',
  15615. label: '',
  15616. labelPos: 'right',
  15617. labelSize: '15px',
  15618. labelColor: color['u-content-color'],
  15619. space: '3px',
  15620. imgMode: '',
  15621. width: '',
  15622. height: '',
  15623. top: 0,
  15624. stop: false
  15625. }
  15626. };
  15627. exports.default = _default;
  15628. /***/ }),
  15629. /* 103 */
  15630. /*!******************************************************************************************************!*\
  15631. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/image.js ***!
  15632. \******************************************************************************************************/
  15633. /*! no static exports found */
  15634. /***/ (function(module, exports, __webpack_require__) {
  15635. "use strict";
  15636. Object.defineProperty(exports, "__esModule", {
  15637. value: true
  15638. });
  15639. exports.default = void 0;
  15640. /*
  15641. * @Author : LQ
  15642. * @Description :
  15643. * @version : 1.0
  15644. * @Date : 2021-08-20 16:44:21
  15645. * @LastAuthor : LQ
  15646. * @lastTime : 2021-08-20 17:01:51
  15647. * @FilePath : /u-view2.0/uview-ui/libs/config/props/image.js
  15648. */
  15649. var _default = {
  15650. // image组件
  15651. image: {
  15652. src: '',
  15653. mode: 'aspectFill',
  15654. width: '300',
  15655. height: '225',
  15656. shape: 'square',
  15657. radius: 0,
  15658. lazyLoad: true,
  15659. showMenuByLongpress: true,
  15660. loadingIcon: 'photo',
  15661. errorIcon: 'error-circle',
  15662. showLoading: true,
  15663. showError: true,
  15664. fade: true,
  15665. webp: false,
  15666. duration: 500,
  15667. bgColor: '#f3f4f6'
  15668. }
  15669. };
  15670. exports.default = _default;
  15671. /***/ }),
  15672. /* 104 */
  15673. /*!************************************************************************************************************!*\
  15674. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/indexAnchor.js ***!
  15675. \************************************************************************************************************/
  15676. /*! no static exports found */
  15677. /***/ (function(module, exports, __webpack_require__) {
  15678. "use strict";
  15679. Object.defineProperty(exports, "__esModule", {
  15680. value: true
  15681. });
  15682. exports.default = void 0;
  15683. /*
  15684. * @Author : LQ
  15685. * @Description :
  15686. * @version : 1.0
  15687. * @Date : 2021-08-20 16:44:21
  15688. * @LastAuthor : LQ
  15689. * @lastTime : 2021-08-20 17:13:15
  15690. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexAnchor.js
  15691. */
  15692. var _default = {
  15693. // indexAnchor 组件
  15694. indexAnchor: {
  15695. text: '',
  15696. color: '#606266',
  15697. size: 14,
  15698. bgColor: '#dedede',
  15699. height: 32
  15700. }
  15701. };
  15702. exports.default = _default;
  15703. /***/ }),
  15704. /* 105 */
  15705. /*!**********************************************************************************************************!*\
  15706. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/indexList.js ***!
  15707. \**********************************************************************************************************/
  15708. /*! no static exports found */
  15709. /***/ (function(module, exports, __webpack_require__) {
  15710. "use strict";
  15711. Object.defineProperty(exports, "__esModule", {
  15712. value: true
  15713. });
  15714. exports.default = void 0;
  15715. /*
  15716. * @Author : LQ
  15717. * @Description :
  15718. * @version : 1.0
  15719. * @Date : 2021-08-20 16:44:21
  15720. * @LastAuthor : LQ
  15721. * @lastTime : 2021-08-20 17:13:35
  15722. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexList.js
  15723. */
  15724. var _default = {
  15725. // indexList 组件
  15726. indexList: {
  15727. inactiveColor: '#606266',
  15728. activeColor: '#5677fc',
  15729. indexList: function indexList() {
  15730. return [];
  15731. },
  15732. sticky: true,
  15733. customNavHeight: 0
  15734. }
  15735. };
  15736. exports.default = _default;
  15737. /***/ }),
  15738. /* 106 */
  15739. /*!******************************************************************************************************!*\
  15740. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/input.js ***!
  15741. \******************************************************************************************************/
  15742. /*! no static exports found */
  15743. /***/ (function(module, exports, __webpack_require__) {
  15744. "use strict";
  15745. Object.defineProperty(exports, "__esModule", {
  15746. value: true
  15747. });
  15748. exports.default = void 0;
  15749. /*
  15750. * @Author : LQ
  15751. * @Description :
  15752. * @version : 1.0
  15753. * @Date : 2021-08-20 16:44:21
  15754. * @LastAuthor : LQ
  15755. * @lastTime : 2021-08-20 17:13:55
  15756. * @FilePath : /u-view2.0/uview-ui/libs/config/props/input.js
  15757. */
  15758. var _default = {
  15759. // index 组件
  15760. input: {
  15761. value: '',
  15762. type: 'text',
  15763. fixed: false,
  15764. disabled: false,
  15765. disabledColor: '#f5f7fa',
  15766. clearable: false,
  15767. password: false,
  15768. maxlength: -1,
  15769. placeholder: null,
  15770. placeholderClass: 'input-placeholder',
  15771. placeholderStyle: 'color: #c0c4cc',
  15772. showWordLimit: false,
  15773. confirmType: 'done',
  15774. confirmHold: false,
  15775. holdKeyboard: false,
  15776. focus: false,
  15777. autoBlur: false,
  15778. disableDefaultPadding: false,
  15779. cursor: -1,
  15780. cursorSpacing: 30,
  15781. selectionStart: -1,
  15782. selectionEnd: -1,
  15783. adjustPosition: true,
  15784. inputAlign: 'left',
  15785. fontSize: '15px',
  15786. color: '#303133',
  15787. prefixIcon: '',
  15788. prefixIconStyle: '',
  15789. suffixIcon: '',
  15790. suffixIconStyle: '',
  15791. border: 'surround',
  15792. readonly: false,
  15793. shape: 'square',
  15794. formatter: null
  15795. }
  15796. };
  15797. exports.default = _default;
  15798. /***/ }),
  15799. /* 107 */
  15800. /*!*********************************************************************************************************!*\
  15801. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/keyboard.js ***!
  15802. \*********************************************************************************************************/
  15803. /*! no static exports found */
  15804. /***/ (function(module, exports, __webpack_require__) {
  15805. "use strict";
  15806. Object.defineProperty(exports, "__esModule", {
  15807. value: true
  15808. });
  15809. exports.default = void 0;
  15810. /*
  15811. * @Author : LQ
  15812. * @Description :
  15813. * @version : 1.0
  15814. * @Date : 2021-08-20 16:44:21
  15815. * @LastAuthor : LQ
  15816. * @lastTime : 2021-08-20 17:07:49
  15817. * @FilePath : /u-view2.0/uview-ui/libs/config/props/keyboard.js
  15818. */
  15819. var _default = {
  15820. // 键盘组件
  15821. keyboard: {
  15822. mode: 'number',
  15823. dotDisabled: false,
  15824. tooltip: true,
  15825. showTips: true,
  15826. tips: '',
  15827. showCancel: true,
  15828. showConfirm: true,
  15829. random: false,
  15830. safeAreaInsetBottom: true,
  15831. closeOnClickOverlay: true,
  15832. show: false,
  15833. overlay: true,
  15834. zIndex: 10075,
  15835. cancelText: '取消',
  15836. confirmText: '确定',
  15837. autoChange: false
  15838. }
  15839. };
  15840. exports.default = _default;
  15841. /***/ }),
  15842. /* 108 */
  15843. /*!*****************************************************************************************************!*\
  15844. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/line.js ***!
  15845. \*****************************************************************************************************/
  15846. /*! no static exports found */
  15847. /***/ (function(module, exports, __webpack_require__) {
  15848. "use strict";
  15849. Object.defineProperty(exports, "__esModule", {
  15850. value: true
  15851. });
  15852. exports.default = void 0;
  15853. /*
  15854. * @Author : LQ
  15855. * @Description :
  15856. * @version : 1.0
  15857. * @Date : 2021-08-20 16:44:21
  15858. * @LastAuthor : LQ
  15859. * @lastTime : 2021-08-20 17:04:49
  15860. * @FilePath : /u-view2.0/uview-ui/libs/config/props/line.js
  15861. */
  15862. var _default = {
  15863. // line组件
  15864. line: {
  15865. color: '#d6d7d9',
  15866. length: '100%',
  15867. direction: 'row',
  15868. hairline: true,
  15869. margin: 0,
  15870. dashed: false
  15871. }
  15872. };
  15873. exports.default = _default;
  15874. /***/ }),
  15875. /* 109 */
  15876. /*!*************************************************************************************************************!*\
  15877. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/lineProgress.js ***!
  15878. \*************************************************************************************************************/
  15879. /*! no static exports found */
  15880. /***/ (function(module, exports, __webpack_require__) {
  15881. "use strict";
  15882. Object.defineProperty(exports, "__esModule", {
  15883. value: true
  15884. });
  15885. exports.default = void 0;
  15886. /*
  15887. * @Author : LQ
  15888. * @Description :
  15889. * @version : 1.0
  15890. * @Date : 2021-08-20 16:44:21
  15891. * @LastAuthor : LQ
  15892. * @lastTime : 2021-08-20 17:14:11
  15893. * @FilePath : /u-view2.0/uview-ui/libs/config/props/lineProgress.js
  15894. */
  15895. var _default = {
  15896. // lineProgress 组件
  15897. lineProgress: {
  15898. activeColor: '#19be6b',
  15899. inactiveColor: '#ececec',
  15900. percentage: 0,
  15901. showText: true,
  15902. height: 12
  15903. }
  15904. };
  15905. exports.default = _default;
  15906. /***/ }),
  15907. /* 110 */
  15908. /*!*****************************************************************************************************!*\
  15909. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/link.js ***!
  15910. \*****************************************************************************************************/
  15911. /*! no static exports found */
  15912. /***/ (function(module, exports, __webpack_require__) {
  15913. "use strict";
  15914. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15915. Object.defineProperty(exports, "__esModule", {
  15916. value: true
  15917. });
  15918. exports.default = void 0;
  15919. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 69));
  15920. /*
  15921. * @Author : LQ
  15922. * @Description :
  15923. * @version : 1.0
  15924. * @Date : 2021-08-20 16:44:21
  15925. * @LastAuthor : LQ
  15926. * @lastTime : 2021-08-20 17:45:36
  15927. * @FilePath : /u-view2.0/uview-ui/libs/config/props/link.js
  15928. */
  15929. var color = _config.default.color;
  15930. var _default = {
  15931. // link超链接组件props参数
  15932. link: {
  15933. color: color['u-primary'],
  15934. fontSize: 15,
  15935. underLine: false,
  15936. href: '',
  15937. mpTips: '链接已复制,请在浏览器打开',
  15938. lineColor: '',
  15939. text: ''
  15940. }
  15941. };
  15942. exports.default = _default;
  15943. /***/ }),
  15944. /* 111 */
  15945. /*!*****************************************************************************************************!*\
  15946. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/list.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 17:14:53
  15962. * @FilePath : /u-view2.0/uview-ui/libs/config/props/list.js
  15963. */
  15964. var _default = {
  15965. // list 组件
  15966. list: {
  15967. showScrollbar: false,
  15968. lowerThreshold: 50,
  15969. upperThreshold: 0,
  15970. scrollTop: 0,
  15971. offsetAccuracy: 10,
  15972. enableFlex: false,
  15973. pagingEnabled: false,
  15974. scrollable: true,
  15975. scrollIntoView: '',
  15976. scrollWithAnimation: false,
  15977. enableBackToTop: false,
  15978. height: 0,
  15979. width: 0,
  15980. preLoadScreen: 1
  15981. }
  15982. };
  15983. exports.default = _default;
  15984. /***/ }),
  15985. /* 112 */
  15986. /*!*********************************************************************************************************!*\
  15987. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/listItem.js ***!
  15988. \*********************************************************************************************************/
  15989. /*! no static exports found */
  15990. /***/ (function(module, exports, __webpack_require__) {
  15991. "use strict";
  15992. Object.defineProperty(exports, "__esModule", {
  15993. value: true
  15994. });
  15995. exports.default = void 0;
  15996. /*
  15997. * @Author : LQ
  15998. * @Description :
  15999. * @version : 1.0
  16000. * @Date : 2021-08-20 16:44:21
  16001. * @LastAuthor : LQ
  16002. * @lastTime : 2021-08-20 17:15:40
  16003. * @FilePath : /u-view2.0/uview-ui/libs/config/props/listItem.js
  16004. */
  16005. var _default = {
  16006. // listItem 组件
  16007. listItem: {
  16008. anchor: ''
  16009. }
  16010. };
  16011. exports.default = _default;
  16012. /***/ }),
  16013. /* 113 */
  16014. /*!************************************************************************************************************!*\
  16015. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/loadingIcon.js ***!
  16016. \************************************************************************************************************/
  16017. /*! no static exports found */
  16018. /***/ (function(module, exports, __webpack_require__) {
  16019. "use strict";
  16020. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  16021. Object.defineProperty(exports, "__esModule", {
  16022. value: true
  16023. });
  16024. exports.default = void 0;
  16025. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 69));
  16026. /*
  16027. * @Author : LQ
  16028. * @Description :
  16029. * @version : 1.0
  16030. * @Date : 2021-08-20 16:44:21
  16031. * @LastAuthor : LQ
  16032. * @lastTime : 2021-08-20 17:45:47
  16033. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingIcon.js
  16034. */
  16035. var color = _config.default.color;
  16036. var _default = {
  16037. // loading-icon加载中图标组件
  16038. loadingIcon: {
  16039. show: true,
  16040. color: color['u-tips-color'],
  16041. textColor: color['u-tips-color'],
  16042. vertical: false,
  16043. mode: 'spinner',
  16044. size: 24,
  16045. textSize: 15,
  16046. text: '',
  16047. timingFunction: 'ease-in-out',
  16048. duration: 1200,
  16049. inactiveColor: ''
  16050. }
  16051. };
  16052. exports.default = _default;
  16053. /***/ }),
  16054. /* 114 */
  16055. /*!************************************************************************************************************!*\
  16056. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/loadingPage.js ***!
  16057. \************************************************************************************************************/
  16058. /*! no static exports found */
  16059. /***/ (function(module, exports, __webpack_require__) {
  16060. "use strict";
  16061. Object.defineProperty(exports, "__esModule", {
  16062. value: true
  16063. });
  16064. exports.default = void 0;
  16065. /*
  16066. * @Author : LQ
  16067. * @Description :
  16068. * @version : 1.0
  16069. * @Date : 2021-08-20 16:44:21
  16070. * @LastAuthor : LQ
  16071. * @lastTime : 2021-08-20 17:00:23
  16072. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingPage.js
  16073. */
  16074. var _default = {
  16075. // loading-page组件
  16076. loadingPage: {
  16077. loadingText: '正在加载',
  16078. image: '',
  16079. loadingMode: 'circle',
  16080. loading: false,
  16081. bgColor: '#ffffff',
  16082. color: '#C8C8C8',
  16083. fontSize: 19,
  16084. loadingColor: '#C8C8C8'
  16085. }
  16086. };
  16087. exports.default = _default;
  16088. /***/ }),
  16089. /* 115 */
  16090. /*!*********************************************************************************************************!*\
  16091. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/loadmore.js ***!
  16092. \*********************************************************************************************************/
  16093. /*! no static exports found */
  16094. /***/ (function(module, exports, __webpack_require__) {
  16095. "use strict";
  16096. Object.defineProperty(exports, "__esModule", {
  16097. value: true
  16098. });
  16099. exports.default = void 0;
  16100. /*
  16101. * @Author : LQ
  16102. * @Description :
  16103. * @version : 1.0
  16104. * @Date : 2021-08-20 16:44:21
  16105. * @LastAuthor : LQ
  16106. * @lastTime : 2021-08-20 17:15:26
  16107. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadmore.js
  16108. */
  16109. var _default = {
  16110. // loadmore 组件
  16111. loadmore: {
  16112. status: 'loadmore',
  16113. bgColor: 'transparent',
  16114. icon: true,
  16115. fontSize: 14,
  16116. color: '#606266',
  16117. loadingIcon: 'spinner',
  16118. loadmoreText: '加载更多',
  16119. loadingText: '正在加载...',
  16120. nomoreText: '没有更多了',
  16121. isDot: false,
  16122. iconColor: '#b7b7b7',
  16123. marginTop: 10,
  16124. marginBottom: 10,
  16125. height: 'auto',
  16126. line: false
  16127. }
  16128. };
  16129. exports.default = _default;
  16130. /***/ }),
  16131. /* 116 */
  16132. /*!******************************************************************************************************!*\
  16133. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/modal.js ***!
  16134. \******************************************************************************************************/
  16135. /*! no static exports found */
  16136. /***/ (function(module, exports, __webpack_require__) {
  16137. "use strict";
  16138. Object.defineProperty(exports, "__esModule", {
  16139. value: true
  16140. });
  16141. exports.default = void 0;
  16142. /*
  16143. * @Author : LQ
  16144. * @Description :
  16145. * @version : 1.0
  16146. * @Date : 2021-08-20 16:44:21
  16147. * @LastAuthor : LQ
  16148. * @lastTime : 2021-08-20 17:15:59
  16149. * @FilePath : /u-view2.0/uview-ui/libs/config/props/modal.js
  16150. */
  16151. var _default = {
  16152. // modal 组件
  16153. modal: {
  16154. show: false,
  16155. title: '',
  16156. content: '',
  16157. confirmText: '确认',
  16158. cancelText: '取消',
  16159. showConfirmButton: true,
  16160. showCancelButton: false,
  16161. confirmColor: '#2979ff',
  16162. cancelColor: '#606266',
  16163. buttonReverse: false,
  16164. zoom: true,
  16165. asyncClose: false,
  16166. closeOnClickOverlay: false,
  16167. negativeTop: 0,
  16168. width: '650rpx',
  16169. confirmButtonShape: ''
  16170. }
  16171. };
  16172. exports.default = _default;
  16173. /***/ }),
  16174. /* 117 */
  16175. /*!*******************************************************************************************************!*\
  16176. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/navbar.js ***!
  16177. \*******************************************************************************************************/
  16178. /*! no static exports found */
  16179. /***/ (function(module, exports, __webpack_require__) {
  16180. "use strict";
  16181. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  16182. Object.defineProperty(exports, "__esModule", {
  16183. value: true
  16184. });
  16185. exports.default = void 0;
  16186. var _color = _interopRequireDefault(__webpack_require__(/*! ../color */ 118));
  16187. /*
  16188. * @Author : LQ
  16189. * @Description :
  16190. * @version : 1.0
  16191. * @Date : 2021-08-20 16:44:21
  16192. * @LastAuthor : LQ
  16193. * @lastTime : 2021-08-20 17:16:18
  16194. * @FilePath : /u-view2.0/uview-ui/libs/config/props/navbar.js
  16195. */
  16196. var _default = {
  16197. // navbar 组件
  16198. navbar: {
  16199. safeAreaInsetTop: true,
  16200. placeholder: false,
  16201. fixed: true,
  16202. border: false,
  16203. leftIcon: 'arrow-left',
  16204. leftText: '',
  16205. rightText: '',
  16206. rightIcon: '',
  16207. title: '',
  16208. bgColor: '#ffffff',
  16209. titleWidth: '400rpx',
  16210. height: '44px',
  16211. leftIconSize: 20,
  16212. leftIconColor: _color.default.mainColor,
  16213. autoBack: false,
  16214. titleStyle: ''
  16215. }
  16216. };
  16217. exports.default = _default;
  16218. /***/ }),
  16219. /* 118 */
  16220. /*!************************************************************************************************!*\
  16221. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/color.js ***!
  16222. \************************************************************************************************/
  16223. /*! no static exports found */
  16224. /***/ (function(module, exports, __webpack_require__) {
  16225. "use strict";
  16226. Object.defineProperty(exports, "__esModule", {
  16227. value: true
  16228. });
  16229. exports.default = void 0;
  16230. // 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供
  16231. // 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)
  16232. var color = {
  16233. primary: '#3c9cff',
  16234. info: '#909399',
  16235. default: '#909399',
  16236. warning: '#f9ae3d',
  16237. error: '#f56c6c',
  16238. success: '#5ac725',
  16239. mainColor: '#303133',
  16240. contentColor: '#606266',
  16241. tipsColor: '#909399',
  16242. lightColor: '#c0c4cc',
  16243. borderColor: '#e4e7ed'
  16244. };
  16245. var _default = color;
  16246. exports.default = _default;
  16247. /***/ }),
  16248. /* 119 */
  16249. /*!**********************************************************************************************************!*\
  16250. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/noNetwork.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-20 17:16:39
  16266. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noNetwork.js
  16267. */
  16268. var _default = {
  16269. // noNetwork
  16270. noNetwork: {
  16271. tips: '哎呀,网络信号丢失',
  16272. zIndex: '',
  16273. 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'
  16274. }
  16275. };
  16276. exports.default = _default;
  16277. /***/ }),
  16278. /* 120 */
  16279. /*!**********************************************************************************************************!*\
  16280. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/noticeBar.js ***!
  16281. \**********************************************************************************************************/
  16282. /*! no static exports found */
  16283. /***/ (function(module, exports, __webpack_require__) {
  16284. "use strict";
  16285. Object.defineProperty(exports, "__esModule", {
  16286. value: true
  16287. });
  16288. exports.default = void 0;
  16289. /*
  16290. * @Author : LQ
  16291. * @Description :
  16292. * @version : 1.0
  16293. * @Date : 2021-08-20 16:44:21
  16294. * @LastAuthor : LQ
  16295. * @lastTime : 2021-08-20 17:17:13
  16296. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noticeBar.js
  16297. */
  16298. var _default = {
  16299. // noticeBar
  16300. noticeBar: {
  16301. text: function text() {
  16302. return [];
  16303. },
  16304. direction: 'row',
  16305. step: false,
  16306. icon: 'volume',
  16307. mode: '',
  16308. color: '#f9ae3d',
  16309. bgColor: '#fdf6ec',
  16310. speed: 80,
  16311. fontSize: 14,
  16312. duration: 2000,
  16313. disableTouch: true,
  16314. url: '',
  16315. linkType: 'navigateTo'
  16316. }
  16317. };
  16318. exports.default = _default;
  16319. /***/ }),
  16320. /* 121 */
  16321. /*!*******************************************************************************************************!*\
  16322. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/notify.js ***!
  16323. \*******************************************************************************************************/
  16324. /*! no static exports found */
  16325. /***/ (function(module, exports, __webpack_require__) {
  16326. "use strict";
  16327. Object.defineProperty(exports, "__esModule", {
  16328. value: true
  16329. });
  16330. exports.default = void 0;
  16331. /*
  16332. * @Author : LQ
  16333. * @Description :
  16334. * @version : 1.0
  16335. * @Date : 2021-08-20 16:44:21
  16336. * @LastAuthor : LQ
  16337. * @lastTime : 2021-08-20 17:10:21
  16338. * @FilePath : /u-view2.0/uview-ui/libs/config/props/notify.js
  16339. */
  16340. var _default = {
  16341. // notify组件
  16342. notify: {
  16343. top: 0,
  16344. type: 'primary',
  16345. color: '#ffffff',
  16346. bgColor: '',
  16347. message: '',
  16348. duration: 3000,
  16349. fontSize: 15,
  16350. safeAreaInsetTop: false
  16351. }
  16352. };
  16353. exports.default = _default;
  16354. /***/ }),
  16355. /* 122 */
  16356. /*!**********************************************************************************************************!*\
  16357. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/numberBox.js ***!
  16358. \**********************************************************************************************************/
  16359. /*! no static exports found */
  16360. /***/ (function(module, exports, __webpack_require__) {
  16361. "use strict";
  16362. Object.defineProperty(exports, "__esModule", {
  16363. value: true
  16364. });
  16365. exports.default = void 0;
  16366. /*
  16367. * @Author : LQ
  16368. * @Description :
  16369. * @version : 1.0
  16370. * @Date : 2021-08-20 16:44:21
  16371. * @LastAuthor : LQ
  16372. * @lastTime : 2021-08-20 17:11:46
  16373. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberBox.js
  16374. */
  16375. var _default = {
  16376. // 步进器组件
  16377. numberBox: {
  16378. name: '',
  16379. value: 0,
  16380. min: 1,
  16381. max: Number.MAX_SAFE_INTEGER,
  16382. step: 1,
  16383. integer: false,
  16384. disabled: false,
  16385. disabledInput: false,
  16386. asyncChange: false,
  16387. inputWidth: 35,
  16388. showMinus: true,
  16389. showPlus: true,
  16390. decimalLength: null,
  16391. longPress: true,
  16392. color: '#323233',
  16393. buttonSize: 30,
  16394. bgColor: '#EBECEE',
  16395. cursorSpacing: 100,
  16396. disableMinus: false,
  16397. disablePlus: false,
  16398. iconStyle: ''
  16399. }
  16400. };
  16401. exports.default = _default;
  16402. /***/ }),
  16403. /* 123 */
  16404. /*!***************************************************************************************************************!*\
  16405. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/numberKeyboard.js ***!
  16406. \***************************************************************************************************************/
  16407. /*! no static exports found */
  16408. /***/ (function(module, exports, __webpack_require__) {
  16409. "use strict";
  16410. Object.defineProperty(exports, "__esModule", {
  16411. value: true
  16412. });
  16413. exports.default = void 0;
  16414. /*
  16415. * @Author : LQ
  16416. * @Description :
  16417. * @version : 1.0
  16418. * @Date : 2021-08-20 16:44:21
  16419. * @LastAuthor : LQ
  16420. * @lastTime : 2021-08-20 17:08:05
  16421. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberKeyboard.js
  16422. */
  16423. var _default = {
  16424. // 数字键盘
  16425. numberKeyboard: {
  16426. mode: 'number',
  16427. dotDisabled: false,
  16428. random: false
  16429. }
  16430. };
  16431. exports.default = _default;
  16432. /***/ }),
  16433. /* 124 */
  16434. /*!********************************************************************************************************!*\
  16435. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/overlay.js ***!
  16436. \********************************************************************************************************/
  16437. /*! no static exports found */
  16438. /***/ (function(module, exports, __webpack_require__) {
  16439. "use strict";
  16440. Object.defineProperty(exports, "__esModule", {
  16441. value: true
  16442. });
  16443. exports.default = void 0;
  16444. /*
  16445. * @Author : LQ
  16446. * @Description :
  16447. * @version : 1.0
  16448. * @Date : 2021-08-20 16:44:21
  16449. * @LastAuthor : LQ
  16450. * @lastTime : 2021-08-20 17:06:50
  16451. * @FilePath : /u-view2.0/uview-ui/libs/config/props/overlay.js
  16452. */
  16453. var _default = {
  16454. // overlay组件
  16455. overlay: {
  16456. show: false,
  16457. zIndex: 10070,
  16458. duration: 300,
  16459. opacity: 0.5
  16460. }
  16461. };
  16462. exports.default = _default;
  16463. /***/ }),
  16464. /* 125 */
  16465. /*!******************************************************************************************************!*\
  16466. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/parse.js ***!
  16467. \******************************************************************************************************/
  16468. /*! no static exports found */
  16469. /***/ (function(module, exports, __webpack_require__) {
  16470. "use strict";
  16471. Object.defineProperty(exports, "__esModule", {
  16472. value: true
  16473. });
  16474. exports.default = void 0;
  16475. /*
  16476. * @Author : LQ
  16477. * @Description :
  16478. * @version : 1.0
  16479. * @Date : 2021-08-20 16:44:21
  16480. * @LastAuthor : LQ
  16481. * @lastTime : 2021-08-20 17:17:33
  16482. * @FilePath : /u-view2.0/uview-ui/libs/config/props/parse.js
  16483. */
  16484. var _default = {
  16485. // parse
  16486. parse: {
  16487. copyLink: true,
  16488. errorImg: '',
  16489. lazyLoad: false,
  16490. loadingImg: '',
  16491. pauseVideo: true,
  16492. previewImg: true,
  16493. setTitle: true,
  16494. showImgMenu: true
  16495. }
  16496. };
  16497. exports.default = _default;
  16498. /***/ }),
  16499. /* 126 */
  16500. /*!*******************************************************************************************************!*\
  16501. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/picker.js ***!
  16502. \*******************************************************************************************************/
  16503. /*! no static exports found */
  16504. /***/ (function(module, exports, __webpack_require__) {
  16505. "use strict";
  16506. Object.defineProperty(exports, "__esModule", {
  16507. value: true
  16508. });
  16509. exports.default = void 0;
  16510. /*
  16511. * @Author : LQ
  16512. * @Description :
  16513. * @version : 1.0
  16514. * @Date : 2021-08-20 16:44:21
  16515. * @LastAuthor : LQ
  16516. * @lastTime : 2021-08-20 17:18:20
  16517. * @FilePath : /u-view2.0/uview-ui/libs/config/props/picker.js
  16518. */
  16519. var _default = {
  16520. // picker
  16521. picker: {
  16522. show: false,
  16523. showToolbar: true,
  16524. title: '',
  16525. columns: function columns() {
  16526. return [];
  16527. },
  16528. loading: false,
  16529. itemHeight: 44,
  16530. cancelText: '取消',
  16531. confirmText: '确定',
  16532. cancelColor: '#909193',
  16533. confirmColor: '#3c9cff',
  16534. singleIndex: 0,
  16535. visibleItemCount: 5,
  16536. keyName: 'text',
  16537. closeOnClickOverlay: false,
  16538. defaultIndex: function defaultIndex() {
  16539. return [];
  16540. },
  16541. immediateChange: false
  16542. }
  16543. };
  16544. exports.default = _default;
  16545. /***/ }),
  16546. /* 127 */
  16547. /*!******************************************************************************************************!*\
  16548. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/popup.js ***!
  16549. \******************************************************************************************************/
  16550. /*! no static exports found */
  16551. /***/ (function(module, exports, __webpack_require__) {
  16552. "use strict";
  16553. Object.defineProperty(exports, "__esModule", {
  16554. value: true
  16555. });
  16556. exports.default = void 0;
  16557. /*
  16558. * @Author : LQ
  16559. * @Description :
  16560. * @version : 1.0
  16561. * @Date : 2021-08-20 16:44:21
  16562. * @LastAuthor : LQ
  16563. * @lastTime : 2021-08-20 17:06:33
  16564. * @FilePath : /u-view2.0/uview-ui/libs/config/props/popup.js
  16565. */
  16566. var _default = {
  16567. // popup组件
  16568. popup: {
  16569. show: false,
  16570. overlay: true,
  16571. mode: 'bottom',
  16572. duration: 300,
  16573. closeable: false,
  16574. overlayStyle: function overlayStyle() {},
  16575. closeOnClickOverlay: true,
  16576. zIndex: 10075,
  16577. safeAreaInsetBottom: true,
  16578. safeAreaInsetTop: false,
  16579. closeIconPos: 'top-right',
  16580. round: 0,
  16581. zoom: true,
  16582. bgColor: '',
  16583. overlayOpacity: 0.5
  16584. }
  16585. };
  16586. exports.default = _default;
  16587. /***/ }),
  16588. /* 128 */
  16589. /*!******************************************************************************************************!*\
  16590. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/radio.js ***!
  16591. \******************************************************************************************************/
  16592. /*! no static exports found */
  16593. /***/ (function(module, exports, __webpack_require__) {
  16594. "use strict";
  16595. Object.defineProperty(exports, "__esModule", {
  16596. value: true
  16597. });
  16598. exports.default = void 0;
  16599. /*
  16600. * @Author : LQ
  16601. * @Description :
  16602. * @version : 1.0
  16603. * @Date : 2021-08-20 16:44:21
  16604. * @LastAuthor : LQ
  16605. * @lastTime : 2021-08-20 17:02:34
  16606. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radio.js
  16607. */
  16608. var _default = {
  16609. // radio组件
  16610. radio: {
  16611. name: '',
  16612. shape: '',
  16613. disabled: '',
  16614. labelDisabled: '',
  16615. activeColor: '',
  16616. inactiveColor: '',
  16617. iconSize: '',
  16618. labelSize: '',
  16619. label: '',
  16620. labelColor: '',
  16621. size: '',
  16622. iconColor: '',
  16623. placement: ''
  16624. }
  16625. };
  16626. exports.default = _default;
  16627. /***/ }),
  16628. /* 129 */
  16629. /*!***********************************************************************************************************!*\
  16630. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/radioGroup.js ***!
  16631. \***********************************************************************************************************/
  16632. /*! no static exports found */
  16633. /***/ (function(module, exports, __webpack_require__) {
  16634. "use strict";
  16635. Object.defineProperty(exports, "__esModule", {
  16636. value: true
  16637. });
  16638. exports.default = void 0;
  16639. /*
  16640. * @Author : LQ
  16641. * @Description :
  16642. * @version : 1.0
  16643. * @Date : 2021-08-20 16:44:21
  16644. * @LastAuthor : LQ
  16645. * @lastTime : 2021-08-20 17:03:12
  16646. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radioGroup.js
  16647. */
  16648. var _default = {
  16649. // radio-group组件
  16650. radioGroup: {
  16651. value: '',
  16652. disabled: false,
  16653. shape: 'circle',
  16654. activeColor: '#2979ff',
  16655. inactiveColor: '#c8c9cc',
  16656. name: '',
  16657. size: 18,
  16658. placement: 'row',
  16659. label: '',
  16660. labelColor: '#303133',
  16661. labelSize: 14,
  16662. labelDisabled: false,
  16663. iconColor: '#ffffff',
  16664. iconSize: 12,
  16665. borderBottom: false,
  16666. iconPlacement: 'left'
  16667. }
  16668. };
  16669. exports.default = _default;
  16670. /***/ }),
  16671. /* 130 */
  16672. /*!*****************************************************************************************************!*\
  16673. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/rate.js ***!
  16674. \*****************************************************************************************************/
  16675. /*! no static exports found */
  16676. /***/ (function(module, exports, __webpack_require__) {
  16677. "use strict";
  16678. Object.defineProperty(exports, "__esModule", {
  16679. value: true
  16680. });
  16681. exports.default = void 0;
  16682. /*
  16683. * @Author : LQ
  16684. * @Description :
  16685. * @version : 1.0
  16686. * @Date : 2021-08-20 16:44:21
  16687. * @LastAuthor : LQ
  16688. * @lastTime : 2021-08-20 17:05:09
  16689. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rate.js
  16690. */
  16691. var _default = {
  16692. // rate组件
  16693. rate: {
  16694. value: 1,
  16695. count: 5,
  16696. disabled: false,
  16697. size: 18,
  16698. inactiveColor: '#b2b2b2',
  16699. activeColor: '#FA3534',
  16700. gutter: 4,
  16701. minCount: 1,
  16702. allowHalf: false,
  16703. activeIcon: 'star-fill',
  16704. inactiveIcon: 'star',
  16705. touchable: true
  16706. }
  16707. };
  16708. exports.default = _default;
  16709. /***/ }),
  16710. /* 131 */
  16711. /*!*********************************************************************************************************!*\
  16712. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/readMore.js ***!
  16713. \*********************************************************************************************************/
  16714. /*! no static exports found */
  16715. /***/ (function(module, exports, __webpack_require__) {
  16716. "use strict";
  16717. Object.defineProperty(exports, "__esModule", {
  16718. value: true
  16719. });
  16720. exports.default = void 0;
  16721. /*
  16722. * @Author : LQ
  16723. * @Description :
  16724. * @version : 1.0
  16725. * @Date : 2021-08-20 16:44:21
  16726. * @LastAuthor : LQ
  16727. * @lastTime : 2021-08-20 17:18:41
  16728. * @FilePath : /u-view2.0/uview-ui/libs/config/props/readMore.js
  16729. */
  16730. var _default = {
  16731. // readMore
  16732. readMore: {
  16733. showHeight: 400,
  16734. toggle: false,
  16735. closeText: '展开阅读全文',
  16736. openText: '收起',
  16737. color: '#2979ff',
  16738. fontSize: 14,
  16739. textIndent: '2em',
  16740. name: ''
  16741. }
  16742. };
  16743. exports.default = _default;
  16744. /***/ }),
  16745. /* 132 */
  16746. /*!****************************************************************************************************!*\
  16747. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/row.js ***!
  16748. \****************************************************************************************************/
  16749. /*! no static exports found */
  16750. /***/ (function(module, exports, __webpack_require__) {
  16751. "use strict";
  16752. Object.defineProperty(exports, "__esModule", {
  16753. value: true
  16754. });
  16755. exports.default = void 0;
  16756. /*
  16757. * @Author : LQ
  16758. * @Description :
  16759. * @version : 1.0
  16760. * @Date : 2021-08-20 16:44:21
  16761. * @LastAuthor : LQ
  16762. * @lastTime : 2021-08-20 17:18:58
  16763. * @FilePath : /u-view2.0/uview-ui/libs/config/props/row.js
  16764. */
  16765. var _default = {
  16766. // row
  16767. row: {
  16768. gutter: 0,
  16769. justify: 'start',
  16770. align: 'center'
  16771. }
  16772. };
  16773. exports.default = _default;
  16774. /***/ }),
  16775. /* 133 */
  16776. /*!**********************************************************************************************************!*\
  16777. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/rowNotice.js ***!
  16778. \**********************************************************************************************************/
  16779. /*! no static exports found */
  16780. /***/ (function(module, exports, __webpack_require__) {
  16781. "use strict";
  16782. Object.defineProperty(exports, "__esModule", {
  16783. value: true
  16784. });
  16785. exports.default = void 0;
  16786. /*
  16787. * @Author : LQ
  16788. * @Description :
  16789. * @version : 1.0
  16790. * @Date : 2021-08-20 16:44:21
  16791. * @LastAuthor : LQ
  16792. * @lastTime : 2021-08-20 17:19:13
  16793. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rowNotice.js
  16794. */
  16795. var _default = {
  16796. // rowNotice
  16797. rowNotice: {
  16798. text: '',
  16799. icon: 'volume',
  16800. mode: '',
  16801. color: '#f9ae3d',
  16802. bgColor: '#fdf6ec',
  16803. fontSize: 14,
  16804. speed: 80
  16805. }
  16806. };
  16807. exports.default = _default;
  16808. /***/ }),
  16809. /* 134 */
  16810. /*!***********************************************************************************************************!*\
  16811. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/scrollList.js ***!
  16812. \***********************************************************************************************************/
  16813. /*! no static exports found */
  16814. /***/ (function(module, exports, __webpack_require__) {
  16815. "use strict";
  16816. Object.defineProperty(exports, "__esModule", {
  16817. value: true
  16818. });
  16819. exports.default = void 0;
  16820. /*
  16821. * @Author : LQ
  16822. * @Description :
  16823. * @version : 1.0
  16824. * @Date : 2021-08-20 16:44:21
  16825. * @LastAuthor : LQ
  16826. * @lastTime : 2021-08-20 17:19:28
  16827. * @FilePath : /u-view2.0/uview-ui/libs/config/props/scrollList.js
  16828. */
  16829. var _default = {
  16830. // scrollList
  16831. scrollList: {
  16832. indicatorWidth: 50,
  16833. indicatorBarWidth: 20,
  16834. indicator: true,
  16835. indicatorColor: '#f2f2f2',
  16836. indicatorActiveColor: '#3c9cff',
  16837. indicatorStyle: ''
  16838. }
  16839. };
  16840. exports.default = _default;
  16841. /***/ }),
  16842. /* 135 */
  16843. /*!*******************************************************************************************************!*\
  16844. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/search.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:19:45
  16860. * @FilePath : /u-view2.0/uview-ui/libs/config/props/search.js
  16861. */
  16862. var _default = {
  16863. // search
  16864. search: {
  16865. shape: 'round',
  16866. bgColor: '#f2f2f2',
  16867. placeholder: '请输入关键字',
  16868. clearabled: true,
  16869. focus: false,
  16870. showAction: true,
  16871. actionStyle: function actionStyle() {
  16872. return {};
  16873. },
  16874. actionText: '搜索',
  16875. inputAlign: 'left',
  16876. inputStyle: function inputStyle() {
  16877. return {};
  16878. },
  16879. disabled: false,
  16880. borderColor: 'transparent',
  16881. searchIconColor: '#909399',
  16882. searchIconSize: 22,
  16883. color: '#606266',
  16884. placeholderColor: '#909399',
  16885. searchIcon: 'search',
  16886. margin: '0',
  16887. animation: false,
  16888. value: '',
  16889. maxlength: '-1',
  16890. height: 32,
  16891. label: null
  16892. }
  16893. };
  16894. exports.default = _default;
  16895. /***/ }),
  16896. /* 136 */
  16897. /*!********************************************************************************************************!*\
  16898. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/section.js ***!
  16899. \********************************************************************************************************/
  16900. /*! no static exports found */
  16901. /***/ (function(module, exports, __webpack_require__) {
  16902. "use strict";
  16903. Object.defineProperty(exports, "__esModule", {
  16904. value: true
  16905. });
  16906. exports.default = void 0;
  16907. /*
  16908. * @Author : LQ
  16909. * @Description :
  16910. * @version : 1.0
  16911. * @Date : 2021-08-20 16:44:21
  16912. * @LastAuthor : LQ
  16913. * @lastTime : 2021-08-20 17:07:33
  16914. * @FilePath : /u-view2.0/uview-ui/libs/config/props/section.js
  16915. */
  16916. var _default = {
  16917. // u-section组件
  16918. section: {
  16919. title: '',
  16920. subTitle: '更多',
  16921. right: true,
  16922. fontSize: 15,
  16923. bold: true,
  16924. color: '#303133',
  16925. subColor: '#909399',
  16926. showLine: true,
  16927. lineColor: '',
  16928. arrow: true
  16929. }
  16930. };
  16931. exports.default = _default;
  16932. /***/ }),
  16933. /* 137 */
  16934. /*!*********************************************************************************************************!*\
  16935. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/skeleton.js ***!
  16936. \*********************************************************************************************************/
  16937. /*! no static exports found */
  16938. /***/ (function(module, exports, __webpack_require__) {
  16939. "use strict";
  16940. Object.defineProperty(exports, "__esModule", {
  16941. value: true
  16942. });
  16943. exports.default = void 0;
  16944. /*
  16945. * @Author : LQ
  16946. * @Description :
  16947. * @version : 1.0
  16948. * @Date : 2021-08-20 16:44:21
  16949. * @LastAuthor : LQ
  16950. * @lastTime : 2021-08-20 17:20:14
  16951. * @FilePath : /u-view2.0/uview-ui/libs/config/props/skeleton.js
  16952. */
  16953. var _default = {
  16954. // skeleton
  16955. skeleton: {
  16956. loading: true,
  16957. animate: true,
  16958. rows: 0,
  16959. rowsWidth: '100%',
  16960. rowsHeight: 18,
  16961. title: true,
  16962. titleWidth: '50%',
  16963. titleHeight: 18,
  16964. avatar: false,
  16965. avatarSize: 32,
  16966. avatarShape: 'circle'
  16967. }
  16968. };
  16969. exports.default = _default;
  16970. /***/ }),
  16971. /* 138 */
  16972. /*!*******************************************************************************************************!*\
  16973. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/slider.js ***!
  16974. \*******************************************************************************************************/
  16975. /*! no static exports found */
  16976. /***/ (function(module, exports, __webpack_require__) {
  16977. "use strict";
  16978. Object.defineProperty(exports, "__esModule", {
  16979. value: true
  16980. });
  16981. exports.default = void 0;
  16982. /*
  16983. * @Author : LQ
  16984. * @Description :
  16985. * @version : 1.0
  16986. * @Date : 2021-08-20 16:44:21
  16987. * @LastAuthor : LQ
  16988. * @lastTime : 2021-08-20 17:08:25
  16989. * @FilePath : /u-view2.0/uview-ui/libs/config/props/slider.js
  16990. */
  16991. var _default = {
  16992. // slider组件
  16993. slider: {
  16994. value: 0,
  16995. blockSize: 18,
  16996. min: 0,
  16997. max: 100,
  16998. step: 1,
  16999. activeColor: '#2979ff',
  17000. inactiveColor: '#c0c4cc',
  17001. blockColor: '#ffffff',
  17002. showValue: false,
  17003. disabled: false,
  17004. blockStyle: function blockStyle() {}
  17005. }
  17006. };
  17007. exports.default = _default;
  17008. /***/ }),
  17009. /* 139 */
  17010. /*!**********************************************************************************************************!*\
  17011. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/statusBar.js ***!
  17012. \**********************************************************************************************************/
  17013. /*! no static exports found */
  17014. /***/ (function(module, exports, __webpack_require__) {
  17015. "use strict";
  17016. Object.defineProperty(exports, "__esModule", {
  17017. value: true
  17018. });
  17019. exports.default = void 0;
  17020. /*
  17021. * @Author : LQ
  17022. * @Description :
  17023. * @version : 1.0
  17024. * @Date : 2021-08-20 16:44:21
  17025. * @LastAuthor : LQ
  17026. * @lastTime : 2021-08-20 17:20:39
  17027. * @FilePath : /u-view2.0/uview-ui/libs/config/props/statusBar.js
  17028. */
  17029. var _default = {
  17030. // statusBar
  17031. statusBar: {
  17032. bgColor: 'transparent'
  17033. }
  17034. };
  17035. exports.default = _default;
  17036. /***/ }),
  17037. /* 140 */
  17038. /*!******************************************************************************************************!*\
  17039. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/steps.js ***!
  17040. \******************************************************************************************************/
  17041. /*! no static exports found */
  17042. /***/ (function(module, exports, __webpack_require__) {
  17043. "use strict";
  17044. Object.defineProperty(exports, "__esModule", {
  17045. value: true
  17046. });
  17047. exports.default = void 0;
  17048. /*
  17049. * @Author : LQ
  17050. * @Description :
  17051. * @version : 1.0
  17052. * @Date : 2021-08-20 16:44:21
  17053. * @LastAuthor : LQ
  17054. * @lastTime : 2021-08-20 17:12:37
  17055. * @FilePath : /u-view2.0/uview-ui/libs/config/props/steps.js
  17056. */
  17057. var _default = {
  17058. // steps组件
  17059. steps: {
  17060. direction: 'row',
  17061. current: 0,
  17062. activeColor: '#3c9cff',
  17063. inactiveColor: '#969799',
  17064. activeIcon: '',
  17065. inactiveIcon: '',
  17066. dot: false
  17067. }
  17068. };
  17069. exports.default = _default;
  17070. /***/ }),
  17071. /* 141 */
  17072. /*!**********************************************************************************************************!*\
  17073. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/stepsItem.js ***!
  17074. \**********************************************************************************************************/
  17075. /*! no static exports found */
  17076. /***/ (function(module, exports, __webpack_require__) {
  17077. "use strict";
  17078. Object.defineProperty(exports, "__esModule", {
  17079. value: true
  17080. });
  17081. exports.default = void 0;
  17082. /*
  17083. * @Author : LQ
  17084. * @Description :
  17085. * @version : 1.0
  17086. * @Date : 2021-08-20 16:44:21
  17087. * @LastAuthor : LQ
  17088. * @lastTime : 2021-08-20 17:12:55
  17089. * @FilePath : /u-view2.0/uview-ui/libs/config/props/stepsItem.js
  17090. */
  17091. var _default = {
  17092. // steps-item组件
  17093. stepsItem: {
  17094. title: '',
  17095. desc: '',
  17096. iconSize: 17,
  17097. error: false
  17098. }
  17099. };
  17100. exports.default = _default;
  17101. /***/ }),
  17102. /* 142 */
  17103. /*!*******************************************************************************************************!*\
  17104. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/sticky.js ***!
  17105. \*******************************************************************************************************/
  17106. /*! no static exports found */
  17107. /***/ (function(module, exports, __webpack_require__) {
  17108. "use strict";
  17109. Object.defineProperty(exports, "__esModule", {
  17110. value: true
  17111. });
  17112. exports.default = void 0;
  17113. /*
  17114. * @Author : LQ
  17115. * @Description :
  17116. * @version : 1.0
  17117. * @Date : 2021-08-20 16:44:21
  17118. * @LastAuthor : LQ
  17119. * @lastTime : 2021-08-20 17:01:30
  17120. * @FilePath : /u-view2.0/uview-ui/libs/config/props/sticky.js
  17121. */
  17122. var _default = {
  17123. // sticky组件
  17124. sticky: {
  17125. offsetTop: 0,
  17126. customNavHeight: 0,
  17127. disabled: false,
  17128. bgColor: 'transparent',
  17129. zIndex: '',
  17130. index: ''
  17131. }
  17132. };
  17133. exports.default = _default;
  17134. /***/ }),
  17135. /* 143 */
  17136. /*!***********************************************************************************************************!*\
  17137. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/subsection.js ***!
  17138. \***********************************************************************************************************/
  17139. /*! no static exports found */
  17140. /***/ (function(module, exports, __webpack_require__) {
  17141. "use strict";
  17142. Object.defineProperty(exports, "__esModule", {
  17143. value: true
  17144. });
  17145. exports.default = void 0;
  17146. /*
  17147. * @Author : LQ
  17148. * @Description :
  17149. * @version : 1.0
  17150. * @Date : 2021-08-20 16:44:21
  17151. * @LastAuthor : LQ
  17152. * @lastTime : 2021-08-20 17:12:20
  17153. * @FilePath : /u-view2.0/uview-ui/libs/config/props/subsection.js
  17154. */
  17155. var _default = {
  17156. // subsection组件
  17157. subsection: {
  17158. list: [],
  17159. current: 0,
  17160. activeColor: '#3c9cff',
  17161. inactiveColor: '#303133',
  17162. mode: 'button',
  17163. fontSize: 12,
  17164. bold: true,
  17165. bgColor: '#eeeeef',
  17166. keyName: 'name'
  17167. }
  17168. };
  17169. exports.default = _default;
  17170. /***/ }),
  17171. /* 144 */
  17172. /*!************************************************************************************************************!*\
  17173. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/swipeAction.js ***!
  17174. \************************************************************************************************************/
  17175. /*! no static exports found */
  17176. /***/ (function(module, exports, __webpack_require__) {
  17177. "use strict";
  17178. Object.defineProperty(exports, "__esModule", {
  17179. value: true
  17180. });
  17181. exports.default = void 0;
  17182. /*
  17183. * @Author : LQ
  17184. * @Description :
  17185. * @version : 1.0
  17186. * @Date : 2021-08-20 16:44:21
  17187. * @LastAuthor : LQ
  17188. * @lastTime : 2021-08-20 17:00:42
  17189. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeAction.js
  17190. */
  17191. var _default = {
  17192. // swipe-action组件
  17193. swipeAction: {
  17194. autoClose: true
  17195. }
  17196. };
  17197. exports.default = _default;
  17198. /***/ }),
  17199. /* 145 */
  17200. /*!****************************************************************************************************************!*\
  17201. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/swipeActionItem.js ***!
  17202. \****************************************************************************************************************/
  17203. /*! no static exports found */
  17204. /***/ (function(module, exports, __webpack_require__) {
  17205. "use strict";
  17206. Object.defineProperty(exports, "__esModule", {
  17207. value: true
  17208. });
  17209. exports.default = void 0;
  17210. /*
  17211. * @Author : LQ
  17212. * @Description :
  17213. * @version : 1.0
  17214. * @Date : 2021-08-20 16:44:21
  17215. * @LastAuthor : LQ
  17216. * @lastTime : 2021-08-20 17:01:13
  17217. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeActionItem.js
  17218. */
  17219. var _default = {
  17220. // swipeActionItem 组件
  17221. swipeActionItem: {
  17222. show: false,
  17223. name: '',
  17224. disabled: false,
  17225. threshold: 20,
  17226. autoClose: true,
  17227. options: [],
  17228. duration: 300
  17229. }
  17230. };
  17231. exports.default = _default;
  17232. /***/ }),
  17233. /* 146 */
  17234. /*!*******************************************************************************************************!*\
  17235. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/swiper.js ***!
  17236. \*******************************************************************************************************/
  17237. /*! no static exports found */
  17238. /***/ (function(module, exports, __webpack_require__) {
  17239. "use strict";
  17240. Object.defineProperty(exports, "__esModule", {
  17241. value: true
  17242. });
  17243. exports.default = void 0;
  17244. /*
  17245. * @Author : LQ
  17246. * @Description :
  17247. * @version : 1.0
  17248. * @Date : 2021-08-20 16:44:21
  17249. * @LastAuthor : LQ
  17250. * @lastTime : 2021-08-20 17:21:38
  17251. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiper.js
  17252. */
  17253. var _default = {
  17254. // swiper 组件
  17255. swiper: {
  17256. list: function list() {
  17257. return [];
  17258. },
  17259. indicator: false,
  17260. indicatorActiveColor: '#FFFFFF',
  17261. indicatorInactiveColor: 'rgba(255, 255, 255, 0.35)',
  17262. indicatorStyle: '',
  17263. indicatorMode: 'line',
  17264. autoplay: true,
  17265. current: 0,
  17266. currentItemId: '',
  17267. interval: 3000,
  17268. duration: 300,
  17269. circular: false,
  17270. previousMargin: 0,
  17271. nextMargin: 0,
  17272. acceleration: false,
  17273. displayMultipleItems: 1,
  17274. easingFunction: 'default',
  17275. keyName: 'url',
  17276. imgMode: 'aspectFill',
  17277. height: 130,
  17278. bgColor: '#f3f4f6',
  17279. radius: 4,
  17280. loading: false,
  17281. showTitle: false
  17282. }
  17283. };
  17284. exports.default = _default;
  17285. /***/ }),
  17286. /* 147 */
  17287. /*!*****************************************************************************************************************!*\
  17288. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/swipterIndicator.js ***!
  17289. \*****************************************************************************************************************/
  17290. /*! no static exports found */
  17291. /***/ (function(module, exports, __webpack_require__) {
  17292. "use strict";
  17293. Object.defineProperty(exports, "__esModule", {
  17294. value: true
  17295. });
  17296. exports.default = void 0;
  17297. /*
  17298. * @Author : LQ
  17299. * @Description :
  17300. * @version : 1.0
  17301. * @Date : 2021-08-20 16:44:21
  17302. * @LastAuthor : LQ
  17303. * @lastTime : 2021-08-20 17:22:07
  17304. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiperIndicator.js
  17305. */
  17306. var _default = {
  17307. // swiperIndicator 组件
  17308. swiperIndicator: {
  17309. length: 0,
  17310. current: 0,
  17311. indicatorActiveColor: '',
  17312. indicatorInactiveColor: '',
  17313. indicatorMode: 'line'
  17314. }
  17315. };
  17316. exports.default = _default;
  17317. /***/ }),
  17318. /* 148 */
  17319. /*!*******************************************************************************************************!*\
  17320. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/switch.js ***!
  17321. \*******************************************************************************************************/
  17322. /*! no static exports found */
  17323. /***/ (function(module, exports, __webpack_require__) {
  17324. "use strict";
  17325. Object.defineProperty(exports, "__esModule", {
  17326. value: true
  17327. });
  17328. exports.default = void 0;
  17329. /*
  17330. * @Author : LQ
  17331. * @Description :
  17332. * @version : 1.0
  17333. * @Date : 2021-08-20 16:44:21
  17334. * @LastAuthor : LQ
  17335. * @lastTime : 2021-08-20 17:22:24
  17336. * @FilePath : /u-view2.0/uview-ui/libs/config/props/switch.js
  17337. */
  17338. var _default = {
  17339. // switch
  17340. switch: {
  17341. loading: false,
  17342. disabled: false,
  17343. size: 25,
  17344. activeColor: '#2979ff',
  17345. inactiveColor: '#ffffff',
  17346. value: false,
  17347. activeValue: true,
  17348. inactiveValue: false,
  17349. asyncChange: false,
  17350. space: 0
  17351. }
  17352. };
  17353. exports.default = _default;
  17354. /***/ }),
  17355. /* 149 */
  17356. /*!*******************************************************************************************************!*\
  17357. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/tabbar.js ***!
  17358. \*******************************************************************************************************/
  17359. /*! no static exports found */
  17360. /***/ (function(module, exports, __webpack_require__) {
  17361. "use strict";
  17362. Object.defineProperty(exports, "__esModule", {
  17363. value: true
  17364. });
  17365. exports.default = void 0;
  17366. /*
  17367. * @Author : LQ
  17368. * @Description :
  17369. * @version : 1.0
  17370. * @Date : 2021-08-20 16:44:21
  17371. * @LastAuthor : LQ
  17372. * @lastTime : 2021-08-20 17:22:40
  17373. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbar.js
  17374. */
  17375. var _default = {
  17376. // tabbar
  17377. tabbar: {
  17378. value: null,
  17379. safeAreaInsetBottom: true,
  17380. border: true,
  17381. zIndex: 1,
  17382. activeColor: '#1989fa',
  17383. inactiveColor: '#7d7e80',
  17384. fixed: true,
  17385. placeholder: true
  17386. }
  17387. };
  17388. exports.default = _default;
  17389. /***/ }),
  17390. /* 150 */
  17391. /*!***********************************************************************************************************!*\
  17392. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/tabbarItem.js ***!
  17393. \***********************************************************************************************************/
  17394. /*! no static exports found */
  17395. /***/ (function(module, exports, __webpack_require__) {
  17396. "use strict";
  17397. Object.defineProperty(exports, "__esModule", {
  17398. value: true
  17399. });
  17400. exports.default = void 0;
  17401. /*
  17402. * @Author : LQ
  17403. * @Description :
  17404. * @version : 1.0
  17405. * @Date : 2021-08-20 16:44:21
  17406. * @LastAuthor : LQ
  17407. * @lastTime : 2021-08-20 17:22:55
  17408. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbarItem.js
  17409. */
  17410. var _default = {
  17411. //
  17412. tabbarItem: {
  17413. name: null,
  17414. icon: '',
  17415. badge: null,
  17416. dot: false,
  17417. text: '',
  17418. badgeStyle: 'top: 6px;right:2px;'
  17419. }
  17420. };
  17421. exports.default = _default;
  17422. /***/ }),
  17423. /* 151 */
  17424. /*!*****************************************************************************************************!*\
  17425. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/tabs.js ***!
  17426. \*****************************************************************************************************/
  17427. /*! no static exports found */
  17428. /***/ (function(module, exports, __webpack_require__) {
  17429. "use strict";
  17430. Object.defineProperty(exports, "__esModule", {
  17431. value: true
  17432. });
  17433. exports.default = void 0;
  17434. /*
  17435. * @Author : LQ
  17436. * @Description :
  17437. * @version : 1.0
  17438. * @Date : 2021-08-20 16:44:21
  17439. * @LastAuthor : LQ
  17440. * @lastTime : 2021-08-20 17:23:14
  17441. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabs.js
  17442. */
  17443. var _default = {
  17444. //
  17445. tabs: {
  17446. duration: 300,
  17447. list: function list() {
  17448. return [];
  17449. },
  17450. lineColor: '#3c9cff',
  17451. activeStyle: function activeStyle() {
  17452. return {
  17453. color: '#303133'
  17454. };
  17455. },
  17456. inactiveStyle: function inactiveStyle() {
  17457. return {
  17458. color: '#606266'
  17459. };
  17460. },
  17461. lineWidth: 20,
  17462. lineHeight: 3,
  17463. lineBgSize: 'cover',
  17464. itemStyle: function itemStyle() {
  17465. return {
  17466. height: '44px'
  17467. };
  17468. },
  17469. scrollable: true,
  17470. current: 0,
  17471. keyName: 'name'
  17472. }
  17473. };
  17474. exports.default = _default;
  17475. /***/ }),
  17476. /* 152 */
  17477. /*!****************************************************************************************************!*\
  17478. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/tag.js ***!
  17479. \****************************************************************************************************/
  17480. /*! no static exports found */
  17481. /***/ (function(module, exports, __webpack_require__) {
  17482. "use strict";
  17483. Object.defineProperty(exports, "__esModule", {
  17484. value: true
  17485. });
  17486. exports.default = void 0;
  17487. /*
  17488. * @Author : LQ
  17489. * @Description :
  17490. * @version : 1.0
  17491. * @Date : 2021-08-20 16:44:21
  17492. * @LastAuthor : LQ
  17493. * @lastTime : 2021-08-20 17:23:37
  17494. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tag.js
  17495. */
  17496. var _default = {
  17497. // tag 组件
  17498. tag: {
  17499. type: 'primary',
  17500. disabled: false,
  17501. size: 'medium',
  17502. shape: 'square',
  17503. text: '',
  17504. bgColor: '',
  17505. color: '',
  17506. borderColor: '',
  17507. closeColor: '#C6C7CB',
  17508. name: '',
  17509. plainFill: false,
  17510. plain: false,
  17511. closable: false,
  17512. show: true,
  17513. icon: ''
  17514. }
  17515. };
  17516. exports.default = _default;
  17517. /***/ }),
  17518. /* 153 */
  17519. /*!*****************************************************************************************************!*\
  17520. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/text.js ***!
  17521. \*****************************************************************************************************/
  17522. /*! no static exports found */
  17523. /***/ (function(module, exports, __webpack_require__) {
  17524. "use strict";
  17525. Object.defineProperty(exports, "__esModule", {
  17526. value: true
  17527. });
  17528. exports.default = void 0;
  17529. /*
  17530. * @Author : LQ
  17531. * @Description :
  17532. * @version : 1.0
  17533. * @Date : 2021-08-20 16:44:21
  17534. * @LastAuthor : LQ
  17535. * @lastTime : 2021-08-20 17:23:58
  17536. * @FilePath : /u-view2.0/uview-ui/libs/config/props/text.js
  17537. */
  17538. var _default = {
  17539. // text 组件
  17540. text: {
  17541. type: '',
  17542. show: true,
  17543. text: '',
  17544. prefixIcon: '',
  17545. suffixIcon: '',
  17546. mode: '',
  17547. href: '',
  17548. format: '',
  17549. call: false,
  17550. openType: '',
  17551. bold: false,
  17552. block: false,
  17553. lines: '',
  17554. color: '#303133',
  17555. size: 15,
  17556. iconStyle: function iconStyle() {
  17557. return {
  17558. fontSize: '15px'
  17559. };
  17560. },
  17561. decoration: 'none',
  17562. margin: 0,
  17563. lineHeight: '',
  17564. align: 'left',
  17565. wordWrap: 'normal'
  17566. }
  17567. };
  17568. exports.default = _default;
  17569. /***/ }),
  17570. /* 154 */
  17571. /*!*********************************************************************************************************!*\
  17572. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/textarea.js ***!
  17573. \*********************************************************************************************************/
  17574. /*! no static exports found */
  17575. /***/ (function(module, exports, __webpack_require__) {
  17576. "use strict";
  17577. Object.defineProperty(exports, "__esModule", {
  17578. value: true
  17579. });
  17580. exports.default = void 0;
  17581. /*
  17582. * @Author : LQ
  17583. * @Description :
  17584. * @version : 1.0
  17585. * @Date : 2021-08-20 16:44:21
  17586. * @LastAuthor : LQ
  17587. * @lastTime : 2021-08-20 17:24:32
  17588. * @FilePath : /u-view2.0/uview-ui/libs/config/props/textarea.js
  17589. */
  17590. var _default = {
  17591. // textarea 组件
  17592. textarea: {
  17593. value: '',
  17594. placeholder: '',
  17595. placeholderClass: 'textarea-placeholder',
  17596. placeholderStyle: 'color: #c0c4cc',
  17597. height: 70,
  17598. confirmType: '',
  17599. disabled: false,
  17600. count: false,
  17601. focus: false,
  17602. autoHeight: false,
  17603. fixed: false,
  17604. cursorSpacing: 0,
  17605. cursor: '',
  17606. showConfirmBar: true,
  17607. selectionStart: -1,
  17608. selectionEnd: -1,
  17609. adjustPosition: true,
  17610. disableDefaultPadding: false,
  17611. holdKeyboard: false,
  17612. maxlength: 140,
  17613. border: 'surround',
  17614. formatter: null
  17615. }
  17616. };
  17617. exports.default = _default;
  17618. /***/ }),
  17619. /* 155 */
  17620. /*!******************************************************************************************************!*\
  17621. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/toast.js ***!
  17622. \******************************************************************************************************/
  17623. /*! no static exports found */
  17624. /***/ (function(module, exports, __webpack_require__) {
  17625. "use strict";
  17626. Object.defineProperty(exports, "__esModule", {
  17627. value: true
  17628. });
  17629. exports.default = void 0;
  17630. /*
  17631. * @Author : LQ
  17632. * @Description :
  17633. * @version : 1.0
  17634. * @Date : 2021-08-20 16:44:21
  17635. * @LastAuthor : LQ
  17636. * @lastTime : 2021-08-20 17:07:07
  17637. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toast.js
  17638. */
  17639. var _default = {
  17640. // toast组件
  17641. toast: {
  17642. zIndex: 10090,
  17643. loading: false,
  17644. text: '',
  17645. icon: '',
  17646. type: '',
  17647. loadingMode: '',
  17648. show: '',
  17649. overlay: false,
  17650. position: 'center',
  17651. params: function params() {},
  17652. duration: 2000,
  17653. isTab: false,
  17654. url: '',
  17655. callback: null,
  17656. back: false
  17657. }
  17658. };
  17659. exports.default = _default;
  17660. /***/ }),
  17661. /* 156 */
  17662. /*!********************************************************************************************************!*\
  17663. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/toolbar.js ***!
  17664. \********************************************************************************************************/
  17665. /*! no static exports found */
  17666. /***/ (function(module, exports, __webpack_require__) {
  17667. "use strict";
  17668. Object.defineProperty(exports, "__esModule", {
  17669. value: true
  17670. });
  17671. exports.default = void 0;
  17672. /*
  17673. * @Author : LQ
  17674. * @Description :
  17675. * @version : 1.0
  17676. * @Date : 2021-08-20 16:44:21
  17677. * @LastAuthor : LQ
  17678. * @lastTime : 2021-08-20 17:24:55
  17679. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toolbar.js
  17680. */
  17681. var _default = {
  17682. // toolbar 组件
  17683. toolbar: {
  17684. show: true,
  17685. cancelText: '取消',
  17686. confirmText: '确认',
  17687. cancelColor: '#909193',
  17688. confirmColor: '#3c9cff',
  17689. title: ''
  17690. }
  17691. };
  17692. exports.default = _default;
  17693. /***/ }),
  17694. /* 157 */
  17695. /*!********************************************************************************************************!*\
  17696. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/tooltip.js ***!
  17697. \********************************************************************************************************/
  17698. /*! no static exports found */
  17699. /***/ (function(module, exports, __webpack_require__) {
  17700. "use strict";
  17701. Object.defineProperty(exports, "__esModule", {
  17702. value: true
  17703. });
  17704. exports.default = void 0;
  17705. /*
  17706. * @Author : LQ
  17707. * @Description :
  17708. * @version : 1.0
  17709. * @Date : 2021-08-20 16:44:21
  17710. * @LastAuthor : LQ
  17711. * @lastTime : 2021-08-20 17:25:14
  17712. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tooltip.js
  17713. */
  17714. var _default = {
  17715. // tooltip 组件
  17716. tooltip: {
  17717. text: '',
  17718. copyText: '',
  17719. size: 14,
  17720. color: '#606266',
  17721. bgColor: 'transparent',
  17722. direction: 'top',
  17723. zIndex: 10071,
  17724. showCopy: true,
  17725. buttons: function buttons() {
  17726. return [];
  17727. },
  17728. overlay: true,
  17729. showToast: true
  17730. }
  17731. };
  17732. exports.default = _default;
  17733. /***/ }),
  17734. /* 158 */
  17735. /*!***********************************************************************************************************!*\
  17736. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/transition.js ***!
  17737. \***********************************************************************************************************/
  17738. /*! no static exports found */
  17739. /***/ (function(module, exports, __webpack_require__) {
  17740. "use strict";
  17741. Object.defineProperty(exports, "__esModule", {
  17742. value: true
  17743. });
  17744. exports.default = void 0;
  17745. /*
  17746. * @Author : LQ
  17747. * @Description :
  17748. * @version : 1.0
  17749. * @Date : 2021-08-20 16:44:21
  17750. * @LastAuthor : LQ
  17751. * @lastTime : 2021-08-20 16:59:00
  17752. * @FilePath : /u-view2.0/uview-ui/libs/config/props/transition.js
  17753. */
  17754. var _default = {
  17755. // transition动画组件的props
  17756. transition: {
  17757. show: false,
  17758. mode: 'fade',
  17759. duration: '300',
  17760. timingFunction: 'ease-out'
  17761. }
  17762. };
  17763. exports.default = _default;
  17764. /***/ }),
  17765. /* 159 */
  17766. /*!*******************************************************************************************************!*\
  17767. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/props/upload.js ***!
  17768. \*******************************************************************************************************/
  17769. /*! no static exports found */
  17770. /***/ (function(module, exports, __webpack_require__) {
  17771. "use strict";
  17772. Object.defineProperty(exports, "__esModule", {
  17773. value: true
  17774. });
  17775. exports.default = void 0;
  17776. /*
  17777. * @Author : LQ
  17778. * @Description :
  17779. * @version : 1.0
  17780. * @Date : 2021-08-20 16:44:21
  17781. * @LastAuthor : LQ
  17782. * @lastTime : 2021-08-20 17:09:50
  17783. * @FilePath : /u-view2.0/uview-ui/libs/config/props/upload.js
  17784. */
  17785. var _default = {
  17786. // upload组件
  17787. upload: {
  17788. accept: 'image',
  17789. capture: function capture() {
  17790. return ['album', 'camera'];
  17791. },
  17792. compressed: true,
  17793. camera: 'back',
  17794. maxDuration: 60,
  17795. uploadIcon: 'camera-fill',
  17796. uploadIconColor: '#D3D4D6',
  17797. useBeforeRead: false,
  17798. previewFullImage: true,
  17799. maxCount: 52,
  17800. disabled: false,
  17801. imageMode: 'aspectFill',
  17802. name: '',
  17803. sizeType: function sizeType() {
  17804. return ['original', 'compressed'];
  17805. },
  17806. multiple: false,
  17807. deletable: true,
  17808. maxSize: Number.MAX_VALUE,
  17809. fileList: function fileList() {
  17810. return [];
  17811. },
  17812. uploadText: '',
  17813. width: 80,
  17814. height: 80,
  17815. previewImage: true
  17816. }
  17817. };
  17818. exports.default = _default;
  17819. /***/ }),
  17820. /* 160 */
  17821. /*!*************************************************************************************************!*\
  17822. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/config/zIndex.js ***!
  17823. \*************************************************************************************************/
  17824. /*! no static exports found */
  17825. /***/ (function(module, exports, __webpack_require__) {
  17826. "use strict";
  17827. Object.defineProperty(exports, "__esModule", {
  17828. value: true
  17829. });
  17830. exports.default = void 0;
  17831. // uniapp在H5中各API的z-index值如下:
  17832. /**
  17833. * actionsheet: 999
  17834. * modal: 999
  17835. * navigate: 998
  17836. * tabbar: 998
  17837. * toast: 999
  17838. */
  17839. var _default = {
  17840. toast: 10090,
  17841. noNetwork: 10080,
  17842. // popup包含popup,actionsheet,keyboard,picker的值
  17843. popup: 10075,
  17844. mask: 10070,
  17845. navbar: 980,
  17846. topTips: 975,
  17847. sticky: 970,
  17848. indexListSticky: 965
  17849. };
  17850. exports.default = _default;
  17851. /***/ }),
  17852. /* 161 */
  17853. /*!*****************************************************************************************************!*\
  17854. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/function/platform.js ***!
  17855. \*****************************************************************************************************/
  17856. /*! no static exports found */
  17857. /***/ (function(module, exports, __webpack_require__) {
  17858. "use strict";
  17859. Object.defineProperty(exports, "__esModule", {
  17860. value: true
  17861. });
  17862. exports.default = void 0;
  17863. /**
  17864. * 注意:
  17865. * 此部分内容,在vue-cli模式下,需要在vue.config.js加入如下内容才有效:
  17866. * module.exports = {
  17867. * transpileDependencies: ['uview-v2']
  17868. * }
  17869. */
  17870. var platform = 'none';
  17871. platform = 'vue2';
  17872. platform = 'weixin';
  17873. platform = 'mp';
  17874. var _default = platform;
  17875. exports.default = _default;
  17876. /***/ }),
  17877. /* 162 */,
  17878. /* 163 */,
  17879. /* 164 */,
  17880. /* 165 */,
  17881. /* 166 */,
  17882. /* 167 */,
  17883. /* 168 */,
  17884. /* 169 */,
  17885. /* 170 */,
  17886. /* 171 */,
  17887. /* 172 */,
  17888. /* 173 */,
  17889. /* 174 */,
  17890. /* 175 */,
  17891. /* 176 */,
  17892. /* 177 */,
  17893. /* 178 */,
  17894. /* 179 */,
  17895. /* 180 */,
  17896. /* 181 */,
  17897. /* 182 */,
  17898. /* 183 */,
  17899. /* 184 */,
  17900. /* 185 */,
  17901. /* 186 */,
  17902. /* 187 */,
  17903. /* 188 */,
  17904. /* 189 */
  17905. /*!******************************************************************!*\
  17906. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/api/info.js ***!
  17907. \******************************************************************/
  17908. /*! no static exports found */
  17909. /***/ (function(module, exports, __webpack_require__) {
  17910. "use strict";
  17911. Object.defineProperty(exports, "__esModule", {
  17912. value: true
  17913. });
  17914. exports.getInfoType = exports.getInfoList = void 0;
  17915. var _request = __webpack_require__(/*! @/utils/request.js */ 36);
  17916. // 资讯列表
  17917. var getInfoList = function getInfoList(data) {
  17918. return (0, _request.request)({
  17919. url: '/info/infoContent/list',
  17920. method: 'get',
  17921. data: data
  17922. });
  17923. };
  17924. // 资讯分类
  17925. exports.getInfoList = getInfoList;
  17926. var getInfoType = function getInfoType(data) {
  17927. return (0, _request.request)({
  17928. url: '/info/category/list',
  17929. method: 'get',
  17930. data: data
  17931. });
  17932. };
  17933. exports.getInfoType = getInfoType;
  17934. /***/ }),
  17935. /* 190 */
  17936. /*!********************************************************************!*\
  17937. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/utils/util.js ***!
  17938. \********************************************************************/
  17939. /*! no static exports found */
  17940. /***/ (function(module, exports, __webpack_require__) {
  17941. "use strict";
  17942. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  17943. Object.defineProperty(exports, "__esModule", {
  17944. value: true
  17945. });
  17946. exports.formatDate = formatDate;
  17947. exports.parseTime = exports.getNowdate = exports.formatTime = void 0;
  17948. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  17949. var _arguments = typeof arguments === "undefined" ? void 0 : arguments;
  17950. var formatTime = function formatTime(date) {
  17951. var year = date.getFullYear();
  17952. var month = date.getMonth() + 1;
  17953. var day = date.getDate();
  17954. var hour = date.getHours();
  17955. var minute = date.getMinutes();
  17956. var second = date.getSeconds();
  17957. return [year, month, day].map(formatNumber).join('/') + ' ' + [hour, minute, second].map(formatNumber).join(':');
  17958. };
  17959. exports.formatTime = formatTime;
  17960. var formatNumber = function formatNumber(n) {
  17961. n = n.toString();
  17962. return n[1] ? n : '0' + n;
  17963. };
  17964. var getNowdate = function getNowdate(date) {
  17965. var year = date.getFullYear();
  17966. var month = date.getMonth() + 1;
  17967. var day = date.getDate();
  17968. var hour = date.getHours();
  17969. var minute = date.getMinutes();
  17970. var second = date.getSeconds();
  17971. return year + '-' + month + '-' + day;
  17972. };
  17973. /**
  17974. * 日期格式化
  17975. * @param { String | Objcet } time js 时间格式的字符串; java 时间格式的字符串; js 时间对象
  17976. * @param { String } pattern day.js 的占位符字符
  17977. * @returns String 格式化后的时间
  17978. */
  17979. exports.getNowdate = getNowdate;
  17980. var parseTime = function parseTime(time, pattern) {
  17981. if (_arguments.length === 0 || !time) {
  17982. return null;
  17983. }
  17984. var format = pattern || '{y}-{m}-{d} {h}:{i}:{s}';
  17985. var date;
  17986. if ((0, _typeof2.default)(time) === 'object') {
  17987. date = time;
  17988. } else {
  17989. if (typeof time === 'string' && /^[0-9]+$/.test(time)) {
  17990. time = parseInt(time);
  17991. } else if (typeof time === 'string') {
  17992. time = time.replace(new RegExp(/-/gm), '/').replace('T', ' ').replace(new RegExp(/\.[\d]{3}/gm), '');
  17993. }
  17994. if (typeof time === 'number' && time.toString().length === 10) {
  17995. time = time * 1000;
  17996. }
  17997. date = new Date(time);
  17998. }
  17999. var formatObj = {
  18000. y: date.getFullYear(),
  18001. m: date.getMonth() + 1,
  18002. d: date.getDate(),
  18003. h: date.getHours(),
  18004. i: date.getMinutes(),
  18005. s: date.getSeconds(),
  18006. a: date.getDay()
  18007. };
  18008. var time_str = format.replace(/{(y|m|d|h|i|s|a)+}/g, function (result, key) {
  18009. var value = formatObj[key];
  18010. // Note: getDay() returns 0 on Sunday
  18011. if (key === 'a') {
  18012. return ['日', '一', '二', '三', '四', '五', '六'][value];
  18013. }
  18014. if (result.length > 0 && value < 10) {
  18015. value = '0' + value;
  18016. }
  18017. return value || 0;
  18018. });
  18019. return time_str;
  18020. };
  18021. /**
  18022. * @desc 格式化日期字符串
  18023. * @param { Nubmer} - 时间戳
  18024. * @returns { String } 格式化后的日期字符串
  18025. */
  18026. exports.parseTime = parseTime;
  18027. function formatDate(timestamp) {
  18028. // 补全为13位
  18029. var arrTimestamp = (timestamp + '').split('');
  18030. for (var start = 0; start < 13; start++) {
  18031. if (!arrTimestamp[start]) {
  18032. arrTimestamp[start] = '0';
  18033. }
  18034. }
  18035. timestamp = arrTimestamp.join('') * 1;
  18036. var minute = 1000 * 60;
  18037. var hour = minute * 60;
  18038. var day = hour * 24;
  18039. var month = day * 30;
  18040. var now = new Date().getTime();
  18041. var diffValue = now - timestamp;
  18042. // 如果本地时间反而小于变量时间
  18043. if (diffValue < 0) {
  18044. return '不久前';
  18045. }
  18046. // 计算差异时间的量级
  18047. var monthC = diffValue / month;
  18048. var weekC = diffValue / (7 * day);
  18049. var dayC = diffValue / day;
  18050. var hourC = diffValue / hour;
  18051. var minC = diffValue / minute;
  18052. // 数值补0方法
  18053. var zero = function zero(value) {
  18054. if (value < 10) {
  18055. return '0' + value;
  18056. }
  18057. return value;
  18058. };
  18059. if (monthC > 4) {
  18060. // 超过1年,直接显示年月日
  18061. return function () {
  18062. var date = new Date(timestamp);
  18063. return date.getFullYear() + '-' + zero(date.getMonth() + 1) + '-' + zero(date.getDate()) + '-';
  18064. }();
  18065. } else if (monthC >= 1) {
  18066. return parseInt(monthC) + '月前';
  18067. } else if (weekC >= 1) {
  18068. return parseInt(weekC) + '周前';
  18069. } else if (dayC >= 1) {
  18070. return parseInt(dayC) + '天前';
  18071. } else if (hourC >= 1) {
  18072. return parseInt(hourC) + '小时前';
  18073. } else if (minC >= 1) {
  18074. return parseInt(minC) + '分钟前';
  18075. }
  18076. return '刚刚';
  18077. }
  18078. /***/ }),
  18079. /* 191 */,
  18080. /* 192 */,
  18081. /* 193 */,
  18082. /* 194 */,
  18083. /* 195 */,
  18084. /* 196 */,
  18085. /* 197 */,
  18086. /* 198 */,
  18087. /* 199 */
  18088. /*!*******************************************************************!*\
  18089. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/api/video.js ***!
  18090. \*******************************************************************/
  18091. /*! no static exports found */
  18092. /***/ (function(module, exports, __webpack_require__) {
  18093. "use strict";
  18094. Object.defineProperty(exports, "__esModule", {
  18095. value: true
  18096. });
  18097. exports.getVideoType = exports.getVideoList = void 0;
  18098. var _request = __webpack_require__(/*! @/utils/request.js */ 36);
  18099. // 视频列表
  18100. var getVideoList = function getVideoList(data) {
  18101. return (0, _request.request)({
  18102. url: '/video/content/list',
  18103. method: 'get',
  18104. data: data
  18105. });
  18106. };
  18107. // 视频分类
  18108. exports.getVideoList = getVideoList;
  18109. var getVideoType = function getVideoType(data) {
  18110. return (0, _request.request)({
  18111. url: '/video/category/list',
  18112. method: 'get',
  18113. data: data
  18114. });
  18115. };
  18116. exports.getVideoType = getVideoType;
  18117. /***/ }),
  18118. /* 200 */,
  18119. /* 201 */,
  18120. /* 202 */,
  18121. /* 203 */,
  18122. /* 204 */,
  18123. /* 205 */,
  18124. /* 206 */,
  18125. /* 207 */,
  18126. /* 208 */,
  18127. /* 209 */,
  18128. /* 210 */,
  18129. /* 211 */,
  18130. /* 212 */,
  18131. /* 213 */,
  18132. /* 214 */,
  18133. /* 215 */,
  18134. /* 216 */
  18135. /*!*********************************************************************!*\
  18136. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/utils/login.js ***!
  18137. \*********************************************************************/
  18138. /*! no static exports found */
  18139. /***/ (function(module, exports, __webpack_require__) {
  18140. "use strict";
  18141. /* WEBPACK VAR INJECTION */(function(uni) {
  18142. Object.defineProperty(exports, "__esModule", {
  18143. value: true
  18144. });
  18145. exports.login = exports.isLogin = void 0;
  18146. var _request = __webpack_require__(/*! ./request.js */ 36);
  18147. var _apiconfig = __webpack_require__(/*! ./apiconfig */ 38);
  18148. var _auth = __webpack_require__(/*! ./auth */ 37);
  18149. var isLogin = function isLogin() {
  18150. // {
  18151. // avatar: "ace4115743d581b60b34f9a93455e51c.jpeg"
  18152. // avatar2: "http://tmp00002.learv.com/ace4115743d581b60b34f9a93455e51c.jpeg"
  18153. // nickname: "默认用户"
  18154. // token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuaWNrbmFtZSI6Ium7mOiupOeUqOaItyIsImF2YXRhciI6ImFjZTQxMTU3NDNkNTgxYjYwYjM0ZjlhOTM0NTVlNTFjLmpwZWciLCJhdmF0YXIyIjoiaHR0cDovL3RtcDAwMDAyLmxlYXJ2LmNvbS9hY2U0MTE1NzQzZDU4MWI2MGIzNGY5YTkzNDU1ZTUxYy5qcGVnIiwib3BlbmlkIjoib010a281RE9QTktQLXVXRDVTZzMwdzlfTzQ3TSIsImlhdCI6MTY5OTg3MDcxNH0.EeUwPzVmzpqAjJo-lOmfh7QMchG0E9I95PwJuzpfvdc"
  18155. // }
  18156. return uni.getStorageSync('userInfo'); // 登录成功-返回上述信息,登录失败-返回布尔假
  18157. };
  18158. exports.isLogin = isLogin;
  18159. var login = function login() {
  18160. uni.login({
  18161. provider: 'weixin',
  18162. success: function success(loginRes) {
  18163. // 登录成功,获取用户code
  18164. console.log('用户登录信息', loginRes);
  18165. // return
  18166. var code = loginRes.code;
  18167. // 发送code到后台换取token
  18168. uni.request({
  18169. url: _apiconfig.baseUrl + "/api/wechat/login?code=".concat(code),
  18170. // 你的登录API地址
  18171. method: 'POST',
  18172. success: function success(res) {
  18173. console.log('登录成功', res);
  18174. if (res.data && res.data.code === 200) {
  18175. // 将token存储到本地
  18176. uni.setStorageSync('token', res.data.token);
  18177. uni.setStorageSync('openid', res.data.openid);
  18178. (0, _auth.setToken)(res.data.token);
  18179. // // 获取用户信息
  18180. // uni.getUserInfo({
  18181. // provider: 'weixin',
  18182. // success: function(infoRes) {
  18183. // console.log('用户昵称为:' + infoRes, infoRes.userInfo
  18184. // .openId, infoRes.userInfo.nickName,
  18185. // infoRes.userInfo.avatarUrl);
  18186. // }
  18187. // });
  18188. } else {
  18189. uni.showToast({
  18190. title: '登录失败',
  18191. icon: 'none'
  18192. });
  18193. }
  18194. },
  18195. fail: function fail(err) {
  18196. console.log('登录失败', err);
  18197. uni.showToast({
  18198. title: '请求失败',
  18199. icon: 'none'
  18200. });
  18201. }
  18202. });
  18203. },
  18204. fail: function fail(err) {
  18205. console.log('uni.login 接口调用失败,将无法正常使用开放接口等服务', err);
  18206. uni.showToast({
  18207. title: '登录失败',
  18208. icon: 'none'
  18209. });
  18210. }
  18211. });
  18212. };
  18213. exports.login = login;
  18214. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18215. /***/ }),
  18216. /* 217 */,
  18217. /* 218 */,
  18218. /* 219 */,
  18219. /* 220 */,
  18220. /* 221 */,
  18221. /* 222 */,
  18222. /* 223 */,
  18223. /* 224 */,
  18224. /* 225 */,
  18225. /* 226 */,
  18226. /* 227 */,
  18227. /* 228 */,
  18228. /* 229 */,
  18229. /* 230 */,
  18230. /* 231 */,
  18231. /* 232 */,
  18232. /* 233 */,
  18233. /* 234 */,
  18234. /* 235 */,
  18235. /* 236 */,
  18236. /* 237 */,
  18237. /* 238 */,
  18238. /* 239 */,
  18239. /* 240 */,
  18240. /* 241 */,
  18241. /* 242 */,
  18242. /* 243 */,
  18243. /* 244 */,
  18244. /* 245 */,
  18245. /* 246 */,
  18246. /* 247 */,
  18247. /* 248 */,
  18248. /* 249 */,
  18249. /* 250 */,
  18250. /* 251 */,
  18251. /* 252 */,
  18252. /* 253 */,
  18253. /* 254 */,
  18254. /* 255 */,
  18255. /* 256 */,
  18256. /* 257 */,
  18257. /* 258 */,
  18258. /* 259 */,
  18259. /* 260 */,
  18260. /* 261 */,
  18261. /* 262 */,
  18262. /* 263 */,
  18263. /* 264 */,
  18264. /* 265 */,
  18265. /* 266 */,
  18266. /* 267 */,
  18267. /* 268 */,
  18268. /* 269 */,
  18269. /* 270 */,
  18270. /* 271 */,
  18271. /* 272 */,
  18272. /* 273 */,
  18273. /* 274 */,
  18274. /* 275 */,
  18275. /* 276 */,
  18276. /* 277 */,
  18277. /* 278 */,
  18278. /* 279 */,
  18279. /* 280 */,
  18280. /* 281 */,
  18281. /* 282 */,
  18282. /* 283 */,
  18283. /* 284 */,
  18284. /* 285 */,
  18285. /* 286 */,
  18286. /* 287 */,
  18287. /* 288 */,
  18288. /* 289 */,
  18289. /* 290 */,
  18290. /* 291 */,
  18291. /* 292 */,
  18292. /* 293 */,
  18293. /* 294 */,
  18294. /* 295 */,
  18295. /* 296 */,
  18296. /* 297 */,
  18297. /* 298 */,
  18298. /* 299 */,
  18299. /* 300 */,
  18300. /* 301 */,
  18301. /* 302 */,
  18302. /* 303 */,
  18303. /* 304 */,
  18304. /* 305 */,
  18305. /* 306 */,
  18306. /* 307 */,
  18307. /* 308 */,
  18308. /* 309 */,
  18309. /* 310 */,
  18310. /* 311 */,
  18311. /* 312 */,
  18312. /* 313 */
  18313. /*!**********************************************************************************************************!*\
  18314. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/components/u-loadmore/props.js ***!
  18315. \**********************************************************************************************************/
  18316. /*! no static exports found */
  18317. /***/ (function(module, exports, __webpack_require__) {
  18318. "use strict";
  18319. /* WEBPACK VAR INJECTION */(function(uni) {
  18320. Object.defineProperty(exports, "__esModule", {
  18321. value: true
  18322. });
  18323. exports.default = void 0;
  18324. var _default = {
  18325. props: {
  18326. // 组件状态,loadmore-加载前的状态,loading-加载中的状态,nomore-没有更多的状态
  18327. status: {
  18328. type: String,
  18329. default: uni.$u.props.loadmore.status
  18330. },
  18331. // 组件背景色
  18332. bgColor: {
  18333. type: String,
  18334. default: uni.$u.props.loadmore.bgColor
  18335. },
  18336. // 是否显示加载中的图标
  18337. icon: {
  18338. type: Boolean,
  18339. default: uni.$u.props.loadmore.icon
  18340. },
  18341. // 字体大小
  18342. fontSize: {
  18343. type: [String, Number],
  18344. default: uni.$u.props.loadmore.fontSize
  18345. },
  18346. // 字体颜色
  18347. color: {
  18348. type: String,
  18349. default: uni.$u.props.loadmore.color
  18350. },
  18351. // 加载中状态的图标,spinner-花朵状图标,circle-圆圈状,semicircle-半圆
  18352. loadingIcon: {
  18353. type: String,
  18354. default: uni.$u.props.loadmore.loadingIcon
  18355. },
  18356. // 加载前的提示语
  18357. loadmoreText: {
  18358. type: String,
  18359. default: uni.$u.props.loadmore.loadmoreText
  18360. },
  18361. // 加载中提示语
  18362. loadingText: {
  18363. type: String,
  18364. default: uni.$u.props.loadmore.loadingText
  18365. },
  18366. // 没有更多的提示语
  18367. nomoreText: {
  18368. type: String,
  18369. default: uni.$u.props.loadmore.nomoreText
  18370. },
  18371. // 在“没有更多”状态下,是否显示粗点
  18372. isDot: {
  18373. type: Boolean,
  18374. default: uni.$u.props.loadmore.isDot
  18375. },
  18376. // 加载中图标的颜色
  18377. iconColor: {
  18378. type: String,
  18379. default: uni.$u.props.loadmore.iconColor
  18380. },
  18381. // 上边距
  18382. marginTop: {
  18383. type: [String, Number],
  18384. default: uni.$u.props.loadmore.marginTop
  18385. },
  18386. // 下边距
  18387. marginBottom: {
  18388. type: [String, Number],
  18389. default: uni.$u.props.loadmore.marginBottom
  18390. },
  18391. // 高度,单位px
  18392. height: {
  18393. type: [String, Number],
  18394. default: uni.$u.props.loadmore.height
  18395. },
  18396. // 是否显示左边分割线
  18397. line: {
  18398. type: Boolean,
  18399. default: uni.$u.props.loadmore.line
  18400. }
  18401. }
  18402. };
  18403. exports.default = _default;
  18404. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18405. /***/ }),
  18406. /* 314 */,
  18407. /* 315 */,
  18408. /* 316 */,
  18409. /* 317 */,
  18410. /* 318 */,
  18411. /* 319 */,
  18412. /* 320 */,
  18413. /* 321 */
  18414. /*!*******************************************************************************************************!*\
  18415. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/components/u-empty/props.js ***!
  18416. \*******************************************************************************************************/
  18417. /*! no static exports found */
  18418. /***/ (function(module, exports, __webpack_require__) {
  18419. "use strict";
  18420. /* WEBPACK VAR INJECTION */(function(uni) {
  18421. Object.defineProperty(exports, "__esModule", {
  18422. value: true
  18423. });
  18424. exports.default = void 0;
  18425. var _default = {
  18426. props: {
  18427. // 内置图标名称,或图片路径,建议绝对路径
  18428. icon: {
  18429. type: String,
  18430. default: uni.$u.props.empty.icon
  18431. },
  18432. // 提示文字
  18433. text: {
  18434. type: String,
  18435. default: uni.$u.props.empty.text
  18436. },
  18437. // 文字颜色
  18438. textColor: {
  18439. type: String,
  18440. default: uni.$u.props.empty.textColor
  18441. },
  18442. // 文字大小
  18443. textSize: {
  18444. type: [String, Number],
  18445. default: uni.$u.props.empty.textSize
  18446. },
  18447. // 图标的颜色
  18448. iconColor: {
  18449. type: String,
  18450. default: uni.$u.props.empty.iconColor
  18451. },
  18452. // 图标的大小
  18453. iconSize: {
  18454. type: [String, Number],
  18455. default: uni.$u.props.empty.iconSize
  18456. },
  18457. // 选择预置的图标类型
  18458. mode: {
  18459. type: String,
  18460. default: uni.$u.props.empty.mode
  18461. },
  18462. // 图标宽度,单位px
  18463. width: {
  18464. type: [String, Number],
  18465. default: uni.$u.props.empty.width
  18466. },
  18467. // 图标高度,单位px
  18468. height: {
  18469. type: [String, Number],
  18470. default: uni.$u.props.empty.height
  18471. },
  18472. // 是否显示组件
  18473. show: {
  18474. type: Boolean,
  18475. default: uni.$u.props.empty.show
  18476. },
  18477. // 组件距离上一个元素之间的距离,默认px单位
  18478. marginTop: {
  18479. type: [String, Number],
  18480. default: uni.$u.props.empty.marginTop
  18481. }
  18482. }
  18483. };
  18484. exports.default = _default;
  18485. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18486. /***/ }),
  18487. /* 322 */,
  18488. /* 323 */,
  18489. /* 324 */,
  18490. /* 325 */,
  18491. /* 326 */,
  18492. /* 327 */,
  18493. /* 328 */,
  18494. /* 329 */,
  18495. /* 330 */,
  18496. /* 331 */,
  18497. /* 332 */,
  18498. /* 333 */,
  18499. /* 334 */,
  18500. /* 335 */,
  18501. /* 336 */
  18502. /*!*******************************************************************************************************!*\
  18503. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/components/u-input/props.js ***!
  18504. \*******************************************************************************************************/
  18505. /*! no static exports found */
  18506. /***/ (function(module, exports, __webpack_require__) {
  18507. "use strict";
  18508. /* WEBPACK VAR INJECTION */(function(uni) {
  18509. Object.defineProperty(exports, "__esModule", {
  18510. value: true
  18511. });
  18512. exports.default = void 0;
  18513. var _default = {
  18514. props: {
  18515. // 输入的值
  18516. value: {
  18517. type: [String, Number],
  18518. default: uni.$u.props.input.value
  18519. },
  18520. // 输入框类型
  18521. // number-数字输入键盘,app-vue下可以输入浮点数,app-nvue和小程序平台下只能输入整数
  18522. // idcard-身份证输入键盘,微信、支付宝、百度、QQ小程序
  18523. // digit-带小数点的数字键盘,App的nvue页面、微信、支付宝、百度、头条、QQ小程序
  18524. // text-文本输入键盘
  18525. type: {
  18526. type: String,
  18527. default: uni.$u.props.input.type
  18528. },
  18529. // 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true,
  18530. // 兼容性:微信小程序、百度小程序、字节跳动小程序、QQ小程序
  18531. fixed: {
  18532. type: Boolean,
  18533. default: uni.$u.props.input.fixed
  18534. },
  18535. // 是否禁用输入框
  18536. disabled: {
  18537. type: Boolean,
  18538. default: uni.$u.props.input.disabled
  18539. },
  18540. // 禁用状态时的背景色
  18541. disabledColor: {
  18542. type: String,
  18543. default: uni.$u.props.input.disabledColor
  18544. },
  18545. // 是否显示清除控件
  18546. clearable: {
  18547. type: Boolean,
  18548. default: uni.$u.props.input.clearable
  18549. },
  18550. // 是否密码类型
  18551. password: {
  18552. type: Boolean,
  18553. default: uni.$u.props.input.password
  18554. },
  18555. // 最大输入长度,设置为 -1 的时候不限制最大长度
  18556. maxlength: {
  18557. type: [String, Number],
  18558. default: uni.$u.props.input.maxlength
  18559. },
  18560. // 输入框为空时的占位符
  18561. placeholder: {
  18562. type: String,
  18563. default: uni.$u.props.input.placeholder
  18564. },
  18565. // 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
  18566. placeholderClass: {
  18567. type: String,
  18568. default: uni.$u.props.input.placeholderClass
  18569. },
  18570. // 指定placeholder的样式
  18571. placeholderStyle: {
  18572. type: [String, Object],
  18573. default: uni.$u.props.input.placeholderStyle
  18574. },
  18575. // 是否显示输入字数统计,只在 type ="text"或type ="textarea"时有效
  18576. showWordLimit: {
  18577. type: Boolean,
  18578. default: uni.$u.props.input.showWordLimit
  18579. },
  18580. // 设置右下角按钮的文字,有效值:send|search|next|go|done,兼容性详见uni-app文档
  18581. // https://uniapp.dcloud.io/component/input
  18582. // https://uniapp.dcloud.io/component/textarea
  18583. confirmType: {
  18584. type: String,
  18585. default: uni.$u.props.input.confirmType
  18586. },
  18587. // 点击键盘右下角按钮时是否保持键盘不收起,H5无效
  18588. confirmHold: {
  18589. type: Boolean,
  18590. default: uni.$u.props.input.confirmHold
  18591. },
  18592. // focus时,点击页面的时候不收起键盘,微信小程序有效
  18593. holdKeyboard: {
  18594. type: Boolean,
  18595. default: uni.$u.props.input.holdKeyboard
  18596. },
  18597. // 自动获取焦点
  18598. // 在 H5 平台能否聚焦以及软键盘是否跟随弹出,取决于当前浏览器本身的实现。nvue 页面不支持,需使用组件的 focus()、blur() 方法控制焦点
  18599. focus: {
  18600. type: Boolean,
  18601. default: uni.$u.props.input.focus
  18602. },
  18603. // 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效
  18604. autoBlur: {
  18605. type: Boolean,
  18606. default: uni.$u.props.input.autoBlur
  18607. },
  18608. // 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效
  18609. disableDefaultPadding: {
  18610. type: Boolean,
  18611. default: uni.$u.props.input.disableDefaultPadding
  18612. },
  18613. // 指定focus时光标的位置
  18614. cursor: {
  18615. type: [String, Number],
  18616. default: uni.$u.props.input.cursor
  18617. },
  18618. // 输入框聚焦时底部与键盘的距离
  18619. cursorSpacing: {
  18620. type: [String, Number],
  18621. default: uni.$u.props.input.cursorSpacing
  18622. },
  18623. // 光标起始位置,自动聚集时有效,需与selection-end搭配使用
  18624. selectionStart: {
  18625. type: [String, Number],
  18626. default: uni.$u.props.input.selectionStart
  18627. },
  18628. // 光标结束位置,自动聚集时有效,需与selection-start搭配使用
  18629. selectionEnd: {
  18630. type: [String, Number],
  18631. default: uni.$u.props.input.selectionEnd
  18632. },
  18633. // 键盘弹起时,是否自动上推页面
  18634. adjustPosition: {
  18635. type: Boolean,
  18636. default: uni.$u.props.input.adjustPosition
  18637. },
  18638. // 输入框内容对齐方式,可选值为:left|center|right
  18639. inputAlign: {
  18640. type: String,
  18641. default: uni.$u.props.input.inputAlign
  18642. },
  18643. // 输入框字体的大小
  18644. fontSize: {
  18645. type: [String, Number],
  18646. default: uni.$u.props.input.fontSize
  18647. },
  18648. // 输入框字体颜色
  18649. color: {
  18650. type: String,
  18651. default: uni.$u.props.input.color
  18652. },
  18653. // 输入框前置图标
  18654. prefixIcon: {
  18655. type: String,
  18656. default: uni.$u.props.input.prefixIcon
  18657. },
  18658. // 前置图标样式,对象或字符串
  18659. prefixIconStyle: {
  18660. type: [String, Object],
  18661. default: uni.$u.props.input.prefixIconStyle
  18662. },
  18663. // 输入框后置图标
  18664. suffixIcon: {
  18665. type: String,
  18666. default: uni.$u.props.input.suffixIcon
  18667. },
  18668. // 后置图标样式,对象或字符串
  18669. suffixIconStyle: {
  18670. type: [String, Object],
  18671. default: uni.$u.props.input.suffixIconStyle
  18672. },
  18673. // 边框类型,surround-四周边框,bottom-底部边框,none-无边框
  18674. border: {
  18675. type: String,
  18676. default: uni.$u.props.input.border
  18677. },
  18678. // 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会
  18679. readonly: {
  18680. type: Boolean,
  18681. default: uni.$u.props.input.readonly
  18682. },
  18683. // 输入框形状,circle-圆形,square-方形
  18684. shape: {
  18685. type: String,
  18686. default: uni.$u.props.input.shape
  18687. },
  18688. // 用于处理或者过滤输入框内容的方法
  18689. formatter: {
  18690. type: [Function, null],
  18691. default: uni.$u.props.input.formatter
  18692. }
  18693. }
  18694. };
  18695. exports.default = _default;
  18696. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18697. /***/ }),
  18698. /* 337 */,
  18699. /* 338 */,
  18700. /* 339 */,
  18701. /* 340 */,
  18702. /* 341 */,
  18703. /* 342 */
  18704. /*!******************************************************************************************************!*\
  18705. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/components/u-icon/icons.js ***!
  18706. \******************************************************************************************************/
  18707. /*! no static exports found */
  18708. /***/ (function(module, exports, __webpack_require__) {
  18709. "use strict";
  18710. Object.defineProperty(exports, "__esModule", {
  18711. value: true
  18712. });
  18713. exports.default = void 0;
  18714. var _default = {
  18715. 'uicon-level': "\uE693",
  18716. 'uicon-column-line': "\uE68E",
  18717. 'uicon-checkbox-mark': "\uE807",
  18718. 'uicon-folder': "\uE7F5",
  18719. 'uicon-movie': "\uE7F6",
  18720. 'uicon-star-fill': "\uE669",
  18721. 'uicon-star': "\uE65F",
  18722. 'uicon-phone-fill': "\uE64F",
  18723. 'uicon-phone': "\uE622",
  18724. 'uicon-apple-fill': "\uE881",
  18725. 'uicon-chrome-circle-fill': "\uE885",
  18726. 'uicon-backspace': "\uE67B",
  18727. 'uicon-attach': "\uE632",
  18728. 'uicon-cut': "\uE948",
  18729. 'uicon-empty-car': "\uE602",
  18730. 'uicon-empty-coupon': "\uE682",
  18731. 'uicon-empty-address': "\uE646",
  18732. 'uicon-empty-favor': "\uE67C",
  18733. 'uicon-empty-permission': "\uE686",
  18734. 'uicon-empty-news': "\uE687",
  18735. 'uicon-empty-search': "\uE664",
  18736. 'uicon-github-circle-fill': "\uE887",
  18737. 'uicon-rmb': "\uE608",
  18738. 'uicon-person-delete-fill': "\uE66A",
  18739. 'uicon-reload': "\uE788",
  18740. 'uicon-order': "\uE68F",
  18741. 'uicon-server-man': "\uE6BC",
  18742. 'uicon-search': "\uE62A",
  18743. 'uicon-fingerprint': "\uE955",
  18744. 'uicon-more-dot-fill': "\uE630",
  18745. 'uicon-scan': "\uE662",
  18746. 'uicon-share-square': "\uE60B",
  18747. 'uicon-map': "\uE61D",
  18748. 'uicon-map-fill': "\uE64E",
  18749. 'uicon-tags': "\uE629",
  18750. 'uicon-tags-fill': "\uE651",
  18751. 'uicon-bookmark-fill': "\uE63B",
  18752. 'uicon-bookmark': "\uE60A",
  18753. 'uicon-eye': "\uE613",
  18754. 'uicon-eye-fill': "\uE641",
  18755. 'uicon-mic': "\uE64A",
  18756. 'uicon-mic-off': "\uE649",
  18757. 'uicon-calendar': "\uE66E",
  18758. 'uicon-calendar-fill': "\uE634",
  18759. 'uicon-trash': "\uE623",
  18760. 'uicon-trash-fill': "\uE658",
  18761. 'uicon-play-left': "\uE66D",
  18762. 'uicon-play-right': "\uE610",
  18763. 'uicon-minus': "\uE618",
  18764. 'uicon-plus': "\uE62D",
  18765. 'uicon-info': "\uE653",
  18766. 'uicon-info-circle': "\uE7D2",
  18767. 'uicon-info-circle-fill': "\uE64B",
  18768. 'uicon-question': "\uE715",
  18769. 'uicon-error': "\uE6D3",
  18770. 'uicon-close': "\uE685",
  18771. 'uicon-checkmark': "\uE6A8",
  18772. 'uicon-android-circle-fill': "\uE67E",
  18773. 'uicon-android-fill': "\uE67D",
  18774. 'uicon-ie': "\uE87B",
  18775. 'uicon-IE-circle-fill': "\uE889",
  18776. 'uicon-google': "\uE87A",
  18777. 'uicon-google-circle-fill': "\uE88A",
  18778. 'uicon-setting-fill': "\uE872",
  18779. 'uicon-setting': "\uE61F",
  18780. 'uicon-minus-square-fill': "\uE855",
  18781. 'uicon-plus-square-fill': "\uE856",
  18782. 'uicon-heart': "\uE7DF",
  18783. 'uicon-heart-fill': "\uE851",
  18784. 'uicon-camera': "\uE7D7",
  18785. 'uicon-camera-fill': "\uE870",
  18786. 'uicon-more-circle': "\uE63E",
  18787. 'uicon-more-circle-fill': "\uE645",
  18788. 'uicon-chat': "\uE620",
  18789. 'uicon-chat-fill': "\uE61E",
  18790. 'uicon-bag-fill': "\uE617",
  18791. 'uicon-bag': "\uE619",
  18792. 'uicon-error-circle-fill': "\uE62C",
  18793. 'uicon-error-circle': "\uE624",
  18794. 'uicon-close-circle': "\uE63F",
  18795. 'uicon-close-circle-fill': "\uE637",
  18796. 'uicon-checkmark-circle': "\uE63D",
  18797. 'uicon-checkmark-circle-fill': "\uE635",
  18798. 'uicon-question-circle-fill': "\uE666",
  18799. 'uicon-question-circle': "\uE625",
  18800. 'uicon-share': "\uE631",
  18801. 'uicon-share-fill': "\uE65E",
  18802. 'uicon-shopping-cart': "\uE621",
  18803. 'uicon-shopping-cart-fill': "\uE65D",
  18804. 'uicon-bell': "\uE609",
  18805. 'uicon-bell-fill': "\uE640",
  18806. 'uicon-list': "\uE650",
  18807. 'uicon-list-dot': "\uE616",
  18808. 'uicon-zhihu': "\uE6BA",
  18809. 'uicon-zhihu-circle-fill': "\uE709",
  18810. 'uicon-zhifubao': "\uE6B9",
  18811. 'uicon-zhifubao-circle-fill': "\uE6B8",
  18812. 'uicon-weixin-circle-fill': "\uE6B1",
  18813. 'uicon-weixin-fill': "\uE6B2",
  18814. 'uicon-twitter-circle-fill': "\uE6AB",
  18815. 'uicon-twitter': "\uE6AA",
  18816. 'uicon-taobao-circle-fill': "\uE6A7",
  18817. 'uicon-taobao': "\uE6A6",
  18818. 'uicon-weibo-circle-fill': "\uE6A5",
  18819. 'uicon-weibo': "\uE6A4",
  18820. 'uicon-qq-fill': "\uE6A1",
  18821. 'uicon-qq-circle-fill': "\uE6A0",
  18822. 'uicon-moments-circel-fill': "\uE69A",
  18823. 'uicon-moments': "\uE69B",
  18824. 'uicon-qzone': "\uE695",
  18825. 'uicon-qzone-circle-fill': "\uE696",
  18826. 'uicon-baidu-circle-fill': "\uE680",
  18827. 'uicon-baidu': "\uE681",
  18828. 'uicon-facebook-circle-fill': "\uE68A",
  18829. 'uicon-facebook': "\uE689",
  18830. 'uicon-car': "\uE60C",
  18831. 'uicon-car-fill': "\uE636",
  18832. 'uicon-warning-fill': "\uE64D",
  18833. 'uicon-warning': "\uE694",
  18834. 'uicon-clock-fill': "\uE638",
  18835. 'uicon-clock': "\uE60F",
  18836. 'uicon-edit-pen': "\uE612",
  18837. 'uicon-edit-pen-fill': "\uE66B",
  18838. 'uicon-email': "\uE611",
  18839. 'uicon-email-fill': "\uE642",
  18840. 'uicon-minus-circle': "\uE61B",
  18841. 'uicon-minus-circle-fill': "\uE652",
  18842. 'uicon-plus-circle': "\uE62E",
  18843. 'uicon-plus-circle-fill': "\uE661",
  18844. 'uicon-file-text': "\uE663",
  18845. 'uicon-file-text-fill': "\uE665",
  18846. 'uicon-pushpin': "\uE7E3",
  18847. 'uicon-pushpin-fill': "\uE86E",
  18848. 'uicon-grid': "\uE673",
  18849. 'uicon-grid-fill': "\uE678",
  18850. 'uicon-play-circle': "\uE647",
  18851. 'uicon-play-circle-fill': "\uE655",
  18852. 'uicon-pause-circle-fill': "\uE654",
  18853. 'uicon-pause': "\uE8FA",
  18854. 'uicon-pause-circle': "\uE643",
  18855. 'uicon-eye-off': "\uE648",
  18856. 'uicon-eye-off-outline': "\uE62B",
  18857. 'uicon-gift-fill': "\uE65C",
  18858. 'uicon-gift': "\uE65B",
  18859. 'uicon-rmb-circle-fill': "\uE657",
  18860. 'uicon-rmb-circle': "\uE677",
  18861. 'uicon-kefu-ermai': "\uE656",
  18862. 'uicon-server-fill': "\uE751",
  18863. 'uicon-coupon-fill': "\uE8C4",
  18864. 'uicon-coupon': "\uE8AE",
  18865. 'uicon-integral': "\uE704",
  18866. 'uicon-integral-fill': "\uE703",
  18867. 'uicon-home-fill': "\uE964",
  18868. 'uicon-home': "\uE965",
  18869. 'uicon-hourglass-half-fill': "\uE966",
  18870. 'uicon-hourglass': "\uE967",
  18871. 'uicon-account': "\uE628",
  18872. 'uicon-plus-people-fill': "\uE626",
  18873. 'uicon-minus-people-fill': "\uE615",
  18874. 'uicon-account-fill': "\uE614",
  18875. 'uicon-thumb-down-fill': "\uE726",
  18876. 'uicon-thumb-down': "\uE727",
  18877. 'uicon-thumb-up': "\uE733",
  18878. 'uicon-thumb-up-fill': "\uE72F",
  18879. 'uicon-lock-fill': "\uE979",
  18880. 'uicon-lock-open': "\uE973",
  18881. 'uicon-lock-opened-fill': "\uE974",
  18882. 'uicon-lock': "\uE97A",
  18883. 'uicon-red-packet-fill': "\uE690",
  18884. 'uicon-photo-fill': "\uE98B",
  18885. 'uicon-photo': "\uE98D",
  18886. 'uicon-volume-off-fill': "\uE659",
  18887. 'uicon-volume-off': "\uE644",
  18888. 'uicon-volume-fill': "\uE670",
  18889. 'uicon-volume': "\uE633",
  18890. 'uicon-red-packet': "\uE691",
  18891. 'uicon-download': "\uE63C",
  18892. 'uicon-arrow-up-fill': "\uE6B0",
  18893. 'uicon-arrow-down-fill': "\uE600",
  18894. 'uicon-play-left-fill': "\uE675",
  18895. 'uicon-play-right-fill': "\uE676",
  18896. 'uicon-rewind-left-fill': "\uE679",
  18897. 'uicon-rewind-right-fill': "\uE67A",
  18898. 'uicon-arrow-downward': "\uE604",
  18899. 'uicon-arrow-leftward': "\uE601",
  18900. 'uicon-arrow-rightward': "\uE603",
  18901. 'uicon-arrow-upward': "\uE607",
  18902. 'uicon-arrow-down': "\uE60D",
  18903. 'uicon-arrow-right': "\uE605",
  18904. 'uicon-arrow-left': "\uE60E",
  18905. 'uicon-arrow-up': "\uE606",
  18906. 'uicon-skip-back-left': "\uE674",
  18907. 'uicon-skip-forward-right': "\uE672",
  18908. 'uicon-rewind-right': "\uE66F",
  18909. 'uicon-rewind-left': "\uE671",
  18910. 'uicon-arrow-right-double': "\uE68D",
  18911. 'uicon-arrow-left-double': "\uE68C",
  18912. 'uicon-wifi-off': "\uE668",
  18913. 'uicon-wifi': "\uE667",
  18914. 'uicon-empty-data': "\uE62F",
  18915. 'uicon-empty-history': "\uE684",
  18916. 'uicon-empty-list': "\uE68B",
  18917. 'uicon-empty-page': "\uE627",
  18918. 'uicon-empty-order': "\uE639",
  18919. 'uicon-man': "\uE697",
  18920. 'uicon-woman': "\uE69C",
  18921. 'uicon-man-add': "\uE61C",
  18922. 'uicon-man-add-fill': "\uE64C",
  18923. 'uicon-man-delete': "\uE61A",
  18924. 'uicon-man-delete-fill': "\uE66A",
  18925. 'uicon-zh': "\uE70A",
  18926. 'uicon-en': "\uE692"
  18927. };
  18928. exports.default = _default;
  18929. /***/ }),
  18930. /* 343 */
  18931. /*!******************************************************************************************************!*\
  18932. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/components/u-icon/props.js ***!
  18933. \******************************************************************************************************/
  18934. /*! no static exports found */
  18935. /***/ (function(module, exports, __webpack_require__) {
  18936. "use strict";
  18937. /* WEBPACK VAR INJECTION */(function(uni) {
  18938. Object.defineProperty(exports, "__esModule", {
  18939. value: true
  18940. });
  18941. exports.default = void 0;
  18942. var _default = {
  18943. props: {
  18944. // 图标类名
  18945. name: {
  18946. type: String,
  18947. default: uni.$u.props.icon.name
  18948. },
  18949. // 图标颜色,可接受主题色
  18950. color: {
  18951. type: String,
  18952. default: uni.$u.props.icon.color
  18953. },
  18954. // 字体大小,单位px
  18955. size: {
  18956. type: [String, Number],
  18957. default: uni.$u.props.icon.size
  18958. },
  18959. // 是否显示粗体
  18960. bold: {
  18961. type: Boolean,
  18962. default: uni.$u.props.icon.bold
  18963. },
  18964. // 点击图标的时候传递事件出去的index(用于区分点击了哪一个)
  18965. index: {
  18966. type: [String, Number],
  18967. default: uni.$u.props.icon.index
  18968. },
  18969. // 触摸图标时的类名
  18970. hoverClass: {
  18971. type: String,
  18972. default: uni.$u.props.icon.hoverClass
  18973. },
  18974. // 自定义扩展前缀,方便用户扩展自己的图标库
  18975. customPrefix: {
  18976. type: String,
  18977. default: uni.$u.props.icon.customPrefix
  18978. },
  18979. // 图标右边或者下面的文字
  18980. label: {
  18981. type: [String, Number],
  18982. default: uni.$u.props.icon.label
  18983. },
  18984. // label的位置,只能右边或者下边
  18985. labelPos: {
  18986. type: String,
  18987. default: uni.$u.props.icon.labelPos
  18988. },
  18989. // label的大小
  18990. labelSize: {
  18991. type: [String, Number],
  18992. default: uni.$u.props.icon.labelSize
  18993. },
  18994. // label的颜色
  18995. labelColor: {
  18996. type: String,
  18997. default: uni.$u.props.icon.labelColor
  18998. },
  18999. // label与图标的距离
  19000. space: {
  19001. type: [String, Number],
  19002. default: uni.$u.props.icon.space
  19003. },
  19004. // 图片的mode
  19005. imgMode: {
  19006. type: String,
  19007. default: uni.$u.props.icon.imgMode
  19008. },
  19009. // 用于显示图片小图标时,图片的宽度
  19010. width: {
  19011. type: [String, Number],
  19012. default: uni.$u.props.icon.width
  19013. },
  19014. // 用于显示图片小图标时,图片的高度
  19015. height: {
  19016. type: [String, Number],
  19017. default: uni.$u.props.icon.height
  19018. },
  19019. // 用于解决某些情况下,让图标垂直居中的用途
  19020. top: {
  19021. type: [String, Number],
  19022. default: uni.$u.props.icon.top
  19023. },
  19024. // 是否阻止事件传播
  19025. stop: {
  19026. type: Boolean,
  19027. default: uni.$u.props.icon.stop
  19028. }
  19029. }
  19030. };
  19031. exports.default = _default;
  19032. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19033. /***/ }),
  19034. /* 344 */,
  19035. /* 345 */,
  19036. /* 346 */,
  19037. /* 347 */,
  19038. /* 348 */,
  19039. /* 349 */,
  19040. /* 350 */,
  19041. /* 351 */
  19042. /*!******************************************************************************************************!*\
  19043. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/components/u-tabs/props.js ***!
  19044. \******************************************************************************************************/
  19045. /*! no static exports found */
  19046. /***/ (function(module, exports, __webpack_require__) {
  19047. "use strict";
  19048. /* WEBPACK VAR INJECTION */(function(uni) {
  19049. Object.defineProperty(exports, "__esModule", {
  19050. value: true
  19051. });
  19052. exports.default = void 0;
  19053. var _default = {
  19054. props: {
  19055. // 滑块的移动过渡时间,单位ms
  19056. duration: {
  19057. type: Number,
  19058. default: uni.$u.props.tabs.duration
  19059. },
  19060. // tabs标签数组
  19061. list: {
  19062. type: Array,
  19063. default: uni.$u.props.tabs.list
  19064. },
  19065. // 滑块颜色
  19066. lineColor: {
  19067. type: String,
  19068. default: uni.$u.props.tabs.lineColor
  19069. },
  19070. // 菜单选择中时的样式
  19071. activeStyle: {
  19072. type: [String, Object],
  19073. default: uni.$u.props.tabs.activeStyle
  19074. },
  19075. // 菜单非选中时的样式
  19076. inactiveStyle: {
  19077. type: [String, Object],
  19078. default: uni.$u.props.tabs.inactiveStyle
  19079. },
  19080. // 滑块长度
  19081. lineWidth: {
  19082. type: [String, Number],
  19083. default: uni.$u.props.tabs.lineWidth
  19084. },
  19085. // 滑块高度
  19086. lineHeight: {
  19087. type: [String, Number],
  19088. default: uni.$u.props.tabs.lineHeight
  19089. },
  19090. // 滑块背景显示大小,当滑块背景设置为图片时使用
  19091. lineBgSize: {
  19092. type: String,
  19093. default: uni.$u.props.tabs.lineBgSize
  19094. },
  19095. // 菜单item的样式
  19096. itemStyle: {
  19097. type: [String, Object],
  19098. default: uni.$u.props.tabs.itemStyle
  19099. },
  19100. // 菜单是否可滚动
  19101. scrollable: {
  19102. type: Boolean,
  19103. default: uni.$u.props.tabs.scrollable
  19104. },
  19105. // 当前选中标签的索引
  19106. current: {
  19107. type: [Number, String],
  19108. default: uni.$u.props.tabs.current
  19109. },
  19110. // 默认读取的键名
  19111. keyName: {
  19112. type: String,
  19113. default: uni.$u.props.tabs.keyName
  19114. }
  19115. }
  19116. };
  19117. exports.default = _default;
  19118. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19119. /***/ }),
  19120. /* 352 */,
  19121. /* 353 */,
  19122. /* 354 */,
  19123. /* 355 */,
  19124. /* 356 */,
  19125. /* 357 */,
  19126. /* 358 */,
  19127. /* 359 */
  19128. /*!*****************************************************************************************************!*\
  19129. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/components/u-tag/props.js ***!
  19130. \*****************************************************************************************************/
  19131. /*! no static exports found */
  19132. /***/ (function(module, exports, __webpack_require__) {
  19133. "use strict";
  19134. /* WEBPACK VAR INJECTION */(function(uni) {
  19135. Object.defineProperty(exports, "__esModule", {
  19136. value: true
  19137. });
  19138. exports.default = void 0;
  19139. var _default = {
  19140. props: {
  19141. // 标签类型info、primary、success、warning、error
  19142. type: {
  19143. type: String,
  19144. default: uni.$u.props.tag.type
  19145. },
  19146. // 不可用
  19147. disabled: {
  19148. type: [Boolean, String],
  19149. default: uni.$u.props.tag.disabled
  19150. },
  19151. // 标签的大小,large,medium,mini
  19152. size: {
  19153. type: String,
  19154. default: uni.$u.props.tag.size
  19155. },
  19156. // tag的形状,circle(两边半圆形), square(方形,带圆角)
  19157. shape: {
  19158. type: String,
  19159. default: uni.$u.props.tag.shape
  19160. },
  19161. // 标签文字
  19162. text: {
  19163. type: [String, Number],
  19164. default: uni.$u.props.tag.text
  19165. },
  19166. // 背景颜色,默认为空字符串,即不处理
  19167. bgColor: {
  19168. type: String,
  19169. default: uni.$u.props.tag.bgColor
  19170. },
  19171. // 标签字体颜色,默认为空字符串,即不处理
  19172. color: {
  19173. type: String,
  19174. default: uni.$u.props.tag.color
  19175. },
  19176. // 标签的边框颜色
  19177. borderColor: {
  19178. type: String,
  19179. default: uni.$u.props.tag.borderColor
  19180. },
  19181. // 关闭按钮图标的颜色
  19182. closeColor: {
  19183. type: String,
  19184. default: uni.$u.props.tag.closeColor
  19185. },
  19186. // 点击时返回的索引值,用于区分例遍的数组哪个元素被点击了
  19187. name: {
  19188. type: [String, Number],
  19189. default: uni.$u.props.tag.name
  19190. },
  19191. // // 模式选择,dark|light|plain
  19192. // mode: {
  19193. // type: String,
  19194. // default: 'light'
  19195. // },
  19196. // 镂空时是否填充背景色
  19197. plainFill: {
  19198. type: Boolean,
  19199. default: uni.$u.props.tag.plainFill
  19200. },
  19201. // 是否镂空
  19202. plain: {
  19203. type: Boolean,
  19204. default: uni.$u.props.tag.plain
  19205. },
  19206. // 是否可关闭
  19207. closable: {
  19208. type: Boolean,
  19209. default: uni.$u.props.tag.closable
  19210. },
  19211. // 是否显示
  19212. show: {
  19213. type: Boolean,
  19214. default: uni.$u.props.tag.show
  19215. },
  19216. // 内置图标,或绝对路径的图片
  19217. icon: {
  19218. type: String,
  19219. default: uni.$u.props.tag.icon
  19220. }
  19221. }
  19222. };
  19223. exports.default = _default;
  19224. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19225. /***/ }),
  19226. /* 360 */,
  19227. /* 361 */,
  19228. /* 362 */,
  19229. /* 363 */,
  19230. /* 364 */,
  19231. /* 365 */,
  19232. /* 366 */,
  19233. /* 367 */,
  19234. /* 368 */,
  19235. /* 369 */,
  19236. /* 370 */,
  19237. /* 371 */,
  19238. /* 372 */,
  19239. /* 373 */,
  19240. /* 374 */
  19241. /*!******************************************************************************************************!*\
  19242. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/components/u-line/props.js ***!
  19243. \******************************************************************************************************/
  19244. /*! no static exports found */
  19245. /***/ (function(module, exports, __webpack_require__) {
  19246. "use strict";
  19247. /* WEBPACK VAR INJECTION */(function(uni) {
  19248. Object.defineProperty(exports, "__esModule", {
  19249. value: true
  19250. });
  19251. exports.default = void 0;
  19252. var _default = {
  19253. props: {
  19254. color: {
  19255. type: String,
  19256. default: uni.$u.props.line.color
  19257. },
  19258. // 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等
  19259. length: {
  19260. type: [String, Number],
  19261. default: uni.$u.props.line.length
  19262. },
  19263. // 线条方向,col-竖向,row-横向
  19264. direction: {
  19265. type: String,
  19266. default: uni.$u.props.line.direction
  19267. },
  19268. // 是否显示细边框
  19269. hairline: {
  19270. type: Boolean,
  19271. default: uni.$u.props.line.hairline
  19272. },
  19273. // 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
  19274. margin: {
  19275. type: [String, Number],
  19276. default: uni.$u.props.line.margin
  19277. },
  19278. // 是否虚线,true-实线,false-虚线
  19279. dashed: {
  19280. type: Boolean,
  19281. default: uni.$u.props.line.dashed
  19282. }
  19283. }
  19284. };
  19285. exports.default = _default;
  19286. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19287. /***/ }),
  19288. /* 375 */,
  19289. /* 376 */,
  19290. /* 377 */,
  19291. /* 378 */,
  19292. /* 379 */,
  19293. /* 380 */,
  19294. /* 381 */,
  19295. /* 382 */
  19296. /*!*******************************************************************************************************!*\
  19297. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/components/u-parse/props.js ***!
  19298. \*******************************************************************************************************/
  19299. /*! no static exports found */
  19300. /***/ (function(module, exports, __webpack_require__) {
  19301. "use strict";
  19302. /* WEBPACK VAR INJECTION */(function(uni) {
  19303. Object.defineProperty(exports, "__esModule", {
  19304. value: true
  19305. });
  19306. exports.default = void 0;
  19307. var _default = {
  19308. props: {
  19309. content: String,
  19310. copyLink: {
  19311. type: Boolean,
  19312. default: uni.$u.props.parse.copyLink
  19313. },
  19314. domain: String,
  19315. errorImg: {
  19316. type: String,
  19317. default: uni.$u.props.parse.errorImg
  19318. },
  19319. lazyLoad: {
  19320. type: Boolean,
  19321. default: uni.$u.props.parse.lazyLoad
  19322. },
  19323. loadingImg: {
  19324. type: String,
  19325. default: uni.$u.props.parse.loadingImg
  19326. },
  19327. pauseVideo: {
  19328. type: Boolean,
  19329. default: uni.$u.props.parse.pauseVideo
  19330. },
  19331. previewImg: {
  19332. type: Boolean,
  19333. default: uni.$u.props.parse.previewImg
  19334. },
  19335. scrollTable: Boolean,
  19336. selectable: Boolean,
  19337. setTitle: {
  19338. type: Boolean,
  19339. default: uni.$u.props.parse.setTitle
  19340. },
  19341. showImgMenu: {
  19342. type: Boolean,
  19343. default: uni.$u.props.parse.showImgMenu
  19344. },
  19345. tagStyle: Object,
  19346. useAnchor: null
  19347. }
  19348. };
  19349. exports.default = _default;
  19350. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19351. /***/ }),
  19352. /* 383 */
  19353. /*!********************************************************************************************************!*\
  19354. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/components/u-parse/parser.js ***!
  19355. \********************************************************************************************************/
  19356. /*! no static exports found */
  19357. /***/ (function(module, exports, __webpack_require__) {
  19358. "use strict";
  19359. /* WEBPACK VAR INJECTION */(function(uni, wx) {
  19360. /**
  19361. * @fileoverview html 解析器
  19362. */
  19363. // 配置
  19364. var _defineProperty = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11);
  19365. 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; }
  19366. 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) { _defineProperty(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; }
  19367. var config = {
  19368. // 信任的标签(保持标签名不变)
  19369. trustTags: makeMap('a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,ruby,rt,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video'),
  19370. // 块级标签(转为 div,其他的非信任标签转为 span)
  19371. blockTags: makeMap('address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section'),
  19372. // 要移除的标签
  19373. ignoreTags: makeMap('area,base,canvas,embed,frame,head,iframe,input,link,map,meta,param,rp,script,source,style,textarea,title,track,wbr'),
  19374. // 自闭合的标签
  19375. voidTags: makeMap('area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr'),
  19376. // html 实体
  19377. entities: {
  19378. lt: '<',
  19379. gt: '>',
  19380. quot: '"',
  19381. apos: "'",
  19382. ensp: "\u2002",
  19383. emsp: "\u2003",
  19384. nbsp: '\xA0',
  19385. semi: ';',
  19386. ndash: '–',
  19387. mdash: '—',
  19388. middot: '·',
  19389. lsquo: '‘',
  19390. rsquo: '’',
  19391. ldquo: '“',
  19392. rdquo: '”',
  19393. bull: '•',
  19394. hellip: '…'
  19395. },
  19396. // 默认的标签样式
  19397. tagStyle: {
  19398. address: 'font-style:italic',
  19399. big: 'display:inline;font-size:1.2em',
  19400. caption: 'display:table-caption;text-align:center',
  19401. center: 'text-align:center',
  19402. cite: 'font-style:italic',
  19403. dd: 'margin-left:40px',
  19404. mark: 'background-color:yellow',
  19405. pre: 'font-family:monospace;white-space:pre',
  19406. s: 'text-decoration:line-through',
  19407. small: 'display:inline;font-size:0.8em',
  19408. u: 'text-decoration:underline'
  19409. }
  19410. };
  19411. var _uni$getSystemInfoSyn = uni.getSystemInfoSync(),
  19412. windowWidth = _uni$getSystemInfoSyn.windowWidth;
  19413. var blankChar = makeMap(' ,\r,\n,\t,\f');
  19414. var idIndex = 0;
  19415. /**
  19416. * @description 创建 map
  19417. * @param {String} str 逗号分隔
  19418. */
  19419. function makeMap(str) {
  19420. var map = Object.create(null);
  19421. var list = str.split(',');
  19422. for (var i = list.length; i--;) {
  19423. map[list[i]] = true;
  19424. }
  19425. return map;
  19426. }
  19427. /**
  19428. * @description 解码 html 实体
  19429. * @param {String} str 要解码的字符串
  19430. * @param {Boolean} amp 要不要解码 &amp;
  19431. * @returns {String} 解码后的字符串
  19432. */
  19433. function decodeEntity(str, amp) {
  19434. var i = str.indexOf('&');
  19435. while (i != -1) {
  19436. var j = str.indexOf(';', i + 3);
  19437. var code = void 0;
  19438. if (j == -1) break;
  19439. if (str[i + 1] == '#') {
  19440. // &#123; 形式的实体
  19441. code = parseInt((str[i + 2] == 'x' ? '0' : '') + str.substring(i + 2, j));
  19442. if (!isNaN(code)) str = str.substr(0, i) + String.fromCharCode(code) + str.substr(j + 1);
  19443. } else {
  19444. // &nbsp; 形式的实体
  19445. code = str.substring(i + 1, j);
  19446. if (config.entities[code] || code == 'amp' && amp) str = str.substr(0, i) + (config.entities[code] || '&') + str.substr(j + 1);
  19447. }
  19448. i = str.indexOf('&', i + 1);
  19449. }
  19450. return str;
  19451. }
  19452. /**
  19453. * @description html 解析器
  19454. * @param {Object} vm 组件实例
  19455. */
  19456. function parser(vm) {
  19457. this.options = vm || {};
  19458. this.tagStyle = Object.assign(config.tagStyle, this.options.tagStyle);
  19459. this.imgList = vm.imgList || [];
  19460. this.plugins = vm.plugins || [];
  19461. this.attrs = Object.create(null);
  19462. this.stack = [];
  19463. this.nodes = [];
  19464. }
  19465. /**
  19466. * @description 执行解析
  19467. * @param {String} content 要解析的文本
  19468. */
  19469. parser.prototype.parse = function (content) {
  19470. // 插件处理
  19471. for (var i = this.plugins.length; i--;) {
  19472. if (this.plugins[i].onUpdate) content = this.plugins[i].onUpdate(content, config) || content;
  19473. }
  19474. new lexer(this).parse(content); // 出栈未闭合的标签
  19475. while (this.stack.length) {
  19476. this.popNode();
  19477. }
  19478. return this.nodes;
  19479. };
  19480. /**
  19481. * @description 将标签暴露出来(不被 rich-text 包含)
  19482. */
  19483. parser.prototype.expose = function () {
  19484. for (var i = this.stack.length; i--;) {
  19485. var item = this.stack[i];
  19486. if (item.name == 'a' || item.c) return;
  19487. item.c = 1;
  19488. }
  19489. };
  19490. /**
  19491. * @description 处理插件
  19492. * @param {Object} node 要处理的标签
  19493. * @returns {Boolean} 是否要移除此标签
  19494. */
  19495. parser.prototype.hook = function (node) {
  19496. for (var i = this.plugins.length; i--;) {
  19497. if (this.plugins[i].onParse && this.plugins[i].onParse(node, this) == false) return false;
  19498. }
  19499. return true;
  19500. };
  19501. /**
  19502. * @description 将链接拼接上主域名
  19503. * @param {String} url 需要拼接的链接
  19504. * @returns {String} 拼接后的链接
  19505. */
  19506. parser.prototype.getUrl = function (url) {
  19507. var domain = this.options.domain;
  19508. if (url[0] == '/') {
  19509. // // 开头的补充协议名
  19510. if (url[1] == '/') url = "".concat(domain ? domain.split('://')[0] : 'http', ":").concat(url); // 否则补充整个域名
  19511. else if (domain) url = domain + url;
  19512. } else if (domain && !url.includes('data:') && !url.includes('://')) url = "".concat(domain, "/").concat(url);
  19513. return url;
  19514. };
  19515. /**
  19516. * @description 解析样式表
  19517. * @param {Object} node 标签
  19518. * @returns {Object}
  19519. */
  19520. parser.prototype.parseStyle = function (node) {
  19521. var attrs = node.attrs;
  19522. var list = (this.tagStyle[node.name] || '').split(';').concat((attrs.style || '').split(';'));
  19523. var styleObj = {};
  19524. var tmp = '';
  19525. if (attrs.id) {
  19526. // 暴露锚点
  19527. if (this.options.useAnchor) this.expose();else if (node.name != 'img' && node.name != 'a' && node.name != 'video' && node.name != 'audio') attrs.id = void 0;
  19528. } // 转换 width 和 height 属性
  19529. if (attrs.width) {
  19530. styleObj.width = parseFloat(attrs.width) + (attrs.width.includes('%') ? '%' : 'px');
  19531. attrs.width = void 0;
  19532. }
  19533. if (attrs.height) {
  19534. styleObj.height = parseFloat(attrs.height) + (attrs.height.includes('%') ? '%' : 'px');
  19535. attrs.height = void 0;
  19536. }
  19537. for (var i = 0, len = list.length; i < len; i++) {
  19538. var info = list[i].split(':');
  19539. if (info.length < 2) continue;
  19540. var key = info.shift().trim().toLowerCase();
  19541. var value = info.join(':').trim(); // 兼容性的 css 不压缩
  19542. if (value[0] == '-' && value.lastIndexOf('-') > 0 || value.includes('safe')) tmp += ';'.concat(key, ':').concat(value); // 重复的样式进行覆盖
  19543. else if (!styleObj[key] || value.includes('import') || !styleObj[key].includes('import')) {
  19544. // 填充链接
  19545. if (value.includes('url')) {
  19546. var j = value.indexOf('(') + 1;
  19547. if (j) {
  19548. while (value[j] == '"' || value[j] == "'" || blankChar[value[j]]) {
  19549. j++;
  19550. }
  19551. value = value.substr(0, j) + this.getUrl(value.substr(j));
  19552. }
  19553. } // 转换 rpx(rich-text 内部不支持 rpx)
  19554. else if (value.includes('rpx')) {
  19555. value = value.replace(/[0-9.]+\s*rpx/g, function ($) {
  19556. return "".concat(parseFloat($) * windowWidth / 750, "px");
  19557. });
  19558. }
  19559. styleObj[key] = value;
  19560. }
  19561. }
  19562. node.attrs.style = tmp;
  19563. return styleObj;
  19564. };
  19565. /**
  19566. * @description 解析到标签名
  19567. * @param {String} name 标签名
  19568. * @private
  19569. */
  19570. parser.prototype.onTagName = function (name) {
  19571. this.tagName = this.xml ? name : name.toLowerCase();
  19572. if (this.tagName == 'svg') this.xml = true; // svg 标签内大小写敏感
  19573. };
  19574. /**
  19575. * @description 解析到属性名
  19576. * @param {String} name 属性名
  19577. * @private
  19578. */
  19579. parser.prototype.onAttrName = function (name) {
  19580. name = this.xml ? name : name.toLowerCase();
  19581. if (name.substr(0, 5) == 'data-') {
  19582. // data-src 自动转为 src
  19583. if (name == 'data-src' && !this.attrs.src) this.attrName = 'src'; // a 和 img 标签保留 data- 的属性,可以在 imgtap 和 linktap 事件中使用
  19584. else if (this.tagName == 'img' || this.tagName == 'a') this.attrName = name; // 剩余的移除以减小大小
  19585. else this.attrName = void 0;
  19586. } else {
  19587. this.attrName = name;
  19588. this.attrs[name] = 'T'; // boolean 型属性缺省设置
  19589. }
  19590. };
  19591. /**
  19592. * @description 解析到属性值
  19593. * @param {String} val 属性值
  19594. * @private
  19595. */
  19596. parser.prototype.onAttrVal = function (val) {
  19597. var name = this.attrName || ''; // 部分属性进行实体解码
  19598. if (name == 'style' || name == 'href') this.attrs[name] = decodeEntity(val, true); // 拼接主域名
  19599. else if (name.includes('src')) this.attrs[name] = this.getUrl(decodeEntity(val, true));else if (name) this.attrs[name] = val;
  19600. };
  19601. /**
  19602. * @description 解析到标签开始
  19603. * @param {Boolean} selfClose 是否有自闭合标识 />
  19604. * @private
  19605. */
  19606. parser.prototype.onOpenTag = function (selfClose) {
  19607. // 拼装 node
  19608. var node = Object.create(null);
  19609. node.name = this.tagName;
  19610. node.attrs = this.attrs;
  19611. this.attrs = Object.create(null);
  19612. var attrs = node.attrs;
  19613. var parent = this.stack[this.stack.length - 1];
  19614. var siblings = parent ? parent.children : this.nodes;
  19615. var close = this.xml ? selfClose : config.voidTags[node.name]; // 转换 embed 标签
  19616. if (node.name == 'embed') {
  19617. var src = attrs.src || ''; // 按照后缀名和 type 将 embed 转为 video 或 audio
  19618. if (src.includes('.mp4') || src.includes('.3gp') || src.includes('.m3u8') || (attrs.type || '').includes('video')) node.name = 'video';else if (src.includes('.mp3') || src.includes('.wav') || src.includes('.aac') || src.includes('.m4a') || (attrs.type || '').includes('audio')) node.name = 'audio';
  19619. if (attrs.autostart) attrs.autoplay = 'T';
  19620. attrs.controls = 'T';
  19621. }
  19622. // 处理音视频
  19623. if (node.name == 'video' || node.name == 'audio') {
  19624. // 设置 id 以便获取 context
  19625. if (node.name == 'video' && !attrs.id) attrs.id = "v".concat(idIndex++); // 没有设置 controls 也没有设置 autoplay 的自动设置 controls
  19626. if (!attrs.controls && !attrs.autoplay) attrs.controls = 'T'; // 用数组存储所有可用的 source
  19627. node.src = [];
  19628. if (attrs.src) {
  19629. node.src.push(attrs.src);
  19630. attrs.src = void 0;
  19631. }
  19632. this.expose();
  19633. }
  19634. // 处理自闭合标签
  19635. if (close) {
  19636. if (!this.hook(node) || config.ignoreTags[node.name]) {
  19637. // 通过 base 标签设置主域名
  19638. if (node.name == 'base' && !this.options.domain) this.options.domain = attrs.href;
  19639. // 设置 source 标签(仅父节点为 video 或 audio 时有效)
  19640. else if (node.name == 'source' && parent && (parent.name == 'video' || parent.name == 'audio') && attrs.src) parent.src.push(attrs.src);
  19641. return;
  19642. } // 解析 style
  19643. var styleObj = this.parseStyle(node); // 处理图片
  19644. if (node.name == 'img') {
  19645. if (attrs.src) {
  19646. // 标记 webp
  19647. if (attrs.src.includes('webp')) node.webp = 'T'; // data url 图片如果没有设置 original-src 默认为不可预览的小图片
  19648. if (attrs.src.includes('data:') && !attrs['original-src']) attrs.ignore = 'T';
  19649. if (!attrs.ignore || node.webp || attrs.src.includes('cloud://')) {
  19650. for (var i = this.stack.length; i--;) {
  19651. var item = this.stack[i];
  19652. if (item.name == 'a') {
  19653. node.a = item.attrs;
  19654. break;
  19655. }
  19656. var style = item.attrs.style || '';
  19657. if (style.includes('flex:') && !style.includes('flex:0') && !style.includes('flex: 0') && (!styleObj.width || !styleObj.width.includes('%'))) {
  19658. styleObj.width = '100% !important';
  19659. styleObj.height = '';
  19660. for (var j = i + 1; j < this.stack.length; j++) {
  19661. this.stack[j].attrs.style = (this.stack[j].attrs.style || '').replace('inline-', '');
  19662. }
  19663. } else if (style.includes('flex') && styleObj.width == '100%') {
  19664. for (var _j = i + 1; _j < this.stack.length; _j++) {
  19665. var _style = this.stack[_j].attrs.style || '';
  19666. if (!_style.includes(';width') && !_style.includes(' width') && _style.indexOf('width') != 0) {
  19667. styleObj.width = '';
  19668. break;
  19669. }
  19670. }
  19671. } else if (style.includes('inline-block')) {
  19672. if (styleObj.width && styleObj.width[styleObj.width.length - 1] == '%') {
  19673. item.attrs.style += ";max-width:".concat(styleObj.width);
  19674. styleObj.width = '';
  19675. } else item.attrs.style += ';max-width:100%';
  19676. }
  19677. item.c = 1;
  19678. }
  19679. attrs.i = this.imgList.length.toString();
  19680. var _src = attrs['original-src'] || attrs.src;
  19681. if (this.imgList.includes(_src)) {
  19682. // 如果有重复的链接则对域名进行随机大小写变换避免预览时错位
  19683. var _i = _src.indexOf('://');
  19684. if (_i != -1) {
  19685. _i += 3;
  19686. var newSrc = _src.substr(0, _i);
  19687. for (; _i < _src.length; _i++) {
  19688. if (_src[_i] == '/') break;
  19689. newSrc += Math.random() > 0.5 ? _src[_i].toUpperCase() : _src[_i];
  19690. }
  19691. newSrc += _src.substr(_i);
  19692. _src = newSrc;
  19693. }
  19694. }
  19695. this.imgList.push(_src);
  19696. }
  19697. }
  19698. if (styleObj.display == 'inline') styleObj.display = '';
  19699. if (attrs.ignore) {
  19700. styleObj['max-width'] = styleObj['max-width'] || '100%';
  19701. attrs.style += ';-webkit-touch-callout:none';
  19702. }
  19703. // 设置的宽度超出屏幕,为避免变形,高度转为自动
  19704. if (parseInt(styleObj.width) > windowWidth) styleObj.height = void 0; // 记录是否设置了宽高
  19705. if (styleObj.width) {
  19706. if (styleObj.width.includes('auto')) styleObj.width = '';else {
  19707. node.w = 'T';
  19708. if (styleObj.height && !styleObj.height.includes('auto')) node.h = 'T';
  19709. }
  19710. }
  19711. } else if (node.name == 'svg') {
  19712. siblings.push(node);
  19713. this.stack.push(node);
  19714. this.popNode();
  19715. return;
  19716. }
  19717. for (var key in styleObj) {
  19718. if (styleObj[key]) attrs.style += ';'.concat(key, ':').concat(styleObj[key].replace(' !important', ''));
  19719. }
  19720. attrs.style = attrs.style.substr(1) || void 0;
  19721. } else {
  19722. if (node.name == 'pre' || (attrs.style || '').includes('white-space') && attrs.style.includes('pre')) this.pre = node.pre = true;
  19723. node.children = [];
  19724. this.stack.push(node);
  19725. } // 加入节点树
  19726. siblings.push(node);
  19727. };
  19728. /**
  19729. * @description 解析到标签结束
  19730. * @param {String} name 标签名
  19731. * @private
  19732. */
  19733. parser.prototype.onCloseTag = function (name) {
  19734. // 依次出栈到匹配为止
  19735. name = this.xml ? name : name.toLowerCase();
  19736. var i;
  19737. for (i = this.stack.length; i--;) {
  19738. if (this.stack[i].name == name) break;
  19739. }
  19740. if (i != -1) {
  19741. while (this.stack.length > i) {
  19742. this.popNode();
  19743. }
  19744. } else if (name == 'p' || name == 'br') {
  19745. var siblings = this.stack.length ? this.stack[this.stack.length - 1].children : this.nodes;
  19746. siblings.push({
  19747. name: name,
  19748. attrs: {}
  19749. });
  19750. }
  19751. };
  19752. /**
  19753. * @description 处理标签出栈
  19754. * @private
  19755. */
  19756. parser.prototype.popNode = function () {
  19757. var node = this.stack.pop();
  19758. var attrs = node.attrs;
  19759. var children = node.children;
  19760. var parent = this.stack[this.stack.length - 1];
  19761. var siblings = parent ? parent.children : this.nodes;
  19762. if (!this.hook(node) || config.ignoreTags[node.name]) {
  19763. // 获取标题
  19764. if (node.name == 'title' && children.length && children[0].type == 'text' && this.options.setTitle) {
  19765. uni.setNavigationBarTitle({
  19766. title: children[0].text
  19767. });
  19768. }
  19769. siblings.pop();
  19770. return;
  19771. }
  19772. if (node.pre) {
  19773. // 是否合并空白符标识
  19774. node.pre = this.pre = void 0;
  19775. for (var i = this.stack.length; i--;) {
  19776. if (this.stack[i].pre) this.pre = true;
  19777. }
  19778. }
  19779. var styleObj = {}; // 转换 svg
  19780. if (node.name == 'svg') {
  19781. var src = '';
  19782. var _attrs = attrs,
  19783. style = _attrs.style;
  19784. attrs.style = '';
  19785. attrs.xmlns = 'http://www.w3.org/2000/svg';
  19786. (function traversal(node) {
  19787. src += "<".concat(node.name);
  19788. for (var item in node.attrs) {
  19789. var val = node.attrs[item];
  19790. if (val) {
  19791. if (item == 'viewbox') item = 'viewBox';
  19792. src += ' '.concat(item, '="').concat(val, '"');
  19793. }
  19794. }
  19795. if (!node.children) src += '/>';else {
  19796. src += '>';
  19797. for (var _i2 = 0; _i2 < node.children.length; _i2++) {
  19798. traversal(node.children[_i2]);
  19799. }
  19800. src += "</".concat(node.name, ">");
  19801. }
  19802. })(node);
  19803. node.name = 'img';
  19804. node.attrs = {
  19805. src: "data:image/svg+xml;utf8,".concat(src.replace(/#/g, '%23')),
  19806. style: style,
  19807. ignore: 'T'
  19808. };
  19809. node.children = void 0;
  19810. this.xml = false;
  19811. return;
  19812. }
  19813. // 转换 align 属性
  19814. if (attrs.align) {
  19815. if (node.name == 'table') {
  19816. if (attrs.align == 'center') styleObj['margin-inline-start'] = styleObj['margin-inline-end'] = 'auto';else styleObj.float = attrs.align;
  19817. } else styleObj['text-align'] = attrs.align;
  19818. attrs.align = void 0;
  19819. } // 转换 font 标签的属性
  19820. if (node.name == 'font') {
  19821. if (attrs.color) {
  19822. styleObj.color = attrs.color;
  19823. attrs.color = void 0;
  19824. }
  19825. if (attrs.face) {
  19826. styleObj['font-family'] = attrs.face;
  19827. attrs.face = void 0;
  19828. }
  19829. if (attrs.size) {
  19830. var size = parseInt(attrs.size);
  19831. if (!isNaN(size)) {
  19832. if (size < 1) size = 1;else if (size > 7) size = 7;
  19833. styleObj['font-size'] = ['xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large'][size - 1];
  19834. }
  19835. attrs.size = void 0;
  19836. }
  19837. }
  19838. // 一些编辑器的自带 class
  19839. if ((attrs.class || '').includes('align-center')) styleObj['text-align'] = 'center';
  19840. Object.assign(styleObj, this.parseStyle(node));
  19841. if (parseInt(styleObj.width) > windowWidth) {
  19842. styleObj['max-width'] = '100%';
  19843. styleObj['box-sizing'] = 'border-box';
  19844. }
  19845. if (config.blockTags[node.name]) node.name = 'div'; // 未知标签转为 span,避免无法显示
  19846. else if (!config.trustTags[node.name] && !this.xml) node.name = 'span';
  19847. if (node.name == 'a' || node.name == 'ad') this.expose();
  19848. // 列表处理
  19849. else if ((node.name == 'ul' || node.name == 'ol') && node.c) {
  19850. var types = {
  19851. a: 'lower-alpha',
  19852. A: 'upper-alpha',
  19853. i: 'lower-roman',
  19854. I: 'upper-roman'
  19855. };
  19856. if (types[attrs.type]) {
  19857. attrs.style += ";list-style-type:".concat(types[attrs.type]);
  19858. attrs.type = void 0;
  19859. }
  19860. for (var _i4 = children.length; _i4--;) {
  19861. if (children[_i4].name == 'li') children[_i4].c = 1;
  19862. }
  19863. } // 表格处理
  19864. else if (node.name == 'table') {
  19865. // cellpadding、cellspacing、border 这几个常用表格属性需要通过转换实现
  19866. var padding = parseFloat(attrs.cellpadding);
  19867. var spacing = parseFloat(attrs.cellspacing);
  19868. var border = parseFloat(attrs.border);
  19869. if (node.c) {
  19870. // padding 和 spacing 默认 2
  19871. if (isNaN(padding)) padding = 2;
  19872. if (isNaN(spacing)) spacing = 2;
  19873. }
  19874. if (border) attrs.style += ";border:".concat(border, "px solid gray");
  19875. if (node.flag && node.c) {
  19876. // 有 colspan 或 rowspan 且含有链接的表格通过 grid 布局实现
  19877. styleObj.display = 'grid';
  19878. if (spacing) {
  19879. styleObj['grid-gap'] = "".concat(spacing, "px");
  19880. styleObj.padding = "".concat(spacing, "px");
  19881. } // 无间隔的情况下避免边框重叠
  19882. else if (border) attrs.style += ';border-left:0;border-top:0';
  19883. var width = [];
  19884. // 表格的列宽
  19885. var trList = [];
  19886. // tr 列表
  19887. var cells = [];
  19888. // 保存新的单元格
  19889. var map = {}; // 被合并单元格占用的格子
  19890. (function traversal(nodes) {
  19891. for (var _i5 = 0; _i5 < nodes.length; _i5++) {
  19892. if (nodes[_i5].name == 'tr') trList.push(nodes[_i5]);else traversal(nodes[_i5].children || []);
  19893. }
  19894. })(children);
  19895. for (var row = 1; row <= trList.length; row++) {
  19896. var col = 1;
  19897. for (var j = 0; j < trList[row - 1].children.length; j++, col++) {
  19898. var td = trList[row - 1].children[j];
  19899. if (td.name == 'td' || td.name == 'th') {
  19900. // 这个格子被上面的单元格占用,则列号++
  19901. while (map["".concat(row, ".").concat(col)]) {
  19902. col++;
  19903. }
  19904. var _style2 = td.attrs.style || '';
  19905. var start = _style2.indexOf('width') ? _style2.indexOf(';width') : 0; // 提取出 td 的宽度
  19906. if (start != -1) {
  19907. var end = _style2.indexOf(';', start + 6);
  19908. if (end == -1) end = _style2.length;
  19909. if (!td.attrs.colspan) width[col] = _style2.substring(start ? start + 7 : 6, end);
  19910. _style2 = _style2.substr(0, start) + _style2.substr(end);
  19911. }
  19912. _style2 += (border ? ';border:'.concat(border, 'px solid gray') + (spacing ? '' : ';border-right:0;border-bottom:0') : '') + (padding ? ';padding:'.concat(padding, 'px') : ''); // 处理列合并
  19913. if (td.attrs.colspan) {
  19914. _style2 += ';grid-column-start:'.concat(col, ';grid-column-end:').concat(col + parseInt(td.attrs.colspan));
  19915. if (!td.attrs.rowspan) _style2 += ';grid-row-start:'.concat(row, ';grid-row-end:').concat(row + 1);
  19916. col += parseInt(td.attrs.colspan) - 1;
  19917. } // 处理行合并
  19918. if (td.attrs.rowspan) {
  19919. _style2 += ';grid-row-start:'.concat(row, ';grid-row-end:').concat(row + parseInt(td.attrs.rowspan));
  19920. if (!td.attrs.colspan) _style2 += ';grid-column-start:'.concat(col, ';grid-column-end:').concat(col + 1); // 记录下方单元格被占用
  19921. for (var k = 1; k < td.attrs.rowspan; k++) {
  19922. map["".concat(row + k, ".").concat(col)] = 1;
  19923. }
  19924. }
  19925. if (_style2) td.attrs.style = _style2;
  19926. cells.push(td);
  19927. }
  19928. }
  19929. if (row == 1) {
  19930. var temp = '';
  19931. for (var _i6 = 1; _i6 < col; _i6++) {
  19932. temp += "".concat(width[_i6] ? width[_i6] : 'auto', " ");
  19933. }
  19934. styleObj['grid-template-columns'] = temp;
  19935. }
  19936. }
  19937. node.children = cells;
  19938. } else {
  19939. // 没有使用合并单元格的表格通过 table 布局实现
  19940. if (node.c) styleObj.display = 'table';
  19941. if (!isNaN(spacing)) styleObj['border-spacing'] = "".concat(spacing, "px");
  19942. if (border || padding) {
  19943. // 遍历
  19944. (function traversal(nodes) {
  19945. for (var _i7 = 0; _i7 < nodes.length; _i7++) {
  19946. var _td = nodes[_i7];
  19947. if (_td.name == 'th' || _td.name == 'td') {
  19948. if (border) _td.attrs.style = 'border:'.concat(border, 'px solid gray;').concat(_td.attrs.style || '');
  19949. if (padding) _td.attrs.style = 'padding:'.concat(padding, 'px;').concat(_td.attrs.style || '');
  19950. } else if (_td.children) traversal(_td.children);
  19951. }
  19952. })(children);
  19953. }
  19954. } // 给表格添加一个单独的横向滚动层
  19955. if (this.options.scrollTable && !(attrs.style || '').includes('inline')) {
  19956. var table = _objectSpread({}, node);
  19957. node.name = 'div';
  19958. node.attrs = {
  19959. style: 'overflow:auto'
  19960. };
  19961. node.children = [table];
  19962. attrs = table.attrs;
  19963. }
  19964. } else if ((node.name == 'td' || node.name == 'th') && (attrs.colspan || attrs.rowspan)) {
  19965. for (var _i8 = this.stack.length; _i8--;) {
  19966. if (this.stack[_i8].name == 'table') {
  19967. this.stack[_i8].flag = 1; // 指示含有合并单元格
  19968. break;
  19969. }
  19970. }
  19971. } // 转换 ruby
  19972. else if (node.name == 'ruby') {
  19973. node.name = 'span';
  19974. for (var _i9 = 0; _i9 < children.length - 1; _i9++) {
  19975. if (children[_i9].type == 'text' && children[_i9 + 1].name == 'rt') {
  19976. children[_i9] = {
  19977. name: 'div',
  19978. attrs: {
  19979. style: 'display:inline-block'
  19980. },
  19981. children: [{
  19982. name: 'div',
  19983. attrs: {
  19984. style: 'font-size:50%;text-align:start'
  19985. },
  19986. children: children[_i9 + 1].children
  19987. }, children[_i9]]
  19988. };
  19989. children.splice(_i9 + 1, 1);
  19990. }
  19991. }
  19992. } else if (node.c) {
  19993. node.c = 2;
  19994. for (var _i10 = node.children.length; _i10--;) {
  19995. if (!node.children[_i10].c || node.children[_i10].name == 'table') node.c = 1;
  19996. }
  19997. }
  19998. if ((styleObj.display || '').includes('flex') && !node.c) {
  19999. for (var _i11 = children.length; _i11--;) {
  20000. var _item = children[_i11];
  20001. if (_item.f) {
  20002. _item.attrs.style = (_item.attrs.style || '') + _item.f;
  20003. _item.f = void 0;
  20004. }
  20005. }
  20006. } // flex 布局时部分样式需要提取到 rich-text 外层
  20007. var flex = parent && (parent.attrs.style || '').includes('flex')
  20008. // 检查基础库版本 virtualHost 是否可用
  20009. && !(node.c && wx.getNFCAdapter);
  20010. if (flex) node.f = ';max-width:100%';
  20011. for (var key in styleObj) {
  20012. if (styleObj[key]) {
  20013. var val = ';'.concat(key, ':').concat(styleObj[key].replace(' !important', ''));
  20014. if (flex && (key.includes('flex') && key != 'flex-direction' || key == 'align-self' || styleObj[key][0] == '-' || key == 'width' && val.includes('%'))) {
  20015. node.f += val;
  20016. if (key == 'width') attrs.style += ';width:100%';
  20017. } else {
  20018. attrs.style += val;
  20019. }
  20020. }
  20021. }
  20022. attrs.style = attrs.style.substr(1) || void 0;
  20023. };
  20024. /**
  20025. * @description 解析到文本
  20026. * @param {String} text 文本内容
  20027. */
  20028. parser.prototype.onText = function (text) {
  20029. if (!this.pre) {
  20030. // 合并空白符
  20031. var trim = '';
  20032. var flag;
  20033. for (var i = 0, len = text.length; i < len; i++) {
  20034. if (!blankChar[text[i]]) trim += text[i];else {
  20035. if (trim[trim.length - 1] != ' ') trim += ' ';
  20036. if (text[i] == '\n' && !flag) flag = true;
  20037. }
  20038. } // 去除含有换行符的空串
  20039. if (trim == ' ' && flag) return;
  20040. text = trim;
  20041. }
  20042. var node = Object.create(null);
  20043. node.type = 'text';
  20044. node.text = decodeEntity(text);
  20045. if (this.hook(node)) {
  20046. var siblings = this.stack.length ? this.stack[this.stack.length - 1].children : this.nodes;
  20047. siblings.push(node);
  20048. }
  20049. };
  20050. /**
  20051. * @description html 词法分析器
  20052. * @param {Object} handler 高层处理器
  20053. */
  20054. function lexer(handler) {
  20055. this.handler = handler;
  20056. }
  20057. /**
  20058. * @description 执行解析
  20059. * @param {String} content 要解析的文本
  20060. */
  20061. lexer.prototype.parse = function (content) {
  20062. this.content = content || '';
  20063. this.i = 0; // 标记解析位置
  20064. this.start = 0; // 标记一个单词的开始位置
  20065. this.state = this.text; // 当前状态
  20066. for (var len = this.content.length; this.i != -1 && this.i < len;) {
  20067. this.state();
  20068. }
  20069. };
  20070. /**
  20071. * @description 检查标签是否闭合
  20072. * @param {String} method 如果闭合要进行的操作
  20073. * @returns {Boolean} 是否闭合
  20074. * @private
  20075. */
  20076. lexer.prototype.checkClose = function (method) {
  20077. var selfClose = this.content[this.i] == '/';
  20078. if (this.content[this.i] == '>' || selfClose && this.content[this.i + 1] == '>') {
  20079. if (method) this.handler[method](this.content.substring(this.start, this.i));
  20080. this.i += selfClose ? 2 : 1;
  20081. this.start = this.i;
  20082. this.handler.onOpenTag(selfClose);
  20083. if (this.handler.tagName == 'script') {
  20084. this.i = this.content.indexOf('</', this.i);
  20085. if (this.i != -1) {
  20086. this.i += 2;
  20087. this.start = this.i;
  20088. }
  20089. this.state = this.endTag;
  20090. } else this.state = this.text;
  20091. return true;
  20092. }
  20093. return false;
  20094. };
  20095. /**
  20096. * @description 文本状态
  20097. * @private
  20098. */
  20099. lexer.prototype.text = function () {
  20100. this.i = this.content.indexOf('<', this.i); // 查找最近的标签
  20101. if (this.i == -1) {
  20102. // 没有标签了
  20103. if (this.start < this.content.length) this.handler.onText(this.content.substring(this.start, this.content.length));
  20104. return;
  20105. }
  20106. var c = this.content[this.i + 1];
  20107. if (c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z') {
  20108. // 标签开头
  20109. if (this.start != this.i) this.handler.onText(this.content.substring(this.start, this.i));
  20110. this.start = ++this.i;
  20111. this.state = this.tagName;
  20112. } else if (c == '/' || c == '!' || c == '?') {
  20113. if (this.start != this.i) this.handler.onText(this.content.substring(this.start, this.i));
  20114. var next = this.content[this.i + 2];
  20115. if (c == '/' && (next >= 'a' && next <= 'z' || next >= 'A' && next <= 'Z')) {
  20116. // 标签结尾
  20117. this.i += 2;
  20118. this.start = this.i;
  20119. return this.state = this.endTag;
  20120. } // 处理注释
  20121. var end = '-->';
  20122. if (c != '!' || this.content[this.i + 2] != '-' || this.content[this.i + 3] != '-') end = '>';
  20123. this.i = this.content.indexOf(end, this.i);
  20124. if (this.i != -1) {
  20125. this.i += end.length;
  20126. this.start = this.i;
  20127. }
  20128. } else this.i++;
  20129. };
  20130. /**
  20131. * @description 标签名状态
  20132. * @private
  20133. */
  20134. lexer.prototype.tagName = function () {
  20135. if (blankChar[this.content[this.i]]) {
  20136. // 解析到标签名
  20137. this.handler.onTagName(this.content.substring(this.start, this.i));
  20138. while (blankChar[this.content[++this.i]]) {}
  20139. if (this.i < this.content.length && !this.checkClose()) {
  20140. this.start = this.i;
  20141. this.state = this.attrName;
  20142. }
  20143. } else if (!this.checkClose('onTagName')) this.i++;
  20144. };
  20145. /**
  20146. * @description 属性名状态
  20147. * @private
  20148. */
  20149. lexer.prototype.attrName = function () {
  20150. var c = this.content[this.i];
  20151. if (blankChar[c] || c == '=') {
  20152. // 解析到属性名
  20153. this.handler.onAttrName(this.content.substring(this.start, this.i));
  20154. var needVal = c == '=';
  20155. var len = this.content.length;
  20156. while (++this.i < len) {
  20157. c = this.content[this.i];
  20158. if (!blankChar[c]) {
  20159. if (this.checkClose()) return;
  20160. if (needVal) {
  20161. // 等号后遇到第一个非空字符
  20162. this.start = this.i;
  20163. return this.state = this.attrVal;
  20164. }
  20165. if (this.content[this.i] == '=') needVal = true;else {
  20166. this.start = this.i;
  20167. return this.state = this.attrName;
  20168. }
  20169. }
  20170. }
  20171. } else if (!this.checkClose('onAttrName')) this.i++;
  20172. };
  20173. /**
  20174. * @description 属性值状态
  20175. * @private
  20176. */
  20177. lexer.prototype.attrVal = function () {
  20178. var c = this.content[this.i];
  20179. var len = this.content.length; // 有冒号的属性
  20180. if (c == '"' || c == "'") {
  20181. this.start = ++this.i;
  20182. this.i = this.content.indexOf(c, this.i);
  20183. if (this.i == -1) return;
  20184. this.handler.onAttrVal(this.content.substring(this.start, this.i));
  20185. } // 没有冒号的属性
  20186. else {
  20187. for (; this.i < len; this.i++) {
  20188. if (blankChar[this.content[this.i]]) {
  20189. this.handler.onAttrVal(this.content.substring(this.start, this.i));
  20190. break;
  20191. } else if (this.checkClose('onAttrVal')) return;
  20192. }
  20193. }
  20194. while (blankChar[this.content[++this.i]]) {}
  20195. if (this.i < len && !this.checkClose()) {
  20196. this.start = this.i;
  20197. this.state = this.attrName;
  20198. }
  20199. };
  20200. /**
  20201. * @description 结束标签状态
  20202. * @returns {String} 结束的标签名
  20203. * @private
  20204. */
  20205. lexer.prototype.endTag = function () {
  20206. var c = this.content[this.i];
  20207. if (blankChar[c] || c == '>' || c == '/') {
  20208. this.handler.onCloseTag(this.content.substring(this.start, this.i));
  20209. if (c != '>') {
  20210. this.i = this.content.indexOf('>', this.i);
  20211. if (this.i == -1) return;
  20212. }
  20213. this.start = ++this.i;
  20214. this.state = this.text;
  20215. } else this.i++;
  20216. };
  20217. module.exports = parser;
  20218. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  20219. /***/ }),
  20220. /* 384 */,
  20221. /* 385 */,
  20222. /* 386 */,
  20223. /* 387 */,
  20224. /* 388 */,
  20225. /* 389 */,
  20226. /* 390 */,
  20227. /* 391 */
  20228. /*!********************************************************************************************************!*\
  20229. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/components/u-avatar/props.js ***!
  20230. \********************************************************************************************************/
  20231. /*! no static exports found */
  20232. /***/ (function(module, exports, __webpack_require__) {
  20233. "use strict";
  20234. /* WEBPACK VAR INJECTION */(function(uni) {
  20235. Object.defineProperty(exports, "__esModule", {
  20236. value: true
  20237. });
  20238. exports.default = void 0;
  20239. var _default = {
  20240. props: {
  20241. // 头像图片路径(不能为相对路径)
  20242. src: {
  20243. type: String,
  20244. default: uni.$u.props.avatar.src
  20245. },
  20246. // 头像形状,circle-圆形,square-方形
  20247. shape: {
  20248. type: String,
  20249. default: uni.$u.props.avatar.shape
  20250. },
  20251. // 头像尺寸
  20252. size: {
  20253. type: [String, Number],
  20254. default: uni.$u.props.avatar.size
  20255. },
  20256. // 裁剪模式
  20257. mode: {
  20258. type: String,
  20259. default: uni.$u.props.avatar.mode
  20260. },
  20261. // 显示的文字
  20262. text: {
  20263. type: String,
  20264. default: uni.$u.props.avatar.text
  20265. },
  20266. // 背景色
  20267. bgColor: {
  20268. type: String,
  20269. default: uni.$u.props.avatar.bgColor
  20270. },
  20271. // 文字颜色
  20272. color: {
  20273. type: String,
  20274. default: uni.$u.props.avatar.color
  20275. },
  20276. // 文字大小
  20277. fontSize: {
  20278. type: [String, Number],
  20279. default: uni.$u.props.avatar.fontSize
  20280. },
  20281. // 显示的图标
  20282. icon: {
  20283. type: String,
  20284. default: uni.$u.props.avatar.icon
  20285. },
  20286. // 显示小程序头像,只对百度,微信,QQ小程序有效
  20287. mpAvatar: {
  20288. type: Boolean,
  20289. default: uni.$u.props.avatar.mpAvatar
  20290. },
  20291. // 是否使用随机背景色
  20292. randomBgColor: {
  20293. type: Boolean,
  20294. default: uni.$u.props.avatar.randomBgColor
  20295. },
  20296. // 加载失败的默认头像(组件有内置默认图片)
  20297. defaultUrl: {
  20298. type: String,
  20299. default: uni.$u.props.avatar.defaultUrl
  20300. },
  20301. // 如果配置了randomBgColor为true,且配置了此值,则从默认的背景色数组中取出对应索引的颜色值,取值0-19之间
  20302. colorIndex: {
  20303. type: [String, Number],
  20304. // 校验参数规则,索引在0-19之间
  20305. validator: function validator(n) {
  20306. return uni.$u.test.range(n, [0, 19]) || n === '';
  20307. },
  20308. default: uni.$u.props.avatar.colorIndex
  20309. },
  20310. // 组件标识符
  20311. name: {
  20312. type: String,
  20313. default: uni.$u.props.avatar.name
  20314. }
  20315. }
  20316. };
  20317. exports.default = _default;
  20318. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20319. /***/ }),
  20320. /* 392 */,
  20321. /* 393 */,
  20322. /* 394 */,
  20323. /* 395 */,
  20324. /* 396 */,
  20325. /* 397 */,
  20326. /* 398 */,
  20327. /* 399 */
  20328. /*!******************************************************************************************************!*\
  20329. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/components/u-form/props.js ***!
  20330. \******************************************************************************************************/
  20331. /*! no static exports found */
  20332. /***/ (function(module, exports, __webpack_require__) {
  20333. "use strict";
  20334. /* WEBPACK VAR INJECTION */(function(uni) {
  20335. Object.defineProperty(exports, "__esModule", {
  20336. value: true
  20337. });
  20338. exports.default = void 0;
  20339. var _default = {
  20340. props: {
  20341. // 当前form的需要验证字段的集合
  20342. model: {
  20343. type: Object,
  20344. default: uni.$u.props.form.model
  20345. },
  20346. // 验证规则
  20347. rules: {
  20348. type: [Object, Function, Array],
  20349. default: uni.$u.props.form.rules
  20350. },
  20351. // 有错误时的提示方式,message-提示信息,toast-进行toast提示
  20352. // border-bottom-下边框呈现红色,none-无提示
  20353. errorType: {
  20354. type: String,
  20355. default: uni.$u.props.form.errorType
  20356. },
  20357. // 是否显示表单域的下划线边框
  20358. borderBottom: {
  20359. type: Boolean,
  20360. default: uni.$u.props.form.borderBottom
  20361. },
  20362. // label的位置,left-左边,top-上边
  20363. labelPosition: {
  20364. type: String,
  20365. default: uni.$u.props.form.labelPosition
  20366. },
  20367. // label的宽度,单位px
  20368. labelWidth: {
  20369. type: [String, Number],
  20370. default: uni.$u.props.form.labelWidth
  20371. },
  20372. // lable字体的对齐方式
  20373. labelAlign: {
  20374. type: String,
  20375. default: uni.$u.props.form.labelAlign
  20376. },
  20377. // lable的样式,对象形式
  20378. labelStyle: {
  20379. type: Object,
  20380. default: uni.$u.props.form.labelStyle
  20381. }
  20382. }
  20383. };
  20384. exports.default = _default;
  20385. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20386. /***/ }),
  20387. /* 400 */
  20388. /*!********************************************************************************************************!*\
  20389. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/util/async-validator.js ***!
  20390. \********************************************************************************************************/
  20391. /*! no static exports found */
  20392. /***/ (function(module, exports, __webpack_require__) {
  20393. "use strict";
  20394. /* WEBPACK VAR INJECTION */(function(process) {
  20395. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20396. Object.defineProperty(exports, "__esModule", {
  20397. value: true
  20398. });
  20399. exports.default = void 0;
  20400. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  20401. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  20402. 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; }
  20403. 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; }
  20404. function _extends() {
  20405. _extends = Object.assign || function (target) {
  20406. for (var i = 1; i < arguments.length; i++) {
  20407. var source = arguments[i];
  20408. for (var key in source) {
  20409. if (Object.prototype.hasOwnProperty.call(source, key)) {
  20410. target[key] = source[key];
  20411. }
  20412. }
  20413. }
  20414. return target;
  20415. };
  20416. return _extends.apply(this, arguments);
  20417. }
  20418. /* eslint no-console:0 */
  20419. var formatRegExp = /%[sdj%]/g;
  20420. var warning = function warning() {}; // don't print warning message when in production env or node runtime
  20421. if (typeof process !== 'undefined' && Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"Ruoyi-AbuCoder-UniApp-WX","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}) && "development" !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {
  20422. warning = function warning(type, errors) {
  20423. if (typeof console !== 'undefined' && console.warn) {
  20424. if (errors.every(function (e) {
  20425. return typeof e === 'string';
  20426. })) {
  20427. console.warn(type, errors);
  20428. }
  20429. }
  20430. };
  20431. }
  20432. function convertFieldsError(errors) {
  20433. if (!errors || !errors.length) return null;
  20434. var fields = {};
  20435. errors.forEach(function (error) {
  20436. var field = error.field;
  20437. fields[field] = fields[field] || [];
  20438. fields[field].push(error);
  20439. });
  20440. return fields;
  20441. }
  20442. function format() {
  20443. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  20444. args[_key] = arguments[_key];
  20445. }
  20446. var i = 1;
  20447. var f = args[0];
  20448. var len = args.length;
  20449. if (typeof f === 'function') {
  20450. return f.apply(null, args.slice(1));
  20451. }
  20452. if (typeof f === 'string') {
  20453. var str = String(f).replace(formatRegExp, function (x) {
  20454. if (x === '%%') {
  20455. return '%';
  20456. }
  20457. if (i >= len) {
  20458. return x;
  20459. }
  20460. switch (x) {
  20461. case '%s':
  20462. return String(args[i++]);
  20463. case '%d':
  20464. return Number(args[i++]);
  20465. case '%j':
  20466. try {
  20467. return JSON.stringify(args[i++]);
  20468. } catch (_) {
  20469. return '[Circular]';
  20470. }
  20471. break;
  20472. default:
  20473. return x;
  20474. }
  20475. });
  20476. for (var arg = args[i]; i < len; arg = args[++i]) {
  20477. str += " ".concat(arg);
  20478. }
  20479. return str;
  20480. }
  20481. return f;
  20482. }
  20483. function isNativeStringType(type) {
  20484. return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern';
  20485. }
  20486. function isEmptyValue(value, type) {
  20487. if (value === undefined || value === null) {
  20488. return true;
  20489. }
  20490. if (type === 'array' && Array.isArray(value) && !value.length) {
  20491. return true;
  20492. }
  20493. if (isNativeStringType(type) && typeof value === 'string' && !value) {
  20494. return true;
  20495. }
  20496. return false;
  20497. }
  20498. function asyncParallelArray(arr, func, callback) {
  20499. var results = [];
  20500. var total = 0;
  20501. var arrLength = arr.length;
  20502. function count(errors) {
  20503. results.push.apply(results, errors);
  20504. total++;
  20505. if (total === arrLength) {
  20506. callback(results);
  20507. }
  20508. }
  20509. arr.forEach(function (a) {
  20510. func(a, count);
  20511. });
  20512. }
  20513. function asyncSerialArray(arr, func, callback) {
  20514. var index = 0;
  20515. var arrLength = arr.length;
  20516. function next(errors) {
  20517. if (errors && errors.length) {
  20518. callback(errors);
  20519. return;
  20520. }
  20521. var original = index;
  20522. index += 1;
  20523. if (original < arrLength) {
  20524. func(arr[original], next);
  20525. } else {
  20526. callback([]);
  20527. }
  20528. }
  20529. next([]);
  20530. }
  20531. function flattenObjArr(objArr) {
  20532. var ret = [];
  20533. Object.keys(objArr).forEach(function (k) {
  20534. ret.push.apply(ret, objArr[k]);
  20535. });
  20536. return ret;
  20537. }
  20538. function asyncMap(objArr, option, func, callback) {
  20539. if (option.first) {
  20540. var _pending = new Promise(function (resolve, reject) {
  20541. var next = function next(errors) {
  20542. callback(errors);
  20543. return errors.length ? reject({
  20544. errors: errors,
  20545. fields: convertFieldsError(errors)
  20546. }) : resolve();
  20547. };
  20548. var flattenArr = flattenObjArr(objArr);
  20549. asyncSerialArray(flattenArr, func, next);
  20550. });
  20551. _pending.catch(function (e) {
  20552. return e;
  20553. });
  20554. return _pending;
  20555. }
  20556. var firstFields = option.firstFields || [];
  20557. if (firstFields === true) {
  20558. firstFields = Object.keys(objArr);
  20559. }
  20560. var objArrKeys = Object.keys(objArr);
  20561. var objArrLength = objArrKeys.length;
  20562. var total = 0;
  20563. var results = [];
  20564. var pending = new Promise(function (resolve, reject) {
  20565. var next = function next(errors) {
  20566. results.push.apply(results, errors);
  20567. total++;
  20568. if (total === objArrLength) {
  20569. callback(results);
  20570. return results.length ? reject({
  20571. errors: results,
  20572. fields: convertFieldsError(results)
  20573. }) : resolve();
  20574. }
  20575. };
  20576. if (!objArrKeys.length) {
  20577. callback(results);
  20578. resolve();
  20579. }
  20580. objArrKeys.forEach(function (key) {
  20581. var arr = objArr[key];
  20582. if (firstFields.indexOf(key) !== -1) {
  20583. asyncSerialArray(arr, func, next);
  20584. } else {
  20585. asyncParallelArray(arr, func, next);
  20586. }
  20587. });
  20588. });
  20589. pending.catch(function (e) {
  20590. return e;
  20591. });
  20592. return pending;
  20593. }
  20594. function complementError(rule) {
  20595. return function (oe) {
  20596. if (oe && oe.message) {
  20597. oe.field = oe.field || rule.fullField;
  20598. return oe;
  20599. }
  20600. return {
  20601. message: typeof oe === 'function' ? oe() : oe,
  20602. field: oe.field || rule.fullField
  20603. };
  20604. };
  20605. }
  20606. function deepMerge(target, source) {
  20607. if (source) {
  20608. for (var s in source) {
  20609. if (source.hasOwnProperty(s)) {
  20610. var value = source[s];
  20611. if ((0, _typeof2.default)(value) === 'object' && (0, _typeof2.default)(target[s]) === 'object') {
  20612. target[s] = _objectSpread(_objectSpread({}, target[s]), value);
  20613. } else {
  20614. target[s] = value;
  20615. }
  20616. }
  20617. }
  20618. }
  20619. return target;
  20620. }
  20621. /**
  20622. * Rule for validating required fields.
  20623. *
  20624. * @param rule The validation rule.
  20625. * @param value The value of the field on the source object.
  20626. * @param source The source object being validated.
  20627. * @param errors An array of errors that this rule may add
  20628. * validation errors to.
  20629. * @param options The validation options.
  20630. * @param options.messages The validation messages.
  20631. */
  20632. function required(rule, value, source, errors, options, type) {
  20633. if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) {
  20634. errors.push(format(options.messages.required, rule.fullField));
  20635. }
  20636. }
  20637. /**
  20638. * Rule for validating whitespace.
  20639. *
  20640. * @param rule The validation rule.
  20641. * @param value The value of the field on the source object.
  20642. * @param source The source object being validated.
  20643. * @param errors An array of errors that this rule may add
  20644. * validation errors to.
  20645. * @param options The validation options.
  20646. * @param options.messages The validation messages.
  20647. */
  20648. function whitespace(rule, value, source, errors, options) {
  20649. if (/^\s+$/.test(value) || value === '') {
  20650. errors.push(format(options.messages.whitespace, rule.fullField));
  20651. }
  20652. }
  20653. /* eslint max-len:0 */
  20654. var pattern = {
  20655. // http://emailregex.com/
  20656. email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
  20657. url: new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$", 'i'),
  20658. hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
  20659. };
  20660. var types = {
  20661. integer: function integer(value) {
  20662. return /^(-)?\d+$/.test(value);
  20663. },
  20664. float: function float(value) {
  20665. return /^(-)?\d+(\.\d+)?$/.test(value);
  20666. },
  20667. array: function array(value) {
  20668. return Array.isArray(value);
  20669. },
  20670. regexp: function regexp(value) {
  20671. if (value instanceof RegExp) {
  20672. return true;
  20673. }
  20674. try {
  20675. return !!new RegExp(value);
  20676. } catch (e) {
  20677. return false;
  20678. }
  20679. },
  20680. date: function date(value) {
  20681. return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function';
  20682. },
  20683. number: function number(value) {
  20684. if (isNaN(value)) {
  20685. return false;
  20686. }
  20687. // 修改源码,将字符串数值先转为数值
  20688. return typeof +value === 'number';
  20689. },
  20690. object: function object(value) {
  20691. return (0, _typeof2.default)(value) === 'object' && !types.array(value);
  20692. },
  20693. method: function method(value) {
  20694. return typeof value === 'function';
  20695. },
  20696. email: function email(value) {
  20697. return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
  20698. },
  20699. url: function url(value) {
  20700. return typeof value === 'string' && !!value.match(pattern.url);
  20701. },
  20702. hex: function hex(value) {
  20703. return typeof value === 'string' && !!value.match(pattern.hex);
  20704. }
  20705. };
  20706. /**
  20707. * Rule for validating the type of a value.
  20708. *
  20709. * @param rule The validation rule.
  20710. * @param value The value of the field on the source object.
  20711. * @param source The source object being validated.
  20712. * @param errors An array of errors that this rule may add
  20713. * validation errors to.
  20714. * @param options The validation options.
  20715. * @param options.messages The validation messages.
  20716. */
  20717. function type(rule, value, source, errors, options) {
  20718. if (rule.required && value === undefined) {
  20719. required(rule, value, source, errors, options);
  20720. return;
  20721. }
  20722. var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];
  20723. var ruleType = rule.type;
  20724. if (custom.indexOf(ruleType) > -1) {
  20725. if (!types[ruleType](value)) {
  20726. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  20727. } // straight typeof check
  20728. } else if (ruleType && (0, _typeof2.default)(value) !== rule.type) {
  20729. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  20730. }
  20731. }
  20732. /**
  20733. * Rule for validating minimum and maximum allowed values.
  20734. *
  20735. * @param rule The validation rule.
  20736. * @param value The value of the field on the source object.
  20737. * @param source The source object being validated.
  20738. * @param errors An array of errors that this rule may add
  20739. * validation errors to.
  20740. * @param options The validation options.
  20741. * @param options.messages The validation messages.
  20742. */
  20743. function range(rule, value, source, errors, options) {
  20744. var len = typeof rule.len === 'number';
  20745. var min = typeof rule.min === 'number';
  20746. var max = typeof rule.max === 'number'; // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane)
  20747. var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
  20748. var val = value;
  20749. var key = null;
  20750. var num = typeof value === 'number';
  20751. var str = typeof value === 'string';
  20752. var arr = Array.isArray(value);
  20753. if (num) {
  20754. key = 'number';
  20755. } else if (str) {
  20756. key = 'string';
  20757. } else if (arr) {
  20758. key = 'array';
  20759. } // if the value is not of a supported type for range validation
  20760. // the validation rule rule should use the
  20761. // type property to also test for a particular type
  20762. if (!key) {
  20763. return false;
  20764. }
  20765. if (arr) {
  20766. val = value.length;
  20767. }
  20768. if (str) {
  20769. // 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3
  20770. val = value.replace(spRegexp, '_').length;
  20771. }
  20772. if (len) {
  20773. if (val !== rule.len) {
  20774. errors.push(format(options.messages[key].len, rule.fullField, rule.len));
  20775. }
  20776. } else if (min && !max && val < rule.min) {
  20777. errors.push(format(options.messages[key].min, rule.fullField, rule.min));
  20778. } else if (max && !min && val > rule.max) {
  20779. errors.push(format(options.messages[key].max, rule.fullField, rule.max));
  20780. } else if (min && max && (val < rule.min || val > rule.max)) {
  20781. errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));
  20782. }
  20783. }
  20784. var ENUM = 'enum';
  20785. /**
  20786. * Rule for validating a value exists in an enumerable list.
  20787. *
  20788. * @param rule The validation rule.
  20789. * @param value The value of the field on the source object.
  20790. * @param source The source object being validated.
  20791. * @param errors An array of errors that this rule may add
  20792. * validation errors to.
  20793. * @param options The validation options.
  20794. * @param options.messages The validation messages.
  20795. */
  20796. function enumerable(rule, value, source, errors, options) {
  20797. rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : [];
  20798. if (rule[ENUM].indexOf(value) === -1) {
  20799. errors.push(format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', ')));
  20800. }
  20801. }
  20802. /**
  20803. * Rule for validating a regular expression pattern.
  20804. *
  20805. * @param rule The validation rule.
  20806. * @param value The value of the field on the source object.
  20807. * @param source The source object being validated.
  20808. * @param errors An array of errors that this rule may add
  20809. * validation errors to.
  20810. * @param options The validation options.
  20811. * @param options.messages The validation messages.
  20812. */
  20813. function pattern$1(rule, value, source, errors, options) {
  20814. if (rule.pattern) {
  20815. if (rule.pattern instanceof RegExp) {
  20816. // if a RegExp instance is passed, reset `lastIndex` in case its `global`
  20817. // flag is accidentally set to `true`, which in a validation scenario
  20818. // is not necessary and the result might be misleading
  20819. rule.pattern.lastIndex = 0;
  20820. if (!rule.pattern.test(value)) {
  20821. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  20822. }
  20823. } else if (typeof rule.pattern === 'string') {
  20824. var _pattern = new RegExp(rule.pattern);
  20825. if (!_pattern.test(value)) {
  20826. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  20827. }
  20828. }
  20829. }
  20830. }
  20831. var rules = {
  20832. required: required,
  20833. whitespace: whitespace,
  20834. type: type,
  20835. range: range,
  20836. enum: enumerable,
  20837. pattern: pattern$1
  20838. };
  20839. /**
  20840. * Performs validation for string types.
  20841. *
  20842. * @param rule The validation rule.
  20843. * @param value The value of the field on the source object.
  20844. * @param callback The callback function.
  20845. * @param source The source object being validated.
  20846. * @param options The validation options.
  20847. * @param options.messages The validation messages.
  20848. */
  20849. function string(rule, value, callback, source, options) {
  20850. var errors = [];
  20851. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20852. if (validate) {
  20853. if (isEmptyValue(value, 'string') && !rule.required) {
  20854. return callback();
  20855. }
  20856. rules.required(rule, value, source, errors, options, 'string');
  20857. if (!isEmptyValue(value, 'string')) {
  20858. rules.type(rule, value, source, errors, options);
  20859. rules.range(rule, value, source, errors, options);
  20860. rules.pattern(rule, value, source, errors, options);
  20861. if (rule.whitespace === true) {
  20862. rules.whitespace(rule, value, source, errors, options);
  20863. }
  20864. }
  20865. }
  20866. callback(errors);
  20867. }
  20868. /**
  20869. * Validates a function.
  20870. *
  20871. * @param rule The validation rule.
  20872. * @param value The value of the field on the source object.
  20873. * @param callback The callback function.
  20874. * @param source The source object being validated.
  20875. * @param options The validation options.
  20876. * @param options.messages The validation messages.
  20877. */
  20878. function method(rule, value, callback, source, options) {
  20879. var errors = [];
  20880. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20881. if (validate) {
  20882. if (isEmptyValue(value) && !rule.required) {
  20883. return callback();
  20884. }
  20885. rules.required(rule, value, source, errors, options);
  20886. if (value !== undefined) {
  20887. rules.type(rule, value, source, errors, options);
  20888. }
  20889. }
  20890. callback(errors);
  20891. }
  20892. /**
  20893. * Validates a number.
  20894. *
  20895. * @param rule The validation rule.
  20896. * @param value The value of the field on the source object.
  20897. * @param callback The callback function.
  20898. * @param source The source object being validated.
  20899. * @param options The validation options.
  20900. * @param options.messages The validation messages.
  20901. */
  20902. function number(rule, value, callback, source, options) {
  20903. var errors = [];
  20904. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20905. if (validate) {
  20906. if (value === '') {
  20907. value = undefined;
  20908. }
  20909. if (isEmptyValue(value) && !rule.required) {
  20910. return callback();
  20911. }
  20912. rules.required(rule, value, source, errors, options);
  20913. if (value !== undefined) {
  20914. rules.type(rule, value, source, errors, options);
  20915. rules.range(rule, value, source, errors, options);
  20916. }
  20917. }
  20918. callback(errors);
  20919. }
  20920. /**
  20921. * Validates a boolean.
  20922. *
  20923. * @param rule The validation rule.
  20924. * @param value The value of the field on the source object.
  20925. * @param callback The callback function.
  20926. * @param source The source object being validated.
  20927. * @param options The validation options.
  20928. * @param options.messages The validation messages.
  20929. */
  20930. function _boolean(rule, value, callback, source, options) {
  20931. var errors = [];
  20932. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20933. if (validate) {
  20934. if (isEmptyValue(value) && !rule.required) {
  20935. return callback();
  20936. }
  20937. rules.required(rule, value, source, errors, options);
  20938. if (value !== undefined) {
  20939. rules.type(rule, value, source, errors, options);
  20940. }
  20941. }
  20942. callback(errors);
  20943. }
  20944. /**
  20945. * Validates the regular expression type.
  20946. *
  20947. * @param rule The validation rule.
  20948. * @param value The value of the field on the source object.
  20949. * @param callback The callback function.
  20950. * @param source The source object being validated.
  20951. * @param options The validation options.
  20952. * @param options.messages The validation messages.
  20953. */
  20954. function regexp(rule, value, callback, source, options) {
  20955. var errors = [];
  20956. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20957. if (validate) {
  20958. if (isEmptyValue(value) && !rule.required) {
  20959. return callback();
  20960. }
  20961. rules.required(rule, value, source, errors, options);
  20962. if (!isEmptyValue(value)) {
  20963. rules.type(rule, value, source, errors, options);
  20964. }
  20965. }
  20966. callback(errors);
  20967. }
  20968. /**
  20969. * Validates a number is an integer.
  20970. *
  20971. * @param rule The validation rule.
  20972. * @param value The value of the field on the source object.
  20973. * @param callback The callback function.
  20974. * @param source The source object being validated.
  20975. * @param options The validation options.
  20976. * @param options.messages The validation messages.
  20977. */
  20978. function integer(rule, value, callback, source, options) {
  20979. var errors = [];
  20980. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20981. if (validate) {
  20982. if (isEmptyValue(value) && !rule.required) {
  20983. return callback();
  20984. }
  20985. rules.required(rule, value, source, errors, options);
  20986. if (value !== undefined) {
  20987. rules.type(rule, value, source, errors, options);
  20988. rules.range(rule, value, source, errors, options);
  20989. }
  20990. }
  20991. callback(errors);
  20992. }
  20993. /**
  20994. * Validates a number is a floating point number.
  20995. *
  20996. * @param rule The validation rule.
  20997. * @param value The value of the field on the source object.
  20998. * @param callback The callback function.
  20999. * @param source The source object being validated.
  21000. * @param options The validation options.
  21001. * @param options.messages The validation messages.
  21002. */
  21003. function floatFn(rule, value, callback, source, options) {
  21004. var errors = [];
  21005. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21006. if (validate) {
  21007. if (isEmptyValue(value) && !rule.required) {
  21008. return callback();
  21009. }
  21010. rules.required(rule, value, source, errors, options);
  21011. if (value !== undefined) {
  21012. rules.type(rule, value, source, errors, options);
  21013. rules.range(rule, value, source, errors, options);
  21014. }
  21015. }
  21016. callback(errors);
  21017. }
  21018. /**
  21019. * Validates an array.
  21020. *
  21021. * @param rule The validation rule.
  21022. * @param value The value of the field on the source object.
  21023. * @param callback The callback function.
  21024. * @param source The source object being validated.
  21025. * @param options The validation options.
  21026. * @param options.messages The validation messages.
  21027. */
  21028. function array(rule, value, callback, source, options) {
  21029. var errors = [];
  21030. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21031. if (validate) {
  21032. if (isEmptyValue(value, 'array') && !rule.required) {
  21033. return callback();
  21034. }
  21035. rules.required(rule, value, source, errors, options, 'array');
  21036. if (!isEmptyValue(value, 'array')) {
  21037. rules.type(rule, value, source, errors, options);
  21038. rules.range(rule, value, source, errors, options);
  21039. }
  21040. }
  21041. callback(errors);
  21042. }
  21043. /**
  21044. * Validates an object.
  21045. *
  21046. * @param rule The validation rule.
  21047. * @param value The value of the field on the source object.
  21048. * @param callback The callback function.
  21049. * @param source The source object being validated.
  21050. * @param options The validation options.
  21051. * @param options.messages The validation messages.
  21052. */
  21053. function object(rule, value, callback, source, options) {
  21054. var errors = [];
  21055. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21056. if (validate) {
  21057. if (isEmptyValue(value) && !rule.required) {
  21058. return callback();
  21059. }
  21060. rules.required(rule, value, source, errors, options);
  21061. if (value !== undefined) {
  21062. rules.type(rule, value, source, errors, options);
  21063. }
  21064. }
  21065. callback(errors);
  21066. }
  21067. var ENUM$1 = 'enum';
  21068. /**
  21069. * Validates an enumerable list.
  21070. *
  21071. * @param rule The validation rule.
  21072. * @param value The value of the field on the source object.
  21073. * @param callback The callback function.
  21074. * @param source The source object being validated.
  21075. * @param options The validation options.
  21076. * @param options.messages The validation messages.
  21077. */
  21078. function enumerable$1(rule, value, callback, source, options) {
  21079. var errors = [];
  21080. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21081. if (validate) {
  21082. if (isEmptyValue(value) && !rule.required) {
  21083. return callback();
  21084. }
  21085. rules.required(rule, value, source, errors, options);
  21086. if (value !== undefined) {
  21087. rules[ENUM$1](rule, value, source, errors, options);
  21088. }
  21089. }
  21090. callback(errors);
  21091. }
  21092. /**
  21093. * Validates a regular expression pattern.
  21094. *
  21095. * Performs validation when a rule only contains
  21096. * a pattern property but is not declared as a string type.
  21097. *
  21098. * @param rule The validation rule.
  21099. * @param value The value of the field on the source object.
  21100. * @param callback The callback function.
  21101. * @param source The source object being validated.
  21102. * @param options The validation options.
  21103. * @param options.messages The validation messages.
  21104. */
  21105. function pattern$2(rule, value, callback, source, options) {
  21106. var errors = [];
  21107. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21108. if (validate) {
  21109. if (isEmptyValue(value, 'string') && !rule.required) {
  21110. return callback();
  21111. }
  21112. rules.required(rule, value, source, errors, options);
  21113. if (!isEmptyValue(value, 'string')) {
  21114. rules.pattern(rule, value, source, errors, options);
  21115. }
  21116. }
  21117. callback(errors);
  21118. }
  21119. function date(rule, value, callback, source, options) {
  21120. var errors = [];
  21121. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21122. if (validate) {
  21123. if (isEmptyValue(value) && !rule.required) {
  21124. return callback();
  21125. }
  21126. rules.required(rule, value, source, errors, options);
  21127. if (!isEmptyValue(value)) {
  21128. var dateObject;
  21129. if (typeof value === 'number') {
  21130. dateObject = new Date(value);
  21131. } else {
  21132. dateObject = value;
  21133. }
  21134. rules.type(rule, dateObject, source, errors, options);
  21135. if (dateObject) {
  21136. rules.range(rule, dateObject.getTime(), source, errors, options);
  21137. }
  21138. }
  21139. }
  21140. callback(errors);
  21141. }
  21142. function required$1(rule, value, callback, source, options) {
  21143. var errors = [];
  21144. var type = Array.isArray(value) ? 'array' : (0, _typeof2.default)(value);
  21145. rules.required(rule, value, source, errors, options, type);
  21146. callback(errors);
  21147. }
  21148. function type$1(rule, value, callback, source, options) {
  21149. var ruleType = rule.type;
  21150. var errors = [];
  21151. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21152. if (validate) {
  21153. if (isEmptyValue(value, ruleType) && !rule.required) {
  21154. return callback();
  21155. }
  21156. rules.required(rule, value, source, errors, options, ruleType);
  21157. if (!isEmptyValue(value, ruleType)) {
  21158. rules.type(rule, value, source, errors, options);
  21159. }
  21160. }
  21161. callback(errors);
  21162. }
  21163. /**
  21164. * Performs validation for any type.
  21165. *
  21166. * @param rule The validation rule.
  21167. * @param value The value of the field on the source object.
  21168. * @param callback The callback function.
  21169. * @param source The source object being validated.
  21170. * @param options The validation options.
  21171. * @param options.messages The validation messages.
  21172. */
  21173. function any(rule, value, callback, source, options) {
  21174. var errors = [];
  21175. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21176. if (validate) {
  21177. if (isEmptyValue(value) && !rule.required) {
  21178. return callback();
  21179. }
  21180. rules.required(rule, value, source, errors, options);
  21181. }
  21182. callback(errors);
  21183. }
  21184. var validators = {
  21185. string: string,
  21186. method: method,
  21187. number: number,
  21188. boolean: _boolean,
  21189. regexp: regexp,
  21190. integer: integer,
  21191. float: floatFn,
  21192. array: array,
  21193. object: object,
  21194. enum: enumerable$1,
  21195. pattern: pattern$2,
  21196. date: date,
  21197. url: type$1,
  21198. hex: type$1,
  21199. email: type$1,
  21200. required: required$1,
  21201. any: any
  21202. };
  21203. function newMessages() {
  21204. return {
  21205. default: 'Validation error on field %s',
  21206. required: '%s is required',
  21207. enum: '%s must be one of %s',
  21208. whitespace: '%s cannot be empty',
  21209. date: {
  21210. format: '%s date %s is invalid for format %s',
  21211. parse: '%s date could not be parsed, %s is invalid ',
  21212. invalid: '%s date %s is invalid'
  21213. },
  21214. types: {
  21215. string: '%s is not a %s',
  21216. method: '%s is not a %s (function)',
  21217. array: '%s is not an %s',
  21218. object: '%s is not an %s',
  21219. number: '%s is not a %s',
  21220. date: '%s is not a %s',
  21221. boolean: '%s is not a %s',
  21222. integer: '%s is not an %s',
  21223. float: '%s is not a %s',
  21224. regexp: '%s is not a valid %s',
  21225. email: '%s is not a valid %s',
  21226. url: '%s is not a valid %s',
  21227. hex: '%s is not a valid %s'
  21228. },
  21229. string: {
  21230. len: '%s must be exactly %s characters',
  21231. min: '%s must be at least %s characters',
  21232. max: '%s cannot be longer than %s characters',
  21233. range: '%s must be between %s and %s characters'
  21234. },
  21235. number: {
  21236. len: '%s must equal %s',
  21237. min: '%s cannot be less than %s',
  21238. max: '%s cannot be greater than %s',
  21239. range: '%s must be between %s and %s'
  21240. },
  21241. array: {
  21242. len: '%s must be exactly %s in length',
  21243. min: '%s cannot be less than %s in length',
  21244. max: '%s cannot be greater than %s in length',
  21245. range: '%s must be between %s and %s in length'
  21246. },
  21247. pattern: {
  21248. mismatch: '%s value %s does not match pattern %s'
  21249. },
  21250. clone: function clone() {
  21251. var cloned = JSON.parse(JSON.stringify(this));
  21252. cloned.clone = this.clone;
  21253. return cloned;
  21254. }
  21255. };
  21256. }
  21257. var messages = newMessages();
  21258. /**
  21259. * Encapsulates a validation schema.
  21260. *
  21261. * @param descriptor An object declaring validation rules
  21262. * for this schema.
  21263. */
  21264. function Schema(descriptor) {
  21265. this.rules = null;
  21266. this._messages = messages;
  21267. this.define(descriptor);
  21268. }
  21269. Schema.prototype = {
  21270. messages: function messages(_messages) {
  21271. if (_messages) {
  21272. this._messages = deepMerge(newMessages(), _messages);
  21273. }
  21274. return this._messages;
  21275. },
  21276. define: function define(rules) {
  21277. if (!rules) {
  21278. throw new Error('Cannot configure a schema with no rules');
  21279. }
  21280. if ((0, _typeof2.default)(rules) !== 'object' || Array.isArray(rules)) {
  21281. throw new Error('Rules must be an object');
  21282. }
  21283. this.rules = {};
  21284. var z;
  21285. var item;
  21286. for (z in rules) {
  21287. if (rules.hasOwnProperty(z)) {
  21288. item = rules[z];
  21289. this.rules[z] = Array.isArray(item) ? item : [item];
  21290. }
  21291. }
  21292. },
  21293. validate: function validate(source_, o, oc) {
  21294. var _this = this;
  21295. if (o === void 0) {
  21296. o = {};
  21297. }
  21298. if (oc === void 0) {
  21299. oc = function oc() {};
  21300. }
  21301. var source = source_;
  21302. var options = o;
  21303. var callback = oc;
  21304. if (typeof options === 'function') {
  21305. callback = options;
  21306. options = {};
  21307. }
  21308. if (!this.rules || Object.keys(this.rules).length === 0) {
  21309. if (callback) {
  21310. callback();
  21311. }
  21312. return Promise.resolve();
  21313. }
  21314. function complete(results) {
  21315. var i;
  21316. var errors = [];
  21317. var fields = {};
  21318. function add(e) {
  21319. if (Array.isArray(e)) {
  21320. var _errors;
  21321. errors = (_errors = errors).concat.apply(_errors, e);
  21322. } else {
  21323. errors.push(e);
  21324. }
  21325. }
  21326. for (i = 0; i < results.length; i++) {
  21327. add(results[i]);
  21328. }
  21329. if (!errors.length) {
  21330. errors = null;
  21331. fields = null;
  21332. } else {
  21333. fields = convertFieldsError(errors);
  21334. }
  21335. callback(errors, fields);
  21336. }
  21337. if (options.messages) {
  21338. var messages$1 = this.messages();
  21339. if (messages$1 === messages) {
  21340. messages$1 = newMessages();
  21341. }
  21342. deepMerge(messages$1, options.messages);
  21343. options.messages = messages$1;
  21344. } else {
  21345. options.messages = this.messages();
  21346. }
  21347. var arr;
  21348. var value;
  21349. var series = {};
  21350. var keys = options.keys || Object.keys(this.rules);
  21351. keys.forEach(function (z) {
  21352. arr = _this.rules[z];
  21353. value = source[z];
  21354. arr.forEach(function (r) {
  21355. var rule = r;
  21356. if (typeof rule.transform === 'function') {
  21357. if (source === source_) {
  21358. source = _objectSpread({}, source);
  21359. }
  21360. value = source[z] = rule.transform(value);
  21361. }
  21362. if (typeof rule === 'function') {
  21363. rule = {
  21364. validator: rule
  21365. };
  21366. } else {
  21367. rule = _objectSpread({}, rule);
  21368. }
  21369. rule.validator = _this.getValidationMethod(rule);
  21370. rule.field = z;
  21371. rule.fullField = rule.fullField || z;
  21372. rule.type = _this.getType(rule);
  21373. if (!rule.validator) {
  21374. return;
  21375. }
  21376. series[z] = series[z] || [];
  21377. series[z].push({
  21378. rule: rule,
  21379. value: value,
  21380. source: source,
  21381. field: z
  21382. });
  21383. });
  21384. });
  21385. var errorFields = {};
  21386. return asyncMap(series, options, function (data, doIt) {
  21387. var rule = data.rule;
  21388. var deep = (rule.type === 'object' || rule.type === 'array') && ((0, _typeof2.default)(rule.fields) === 'object' || (0, _typeof2.default)(rule.defaultField) === 'object');
  21389. deep = deep && (rule.required || !rule.required && data.value);
  21390. rule.field = data.field;
  21391. function addFullfield(key, schema) {
  21392. return _objectSpread(_objectSpread({}, schema), {}, {
  21393. fullField: "".concat(rule.fullField, ".").concat(key)
  21394. });
  21395. }
  21396. function cb(e) {
  21397. if (e === void 0) {
  21398. e = [];
  21399. }
  21400. var errors = e;
  21401. if (!Array.isArray(errors)) {
  21402. errors = [errors];
  21403. }
  21404. if (!options.suppressWarning && errors.length) {
  21405. Schema.warning('async-validator:', errors);
  21406. }
  21407. if (errors.length && rule.message) {
  21408. errors = [].concat(rule.message);
  21409. }
  21410. errors = errors.map(complementError(rule));
  21411. if (options.first && errors.length) {
  21412. errorFields[rule.field] = 1;
  21413. return doIt(errors);
  21414. }
  21415. if (!deep) {
  21416. doIt(errors);
  21417. } else {
  21418. // if rule is required but the target object
  21419. // does not exist fail at the rule level and don't
  21420. // go deeper
  21421. if (rule.required && !data.value) {
  21422. if (rule.message) {
  21423. errors = [].concat(rule.message).map(complementError(rule));
  21424. } else if (options.error) {
  21425. errors = [options.error(rule, format(options.messages.required, rule.field))];
  21426. } else {
  21427. errors = [];
  21428. }
  21429. return doIt(errors);
  21430. }
  21431. var fieldsSchema = {};
  21432. if (rule.defaultField) {
  21433. for (var k in data.value) {
  21434. if (data.value.hasOwnProperty(k)) {
  21435. fieldsSchema[k] = rule.defaultField;
  21436. }
  21437. }
  21438. }
  21439. fieldsSchema = _objectSpread(_objectSpread({}, fieldsSchema), data.rule.fields);
  21440. for (var f in fieldsSchema) {
  21441. if (fieldsSchema.hasOwnProperty(f)) {
  21442. var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]];
  21443. fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f));
  21444. }
  21445. }
  21446. var schema = new Schema(fieldsSchema);
  21447. schema.messages(options.messages);
  21448. if (data.rule.options) {
  21449. data.rule.options.messages = options.messages;
  21450. data.rule.options.error = options.error;
  21451. }
  21452. schema.validate(data.value, data.rule.options || options, function (errs) {
  21453. var finalErrors = [];
  21454. if (errors && errors.length) {
  21455. finalErrors.push.apply(finalErrors, errors);
  21456. }
  21457. if (errs && errs.length) {
  21458. finalErrors.push.apply(finalErrors, errs);
  21459. }
  21460. doIt(finalErrors.length ? finalErrors : null);
  21461. });
  21462. }
  21463. }
  21464. var res;
  21465. if (rule.asyncValidator) {
  21466. res = rule.asyncValidator(rule, data.value, cb, data.source, options);
  21467. } else if (rule.validator) {
  21468. res = rule.validator(rule, data.value, cb, data.source, options);
  21469. if (res === true) {
  21470. cb();
  21471. } else if (res === false) {
  21472. cb(rule.message || "".concat(rule.field, " fails"));
  21473. } else if (res instanceof Array) {
  21474. cb(res);
  21475. } else if (res instanceof Error) {
  21476. cb(res.message);
  21477. }
  21478. }
  21479. if (res && res.then) {
  21480. res.then(function () {
  21481. return cb();
  21482. }, function (e) {
  21483. return cb(e);
  21484. });
  21485. }
  21486. }, function (results) {
  21487. complete(results);
  21488. });
  21489. },
  21490. getType: function getType(rule) {
  21491. if (rule.type === undefined && rule.pattern instanceof RegExp) {
  21492. rule.type = 'pattern';
  21493. }
  21494. if (typeof rule.validator !== 'function' && rule.type && !validators.hasOwnProperty(rule.type)) {
  21495. throw new Error(format('Unknown rule type %s', rule.type));
  21496. }
  21497. return rule.type || 'string';
  21498. },
  21499. getValidationMethod: function getValidationMethod(rule) {
  21500. if (typeof rule.validator === 'function') {
  21501. return rule.validator;
  21502. }
  21503. var keys = Object.keys(rule);
  21504. var messageIndex = keys.indexOf('message');
  21505. if (messageIndex !== -1) {
  21506. keys.splice(messageIndex, 1);
  21507. }
  21508. if (keys.length === 1 && keys[0] === 'required') {
  21509. return validators.required;
  21510. }
  21511. return validators[this.getType(rule)] || false;
  21512. }
  21513. };
  21514. Schema.register = function register(type, validator) {
  21515. if (typeof validator !== 'function') {
  21516. throw new Error('Cannot register a validator by type, validator is not a function');
  21517. }
  21518. validators[type] = validator;
  21519. };
  21520. Schema.warning = warning;
  21521. Schema.messages = messages;
  21522. var _default = Schema; // # sourceMappingURL=index.js.map
  21523. exports.default = _default;
  21524. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../../../../Software/HBuilderX/plugins/uniapp-cli/node_modules/node-libs-browser/mock/process.js */ 401)))
  21525. /***/ }),
  21526. /* 401 */
  21527. /*!********************************************************!*\
  21528. !*** ./node_modules/node-libs-browser/mock/process.js ***!
  21529. \********************************************************/
  21530. /*! no static exports found */
  21531. /***/ (function(module, exports, __webpack_require__) {
  21532. exports.nextTick = function nextTick(fn) {
  21533. var args = Array.prototype.slice.call(arguments);
  21534. args.shift();
  21535. setTimeout(function () {
  21536. fn.apply(null, args);
  21537. }, 0);
  21538. };
  21539. exports.platform = exports.arch =
  21540. exports.execPath = exports.title = 'browser';
  21541. exports.pid = 1;
  21542. exports.browser = true;
  21543. exports.env = {};
  21544. exports.argv = [];
  21545. exports.binding = function (name) {
  21546. throw new Error('No such module. (Possibly not yet loaded)')
  21547. };
  21548. (function () {
  21549. var cwd = '/';
  21550. var path;
  21551. exports.cwd = function () { return cwd };
  21552. exports.chdir = function (dir) {
  21553. if (!path) path = __webpack_require__(/*! path */ 402);
  21554. cwd = path.resolve(dir, cwd);
  21555. };
  21556. })();
  21557. exports.exit = exports.kill =
  21558. exports.umask = exports.dlopen =
  21559. exports.uptime = exports.memoryUsage =
  21560. exports.uvCounters = function() {};
  21561. exports.features = {};
  21562. /***/ }),
  21563. /* 402 */
  21564. /*!***********************************************!*\
  21565. !*** ./node_modules/path-browserify/index.js ***!
  21566. \***********************************************/
  21567. /*! no static exports found */
  21568. /***/ (function(module, exports, __webpack_require__) {
  21569. /* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
  21570. // backported and transplited with Babel, with backwards-compat fixes
  21571. // Copyright Joyent, Inc. and other Node contributors.
  21572. //
  21573. // Permission is hereby granted, free of charge, to any person obtaining a
  21574. // copy of this software and associated documentation files (the
  21575. // "Software"), to deal in the Software without restriction, including
  21576. // without limitation the rights to use, copy, modify, merge, publish,
  21577. // distribute, sublicense, and/or sell copies of the Software, and to permit
  21578. // persons to whom the Software is furnished to do so, subject to the
  21579. // following conditions:
  21580. //
  21581. // The above copyright notice and this permission notice shall be included
  21582. // in all copies or substantial portions of the Software.
  21583. //
  21584. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  21585. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  21586. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  21587. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  21588. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  21589. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  21590. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  21591. // resolves . and .. elements in a path array with directory names there
  21592. // must be no slashes, empty elements, or device names (c:\) in the array
  21593. // (so also no leading and trailing slashes - it does not distinguish
  21594. // relative and absolute paths)
  21595. function normalizeArray(parts, allowAboveRoot) {
  21596. // if the path tries to go above the root, `up` ends up > 0
  21597. var up = 0;
  21598. for (var i = parts.length - 1; i >= 0; i--) {
  21599. var last = parts[i];
  21600. if (last === '.') {
  21601. parts.splice(i, 1);
  21602. } else if (last === '..') {
  21603. parts.splice(i, 1);
  21604. up++;
  21605. } else if (up) {
  21606. parts.splice(i, 1);
  21607. up--;
  21608. }
  21609. }
  21610. // if the path is allowed to go above the root, restore leading ..s
  21611. if (allowAboveRoot) {
  21612. for (; up--; up) {
  21613. parts.unshift('..');
  21614. }
  21615. }
  21616. return parts;
  21617. }
  21618. // path.resolve([from ...], to)
  21619. // posix version
  21620. exports.resolve = function() {
  21621. var resolvedPath = '',
  21622. resolvedAbsolute = false;
  21623. for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
  21624. var path = (i >= 0) ? arguments[i] : process.cwd();
  21625. // Skip empty and invalid entries
  21626. if (typeof path !== 'string') {
  21627. throw new TypeError('Arguments to path.resolve must be strings');
  21628. } else if (!path) {
  21629. continue;
  21630. }
  21631. resolvedPath = path + '/' + resolvedPath;
  21632. resolvedAbsolute = path.charAt(0) === '/';
  21633. }
  21634. // At this point the path should be resolved to a full absolute path, but
  21635. // handle relative paths to be safe (might happen when process.cwd() fails)
  21636. // Normalize the path
  21637. resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
  21638. return !!p;
  21639. }), !resolvedAbsolute).join('/');
  21640. return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
  21641. };
  21642. // path.normalize(path)
  21643. // posix version
  21644. exports.normalize = function(path) {
  21645. var isAbsolute = exports.isAbsolute(path),
  21646. trailingSlash = substr(path, -1) === '/';
  21647. // Normalize the path
  21648. path = normalizeArray(filter(path.split('/'), function(p) {
  21649. return !!p;
  21650. }), !isAbsolute).join('/');
  21651. if (!path && !isAbsolute) {
  21652. path = '.';
  21653. }
  21654. if (path && trailingSlash) {
  21655. path += '/';
  21656. }
  21657. return (isAbsolute ? '/' : '') + path;
  21658. };
  21659. // posix version
  21660. exports.isAbsolute = function(path) {
  21661. return path.charAt(0) === '/';
  21662. };
  21663. // posix version
  21664. exports.join = function() {
  21665. var paths = Array.prototype.slice.call(arguments, 0);
  21666. return exports.normalize(filter(paths, function(p, index) {
  21667. if (typeof p !== 'string') {
  21668. throw new TypeError('Arguments to path.join must be strings');
  21669. }
  21670. return p;
  21671. }).join('/'));
  21672. };
  21673. // path.relative(from, to)
  21674. // posix version
  21675. exports.relative = function(from, to) {
  21676. from = exports.resolve(from).substr(1);
  21677. to = exports.resolve(to).substr(1);
  21678. function trim(arr) {
  21679. var start = 0;
  21680. for (; start < arr.length; start++) {
  21681. if (arr[start] !== '') break;
  21682. }
  21683. var end = arr.length - 1;
  21684. for (; end >= 0; end--) {
  21685. if (arr[end] !== '') break;
  21686. }
  21687. if (start > end) return [];
  21688. return arr.slice(start, end - start + 1);
  21689. }
  21690. var fromParts = trim(from.split('/'));
  21691. var toParts = trim(to.split('/'));
  21692. var length = Math.min(fromParts.length, toParts.length);
  21693. var samePartsLength = length;
  21694. for (var i = 0; i < length; i++) {
  21695. if (fromParts[i] !== toParts[i]) {
  21696. samePartsLength = i;
  21697. break;
  21698. }
  21699. }
  21700. var outputParts = [];
  21701. for (var i = samePartsLength; i < fromParts.length; i++) {
  21702. outputParts.push('..');
  21703. }
  21704. outputParts = outputParts.concat(toParts.slice(samePartsLength));
  21705. return outputParts.join('/');
  21706. };
  21707. exports.sep = '/';
  21708. exports.delimiter = ':';
  21709. exports.dirname = function (path) {
  21710. if (typeof path !== 'string') path = path + '';
  21711. if (path.length === 0) return '.';
  21712. var code = path.charCodeAt(0);
  21713. var hasRoot = code === 47 /*/*/;
  21714. var end = -1;
  21715. var matchedSlash = true;
  21716. for (var i = path.length - 1; i >= 1; --i) {
  21717. code = path.charCodeAt(i);
  21718. if (code === 47 /*/*/) {
  21719. if (!matchedSlash) {
  21720. end = i;
  21721. break;
  21722. }
  21723. } else {
  21724. // We saw the first non-path separator
  21725. matchedSlash = false;
  21726. }
  21727. }
  21728. if (end === -1) return hasRoot ? '/' : '.';
  21729. if (hasRoot && end === 1) {
  21730. // return '//';
  21731. // Backwards-compat fix:
  21732. return '/';
  21733. }
  21734. return path.slice(0, end);
  21735. };
  21736. function basename(path) {
  21737. if (typeof path !== 'string') path = path + '';
  21738. var start = 0;
  21739. var end = -1;
  21740. var matchedSlash = true;
  21741. var i;
  21742. for (i = path.length - 1; i >= 0; --i) {
  21743. if (path.charCodeAt(i) === 47 /*/*/) {
  21744. // If we reached a path separator that was not part of a set of path
  21745. // separators at the end of the string, stop now
  21746. if (!matchedSlash) {
  21747. start = i + 1;
  21748. break;
  21749. }
  21750. } else if (end === -1) {
  21751. // We saw the first non-path separator, mark this as the end of our
  21752. // path component
  21753. matchedSlash = false;
  21754. end = i + 1;
  21755. }
  21756. }
  21757. if (end === -1) return '';
  21758. return path.slice(start, end);
  21759. }
  21760. // Uses a mixed approach for backwards-compatibility, as ext behavior changed
  21761. // in new Node.js versions, so only basename() above is backported here
  21762. exports.basename = function (path, ext) {
  21763. var f = basename(path);
  21764. if (ext && f.substr(-1 * ext.length) === ext) {
  21765. f = f.substr(0, f.length - ext.length);
  21766. }
  21767. return f;
  21768. };
  21769. exports.extname = function (path) {
  21770. if (typeof path !== 'string') path = path + '';
  21771. var startDot = -1;
  21772. var startPart = 0;
  21773. var end = -1;
  21774. var matchedSlash = true;
  21775. // Track the state of characters (if any) we see before our first dot and
  21776. // after any path separator we find
  21777. var preDotState = 0;
  21778. for (var i = path.length - 1; i >= 0; --i) {
  21779. var code = path.charCodeAt(i);
  21780. if (code === 47 /*/*/) {
  21781. // If we reached a path separator that was not part of a set of path
  21782. // separators at the end of the string, stop now
  21783. if (!matchedSlash) {
  21784. startPart = i + 1;
  21785. break;
  21786. }
  21787. continue;
  21788. }
  21789. if (end === -1) {
  21790. // We saw the first non-path separator, mark this as the end of our
  21791. // extension
  21792. matchedSlash = false;
  21793. end = i + 1;
  21794. }
  21795. if (code === 46 /*.*/) {
  21796. // If this is our first dot, mark it as the start of our extension
  21797. if (startDot === -1)
  21798. startDot = i;
  21799. else if (preDotState !== 1)
  21800. preDotState = 1;
  21801. } else if (startDot !== -1) {
  21802. // We saw a non-dot and non-path separator before our dot, so we should
  21803. // have a good chance at having a non-empty extension
  21804. preDotState = -1;
  21805. }
  21806. }
  21807. if (startDot === -1 || end === -1 ||
  21808. // We saw a non-dot character immediately before the dot
  21809. preDotState === 0 ||
  21810. // The (right-most) trimmed path component is exactly '..'
  21811. preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
  21812. return '';
  21813. }
  21814. return path.slice(startDot, end);
  21815. };
  21816. function filter (xs, f) {
  21817. if (xs.filter) return xs.filter(f);
  21818. var res = [];
  21819. for (var i = 0; i < xs.length; i++) {
  21820. if (f(xs[i], i, xs)) res.push(xs[i]);
  21821. }
  21822. return res;
  21823. }
  21824. // String.prototype.substr - negative index don't work in IE8
  21825. var substr = 'ab'.substr(-1) === 'b'
  21826. ? function (str, start, len) { return str.substr(start, len) }
  21827. : function (str, start, len) {
  21828. if (start < 0) start = str.length + start;
  21829. return str.substr(start, len);
  21830. }
  21831. ;
  21832. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ 401)))
  21833. /***/ }),
  21834. /* 403 */,
  21835. /* 404 */,
  21836. /* 405 */,
  21837. /* 406 */,
  21838. /* 407 */,
  21839. /* 408 */
  21840. /*!***********************************************************************************************************!*\
  21841. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/components/u-form-item/props.js ***!
  21842. \***********************************************************************************************************/
  21843. /*! no static exports found */
  21844. /***/ (function(module, exports, __webpack_require__) {
  21845. "use strict";
  21846. /* WEBPACK VAR INJECTION */(function(uni) {
  21847. Object.defineProperty(exports, "__esModule", {
  21848. value: true
  21849. });
  21850. exports.default = void 0;
  21851. var _default = {
  21852. props: {
  21853. // input的label提示语
  21854. label: {
  21855. type: String,
  21856. default: uni.$u.props.formItem.label
  21857. },
  21858. // 绑定的值
  21859. prop: {
  21860. type: String,
  21861. default: uni.$u.props.formItem.prop
  21862. },
  21863. // 是否显示表单域的下划线边框
  21864. borderBottom: {
  21865. type: [String, Boolean],
  21866. default: uni.$u.props.formItem.borderBottom
  21867. },
  21868. // label的宽度,单位px
  21869. labelWidth: {
  21870. type: [String, Number],
  21871. default: uni.$u.props.formItem.labelWidth
  21872. },
  21873. // 右侧图标
  21874. rightIcon: {
  21875. type: String,
  21876. default: uni.$u.props.formItem.rightIcon
  21877. },
  21878. // 左侧图标
  21879. leftIcon: {
  21880. type: String,
  21881. default: uni.$u.props.formItem.leftIcon
  21882. },
  21883. // 是否显示左边的必填星号,只作显示用,具体校验必填的逻辑,请在rules中配置
  21884. required: {
  21885. type: Boolean,
  21886. default: uni.$u.props.formItem.required
  21887. },
  21888. leftIconStyle: {
  21889. type: [String, Object],
  21890. default: uni.$u.props.formItem.leftIconStyle
  21891. }
  21892. }
  21893. };
  21894. exports.default = _default;
  21895. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21896. /***/ }),
  21897. /* 409 */,
  21898. /* 410 */,
  21899. /* 411 */,
  21900. /* 412 */,
  21901. /* 413 */,
  21902. /* 414 */,
  21903. /* 415 */,
  21904. /* 416 */,
  21905. /* 417 */,
  21906. /* 418 */,
  21907. /* 419 */,
  21908. /* 420 */,
  21909. /* 421 */,
  21910. /* 422 */,
  21911. /* 423 */
  21912. /*!************************************************************************************************!*\
  21913. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/mixin/button.js ***!
  21914. \************************************************************************************************/
  21915. /*! no static exports found */
  21916. /***/ (function(module, exports, __webpack_require__) {
  21917. "use strict";
  21918. Object.defineProperty(exports, "__esModule", {
  21919. value: true
  21920. });
  21921. exports.default = void 0;
  21922. var _default = {
  21923. props: {
  21924. lang: String,
  21925. sessionFrom: String,
  21926. sendMessageTitle: String,
  21927. sendMessagePath: String,
  21928. sendMessageImg: String,
  21929. showMessageCard: Boolean,
  21930. appParameter: String,
  21931. formType: String,
  21932. openType: String
  21933. }
  21934. };
  21935. exports.default = _default;
  21936. /***/ }),
  21937. /* 424 */
  21938. /*!**************************************************************************************************!*\
  21939. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/libs/mixin/openType.js ***!
  21940. \**************************************************************************************************/
  21941. /*! no static exports found */
  21942. /***/ (function(module, exports, __webpack_require__) {
  21943. "use strict";
  21944. Object.defineProperty(exports, "__esModule", {
  21945. value: true
  21946. });
  21947. exports.default = void 0;
  21948. var _default = {
  21949. props: {
  21950. openType: String
  21951. },
  21952. methods: {
  21953. onGetUserInfo: function onGetUserInfo(event) {
  21954. this.$emit('getuserinfo', event.detail);
  21955. },
  21956. onContact: function onContact(event) {
  21957. this.$emit('contact', event.detail);
  21958. },
  21959. onGetPhoneNumber: function onGetPhoneNumber(event) {
  21960. this.$emit('getphonenumber', event.detail);
  21961. },
  21962. onError: function onError(event) {
  21963. this.$emit('error', event.detail);
  21964. },
  21965. onLaunchApp: function onLaunchApp(event) {
  21966. this.$emit('launchapp', event.detail);
  21967. },
  21968. onOpenSetting: function onOpenSetting(event) {
  21969. this.$emit('opensetting', event.detail);
  21970. }
  21971. }
  21972. };
  21973. exports.default = _default;
  21974. /***/ }),
  21975. /* 425 */
  21976. /*!********************************************************************************************************!*\
  21977. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/components/u-button/props.js ***!
  21978. \********************************************************************************************************/
  21979. /*! no static exports found */
  21980. /***/ (function(module, exports, __webpack_require__) {
  21981. "use strict";
  21982. /* WEBPACK VAR INJECTION */(function(uni) {
  21983. Object.defineProperty(exports, "__esModule", {
  21984. value: true
  21985. });
  21986. exports.default = void 0;
  21987. /*
  21988. * @Author : LQ
  21989. * @Description :
  21990. * @version : 1.0
  21991. * @Date : 2021-08-16 10:04:04
  21992. * @LastAuthor : LQ
  21993. * @lastTime : 2021-08-16 10:04:24
  21994. * @FilePath : /u-view2.0/uview-ui/components/u-button/props.js
  21995. */
  21996. var _default = {
  21997. props: {
  21998. // 是否细边框
  21999. hairline: {
  22000. type: Boolean,
  22001. default: uni.$u.props.button.hairline
  22002. },
  22003. // 按钮的预置样式,info,primary,error,warning,success
  22004. type: {
  22005. type: String,
  22006. default: uni.$u.props.button.type
  22007. },
  22008. // 按钮尺寸,large,normal,small,mini
  22009. size: {
  22010. type: String,
  22011. default: uni.$u.props.button.size
  22012. },
  22013. // 按钮形状,circle(两边为半圆),square(带圆角)
  22014. shape: {
  22015. type: String,
  22016. default: uni.$u.props.button.shape
  22017. },
  22018. // 按钮是否镂空
  22019. plain: {
  22020. type: Boolean,
  22021. default: uni.$u.props.button.plain
  22022. },
  22023. // 是否禁止状态
  22024. disabled: {
  22025. type: Boolean,
  22026. default: uni.$u.props.button.disabled
  22027. },
  22028. // 是否加载中
  22029. loading: {
  22030. type: Boolean,
  22031. default: uni.$u.props.button.loading
  22032. },
  22033. // 加载中提示文字
  22034. loadingText: {
  22035. type: [String, Number],
  22036. default: uni.$u.props.button.loadingText
  22037. },
  22038. // 加载状态图标类型
  22039. loadingMode: {
  22040. type: String,
  22041. default: uni.$u.props.button.loadingMode
  22042. },
  22043. // 加载图标大小
  22044. loadingSize: {
  22045. type: [String, Number],
  22046. default: uni.$u.props.button.loadingSize
  22047. },
  22048. // 开放能力,具体请看uniapp稳定关于button组件部分说明
  22049. // https://uniapp.dcloud.io/component/button
  22050. openType: {
  22051. type: String,
  22052. default: uni.$u.props.button.openType
  22053. },
  22054. // 用于 <form> 组件,点击分别会触发 <form> 组件的 submit/reset 事件
  22055. // 取值为submit(提交表单),reset(重置表单)
  22056. formType: {
  22057. type: String,
  22058. default: uni.$u.props.button.formType
  22059. },
  22060. // 打开 APP 时,向 APP 传递的参数,open-type=launchApp时有效
  22061. // 只微信小程序、QQ小程序有效
  22062. appParameter: {
  22063. type: String,
  22064. default: uni.$u.props.button.appParameter
  22065. },
  22066. // 指定是否阻止本节点的祖先节点出现点击态,微信小程序有效
  22067. hoverStopPropagation: {
  22068. type: Boolean,
  22069. default: uni.$u.props.button.hoverStopPropagation
  22070. },
  22071. // 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文。只微信小程序有效
  22072. lang: {
  22073. type: String,
  22074. default: uni.$u.props.button.lang
  22075. },
  22076. // 会话来源,open-type="contact"时有效。只微信小程序有效
  22077. sessionFrom: {
  22078. type: String,
  22079. default: uni.$u.props.button.sessionFrom
  22080. },
  22081. // 会话内消息卡片标题,open-type="contact"时有效
  22082. // 默认当前标题,只微信小程序有效
  22083. sendMessageTitle: {
  22084. type: String,
  22085. default: uni.$u.props.button.sendMessageTitle
  22086. },
  22087. // 会话内消息卡片点击跳转小程序路径,open-type="contact"时有效
  22088. // 默认当前分享路径,只微信小程序有效
  22089. sendMessagePath: {
  22090. type: String,
  22091. default: uni.$u.props.button.sendMessagePath
  22092. },
  22093. // 会话内消息卡片图片,open-type="contact"时有效
  22094. // 默认当前页面截图,只微信小程序有效
  22095. sendMessageImg: {
  22096. type: String,
  22097. default: uni.$u.props.button.sendMessageImg
  22098. },
  22099. // 是否显示会话内消息卡片,设置此参数为 true,用户进入客服会话会在右下角显示"可能要发送的小程序"提示,
  22100. // 用户点击后可以快速发送小程序消息,open-type="contact"时有效
  22101. showMessageCard: {
  22102. type: Boolean,
  22103. default: uni.$u.props.button.showMessageCard
  22104. },
  22105. // 额外传参参数,用于小程序的data-xxx属性,通过target.dataset.name获取
  22106. dataName: {
  22107. type: String,
  22108. default: uni.$u.props.button.dataName
  22109. },
  22110. // 节流,一定时间内只能触发一次
  22111. throttleTime: {
  22112. type: [String, Number],
  22113. default: uni.$u.props.button.throttleTime
  22114. },
  22115. // 按住后多久出现点击态,单位毫秒
  22116. hoverStartTime: {
  22117. type: [String, Number],
  22118. default: uni.$u.props.button.hoverStartTime
  22119. },
  22120. // 手指松开后点击态保留时间,单位毫秒
  22121. hoverStayTime: {
  22122. type: [String, Number],
  22123. default: uni.$u.props.button.hoverStayTime
  22124. },
  22125. // 按钮文字,之所以通过props传入,是因为slot传入的话
  22126. // nvue中无法控制文字的样式
  22127. text: {
  22128. type: [String, Number],
  22129. default: uni.$u.props.button.text
  22130. },
  22131. // 按钮图标
  22132. icon: {
  22133. type: String,
  22134. default: uni.$u.props.button.icon
  22135. },
  22136. // 按钮图标
  22137. iconColor: {
  22138. type: String,
  22139. default: uni.$u.props.button.icon
  22140. },
  22141. // 按钮颜色,支持传入linear-gradient渐变色
  22142. color: {
  22143. type: String,
  22144. default: uni.$u.props.button.color
  22145. }
  22146. }
  22147. };
  22148. exports.default = _default;
  22149. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22150. /***/ }),
  22151. /* 426 */,
  22152. /* 427 */,
  22153. /* 428 */,
  22154. /* 429 */,
  22155. /* 430 */,
  22156. /* 431 */,
  22157. /* 432 */,
  22158. /* 433 */,
  22159. /* 434 */,
  22160. /* 435 */,
  22161. /* 436 */,
  22162. /* 437 */,
  22163. /* 438 */,
  22164. /* 439 */,
  22165. /* 440 */,
  22166. /* 441 */,
  22167. /* 442 */,
  22168. /* 443 */,
  22169. /* 444 */,
  22170. /* 445 */,
  22171. /* 446 */,
  22172. /* 447 */,
  22173. /* 448 */,
  22174. /* 449 */,
  22175. /* 450 */,
  22176. /* 451 */,
  22177. /* 452 */,
  22178. /* 453 */,
  22179. /* 454 */
  22180. /*!**************************************************************************************************************!*\
  22181. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/components/u-loading-icon/props.js ***!
  22182. \**************************************************************************************************************/
  22183. /*! no static exports found */
  22184. /***/ (function(module, exports, __webpack_require__) {
  22185. "use strict";
  22186. /* WEBPACK VAR INJECTION */(function(uni) {
  22187. Object.defineProperty(exports, "__esModule", {
  22188. value: true
  22189. });
  22190. exports.default = void 0;
  22191. var _default = {
  22192. props: {
  22193. // 是否显示组件
  22194. show: {
  22195. type: Boolean,
  22196. default: uni.$u.props.loadingIcon.show
  22197. },
  22198. // 颜色
  22199. color: {
  22200. type: String,
  22201. default: uni.$u.props.loadingIcon.color
  22202. },
  22203. // 提示文字颜色
  22204. textColor: {
  22205. type: String,
  22206. default: uni.$u.props.loadingIcon.textColor
  22207. },
  22208. // 文字和图标是否垂直排列
  22209. vertical: {
  22210. type: Boolean,
  22211. default: uni.$u.props.loadingIcon.vertical
  22212. },
  22213. // 模式选择,circle-圆形,spinner-花朵形,semicircle-半圆形
  22214. mode: {
  22215. type: String,
  22216. default: uni.$u.props.loadingIcon.mode
  22217. },
  22218. // 图标大小,单位默认px
  22219. size: {
  22220. type: [String, Number],
  22221. default: uni.$u.props.loadingIcon.size
  22222. },
  22223. // 文字大小
  22224. textSize: {
  22225. type: [String, Number],
  22226. default: uni.$u.props.loadingIcon.textSize
  22227. },
  22228. // 文字内容
  22229. text: {
  22230. type: [String, Number],
  22231. default: uni.$u.props.loadingIcon.text
  22232. },
  22233. // 动画模式
  22234. timingFunction: {
  22235. type: String,
  22236. default: uni.$u.props.loadingIcon.timingFunction
  22237. },
  22238. // 动画执行周期时间
  22239. duration: {
  22240. type: [String, Number],
  22241. default: uni.$u.props.loadingIcon.duration
  22242. },
  22243. // mode=circle时的暗边颜色
  22244. inactiveColor: {
  22245. type: String,
  22246. default: uni.$u.props.loadingIcon.inactiveColor
  22247. }
  22248. }
  22249. };
  22250. exports.default = _default;
  22251. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22252. /***/ }),
  22253. /* 455 */,
  22254. /* 456 */,
  22255. /* 457 */,
  22256. /* 458 */,
  22257. /* 459 */,
  22258. /* 460 */,
  22259. /* 461 */,
  22260. /* 462 */
  22261. /*!*******************************************************************************************************!*\
  22262. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/components/u-badge/props.js ***!
  22263. \*******************************************************************************************************/
  22264. /*! no static exports found */
  22265. /***/ (function(module, exports, __webpack_require__) {
  22266. "use strict";
  22267. /* WEBPACK VAR INJECTION */(function(uni) {
  22268. Object.defineProperty(exports, "__esModule", {
  22269. value: true
  22270. });
  22271. exports.default = void 0;
  22272. var _default = {
  22273. props: {
  22274. // 是否显示圆点
  22275. isDot: {
  22276. type: Boolean,
  22277. default: uni.$u.props.badge.isDot
  22278. },
  22279. // 显示的内容
  22280. value: {
  22281. type: [Number, String],
  22282. default: uni.$u.props.badge.value
  22283. },
  22284. // 是否显示
  22285. show: {
  22286. type: Boolean,
  22287. default: uni.$u.props.badge.show
  22288. },
  22289. // 最大值,超过最大值会显示 '{max}+'
  22290. max: {
  22291. type: [Number, String],
  22292. default: uni.$u.props.badge.max
  22293. },
  22294. // 主题类型,error|warning|success|primary
  22295. type: {
  22296. type: String,
  22297. default: uni.$u.props.badge.type
  22298. },
  22299. // 当数值为 0 时,是否展示 Badge
  22300. showZero: {
  22301. type: Boolean,
  22302. default: uni.$u.props.badge.showZero
  22303. },
  22304. // 背景颜色,优先级比type高,如设置,type参数会失效
  22305. bgColor: {
  22306. type: [String, null],
  22307. default: uni.$u.props.badge.bgColor
  22308. },
  22309. // 字体颜色
  22310. color: {
  22311. type: [String, null],
  22312. default: uni.$u.props.badge.color
  22313. },
  22314. // 徽标形状,circle-四角均为圆角,horn-左下角为直角
  22315. shape: {
  22316. type: String,
  22317. default: uni.$u.props.badge.shape
  22318. },
  22319. // 设置数字的显示方式,overflow|ellipsis|limit
  22320. // overflow会根据max字段判断,超出显示`${max}+`
  22321. // ellipsis会根据max判断,超出显示`${max}...`
  22322. // limit会依据1000作为判断条件,超出1000,显示`${value/1000}K`,比如2.2k、3.34w,最多保留2位小数
  22323. numberType: {
  22324. type: String,
  22325. default: uni.$u.props.badge.numberType
  22326. },
  22327. // 设置badge的位置偏移,格式为 [x, y],也即设置的为top和right的值,absolute为true时有效
  22328. offset: {
  22329. type: Array,
  22330. default: uni.$u.props.badge.offset
  22331. },
  22332. // 是否反转背景和字体颜色
  22333. inverted: {
  22334. type: Boolean,
  22335. default: uni.$u.props.badge.inverted
  22336. },
  22337. // 是否绝对定位
  22338. absolute: {
  22339. type: Boolean,
  22340. default: uni.$u.props.badge.absolute
  22341. }
  22342. }
  22343. };
  22344. exports.default = _default;
  22345. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22346. /***/ }),
  22347. /* 463 */,
  22348. /* 464 */,
  22349. /* 465 */,
  22350. /* 466 */,
  22351. /* 467 */,
  22352. /* 468 */,
  22353. /* 469 */,
  22354. /* 470 */
  22355. /*!************************************************************************************************************!*\
  22356. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/components/u-transition/props.js ***!
  22357. \************************************************************************************************************/
  22358. /*! no static exports found */
  22359. /***/ (function(module, exports, __webpack_require__) {
  22360. "use strict";
  22361. /* WEBPACK VAR INJECTION */(function(uni) {
  22362. Object.defineProperty(exports, "__esModule", {
  22363. value: true
  22364. });
  22365. exports.default = void 0;
  22366. var _default = {
  22367. props: {
  22368. // 是否展示组件
  22369. show: {
  22370. type: Boolean,
  22371. default: uni.$u.props.transition.show
  22372. },
  22373. // 使用的动画模式
  22374. mode: {
  22375. type: String,
  22376. default: uni.$u.props.transition.mode
  22377. },
  22378. // 动画的执行时间,单位ms
  22379. duration: {
  22380. type: [String, Number],
  22381. default: uni.$u.props.transition.duration
  22382. },
  22383. // 使用的动画过渡函数
  22384. timingFunction: {
  22385. type: String,
  22386. default: uni.$u.props.transition.timingFunction
  22387. }
  22388. }
  22389. };
  22390. exports.default = _default;
  22391. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22392. /***/ }),
  22393. /* 471 */
  22394. /*!*****************************************************************************************************************!*\
  22395. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/components/u-transition/transition.js ***!
  22396. \*****************************************************************************************************************/
  22397. /*! no static exports found */
  22398. /***/ (function(module, exports, __webpack_require__) {
  22399. "use strict";
  22400. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  22401. Object.defineProperty(exports, "__esModule", {
  22402. value: true
  22403. });
  22404. exports.default = void 0;
  22405. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 30));
  22406. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
  22407. var _nvueAniMap = _interopRequireDefault(__webpack_require__(/*! ./nvue.ani-map.js */ 472));
  22408. // 定义一个一定时间后自动成功的promise,让调用nextTick方法处,进入下一个then方法
  22409. var nextTick = function nextTick() {
  22410. return new Promise(function (resolve) {
  22411. return setTimeout(resolve, 1000 / 50);
  22412. });
  22413. };
  22414. // nvue动画模块实现细节抽离在外部文件
  22415. // 定义类名,通过给元素动态切换类名,赋予元素一定的css动画样式
  22416. var getClassNames = function getClassNames(name) {
  22417. return {
  22418. enter: "u-".concat(name, "-enter u-").concat(name, "-enter-active"),
  22419. 'enter-to': "u-".concat(name, "-enter-to u-").concat(name, "-enter-active"),
  22420. leave: "u-".concat(name, "-leave u-").concat(name, "-leave-active"),
  22421. 'leave-to': "u-".concat(name, "-leave-to u-").concat(name, "-leave-active")
  22422. };
  22423. };
  22424. var _default = {
  22425. methods: {
  22426. // 组件被点击发出事件
  22427. clickHandler: function clickHandler() {
  22428. this.$emit('click');
  22429. },
  22430. // vue版本的组件进场处理
  22431. vueEnter: function vueEnter() {
  22432. var _this = this;
  22433. // 动画进入时的类名
  22434. var classNames = getClassNames(this.mode);
  22435. // 定义状态和发出动画进入前事件
  22436. this.status = 'enter';
  22437. this.$emit('beforeEnter');
  22438. this.inited = true;
  22439. this.display = true;
  22440. this.classes = classNames.enter;
  22441. this.$nextTick( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  22442. return _regenerator.default.wrap(function _callee$(_context) {
  22443. while (1) {
  22444. switch (_context.prev = _context.next) {
  22445. case 0:
  22446. // 标识动画尚未结束
  22447. _this.$emit('enter');
  22448. _this.transitionEnded = false;
  22449. // 组件动画进入后触发的事件
  22450. _this.$emit('afterEnter');
  22451. // 赋予组件enter-to类名
  22452. _this.classes = classNames['enter-to'];
  22453. case 4:
  22454. case "end":
  22455. return _context.stop();
  22456. }
  22457. }
  22458. }, _callee);
  22459. })));
  22460. },
  22461. // 动画离场处理
  22462. vueLeave: function vueLeave() {
  22463. var _this2 = this;
  22464. // 如果不是展示状态,无需执行逻辑
  22465. if (!this.display) return;
  22466. var classNames = getClassNames(this.mode);
  22467. // 标记离开状态和发出事件
  22468. this.status = 'leave';
  22469. this.$emit('beforeLeave');
  22470. // 获得类名
  22471. this.classes = classNames.leave;
  22472. this.$nextTick(function () {
  22473. // 动画正在离场的状态
  22474. _this2.transitionEnded = false;
  22475. _this2.$emit('leave');
  22476. // 组件执行动画,到了执行的执行时间后,执行一些额外处理
  22477. setTimeout(_this2.onTransitionEnd, _this2.duration);
  22478. _this2.classes = classNames['leave-to'];
  22479. });
  22480. },
  22481. // 完成过渡后触发
  22482. onTransitionEnd: function onTransitionEnd() {
  22483. // 如果已经是结束的状态,无需再处理
  22484. if (this.transitionEnded) return;
  22485. this.transitionEnded = true;
  22486. // 发出组件动画执行后的事件
  22487. this.$emit(this.status === 'leave' ? 'afterLeave' : 'afterEnter');
  22488. if (!this.show && this.display) {
  22489. this.display = false;
  22490. this.inited = false;
  22491. }
  22492. }
  22493. }
  22494. };
  22495. exports.default = _default;
  22496. /***/ }),
  22497. /* 472 */
  22498. /*!*******************************************************************************************************************!*\
  22499. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/components/u-transition/nvue.ani-map.js ***!
  22500. \*******************************************************************************************************************/
  22501. /*! no static exports found */
  22502. /***/ (function(module, exports, __webpack_require__) {
  22503. "use strict";
  22504. Object.defineProperty(exports, "__esModule", {
  22505. value: true
  22506. });
  22507. exports.default = void 0;
  22508. var _default = {
  22509. fade: {
  22510. enter: {
  22511. opacity: 0
  22512. },
  22513. 'enter-to': {
  22514. opacity: 1
  22515. },
  22516. leave: {
  22517. opacity: 1
  22518. },
  22519. 'leave-to': {
  22520. opacity: 0
  22521. }
  22522. },
  22523. 'fade-up': {
  22524. enter: {
  22525. opacity: 0,
  22526. transform: 'translateY(100%)'
  22527. },
  22528. 'enter-to': {
  22529. opacity: 1,
  22530. transform: 'translateY(0)'
  22531. },
  22532. leave: {
  22533. opacity: 1,
  22534. transform: 'translateY(0)'
  22535. },
  22536. 'leave-to': {
  22537. opacity: 0,
  22538. transform: 'translateY(100%)'
  22539. }
  22540. },
  22541. 'fade-down': {
  22542. enter: {
  22543. opacity: 0,
  22544. transform: 'translateY(-100%)'
  22545. },
  22546. 'enter-to': {
  22547. opacity: 1,
  22548. transform: 'translateY(0)'
  22549. },
  22550. leave: {
  22551. opacity: 1,
  22552. transform: 'translateY(0)'
  22553. },
  22554. 'leave-to': {
  22555. opacity: 0,
  22556. transform: 'translateY(-100%)'
  22557. }
  22558. },
  22559. 'fade-left': {
  22560. enter: {
  22561. opacity: 0,
  22562. transform: 'translateX(-100%)'
  22563. },
  22564. 'enter-to': {
  22565. opacity: 1,
  22566. transform: 'translateY(0)'
  22567. },
  22568. leave: {
  22569. opacity: 1,
  22570. transform: 'translateY(0)'
  22571. },
  22572. 'leave-to': {
  22573. opacity: 0,
  22574. transform: 'translateX(-100%)'
  22575. }
  22576. },
  22577. 'fade-right': {
  22578. enter: {
  22579. opacity: 0,
  22580. transform: 'translateX(100%)'
  22581. },
  22582. 'enter-to': {
  22583. opacity: 1,
  22584. transform: 'translateY(0)'
  22585. },
  22586. leave: {
  22587. opacity: 1,
  22588. transform: 'translateY(0)'
  22589. },
  22590. 'leave-to': {
  22591. opacity: 0,
  22592. transform: 'translateX(100%)'
  22593. }
  22594. },
  22595. 'slide-up': {
  22596. enter: {
  22597. transform: 'translateY(100%)'
  22598. },
  22599. 'enter-to': {
  22600. transform: 'translateY(0)'
  22601. },
  22602. leave: {
  22603. transform: 'translateY(0)'
  22604. },
  22605. 'leave-to': {
  22606. transform: 'translateY(100%)'
  22607. }
  22608. },
  22609. 'slide-down': {
  22610. enter: {
  22611. transform: 'translateY(-100%)'
  22612. },
  22613. 'enter-to': {
  22614. transform: 'translateY(0)'
  22615. },
  22616. leave: {
  22617. transform: 'translateY(0)'
  22618. },
  22619. 'leave-to': {
  22620. transform: 'translateY(-100%)'
  22621. }
  22622. },
  22623. 'slide-left': {
  22624. enter: {
  22625. transform: 'translateX(-100%)'
  22626. },
  22627. 'enter-to': {
  22628. transform: 'translateY(0)'
  22629. },
  22630. leave: {
  22631. transform: 'translateY(0)'
  22632. },
  22633. 'leave-to': {
  22634. transform: 'translateX(-100%)'
  22635. }
  22636. },
  22637. 'slide-right': {
  22638. enter: {
  22639. transform: 'translateX(100%)'
  22640. },
  22641. 'enter-to': {
  22642. transform: 'translateY(0)'
  22643. },
  22644. leave: {
  22645. transform: 'translateY(0)'
  22646. },
  22647. 'leave-to': {
  22648. transform: 'translateX(100%)'
  22649. }
  22650. },
  22651. zoom: {
  22652. enter: {
  22653. transform: 'scale(0.95)'
  22654. },
  22655. 'enter-to': {
  22656. transform: 'scale(1)'
  22657. },
  22658. leave: {
  22659. transform: 'scale(1)'
  22660. },
  22661. 'leave-to': {
  22662. transform: 'scale(0.95)'
  22663. }
  22664. },
  22665. 'fade-zoom': {
  22666. enter: {
  22667. opacity: 0,
  22668. transform: 'scale(0.95)'
  22669. },
  22670. 'enter-to': {
  22671. opacity: 1,
  22672. transform: 'scale(1)'
  22673. },
  22674. leave: {
  22675. opacity: 1,
  22676. transform: 'scale(1)'
  22677. },
  22678. 'leave-to': {
  22679. opacity: 0,
  22680. transform: 'scale(0.95)'
  22681. }
  22682. }
  22683. };
  22684. exports.default = _default;
  22685. /***/ }),
  22686. /* 473 */,
  22687. /* 474 */,
  22688. /* 475 */,
  22689. /* 476 */,
  22690. /* 477 */,
  22691. /* 478 */,
  22692. /* 479 */,
  22693. /* 480 */
  22694. /*!*******************************************************************************************************!*\
  22695. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/components/u-popup/props.js ***!
  22696. \*******************************************************************************************************/
  22697. /*! no static exports found */
  22698. /***/ (function(module, exports, __webpack_require__) {
  22699. "use strict";
  22700. /* WEBPACK VAR INJECTION */(function(uni) {
  22701. Object.defineProperty(exports, "__esModule", {
  22702. value: true
  22703. });
  22704. exports.default = void 0;
  22705. var _default = {
  22706. props: {
  22707. // 是否展示弹窗
  22708. show: {
  22709. type: Boolean,
  22710. default: uni.$u.props.popup.show
  22711. },
  22712. // 是否显示遮罩
  22713. overlay: {
  22714. type: Boolean,
  22715. default: uni.$u.props.popup.overlay
  22716. },
  22717. // 弹出的方向,可选值为 top bottom right left center
  22718. mode: {
  22719. type: String,
  22720. default: uni.$u.props.popup.mode
  22721. },
  22722. // 动画时长,单位ms
  22723. duration: {
  22724. type: [String, Number],
  22725. default: uni.$u.props.popup.duration
  22726. },
  22727. // 是否显示关闭图标
  22728. closeable: {
  22729. type: Boolean,
  22730. default: uni.$u.props.popup.closeable
  22731. },
  22732. // 自定义遮罩的样式
  22733. overlayStyle: {
  22734. type: [Object, String],
  22735. default: uni.$u.props.popup.overlayStyle
  22736. },
  22737. // 点击遮罩是否关闭弹窗
  22738. closeOnClickOverlay: {
  22739. type: Boolean,
  22740. default: uni.$u.props.popup.closeOnClickOverlay
  22741. },
  22742. // 层级
  22743. zIndex: {
  22744. type: [String, Number],
  22745. default: uni.$u.props.popup.zIndex
  22746. },
  22747. // 是否为iPhoneX留出底部安全距离
  22748. safeAreaInsetBottom: {
  22749. type: Boolean,
  22750. default: uni.$u.props.popup.safeAreaInsetBottom
  22751. },
  22752. // 是否留出顶部安全距离(状态栏高度)
  22753. safeAreaInsetTop: {
  22754. type: Boolean,
  22755. default: uni.$u.props.popup.safeAreaInsetTop
  22756. },
  22757. // 自定义关闭图标位置,top-left为左上角,top-right为右上角,bottom-left为左下角,bottom-right为右下角
  22758. closeIconPos: {
  22759. type: String,
  22760. default: uni.$u.props.popup.closeIconPos
  22761. },
  22762. // 是否显示圆角
  22763. round: {
  22764. type: [Boolean, String, Number],
  22765. default: uni.$u.props.popup.round
  22766. },
  22767. // mode=center,也即中部弹出时,是否使用缩放模式
  22768. zoom: {
  22769. type: Boolean,
  22770. default: uni.$u.props.popup.zoom
  22771. },
  22772. // 弹窗背景色,设置为transparent可去除白色背景
  22773. bgColor: {
  22774. type: String,
  22775. default: uni.$u.props.popup.bgColor
  22776. },
  22777. // 遮罩的透明度,0-1之间
  22778. overlayOpacity: {
  22779. type: [Number, String],
  22780. default: uni.$u.props.popup.overlayOpacity
  22781. }
  22782. }
  22783. };
  22784. exports.default = _default;
  22785. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22786. /***/ }),
  22787. /* 481 */,
  22788. /* 482 */,
  22789. /* 483 */,
  22790. /* 484 */,
  22791. /* 485 */,
  22792. /* 486 */,
  22793. /* 487 */,
  22794. /* 488 */,
  22795. /* 489 */,
  22796. /* 490 */,
  22797. /* 491 */,
  22798. /* 492 */,
  22799. /* 493 */,
  22800. /* 494 */,
  22801. /* 495 */,
  22802. /* 496 */,
  22803. /* 497 */
  22804. /*!******************************************************************************************************!*\
  22805. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/components/u-text/props.js ***!
  22806. \******************************************************************************************************/
  22807. /*! no static exports found */
  22808. /***/ (function(module, exports, __webpack_require__) {
  22809. "use strict";
  22810. /* WEBPACK VAR INJECTION */(function(uni) {
  22811. Object.defineProperty(exports, "__esModule", {
  22812. value: true
  22813. });
  22814. exports.default = void 0;
  22815. var _default = {
  22816. props: {
  22817. // 主题颜色
  22818. type: {
  22819. type: String,
  22820. default: uni.$u.props.text.type
  22821. },
  22822. // 是否显示
  22823. show: {
  22824. type: Boolean,
  22825. default: uni.$u.props.text.show
  22826. },
  22827. // 显示的值
  22828. text: {
  22829. type: [String, Number],
  22830. default: uni.$u.props.text.text
  22831. },
  22832. // 前置图标
  22833. prefixIcon: {
  22834. type: String,
  22835. default: uni.$u.props.text.prefixIcon
  22836. },
  22837. // 后置图标
  22838. suffixIcon: {
  22839. type: String,
  22840. default: uni.$u.props.text.suffixIcon
  22841. },
  22842. // 文本处理的匹配模式
  22843. // text-普通文本,price-价格,phone-手机号,name-姓名,date-日期,link-超链接
  22844. mode: {
  22845. type: String,
  22846. default: uni.$u.props.text.mode
  22847. },
  22848. // mode=link下,配置的链接
  22849. href: {
  22850. type: String,
  22851. default: uni.$u.props.text.href
  22852. },
  22853. // 格式化规则
  22854. format: {
  22855. type: [String, Function],
  22856. default: uni.$u.props.text.format
  22857. },
  22858. // mode=phone时,点击文本是否拨打电话
  22859. call: {
  22860. type: Boolean,
  22861. default: uni.$u.props.text.call
  22862. },
  22863. // 小程序的打开方式
  22864. openType: {
  22865. type: String,
  22866. default: uni.$u.props.text.openType
  22867. },
  22868. // 是否粗体,默认normal
  22869. bold: {
  22870. type: Boolean,
  22871. default: uni.$u.props.text.bold
  22872. },
  22873. // 是否块状
  22874. block: {
  22875. type: Boolean,
  22876. default: uni.$u.props.text.block
  22877. },
  22878. // 文本显示的行数,如果设置,超出此行数,将会显示省略号
  22879. lines: {
  22880. type: [String, Number],
  22881. default: uni.$u.props.text.lines
  22882. },
  22883. // 文本颜色
  22884. color: {
  22885. type: String,
  22886. default: uni.$u.props.text.color
  22887. },
  22888. // 字体大小
  22889. size: {
  22890. type: [String, Number],
  22891. default: uni.$u.props.text.size
  22892. },
  22893. // 图标的样式
  22894. iconStyle: {
  22895. type: [Object, String],
  22896. default: uni.$u.props.text.iconStyle
  22897. },
  22898. // 文字装饰,下划线,中划线等,可选值 none|underline|line-through
  22899. decoration: {
  22900. tepe: String,
  22901. default: uni.$u.props.text.decoration
  22902. },
  22903. // 外边距,对象、字符串,数值形式均可
  22904. margin: {
  22905. type: [Object, String, Number],
  22906. default: uni.$u.props.text.margin
  22907. },
  22908. // 文本行高
  22909. lineHeight: {
  22910. type: [String, Number],
  22911. default: uni.$u.props.text.lineHeight
  22912. },
  22913. // 文本对齐方式,可选值left|center|right
  22914. align: {
  22915. type: String,
  22916. default: uni.$u.props.text.align
  22917. },
  22918. // 文字换行,可选值break-word|normal|anywhere
  22919. wordWrap: {
  22920. type: String,
  22921. default: uni.$u.props.text.wordWrap
  22922. }
  22923. }
  22924. };
  22925. exports.default = _default;
  22926. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22927. /***/ }),
  22928. /* 498 */,
  22929. /* 499 */,
  22930. /* 500 */,
  22931. /* 501 */,
  22932. /* 502 */,
  22933. /* 503 */,
  22934. /* 504 */,
  22935. /* 505 */,
  22936. /* 506 */,
  22937. /* 507 */,
  22938. /* 508 */,
  22939. /* 509 */,
  22940. /* 510 */
  22941. /*!*********************************************************************************************************!*\
  22942. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/components/u-overlay/props.js ***!
  22943. \*********************************************************************************************************/
  22944. /*! no static exports found */
  22945. /***/ (function(module, exports, __webpack_require__) {
  22946. "use strict";
  22947. /* WEBPACK VAR INJECTION */(function(uni) {
  22948. Object.defineProperty(exports, "__esModule", {
  22949. value: true
  22950. });
  22951. exports.default = void 0;
  22952. var _default = {
  22953. props: {
  22954. // 是否显示遮罩
  22955. show: {
  22956. type: Boolean,
  22957. default: uni.$u.props.overlay.show
  22958. },
  22959. // 层级z-index
  22960. zIndex: {
  22961. type: [String, Number],
  22962. default: uni.$u.props.overlay.zIndex
  22963. },
  22964. // 遮罩的过渡时间,单位为ms
  22965. duration: {
  22966. type: [String, Number],
  22967. default: uni.$u.props.overlay.duration
  22968. },
  22969. // 不透明度值,当做rgba的第四个参数
  22970. opacity: {
  22971. type: [String, Number],
  22972. default: uni.$u.props.overlay.opacity
  22973. }
  22974. }
  22975. };
  22976. exports.default = _default;
  22977. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22978. /***/ }),
  22979. /* 511 */,
  22980. /* 512 */,
  22981. /* 513 */,
  22982. /* 514 */,
  22983. /* 515 */,
  22984. /* 516 */,
  22985. /* 517 */,
  22986. /* 518 */
  22987. /*!************************************************************************************************************!*\
  22988. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/components/u-status-bar/props.js ***!
  22989. \************************************************************************************************************/
  22990. /*! no static exports found */
  22991. /***/ (function(module, exports, __webpack_require__) {
  22992. "use strict";
  22993. /* WEBPACK VAR INJECTION */(function(uni) {
  22994. Object.defineProperty(exports, "__esModule", {
  22995. value: true
  22996. });
  22997. exports.default = void 0;
  22998. var _default = {
  22999. props: {
  23000. bgColor: {
  23001. type: String,
  23002. default: uni.$u.props.statusBar.bgColor
  23003. }
  23004. }
  23005. };
  23006. exports.default = _default;
  23007. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23008. /***/ }),
  23009. /* 519 */,
  23010. /* 520 */,
  23011. /* 521 */,
  23012. /* 522 */,
  23013. /* 523 */,
  23014. /* 524 */,
  23015. /* 525 */,
  23016. /* 526 */
  23017. /*!*************************************************************************************************************!*\
  23018. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/components/u-safe-bottom/props.js ***!
  23019. \*************************************************************************************************************/
  23020. /*! no static exports found */
  23021. /***/ (function(module, exports, __webpack_require__) {
  23022. "use strict";
  23023. Object.defineProperty(exports, "__esModule", {
  23024. value: true
  23025. });
  23026. exports.default = void 0;
  23027. var _default = {
  23028. props: {}
  23029. };
  23030. exports.default = _default;
  23031. /***/ }),
  23032. /* 527 */,
  23033. /* 528 */,
  23034. /* 529 */,
  23035. /* 530 */,
  23036. /* 531 */,
  23037. /* 532 */,
  23038. /* 533 */,
  23039. /* 534 */
  23040. /*!******************************************************************************************************!*\
  23041. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/components/u-text/value.js ***!
  23042. \******************************************************************************************************/
  23043. /*! no static exports found */
  23044. /***/ (function(module, exports, __webpack_require__) {
  23045. "use strict";
  23046. /* WEBPACK VAR INJECTION */(function(uni) {
  23047. Object.defineProperty(exports, "__esModule", {
  23048. value: true
  23049. });
  23050. exports.default = void 0;
  23051. var _default = {
  23052. computed: {
  23053. // 经处理后需要显示的值
  23054. value: function value() {
  23055. var text = this.text,
  23056. mode = this.mode,
  23057. format = this.format,
  23058. href = this.href;
  23059. // 价格类型
  23060. if (mode === 'price') {
  23061. // 如果text不为金额进行提示
  23062. if (!/^\d+(\.\d+)?$/.test(text)) {
  23063. uni.$u.error('金额模式下,text参数需要为金额格式');
  23064. }
  23065. // 进行格式化,判断用户传入的format参数为正则,或者函数,如果没有传入format,则使用默认的金额格式化处理
  23066. if (uni.$u.test.func(format)) {
  23067. // 如果用户传入的是函数,使用函数格式化
  23068. return format(text);
  23069. }
  23070. // 如果format非正则,非函数,则使用默认的金额格式化方法进行操作
  23071. return uni.$u.priceFormat(text, 2);
  23072. }
  23073. if (mode === 'date') {
  23074. // 判断是否合法的日期或者时间戳
  23075. !uni.$u.test.date(text) && uni.$u.error('日期模式下,text参数需要为日期或时间戳格式');
  23076. // 进行格式化,判断用户传入的format参数为正则,或者函数,如果没有传入format,则使用默认的格式化处理
  23077. if (uni.$u.test.func(format)) {
  23078. // 如果用户传入的是函数,使用函数格式化
  23079. return format(text);
  23080. }
  23081. if (format) {
  23082. // 如果format非正则,非函数,则使用默认的时间格式化方法进行操作
  23083. return uni.$u.timeFormat(text, format);
  23084. }
  23085. // 如果没有设置format,则设置为默认的时间格式化形式
  23086. return uni.$u.timeFormat(text, 'yyyy-mm-dd');
  23087. }
  23088. if (mode === 'phone') {
  23089. // 判断是否合法的手机号
  23090. // !uni.$u.test.mobile(text) && uni.$u.error('手机号模式下,text参数需要为手机号码格式')
  23091. if (uni.$u.test.func(format)) {
  23092. // 如果用户传入的是函数,使用函数格式化
  23093. return format(text);
  23094. }
  23095. if (format === 'encrypt') {
  23096. // 如果format为encrypt,则将手机号进行星号加密处理
  23097. return "".concat(text.substr(0, 3), "****").concat(text.substr(7));
  23098. }
  23099. return text;
  23100. }
  23101. if (mode === 'name') {
  23102. // 判断是否合法的字符粗
  23103. !(typeof text === 'string') && uni.$u.error('姓名模式下,text参数需要为字符串格式');
  23104. if (uni.$u.test.func(format)) {
  23105. // 如果用户传入的是函数,使用函数格式化
  23106. return format(text);
  23107. }
  23108. if (format === 'encrypt') {
  23109. // 如果format为encrypt,则将姓名进行星号加密处理
  23110. return this.formatName(text);
  23111. }
  23112. return text;
  23113. }
  23114. if (mode === 'link') {
  23115. // 判断是否合法的字符粗
  23116. !uni.$u.test.url(href) && uni.$u.error('超链接模式下,href参数需要为URL格式');
  23117. return text;
  23118. }
  23119. return text;
  23120. }
  23121. },
  23122. methods: {
  23123. // 默认的姓名脱敏规则
  23124. formatName: function formatName(name) {
  23125. var value = '';
  23126. if (name.length === 2) {
  23127. value = name.substr(0, 1) + '*';
  23128. } else if (name.length > 2) {
  23129. var char = '';
  23130. for (var i = 0, len = name.length - 2; i < len; i++) {
  23131. char += '*';
  23132. }
  23133. value = name.substr(0, 1) + char + name.substr(-1, 1);
  23134. } else {
  23135. value = name;
  23136. }
  23137. return value;
  23138. }
  23139. }
  23140. };
  23141. exports.default = _default;
  23142. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23143. /***/ }),
  23144. /* 535 */,
  23145. /* 536 */,
  23146. /* 537 */,
  23147. /* 538 */,
  23148. /* 539 */,
  23149. /* 540 */,
  23150. /* 541 */,
  23151. /* 542 */
  23152. /*!*********************************************************************************************************!*\
  23153. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/components/u-divider/props.js ***!
  23154. \*********************************************************************************************************/
  23155. /*! no static exports found */
  23156. /***/ (function(module, exports, __webpack_require__) {
  23157. "use strict";
  23158. /* WEBPACK VAR INJECTION */(function(uni) {
  23159. Object.defineProperty(exports, "__esModule", {
  23160. value: true
  23161. });
  23162. exports.default = void 0;
  23163. var _default = {
  23164. props: {
  23165. // 是否虚线
  23166. dashed: {
  23167. type: Boolean,
  23168. default: uni.$u.props.divider.dashed
  23169. },
  23170. // 是否细线
  23171. hairline: {
  23172. type: Boolean,
  23173. default: uni.$u.props.divider.hairline
  23174. },
  23175. // 是否以点替代文字,优先于text字段起作用
  23176. dot: {
  23177. type: Boolean,
  23178. default: uni.$u.props.divider.dot
  23179. },
  23180. // 内容文本的位置,left-左边,center-中间,right-右边
  23181. textPosition: {
  23182. type: String,
  23183. default: uni.$u.props.divider.textPosition
  23184. },
  23185. // 文本内容
  23186. text: {
  23187. type: [String, Number],
  23188. default: uni.$u.props.divider.text
  23189. },
  23190. // 文本大小
  23191. textSize: {
  23192. type: [String, Number],
  23193. default: uni.$u.props.divider.textSize
  23194. },
  23195. // 文本颜色
  23196. textColor: {
  23197. type: String,
  23198. default: uni.$u.props.divider.textColor
  23199. },
  23200. // 线条颜色
  23201. lineColor: {
  23202. type: String,
  23203. default: uni.$u.props.divider.lineColor
  23204. }
  23205. }
  23206. };
  23207. exports.default = _default;
  23208. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23209. /***/ }),
  23210. /* 543 */,
  23211. /* 544 */,
  23212. /* 545 */,
  23213. /* 546 */,
  23214. /* 547 */,
  23215. /* 548 */,
  23216. /* 549 */,
  23217. /* 550 */
  23218. /*!******************************************************************************************************!*\
  23219. !*** C:/Users/EDY/Desktop/project/Anti-fraud-mobile/uni_modules/uview-ui/components/u-link/props.js ***!
  23220. \******************************************************************************************************/
  23221. /*! no static exports found */
  23222. /***/ (function(module, exports, __webpack_require__) {
  23223. "use strict";
  23224. /* WEBPACK VAR INJECTION */(function(uni) {
  23225. Object.defineProperty(exports, "__esModule", {
  23226. value: true
  23227. });
  23228. exports.default = void 0;
  23229. var _default = {
  23230. props: {
  23231. // 文字颜色
  23232. color: {
  23233. type: String,
  23234. default: uni.$u.props.link.color
  23235. },
  23236. // 字体大小,单位px
  23237. fontSize: {
  23238. type: [String, Number],
  23239. default: uni.$u.props.link.fontSize
  23240. },
  23241. // 是否显示下划线
  23242. underLine: {
  23243. type: Boolean,
  23244. default: uni.$u.props.link.underLine
  23245. },
  23246. // 要跳转的链接
  23247. href: {
  23248. type: String,
  23249. default: uni.$u.props.link.href
  23250. },
  23251. // 小程序中复制到粘贴板的提示语
  23252. mpTips: {
  23253. type: String,
  23254. default: uni.$u.props.link.mpTips
  23255. },
  23256. // 下划线颜色
  23257. lineColor: {
  23258. type: String,
  23259. default: uni.$u.props.link.lineColor
  23260. },
  23261. // 超链接的问题,不使用slot形式传入,是因为nvue下无法修改颜色
  23262. text: {
  23263. type: String,
  23264. default: uni.$u.props.link.text
  23265. }
  23266. }
  23267. };
  23268. exports.default = _default;
  23269. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23270. /***/ })
  23271. ]]);
  23272. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map