vendor.js 917 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],{
  2. /***/ 1:
  3. /*!*********************************************************!*\
  4. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js ***!
  5. \*********************************************************/
  6. /*! no static exports found */
  7. /***/ (function(module, exports, __webpack_require__) {
  8. "use strict";
  9. Object.defineProperty(exports, "__esModule", {
  10. value: true
  11. });
  12. exports.default = void 0;
  13. var objectKeys = ['qy', 'env', 'error', 'version', 'lanDebug', 'cloud', 'serviceMarket', 'router', 'worklet', '__webpack_require_UNI_MP_PLUGIN__'];
  14. var singlePageDisableKey = ['lanDebug', 'router', 'worklet'];
  15. var target = typeof globalThis !== 'undefined' ? globalThis : function () {
  16. return this;
  17. }();
  18. var key = ['w', 'x'].join('');
  19. var oldWx = target[key];
  20. var launchOption = oldWx.getLaunchOptionsSync ? oldWx.getLaunchOptionsSync() : null;
  21. function isWxKey(key) {
  22. if (launchOption && launchOption.scene === 1154 && singlePageDisableKey.includes(key)) {
  23. return false;
  24. }
  25. return objectKeys.indexOf(key) > -1 || typeof oldWx[key] === 'function';
  26. }
  27. function initWx() {
  28. var newWx = {};
  29. for (var _key in oldWx) {
  30. if (isWxKey(_key)) {
  31. // TODO wrapper function
  32. newWx[_key] = oldWx[_key];
  33. }
  34. }
  35. return newWx;
  36. }
  37. target[key] = initWx();
  38. var _default = target[key];
  39. exports.default = _default;
  40. /***/ }),
  41. /***/ 10:
  42. /*!****************************************************************!*\
  43. !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
  44. \****************************************************************/
  45. /*! no static exports found */
  46. /***/ (function(module, exports) {
  47. function _nonIterableRest() {
  48. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  49. }
  50. module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
  51. /***/ }),
  52. /***/ 100:
  53. /*!************************************************************************!*\
  54. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/image.js ***!
  55. \************************************************************************/
  56. /*! no static exports found */
  57. /***/ (function(module, exports, __webpack_require__) {
  58. "use strict";
  59. Object.defineProperty(exports, "__esModule", {
  60. value: true
  61. });
  62. exports.default = void 0;
  63. /*
  64. * @Author : LQ
  65. * @Description :
  66. * @version : 1.0
  67. * @Date : 2021-08-20 16:44:21
  68. * @LastAuthor : LQ
  69. * @lastTime : 2021-08-20 17:01:51
  70. * @FilePath : /u-view2.0/uview-ui/libs/config/props/image.js
  71. */
  72. var _default = {
  73. // image组件
  74. image: {
  75. src: '',
  76. mode: 'aspectFill',
  77. width: '300',
  78. height: '225',
  79. shape: 'square',
  80. radius: 0,
  81. lazyLoad: true,
  82. showMenuByLongpress: true,
  83. loadingIcon: 'photo',
  84. errorIcon: 'error-circle',
  85. showLoading: true,
  86. showError: true,
  87. fade: true,
  88. webp: false,
  89. duration: 500,
  90. bgColor: '#f3f4f6'
  91. }
  92. };
  93. exports.default = _default;
  94. /***/ }),
  95. /***/ 1003:
  96. /*!******************************************************************************!*\
  97. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-status-bar/props.js ***!
  98. \******************************************************************************/
  99. /*! no static exports found */
  100. /***/ (function(module, exports, __webpack_require__) {
  101. "use strict";
  102. /* WEBPACK VAR INJECTION */(function(uni) {
  103. Object.defineProperty(exports, "__esModule", {
  104. value: true
  105. });
  106. exports.default = void 0;
  107. var _default = {
  108. props: {
  109. bgColor: {
  110. type: String,
  111. default: uni.$u.props.statusBar.bgColor
  112. }
  113. }
  114. };
  115. exports.default = _default;
  116. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  117. /***/ }),
  118. /***/ 101:
  119. /*!******************************************************************************!*\
  120. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/indexAnchor.js ***!
  121. \******************************************************************************/
  122. /*! no static exports found */
  123. /***/ (function(module, exports, __webpack_require__) {
  124. "use strict";
  125. Object.defineProperty(exports, "__esModule", {
  126. value: true
  127. });
  128. exports.default = void 0;
  129. /*
  130. * @Author : LQ
  131. * @Description :
  132. * @version : 1.0
  133. * @Date : 2021-08-20 16:44:21
  134. * @LastAuthor : LQ
  135. * @lastTime : 2021-08-20 17:13:15
  136. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexAnchor.js
  137. */
  138. var _default = {
  139. // indexAnchor 组件
  140. indexAnchor: {
  141. text: '',
  142. color: '#606266',
  143. size: 14,
  144. bgColor: '#dedede',
  145. height: 32
  146. }
  147. };
  148. exports.default = _default;
  149. /***/ }),
  150. /***/ 1011:
  151. /*!********************************************************************************!*\
  152. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-loading-icon/props.js ***!
  153. \********************************************************************************/
  154. /*! no static exports found */
  155. /***/ (function(module, exports, __webpack_require__) {
  156. "use strict";
  157. /* WEBPACK VAR INJECTION */(function(uni) {
  158. Object.defineProperty(exports, "__esModule", {
  159. value: true
  160. });
  161. exports.default = void 0;
  162. var _default = {
  163. props: {
  164. // 是否显示组件
  165. show: {
  166. type: Boolean,
  167. default: uni.$u.props.loadingIcon.show
  168. },
  169. // 颜色
  170. color: {
  171. type: String,
  172. default: uni.$u.props.loadingIcon.color
  173. },
  174. // 提示文字颜色
  175. textColor: {
  176. type: String,
  177. default: uni.$u.props.loadingIcon.textColor
  178. },
  179. // 文字和图标是否垂直排列
  180. vertical: {
  181. type: Boolean,
  182. default: uni.$u.props.loadingIcon.vertical
  183. },
  184. // 模式选择,circle-圆形,spinner-花朵形,semicircle-半圆形
  185. mode: {
  186. type: String,
  187. default: uni.$u.props.loadingIcon.mode
  188. },
  189. // 图标大小,单位默认px
  190. size: {
  191. type: [String, Number],
  192. default: uni.$u.props.loadingIcon.size
  193. },
  194. // 文字大小
  195. textSize: {
  196. type: [String, Number],
  197. default: uni.$u.props.loadingIcon.textSize
  198. },
  199. // 文字内容
  200. text: {
  201. type: [String, Number],
  202. default: uni.$u.props.loadingIcon.text
  203. },
  204. // 动画模式
  205. timingFunction: {
  206. type: String,
  207. default: uni.$u.props.loadingIcon.timingFunction
  208. },
  209. // 动画执行周期时间
  210. duration: {
  211. type: [String, Number],
  212. default: uni.$u.props.loadingIcon.duration
  213. },
  214. // mode=circle时的暗边颜色
  215. inactiveColor: {
  216. type: String,
  217. default: uni.$u.props.loadingIcon.inactiveColor
  218. }
  219. }
  220. };
  221. exports.default = _default;
  222. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  223. /***/ }),
  224. /***/ 1019:
  225. /*!************************************************************************************!*\
  226. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-swiper-indicator/props.js ***!
  227. \************************************************************************************/
  228. /*! no static exports found */
  229. /***/ (function(module, exports, __webpack_require__) {
  230. "use strict";
  231. /* WEBPACK VAR INJECTION */(function(uni) {
  232. Object.defineProperty(exports, "__esModule", {
  233. value: true
  234. });
  235. exports.default = void 0;
  236. var _default = {
  237. props: {
  238. // 轮播的长度
  239. length: {
  240. type: [String, Number],
  241. default: uni.$u.props.swiperIndicator.length
  242. },
  243. // 当前处于活动状态的轮播的索引
  244. current: {
  245. type: [String, Number],
  246. default: uni.$u.props.swiperIndicator.current
  247. },
  248. // 指示器非激活颜色
  249. indicatorActiveColor: {
  250. type: String,
  251. default: uni.$u.props.swiperIndicator.indicatorActiveColor
  252. },
  253. // 指示器的激活颜色
  254. indicatorInactiveColor: {
  255. type: String,
  256. default: uni.$u.props.swiperIndicator.indicatorInactiveColor
  257. },
  258. // 指示器模式,line-线型,dot-点型
  259. indicatorMode: {
  260. type: String,
  261. default: uni.$u.props.swiperIndicator.indicatorMode
  262. }
  263. }
  264. };
  265. exports.default = _default;
  266. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  267. /***/ }),
  268. /***/ 102:
  269. /*!****************************************************************************!*\
  270. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/indexList.js ***!
  271. \****************************************************************************/
  272. /*! no static exports found */
  273. /***/ (function(module, exports, __webpack_require__) {
  274. "use strict";
  275. Object.defineProperty(exports, "__esModule", {
  276. value: true
  277. });
  278. exports.default = void 0;
  279. /*
  280. * @Author : LQ
  281. * @Description :
  282. * @version : 1.0
  283. * @Date : 2021-08-20 16:44:21
  284. * @LastAuthor : LQ
  285. * @lastTime : 2021-08-20 17:13:35
  286. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexList.js
  287. */
  288. var _default = {
  289. // indexList 组件
  290. indexList: {
  291. inactiveColor: '#606266',
  292. activeColor: '#5677fc',
  293. indexList: function indexList() {
  294. return [];
  295. },
  296. sticky: true,
  297. customNavHeight: 0
  298. }
  299. };
  300. exports.default = _default;
  301. /***/ }),
  302. /***/ 1027:
  303. /*!***************************************************************************!*\
  304. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-overlay/props.js ***!
  305. \***************************************************************************/
  306. /*! no static exports found */
  307. /***/ (function(module, exports, __webpack_require__) {
  308. "use strict";
  309. /* WEBPACK VAR INJECTION */(function(uni) {
  310. Object.defineProperty(exports, "__esModule", {
  311. value: true
  312. });
  313. exports.default = void 0;
  314. var _default = {
  315. props: {
  316. // 是否显示遮罩
  317. show: {
  318. type: Boolean,
  319. default: uni.$u.props.overlay.show
  320. },
  321. // 层级z-index
  322. zIndex: {
  323. type: [String, Number],
  324. default: uni.$u.props.overlay.zIndex
  325. },
  326. // 遮罩的过渡时间,单位为ms
  327. duration: {
  328. type: [String, Number],
  329. default: uni.$u.props.overlay.duration
  330. },
  331. // 不透明度值,当做rgba的第四个参数
  332. opacity: {
  333. type: [String, Number],
  334. default: uni.$u.props.overlay.opacity
  335. }
  336. }
  337. };
  338. exports.default = _default;
  339. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  340. /***/ }),
  341. /***/ 103:
  342. /*!************************************************************************!*\
  343. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/input.js ***!
  344. \************************************************************************/
  345. /*! no static exports found */
  346. /***/ (function(module, exports, __webpack_require__) {
  347. "use strict";
  348. Object.defineProperty(exports, "__esModule", {
  349. value: true
  350. });
  351. exports.default = void 0;
  352. /*
  353. * @Author : LQ
  354. * @Description :
  355. * @version : 1.0
  356. * @Date : 2021-08-20 16:44:21
  357. * @LastAuthor : LQ
  358. * @lastTime : 2021-08-20 17:13:55
  359. * @FilePath : /u-view2.0/uview-ui/libs/config/props/input.js
  360. */
  361. var _default = {
  362. // index 组件
  363. input: {
  364. value: '',
  365. type: 'text',
  366. fixed: false,
  367. disabled: false,
  368. disabledColor: '#f5f7fa',
  369. clearable: false,
  370. password: false,
  371. maxlength: -1,
  372. placeholder: null,
  373. placeholderClass: 'input-placeholder',
  374. placeholderStyle: 'color: #c0c4cc',
  375. showWordLimit: false,
  376. confirmType: 'done',
  377. confirmHold: false,
  378. holdKeyboard: false,
  379. focus: false,
  380. autoBlur: false,
  381. disableDefaultPadding: false,
  382. cursor: -1,
  383. cursorSpacing: 30,
  384. selectionStart: -1,
  385. selectionEnd: -1,
  386. adjustPosition: true,
  387. inputAlign: 'left',
  388. fontSize: '15px',
  389. color: '#303133',
  390. prefixIcon: '',
  391. prefixIconStyle: '',
  392. suffixIcon: '',
  393. suffixIconStyle: '',
  394. border: 'surround',
  395. readonly: false,
  396. shape: 'square',
  397. formatter: null
  398. }
  399. };
  400. exports.default = _default;
  401. /***/ }),
  402. /***/ 1035:
  403. /*!*******************************************************************************!*\
  404. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-safe-bottom/props.js ***!
  405. \*******************************************************************************/
  406. /*! no static exports found */
  407. /***/ (function(module, exports, __webpack_require__) {
  408. "use strict";
  409. Object.defineProperty(exports, "__esModule", {
  410. value: true
  411. });
  412. exports.default = void 0;
  413. var _default = {
  414. props: {}
  415. };
  416. exports.default = _default;
  417. /***/ }),
  418. /***/ 104:
  419. /*!***************************************************************************!*\
  420. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/keyboard.js ***!
  421. \***************************************************************************/
  422. /*! no static exports found */
  423. /***/ (function(module, exports, __webpack_require__) {
  424. "use strict";
  425. Object.defineProperty(exports, "__esModule", {
  426. value: true
  427. });
  428. exports.default = void 0;
  429. /*
  430. * @Author : LQ
  431. * @Description :
  432. * @version : 1.0
  433. * @Date : 2021-08-20 16:44:21
  434. * @LastAuthor : LQ
  435. * @lastTime : 2021-08-20 17:07:49
  436. * @FilePath : /u-view2.0/uview-ui/libs/config/props/keyboard.js
  437. */
  438. var _default = {
  439. // 键盘组件
  440. keyboard: {
  441. mode: 'number',
  442. dotDisabled: false,
  443. tooltip: true,
  444. showTips: true,
  445. tips: '',
  446. showCancel: true,
  447. showConfirm: true,
  448. random: false,
  449. safeAreaInsetBottom: true,
  450. closeOnClickOverlay: true,
  451. show: false,
  452. overlay: true,
  453. zIndex: 10075,
  454. cancelText: '取消',
  455. confirmText: '确定',
  456. autoChange: false
  457. }
  458. };
  459. exports.default = _default;
  460. /***/ }),
  461. /***/ 1043:
  462. /*!**************************************************************************!*\
  463. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-tabbar/props.js ***!
  464. \**************************************************************************/
  465. /*! no static exports found */
  466. /***/ (function(module, exports, __webpack_require__) {
  467. "use strict";
  468. /* WEBPACK VAR INJECTION */(function(uni) {
  469. Object.defineProperty(exports, "__esModule", {
  470. value: true
  471. });
  472. exports.default = void 0;
  473. var _default = {
  474. props: {
  475. // 当前匹配项的name
  476. value: {
  477. type: [String, Number, null],
  478. default: uni.$u.props.tabbar.value
  479. },
  480. // 是否为iPhoneX留出底部安全距离
  481. safeAreaInsetBottom: {
  482. type: Boolean,
  483. default: uni.$u.props.tabbar.safeAreaInsetBottom
  484. },
  485. // 是否显示上方边框
  486. border: {
  487. type: Boolean,
  488. default: uni.$u.props.tabbar.border
  489. },
  490. // 元素层级z-index
  491. zIndex: {
  492. type: [String, Number],
  493. default: uni.$u.props.tabbar.zIndex
  494. },
  495. // 选中标签的颜色
  496. activeColor: {
  497. type: String,
  498. default: uni.$u.props.tabbar.activeColor
  499. },
  500. // 未选中标签的颜色
  501. inactiveColor: {
  502. type: String,
  503. default: uni.$u.props.tabbar.inactiveColor
  504. },
  505. // 是否固定在底部
  506. fixed: {
  507. type: Boolean,
  508. default: uni.$u.props.tabbar.fixed
  509. },
  510. // fixed定位固定在底部时,是否生成一个等高元素防止塌陷
  511. placeholder: {
  512. type: Boolean,
  513. default: uni.$u.props.tabbar.placeholder
  514. }
  515. }
  516. };
  517. exports.default = _default;
  518. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  519. /***/ }),
  520. /***/ 105:
  521. /*!***********************************************************************!*\
  522. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/line.js ***!
  523. \***********************************************************************/
  524. /*! no static exports found */
  525. /***/ (function(module, exports, __webpack_require__) {
  526. "use strict";
  527. Object.defineProperty(exports, "__esModule", {
  528. value: true
  529. });
  530. exports.default = void 0;
  531. /*
  532. * @Author : LQ
  533. * @Description :
  534. * @version : 1.0
  535. * @Date : 2021-08-20 16:44:21
  536. * @LastAuthor : LQ
  537. * @lastTime : 2021-08-20 17:04:49
  538. * @FilePath : /u-view2.0/uview-ui/libs/config/props/line.js
  539. */
  540. var _default = {
  541. // line组件
  542. line: {
  543. color: '#d6d7d9',
  544. length: '100%',
  545. direction: 'row',
  546. hairline: true,
  547. margin: 0,
  548. dashed: false
  549. }
  550. };
  551. exports.default = _default;
  552. /***/ }),
  553. /***/ 1051:
  554. /*!*******************************************************************************!*\
  555. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-tabbar-item/props.js ***!
  556. \*******************************************************************************/
  557. /*! no static exports found */
  558. /***/ (function(module, exports, __webpack_require__) {
  559. "use strict";
  560. /* WEBPACK VAR INJECTION */(function(uni) {
  561. Object.defineProperty(exports, "__esModule", {
  562. value: true
  563. });
  564. exports.default = void 0;
  565. var _default = {
  566. props: {
  567. // item标签的名称,作为与u-tabbar的value参数匹配的标识符
  568. name: {
  569. type: [String, Number, null],
  570. default: uni.$u.props.tabbarItem.name
  571. },
  572. // uView内置图标或者绝对路径的图片
  573. icon: {
  574. icon: String,
  575. default: uni.$u.props.tabbarItem.icon
  576. },
  577. // 右上角的角标提示信息
  578. badge: {
  579. type: [String, Number, null],
  580. default: uni.$u.props.tabbarItem.badge
  581. },
  582. // 是否显示圆点,将会覆盖badge参数
  583. dot: {
  584. type: Boolean,
  585. default: uni.$u.props.tabbarItem.dot
  586. },
  587. // 描述文本
  588. text: {
  589. type: String,
  590. default: uni.$u.props.tabbarItem.text
  591. },
  592. // 控制徽标的位置,对象或者字符串形式,可以设置top和right属性
  593. badgeStyle: {
  594. type: [Object, String],
  595. default: uni.$u.props.tabbarItem.badgeStyle
  596. }
  597. }
  598. };
  599. exports.default = _default;
  600. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  601. /***/ }),
  602. /***/ 1059:
  603. /*!***************************************************************************!*\
  604. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-toolbar/props.js ***!
  605. \***************************************************************************/
  606. /*! no static exports found */
  607. /***/ (function(module, exports, __webpack_require__) {
  608. "use strict";
  609. /* WEBPACK VAR INJECTION */(function(uni) {
  610. Object.defineProperty(exports, "__esModule", {
  611. value: true
  612. });
  613. exports.default = void 0;
  614. var _default = {
  615. props: {
  616. // 是否展示工具条
  617. show: {
  618. type: Boolean,
  619. default: uni.$u.props.toolbar.show
  620. },
  621. // 取消按钮的文字
  622. cancelText: {
  623. type: String,
  624. default: uni.$u.props.toolbar.cancelText
  625. },
  626. // 确认按钮的文字
  627. confirmText: {
  628. type: String,
  629. default: uni.$u.props.toolbar.confirmText
  630. },
  631. // 取消按钮的颜色
  632. cancelColor: {
  633. type: String,
  634. default: uni.$u.props.toolbar.cancelColor
  635. },
  636. // 确认按钮的颜色
  637. confirmColor: {
  638. type: String,
  639. default: uni.$u.props.toolbar.confirmColor
  640. },
  641. // 标题文字
  642. title: {
  643. type: String,
  644. default: uni.$u.props.toolbar.title
  645. }
  646. }
  647. };
  648. exports.default = _default;
  649. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  650. /***/ }),
  651. /***/ 106:
  652. /*!*******************************************************************************!*\
  653. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/lineProgress.js ***!
  654. \*******************************************************************************/
  655. /*! no static exports found */
  656. /***/ (function(module, exports, __webpack_require__) {
  657. "use strict";
  658. Object.defineProperty(exports, "__esModule", {
  659. value: true
  660. });
  661. exports.default = void 0;
  662. /*
  663. * @Author : LQ
  664. * @Description :
  665. * @version : 1.0
  666. * @Date : 2021-08-20 16:44:21
  667. * @LastAuthor : LQ
  668. * @lastTime : 2021-08-20 17:14:11
  669. * @FilePath : /u-view2.0/uview-ui/libs/config/props/lineProgress.js
  670. */
  671. var _default = {
  672. // lineProgress 组件
  673. lineProgress: {
  674. activeColor: '#19be6b',
  675. inactiveColor: '#ececec',
  676. percentage: 0,
  677. showText: true,
  678. height: 12
  679. }
  680. };
  681. exports.default = _default;
  682. /***/ }),
  683. /***/ 107:
  684. /*!***********************************************************************!*\
  685. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/link.js ***!
  686. \***********************************************************************/
  687. /*! no static exports found */
  688. /***/ (function(module, exports, __webpack_require__) {
  689. "use strict";
  690. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  691. Object.defineProperty(exports, "__esModule", {
  692. value: true
  693. });
  694. exports.default = void 0;
  695. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 66));
  696. /*
  697. * @Author : LQ
  698. * @Description :
  699. * @version : 1.0
  700. * @Date : 2021-08-20 16:44:21
  701. * @LastAuthor : LQ
  702. * @lastTime : 2021-08-20 17:45:36
  703. * @FilePath : /u-view2.0/uview-ui/libs/config/props/link.js
  704. */
  705. var color = _config.default.color;
  706. var _default = {
  707. // link超链接组件props参数
  708. link: {
  709. color: color['u-primary'],
  710. fontSize: 15,
  711. underLine: false,
  712. href: '',
  713. mpTips: '链接已复制,请在浏览器打开',
  714. lineColor: '',
  715. text: ''
  716. }
  717. };
  718. exports.default = _default;
  719. /***/ }),
  720. /***/ 1074:
  721. /*!**************************************************************************!*\
  722. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/util/async-validator.js ***!
  723. \**************************************************************************/
  724. /*! no static exports found */
  725. /***/ (function(module, exports, __webpack_require__) {
  726. "use strict";
  727. /* WEBPACK VAR INJECTION */(function(process) {
  728. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  729. Object.defineProperty(exports, "__esModule", {
  730. value: true
  731. });
  732. exports.default = void 0;
  733. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  734. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  735. 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; }
  736. 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; }
  737. function _extends() {
  738. _extends = Object.assign || function (target) {
  739. for (var i = 1; i < arguments.length; i++) {
  740. var source = arguments[i];
  741. for (var key in source) {
  742. if (Object.prototype.hasOwnProperty.call(source, key)) {
  743. target[key] = source[key];
  744. }
  745. }
  746. }
  747. return target;
  748. };
  749. return _extends.apply(this, arguments);
  750. }
  751. /* eslint no-console:0 */
  752. var formatRegExp = /%[sdj%]/g;
  753. var warning = function warning() {}; // don't print warning message when in production env or node runtime
  754. if (typeof process !== 'undefined' && Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"wx","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}) && "development" !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {
  755. warning = function warning(type, errors) {
  756. if (typeof console !== 'undefined' && console.warn) {
  757. if (errors.every(function (e) {
  758. return typeof e === 'string';
  759. })) {
  760. console.warn(type, errors);
  761. }
  762. }
  763. };
  764. }
  765. function convertFieldsError(errors) {
  766. if (!errors || !errors.length) return null;
  767. var fields = {};
  768. errors.forEach(function (error) {
  769. var field = error.field;
  770. fields[field] = fields[field] || [];
  771. fields[field].push(error);
  772. });
  773. return fields;
  774. }
  775. function format() {
  776. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  777. args[_key] = arguments[_key];
  778. }
  779. var i = 1;
  780. var f = args[0];
  781. var len = args.length;
  782. if (typeof f === 'function') {
  783. return f.apply(null, args.slice(1));
  784. }
  785. if (typeof f === 'string') {
  786. var str = String(f).replace(formatRegExp, function (x) {
  787. if (x === '%%') {
  788. return '%';
  789. }
  790. if (i >= len) {
  791. return x;
  792. }
  793. switch (x) {
  794. case '%s':
  795. return String(args[i++]);
  796. case '%d':
  797. return Number(args[i++]);
  798. case '%j':
  799. try {
  800. return JSON.stringify(args[i++]);
  801. } catch (_) {
  802. return '[Circular]';
  803. }
  804. break;
  805. default:
  806. return x;
  807. }
  808. });
  809. for (var arg = args[i]; i < len; arg = args[++i]) {
  810. str += " ".concat(arg);
  811. }
  812. return str;
  813. }
  814. return f;
  815. }
  816. function isNativeStringType(type) {
  817. return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern';
  818. }
  819. function isEmptyValue(value, type) {
  820. if (value === undefined || value === null) {
  821. return true;
  822. }
  823. if (type === 'array' && Array.isArray(value) && !value.length) {
  824. return true;
  825. }
  826. if (isNativeStringType(type) && typeof value === 'string' && !value) {
  827. return true;
  828. }
  829. return false;
  830. }
  831. function asyncParallelArray(arr, func, callback) {
  832. var results = [];
  833. var total = 0;
  834. var arrLength = arr.length;
  835. function count(errors) {
  836. results.push.apply(results, errors);
  837. total++;
  838. if (total === arrLength) {
  839. callback(results);
  840. }
  841. }
  842. arr.forEach(function (a) {
  843. func(a, count);
  844. });
  845. }
  846. function asyncSerialArray(arr, func, callback) {
  847. var index = 0;
  848. var arrLength = arr.length;
  849. function next(errors) {
  850. if (errors && errors.length) {
  851. callback(errors);
  852. return;
  853. }
  854. var original = index;
  855. index += 1;
  856. if (original < arrLength) {
  857. func(arr[original], next);
  858. } else {
  859. callback([]);
  860. }
  861. }
  862. next([]);
  863. }
  864. function flattenObjArr(objArr) {
  865. var ret = [];
  866. Object.keys(objArr).forEach(function (k) {
  867. ret.push.apply(ret, objArr[k]);
  868. });
  869. return ret;
  870. }
  871. function asyncMap(objArr, option, func, callback) {
  872. if (option.first) {
  873. var _pending = new Promise(function (resolve, reject) {
  874. var next = function next(errors) {
  875. callback(errors);
  876. return errors.length ? reject({
  877. errors: errors,
  878. fields: convertFieldsError(errors)
  879. }) : resolve();
  880. };
  881. var flattenArr = flattenObjArr(objArr);
  882. asyncSerialArray(flattenArr, func, next);
  883. });
  884. _pending.catch(function (e) {
  885. return e;
  886. });
  887. return _pending;
  888. }
  889. var firstFields = option.firstFields || [];
  890. if (firstFields === true) {
  891. firstFields = Object.keys(objArr);
  892. }
  893. var objArrKeys = Object.keys(objArr);
  894. var objArrLength = objArrKeys.length;
  895. var total = 0;
  896. var results = [];
  897. var pending = new Promise(function (resolve, reject) {
  898. var next = function next(errors) {
  899. results.push.apply(results, errors);
  900. total++;
  901. if (total === objArrLength) {
  902. callback(results);
  903. return results.length ? reject({
  904. errors: results,
  905. fields: convertFieldsError(results)
  906. }) : resolve();
  907. }
  908. };
  909. if (!objArrKeys.length) {
  910. callback(results);
  911. resolve();
  912. }
  913. objArrKeys.forEach(function (key) {
  914. var arr = objArr[key];
  915. if (firstFields.indexOf(key) !== -1) {
  916. asyncSerialArray(arr, func, next);
  917. } else {
  918. asyncParallelArray(arr, func, next);
  919. }
  920. });
  921. });
  922. pending.catch(function (e) {
  923. return e;
  924. });
  925. return pending;
  926. }
  927. function complementError(rule) {
  928. return function (oe) {
  929. if (oe && oe.message) {
  930. oe.field = oe.field || rule.fullField;
  931. return oe;
  932. }
  933. return {
  934. message: typeof oe === 'function' ? oe() : oe,
  935. field: oe.field || rule.fullField
  936. };
  937. };
  938. }
  939. function deepMerge(target, source) {
  940. if (source) {
  941. for (var s in source) {
  942. if (source.hasOwnProperty(s)) {
  943. var value = source[s];
  944. if ((0, _typeof2.default)(value) === 'object' && (0, _typeof2.default)(target[s]) === 'object') {
  945. target[s] = _objectSpread(_objectSpread({}, target[s]), value);
  946. } else {
  947. target[s] = value;
  948. }
  949. }
  950. }
  951. }
  952. return target;
  953. }
  954. /**
  955. * Rule for validating required fields.
  956. *
  957. * @param rule The validation rule.
  958. * @param value The value of the field on the source object.
  959. * @param source The source object being validated.
  960. * @param errors An array of errors that this rule may add
  961. * validation errors to.
  962. * @param options The validation options.
  963. * @param options.messages The validation messages.
  964. */
  965. function required(rule, value, source, errors, options, type) {
  966. if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) {
  967. errors.push(format(options.messages.required, rule.fullField));
  968. }
  969. }
  970. /**
  971. * Rule for validating whitespace.
  972. *
  973. * @param rule The validation rule.
  974. * @param value The value of the field on the source object.
  975. * @param source The source object being validated.
  976. * @param errors An array of errors that this rule may add
  977. * validation errors to.
  978. * @param options The validation options.
  979. * @param options.messages The validation messages.
  980. */
  981. function whitespace(rule, value, source, errors, options) {
  982. if (/^\s+$/.test(value) || value === '') {
  983. errors.push(format(options.messages.whitespace, rule.fullField));
  984. }
  985. }
  986. /* eslint max-len:0 */
  987. var pattern = {
  988. // http://emailregex.com/
  989. 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,}))$/,
  990. 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'),
  991. hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
  992. };
  993. var types = {
  994. integer: function integer(value) {
  995. return /^(-)?\d+$/.test(value);
  996. },
  997. float: function float(value) {
  998. return /^(-)?\d+(\.\d+)?$/.test(value);
  999. },
  1000. array: function array(value) {
  1001. return Array.isArray(value);
  1002. },
  1003. regexp: function regexp(value) {
  1004. if (value instanceof RegExp) {
  1005. return true;
  1006. }
  1007. try {
  1008. return !!new RegExp(value);
  1009. } catch (e) {
  1010. return false;
  1011. }
  1012. },
  1013. date: function date(value) {
  1014. return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function';
  1015. },
  1016. number: function number(value) {
  1017. if (isNaN(value)) {
  1018. return false;
  1019. }
  1020. // 修改源码,将字符串数值先转为数值
  1021. return typeof +value === 'number';
  1022. },
  1023. object: function object(value) {
  1024. return (0, _typeof2.default)(value) === 'object' && !types.array(value);
  1025. },
  1026. method: function method(value) {
  1027. return typeof value === 'function';
  1028. },
  1029. email: function email(value) {
  1030. return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
  1031. },
  1032. url: function url(value) {
  1033. return typeof value === 'string' && !!value.match(pattern.url);
  1034. },
  1035. hex: function hex(value) {
  1036. return typeof value === 'string' && !!value.match(pattern.hex);
  1037. }
  1038. };
  1039. /**
  1040. * Rule for validating the type of a value.
  1041. *
  1042. * @param rule The validation rule.
  1043. * @param value The value of the field on the source object.
  1044. * @param source The source object being validated.
  1045. * @param errors An array of errors that this rule may add
  1046. * validation errors to.
  1047. * @param options The validation options.
  1048. * @param options.messages The validation messages.
  1049. */
  1050. function type(rule, value, source, errors, options) {
  1051. if (rule.required && value === undefined) {
  1052. required(rule, value, source, errors, options);
  1053. return;
  1054. }
  1055. var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];
  1056. var ruleType = rule.type;
  1057. if (custom.indexOf(ruleType) > -1) {
  1058. if (!types[ruleType](value)) {
  1059. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  1060. } // straight typeof check
  1061. } else if (ruleType && (0, _typeof2.default)(value) !== rule.type) {
  1062. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  1063. }
  1064. }
  1065. /**
  1066. * Rule for validating minimum and maximum allowed values.
  1067. *
  1068. * @param rule The validation rule.
  1069. * @param value The value of the field on the source object.
  1070. * @param source The source object being validated.
  1071. * @param errors An array of errors that this rule may add
  1072. * validation errors to.
  1073. * @param options The validation options.
  1074. * @param options.messages The validation messages.
  1075. */
  1076. function range(rule, value, source, errors, options) {
  1077. var len = typeof rule.len === 'number';
  1078. var min = typeof rule.min === 'number';
  1079. var max = typeof rule.max === 'number'; // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane)
  1080. var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
  1081. var val = value;
  1082. var key = null;
  1083. var num = typeof value === 'number';
  1084. var str = typeof value === 'string';
  1085. var arr = Array.isArray(value);
  1086. if (num) {
  1087. key = 'number';
  1088. } else if (str) {
  1089. key = 'string';
  1090. } else if (arr) {
  1091. key = 'array';
  1092. } // if the value is not of a supported type for range validation
  1093. // the validation rule rule should use the
  1094. // type property to also test for a particular type
  1095. if (!key) {
  1096. return false;
  1097. }
  1098. if (arr) {
  1099. val = value.length;
  1100. }
  1101. if (str) {
  1102. // 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3
  1103. val = value.replace(spRegexp, '_').length;
  1104. }
  1105. if (len) {
  1106. if (val !== rule.len) {
  1107. errors.push(format(options.messages[key].len, rule.fullField, rule.len));
  1108. }
  1109. } else if (min && !max && val < rule.min) {
  1110. errors.push(format(options.messages[key].min, rule.fullField, rule.min));
  1111. } else if (max && !min && val > rule.max) {
  1112. errors.push(format(options.messages[key].max, rule.fullField, rule.max));
  1113. } else if (min && max && (val < rule.min || val > rule.max)) {
  1114. errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));
  1115. }
  1116. }
  1117. var ENUM = 'enum';
  1118. /**
  1119. * Rule for validating a value exists in an enumerable list.
  1120. *
  1121. * @param rule The validation rule.
  1122. * @param value The value of the field on the source object.
  1123. * @param source The source object being validated.
  1124. * @param errors An array of errors that this rule may add
  1125. * validation errors to.
  1126. * @param options The validation options.
  1127. * @param options.messages The validation messages.
  1128. */
  1129. function enumerable(rule, value, source, errors, options) {
  1130. rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : [];
  1131. if (rule[ENUM].indexOf(value) === -1) {
  1132. errors.push(format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', ')));
  1133. }
  1134. }
  1135. /**
  1136. * Rule for validating a regular expression pattern.
  1137. *
  1138. * @param rule The validation rule.
  1139. * @param value The value of the field on the source object.
  1140. * @param source The source object being validated.
  1141. * @param errors An array of errors that this rule may add
  1142. * validation errors to.
  1143. * @param options The validation options.
  1144. * @param options.messages The validation messages.
  1145. */
  1146. function pattern$1(rule, value, source, errors, options) {
  1147. if (rule.pattern) {
  1148. if (rule.pattern instanceof RegExp) {
  1149. // if a RegExp instance is passed, reset `lastIndex` in case its `global`
  1150. // flag is accidentally set to `true`, which in a validation scenario
  1151. // is not necessary and the result might be misleading
  1152. rule.pattern.lastIndex = 0;
  1153. if (!rule.pattern.test(value)) {
  1154. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  1155. }
  1156. } else if (typeof rule.pattern === 'string') {
  1157. var _pattern = new RegExp(rule.pattern);
  1158. if (!_pattern.test(value)) {
  1159. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  1160. }
  1161. }
  1162. }
  1163. }
  1164. var rules = {
  1165. required: required,
  1166. whitespace: whitespace,
  1167. type: type,
  1168. range: range,
  1169. enum: enumerable,
  1170. pattern: pattern$1
  1171. };
  1172. /**
  1173. * Performs validation for string types.
  1174. *
  1175. * @param rule The validation rule.
  1176. * @param value The value of the field on the source object.
  1177. * @param callback The callback function.
  1178. * @param source The source object being validated.
  1179. * @param options The validation options.
  1180. * @param options.messages The validation messages.
  1181. */
  1182. function string(rule, value, callback, source, options) {
  1183. var errors = [];
  1184. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  1185. if (validate) {
  1186. if (isEmptyValue(value, 'string') && !rule.required) {
  1187. return callback();
  1188. }
  1189. rules.required(rule, value, source, errors, options, 'string');
  1190. if (!isEmptyValue(value, 'string')) {
  1191. rules.type(rule, value, source, errors, options);
  1192. rules.range(rule, value, source, errors, options);
  1193. rules.pattern(rule, value, source, errors, options);
  1194. if (rule.whitespace === true) {
  1195. rules.whitespace(rule, value, source, errors, options);
  1196. }
  1197. }
  1198. }
  1199. callback(errors);
  1200. }
  1201. /**
  1202. * Validates a function.
  1203. *
  1204. * @param rule The validation rule.
  1205. * @param value The value of the field on the source object.
  1206. * @param callback The callback function.
  1207. * @param source The source object being validated.
  1208. * @param options The validation options.
  1209. * @param options.messages The validation messages.
  1210. */
  1211. function method(rule, value, callback, source, options) {
  1212. var errors = [];
  1213. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  1214. if (validate) {
  1215. if (isEmptyValue(value) && !rule.required) {
  1216. return callback();
  1217. }
  1218. rules.required(rule, value, source, errors, options);
  1219. if (value !== undefined) {
  1220. rules.type(rule, value, source, errors, options);
  1221. }
  1222. }
  1223. callback(errors);
  1224. }
  1225. /**
  1226. * Validates a number.
  1227. *
  1228. * @param rule The validation rule.
  1229. * @param value The value of the field on the source object.
  1230. * @param callback The callback function.
  1231. * @param source The source object being validated.
  1232. * @param options The validation options.
  1233. * @param options.messages The validation messages.
  1234. */
  1235. function number(rule, value, callback, source, options) {
  1236. var errors = [];
  1237. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  1238. if (validate) {
  1239. if (value === '') {
  1240. value = undefined;
  1241. }
  1242. if (isEmptyValue(value) && !rule.required) {
  1243. return callback();
  1244. }
  1245. rules.required(rule, value, source, errors, options);
  1246. if (value !== undefined) {
  1247. rules.type(rule, value, source, errors, options);
  1248. rules.range(rule, value, source, errors, options);
  1249. }
  1250. }
  1251. callback(errors);
  1252. }
  1253. /**
  1254. * Validates a boolean.
  1255. *
  1256. * @param rule The validation rule.
  1257. * @param value The value of the field on the source object.
  1258. * @param callback The callback function.
  1259. * @param source The source object being validated.
  1260. * @param options The validation options.
  1261. * @param options.messages The validation messages.
  1262. */
  1263. function _boolean(rule, value, callback, source, options) {
  1264. var errors = [];
  1265. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  1266. if (validate) {
  1267. if (isEmptyValue(value) && !rule.required) {
  1268. return callback();
  1269. }
  1270. rules.required(rule, value, source, errors, options);
  1271. if (value !== undefined) {
  1272. rules.type(rule, value, source, errors, options);
  1273. }
  1274. }
  1275. callback(errors);
  1276. }
  1277. /**
  1278. * Validates the regular expression type.
  1279. *
  1280. * @param rule The validation rule.
  1281. * @param value The value of the field on the source object.
  1282. * @param callback The callback function.
  1283. * @param source The source object being validated.
  1284. * @param options The validation options.
  1285. * @param options.messages The validation messages.
  1286. */
  1287. function regexp(rule, value, callback, source, options) {
  1288. var errors = [];
  1289. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  1290. if (validate) {
  1291. if (isEmptyValue(value) && !rule.required) {
  1292. return callback();
  1293. }
  1294. rules.required(rule, value, source, errors, options);
  1295. if (!isEmptyValue(value)) {
  1296. rules.type(rule, value, source, errors, options);
  1297. }
  1298. }
  1299. callback(errors);
  1300. }
  1301. /**
  1302. * Validates a number is an integer.
  1303. *
  1304. * @param rule The validation rule.
  1305. * @param value The value of the field on the source object.
  1306. * @param callback The callback function.
  1307. * @param source The source object being validated.
  1308. * @param options The validation options.
  1309. * @param options.messages The validation messages.
  1310. */
  1311. function integer(rule, value, callback, source, options) {
  1312. var errors = [];
  1313. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  1314. if (validate) {
  1315. if (isEmptyValue(value) && !rule.required) {
  1316. return callback();
  1317. }
  1318. rules.required(rule, value, source, errors, options);
  1319. if (value !== undefined) {
  1320. rules.type(rule, value, source, errors, options);
  1321. rules.range(rule, value, source, errors, options);
  1322. }
  1323. }
  1324. callback(errors);
  1325. }
  1326. /**
  1327. * Validates a number is a floating point number.
  1328. *
  1329. * @param rule The validation rule.
  1330. * @param value The value of the field on the source object.
  1331. * @param callback The callback function.
  1332. * @param source The source object being validated.
  1333. * @param options The validation options.
  1334. * @param options.messages The validation messages.
  1335. */
  1336. function floatFn(rule, value, callback, source, options) {
  1337. var errors = [];
  1338. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  1339. if (validate) {
  1340. if (isEmptyValue(value) && !rule.required) {
  1341. return callback();
  1342. }
  1343. rules.required(rule, value, source, errors, options);
  1344. if (value !== undefined) {
  1345. rules.type(rule, value, source, errors, options);
  1346. rules.range(rule, value, source, errors, options);
  1347. }
  1348. }
  1349. callback(errors);
  1350. }
  1351. /**
  1352. * Validates an array.
  1353. *
  1354. * @param rule The validation rule.
  1355. * @param value The value of the field on the source object.
  1356. * @param callback The callback function.
  1357. * @param source The source object being validated.
  1358. * @param options The validation options.
  1359. * @param options.messages The validation messages.
  1360. */
  1361. function array(rule, value, callback, source, options) {
  1362. var errors = [];
  1363. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  1364. if (validate) {
  1365. if (isEmptyValue(value, 'array') && !rule.required) {
  1366. return callback();
  1367. }
  1368. rules.required(rule, value, source, errors, options, 'array');
  1369. if (!isEmptyValue(value, 'array')) {
  1370. rules.type(rule, value, source, errors, options);
  1371. rules.range(rule, value, source, errors, options);
  1372. }
  1373. }
  1374. callback(errors);
  1375. }
  1376. /**
  1377. * Validates an object.
  1378. *
  1379. * @param rule The validation rule.
  1380. * @param value The value of the field on the source object.
  1381. * @param callback The callback function.
  1382. * @param source The source object being validated.
  1383. * @param options The validation options.
  1384. * @param options.messages The validation messages.
  1385. */
  1386. function object(rule, value, callback, source, options) {
  1387. var errors = [];
  1388. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  1389. if (validate) {
  1390. if (isEmptyValue(value) && !rule.required) {
  1391. return callback();
  1392. }
  1393. rules.required(rule, value, source, errors, options);
  1394. if (value !== undefined) {
  1395. rules.type(rule, value, source, errors, options);
  1396. }
  1397. }
  1398. callback(errors);
  1399. }
  1400. var ENUM$1 = 'enum';
  1401. /**
  1402. * Validates an enumerable list.
  1403. *
  1404. * @param rule The validation rule.
  1405. * @param value The value of the field on the source object.
  1406. * @param callback The callback function.
  1407. * @param source The source object being validated.
  1408. * @param options The validation options.
  1409. * @param options.messages The validation messages.
  1410. */
  1411. function enumerable$1(rule, value, callback, source, options) {
  1412. var errors = [];
  1413. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  1414. if (validate) {
  1415. if (isEmptyValue(value) && !rule.required) {
  1416. return callback();
  1417. }
  1418. rules.required(rule, value, source, errors, options);
  1419. if (value !== undefined) {
  1420. rules[ENUM$1](rule, value, source, errors, options);
  1421. }
  1422. }
  1423. callback(errors);
  1424. }
  1425. /**
  1426. * Validates a regular expression pattern.
  1427. *
  1428. * Performs validation when a rule only contains
  1429. * a pattern property but is not declared as a string type.
  1430. *
  1431. * @param rule The validation rule.
  1432. * @param value The value of the field on the source object.
  1433. * @param callback The callback function.
  1434. * @param source The source object being validated.
  1435. * @param options The validation options.
  1436. * @param options.messages The validation messages.
  1437. */
  1438. function pattern$2(rule, value, callback, source, options) {
  1439. var errors = [];
  1440. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  1441. if (validate) {
  1442. if (isEmptyValue(value, 'string') && !rule.required) {
  1443. return callback();
  1444. }
  1445. rules.required(rule, value, source, errors, options);
  1446. if (!isEmptyValue(value, 'string')) {
  1447. rules.pattern(rule, value, source, errors, options);
  1448. }
  1449. }
  1450. callback(errors);
  1451. }
  1452. function date(rule, value, callback, source, options) {
  1453. var errors = [];
  1454. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  1455. if (validate) {
  1456. if (isEmptyValue(value) && !rule.required) {
  1457. return callback();
  1458. }
  1459. rules.required(rule, value, source, errors, options);
  1460. if (!isEmptyValue(value)) {
  1461. var dateObject;
  1462. if (typeof value === 'number') {
  1463. dateObject = new Date(value);
  1464. } else {
  1465. dateObject = value;
  1466. }
  1467. rules.type(rule, dateObject, source, errors, options);
  1468. if (dateObject) {
  1469. rules.range(rule, dateObject.getTime(), source, errors, options);
  1470. }
  1471. }
  1472. }
  1473. callback(errors);
  1474. }
  1475. function required$1(rule, value, callback, source, options) {
  1476. var errors = [];
  1477. var type = Array.isArray(value) ? 'array' : (0, _typeof2.default)(value);
  1478. rules.required(rule, value, source, errors, options, type);
  1479. callback(errors);
  1480. }
  1481. function type$1(rule, value, callback, source, options) {
  1482. var ruleType = rule.type;
  1483. var errors = [];
  1484. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  1485. if (validate) {
  1486. if (isEmptyValue(value, ruleType) && !rule.required) {
  1487. return callback();
  1488. }
  1489. rules.required(rule, value, source, errors, options, ruleType);
  1490. if (!isEmptyValue(value, ruleType)) {
  1491. rules.type(rule, value, source, errors, options);
  1492. }
  1493. }
  1494. callback(errors);
  1495. }
  1496. /**
  1497. * Performs validation for any type.
  1498. *
  1499. * @param rule The validation rule.
  1500. * @param value The value of the field on the source object.
  1501. * @param callback The callback function.
  1502. * @param source The source object being validated.
  1503. * @param options The validation options.
  1504. * @param options.messages The validation messages.
  1505. */
  1506. function any(rule, value, callback, source, options) {
  1507. var errors = [];
  1508. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  1509. if (validate) {
  1510. if (isEmptyValue(value) && !rule.required) {
  1511. return callback();
  1512. }
  1513. rules.required(rule, value, source, errors, options);
  1514. }
  1515. callback(errors);
  1516. }
  1517. var validators = {
  1518. string: string,
  1519. method: method,
  1520. number: number,
  1521. boolean: _boolean,
  1522. regexp: regexp,
  1523. integer: integer,
  1524. float: floatFn,
  1525. array: array,
  1526. object: object,
  1527. enum: enumerable$1,
  1528. pattern: pattern$2,
  1529. date: date,
  1530. url: type$1,
  1531. hex: type$1,
  1532. email: type$1,
  1533. required: required$1,
  1534. any: any
  1535. };
  1536. function newMessages() {
  1537. return {
  1538. default: 'Validation error on field %s',
  1539. required: '%s is required',
  1540. enum: '%s must be one of %s',
  1541. whitespace: '%s cannot be empty',
  1542. date: {
  1543. format: '%s date %s is invalid for format %s',
  1544. parse: '%s date could not be parsed, %s is invalid ',
  1545. invalid: '%s date %s is invalid'
  1546. },
  1547. types: {
  1548. string: '%s is not a %s',
  1549. method: '%s is not a %s (function)',
  1550. array: '%s is not an %s',
  1551. object: '%s is not an %s',
  1552. number: '%s is not a %s',
  1553. date: '%s is not a %s',
  1554. boolean: '%s is not a %s',
  1555. integer: '%s is not an %s',
  1556. float: '%s is not a %s',
  1557. regexp: '%s is not a valid %s',
  1558. email: '%s is not a valid %s',
  1559. url: '%s is not a valid %s',
  1560. hex: '%s is not a valid %s'
  1561. },
  1562. string: {
  1563. len: '%s must be exactly %s characters',
  1564. min: '%s must be at least %s characters',
  1565. max: '%s cannot be longer than %s characters',
  1566. range: '%s must be between %s and %s characters'
  1567. },
  1568. number: {
  1569. len: '%s must equal %s',
  1570. min: '%s cannot be less than %s',
  1571. max: '%s cannot be greater than %s',
  1572. range: '%s must be between %s and %s'
  1573. },
  1574. array: {
  1575. len: '%s must be exactly %s in length',
  1576. min: '%s cannot be less than %s in length',
  1577. max: '%s cannot be greater than %s in length',
  1578. range: '%s must be between %s and %s in length'
  1579. },
  1580. pattern: {
  1581. mismatch: '%s value %s does not match pattern %s'
  1582. },
  1583. clone: function clone() {
  1584. var cloned = JSON.parse(JSON.stringify(this));
  1585. cloned.clone = this.clone;
  1586. return cloned;
  1587. }
  1588. };
  1589. }
  1590. var messages = newMessages();
  1591. /**
  1592. * Encapsulates a validation schema.
  1593. *
  1594. * @param descriptor An object declaring validation rules
  1595. * for this schema.
  1596. */
  1597. function Schema(descriptor) {
  1598. this.rules = null;
  1599. this._messages = messages;
  1600. this.define(descriptor);
  1601. }
  1602. Schema.prototype = {
  1603. messages: function messages(_messages) {
  1604. if (_messages) {
  1605. this._messages = deepMerge(newMessages(), _messages);
  1606. }
  1607. return this._messages;
  1608. },
  1609. define: function define(rules) {
  1610. if (!rules) {
  1611. throw new Error('Cannot configure a schema with no rules');
  1612. }
  1613. if ((0, _typeof2.default)(rules) !== 'object' || Array.isArray(rules)) {
  1614. throw new Error('Rules must be an object');
  1615. }
  1616. this.rules = {};
  1617. var z;
  1618. var item;
  1619. for (z in rules) {
  1620. if (rules.hasOwnProperty(z)) {
  1621. item = rules[z];
  1622. this.rules[z] = Array.isArray(item) ? item : [item];
  1623. }
  1624. }
  1625. },
  1626. validate: function validate(source_, o, oc) {
  1627. var _this = this;
  1628. if (o === void 0) {
  1629. o = {};
  1630. }
  1631. if (oc === void 0) {
  1632. oc = function oc() {};
  1633. }
  1634. var source = source_;
  1635. var options = o;
  1636. var callback = oc;
  1637. if (typeof options === 'function') {
  1638. callback = options;
  1639. options = {};
  1640. }
  1641. if (!this.rules || Object.keys(this.rules).length === 0) {
  1642. if (callback) {
  1643. callback();
  1644. }
  1645. return Promise.resolve();
  1646. }
  1647. function complete(results) {
  1648. var i;
  1649. var errors = [];
  1650. var fields = {};
  1651. function add(e) {
  1652. if (Array.isArray(e)) {
  1653. var _errors;
  1654. errors = (_errors = errors).concat.apply(_errors, e);
  1655. } else {
  1656. errors.push(e);
  1657. }
  1658. }
  1659. for (i = 0; i < results.length; i++) {
  1660. add(results[i]);
  1661. }
  1662. if (!errors.length) {
  1663. errors = null;
  1664. fields = null;
  1665. } else {
  1666. fields = convertFieldsError(errors);
  1667. }
  1668. callback(errors, fields);
  1669. }
  1670. if (options.messages) {
  1671. var messages$1 = this.messages();
  1672. if (messages$1 === messages) {
  1673. messages$1 = newMessages();
  1674. }
  1675. deepMerge(messages$1, options.messages);
  1676. options.messages = messages$1;
  1677. } else {
  1678. options.messages = this.messages();
  1679. }
  1680. var arr;
  1681. var value;
  1682. var series = {};
  1683. var keys = options.keys || Object.keys(this.rules);
  1684. keys.forEach(function (z) {
  1685. arr = _this.rules[z];
  1686. value = source[z];
  1687. arr.forEach(function (r) {
  1688. var rule = r;
  1689. if (typeof rule.transform === 'function') {
  1690. if (source === source_) {
  1691. source = _objectSpread({}, source);
  1692. }
  1693. value = source[z] = rule.transform(value);
  1694. }
  1695. if (typeof rule === 'function') {
  1696. rule = {
  1697. validator: rule
  1698. };
  1699. } else {
  1700. rule = _objectSpread({}, rule);
  1701. }
  1702. rule.validator = _this.getValidationMethod(rule);
  1703. rule.field = z;
  1704. rule.fullField = rule.fullField || z;
  1705. rule.type = _this.getType(rule);
  1706. if (!rule.validator) {
  1707. return;
  1708. }
  1709. series[z] = series[z] || [];
  1710. series[z].push({
  1711. rule: rule,
  1712. value: value,
  1713. source: source,
  1714. field: z
  1715. });
  1716. });
  1717. });
  1718. var errorFields = {};
  1719. return asyncMap(series, options, function (data, doIt) {
  1720. var rule = data.rule;
  1721. var deep = (rule.type === 'object' || rule.type === 'array') && ((0, _typeof2.default)(rule.fields) === 'object' || (0, _typeof2.default)(rule.defaultField) === 'object');
  1722. deep = deep && (rule.required || !rule.required && data.value);
  1723. rule.field = data.field;
  1724. function addFullfield(key, schema) {
  1725. return _objectSpread(_objectSpread({}, schema), {}, {
  1726. fullField: "".concat(rule.fullField, ".").concat(key)
  1727. });
  1728. }
  1729. function cb(e) {
  1730. if (e === void 0) {
  1731. e = [];
  1732. }
  1733. var errors = e;
  1734. if (!Array.isArray(errors)) {
  1735. errors = [errors];
  1736. }
  1737. if (!options.suppressWarning && errors.length) {
  1738. Schema.warning('async-validator:', errors);
  1739. }
  1740. if (errors.length && rule.message) {
  1741. errors = [].concat(rule.message);
  1742. }
  1743. errors = errors.map(complementError(rule));
  1744. if (options.first && errors.length) {
  1745. errorFields[rule.field] = 1;
  1746. return doIt(errors);
  1747. }
  1748. if (!deep) {
  1749. doIt(errors);
  1750. } else {
  1751. // if rule is required but the target object
  1752. // does not exist fail at the rule level and don't
  1753. // go deeper
  1754. if (rule.required && !data.value) {
  1755. if (rule.message) {
  1756. errors = [].concat(rule.message).map(complementError(rule));
  1757. } else if (options.error) {
  1758. errors = [options.error(rule, format(options.messages.required, rule.field))];
  1759. } else {
  1760. errors = [];
  1761. }
  1762. return doIt(errors);
  1763. }
  1764. var fieldsSchema = {};
  1765. if (rule.defaultField) {
  1766. for (var k in data.value) {
  1767. if (data.value.hasOwnProperty(k)) {
  1768. fieldsSchema[k] = rule.defaultField;
  1769. }
  1770. }
  1771. }
  1772. fieldsSchema = _objectSpread(_objectSpread({}, fieldsSchema), data.rule.fields);
  1773. for (var f in fieldsSchema) {
  1774. if (fieldsSchema.hasOwnProperty(f)) {
  1775. var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]];
  1776. fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f));
  1777. }
  1778. }
  1779. var schema = new Schema(fieldsSchema);
  1780. schema.messages(options.messages);
  1781. if (data.rule.options) {
  1782. data.rule.options.messages = options.messages;
  1783. data.rule.options.error = options.error;
  1784. }
  1785. schema.validate(data.value, data.rule.options || options, function (errs) {
  1786. var finalErrors = [];
  1787. if (errors && errors.length) {
  1788. finalErrors.push.apply(finalErrors, errors);
  1789. }
  1790. if (errs && errs.length) {
  1791. finalErrors.push.apply(finalErrors, errs);
  1792. }
  1793. doIt(finalErrors.length ? finalErrors : null);
  1794. });
  1795. }
  1796. }
  1797. var res;
  1798. if (rule.asyncValidator) {
  1799. res = rule.asyncValidator(rule, data.value, cb, data.source, options);
  1800. } else if (rule.validator) {
  1801. res = rule.validator(rule, data.value, cb, data.source, options);
  1802. if (res === true) {
  1803. cb();
  1804. } else if (res === false) {
  1805. cb(rule.message || "".concat(rule.field, " fails"));
  1806. } else if (res instanceof Array) {
  1807. cb(res);
  1808. } else if (res instanceof Error) {
  1809. cb(res.message);
  1810. }
  1811. }
  1812. if (res && res.then) {
  1813. res.then(function () {
  1814. return cb();
  1815. }, function (e) {
  1816. return cb(e);
  1817. });
  1818. }
  1819. }, function (results) {
  1820. complete(results);
  1821. });
  1822. },
  1823. getType: function getType(rule) {
  1824. if (rule.type === undefined && rule.pattern instanceof RegExp) {
  1825. rule.type = 'pattern';
  1826. }
  1827. if (typeof rule.validator !== 'function' && rule.type && !validators.hasOwnProperty(rule.type)) {
  1828. throw new Error(format('Unknown rule type %s', rule.type));
  1829. }
  1830. return rule.type || 'string';
  1831. },
  1832. getValidationMethod: function getValidationMethod(rule) {
  1833. if (typeof rule.validator === 'function') {
  1834. return rule.validator;
  1835. }
  1836. var keys = Object.keys(rule);
  1837. var messageIndex = keys.indexOf('message');
  1838. if (messageIndex !== -1) {
  1839. keys.splice(messageIndex, 1);
  1840. }
  1841. if (keys.length === 1 && keys[0] === 'required') {
  1842. return validators.required;
  1843. }
  1844. return validators[this.getType(rule)] || false;
  1845. }
  1846. };
  1847. Schema.register = function register(type, validator) {
  1848. if (typeof validator !== 'function') {
  1849. throw new Error('Cannot register a validator by type, validator is not a function');
  1850. }
  1851. validators[type] = validator;
  1852. };
  1853. Schema.warning = warning;
  1854. Schema.messages = messages;
  1855. var _default = Schema; // # sourceMappingURL=index.js.map
  1856. exports.default = _default;
  1857. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../Application/HBuilderX.4.04.2024031519-alpha/HBuilderX/plugins/uniapp-cli/node_modules/node-libs-browser/mock/process.js */ 1075)))
  1858. /***/ }),
  1859. /***/ 1075:
  1860. /*!********************************************************!*\
  1861. !*** ./node_modules/node-libs-browser/mock/process.js ***!
  1862. \********************************************************/
  1863. /*! no static exports found */
  1864. /***/ (function(module, exports, __webpack_require__) {
  1865. exports.nextTick = function nextTick(fn) {
  1866. var args = Array.prototype.slice.call(arguments);
  1867. args.shift();
  1868. setTimeout(function () {
  1869. fn.apply(null, args);
  1870. }, 0);
  1871. };
  1872. exports.platform = exports.arch =
  1873. exports.execPath = exports.title = 'browser';
  1874. exports.pid = 1;
  1875. exports.browser = true;
  1876. exports.env = {};
  1877. exports.argv = [];
  1878. exports.binding = function (name) {
  1879. throw new Error('No such module. (Possibly not yet loaded)')
  1880. };
  1881. (function () {
  1882. var cwd = '/';
  1883. var path;
  1884. exports.cwd = function () { return cwd };
  1885. exports.chdir = function (dir) {
  1886. if (!path) path = __webpack_require__(/*! path */ 1076);
  1887. cwd = path.resolve(dir, cwd);
  1888. };
  1889. })();
  1890. exports.exit = exports.kill =
  1891. exports.umask = exports.dlopen =
  1892. exports.uptime = exports.memoryUsage =
  1893. exports.uvCounters = function() {};
  1894. exports.features = {};
  1895. /***/ }),
  1896. /***/ 1076:
  1897. /*!***********************************************!*\
  1898. !*** ./node_modules/path-browserify/index.js ***!
  1899. \***********************************************/
  1900. /*! no static exports found */
  1901. /***/ (function(module, exports, __webpack_require__) {
  1902. /* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
  1903. // backported and transplited with Babel, with backwards-compat fixes
  1904. // Copyright Joyent, Inc. and other Node contributors.
  1905. //
  1906. // Permission is hereby granted, free of charge, to any person obtaining a
  1907. // copy of this software and associated documentation files (the
  1908. // "Software"), to deal in the Software without restriction, including
  1909. // without limitation the rights to use, copy, modify, merge, publish,
  1910. // distribute, sublicense, and/or sell copies of the Software, and to permit
  1911. // persons to whom the Software is furnished to do so, subject to the
  1912. // following conditions:
  1913. //
  1914. // The above copyright notice and this permission notice shall be included
  1915. // in all copies or substantial portions of the Software.
  1916. //
  1917. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  1918. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  1919. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  1920. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  1921. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  1922. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  1923. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  1924. // resolves . and .. elements in a path array with directory names there
  1925. // must be no slashes, empty elements, or device names (c:\) in the array
  1926. // (so also no leading and trailing slashes - it does not distinguish
  1927. // relative and absolute paths)
  1928. function normalizeArray(parts, allowAboveRoot) {
  1929. // if the path tries to go above the root, `up` ends up > 0
  1930. var up = 0;
  1931. for (var i = parts.length - 1; i >= 0; i--) {
  1932. var last = parts[i];
  1933. if (last === '.') {
  1934. parts.splice(i, 1);
  1935. } else if (last === '..') {
  1936. parts.splice(i, 1);
  1937. up++;
  1938. } else if (up) {
  1939. parts.splice(i, 1);
  1940. up--;
  1941. }
  1942. }
  1943. // if the path is allowed to go above the root, restore leading ..s
  1944. if (allowAboveRoot) {
  1945. for (; up--; up) {
  1946. parts.unshift('..');
  1947. }
  1948. }
  1949. return parts;
  1950. }
  1951. // path.resolve([from ...], to)
  1952. // posix version
  1953. exports.resolve = function() {
  1954. var resolvedPath = '',
  1955. resolvedAbsolute = false;
  1956. for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
  1957. var path = (i >= 0) ? arguments[i] : process.cwd();
  1958. // Skip empty and invalid entries
  1959. if (typeof path !== 'string') {
  1960. throw new TypeError('Arguments to path.resolve must be strings');
  1961. } else if (!path) {
  1962. continue;
  1963. }
  1964. resolvedPath = path + '/' + resolvedPath;
  1965. resolvedAbsolute = path.charAt(0) === '/';
  1966. }
  1967. // At this point the path should be resolved to a full absolute path, but
  1968. // handle relative paths to be safe (might happen when process.cwd() fails)
  1969. // Normalize the path
  1970. resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
  1971. return !!p;
  1972. }), !resolvedAbsolute).join('/');
  1973. return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
  1974. };
  1975. // path.normalize(path)
  1976. // posix version
  1977. exports.normalize = function(path) {
  1978. var isAbsolute = exports.isAbsolute(path),
  1979. trailingSlash = substr(path, -1) === '/';
  1980. // Normalize the path
  1981. path = normalizeArray(filter(path.split('/'), function(p) {
  1982. return !!p;
  1983. }), !isAbsolute).join('/');
  1984. if (!path && !isAbsolute) {
  1985. path = '.';
  1986. }
  1987. if (path && trailingSlash) {
  1988. path += '/';
  1989. }
  1990. return (isAbsolute ? '/' : '') + path;
  1991. };
  1992. // posix version
  1993. exports.isAbsolute = function(path) {
  1994. return path.charAt(0) === '/';
  1995. };
  1996. // posix version
  1997. exports.join = function() {
  1998. var paths = Array.prototype.slice.call(arguments, 0);
  1999. return exports.normalize(filter(paths, function(p, index) {
  2000. if (typeof p !== 'string') {
  2001. throw new TypeError('Arguments to path.join must be strings');
  2002. }
  2003. return p;
  2004. }).join('/'));
  2005. };
  2006. // path.relative(from, to)
  2007. // posix version
  2008. exports.relative = function(from, to) {
  2009. from = exports.resolve(from).substr(1);
  2010. to = exports.resolve(to).substr(1);
  2011. function trim(arr) {
  2012. var start = 0;
  2013. for (; start < arr.length; start++) {
  2014. if (arr[start] !== '') break;
  2015. }
  2016. var end = arr.length - 1;
  2017. for (; end >= 0; end--) {
  2018. if (arr[end] !== '') break;
  2019. }
  2020. if (start > end) return [];
  2021. return arr.slice(start, end - start + 1);
  2022. }
  2023. var fromParts = trim(from.split('/'));
  2024. var toParts = trim(to.split('/'));
  2025. var length = Math.min(fromParts.length, toParts.length);
  2026. var samePartsLength = length;
  2027. for (var i = 0; i < length; i++) {
  2028. if (fromParts[i] !== toParts[i]) {
  2029. samePartsLength = i;
  2030. break;
  2031. }
  2032. }
  2033. var outputParts = [];
  2034. for (var i = samePartsLength; i < fromParts.length; i++) {
  2035. outputParts.push('..');
  2036. }
  2037. outputParts = outputParts.concat(toParts.slice(samePartsLength));
  2038. return outputParts.join('/');
  2039. };
  2040. exports.sep = '/';
  2041. exports.delimiter = ':';
  2042. exports.dirname = function (path) {
  2043. if (typeof path !== 'string') path = path + '';
  2044. if (path.length === 0) return '.';
  2045. var code = path.charCodeAt(0);
  2046. var hasRoot = code === 47 /*/*/;
  2047. var end = -1;
  2048. var matchedSlash = true;
  2049. for (var i = path.length - 1; i >= 1; --i) {
  2050. code = path.charCodeAt(i);
  2051. if (code === 47 /*/*/) {
  2052. if (!matchedSlash) {
  2053. end = i;
  2054. break;
  2055. }
  2056. } else {
  2057. // We saw the first non-path separator
  2058. matchedSlash = false;
  2059. }
  2060. }
  2061. if (end === -1) return hasRoot ? '/' : '.';
  2062. if (hasRoot && end === 1) {
  2063. // return '//';
  2064. // Backwards-compat fix:
  2065. return '/';
  2066. }
  2067. return path.slice(0, end);
  2068. };
  2069. function basename(path) {
  2070. if (typeof path !== 'string') path = path + '';
  2071. var start = 0;
  2072. var end = -1;
  2073. var matchedSlash = true;
  2074. var i;
  2075. for (i = path.length - 1; i >= 0; --i) {
  2076. if (path.charCodeAt(i) === 47 /*/*/) {
  2077. // If we reached a path separator that was not part of a set of path
  2078. // separators at the end of the string, stop now
  2079. if (!matchedSlash) {
  2080. start = i + 1;
  2081. break;
  2082. }
  2083. } else if (end === -1) {
  2084. // We saw the first non-path separator, mark this as the end of our
  2085. // path component
  2086. matchedSlash = false;
  2087. end = i + 1;
  2088. }
  2089. }
  2090. if (end === -1) return '';
  2091. return path.slice(start, end);
  2092. }
  2093. // Uses a mixed approach for backwards-compatibility, as ext behavior changed
  2094. // in new Node.js versions, so only basename() above is backported here
  2095. exports.basename = function (path, ext) {
  2096. var f = basename(path);
  2097. if (ext && f.substr(-1 * ext.length) === ext) {
  2098. f = f.substr(0, f.length - ext.length);
  2099. }
  2100. return f;
  2101. };
  2102. exports.extname = function (path) {
  2103. if (typeof path !== 'string') path = path + '';
  2104. var startDot = -1;
  2105. var startPart = 0;
  2106. var end = -1;
  2107. var matchedSlash = true;
  2108. // Track the state of characters (if any) we see before our first dot and
  2109. // after any path separator we find
  2110. var preDotState = 0;
  2111. for (var i = path.length - 1; i >= 0; --i) {
  2112. var code = path.charCodeAt(i);
  2113. if (code === 47 /*/*/) {
  2114. // If we reached a path separator that was not part of a set of path
  2115. // separators at the end of the string, stop now
  2116. if (!matchedSlash) {
  2117. startPart = i + 1;
  2118. break;
  2119. }
  2120. continue;
  2121. }
  2122. if (end === -1) {
  2123. // We saw the first non-path separator, mark this as the end of our
  2124. // extension
  2125. matchedSlash = false;
  2126. end = i + 1;
  2127. }
  2128. if (code === 46 /*.*/) {
  2129. // If this is our first dot, mark it as the start of our extension
  2130. if (startDot === -1)
  2131. startDot = i;
  2132. else if (preDotState !== 1)
  2133. preDotState = 1;
  2134. } else if (startDot !== -1) {
  2135. // We saw a non-dot and non-path separator before our dot, so we should
  2136. // have a good chance at having a non-empty extension
  2137. preDotState = -1;
  2138. }
  2139. }
  2140. if (startDot === -1 || end === -1 ||
  2141. // We saw a non-dot character immediately before the dot
  2142. preDotState === 0 ||
  2143. // The (right-most) trimmed path component is exactly '..'
  2144. preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
  2145. return '';
  2146. }
  2147. return path.slice(startDot, end);
  2148. };
  2149. function filter (xs, f) {
  2150. if (xs.filter) return xs.filter(f);
  2151. var res = [];
  2152. for (var i = 0; i < xs.length; i++) {
  2153. if (f(xs[i], i, xs)) res.push(xs[i]);
  2154. }
  2155. return res;
  2156. }
  2157. // String.prototype.substr - negative index don't work in IE8
  2158. var substr = 'ab'.substr(-1) === 'b'
  2159. ? function (str, start, len) { return str.substr(start, len) }
  2160. : function (str, start, len) {
  2161. if (start < 0) start = str.length + start;
  2162. return str.substr(start, len);
  2163. }
  2164. ;
  2165. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ 1075)))
  2166. /***/ }),
  2167. /***/ 108:
  2168. /*!***********************************************************************!*\
  2169. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/list.js ***!
  2170. \***********************************************************************/
  2171. /*! no static exports found */
  2172. /***/ (function(module, exports, __webpack_require__) {
  2173. "use strict";
  2174. Object.defineProperty(exports, "__esModule", {
  2175. value: true
  2176. });
  2177. exports.default = void 0;
  2178. /*
  2179. * @Author : LQ
  2180. * @Description :
  2181. * @version : 1.0
  2182. * @Date : 2021-08-20 16:44:21
  2183. * @LastAuthor : LQ
  2184. * @lastTime : 2021-08-20 17:14:53
  2185. * @FilePath : /u-view2.0/uview-ui/libs/config/props/list.js
  2186. */
  2187. var _default = {
  2188. // list 组件
  2189. list: {
  2190. showScrollbar: false,
  2191. lowerThreshold: 50,
  2192. upperThreshold: 0,
  2193. scrollTop: 0,
  2194. offsetAccuracy: 10,
  2195. enableFlex: false,
  2196. pagingEnabled: false,
  2197. scrollable: true,
  2198. scrollIntoView: '',
  2199. scrollWithAnimation: false,
  2200. enableBackToTop: false,
  2201. height: 0,
  2202. width: 0,
  2203. preLoadScreen: 1
  2204. }
  2205. };
  2206. exports.default = _default;
  2207. /***/ }),
  2208. /***/ 1082:
  2209. /*!************************************************************************!*\
  2210. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-line/props.js ***!
  2211. \************************************************************************/
  2212. /*! no static exports found */
  2213. /***/ (function(module, exports, __webpack_require__) {
  2214. "use strict";
  2215. /* WEBPACK VAR INJECTION */(function(uni) {
  2216. Object.defineProperty(exports, "__esModule", {
  2217. value: true
  2218. });
  2219. exports.default = void 0;
  2220. var _default = {
  2221. props: {
  2222. color: {
  2223. type: String,
  2224. default: uni.$u.props.line.color
  2225. },
  2226. // 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等
  2227. length: {
  2228. type: [String, Number],
  2229. default: uni.$u.props.line.length
  2230. },
  2231. // 线条方向,col-竖向,row-横向
  2232. direction: {
  2233. type: String,
  2234. default: uni.$u.props.line.direction
  2235. },
  2236. // 是否显示细边框
  2237. hairline: {
  2238. type: Boolean,
  2239. default: uni.$u.props.line.hairline
  2240. },
  2241. // 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
  2242. margin: {
  2243. type: [String, Number],
  2244. default: uni.$u.props.line.margin
  2245. },
  2246. // 是否虚线,true-虚线,false-实线
  2247. dashed: {
  2248. type: Boolean,
  2249. default: uni.$u.props.line.dashed
  2250. }
  2251. }
  2252. };
  2253. exports.default = _default;
  2254. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  2255. /***/ }),
  2256. /***/ 109:
  2257. /*!***************************************************************************!*\
  2258. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/listItem.js ***!
  2259. \***************************************************************************/
  2260. /*! no static exports found */
  2261. /***/ (function(module, exports, __webpack_require__) {
  2262. "use strict";
  2263. Object.defineProperty(exports, "__esModule", {
  2264. value: true
  2265. });
  2266. exports.default = void 0;
  2267. /*
  2268. * @Author : LQ
  2269. * @Description :
  2270. * @version : 1.0
  2271. * @Date : 2021-08-20 16:44:21
  2272. * @LastAuthor : LQ
  2273. * @lastTime : 2021-08-20 17:15:40
  2274. * @FilePath : /u-view2.0/uview-ui/libs/config/props/listItem.js
  2275. */
  2276. var _default = {
  2277. // listItem 组件
  2278. listItem: {
  2279. anchor: ''
  2280. }
  2281. };
  2282. exports.default = _default;
  2283. /***/ }),
  2284. /***/ 1097:
  2285. /*!*************************************************************************!*\
  2286. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-steps/props.js ***!
  2287. \*************************************************************************/
  2288. /*! no static exports found */
  2289. /***/ (function(module, exports, __webpack_require__) {
  2290. "use strict";
  2291. /* WEBPACK VAR INJECTION */(function(uni) {
  2292. Object.defineProperty(exports, "__esModule", {
  2293. value: true
  2294. });
  2295. exports.default = void 0;
  2296. var _default = {
  2297. props: {
  2298. // 排列方向
  2299. direction: {
  2300. type: String,
  2301. default: uni.$u.props.steps.direction
  2302. },
  2303. // 设置第几个步骤
  2304. current: {
  2305. type: [String, Number],
  2306. default: uni.$u.props.steps.current
  2307. },
  2308. // 激活状态颜色
  2309. activeColor: {
  2310. type: String,
  2311. default: uni.$u.props.steps.activeColor
  2312. },
  2313. // 未激活状态颜色
  2314. inactiveColor: {
  2315. type: String,
  2316. default: uni.$u.props.steps.inactiveColor
  2317. },
  2318. // 激活状态的图标
  2319. activeIcon: {
  2320. type: String,
  2321. default: uni.$u.props.steps.activeIcon
  2322. },
  2323. // 未激活状态图标
  2324. inactiveIcon: {
  2325. type: String,
  2326. default: uni.$u.props.steps.inactiveIcon
  2327. },
  2328. // 是否显示点类型
  2329. dot: {
  2330. type: Boolean,
  2331. default: uni.$u.props.steps.dot
  2332. }
  2333. }
  2334. };
  2335. exports.default = _default;
  2336. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  2337. /***/ }),
  2338. /***/ 11:
  2339. /*!***************************************************************!*\
  2340. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  2341. \***************************************************************/
  2342. /*! no static exports found */
  2343. /***/ (function(module, exports, __webpack_require__) {
  2344. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  2345. function _defineProperty(obj, key, value) {
  2346. key = toPropertyKey(key);
  2347. if (key in obj) {
  2348. Object.defineProperty(obj, key, {
  2349. value: value,
  2350. enumerable: true,
  2351. configurable: true,
  2352. writable: true
  2353. });
  2354. } else {
  2355. obj[key] = value;
  2356. }
  2357. return obj;
  2358. }
  2359. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2360. /***/ }),
  2361. /***/ 110:
  2362. /*!******************************************************************************!*\
  2363. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/loadingIcon.js ***!
  2364. \******************************************************************************/
  2365. /*! no static exports found */
  2366. /***/ (function(module, exports, __webpack_require__) {
  2367. "use strict";
  2368. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  2369. Object.defineProperty(exports, "__esModule", {
  2370. value: true
  2371. });
  2372. exports.default = void 0;
  2373. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 66));
  2374. /*
  2375. * @Author : LQ
  2376. * @Description :
  2377. * @version : 1.0
  2378. * @Date : 2021-08-20 16:44:21
  2379. * @LastAuthor : LQ
  2380. * @lastTime : 2021-08-20 17:45:47
  2381. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingIcon.js
  2382. */
  2383. var color = _config.default.color;
  2384. var _default = {
  2385. // loading-icon加载中图标组件
  2386. loadingIcon: {
  2387. show: true,
  2388. color: color['u-tips-color'],
  2389. textColor: color['u-tips-color'],
  2390. vertical: false,
  2391. mode: 'spinner',
  2392. size: 24,
  2393. textSize: 15,
  2394. text: '',
  2395. timingFunction: 'ease-in-out',
  2396. duration: 1200,
  2397. inactiveColor: ''
  2398. }
  2399. };
  2400. exports.default = _default;
  2401. /***/ }),
  2402. /***/ 1105:
  2403. /*!******************************************************************************!*\
  2404. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-steps-item/props.js ***!
  2405. \******************************************************************************/
  2406. /*! no static exports found */
  2407. /***/ (function(module, exports, __webpack_require__) {
  2408. "use strict";
  2409. /* WEBPACK VAR INJECTION */(function(uni) {
  2410. Object.defineProperty(exports, "__esModule", {
  2411. value: true
  2412. });
  2413. exports.default = void 0;
  2414. var _default = {
  2415. props: {
  2416. // 标题
  2417. title: {
  2418. type: [String, Number],
  2419. default: uni.$u.props.stepsItem.title
  2420. },
  2421. // 描述文本
  2422. desc: {
  2423. type: [String, Number],
  2424. default: uni.$u.props.stepsItem.desc
  2425. },
  2426. // 图标大小
  2427. iconSize: {
  2428. type: [String, Number],
  2429. default: uni.$u.props.stepsItem.iconSize
  2430. },
  2431. // 当前步骤是否处于失败状态
  2432. error: {
  2433. type: Boolean,
  2434. default: uni.$u.props.stepsItem.error
  2435. }
  2436. }
  2437. };
  2438. exports.default = _default;
  2439. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  2440. /***/ }),
  2441. /***/ 111:
  2442. /*!******************************************************************************!*\
  2443. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/loadingPage.js ***!
  2444. \******************************************************************************/
  2445. /*! no static exports found */
  2446. /***/ (function(module, exports, __webpack_require__) {
  2447. "use strict";
  2448. Object.defineProperty(exports, "__esModule", {
  2449. value: true
  2450. });
  2451. exports.default = void 0;
  2452. /*
  2453. * @Author : LQ
  2454. * @Description :
  2455. * @version : 1.0
  2456. * @Date : 2021-08-20 16:44:21
  2457. * @LastAuthor : LQ
  2458. * @lastTime : 2021-08-20 17:00:23
  2459. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingPage.js
  2460. */
  2461. var _default = {
  2462. // loading-page组件
  2463. loadingPage: {
  2464. loadingText: '正在加载',
  2465. image: '',
  2466. loadingMode: 'circle',
  2467. loading: false,
  2468. bgColor: '#ffffff',
  2469. color: '#C8C8C8',
  2470. fontSize: 19,
  2471. iconSize: 28,
  2472. loadingColor: '#C8C8C8'
  2473. }
  2474. };
  2475. exports.default = _default;
  2476. /***/ }),
  2477. /***/ 1113:
  2478. /*!************************************************************************!*\
  2479. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-text/props.js ***!
  2480. \************************************************************************/
  2481. /*! no static exports found */
  2482. /***/ (function(module, exports, __webpack_require__) {
  2483. "use strict";
  2484. /* WEBPACK VAR INJECTION */(function(uni) {
  2485. Object.defineProperty(exports, "__esModule", {
  2486. value: true
  2487. });
  2488. exports.default = void 0;
  2489. var _default = {
  2490. props: {
  2491. // 主题颜色
  2492. type: {
  2493. type: String,
  2494. default: uni.$u.props.text.type
  2495. },
  2496. // 是否显示
  2497. show: {
  2498. type: Boolean,
  2499. default: uni.$u.props.text.show
  2500. },
  2501. // 显示的值
  2502. text: {
  2503. type: [String, Number],
  2504. default: uni.$u.props.text.text
  2505. },
  2506. // 前置图标
  2507. prefixIcon: {
  2508. type: String,
  2509. default: uni.$u.props.text.prefixIcon
  2510. },
  2511. // 后置图标
  2512. suffixIcon: {
  2513. type: String,
  2514. default: uni.$u.props.text.suffixIcon
  2515. },
  2516. // 文本处理的匹配模式
  2517. // text-普通文本,price-价格,phone-手机号,name-姓名,date-日期,link-超链接
  2518. mode: {
  2519. type: String,
  2520. default: uni.$u.props.text.mode
  2521. },
  2522. // mode=link下,配置的链接
  2523. href: {
  2524. type: String,
  2525. default: uni.$u.props.text.href
  2526. },
  2527. // 格式化规则
  2528. format: {
  2529. type: [String, Function],
  2530. default: uni.$u.props.text.format
  2531. },
  2532. // mode=phone时,点击文本是否拨打电话
  2533. call: {
  2534. type: Boolean,
  2535. default: uni.$u.props.text.call
  2536. },
  2537. // 小程序的打开方式
  2538. openType: {
  2539. type: String,
  2540. default: uni.$u.props.text.openType
  2541. },
  2542. // 是否粗体,默认normal
  2543. bold: {
  2544. type: Boolean,
  2545. default: uni.$u.props.text.bold
  2546. },
  2547. // 是否块状
  2548. block: {
  2549. type: Boolean,
  2550. default: uni.$u.props.text.block
  2551. },
  2552. // 文本显示的行数,如果设置,超出此行数,将会显示省略号
  2553. lines: {
  2554. type: [String, Number],
  2555. default: uni.$u.props.text.lines
  2556. },
  2557. // 文本颜色
  2558. color: {
  2559. type: String,
  2560. default: uni.$u.props.text.color
  2561. },
  2562. // 字体大小
  2563. size: {
  2564. type: [String, Number],
  2565. default: uni.$u.props.text.size
  2566. },
  2567. // 图标的样式
  2568. iconStyle: {
  2569. type: [Object, String],
  2570. default: uni.$u.props.text.iconStyle
  2571. },
  2572. // 文字装饰,下划线,中划线等,可选值 none|underline|line-through
  2573. decoration: {
  2574. type: String,
  2575. default: uni.$u.props.text.decoration
  2576. },
  2577. // 外边距,对象、字符串,数值形式均可
  2578. margin: {
  2579. type: [Object, String, Number],
  2580. default: uni.$u.props.text.margin
  2581. },
  2582. // 文本行高
  2583. lineHeight: {
  2584. type: [String, Number],
  2585. default: uni.$u.props.text.lineHeight
  2586. },
  2587. // 文本对齐方式,可选值left|center|right
  2588. align: {
  2589. type: String,
  2590. default: uni.$u.props.text.align
  2591. },
  2592. // 文字换行,可选值break-word|normal|anywhere
  2593. wordWrap: {
  2594. type: String,
  2595. default: uni.$u.props.text.wordWrap
  2596. }
  2597. }
  2598. };
  2599. exports.default = _default;
  2600. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  2601. /***/ }),
  2602. /***/ 1119:
  2603. /*!************************************************************************!*\
  2604. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-text/value.js ***!
  2605. \************************************************************************/
  2606. /*! no static exports found */
  2607. /***/ (function(module, exports, __webpack_require__) {
  2608. "use strict";
  2609. /* WEBPACK VAR INJECTION */(function(uni) {
  2610. Object.defineProperty(exports, "__esModule", {
  2611. value: true
  2612. });
  2613. exports.default = void 0;
  2614. var _default = {
  2615. computed: {
  2616. // 经处理后需要显示的值
  2617. value: function value() {
  2618. var text = this.text,
  2619. mode = this.mode,
  2620. format = this.format,
  2621. href = this.href;
  2622. // 价格类型
  2623. if (mode === 'price') {
  2624. // 如果text不为金额进行提示
  2625. if (!/^\d+(\.\d+)?$/.test(text)) {
  2626. uni.$u.error('金额模式下,text参数需要为金额格式');
  2627. }
  2628. // 进行格式化,判断用户传入的format参数为正则,或者函数,如果没有传入format,则使用默认的金额格式化处理
  2629. if (uni.$u.test.func(format)) {
  2630. // 如果用户传入的是函数,使用函数格式化
  2631. return format(text);
  2632. }
  2633. // 如果format非正则,非函数,则使用默认的金额格式化方法进行操作
  2634. return uni.$u.priceFormat(text, 2);
  2635. }
  2636. if (mode === 'date') {
  2637. // 判断是否合法的日期或者时间戳
  2638. !uni.$u.test.date(text) && uni.$u.error('日期模式下,text参数需要为日期或时间戳格式');
  2639. // 进行格式化,判断用户传入的format参数为正则,或者函数,如果没有传入format,则使用默认的格式化处理
  2640. if (uni.$u.test.func(format)) {
  2641. // 如果用户传入的是函数,使用函数格式化
  2642. return format(text);
  2643. }
  2644. if (format) {
  2645. // 如果format非正则,非函数,则使用默认的时间格式化方法进行操作
  2646. return uni.$u.timeFormat(text, format);
  2647. }
  2648. // 如果没有设置format,则设置为默认的时间格式化形式
  2649. return uni.$u.timeFormat(text, 'yyyy-mm-dd');
  2650. }
  2651. if (mode === 'phone') {
  2652. // 判断是否合法的手机号
  2653. // !uni.$u.test.mobile(text) && uni.$u.error('手机号模式下,text参数需要为手机号码格式')
  2654. if (uni.$u.test.func(format)) {
  2655. // 如果用户传入的是函数,使用函数格式化
  2656. return format(text);
  2657. }
  2658. if (format === 'encrypt') {
  2659. // 如果format为encrypt,则将手机号进行星号加密处理
  2660. return "".concat(text.substr(0, 3), "****").concat(text.substr(7));
  2661. }
  2662. return text;
  2663. }
  2664. if (mode === 'name') {
  2665. // 判断是否合法的字符粗
  2666. !(typeof text === 'string') && uni.$u.error('姓名模式下,text参数需要为字符串格式');
  2667. if (uni.$u.test.func(format)) {
  2668. // 如果用户传入的是函数,使用函数格式化
  2669. return format(text);
  2670. }
  2671. if (format === 'encrypt') {
  2672. // 如果format为encrypt,则将姓名进行星号加密处理
  2673. return this.formatName(text);
  2674. }
  2675. return text;
  2676. }
  2677. if (mode === 'link') {
  2678. // 判断是否合法的字符粗
  2679. !uni.$u.test.url(href) && uni.$u.error('超链接模式下,href参数需要为URL格式');
  2680. return text;
  2681. }
  2682. return text;
  2683. }
  2684. },
  2685. methods: {
  2686. // 默认的姓名脱敏规则
  2687. formatName: function formatName(name) {
  2688. var value = '';
  2689. if (name.length === 2) {
  2690. value = name.substr(0, 1) + '*';
  2691. } else if (name.length > 2) {
  2692. var char = '';
  2693. for (var i = 0, len = name.length - 2; i < len; i++) {
  2694. char += '*';
  2695. }
  2696. value = name.substr(0, 1) + char + name.substr(-1, 1);
  2697. } else {
  2698. value = name;
  2699. }
  2700. return value;
  2701. }
  2702. }
  2703. };
  2704. exports.default = _default;
  2705. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  2706. /***/ }),
  2707. /***/ 112:
  2708. /*!***************************************************************************!*\
  2709. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/loadmore.js ***!
  2710. \***************************************************************************/
  2711. /*! no static exports found */
  2712. /***/ (function(module, exports, __webpack_require__) {
  2713. "use strict";
  2714. Object.defineProperty(exports, "__esModule", {
  2715. value: true
  2716. });
  2717. exports.default = void 0;
  2718. /*
  2719. * @Author : LQ
  2720. * @Description :
  2721. * @version : 1.0
  2722. * @Date : 2021-08-20 16:44:21
  2723. * @LastAuthor : LQ
  2724. * @lastTime : 2021-08-20 17:15:26
  2725. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadmore.js
  2726. */
  2727. var _default = {
  2728. // loadmore 组件
  2729. loadmore: {
  2730. status: 'loadmore',
  2731. bgColor: 'transparent',
  2732. icon: true,
  2733. fontSize: 14,
  2734. iconSize: 17,
  2735. color: '#606266',
  2736. loadingIcon: 'spinner',
  2737. loadmoreText: '加载更多',
  2738. loadingText: '正在加载...',
  2739. nomoreText: '没有更多了',
  2740. isDot: false,
  2741. iconColor: '#b7b7b7',
  2742. marginTop: 10,
  2743. marginBottom: 10,
  2744. height: 'auto',
  2745. line: false,
  2746. lineColor: '#E6E8EB',
  2747. dashed: false
  2748. }
  2749. };
  2750. exports.default = _default;
  2751. /***/ }),
  2752. /***/ 1120:
  2753. /*!******************************************************************!*\
  2754. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/mixin/button.js ***!
  2755. \******************************************************************/
  2756. /*! no static exports found */
  2757. /***/ (function(module, exports, __webpack_require__) {
  2758. "use strict";
  2759. Object.defineProperty(exports, "__esModule", {
  2760. value: true
  2761. });
  2762. exports.default = void 0;
  2763. var _default = {
  2764. props: {
  2765. lang: String,
  2766. sessionFrom: String,
  2767. sendMessageTitle: String,
  2768. sendMessagePath: String,
  2769. sendMessageImg: String,
  2770. showMessageCard: Boolean,
  2771. appParameter: String,
  2772. formType: String,
  2773. openType: String
  2774. }
  2775. };
  2776. exports.default = _default;
  2777. /***/ }),
  2778. /***/ 1121:
  2779. /*!********************************************************************!*\
  2780. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/mixin/openType.js ***!
  2781. \********************************************************************/
  2782. /*! no static exports found */
  2783. /***/ (function(module, exports, __webpack_require__) {
  2784. "use strict";
  2785. Object.defineProperty(exports, "__esModule", {
  2786. value: true
  2787. });
  2788. exports.default = void 0;
  2789. var _default = {
  2790. props: {
  2791. openType: String
  2792. },
  2793. methods: {
  2794. onGetUserInfo: function onGetUserInfo(event) {
  2795. this.$emit('getuserinfo', event.detail);
  2796. },
  2797. onContact: function onContact(event) {
  2798. this.$emit('contact', event.detail);
  2799. },
  2800. onGetPhoneNumber: function onGetPhoneNumber(event) {
  2801. this.$emit('getphonenumber', event.detail);
  2802. },
  2803. onError: function onError(event) {
  2804. this.$emit('error', event.detail);
  2805. },
  2806. onLaunchApp: function onLaunchApp(event) {
  2807. this.$emit('launchapp', event.detail);
  2808. },
  2809. onOpenSetting: function onOpenSetting(event) {
  2810. this.$emit('opensetting', event.detail);
  2811. }
  2812. }
  2813. };
  2814. exports.default = _default;
  2815. /***/ }),
  2816. /***/ 1129:
  2817. /*!************************************************************************!*\
  2818. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-link/props.js ***!
  2819. \************************************************************************/
  2820. /*! no static exports found */
  2821. /***/ (function(module, exports, __webpack_require__) {
  2822. "use strict";
  2823. /* WEBPACK VAR INJECTION */(function(uni) {
  2824. Object.defineProperty(exports, "__esModule", {
  2825. value: true
  2826. });
  2827. exports.default = void 0;
  2828. var _default = {
  2829. props: {
  2830. // 文字颜色
  2831. color: {
  2832. type: String,
  2833. default: uni.$u.props.link.color
  2834. },
  2835. // 字体大小,单位px
  2836. fontSize: {
  2837. type: [String, Number],
  2838. default: uni.$u.props.link.fontSize
  2839. },
  2840. // 是否显示下划线
  2841. underLine: {
  2842. type: Boolean,
  2843. default: uni.$u.props.link.underLine
  2844. },
  2845. // 要跳转的链接
  2846. href: {
  2847. type: String,
  2848. default: uni.$u.props.link.href
  2849. },
  2850. // 小程序中复制到粘贴板的提示语
  2851. mpTips: {
  2852. type: String,
  2853. default: uni.$u.props.link.mpTips
  2854. },
  2855. // 下划线颜色
  2856. lineColor: {
  2857. type: String,
  2858. default: uni.$u.props.link.lineColor
  2859. },
  2860. // 超链接的问题,不使用slot形式传入,是因为nvue下无法修改颜色
  2861. text: {
  2862. type: String,
  2863. default: uni.$u.props.link.text
  2864. }
  2865. }
  2866. };
  2867. exports.default = _default;
  2868. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  2869. /***/ }),
  2870. /***/ 113:
  2871. /*!************************************************************************!*\
  2872. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/modal.js ***!
  2873. \************************************************************************/
  2874. /*! no static exports found */
  2875. /***/ (function(module, exports, __webpack_require__) {
  2876. "use strict";
  2877. Object.defineProperty(exports, "__esModule", {
  2878. value: true
  2879. });
  2880. exports.default = void 0;
  2881. /*
  2882. * @Author : LQ
  2883. * @Description :
  2884. * @version : 1.0
  2885. * @Date : 2021-08-20 16:44:21
  2886. * @LastAuthor : LQ
  2887. * @lastTime : 2021-08-20 17:15:59
  2888. * @FilePath : /u-view2.0/uview-ui/libs/config/props/modal.js
  2889. */
  2890. var _default = {
  2891. // modal 组件
  2892. modal: {
  2893. show: false,
  2894. title: '',
  2895. content: '',
  2896. confirmText: '确认',
  2897. cancelText: '取消',
  2898. showConfirmButton: true,
  2899. showCancelButton: false,
  2900. confirmColor: '#2979ff',
  2901. cancelColor: '#606266',
  2902. buttonReverse: false,
  2903. zoom: true,
  2904. asyncClose: false,
  2905. closeOnClickOverlay: false,
  2906. negativeTop: 0,
  2907. width: '650rpx',
  2908. confirmButtonShape: '',
  2909. duration: 400
  2910. }
  2911. };
  2912. exports.default = _default;
  2913. /***/ }),
  2914. /***/ 114:
  2915. /*!*************************************************************************!*\
  2916. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/navbar.js ***!
  2917. \*************************************************************************/
  2918. /*! no static exports found */
  2919. /***/ (function(module, exports, __webpack_require__) {
  2920. "use strict";
  2921. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  2922. Object.defineProperty(exports, "__esModule", {
  2923. value: true
  2924. });
  2925. exports.default = void 0;
  2926. var _color = _interopRequireDefault(__webpack_require__(/*! ../color */ 115));
  2927. /*
  2928. * @Author : LQ
  2929. * @Description :
  2930. * @version : 1.0
  2931. * @Date : 2021-08-20 16:44:21
  2932. * @LastAuthor : LQ
  2933. * @lastTime : 2021-08-20 17:16:18
  2934. * @FilePath : /u-view2.0/uview-ui/libs/config/props/navbar.js
  2935. */
  2936. var _default = {
  2937. // navbar 组件
  2938. navbar: {
  2939. safeAreaInsetTop: true,
  2940. placeholder: false,
  2941. fixed: true,
  2942. border: false,
  2943. leftIcon: 'arrow-left',
  2944. leftText: '',
  2945. rightText: '',
  2946. rightIcon: '',
  2947. title: '',
  2948. bgColor: '#ffffff',
  2949. titleWidth: '400rpx',
  2950. height: '44px',
  2951. leftIconSize: 20,
  2952. leftIconColor: _color.default.mainColor,
  2953. autoBack: false,
  2954. titleStyle: ''
  2955. }
  2956. };
  2957. exports.default = _default;
  2958. /***/ }),
  2959. /***/ 115:
  2960. /*!******************************************************************!*\
  2961. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/color.js ***!
  2962. \******************************************************************/
  2963. /*! no static exports found */
  2964. /***/ (function(module, exports, __webpack_require__) {
  2965. "use strict";
  2966. Object.defineProperty(exports, "__esModule", {
  2967. value: true
  2968. });
  2969. exports.default = void 0;
  2970. // 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供
  2971. // 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)
  2972. var color = {
  2973. primary: '#3c9cff',
  2974. info: '#909399',
  2975. default: '#909399',
  2976. warning: '#f9ae3d',
  2977. error: '#f56c6c',
  2978. success: '#5ac725',
  2979. mainColor: '#303133',
  2980. contentColor: '#606266',
  2981. tipsColor: '#909399',
  2982. lightColor: '#c0c4cc',
  2983. borderColor: '#e4e7ed'
  2984. };
  2985. var _default = color;
  2986. exports.default = _default;
  2987. /***/ }),
  2988. /***/ 116:
  2989. /*!****************************************************************************!*\
  2990. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/noNetwork.js ***!
  2991. \****************************************************************************/
  2992. /*! no static exports found */
  2993. /***/ (function(module, exports, __webpack_require__) {
  2994. "use strict";
  2995. Object.defineProperty(exports, "__esModule", {
  2996. value: true
  2997. });
  2998. exports.default = void 0;
  2999. /*
  3000. * @Author : LQ
  3001. * @Description :
  3002. * @version : 1.0
  3003. * @Date : 2021-08-20 16:44:21
  3004. * @LastAuthor : LQ
  3005. * @lastTime : 2021-08-20 17:16:39
  3006. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noNetwork.js
  3007. */
  3008. var _default = {
  3009. // noNetwork
  3010. noNetwork: {
  3011. tips: '哎呀,网络信号丢失',
  3012. zIndex: '',
  3013. 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'
  3014. }
  3015. };
  3016. exports.default = _default;
  3017. /***/ }),
  3018. /***/ 117:
  3019. /*!****************************************************************************!*\
  3020. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/noticeBar.js ***!
  3021. \****************************************************************************/
  3022. /*! no static exports found */
  3023. /***/ (function(module, exports, __webpack_require__) {
  3024. "use strict";
  3025. Object.defineProperty(exports, "__esModule", {
  3026. value: true
  3027. });
  3028. exports.default = void 0;
  3029. /*
  3030. * @Author : LQ
  3031. * @Description :
  3032. * @version : 1.0
  3033. * @Date : 2021-08-20 16:44:21
  3034. * @LastAuthor : LQ
  3035. * @lastTime : 2021-08-20 17:17:13
  3036. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noticeBar.js
  3037. */
  3038. var _default = {
  3039. // noticeBar
  3040. noticeBar: {
  3041. text: function text() {
  3042. return [];
  3043. },
  3044. direction: 'row',
  3045. step: false,
  3046. icon: 'volume',
  3047. mode: '',
  3048. color: '#f9ae3d',
  3049. bgColor: '#fdf6ec',
  3050. speed: 80,
  3051. fontSize: 14,
  3052. duration: 2000,
  3053. disableTouch: true,
  3054. url: '',
  3055. linkType: 'navigateTo'
  3056. }
  3057. };
  3058. exports.default = _default;
  3059. /***/ }),
  3060. /***/ 118:
  3061. /*!*************************************************************************!*\
  3062. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/notify.js ***!
  3063. \*************************************************************************/
  3064. /*! no static exports found */
  3065. /***/ (function(module, exports, __webpack_require__) {
  3066. "use strict";
  3067. Object.defineProperty(exports, "__esModule", {
  3068. value: true
  3069. });
  3070. exports.default = void 0;
  3071. /*
  3072. * @Author : LQ
  3073. * @Description :
  3074. * @version : 1.0
  3075. * @Date : 2021-08-20 16:44:21
  3076. * @LastAuthor : LQ
  3077. * @lastTime : 2021-08-20 17:10:21
  3078. * @FilePath : /u-view2.0/uview-ui/libs/config/props/notify.js
  3079. */
  3080. var _default = {
  3081. // notify组件
  3082. notify: {
  3083. top: 0,
  3084. type: 'primary',
  3085. color: '#ffffff',
  3086. bgColor: '',
  3087. message: '',
  3088. duration: 3000,
  3089. fontSize: 15,
  3090. safeAreaInsetTop: false
  3091. }
  3092. };
  3093. exports.default = _default;
  3094. /***/ }),
  3095. /***/ 119:
  3096. /*!****************************************************************************!*\
  3097. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/numberBox.js ***!
  3098. \****************************************************************************/
  3099. /*! no static exports found */
  3100. /***/ (function(module, exports, __webpack_require__) {
  3101. "use strict";
  3102. Object.defineProperty(exports, "__esModule", {
  3103. value: true
  3104. });
  3105. exports.default = void 0;
  3106. /*
  3107. * @Author : LQ
  3108. * @Description :
  3109. * @version : 1.0
  3110. * @Date : 2021-08-20 16:44:21
  3111. * @LastAuthor : LQ
  3112. * @lastTime : 2021-08-20 17:11:46
  3113. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberBox.js
  3114. */
  3115. var _default = {
  3116. // 步进器组件
  3117. numberBox: {
  3118. name: '',
  3119. value: 0,
  3120. min: 1,
  3121. max: Number.MAX_SAFE_INTEGER,
  3122. step: 1,
  3123. integer: false,
  3124. disabled: false,
  3125. disabledInput: false,
  3126. asyncChange: false,
  3127. inputWidth: 35,
  3128. showMinus: true,
  3129. showPlus: true,
  3130. decimalLength: null,
  3131. longPress: true,
  3132. color: '#323233',
  3133. buttonSize: 30,
  3134. bgColor: '#EBECEE',
  3135. cursorSpacing: 100,
  3136. disableMinus: false,
  3137. disablePlus: false,
  3138. iconStyle: ''
  3139. }
  3140. };
  3141. exports.default = _default;
  3142. /***/ }),
  3143. /***/ 12:
  3144. /*!**************************************************************!*\
  3145. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  3146. \**************************************************************/
  3147. /*! no static exports found */
  3148. /***/ (function(module, exports, __webpack_require__) {
  3149. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  3150. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
  3151. function toPropertyKey(t) {
  3152. var i = toPrimitive(t, "string");
  3153. return "symbol" == _typeof(i) ? i : i + "";
  3154. }
  3155. module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3156. /***/ }),
  3157. /***/ 120:
  3158. /*!*********************************************************************************!*\
  3159. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/numberKeyboard.js ***!
  3160. \*********************************************************************************/
  3161. /*! no static exports found */
  3162. /***/ (function(module, exports, __webpack_require__) {
  3163. "use strict";
  3164. Object.defineProperty(exports, "__esModule", {
  3165. value: true
  3166. });
  3167. exports.default = void 0;
  3168. /*
  3169. * @Author : LQ
  3170. * @Description :
  3171. * @version : 1.0
  3172. * @Date : 2021-08-20 16:44:21
  3173. * @LastAuthor : LQ
  3174. * @lastTime : 2021-08-20 17:08:05
  3175. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberKeyboard.js
  3176. */
  3177. var _default = {
  3178. // 数字键盘
  3179. numberKeyboard: {
  3180. mode: 'number',
  3181. dotDisabled: false,
  3182. random: false
  3183. }
  3184. };
  3185. exports.default = _default;
  3186. /***/ }),
  3187. /***/ 121:
  3188. /*!**************************************************************************!*\
  3189. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/overlay.js ***!
  3190. \**************************************************************************/
  3191. /*! no static exports found */
  3192. /***/ (function(module, exports, __webpack_require__) {
  3193. "use strict";
  3194. Object.defineProperty(exports, "__esModule", {
  3195. value: true
  3196. });
  3197. exports.default = void 0;
  3198. /*
  3199. * @Author : LQ
  3200. * @Description :
  3201. * @version : 1.0
  3202. * @Date : 2021-08-20 16:44:21
  3203. * @LastAuthor : LQ
  3204. * @lastTime : 2021-08-20 17:06:50
  3205. * @FilePath : /u-view2.0/uview-ui/libs/config/props/overlay.js
  3206. */
  3207. var _default = {
  3208. // overlay组件
  3209. overlay: {
  3210. show: false,
  3211. zIndex: 10070,
  3212. duration: 300,
  3213. opacity: 0.5
  3214. }
  3215. };
  3216. exports.default = _default;
  3217. /***/ }),
  3218. /***/ 122:
  3219. /*!************************************************************************!*\
  3220. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/parse.js ***!
  3221. \************************************************************************/
  3222. /*! no static exports found */
  3223. /***/ (function(module, exports, __webpack_require__) {
  3224. "use strict";
  3225. Object.defineProperty(exports, "__esModule", {
  3226. value: true
  3227. });
  3228. exports.default = void 0;
  3229. /*
  3230. * @Author : LQ
  3231. * @Description :
  3232. * @version : 1.0
  3233. * @Date : 2021-08-20 16:44:21
  3234. * @LastAuthor : LQ
  3235. * @lastTime : 2021-08-20 17:17:33
  3236. * @FilePath : /u-view2.0/uview-ui/libs/config/props/parse.js
  3237. */
  3238. var _default = {
  3239. // parse
  3240. parse: {
  3241. copyLink: true,
  3242. errorImg: '',
  3243. lazyLoad: false,
  3244. loadingImg: '',
  3245. pauseVideo: true,
  3246. previewImg: true,
  3247. setTitle: true,
  3248. showImgMenu: true
  3249. }
  3250. };
  3251. exports.default = _default;
  3252. /***/ }),
  3253. /***/ 123:
  3254. /*!*************************************************************************!*\
  3255. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/picker.js ***!
  3256. \*************************************************************************/
  3257. /*! no static exports found */
  3258. /***/ (function(module, exports, __webpack_require__) {
  3259. "use strict";
  3260. Object.defineProperty(exports, "__esModule", {
  3261. value: true
  3262. });
  3263. exports.default = void 0;
  3264. /*
  3265. * @Author : LQ
  3266. * @Description :
  3267. * @version : 1.0
  3268. * @Date : 2021-08-20 16:44:21
  3269. * @LastAuthor : LQ
  3270. * @lastTime : 2021-08-20 17:18:20
  3271. * @FilePath : /u-view2.0/uview-ui/libs/config/props/picker.js
  3272. */
  3273. var _default = {
  3274. // picker
  3275. picker: {
  3276. show: false,
  3277. showToolbar: true,
  3278. title: '',
  3279. columns: function columns() {
  3280. return [];
  3281. },
  3282. loading: false,
  3283. itemHeight: 44,
  3284. cancelText: '取消',
  3285. confirmText: '确定',
  3286. cancelColor: '#909193',
  3287. confirmColor: '#3c9cff',
  3288. visibleItemCount: 5,
  3289. keyName: 'text',
  3290. closeOnClickOverlay: false,
  3291. defaultIndex: function defaultIndex() {
  3292. return [];
  3293. },
  3294. immediateChange: false
  3295. }
  3296. };
  3297. exports.default = _default;
  3298. /***/ }),
  3299. /***/ 124:
  3300. /*!************************************************************************!*\
  3301. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/popup.js ***!
  3302. \************************************************************************/
  3303. /*! no static exports found */
  3304. /***/ (function(module, exports, __webpack_require__) {
  3305. "use strict";
  3306. Object.defineProperty(exports, "__esModule", {
  3307. value: true
  3308. });
  3309. exports.default = void 0;
  3310. /*
  3311. * @Author : LQ
  3312. * @Description :
  3313. * @version : 1.0
  3314. * @Date : 2021-08-20 16:44:21
  3315. * @LastAuthor : LQ
  3316. * @lastTime : 2021-08-20 17:06:33
  3317. * @FilePath : /u-view2.0/uview-ui/libs/config/props/popup.js
  3318. */
  3319. var _default = {
  3320. // popup组件
  3321. popup: {
  3322. show: false,
  3323. overlay: true,
  3324. mode: 'bottom',
  3325. duration: 300,
  3326. closeable: false,
  3327. overlayStyle: function overlayStyle() {},
  3328. closeOnClickOverlay: true,
  3329. zIndex: 10075,
  3330. safeAreaInsetBottom: true,
  3331. safeAreaInsetTop: false,
  3332. closeIconPos: 'top-right',
  3333. round: 0,
  3334. zoom: true,
  3335. bgColor: '',
  3336. overlayOpacity: 0.5
  3337. }
  3338. };
  3339. exports.default = _default;
  3340. /***/ }),
  3341. /***/ 125:
  3342. /*!************************************************************************!*\
  3343. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/radio.js ***!
  3344. \************************************************************************/
  3345. /*! no static exports found */
  3346. /***/ (function(module, exports, __webpack_require__) {
  3347. "use strict";
  3348. Object.defineProperty(exports, "__esModule", {
  3349. value: true
  3350. });
  3351. exports.default = void 0;
  3352. /*
  3353. * @Author : LQ
  3354. * @Description :
  3355. * @version : 1.0
  3356. * @Date : 2021-08-20 16:44:21
  3357. * @LastAuthor : LQ
  3358. * @lastTime : 2021-08-20 17:02:34
  3359. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radio.js
  3360. */
  3361. var _default = {
  3362. // radio组件
  3363. radio: {
  3364. name: '',
  3365. shape: '',
  3366. disabled: '',
  3367. labelDisabled: '',
  3368. activeColor: '',
  3369. inactiveColor: '',
  3370. iconSize: '',
  3371. labelSize: '',
  3372. label: '',
  3373. labelColor: '',
  3374. size: '',
  3375. iconColor: '',
  3376. placement: ''
  3377. }
  3378. };
  3379. exports.default = _default;
  3380. /***/ }),
  3381. /***/ 126:
  3382. /*!*****************************************************************************!*\
  3383. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/radioGroup.js ***!
  3384. \*****************************************************************************/
  3385. /*! no static exports found */
  3386. /***/ (function(module, exports, __webpack_require__) {
  3387. "use strict";
  3388. Object.defineProperty(exports, "__esModule", {
  3389. value: true
  3390. });
  3391. exports.default = void 0;
  3392. /*
  3393. * @Author : LQ
  3394. * @Description :
  3395. * @version : 1.0
  3396. * @Date : 2021-08-20 16:44:21
  3397. * @LastAuthor : LQ
  3398. * @lastTime : 2021-08-20 17:03:12
  3399. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radioGroup.js
  3400. */
  3401. var _default = {
  3402. // radio-group组件
  3403. radioGroup: {
  3404. value: '',
  3405. disabled: false,
  3406. shape: 'circle',
  3407. activeColor: '#2979ff',
  3408. inactiveColor: '#c8c9cc',
  3409. name: '',
  3410. size: 18,
  3411. placement: 'row',
  3412. label: '',
  3413. labelColor: '#303133',
  3414. labelSize: 14,
  3415. labelDisabled: false,
  3416. iconColor: '#ffffff',
  3417. iconSize: 12,
  3418. borderBottom: false,
  3419. iconPlacement: 'left'
  3420. }
  3421. };
  3422. exports.default = _default;
  3423. /***/ }),
  3424. /***/ 127:
  3425. /*!***********************************************************************!*\
  3426. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/rate.js ***!
  3427. \***********************************************************************/
  3428. /*! no static exports found */
  3429. /***/ (function(module, exports, __webpack_require__) {
  3430. "use strict";
  3431. Object.defineProperty(exports, "__esModule", {
  3432. value: true
  3433. });
  3434. exports.default = void 0;
  3435. /*
  3436. * @Author : LQ
  3437. * @Description :
  3438. * @version : 1.0
  3439. * @Date : 2021-08-20 16:44:21
  3440. * @LastAuthor : LQ
  3441. * @lastTime : 2021-08-20 17:05:09
  3442. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rate.js
  3443. */
  3444. var _default = {
  3445. // rate组件
  3446. rate: {
  3447. value: 1,
  3448. count: 5,
  3449. disabled: false,
  3450. size: 18,
  3451. inactiveColor: '#b2b2b2',
  3452. activeColor: '#FA3534',
  3453. gutter: 4,
  3454. minCount: 1,
  3455. allowHalf: false,
  3456. activeIcon: 'star-fill',
  3457. inactiveIcon: 'star',
  3458. touchable: true
  3459. }
  3460. };
  3461. exports.default = _default;
  3462. /***/ }),
  3463. /***/ 128:
  3464. /*!***************************************************************************!*\
  3465. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/readMore.js ***!
  3466. \***************************************************************************/
  3467. /*! no static exports found */
  3468. /***/ (function(module, exports, __webpack_require__) {
  3469. "use strict";
  3470. Object.defineProperty(exports, "__esModule", {
  3471. value: true
  3472. });
  3473. exports.default = void 0;
  3474. /*
  3475. * @Author : LQ
  3476. * @Description :
  3477. * @version : 1.0
  3478. * @Date : 2021-08-20 16:44:21
  3479. * @LastAuthor : LQ
  3480. * @lastTime : 2021-08-20 17:18:41
  3481. * @FilePath : /u-view2.0/uview-ui/libs/config/props/readMore.js
  3482. */
  3483. var _default = {
  3484. // readMore
  3485. readMore: {
  3486. showHeight: 400,
  3487. toggle: false,
  3488. closeText: '展开阅读全文',
  3489. openText: '收起',
  3490. color: '#2979ff',
  3491. fontSize: 14,
  3492. textIndent: '2em',
  3493. name: ''
  3494. }
  3495. };
  3496. exports.default = _default;
  3497. /***/ }),
  3498. /***/ 129:
  3499. /*!**********************************************************************!*\
  3500. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/row.js ***!
  3501. \**********************************************************************/
  3502. /*! no static exports found */
  3503. /***/ (function(module, exports, __webpack_require__) {
  3504. "use strict";
  3505. Object.defineProperty(exports, "__esModule", {
  3506. value: true
  3507. });
  3508. exports.default = void 0;
  3509. /*
  3510. * @Author : LQ
  3511. * @Description :
  3512. * @version : 1.0
  3513. * @Date : 2021-08-20 16:44:21
  3514. * @LastAuthor : LQ
  3515. * @lastTime : 2021-08-20 17:18:58
  3516. * @FilePath : /u-view2.0/uview-ui/libs/config/props/row.js
  3517. */
  3518. var _default = {
  3519. // row
  3520. row: {
  3521. gutter: 0,
  3522. justify: 'start',
  3523. align: 'center'
  3524. }
  3525. };
  3526. exports.default = _default;
  3527. /***/ }),
  3528. /***/ 13:
  3529. /*!*******************************************************!*\
  3530. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  3531. \*******************************************************/
  3532. /*! no static exports found */
  3533. /***/ (function(module, exports) {
  3534. function _typeof(o) {
  3535. "@babel/helpers - typeof";
  3536. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
  3537. return typeof o;
  3538. } : function (o) {
  3539. return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
  3540. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
  3541. }
  3542. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3543. /***/ }),
  3544. /***/ 130:
  3545. /*!****************************************************************************!*\
  3546. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/rowNotice.js ***!
  3547. \****************************************************************************/
  3548. /*! no static exports found */
  3549. /***/ (function(module, exports, __webpack_require__) {
  3550. "use strict";
  3551. Object.defineProperty(exports, "__esModule", {
  3552. value: true
  3553. });
  3554. exports.default = void 0;
  3555. /*
  3556. * @Author : LQ
  3557. * @Description :
  3558. * @version : 1.0
  3559. * @Date : 2021-08-20 16:44:21
  3560. * @LastAuthor : LQ
  3561. * @lastTime : 2021-08-20 17:19:13
  3562. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rowNotice.js
  3563. */
  3564. var _default = {
  3565. // rowNotice
  3566. rowNotice: {
  3567. text: '',
  3568. icon: 'volume',
  3569. mode: '',
  3570. color: '#f9ae3d',
  3571. bgColor: '#fdf6ec',
  3572. fontSize: 14,
  3573. speed: 80
  3574. }
  3575. };
  3576. exports.default = _default;
  3577. /***/ }),
  3578. /***/ 131:
  3579. /*!*****************************************************************************!*\
  3580. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/scrollList.js ***!
  3581. \*****************************************************************************/
  3582. /*! no static exports found */
  3583. /***/ (function(module, exports, __webpack_require__) {
  3584. "use strict";
  3585. Object.defineProperty(exports, "__esModule", {
  3586. value: true
  3587. });
  3588. exports.default = void 0;
  3589. /*
  3590. * @Author : LQ
  3591. * @Description :
  3592. * @version : 1.0
  3593. * @Date : 2021-08-20 16:44:21
  3594. * @LastAuthor : LQ
  3595. * @lastTime : 2021-08-20 17:19:28
  3596. * @FilePath : /u-view2.0/uview-ui/libs/config/props/scrollList.js
  3597. */
  3598. var _default = {
  3599. // scrollList
  3600. scrollList: {
  3601. indicatorWidth: 50,
  3602. indicatorBarWidth: 20,
  3603. indicator: true,
  3604. indicatorColor: '#f2f2f2',
  3605. indicatorActiveColor: '#3c9cff',
  3606. indicatorStyle: ''
  3607. }
  3608. };
  3609. exports.default = _default;
  3610. /***/ }),
  3611. /***/ 132:
  3612. /*!*************************************************************************!*\
  3613. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/search.js ***!
  3614. \*************************************************************************/
  3615. /*! no static exports found */
  3616. /***/ (function(module, exports, __webpack_require__) {
  3617. "use strict";
  3618. Object.defineProperty(exports, "__esModule", {
  3619. value: true
  3620. });
  3621. exports.default = void 0;
  3622. /*
  3623. * @Author : LQ
  3624. * @Description :
  3625. * @version : 1.0
  3626. * @Date : 2021-08-20 16:44:21
  3627. * @LastAuthor : LQ
  3628. * @lastTime : 2021-08-20 17:19:45
  3629. * @FilePath : /u-view2.0/uview-ui/libs/config/props/search.js
  3630. */
  3631. var _default = {
  3632. // search
  3633. search: {
  3634. shape: 'round',
  3635. bgColor: '#f2f2f2',
  3636. placeholder: '请输入关键字',
  3637. clearabled: true,
  3638. focus: false,
  3639. showAction: true,
  3640. actionStyle: function actionStyle() {
  3641. return {};
  3642. },
  3643. actionText: '搜索',
  3644. inputAlign: 'left',
  3645. inputStyle: function inputStyle() {
  3646. return {};
  3647. },
  3648. disabled: false,
  3649. borderColor: 'transparent',
  3650. searchIconColor: '#909399',
  3651. searchIconSize: 22,
  3652. color: '#606266',
  3653. placeholderColor: '#909399',
  3654. searchIcon: 'search',
  3655. margin: '0',
  3656. animation: false,
  3657. value: '',
  3658. maxlength: '-1',
  3659. height: 32,
  3660. label: null
  3661. }
  3662. };
  3663. exports.default = _default;
  3664. /***/ }),
  3665. /***/ 133:
  3666. /*!**************************************************************************!*\
  3667. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/section.js ***!
  3668. \**************************************************************************/
  3669. /*! no static exports found */
  3670. /***/ (function(module, exports, __webpack_require__) {
  3671. "use strict";
  3672. Object.defineProperty(exports, "__esModule", {
  3673. value: true
  3674. });
  3675. exports.default = void 0;
  3676. /*
  3677. * @Author : LQ
  3678. * @Description :
  3679. * @version : 1.0
  3680. * @Date : 2021-08-20 16:44:21
  3681. * @LastAuthor : LQ
  3682. * @lastTime : 2021-08-20 17:07:33
  3683. * @FilePath : /u-view2.0/uview-ui/libs/config/props/section.js
  3684. */
  3685. var _default = {
  3686. // u-section组件
  3687. section: {
  3688. title: '',
  3689. subTitle: '更多',
  3690. right: true,
  3691. fontSize: 15,
  3692. bold: true,
  3693. color: '#303133',
  3694. subColor: '#909399',
  3695. showLine: true,
  3696. lineColor: '',
  3697. arrow: true
  3698. }
  3699. };
  3700. exports.default = _default;
  3701. /***/ }),
  3702. /***/ 134:
  3703. /*!***************************************************************************!*\
  3704. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/skeleton.js ***!
  3705. \***************************************************************************/
  3706. /*! no static exports found */
  3707. /***/ (function(module, exports, __webpack_require__) {
  3708. "use strict";
  3709. Object.defineProperty(exports, "__esModule", {
  3710. value: true
  3711. });
  3712. exports.default = void 0;
  3713. /*
  3714. * @Author : LQ
  3715. * @Description :
  3716. * @version : 1.0
  3717. * @Date : 2021-08-20 16:44:21
  3718. * @LastAuthor : LQ
  3719. * @lastTime : 2021-08-20 17:20:14
  3720. * @FilePath : /u-view2.0/uview-ui/libs/config/props/skeleton.js
  3721. */
  3722. var _default = {
  3723. // skeleton
  3724. skeleton: {
  3725. loading: true,
  3726. animate: true,
  3727. rows: 0,
  3728. rowsWidth: '100%',
  3729. rowsHeight: 18,
  3730. title: true,
  3731. titleWidth: '50%',
  3732. titleHeight: 18,
  3733. avatar: false,
  3734. avatarSize: 32,
  3735. avatarShape: 'circle'
  3736. }
  3737. };
  3738. exports.default = _default;
  3739. /***/ }),
  3740. /***/ 135:
  3741. /*!*************************************************************************!*\
  3742. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/slider.js ***!
  3743. \*************************************************************************/
  3744. /*! no static exports found */
  3745. /***/ (function(module, exports, __webpack_require__) {
  3746. "use strict";
  3747. Object.defineProperty(exports, "__esModule", {
  3748. value: true
  3749. });
  3750. exports.default = void 0;
  3751. /*
  3752. * @Author : LQ
  3753. * @Description :
  3754. * @version : 1.0
  3755. * @Date : 2021-08-20 16:44:21
  3756. * @LastAuthor : LQ
  3757. * @lastTime : 2021-08-20 17:08:25
  3758. * @FilePath : /u-view2.0/uview-ui/libs/config/props/slider.js
  3759. */
  3760. var _default = {
  3761. // slider组件
  3762. slider: {
  3763. value: 0,
  3764. blockSize: 18,
  3765. min: 0,
  3766. max: 100,
  3767. step: 1,
  3768. activeColor: '#2979ff',
  3769. inactiveColor: '#c0c4cc',
  3770. blockColor: '#ffffff',
  3771. showValue: false,
  3772. disabled: false,
  3773. blockStyle: function blockStyle() {}
  3774. }
  3775. };
  3776. exports.default = _default;
  3777. /***/ }),
  3778. /***/ 136:
  3779. /*!****************************************************************************!*\
  3780. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/statusBar.js ***!
  3781. \****************************************************************************/
  3782. /*! no static exports found */
  3783. /***/ (function(module, exports, __webpack_require__) {
  3784. "use strict";
  3785. Object.defineProperty(exports, "__esModule", {
  3786. value: true
  3787. });
  3788. exports.default = void 0;
  3789. /*
  3790. * @Author : LQ
  3791. * @Description :
  3792. * @version : 1.0
  3793. * @Date : 2021-08-20 16:44:21
  3794. * @LastAuthor : LQ
  3795. * @lastTime : 2021-08-20 17:20:39
  3796. * @FilePath : /u-view2.0/uview-ui/libs/config/props/statusBar.js
  3797. */
  3798. var _default = {
  3799. // statusBar
  3800. statusBar: {
  3801. bgColor: 'transparent'
  3802. }
  3803. };
  3804. exports.default = _default;
  3805. /***/ }),
  3806. /***/ 137:
  3807. /*!************************************************************************!*\
  3808. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/steps.js ***!
  3809. \************************************************************************/
  3810. /*! no static exports found */
  3811. /***/ (function(module, exports, __webpack_require__) {
  3812. "use strict";
  3813. Object.defineProperty(exports, "__esModule", {
  3814. value: true
  3815. });
  3816. exports.default = void 0;
  3817. /*
  3818. * @Author : LQ
  3819. * @Description :
  3820. * @version : 1.0
  3821. * @Date : 2021-08-20 16:44:21
  3822. * @LastAuthor : LQ
  3823. * @lastTime : 2021-08-20 17:12:37
  3824. * @FilePath : /u-view2.0/uview-ui/libs/config/props/steps.js
  3825. */
  3826. var _default = {
  3827. // steps组件
  3828. steps: {
  3829. direction: 'row',
  3830. current: 0,
  3831. activeColor: '#3c9cff',
  3832. inactiveColor: '#969799',
  3833. activeIcon: '',
  3834. inactiveIcon: '',
  3835. dot: false
  3836. }
  3837. };
  3838. exports.default = _default;
  3839. /***/ }),
  3840. /***/ 138:
  3841. /*!****************************************************************************!*\
  3842. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/stepsItem.js ***!
  3843. \****************************************************************************/
  3844. /*! no static exports found */
  3845. /***/ (function(module, exports, __webpack_require__) {
  3846. "use strict";
  3847. Object.defineProperty(exports, "__esModule", {
  3848. value: true
  3849. });
  3850. exports.default = void 0;
  3851. /*
  3852. * @Author : LQ
  3853. * @Description :
  3854. * @version : 1.0
  3855. * @Date : 2021-08-20 16:44:21
  3856. * @LastAuthor : LQ
  3857. * @lastTime : 2021-08-20 17:12:55
  3858. * @FilePath : /u-view2.0/uview-ui/libs/config/props/stepsItem.js
  3859. */
  3860. var _default = {
  3861. // steps-item组件
  3862. stepsItem: {
  3863. title: '',
  3864. desc: '',
  3865. iconSize: 17,
  3866. error: false
  3867. }
  3868. };
  3869. exports.default = _default;
  3870. /***/ }),
  3871. /***/ 139:
  3872. /*!*************************************************************************!*\
  3873. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/sticky.js ***!
  3874. \*************************************************************************/
  3875. /*! no static exports found */
  3876. /***/ (function(module, exports, __webpack_require__) {
  3877. "use strict";
  3878. Object.defineProperty(exports, "__esModule", {
  3879. value: true
  3880. });
  3881. exports.default = void 0;
  3882. /*
  3883. * @Author : LQ
  3884. * @Description :
  3885. * @version : 1.0
  3886. * @Date : 2021-08-20 16:44:21
  3887. * @LastAuthor : LQ
  3888. * @lastTime : 2021-08-20 17:01:30
  3889. * @FilePath : /u-view2.0/uview-ui/libs/config/props/sticky.js
  3890. */
  3891. var _default = {
  3892. // sticky组件
  3893. sticky: {
  3894. offsetTop: 0,
  3895. customNavHeight: 0,
  3896. disabled: false,
  3897. bgColor: 'transparent',
  3898. zIndex: '',
  3899. index: ''
  3900. }
  3901. };
  3902. exports.default = _default;
  3903. /***/ }),
  3904. /***/ 14:
  3905. /*!************************************************************!*\
  3906. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  3907. \************************************************************/
  3908. /*! no static exports found */
  3909. /***/ (function(module, exports, __webpack_require__) {
  3910. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  3911. function toPrimitive(t, r) {
  3912. if ("object" != _typeof(t) || !t) return t;
  3913. var e = t[Symbol.toPrimitive];
  3914. if (void 0 !== e) {
  3915. var i = e.call(t, r || "default");
  3916. if ("object" != _typeof(i)) return i;
  3917. throw new TypeError("@@toPrimitive must return a primitive value.");
  3918. }
  3919. return ("string" === r ? String : Number)(t);
  3920. }
  3921. module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3922. /***/ }),
  3923. /***/ 140:
  3924. /*!*****************************************************************************!*\
  3925. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/subsection.js ***!
  3926. \*****************************************************************************/
  3927. /*! no static exports found */
  3928. /***/ (function(module, exports, __webpack_require__) {
  3929. "use strict";
  3930. Object.defineProperty(exports, "__esModule", {
  3931. value: true
  3932. });
  3933. exports.default = void 0;
  3934. /*
  3935. * @Author : LQ
  3936. * @Description :
  3937. * @version : 1.0
  3938. * @Date : 2021-08-20 16:44:21
  3939. * @LastAuthor : LQ
  3940. * @lastTime : 2021-08-20 17:12:20
  3941. * @FilePath : /u-view2.0/uview-ui/libs/config/props/subsection.js
  3942. */
  3943. var _default = {
  3944. // subsection组件
  3945. subsection: {
  3946. list: [],
  3947. current: 0,
  3948. activeColor: '#3c9cff',
  3949. inactiveColor: '#303133',
  3950. mode: 'button',
  3951. fontSize: 12,
  3952. bold: true,
  3953. bgColor: '#eeeeef',
  3954. keyName: 'name'
  3955. }
  3956. };
  3957. exports.default = _default;
  3958. /***/ }),
  3959. /***/ 141:
  3960. /*!******************************************************************************!*\
  3961. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/swipeAction.js ***!
  3962. \******************************************************************************/
  3963. /*! no static exports found */
  3964. /***/ (function(module, exports, __webpack_require__) {
  3965. "use strict";
  3966. Object.defineProperty(exports, "__esModule", {
  3967. value: true
  3968. });
  3969. exports.default = void 0;
  3970. /*
  3971. * @Author : LQ
  3972. * @Description :
  3973. * @version : 1.0
  3974. * @Date : 2021-08-20 16:44:21
  3975. * @LastAuthor : LQ
  3976. * @lastTime : 2021-08-20 17:00:42
  3977. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeAction.js
  3978. */
  3979. var _default = {
  3980. // swipe-action组件
  3981. swipeAction: {
  3982. autoClose: true
  3983. }
  3984. };
  3985. exports.default = _default;
  3986. /***/ }),
  3987. /***/ 142:
  3988. /*!**********************************************************************************!*\
  3989. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/swipeActionItem.js ***!
  3990. \**********************************************************************************/
  3991. /*! no static exports found */
  3992. /***/ (function(module, exports, __webpack_require__) {
  3993. "use strict";
  3994. Object.defineProperty(exports, "__esModule", {
  3995. value: true
  3996. });
  3997. exports.default = void 0;
  3998. /*
  3999. * @Author : LQ
  4000. * @Description :
  4001. * @version : 1.0
  4002. * @Date : 2021-08-20 16:44:21
  4003. * @LastAuthor : LQ
  4004. * @lastTime : 2021-08-20 17:01:13
  4005. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeActionItem.js
  4006. */
  4007. var _default = {
  4008. // swipeActionItem 组件
  4009. swipeActionItem: {
  4010. show: false,
  4011. name: '',
  4012. disabled: false,
  4013. threshold: 20,
  4014. autoClose: true,
  4015. options: [],
  4016. duration: 300
  4017. }
  4018. };
  4019. exports.default = _default;
  4020. /***/ }),
  4021. /***/ 143:
  4022. /*!*************************************************************************!*\
  4023. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/swiper.js ***!
  4024. \*************************************************************************/
  4025. /*! no static exports found */
  4026. /***/ (function(module, exports, __webpack_require__) {
  4027. "use strict";
  4028. Object.defineProperty(exports, "__esModule", {
  4029. value: true
  4030. });
  4031. exports.default = void 0;
  4032. /*
  4033. * @Author : LQ
  4034. * @Description :
  4035. * @version : 1.0
  4036. * @Date : 2021-08-20 16:44:21
  4037. * @LastAuthor : LQ
  4038. * @lastTime : 2021-08-20 17:21:38
  4039. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiper.js
  4040. */
  4041. var _default = {
  4042. // swiper 组件
  4043. swiper: {
  4044. list: function list() {
  4045. return [];
  4046. },
  4047. indicator: false,
  4048. indicatorActiveColor: '#FFFFFF',
  4049. indicatorInactiveColor: 'rgba(255, 255, 255, 0.35)',
  4050. indicatorStyle: '',
  4051. indicatorMode: 'line',
  4052. autoplay: true,
  4053. current: 0,
  4054. currentItemId: '',
  4055. interval: 3000,
  4056. duration: 300,
  4057. circular: false,
  4058. previousMargin: 0,
  4059. nextMargin: 0,
  4060. acceleration: false,
  4061. displayMultipleItems: 1,
  4062. easingFunction: 'default',
  4063. keyName: 'url',
  4064. imgMode: 'aspectFill',
  4065. height: 130,
  4066. bgColor: '#f3f4f6',
  4067. radius: 4,
  4068. loading: false,
  4069. showTitle: false
  4070. }
  4071. };
  4072. exports.default = _default;
  4073. /***/ }),
  4074. /***/ 144:
  4075. /*!***********************************************************************************!*\
  4076. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/swipterIndicator.js ***!
  4077. \***********************************************************************************/
  4078. /*! no static exports found */
  4079. /***/ (function(module, exports, __webpack_require__) {
  4080. "use strict";
  4081. Object.defineProperty(exports, "__esModule", {
  4082. value: true
  4083. });
  4084. exports.default = void 0;
  4085. /*
  4086. * @Author : LQ
  4087. * @Description :
  4088. * @version : 1.0
  4089. * @Date : 2021-08-20 16:44:21
  4090. * @LastAuthor : LQ
  4091. * @lastTime : 2021-08-20 17:22:07
  4092. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiperIndicator.js
  4093. */
  4094. var _default = {
  4095. // swiperIndicator 组件
  4096. swiperIndicator: {
  4097. length: 0,
  4098. current: 0,
  4099. indicatorActiveColor: '',
  4100. indicatorInactiveColor: '',
  4101. indicatorMode: 'line'
  4102. }
  4103. };
  4104. exports.default = _default;
  4105. /***/ }),
  4106. /***/ 145:
  4107. /*!*************************************************************************!*\
  4108. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/switch.js ***!
  4109. \*************************************************************************/
  4110. /*! no static exports found */
  4111. /***/ (function(module, exports, __webpack_require__) {
  4112. "use strict";
  4113. Object.defineProperty(exports, "__esModule", {
  4114. value: true
  4115. });
  4116. exports.default = void 0;
  4117. /*
  4118. * @Author : LQ
  4119. * @Description :
  4120. * @version : 1.0
  4121. * @Date : 2021-08-20 16:44:21
  4122. * @LastAuthor : LQ
  4123. * @lastTime : 2021-08-20 17:22:24
  4124. * @FilePath : /u-view2.0/uview-ui/libs/config/props/switch.js
  4125. */
  4126. var _default = {
  4127. // switch
  4128. switch: {
  4129. loading: false,
  4130. disabled: false,
  4131. size: 25,
  4132. activeColor: '#2979ff',
  4133. inactiveColor: '#ffffff',
  4134. value: false,
  4135. activeValue: true,
  4136. inactiveValue: false,
  4137. asyncChange: false,
  4138. space: 0
  4139. }
  4140. };
  4141. exports.default = _default;
  4142. /***/ }),
  4143. /***/ 146:
  4144. /*!*************************************************************************!*\
  4145. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/tabbar.js ***!
  4146. \*************************************************************************/
  4147. /*! no static exports found */
  4148. /***/ (function(module, exports, __webpack_require__) {
  4149. "use strict";
  4150. Object.defineProperty(exports, "__esModule", {
  4151. value: true
  4152. });
  4153. exports.default = void 0;
  4154. /*
  4155. * @Author : LQ
  4156. * @Description :
  4157. * @version : 1.0
  4158. * @Date : 2021-08-20 16:44:21
  4159. * @LastAuthor : LQ
  4160. * @lastTime : 2021-08-20 17:22:40
  4161. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbar.js
  4162. */
  4163. var _default = {
  4164. // tabbar
  4165. tabbar: {
  4166. value: null,
  4167. safeAreaInsetBottom: true,
  4168. border: true,
  4169. zIndex: 1,
  4170. activeColor: '#1989fa',
  4171. inactiveColor: '#7d7e80',
  4172. fixed: true,
  4173. placeholder: true
  4174. }
  4175. };
  4176. exports.default = _default;
  4177. /***/ }),
  4178. /***/ 147:
  4179. /*!*****************************************************************************!*\
  4180. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/tabbarItem.js ***!
  4181. \*****************************************************************************/
  4182. /*! no static exports found */
  4183. /***/ (function(module, exports, __webpack_require__) {
  4184. "use strict";
  4185. Object.defineProperty(exports, "__esModule", {
  4186. value: true
  4187. });
  4188. exports.default = void 0;
  4189. /*
  4190. * @Author : LQ
  4191. * @Description :
  4192. * @version : 1.0
  4193. * @Date : 2021-08-20 16:44:21
  4194. * @LastAuthor : LQ
  4195. * @lastTime : 2021-08-20 17:22:55
  4196. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbarItem.js
  4197. */
  4198. var _default = {
  4199. //
  4200. tabbarItem: {
  4201. name: null,
  4202. icon: '',
  4203. badge: null,
  4204. dot: false,
  4205. text: '',
  4206. badgeStyle: 'top: 6px;right:2px;'
  4207. }
  4208. };
  4209. exports.default = _default;
  4210. /***/ }),
  4211. /***/ 148:
  4212. /*!***********************************************************************!*\
  4213. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/tabs.js ***!
  4214. \***********************************************************************/
  4215. /*! no static exports found */
  4216. /***/ (function(module, exports, __webpack_require__) {
  4217. "use strict";
  4218. Object.defineProperty(exports, "__esModule", {
  4219. value: true
  4220. });
  4221. exports.default = void 0;
  4222. /*
  4223. * @Author : LQ
  4224. * @Description :
  4225. * @version : 1.0
  4226. * @Date : 2021-08-20 16:44:21
  4227. * @LastAuthor : LQ
  4228. * @lastTime : 2021-08-20 17:23:14
  4229. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabs.js
  4230. */
  4231. var _default = {
  4232. //
  4233. tabs: {
  4234. duration: 300,
  4235. list: function list() {
  4236. return [];
  4237. },
  4238. lineColor: '#3c9cff',
  4239. activeStyle: function activeStyle() {
  4240. return {
  4241. color: '#303133'
  4242. };
  4243. },
  4244. inactiveStyle: function inactiveStyle() {
  4245. return {
  4246. color: '#606266'
  4247. };
  4248. },
  4249. lineWidth: 20,
  4250. lineHeight: 3,
  4251. lineBgSize: 'cover',
  4252. itemStyle: function itemStyle() {
  4253. return {
  4254. height: '44px'
  4255. };
  4256. },
  4257. scrollable: true,
  4258. current: 0,
  4259. keyName: 'name'
  4260. }
  4261. };
  4262. exports.default = _default;
  4263. /***/ }),
  4264. /***/ 149:
  4265. /*!**********************************************************************!*\
  4266. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/tag.js ***!
  4267. \**********************************************************************/
  4268. /*! no static exports found */
  4269. /***/ (function(module, exports, __webpack_require__) {
  4270. "use strict";
  4271. Object.defineProperty(exports, "__esModule", {
  4272. value: true
  4273. });
  4274. exports.default = void 0;
  4275. /*
  4276. * @Author : LQ
  4277. * @Description :
  4278. * @version : 1.0
  4279. * @Date : 2021-08-20 16:44:21
  4280. * @LastAuthor : LQ
  4281. * @lastTime : 2021-08-20 17:23:37
  4282. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tag.js
  4283. */
  4284. var _default = {
  4285. // tag 组件
  4286. tag: {
  4287. type: 'primary',
  4288. disabled: false,
  4289. size: 'medium',
  4290. shape: 'square',
  4291. text: '',
  4292. bgColor: '',
  4293. color: '',
  4294. borderColor: '',
  4295. closeColor: '#C6C7CB',
  4296. name: '',
  4297. plainFill: false,
  4298. plain: false,
  4299. closable: false,
  4300. show: true,
  4301. icon: ''
  4302. }
  4303. };
  4304. exports.default = _default;
  4305. /***/ }),
  4306. /***/ 15:
  4307. /*!**********************************************************!*\
  4308. !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  4309. \**********************************************************/
  4310. /*! no static exports found */
  4311. /***/ (function(module, exports, __webpack_require__) {
  4312. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  4313. var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 17);
  4314. function _construct(t, e, r) {
  4315. if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
  4316. var o = [null];
  4317. o.push.apply(o, e);
  4318. var p = new (t.bind.apply(t, o))();
  4319. return r && setPrototypeOf(p, r.prototype), p;
  4320. }
  4321. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  4322. /***/ }),
  4323. /***/ 150:
  4324. /*!***********************************************************************!*\
  4325. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/text.js ***!
  4326. \***********************************************************************/
  4327. /*! no static exports found */
  4328. /***/ (function(module, exports, __webpack_require__) {
  4329. "use strict";
  4330. Object.defineProperty(exports, "__esModule", {
  4331. value: true
  4332. });
  4333. exports.default = void 0;
  4334. /*
  4335. * @Author : LQ
  4336. * @Description :
  4337. * @version : 1.0
  4338. * @Date : 2021-08-20 16:44:21
  4339. * @LastAuthor : LQ
  4340. * @lastTime : 2021-08-20 17:23:58
  4341. * @FilePath : /u-view2.0/uview-ui/libs/config/props/text.js
  4342. */
  4343. var _default = {
  4344. // text 组件
  4345. text: {
  4346. type: '',
  4347. show: true,
  4348. text: '',
  4349. prefixIcon: '',
  4350. suffixIcon: '',
  4351. mode: '',
  4352. href: '',
  4353. format: '',
  4354. call: false,
  4355. openType: '',
  4356. bold: false,
  4357. block: false,
  4358. lines: '',
  4359. color: '#303133',
  4360. size: 15,
  4361. iconStyle: function iconStyle() {
  4362. return {
  4363. fontSize: '15px'
  4364. };
  4365. },
  4366. decoration: 'none',
  4367. margin: 0,
  4368. lineHeight: '',
  4369. align: 'left',
  4370. wordWrap: 'normal'
  4371. }
  4372. };
  4373. exports.default = _default;
  4374. /***/ }),
  4375. /***/ 151:
  4376. /*!***************************************************************************!*\
  4377. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/textarea.js ***!
  4378. \***************************************************************************/
  4379. /*! no static exports found */
  4380. /***/ (function(module, exports, __webpack_require__) {
  4381. "use strict";
  4382. Object.defineProperty(exports, "__esModule", {
  4383. value: true
  4384. });
  4385. exports.default = void 0;
  4386. /*
  4387. * @Author : LQ
  4388. * @Description :
  4389. * @version : 1.0
  4390. * @Date : 2021-08-20 16:44:21
  4391. * @LastAuthor : LQ
  4392. * @lastTime : 2021-08-20 17:24:32
  4393. * @FilePath : /u-view2.0/uview-ui/libs/config/props/textarea.js
  4394. */
  4395. var _default = {
  4396. // textarea 组件
  4397. textarea: {
  4398. value: '',
  4399. placeholder: '',
  4400. placeholderClass: 'textarea-placeholder',
  4401. placeholderStyle: 'color: #c0c4cc',
  4402. height: 70,
  4403. confirmType: 'done',
  4404. disabled: false,
  4405. count: false,
  4406. focus: false,
  4407. autoHeight: false,
  4408. fixed: false,
  4409. cursorSpacing: 0,
  4410. cursor: '',
  4411. showConfirmBar: true,
  4412. selectionStart: -1,
  4413. selectionEnd: -1,
  4414. adjustPosition: true,
  4415. disableDefaultPadding: false,
  4416. holdKeyboard: false,
  4417. maxlength: 140,
  4418. border: 'surround',
  4419. formatter: null
  4420. }
  4421. };
  4422. exports.default = _default;
  4423. /***/ }),
  4424. /***/ 152:
  4425. /*!************************************************************************!*\
  4426. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/toast.js ***!
  4427. \************************************************************************/
  4428. /*! no static exports found */
  4429. /***/ (function(module, exports, __webpack_require__) {
  4430. "use strict";
  4431. Object.defineProperty(exports, "__esModule", {
  4432. value: true
  4433. });
  4434. exports.default = void 0;
  4435. /*
  4436. * @Author : LQ
  4437. * @Description :
  4438. * @version : 1.0
  4439. * @Date : 2021-08-20 16:44:21
  4440. * @LastAuthor : LQ
  4441. * @lastTime : 2021-08-20 17:07:07
  4442. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toast.js
  4443. */
  4444. var _default = {
  4445. // toast组件
  4446. toast: {
  4447. zIndex: 10090,
  4448. loading: false,
  4449. text: '',
  4450. icon: '',
  4451. type: '',
  4452. loadingMode: '',
  4453. show: '',
  4454. overlay: false,
  4455. position: 'center',
  4456. params: function params() {},
  4457. duration: 2000,
  4458. isTab: false,
  4459. url: '',
  4460. callback: null,
  4461. back: false
  4462. }
  4463. };
  4464. exports.default = _default;
  4465. /***/ }),
  4466. /***/ 153:
  4467. /*!**************************************************************************!*\
  4468. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/toolbar.js ***!
  4469. \**************************************************************************/
  4470. /*! no static exports found */
  4471. /***/ (function(module, exports, __webpack_require__) {
  4472. "use strict";
  4473. Object.defineProperty(exports, "__esModule", {
  4474. value: true
  4475. });
  4476. exports.default = void 0;
  4477. /*
  4478. * @Author : LQ
  4479. * @Description :
  4480. * @version : 1.0
  4481. * @Date : 2021-08-20 16:44:21
  4482. * @LastAuthor : LQ
  4483. * @lastTime : 2021-08-20 17:24:55
  4484. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toolbar.js
  4485. */
  4486. var _default = {
  4487. // toolbar 组件
  4488. toolbar: {
  4489. show: true,
  4490. cancelText: '取消',
  4491. confirmText: '确认',
  4492. cancelColor: '#909193',
  4493. confirmColor: '#3c9cff',
  4494. title: ''
  4495. }
  4496. };
  4497. exports.default = _default;
  4498. /***/ }),
  4499. /***/ 154:
  4500. /*!**************************************************************************!*\
  4501. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/tooltip.js ***!
  4502. \**************************************************************************/
  4503. /*! no static exports found */
  4504. /***/ (function(module, exports, __webpack_require__) {
  4505. "use strict";
  4506. Object.defineProperty(exports, "__esModule", {
  4507. value: true
  4508. });
  4509. exports.default = void 0;
  4510. /*
  4511. * @Author : LQ
  4512. * @Description :
  4513. * @version : 1.0
  4514. * @Date : 2021-08-20 16:44:21
  4515. * @LastAuthor : LQ
  4516. * @lastTime : 2021-08-20 17:25:14
  4517. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tooltip.js
  4518. */
  4519. var _default = {
  4520. // tooltip 组件
  4521. tooltip: {
  4522. text: '',
  4523. copyText: '',
  4524. size: 14,
  4525. color: '#606266',
  4526. bgColor: 'transparent',
  4527. direction: 'top',
  4528. zIndex: 10071,
  4529. showCopy: true,
  4530. buttons: function buttons() {
  4531. return [];
  4532. },
  4533. overlay: true,
  4534. showToast: true
  4535. }
  4536. };
  4537. exports.default = _default;
  4538. /***/ }),
  4539. /***/ 155:
  4540. /*!*****************************************************************************!*\
  4541. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/transition.js ***!
  4542. \*****************************************************************************/
  4543. /*! no static exports found */
  4544. /***/ (function(module, exports, __webpack_require__) {
  4545. "use strict";
  4546. Object.defineProperty(exports, "__esModule", {
  4547. value: true
  4548. });
  4549. exports.default = void 0;
  4550. /*
  4551. * @Author : LQ
  4552. * @Description :
  4553. * @version : 1.0
  4554. * @Date : 2021-08-20 16:44:21
  4555. * @LastAuthor : LQ
  4556. * @lastTime : 2021-08-20 16:59:00
  4557. * @FilePath : /u-view2.0/uview-ui/libs/config/props/transition.js
  4558. */
  4559. var _default = {
  4560. // transition动画组件的props
  4561. transition: {
  4562. show: false,
  4563. mode: 'fade',
  4564. duration: '300',
  4565. timingFunction: 'ease-out'
  4566. }
  4567. };
  4568. exports.default = _default;
  4569. /***/ }),
  4570. /***/ 156:
  4571. /*!*************************************************************************!*\
  4572. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/upload.js ***!
  4573. \*************************************************************************/
  4574. /*! no static exports found */
  4575. /***/ (function(module, exports, __webpack_require__) {
  4576. "use strict";
  4577. Object.defineProperty(exports, "__esModule", {
  4578. value: true
  4579. });
  4580. exports.default = void 0;
  4581. /*
  4582. * @Author : LQ
  4583. * @Description :
  4584. * @version : 1.0
  4585. * @Date : 2021-08-20 16:44:21
  4586. * @LastAuthor : LQ
  4587. * @lastTime : 2021-08-20 17:09:50
  4588. * @FilePath : /u-view2.0/uview-ui/libs/config/props/upload.js
  4589. */
  4590. var _default = {
  4591. // upload组件
  4592. upload: {
  4593. accept: 'image',
  4594. capture: function capture() {
  4595. return ['album', 'camera'];
  4596. },
  4597. compressed: true,
  4598. camera: 'back',
  4599. maxDuration: 60,
  4600. uploadIcon: 'camera-fill',
  4601. uploadIconColor: '#D3D4D6',
  4602. useBeforeRead: false,
  4603. previewFullImage: true,
  4604. maxCount: 52,
  4605. disabled: false,
  4606. imageMode: 'aspectFill',
  4607. name: '',
  4608. sizeType: function sizeType() {
  4609. return ['original', 'compressed'];
  4610. },
  4611. multiple: false,
  4612. deletable: true,
  4613. maxSize: Number.MAX_VALUE,
  4614. fileList: function fileList() {
  4615. return [];
  4616. },
  4617. uploadText: '',
  4618. width: 80,
  4619. height: 80,
  4620. previewImage: true
  4621. }
  4622. };
  4623. exports.default = _default;
  4624. /***/ }),
  4625. /***/ 157:
  4626. /*!*******************************************************************!*\
  4627. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/zIndex.js ***!
  4628. \*******************************************************************/
  4629. /*! no static exports found */
  4630. /***/ (function(module, exports, __webpack_require__) {
  4631. "use strict";
  4632. Object.defineProperty(exports, "__esModule", {
  4633. value: true
  4634. });
  4635. exports.default = void 0;
  4636. // uniapp在H5中各API的z-index值如下:
  4637. /**
  4638. * actionsheet: 999
  4639. * modal: 999
  4640. * navigate: 998
  4641. * tabbar: 998
  4642. * toast: 999
  4643. */
  4644. var _default = {
  4645. toast: 10090,
  4646. noNetwork: 10080,
  4647. // popup包含popup,actionsheet,keyboard,picker的值
  4648. popup: 10075,
  4649. mask: 10070,
  4650. navbar: 980,
  4651. topTips: 975,
  4652. sticky: 970,
  4653. indexListSticky: 965
  4654. };
  4655. exports.default = _default;
  4656. /***/ }),
  4657. /***/ 158:
  4658. /*!***********************************************************************!*\
  4659. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/function/platform.js ***!
  4660. \***********************************************************************/
  4661. /*! no static exports found */
  4662. /***/ (function(module, exports, __webpack_require__) {
  4663. "use strict";
  4664. Object.defineProperty(exports, "__esModule", {
  4665. value: true
  4666. });
  4667. exports.default = void 0;
  4668. /**
  4669. * 注意:
  4670. * 此部分内容,在vue-cli模式下,需要在vue.config.js加入如下内容才有效:
  4671. * module.exports = {
  4672. * transpileDependencies: ['uview-v2']
  4673. * }
  4674. */
  4675. var platform = 'none';
  4676. platform = 'vue2';
  4677. platform = 'weixin';
  4678. platform = 'mp';
  4679. var _default = platform;
  4680. exports.default = _default;
  4681. /***/ }),
  4682. /***/ 159:
  4683. /*!****************************************************!*\
  4684. !*** ./node_modules/vue-i18n/dist/vue-i18n.esm.js ***!
  4685. \****************************************************/
  4686. /*! exports provided: default */
  4687. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4688. "use strict";
  4689. __webpack_require__.r(__webpack_exports__);
  4690. /*!
  4691. * vue-i18n v8.28.2
  4692. * (c) 2022 kazuya kawaguchi
  4693. * Released under the MIT License.
  4694. */
  4695. /* */
  4696. /**
  4697. * constants
  4698. */
  4699. var numberFormatKeys = [
  4700. 'compactDisplay',
  4701. 'currency',
  4702. 'currencyDisplay',
  4703. 'currencySign',
  4704. 'localeMatcher',
  4705. 'notation',
  4706. 'numberingSystem',
  4707. 'signDisplay',
  4708. 'style',
  4709. 'unit',
  4710. 'unitDisplay',
  4711. 'useGrouping',
  4712. 'minimumIntegerDigits',
  4713. 'minimumFractionDigits',
  4714. 'maximumFractionDigits',
  4715. 'minimumSignificantDigits',
  4716. 'maximumSignificantDigits'
  4717. ];
  4718. var dateTimeFormatKeys = [
  4719. 'dateStyle',
  4720. 'timeStyle',
  4721. 'calendar',
  4722. 'localeMatcher',
  4723. "hour12",
  4724. "hourCycle",
  4725. "timeZone",
  4726. "formatMatcher",
  4727. 'weekday',
  4728. 'era',
  4729. 'year',
  4730. 'month',
  4731. 'day',
  4732. 'hour',
  4733. 'minute',
  4734. 'second',
  4735. 'timeZoneName' ];
  4736. /**
  4737. * utilities
  4738. */
  4739. function warn (msg, err) {
  4740. if (typeof console !== 'undefined') {
  4741. console.warn('[vue-i18n] ' + msg);
  4742. /* istanbul ignore if */
  4743. if (err) {
  4744. console.warn(err.stack);
  4745. }
  4746. }
  4747. }
  4748. function error (msg, err) {
  4749. if (typeof console !== 'undefined') {
  4750. console.error('[vue-i18n] ' + msg);
  4751. /* istanbul ignore if */
  4752. if (err) {
  4753. console.error(err.stack);
  4754. }
  4755. }
  4756. }
  4757. var isArray = Array.isArray;
  4758. function isObject (obj) {
  4759. return obj !== null && typeof obj === 'object'
  4760. }
  4761. function isBoolean (val) {
  4762. return typeof val === 'boolean'
  4763. }
  4764. function isString (val) {
  4765. return typeof val === 'string'
  4766. }
  4767. var toString = Object.prototype.toString;
  4768. var OBJECT_STRING = '[object Object]';
  4769. function isPlainObject (obj) {
  4770. return toString.call(obj) === OBJECT_STRING
  4771. }
  4772. function isNull (val) {
  4773. return val === null || val === undefined
  4774. }
  4775. function isFunction (val) {
  4776. return typeof val === 'function'
  4777. }
  4778. function parseArgs () {
  4779. var args = [], len = arguments.length;
  4780. while ( len-- ) args[ len ] = arguments[ len ];
  4781. var locale = null;
  4782. var params = null;
  4783. if (args.length === 1) {
  4784. if (isObject(args[0]) || isArray(args[0])) {
  4785. params = args[0];
  4786. } else if (typeof args[0] === 'string') {
  4787. locale = args[0];
  4788. }
  4789. } else if (args.length === 2) {
  4790. if (typeof args[0] === 'string') {
  4791. locale = args[0];
  4792. }
  4793. /* istanbul ignore if */
  4794. if (isObject(args[1]) || isArray(args[1])) {
  4795. params = args[1];
  4796. }
  4797. }
  4798. return { locale: locale, params: params }
  4799. }
  4800. function looseClone (obj) {
  4801. return JSON.parse(JSON.stringify(obj))
  4802. }
  4803. function remove (arr, item) {
  4804. if (arr.delete(item)) {
  4805. return arr
  4806. }
  4807. }
  4808. function arrayFrom (arr) {
  4809. var ret = [];
  4810. arr.forEach(function (a) { return ret.push(a); });
  4811. return ret
  4812. }
  4813. function includes (arr, item) {
  4814. return !!~arr.indexOf(item)
  4815. }
  4816. var hasOwnProperty = Object.prototype.hasOwnProperty;
  4817. function hasOwn (obj, key) {
  4818. return hasOwnProperty.call(obj, key)
  4819. }
  4820. function merge (target) {
  4821. var arguments$1 = arguments;
  4822. var output = Object(target);
  4823. for (var i = 1; i < arguments.length; i++) {
  4824. var source = arguments$1[i];
  4825. if (source !== undefined && source !== null) {
  4826. var key = (void 0);
  4827. for (key in source) {
  4828. if (hasOwn(source, key)) {
  4829. if (isObject(source[key])) {
  4830. output[key] = merge(output[key], source[key]);
  4831. } else {
  4832. output[key] = source[key];
  4833. }
  4834. }
  4835. }
  4836. }
  4837. }
  4838. return output
  4839. }
  4840. function looseEqual (a, b) {
  4841. if (a === b) { return true }
  4842. var isObjectA = isObject(a);
  4843. var isObjectB = isObject(b);
  4844. if (isObjectA && isObjectB) {
  4845. try {
  4846. var isArrayA = isArray(a);
  4847. var isArrayB = isArray(b);
  4848. if (isArrayA && isArrayB) {
  4849. return a.length === b.length && a.every(function (e, i) {
  4850. return looseEqual(e, b[i])
  4851. })
  4852. } else if (!isArrayA && !isArrayB) {
  4853. var keysA = Object.keys(a);
  4854. var keysB = Object.keys(b);
  4855. return keysA.length === keysB.length && keysA.every(function (key) {
  4856. return looseEqual(a[key], b[key])
  4857. })
  4858. } else {
  4859. /* istanbul ignore next */
  4860. return false
  4861. }
  4862. } catch (e) {
  4863. /* istanbul ignore next */
  4864. return false
  4865. }
  4866. } else if (!isObjectA && !isObjectB) {
  4867. return String(a) === String(b)
  4868. } else {
  4869. return false
  4870. }
  4871. }
  4872. /**
  4873. * Sanitizes html special characters from input strings. For mitigating risk of XSS attacks.
  4874. * @param rawText The raw input from the user that should be escaped.
  4875. */
  4876. function escapeHtml(rawText) {
  4877. return rawText
  4878. .replace(/</g, '&lt;')
  4879. .replace(/>/g, '&gt;')
  4880. .replace(/"/g, '&quot;')
  4881. .replace(/'/g, '&apos;')
  4882. }
  4883. /**
  4884. * Escapes html tags and special symbols from all provided params which were returned from parseArgs().params.
  4885. * This method performs an in-place operation on the params object.
  4886. *
  4887. * @param {any} params Parameters as provided from `parseArgs().params`.
  4888. * May be either an array of strings or a string->any map.
  4889. *
  4890. * @returns The manipulated `params` object.
  4891. */
  4892. function escapeParams(params) {
  4893. if(params != null) {
  4894. Object.keys(params).forEach(function (key) {
  4895. if(typeof(params[key]) == 'string') {
  4896. params[key] = escapeHtml(params[key]);
  4897. }
  4898. });
  4899. }
  4900. return params
  4901. }
  4902. /* */
  4903. function extend (Vue) {
  4904. if (!Vue.prototype.hasOwnProperty('$i18n')) {
  4905. // $FlowFixMe
  4906. Object.defineProperty(Vue.prototype, '$i18n', {
  4907. get: function get () { return this._i18n }
  4908. });
  4909. }
  4910. Vue.prototype.$t = function (key) {
  4911. var values = [], len = arguments.length - 1;
  4912. while ( len-- > 0 ) values[ len ] = arguments[ len + 1 ];
  4913. var i18n = this.$i18n;
  4914. return i18n._t.apply(i18n, [ key, i18n.locale, i18n._getMessages(), this ].concat( values ))
  4915. };
  4916. Vue.prototype.$tc = function (key, choice) {
  4917. var values = [], len = arguments.length - 2;
  4918. while ( len-- > 0 ) values[ len ] = arguments[ len + 2 ];
  4919. var i18n = this.$i18n;
  4920. return i18n._tc.apply(i18n, [ key, i18n.locale, i18n._getMessages(), this, choice ].concat( values ))
  4921. };
  4922. Vue.prototype.$te = function (key, locale) {
  4923. var i18n = this.$i18n;
  4924. return i18n._te(key, i18n.locale, i18n._getMessages(), locale)
  4925. };
  4926. Vue.prototype.$d = function (value) {
  4927. var ref;
  4928. var args = [], len = arguments.length - 1;
  4929. while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];
  4930. return (ref = this.$i18n).d.apply(ref, [ value ].concat( args ))
  4931. };
  4932. Vue.prototype.$n = function (value) {
  4933. var ref;
  4934. var args = [], len = arguments.length - 1;
  4935. while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];
  4936. return (ref = this.$i18n).n.apply(ref, [ value ].concat( args ))
  4937. };
  4938. }
  4939. /* */
  4940. /**
  4941. * Mixin
  4942. *
  4943. * If `bridge` mode, empty mixin is returned,
  4944. * else regulary mixin implementation is returned.
  4945. */
  4946. function defineMixin (bridge) {
  4947. if ( bridge === void 0 ) bridge = false;
  4948. function mounted () {
  4949. if (this !== this.$root && this.$options.__INTLIFY_META__ && this.$el) {
  4950. this.$el.setAttribute('data-intlify', this.$options.__INTLIFY_META__);
  4951. }
  4952. }
  4953. return bridge
  4954. ? { mounted: mounted } // delegate `vue-i18n-bridge` mixin implementation
  4955. : { // regulary
  4956. beforeCreate: function beforeCreate () {
  4957. var options = this.$options;
  4958. options.i18n = options.i18n || ((options.__i18nBridge || options.__i18n) ? {} : null);
  4959. if (options.i18n) {
  4960. if (options.i18n instanceof VueI18n) {
  4961. // init locale messages via custom blocks
  4962. if ((options.__i18nBridge || options.__i18n)) {
  4963. try {
  4964. var localeMessages = options.i18n && options.i18n.messages ? options.i18n.messages : {};
  4965. var _i18n = options.__i18nBridge || options.__i18n;
  4966. _i18n.forEach(function (resource) {
  4967. localeMessages = merge(localeMessages, JSON.parse(resource));
  4968. });
  4969. Object.keys(localeMessages).forEach(function (locale) {
  4970. options.i18n.mergeLocaleMessage(locale, localeMessages[locale]);
  4971. });
  4972. } catch (e) {
  4973. if (true) {
  4974. error("Cannot parse locale messages via custom blocks.", e);
  4975. }
  4976. }
  4977. }
  4978. this._i18n = options.i18n;
  4979. this._i18nWatcher = this._i18n.watchI18nData();
  4980. } else if (isPlainObject(options.i18n)) {
  4981. var rootI18n = this.$root && this.$root.$i18n && this.$root.$i18n instanceof VueI18n
  4982. ? this.$root.$i18n
  4983. : null;
  4984. // component local i18n
  4985. if (rootI18n) {
  4986. options.i18n.root = this.$root;
  4987. options.i18n.formatter = rootI18n.formatter;
  4988. options.i18n.fallbackLocale = rootI18n.fallbackLocale;
  4989. options.i18n.formatFallbackMessages = rootI18n.formatFallbackMessages;
  4990. options.i18n.silentTranslationWarn = rootI18n.silentTranslationWarn;
  4991. options.i18n.silentFallbackWarn = rootI18n.silentFallbackWarn;
  4992. options.i18n.pluralizationRules = rootI18n.pluralizationRules;
  4993. options.i18n.preserveDirectiveContent = rootI18n.preserveDirectiveContent;
  4994. }
  4995. // init locale messages via custom blocks
  4996. if ((options.__i18nBridge || options.__i18n)) {
  4997. try {
  4998. var localeMessages$1 = options.i18n && options.i18n.messages ? options.i18n.messages : {};
  4999. var _i18n$1 = options.__i18nBridge || options.__i18n;
  5000. _i18n$1.forEach(function (resource) {
  5001. localeMessages$1 = merge(localeMessages$1, JSON.parse(resource));
  5002. });
  5003. options.i18n.messages = localeMessages$1;
  5004. } catch (e) {
  5005. if (true) {
  5006. warn("Cannot parse locale messages via custom blocks.", e);
  5007. }
  5008. }
  5009. }
  5010. var ref = options.i18n;
  5011. var sharedMessages = ref.sharedMessages;
  5012. if (sharedMessages && isPlainObject(sharedMessages)) {
  5013. options.i18n.messages = merge(options.i18n.messages, sharedMessages);
  5014. }
  5015. this._i18n = new VueI18n(options.i18n);
  5016. this._i18nWatcher = this._i18n.watchI18nData();
  5017. if (options.i18n.sync === undefined || !!options.i18n.sync) {
  5018. this._localeWatcher = this.$i18n.watchLocale();
  5019. }
  5020. if (rootI18n) {
  5021. rootI18n.onComponentInstanceCreated(this._i18n);
  5022. }
  5023. } else {
  5024. if (true) {
  5025. warn("Cannot be interpreted 'i18n' option.");
  5026. }
  5027. }
  5028. } else if (this.$root && this.$root.$i18n && this.$root.$i18n instanceof VueI18n) {
  5029. // root i18n
  5030. this._i18n = this.$root.$i18n;
  5031. } else if (options.parent && options.parent.$i18n && options.parent.$i18n instanceof VueI18n) {
  5032. // parent i18n
  5033. this._i18n = options.parent.$i18n;
  5034. }
  5035. },
  5036. beforeMount: function beforeMount () {
  5037. var options = this.$options;
  5038. options.i18n = options.i18n || ((options.__i18nBridge || options.__i18n) ? {} : null);
  5039. if (options.i18n) {
  5040. if (options.i18n instanceof VueI18n) {
  5041. // init locale messages via custom blocks
  5042. this._i18n.subscribeDataChanging(this);
  5043. this._subscribing = true;
  5044. } else if (isPlainObject(options.i18n)) {
  5045. this._i18n.subscribeDataChanging(this);
  5046. this._subscribing = true;
  5047. } else {
  5048. if (true) {
  5049. warn("Cannot be interpreted 'i18n' option.");
  5050. }
  5051. }
  5052. } else if (this.$root && this.$root.$i18n && this.$root.$i18n instanceof VueI18n) {
  5053. this._i18n.subscribeDataChanging(this);
  5054. this._subscribing = true;
  5055. } else if (options.parent && options.parent.$i18n && options.parent.$i18n instanceof VueI18n) {
  5056. this._i18n.subscribeDataChanging(this);
  5057. this._subscribing = true;
  5058. }
  5059. },
  5060. mounted: mounted,
  5061. beforeDestroy: function beforeDestroy () {
  5062. if (!this._i18n) { return }
  5063. var self = this;
  5064. this.$nextTick(function () {
  5065. if (self._subscribing) {
  5066. self._i18n.unsubscribeDataChanging(self);
  5067. delete self._subscribing;
  5068. }
  5069. if (self._i18nWatcher) {
  5070. self._i18nWatcher();
  5071. self._i18n.destroyVM();
  5072. delete self._i18nWatcher;
  5073. }
  5074. if (self._localeWatcher) {
  5075. self._localeWatcher();
  5076. delete self._localeWatcher;
  5077. }
  5078. });
  5079. }
  5080. }
  5081. }
  5082. /* */
  5083. var interpolationComponent = {
  5084. name: 'i18n',
  5085. functional: true,
  5086. props: {
  5087. tag: {
  5088. type: [String, Boolean, Object],
  5089. default: 'span'
  5090. },
  5091. path: {
  5092. type: String,
  5093. required: true
  5094. },
  5095. locale: {
  5096. type: String
  5097. },
  5098. places: {
  5099. type: [Array, Object]
  5100. }
  5101. },
  5102. render: function render (h, ref) {
  5103. var data = ref.data;
  5104. var parent = ref.parent;
  5105. var props = ref.props;
  5106. var slots = ref.slots;
  5107. var $i18n = parent.$i18n;
  5108. if (!$i18n) {
  5109. if (true) {
  5110. warn('Cannot find VueI18n instance!');
  5111. }
  5112. return
  5113. }
  5114. var path = props.path;
  5115. var locale = props.locale;
  5116. var places = props.places;
  5117. var params = slots();
  5118. var children = $i18n.i(
  5119. path,
  5120. locale,
  5121. onlyHasDefaultPlace(params) || places
  5122. ? useLegacyPlaces(params.default, places)
  5123. : params
  5124. );
  5125. var tag = (!!props.tag && props.tag !== true) || props.tag === false ? props.tag : 'span';
  5126. return tag ? h(tag, data, children) : children
  5127. }
  5128. };
  5129. function onlyHasDefaultPlace (params) {
  5130. var prop;
  5131. for (prop in params) {
  5132. if (prop !== 'default') { return false }
  5133. }
  5134. return Boolean(prop)
  5135. }
  5136. function useLegacyPlaces (children, places) {
  5137. var params = places ? createParamsFromPlaces(places) : {};
  5138. if (!children) { return params }
  5139. // Filter empty text nodes
  5140. children = children.filter(function (child) {
  5141. return child.tag || child.text.trim() !== ''
  5142. });
  5143. var everyPlace = children.every(vnodeHasPlaceAttribute);
  5144. if ( true && everyPlace) {
  5145. warn('`place` attribute is deprecated in next major version. Please switch to Vue slots.');
  5146. }
  5147. return children.reduce(
  5148. everyPlace ? assignChildPlace : assignChildIndex,
  5149. params
  5150. )
  5151. }
  5152. function createParamsFromPlaces (places) {
  5153. if (true) {
  5154. warn('`places` prop is deprecated in next major version. Please switch to Vue slots.');
  5155. }
  5156. return Array.isArray(places)
  5157. ? places.reduce(assignChildIndex, {})
  5158. : Object.assign({}, places)
  5159. }
  5160. function assignChildPlace (params, child) {
  5161. if (child.data && child.data.attrs && child.data.attrs.place) {
  5162. params[child.data.attrs.place] = child;
  5163. }
  5164. return params
  5165. }
  5166. function assignChildIndex (params, child, index) {
  5167. params[index] = child;
  5168. return params
  5169. }
  5170. function vnodeHasPlaceAttribute (vnode) {
  5171. return Boolean(vnode.data && vnode.data.attrs && vnode.data.attrs.place)
  5172. }
  5173. /* */
  5174. var numberComponent = {
  5175. name: 'i18n-n',
  5176. functional: true,
  5177. props: {
  5178. tag: {
  5179. type: [String, Boolean, Object],
  5180. default: 'span'
  5181. },
  5182. value: {
  5183. type: Number,
  5184. required: true
  5185. },
  5186. format: {
  5187. type: [String, Object]
  5188. },
  5189. locale: {
  5190. type: String
  5191. }
  5192. },
  5193. render: function render (h, ref) {
  5194. var props = ref.props;
  5195. var parent = ref.parent;
  5196. var data = ref.data;
  5197. var i18n = parent.$i18n;
  5198. if (!i18n) {
  5199. if (true) {
  5200. warn('Cannot find VueI18n instance!');
  5201. }
  5202. return null
  5203. }
  5204. var key = null;
  5205. var options = null;
  5206. if (isString(props.format)) {
  5207. key = props.format;
  5208. } else if (isObject(props.format)) {
  5209. if (props.format.key) {
  5210. key = props.format.key;
  5211. }
  5212. // Filter out number format options only
  5213. options = Object.keys(props.format).reduce(function (acc, prop) {
  5214. var obj;
  5215. if (includes(numberFormatKeys, prop)) {
  5216. return Object.assign({}, acc, ( obj = {}, obj[prop] = props.format[prop], obj ))
  5217. }
  5218. return acc
  5219. }, null);
  5220. }
  5221. var locale = props.locale || i18n.locale;
  5222. var parts = i18n._ntp(props.value, locale, key, options);
  5223. var values = parts.map(function (part, index) {
  5224. var obj;
  5225. var slot = data.scopedSlots && data.scopedSlots[part.type];
  5226. return slot ? slot(( obj = {}, obj[part.type] = part.value, obj.index = index, obj.parts = parts, obj )) : part.value
  5227. });
  5228. var tag = (!!props.tag && props.tag !== true) || props.tag === false ? props.tag : 'span';
  5229. return tag
  5230. ? h(tag, {
  5231. attrs: data.attrs,
  5232. 'class': data['class'],
  5233. staticClass: data.staticClass
  5234. }, values)
  5235. : values
  5236. }
  5237. };
  5238. /* */
  5239. function bind (el, binding, vnode) {
  5240. if (!assert(el, vnode)) { return }
  5241. t(el, binding, vnode);
  5242. }
  5243. function update (el, binding, vnode, oldVNode) {
  5244. if (!assert(el, vnode)) { return }
  5245. var i18n = vnode.context.$i18n;
  5246. if (localeEqual(el, vnode) &&
  5247. (looseEqual(binding.value, binding.oldValue) &&
  5248. looseEqual(el._localeMessage, i18n.getLocaleMessage(i18n.locale)))) { return }
  5249. t(el, binding, vnode);
  5250. }
  5251. function unbind (el, binding, vnode, oldVNode) {
  5252. var vm = vnode.context;
  5253. if (!vm) {
  5254. warn('Vue instance does not exists in VNode context');
  5255. return
  5256. }
  5257. var i18n = vnode.context.$i18n || {};
  5258. if (!binding.modifiers.preserve && !i18n.preserveDirectiveContent) {
  5259. el.textContent = '';
  5260. }
  5261. el._vt = undefined;
  5262. delete el['_vt'];
  5263. el._locale = undefined;
  5264. delete el['_locale'];
  5265. el._localeMessage = undefined;
  5266. delete el['_localeMessage'];
  5267. }
  5268. function assert (el, vnode) {
  5269. var vm = vnode.context;
  5270. if (!vm) {
  5271. warn('Vue instance does not exists in VNode context');
  5272. return false
  5273. }
  5274. if (!vm.$i18n) {
  5275. warn('VueI18n instance does not exists in Vue instance');
  5276. return false
  5277. }
  5278. return true
  5279. }
  5280. function localeEqual (el, vnode) {
  5281. var vm = vnode.context;
  5282. return el._locale === vm.$i18n.locale
  5283. }
  5284. function t (el, binding, vnode) {
  5285. var ref$1, ref$2;
  5286. var value = binding.value;
  5287. var ref = parseValue(value);
  5288. var path = ref.path;
  5289. var locale = ref.locale;
  5290. var args = ref.args;
  5291. var choice = ref.choice;
  5292. if (!path && !locale && !args) {
  5293. warn('value type not supported');
  5294. return
  5295. }
  5296. if (!path) {
  5297. warn('`path` is required in v-t directive');
  5298. return
  5299. }
  5300. var vm = vnode.context;
  5301. if (choice != null) {
  5302. el._vt = el.textContent = (ref$1 = vm.$i18n).tc.apply(ref$1, [ path, choice ].concat( makeParams(locale, args) ));
  5303. } else {
  5304. el._vt = el.textContent = (ref$2 = vm.$i18n).t.apply(ref$2, [ path ].concat( makeParams(locale, args) ));
  5305. }
  5306. el._locale = vm.$i18n.locale;
  5307. el._localeMessage = vm.$i18n.getLocaleMessage(vm.$i18n.locale);
  5308. }
  5309. function parseValue (value) {
  5310. var path;
  5311. var locale;
  5312. var args;
  5313. var choice;
  5314. if (isString(value)) {
  5315. path = value;
  5316. } else if (isPlainObject(value)) {
  5317. path = value.path;
  5318. locale = value.locale;
  5319. args = value.args;
  5320. choice = value.choice;
  5321. }
  5322. return { path: path, locale: locale, args: args, choice: choice }
  5323. }
  5324. function makeParams (locale, args) {
  5325. var params = [];
  5326. locale && params.push(locale);
  5327. if (args && (Array.isArray(args) || isPlainObject(args))) {
  5328. params.push(args);
  5329. }
  5330. return params
  5331. }
  5332. var Vue;
  5333. function install (_Vue, options) {
  5334. if ( options === void 0 ) options = { bridge: false };
  5335. /* istanbul ignore if */
  5336. if ( true && install.installed && _Vue === Vue) {
  5337. warn('already installed.');
  5338. return
  5339. }
  5340. install.installed = true;
  5341. Vue = _Vue;
  5342. var version = (Vue.version && Number(Vue.version.split('.')[0])) || -1;
  5343. /* istanbul ignore if */
  5344. if ( true && version < 2) {
  5345. warn(("vue-i18n (" + (install.version) + ") need to use Vue 2.0 or later (Vue: " + (Vue.version) + ")."));
  5346. return
  5347. }
  5348. extend(Vue);
  5349. Vue.mixin(defineMixin(options.bridge));
  5350. Vue.directive('t', { bind: bind, update: update, unbind: unbind });
  5351. Vue.component(interpolationComponent.name, interpolationComponent);
  5352. Vue.component(numberComponent.name, numberComponent);
  5353. // use simple mergeStrategies to prevent i18n instance lose '__proto__'
  5354. var strats = Vue.config.optionMergeStrategies;
  5355. strats.i18n = function (parentVal, childVal) {
  5356. return childVal === undefined
  5357. ? parentVal
  5358. : childVal
  5359. };
  5360. }
  5361. /* */
  5362. var BaseFormatter = function BaseFormatter () {
  5363. this._caches = Object.create(null);
  5364. };
  5365. BaseFormatter.prototype.interpolate = function interpolate (message, values) {
  5366. if (!values) {
  5367. return [message]
  5368. }
  5369. var tokens = this._caches[message];
  5370. if (!tokens) {
  5371. tokens = parse(message);
  5372. this._caches[message] = tokens;
  5373. }
  5374. return compile(tokens, values)
  5375. };
  5376. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  5377. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  5378. function parse (format) {
  5379. var tokens = [];
  5380. var position = 0;
  5381. var text = '';
  5382. while (position < format.length) {
  5383. var char = format[position++];
  5384. if (char === '{') {
  5385. if (text) {
  5386. tokens.push({ type: 'text', value: text });
  5387. }
  5388. text = '';
  5389. var sub = '';
  5390. char = format[position++];
  5391. while (char !== undefined && char !== '}') {
  5392. sub += char;
  5393. char = format[position++];
  5394. }
  5395. var isClosed = char === '}';
  5396. var type = RE_TOKEN_LIST_VALUE.test(sub)
  5397. ? 'list'
  5398. : isClosed && RE_TOKEN_NAMED_VALUE.test(sub)
  5399. ? 'named'
  5400. : 'unknown';
  5401. tokens.push({ value: sub, type: type });
  5402. } else if (char === '%') {
  5403. // when found rails i18n syntax, skip text capture
  5404. if (format[(position)] !== '{') {
  5405. text += char;
  5406. }
  5407. } else {
  5408. text += char;
  5409. }
  5410. }
  5411. text && tokens.push({ type: 'text', value: text });
  5412. return tokens
  5413. }
  5414. function compile (tokens, values) {
  5415. var compiled = [];
  5416. var index = 0;
  5417. var mode = Array.isArray(values)
  5418. ? 'list'
  5419. : isObject(values)
  5420. ? 'named'
  5421. : 'unknown';
  5422. if (mode === 'unknown') { return compiled }
  5423. while (index < tokens.length) {
  5424. var token = tokens[index];
  5425. switch (token.type) {
  5426. case 'text':
  5427. compiled.push(token.value);
  5428. break
  5429. case 'list':
  5430. compiled.push(values[parseInt(token.value, 10)]);
  5431. break
  5432. case 'named':
  5433. if (mode === 'named') {
  5434. compiled.push((values)[token.value]);
  5435. } else {
  5436. if (true) {
  5437. warn(("Type of token '" + (token.type) + "' and format of value '" + mode + "' don't match!"));
  5438. }
  5439. }
  5440. break
  5441. case 'unknown':
  5442. if (true) {
  5443. warn("Detect 'unknown' type of token!");
  5444. }
  5445. break
  5446. }
  5447. index++;
  5448. }
  5449. return compiled
  5450. }
  5451. /* */
  5452. /**
  5453. * Path parser
  5454. * - Inspired:
  5455. * Vue.js Path parser
  5456. */
  5457. // actions
  5458. var APPEND = 0;
  5459. var PUSH = 1;
  5460. var INC_SUB_PATH_DEPTH = 2;
  5461. var PUSH_SUB_PATH = 3;
  5462. // states
  5463. var BEFORE_PATH = 0;
  5464. var IN_PATH = 1;
  5465. var BEFORE_IDENT = 2;
  5466. var IN_IDENT = 3;
  5467. var IN_SUB_PATH = 4;
  5468. var IN_SINGLE_QUOTE = 5;
  5469. var IN_DOUBLE_QUOTE = 6;
  5470. var AFTER_PATH = 7;
  5471. var ERROR = 8;
  5472. var pathStateMachine = [];
  5473. pathStateMachine[BEFORE_PATH] = {
  5474. 'ws': [BEFORE_PATH],
  5475. 'ident': [IN_IDENT, APPEND],
  5476. '[': [IN_SUB_PATH],
  5477. 'eof': [AFTER_PATH]
  5478. };
  5479. pathStateMachine[IN_PATH] = {
  5480. 'ws': [IN_PATH],
  5481. '.': [BEFORE_IDENT],
  5482. '[': [IN_SUB_PATH],
  5483. 'eof': [AFTER_PATH]
  5484. };
  5485. pathStateMachine[BEFORE_IDENT] = {
  5486. 'ws': [BEFORE_IDENT],
  5487. 'ident': [IN_IDENT, APPEND],
  5488. '0': [IN_IDENT, APPEND],
  5489. 'number': [IN_IDENT, APPEND]
  5490. };
  5491. pathStateMachine[IN_IDENT] = {
  5492. 'ident': [IN_IDENT, APPEND],
  5493. '0': [IN_IDENT, APPEND],
  5494. 'number': [IN_IDENT, APPEND],
  5495. 'ws': [IN_PATH, PUSH],
  5496. '.': [BEFORE_IDENT, PUSH],
  5497. '[': [IN_SUB_PATH, PUSH],
  5498. 'eof': [AFTER_PATH, PUSH]
  5499. };
  5500. pathStateMachine[IN_SUB_PATH] = {
  5501. "'": [IN_SINGLE_QUOTE, APPEND],
  5502. '"': [IN_DOUBLE_QUOTE, APPEND],
  5503. '[': [IN_SUB_PATH, INC_SUB_PATH_DEPTH],
  5504. ']': [IN_PATH, PUSH_SUB_PATH],
  5505. 'eof': ERROR,
  5506. 'else': [IN_SUB_PATH, APPEND]
  5507. };
  5508. pathStateMachine[IN_SINGLE_QUOTE] = {
  5509. "'": [IN_SUB_PATH, APPEND],
  5510. 'eof': ERROR,
  5511. 'else': [IN_SINGLE_QUOTE, APPEND]
  5512. };
  5513. pathStateMachine[IN_DOUBLE_QUOTE] = {
  5514. '"': [IN_SUB_PATH, APPEND],
  5515. 'eof': ERROR,
  5516. 'else': [IN_DOUBLE_QUOTE, APPEND]
  5517. };
  5518. /**
  5519. * Check if an expression is a literal value.
  5520. */
  5521. var literalValueRE = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
  5522. function isLiteral (exp) {
  5523. return literalValueRE.test(exp)
  5524. }
  5525. /**
  5526. * Strip quotes from a string
  5527. */
  5528. function stripQuotes (str) {
  5529. var a = str.charCodeAt(0);
  5530. var b = str.charCodeAt(str.length - 1);
  5531. return a === b && (a === 0x22 || a === 0x27)
  5532. ? str.slice(1, -1)
  5533. : str
  5534. }
  5535. /**
  5536. * Determine the type of a character in a keypath.
  5537. */
  5538. function getPathCharType (ch) {
  5539. if (ch === undefined || ch === null) { return 'eof' }
  5540. var code = ch.charCodeAt(0);
  5541. switch (code) {
  5542. case 0x5B: // [
  5543. case 0x5D: // ]
  5544. case 0x2E: // .
  5545. case 0x22: // "
  5546. case 0x27: // '
  5547. return ch
  5548. case 0x5F: // _
  5549. case 0x24: // $
  5550. case 0x2D: // -
  5551. return 'ident'
  5552. case 0x09: // Tab
  5553. case 0x0A: // Newline
  5554. case 0x0D: // Return
  5555. case 0xA0: // No-break space
  5556. case 0xFEFF: // Byte Order Mark
  5557. case 0x2028: // Line Separator
  5558. case 0x2029: // Paragraph Separator
  5559. return 'ws'
  5560. }
  5561. return 'ident'
  5562. }
  5563. /**
  5564. * Format a subPath, return its plain form if it is
  5565. * a literal string or number. Otherwise prepend the
  5566. * dynamic indicator (*).
  5567. */
  5568. function formatSubPath (path) {
  5569. var trimmed = path.trim();
  5570. // invalid leading 0
  5571. if (path.charAt(0) === '0' && isNaN(path)) { return false }
  5572. return isLiteral(trimmed) ? stripQuotes(trimmed) : '*' + trimmed
  5573. }
  5574. /**
  5575. * Parse a string path into an array of segments
  5576. */
  5577. function parse$1 (path) {
  5578. var keys = [];
  5579. var index = -1;
  5580. var mode = BEFORE_PATH;
  5581. var subPathDepth = 0;
  5582. var c;
  5583. var key;
  5584. var newChar;
  5585. var type;
  5586. var transition;
  5587. var action;
  5588. var typeMap;
  5589. var actions = [];
  5590. actions[PUSH] = function () {
  5591. if (key !== undefined) {
  5592. keys.push(key);
  5593. key = undefined;
  5594. }
  5595. };
  5596. actions[APPEND] = function () {
  5597. if (key === undefined) {
  5598. key = newChar;
  5599. } else {
  5600. key += newChar;
  5601. }
  5602. };
  5603. actions[INC_SUB_PATH_DEPTH] = function () {
  5604. actions[APPEND]();
  5605. subPathDepth++;
  5606. };
  5607. actions[PUSH_SUB_PATH] = function () {
  5608. if (subPathDepth > 0) {
  5609. subPathDepth--;
  5610. mode = IN_SUB_PATH;
  5611. actions[APPEND]();
  5612. } else {
  5613. subPathDepth = 0;
  5614. if (key === undefined) { return false }
  5615. key = formatSubPath(key);
  5616. if (key === false) {
  5617. return false
  5618. } else {
  5619. actions[PUSH]();
  5620. }
  5621. }
  5622. };
  5623. function maybeUnescapeQuote () {
  5624. var nextChar = path[index + 1];
  5625. if ((mode === IN_SINGLE_QUOTE && nextChar === "'") ||
  5626. (mode === IN_DOUBLE_QUOTE && nextChar === '"')) {
  5627. index++;
  5628. newChar = '\\' + nextChar;
  5629. actions[APPEND]();
  5630. return true
  5631. }
  5632. }
  5633. while (mode !== null) {
  5634. index++;
  5635. c = path[index];
  5636. if (c === '\\' && maybeUnescapeQuote()) {
  5637. continue
  5638. }
  5639. type = getPathCharType(c);
  5640. typeMap = pathStateMachine[mode];
  5641. transition = typeMap[type] || typeMap['else'] || ERROR;
  5642. if (transition === ERROR) {
  5643. return // parse error
  5644. }
  5645. mode = transition[0];
  5646. action = actions[transition[1]];
  5647. if (action) {
  5648. newChar = transition[2];
  5649. newChar = newChar === undefined
  5650. ? c
  5651. : newChar;
  5652. if (action() === false) {
  5653. return
  5654. }
  5655. }
  5656. if (mode === AFTER_PATH) {
  5657. return keys
  5658. }
  5659. }
  5660. }
  5661. var I18nPath = function I18nPath () {
  5662. this._cache = Object.create(null);
  5663. };
  5664. /**
  5665. * External parse that check for a cache hit first
  5666. */
  5667. I18nPath.prototype.parsePath = function parsePath (path) {
  5668. var hit = this._cache[path];
  5669. if (!hit) {
  5670. hit = parse$1(path);
  5671. if (hit) {
  5672. this._cache[path] = hit;
  5673. }
  5674. }
  5675. return hit || []
  5676. };
  5677. /**
  5678. * Get path value from path string
  5679. */
  5680. I18nPath.prototype.getPathValue = function getPathValue (obj, path) {
  5681. if (!isObject(obj)) { return null }
  5682. var paths = this.parsePath(path);
  5683. if (paths.length === 0) {
  5684. return null
  5685. } else {
  5686. var length = paths.length;
  5687. var last = obj;
  5688. var i = 0;
  5689. while (i < length) {
  5690. var value = last[paths[i]];
  5691. if (value === undefined || value === null) {
  5692. return null
  5693. }
  5694. last = value;
  5695. i++;
  5696. }
  5697. return last
  5698. }
  5699. };
  5700. /* */
  5701. var htmlTagMatcher = /<\/?[\w\s="/.':;#-\/]+>/;
  5702. var linkKeyMatcher = /(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g;
  5703. var linkKeyPrefixMatcher = /^@(?:\.([a-zA-Z]+))?:/;
  5704. var bracketsMatcher = /[()]/g;
  5705. var defaultModifiers = {
  5706. 'upper': function (str) { return str.toLocaleUpperCase(); },
  5707. 'lower': function (str) { return str.toLocaleLowerCase(); },
  5708. 'capitalize': function (str) { return ("" + (str.charAt(0).toLocaleUpperCase()) + (str.substr(1))); }
  5709. };
  5710. var defaultFormatter = new BaseFormatter();
  5711. var VueI18n = function VueI18n (options) {
  5712. var this$1 = this;
  5713. if ( options === void 0 ) options = {};
  5714. // Auto install if it is not done yet and `window` has `Vue`.
  5715. // To allow users to avoid auto-installation in some cases,
  5716. // this code should be placed here. See #290
  5717. /* istanbul ignore if */
  5718. if (!Vue && typeof window !== 'undefined' && window.Vue) {
  5719. install(window.Vue);
  5720. }
  5721. var locale = options.locale || 'en-US';
  5722. var fallbackLocale = options.fallbackLocale === false
  5723. ? false
  5724. : options.fallbackLocale || 'en-US';
  5725. var messages = options.messages || {};
  5726. var dateTimeFormats = options.dateTimeFormats || options.datetimeFormats || {};
  5727. var numberFormats = options.numberFormats || {};
  5728. this._vm = null;
  5729. this._formatter = options.formatter || defaultFormatter;
  5730. this._modifiers = options.modifiers || {};
  5731. this._missing = options.missing || null;
  5732. this._root = options.root || null;
  5733. this._sync = options.sync === undefined ? true : !!options.sync;
  5734. this._fallbackRoot = options.fallbackRoot === undefined
  5735. ? true
  5736. : !!options.fallbackRoot;
  5737. this._fallbackRootWithEmptyString = options.fallbackRootWithEmptyString === undefined
  5738. ? true
  5739. : !!options.fallbackRootWithEmptyString;
  5740. this._formatFallbackMessages = options.formatFallbackMessages === undefined
  5741. ? false
  5742. : !!options.formatFallbackMessages;
  5743. this._silentTranslationWarn = options.silentTranslationWarn === undefined
  5744. ? false
  5745. : options.silentTranslationWarn;
  5746. this._silentFallbackWarn = options.silentFallbackWarn === undefined
  5747. ? false
  5748. : !!options.silentFallbackWarn;
  5749. this._dateTimeFormatters = {};
  5750. this._numberFormatters = {};
  5751. this._path = new I18nPath();
  5752. this._dataListeners = new Set();
  5753. this._componentInstanceCreatedListener = options.componentInstanceCreatedListener || null;
  5754. this._preserveDirectiveContent = options.preserveDirectiveContent === undefined
  5755. ? false
  5756. : !!options.preserveDirectiveContent;
  5757. this.pluralizationRules = options.pluralizationRules || {};
  5758. this._warnHtmlInMessage = options.warnHtmlInMessage || 'off';
  5759. this._postTranslation = options.postTranslation || null;
  5760. this._escapeParameterHtml = options.escapeParameterHtml || false;
  5761. if ('__VUE_I18N_BRIDGE__' in options) {
  5762. this.__VUE_I18N_BRIDGE__ = options.__VUE_I18N_BRIDGE__;
  5763. }
  5764. /**
  5765. * @param choice {number} a choice index given by the input to $tc: `$tc('path.to.rule', choiceIndex)`
  5766. * @param choicesLength {number} an overall amount of available choices
  5767. * @returns a final choice index
  5768. */
  5769. this.getChoiceIndex = function (choice, choicesLength) {
  5770. var thisPrototype = Object.getPrototypeOf(this$1);
  5771. if (thisPrototype && thisPrototype.getChoiceIndex) {
  5772. var prototypeGetChoiceIndex = (thisPrototype.getChoiceIndex);
  5773. return (prototypeGetChoiceIndex).call(this$1, choice, choicesLength)
  5774. }
  5775. // Default (old) getChoiceIndex implementation - english-compatible
  5776. var defaultImpl = function (_choice, _choicesLength) {
  5777. _choice = Math.abs(_choice);
  5778. if (_choicesLength === 2) {
  5779. return _choice
  5780. ? _choice > 1
  5781. ? 1
  5782. : 0
  5783. : 1
  5784. }
  5785. return _choice ? Math.min(_choice, 2) : 0
  5786. };
  5787. if (this$1.locale in this$1.pluralizationRules) {
  5788. return this$1.pluralizationRules[this$1.locale].apply(this$1, [choice, choicesLength])
  5789. } else {
  5790. return defaultImpl(choice, choicesLength)
  5791. }
  5792. };
  5793. this._exist = function (message, key) {
  5794. if (!message || !key) { return false }
  5795. if (!isNull(this$1._path.getPathValue(message, key))) { return true }
  5796. // fallback for flat key
  5797. if (message[key]) { return true }
  5798. return false
  5799. };
  5800. if (this._warnHtmlInMessage === 'warn' || this._warnHtmlInMessage === 'error') {
  5801. Object.keys(messages).forEach(function (locale) {
  5802. this$1._checkLocaleMessage(locale, this$1._warnHtmlInMessage, messages[locale]);
  5803. });
  5804. }
  5805. this._initVM({
  5806. locale: locale,
  5807. fallbackLocale: fallbackLocale,
  5808. messages: messages,
  5809. dateTimeFormats: dateTimeFormats,
  5810. numberFormats: numberFormats
  5811. });
  5812. };
  5813. var prototypeAccessors = { vm: { configurable: true },messages: { configurable: true },dateTimeFormats: { configurable: true },numberFormats: { configurable: true },availableLocales: { configurable: true },locale: { configurable: true },fallbackLocale: { configurable: true },formatFallbackMessages: { configurable: true },missing: { configurable: true },formatter: { configurable: true },silentTranslationWarn: { configurable: true },silentFallbackWarn: { configurable: true },preserveDirectiveContent: { configurable: true },warnHtmlInMessage: { configurable: true },postTranslation: { configurable: true },sync: { configurable: true } };
  5814. VueI18n.prototype._checkLocaleMessage = function _checkLocaleMessage (locale, level, message) {
  5815. var paths = [];
  5816. var fn = function (level, locale, message, paths) {
  5817. if (isPlainObject(message)) {
  5818. Object.keys(message).forEach(function (key) {
  5819. var val = message[key];
  5820. if (isPlainObject(val)) {
  5821. paths.push(key);
  5822. paths.push('.');
  5823. fn(level, locale, val, paths);
  5824. paths.pop();
  5825. paths.pop();
  5826. } else {
  5827. paths.push(key);
  5828. fn(level, locale, val, paths);
  5829. paths.pop();
  5830. }
  5831. });
  5832. } else if (isArray(message)) {
  5833. message.forEach(function (item, index) {
  5834. if (isPlainObject(item)) {
  5835. paths.push(("[" + index + "]"));
  5836. paths.push('.');
  5837. fn(level, locale, item, paths);
  5838. paths.pop();
  5839. paths.pop();
  5840. } else {
  5841. paths.push(("[" + index + "]"));
  5842. fn(level, locale, item, paths);
  5843. paths.pop();
  5844. }
  5845. });
  5846. } else if (isString(message)) {
  5847. var ret = htmlTagMatcher.test(message);
  5848. if (ret) {
  5849. var msg = "Detected HTML in message '" + message + "' of keypath '" + (paths.join('')) + "' at '" + locale + "'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";
  5850. if (level === 'warn') {
  5851. warn(msg);
  5852. } else if (level === 'error') {
  5853. error(msg);
  5854. }
  5855. }
  5856. }
  5857. };
  5858. fn(level, locale, message, paths);
  5859. };
  5860. VueI18n.prototype._initVM = function _initVM (data) {
  5861. var silent = Vue.config.silent;
  5862. Vue.config.silent = true;
  5863. this._vm = new Vue({ data: data, __VUE18N__INSTANCE__: true });
  5864. Vue.config.silent = silent;
  5865. };
  5866. VueI18n.prototype.destroyVM = function destroyVM () {
  5867. this._vm.$destroy();
  5868. };
  5869. VueI18n.prototype.subscribeDataChanging = function subscribeDataChanging (vm) {
  5870. this._dataListeners.add(vm);
  5871. };
  5872. VueI18n.prototype.unsubscribeDataChanging = function unsubscribeDataChanging (vm) {
  5873. remove(this._dataListeners, vm);
  5874. };
  5875. VueI18n.prototype.watchI18nData = function watchI18nData () {
  5876. var this$1 = this;
  5877. return this._vm.$watch('$data', function () {
  5878. var listeners = arrayFrom(this$1._dataListeners);
  5879. var i = listeners.length;
  5880. while(i--) {
  5881. Vue.nextTick(function () {
  5882. listeners[i] && listeners[i].$forceUpdate();
  5883. });
  5884. }
  5885. }, { deep: true })
  5886. };
  5887. VueI18n.prototype.watchLocale = function watchLocale (composer) {
  5888. if (!composer) {
  5889. /* istanbul ignore if */
  5890. if (!this._sync || !this._root) { return null }
  5891. var target = this._vm;
  5892. return this._root.$i18n.vm.$watch('locale', function (val) {
  5893. target.$set(target, 'locale', val);
  5894. target.$forceUpdate();
  5895. }, { immediate: true })
  5896. } else {
  5897. // deal with vue-i18n-bridge
  5898. if (!this.__VUE_I18N_BRIDGE__) { return null }
  5899. var self = this;
  5900. var target$1 = this._vm;
  5901. return this.vm.$watch('locale', function (val) {
  5902. target$1.$set(target$1, 'locale', val);
  5903. if (self.__VUE_I18N_BRIDGE__ && composer) {
  5904. composer.locale.value = val;
  5905. }
  5906. target$1.$forceUpdate();
  5907. }, { immediate: true })
  5908. }
  5909. };
  5910. VueI18n.prototype.onComponentInstanceCreated = function onComponentInstanceCreated (newI18n) {
  5911. if (this._componentInstanceCreatedListener) {
  5912. this._componentInstanceCreatedListener(newI18n, this);
  5913. }
  5914. };
  5915. prototypeAccessors.vm.get = function () { return this._vm };
  5916. prototypeAccessors.messages.get = function () { return looseClone(this._getMessages()) };
  5917. prototypeAccessors.dateTimeFormats.get = function () { return looseClone(this._getDateTimeFormats()) };
  5918. prototypeAccessors.numberFormats.get = function () { return looseClone(this._getNumberFormats()) };
  5919. prototypeAccessors.availableLocales.get = function () { return Object.keys(this.messages).sort() };
  5920. prototypeAccessors.locale.get = function () { return this._vm.locale };
  5921. prototypeAccessors.locale.set = function (locale) {
  5922. this._vm.$set(this._vm, 'locale', locale);
  5923. };
  5924. prototypeAccessors.fallbackLocale.get = function () { return this._vm.fallbackLocale };
  5925. prototypeAccessors.fallbackLocale.set = function (locale) {
  5926. this._localeChainCache = {};
  5927. this._vm.$set(this._vm, 'fallbackLocale', locale);
  5928. };
  5929. prototypeAccessors.formatFallbackMessages.get = function () { return this._formatFallbackMessages };
  5930. prototypeAccessors.formatFallbackMessages.set = function (fallback) { this._formatFallbackMessages = fallback; };
  5931. prototypeAccessors.missing.get = function () { return this._missing };
  5932. prototypeAccessors.missing.set = function (handler) { this._missing = handler; };
  5933. prototypeAccessors.formatter.get = function () { return this._formatter };
  5934. prototypeAccessors.formatter.set = function (formatter) { this._formatter = formatter; };
  5935. prototypeAccessors.silentTranslationWarn.get = function () { return this._silentTranslationWarn };
  5936. prototypeAccessors.silentTranslationWarn.set = function (silent) { this._silentTranslationWarn = silent; };
  5937. prototypeAccessors.silentFallbackWarn.get = function () { return this._silentFallbackWarn };
  5938. prototypeAccessors.silentFallbackWarn.set = function (silent) { this._silentFallbackWarn = silent; };
  5939. prototypeAccessors.preserveDirectiveContent.get = function () { return this._preserveDirectiveContent };
  5940. prototypeAccessors.preserveDirectiveContent.set = function (preserve) { this._preserveDirectiveContent = preserve; };
  5941. prototypeAccessors.warnHtmlInMessage.get = function () { return this._warnHtmlInMessage };
  5942. prototypeAccessors.warnHtmlInMessage.set = function (level) {
  5943. var this$1 = this;
  5944. var orgLevel = this._warnHtmlInMessage;
  5945. this._warnHtmlInMessage = level;
  5946. if (orgLevel !== level && (level === 'warn' || level === 'error')) {
  5947. var messages = this._getMessages();
  5948. Object.keys(messages).forEach(function (locale) {
  5949. this$1._checkLocaleMessage(locale, this$1._warnHtmlInMessage, messages[locale]);
  5950. });
  5951. }
  5952. };
  5953. prototypeAccessors.postTranslation.get = function () { return this._postTranslation };
  5954. prototypeAccessors.postTranslation.set = function (handler) { this._postTranslation = handler; };
  5955. prototypeAccessors.sync.get = function () { return this._sync };
  5956. prototypeAccessors.sync.set = function (val) { this._sync = val; };
  5957. VueI18n.prototype._getMessages = function _getMessages () { return this._vm.messages };
  5958. VueI18n.prototype._getDateTimeFormats = function _getDateTimeFormats () { return this._vm.dateTimeFormats };
  5959. VueI18n.prototype._getNumberFormats = function _getNumberFormats () { return this._vm.numberFormats };
  5960. VueI18n.prototype._warnDefault = function _warnDefault (locale, key, result, vm, values, interpolateMode) {
  5961. if (!isNull(result)) { return result }
  5962. if (this._missing) {
  5963. var missingRet = this._missing.apply(null, [locale, key, vm, values]);
  5964. if (isString(missingRet)) {
  5965. return missingRet
  5966. }
  5967. } else {
  5968. if ( true && !this._isSilentTranslationWarn(key)) {
  5969. warn(
  5970. "Cannot translate the value of keypath '" + key + "'. " +
  5971. 'Use the value of keypath as default.'
  5972. );
  5973. }
  5974. }
  5975. if (this._formatFallbackMessages) {
  5976. var parsedArgs = parseArgs.apply(void 0, values);
  5977. return this._render(key, interpolateMode, parsedArgs.params, key)
  5978. } else {
  5979. return key
  5980. }
  5981. };
  5982. VueI18n.prototype._isFallbackRoot = function _isFallbackRoot (val) {
  5983. return (this._fallbackRootWithEmptyString? !val : isNull(val)) && !isNull(this._root) && this._fallbackRoot
  5984. };
  5985. VueI18n.prototype._isSilentFallbackWarn = function _isSilentFallbackWarn (key) {
  5986. return this._silentFallbackWarn instanceof RegExp
  5987. ? this._silentFallbackWarn.test(key)
  5988. : this._silentFallbackWarn
  5989. };
  5990. VueI18n.prototype._isSilentFallback = function _isSilentFallback (locale, key) {
  5991. return this._isSilentFallbackWarn(key) && (this._isFallbackRoot() || locale !== this.fallbackLocale)
  5992. };
  5993. VueI18n.prototype._isSilentTranslationWarn = function _isSilentTranslationWarn (key) {
  5994. return this._silentTranslationWarn instanceof RegExp
  5995. ? this._silentTranslationWarn.test(key)
  5996. : this._silentTranslationWarn
  5997. };
  5998. VueI18n.prototype._interpolate = function _interpolate (
  5999. locale,
  6000. message,
  6001. key,
  6002. host,
  6003. interpolateMode,
  6004. values,
  6005. visitedLinkStack
  6006. ) {
  6007. if (!message) { return null }
  6008. var pathRet = this._path.getPathValue(message, key);
  6009. if (isArray(pathRet) || isPlainObject(pathRet)) { return pathRet }
  6010. var ret;
  6011. if (isNull(pathRet)) {
  6012. /* istanbul ignore else */
  6013. if (isPlainObject(message)) {
  6014. ret = message[key];
  6015. if (!(isString(ret) || isFunction(ret))) {
  6016. if ( true && !this._isSilentTranslationWarn(key) && !this._isSilentFallback(locale, key)) {
  6017. warn(("Value of key '" + key + "' is not a string or function !"));
  6018. }
  6019. return null
  6020. }
  6021. } else {
  6022. return null
  6023. }
  6024. } else {
  6025. /* istanbul ignore else */
  6026. if (isString(pathRet) || isFunction(pathRet)) {
  6027. ret = pathRet;
  6028. } else {
  6029. if ( true && !this._isSilentTranslationWarn(key) && !this._isSilentFallback(locale, key)) {
  6030. warn(("Value of key '" + key + "' is not a string or function!"));
  6031. }
  6032. return null
  6033. }
  6034. }
  6035. // Check for the existence of links within the translated string
  6036. if (isString(ret) && (ret.indexOf('@:') >= 0 || ret.indexOf('@.') >= 0)) {
  6037. ret = this._link(locale, message, ret, host, 'raw', values, visitedLinkStack);
  6038. }
  6039. return this._render(ret, interpolateMode, values, key)
  6040. };
  6041. VueI18n.prototype._link = function _link (
  6042. locale,
  6043. message,
  6044. str,
  6045. host,
  6046. interpolateMode,
  6047. values,
  6048. visitedLinkStack
  6049. ) {
  6050. var ret = str;
  6051. // Match all the links within the local
  6052. // We are going to replace each of
  6053. // them with its translation
  6054. var matches = ret.match(linkKeyMatcher);
  6055. // eslint-disable-next-line no-autofix/prefer-const
  6056. for (var idx in matches) {
  6057. // ie compatible: filter custom array
  6058. // prototype method
  6059. if (!matches.hasOwnProperty(idx)) {
  6060. continue
  6061. }
  6062. var link = matches[idx];
  6063. var linkKeyPrefixMatches = link.match(linkKeyPrefixMatcher);
  6064. var linkPrefix = linkKeyPrefixMatches[0];
  6065. var formatterName = linkKeyPrefixMatches[1];
  6066. // Remove the leading @:, @.case: and the brackets
  6067. var linkPlaceholder = link.replace(linkPrefix, '').replace(bracketsMatcher, '');
  6068. if (includes(visitedLinkStack, linkPlaceholder)) {
  6069. if (true) {
  6070. warn(("Circular reference found. \"" + link + "\" is already visited in the chain of " + (visitedLinkStack.reverse().join(' <- '))));
  6071. }
  6072. return ret
  6073. }
  6074. visitedLinkStack.push(linkPlaceholder);
  6075. // Translate the link
  6076. var translated = this._interpolate(
  6077. locale, message, linkPlaceholder, host,
  6078. interpolateMode === 'raw' ? 'string' : interpolateMode,
  6079. interpolateMode === 'raw' ? undefined : values,
  6080. visitedLinkStack
  6081. );
  6082. if (this._isFallbackRoot(translated)) {
  6083. if ( true && !this._isSilentTranslationWarn(linkPlaceholder)) {
  6084. warn(("Fall back to translate the link placeholder '" + linkPlaceholder + "' with root locale."));
  6085. }
  6086. /* istanbul ignore if */
  6087. if (!this._root) { throw Error('unexpected error') }
  6088. var root = this._root.$i18n;
  6089. translated = root._translate(
  6090. root._getMessages(), root.locale, root.fallbackLocale,
  6091. linkPlaceholder, host, interpolateMode, values
  6092. );
  6093. }
  6094. translated = this._warnDefault(
  6095. locale, linkPlaceholder, translated, host,
  6096. isArray(values) ? values : [values],
  6097. interpolateMode
  6098. );
  6099. if (this._modifiers.hasOwnProperty(formatterName)) {
  6100. translated = this._modifiers[formatterName](translated);
  6101. } else if (defaultModifiers.hasOwnProperty(formatterName)) {
  6102. translated = defaultModifiers[formatterName](translated);
  6103. }
  6104. visitedLinkStack.pop();
  6105. // Replace the link with the translated
  6106. ret = !translated ? ret : ret.replace(link, translated);
  6107. }
  6108. return ret
  6109. };
  6110. VueI18n.prototype._createMessageContext = function _createMessageContext (values, formatter, path, interpolateMode) {
  6111. var this$1 = this;
  6112. var _list = isArray(values) ? values : [];
  6113. var _named = isObject(values) ? values : {};
  6114. var list = function (index) { return _list[index]; };
  6115. var named = function (key) { return _named[key]; };
  6116. var messages = this._getMessages();
  6117. var locale = this.locale;
  6118. return {
  6119. list: list,
  6120. named: named,
  6121. values: values,
  6122. formatter: formatter,
  6123. path: path,
  6124. messages: messages,
  6125. locale: locale,
  6126. linked: function (linkedKey) { return this$1._interpolate(locale, messages[locale] || {}, linkedKey, null, interpolateMode, undefined, [linkedKey]); }
  6127. }
  6128. };
  6129. VueI18n.prototype._render = function _render (message, interpolateMode, values, path) {
  6130. if (isFunction(message)) {
  6131. return message(
  6132. this._createMessageContext(values, this._formatter || defaultFormatter, path, interpolateMode)
  6133. )
  6134. }
  6135. var ret = this._formatter.interpolate(message, values, path);
  6136. // If the custom formatter refuses to work - apply the default one
  6137. if (!ret) {
  6138. ret = defaultFormatter.interpolate(message, values, path);
  6139. }
  6140. // if interpolateMode is **not** 'string' ('row'),
  6141. // return the compiled data (e.g. ['foo', VNode, 'bar']) with formatter
  6142. return interpolateMode === 'string' && !isString(ret) ? ret.join('') : ret
  6143. };
  6144. VueI18n.prototype._appendItemToChain = function _appendItemToChain (chain, item, blocks) {
  6145. var follow = false;
  6146. if (!includes(chain, item)) {
  6147. follow = true;
  6148. if (item) {
  6149. follow = item[item.length - 1] !== '!';
  6150. item = item.replace(/!/g, '');
  6151. chain.push(item);
  6152. if (blocks && blocks[item]) {
  6153. follow = blocks[item];
  6154. }
  6155. }
  6156. }
  6157. return follow
  6158. };
  6159. VueI18n.prototype._appendLocaleToChain = function _appendLocaleToChain (chain, locale, blocks) {
  6160. var follow;
  6161. var tokens = locale.split('-');
  6162. do {
  6163. var item = tokens.join('-');
  6164. follow = this._appendItemToChain(chain, item, blocks);
  6165. tokens.splice(-1, 1);
  6166. } while (tokens.length && (follow === true))
  6167. return follow
  6168. };
  6169. VueI18n.prototype._appendBlockToChain = function _appendBlockToChain (chain, block, blocks) {
  6170. var follow = true;
  6171. for (var i = 0; (i < block.length) && (isBoolean(follow)); i++) {
  6172. var locale = block[i];
  6173. if (isString(locale)) {
  6174. follow = this._appendLocaleToChain(chain, locale, blocks);
  6175. }
  6176. }
  6177. return follow
  6178. };
  6179. VueI18n.prototype._getLocaleChain = function _getLocaleChain (start, fallbackLocale) {
  6180. if (start === '') { return [] }
  6181. if (!this._localeChainCache) {
  6182. this._localeChainCache = {};
  6183. }
  6184. var chain = this._localeChainCache[start];
  6185. if (!chain) {
  6186. if (!fallbackLocale) {
  6187. fallbackLocale = this.fallbackLocale;
  6188. }
  6189. chain = [];
  6190. // first block defined by start
  6191. var block = [start];
  6192. // while any intervening block found
  6193. while (isArray(block)) {
  6194. block = this._appendBlockToChain(
  6195. chain,
  6196. block,
  6197. fallbackLocale
  6198. );
  6199. }
  6200. // last block defined by default
  6201. var defaults;
  6202. if (isArray(fallbackLocale)) {
  6203. defaults = fallbackLocale;
  6204. } else if (isObject(fallbackLocale)) {
  6205. /* $FlowFixMe */
  6206. if (fallbackLocale['default']) {
  6207. defaults = fallbackLocale['default'];
  6208. } else {
  6209. defaults = null;
  6210. }
  6211. } else {
  6212. defaults = fallbackLocale;
  6213. }
  6214. // convert defaults to array
  6215. if (isString(defaults)) {
  6216. block = [defaults];
  6217. } else {
  6218. block = defaults;
  6219. }
  6220. if (block) {
  6221. this._appendBlockToChain(
  6222. chain,
  6223. block,
  6224. null
  6225. );
  6226. }
  6227. this._localeChainCache[start] = chain;
  6228. }
  6229. return chain
  6230. };
  6231. VueI18n.prototype._translate = function _translate (
  6232. messages,
  6233. locale,
  6234. fallback,
  6235. key,
  6236. host,
  6237. interpolateMode,
  6238. args
  6239. ) {
  6240. var chain = this._getLocaleChain(locale, fallback);
  6241. var res;
  6242. for (var i = 0; i < chain.length; i++) {
  6243. var step = chain[i];
  6244. res =
  6245. this._interpolate(step, messages[step], key, host, interpolateMode, args, [key]);
  6246. if (!isNull(res)) {
  6247. if (step !== locale && "development" !== 'production' && !this._isSilentTranslationWarn(key) && !this._isSilentFallbackWarn(key)) {
  6248. warn(("Fall back to translate the keypath '" + key + "' with '" + step + "' locale."));
  6249. }
  6250. return res
  6251. }
  6252. }
  6253. return null
  6254. };
  6255. VueI18n.prototype._t = function _t (key, _locale, messages, host) {
  6256. var ref;
  6257. var values = [], len = arguments.length - 4;
  6258. while ( len-- > 0 ) values[ len ] = arguments[ len + 4 ];
  6259. if (!key) { return '' }
  6260. var parsedArgs = parseArgs.apply(void 0, values);
  6261. if(this._escapeParameterHtml) {
  6262. parsedArgs.params = escapeParams(parsedArgs.params);
  6263. }
  6264. var locale = parsedArgs.locale || _locale;
  6265. var ret = this._translate(
  6266. messages, locale, this.fallbackLocale, key,
  6267. host, 'string', parsedArgs.params
  6268. );
  6269. if (this._isFallbackRoot(ret)) {
  6270. if ( true && !this._isSilentTranslationWarn(key) && !this._isSilentFallbackWarn(key)) {
  6271. warn(("Fall back to translate the keypath '" + key + "' with root locale."));
  6272. }
  6273. /* istanbul ignore if */
  6274. if (!this._root) { throw Error('unexpected error') }
  6275. return (ref = this._root).$t.apply(ref, [ key ].concat( values ))
  6276. } else {
  6277. ret = this._warnDefault(locale, key, ret, host, values, 'string');
  6278. if (this._postTranslation && ret !== null && ret !== undefined) {
  6279. ret = this._postTranslation(ret, key);
  6280. }
  6281. return ret
  6282. }
  6283. };
  6284. VueI18n.prototype.t = function t (key) {
  6285. var ref;
  6286. var values = [], len = arguments.length - 1;
  6287. while ( len-- > 0 ) values[ len ] = arguments[ len + 1 ];
  6288. return (ref = this)._t.apply(ref, [ key, this.locale, this._getMessages(), null ].concat( values ))
  6289. };
  6290. VueI18n.prototype._i = function _i (key, locale, messages, host, values) {
  6291. var ret =
  6292. this._translate(messages, locale, this.fallbackLocale, key, host, 'raw', values);
  6293. if (this._isFallbackRoot(ret)) {
  6294. if ( true && !this._isSilentTranslationWarn(key)) {
  6295. warn(("Fall back to interpolate the keypath '" + key + "' with root locale."));
  6296. }
  6297. if (!this._root) { throw Error('unexpected error') }
  6298. return this._root.$i18n.i(key, locale, values)
  6299. } else {
  6300. return this._warnDefault(locale, key, ret, host, [values], 'raw')
  6301. }
  6302. };
  6303. VueI18n.prototype.i = function i (key, locale, values) {
  6304. /* istanbul ignore if */
  6305. if (!key) { return '' }
  6306. if (!isString(locale)) {
  6307. locale = this.locale;
  6308. }
  6309. return this._i(key, locale, this._getMessages(), null, values)
  6310. };
  6311. VueI18n.prototype._tc = function _tc (
  6312. key,
  6313. _locale,
  6314. messages,
  6315. host,
  6316. choice
  6317. ) {
  6318. var ref;
  6319. var values = [], len = arguments.length - 5;
  6320. while ( len-- > 0 ) values[ len ] = arguments[ len + 5 ];
  6321. if (!key) { return '' }
  6322. if (choice === undefined) {
  6323. choice = 1;
  6324. }
  6325. var predefined = { 'count': choice, 'n': choice };
  6326. var parsedArgs = parseArgs.apply(void 0, values);
  6327. parsedArgs.params = Object.assign(predefined, parsedArgs.params);
  6328. values = parsedArgs.locale === null ? [parsedArgs.params] : [parsedArgs.locale, parsedArgs.params];
  6329. return this.fetchChoice((ref = this)._t.apply(ref, [ key, _locale, messages, host ].concat( values )), choice)
  6330. };
  6331. VueI18n.prototype.fetchChoice = function fetchChoice (message, choice) {
  6332. /* istanbul ignore if */
  6333. if (!message || !isString(message)) { return null }
  6334. var choices = message.split('|');
  6335. choice = this.getChoiceIndex(choice, choices.length);
  6336. if (!choices[choice]) { return message }
  6337. return choices[choice].trim()
  6338. };
  6339. VueI18n.prototype.tc = function tc (key, choice) {
  6340. var ref;
  6341. var values = [], len = arguments.length - 2;
  6342. while ( len-- > 0 ) values[ len ] = arguments[ len + 2 ];
  6343. return (ref = this)._tc.apply(ref, [ key, this.locale, this._getMessages(), null, choice ].concat( values ))
  6344. };
  6345. VueI18n.prototype._te = function _te (key, locale, messages) {
  6346. var args = [], len = arguments.length - 3;
  6347. while ( len-- > 0 ) args[ len ] = arguments[ len + 3 ];
  6348. var _locale = parseArgs.apply(void 0, args).locale || locale;
  6349. return this._exist(messages[_locale], key)
  6350. };
  6351. VueI18n.prototype.te = function te (key, locale) {
  6352. return this._te(key, this.locale, this._getMessages(), locale)
  6353. };
  6354. VueI18n.prototype.getLocaleMessage = function getLocaleMessage (locale) {
  6355. return looseClone(this._vm.messages[locale] || {})
  6356. };
  6357. VueI18n.prototype.setLocaleMessage = function setLocaleMessage (locale, message) {
  6358. if (this._warnHtmlInMessage === 'warn' || this._warnHtmlInMessage === 'error') {
  6359. this._checkLocaleMessage(locale, this._warnHtmlInMessage, message);
  6360. }
  6361. this._vm.$set(this._vm.messages, locale, message);
  6362. };
  6363. VueI18n.prototype.mergeLocaleMessage = function mergeLocaleMessage (locale, message) {
  6364. if (this._warnHtmlInMessage === 'warn' || this._warnHtmlInMessage === 'error') {
  6365. this._checkLocaleMessage(locale, this._warnHtmlInMessage, message);
  6366. }
  6367. this._vm.$set(this._vm.messages, locale, merge(
  6368. typeof this._vm.messages[locale] !== 'undefined' && Object.keys(this._vm.messages[locale]).length
  6369. ? Object.assign({}, this._vm.messages[locale])
  6370. : {},
  6371. message
  6372. ));
  6373. };
  6374. VueI18n.prototype.getDateTimeFormat = function getDateTimeFormat (locale) {
  6375. return looseClone(this._vm.dateTimeFormats[locale] || {})
  6376. };
  6377. VueI18n.prototype.setDateTimeFormat = function setDateTimeFormat (locale, format) {
  6378. this._vm.$set(this._vm.dateTimeFormats, locale, format);
  6379. this._clearDateTimeFormat(locale, format);
  6380. };
  6381. VueI18n.prototype.mergeDateTimeFormat = function mergeDateTimeFormat (locale, format) {
  6382. this._vm.$set(this._vm.dateTimeFormats, locale, merge(this._vm.dateTimeFormats[locale] || {}, format));
  6383. this._clearDateTimeFormat(locale, format);
  6384. };
  6385. VueI18n.prototype._clearDateTimeFormat = function _clearDateTimeFormat (locale, format) {
  6386. // eslint-disable-next-line no-autofix/prefer-const
  6387. for (var key in format) {
  6388. var id = locale + "__" + key;
  6389. if (!this._dateTimeFormatters.hasOwnProperty(id)) {
  6390. continue
  6391. }
  6392. delete this._dateTimeFormatters[id];
  6393. }
  6394. };
  6395. VueI18n.prototype._localizeDateTime = function _localizeDateTime (
  6396. value,
  6397. locale,
  6398. fallback,
  6399. dateTimeFormats,
  6400. key,
  6401. options
  6402. ) {
  6403. var _locale = locale;
  6404. var formats = dateTimeFormats[_locale];
  6405. var chain = this._getLocaleChain(locale, fallback);
  6406. for (var i = 0; i < chain.length; i++) {
  6407. var current = _locale;
  6408. var step = chain[i];
  6409. formats = dateTimeFormats[step];
  6410. _locale = step;
  6411. // fallback locale
  6412. if (isNull(formats) || isNull(formats[key])) {
  6413. if (step !== locale && "development" !== 'production' && !this._isSilentTranslationWarn(key) && !this._isSilentFallbackWarn(key)) {
  6414. warn(("Fall back to '" + step + "' datetime formats from '" + current + "' datetime formats."));
  6415. }
  6416. } else {
  6417. break
  6418. }
  6419. }
  6420. if (isNull(formats) || isNull(formats[key])) {
  6421. return null
  6422. } else {
  6423. var format = formats[key];
  6424. var formatter;
  6425. if (options) {
  6426. formatter = new Intl.DateTimeFormat(_locale, Object.assign({}, format, options));
  6427. } else {
  6428. var id = _locale + "__" + key;
  6429. formatter = this._dateTimeFormatters[id];
  6430. if (!formatter) {
  6431. formatter = this._dateTimeFormatters[id] = new Intl.DateTimeFormat(_locale, format);
  6432. }
  6433. }
  6434. return formatter.format(value)
  6435. }
  6436. };
  6437. VueI18n.prototype._d = function _d (value, locale, key, options) {
  6438. /* istanbul ignore if */
  6439. if ( true && !VueI18n.availabilities.dateTimeFormat) {
  6440. warn('Cannot format a Date value due to not supported Intl.DateTimeFormat.');
  6441. return ''
  6442. }
  6443. if (!key) {
  6444. var dtf = !options ? new Intl.DateTimeFormat(locale) : new Intl.DateTimeFormat(locale, options);
  6445. return dtf.format(value)
  6446. }
  6447. var ret =
  6448. this._localizeDateTime(value, locale, this.fallbackLocale, this._getDateTimeFormats(), key, options);
  6449. if (this._isFallbackRoot(ret)) {
  6450. if ( true && !this._isSilentTranslationWarn(key) && !this._isSilentFallbackWarn(key)) {
  6451. warn(("Fall back to datetime localization of root: key '" + key + "'."));
  6452. }
  6453. /* istanbul ignore if */
  6454. if (!this._root) { throw Error('unexpected error') }
  6455. return this._root.$i18n.d(value, key, locale)
  6456. } else {
  6457. return ret || ''
  6458. }
  6459. };
  6460. VueI18n.prototype.d = function d (value) {
  6461. var args = [], len = arguments.length - 1;
  6462. while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];
  6463. var locale = this.locale;
  6464. var key = null;
  6465. var options = null;
  6466. if (args.length === 1) {
  6467. if (isString(args[0])) {
  6468. key = args[0];
  6469. } else if (isObject(args[0])) {
  6470. if (args[0].locale) {
  6471. locale = args[0].locale;
  6472. }
  6473. if (args[0].key) {
  6474. key = args[0].key;
  6475. }
  6476. }
  6477. options = Object.keys(args[0]).reduce(function (acc, key) {
  6478. var obj;
  6479. if (includes(dateTimeFormatKeys, key)) {
  6480. return Object.assign({}, acc, ( obj = {}, obj[key] = args[0][key], obj ))
  6481. }
  6482. return acc
  6483. }, null);
  6484. } else if (args.length === 2) {
  6485. if (isString(args[0])) {
  6486. key = args[0];
  6487. }
  6488. if (isString(args[1])) {
  6489. locale = args[1];
  6490. }
  6491. }
  6492. return this._d(value, locale, key, options)
  6493. };
  6494. VueI18n.prototype.getNumberFormat = function getNumberFormat (locale) {
  6495. return looseClone(this._vm.numberFormats[locale] || {})
  6496. };
  6497. VueI18n.prototype.setNumberFormat = function setNumberFormat (locale, format) {
  6498. this._vm.$set(this._vm.numberFormats, locale, format);
  6499. this._clearNumberFormat(locale, format);
  6500. };
  6501. VueI18n.prototype.mergeNumberFormat = function mergeNumberFormat (locale, format) {
  6502. this._vm.$set(this._vm.numberFormats, locale, merge(this._vm.numberFormats[locale] || {}, format));
  6503. this._clearNumberFormat(locale, format);
  6504. };
  6505. VueI18n.prototype._clearNumberFormat = function _clearNumberFormat (locale, format) {
  6506. // eslint-disable-next-line no-autofix/prefer-const
  6507. for (var key in format) {
  6508. var id = locale + "__" + key;
  6509. if (!this._numberFormatters.hasOwnProperty(id)) {
  6510. continue
  6511. }
  6512. delete this._numberFormatters[id];
  6513. }
  6514. };
  6515. VueI18n.prototype._getNumberFormatter = function _getNumberFormatter (
  6516. value,
  6517. locale,
  6518. fallback,
  6519. numberFormats,
  6520. key,
  6521. options
  6522. ) {
  6523. var _locale = locale;
  6524. var formats = numberFormats[_locale];
  6525. var chain = this._getLocaleChain(locale, fallback);
  6526. for (var i = 0; i < chain.length; i++) {
  6527. var current = _locale;
  6528. var step = chain[i];
  6529. formats = numberFormats[step];
  6530. _locale = step;
  6531. // fallback locale
  6532. if (isNull(formats) || isNull(formats[key])) {
  6533. if (step !== locale && "development" !== 'production' && !this._isSilentTranslationWarn(key) && !this._isSilentFallbackWarn(key)) {
  6534. warn(("Fall back to '" + step + "' number formats from '" + current + "' number formats."));
  6535. }
  6536. } else {
  6537. break
  6538. }
  6539. }
  6540. if (isNull(formats) || isNull(formats[key])) {
  6541. return null
  6542. } else {
  6543. var format = formats[key];
  6544. var formatter;
  6545. if (options) {
  6546. // If options specified - create one time number formatter
  6547. formatter = new Intl.NumberFormat(_locale, Object.assign({}, format, options));
  6548. } else {
  6549. var id = _locale + "__" + key;
  6550. formatter = this._numberFormatters[id];
  6551. if (!formatter) {
  6552. formatter = this._numberFormatters[id] = new Intl.NumberFormat(_locale, format);
  6553. }
  6554. }
  6555. return formatter
  6556. }
  6557. };
  6558. VueI18n.prototype._n = function _n (value, locale, key, options) {
  6559. /* istanbul ignore if */
  6560. if (!VueI18n.availabilities.numberFormat) {
  6561. if (true) {
  6562. warn('Cannot format a Number value due to not supported Intl.NumberFormat.');
  6563. }
  6564. return ''
  6565. }
  6566. if (!key) {
  6567. var nf = !options ? new Intl.NumberFormat(locale) : new Intl.NumberFormat(locale, options);
  6568. return nf.format(value)
  6569. }
  6570. var formatter = this._getNumberFormatter(value, locale, this.fallbackLocale, this._getNumberFormats(), key, options);
  6571. var ret = formatter && formatter.format(value);
  6572. if (this._isFallbackRoot(ret)) {
  6573. if ( true && !this._isSilentTranslationWarn(key) && !this._isSilentFallbackWarn(key)) {
  6574. warn(("Fall back to number localization of root: key '" + key + "'."));
  6575. }
  6576. /* istanbul ignore if */
  6577. if (!this._root) { throw Error('unexpected error') }
  6578. return this._root.$i18n.n(value, Object.assign({}, { key: key, locale: locale }, options))
  6579. } else {
  6580. return ret || ''
  6581. }
  6582. };
  6583. VueI18n.prototype.n = function n (value) {
  6584. var args = [], len = arguments.length - 1;
  6585. while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];
  6586. var locale = this.locale;
  6587. var key = null;
  6588. var options = null;
  6589. if (args.length === 1) {
  6590. if (isString(args[0])) {
  6591. key = args[0];
  6592. } else if (isObject(args[0])) {
  6593. if (args[0].locale) {
  6594. locale = args[0].locale;
  6595. }
  6596. if (args[0].key) {
  6597. key = args[0].key;
  6598. }
  6599. // Filter out number format options only
  6600. options = Object.keys(args[0]).reduce(function (acc, key) {
  6601. var obj;
  6602. if (includes(numberFormatKeys, key)) {
  6603. return Object.assign({}, acc, ( obj = {}, obj[key] = args[0][key], obj ))
  6604. }
  6605. return acc
  6606. }, null);
  6607. }
  6608. } else if (args.length === 2) {
  6609. if (isString(args[0])) {
  6610. key = args[0];
  6611. }
  6612. if (isString(args[1])) {
  6613. locale = args[1];
  6614. }
  6615. }
  6616. return this._n(value, locale, key, options)
  6617. };
  6618. VueI18n.prototype._ntp = function _ntp (value, locale, key, options) {
  6619. /* istanbul ignore if */
  6620. if (!VueI18n.availabilities.numberFormat) {
  6621. if (true) {
  6622. warn('Cannot format to parts a Number value due to not supported Intl.NumberFormat.');
  6623. }
  6624. return []
  6625. }
  6626. if (!key) {
  6627. var nf = !options ? new Intl.NumberFormat(locale) : new Intl.NumberFormat(locale, options);
  6628. return nf.formatToParts(value)
  6629. }
  6630. var formatter = this._getNumberFormatter(value, locale, this.fallbackLocale, this._getNumberFormats(), key, options);
  6631. var ret = formatter && formatter.formatToParts(value);
  6632. if (this._isFallbackRoot(ret)) {
  6633. if ( true && !this._isSilentTranslationWarn(key)) {
  6634. warn(("Fall back to format number to parts of root: key '" + key + "' ."));
  6635. }
  6636. /* istanbul ignore if */
  6637. if (!this._root) { throw Error('unexpected error') }
  6638. return this._root.$i18n._ntp(value, locale, key, options)
  6639. } else {
  6640. return ret || []
  6641. }
  6642. };
  6643. Object.defineProperties( VueI18n.prototype, prototypeAccessors );
  6644. var availabilities;
  6645. // $FlowFixMe
  6646. Object.defineProperty(VueI18n, 'availabilities', {
  6647. get: function get () {
  6648. if (!availabilities) {
  6649. var intlDefined = typeof Intl !== 'undefined';
  6650. availabilities = {
  6651. dateTimeFormat: intlDefined && typeof Intl.DateTimeFormat !== 'undefined',
  6652. numberFormat: intlDefined && typeof Intl.NumberFormat !== 'undefined'
  6653. };
  6654. }
  6655. return availabilities
  6656. }
  6657. });
  6658. VueI18n.install = install;
  6659. VueI18n.version = '8.28.2';
  6660. /* harmony default export */ __webpack_exports__["default"] = (VueI18n);
  6661. /***/ }),
  6662. /***/ 16:
  6663. /*!***************************************************************!*\
  6664. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  6665. \***************************************************************/
  6666. /*! no static exports found */
  6667. /***/ (function(module, exports) {
  6668. function _setPrototypeOf(o, p) {
  6669. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  6670. o.__proto__ = p;
  6671. return o;
  6672. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  6673. return _setPrototypeOf(o, p);
  6674. }
  6675. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  6676. /***/ }),
  6677. /***/ 160:
  6678. /*!********************************************************!*\
  6679. !*** D:/www/uniapp-project/wx-qhb/commont/messages.js ***!
  6680. \********************************************************/
  6681. /*! no static exports found */
  6682. /***/ (function(module, exports, __webpack_require__) {
  6683. "use strict";
  6684. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  6685. Object.defineProperty(exports, "__esModule", {
  6686. value: true
  6687. });
  6688. exports.default = void 0;
  6689. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  6690. var _index, _index2;
  6691. var _default = {
  6692. "zh-CN": {
  6693. index: (_index = {
  6694. homepage: '主页',
  6695. switchLanguage: '切换语言',
  6696. address: '地址管理',
  6697. addAndEdit: "新增/修改地址",
  6698. account: '账号与安全',
  6699. password: '修改密码/手机号',
  6700. switch: '切换语言',
  6701. user: "用户协议",
  6702. privacy: "隐私政策",
  6703. platform: "平台规则",
  6704. merchant: "商户入驻申请协议",
  6705. layout: "退出登录",
  6706. setup: "账号设置",
  6707. information: "个人信息",
  6708. headerImg: "头像",
  6709. nickname: "昵称",
  6710. prompt: "限4-24个字符(1汉字=2字符,1英文活数字=1字符)",
  6711. editNextname: '编辑昵称',
  6712. inland: "中国内地",
  6713. international: "国际",
  6714. initial: "默认地址",
  6715. edit: "编辑",
  6716. delete: "删除",
  6717. wx: "微信导入",
  6718. add: "新增地址",
  6719. contacts: "联系人信息",
  6720. wxAddress: "微信地址薄",
  6721. newAddress: "新建地址",
  6722. name: "姓名",
  6723. phone: "手机号",
  6724. city: "省市区",
  6725. detailed: "详细地址",
  6726. goods: "请填写收货人信息",
  6727. pleasePhoneNumber: "请填写收货人手机号",
  6728. township: "省市区县、乡镇等",
  6729. sect: "请输入详细地址精确到门牌号",
  6730. company: "公司名称(选填)",
  6731. preserve: "保存",
  6732. empty: "清空",
  6733. country: "国家",
  6734. postalCode: "邮编",
  6735. email: "电子邮箱",
  6736. companyName: "公司名称",
  6737. selection: "请选择",
  6738. PleacePostalCode: "请输入邮编",
  6739. addressBook: "保存到地址薄",
  6740. pleaseEmail: "请输入电子邮箱(选填)",
  6741. editPassword: "修改登录密码",
  6742. editPhone: "修改手机号",
  6743. accountCancellation: "账号注销",
  6744. setPassword: "设置密码",
  6745. cancellation: "注销后无法恢复,请谨慎操作",
  6746. myDeposit: "我的保证金",
  6747. balance: "余额",
  6748. mineFollow: "我的关注",
  6749. myPackage: "我的包裹",
  6750. mallOrders: "商城订单",
  6751. whole: "全部",
  6752. pendingPayment: "待付款",
  6753. joiningGroups: "拼团中",
  6754. toBeShipped: "待发货",
  6755. toBeReceived: "待收货",
  6756. refund: "退款/售后",
  6757. leaderunction: "团长功能"
  6758. }, (0, _defineProperty2.default)(_index, "platform", "平台商品库"), (0, _defineProperty2.default)(_index, "productManagement", "商品管理"), (0, _defineProperty2.default)(_index, "orderManagement", "订单管理"), (0, _defineProperty2.default)(_index, "afterSales", "售后管理"), (0, _defineProperty2.default)(_index, "supplyChain", "供应链商品"), (0, _defineProperty2.default)(_index, "PCEnd", "PC端"), (0, _defineProperty2.default)(_index, "pontact", "联系客服"), (0, _defineProperty2.default)(_index, "accountSettings", "账号设置"), (0, _defineProperty2.default)(_index, "accountBalance", "账户余额"), (0, _defineProperty2.default)(_index, "myBalance", "我的余额"), (0, _defineProperty2.default)(_index, "withdrawal", "提现"), _index)
  6759. },
  6760. "en-US": {
  6761. index: (_index2 = {
  6762. homepage: 'Homepage',
  6763. switchLanguage: "Switch Language",
  6764. address: "Address Management",
  6765. addAndEdit: "add/modify Address",
  6766. account: 'Account and Security',
  6767. password: 'Change password/Phone Number',
  6768. switch: 'Switch Language',
  6769. user: "User Agreement",
  6770. privacy: "Privacy Policy",
  6771. platform: "Platform rules",
  6772. merchant: "Merchant Entry Application Agreement",
  6773. layout: "Log out and log in",
  6774. setup: "Account Settings",
  6775. information: "Personal Information",
  6776. headerImg: "Avatar",
  6777. nickname: "Nickname",
  6778. prompt: "Limited to 4-24 characters (1 Chinese character=2 characters, 1 English live number=1 character)",
  6779. editNextname: 'Edit Nickname',
  6780. inland: "Mainland China",
  6781. international: "International",
  6782. initial: "Default Address",
  6783. edit: 'Edit',
  6784. delete: "Delete",
  6785. wx: "WeChat import",
  6786. add: "Add Address",
  6787. contacts: "Contact Information ",
  6788. wxAddress: "WeChat Address Book",
  6789. newAddress: "New Address",
  6790. name: "Name",
  6791. phone: "Mobile phone number",
  6792. city: "Provinces, cities, and districts",
  6793. detailed: "Detailed address",
  6794. goods: "Please fill in the recipient information",
  6795. pleasePhoneNumber: "Please fill in the recipient's mobile phone number",
  6796. township: "Provinces, cities, counties, townships, etc",
  6797. sect: "Please enter a detailed address accurate to the house number",
  6798. company: "Company name (optional)",
  6799. preserve: "Preserve",
  6800. empty: "Empty",
  6801. country: "Country",
  6802. postalCode: "Postal code",
  6803. email: "E-mail",
  6804. companyName: "Company Name",
  6805. selection: "Please Select",
  6806. PleacePostalCode: "Please enter your postal code",
  6807. addressBook: "Save to Address Book",
  6808. pleaseEmail: "Please enter your email address (optional)",
  6809. cancellation: "Unable to recover after logging out, please operate with caution",
  6810. editPassword: "Change login password",
  6811. editPhone: "Change phone number",
  6812. accountCancellation: "Account Cancellation",
  6813. setPassword: "Set password",
  6814. myDeposit: "My deposit",
  6815. balance: "Balance",
  6816. mineFollow: "My following",
  6817. myPackage: "My Package",
  6818. mallOrders: "Mall orders",
  6819. whole: "Whole",
  6820. pendingPayment: "Pending payment",
  6821. joiningGroups: "Joining groups",
  6822. toBeShipped: "To be shipped",
  6823. toBeReceived: "To be received",
  6824. refund: "Refund/After sales",
  6825. leaderunction: "Leader function"
  6826. }, (0, _defineProperty2.default)(_index2, "platform", "Platform product library"), (0, _defineProperty2.default)(_index2, "productManagement", "Product Management"), (0, _defineProperty2.default)(_index2, "orderManagement", "order management"), (0, _defineProperty2.default)(_index2, "afterSales", "After sales"), (0, _defineProperty2.default)(_index2, "supplyChain", "Supply chain goods"), (0, _defineProperty2.default)(_index2, "PCEnd", "PC end"), (0, _defineProperty2.default)(_index2, "pontact", "Contact customer service"), (0, _defineProperty2.default)(_index2, "accountSettings", "Account Settings"), (0, _defineProperty2.default)(_index2, "accountBalance", "Account Balance"), (0, _defineProperty2.default)(_index2, "myBalance", "My Balance"), _index2)
  6827. }
  6828. };
  6829. exports.default = _default;
  6830. /***/ }),
  6831. /***/ 17:
  6832. /*!*************************************************************************!*\
  6833. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  6834. \*************************************************************************/
  6835. /*! no static exports found */
  6836. /***/ (function(module, exports) {
  6837. function _isNativeReflectConstruct() {
  6838. try {
  6839. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  6840. } catch (t) {}
  6841. return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() {
  6842. return !!t;
  6843. }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
  6844. }
  6845. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  6846. /***/ }),
  6847. /***/ 18:
  6848. /*!******************************************************************!*\
  6849. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  6850. \******************************************************************/
  6851. /*! no static exports found */
  6852. /***/ (function(module, exports, __webpack_require__) {
  6853. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
  6854. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  6855. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  6856. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
  6857. function _toConsumableArray(arr) {
  6858. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  6859. }
  6860. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  6861. /***/ }),
  6862. /***/ 19:
  6863. /*!******************************************************************!*\
  6864. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  6865. \******************************************************************/
  6866. /*! no static exports found */
  6867. /***/ (function(module, exports, __webpack_require__) {
  6868. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  6869. function _arrayWithoutHoles(arr) {
  6870. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  6871. }
  6872. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  6873. /***/ }),
  6874. /***/ 2:
  6875. /*!************************************************************!*\
  6876. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  6877. \************************************************************/
  6878. /*! no static exports found */
  6879. /***/ (function(module, exports, __webpack_require__) {
  6880. "use strict";
  6881. /* WEBPACK VAR INJECTION */(function(wx, global) {
  6882. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  6883. Object.defineProperty(exports, "__esModule", {
  6884. value: true
  6885. });
  6886. exports.createApp = createApp;
  6887. exports.createComponent = createComponent;
  6888. exports.createPage = createPage;
  6889. exports.createPlugin = createPlugin;
  6890. exports.createSubpackageApp = createSubpackageApp;
  6891. exports.default = void 0;
  6892. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  6893. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  6894. var _construct2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/construct */ 15));
  6895. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  6896. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  6897. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 22);
  6898. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  6899. 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; }
  6900. 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; }
  6901. var realAtob;
  6902. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  6903. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  6904. if (typeof atob !== 'function') {
  6905. realAtob = function realAtob(str) {
  6906. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  6907. if (!b64re.test(str)) {
  6908. throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  6909. }
  6910. // Adding the padding if missing, for semplicity
  6911. str += '=='.slice(2 - (str.length & 3));
  6912. var bitmap;
  6913. var result = '';
  6914. var r1;
  6915. var r2;
  6916. var i = 0;
  6917. for (; i < str.length;) {
  6918. 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++)));
  6919. 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);
  6920. }
  6921. return result;
  6922. };
  6923. } else {
  6924. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  6925. realAtob = atob;
  6926. }
  6927. function b64DecodeUnicode(str) {
  6928. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  6929. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  6930. }).join(''));
  6931. }
  6932. function getCurrentUserInfo() {
  6933. var token = wx.getStorageSync('uni_id_token') || '';
  6934. var tokenArr = token.split('.');
  6935. if (!token || tokenArr.length !== 3) {
  6936. return {
  6937. uid: null,
  6938. role: [],
  6939. permission: [],
  6940. tokenExpired: 0
  6941. };
  6942. }
  6943. var userInfo;
  6944. try {
  6945. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  6946. } catch (error) {
  6947. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  6948. }
  6949. userInfo.tokenExpired = userInfo.exp * 1000;
  6950. delete userInfo.exp;
  6951. delete userInfo.iat;
  6952. return userInfo;
  6953. }
  6954. function uniIdMixin(Vue) {
  6955. Vue.prototype.uniIDHasRole = function (roleId) {
  6956. var _getCurrentUserInfo = getCurrentUserInfo(),
  6957. role = _getCurrentUserInfo.role;
  6958. return role.indexOf(roleId) > -1;
  6959. };
  6960. Vue.prototype.uniIDHasPermission = function (permissionId) {
  6961. var _getCurrentUserInfo2 = getCurrentUserInfo(),
  6962. permission = _getCurrentUserInfo2.permission;
  6963. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  6964. };
  6965. Vue.prototype.uniIDTokenValid = function () {
  6966. var _getCurrentUserInfo3 = getCurrentUserInfo(),
  6967. tokenExpired = _getCurrentUserInfo3.tokenExpired;
  6968. return tokenExpired > Date.now();
  6969. };
  6970. }
  6971. var _toString = Object.prototype.toString;
  6972. var hasOwnProperty = Object.prototype.hasOwnProperty;
  6973. function isFn(fn) {
  6974. return typeof fn === 'function';
  6975. }
  6976. function isStr(str) {
  6977. return typeof str === 'string';
  6978. }
  6979. function isObject(obj) {
  6980. return obj !== null && (0, _typeof2.default)(obj) === 'object';
  6981. }
  6982. function isPlainObject(obj) {
  6983. return _toString.call(obj) === '[object Object]';
  6984. }
  6985. function hasOwn(obj, key) {
  6986. return hasOwnProperty.call(obj, key);
  6987. }
  6988. function noop() {}
  6989. /**
  6990. * Create a cached version of a pure function.
  6991. */
  6992. function cached(fn) {
  6993. var cache = Object.create(null);
  6994. return function cachedFn(str) {
  6995. var hit = cache[str];
  6996. return hit || (cache[str] = fn(str));
  6997. };
  6998. }
  6999. /**
  7000. * Camelize a hyphen-delimited string.
  7001. */
  7002. var camelizeRE = /-(\w)/g;
  7003. var camelize = cached(function (str) {
  7004. return str.replace(camelizeRE, function (_, c) {
  7005. return c ? c.toUpperCase() : '';
  7006. });
  7007. });
  7008. function sortObject(obj) {
  7009. var sortObj = {};
  7010. if (isPlainObject(obj)) {
  7011. Object.keys(obj).sort().forEach(function (key) {
  7012. sortObj[key] = obj[key];
  7013. });
  7014. }
  7015. return !Object.keys(sortObj) ? obj : sortObj;
  7016. }
  7017. var HOOKS = ['invoke', 'success', 'fail', 'complete', 'returnValue'];
  7018. var globalInterceptors = {};
  7019. var scopedInterceptors = {};
  7020. function mergeHook(parentVal, childVal) {
  7021. var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal;
  7022. return res ? dedupeHooks(res) : res;
  7023. }
  7024. function dedupeHooks(hooks) {
  7025. var res = [];
  7026. for (var i = 0; i < hooks.length; i++) {
  7027. if (res.indexOf(hooks[i]) === -1) {
  7028. res.push(hooks[i]);
  7029. }
  7030. }
  7031. return res;
  7032. }
  7033. function removeHook(hooks, hook) {
  7034. var index = hooks.indexOf(hook);
  7035. if (index !== -1) {
  7036. hooks.splice(index, 1);
  7037. }
  7038. }
  7039. function mergeInterceptorHook(interceptor, option) {
  7040. Object.keys(option).forEach(function (hook) {
  7041. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  7042. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  7043. }
  7044. });
  7045. }
  7046. function removeInterceptorHook(interceptor, option) {
  7047. if (!interceptor || !option) {
  7048. return;
  7049. }
  7050. Object.keys(option).forEach(function (hook) {
  7051. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  7052. removeHook(interceptor[hook], option[hook]);
  7053. }
  7054. });
  7055. }
  7056. function addInterceptor(method, option) {
  7057. if (typeof method === 'string' && isPlainObject(option)) {
  7058. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  7059. } else if (isPlainObject(method)) {
  7060. mergeInterceptorHook(globalInterceptors, method);
  7061. }
  7062. }
  7063. function removeInterceptor(method, option) {
  7064. if (typeof method === 'string') {
  7065. if (isPlainObject(option)) {
  7066. removeInterceptorHook(scopedInterceptors[method], option);
  7067. } else {
  7068. delete scopedInterceptors[method];
  7069. }
  7070. } else if (isPlainObject(method)) {
  7071. removeInterceptorHook(globalInterceptors, method);
  7072. }
  7073. }
  7074. function wrapperHook(hook, params) {
  7075. return function (data) {
  7076. return hook(data, params) || data;
  7077. };
  7078. }
  7079. function isPromise(obj) {
  7080. return !!obj && ((0, _typeof2.default)(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  7081. }
  7082. function queue(hooks, data, params) {
  7083. var promise = false;
  7084. for (var i = 0; i < hooks.length; i++) {
  7085. var hook = hooks[i];
  7086. if (promise) {
  7087. promise = Promise.resolve(wrapperHook(hook, params));
  7088. } else {
  7089. var res = hook(data, params);
  7090. if (isPromise(res)) {
  7091. promise = Promise.resolve(res);
  7092. }
  7093. if (res === false) {
  7094. return {
  7095. then: function then() {}
  7096. };
  7097. }
  7098. }
  7099. }
  7100. return promise || {
  7101. then: function then(callback) {
  7102. return callback(data);
  7103. }
  7104. };
  7105. }
  7106. function wrapperOptions(interceptor) {
  7107. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  7108. ['success', 'fail', 'complete'].forEach(function (name) {
  7109. if (Array.isArray(interceptor[name])) {
  7110. var oldCallback = options[name];
  7111. options[name] = function callbackInterceptor(res) {
  7112. queue(interceptor[name], res, options).then(function (res) {
  7113. /* eslint-disable no-mixed-operators */
  7114. return isFn(oldCallback) && oldCallback(res) || res;
  7115. });
  7116. };
  7117. }
  7118. });
  7119. return options;
  7120. }
  7121. function wrapperReturnValue(method, returnValue) {
  7122. var returnValueHooks = [];
  7123. if (Array.isArray(globalInterceptors.returnValue)) {
  7124. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(globalInterceptors.returnValue));
  7125. }
  7126. var interceptor = scopedInterceptors[method];
  7127. if (interceptor && Array.isArray(interceptor.returnValue)) {
  7128. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(interceptor.returnValue));
  7129. }
  7130. returnValueHooks.forEach(function (hook) {
  7131. returnValue = hook(returnValue) || returnValue;
  7132. });
  7133. return returnValue;
  7134. }
  7135. function getApiInterceptorHooks(method) {
  7136. var interceptor = Object.create(null);
  7137. Object.keys(globalInterceptors).forEach(function (hook) {
  7138. if (hook !== 'returnValue') {
  7139. interceptor[hook] = globalInterceptors[hook].slice();
  7140. }
  7141. });
  7142. var scopedInterceptor = scopedInterceptors[method];
  7143. if (scopedInterceptor) {
  7144. Object.keys(scopedInterceptor).forEach(function (hook) {
  7145. if (hook !== 'returnValue') {
  7146. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  7147. }
  7148. });
  7149. }
  7150. return interceptor;
  7151. }
  7152. function invokeApi(method, api, options) {
  7153. for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
  7154. params[_key - 3] = arguments[_key];
  7155. }
  7156. var interceptor = getApiInterceptorHooks(method);
  7157. if (interceptor && Object.keys(interceptor).length) {
  7158. if (Array.isArray(interceptor.invoke)) {
  7159. var res = queue(interceptor.invoke, options);
  7160. return res.then(function (options) {
  7161. // 重新访问 getApiInterceptorHooks, 允许 invoke 中再次调用 addInterceptor,removeInterceptor
  7162. return api.apply(void 0, [wrapperOptions(getApiInterceptorHooks(method), options)].concat(params));
  7163. });
  7164. } else {
  7165. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  7166. }
  7167. }
  7168. return api.apply(void 0, [options].concat(params));
  7169. }
  7170. var promiseInterceptor = {
  7171. returnValue: function returnValue(res) {
  7172. if (!isPromise(res)) {
  7173. return res;
  7174. }
  7175. return new Promise(function (resolve, reject) {
  7176. res.then(function (res) {
  7177. if (res[0]) {
  7178. reject(res[0]);
  7179. } else {
  7180. resolve(res[1]);
  7181. }
  7182. });
  7183. });
  7184. }
  7185. };
  7186. 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/;
  7187. var CONTEXT_API_RE = /^create|Manager$/;
  7188. // Context例外情况
  7189. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  7190. // 同步例外情况
  7191. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  7192. var CALLBACK_API_RE = /^on|^off/;
  7193. function isContextApi(name) {
  7194. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  7195. }
  7196. function isSyncApi(name) {
  7197. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  7198. }
  7199. function isCallbackApi(name) {
  7200. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  7201. }
  7202. function handlePromise(promise) {
  7203. return promise.then(function (data) {
  7204. return [null, data];
  7205. }).catch(function (err) {
  7206. return [err];
  7207. });
  7208. }
  7209. function shouldPromise(name) {
  7210. if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) {
  7211. return false;
  7212. }
  7213. return true;
  7214. }
  7215. /* eslint-disable no-extend-native */
  7216. if (!Promise.prototype.finally) {
  7217. Promise.prototype.finally = function (callback) {
  7218. var promise = this.constructor;
  7219. return this.then(function (value) {
  7220. return promise.resolve(callback()).then(function () {
  7221. return value;
  7222. });
  7223. }, function (reason) {
  7224. return promise.resolve(callback()).then(function () {
  7225. throw reason;
  7226. });
  7227. });
  7228. };
  7229. }
  7230. function promisify(name, api) {
  7231. if (!shouldPromise(name) || !isFn(api)) {
  7232. return api;
  7233. }
  7234. return function promiseApi() {
  7235. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  7236. for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  7237. params[_key2 - 1] = arguments[_key2];
  7238. }
  7239. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  7240. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  7241. }
  7242. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  7243. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  7244. success: resolve,
  7245. fail: reject
  7246. })].concat(params));
  7247. })));
  7248. };
  7249. }
  7250. var EPS = 1e-4;
  7251. var BASE_DEVICE_WIDTH = 750;
  7252. var isIOS = false;
  7253. var deviceWidth = 0;
  7254. var deviceDPR = 0;
  7255. function checkDeviceWidth() {
  7256. var _wx$getSystemInfoSync = wx.getSystemInfoSync(),
  7257. platform = _wx$getSystemInfoSync.platform,
  7258. pixelRatio = _wx$getSystemInfoSync.pixelRatio,
  7259. windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  7260. deviceWidth = windowWidth;
  7261. deviceDPR = pixelRatio;
  7262. isIOS = platform === 'ios';
  7263. }
  7264. function upx2px(number, newDeviceWidth) {
  7265. if (deviceWidth === 0) {
  7266. checkDeviceWidth();
  7267. }
  7268. number = Number(number);
  7269. if (number === 0) {
  7270. return 0;
  7271. }
  7272. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  7273. if (result < 0) {
  7274. result = -result;
  7275. }
  7276. result = Math.floor(result + EPS);
  7277. if (result === 0) {
  7278. if (deviceDPR === 1 || !isIOS) {
  7279. result = 1;
  7280. } else {
  7281. result = 0.5;
  7282. }
  7283. }
  7284. return number < 0 ? -result : result;
  7285. }
  7286. var LOCALE_ZH_HANS = 'zh-Hans';
  7287. var LOCALE_ZH_HANT = 'zh-Hant';
  7288. var LOCALE_EN = 'en';
  7289. var LOCALE_FR = 'fr';
  7290. var LOCALE_ES = 'es';
  7291. var messages = {};
  7292. var locale;
  7293. {
  7294. locale = normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  7295. }
  7296. function initI18nMessages() {
  7297. if (!isEnableLocale()) {
  7298. return;
  7299. }
  7300. var localeKeys = Object.keys(__uniConfig.locales);
  7301. if (localeKeys.length) {
  7302. localeKeys.forEach(function (locale) {
  7303. var curMessages = messages[locale];
  7304. var userMessages = __uniConfig.locales[locale];
  7305. if (curMessages) {
  7306. Object.assign(curMessages, userMessages);
  7307. } else {
  7308. messages[locale] = userMessages;
  7309. }
  7310. });
  7311. }
  7312. }
  7313. initI18nMessages();
  7314. var i18n = (0, _uniI18n.initVueI18n)(locale, {});
  7315. var t = i18n.t;
  7316. var i18nMixin = i18n.mixin = {
  7317. beforeCreate: function beforeCreate() {
  7318. var _this = this;
  7319. var unwatch = i18n.i18n.watchLocale(function () {
  7320. _this.$forceUpdate();
  7321. });
  7322. this.$once('hook:beforeDestroy', function () {
  7323. unwatch();
  7324. });
  7325. },
  7326. methods: {
  7327. $$t: function $$t(key, values) {
  7328. return t(key, values);
  7329. }
  7330. }
  7331. };
  7332. var setLocale = i18n.setLocale;
  7333. var getLocale = i18n.getLocale;
  7334. function initAppLocale(Vue, appVm, locale) {
  7335. var state = Vue.observable({
  7336. locale: locale || i18n.getLocale()
  7337. });
  7338. var localeWatchers = [];
  7339. appVm.$watchLocale = function (fn) {
  7340. localeWatchers.push(fn);
  7341. };
  7342. Object.defineProperty(appVm, '$locale', {
  7343. get: function get() {
  7344. return state.locale;
  7345. },
  7346. set: function set(v) {
  7347. state.locale = v;
  7348. localeWatchers.forEach(function (watch) {
  7349. return watch(v);
  7350. });
  7351. }
  7352. });
  7353. }
  7354. function isEnableLocale() {
  7355. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  7356. }
  7357. function include(str, parts) {
  7358. return !!parts.find(function (part) {
  7359. return str.indexOf(part) !== -1;
  7360. });
  7361. }
  7362. function startsWith(str, parts) {
  7363. return parts.find(function (part) {
  7364. return str.indexOf(part) === 0;
  7365. });
  7366. }
  7367. function normalizeLocale(locale, messages) {
  7368. if (!locale) {
  7369. return;
  7370. }
  7371. locale = locale.trim().replace(/_/g, '-');
  7372. if (messages && messages[locale]) {
  7373. return locale;
  7374. }
  7375. locale = locale.toLowerCase();
  7376. if (locale === 'chinese') {
  7377. // 支付宝
  7378. return LOCALE_ZH_HANS;
  7379. }
  7380. if (locale.indexOf('zh') === 0) {
  7381. if (locale.indexOf('-hans') > -1) {
  7382. return LOCALE_ZH_HANS;
  7383. }
  7384. if (locale.indexOf('-hant') > -1) {
  7385. return LOCALE_ZH_HANT;
  7386. }
  7387. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  7388. return LOCALE_ZH_HANT;
  7389. }
  7390. return LOCALE_ZH_HANS;
  7391. }
  7392. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  7393. if (lang) {
  7394. return lang;
  7395. }
  7396. }
  7397. // export function initI18n() {
  7398. // const localeKeys = Object.keys(__uniConfig.locales || {})
  7399. // if (localeKeys.length) {
  7400. // localeKeys.forEach((locale) =>
  7401. // i18n.add(locale, __uniConfig.locales[locale])
  7402. // )
  7403. // }
  7404. // }
  7405. function getLocale$1() {
  7406. // 优先使用 $locale
  7407. if (isFn(getApp)) {
  7408. var app = getApp({
  7409. allowDefault: true
  7410. });
  7411. if (app && app.$vm) {
  7412. return app.$vm.$locale;
  7413. }
  7414. }
  7415. return normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  7416. }
  7417. function setLocale$1(locale) {
  7418. var app = isFn(getApp) ? getApp() : false;
  7419. if (!app) {
  7420. return false;
  7421. }
  7422. var oldLocale = app.$vm.$locale;
  7423. if (oldLocale !== locale) {
  7424. app.$vm.$locale = locale;
  7425. onLocaleChangeCallbacks.forEach(function (fn) {
  7426. return fn({
  7427. locale: locale
  7428. });
  7429. });
  7430. return true;
  7431. }
  7432. return false;
  7433. }
  7434. var onLocaleChangeCallbacks = [];
  7435. function onLocaleChange(fn) {
  7436. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  7437. onLocaleChangeCallbacks.push(fn);
  7438. }
  7439. }
  7440. if (typeof global !== 'undefined') {
  7441. global.getLocale = getLocale$1;
  7442. }
  7443. var interceptors = {
  7444. promiseInterceptor: promiseInterceptor
  7445. };
  7446. var baseApi = /*#__PURE__*/Object.freeze({
  7447. __proto__: null,
  7448. upx2px: upx2px,
  7449. getLocale: getLocale$1,
  7450. setLocale: setLocale$1,
  7451. onLocaleChange: onLocaleChange,
  7452. addInterceptor: addInterceptor,
  7453. removeInterceptor: removeInterceptor,
  7454. interceptors: interceptors
  7455. });
  7456. function findExistsPageIndex(url) {
  7457. var pages = getCurrentPages();
  7458. var len = pages.length;
  7459. while (len--) {
  7460. var page = pages[len];
  7461. if (page.$page && page.$page.fullPath === url) {
  7462. return len;
  7463. }
  7464. }
  7465. return -1;
  7466. }
  7467. var redirectTo = {
  7468. name: function name(fromArgs) {
  7469. if (fromArgs.exists === 'back' && fromArgs.delta) {
  7470. return 'navigateBack';
  7471. }
  7472. return 'redirectTo';
  7473. },
  7474. args: function args(fromArgs) {
  7475. if (fromArgs.exists === 'back' && fromArgs.url) {
  7476. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  7477. if (existsPageIndex !== -1) {
  7478. var delta = getCurrentPages().length - 1 - existsPageIndex;
  7479. if (delta > 0) {
  7480. fromArgs.delta = delta;
  7481. }
  7482. }
  7483. }
  7484. }
  7485. };
  7486. var previewImage = {
  7487. args: function args(fromArgs) {
  7488. var currentIndex = parseInt(fromArgs.current);
  7489. if (isNaN(currentIndex)) {
  7490. return;
  7491. }
  7492. var urls = fromArgs.urls;
  7493. if (!Array.isArray(urls)) {
  7494. return;
  7495. }
  7496. var len = urls.length;
  7497. if (!len) {
  7498. return;
  7499. }
  7500. if (currentIndex < 0) {
  7501. currentIndex = 0;
  7502. } else if (currentIndex >= len) {
  7503. currentIndex = len - 1;
  7504. }
  7505. if (currentIndex > 0) {
  7506. fromArgs.current = urls[currentIndex];
  7507. fromArgs.urls = urls.filter(function (item, index) {
  7508. return index < currentIndex ? item !== urls[currentIndex] : true;
  7509. });
  7510. } else {
  7511. fromArgs.current = urls[0];
  7512. }
  7513. return {
  7514. indicator: false,
  7515. loop: false
  7516. };
  7517. }
  7518. };
  7519. var UUID_KEY = '__DC_STAT_UUID';
  7520. var deviceId;
  7521. function useDeviceId(result) {
  7522. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  7523. if (!deviceId) {
  7524. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  7525. wx.setStorage({
  7526. key: UUID_KEY,
  7527. data: deviceId
  7528. });
  7529. }
  7530. result.deviceId = deviceId;
  7531. }
  7532. function addSafeAreaInsets(result) {
  7533. if (result.safeArea) {
  7534. var safeArea = result.safeArea;
  7535. result.safeAreaInsets = {
  7536. top: safeArea.top,
  7537. left: safeArea.left,
  7538. right: result.windowWidth - safeArea.right,
  7539. bottom: result.screenHeight - safeArea.bottom
  7540. };
  7541. }
  7542. }
  7543. function populateParameters(result) {
  7544. var _result$brand = result.brand,
  7545. brand = _result$brand === void 0 ? '' : _result$brand,
  7546. _result$model = result.model,
  7547. model = _result$model === void 0 ? '' : _result$model,
  7548. _result$system = result.system,
  7549. system = _result$system === void 0 ? '' : _result$system,
  7550. _result$language = result.language,
  7551. language = _result$language === void 0 ? '' : _result$language,
  7552. theme = result.theme,
  7553. version = result.version,
  7554. platform = result.platform,
  7555. fontSizeSetting = result.fontSizeSetting,
  7556. SDKVersion = result.SDKVersion,
  7557. pixelRatio = result.pixelRatio,
  7558. deviceOrientation = result.deviceOrientation;
  7559. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  7560. var extraParam = {};
  7561. // osName osVersion
  7562. var osName = '';
  7563. var osVersion = '';
  7564. {
  7565. osName = system.split(' ')[0] || '';
  7566. osVersion = system.split(' ')[1] || '';
  7567. }
  7568. var hostVersion = version;
  7569. // deviceType
  7570. var deviceType = getGetDeviceType(result, model);
  7571. // deviceModel
  7572. var deviceBrand = getDeviceBrand(brand);
  7573. // hostName
  7574. var _hostName = getHostName(result);
  7575. // deviceOrientation
  7576. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  7577. // devicePixelRatio
  7578. var _devicePixelRatio = pixelRatio;
  7579. // SDKVersion
  7580. var _SDKVersion = SDKVersion;
  7581. // hostLanguage
  7582. var hostLanguage = language.replace(/_/g, '-');
  7583. // wx.getAccountInfoSync
  7584. var parameters = {
  7585. appId: "__UNI__EF90963",
  7586. appName: "wx",
  7587. appVersion: "1.0.0",
  7588. appVersionCode: "100",
  7589. appLanguage: getAppLanguage(hostLanguage),
  7590. uniCompileVersion: "4.17",
  7591. uniRuntimeVersion: "4.17",
  7592. uniPlatform: undefined || "mp-weixin",
  7593. deviceBrand: deviceBrand,
  7594. deviceModel: model,
  7595. deviceType: deviceType,
  7596. devicePixelRatio: _devicePixelRatio,
  7597. deviceOrientation: _deviceOrientation,
  7598. osName: osName.toLocaleLowerCase(),
  7599. osVersion: osVersion,
  7600. hostTheme: theme,
  7601. hostVersion: hostVersion,
  7602. hostLanguage: hostLanguage,
  7603. hostName: _hostName,
  7604. hostSDKVersion: _SDKVersion,
  7605. hostFontSizeSetting: fontSizeSetting,
  7606. windowTop: 0,
  7607. windowBottom: 0,
  7608. // TODO
  7609. osLanguage: undefined,
  7610. osTheme: undefined,
  7611. ua: undefined,
  7612. hostPackageName: undefined,
  7613. browserName: undefined,
  7614. browserVersion: undefined
  7615. };
  7616. Object.assign(result, parameters, extraParam);
  7617. }
  7618. function getGetDeviceType(result, model) {
  7619. var deviceType = result.deviceType || 'phone';
  7620. {
  7621. var deviceTypeMaps = {
  7622. ipad: 'pad',
  7623. windows: 'pc',
  7624. mac: 'pc'
  7625. };
  7626. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  7627. var _model = model.toLocaleLowerCase();
  7628. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  7629. var _m = deviceTypeMapsKeys[index];
  7630. if (_model.indexOf(_m) !== -1) {
  7631. deviceType = deviceTypeMaps[_m];
  7632. break;
  7633. }
  7634. }
  7635. }
  7636. return deviceType;
  7637. }
  7638. function getDeviceBrand(brand) {
  7639. var deviceBrand = brand;
  7640. if (deviceBrand) {
  7641. deviceBrand = brand.toLocaleLowerCase();
  7642. }
  7643. return deviceBrand;
  7644. }
  7645. function getAppLanguage(defaultLanguage) {
  7646. return getLocale$1 ? getLocale$1() : defaultLanguage;
  7647. }
  7648. function getHostName(result) {
  7649. var _platform = 'WeChat';
  7650. var _hostName = result.hostName || _platform; // mp-jd
  7651. {
  7652. if (result.environment) {
  7653. _hostName = result.environment;
  7654. } else if (result.host && result.host.env) {
  7655. _hostName = result.host.env;
  7656. }
  7657. }
  7658. return _hostName;
  7659. }
  7660. var getSystemInfo = {
  7661. returnValue: function returnValue(result) {
  7662. useDeviceId(result);
  7663. addSafeAreaInsets(result);
  7664. populateParameters(result);
  7665. }
  7666. };
  7667. var showActionSheet = {
  7668. args: function args(fromArgs) {
  7669. if ((0, _typeof2.default)(fromArgs) === 'object') {
  7670. fromArgs.alertText = fromArgs.title;
  7671. }
  7672. }
  7673. };
  7674. var getAppBaseInfo = {
  7675. returnValue: function returnValue(result) {
  7676. var _result = result,
  7677. version = _result.version,
  7678. language = _result.language,
  7679. SDKVersion = _result.SDKVersion,
  7680. theme = _result.theme;
  7681. var _hostName = getHostName(result);
  7682. var hostLanguage = language.replace('_', '-');
  7683. result = sortObject(Object.assign(result, {
  7684. appId: "__UNI__EF90963",
  7685. appName: "wx",
  7686. appVersion: "1.0.0",
  7687. appVersionCode: "100",
  7688. appLanguage: getAppLanguage(hostLanguage),
  7689. hostVersion: version,
  7690. hostLanguage: hostLanguage,
  7691. hostName: _hostName,
  7692. hostSDKVersion: SDKVersion,
  7693. hostTheme: theme
  7694. }));
  7695. }
  7696. };
  7697. var getDeviceInfo = {
  7698. returnValue: function returnValue(result) {
  7699. var _result2 = result,
  7700. brand = _result2.brand,
  7701. model = _result2.model;
  7702. var deviceType = getGetDeviceType(result, model);
  7703. var deviceBrand = getDeviceBrand(brand);
  7704. useDeviceId(result);
  7705. result = sortObject(Object.assign(result, {
  7706. deviceType: deviceType,
  7707. deviceBrand: deviceBrand,
  7708. deviceModel: model
  7709. }));
  7710. }
  7711. };
  7712. var getWindowInfo = {
  7713. returnValue: function returnValue(result) {
  7714. addSafeAreaInsets(result);
  7715. result = sortObject(Object.assign(result, {
  7716. windowTop: 0,
  7717. windowBottom: 0
  7718. }));
  7719. }
  7720. };
  7721. var getAppAuthorizeSetting = {
  7722. returnValue: function returnValue(result) {
  7723. var locationReducedAccuracy = result.locationReducedAccuracy;
  7724. result.locationAccuracy = 'unsupported';
  7725. if (locationReducedAccuracy === true) {
  7726. result.locationAccuracy = 'reduced';
  7727. } else if (locationReducedAccuracy === false) {
  7728. result.locationAccuracy = 'full';
  7729. }
  7730. }
  7731. };
  7732. // import navigateTo from 'uni-helpers/navigate-to'
  7733. var compressImage = {
  7734. args: function args(fromArgs) {
  7735. // https://developers.weixin.qq.com/community/develop/doc/000c08940c865011298e0a43256800?highLine=compressHeight
  7736. if (fromArgs.compressedHeight && !fromArgs.compressHeight) {
  7737. fromArgs.compressHeight = fromArgs.compressedHeight;
  7738. }
  7739. if (fromArgs.compressedWidth && !fromArgs.compressWidth) {
  7740. fromArgs.compressWidth = fromArgs.compressedWidth;
  7741. }
  7742. }
  7743. };
  7744. var protocols = {
  7745. redirectTo: redirectTo,
  7746. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  7747. previewImage: previewImage,
  7748. getSystemInfo: getSystemInfo,
  7749. getSystemInfoSync: getSystemInfo,
  7750. showActionSheet: showActionSheet,
  7751. getAppBaseInfo: getAppBaseInfo,
  7752. getDeviceInfo: getDeviceInfo,
  7753. getWindowInfo: getWindowInfo,
  7754. getAppAuthorizeSetting: getAppAuthorizeSetting,
  7755. compressImage: compressImage
  7756. };
  7757. var todos = ['vibrate', 'preloadPage', 'unPreloadPage', 'loadSubPackage'];
  7758. var canIUses = [];
  7759. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  7760. function processCallback(methodName, method, returnValue) {
  7761. return function (res) {
  7762. return method(processReturnValue(methodName, res, returnValue));
  7763. };
  7764. }
  7765. function processArgs(methodName, fromArgs) {
  7766. var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  7767. var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  7768. var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  7769. if (isPlainObject(fromArgs)) {
  7770. // 一般 api 的参数解析
  7771. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  7772. if (isFn(argsOption)) {
  7773. argsOption = argsOption(fromArgs, toArgs) || {};
  7774. }
  7775. for (var key in fromArgs) {
  7776. if (hasOwn(argsOption, key)) {
  7777. var keyOption = argsOption[key];
  7778. if (isFn(keyOption)) {
  7779. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  7780. }
  7781. if (!keyOption) {
  7782. // 不支持的参数
  7783. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  7784. } else if (isStr(keyOption)) {
  7785. // 重写参数 key
  7786. toArgs[keyOption] = fromArgs[key];
  7787. } else if (isPlainObject(keyOption)) {
  7788. // {name:newName,value:value}可重新指定参数 key:value
  7789. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  7790. }
  7791. } else if (CALLBACKS.indexOf(key) !== -1) {
  7792. if (isFn(fromArgs[key])) {
  7793. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  7794. }
  7795. } else {
  7796. if (!keepFromArgs) {
  7797. toArgs[key] = fromArgs[key];
  7798. }
  7799. }
  7800. }
  7801. return toArgs;
  7802. } else if (isFn(fromArgs)) {
  7803. fromArgs = processCallback(methodName, fromArgs, returnValue);
  7804. }
  7805. return fromArgs;
  7806. }
  7807. function processReturnValue(methodName, res, returnValue) {
  7808. var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  7809. if (isFn(protocols.returnValue)) {
  7810. // 处理通用 returnValue
  7811. res = protocols.returnValue(methodName, res);
  7812. }
  7813. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  7814. }
  7815. function wrapper(methodName, method) {
  7816. if (hasOwn(protocols, methodName)) {
  7817. var protocol = protocols[methodName];
  7818. if (!protocol) {
  7819. // 暂不支持的 api
  7820. return function () {
  7821. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  7822. };
  7823. }
  7824. return function (arg1, arg2) {
  7825. // 目前 api 最多两个参数
  7826. var options = protocol;
  7827. if (isFn(protocol)) {
  7828. options = protocol(arg1);
  7829. }
  7830. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  7831. var args = [arg1];
  7832. if (typeof arg2 !== 'undefined') {
  7833. args.push(arg2);
  7834. }
  7835. if (isFn(options.name)) {
  7836. methodName = options.name(arg1);
  7837. } else if (isStr(options.name)) {
  7838. methodName = options.name;
  7839. }
  7840. var returnValue = wx[methodName].apply(wx, args);
  7841. if (isSyncApi(methodName)) {
  7842. // 同步 api
  7843. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  7844. }
  7845. return returnValue;
  7846. };
  7847. }
  7848. return method;
  7849. }
  7850. var todoApis = Object.create(null);
  7851. var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
  7852. function createTodoApi(name) {
  7853. return function todoApi(_ref) {
  7854. var fail = _ref.fail,
  7855. complete = _ref.complete;
  7856. var res = {
  7857. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
  7858. };
  7859. isFn(fail) && fail(res);
  7860. isFn(complete) && complete(res);
  7861. };
  7862. }
  7863. TODOS.forEach(function (name) {
  7864. todoApis[name] = createTodoApi(name);
  7865. });
  7866. var providers = {
  7867. oauth: ['weixin'],
  7868. share: ['weixin'],
  7869. payment: ['wxpay'],
  7870. push: ['weixin']
  7871. };
  7872. function getProvider(_ref2) {
  7873. var service = _ref2.service,
  7874. success = _ref2.success,
  7875. fail = _ref2.fail,
  7876. complete = _ref2.complete;
  7877. var res = false;
  7878. if (providers[service]) {
  7879. res = {
  7880. errMsg: 'getProvider:ok',
  7881. service: service,
  7882. provider: providers[service]
  7883. };
  7884. isFn(success) && success(res);
  7885. } else {
  7886. res = {
  7887. errMsg: 'getProvider:fail service not found'
  7888. };
  7889. isFn(fail) && fail(res);
  7890. }
  7891. isFn(complete) && complete(res);
  7892. }
  7893. var extraApi = /*#__PURE__*/Object.freeze({
  7894. __proto__: null,
  7895. getProvider: getProvider
  7896. });
  7897. var getEmitter = function () {
  7898. var Emitter;
  7899. return function getUniEmitter() {
  7900. if (!Emitter) {
  7901. Emitter = new _vue.default();
  7902. }
  7903. return Emitter;
  7904. };
  7905. }();
  7906. function apply(ctx, method, args) {
  7907. return ctx[method].apply(ctx, args);
  7908. }
  7909. function $on() {
  7910. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  7911. }
  7912. function $off() {
  7913. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  7914. }
  7915. function $once() {
  7916. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  7917. }
  7918. function $emit() {
  7919. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  7920. }
  7921. var eventApi = /*#__PURE__*/Object.freeze({
  7922. __proto__: null,
  7923. $on: $on,
  7924. $off: $off,
  7925. $once: $once,
  7926. $emit: $emit
  7927. });
  7928. /**
  7929. * 框架内 try-catch
  7930. */
  7931. /**
  7932. * 开发者 try-catch
  7933. */
  7934. function tryCatch(fn) {
  7935. return function () {
  7936. try {
  7937. return fn.apply(fn, arguments);
  7938. } catch (e) {
  7939. // TODO
  7940. console.error(e);
  7941. }
  7942. };
  7943. }
  7944. function getApiCallbacks(params) {
  7945. var apiCallbacks = {};
  7946. for (var name in params) {
  7947. var param = params[name];
  7948. if (isFn(param)) {
  7949. apiCallbacks[name] = tryCatch(param);
  7950. delete params[name];
  7951. }
  7952. }
  7953. return apiCallbacks;
  7954. }
  7955. var cid;
  7956. var cidErrMsg;
  7957. var enabled;
  7958. function normalizePushMessage(message) {
  7959. try {
  7960. return JSON.parse(message);
  7961. } catch (e) {}
  7962. return message;
  7963. }
  7964. function invokePushCallback(args) {
  7965. if (args.type === 'enabled') {
  7966. enabled = true;
  7967. } else if (args.type === 'clientId') {
  7968. cid = args.cid;
  7969. cidErrMsg = args.errMsg;
  7970. invokeGetPushCidCallbacks(cid, args.errMsg);
  7971. } else if (args.type === 'pushMsg') {
  7972. var message = {
  7973. type: 'receive',
  7974. data: normalizePushMessage(args.message)
  7975. };
  7976. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  7977. var callback = onPushMessageCallbacks[i];
  7978. callback(message);
  7979. // 该消息已被阻止
  7980. if (message.stopped) {
  7981. break;
  7982. }
  7983. }
  7984. } else if (args.type === 'click') {
  7985. onPushMessageCallbacks.forEach(function (callback) {
  7986. callback({
  7987. type: 'click',
  7988. data: normalizePushMessage(args.message)
  7989. });
  7990. });
  7991. }
  7992. }
  7993. var getPushCidCallbacks = [];
  7994. function invokeGetPushCidCallbacks(cid, errMsg) {
  7995. getPushCidCallbacks.forEach(function (callback) {
  7996. callback(cid, errMsg);
  7997. });
  7998. getPushCidCallbacks.length = 0;
  7999. }
  8000. function getPushClientId(args) {
  8001. if (!isPlainObject(args)) {
  8002. args = {};
  8003. }
  8004. var _getApiCallbacks = getApiCallbacks(args),
  8005. success = _getApiCallbacks.success,
  8006. fail = _getApiCallbacks.fail,
  8007. complete = _getApiCallbacks.complete;
  8008. var hasSuccess = isFn(success);
  8009. var hasFail = isFn(fail);
  8010. var hasComplete = isFn(complete);
  8011. Promise.resolve().then(function () {
  8012. if (typeof enabled === 'undefined') {
  8013. enabled = false;
  8014. cid = '';
  8015. cidErrMsg = 'uniPush is not enabled';
  8016. }
  8017. getPushCidCallbacks.push(function (cid, errMsg) {
  8018. var res;
  8019. if (cid) {
  8020. res = {
  8021. errMsg: 'getPushClientId:ok',
  8022. cid: cid
  8023. };
  8024. hasSuccess && success(res);
  8025. } else {
  8026. res = {
  8027. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
  8028. };
  8029. hasFail && fail(res);
  8030. }
  8031. hasComplete && complete(res);
  8032. });
  8033. if (typeof cid !== 'undefined') {
  8034. invokeGetPushCidCallbacks(cid, cidErrMsg);
  8035. }
  8036. });
  8037. }
  8038. var onPushMessageCallbacks = [];
  8039. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  8040. var onPushMessage = function onPushMessage(fn) {
  8041. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  8042. onPushMessageCallbacks.push(fn);
  8043. }
  8044. };
  8045. var offPushMessage = function offPushMessage(fn) {
  8046. if (!fn) {
  8047. onPushMessageCallbacks.length = 0;
  8048. } else {
  8049. var index = onPushMessageCallbacks.indexOf(fn);
  8050. if (index > -1) {
  8051. onPushMessageCallbacks.splice(index, 1);
  8052. }
  8053. }
  8054. };
  8055. var baseInfo = wx.getAppBaseInfo && wx.getAppBaseInfo();
  8056. if (!baseInfo) {
  8057. baseInfo = wx.getSystemInfoSync();
  8058. }
  8059. var host = baseInfo ? baseInfo.host : null;
  8060. var shareVideoMessage = host && host.env === 'SAAASDK' ? wx.miniapp.shareVideoMessage : wx.shareVideoMessage;
  8061. var api = /*#__PURE__*/Object.freeze({
  8062. __proto__: null,
  8063. shareVideoMessage: shareVideoMessage,
  8064. getPushClientId: getPushClientId,
  8065. onPushMessage: onPushMessage,
  8066. offPushMessage: offPushMessage,
  8067. invokePushCallback: invokePushCallback
  8068. });
  8069. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  8070. function findVmByVueId(vm, vuePid) {
  8071. var $children = vm.$children;
  8072. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  8073. for (var i = $children.length - 1; i >= 0; i--) {
  8074. var childVm = $children[i];
  8075. if (childVm.$scope._$vueId === vuePid) {
  8076. return childVm;
  8077. }
  8078. }
  8079. // 反向递归查找
  8080. var parentVm;
  8081. for (var _i = $children.length - 1; _i >= 0; _i--) {
  8082. parentVm = findVmByVueId($children[_i], vuePid);
  8083. if (parentVm) {
  8084. return parentVm;
  8085. }
  8086. }
  8087. }
  8088. function initBehavior(options) {
  8089. return Behavior(options);
  8090. }
  8091. function isPage() {
  8092. return !!this.route;
  8093. }
  8094. function initRelation(detail) {
  8095. this.triggerEvent('__l', detail);
  8096. }
  8097. function selectAllComponents(mpInstance, selector, $refs) {
  8098. var components = mpInstance.selectAllComponents(selector) || [];
  8099. components.forEach(function (component) {
  8100. var ref = component.dataset.ref;
  8101. $refs[ref] = component.$vm || toSkip(component);
  8102. {
  8103. if (component.dataset.vueGeneric === 'scoped') {
  8104. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  8105. selectAllComponents(scopedComponent, selector, $refs);
  8106. });
  8107. }
  8108. }
  8109. });
  8110. }
  8111. function syncRefs(refs, newRefs) {
  8112. var oldKeys = (0, _construct2.default)(Set, (0, _toConsumableArray2.default)(Object.keys(refs)));
  8113. var newKeys = Object.keys(newRefs);
  8114. newKeys.forEach(function (key) {
  8115. var oldValue = refs[key];
  8116. var newValue = newRefs[key];
  8117. if (Array.isArray(oldValue) && Array.isArray(newValue) && oldValue.length === newValue.length && newValue.every(function (value) {
  8118. return oldValue.includes(value);
  8119. })) {
  8120. return;
  8121. }
  8122. refs[key] = newValue;
  8123. oldKeys.delete(key);
  8124. });
  8125. oldKeys.forEach(function (key) {
  8126. delete refs[key];
  8127. });
  8128. return refs;
  8129. }
  8130. function initRefs(vm) {
  8131. var mpInstance = vm.$scope;
  8132. var refs = {};
  8133. Object.defineProperty(vm, '$refs', {
  8134. get: function get() {
  8135. var $refs = {};
  8136. selectAllComponents(mpInstance, '.vue-ref', $refs);
  8137. // TODO 暂不考虑 for 中的 scoped
  8138. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for') || [];
  8139. forComponents.forEach(function (component) {
  8140. var ref = component.dataset.ref;
  8141. if (!$refs[ref]) {
  8142. $refs[ref] = [];
  8143. }
  8144. $refs[ref].push(component.$vm || toSkip(component));
  8145. });
  8146. return syncRefs(refs, $refs);
  8147. }
  8148. });
  8149. }
  8150. function handleLink(event) {
  8151. var _ref3 = event.detail || event.value,
  8152. vuePid = _ref3.vuePid,
  8153. vueOptions = _ref3.vueOptions; // detail 是微信,value 是百度(dipatch)
  8154. var parentVm;
  8155. if (vuePid) {
  8156. parentVm = findVmByVueId(this.$vm, vuePid);
  8157. }
  8158. if (!parentVm) {
  8159. parentVm = this.$vm;
  8160. }
  8161. vueOptions.parent = parentVm;
  8162. }
  8163. function markMPComponent(component) {
  8164. // 在 Vue 中标记为小程序组件
  8165. var IS_MP = '__v_isMPComponent';
  8166. Object.defineProperty(component, IS_MP, {
  8167. configurable: true,
  8168. enumerable: false,
  8169. value: true
  8170. });
  8171. return component;
  8172. }
  8173. function toSkip(obj) {
  8174. var OB = '__ob__';
  8175. var SKIP = '__v_skip';
  8176. if (isObject(obj) && Object.isExtensible(obj)) {
  8177. // 避免被 @vue/composition-api 观测
  8178. Object.defineProperty(obj, OB, {
  8179. configurable: true,
  8180. enumerable: false,
  8181. value: (0, _defineProperty2.default)({}, SKIP, true)
  8182. });
  8183. }
  8184. return obj;
  8185. }
  8186. var WORKLET_RE = /_(.*)_worklet_factory_/;
  8187. function initWorkletMethods(mpMethods, vueMethods) {
  8188. if (vueMethods) {
  8189. Object.keys(vueMethods).forEach(function (name) {
  8190. var matches = name.match(WORKLET_RE);
  8191. if (matches) {
  8192. var workletName = matches[1];
  8193. mpMethods[name] = vueMethods[name];
  8194. mpMethods[workletName] = vueMethods[workletName];
  8195. }
  8196. });
  8197. }
  8198. }
  8199. var MPPage = Page;
  8200. var MPComponent = Component;
  8201. var customizeRE = /:/g;
  8202. var customize = cached(function (str) {
  8203. return camelize(str.replace(customizeRE, '-'));
  8204. });
  8205. function initTriggerEvent(mpInstance) {
  8206. var oldTriggerEvent = mpInstance.triggerEvent;
  8207. var newTriggerEvent = function newTriggerEvent(event) {
  8208. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
  8209. args[_key3 - 1] = arguments[_key3];
  8210. }
  8211. // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
  8212. if (this.$vm || this.dataset && this.dataset.comType) {
  8213. event = customize(event);
  8214. } else {
  8215. // 针对微信/QQ小程序单独补充驼峰格式事件,以兼容历史项目
  8216. var newEvent = customize(event);
  8217. if (newEvent !== event) {
  8218. oldTriggerEvent.apply(this, [newEvent].concat(args));
  8219. }
  8220. }
  8221. return oldTriggerEvent.apply(this, [event].concat(args));
  8222. };
  8223. try {
  8224. // 京东小程序 triggerEvent 为只读
  8225. mpInstance.triggerEvent = newTriggerEvent;
  8226. } catch (error) {
  8227. mpInstance._triggerEvent = newTriggerEvent;
  8228. }
  8229. }
  8230. function initHook(name, options, isComponent) {
  8231. var oldHook = options[name];
  8232. options[name] = function () {
  8233. markMPComponent(this);
  8234. initTriggerEvent(this);
  8235. if (oldHook) {
  8236. for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  8237. args[_key4] = arguments[_key4];
  8238. }
  8239. return oldHook.apply(this, args);
  8240. }
  8241. };
  8242. }
  8243. if (!MPPage.__$wrappered) {
  8244. MPPage.__$wrappered = true;
  8245. Page = function Page() {
  8246. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  8247. initHook('onLoad', options);
  8248. return MPPage(options);
  8249. };
  8250. Page.after = MPPage.after;
  8251. Component = function Component() {
  8252. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  8253. initHook('created', options);
  8254. return MPComponent(options);
  8255. };
  8256. }
  8257. var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
  8258. function initMocks(vm, mocks) {
  8259. var mpInstance = vm.$mp[vm.mpType];
  8260. mocks.forEach(function (mock) {
  8261. if (hasOwn(mpInstance, mock)) {
  8262. vm[mock] = mpInstance[mock];
  8263. }
  8264. });
  8265. }
  8266. function hasHook(hook, vueOptions) {
  8267. if (!vueOptions) {
  8268. return true;
  8269. }
  8270. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  8271. return true;
  8272. }
  8273. vueOptions = vueOptions.default || vueOptions;
  8274. if (isFn(vueOptions)) {
  8275. if (isFn(vueOptions.extendOptions[hook])) {
  8276. return true;
  8277. }
  8278. if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
  8279. return true;
  8280. }
  8281. return false;
  8282. }
  8283. if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
  8284. return true;
  8285. }
  8286. var mixins = vueOptions.mixins;
  8287. if (Array.isArray(mixins)) {
  8288. return !!mixins.find(function (mixin) {
  8289. return hasHook(hook, mixin);
  8290. });
  8291. }
  8292. }
  8293. function initHooks(mpOptions, hooks, vueOptions) {
  8294. hooks.forEach(function (hook) {
  8295. if (hasHook(hook, vueOptions)) {
  8296. mpOptions[hook] = function (args) {
  8297. return this.$vm && this.$vm.__call_hook(hook, args);
  8298. };
  8299. }
  8300. });
  8301. }
  8302. function initUnknownHooks(mpOptions, vueOptions) {
  8303. var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  8304. findHooks(vueOptions).forEach(function (hook) {
  8305. return initHook$1(mpOptions, hook, excludes);
  8306. });
  8307. }
  8308. function findHooks(vueOptions) {
  8309. var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  8310. if (vueOptions) {
  8311. Object.keys(vueOptions).forEach(function (name) {
  8312. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  8313. hooks.push(name);
  8314. }
  8315. });
  8316. }
  8317. return hooks;
  8318. }
  8319. function initHook$1(mpOptions, hook, excludes) {
  8320. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  8321. mpOptions[hook] = function (args) {
  8322. return this.$vm && this.$vm.__call_hook(hook, args);
  8323. };
  8324. }
  8325. }
  8326. function initVueComponent(Vue, vueOptions) {
  8327. vueOptions = vueOptions.default || vueOptions;
  8328. var VueComponent;
  8329. if (isFn(vueOptions)) {
  8330. VueComponent = vueOptions;
  8331. } else {
  8332. VueComponent = Vue.extend(vueOptions);
  8333. }
  8334. vueOptions = VueComponent.options;
  8335. return [VueComponent, vueOptions];
  8336. }
  8337. function initSlots(vm, vueSlots) {
  8338. if (Array.isArray(vueSlots) && vueSlots.length) {
  8339. var $slots = Object.create(null);
  8340. vueSlots.forEach(function (slotName) {
  8341. $slots[slotName] = true;
  8342. });
  8343. vm.$scopedSlots = vm.$slots = $slots;
  8344. }
  8345. }
  8346. function initVueIds(vueIds, mpInstance) {
  8347. vueIds = (vueIds || '').split(',');
  8348. var len = vueIds.length;
  8349. if (len === 1) {
  8350. mpInstance._$vueId = vueIds[0];
  8351. } else if (len === 2) {
  8352. mpInstance._$vueId = vueIds[0];
  8353. mpInstance._$vuePid = vueIds[1];
  8354. }
  8355. }
  8356. function initData(vueOptions, context) {
  8357. var data = vueOptions.data || {};
  8358. var methods = vueOptions.methods || {};
  8359. if (typeof data === 'function') {
  8360. try {
  8361. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  8362. } catch (e) {
  8363. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"wx","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8364. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  8365. }
  8366. }
  8367. } else {
  8368. try {
  8369. // 对 data 格式化
  8370. data = JSON.parse(JSON.stringify(data));
  8371. } catch (e) {}
  8372. }
  8373. if (!isPlainObject(data)) {
  8374. data = {};
  8375. }
  8376. Object.keys(methods).forEach(function (methodName) {
  8377. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  8378. data[methodName] = methods[methodName];
  8379. }
  8380. });
  8381. return data;
  8382. }
  8383. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  8384. function createObserver(name) {
  8385. return function observer(newVal, oldVal) {
  8386. if (this.$vm) {
  8387. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  8388. }
  8389. };
  8390. }
  8391. function initBehaviors(vueOptions, initBehavior) {
  8392. var vueBehaviors = vueOptions.behaviors;
  8393. var vueExtends = vueOptions.extends;
  8394. var vueMixins = vueOptions.mixins;
  8395. var vueProps = vueOptions.props;
  8396. if (!vueProps) {
  8397. vueOptions.props = vueProps = [];
  8398. }
  8399. var behaviors = [];
  8400. if (Array.isArray(vueBehaviors)) {
  8401. vueBehaviors.forEach(function (behavior) {
  8402. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  8403. if (behavior === 'uni://form-field') {
  8404. if (Array.isArray(vueProps)) {
  8405. vueProps.push('name');
  8406. vueProps.push('value');
  8407. } else {
  8408. vueProps.name = {
  8409. type: String,
  8410. default: ''
  8411. };
  8412. vueProps.value = {
  8413. type: [String, Number, Boolean, Array, Object, Date],
  8414. default: ''
  8415. };
  8416. }
  8417. }
  8418. });
  8419. }
  8420. if (isPlainObject(vueExtends) && vueExtends.props) {
  8421. behaviors.push(initBehavior({
  8422. properties: initProperties(vueExtends.props, true)
  8423. }));
  8424. }
  8425. if (Array.isArray(vueMixins)) {
  8426. vueMixins.forEach(function (vueMixin) {
  8427. if (isPlainObject(vueMixin) && vueMixin.props) {
  8428. behaviors.push(initBehavior({
  8429. properties: initProperties(vueMixin.props, true)
  8430. }));
  8431. }
  8432. });
  8433. }
  8434. return behaviors;
  8435. }
  8436. function parsePropType(key, type, defaultValue, file) {
  8437. // [String]=>String
  8438. if (Array.isArray(type) && type.length === 1) {
  8439. return type[0];
  8440. }
  8441. return type;
  8442. }
  8443. function initProperties(props) {
  8444. var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  8445. var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  8446. var options = arguments.length > 3 ? arguments[3] : undefined;
  8447. var properties = {};
  8448. if (!isBehavior) {
  8449. properties.vueId = {
  8450. type: String,
  8451. value: ''
  8452. };
  8453. {
  8454. if (options.virtualHost) {
  8455. properties.virtualHostStyle = {
  8456. type: null,
  8457. value: ''
  8458. };
  8459. properties.virtualHostClass = {
  8460. type: null,
  8461. value: ''
  8462. };
  8463. }
  8464. }
  8465. // scopedSlotsCompiler auto
  8466. properties.scopedSlotsCompiler = {
  8467. type: String,
  8468. value: ''
  8469. };
  8470. properties.vueSlots = {
  8471. // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  8472. type: null,
  8473. value: [],
  8474. observer: function observer(newVal, oldVal) {
  8475. var $slots = Object.create(null);
  8476. newVal.forEach(function (slotName) {
  8477. $slots[slotName] = true;
  8478. });
  8479. this.setData({
  8480. $slots: $slots
  8481. });
  8482. }
  8483. };
  8484. }
  8485. if (Array.isArray(props)) {
  8486. // ['title']
  8487. props.forEach(function (key) {
  8488. properties[key] = {
  8489. type: null,
  8490. observer: createObserver(key)
  8491. };
  8492. });
  8493. } else if (isPlainObject(props)) {
  8494. // {title:{type:String,default:''},content:String}
  8495. Object.keys(props).forEach(function (key) {
  8496. var opts = props[key];
  8497. if (isPlainObject(opts)) {
  8498. // title:{type:String,default:''}
  8499. var value = opts.default;
  8500. if (isFn(value)) {
  8501. value = value();
  8502. }
  8503. opts.type = parsePropType(key, opts.type);
  8504. properties[key] = {
  8505. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  8506. value: value,
  8507. observer: createObserver(key)
  8508. };
  8509. } else {
  8510. // content:String
  8511. var type = parsePropType(key, opts);
  8512. properties[key] = {
  8513. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  8514. observer: createObserver(key)
  8515. };
  8516. }
  8517. });
  8518. }
  8519. return properties;
  8520. }
  8521. function wrapper$1(event) {
  8522. // TODO 又得兼容 mpvue 的 mp 对象
  8523. try {
  8524. event.mp = JSON.parse(JSON.stringify(event));
  8525. } catch (e) {}
  8526. event.stopPropagation = noop;
  8527. event.preventDefault = noop;
  8528. event.target = event.target || {};
  8529. if (!hasOwn(event, 'detail')) {
  8530. event.detail = {};
  8531. }
  8532. if (hasOwn(event, 'markerId')) {
  8533. event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
  8534. event.detail.markerId = event.markerId;
  8535. }
  8536. if (isPlainObject(event.detail)) {
  8537. event.target = Object.assign({}, event.target, event.detail);
  8538. }
  8539. return event;
  8540. }
  8541. function getExtraValue(vm, dataPathsArray) {
  8542. var context = vm;
  8543. dataPathsArray.forEach(function (dataPathArray) {
  8544. var dataPath = dataPathArray[0];
  8545. var value = dataPathArray[2];
  8546. if (dataPath || typeof value !== 'undefined') {
  8547. // ['','',index,'disable']
  8548. var propPath = dataPathArray[1];
  8549. var valuePath = dataPathArray[3];
  8550. var vFor;
  8551. if (Number.isInteger(dataPath)) {
  8552. vFor = dataPath;
  8553. } else if (!dataPath) {
  8554. vFor = context;
  8555. } else if (typeof dataPath === 'string' && dataPath) {
  8556. if (dataPath.indexOf('#s#') === 0) {
  8557. vFor = dataPath.substr(3);
  8558. } else {
  8559. vFor = vm.__get_value(dataPath, context);
  8560. }
  8561. }
  8562. if (Number.isInteger(vFor)) {
  8563. context = value;
  8564. } else if (!propPath) {
  8565. context = vFor[value];
  8566. } else {
  8567. if (Array.isArray(vFor)) {
  8568. context = vFor.find(function (vForItem) {
  8569. return vm.__get_value(propPath, vForItem) === value;
  8570. });
  8571. } else if (isPlainObject(vFor)) {
  8572. context = Object.keys(vFor).find(function (vForKey) {
  8573. return vm.__get_value(propPath, vFor[vForKey]) === value;
  8574. });
  8575. } else {
  8576. console.error('v-for 暂不支持循环数据:', vFor);
  8577. }
  8578. }
  8579. if (valuePath) {
  8580. context = vm.__get_value(valuePath, context);
  8581. }
  8582. }
  8583. });
  8584. return context;
  8585. }
  8586. function processEventExtra(vm, extra, event, __args__) {
  8587. var extraObj = {};
  8588. if (Array.isArray(extra) && extra.length) {
  8589. /**
  8590. *[
  8591. * ['data.items', 'data.id', item.data.id],
  8592. * ['metas', 'id', meta.id]
  8593. *],
  8594. *[
  8595. * ['data.items', 'data.id', item.data.id],
  8596. * ['metas', 'id', meta.id]
  8597. *],
  8598. *'test'
  8599. */
  8600. extra.forEach(function (dataPath, index) {
  8601. if (typeof dataPath === 'string') {
  8602. if (!dataPath) {
  8603. // model,prop.sync
  8604. extraObj['$' + index] = vm;
  8605. } else {
  8606. if (dataPath === '$event') {
  8607. // $event
  8608. extraObj['$' + index] = event;
  8609. } else if (dataPath === 'arguments') {
  8610. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  8611. } else if (dataPath.indexOf('$event.') === 0) {
  8612. // $event.target.value
  8613. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  8614. } else {
  8615. extraObj['$' + index] = vm.__get_value(dataPath);
  8616. }
  8617. }
  8618. } else {
  8619. extraObj['$' + index] = getExtraValue(vm, dataPath);
  8620. }
  8621. });
  8622. }
  8623. return extraObj;
  8624. }
  8625. function getObjByArray(arr) {
  8626. var obj = {};
  8627. for (var i = 1; i < arr.length; i++) {
  8628. var element = arr[i];
  8629. obj[element[0]] = element[1];
  8630. }
  8631. return obj;
  8632. }
  8633. function processEventArgs(vm, event) {
  8634. var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  8635. var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  8636. var isCustom = arguments.length > 4 ? arguments[4] : undefined;
  8637. var methodName = arguments.length > 5 ? arguments[5] : undefined;
  8638. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  8639. // fixed 用户直接触发 mpInstance.triggerEvent
  8640. var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
  8641. if (isCustom) {
  8642. // 自定义事件
  8643. isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
  8644. if (!args.length) {
  8645. // 无参数,直接传入 event 或 detail 数组
  8646. if (isCustomMPEvent) {
  8647. return [event];
  8648. }
  8649. return __args__;
  8650. }
  8651. }
  8652. var extraObj = processEventExtra(vm, extra, event, __args__);
  8653. var ret = [];
  8654. args.forEach(function (arg) {
  8655. if (arg === '$event') {
  8656. if (methodName === '__set_model' && !isCustom) {
  8657. // input v-model value
  8658. ret.push(event.target.value);
  8659. } else {
  8660. if (isCustom && !isCustomMPEvent) {
  8661. ret.push(__args__[0]);
  8662. } else {
  8663. // wxcomponent 组件或内置组件
  8664. ret.push(event);
  8665. }
  8666. }
  8667. } else {
  8668. if (Array.isArray(arg) && arg[0] === 'o') {
  8669. ret.push(getObjByArray(arg));
  8670. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  8671. ret.push(extraObj[arg]);
  8672. } else {
  8673. ret.push(arg);
  8674. }
  8675. }
  8676. });
  8677. return ret;
  8678. }
  8679. var ONCE = '~';
  8680. var CUSTOM = '^';
  8681. function isMatchEventType(eventType, optType) {
  8682. return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
  8683. }
  8684. function getContextVm(vm) {
  8685. var $parent = vm.$parent;
  8686. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  8687. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  8688. $parent = $parent.$parent;
  8689. }
  8690. return $parent && $parent.$parent;
  8691. }
  8692. function handleEvent(event) {
  8693. var _this2 = this;
  8694. event = wrapper$1(event);
  8695. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  8696. var dataset = (event.currentTarget || event.target).dataset;
  8697. if (!dataset) {
  8698. return console.warn('事件信息不存在');
  8699. }
  8700. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  8701. if (!eventOpts) {
  8702. return console.warn('事件信息不存在');
  8703. }
  8704. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  8705. var eventType = event.type;
  8706. var ret = [];
  8707. eventOpts.forEach(function (eventOpt) {
  8708. var type = eventOpt[0];
  8709. var eventsArray = eventOpt[1];
  8710. var isCustom = type.charAt(0) === CUSTOM;
  8711. type = isCustom ? type.slice(1) : type;
  8712. var isOnce = type.charAt(0) === ONCE;
  8713. type = isOnce ? type.slice(1) : type;
  8714. if (eventsArray && isMatchEventType(eventType, type)) {
  8715. eventsArray.forEach(function (eventArray) {
  8716. var methodName = eventArray[0];
  8717. if (methodName) {
  8718. var handlerCtx = _this2.$vm;
  8719. if (handlerCtx.$options.generic) {
  8720. // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  8721. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  8722. }
  8723. if (methodName === '$emit') {
  8724. handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
  8725. return;
  8726. }
  8727. var handler = handlerCtx[methodName];
  8728. if (!isFn(handler)) {
  8729. var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
  8730. var path = _this2.route || _this2.is;
  8731. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  8732. }
  8733. if (isOnce) {
  8734. if (handler.once) {
  8735. return;
  8736. }
  8737. handler.once = true;
  8738. }
  8739. var params = processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
  8740. params = Array.isArray(params) ? params : [];
  8741. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  8742. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  8743. // eslint-disable-next-line no-sparse-arrays
  8744. params = params.concat([,,,,,,,,,, event]);
  8745. }
  8746. ret.push(handler.apply(handlerCtx, params));
  8747. }
  8748. });
  8749. }
  8750. });
  8751. if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
  8752. return ret[0];
  8753. }
  8754. }
  8755. var eventChannels = {};
  8756. function getEventChannel(id) {
  8757. var eventChannel = eventChannels[id];
  8758. delete eventChannels[id];
  8759. return eventChannel;
  8760. }
  8761. var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
  8762. function initEventChannel() {
  8763. _vue.default.prototype.getOpenerEventChannel = function () {
  8764. // 微信小程序使用自身getOpenerEventChannel
  8765. {
  8766. return this.$scope.getOpenerEventChannel();
  8767. }
  8768. };
  8769. var callHook = _vue.default.prototype.__call_hook;
  8770. _vue.default.prototype.__call_hook = function (hook, args) {
  8771. if (hook === 'onLoad' && args && args.__id__) {
  8772. this.__eventChannel__ = getEventChannel(args.__id__);
  8773. delete args.__id__;
  8774. }
  8775. return callHook.call(this, hook, args);
  8776. };
  8777. }
  8778. function initScopedSlotsParams() {
  8779. var center = {};
  8780. var parents = {};
  8781. function currentId(fn) {
  8782. var vueIds = this.$options.propsData.vueId;
  8783. if (vueIds) {
  8784. var vueId = vueIds.split(',')[0];
  8785. fn(vueId);
  8786. }
  8787. }
  8788. _vue.default.prototype.$hasSSP = function (vueId) {
  8789. var slot = center[vueId];
  8790. if (!slot) {
  8791. parents[vueId] = this;
  8792. this.$on('hook:destroyed', function () {
  8793. delete parents[vueId];
  8794. });
  8795. }
  8796. return slot;
  8797. };
  8798. _vue.default.prototype.$getSSP = function (vueId, name, needAll) {
  8799. var slot = center[vueId];
  8800. if (slot) {
  8801. var params = slot[name] || [];
  8802. if (needAll) {
  8803. return params;
  8804. }
  8805. return params[0];
  8806. }
  8807. };
  8808. _vue.default.prototype.$setSSP = function (name, value) {
  8809. var index = 0;
  8810. currentId.call(this, function (vueId) {
  8811. var slot = center[vueId];
  8812. var params = slot[name] = slot[name] || [];
  8813. params.push(value);
  8814. index = params.length - 1;
  8815. });
  8816. return index;
  8817. };
  8818. _vue.default.prototype.$initSSP = function () {
  8819. currentId.call(this, function (vueId) {
  8820. center[vueId] = {};
  8821. });
  8822. };
  8823. _vue.default.prototype.$callSSP = function () {
  8824. currentId.call(this, function (vueId) {
  8825. if (parents[vueId]) {
  8826. parents[vueId].$forceUpdate();
  8827. }
  8828. });
  8829. };
  8830. _vue.default.mixin({
  8831. destroyed: function destroyed() {
  8832. var propsData = this.$options.propsData;
  8833. var vueId = propsData && propsData.vueId;
  8834. if (vueId) {
  8835. delete center[vueId];
  8836. delete parents[vueId];
  8837. }
  8838. }
  8839. });
  8840. }
  8841. function parseBaseApp(vm, _ref4) {
  8842. var mocks = _ref4.mocks,
  8843. initRefs = _ref4.initRefs;
  8844. initEventChannel();
  8845. {
  8846. initScopedSlotsParams();
  8847. }
  8848. if (vm.$options.store) {
  8849. _vue.default.prototype.$store = vm.$options.store;
  8850. }
  8851. uniIdMixin(_vue.default);
  8852. _vue.default.prototype.mpHost = "mp-weixin";
  8853. _vue.default.mixin({
  8854. beforeCreate: function beforeCreate() {
  8855. if (!this.$options.mpType) {
  8856. return;
  8857. }
  8858. this.mpType = this.$options.mpType;
  8859. this.$mp = (0, _defineProperty2.default)({
  8860. data: {}
  8861. }, this.mpType, this.$options.mpInstance);
  8862. this.$scope = this.$options.mpInstance;
  8863. delete this.$options.mpType;
  8864. delete this.$options.mpInstance;
  8865. if (this.mpType === 'page' && typeof getApp === 'function') {
  8866. // hack vue-i18n
  8867. var app = getApp();
  8868. if (app.$vm && app.$vm.$i18n) {
  8869. this._i18n = app.$vm.$i18n;
  8870. }
  8871. }
  8872. if (this.mpType !== 'app') {
  8873. initRefs(this);
  8874. initMocks(this, mocks);
  8875. }
  8876. }
  8877. });
  8878. var appOptions = {
  8879. onLaunch: function onLaunch(args) {
  8880. if (this.$vm) {
  8881. // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  8882. return;
  8883. }
  8884. {
  8885. if (wx.canIUse && !wx.canIUse('nextTick')) {
  8886. // 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  8887. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  8888. }
  8889. }
  8890. this.$vm = vm;
  8891. this.$vm.$mp = {
  8892. app: this
  8893. };
  8894. this.$vm.$scope = this;
  8895. // vm 上也挂载 globalData
  8896. this.$vm.globalData = this.globalData;
  8897. this.$vm._isMounted = true;
  8898. this.$vm.__call_hook('mounted', args);
  8899. this.$vm.__call_hook('onLaunch', args);
  8900. }
  8901. };
  8902. // 兼容旧版本 globalData
  8903. appOptions.globalData = vm.$options.globalData || {};
  8904. // 将 methods 中的方法挂在 getApp() 中
  8905. var methods = vm.$options.methods;
  8906. if (methods) {
  8907. Object.keys(methods).forEach(function (name) {
  8908. appOptions[name] = methods[name];
  8909. });
  8910. }
  8911. initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
  8912. initHooks(appOptions, hooks);
  8913. initUnknownHooks(appOptions, vm.$options);
  8914. return appOptions;
  8915. }
  8916. function parseApp(vm) {
  8917. return parseBaseApp(vm, {
  8918. mocks: mocks,
  8919. initRefs: initRefs
  8920. });
  8921. }
  8922. function createApp(vm) {
  8923. App(parseApp(vm));
  8924. return vm;
  8925. }
  8926. var encodeReserveRE = /[!'()*]/g;
  8927. var encodeReserveReplacer = function encodeReserveReplacer(c) {
  8928. return '%' + c.charCodeAt(0).toString(16);
  8929. };
  8930. var commaRE = /%2C/g;
  8931. // fixed encodeURIComponent which is more conformant to RFC3986:
  8932. // - escapes [!'()*]
  8933. // - preserve commas
  8934. var encode = function encode(str) {
  8935. return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
  8936. };
  8937. function stringifyQuery(obj) {
  8938. var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  8939. var res = obj ? Object.keys(obj).map(function (key) {
  8940. var val = obj[key];
  8941. if (val === undefined) {
  8942. return '';
  8943. }
  8944. if (val === null) {
  8945. return encodeStr(key);
  8946. }
  8947. if (Array.isArray(val)) {
  8948. var result = [];
  8949. val.forEach(function (val2) {
  8950. if (val2 === undefined) {
  8951. return;
  8952. }
  8953. if (val2 === null) {
  8954. result.push(encodeStr(key));
  8955. } else {
  8956. result.push(encodeStr(key) + '=' + encodeStr(val2));
  8957. }
  8958. });
  8959. return result.join('&');
  8960. }
  8961. return encodeStr(key) + '=' + encodeStr(val);
  8962. }).filter(function (x) {
  8963. return x.length > 0;
  8964. }).join('&') : null;
  8965. return res ? "?".concat(res) : '';
  8966. }
  8967. function parseBaseComponent(vueComponentOptions) {
  8968. var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  8969. isPage = _ref5.isPage,
  8970. initRelation = _ref5.initRelation;
  8971. var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
  8972. var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
  8973. _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
  8974. VueComponent = _initVueComponent2[0],
  8975. vueOptions = _initVueComponent2[1];
  8976. var options = _objectSpread({
  8977. multipleSlots: true,
  8978. // styleIsolation: 'apply-shared',
  8979. addGlobalClass: true
  8980. }, vueOptions.options || {});
  8981. {
  8982. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  8983. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  8984. Object.assign(options, vueOptions['mp-weixin'].options);
  8985. }
  8986. }
  8987. var componentOptions = {
  8988. options: options,
  8989. data: initData(vueOptions, _vue.default.prototype),
  8990. behaviors: initBehaviors(vueOptions, initBehavior),
  8991. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  8992. lifetimes: {
  8993. attached: function attached() {
  8994. var properties = this.properties;
  8995. var options = {
  8996. mpType: isPage.call(this) ? 'page' : 'component',
  8997. mpInstance: this,
  8998. propsData: properties
  8999. };
  9000. initVueIds(properties.vueId, this);
  9001. // 处理父子关系
  9002. initRelation.call(this, {
  9003. vuePid: this._$vuePid,
  9004. vueOptions: options
  9005. });
  9006. // 初始化 vue 实例
  9007. this.$vm = new VueComponent(options);
  9008. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  9009. initSlots(this.$vm, properties.vueSlots);
  9010. // 触发首次 setData
  9011. this.$vm.$mount();
  9012. },
  9013. ready: function ready() {
  9014. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  9015. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  9016. if (this.$vm) {
  9017. this.$vm._isMounted = true;
  9018. this.$vm.__call_hook('mounted');
  9019. this.$vm.__call_hook('onReady');
  9020. }
  9021. },
  9022. detached: function detached() {
  9023. this.$vm && this.$vm.$destroy();
  9024. }
  9025. },
  9026. pageLifetimes: {
  9027. show: function show(args) {
  9028. this.$vm && this.$vm.__call_hook('onPageShow', args);
  9029. },
  9030. hide: function hide() {
  9031. this.$vm && this.$vm.__call_hook('onPageHide');
  9032. },
  9033. resize: function resize(size) {
  9034. this.$vm && this.$vm.__call_hook('onPageResize', size);
  9035. }
  9036. },
  9037. methods: {
  9038. __l: handleLink,
  9039. __e: handleEvent
  9040. }
  9041. };
  9042. // externalClasses
  9043. if (vueOptions.externalClasses) {
  9044. componentOptions.externalClasses = vueOptions.externalClasses;
  9045. }
  9046. if (Array.isArray(vueOptions.wxsCallMethods)) {
  9047. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  9048. componentOptions.methods[callMethod] = function (args) {
  9049. return this.$vm[callMethod](args);
  9050. };
  9051. });
  9052. }
  9053. if (needVueOptions) {
  9054. return [componentOptions, vueOptions, VueComponent];
  9055. }
  9056. if (isPage) {
  9057. return componentOptions;
  9058. }
  9059. return [componentOptions, VueComponent];
  9060. }
  9061. function parseComponent(vueComponentOptions, needVueOptions) {
  9062. return parseBaseComponent(vueComponentOptions, {
  9063. isPage: isPage,
  9064. initRelation: initRelation
  9065. }, needVueOptions);
  9066. }
  9067. var hooks$1 = ['onShow', 'onHide', 'onUnload'];
  9068. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  9069. function parseBasePage(vuePageOptions) {
  9070. var _parseComponent = parseComponent(vuePageOptions, true),
  9071. _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
  9072. pageOptions = _parseComponent2[0],
  9073. vueOptions = _parseComponent2[1];
  9074. initHooks(pageOptions.methods, hooks$1, vueOptions);
  9075. pageOptions.methods.onLoad = function (query) {
  9076. this.options = query;
  9077. var copyQuery = Object.assign({}, query);
  9078. delete copyQuery.__id__;
  9079. this.$page = {
  9080. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
  9081. };
  9082. this.$vm.$mp.query = query; // 兼容 mpvue
  9083. this.$vm.__call_hook('onLoad', query);
  9084. };
  9085. {
  9086. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  9087. }
  9088. {
  9089. initWorkletMethods(pageOptions.methods, vueOptions.methods);
  9090. }
  9091. return pageOptions;
  9092. }
  9093. function parsePage(vuePageOptions) {
  9094. return parseBasePage(vuePageOptions);
  9095. }
  9096. function createPage(vuePageOptions) {
  9097. {
  9098. return Component(parsePage(vuePageOptions));
  9099. }
  9100. }
  9101. function createComponent(vueOptions) {
  9102. {
  9103. return Component(parseComponent(vueOptions));
  9104. }
  9105. }
  9106. function createSubpackageApp(vm) {
  9107. var appOptions = parseApp(vm);
  9108. var app = getApp({
  9109. allowDefault: true
  9110. });
  9111. vm.$scope = app;
  9112. var globalData = app.globalData;
  9113. if (globalData) {
  9114. Object.keys(appOptions.globalData).forEach(function (name) {
  9115. if (!hasOwn(globalData, name)) {
  9116. globalData[name] = appOptions.globalData[name];
  9117. }
  9118. });
  9119. }
  9120. Object.keys(appOptions).forEach(function (name) {
  9121. if (!hasOwn(app, name)) {
  9122. app[name] = appOptions[name];
  9123. }
  9124. });
  9125. if (isFn(appOptions.onShow) && wx.onAppShow) {
  9126. wx.onAppShow(function () {
  9127. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  9128. args[_key5] = arguments[_key5];
  9129. }
  9130. vm.__call_hook('onShow', args);
  9131. });
  9132. }
  9133. if (isFn(appOptions.onHide) && wx.onAppHide) {
  9134. wx.onAppHide(function () {
  9135. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  9136. args[_key6] = arguments[_key6];
  9137. }
  9138. vm.__call_hook('onHide', args);
  9139. });
  9140. }
  9141. if (isFn(appOptions.onLaunch)) {
  9142. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  9143. vm.__call_hook('onLaunch', args);
  9144. }
  9145. return vm;
  9146. }
  9147. function createPlugin(vm) {
  9148. var appOptions = parseApp(vm);
  9149. if (isFn(appOptions.onShow) && wx.onAppShow) {
  9150. wx.onAppShow(function () {
  9151. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  9152. args[_key7] = arguments[_key7];
  9153. }
  9154. vm.__call_hook('onShow', args);
  9155. });
  9156. }
  9157. if (isFn(appOptions.onHide) && wx.onAppHide) {
  9158. wx.onAppHide(function () {
  9159. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  9160. args[_key8] = arguments[_key8];
  9161. }
  9162. vm.__call_hook('onHide', args);
  9163. });
  9164. }
  9165. if (isFn(appOptions.onLaunch)) {
  9166. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  9167. vm.__call_hook('onLaunch', args);
  9168. }
  9169. return vm;
  9170. }
  9171. todos.forEach(function (todoApi) {
  9172. protocols[todoApi] = false;
  9173. });
  9174. canIUses.forEach(function (canIUseApi) {
  9175. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  9176. if (!wx.canIUse(apiName)) {
  9177. protocols[canIUseApi] = false;
  9178. }
  9179. });
  9180. var uni = {};
  9181. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  9182. uni = new Proxy({}, {
  9183. get: function get(target, name) {
  9184. if (hasOwn(target, name)) {
  9185. return target[name];
  9186. }
  9187. if (baseApi[name]) {
  9188. return baseApi[name];
  9189. }
  9190. if (api[name]) {
  9191. return promisify(name, api[name]);
  9192. }
  9193. {
  9194. if (extraApi[name]) {
  9195. return promisify(name, extraApi[name]);
  9196. }
  9197. if (todoApis[name]) {
  9198. return promisify(name, todoApis[name]);
  9199. }
  9200. }
  9201. if (eventApi[name]) {
  9202. return eventApi[name];
  9203. }
  9204. return promisify(name, wrapper(name, wx[name]));
  9205. },
  9206. set: function set(target, name, value) {
  9207. target[name] = value;
  9208. return true;
  9209. }
  9210. });
  9211. } else {
  9212. Object.keys(baseApi).forEach(function (name) {
  9213. uni[name] = baseApi[name];
  9214. });
  9215. {
  9216. Object.keys(todoApis).forEach(function (name) {
  9217. uni[name] = promisify(name, todoApis[name]);
  9218. });
  9219. Object.keys(extraApi).forEach(function (name) {
  9220. uni[name] = promisify(name, extraApi[name]);
  9221. });
  9222. }
  9223. Object.keys(eventApi).forEach(function (name) {
  9224. uni[name] = eventApi[name];
  9225. });
  9226. Object.keys(api).forEach(function (name) {
  9227. uni[name] = promisify(name, api[name]);
  9228. });
  9229. Object.keys(wx).forEach(function (name) {
  9230. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  9231. uni[name] = promisify(name, wrapper(name, wx[name]));
  9232. }
  9233. });
  9234. }
  9235. wx.createApp = createApp;
  9236. wx.createPage = createPage;
  9237. wx.createComponent = createComponent;
  9238. wx.createSubpackageApp = createSubpackageApp;
  9239. wx.createPlugin = createPlugin;
  9240. var uni$1 = uni;
  9241. var _default = uni$1;
  9242. exports.default = _default;
  9243. /* 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)))
  9244. /***/ }),
  9245. /***/ 20:
  9246. /*!****************************************************************!*\
  9247. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  9248. \****************************************************************/
  9249. /*! no static exports found */
  9250. /***/ (function(module, exports) {
  9251. function _iterableToArray(iter) {
  9252. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  9253. }
  9254. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  9255. /***/ }),
  9256. /***/ 21:
  9257. /*!******************************************************************!*\
  9258. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  9259. \******************************************************************/
  9260. /*! no static exports found */
  9261. /***/ (function(module, exports) {
  9262. function _nonIterableSpread() {
  9263. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  9264. }
  9265. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  9266. /***/ }),
  9267. /***/ 22:
  9268. /*!*************************************************************!*\
  9269. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  9270. \*************************************************************/
  9271. /*! no static exports found */
  9272. /***/ (function(module, exports, __webpack_require__) {
  9273. "use strict";
  9274. /* WEBPACK VAR INJECTION */(function(uni, global) {
  9275. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9276. Object.defineProperty(exports, "__esModule", {
  9277. value: true
  9278. });
  9279. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  9280. exports.compileI18nJsonStr = compileI18nJsonStr;
  9281. exports.hasI18nJson = hasI18nJson;
  9282. exports.initVueI18n = initVueI18n;
  9283. exports.isI18nStr = isI18nStr;
  9284. exports.isString = void 0;
  9285. exports.normalizeLocale = normalizeLocale;
  9286. exports.parseI18nJson = parseI18nJson;
  9287. exports.resolveLocale = resolveLocale;
  9288. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  9289. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  9290. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  9291. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  9292. var isObject = function isObject(val) {
  9293. return val !== null && (0, _typeof2.default)(val) === 'object';
  9294. };
  9295. var defaultDelimiters = ['{', '}'];
  9296. var BaseFormatter = /*#__PURE__*/function () {
  9297. function BaseFormatter() {
  9298. (0, _classCallCheck2.default)(this, BaseFormatter);
  9299. this._caches = Object.create(null);
  9300. }
  9301. (0, _createClass2.default)(BaseFormatter, [{
  9302. key: "interpolate",
  9303. value: function interpolate(message, values) {
  9304. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  9305. if (!values) {
  9306. return [message];
  9307. }
  9308. var tokens = this._caches[message];
  9309. if (!tokens) {
  9310. tokens = parse(message, delimiters);
  9311. this._caches[message] = tokens;
  9312. }
  9313. return compile(tokens, values);
  9314. }
  9315. }]);
  9316. return BaseFormatter;
  9317. }();
  9318. exports.Formatter = BaseFormatter;
  9319. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  9320. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  9321. function parse(format, _ref) {
  9322. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  9323. startDelimiter = _ref2[0],
  9324. endDelimiter = _ref2[1];
  9325. var tokens = [];
  9326. var position = 0;
  9327. var text = '';
  9328. while (position < format.length) {
  9329. var char = format[position++];
  9330. if (char === startDelimiter) {
  9331. if (text) {
  9332. tokens.push({
  9333. type: 'text',
  9334. value: text
  9335. });
  9336. }
  9337. text = '';
  9338. var sub = '';
  9339. char = format[position++];
  9340. while (char !== undefined && char !== endDelimiter) {
  9341. sub += char;
  9342. char = format[position++];
  9343. }
  9344. var isClosed = char === endDelimiter;
  9345. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  9346. tokens.push({
  9347. value: sub,
  9348. type: type
  9349. });
  9350. }
  9351. // else if (char === '%') {
  9352. // // when found rails i18n syntax, skip text capture
  9353. // if (format[position] !== '{') {
  9354. // text += char
  9355. // }
  9356. // }
  9357. else {
  9358. text += char;
  9359. }
  9360. }
  9361. text && tokens.push({
  9362. type: 'text',
  9363. value: text
  9364. });
  9365. return tokens;
  9366. }
  9367. function compile(tokens, values) {
  9368. var compiled = [];
  9369. var index = 0;
  9370. var mode = Array.isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  9371. if (mode === 'unknown') {
  9372. return compiled;
  9373. }
  9374. while (index < tokens.length) {
  9375. var token = tokens[index];
  9376. switch (token.type) {
  9377. case 'text':
  9378. compiled.push(token.value);
  9379. break;
  9380. case 'list':
  9381. compiled.push(values[parseInt(token.value, 10)]);
  9382. break;
  9383. case 'named':
  9384. if (mode === 'named') {
  9385. compiled.push(values[token.value]);
  9386. } else {
  9387. if (true) {
  9388. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  9389. }
  9390. }
  9391. break;
  9392. case 'unknown':
  9393. if (true) {
  9394. console.warn("Detect 'unknown' type of token!");
  9395. }
  9396. break;
  9397. }
  9398. index++;
  9399. }
  9400. return compiled;
  9401. }
  9402. var LOCALE_ZH_HANS = 'zh-Hans';
  9403. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  9404. var LOCALE_ZH_HANT = 'zh-Hant';
  9405. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  9406. var LOCALE_EN = 'en';
  9407. exports.LOCALE_EN = LOCALE_EN;
  9408. var LOCALE_FR = 'fr';
  9409. exports.LOCALE_FR = LOCALE_FR;
  9410. var LOCALE_ES = 'es';
  9411. exports.LOCALE_ES = LOCALE_ES;
  9412. var hasOwnProperty = Object.prototype.hasOwnProperty;
  9413. var hasOwn = function hasOwn(val, key) {
  9414. return hasOwnProperty.call(val, key);
  9415. };
  9416. var defaultFormatter = new BaseFormatter();
  9417. function include(str, parts) {
  9418. return !!parts.find(function (part) {
  9419. return str.indexOf(part) !== -1;
  9420. });
  9421. }
  9422. function startsWith(str, parts) {
  9423. return parts.find(function (part) {
  9424. return str.indexOf(part) === 0;
  9425. });
  9426. }
  9427. function normalizeLocale(locale, messages) {
  9428. if (!locale) {
  9429. return;
  9430. }
  9431. locale = locale.trim().replace(/_/g, '-');
  9432. if (messages && messages[locale]) {
  9433. return locale;
  9434. }
  9435. locale = locale.toLowerCase();
  9436. if (locale === 'chinese') {
  9437. // 支付宝
  9438. return LOCALE_ZH_HANS;
  9439. }
  9440. if (locale.indexOf('zh') === 0) {
  9441. if (locale.indexOf('-hans') > -1) {
  9442. return LOCALE_ZH_HANS;
  9443. }
  9444. if (locale.indexOf('-hant') > -1) {
  9445. return LOCALE_ZH_HANT;
  9446. }
  9447. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  9448. return LOCALE_ZH_HANT;
  9449. }
  9450. return LOCALE_ZH_HANS;
  9451. }
  9452. var locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES];
  9453. if (messages && Object.keys(messages).length > 0) {
  9454. locales = Object.keys(messages);
  9455. }
  9456. var lang = startsWith(locale, locales);
  9457. if (lang) {
  9458. return lang;
  9459. }
  9460. }
  9461. var I18n = /*#__PURE__*/function () {
  9462. function I18n(_ref3) {
  9463. var locale = _ref3.locale,
  9464. fallbackLocale = _ref3.fallbackLocale,
  9465. messages = _ref3.messages,
  9466. watcher = _ref3.watcher,
  9467. formater = _ref3.formater;
  9468. (0, _classCallCheck2.default)(this, I18n);
  9469. this.locale = LOCALE_EN;
  9470. this.fallbackLocale = LOCALE_EN;
  9471. this.message = {};
  9472. this.messages = {};
  9473. this.watchers = [];
  9474. if (fallbackLocale) {
  9475. this.fallbackLocale = fallbackLocale;
  9476. }
  9477. this.formater = formater || defaultFormatter;
  9478. this.messages = messages || {};
  9479. this.setLocale(locale || LOCALE_EN);
  9480. if (watcher) {
  9481. this.watchLocale(watcher);
  9482. }
  9483. }
  9484. (0, _createClass2.default)(I18n, [{
  9485. key: "setLocale",
  9486. value: function setLocale(locale) {
  9487. var _this = this;
  9488. var oldLocale = this.locale;
  9489. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  9490. if (!this.messages[this.locale]) {
  9491. // 可能初始化时不存在
  9492. this.messages[this.locale] = {};
  9493. }
  9494. this.message = this.messages[this.locale];
  9495. // 仅发生变化时,通知
  9496. if (oldLocale !== this.locale) {
  9497. this.watchers.forEach(function (watcher) {
  9498. watcher(_this.locale, oldLocale);
  9499. });
  9500. }
  9501. }
  9502. }, {
  9503. key: "getLocale",
  9504. value: function getLocale() {
  9505. return this.locale;
  9506. }
  9507. }, {
  9508. key: "watchLocale",
  9509. value: function watchLocale(fn) {
  9510. var _this2 = this;
  9511. var index = this.watchers.push(fn) - 1;
  9512. return function () {
  9513. _this2.watchers.splice(index, 1);
  9514. };
  9515. }
  9516. }, {
  9517. key: "add",
  9518. value: function add(locale, message) {
  9519. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  9520. var curMessages = this.messages[locale];
  9521. if (curMessages) {
  9522. if (override) {
  9523. Object.assign(curMessages, message);
  9524. } else {
  9525. Object.keys(message).forEach(function (key) {
  9526. if (!hasOwn(curMessages, key)) {
  9527. curMessages[key] = message[key];
  9528. }
  9529. });
  9530. }
  9531. } else {
  9532. this.messages[locale] = message;
  9533. }
  9534. }
  9535. }, {
  9536. key: "f",
  9537. value: function f(message, values, delimiters) {
  9538. return this.formater.interpolate(message, values, delimiters).join('');
  9539. }
  9540. }, {
  9541. key: "t",
  9542. value: function t(key, locale, values) {
  9543. var message = this.message;
  9544. if (typeof locale === 'string') {
  9545. locale = normalizeLocale(locale, this.messages);
  9546. locale && (message = this.messages[locale]);
  9547. } else {
  9548. values = locale;
  9549. }
  9550. if (!hasOwn(message, key)) {
  9551. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  9552. return key;
  9553. }
  9554. return this.formater.interpolate(message[key], values).join('');
  9555. }
  9556. }]);
  9557. return I18n;
  9558. }();
  9559. exports.I18n = I18n;
  9560. function watchAppLocale(appVm, i18n) {
  9561. // 需要保证 watch 的触发在组件渲染之前
  9562. if (appVm.$watchLocale) {
  9563. // vue2
  9564. appVm.$watchLocale(function (newLocale) {
  9565. i18n.setLocale(newLocale);
  9566. });
  9567. } else {
  9568. appVm.$watch(function () {
  9569. return appVm.$locale;
  9570. }, function (newLocale) {
  9571. i18n.setLocale(newLocale);
  9572. });
  9573. }
  9574. }
  9575. function getDefaultLocale() {
  9576. if (typeof uni !== 'undefined' && uni.getLocale) {
  9577. return uni.getLocale();
  9578. }
  9579. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  9580. if (typeof global !== 'undefined' && global.getLocale) {
  9581. return global.getLocale();
  9582. }
  9583. return LOCALE_EN;
  9584. }
  9585. function initVueI18n(locale) {
  9586. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9587. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  9588. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  9589. // 兼容旧版本入参
  9590. if (typeof locale !== 'string') {
  9591. var _ref4 = [messages, locale];
  9592. locale = _ref4[0];
  9593. messages = _ref4[1];
  9594. }
  9595. if (typeof locale !== 'string') {
  9596. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  9597. locale = getDefaultLocale();
  9598. }
  9599. if (typeof fallbackLocale !== 'string') {
  9600. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  9601. }
  9602. var i18n = new I18n({
  9603. locale: locale,
  9604. fallbackLocale: fallbackLocale,
  9605. messages: messages,
  9606. watcher: watcher
  9607. });
  9608. var _t = function t(key, values) {
  9609. if (typeof getApp !== 'function') {
  9610. // app view
  9611. /* eslint-disable no-func-assign */
  9612. _t = function t(key, values) {
  9613. return i18n.t(key, values);
  9614. };
  9615. } else {
  9616. var isWatchedAppLocale = false;
  9617. _t = function t(key, values) {
  9618. var appVm = getApp().$vm;
  9619. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  9620. // options: {
  9621. // type: Array,
  9622. // default () {
  9623. // return [{
  9624. // icon: 'shop',
  9625. // text: t("uni-goods-nav.options.shop"),
  9626. // }, {
  9627. // icon: 'cart',
  9628. // text: t("uni-goods-nav.options.cart")
  9629. // }]
  9630. // }
  9631. // },
  9632. if (appVm) {
  9633. // 触发响应式
  9634. appVm.$locale;
  9635. if (!isWatchedAppLocale) {
  9636. isWatchedAppLocale = true;
  9637. watchAppLocale(appVm, i18n);
  9638. }
  9639. }
  9640. return i18n.t(key, values);
  9641. };
  9642. }
  9643. return _t(key, values);
  9644. };
  9645. return {
  9646. i18n: i18n,
  9647. f: function f(message, values, delimiters) {
  9648. return i18n.f(message, values, delimiters);
  9649. },
  9650. t: function t(key, values) {
  9651. return _t(key, values);
  9652. },
  9653. add: function add(locale, message) {
  9654. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  9655. return i18n.add(locale, message, override);
  9656. },
  9657. watch: function watch(fn) {
  9658. return i18n.watchLocale(fn);
  9659. },
  9660. getLocale: function getLocale() {
  9661. return i18n.getLocale();
  9662. },
  9663. setLocale: function setLocale(newLocale) {
  9664. return i18n.setLocale(newLocale);
  9665. }
  9666. };
  9667. }
  9668. var isString = function isString(val) {
  9669. return typeof val === 'string';
  9670. };
  9671. exports.isString = isString;
  9672. var formater;
  9673. function hasI18nJson(jsonObj, delimiters) {
  9674. if (!formater) {
  9675. formater = new BaseFormatter();
  9676. }
  9677. return walkJsonObj(jsonObj, function (jsonObj, key) {
  9678. var value = jsonObj[key];
  9679. if (isString(value)) {
  9680. if (isI18nStr(value, delimiters)) {
  9681. return true;
  9682. }
  9683. } else {
  9684. return hasI18nJson(value, delimiters);
  9685. }
  9686. });
  9687. }
  9688. function parseI18nJson(jsonObj, values, delimiters) {
  9689. if (!formater) {
  9690. formater = new BaseFormatter();
  9691. }
  9692. walkJsonObj(jsonObj, function (jsonObj, key) {
  9693. var value = jsonObj[key];
  9694. if (isString(value)) {
  9695. if (isI18nStr(value, delimiters)) {
  9696. jsonObj[key] = compileStr(value, values, delimiters);
  9697. }
  9698. } else {
  9699. parseI18nJson(value, values, delimiters);
  9700. }
  9701. });
  9702. return jsonObj;
  9703. }
  9704. function compileI18nJsonStr(jsonStr, _ref5) {
  9705. var locale = _ref5.locale,
  9706. locales = _ref5.locales,
  9707. delimiters = _ref5.delimiters;
  9708. if (!isI18nStr(jsonStr, delimiters)) {
  9709. return jsonStr;
  9710. }
  9711. if (!formater) {
  9712. formater = new BaseFormatter();
  9713. }
  9714. var localeValues = [];
  9715. Object.keys(locales).forEach(function (name) {
  9716. if (name !== locale) {
  9717. localeValues.push({
  9718. locale: name,
  9719. values: locales[name]
  9720. });
  9721. }
  9722. });
  9723. localeValues.unshift({
  9724. locale: locale,
  9725. values: locales[locale]
  9726. });
  9727. try {
  9728. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  9729. } catch (e) {}
  9730. return jsonStr;
  9731. }
  9732. function isI18nStr(value, delimiters) {
  9733. return value.indexOf(delimiters[0]) > -1;
  9734. }
  9735. function compileStr(value, values, delimiters) {
  9736. return formater.interpolate(value, values, delimiters).join('');
  9737. }
  9738. function compileValue(jsonObj, key, localeValues, delimiters) {
  9739. var value = jsonObj[key];
  9740. if (isString(value)) {
  9741. // 存在国际化
  9742. if (isI18nStr(value, delimiters)) {
  9743. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  9744. if (localeValues.length > 1) {
  9745. // 格式化国际化语言
  9746. var valueLocales = jsonObj[key + 'Locales'] = {};
  9747. localeValues.forEach(function (localValue) {
  9748. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  9749. });
  9750. }
  9751. }
  9752. } else {
  9753. compileJsonObj(value, localeValues, delimiters);
  9754. }
  9755. }
  9756. function compileJsonObj(jsonObj, localeValues, delimiters) {
  9757. walkJsonObj(jsonObj, function (jsonObj, key) {
  9758. compileValue(jsonObj, key, localeValues, delimiters);
  9759. });
  9760. return jsonObj;
  9761. }
  9762. function walkJsonObj(jsonObj, walk) {
  9763. if (Array.isArray(jsonObj)) {
  9764. for (var i = 0; i < jsonObj.length; i++) {
  9765. if (walk(jsonObj, i)) {
  9766. return true;
  9767. }
  9768. }
  9769. } else if (isObject(jsonObj)) {
  9770. for (var key in jsonObj) {
  9771. if (walk(jsonObj, key)) {
  9772. return true;
  9773. }
  9774. }
  9775. }
  9776. return false;
  9777. }
  9778. function resolveLocale(locales) {
  9779. return function (locale) {
  9780. if (!locale) {
  9781. return locale;
  9782. }
  9783. locale = normalizeLocale(locale) || locale;
  9784. return resolveLocaleChain(locale).find(function (locale) {
  9785. return locales.indexOf(locale) > -1;
  9786. });
  9787. };
  9788. }
  9789. function resolveLocaleChain(locale) {
  9790. var chain = [];
  9791. var tokens = locale.split('-');
  9792. while (tokens.length) {
  9793. chain.push(tokens.join('-'));
  9794. tokens.pop();
  9795. }
  9796. return chain;
  9797. }
  9798. /* 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)))
  9799. /***/ }),
  9800. /***/ 23:
  9801. /*!***************************************************************!*\
  9802. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  9803. \***************************************************************/
  9804. /*! no static exports found */
  9805. /***/ (function(module, exports) {
  9806. function _classCallCheck(instance, Constructor) {
  9807. if (!(instance instanceof Constructor)) {
  9808. throw new TypeError("Cannot call a class as a function");
  9809. }
  9810. }
  9811. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  9812. /***/ }),
  9813. /***/ 24:
  9814. /*!************************************************************!*\
  9815. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  9816. \************************************************************/
  9817. /*! no static exports found */
  9818. /***/ (function(module, exports, __webpack_require__) {
  9819. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  9820. function _defineProperties(target, props) {
  9821. for (var i = 0; i < props.length; i++) {
  9822. var descriptor = props[i];
  9823. descriptor.enumerable = descriptor.enumerable || false;
  9824. descriptor.configurable = true;
  9825. if ("value" in descriptor) descriptor.writable = true;
  9826. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  9827. }
  9828. }
  9829. function _createClass(Constructor, protoProps, staticProps) {
  9830. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  9831. if (staticProps) _defineProperties(Constructor, staticProps);
  9832. Object.defineProperty(Constructor, "prototype", {
  9833. writable: false
  9834. });
  9835. return Constructor;
  9836. }
  9837. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  9838. /***/ }),
  9839. /***/ 25:
  9840. /*!******************************************************************************************!*\
  9841. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  9842. \******************************************************************************************/
  9843. /*! exports provided: default */
  9844. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9845. "use strict";
  9846. __webpack_require__.r(__webpack_exports__);
  9847. /* WEBPACK VAR INJECTION */(function(global) {/*!
  9848. * Vue.js v2.6.11
  9849. * (c) 2014-2023 Evan You
  9850. * Released under the MIT License.
  9851. */
  9852. /* */
  9853. var emptyObject = Object.freeze({});
  9854. // These helpers produce better VM code in JS engines due to their
  9855. // explicitness and function inlining.
  9856. function isUndef (v) {
  9857. return v === undefined || v === null
  9858. }
  9859. function isDef (v) {
  9860. return v !== undefined && v !== null
  9861. }
  9862. function isTrue (v) {
  9863. return v === true
  9864. }
  9865. function isFalse (v) {
  9866. return v === false
  9867. }
  9868. /**
  9869. * Check if value is primitive.
  9870. */
  9871. function isPrimitive (value) {
  9872. return (
  9873. typeof value === 'string' ||
  9874. typeof value === 'number' ||
  9875. // $flow-disable-line
  9876. typeof value === 'symbol' ||
  9877. typeof value === 'boolean'
  9878. )
  9879. }
  9880. /**
  9881. * Quick object check - this is primarily used to tell
  9882. * Objects from primitive values when we know the value
  9883. * is a JSON-compliant type.
  9884. */
  9885. function isObject (obj) {
  9886. return obj !== null && typeof obj === 'object'
  9887. }
  9888. /**
  9889. * Get the raw type string of a value, e.g., [object Object].
  9890. */
  9891. var _toString = Object.prototype.toString;
  9892. function toRawType (value) {
  9893. return _toString.call(value).slice(8, -1)
  9894. }
  9895. /**
  9896. * Strict object type check. Only returns true
  9897. * for plain JavaScript objects.
  9898. */
  9899. function isPlainObject (obj) {
  9900. return _toString.call(obj) === '[object Object]'
  9901. }
  9902. function isRegExp (v) {
  9903. return _toString.call(v) === '[object RegExp]'
  9904. }
  9905. /**
  9906. * Check if val is a valid array index.
  9907. */
  9908. function isValidArrayIndex (val) {
  9909. var n = parseFloat(String(val));
  9910. return n >= 0 && Math.floor(n) === n && isFinite(val)
  9911. }
  9912. function isPromise (val) {
  9913. return (
  9914. isDef(val) &&
  9915. typeof val.then === 'function' &&
  9916. typeof val.catch === 'function'
  9917. )
  9918. }
  9919. /**
  9920. * Convert a value to a string that is actually rendered.
  9921. */
  9922. function toString (val) {
  9923. return val == null
  9924. ? ''
  9925. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  9926. ? JSON.stringify(val, null, 2)
  9927. : String(val)
  9928. }
  9929. /**
  9930. * Convert an input value to a number for persistence.
  9931. * If the conversion fails, return original string.
  9932. */
  9933. function toNumber (val) {
  9934. var n = parseFloat(val);
  9935. return isNaN(n) ? val : n
  9936. }
  9937. /**
  9938. * Make a map and return a function for checking if a key
  9939. * is in that map.
  9940. */
  9941. function makeMap (
  9942. str,
  9943. expectsLowerCase
  9944. ) {
  9945. var map = Object.create(null);
  9946. var list = str.split(',');
  9947. for (var i = 0; i < list.length; i++) {
  9948. map[list[i]] = true;
  9949. }
  9950. return expectsLowerCase
  9951. ? function (val) { return map[val.toLowerCase()]; }
  9952. : function (val) { return map[val]; }
  9953. }
  9954. /**
  9955. * Check if a tag is a built-in tag.
  9956. */
  9957. var isBuiltInTag = makeMap('slot,component', true);
  9958. /**
  9959. * Check if an attribute is a reserved attribute.
  9960. */
  9961. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  9962. /**
  9963. * Remove an item from an array.
  9964. */
  9965. function remove (arr, item) {
  9966. if (arr.length) {
  9967. var index = arr.indexOf(item);
  9968. if (index > -1) {
  9969. return arr.splice(index, 1)
  9970. }
  9971. }
  9972. }
  9973. /**
  9974. * Check whether an object has the property.
  9975. */
  9976. var hasOwnProperty = Object.prototype.hasOwnProperty;
  9977. function hasOwn (obj, key) {
  9978. return hasOwnProperty.call(obj, key)
  9979. }
  9980. /**
  9981. * Create a cached version of a pure function.
  9982. */
  9983. function cached (fn) {
  9984. var cache = Object.create(null);
  9985. return (function cachedFn (str) {
  9986. var hit = cache[str];
  9987. return hit || (cache[str] = fn(str))
  9988. })
  9989. }
  9990. /**
  9991. * Camelize a hyphen-delimited string.
  9992. */
  9993. var camelizeRE = /-(\w)/g;
  9994. var camelize = cached(function (str) {
  9995. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  9996. });
  9997. /**
  9998. * Capitalize a string.
  9999. */
  10000. var capitalize = cached(function (str) {
  10001. return str.charAt(0).toUpperCase() + str.slice(1)
  10002. });
  10003. /**
  10004. * Hyphenate a camelCase string.
  10005. */
  10006. var hyphenateRE = /\B([A-Z])/g;
  10007. var hyphenate = cached(function (str) {
  10008. return str.replace(hyphenateRE, '-$1').toLowerCase()
  10009. });
  10010. /**
  10011. * Simple bind polyfill for environments that do not support it,
  10012. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  10013. * since native bind is now performant enough in most browsers.
  10014. * But removing it would mean breaking code that was able to run in
  10015. * PhantomJS 1.x, so this must be kept for backward compatibility.
  10016. */
  10017. /* istanbul ignore next */
  10018. function polyfillBind (fn, ctx) {
  10019. function boundFn (a) {
  10020. var l = arguments.length;
  10021. return l
  10022. ? l > 1
  10023. ? fn.apply(ctx, arguments)
  10024. : fn.call(ctx, a)
  10025. : fn.call(ctx)
  10026. }
  10027. boundFn._length = fn.length;
  10028. return boundFn
  10029. }
  10030. function nativeBind (fn, ctx) {
  10031. return fn.bind(ctx)
  10032. }
  10033. var bind = Function.prototype.bind
  10034. ? nativeBind
  10035. : polyfillBind;
  10036. /**
  10037. * Convert an Array-like object to a real Array.
  10038. */
  10039. function toArray (list, start) {
  10040. start = start || 0;
  10041. var i = list.length - start;
  10042. var ret = new Array(i);
  10043. while (i--) {
  10044. ret[i] = list[i + start];
  10045. }
  10046. return ret
  10047. }
  10048. /**
  10049. * Mix properties into target object.
  10050. */
  10051. function extend (to, _from) {
  10052. for (var key in _from) {
  10053. to[key] = _from[key];
  10054. }
  10055. return to
  10056. }
  10057. /**
  10058. * Merge an Array of Objects into a single Object.
  10059. */
  10060. function toObject (arr) {
  10061. var res = {};
  10062. for (var i = 0; i < arr.length; i++) {
  10063. if (arr[i]) {
  10064. extend(res, arr[i]);
  10065. }
  10066. }
  10067. return res
  10068. }
  10069. /* eslint-disable no-unused-vars */
  10070. /**
  10071. * Perform no operation.
  10072. * Stubbing args to make Flow happy without leaving useless transpiled code
  10073. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  10074. */
  10075. function noop (a, b, c) {}
  10076. /**
  10077. * Always return false.
  10078. */
  10079. var no = function (a, b, c) { return false; };
  10080. /* eslint-enable no-unused-vars */
  10081. /**
  10082. * Return the same value.
  10083. */
  10084. var identity = function (_) { return _; };
  10085. /**
  10086. * Check if two values are loosely equal - that is,
  10087. * if they are plain objects, do they have the same shape?
  10088. */
  10089. function looseEqual (a, b) {
  10090. if (a === b) { return true }
  10091. var isObjectA = isObject(a);
  10092. var isObjectB = isObject(b);
  10093. if (isObjectA && isObjectB) {
  10094. try {
  10095. var isArrayA = Array.isArray(a);
  10096. var isArrayB = Array.isArray(b);
  10097. if (isArrayA && isArrayB) {
  10098. return a.length === b.length && a.every(function (e, i) {
  10099. return looseEqual(e, b[i])
  10100. })
  10101. } else if (a instanceof Date && b instanceof Date) {
  10102. return a.getTime() === b.getTime()
  10103. } else if (!isArrayA && !isArrayB) {
  10104. var keysA = Object.keys(a);
  10105. var keysB = Object.keys(b);
  10106. return keysA.length === keysB.length && keysA.every(function (key) {
  10107. return looseEqual(a[key], b[key])
  10108. })
  10109. } else {
  10110. /* istanbul ignore next */
  10111. return false
  10112. }
  10113. } catch (e) {
  10114. /* istanbul ignore next */
  10115. return false
  10116. }
  10117. } else if (!isObjectA && !isObjectB) {
  10118. return String(a) === String(b)
  10119. } else {
  10120. return false
  10121. }
  10122. }
  10123. /**
  10124. * Return the first index at which a loosely equal value can be
  10125. * found in the array (if value is a plain object, the array must
  10126. * contain an object of the same shape), or -1 if it is not present.
  10127. */
  10128. function looseIndexOf (arr, val) {
  10129. for (var i = 0; i < arr.length; i++) {
  10130. if (looseEqual(arr[i], val)) { return i }
  10131. }
  10132. return -1
  10133. }
  10134. /**
  10135. * Ensure a function is called only once.
  10136. */
  10137. function once (fn) {
  10138. var called = false;
  10139. return function () {
  10140. if (!called) {
  10141. called = true;
  10142. fn.apply(this, arguments);
  10143. }
  10144. }
  10145. }
  10146. var ASSET_TYPES = [
  10147. 'component',
  10148. 'directive',
  10149. 'filter'
  10150. ];
  10151. var LIFECYCLE_HOOKS = [
  10152. 'beforeCreate',
  10153. 'created',
  10154. 'beforeMount',
  10155. 'mounted',
  10156. 'beforeUpdate',
  10157. 'updated',
  10158. 'beforeDestroy',
  10159. 'destroyed',
  10160. 'activated',
  10161. 'deactivated',
  10162. 'errorCaptured',
  10163. 'serverPrefetch'
  10164. ];
  10165. /* */
  10166. var config = ({
  10167. /**
  10168. * Option merge strategies (used in core/util/options)
  10169. */
  10170. // $flow-disable-line
  10171. optionMergeStrategies: Object.create(null),
  10172. /**
  10173. * Whether to suppress warnings.
  10174. */
  10175. silent: false,
  10176. /**
  10177. * Show production mode tip message on boot?
  10178. */
  10179. productionTip: "development" !== 'production',
  10180. /**
  10181. * Whether to enable devtools
  10182. */
  10183. devtools: "development" !== 'production',
  10184. /**
  10185. * Whether to record perf
  10186. */
  10187. performance: false,
  10188. /**
  10189. * Error handler for watcher errors
  10190. */
  10191. errorHandler: null,
  10192. /**
  10193. * Warn handler for watcher warns
  10194. */
  10195. warnHandler: null,
  10196. /**
  10197. * Ignore certain custom elements
  10198. */
  10199. ignoredElements: [],
  10200. /**
  10201. * Custom user key aliases for v-on
  10202. */
  10203. // $flow-disable-line
  10204. keyCodes: Object.create(null),
  10205. /**
  10206. * Check if a tag is reserved so that it cannot be registered as a
  10207. * component. This is platform-dependent and may be overwritten.
  10208. */
  10209. isReservedTag: no,
  10210. /**
  10211. * Check if an attribute is reserved so that it cannot be used as a component
  10212. * prop. This is platform-dependent and may be overwritten.
  10213. */
  10214. isReservedAttr: no,
  10215. /**
  10216. * Check if a tag is an unknown element.
  10217. * Platform-dependent.
  10218. */
  10219. isUnknownElement: no,
  10220. /**
  10221. * Get the namespace of an element
  10222. */
  10223. getTagNamespace: noop,
  10224. /**
  10225. * Parse the real tag name for the specific platform.
  10226. */
  10227. parsePlatformTagName: identity,
  10228. /**
  10229. * Check if an attribute must be bound using property, e.g. value
  10230. * Platform-dependent.
  10231. */
  10232. mustUseProp: no,
  10233. /**
  10234. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  10235. * This will significantly reduce performance if set to false.
  10236. */
  10237. async: true,
  10238. /**
  10239. * Exposed for legacy reasons
  10240. */
  10241. _lifecycleHooks: LIFECYCLE_HOOKS
  10242. });
  10243. /* */
  10244. /**
  10245. * unicode letters used for parsing html tags, component names and property paths.
  10246. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  10247. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  10248. */
  10249. 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/;
  10250. /**
  10251. * Check if a string starts with $ or _
  10252. */
  10253. function isReserved (str) {
  10254. var c = (str + '').charCodeAt(0);
  10255. return c === 0x24 || c === 0x5F
  10256. }
  10257. /**
  10258. * Define a property.
  10259. */
  10260. function def (obj, key, val, enumerable) {
  10261. Object.defineProperty(obj, key, {
  10262. value: val,
  10263. enumerable: !!enumerable,
  10264. writable: true,
  10265. configurable: true
  10266. });
  10267. }
  10268. /**
  10269. * Parse simple path.
  10270. */
  10271. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  10272. function parsePath (path) {
  10273. if (bailRE.test(path)) {
  10274. return
  10275. }
  10276. var segments = path.split('.');
  10277. return function (obj) {
  10278. for (var i = 0; i < segments.length; i++) {
  10279. if (!obj) { return }
  10280. obj = obj[segments[i]];
  10281. }
  10282. return obj
  10283. }
  10284. }
  10285. /* */
  10286. // can we use __proto__?
  10287. var hasProto = '__proto__' in {};
  10288. // Browser environment sniffing
  10289. var inBrowser = typeof window !== 'undefined';
  10290. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  10291. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  10292. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  10293. var isIE = UA && /msie|trident/.test(UA);
  10294. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  10295. var isEdge = UA && UA.indexOf('edge/') > 0;
  10296. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  10297. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  10298. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  10299. var isPhantomJS = UA && /phantomjs/.test(UA);
  10300. var isFF = UA && UA.match(/firefox\/(\d+)/);
  10301. // Firefox has a "watch" function on Object.prototype...
  10302. var nativeWatch = ({}).watch;
  10303. if (inBrowser) {
  10304. try {
  10305. var opts = {};
  10306. Object.defineProperty(opts, 'passive', ({
  10307. get: function get () {
  10308. }
  10309. })); // https://github.com/facebook/flow/issues/285
  10310. window.addEventListener('test-passive', null, opts);
  10311. } catch (e) {}
  10312. }
  10313. // this needs to be lazy-evaled because vue may be required before
  10314. // vue-server-renderer can set VUE_ENV
  10315. var _isServer;
  10316. var isServerRendering = function () {
  10317. if (_isServer === undefined) {
  10318. /* istanbul ignore if */
  10319. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  10320. // detect presence of vue-server-renderer and avoid
  10321. // Webpack shimming the process
  10322. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  10323. } else {
  10324. _isServer = false;
  10325. }
  10326. }
  10327. return _isServer
  10328. };
  10329. // detect devtools
  10330. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  10331. /* istanbul ignore next */
  10332. function isNative (Ctor) {
  10333. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  10334. }
  10335. var hasSymbol =
  10336. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  10337. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  10338. var _Set;
  10339. /* istanbul ignore if */ // $flow-disable-line
  10340. if (typeof Set !== 'undefined' && isNative(Set)) {
  10341. // use native Set when available.
  10342. _Set = Set;
  10343. } else {
  10344. // a non-standard Set polyfill that only works with primitive keys.
  10345. _Set = /*@__PURE__*/(function () {
  10346. function Set () {
  10347. this.set = Object.create(null);
  10348. }
  10349. Set.prototype.has = function has (key) {
  10350. return this.set[key] === true
  10351. };
  10352. Set.prototype.add = function add (key) {
  10353. this.set[key] = true;
  10354. };
  10355. Set.prototype.clear = function clear () {
  10356. this.set = Object.create(null);
  10357. };
  10358. return Set;
  10359. }());
  10360. }
  10361. /* */
  10362. var warn = noop;
  10363. var tip = noop;
  10364. var generateComponentTrace = (noop); // work around flow check
  10365. var formatComponentName = (noop);
  10366. if (true) {
  10367. var hasConsole = typeof console !== 'undefined';
  10368. var classifyRE = /(?:^|[-_])(\w)/g;
  10369. var classify = function (str) { return str
  10370. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  10371. .replace(/[-_]/g, ''); };
  10372. warn = function (msg, vm) {
  10373. var trace = vm ? generateComponentTrace(vm) : '';
  10374. if (config.warnHandler) {
  10375. config.warnHandler.call(null, msg, vm, trace);
  10376. } else if (hasConsole && (!config.silent)) {
  10377. console.error(("[Vue warn]: " + msg + trace));
  10378. }
  10379. };
  10380. tip = function (msg, vm) {
  10381. if (hasConsole && (!config.silent)) {
  10382. console.warn("[Vue tip]: " + msg + (
  10383. vm ? generateComponentTrace(vm) : ''
  10384. ));
  10385. }
  10386. };
  10387. formatComponentName = function (vm, includeFile) {
  10388. if (vm.$root === vm) {
  10389. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  10390. return ('') + vm.$options.__file
  10391. }
  10392. return '<Root>'
  10393. }
  10394. var options = typeof vm === 'function' && vm.cid != null
  10395. ? vm.options
  10396. : vm._isVue
  10397. ? vm.$options || vm.constructor.options
  10398. : vm;
  10399. var name = options.name || options._componentTag;
  10400. var file = options.__file;
  10401. if (!name && file) {
  10402. var match = file.match(/([^/\\]+)\.vue$/);
  10403. name = match && match[1];
  10404. }
  10405. return (
  10406. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  10407. (file && includeFile !== false ? (" at " + file) : '')
  10408. )
  10409. };
  10410. var repeat = function (str, n) {
  10411. var res = '';
  10412. while (n) {
  10413. if (n % 2 === 1) { res += str; }
  10414. if (n > 1) { str += str; }
  10415. n >>= 1;
  10416. }
  10417. return res
  10418. };
  10419. generateComponentTrace = function (vm) {
  10420. if (vm._isVue && vm.$parent) {
  10421. var tree = [];
  10422. var currentRecursiveSequence = 0;
  10423. while (vm && vm.$options.name !== 'PageBody') {
  10424. if (tree.length > 0) {
  10425. var last = tree[tree.length - 1];
  10426. if (last.constructor === vm.constructor) {
  10427. currentRecursiveSequence++;
  10428. vm = vm.$parent;
  10429. continue
  10430. } else if (currentRecursiveSequence > 0) {
  10431. tree[tree.length - 1] = [last, currentRecursiveSequence];
  10432. currentRecursiveSequence = 0;
  10433. }
  10434. }
  10435. !vm.$options.isReserved && tree.push(vm);
  10436. vm = vm.$parent;
  10437. }
  10438. return '\n\nfound in\n\n' + tree
  10439. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  10440. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  10441. : formatComponentName(vm))); })
  10442. .join('\n')
  10443. } else {
  10444. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  10445. }
  10446. };
  10447. }
  10448. /* */
  10449. var uid = 0;
  10450. /**
  10451. * A dep is an observable that can have multiple
  10452. * directives subscribing to it.
  10453. */
  10454. var Dep = function Dep () {
  10455. this.id = uid++;
  10456. this.subs = [];
  10457. };
  10458. Dep.prototype.addSub = function addSub (sub) {
  10459. this.subs.push(sub);
  10460. };
  10461. Dep.prototype.removeSub = function removeSub (sub) {
  10462. remove(this.subs, sub);
  10463. };
  10464. Dep.prototype.depend = function depend () {
  10465. if (Dep.SharedObject.target) {
  10466. Dep.SharedObject.target.addDep(this);
  10467. }
  10468. };
  10469. Dep.prototype.notify = function notify () {
  10470. // stabilize the subscriber list first
  10471. var subs = this.subs.slice();
  10472. if ( true && !config.async) {
  10473. // subs aren't sorted in scheduler if not running async
  10474. // we need to sort them now to make sure they fire in correct
  10475. // order
  10476. subs.sort(function (a, b) { return a.id - b.id; });
  10477. }
  10478. for (var i = 0, l = subs.length; i < l; i++) {
  10479. subs[i].update();
  10480. }
  10481. };
  10482. // The current target watcher being evaluated.
  10483. // This is globally unique because only one watcher
  10484. // can be evaluated at a time.
  10485. // fixed by xxxxxx (nvue shared vuex)
  10486. /* eslint-disable no-undef */
  10487. Dep.SharedObject = {};
  10488. Dep.SharedObject.target = null;
  10489. Dep.SharedObject.targetStack = [];
  10490. function pushTarget (target) {
  10491. Dep.SharedObject.targetStack.push(target);
  10492. Dep.SharedObject.target = target;
  10493. Dep.target = target;
  10494. }
  10495. function popTarget () {
  10496. Dep.SharedObject.targetStack.pop();
  10497. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  10498. Dep.target = Dep.SharedObject.target;
  10499. }
  10500. /* */
  10501. var VNode = function VNode (
  10502. tag,
  10503. data,
  10504. children,
  10505. text,
  10506. elm,
  10507. context,
  10508. componentOptions,
  10509. asyncFactory
  10510. ) {
  10511. this.tag = tag;
  10512. this.data = data;
  10513. this.children = children;
  10514. this.text = text;
  10515. this.elm = elm;
  10516. this.ns = undefined;
  10517. this.context = context;
  10518. this.fnContext = undefined;
  10519. this.fnOptions = undefined;
  10520. this.fnScopeId = undefined;
  10521. this.key = data && data.key;
  10522. this.componentOptions = componentOptions;
  10523. this.componentInstance = undefined;
  10524. this.parent = undefined;
  10525. this.raw = false;
  10526. this.isStatic = false;
  10527. this.isRootInsert = true;
  10528. this.isComment = false;
  10529. this.isCloned = false;
  10530. this.isOnce = false;
  10531. this.asyncFactory = asyncFactory;
  10532. this.asyncMeta = undefined;
  10533. this.isAsyncPlaceholder = false;
  10534. };
  10535. var prototypeAccessors = { child: { configurable: true } };
  10536. // DEPRECATED: alias for componentInstance for backwards compat.
  10537. /* istanbul ignore next */
  10538. prototypeAccessors.child.get = function () {
  10539. return this.componentInstance
  10540. };
  10541. Object.defineProperties( VNode.prototype, prototypeAccessors );
  10542. var createEmptyVNode = function (text) {
  10543. if ( text === void 0 ) text = '';
  10544. var node = new VNode();
  10545. node.text = text;
  10546. node.isComment = true;
  10547. return node
  10548. };
  10549. function createTextVNode (val) {
  10550. return new VNode(undefined, undefined, undefined, String(val))
  10551. }
  10552. // optimized shallow clone
  10553. // used for static nodes and slot nodes because they may be reused across
  10554. // multiple renders, cloning them avoids errors when DOM manipulations rely
  10555. // on their elm reference.
  10556. function cloneVNode (vnode) {
  10557. var cloned = new VNode(
  10558. vnode.tag,
  10559. vnode.data,
  10560. // #7975
  10561. // clone children array to avoid mutating original in case of cloning
  10562. // a child.
  10563. vnode.children && vnode.children.slice(),
  10564. vnode.text,
  10565. vnode.elm,
  10566. vnode.context,
  10567. vnode.componentOptions,
  10568. vnode.asyncFactory
  10569. );
  10570. cloned.ns = vnode.ns;
  10571. cloned.isStatic = vnode.isStatic;
  10572. cloned.key = vnode.key;
  10573. cloned.isComment = vnode.isComment;
  10574. cloned.fnContext = vnode.fnContext;
  10575. cloned.fnOptions = vnode.fnOptions;
  10576. cloned.fnScopeId = vnode.fnScopeId;
  10577. cloned.asyncMeta = vnode.asyncMeta;
  10578. cloned.isCloned = true;
  10579. return cloned
  10580. }
  10581. /*
  10582. * not type checking this file because flow doesn't play well with
  10583. * dynamically accessing methods on Array prototype
  10584. */
  10585. var arrayProto = Array.prototype;
  10586. var arrayMethods = Object.create(arrayProto);
  10587. var methodsToPatch = [
  10588. 'push',
  10589. 'pop',
  10590. 'shift',
  10591. 'unshift',
  10592. 'splice',
  10593. 'sort',
  10594. 'reverse'
  10595. ];
  10596. /**
  10597. * Intercept mutating methods and emit events
  10598. */
  10599. methodsToPatch.forEach(function (method) {
  10600. // cache original method
  10601. var original = arrayProto[method];
  10602. def(arrayMethods, method, function mutator () {
  10603. var args = [], len = arguments.length;
  10604. while ( len-- ) args[ len ] = arguments[ len ];
  10605. var result = original.apply(this, args);
  10606. var ob = this.__ob__;
  10607. var inserted;
  10608. switch (method) {
  10609. case 'push':
  10610. case 'unshift':
  10611. inserted = args;
  10612. break
  10613. case 'splice':
  10614. inserted = args.slice(2);
  10615. break
  10616. }
  10617. if (inserted) { ob.observeArray(inserted); }
  10618. // notify change
  10619. ob.dep.notify();
  10620. return result
  10621. });
  10622. });
  10623. /* */
  10624. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  10625. /**
  10626. * In some cases we may want to disable observation inside a component's
  10627. * update computation.
  10628. */
  10629. var shouldObserve = true;
  10630. function toggleObserving (value) {
  10631. shouldObserve = value;
  10632. }
  10633. /**
  10634. * Observer class that is attached to each observed
  10635. * object. Once attached, the observer converts the target
  10636. * object's property keys into getter/setters that
  10637. * collect dependencies and dispatch updates.
  10638. */
  10639. var Observer = function Observer (value) {
  10640. this.value = value;
  10641. this.dep = new Dep();
  10642. this.vmCount = 0;
  10643. def(value, '__ob__', this);
  10644. if (Array.isArray(value)) {
  10645. if (hasProto) {
  10646. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  10647. if(value.push !== value.__proto__.push){
  10648. copyAugment(value, arrayMethods, arrayKeys);
  10649. } else {
  10650. protoAugment(value, arrayMethods);
  10651. }
  10652. }
  10653. } else {
  10654. copyAugment(value, arrayMethods, arrayKeys);
  10655. }
  10656. this.observeArray(value);
  10657. } else {
  10658. this.walk(value);
  10659. }
  10660. };
  10661. /**
  10662. * Walk through all properties and convert them into
  10663. * getter/setters. This method should only be called when
  10664. * value type is Object.
  10665. */
  10666. Observer.prototype.walk = function walk (obj) {
  10667. var keys = Object.keys(obj);
  10668. for (var i = 0; i < keys.length; i++) {
  10669. defineReactive$$1(obj, keys[i]);
  10670. }
  10671. };
  10672. /**
  10673. * Observe a list of Array items.
  10674. */
  10675. Observer.prototype.observeArray = function observeArray (items) {
  10676. for (var i = 0, l = items.length; i < l; i++) {
  10677. observe(items[i]);
  10678. }
  10679. };
  10680. // helpers
  10681. /**
  10682. * Augment a target Object or Array by intercepting
  10683. * the prototype chain using __proto__
  10684. */
  10685. function protoAugment (target, src) {
  10686. /* eslint-disable no-proto */
  10687. target.__proto__ = src;
  10688. /* eslint-enable no-proto */
  10689. }
  10690. /**
  10691. * Augment a target Object or Array by defining
  10692. * hidden properties.
  10693. */
  10694. /* istanbul ignore next */
  10695. function copyAugment (target, src, keys) {
  10696. for (var i = 0, l = keys.length; i < l; i++) {
  10697. var key = keys[i];
  10698. def(target, key, src[key]);
  10699. }
  10700. }
  10701. /**
  10702. * Attempt to create an observer instance for a value,
  10703. * returns the new observer if successfully observed,
  10704. * or the existing observer if the value already has one.
  10705. */
  10706. function observe (value, asRootData) {
  10707. if (!isObject(value) || value instanceof VNode) {
  10708. return
  10709. }
  10710. var ob;
  10711. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  10712. ob = value.__ob__;
  10713. } else if (
  10714. shouldObserve &&
  10715. !isServerRendering() &&
  10716. (Array.isArray(value) || isPlainObject(value)) &&
  10717. Object.isExtensible(value) &&
  10718. !value._isVue &&
  10719. !value.__v_isMPComponent
  10720. ) {
  10721. ob = new Observer(value);
  10722. }
  10723. if (asRootData && ob) {
  10724. ob.vmCount++;
  10725. }
  10726. return ob
  10727. }
  10728. /**
  10729. * Define a reactive property on an Object.
  10730. */
  10731. function defineReactive$$1 (
  10732. obj,
  10733. key,
  10734. val,
  10735. customSetter,
  10736. shallow
  10737. ) {
  10738. var dep = new Dep();
  10739. var property = Object.getOwnPropertyDescriptor(obj, key);
  10740. if (property && property.configurable === false) {
  10741. return
  10742. }
  10743. // cater for pre-defined getter/setters
  10744. var getter = property && property.get;
  10745. var setter = property && property.set;
  10746. if ((!getter || setter) && arguments.length === 2) {
  10747. val = obj[key];
  10748. }
  10749. var childOb = !shallow && observe(val);
  10750. Object.defineProperty(obj, key, {
  10751. enumerable: true,
  10752. configurable: true,
  10753. get: function reactiveGetter () {
  10754. var value = getter ? getter.call(obj) : val;
  10755. if (Dep.SharedObject.target) { // fixed by xxxxxx
  10756. dep.depend();
  10757. if (childOb) {
  10758. childOb.dep.depend();
  10759. if (Array.isArray(value)) {
  10760. dependArray(value);
  10761. }
  10762. }
  10763. }
  10764. return value
  10765. },
  10766. set: function reactiveSetter (newVal) {
  10767. var value = getter ? getter.call(obj) : val;
  10768. /* eslint-disable no-self-compare */
  10769. if (newVal === value || (newVal !== newVal && value !== value)) {
  10770. return
  10771. }
  10772. /* eslint-enable no-self-compare */
  10773. if ( true && customSetter) {
  10774. customSetter();
  10775. }
  10776. // #7981: for accessor properties without setter
  10777. if (getter && !setter) { return }
  10778. if (setter) {
  10779. setter.call(obj, newVal);
  10780. } else {
  10781. val = newVal;
  10782. }
  10783. childOb = !shallow && observe(newVal);
  10784. dep.notify();
  10785. }
  10786. });
  10787. }
  10788. /**
  10789. * Set a property on an object. Adds the new property and
  10790. * triggers change notification if the property doesn't
  10791. * already exist.
  10792. */
  10793. function set (target, key, val) {
  10794. if ( true &&
  10795. (isUndef(target) || isPrimitive(target))
  10796. ) {
  10797. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  10798. }
  10799. if (Array.isArray(target) && isValidArrayIndex(key)) {
  10800. target.length = Math.max(target.length, key);
  10801. target.splice(key, 1, val);
  10802. return val
  10803. }
  10804. if (key in target && !(key in Object.prototype)) {
  10805. target[key] = val;
  10806. return val
  10807. }
  10808. var ob = (target).__ob__;
  10809. if (target._isVue || (ob && ob.vmCount)) {
  10810. true && warn(
  10811. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  10812. 'at runtime - declare it upfront in the data option.'
  10813. );
  10814. return val
  10815. }
  10816. if (!ob) {
  10817. target[key] = val;
  10818. return val
  10819. }
  10820. defineReactive$$1(ob.value, key, val);
  10821. ob.dep.notify();
  10822. return val
  10823. }
  10824. /**
  10825. * Delete a property and trigger change if necessary.
  10826. */
  10827. function del (target, key) {
  10828. if ( true &&
  10829. (isUndef(target) || isPrimitive(target))
  10830. ) {
  10831. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  10832. }
  10833. if (Array.isArray(target) && isValidArrayIndex(key)) {
  10834. target.splice(key, 1);
  10835. return
  10836. }
  10837. var ob = (target).__ob__;
  10838. if (target._isVue || (ob && ob.vmCount)) {
  10839. true && warn(
  10840. 'Avoid deleting properties on a Vue instance or its root $data ' +
  10841. '- just set it to null.'
  10842. );
  10843. return
  10844. }
  10845. if (!hasOwn(target, key)) {
  10846. return
  10847. }
  10848. delete target[key];
  10849. if (!ob) {
  10850. return
  10851. }
  10852. ob.dep.notify();
  10853. }
  10854. /**
  10855. * Collect dependencies on array elements when the array is touched, since
  10856. * we cannot intercept array element access like property getters.
  10857. */
  10858. function dependArray (value) {
  10859. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  10860. e = value[i];
  10861. e && e.__ob__ && e.__ob__.dep.depend();
  10862. if (Array.isArray(e)) {
  10863. dependArray(e);
  10864. }
  10865. }
  10866. }
  10867. /* */
  10868. /**
  10869. * Option overwriting strategies are functions that handle
  10870. * how to merge a parent option value and a child option
  10871. * value into the final value.
  10872. */
  10873. var strats = config.optionMergeStrategies;
  10874. /**
  10875. * Options with restrictions
  10876. */
  10877. if (true) {
  10878. strats.el = strats.propsData = function (parent, child, vm, key) {
  10879. if (!vm) {
  10880. warn(
  10881. "option \"" + key + "\" can only be used during instance " +
  10882. 'creation with the `new` keyword.'
  10883. );
  10884. }
  10885. return defaultStrat(parent, child)
  10886. };
  10887. }
  10888. /**
  10889. * Helper that recursively merges two data objects together.
  10890. */
  10891. function mergeData (to, from) {
  10892. if (!from) { return to }
  10893. var key, toVal, fromVal;
  10894. var keys = hasSymbol
  10895. ? Reflect.ownKeys(from)
  10896. : Object.keys(from);
  10897. for (var i = 0; i < keys.length; i++) {
  10898. key = keys[i];
  10899. // in case the object is already observed...
  10900. if (key === '__ob__') { continue }
  10901. toVal = to[key];
  10902. fromVal = from[key];
  10903. if (!hasOwn(to, key)) {
  10904. set(to, key, fromVal);
  10905. } else if (
  10906. toVal !== fromVal &&
  10907. isPlainObject(toVal) &&
  10908. isPlainObject(fromVal)
  10909. ) {
  10910. mergeData(toVal, fromVal);
  10911. }
  10912. }
  10913. return to
  10914. }
  10915. /**
  10916. * Data
  10917. */
  10918. function mergeDataOrFn (
  10919. parentVal,
  10920. childVal,
  10921. vm
  10922. ) {
  10923. if (!vm) {
  10924. // in a Vue.extend merge, both should be functions
  10925. if (!childVal) {
  10926. return parentVal
  10927. }
  10928. if (!parentVal) {
  10929. return childVal
  10930. }
  10931. // when parentVal & childVal are both present,
  10932. // we need to return a function that returns the
  10933. // merged result of both functions... no need to
  10934. // check if parentVal is a function here because
  10935. // it has to be a function to pass previous merges.
  10936. return function mergedDataFn () {
  10937. return mergeData(
  10938. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  10939. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  10940. )
  10941. }
  10942. } else {
  10943. return function mergedInstanceDataFn () {
  10944. // instance merge
  10945. var instanceData = typeof childVal === 'function'
  10946. ? childVal.call(vm, vm)
  10947. : childVal;
  10948. var defaultData = typeof parentVal === 'function'
  10949. ? parentVal.call(vm, vm)
  10950. : parentVal;
  10951. if (instanceData) {
  10952. return mergeData(instanceData, defaultData)
  10953. } else {
  10954. return defaultData
  10955. }
  10956. }
  10957. }
  10958. }
  10959. strats.data = function (
  10960. parentVal,
  10961. childVal,
  10962. vm
  10963. ) {
  10964. if (!vm) {
  10965. if (childVal && typeof childVal !== 'function') {
  10966. true && warn(
  10967. 'The "data" option should be a function ' +
  10968. 'that returns a per-instance value in component ' +
  10969. 'definitions.',
  10970. vm
  10971. );
  10972. return parentVal
  10973. }
  10974. return mergeDataOrFn(parentVal, childVal)
  10975. }
  10976. return mergeDataOrFn(parentVal, childVal, vm)
  10977. };
  10978. /**
  10979. * Hooks and props are merged as arrays.
  10980. */
  10981. function mergeHook (
  10982. parentVal,
  10983. childVal
  10984. ) {
  10985. var res = childVal
  10986. ? parentVal
  10987. ? parentVal.concat(childVal)
  10988. : Array.isArray(childVal)
  10989. ? childVal
  10990. : [childVal]
  10991. : parentVal;
  10992. return res
  10993. ? dedupeHooks(res)
  10994. : res
  10995. }
  10996. function dedupeHooks (hooks) {
  10997. var res = [];
  10998. for (var i = 0; i < hooks.length; i++) {
  10999. if (res.indexOf(hooks[i]) === -1) {
  11000. res.push(hooks[i]);
  11001. }
  11002. }
  11003. return res
  11004. }
  11005. LIFECYCLE_HOOKS.forEach(function (hook) {
  11006. strats[hook] = mergeHook;
  11007. });
  11008. /**
  11009. * Assets
  11010. *
  11011. * When a vm is present (instance creation), we need to do
  11012. * a three-way merge between constructor options, instance
  11013. * options and parent options.
  11014. */
  11015. function mergeAssets (
  11016. parentVal,
  11017. childVal,
  11018. vm,
  11019. key
  11020. ) {
  11021. var res = Object.create(parentVal || null);
  11022. if (childVal) {
  11023. true && assertObjectType(key, childVal, vm);
  11024. return extend(res, childVal)
  11025. } else {
  11026. return res
  11027. }
  11028. }
  11029. ASSET_TYPES.forEach(function (type) {
  11030. strats[type + 's'] = mergeAssets;
  11031. });
  11032. /**
  11033. * Watchers.
  11034. *
  11035. * Watchers hashes should not overwrite one
  11036. * another, so we merge them as arrays.
  11037. */
  11038. strats.watch = function (
  11039. parentVal,
  11040. childVal,
  11041. vm,
  11042. key
  11043. ) {
  11044. // work around Firefox's Object.prototype.watch...
  11045. if (parentVal === nativeWatch) { parentVal = undefined; }
  11046. if (childVal === nativeWatch) { childVal = undefined; }
  11047. /* istanbul ignore if */
  11048. if (!childVal) { return Object.create(parentVal || null) }
  11049. if (true) {
  11050. assertObjectType(key, childVal, vm);
  11051. }
  11052. if (!parentVal) { return childVal }
  11053. var ret = {};
  11054. extend(ret, parentVal);
  11055. for (var key$1 in childVal) {
  11056. var parent = ret[key$1];
  11057. var child = childVal[key$1];
  11058. if (parent && !Array.isArray(parent)) {
  11059. parent = [parent];
  11060. }
  11061. ret[key$1] = parent
  11062. ? parent.concat(child)
  11063. : Array.isArray(child) ? child : [child];
  11064. }
  11065. return ret
  11066. };
  11067. /**
  11068. * Other object hashes.
  11069. */
  11070. strats.props =
  11071. strats.methods =
  11072. strats.inject =
  11073. strats.computed = function (
  11074. parentVal,
  11075. childVal,
  11076. vm,
  11077. key
  11078. ) {
  11079. if (childVal && "development" !== 'production') {
  11080. assertObjectType(key, childVal, vm);
  11081. }
  11082. if (!parentVal) { return childVal }
  11083. var ret = Object.create(null);
  11084. extend(ret, parentVal);
  11085. if (childVal) { extend(ret, childVal); }
  11086. return ret
  11087. };
  11088. strats.provide = mergeDataOrFn;
  11089. /**
  11090. * Default strategy.
  11091. */
  11092. var defaultStrat = function (parentVal, childVal) {
  11093. return childVal === undefined
  11094. ? parentVal
  11095. : childVal
  11096. };
  11097. /**
  11098. * Validate component names
  11099. */
  11100. function checkComponents (options) {
  11101. for (var key in options.components) {
  11102. validateComponentName(key);
  11103. }
  11104. }
  11105. function validateComponentName (name) {
  11106. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  11107. warn(
  11108. 'Invalid component name: "' + name + '". Component names ' +
  11109. 'should conform to valid custom element name in html5 specification.'
  11110. );
  11111. }
  11112. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  11113. warn(
  11114. 'Do not use built-in or reserved HTML elements as component ' +
  11115. 'id: ' + name
  11116. );
  11117. }
  11118. }
  11119. /**
  11120. * Ensure all props option syntax are normalized into the
  11121. * Object-based format.
  11122. */
  11123. function normalizeProps (options, vm) {
  11124. var props = options.props;
  11125. if (!props) { return }
  11126. var res = {};
  11127. var i, val, name;
  11128. if (Array.isArray(props)) {
  11129. i = props.length;
  11130. while (i--) {
  11131. val = props[i];
  11132. if (typeof val === 'string') {
  11133. name = camelize(val);
  11134. res[name] = { type: null };
  11135. } else if (true) {
  11136. warn('props must be strings when using array syntax.');
  11137. }
  11138. }
  11139. } else if (isPlainObject(props)) {
  11140. for (var key in props) {
  11141. val = props[key];
  11142. name = camelize(key);
  11143. res[name] = isPlainObject(val)
  11144. ? val
  11145. : { type: val };
  11146. }
  11147. } else if (true) {
  11148. warn(
  11149. "Invalid value for option \"props\": expected an Array or an Object, " +
  11150. "but got " + (toRawType(props)) + ".",
  11151. vm
  11152. );
  11153. }
  11154. options.props = res;
  11155. }
  11156. /**
  11157. * Normalize all injections into Object-based format
  11158. */
  11159. function normalizeInject (options, vm) {
  11160. var inject = options.inject;
  11161. if (!inject) { return }
  11162. var normalized = options.inject = {};
  11163. if (Array.isArray(inject)) {
  11164. for (var i = 0; i < inject.length; i++) {
  11165. normalized[inject[i]] = { from: inject[i] };
  11166. }
  11167. } else if (isPlainObject(inject)) {
  11168. for (var key in inject) {
  11169. var val = inject[key];
  11170. normalized[key] = isPlainObject(val)
  11171. ? extend({ from: key }, val)
  11172. : { from: val };
  11173. }
  11174. } else if (true) {
  11175. warn(
  11176. "Invalid value for option \"inject\": expected an Array or an Object, " +
  11177. "but got " + (toRawType(inject)) + ".",
  11178. vm
  11179. );
  11180. }
  11181. }
  11182. /**
  11183. * Normalize raw function directives into object format.
  11184. */
  11185. function normalizeDirectives (options) {
  11186. var dirs = options.directives;
  11187. if (dirs) {
  11188. for (var key in dirs) {
  11189. var def$$1 = dirs[key];
  11190. if (typeof def$$1 === 'function') {
  11191. dirs[key] = { bind: def$$1, update: def$$1 };
  11192. }
  11193. }
  11194. }
  11195. }
  11196. function assertObjectType (name, value, vm) {
  11197. if (!isPlainObject(value)) {
  11198. warn(
  11199. "Invalid value for option \"" + name + "\": expected an Object, " +
  11200. "but got " + (toRawType(value)) + ".",
  11201. vm
  11202. );
  11203. }
  11204. }
  11205. /**
  11206. * Merge two option objects into a new one.
  11207. * Core utility used in both instantiation and inheritance.
  11208. */
  11209. function mergeOptions (
  11210. parent,
  11211. child,
  11212. vm
  11213. ) {
  11214. if (true) {
  11215. checkComponents(child);
  11216. }
  11217. if (typeof child === 'function') {
  11218. child = child.options;
  11219. }
  11220. normalizeProps(child, vm);
  11221. normalizeInject(child, vm);
  11222. normalizeDirectives(child);
  11223. // Apply extends and mixins on the child options,
  11224. // but only if it is a raw options object that isn't
  11225. // the result of another mergeOptions call.
  11226. // Only merged options has the _base property.
  11227. if (!child._base) {
  11228. if (child.extends) {
  11229. parent = mergeOptions(parent, child.extends, vm);
  11230. }
  11231. if (child.mixins) {
  11232. for (var i = 0, l = child.mixins.length; i < l; i++) {
  11233. parent = mergeOptions(parent, child.mixins[i], vm);
  11234. }
  11235. }
  11236. }
  11237. var options = {};
  11238. var key;
  11239. for (key in parent) {
  11240. mergeField(key);
  11241. }
  11242. for (key in child) {
  11243. if (!hasOwn(parent, key)) {
  11244. mergeField(key);
  11245. }
  11246. }
  11247. function mergeField (key) {
  11248. var strat = strats[key] || defaultStrat;
  11249. options[key] = strat(parent[key], child[key], vm, key);
  11250. }
  11251. return options
  11252. }
  11253. /**
  11254. * Resolve an asset.
  11255. * This function is used because child instances need access
  11256. * to assets defined in its ancestor chain.
  11257. */
  11258. function resolveAsset (
  11259. options,
  11260. type,
  11261. id,
  11262. warnMissing
  11263. ) {
  11264. /* istanbul ignore if */
  11265. if (typeof id !== 'string') {
  11266. return
  11267. }
  11268. var assets = options[type];
  11269. // check local registration variations first
  11270. if (hasOwn(assets, id)) { return assets[id] }
  11271. var camelizedId = camelize(id);
  11272. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  11273. var PascalCaseId = capitalize(camelizedId);
  11274. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  11275. // fallback to prototype chain
  11276. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  11277. if ( true && warnMissing && !res) {
  11278. warn(
  11279. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  11280. options
  11281. );
  11282. }
  11283. return res
  11284. }
  11285. /* */
  11286. function validateProp (
  11287. key,
  11288. propOptions,
  11289. propsData,
  11290. vm
  11291. ) {
  11292. var prop = propOptions[key];
  11293. var absent = !hasOwn(propsData, key);
  11294. var value = propsData[key];
  11295. // boolean casting
  11296. var booleanIndex = getTypeIndex(Boolean, prop.type);
  11297. if (booleanIndex > -1) {
  11298. if (absent && !hasOwn(prop, 'default')) {
  11299. value = false;
  11300. } else if (value === '' || value === hyphenate(key)) {
  11301. // only cast empty string / same name to boolean if
  11302. // boolean has higher priority
  11303. var stringIndex = getTypeIndex(String, prop.type);
  11304. if (stringIndex < 0 || booleanIndex < stringIndex) {
  11305. value = true;
  11306. }
  11307. }
  11308. }
  11309. // check default value
  11310. if (value === undefined) {
  11311. value = getPropDefaultValue(vm, prop, key);
  11312. // since the default value is a fresh copy,
  11313. // make sure to observe it.
  11314. var prevShouldObserve = shouldObserve;
  11315. toggleObserving(true);
  11316. observe(value);
  11317. toggleObserving(prevShouldObserve);
  11318. }
  11319. if (
  11320. true
  11321. ) {
  11322. assertProp(prop, key, value, vm, absent);
  11323. }
  11324. return value
  11325. }
  11326. /**
  11327. * Get the default value of a prop.
  11328. */
  11329. function getPropDefaultValue (vm, prop, key) {
  11330. // no default, return undefined
  11331. if (!hasOwn(prop, 'default')) {
  11332. return undefined
  11333. }
  11334. var def = prop.default;
  11335. // warn against non-factory defaults for Object & Array
  11336. if ( true && isObject(def)) {
  11337. warn(
  11338. 'Invalid default value for prop "' + key + '": ' +
  11339. 'Props with type Object/Array must use a factory function ' +
  11340. 'to return the default value.',
  11341. vm
  11342. );
  11343. }
  11344. // the raw prop value was also undefined from previous render,
  11345. // return previous default value to avoid unnecessary watcher trigger
  11346. if (vm && vm.$options.propsData &&
  11347. vm.$options.propsData[key] === undefined &&
  11348. vm._props[key] !== undefined
  11349. ) {
  11350. return vm._props[key]
  11351. }
  11352. // call factory function for non-Function types
  11353. // a value is Function if its prototype is function even across different execution context
  11354. return typeof def === 'function' && getType(prop.type) !== 'Function'
  11355. ? def.call(vm)
  11356. : def
  11357. }
  11358. /**
  11359. * Assert whether a prop is valid.
  11360. */
  11361. function assertProp (
  11362. prop,
  11363. name,
  11364. value,
  11365. vm,
  11366. absent
  11367. ) {
  11368. if (prop.required && absent) {
  11369. warn(
  11370. 'Missing required prop: "' + name + '"',
  11371. vm
  11372. );
  11373. return
  11374. }
  11375. if (value == null && !prop.required) {
  11376. return
  11377. }
  11378. var type = prop.type;
  11379. var valid = !type || type === true;
  11380. var expectedTypes = [];
  11381. if (type) {
  11382. if (!Array.isArray(type)) {
  11383. type = [type];
  11384. }
  11385. for (var i = 0; i < type.length && !valid; i++) {
  11386. var assertedType = assertType(value, type[i]);
  11387. expectedTypes.push(assertedType.expectedType || '');
  11388. valid = assertedType.valid;
  11389. }
  11390. }
  11391. if (!valid) {
  11392. warn(
  11393. getInvalidTypeMessage(name, value, expectedTypes),
  11394. vm
  11395. );
  11396. return
  11397. }
  11398. var validator = prop.validator;
  11399. if (validator) {
  11400. if (!validator(value)) {
  11401. warn(
  11402. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  11403. vm
  11404. );
  11405. }
  11406. }
  11407. }
  11408. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  11409. function assertType (value, type) {
  11410. var valid;
  11411. var expectedType = getType(type);
  11412. if (simpleCheckRE.test(expectedType)) {
  11413. var t = typeof value;
  11414. valid = t === expectedType.toLowerCase();
  11415. // for primitive wrapper objects
  11416. if (!valid && t === 'object') {
  11417. valid = value instanceof type;
  11418. }
  11419. } else if (expectedType === 'Object') {
  11420. valid = isPlainObject(value);
  11421. } else if (expectedType === 'Array') {
  11422. valid = Array.isArray(value);
  11423. } else {
  11424. valid = value instanceof type;
  11425. }
  11426. return {
  11427. valid: valid,
  11428. expectedType: expectedType
  11429. }
  11430. }
  11431. /**
  11432. * Use function string name to check built-in types,
  11433. * because a simple equality check will fail when running
  11434. * across different vms / iframes.
  11435. */
  11436. function getType (fn) {
  11437. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  11438. return match ? match[1] : ''
  11439. }
  11440. function isSameType (a, b) {
  11441. return getType(a) === getType(b)
  11442. }
  11443. function getTypeIndex (type, expectedTypes) {
  11444. if (!Array.isArray(expectedTypes)) {
  11445. return isSameType(expectedTypes, type) ? 0 : -1
  11446. }
  11447. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  11448. if (isSameType(expectedTypes[i], type)) {
  11449. return i
  11450. }
  11451. }
  11452. return -1
  11453. }
  11454. function getInvalidTypeMessage (name, value, expectedTypes) {
  11455. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  11456. " Expected " + (expectedTypes.map(capitalize).join(', '));
  11457. var expectedType = expectedTypes[0];
  11458. var receivedType = toRawType(value);
  11459. var expectedValue = styleValue(value, expectedType);
  11460. var receivedValue = styleValue(value, receivedType);
  11461. // check if we need to specify expected value
  11462. if (expectedTypes.length === 1 &&
  11463. isExplicable(expectedType) &&
  11464. !isBoolean(expectedType, receivedType)) {
  11465. message += " with value " + expectedValue;
  11466. }
  11467. message += ", got " + receivedType + " ";
  11468. // check if we need to specify received value
  11469. if (isExplicable(receivedType)) {
  11470. message += "with value " + receivedValue + ".";
  11471. }
  11472. return message
  11473. }
  11474. function styleValue (value, type) {
  11475. if (type === 'String') {
  11476. return ("\"" + value + "\"")
  11477. } else if (type === 'Number') {
  11478. return ("" + (Number(value)))
  11479. } else {
  11480. return ("" + value)
  11481. }
  11482. }
  11483. function isExplicable (value) {
  11484. var explicitTypes = ['string', 'number', 'boolean'];
  11485. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  11486. }
  11487. function isBoolean () {
  11488. var args = [], len = arguments.length;
  11489. while ( len-- ) args[ len ] = arguments[ len ];
  11490. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  11491. }
  11492. /* */
  11493. function handleError (err, vm, info) {
  11494. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  11495. // See: https://github.com/vuejs/vuex/issues/1505
  11496. pushTarget();
  11497. try {
  11498. if (vm) {
  11499. var cur = vm;
  11500. while ((cur = cur.$parent)) {
  11501. var hooks = cur.$options.errorCaptured;
  11502. if (hooks) {
  11503. for (var i = 0; i < hooks.length; i++) {
  11504. try {
  11505. var capture = hooks[i].call(cur, err, vm, info) === false;
  11506. if (capture) { return }
  11507. } catch (e) {
  11508. globalHandleError(e, cur, 'errorCaptured hook');
  11509. }
  11510. }
  11511. }
  11512. }
  11513. }
  11514. globalHandleError(err, vm, info);
  11515. } finally {
  11516. popTarget();
  11517. }
  11518. }
  11519. function invokeWithErrorHandling (
  11520. handler,
  11521. context,
  11522. args,
  11523. vm,
  11524. info
  11525. ) {
  11526. var res;
  11527. try {
  11528. res = args ? handler.apply(context, args) : handler.call(context);
  11529. if (res && !res._isVue && isPromise(res) && !res._handled) {
  11530. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  11531. // issue #9511
  11532. // avoid catch triggering multiple times when nested calls
  11533. res._handled = true;
  11534. }
  11535. } catch (e) {
  11536. handleError(e, vm, info);
  11537. }
  11538. return res
  11539. }
  11540. function globalHandleError (err, vm, info) {
  11541. if (config.errorHandler) {
  11542. try {
  11543. return config.errorHandler.call(null, err, vm, info)
  11544. } catch (e) {
  11545. // if the user intentionally throws the original error in the handler,
  11546. // do not log it twice
  11547. if (e !== err) {
  11548. logError(e, null, 'config.errorHandler');
  11549. }
  11550. }
  11551. }
  11552. logError(err, vm, info);
  11553. }
  11554. function logError (err, vm, info) {
  11555. if (true) {
  11556. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  11557. }
  11558. /* istanbul ignore else */
  11559. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  11560. console.error(err);
  11561. } else {
  11562. throw err
  11563. }
  11564. }
  11565. /* */
  11566. var callbacks = [];
  11567. var pending = false;
  11568. function flushCallbacks () {
  11569. pending = false;
  11570. var copies = callbacks.slice(0);
  11571. callbacks.length = 0;
  11572. for (var i = 0; i < copies.length; i++) {
  11573. copies[i]();
  11574. }
  11575. }
  11576. // Here we have async deferring wrappers using microtasks.
  11577. // In 2.5 we used (macro) tasks (in combination with microtasks).
  11578. // However, it has subtle problems when state is changed right before repaint
  11579. // (e.g. #6813, out-in transitions).
  11580. // Also, using (macro) tasks in event handler would cause some weird behaviors
  11581. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  11582. // So we now use microtasks everywhere, again.
  11583. // A major drawback of this tradeoff is that there are some scenarios
  11584. // where microtasks have too high a priority and fire in between supposedly
  11585. // sequential events (e.g. #4521, #6690, which have workarounds)
  11586. // or even between bubbling of the same event (#6566).
  11587. var timerFunc;
  11588. // The nextTick behavior leverages the microtask queue, which can be accessed
  11589. // via either native Promise.then or MutationObserver.
  11590. // MutationObserver has wider support, however it is seriously bugged in
  11591. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  11592. // completely stops working after triggering a few times... so, if native
  11593. // Promise is available, we will use it:
  11594. /* istanbul ignore next, $flow-disable-line */
  11595. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  11596. var p = Promise.resolve();
  11597. timerFunc = function () {
  11598. p.then(flushCallbacks);
  11599. // In problematic UIWebViews, Promise.then doesn't completely break, but
  11600. // it can get stuck in a weird state where callbacks are pushed into the
  11601. // microtask queue but the queue isn't being flushed, until the browser
  11602. // needs to do some other work, e.g. handle a timer. Therefore we can
  11603. // "force" the microtask queue to be flushed by adding an empty timer.
  11604. if (isIOS) { setTimeout(noop); }
  11605. };
  11606. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  11607. isNative(MutationObserver) ||
  11608. // PhantomJS and iOS 7.x
  11609. MutationObserver.toString() === '[object MutationObserverConstructor]'
  11610. )) {
  11611. // Use MutationObserver where native Promise is not available,
  11612. // e.g. PhantomJS, iOS7, Android 4.4
  11613. // (#6466 MutationObserver is unreliable in IE11)
  11614. var counter = 1;
  11615. var observer = new MutationObserver(flushCallbacks);
  11616. var textNode = document.createTextNode(String(counter));
  11617. observer.observe(textNode, {
  11618. characterData: true
  11619. });
  11620. timerFunc = function () {
  11621. counter = (counter + 1) % 2;
  11622. textNode.data = String(counter);
  11623. };
  11624. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  11625. // Fallback to setImmediate.
  11626. // Technically it leverages the (macro) task queue,
  11627. // but it is still a better choice than setTimeout.
  11628. timerFunc = function () {
  11629. setImmediate(flushCallbacks);
  11630. };
  11631. } else {
  11632. // Fallback to setTimeout.
  11633. timerFunc = function () {
  11634. setTimeout(flushCallbacks, 0);
  11635. };
  11636. }
  11637. function nextTick (cb, ctx) {
  11638. var _resolve;
  11639. callbacks.push(function () {
  11640. if (cb) {
  11641. try {
  11642. cb.call(ctx);
  11643. } catch (e) {
  11644. handleError(e, ctx, 'nextTick');
  11645. }
  11646. } else if (_resolve) {
  11647. _resolve(ctx);
  11648. }
  11649. });
  11650. if (!pending) {
  11651. pending = true;
  11652. timerFunc();
  11653. }
  11654. // $flow-disable-line
  11655. if (!cb && typeof Promise !== 'undefined') {
  11656. return new Promise(function (resolve) {
  11657. _resolve = resolve;
  11658. })
  11659. }
  11660. }
  11661. /* */
  11662. /* not type checking this file because flow doesn't play well with Proxy */
  11663. var initProxy;
  11664. if (true) {
  11665. var allowedGlobals = makeMap(
  11666. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  11667. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  11668. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  11669. 'require' // for Webpack/Browserify
  11670. );
  11671. var warnNonPresent = function (target, key) {
  11672. warn(
  11673. "Property or method \"" + key + "\" is not defined on the instance but " +
  11674. 'referenced during render. Make sure that this property is reactive, ' +
  11675. 'either in the data option, or for class-based components, by ' +
  11676. 'initializing the property. ' +
  11677. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  11678. target
  11679. );
  11680. };
  11681. var warnReservedPrefix = function (target, key) {
  11682. warn(
  11683. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  11684. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  11685. 'prevent conflicts with Vue internals. ' +
  11686. 'See: https://vuejs.org/v2/api/#data',
  11687. target
  11688. );
  11689. };
  11690. var hasProxy =
  11691. typeof Proxy !== 'undefined' && isNative(Proxy);
  11692. if (hasProxy) {
  11693. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  11694. config.keyCodes = new Proxy(config.keyCodes, {
  11695. set: function set (target, key, value) {
  11696. if (isBuiltInModifier(key)) {
  11697. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  11698. return false
  11699. } else {
  11700. target[key] = value;
  11701. return true
  11702. }
  11703. }
  11704. });
  11705. }
  11706. var hasHandler = {
  11707. has: function has (target, key) {
  11708. var has = key in target;
  11709. var isAllowed = allowedGlobals(key) ||
  11710. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  11711. if (!has && !isAllowed) {
  11712. if (key in target.$data) { warnReservedPrefix(target, key); }
  11713. else { warnNonPresent(target, key); }
  11714. }
  11715. return has || !isAllowed
  11716. }
  11717. };
  11718. var getHandler = {
  11719. get: function get (target, key) {
  11720. if (typeof key === 'string' && !(key in target)) {
  11721. if (key in target.$data) { warnReservedPrefix(target, key); }
  11722. else { warnNonPresent(target, key); }
  11723. }
  11724. return target[key]
  11725. }
  11726. };
  11727. initProxy = function initProxy (vm) {
  11728. if (hasProxy) {
  11729. // determine which proxy handler to use
  11730. var options = vm.$options;
  11731. var handlers = options.render && options.render._withStripped
  11732. ? getHandler
  11733. : hasHandler;
  11734. vm._renderProxy = new Proxy(vm, handlers);
  11735. } else {
  11736. vm._renderProxy = vm;
  11737. }
  11738. };
  11739. }
  11740. /* */
  11741. var seenObjects = new _Set();
  11742. /**
  11743. * Recursively traverse an object to evoke all converted
  11744. * getters, so that every nested property inside the object
  11745. * is collected as a "deep" dependency.
  11746. */
  11747. function traverse (val) {
  11748. _traverse(val, seenObjects);
  11749. seenObjects.clear();
  11750. }
  11751. function _traverse (val, seen) {
  11752. var i, keys;
  11753. var isA = Array.isArray(val);
  11754. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  11755. return
  11756. }
  11757. if (val.__ob__) {
  11758. var depId = val.__ob__.dep.id;
  11759. if (seen.has(depId)) {
  11760. return
  11761. }
  11762. seen.add(depId);
  11763. }
  11764. if (isA) {
  11765. i = val.length;
  11766. while (i--) { _traverse(val[i], seen); }
  11767. } else {
  11768. keys = Object.keys(val);
  11769. i = keys.length;
  11770. while (i--) { _traverse(val[keys[i]], seen); }
  11771. }
  11772. }
  11773. var mark;
  11774. var measure;
  11775. if (true) {
  11776. var perf = inBrowser && window.performance;
  11777. /* istanbul ignore if */
  11778. if (
  11779. perf &&
  11780. perf.mark &&
  11781. perf.measure &&
  11782. perf.clearMarks &&
  11783. perf.clearMeasures
  11784. ) {
  11785. mark = function (tag) { return perf.mark(tag); };
  11786. measure = function (name, startTag, endTag) {
  11787. perf.measure(name, startTag, endTag);
  11788. perf.clearMarks(startTag);
  11789. perf.clearMarks(endTag);
  11790. // perf.clearMeasures(name)
  11791. };
  11792. }
  11793. }
  11794. /* */
  11795. var normalizeEvent = cached(function (name) {
  11796. var passive = name.charAt(0) === '&';
  11797. name = passive ? name.slice(1) : name;
  11798. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  11799. name = once$$1 ? name.slice(1) : name;
  11800. var capture = name.charAt(0) === '!';
  11801. name = capture ? name.slice(1) : name;
  11802. return {
  11803. name: name,
  11804. once: once$$1,
  11805. capture: capture,
  11806. passive: passive
  11807. }
  11808. });
  11809. function createFnInvoker (fns, vm) {
  11810. function invoker () {
  11811. var arguments$1 = arguments;
  11812. var fns = invoker.fns;
  11813. if (Array.isArray(fns)) {
  11814. var cloned = fns.slice();
  11815. for (var i = 0; i < cloned.length; i++) {
  11816. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  11817. }
  11818. } else {
  11819. // return handler return value for single handlers
  11820. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  11821. }
  11822. }
  11823. invoker.fns = fns;
  11824. return invoker
  11825. }
  11826. function updateListeners (
  11827. on,
  11828. oldOn,
  11829. add,
  11830. remove$$1,
  11831. createOnceHandler,
  11832. vm
  11833. ) {
  11834. var name, def$$1, cur, old, event;
  11835. for (name in on) {
  11836. def$$1 = cur = on[name];
  11837. old = oldOn[name];
  11838. event = normalizeEvent(name);
  11839. if (isUndef(cur)) {
  11840. true && warn(
  11841. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  11842. vm
  11843. );
  11844. } else if (isUndef(old)) {
  11845. if (isUndef(cur.fns)) {
  11846. cur = on[name] = createFnInvoker(cur, vm);
  11847. }
  11848. if (isTrue(event.once)) {
  11849. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  11850. }
  11851. add(event.name, cur, event.capture, event.passive, event.params);
  11852. } else if (cur !== old) {
  11853. old.fns = cur;
  11854. on[name] = old;
  11855. }
  11856. }
  11857. for (name in oldOn) {
  11858. if (isUndef(on[name])) {
  11859. event = normalizeEvent(name);
  11860. remove$$1(event.name, oldOn[name], event.capture);
  11861. }
  11862. }
  11863. }
  11864. /* */
  11865. /* */
  11866. // fixed by xxxxxx (mp properties)
  11867. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  11868. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  11869. if (isUndef(propOptions)) {
  11870. return res
  11871. }
  11872. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  11873. var attrs = data.attrs;
  11874. var props = data.props;
  11875. if (isDef(attrs) || isDef(props)) {
  11876. for (var key in propOptions) {
  11877. var altKey = hyphenate(key);
  11878. var result = checkProp(res, props, key, altKey, true) ||
  11879. checkProp(res, attrs, key, altKey, false);
  11880. // externalClass
  11881. if (
  11882. result &&
  11883. res[key] &&
  11884. externalClasses.indexOf(altKey) !== -1 &&
  11885. context[camelize(res[key])]
  11886. ) {
  11887. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  11888. res[key] = context[camelize(res[key])];
  11889. }
  11890. }
  11891. }
  11892. return res
  11893. }
  11894. function extractPropsFromVNodeData (
  11895. data,
  11896. Ctor,
  11897. tag,
  11898. context// fixed by xxxxxx
  11899. ) {
  11900. // we are only extracting raw values here.
  11901. // validation and default values are handled in the child
  11902. // component itself.
  11903. var propOptions = Ctor.options.props;
  11904. if (isUndef(propOptions)) {
  11905. // fixed by xxxxxx
  11906. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  11907. }
  11908. var res = {};
  11909. var attrs = data.attrs;
  11910. var props = data.props;
  11911. if (isDef(attrs) || isDef(props)) {
  11912. for (var key in propOptions) {
  11913. var altKey = hyphenate(key);
  11914. if (true) {
  11915. var keyInLowerCase = key.toLowerCase();
  11916. if (
  11917. key !== keyInLowerCase &&
  11918. attrs && hasOwn(attrs, keyInLowerCase)
  11919. ) {
  11920. tip(
  11921. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  11922. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  11923. " \"" + key + "\". " +
  11924. "Note that HTML attributes are case-insensitive and camelCased " +
  11925. "props need to use their kebab-case equivalents when using in-DOM " +
  11926. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  11927. );
  11928. }
  11929. }
  11930. checkProp(res, props, key, altKey, true) ||
  11931. checkProp(res, attrs, key, altKey, false);
  11932. }
  11933. }
  11934. // fixed by xxxxxx
  11935. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  11936. }
  11937. function checkProp (
  11938. res,
  11939. hash,
  11940. key,
  11941. altKey,
  11942. preserve
  11943. ) {
  11944. if (isDef(hash)) {
  11945. if (hasOwn(hash, key)) {
  11946. res[key] = hash[key];
  11947. if (!preserve) {
  11948. delete hash[key];
  11949. }
  11950. return true
  11951. } else if (hasOwn(hash, altKey)) {
  11952. res[key] = hash[altKey];
  11953. if (!preserve) {
  11954. delete hash[altKey];
  11955. }
  11956. return true
  11957. }
  11958. }
  11959. return false
  11960. }
  11961. /* */
  11962. // The template compiler attempts to minimize the need for normalization by
  11963. // statically analyzing the template at compile time.
  11964. //
  11965. // For plain HTML markup, normalization can be completely skipped because the
  11966. // generated render function is guaranteed to return Array<VNode>. There are
  11967. // two cases where extra normalization is needed:
  11968. // 1. When the children contains components - because a functional component
  11969. // may return an Array instead of a single root. In this case, just a simple
  11970. // normalization is needed - if any child is an Array, we flatten the whole
  11971. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  11972. // because functional components already normalize their own children.
  11973. function simpleNormalizeChildren (children) {
  11974. for (var i = 0; i < children.length; i++) {
  11975. if (Array.isArray(children[i])) {
  11976. return Array.prototype.concat.apply([], children)
  11977. }
  11978. }
  11979. return children
  11980. }
  11981. // 2. When the children contains constructs that always generated nested Arrays,
  11982. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  11983. // with hand-written render functions / JSX. In such cases a full normalization
  11984. // is needed to cater to all possible types of children values.
  11985. function normalizeChildren (children) {
  11986. return isPrimitive(children)
  11987. ? [createTextVNode(children)]
  11988. : Array.isArray(children)
  11989. ? normalizeArrayChildren(children)
  11990. : undefined
  11991. }
  11992. function isTextNode (node) {
  11993. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  11994. }
  11995. function normalizeArrayChildren (children, nestedIndex) {
  11996. var res = [];
  11997. var i, c, lastIndex, last;
  11998. for (i = 0; i < children.length; i++) {
  11999. c = children[i];
  12000. if (isUndef(c) || typeof c === 'boolean') { continue }
  12001. lastIndex = res.length - 1;
  12002. last = res[lastIndex];
  12003. // nested
  12004. if (Array.isArray(c)) {
  12005. if (c.length > 0) {
  12006. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  12007. // merge adjacent text nodes
  12008. if (isTextNode(c[0]) && isTextNode(last)) {
  12009. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  12010. c.shift();
  12011. }
  12012. res.push.apply(res, c);
  12013. }
  12014. } else if (isPrimitive(c)) {
  12015. if (isTextNode(last)) {
  12016. // merge adjacent text nodes
  12017. // this is necessary for SSR hydration because text nodes are
  12018. // essentially merged when rendered to HTML strings
  12019. res[lastIndex] = createTextVNode(last.text + c);
  12020. } else if (c !== '') {
  12021. // convert primitive to vnode
  12022. res.push(createTextVNode(c));
  12023. }
  12024. } else {
  12025. if (isTextNode(c) && isTextNode(last)) {
  12026. // merge adjacent text nodes
  12027. res[lastIndex] = createTextVNode(last.text + c.text);
  12028. } else {
  12029. // default key for nested array children (likely generated by v-for)
  12030. if (isTrue(children._isVList) &&
  12031. isDef(c.tag) &&
  12032. isUndef(c.key) &&
  12033. isDef(nestedIndex)) {
  12034. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  12035. }
  12036. res.push(c);
  12037. }
  12038. }
  12039. }
  12040. return res
  12041. }
  12042. /* */
  12043. function initProvide (vm) {
  12044. var provide = vm.$options.provide;
  12045. if (provide) {
  12046. vm._provided = typeof provide === 'function'
  12047. ? provide.call(vm)
  12048. : provide;
  12049. }
  12050. }
  12051. function initInjections (vm) {
  12052. var result = resolveInject(vm.$options.inject, vm);
  12053. if (result) {
  12054. toggleObserving(false);
  12055. Object.keys(result).forEach(function (key) {
  12056. /* istanbul ignore else */
  12057. if (true) {
  12058. defineReactive$$1(vm, key, result[key], function () {
  12059. warn(
  12060. "Avoid mutating an injected value directly since the changes will be " +
  12061. "overwritten whenever the provided component re-renders. " +
  12062. "injection being mutated: \"" + key + "\"",
  12063. vm
  12064. );
  12065. });
  12066. } else {}
  12067. });
  12068. toggleObserving(true);
  12069. }
  12070. }
  12071. function resolveInject (inject, vm) {
  12072. if (inject) {
  12073. // inject is :any because flow is not smart enough to figure out cached
  12074. var result = Object.create(null);
  12075. var keys = hasSymbol
  12076. ? Reflect.ownKeys(inject)
  12077. : Object.keys(inject);
  12078. for (var i = 0; i < keys.length; i++) {
  12079. var key = keys[i];
  12080. // #6574 in case the inject object is observed...
  12081. if (key === '__ob__') { continue }
  12082. var provideKey = inject[key].from;
  12083. var source = vm;
  12084. while (source) {
  12085. if (source._provided && hasOwn(source._provided, provideKey)) {
  12086. result[key] = source._provided[provideKey];
  12087. break
  12088. }
  12089. source = source.$parent;
  12090. }
  12091. if (!source) {
  12092. if ('default' in inject[key]) {
  12093. var provideDefault = inject[key].default;
  12094. result[key] = typeof provideDefault === 'function'
  12095. ? provideDefault.call(vm)
  12096. : provideDefault;
  12097. } else if (true) {
  12098. warn(("Injection \"" + key + "\" not found"), vm);
  12099. }
  12100. }
  12101. }
  12102. return result
  12103. }
  12104. }
  12105. /* */
  12106. /**
  12107. * Runtime helper for resolving raw children VNodes into a slot object.
  12108. */
  12109. function resolveSlots (
  12110. children,
  12111. context
  12112. ) {
  12113. if (!children || !children.length) {
  12114. return {}
  12115. }
  12116. var slots = {};
  12117. for (var i = 0, l = children.length; i < l; i++) {
  12118. var child = children[i];
  12119. var data = child.data;
  12120. // remove slot attribute if the node is resolved as a Vue slot node
  12121. if (data && data.attrs && data.attrs.slot) {
  12122. delete data.attrs.slot;
  12123. }
  12124. // named slots should only be respected if the vnode was rendered in the
  12125. // same context.
  12126. if ((child.context === context || child.fnContext === context) &&
  12127. data && data.slot != null
  12128. ) {
  12129. var name = data.slot;
  12130. var slot = (slots[name] || (slots[name] = []));
  12131. if (child.tag === 'template') {
  12132. slot.push.apply(slot, child.children || []);
  12133. } else {
  12134. slot.push(child);
  12135. }
  12136. } else {
  12137. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  12138. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  12139. (slots['page'] || (slots['page'] = [])).push(child);
  12140. }else{
  12141. (slots.default || (slots.default = [])).push(child);
  12142. }
  12143. }
  12144. }
  12145. // ignore slots that contains only whitespace
  12146. for (var name$1 in slots) {
  12147. if (slots[name$1].every(isWhitespace)) {
  12148. delete slots[name$1];
  12149. }
  12150. }
  12151. return slots
  12152. }
  12153. function isWhitespace (node) {
  12154. return (node.isComment && !node.asyncFactory) || node.text === ' '
  12155. }
  12156. /* */
  12157. function normalizeScopedSlots (
  12158. slots,
  12159. normalSlots,
  12160. prevSlots
  12161. ) {
  12162. var res;
  12163. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  12164. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  12165. var key = slots && slots.$key;
  12166. if (!slots) {
  12167. res = {};
  12168. } else if (slots._normalized) {
  12169. // fast path 1: child component re-render only, parent did not change
  12170. return slots._normalized
  12171. } else if (
  12172. isStable &&
  12173. prevSlots &&
  12174. prevSlots !== emptyObject &&
  12175. key === prevSlots.$key &&
  12176. !hasNormalSlots &&
  12177. !prevSlots.$hasNormal
  12178. ) {
  12179. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  12180. // only need to normalize once
  12181. return prevSlots
  12182. } else {
  12183. res = {};
  12184. for (var key$1 in slots) {
  12185. if (slots[key$1] && key$1[0] !== '$') {
  12186. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  12187. }
  12188. }
  12189. }
  12190. // expose normal slots on scopedSlots
  12191. for (var key$2 in normalSlots) {
  12192. if (!(key$2 in res)) {
  12193. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  12194. }
  12195. }
  12196. // avoriaz seems to mock a non-extensible $scopedSlots object
  12197. // and when that is passed down this would cause an error
  12198. if (slots && Object.isExtensible(slots)) {
  12199. (slots)._normalized = res;
  12200. }
  12201. def(res, '$stable', isStable);
  12202. def(res, '$key', key);
  12203. def(res, '$hasNormal', hasNormalSlots);
  12204. return res
  12205. }
  12206. function normalizeScopedSlot(normalSlots, key, fn) {
  12207. var normalized = function () {
  12208. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  12209. res = res && typeof res === 'object' && !Array.isArray(res)
  12210. ? [res] // single vnode
  12211. : normalizeChildren(res);
  12212. return res && (
  12213. res.length === 0 ||
  12214. (res.length === 1 && res[0].isComment) // #9658
  12215. ) ? undefined
  12216. : res
  12217. };
  12218. // this is a slot using the new v-slot syntax without scope. although it is
  12219. // compiled as a scoped slot, render fn users would expect it to be present
  12220. // on this.$slots because the usage is semantically a normal slot.
  12221. if (fn.proxy) {
  12222. Object.defineProperty(normalSlots, key, {
  12223. get: normalized,
  12224. enumerable: true,
  12225. configurable: true
  12226. });
  12227. }
  12228. return normalized
  12229. }
  12230. function proxyNormalSlot(slots, key) {
  12231. return function () { return slots[key]; }
  12232. }
  12233. /* */
  12234. /**
  12235. * Runtime helper for rendering v-for lists.
  12236. */
  12237. function renderList (
  12238. val,
  12239. render
  12240. ) {
  12241. var ret, i, l, keys, key;
  12242. if (Array.isArray(val) || typeof val === 'string') {
  12243. ret = new Array(val.length);
  12244. for (i = 0, l = val.length; i < l; i++) {
  12245. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  12246. }
  12247. } else if (typeof val === 'number') {
  12248. ret = new Array(val);
  12249. for (i = 0; i < val; i++) {
  12250. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  12251. }
  12252. } else if (isObject(val)) {
  12253. if (hasSymbol && val[Symbol.iterator]) {
  12254. ret = [];
  12255. var iterator = val[Symbol.iterator]();
  12256. var result = iterator.next();
  12257. while (!result.done) {
  12258. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  12259. result = iterator.next();
  12260. }
  12261. } else {
  12262. keys = Object.keys(val);
  12263. ret = new Array(keys.length);
  12264. for (i = 0, l = keys.length; i < l; i++) {
  12265. key = keys[i];
  12266. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  12267. }
  12268. }
  12269. }
  12270. if (!isDef(ret)) {
  12271. ret = [];
  12272. }
  12273. (ret)._isVList = true;
  12274. return ret
  12275. }
  12276. /* */
  12277. /**
  12278. * Runtime helper for rendering <slot>
  12279. */
  12280. function renderSlot (
  12281. name,
  12282. fallback,
  12283. props,
  12284. bindObject
  12285. ) {
  12286. var scopedSlotFn = this.$scopedSlots[name];
  12287. var nodes;
  12288. if (scopedSlotFn) { // scoped slot
  12289. props = props || {};
  12290. if (bindObject) {
  12291. if ( true && !isObject(bindObject)) {
  12292. warn(
  12293. 'slot v-bind without argument expects an Object',
  12294. this
  12295. );
  12296. }
  12297. props = extend(extend({}, bindObject), props);
  12298. }
  12299. // fixed by xxxxxx app-plus scopedSlot
  12300. nodes = scopedSlotFn(props, this, props._i) || fallback;
  12301. } else {
  12302. nodes = this.$slots[name] || fallback;
  12303. }
  12304. var target = props && props.slot;
  12305. if (target) {
  12306. return this.$createElement('template', { slot: target }, nodes)
  12307. } else {
  12308. return nodes
  12309. }
  12310. }
  12311. /* */
  12312. /**
  12313. * Runtime helper for resolving filters
  12314. */
  12315. function resolveFilter (id) {
  12316. return resolveAsset(this.$options, 'filters', id, true) || identity
  12317. }
  12318. /* */
  12319. function isKeyNotMatch (expect, actual) {
  12320. if (Array.isArray(expect)) {
  12321. return expect.indexOf(actual) === -1
  12322. } else {
  12323. return expect !== actual
  12324. }
  12325. }
  12326. /**
  12327. * Runtime helper for checking keyCodes from config.
  12328. * exposed as Vue.prototype._k
  12329. * passing in eventKeyName as last argument separately for backwards compat
  12330. */
  12331. function checkKeyCodes (
  12332. eventKeyCode,
  12333. key,
  12334. builtInKeyCode,
  12335. eventKeyName,
  12336. builtInKeyName
  12337. ) {
  12338. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  12339. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  12340. return isKeyNotMatch(builtInKeyName, eventKeyName)
  12341. } else if (mappedKeyCode) {
  12342. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  12343. } else if (eventKeyName) {
  12344. return hyphenate(eventKeyName) !== key
  12345. }
  12346. }
  12347. /* */
  12348. /**
  12349. * Runtime helper for merging v-bind="object" into a VNode's data.
  12350. */
  12351. function bindObjectProps (
  12352. data,
  12353. tag,
  12354. value,
  12355. asProp,
  12356. isSync
  12357. ) {
  12358. if (value) {
  12359. if (!isObject(value)) {
  12360. true && warn(
  12361. 'v-bind without argument expects an Object or Array value',
  12362. this
  12363. );
  12364. } else {
  12365. if (Array.isArray(value)) {
  12366. value = toObject(value);
  12367. }
  12368. var hash;
  12369. var loop = function ( key ) {
  12370. if (
  12371. key === 'class' ||
  12372. key === 'style' ||
  12373. isReservedAttribute(key)
  12374. ) {
  12375. hash = data;
  12376. } else {
  12377. var type = data.attrs && data.attrs.type;
  12378. hash = asProp || config.mustUseProp(tag, type, key)
  12379. ? data.domProps || (data.domProps = {})
  12380. : data.attrs || (data.attrs = {});
  12381. }
  12382. var camelizedKey = camelize(key);
  12383. var hyphenatedKey = hyphenate(key);
  12384. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  12385. hash[key] = value[key];
  12386. if (isSync) {
  12387. var on = data.on || (data.on = {});
  12388. on[("update:" + key)] = function ($event) {
  12389. value[key] = $event;
  12390. };
  12391. }
  12392. }
  12393. };
  12394. for (var key in value) loop( key );
  12395. }
  12396. }
  12397. return data
  12398. }
  12399. /* */
  12400. /**
  12401. * Runtime helper for rendering static trees.
  12402. */
  12403. function renderStatic (
  12404. index,
  12405. isInFor
  12406. ) {
  12407. var cached = this._staticTrees || (this._staticTrees = []);
  12408. var tree = cached[index];
  12409. // if has already-rendered static tree and not inside v-for,
  12410. // we can reuse the same tree.
  12411. if (tree && !isInFor) {
  12412. return tree
  12413. }
  12414. // otherwise, render a fresh tree.
  12415. tree = cached[index] = this.$options.staticRenderFns[index].call(
  12416. this._renderProxy,
  12417. null,
  12418. this // for render fns generated for functional component templates
  12419. );
  12420. markStatic(tree, ("__static__" + index), false);
  12421. return tree
  12422. }
  12423. /**
  12424. * Runtime helper for v-once.
  12425. * Effectively it means marking the node as static with a unique key.
  12426. */
  12427. function markOnce (
  12428. tree,
  12429. index,
  12430. key
  12431. ) {
  12432. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  12433. return tree
  12434. }
  12435. function markStatic (
  12436. tree,
  12437. key,
  12438. isOnce
  12439. ) {
  12440. if (Array.isArray(tree)) {
  12441. for (var i = 0; i < tree.length; i++) {
  12442. if (tree[i] && typeof tree[i] !== 'string') {
  12443. markStaticNode(tree[i], (key + "_" + i), isOnce);
  12444. }
  12445. }
  12446. } else {
  12447. markStaticNode(tree, key, isOnce);
  12448. }
  12449. }
  12450. function markStaticNode (node, key, isOnce) {
  12451. node.isStatic = true;
  12452. node.key = key;
  12453. node.isOnce = isOnce;
  12454. }
  12455. /* */
  12456. function bindObjectListeners (data, value) {
  12457. if (value) {
  12458. if (!isPlainObject(value)) {
  12459. true && warn(
  12460. 'v-on without argument expects an Object value',
  12461. this
  12462. );
  12463. } else {
  12464. var on = data.on = data.on ? extend({}, data.on) : {};
  12465. for (var key in value) {
  12466. var existing = on[key];
  12467. var ours = value[key];
  12468. on[key] = existing ? [].concat(existing, ours) : ours;
  12469. }
  12470. }
  12471. }
  12472. return data
  12473. }
  12474. /* */
  12475. function resolveScopedSlots (
  12476. fns, // see flow/vnode
  12477. res,
  12478. // the following are added in 2.6
  12479. hasDynamicKeys,
  12480. contentHashKey
  12481. ) {
  12482. res = res || { $stable: !hasDynamicKeys };
  12483. for (var i = 0; i < fns.length; i++) {
  12484. var slot = fns[i];
  12485. if (Array.isArray(slot)) {
  12486. resolveScopedSlots(slot, res, hasDynamicKeys);
  12487. } else if (slot) {
  12488. // marker for reverse proxying v-slot without scope on this.$slots
  12489. if (slot.proxy) {
  12490. slot.fn.proxy = true;
  12491. }
  12492. res[slot.key] = slot.fn;
  12493. }
  12494. }
  12495. if (contentHashKey) {
  12496. (res).$key = contentHashKey;
  12497. }
  12498. return res
  12499. }
  12500. /* */
  12501. function bindDynamicKeys (baseObj, values) {
  12502. for (var i = 0; i < values.length; i += 2) {
  12503. var key = values[i];
  12504. if (typeof key === 'string' && key) {
  12505. baseObj[values[i]] = values[i + 1];
  12506. } else if ( true && key !== '' && key !== null) {
  12507. // null is a special value for explicitly removing a binding
  12508. warn(
  12509. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  12510. this
  12511. );
  12512. }
  12513. }
  12514. return baseObj
  12515. }
  12516. // helper to dynamically append modifier runtime markers to event names.
  12517. // ensure only append when value is already string, otherwise it will be cast
  12518. // to string and cause the type check to miss.
  12519. function prependModifier (value, symbol) {
  12520. return typeof value === 'string' ? symbol + value : value
  12521. }
  12522. /* */
  12523. function installRenderHelpers (target) {
  12524. target._o = markOnce;
  12525. target._n = toNumber;
  12526. target._s = toString;
  12527. target._l = renderList;
  12528. target._t = renderSlot;
  12529. target._q = looseEqual;
  12530. target._i = looseIndexOf;
  12531. target._m = renderStatic;
  12532. target._f = resolveFilter;
  12533. target._k = checkKeyCodes;
  12534. target._b = bindObjectProps;
  12535. target._v = createTextVNode;
  12536. target._e = createEmptyVNode;
  12537. target._u = resolveScopedSlots;
  12538. target._g = bindObjectListeners;
  12539. target._d = bindDynamicKeys;
  12540. target._p = prependModifier;
  12541. }
  12542. /* */
  12543. function FunctionalRenderContext (
  12544. data,
  12545. props,
  12546. children,
  12547. parent,
  12548. Ctor
  12549. ) {
  12550. var this$1 = this;
  12551. var options = Ctor.options;
  12552. // ensure the createElement function in functional components
  12553. // gets a unique context - this is necessary for correct named slot check
  12554. var contextVm;
  12555. if (hasOwn(parent, '_uid')) {
  12556. contextVm = Object.create(parent);
  12557. // $flow-disable-line
  12558. contextVm._original = parent;
  12559. } else {
  12560. // the context vm passed in is a functional context as well.
  12561. // in this case we want to make sure we are able to get a hold to the
  12562. // real context instance.
  12563. contextVm = parent;
  12564. // $flow-disable-line
  12565. parent = parent._original;
  12566. }
  12567. var isCompiled = isTrue(options._compiled);
  12568. var needNormalization = !isCompiled;
  12569. this.data = data;
  12570. this.props = props;
  12571. this.children = children;
  12572. this.parent = parent;
  12573. this.listeners = data.on || emptyObject;
  12574. this.injections = resolveInject(options.inject, parent);
  12575. this.slots = function () {
  12576. if (!this$1.$slots) {
  12577. normalizeScopedSlots(
  12578. data.scopedSlots,
  12579. this$1.$slots = resolveSlots(children, parent)
  12580. );
  12581. }
  12582. return this$1.$slots
  12583. };
  12584. Object.defineProperty(this, 'scopedSlots', ({
  12585. enumerable: true,
  12586. get: function get () {
  12587. return normalizeScopedSlots(data.scopedSlots, this.slots())
  12588. }
  12589. }));
  12590. // support for compiled functional template
  12591. if (isCompiled) {
  12592. // exposing $options for renderStatic()
  12593. this.$options = options;
  12594. // pre-resolve slots for renderSlot()
  12595. this.$slots = this.slots();
  12596. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  12597. }
  12598. if (options._scopeId) {
  12599. this._c = function (a, b, c, d) {
  12600. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  12601. if (vnode && !Array.isArray(vnode)) {
  12602. vnode.fnScopeId = options._scopeId;
  12603. vnode.fnContext = parent;
  12604. }
  12605. return vnode
  12606. };
  12607. } else {
  12608. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  12609. }
  12610. }
  12611. installRenderHelpers(FunctionalRenderContext.prototype);
  12612. function createFunctionalComponent (
  12613. Ctor,
  12614. propsData,
  12615. data,
  12616. contextVm,
  12617. children
  12618. ) {
  12619. var options = Ctor.options;
  12620. var props = {};
  12621. var propOptions = options.props;
  12622. if (isDef(propOptions)) {
  12623. for (var key in propOptions) {
  12624. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  12625. }
  12626. } else {
  12627. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  12628. if (isDef(data.props)) { mergeProps(props, data.props); }
  12629. }
  12630. var renderContext = new FunctionalRenderContext(
  12631. data,
  12632. props,
  12633. children,
  12634. contextVm,
  12635. Ctor
  12636. );
  12637. var vnode = options.render.call(null, renderContext._c, renderContext);
  12638. if (vnode instanceof VNode) {
  12639. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  12640. } else if (Array.isArray(vnode)) {
  12641. var vnodes = normalizeChildren(vnode) || [];
  12642. var res = new Array(vnodes.length);
  12643. for (var i = 0; i < vnodes.length; i++) {
  12644. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  12645. }
  12646. return res
  12647. }
  12648. }
  12649. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  12650. // #7817 clone node before setting fnContext, otherwise if the node is reused
  12651. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  12652. // that should not be matched to match.
  12653. var clone = cloneVNode(vnode);
  12654. clone.fnContext = contextVm;
  12655. clone.fnOptions = options;
  12656. if (true) {
  12657. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  12658. }
  12659. if (data.slot) {
  12660. (clone.data || (clone.data = {})).slot = data.slot;
  12661. }
  12662. return clone
  12663. }
  12664. function mergeProps (to, from) {
  12665. for (var key in from) {
  12666. to[camelize(key)] = from[key];
  12667. }
  12668. }
  12669. /* */
  12670. /* */
  12671. /* */
  12672. /* */
  12673. // inline hooks to be invoked on component VNodes during patch
  12674. var componentVNodeHooks = {
  12675. init: function init (vnode, hydrating) {
  12676. if (
  12677. vnode.componentInstance &&
  12678. !vnode.componentInstance._isDestroyed &&
  12679. vnode.data.keepAlive
  12680. ) {
  12681. // kept-alive components, treat as a patch
  12682. var mountedNode = vnode; // work around flow
  12683. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  12684. } else {
  12685. var child = vnode.componentInstance = createComponentInstanceForVnode(
  12686. vnode,
  12687. activeInstance
  12688. );
  12689. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  12690. }
  12691. },
  12692. prepatch: function prepatch (oldVnode, vnode) {
  12693. var options = vnode.componentOptions;
  12694. var child = vnode.componentInstance = oldVnode.componentInstance;
  12695. updateChildComponent(
  12696. child,
  12697. options.propsData, // updated props
  12698. options.listeners, // updated listeners
  12699. vnode, // new parent vnode
  12700. options.children // new children
  12701. );
  12702. },
  12703. insert: function insert (vnode) {
  12704. var context = vnode.context;
  12705. var componentInstance = vnode.componentInstance;
  12706. if (!componentInstance._isMounted) {
  12707. callHook(componentInstance, 'onServiceCreated');
  12708. callHook(componentInstance, 'onServiceAttached');
  12709. componentInstance._isMounted = true;
  12710. callHook(componentInstance, 'mounted');
  12711. }
  12712. if (vnode.data.keepAlive) {
  12713. if (context._isMounted) {
  12714. // vue-router#1212
  12715. // During updates, a kept-alive component's child components may
  12716. // change, so directly walking the tree here may call activated hooks
  12717. // on incorrect children. Instead we push them into a queue which will
  12718. // be processed after the whole patch process ended.
  12719. queueActivatedComponent(componentInstance);
  12720. } else {
  12721. activateChildComponent(componentInstance, true /* direct */);
  12722. }
  12723. }
  12724. },
  12725. destroy: function destroy (vnode) {
  12726. var componentInstance = vnode.componentInstance;
  12727. if (!componentInstance._isDestroyed) {
  12728. if (!vnode.data.keepAlive) {
  12729. componentInstance.$destroy();
  12730. } else {
  12731. deactivateChildComponent(componentInstance, true /* direct */);
  12732. }
  12733. }
  12734. }
  12735. };
  12736. var hooksToMerge = Object.keys(componentVNodeHooks);
  12737. function createComponent (
  12738. Ctor,
  12739. data,
  12740. context,
  12741. children,
  12742. tag
  12743. ) {
  12744. if (isUndef(Ctor)) {
  12745. return
  12746. }
  12747. var baseCtor = context.$options._base;
  12748. // plain options object: turn it into a constructor
  12749. if (isObject(Ctor)) {
  12750. Ctor = baseCtor.extend(Ctor);
  12751. }
  12752. // if at this stage it's not a constructor or an async component factory,
  12753. // reject.
  12754. if (typeof Ctor !== 'function') {
  12755. if (true) {
  12756. warn(("Invalid Component definition: " + (String(Ctor))), context);
  12757. }
  12758. return
  12759. }
  12760. // async component
  12761. var asyncFactory;
  12762. if (isUndef(Ctor.cid)) {
  12763. asyncFactory = Ctor;
  12764. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  12765. if (Ctor === undefined) {
  12766. // return a placeholder node for async component, which is rendered
  12767. // as a comment node but preserves all the raw information for the node.
  12768. // the information will be used for async server-rendering and hydration.
  12769. return createAsyncPlaceholder(
  12770. asyncFactory,
  12771. data,
  12772. context,
  12773. children,
  12774. tag
  12775. )
  12776. }
  12777. }
  12778. data = data || {};
  12779. // resolve constructor options in case global mixins are applied after
  12780. // component constructor creation
  12781. resolveConstructorOptions(Ctor);
  12782. // transform component v-model data into props & events
  12783. if (isDef(data.model)) {
  12784. transformModel(Ctor.options, data);
  12785. }
  12786. // extract props
  12787. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  12788. // functional component
  12789. if (isTrue(Ctor.options.functional)) {
  12790. return createFunctionalComponent(Ctor, propsData, data, context, children)
  12791. }
  12792. // extract listeners, since these needs to be treated as
  12793. // child component listeners instead of DOM listeners
  12794. var listeners = data.on;
  12795. // replace with listeners with .native modifier
  12796. // so it gets processed during parent component patch.
  12797. data.on = data.nativeOn;
  12798. if (isTrue(Ctor.options.abstract)) {
  12799. // abstract components do not keep anything
  12800. // other than props & listeners & slot
  12801. // work around flow
  12802. var slot = data.slot;
  12803. data = {};
  12804. if (slot) {
  12805. data.slot = slot;
  12806. }
  12807. }
  12808. // install component management hooks onto the placeholder node
  12809. installComponentHooks(data);
  12810. // return a placeholder vnode
  12811. var name = Ctor.options.name || tag;
  12812. var vnode = new VNode(
  12813. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  12814. data, undefined, undefined, undefined, context,
  12815. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  12816. asyncFactory
  12817. );
  12818. return vnode
  12819. }
  12820. function createComponentInstanceForVnode (
  12821. vnode, // we know it's MountedComponentVNode but flow doesn't
  12822. parent // activeInstance in lifecycle state
  12823. ) {
  12824. var options = {
  12825. _isComponent: true,
  12826. _parentVnode: vnode,
  12827. parent: parent
  12828. };
  12829. // check inline-template render functions
  12830. var inlineTemplate = vnode.data.inlineTemplate;
  12831. if (isDef(inlineTemplate)) {
  12832. options.render = inlineTemplate.render;
  12833. options.staticRenderFns = inlineTemplate.staticRenderFns;
  12834. }
  12835. return new vnode.componentOptions.Ctor(options)
  12836. }
  12837. function installComponentHooks (data) {
  12838. var hooks = data.hook || (data.hook = {});
  12839. for (var i = 0; i < hooksToMerge.length; i++) {
  12840. var key = hooksToMerge[i];
  12841. var existing = hooks[key];
  12842. var toMerge = componentVNodeHooks[key];
  12843. if (existing !== toMerge && !(existing && existing._merged)) {
  12844. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  12845. }
  12846. }
  12847. }
  12848. function mergeHook$1 (f1, f2) {
  12849. var merged = function (a, b) {
  12850. // flow complains about extra args which is why we use any
  12851. f1(a, b);
  12852. f2(a, b);
  12853. };
  12854. merged._merged = true;
  12855. return merged
  12856. }
  12857. // transform component v-model info (value and callback) into
  12858. // prop and event handler respectively.
  12859. function transformModel (options, data) {
  12860. var prop = (options.model && options.model.prop) || 'value';
  12861. var event = (options.model && options.model.event) || 'input'
  12862. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  12863. var on = data.on || (data.on = {});
  12864. var existing = on[event];
  12865. var callback = data.model.callback;
  12866. if (isDef(existing)) {
  12867. if (
  12868. Array.isArray(existing)
  12869. ? existing.indexOf(callback) === -1
  12870. : existing !== callback
  12871. ) {
  12872. on[event] = [callback].concat(existing);
  12873. }
  12874. } else {
  12875. on[event] = callback;
  12876. }
  12877. }
  12878. /* */
  12879. var SIMPLE_NORMALIZE = 1;
  12880. var ALWAYS_NORMALIZE = 2;
  12881. // wrapper function for providing a more flexible interface
  12882. // without getting yelled at by flow
  12883. function createElement (
  12884. context,
  12885. tag,
  12886. data,
  12887. children,
  12888. normalizationType,
  12889. alwaysNormalize
  12890. ) {
  12891. if (Array.isArray(data) || isPrimitive(data)) {
  12892. normalizationType = children;
  12893. children = data;
  12894. data = undefined;
  12895. }
  12896. if (isTrue(alwaysNormalize)) {
  12897. normalizationType = ALWAYS_NORMALIZE;
  12898. }
  12899. return _createElement(context, tag, data, children, normalizationType)
  12900. }
  12901. function _createElement (
  12902. context,
  12903. tag,
  12904. data,
  12905. children,
  12906. normalizationType
  12907. ) {
  12908. if (isDef(data) && isDef((data).__ob__)) {
  12909. true && warn(
  12910. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  12911. 'Always create fresh vnode data objects in each render!',
  12912. context
  12913. );
  12914. return createEmptyVNode()
  12915. }
  12916. // object syntax in v-bind
  12917. if (isDef(data) && isDef(data.is)) {
  12918. tag = data.is;
  12919. }
  12920. if (!tag) {
  12921. // in case of component :is set to falsy value
  12922. return createEmptyVNode()
  12923. }
  12924. // warn against non-primitive key
  12925. if ( true &&
  12926. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  12927. ) {
  12928. {
  12929. warn(
  12930. 'Avoid using non-primitive value as key, ' +
  12931. 'use string/number value instead.',
  12932. context
  12933. );
  12934. }
  12935. }
  12936. // support single function children as default scoped slot
  12937. if (Array.isArray(children) &&
  12938. typeof children[0] === 'function'
  12939. ) {
  12940. data = data || {};
  12941. data.scopedSlots = { default: children[0] };
  12942. children.length = 0;
  12943. }
  12944. if (normalizationType === ALWAYS_NORMALIZE) {
  12945. children = normalizeChildren(children);
  12946. } else if (normalizationType === SIMPLE_NORMALIZE) {
  12947. children = simpleNormalizeChildren(children);
  12948. }
  12949. var vnode, ns;
  12950. if (typeof tag === 'string') {
  12951. var Ctor;
  12952. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  12953. if (config.isReservedTag(tag)) {
  12954. // platform built-in elements
  12955. if ( true && isDef(data) && isDef(data.nativeOn)) {
  12956. warn(
  12957. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  12958. context
  12959. );
  12960. }
  12961. vnode = new VNode(
  12962. config.parsePlatformTagName(tag), data, children,
  12963. undefined, undefined, context
  12964. );
  12965. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  12966. // component
  12967. vnode = createComponent(Ctor, data, context, children, tag);
  12968. } else {
  12969. // unknown or unlisted namespaced elements
  12970. // check at runtime because it may get assigned a namespace when its
  12971. // parent normalizes children
  12972. vnode = new VNode(
  12973. tag, data, children,
  12974. undefined, undefined, context
  12975. );
  12976. }
  12977. } else {
  12978. // direct component options / constructor
  12979. vnode = createComponent(tag, data, context, children);
  12980. }
  12981. if (Array.isArray(vnode)) {
  12982. return vnode
  12983. } else if (isDef(vnode)) {
  12984. if (isDef(ns)) { applyNS(vnode, ns); }
  12985. if (isDef(data)) { registerDeepBindings(data); }
  12986. return vnode
  12987. } else {
  12988. return createEmptyVNode()
  12989. }
  12990. }
  12991. function applyNS (vnode, ns, force) {
  12992. vnode.ns = ns;
  12993. if (vnode.tag === 'foreignObject') {
  12994. // use default namespace inside foreignObject
  12995. ns = undefined;
  12996. force = true;
  12997. }
  12998. if (isDef(vnode.children)) {
  12999. for (var i = 0, l = vnode.children.length; i < l; i++) {
  13000. var child = vnode.children[i];
  13001. if (isDef(child.tag) && (
  13002. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  13003. applyNS(child, ns, force);
  13004. }
  13005. }
  13006. }
  13007. }
  13008. // ref #5318
  13009. // necessary to ensure parent re-render when deep bindings like :style and
  13010. // :class are used on slot nodes
  13011. function registerDeepBindings (data) {
  13012. if (isObject(data.style)) {
  13013. traverse(data.style);
  13014. }
  13015. if (isObject(data.class)) {
  13016. traverse(data.class);
  13017. }
  13018. }
  13019. /* */
  13020. function initRender (vm) {
  13021. vm._vnode = null; // the root of the child tree
  13022. vm._staticTrees = null; // v-once cached trees
  13023. var options = vm.$options;
  13024. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  13025. var renderContext = parentVnode && parentVnode.context;
  13026. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  13027. vm.$scopedSlots = emptyObject;
  13028. // bind the createElement fn to this instance
  13029. // so that we get proper render context inside it.
  13030. // args order: tag, data, children, normalizationType, alwaysNormalize
  13031. // internal version is used by render functions compiled from templates
  13032. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  13033. // normalization is always applied for the public version, used in
  13034. // user-written render functions.
  13035. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  13036. // $attrs & $listeners are exposed for easier HOC creation.
  13037. // they need to be reactive so that HOCs using them are always updated
  13038. var parentData = parentVnode && parentVnode.data;
  13039. /* istanbul ignore else */
  13040. if (true) {
  13041. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  13042. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  13043. }, true);
  13044. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  13045. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  13046. }, true);
  13047. } else {}
  13048. }
  13049. var currentRenderingInstance = null;
  13050. function renderMixin (Vue) {
  13051. // install runtime convenience helpers
  13052. installRenderHelpers(Vue.prototype);
  13053. Vue.prototype.$nextTick = function (fn) {
  13054. return nextTick(fn, this)
  13055. };
  13056. Vue.prototype._render = function () {
  13057. var vm = this;
  13058. var ref = vm.$options;
  13059. var render = ref.render;
  13060. var _parentVnode = ref._parentVnode;
  13061. if (_parentVnode) {
  13062. vm.$scopedSlots = normalizeScopedSlots(
  13063. _parentVnode.data.scopedSlots,
  13064. vm.$slots,
  13065. vm.$scopedSlots
  13066. );
  13067. }
  13068. // set parent vnode. this allows render functions to have access
  13069. // to the data on the placeholder node.
  13070. vm.$vnode = _parentVnode;
  13071. // render self
  13072. var vnode;
  13073. try {
  13074. // There's no need to maintain a stack because all render fns are called
  13075. // separately from one another. Nested component's render fns are called
  13076. // when parent component is patched.
  13077. currentRenderingInstance = vm;
  13078. vnode = render.call(vm._renderProxy, vm.$createElement);
  13079. } catch (e) {
  13080. handleError(e, vm, "render");
  13081. // return error render result,
  13082. // or previous vnode to prevent render error causing blank component
  13083. /* istanbul ignore else */
  13084. if ( true && vm.$options.renderError) {
  13085. try {
  13086. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  13087. } catch (e) {
  13088. handleError(e, vm, "renderError");
  13089. vnode = vm._vnode;
  13090. }
  13091. } else {
  13092. vnode = vm._vnode;
  13093. }
  13094. } finally {
  13095. currentRenderingInstance = null;
  13096. }
  13097. // if the returned array contains only a single node, allow it
  13098. if (Array.isArray(vnode) && vnode.length === 1) {
  13099. vnode = vnode[0];
  13100. }
  13101. // return empty vnode in case the render function errored out
  13102. if (!(vnode instanceof VNode)) {
  13103. if ( true && Array.isArray(vnode)) {
  13104. warn(
  13105. 'Multiple root nodes returned from render function. Render function ' +
  13106. 'should return a single root node.',
  13107. vm
  13108. );
  13109. }
  13110. vnode = createEmptyVNode();
  13111. }
  13112. // set parent
  13113. vnode.parent = _parentVnode;
  13114. return vnode
  13115. };
  13116. }
  13117. /* */
  13118. function ensureCtor (comp, base) {
  13119. if (
  13120. comp.__esModule ||
  13121. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  13122. ) {
  13123. comp = comp.default;
  13124. }
  13125. return isObject(comp)
  13126. ? base.extend(comp)
  13127. : comp
  13128. }
  13129. function createAsyncPlaceholder (
  13130. factory,
  13131. data,
  13132. context,
  13133. children,
  13134. tag
  13135. ) {
  13136. var node = createEmptyVNode();
  13137. node.asyncFactory = factory;
  13138. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  13139. return node
  13140. }
  13141. function resolveAsyncComponent (
  13142. factory,
  13143. baseCtor
  13144. ) {
  13145. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  13146. return factory.errorComp
  13147. }
  13148. if (isDef(factory.resolved)) {
  13149. return factory.resolved
  13150. }
  13151. var owner = currentRenderingInstance;
  13152. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  13153. // already pending
  13154. factory.owners.push(owner);
  13155. }
  13156. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  13157. return factory.loadingComp
  13158. }
  13159. if (owner && !isDef(factory.owners)) {
  13160. var owners = factory.owners = [owner];
  13161. var sync = true;
  13162. var timerLoading = null;
  13163. var timerTimeout = null
  13164. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  13165. var forceRender = function (renderCompleted) {
  13166. for (var i = 0, l = owners.length; i < l; i++) {
  13167. (owners[i]).$forceUpdate();
  13168. }
  13169. if (renderCompleted) {
  13170. owners.length = 0;
  13171. if (timerLoading !== null) {
  13172. clearTimeout(timerLoading);
  13173. timerLoading = null;
  13174. }
  13175. if (timerTimeout !== null) {
  13176. clearTimeout(timerTimeout);
  13177. timerTimeout = null;
  13178. }
  13179. }
  13180. };
  13181. var resolve = once(function (res) {
  13182. // cache resolved
  13183. factory.resolved = ensureCtor(res, baseCtor);
  13184. // invoke callbacks only if this is not a synchronous resolve
  13185. // (async resolves are shimmed as synchronous during SSR)
  13186. if (!sync) {
  13187. forceRender(true);
  13188. } else {
  13189. owners.length = 0;
  13190. }
  13191. });
  13192. var reject = once(function (reason) {
  13193. true && warn(
  13194. "Failed to resolve async component: " + (String(factory)) +
  13195. (reason ? ("\nReason: " + reason) : '')
  13196. );
  13197. if (isDef(factory.errorComp)) {
  13198. factory.error = true;
  13199. forceRender(true);
  13200. }
  13201. });
  13202. var res = factory(resolve, reject);
  13203. if (isObject(res)) {
  13204. if (isPromise(res)) {
  13205. // () => Promise
  13206. if (isUndef(factory.resolved)) {
  13207. res.then(resolve, reject);
  13208. }
  13209. } else if (isPromise(res.component)) {
  13210. res.component.then(resolve, reject);
  13211. if (isDef(res.error)) {
  13212. factory.errorComp = ensureCtor(res.error, baseCtor);
  13213. }
  13214. if (isDef(res.loading)) {
  13215. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  13216. if (res.delay === 0) {
  13217. factory.loading = true;
  13218. } else {
  13219. timerLoading = setTimeout(function () {
  13220. timerLoading = null;
  13221. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  13222. factory.loading = true;
  13223. forceRender(false);
  13224. }
  13225. }, res.delay || 200);
  13226. }
  13227. }
  13228. if (isDef(res.timeout)) {
  13229. timerTimeout = setTimeout(function () {
  13230. timerTimeout = null;
  13231. if (isUndef(factory.resolved)) {
  13232. reject(
  13233. true
  13234. ? ("timeout (" + (res.timeout) + "ms)")
  13235. : undefined
  13236. );
  13237. }
  13238. }, res.timeout);
  13239. }
  13240. }
  13241. }
  13242. sync = false;
  13243. // return in case resolved synchronously
  13244. return factory.loading
  13245. ? factory.loadingComp
  13246. : factory.resolved
  13247. }
  13248. }
  13249. /* */
  13250. function isAsyncPlaceholder (node) {
  13251. return node.isComment && node.asyncFactory
  13252. }
  13253. /* */
  13254. function getFirstComponentChild (children) {
  13255. if (Array.isArray(children)) {
  13256. for (var i = 0; i < children.length; i++) {
  13257. var c = children[i];
  13258. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  13259. return c
  13260. }
  13261. }
  13262. }
  13263. }
  13264. /* */
  13265. /* */
  13266. function initEvents (vm) {
  13267. vm._events = Object.create(null);
  13268. vm._hasHookEvent = false;
  13269. // init parent attached events
  13270. var listeners = vm.$options._parentListeners;
  13271. if (listeners) {
  13272. updateComponentListeners(vm, listeners);
  13273. }
  13274. }
  13275. var target;
  13276. function add (event, fn) {
  13277. target.$on(event, fn);
  13278. }
  13279. function remove$1 (event, fn) {
  13280. target.$off(event, fn);
  13281. }
  13282. function createOnceHandler (event, fn) {
  13283. var _target = target;
  13284. return function onceHandler () {
  13285. var res = fn.apply(null, arguments);
  13286. if (res !== null) {
  13287. _target.$off(event, onceHandler);
  13288. }
  13289. }
  13290. }
  13291. function updateComponentListeners (
  13292. vm,
  13293. listeners,
  13294. oldListeners
  13295. ) {
  13296. target = vm;
  13297. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  13298. target = undefined;
  13299. }
  13300. function eventsMixin (Vue) {
  13301. var hookRE = /^hook:/;
  13302. Vue.prototype.$on = function (event, fn) {
  13303. var vm = this;
  13304. if (Array.isArray(event)) {
  13305. for (var i = 0, l = event.length; i < l; i++) {
  13306. vm.$on(event[i], fn);
  13307. }
  13308. } else {
  13309. (vm._events[event] || (vm._events[event] = [])).push(fn);
  13310. // optimize hook:event cost by using a boolean flag marked at registration
  13311. // instead of a hash lookup
  13312. if (hookRE.test(event)) {
  13313. vm._hasHookEvent = true;
  13314. }
  13315. }
  13316. return vm
  13317. };
  13318. Vue.prototype.$once = function (event, fn) {
  13319. var vm = this;
  13320. function on () {
  13321. vm.$off(event, on);
  13322. fn.apply(vm, arguments);
  13323. }
  13324. on.fn = fn;
  13325. vm.$on(event, on);
  13326. return vm
  13327. };
  13328. Vue.prototype.$off = function (event, fn) {
  13329. var vm = this;
  13330. // all
  13331. if (!arguments.length) {
  13332. vm._events = Object.create(null);
  13333. return vm
  13334. }
  13335. // array of events
  13336. if (Array.isArray(event)) {
  13337. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  13338. vm.$off(event[i$1], fn);
  13339. }
  13340. return vm
  13341. }
  13342. // specific event
  13343. var cbs = vm._events[event];
  13344. if (!cbs) {
  13345. return vm
  13346. }
  13347. if (!fn) {
  13348. vm._events[event] = null;
  13349. return vm
  13350. }
  13351. // specific handler
  13352. var cb;
  13353. var i = cbs.length;
  13354. while (i--) {
  13355. cb = cbs[i];
  13356. if (cb === fn || cb.fn === fn) {
  13357. cbs.splice(i, 1);
  13358. break
  13359. }
  13360. }
  13361. return vm
  13362. };
  13363. Vue.prototype.$emit = function (event) {
  13364. var vm = this;
  13365. if (true) {
  13366. var lowerCaseEvent = event.toLowerCase();
  13367. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  13368. tip(
  13369. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  13370. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  13371. "Note that HTML attributes are case-insensitive and you cannot use " +
  13372. "v-on to listen to camelCase events when using in-DOM templates. " +
  13373. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  13374. );
  13375. }
  13376. }
  13377. var cbs = vm._events[event];
  13378. if (cbs) {
  13379. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  13380. var args = toArray(arguments, 1);
  13381. var info = "event handler for \"" + event + "\"";
  13382. for (var i = 0, l = cbs.length; i < l; i++) {
  13383. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  13384. }
  13385. }
  13386. return vm
  13387. };
  13388. }
  13389. /* */
  13390. var activeInstance = null;
  13391. var isUpdatingChildComponent = false;
  13392. function setActiveInstance(vm) {
  13393. var prevActiveInstance = activeInstance;
  13394. activeInstance = vm;
  13395. return function () {
  13396. activeInstance = prevActiveInstance;
  13397. }
  13398. }
  13399. function initLifecycle (vm) {
  13400. var options = vm.$options;
  13401. // locate first non-abstract parent
  13402. var parent = options.parent;
  13403. if (parent && !options.abstract) {
  13404. while (parent.$options.abstract && parent.$parent) {
  13405. parent = parent.$parent;
  13406. }
  13407. parent.$children.push(vm);
  13408. }
  13409. vm.$parent = parent;
  13410. vm.$root = parent ? parent.$root : vm;
  13411. vm.$children = [];
  13412. vm.$refs = {};
  13413. vm._watcher = null;
  13414. vm._inactive = null;
  13415. vm._directInactive = false;
  13416. vm._isMounted = false;
  13417. vm._isDestroyed = false;
  13418. vm._isBeingDestroyed = false;
  13419. }
  13420. function lifecycleMixin (Vue) {
  13421. Vue.prototype._update = function (vnode, hydrating) {
  13422. var vm = this;
  13423. var prevEl = vm.$el;
  13424. var prevVnode = vm._vnode;
  13425. var restoreActiveInstance = setActiveInstance(vm);
  13426. vm._vnode = vnode;
  13427. // Vue.prototype.__patch__ is injected in entry points
  13428. // based on the rendering backend used.
  13429. if (!prevVnode) {
  13430. // initial render
  13431. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  13432. } else {
  13433. // updates
  13434. vm.$el = vm.__patch__(prevVnode, vnode);
  13435. }
  13436. restoreActiveInstance();
  13437. // update __vue__ reference
  13438. if (prevEl) {
  13439. prevEl.__vue__ = null;
  13440. }
  13441. if (vm.$el) {
  13442. vm.$el.__vue__ = vm;
  13443. }
  13444. // if parent is an HOC, update its $el as well
  13445. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  13446. vm.$parent.$el = vm.$el;
  13447. }
  13448. // updated hook is called by the scheduler to ensure that children are
  13449. // updated in a parent's updated hook.
  13450. };
  13451. Vue.prototype.$forceUpdate = function () {
  13452. var vm = this;
  13453. if (vm._watcher) {
  13454. vm._watcher.update();
  13455. }
  13456. };
  13457. Vue.prototype.$destroy = function () {
  13458. var vm = this;
  13459. if (vm._isBeingDestroyed) {
  13460. return
  13461. }
  13462. callHook(vm, 'beforeDestroy');
  13463. vm._isBeingDestroyed = true;
  13464. // remove self from parent
  13465. var parent = vm.$parent;
  13466. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  13467. remove(parent.$children, vm);
  13468. }
  13469. // teardown watchers
  13470. if (vm._watcher) {
  13471. vm._watcher.teardown();
  13472. }
  13473. var i = vm._watchers.length;
  13474. while (i--) {
  13475. vm._watchers[i].teardown();
  13476. }
  13477. // remove reference from data ob
  13478. // frozen object may not have observer.
  13479. if (vm._data.__ob__) {
  13480. vm._data.__ob__.vmCount--;
  13481. }
  13482. // call the last hook...
  13483. vm._isDestroyed = true;
  13484. // invoke destroy hooks on current rendered tree
  13485. vm.__patch__(vm._vnode, null);
  13486. // fire destroyed hook
  13487. callHook(vm, 'destroyed');
  13488. // turn off all instance listeners.
  13489. vm.$off();
  13490. // remove __vue__ reference
  13491. if (vm.$el) {
  13492. vm.$el.__vue__ = null;
  13493. }
  13494. // release circular reference (#6759)
  13495. if (vm.$vnode) {
  13496. vm.$vnode.parent = null;
  13497. }
  13498. };
  13499. }
  13500. function updateChildComponent (
  13501. vm,
  13502. propsData,
  13503. listeners,
  13504. parentVnode,
  13505. renderChildren
  13506. ) {
  13507. if (true) {
  13508. isUpdatingChildComponent = true;
  13509. }
  13510. // determine whether component has slot children
  13511. // we need to do this before overwriting $options._renderChildren.
  13512. // check if there are dynamic scopedSlots (hand-written or compiled but with
  13513. // dynamic slot names). Static scoped slots compiled from template has the
  13514. // "$stable" marker.
  13515. var newScopedSlots = parentVnode.data.scopedSlots;
  13516. var oldScopedSlots = vm.$scopedSlots;
  13517. var hasDynamicScopedSlot = !!(
  13518. (newScopedSlots && !newScopedSlots.$stable) ||
  13519. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  13520. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  13521. );
  13522. // Any static slot children from the parent may have changed during parent's
  13523. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  13524. // update is necessary to ensure correctness.
  13525. var needsForceUpdate = !!(
  13526. renderChildren || // has new static slots
  13527. vm.$options._renderChildren || // has old static slots
  13528. hasDynamicScopedSlot
  13529. );
  13530. vm.$options._parentVnode = parentVnode;
  13531. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  13532. if (vm._vnode) { // update child tree's parent
  13533. vm._vnode.parent = parentVnode;
  13534. }
  13535. vm.$options._renderChildren = renderChildren;
  13536. // update $attrs and $listeners hash
  13537. // these are also reactive so they may trigger child update if the child
  13538. // used them during render
  13539. vm.$attrs = parentVnode.data.attrs || emptyObject;
  13540. vm.$listeners = listeners || emptyObject;
  13541. // update props
  13542. if (propsData && vm.$options.props) {
  13543. toggleObserving(false);
  13544. var props = vm._props;
  13545. var propKeys = vm.$options._propKeys || [];
  13546. for (var i = 0; i < propKeys.length; i++) {
  13547. var key = propKeys[i];
  13548. var propOptions = vm.$options.props; // wtf flow?
  13549. props[key] = validateProp(key, propOptions, propsData, vm);
  13550. }
  13551. toggleObserving(true);
  13552. // keep a copy of raw propsData
  13553. vm.$options.propsData = propsData;
  13554. }
  13555. // fixed by xxxxxx update properties(mp runtime)
  13556. vm._$updateProperties && vm._$updateProperties(vm);
  13557. // update listeners
  13558. listeners = listeners || emptyObject;
  13559. var oldListeners = vm.$options._parentListeners;
  13560. vm.$options._parentListeners = listeners;
  13561. updateComponentListeners(vm, listeners, oldListeners);
  13562. // resolve slots + force update if has children
  13563. if (needsForceUpdate) {
  13564. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  13565. vm.$forceUpdate();
  13566. }
  13567. if (true) {
  13568. isUpdatingChildComponent = false;
  13569. }
  13570. }
  13571. function isInInactiveTree (vm) {
  13572. while (vm && (vm = vm.$parent)) {
  13573. if (vm._inactive) { return true }
  13574. }
  13575. return false
  13576. }
  13577. function activateChildComponent (vm, direct) {
  13578. if (direct) {
  13579. vm._directInactive = false;
  13580. if (isInInactiveTree(vm)) {
  13581. return
  13582. }
  13583. } else if (vm._directInactive) {
  13584. return
  13585. }
  13586. if (vm._inactive || vm._inactive === null) {
  13587. vm._inactive = false;
  13588. for (var i = 0; i < vm.$children.length; i++) {
  13589. activateChildComponent(vm.$children[i]);
  13590. }
  13591. callHook(vm, 'activated');
  13592. }
  13593. }
  13594. function deactivateChildComponent (vm, direct) {
  13595. if (direct) {
  13596. vm._directInactive = true;
  13597. if (isInInactiveTree(vm)) {
  13598. return
  13599. }
  13600. }
  13601. if (!vm._inactive) {
  13602. vm._inactive = true;
  13603. for (var i = 0; i < vm.$children.length; i++) {
  13604. deactivateChildComponent(vm.$children[i]);
  13605. }
  13606. callHook(vm, 'deactivated');
  13607. }
  13608. }
  13609. function callHook (vm, hook) {
  13610. // #7573 disable dep collection when invoking lifecycle hooks
  13611. pushTarget();
  13612. var handlers = vm.$options[hook];
  13613. var info = hook + " hook";
  13614. if (handlers) {
  13615. for (var i = 0, j = handlers.length; i < j; i++) {
  13616. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  13617. }
  13618. }
  13619. if (vm._hasHookEvent) {
  13620. vm.$emit('hook:' + hook);
  13621. }
  13622. popTarget();
  13623. }
  13624. /* */
  13625. var MAX_UPDATE_COUNT = 100;
  13626. var queue = [];
  13627. var activatedChildren = [];
  13628. var has = {};
  13629. var circular = {};
  13630. var waiting = false;
  13631. var flushing = false;
  13632. var index = 0;
  13633. /**
  13634. * Reset the scheduler's state.
  13635. */
  13636. function resetSchedulerState () {
  13637. index = queue.length = activatedChildren.length = 0;
  13638. has = {};
  13639. if (true) {
  13640. circular = {};
  13641. }
  13642. waiting = flushing = false;
  13643. }
  13644. // Async edge case #6566 requires saving the timestamp when event listeners are
  13645. // attached. However, calling performance.now() has a perf overhead especially
  13646. // if the page has thousands of event listeners. Instead, we take a timestamp
  13647. // every time the scheduler flushes and use that for all event listeners
  13648. // attached during that flush.
  13649. var currentFlushTimestamp = 0;
  13650. // Async edge case fix requires storing an event listener's attach timestamp.
  13651. var getNow = Date.now;
  13652. // Determine what event timestamp the browser is using. Annoyingly, the
  13653. // timestamp can either be hi-res (relative to page load) or low-res
  13654. // (relative to UNIX epoch), so in order to compare time we have to use the
  13655. // same timestamp type when saving the flush timestamp.
  13656. // All IE versions use low-res event timestamps, and have problematic clock
  13657. // implementations (#9632)
  13658. if (inBrowser && !isIE) {
  13659. var performance = window.performance;
  13660. if (
  13661. performance &&
  13662. typeof performance.now === 'function' &&
  13663. getNow() > document.createEvent('Event').timeStamp
  13664. ) {
  13665. // if the event timestamp, although evaluated AFTER the Date.now(), is
  13666. // smaller than it, it means the event is using a hi-res timestamp,
  13667. // and we need to use the hi-res version for event listener timestamps as
  13668. // well.
  13669. getNow = function () { return performance.now(); };
  13670. }
  13671. }
  13672. /**
  13673. * Flush both queues and run the watchers.
  13674. */
  13675. function flushSchedulerQueue () {
  13676. currentFlushTimestamp = getNow();
  13677. flushing = true;
  13678. var watcher, id;
  13679. // Sort queue before flush.
  13680. // This ensures that:
  13681. // 1. Components are updated from parent to child. (because parent is always
  13682. // created before the child)
  13683. // 2. A component's user watchers are run before its render watcher (because
  13684. // user watchers are created before the render watcher)
  13685. // 3. If a component is destroyed during a parent component's watcher run,
  13686. // its watchers can be skipped.
  13687. queue.sort(function (a, b) { return a.id - b.id; });
  13688. // do not cache length because more watchers might be pushed
  13689. // as we run existing watchers
  13690. for (index = 0; index < queue.length; index++) {
  13691. watcher = queue[index];
  13692. if (watcher.before) {
  13693. watcher.before();
  13694. }
  13695. id = watcher.id;
  13696. has[id] = null;
  13697. watcher.run();
  13698. // in dev build, check and stop circular updates.
  13699. if ( true && has[id] != null) {
  13700. circular[id] = (circular[id] || 0) + 1;
  13701. if (circular[id] > MAX_UPDATE_COUNT) {
  13702. warn(
  13703. 'You may have an infinite update loop ' + (
  13704. watcher.user
  13705. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  13706. : "in a component render function."
  13707. ),
  13708. watcher.vm
  13709. );
  13710. break
  13711. }
  13712. }
  13713. }
  13714. // keep copies of post queues before resetting state
  13715. var activatedQueue = activatedChildren.slice();
  13716. var updatedQueue = queue.slice();
  13717. resetSchedulerState();
  13718. // call component updated and activated hooks
  13719. callActivatedHooks(activatedQueue);
  13720. callUpdatedHooks(updatedQueue);
  13721. // devtool hook
  13722. /* istanbul ignore if */
  13723. if (devtools && config.devtools) {
  13724. devtools.emit('flush');
  13725. }
  13726. }
  13727. function callUpdatedHooks (queue) {
  13728. var i = queue.length;
  13729. while (i--) {
  13730. var watcher = queue[i];
  13731. var vm = watcher.vm;
  13732. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  13733. callHook(vm, 'updated');
  13734. }
  13735. }
  13736. }
  13737. /**
  13738. * Queue a kept-alive component that was activated during patch.
  13739. * The queue will be processed after the entire tree has been patched.
  13740. */
  13741. function queueActivatedComponent (vm) {
  13742. // setting _inactive to false here so that a render function can
  13743. // rely on checking whether it's in an inactive tree (e.g. router-view)
  13744. vm._inactive = false;
  13745. activatedChildren.push(vm);
  13746. }
  13747. function callActivatedHooks (queue) {
  13748. for (var i = 0; i < queue.length; i++) {
  13749. queue[i]._inactive = true;
  13750. activateChildComponent(queue[i], true /* true */);
  13751. }
  13752. }
  13753. /**
  13754. * Push a watcher into the watcher queue.
  13755. * Jobs with duplicate IDs will be skipped unless it's
  13756. * pushed when the queue is being flushed.
  13757. */
  13758. function queueWatcher (watcher) {
  13759. var id = watcher.id;
  13760. if (has[id] == null) {
  13761. has[id] = true;
  13762. if (!flushing) {
  13763. queue.push(watcher);
  13764. } else {
  13765. // if already flushing, splice the watcher based on its id
  13766. // if already past its id, it will be run next immediately.
  13767. var i = queue.length - 1;
  13768. while (i > index && queue[i].id > watcher.id) {
  13769. i--;
  13770. }
  13771. queue.splice(i + 1, 0, watcher);
  13772. }
  13773. // queue the flush
  13774. if (!waiting) {
  13775. waiting = true;
  13776. if ( true && !config.async) {
  13777. flushSchedulerQueue();
  13778. return
  13779. }
  13780. nextTick(flushSchedulerQueue);
  13781. }
  13782. }
  13783. }
  13784. /* */
  13785. var uid$2 = 0;
  13786. /**
  13787. * A watcher parses an expression, collects dependencies,
  13788. * and fires callback when the expression value changes.
  13789. * This is used for both the $watch() api and directives.
  13790. */
  13791. var Watcher = function Watcher (
  13792. vm,
  13793. expOrFn,
  13794. cb,
  13795. options,
  13796. isRenderWatcher
  13797. ) {
  13798. this.vm = vm;
  13799. if (isRenderWatcher) {
  13800. vm._watcher = this;
  13801. }
  13802. vm._watchers.push(this);
  13803. // options
  13804. if (options) {
  13805. this.deep = !!options.deep;
  13806. this.user = !!options.user;
  13807. this.lazy = !!options.lazy;
  13808. this.sync = !!options.sync;
  13809. this.before = options.before;
  13810. } else {
  13811. this.deep = this.user = this.lazy = this.sync = false;
  13812. }
  13813. this.cb = cb;
  13814. this.id = ++uid$2; // uid for batching
  13815. this.active = true;
  13816. this.dirty = this.lazy; // for lazy watchers
  13817. this.deps = [];
  13818. this.newDeps = [];
  13819. this.depIds = new _Set();
  13820. this.newDepIds = new _Set();
  13821. this.expression = true
  13822. ? expOrFn.toString()
  13823. : undefined;
  13824. // parse expression for getter
  13825. if (typeof expOrFn === 'function') {
  13826. this.getter = expOrFn;
  13827. } else {
  13828. this.getter = parsePath(expOrFn);
  13829. if (!this.getter) {
  13830. this.getter = noop;
  13831. true && warn(
  13832. "Failed watching path: \"" + expOrFn + "\" " +
  13833. 'Watcher only accepts simple dot-delimited paths. ' +
  13834. 'For full control, use a function instead.',
  13835. vm
  13836. );
  13837. }
  13838. }
  13839. this.value = this.lazy
  13840. ? undefined
  13841. : this.get();
  13842. };
  13843. /**
  13844. * Evaluate the getter, and re-collect dependencies.
  13845. */
  13846. Watcher.prototype.get = function get () {
  13847. pushTarget(this);
  13848. var value;
  13849. var vm = this.vm;
  13850. try {
  13851. value = this.getter.call(vm, vm);
  13852. } catch (e) {
  13853. if (this.user) {
  13854. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  13855. } else {
  13856. throw e
  13857. }
  13858. } finally {
  13859. // "touch" every property so they are all tracked as
  13860. // dependencies for deep watching
  13861. if (this.deep) {
  13862. traverse(value);
  13863. }
  13864. popTarget();
  13865. this.cleanupDeps();
  13866. }
  13867. return value
  13868. };
  13869. /**
  13870. * Add a dependency to this directive.
  13871. */
  13872. Watcher.prototype.addDep = function addDep (dep) {
  13873. var id = dep.id;
  13874. if (!this.newDepIds.has(id)) {
  13875. this.newDepIds.add(id);
  13876. this.newDeps.push(dep);
  13877. if (!this.depIds.has(id)) {
  13878. dep.addSub(this);
  13879. }
  13880. }
  13881. };
  13882. /**
  13883. * Clean up for dependency collection.
  13884. */
  13885. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  13886. var i = this.deps.length;
  13887. while (i--) {
  13888. var dep = this.deps[i];
  13889. if (!this.newDepIds.has(dep.id)) {
  13890. dep.removeSub(this);
  13891. }
  13892. }
  13893. var tmp = this.depIds;
  13894. this.depIds = this.newDepIds;
  13895. this.newDepIds = tmp;
  13896. this.newDepIds.clear();
  13897. tmp = this.deps;
  13898. this.deps = this.newDeps;
  13899. this.newDeps = tmp;
  13900. this.newDeps.length = 0;
  13901. };
  13902. /**
  13903. * Subscriber interface.
  13904. * Will be called when a dependency changes.
  13905. */
  13906. Watcher.prototype.update = function update () {
  13907. /* istanbul ignore else */
  13908. if (this.lazy) {
  13909. this.dirty = true;
  13910. } else if (this.sync) {
  13911. this.run();
  13912. } else {
  13913. queueWatcher(this);
  13914. }
  13915. };
  13916. /**
  13917. * Scheduler job interface.
  13918. * Will be called by the scheduler.
  13919. */
  13920. Watcher.prototype.run = function run () {
  13921. if (this.active) {
  13922. var value = this.get();
  13923. if (
  13924. value !== this.value ||
  13925. // Deep watchers and watchers on Object/Arrays should fire even
  13926. // when the value is the same, because the value may
  13927. // have mutated.
  13928. isObject(value) ||
  13929. this.deep
  13930. ) {
  13931. // set new value
  13932. var oldValue = this.value;
  13933. this.value = value;
  13934. if (this.user) {
  13935. try {
  13936. this.cb.call(this.vm, value, oldValue);
  13937. } catch (e) {
  13938. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  13939. }
  13940. } else {
  13941. this.cb.call(this.vm, value, oldValue);
  13942. }
  13943. }
  13944. }
  13945. };
  13946. /**
  13947. * Evaluate the value of the watcher.
  13948. * This only gets called for lazy watchers.
  13949. */
  13950. Watcher.prototype.evaluate = function evaluate () {
  13951. this.value = this.get();
  13952. this.dirty = false;
  13953. };
  13954. /**
  13955. * Depend on all deps collected by this watcher.
  13956. */
  13957. Watcher.prototype.depend = function depend () {
  13958. var i = this.deps.length;
  13959. while (i--) {
  13960. this.deps[i].depend();
  13961. }
  13962. };
  13963. /**
  13964. * Remove self from all dependencies' subscriber list.
  13965. */
  13966. Watcher.prototype.teardown = function teardown () {
  13967. if (this.active) {
  13968. // remove self from vm's watcher list
  13969. // this is a somewhat expensive operation so we skip it
  13970. // if the vm is being destroyed.
  13971. if (!this.vm._isBeingDestroyed) {
  13972. remove(this.vm._watchers, this);
  13973. }
  13974. var i = this.deps.length;
  13975. while (i--) {
  13976. this.deps[i].removeSub(this);
  13977. }
  13978. this.active = false;
  13979. }
  13980. };
  13981. /* */
  13982. var sharedPropertyDefinition = {
  13983. enumerable: true,
  13984. configurable: true,
  13985. get: noop,
  13986. set: noop
  13987. };
  13988. function proxy (target, sourceKey, key) {
  13989. sharedPropertyDefinition.get = function proxyGetter () {
  13990. return this[sourceKey][key]
  13991. };
  13992. sharedPropertyDefinition.set = function proxySetter (val) {
  13993. this[sourceKey][key] = val;
  13994. };
  13995. Object.defineProperty(target, key, sharedPropertyDefinition);
  13996. }
  13997. function initState (vm) {
  13998. vm._watchers = [];
  13999. var opts = vm.$options;
  14000. if (opts.props) { initProps(vm, opts.props); }
  14001. if (opts.methods) { initMethods(vm, opts.methods); }
  14002. if (opts.data) {
  14003. initData(vm);
  14004. } else {
  14005. observe(vm._data = {}, true /* asRootData */);
  14006. }
  14007. if (opts.computed) { initComputed(vm, opts.computed); }
  14008. if (opts.watch && opts.watch !== nativeWatch) {
  14009. initWatch(vm, opts.watch);
  14010. }
  14011. }
  14012. function initProps (vm, propsOptions) {
  14013. var propsData = vm.$options.propsData || {};
  14014. var props = vm._props = {};
  14015. // cache prop keys so that future props updates can iterate using Array
  14016. // instead of dynamic object key enumeration.
  14017. var keys = vm.$options._propKeys = [];
  14018. var isRoot = !vm.$parent;
  14019. // root instance props should be converted
  14020. if (!isRoot) {
  14021. toggleObserving(false);
  14022. }
  14023. var loop = function ( key ) {
  14024. keys.push(key);
  14025. var value = validateProp(key, propsOptions, propsData, vm);
  14026. /* istanbul ignore else */
  14027. if (true) {
  14028. var hyphenatedKey = hyphenate(key);
  14029. if (isReservedAttribute(hyphenatedKey) ||
  14030. config.isReservedAttr(hyphenatedKey)) {
  14031. warn(
  14032. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  14033. vm
  14034. );
  14035. }
  14036. defineReactive$$1(props, key, value, function () {
  14037. if (!isRoot && !isUpdatingChildComponent) {
  14038. {
  14039. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  14040. return
  14041. }
  14042. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  14043. if(
  14044. key === 'value' &&
  14045. Array.isArray(vm.$options.behaviors) &&
  14046. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  14047. ){
  14048. return
  14049. }
  14050. if(vm._getFormData){
  14051. return
  14052. }
  14053. var $parent = vm.$parent;
  14054. while($parent){
  14055. if($parent.__next_tick_pending){
  14056. return
  14057. }
  14058. $parent = $parent.$parent;
  14059. }
  14060. }
  14061. warn(
  14062. "Avoid mutating a prop directly since the value will be " +
  14063. "overwritten whenever the parent component re-renders. " +
  14064. "Instead, use a data or computed property based on the prop's " +
  14065. "value. Prop being mutated: \"" + key + "\"",
  14066. vm
  14067. );
  14068. }
  14069. });
  14070. } else {}
  14071. // static props are already proxied on the component's prototype
  14072. // during Vue.extend(). We only need to proxy props defined at
  14073. // instantiation here.
  14074. if (!(key in vm)) {
  14075. proxy(vm, "_props", key);
  14076. }
  14077. };
  14078. for (var key in propsOptions) loop( key );
  14079. toggleObserving(true);
  14080. }
  14081. function initData (vm) {
  14082. var data = vm.$options.data;
  14083. data = vm._data = typeof data === 'function'
  14084. ? getData(data, vm)
  14085. : data || {};
  14086. if (!isPlainObject(data)) {
  14087. data = {};
  14088. true && warn(
  14089. 'data functions should return an object:\n' +
  14090. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  14091. vm
  14092. );
  14093. }
  14094. // proxy data on instance
  14095. var keys = Object.keys(data);
  14096. var props = vm.$options.props;
  14097. var methods = vm.$options.methods;
  14098. var i = keys.length;
  14099. while (i--) {
  14100. var key = keys[i];
  14101. if (true) {
  14102. if (methods && hasOwn(methods, key)) {
  14103. warn(
  14104. ("Method \"" + key + "\" has already been defined as a data property."),
  14105. vm
  14106. );
  14107. }
  14108. }
  14109. if (props && hasOwn(props, key)) {
  14110. true && warn(
  14111. "The data property \"" + key + "\" is already declared as a prop. " +
  14112. "Use prop default value instead.",
  14113. vm
  14114. );
  14115. } else if (!isReserved(key)) {
  14116. proxy(vm, "_data", key);
  14117. }
  14118. }
  14119. // observe data
  14120. observe(data, true /* asRootData */);
  14121. }
  14122. function getData (data, vm) {
  14123. // #7573 disable dep collection when invoking data getters
  14124. pushTarget();
  14125. try {
  14126. return data.call(vm, vm)
  14127. } catch (e) {
  14128. handleError(e, vm, "data()");
  14129. return {}
  14130. } finally {
  14131. popTarget();
  14132. }
  14133. }
  14134. var computedWatcherOptions = { lazy: true };
  14135. function initComputed (vm, computed) {
  14136. // $flow-disable-line
  14137. var watchers = vm._computedWatchers = Object.create(null);
  14138. // computed properties are just getters during SSR
  14139. var isSSR = isServerRendering();
  14140. for (var key in computed) {
  14141. var userDef = computed[key];
  14142. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  14143. if ( true && getter == null) {
  14144. warn(
  14145. ("Getter is missing for computed property \"" + key + "\"."),
  14146. vm
  14147. );
  14148. }
  14149. if (!isSSR) {
  14150. // create internal watcher for the computed property.
  14151. watchers[key] = new Watcher(
  14152. vm,
  14153. getter || noop,
  14154. noop,
  14155. computedWatcherOptions
  14156. );
  14157. }
  14158. // component-defined computed properties are already defined on the
  14159. // component prototype. We only need to define computed properties defined
  14160. // at instantiation here.
  14161. if (!(key in vm)) {
  14162. defineComputed(vm, key, userDef);
  14163. } else if (true) {
  14164. if (key in vm.$data) {
  14165. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  14166. } else if (vm.$options.props && key in vm.$options.props) {
  14167. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  14168. }
  14169. }
  14170. }
  14171. }
  14172. function defineComputed (
  14173. target,
  14174. key,
  14175. userDef
  14176. ) {
  14177. var shouldCache = !isServerRendering();
  14178. if (typeof userDef === 'function') {
  14179. sharedPropertyDefinition.get = shouldCache
  14180. ? createComputedGetter(key)
  14181. : createGetterInvoker(userDef);
  14182. sharedPropertyDefinition.set = noop;
  14183. } else {
  14184. sharedPropertyDefinition.get = userDef.get
  14185. ? shouldCache && userDef.cache !== false
  14186. ? createComputedGetter(key)
  14187. : createGetterInvoker(userDef.get)
  14188. : noop;
  14189. sharedPropertyDefinition.set = userDef.set || noop;
  14190. }
  14191. if ( true &&
  14192. sharedPropertyDefinition.set === noop) {
  14193. sharedPropertyDefinition.set = function () {
  14194. warn(
  14195. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  14196. this
  14197. );
  14198. };
  14199. }
  14200. Object.defineProperty(target, key, sharedPropertyDefinition);
  14201. }
  14202. function createComputedGetter (key) {
  14203. return function computedGetter () {
  14204. var watcher = this._computedWatchers && this._computedWatchers[key];
  14205. if (watcher) {
  14206. if (watcher.dirty) {
  14207. watcher.evaluate();
  14208. }
  14209. if (Dep.SharedObject.target) {// fixed by xxxxxx
  14210. watcher.depend();
  14211. }
  14212. return watcher.value
  14213. }
  14214. }
  14215. }
  14216. function createGetterInvoker(fn) {
  14217. return function computedGetter () {
  14218. return fn.call(this, this)
  14219. }
  14220. }
  14221. function initMethods (vm, methods) {
  14222. var props = vm.$options.props;
  14223. for (var key in methods) {
  14224. if (true) {
  14225. if (typeof methods[key] !== 'function') {
  14226. warn(
  14227. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  14228. "Did you reference the function correctly?",
  14229. vm
  14230. );
  14231. }
  14232. if (props && hasOwn(props, key)) {
  14233. warn(
  14234. ("Method \"" + key + "\" has already been defined as a prop."),
  14235. vm
  14236. );
  14237. }
  14238. if ((key in vm) && isReserved(key)) {
  14239. warn(
  14240. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  14241. "Avoid defining component methods that start with _ or $."
  14242. );
  14243. }
  14244. }
  14245. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  14246. }
  14247. }
  14248. function initWatch (vm, watch) {
  14249. for (var key in watch) {
  14250. var handler = watch[key];
  14251. if (Array.isArray(handler)) {
  14252. for (var i = 0; i < handler.length; i++) {
  14253. createWatcher(vm, key, handler[i]);
  14254. }
  14255. } else {
  14256. createWatcher(vm, key, handler);
  14257. }
  14258. }
  14259. }
  14260. function createWatcher (
  14261. vm,
  14262. expOrFn,
  14263. handler,
  14264. options
  14265. ) {
  14266. if (isPlainObject(handler)) {
  14267. options = handler;
  14268. handler = handler.handler;
  14269. }
  14270. if (typeof handler === 'string') {
  14271. handler = vm[handler];
  14272. }
  14273. return vm.$watch(expOrFn, handler, options)
  14274. }
  14275. function stateMixin (Vue) {
  14276. // flow somehow has problems with directly declared definition object
  14277. // when using Object.defineProperty, so we have to procedurally build up
  14278. // the object here.
  14279. var dataDef = {};
  14280. dataDef.get = function () { return this._data };
  14281. var propsDef = {};
  14282. propsDef.get = function () { return this._props };
  14283. if (true) {
  14284. dataDef.set = function () {
  14285. warn(
  14286. 'Avoid replacing instance root $data. ' +
  14287. 'Use nested data properties instead.',
  14288. this
  14289. );
  14290. };
  14291. propsDef.set = function () {
  14292. warn("$props is readonly.", this);
  14293. };
  14294. }
  14295. Object.defineProperty(Vue.prototype, '$data', dataDef);
  14296. Object.defineProperty(Vue.prototype, '$props', propsDef);
  14297. Vue.prototype.$set = set;
  14298. Vue.prototype.$delete = del;
  14299. Vue.prototype.$watch = function (
  14300. expOrFn,
  14301. cb,
  14302. options
  14303. ) {
  14304. var vm = this;
  14305. if (isPlainObject(cb)) {
  14306. return createWatcher(vm, expOrFn, cb, options)
  14307. }
  14308. options = options || {};
  14309. options.user = true;
  14310. var watcher = new Watcher(vm, expOrFn, cb, options);
  14311. if (options.immediate) {
  14312. try {
  14313. cb.call(vm, watcher.value);
  14314. } catch (error) {
  14315. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  14316. }
  14317. }
  14318. return function unwatchFn () {
  14319. watcher.teardown();
  14320. }
  14321. };
  14322. }
  14323. /* */
  14324. var uid$3 = 0;
  14325. function initMixin (Vue) {
  14326. Vue.prototype._init = function (options) {
  14327. var vm = this;
  14328. // a uid
  14329. vm._uid = uid$3++;
  14330. var startTag, endTag;
  14331. /* istanbul ignore if */
  14332. if ( true && config.performance && mark) {
  14333. startTag = "vue-perf-start:" + (vm._uid);
  14334. endTag = "vue-perf-end:" + (vm._uid);
  14335. mark(startTag);
  14336. }
  14337. // a flag to avoid this being observed
  14338. vm._isVue = true;
  14339. // merge options
  14340. if (options && options._isComponent) {
  14341. // optimize internal component instantiation
  14342. // since dynamic options merging is pretty slow, and none of the
  14343. // internal component options needs special treatment.
  14344. initInternalComponent(vm, options);
  14345. } else {
  14346. vm.$options = mergeOptions(
  14347. resolveConstructorOptions(vm.constructor),
  14348. options || {},
  14349. vm
  14350. );
  14351. }
  14352. /* istanbul ignore else */
  14353. if (true) {
  14354. initProxy(vm);
  14355. } else {}
  14356. // expose real self
  14357. vm._self = vm;
  14358. initLifecycle(vm);
  14359. initEvents(vm);
  14360. initRender(vm);
  14361. callHook(vm, 'beforeCreate');
  14362. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  14363. initState(vm);
  14364. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  14365. !vm._$fallback && callHook(vm, 'created');
  14366. /* istanbul ignore if */
  14367. if ( true && config.performance && mark) {
  14368. vm._name = formatComponentName(vm, false);
  14369. mark(endTag);
  14370. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  14371. }
  14372. if (vm.$options.el) {
  14373. vm.$mount(vm.$options.el);
  14374. }
  14375. };
  14376. }
  14377. function initInternalComponent (vm, options) {
  14378. var opts = vm.$options = Object.create(vm.constructor.options);
  14379. // doing this because it's faster than dynamic enumeration.
  14380. var parentVnode = options._parentVnode;
  14381. opts.parent = options.parent;
  14382. opts._parentVnode = parentVnode;
  14383. var vnodeComponentOptions = parentVnode.componentOptions;
  14384. opts.propsData = vnodeComponentOptions.propsData;
  14385. opts._parentListeners = vnodeComponentOptions.listeners;
  14386. opts._renderChildren = vnodeComponentOptions.children;
  14387. opts._componentTag = vnodeComponentOptions.tag;
  14388. if (options.render) {
  14389. opts.render = options.render;
  14390. opts.staticRenderFns = options.staticRenderFns;
  14391. }
  14392. }
  14393. function resolveConstructorOptions (Ctor) {
  14394. var options = Ctor.options;
  14395. if (Ctor.super) {
  14396. var superOptions = resolveConstructorOptions(Ctor.super);
  14397. var cachedSuperOptions = Ctor.superOptions;
  14398. if (superOptions !== cachedSuperOptions) {
  14399. // super option changed,
  14400. // need to resolve new options.
  14401. Ctor.superOptions = superOptions;
  14402. // check if there are any late-modified/attached options (#4976)
  14403. var modifiedOptions = resolveModifiedOptions(Ctor);
  14404. // update base extend options
  14405. if (modifiedOptions) {
  14406. extend(Ctor.extendOptions, modifiedOptions);
  14407. }
  14408. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  14409. if (options.name) {
  14410. options.components[options.name] = Ctor;
  14411. }
  14412. }
  14413. }
  14414. return options
  14415. }
  14416. function resolveModifiedOptions (Ctor) {
  14417. var modified;
  14418. var latest = Ctor.options;
  14419. var sealed = Ctor.sealedOptions;
  14420. for (var key in latest) {
  14421. if (latest[key] !== sealed[key]) {
  14422. if (!modified) { modified = {}; }
  14423. modified[key] = latest[key];
  14424. }
  14425. }
  14426. return modified
  14427. }
  14428. function Vue (options) {
  14429. if ( true &&
  14430. !(this instanceof Vue)
  14431. ) {
  14432. warn('Vue is a constructor and should be called with the `new` keyword');
  14433. }
  14434. this._init(options);
  14435. }
  14436. initMixin(Vue);
  14437. stateMixin(Vue);
  14438. eventsMixin(Vue);
  14439. lifecycleMixin(Vue);
  14440. renderMixin(Vue);
  14441. /* */
  14442. function initUse (Vue) {
  14443. Vue.use = function (plugin) {
  14444. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  14445. if (installedPlugins.indexOf(plugin) > -1) {
  14446. return this
  14447. }
  14448. // additional parameters
  14449. var args = toArray(arguments, 1);
  14450. args.unshift(this);
  14451. if (typeof plugin.install === 'function') {
  14452. plugin.install.apply(plugin, args);
  14453. } else if (typeof plugin === 'function') {
  14454. plugin.apply(null, args);
  14455. }
  14456. installedPlugins.push(plugin);
  14457. return this
  14458. };
  14459. }
  14460. /* */
  14461. function initMixin$1 (Vue) {
  14462. Vue.mixin = function (mixin) {
  14463. this.options = mergeOptions(this.options, mixin);
  14464. return this
  14465. };
  14466. }
  14467. /* */
  14468. function initExtend (Vue) {
  14469. /**
  14470. * Each instance constructor, including Vue, has a unique
  14471. * cid. This enables us to create wrapped "child
  14472. * constructors" for prototypal inheritance and cache them.
  14473. */
  14474. Vue.cid = 0;
  14475. var cid = 1;
  14476. /**
  14477. * Class inheritance
  14478. */
  14479. Vue.extend = function (extendOptions) {
  14480. extendOptions = extendOptions || {};
  14481. var Super = this;
  14482. var SuperId = Super.cid;
  14483. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  14484. if (cachedCtors[SuperId]) {
  14485. return cachedCtors[SuperId]
  14486. }
  14487. var name = extendOptions.name || Super.options.name;
  14488. if ( true && name) {
  14489. validateComponentName(name);
  14490. }
  14491. var Sub = function VueComponent (options) {
  14492. this._init(options);
  14493. };
  14494. Sub.prototype = Object.create(Super.prototype);
  14495. Sub.prototype.constructor = Sub;
  14496. Sub.cid = cid++;
  14497. Sub.options = mergeOptions(
  14498. Super.options,
  14499. extendOptions
  14500. );
  14501. Sub['super'] = Super;
  14502. // For props and computed properties, we define the proxy getters on
  14503. // the Vue instances at extension time, on the extended prototype. This
  14504. // avoids Object.defineProperty calls for each instance created.
  14505. if (Sub.options.props) {
  14506. initProps$1(Sub);
  14507. }
  14508. if (Sub.options.computed) {
  14509. initComputed$1(Sub);
  14510. }
  14511. // allow further extension/mixin/plugin usage
  14512. Sub.extend = Super.extend;
  14513. Sub.mixin = Super.mixin;
  14514. Sub.use = Super.use;
  14515. // create asset registers, so extended classes
  14516. // can have their private assets too.
  14517. ASSET_TYPES.forEach(function (type) {
  14518. Sub[type] = Super[type];
  14519. });
  14520. // enable recursive self-lookup
  14521. if (name) {
  14522. Sub.options.components[name] = Sub;
  14523. }
  14524. // keep a reference to the super options at extension time.
  14525. // later at instantiation we can check if Super's options have
  14526. // been updated.
  14527. Sub.superOptions = Super.options;
  14528. Sub.extendOptions = extendOptions;
  14529. Sub.sealedOptions = extend({}, Sub.options);
  14530. // cache constructor
  14531. cachedCtors[SuperId] = Sub;
  14532. return Sub
  14533. };
  14534. }
  14535. function initProps$1 (Comp) {
  14536. var props = Comp.options.props;
  14537. for (var key in props) {
  14538. proxy(Comp.prototype, "_props", key);
  14539. }
  14540. }
  14541. function initComputed$1 (Comp) {
  14542. var computed = Comp.options.computed;
  14543. for (var key in computed) {
  14544. defineComputed(Comp.prototype, key, computed[key]);
  14545. }
  14546. }
  14547. /* */
  14548. function initAssetRegisters (Vue) {
  14549. /**
  14550. * Create asset registration methods.
  14551. */
  14552. ASSET_TYPES.forEach(function (type) {
  14553. Vue[type] = function (
  14554. id,
  14555. definition
  14556. ) {
  14557. if (!definition) {
  14558. return this.options[type + 's'][id]
  14559. } else {
  14560. /* istanbul ignore if */
  14561. if ( true && type === 'component') {
  14562. validateComponentName(id);
  14563. }
  14564. if (type === 'component' && isPlainObject(definition)) {
  14565. definition.name = definition.name || id;
  14566. definition = this.options._base.extend(definition);
  14567. }
  14568. if (type === 'directive' && typeof definition === 'function') {
  14569. definition = { bind: definition, update: definition };
  14570. }
  14571. this.options[type + 's'][id] = definition;
  14572. return definition
  14573. }
  14574. };
  14575. });
  14576. }
  14577. /* */
  14578. function getComponentName (opts) {
  14579. return opts && (opts.Ctor.options.name || opts.tag)
  14580. }
  14581. function matches (pattern, name) {
  14582. if (Array.isArray(pattern)) {
  14583. return pattern.indexOf(name) > -1
  14584. } else if (typeof pattern === 'string') {
  14585. return pattern.split(',').indexOf(name) > -1
  14586. } else if (isRegExp(pattern)) {
  14587. return pattern.test(name)
  14588. }
  14589. /* istanbul ignore next */
  14590. return false
  14591. }
  14592. function pruneCache (keepAliveInstance, filter) {
  14593. var cache = keepAliveInstance.cache;
  14594. var keys = keepAliveInstance.keys;
  14595. var _vnode = keepAliveInstance._vnode;
  14596. for (var key in cache) {
  14597. var cachedNode = cache[key];
  14598. if (cachedNode) {
  14599. var name = getComponentName(cachedNode.componentOptions);
  14600. if (name && !filter(name)) {
  14601. pruneCacheEntry(cache, key, keys, _vnode);
  14602. }
  14603. }
  14604. }
  14605. }
  14606. function pruneCacheEntry (
  14607. cache,
  14608. key,
  14609. keys,
  14610. current
  14611. ) {
  14612. var cached$$1 = cache[key];
  14613. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  14614. cached$$1.componentInstance.$destroy();
  14615. }
  14616. cache[key] = null;
  14617. remove(keys, key);
  14618. }
  14619. var patternTypes = [String, RegExp, Array];
  14620. var KeepAlive = {
  14621. name: 'keep-alive',
  14622. abstract: true,
  14623. props: {
  14624. include: patternTypes,
  14625. exclude: patternTypes,
  14626. max: [String, Number]
  14627. },
  14628. created: function created () {
  14629. this.cache = Object.create(null);
  14630. this.keys = [];
  14631. },
  14632. destroyed: function destroyed () {
  14633. for (var key in this.cache) {
  14634. pruneCacheEntry(this.cache, key, this.keys);
  14635. }
  14636. },
  14637. mounted: function mounted () {
  14638. var this$1 = this;
  14639. this.$watch('include', function (val) {
  14640. pruneCache(this$1, function (name) { return matches(val, name); });
  14641. });
  14642. this.$watch('exclude', function (val) {
  14643. pruneCache(this$1, function (name) { return !matches(val, name); });
  14644. });
  14645. },
  14646. render: function render () {
  14647. var slot = this.$slots.default;
  14648. var vnode = getFirstComponentChild(slot);
  14649. var componentOptions = vnode && vnode.componentOptions;
  14650. if (componentOptions) {
  14651. // check pattern
  14652. var name = getComponentName(componentOptions);
  14653. var ref = this;
  14654. var include = ref.include;
  14655. var exclude = ref.exclude;
  14656. if (
  14657. // not included
  14658. (include && (!name || !matches(include, name))) ||
  14659. // excluded
  14660. (exclude && name && matches(exclude, name))
  14661. ) {
  14662. return vnode
  14663. }
  14664. var ref$1 = this;
  14665. var cache = ref$1.cache;
  14666. var keys = ref$1.keys;
  14667. var key = vnode.key == null
  14668. // same constructor may get registered as different local components
  14669. // so cid alone is not enough (#3269)
  14670. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  14671. : vnode.key;
  14672. if (cache[key]) {
  14673. vnode.componentInstance = cache[key].componentInstance;
  14674. // make current key freshest
  14675. remove(keys, key);
  14676. keys.push(key);
  14677. } else {
  14678. cache[key] = vnode;
  14679. keys.push(key);
  14680. // prune oldest entry
  14681. if (this.max && keys.length > parseInt(this.max)) {
  14682. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  14683. }
  14684. }
  14685. vnode.data.keepAlive = true;
  14686. }
  14687. return vnode || (slot && slot[0])
  14688. }
  14689. };
  14690. var builtInComponents = {
  14691. KeepAlive: KeepAlive
  14692. };
  14693. /* */
  14694. function initGlobalAPI (Vue) {
  14695. // config
  14696. var configDef = {};
  14697. configDef.get = function () { return config; };
  14698. if (true) {
  14699. configDef.set = function () {
  14700. warn(
  14701. 'Do not replace the Vue.config object, set individual fields instead.'
  14702. );
  14703. };
  14704. }
  14705. Object.defineProperty(Vue, 'config', configDef);
  14706. // exposed util methods.
  14707. // NOTE: these are not considered part of the public API - avoid relying on
  14708. // them unless you are aware of the risk.
  14709. Vue.util = {
  14710. warn: warn,
  14711. extend: extend,
  14712. mergeOptions: mergeOptions,
  14713. defineReactive: defineReactive$$1
  14714. };
  14715. Vue.set = set;
  14716. Vue.delete = del;
  14717. Vue.nextTick = nextTick;
  14718. // 2.6 explicit observable API
  14719. Vue.observable = function (obj) {
  14720. observe(obj);
  14721. return obj
  14722. };
  14723. Vue.options = Object.create(null);
  14724. ASSET_TYPES.forEach(function (type) {
  14725. Vue.options[type + 's'] = Object.create(null);
  14726. });
  14727. // this is used to identify the "base" constructor to extend all plain-object
  14728. // components with in Weex's multi-instance scenarios.
  14729. Vue.options._base = Vue;
  14730. extend(Vue.options.components, builtInComponents);
  14731. initUse(Vue);
  14732. initMixin$1(Vue);
  14733. initExtend(Vue);
  14734. initAssetRegisters(Vue);
  14735. }
  14736. initGlobalAPI(Vue);
  14737. Object.defineProperty(Vue.prototype, '$isServer', {
  14738. get: isServerRendering
  14739. });
  14740. Object.defineProperty(Vue.prototype, '$ssrContext', {
  14741. get: function get () {
  14742. /* istanbul ignore next */
  14743. return this.$vnode && this.$vnode.ssrContext
  14744. }
  14745. });
  14746. // expose FunctionalRenderContext for ssr runtime helper installation
  14747. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  14748. value: FunctionalRenderContext
  14749. });
  14750. Vue.version = '2.6.11';
  14751. /**
  14752. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  14753. */
  14754. var ARRAYTYPE = '[object Array]';
  14755. var OBJECTTYPE = '[object Object]';
  14756. var NULLTYPE = '[object Null]';
  14757. var UNDEFINEDTYPE = '[object Undefined]';
  14758. // const FUNCTIONTYPE = '[object Function]'
  14759. function diff(current, pre) {
  14760. var result = {};
  14761. syncKeys(current, pre);
  14762. _diff(current, pre, '', result);
  14763. return result
  14764. }
  14765. function syncKeys(current, pre) {
  14766. if (current === pre) { return }
  14767. var rootCurrentType = type(current);
  14768. var rootPreType = type(pre);
  14769. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  14770. if(Object.keys(current).length >= Object.keys(pre).length){
  14771. for (var key in pre) {
  14772. var currentValue = current[key];
  14773. if (currentValue === undefined) {
  14774. current[key] = null;
  14775. } else {
  14776. syncKeys(currentValue, pre[key]);
  14777. }
  14778. }
  14779. }
  14780. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  14781. if (current.length >= pre.length) {
  14782. pre.forEach(function (item, index) {
  14783. syncKeys(current[index], item);
  14784. });
  14785. }
  14786. }
  14787. }
  14788. function nullOrUndefined(currentType, preType) {
  14789. if(
  14790. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  14791. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  14792. ) {
  14793. return false
  14794. }
  14795. return true
  14796. }
  14797. function _diff(current, pre, path, result) {
  14798. if (current === pre) { return }
  14799. var rootCurrentType = type(current);
  14800. var rootPreType = type(pre);
  14801. if (rootCurrentType == OBJECTTYPE) {
  14802. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  14803. setResult(result, path, current);
  14804. } else {
  14805. var loop = function ( key ) {
  14806. var currentValue = current[key];
  14807. var preValue = pre[key];
  14808. var currentType = type(currentValue);
  14809. var preType = type(preValue);
  14810. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  14811. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  14812. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  14813. }
  14814. } else if (currentType == ARRAYTYPE) {
  14815. if (preType != ARRAYTYPE) {
  14816. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  14817. } else {
  14818. if (currentValue.length < preValue.length) {
  14819. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  14820. } else {
  14821. currentValue.forEach(function (item, index) {
  14822. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  14823. });
  14824. }
  14825. }
  14826. } else if (currentType == OBJECTTYPE) {
  14827. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  14828. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  14829. } else {
  14830. for (var subKey in currentValue) {
  14831. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  14832. }
  14833. }
  14834. }
  14835. };
  14836. for (var key in current) loop( key );
  14837. }
  14838. } else if (rootCurrentType == ARRAYTYPE) {
  14839. if (rootPreType != ARRAYTYPE) {
  14840. setResult(result, path, current);
  14841. } else {
  14842. if (current.length < pre.length) {
  14843. setResult(result, path, current);
  14844. } else {
  14845. current.forEach(function (item, index) {
  14846. _diff(item, pre[index], path + '[' + index + ']', result);
  14847. });
  14848. }
  14849. }
  14850. } else {
  14851. setResult(result, path, current);
  14852. }
  14853. }
  14854. function setResult(result, k, v) {
  14855. // if (type(v) != FUNCTIONTYPE) {
  14856. result[k] = v;
  14857. // }
  14858. }
  14859. function type(obj) {
  14860. return Object.prototype.toString.call(obj)
  14861. }
  14862. /* */
  14863. function flushCallbacks$1(vm) {
  14864. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  14865. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"wx","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  14866. var mpInstance = vm.$scope;
  14867. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  14868. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  14869. }
  14870. var copies = vm.__next_tick_callbacks.slice(0);
  14871. vm.__next_tick_callbacks.length = 0;
  14872. for (var i = 0; i < copies.length; i++) {
  14873. copies[i]();
  14874. }
  14875. }
  14876. }
  14877. function hasRenderWatcher(vm) {
  14878. return queue.find(function (watcher) { return vm._watcher === watcher; })
  14879. }
  14880. function nextTick$1(vm, cb) {
  14881. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  14882. //2.nextTick 之前存在 render watcher
  14883. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  14884. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"wx","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  14885. var mpInstance = vm.$scope;
  14886. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  14887. ']:nextVueTick');
  14888. }
  14889. return nextTick(cb, vm)
  14890. }else{
  14891. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"wx","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  14892. var mpInstance$1 = vm.$scope;
  14893. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  14894. ']:nextMPTick');
  14895. }
  14896. }
  14897. var _resolve;
  14898. if (!vm.__next_tick_callbacks) {
  14899. vm.__next_tick_callbacks = [];
  14900. }
  14901. vm.__next_tick_callbacks.push(function () {
  14902. if (cb) {
  14903. try {
  14904. cb.call(vm);
  14905. } catch (e) {
  14906. handleError(e, vm, 'nextTick');
  14907. }
  14908. } else if (_resolve) {
  14909. _resolve(vm);
  14910. }
  14911. });
  14912. // $flow-disable-line
  14913. if (!cb && typeof Promise !== 'undefined') {
  14914. return new Promise(function (resolve) {
  14915. _resolve = resolve;
  14916. })
  14917. }
  14918. }
  14919. /* */
  14920. function clearInstance(key, value) {
  14921. // 简易去除 Vue 和小程序组件实例
  14922. if (value) {
  14923. if (value._isVue || value.__v_isMPComponent) {
  14924. return {}
  14925. }
  14926. }
  14927. return value
  14928. }
  14929. function cloneWithData(vm) {
  14930. // 确保当前 vm 所有数据被同步
  14931. var ret = Object.create(null);
  14932. var dataKeys = [].concat(
  14933. Object.keys(vm._data || {}),
  14934. Object.keys(vm._computedWatchers || {}));
  14935. dataKeys.reduce(function(ret, key) {
  14936. ret[key] = vm[key];
  14937. return ret
  14938. }, ret);
  14939. // vue-composition-api
  14940. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  14941. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  14942. if (rawBindings) {
  14943. Object.keys(rawBindings).forEach(function (key) {
  14944. ret[key] = vm[key];
  14945. });
  14946. }
  14947. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  14948. Object.assign(ret, vm.$mp.data || {});
  14949. if (
  14950. Array.isArray(vm.$options.behaviors) &&
  14951. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  14952. ) { //form-field
  14953. ret['name'] = vm.name;
  14954. ret['value'] = vm.value;
  14955. }
  14956. return JSON.parse(JSON.stringify(ret, clearInstance))
  14957. }
  14958. var patch = function(oldVnode, vnode) {
  14959. var this$1 = this;
  14960. if (vnode === null) { //destroy
  14961. return
  14962. }
  14963. if (this.mpType === 'page' || this.mpType === 'component') {
  14964. var mpInstance = this.$scope;
  14965. var data = Object.create(null);
  14966. try {
  14967. data = cloneWithData(this);
  14968. } catch (err) {
  14969. console.error(err);
  14970. }
  14971. data.__webviewId__ = mpInstance.data.__webviewId__;
  14972. var mpData = Object.create(null);
  14973. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  14974. mpData[key] = mpInstance.data[key];
  14975. });
  14976. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  14977. if (Object.keys(diffData).length) {
  14978. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"wx","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  14979. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  14980. ']差量更新',
  14981. JSON.stringify(diffData));
  14982. }
  14983. this.__next_tick_pending = true;
  14984. mpInstance.setData(diffData, function () {
  14985. this$1.__next_tick_pending = false;
  14986. flushCallbacks$1(this$1);
  14987. });
  14988. } else {
  14989. flushCallbacks$1(this);
  14990. }
  14991. }
  14992. };
  14993. /* */
  14994. function createEmptyRender() {
  14995. }
  14996. function mountComponent$1(
  14997. vm,
  14998. el,
  14999. hydrating
  15000. ) {
  15001. if (!vm.mpType) {//main.js 中的 new Vue
  15002. return vm
  15003. }
  15004. if (vm.mpType === 'app') {
  15005. vm.$options.render = createEmptyRender;
  15006. }
  15007. if (!vm.$options.render) {
  15008. vm.$options.render = createEmptyRender;
  15009. if (true) {
  15010. /* istanbul ignore if */
  15011. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  15012. vm.$options.el || el) {
  15013. warn(
  15014. 'You are using the runtime-only build of Vue where the template ' +
  15015. 'compiler is not available. Either pre-compile the templates into ' +
  15016. 'render functions, or use the compiler-included build.',
  15017. vm
  15018. );
  15019. } else {
  15020. warn(
  15021. 'Failed to mount component: template or render function not defined.',
  15022. vm
  15023. );
  15024. }
  15025. }
  15026. }
  15027. !vm._$fallback && callHook(vm, 'beforeMount');
  15028. var updateComponent = function () {
  15029. vm._update(vm._render(), hydrating);
  15030. };
  15031. // we set this to vm._watcher inside the watcher's constructor
  15032. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  15033. // component's mounted hook), which relies on vm._watcher being already defined
  15034. new Watcher(vm, updateComponent, noop, {
  15035. before: function before() {
  15036. if (vm._isMounted && !vm._isDestroyed) {
  15037. callHook(vm, 'beforeUpdate');
  15038. }
  15039. }
  15040. }, true /* isRenderWatcher */);
  15041. hydrating = false;
  15042. return vm
  15043. }
  15044. /* */
  15045. function renderClass (
  15046. staticClass,
  15047. dynamicClass
  15048. ) {
  15049. if (isDef(staticClass) || isDef(dynamicClass)) {
  15050. return concat(staticClass, stringifyClass(dynamicClass))
  15051. }
  15052. /* istanbul ignore next */
  15053. return ''
  15054. }
  15055. function concat (a, b) {
  15056. return a ? b ? (a + ' ' + b) : a : (b || '')
  15057. }
  15058. function stringifyClass (value) {
  15059. if (Array.isArray(value)) {
  15060. return stringifyArray(value)
  15061. }
  15062. if (isObject(value)) {
  15063. return stringifyObject(value)
  15064. }
  15065. if (typeof value === 'string') {
  15066. return value
  15067. }
  15068. /* istanbul ignore next */
  15069. return ''
  15070. }
  15071. function stringifyArray (value) {
  15072. var res = '';
  15073. var stringified;
  15074. for (var i = 0, l = value.length; i < l; i++) {
  15075. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  15076. if (res) { res += ' '; }
  15077. res += stringified;
  15078. }
  15079. }
  15080. return res
  15081. }
  15082. function stringifyObject (value) {
  15083. var res = '';
  15084. for (var key in value) {
  15085. if (value[key]) {
  15086. if (res) { res += ' '; }
  15087. res += key;
  15088. }
  15089. }
  15090. return res
  15091. }
  15092. /* */
  15093. var parseStyleText = cached(function (cssText) {
  15094. var res = {};
  15095. var listDelimiter = /;(?![^(]*\))/g;
  15096. var propertyDelimiter = /:(.+)/;
  15097. cssText.split(listDelimiter).forEach(function (item) {
  15098. if (item) {
  15099. var tmp = item.split(propertyDelimiter);
  15100. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  15101. }
  15102. });
  15103. return res
  15104. });
  15105. // normalize possible array / string values into Object
  15106. function normalizeStyleBinding (bindingStyle) {
  15107. if (Array.isArray(bindingStyle)) {
  15108. return toObject(bindingStyle)
  15109. }
  15110. if (typeof bindingStyle === 'string') {
  15111. return parseStyleText(bindingStyle)
  15112. }
  15113. return bindingStyle
  15114. }
  15115. /* */
  15116. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  15117. function getTarget(obj, path) {
  15118. var parts = path.split('.');
  15119. var key = parts[0];
  15120. if (key.indexOf('__$n') === 0) { //number index
  15121. key = parseInt(key.replace('__$n', ''));
  15122. }
  15123. if (parts.length === 1) {
  15124. return obj[key]
  15125. }
  15126. return getTarget(obj[key], parts.slice(1).join('.'))
  15127. }
  15128. function internalMixin(Vue) {
  15129. Vue.config.errorHandler = function(err, vm, info) {
  15130. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  15131. console.error(err);
  15132. /* eslint-disable no-undef */
  15133. var app = typeof getApp === 'function' && getApp();
  15134. if (app && app.onError) {
  15135. app.onError(err);
  15136. }
  15137. };
  15138. var oldEmit = Vue.prototype.$emit;
  15139. Vue.prototype.$emit = function(event) {
  15140. if (this.$scope && event) {
  15141. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  15142. if (triggerEvent) {
  15143. try {
  15144. triggerEvent.call(this.$scope, event, {
  15145. __args__: toArray(arguments, 1)
  15146. });
  15147. } catch (error) {
  15148. }
  15149. }
  15150. }
  15151. return oldEmit.apply(this, arguments)
  15152. };
  15153. Vue.prototype.$nextTick = function(fn) {
  15154. return nextTick$1(this, fn)
  15155. };
  15156. MP_METHODS.forEach(function (method) {
  15157. Vue.prototype[method] = function(args) {
  15158. if (this.$scope && this.$scope[method]) {
  15159. return this.$scope[method](args)
  15160. }
  15161. // mp-alipay
  15162. if (typeof my === 'undefined') {
  15163. return
  15164. }
  15165. if (method === 'createSelectorQuery') {
  15166. /* eslint-disable no-undef */
  15167. return my.createSelectorQuery(args)
  15168. } else if (method === 'createIntersectionObserver') {
  15169. /* eslint-disable no-undef */
  15170. return my.createIntersectionObserver(args)
  15171. }
  15172. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  15173. };
  15174. });
  15175. Vue.prototype.__init_provide = initProvide;
  15176. Vue.prototype.__init_injections = initInjections;
  15177. Vue.prototype.__call_hook = function(hook, args) {
  15178. var vm = this;
  15179. // #7573 disable dep collection when invoking lifecycle hooks
  15180. pushTarget();
  15181. var handlers = vm.$options[hook];
  15182. var info = hook + " hook";
  15183. var ret;
  15184. if (handlers) {
  15185. for (var i = 0, j = handlers.length; i < j; i++) {
  15186. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  15187. }
  15188. }
  15189. if (vm._hasHookEvent) {
  15190. vm.$emit('hook:' + hook, args);
  15191. }
  15192. popTarget();
  15193. return ret
  15194. };
  15195. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  15196. if (Array.isArray(modifiers)) {
  15197. if (modifiers.indexOf('trim') !== -1) {
  15198. value = value.trim();
  15199. }
  15200. if (modifiers.indexOf('number') !== -1) {
  15201. value = this._n(value);
  15202. }
  15203. }
  15204. if (!target) {
  15205. target = this;
  15206. }
  15207. // 解决动态属性添加
  15208. Vue.set(target, key, value);
  15209. };
  15210. Vue.prototype.__set_sync = function(target, key, value) {
  15211. if (!target) {
  15212. target = this;
  15213. }
  15214. // 解决动态属性添加
  15215. Vue.set(target, key, value);
  15216. };
  15217. Vue.prototype.__get_orig = function(item) {
  15218. if (isPlainObject(item)) {
  15219. return item['$orig'] || item
  15220. }
  15221. return item
  15222. };
  15223. Vue.prototype.__get_value = function(dataPath, target) {
  15224. return getTarget(target || this, dataPath)
  15225. };
  15226. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  15227. return renderClass(staticClass, dynamicClass)
  15228. };
  15229. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  15230. if (!dynamicStyle && !staticStyle) {
  15231. return ''
  15232. }
  15233. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  15234. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  15235. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  15236. };
  15237. Vue.prototype.__map = function(val, iteratee) {
  15238. //TODO 暂不考虑 string
  15239. var ret, i, l, keys, key;
  15240. if (Array.isArray(val)) {
  15241. ret = new Array(val.length);
  15242. for (i = 0, l = val.length; i < l; i++) {
  15243. ret[i] = iteratee(val[i], i);
  15244. }
  15245. return ret
  15246. } else if (isObject(val)) {
  15247. keys = Object.keys(val);
  15248. ret = Object.create(null);
  15249. for (i = 0, l = keys.length; i < l; i++) {
  15250. key = keys[i];
  15251. ret[key] = iteratee(val[key], key, i);
  15252. }
  15253. return ret
  15254. } else if (typeof val === 'number') {
  15255. ret = new Array(val);
  15256. for (i = 0, l = val; i < l; i++) {
  15257. // 第一个参数暂时仍和小程序一致
  15258. ret[i] = iteratee(i, i);
  15259. }
  15260. return ret
  15261. }
  15262. return []
  15263. };
  15264. }
  15265. /* */
  15266. var LIFECYCLE_HOOKS$1 = [
  15267. //App
  15268. 'onLaunch',
  15269. 'onShow',
  15270. 'onHide',
  15271. 'onUniNViewMessage',
  15272. 'onPageNotFound',
  15273. 'onThemeChange',
  15274. 'onError',
  15275. 'onUnhandledRejection',
  15276. //Page
  15277. 'onInit',
  15278. 'onLoad',
  15279. // 'onShow',
  15280. 'onReady',
  15281. // 'onHide',
  15282. 'onUnload',
  15283. 'onPullDownRefresh',
  15284. 'onReachBottom',
  15285. 'onTabItemTap',
  15286. 'onAddToFavorites',
  15287. 'onShareTimeline',
  15288. 'onShareAppMessage',
  15289. 'onResize',
  15290. 'onPageScroll',
  15291. 'onNavigationBarButtonTap',
  15292. 'onBackPress',
  15293. 'onNavigationBarSearchInputChanged',
  15294. 'onNavigationBarSearchInputConfirmed',
  15295. 'onNavigationBarSearchInputClicked',
  15296. 'onUploadDouyinVideo',
  15297. 'onNFCReadMessage',
  15298. //Component
  15299. // 'onReady', // 兼容旧版本,应该移除该事件
  15300. 'onPageShow',
  15301. 'onPageHide',
  15302. 'onPageResize'
  15303. ];
  15304. function lifecycleMixin$1(Vue) {
  15305. //fixed vue-class-component
  15306. var oldExtend = Vue.extend;
  15307. Vue.extend = function(extendOptions) {
  15308. extendOptions = extendOptions || {};
  15309. var methods = extendOptions.methods;
  15310. if (methods) {
  15311. Object.keys(methods).forEach(function (methodName) {
  15312. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  15313. extendOptions[methodName] = methods[methodName];
  15314. delete methods[methodName];
  15315. }
  15316. });
  15317. }
  15318. return oldExtend.call(this, extendOptions)
  15319. };
  15320. var strategies = Vue.config.optionMergeStrategies;
  15321. var mergeHook = strategies.created;
  15322. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  15323. strategies[hook] = mergeHook;
  15324. });
  15325. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  15326. }
  15327. /* */
  15328. // install platform patch function
  15329. Vue.prototype.__patch__ = patch;
  15330. // public mount method
  15331. Vue.prototype.$mount = function(
  15332. el ,
  15333. hydrating
  15334. ) {
  15335. return mountComponent$1(this, el, hydrating)
  15336. };
  15337. lifecycleMixin$1(Vue);
  15338. internalMixin(Vue);
  15339. /* */
  15340. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  15341. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  15342. /***/ }),
  15343. /***/ 26:
  15344. /*!***********************************************!*\
  15345. !*** D:/www/uniapp-project/wx-qhb/pages.json ***!
  15346. \***********************************************/
  15347. /*! no static exports found */
  15348. /***/ (function(module, exports) {
  15349. /***/ }),
  15350. /***/ 3:
  15351. /*!***********************************!*\
  15352. !*** (webpack)/buildin/global.js ***!
  15353. \***********************************/
  15354. /*! no static exports found */
  15355. /***/ (function(module, exports) {
  15356. var g;
  15357. // This works in non-strict mode
  15358. g = (function() {
  15359. return this;
  15360. })();
  15361. try {
  15362. // This works if eval is allowed (see CSP)
  15363. g = g || new Function("return this")();
  15364. } catch (e) {
  15365. // This works if the window reference is available
  15366. if (typeof window === "object") g = window;
  15367. }
  15368. // g can still be undefined, but nothing to do about it...
  15369. // We return undefined, instead of nothing here, so it's
  15370. // easier to handle this case. if(!global) { ...}
  15371. module.exports = g;
  15372. /***/ }),
  15373. /***/ 32:
  15374. /*!**********************************************************************************************************!*\
  15375. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  15376. \**********************************************************************************************************/
  15377. /*! exports provided: default */
  15378. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15379. "use strict";
  15380. __webpack_require__.r(__webpack_exports__);
  15381. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  15382. /* globals __VUE_SSR_CONTEXT__ */
  15383. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  15384. // This module is a runtime utility for cleaner component module output and will
  15385. // be included in the final webpack user bundle.
  15386. function normalizeComponent (
  15387. scriptExports,
  15388. render,
  15389. staticRenderFns,
  15390. functionalTemplate,
  15391. injectStyles,
  15392. scopeId,
  15393. moduleIdentifier, /* server only */
  15394. shadowMode, /* vue-cli only */
  15395. components, // fixed by xxxxxx auto components
  15396. renderjs // fixed by xxxxxx renderjs
  15397. ) {
  15398. // Vue.extend constructor export interop
  15399. var options = typeof scriptExports === 'function'
  15400. ? scriptExports.options
  15401. : scriptExports
  15402. // fixed by xxxxxx auto components
  15403. if (components) {
  15404. if (!options.components) {
  15405. options.components = {}
  15406. }
  15407. var hasOwn = Object.prototype.hasOwnProperty
  15408. for (var name in components) {
  15409. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  15410. options.components[name] = components[name]
  15411. }
  15412. }
  15413. }
  15414. // fixed by xxxxxx renderjs
  15415. if (renderjs) {
  15416. if(typeof renderjs.beforeCreate === 'function'){
  15417. renderjs.beforeCreate = [renderjs.beforeCreate]
  15418. }
  15419. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  15420. this[renderjs.__module] = this
  15421. });
  15422. (options.mixins || (options.mixins = [])).push(renderjs)
  15423. }
  15424. // render functions
  15425. if (render) {
  15426. options.render = render
  15427. options.staticRenderFns = staticRenderFns
  15428. options._compiled = true
  15429. }
  15430. // functional template
  15431. if (functionalTemplate) {
  15432. options.functional = true
  15433. }
  15434. // scopedId
  15435. if (scopeId) {
  15436. options._scopeId = 'data-v-' + scopeId
  15437. }
  15438. var hook
  15439. if (moduleIdentifier) { // server build
  15440. hook = function (context) {
  15441. // 2.3 injection
  15442. context =
  15443. context || // cached call
  15444. (this.$vnode && this.$vnode.ssrContext) || // stateful
  15445. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  15446. // 2.2 with runInNewContext: true
  15447. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  15448. context = __VUE_SSR_CONTEXT__
  15449. }
  15450. // inject component styles
  15451. if (injectStyles) {
  15452. injectStyles.call(this, context)
  15453. }
  15454. // register component module identifier for async chunk inferrence
  15455. if (context && context._registeredComponents) {
  15456. context._registeredComponents.add(moduleIdentifier)
  15457. }
  15458. }
  15459. // used by ssr in case component is cached and beforeCreate
  15460. // never gets called
  15461. options._ssrRegister = hook
  15462. } else if (injectStyles) {
  15463. hook = shadowMode
  15464. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  15465. : injectStyles
  15466. }
  15467. if (hook) {
  15468. if (options.functional) {
  15469. // for template-only hot-reload because in that case the render fn doesn't
  15470. // go through the normalizer
  15471. options._injectStyles = hook
  15472. // register for functioal component in vue file
  15473. var originalRender = options.render
  15474. options.render = function renderWithStyleInjection (h, context) {
  15475. hook.call(context)
  15476. return originalRender(h, context)
  15477. }
  15478. } else {
  15479. // inject component registration as beforeCreate hook
  15480. var existing = options.beforeCreate
  15481. options.beforeCreate = existing
  15482. ? [].concat(existing, hook)
  15483. : [hook]
  15484. }
  15485. }
  15486. return {
  15487. exports: scriptExports,
  15488. options: options
  15489. }
  15490. }
  15491. /***/ }),
  15492. /***/ 33:
  15493. /*!*************************************************************!*\
  15494. !*** D:/www/uniapp-project/wx-qhb/uni.promisify.adaptor.js ***!
  15495. \*************************************************************/
  15496. /*! no static exports found */
  15497. /***/ (function(module, exports, __webpack_require__) {
  15498. /* WEBPACK VAR INJECTION */(function(uni) {var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  15499. uni.addInterceptor({
  15500. returnValue: function returnValue(res) {
  15501. if (!(!!res && (_typeof(res) === "object" || typeof res === "function") && typeof res.then === "function")) {
  15502. return res;
  15503. }
  15504. return new Promise(function (resolve, reject) {
  15505. res.then(function (res) {
  15506. return res[0] ? reject(res[0]) : resolve(res[1]);
  15507. });
  15508. });
  15509. }
  15510. });
  15511. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  15512. /***/ }),
  15513. /***/ 34:
  15514. /*!******************************************************!*\
  15515. !*** D:/www/uniapp-project/wx-qhb/uview-ui/index.js ***!
  15516. \******************************************************/
  15517. /*! no static exports found */
  15518. /***/ (function(module, exports, __webpack_require__) {
  15519. "use strict";
  15520. /* WEBPACK VAR INJECTION */(function(uni) {
  15521. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15522. Object.defineProperty(exports, "__esModule", {
  15523. value: true
  15524. });
  15525. exports.default = void 0;
  15526. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  15527. var _mixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mixin.js */ 35));
  15528. var _mpMixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mpMixin.js */ 36));
  15529. var _luchRequest = _interopRequireDefault(__webpack_require__(/*! ./libs/luch-request */ 37));
  15530. var _route = _interopRequireDefault(__webpack_require__(/*! ./libs/util/route.js */ 55));
  15531. var _colorGradient = _interopRequireDefault(__webpack_require__(/*! ./libs/function/colorGradient.js */ 59));
  15532. var _test = _interopRequireDefault(__webpack_require__(/*! ./libs/function/test.js */ 60));
  15533. var _debounce = _interopRequireDefault(__webpack_require__(/*! ./libs/function/debounce.js */ 61));
  15534. var _throttle = _interopRequireDefault(__webpack_require__(/*! ./libs/function/throttle.js */ 62));
  15535. var _index = _interopRequireDefault(__webpack_require__(/*! ./libs/function/index.js */ 63));
  15536. var _config = _interopRequireDefault(__webpack_require__(/*! ./libs/config/config.js */ 66));
  15537. var _props = _interopRequireDefault(__webpack_require__(/*! ./libs/config/props.js */ 67));
  15538. var _zIndex = _interopRequireDefault(__webpack_require__(/*! ./libs/config/zIndex.js */ 157));
  15539. var _color = _interopRequireDefault(__webpack_require__(/*! ./libs/config/color.js */ 115));
  15540. var _platform = _interopRequireDefault(__webpack_require__(/*! ./libs/function/platform */ 158));
  15541. 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; }
  15542. 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; }
  15543. // 看到此报错,是因为没有配置vue.config.js的【transpileDependencies】,详见:https://www.uviewui.com/components/npmSetting.html#_5-cli模式额外配置
  15544. var pleaseSetTranspileDependencies = {},
  15545. babelTest = pleaseSetTranspileDependencies === null || pleaseSetTranspileDependencies === void 0 ? void 0 : pleaseSetTranspileDependencies.test;
  15546. // 引入全局mixin
  15547. var $u = _objectSpread(_objectSpread({
  15548. route: _route.default,
  15549. date: _index.default.timeFormat,
  15550. // 另名date
  15551. colorGradient: _colorGradient.default.colorGradient,
  15552. hexToRgb: _colorGradient.default.hexToRgb,
  15553. rgbToHex: _colorGradient.default.rgbToHex,
  15554. colorToRgba: _colorGradient.default.colorToRgba,
  15555. test: _test.default,
  15556. type: ['primary', 'success', 'error', 'warning', 'info'],
  15557. http: new _luchRequest.default(),
  15558. config: _config.default,
  15559. // uView配置信息相关,比如版本号
  15560. zIndex: _zIndex.default,
  15561. debounce: _debounce.default,
  15562. throttle: _throttle.default,
  15563. mixin: _mixin.default,
  15564. mpMixin: _mpMixin.default,
  15565. props: _props.default
  15566. }, _index.default), {}, {
  15567. color: _color.default,
  15568. platform: _platform.default
  15569. });
  15570. // $u挂载到uni对象上
  15571. uni.$u = $u;
  15572. var install = function install(Vue) {
  15573. // 时间格式化,同时两个名称,date和timeFormat
  15574. Vue.filter('timeFormat', function (timestamp, format) {
  15575. return uni.$u.timeFormat(timestamp, format);
  15576. });
  15577. Vue.filter('date', function (timestamp, format) {
  15578. return uni.$u.timeFormat(timestamp, format);
  15579. });
  15580. // 将多久以前的方法,注入到全局过滤器
  15581. Vue.filter('timeFrom', function (timestamp, format) {
  15582. return uni.$u.timeFrom(timestamp, format);
  15583. });
  15584. // 同时挂载到uni和Vue.prototype中
  15585. // 只有vue,挂载到Vue.prototype才有意义,因为nvue中全局Vue.prototype和Vue.mixin是无效的
  15586. Vue.prototype.$u = $u;
  15587. Vue.mixin(_mixin.default);
  15588. };
  15589. var _default = {
  15590. install: install
  15591. };
  15592. exports.default = _default;
  15593. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  15594. /***/ }),
  15595. /***/ 35:
  15596. /*!*****************************************************************!*\
  15597. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/mixin/mixin.js ***!
  15598. \*****************************************************************/
  15599. /*! no static exports found */
  15600. /***/ (function(module, exports, __webpack_require__) {
  15601. /* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
  15602. // 定义每个组件都可能需要用到的外部样式以及类名
  15603. props: {
  15604. // 每个组件都有的父组件传递的样式,可以为字符串或者对象形式
  15605. customStyle: {
  15606. type: [Object, String],
  15607. default: function _default() {
  15608. return {};
  15609. }
  15610. },
  15611. customClass: {
  15612. type: String,
  15613. default: ''
  15614. },
  15615. // 跳转的页面路径
  15616. url: {
  15617. type: String,
  15618. default: ''
  15619. },
  15620. // 页面跳转的类型
  15621. linkType: {
  15622. type: String,
  15623. default: 'navigateTo'
  15624. }
  15625. },
  15626. data: function data() {
  15627. return {};
  15628. },
  15629. onLoad: function onLoad() {
  15630. // getRect挂载到$u上,因为这方法需要使用in(this),所以无法把它独立成一个单独的文件导出
  15631. this.$u.getRect = this.$uGetRect;
  15632. },
  15633. created: function created() {
  15634. // 组件当中,只有created声明周期,为了能在组件使用,故也在created中将方法挂载到$u
  15635. this.$u.getRect = this.$uGetRect;
  15636. },
  15637. computed: {
  15638. // 在2.x版本中,将会把$u挂载到uni对象下,导致在模板中无法使用uni.$u.xxx形式
  15639. // 所以这里通过computed计算属性将其附加到this.$u上,就可以在模板或者js中使用uni.$u.xxx
  15640. // 只在nvue环境通过此方式引入完整的$u,其他平台会出现性能问题,非nvue则按需引入(主要原因是props过大)
  15641. $u: function $u() {
  15642. // 在非nvue端,移除props,http,mixin等对象,避免在小程序setData时数据过大影响性能
  15643. return uni.$u.deepMerge(uni.$u, {
  15644. props: undefined,
  15645. http: undefined,
  15646. mixin: undefined
  15647. });
  15648. },
  15649. /**
  15650. * 生成bem规则类名
  15651. * 由于微信小程序,H5,nvue之间绑定class的差异,无法通过:class="[bem()]"的形式进行同用
  15652. * 故采用如下折中做法,最后返回的是数组(一般平台)或字符串(支付宝和字节跳动平台),类似['a', 'b', 'c']或'a b c'的形式
  15653. * @param {String} name 组件名称
  15654. * @param {Array} fixed 一直会存在的类名
  15655. * @param {Array} change 会根据变量值为true或者false而出现或者隐藏的类名
  15656. * @returns {Array|string}
  15657. */
  15658. bem: function bem() {
  15659. return function (name, fixed, change) {
  15660. var _this = this;
  15661. // 类名前缀
  15662. var prefix = "u-".concat(name, "--");
  15663. var classes = {};
  15664. if (fixed) {
  15665. fixed.map(function (item) {
  15666. // 这里的类名,会一直存在
  15667. classes[prefix + _this[item]] = true;
  15668. });
  15669. }
  15670. if (change) {
  15671. change.map(function (item) {
  15672. // 这里的类名,会根据this[item]的值为true或者false,而进行添加或者移除某一个类
  15673. _this[item] ? classes[prefix + item] = _this[item] : delete classes[prefix + item];
  15674. });
  15675. }
  15676. return Object.keys(classes);
  15677. // 支付宝,头条小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效
  15678. };
  15679. }
  15680. },
  15681. methods: {
  15682. // 跳转某一个页面
  15683. openPage: function openPage() {
  15684. var urlKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'url';
  15685. var url = this[urlKey];
  15686. if (url) {
  15687. // 执行类似uni.navigateTo的方法
  15688. uni[this.linkType]({
  15689. url: url
  15690. });
  15691. }
  15692. },
  15693. // 查询节点信息
  15694. // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
  15695. // 解决办法为在组件根部再套一个没有任何作用的view元素
  15696. $uGetRect: function $uGetRect(selector, all) {
  15697. var _this2 = this;
  15698. return new Promise(function (resolve) {
  15699. uni.createSelectorQuery().in(_this2)[all ? 'selectAll' : 'select'](selector).boundingClientRect(function (rect) {
  15700. if (all && Array.isArray(rect) && rect.length) {
  15701. resolve(rect);
  15702. }
  15703. if (!all && rect) {
  15704. resolve(rect);
  15705. }
  15706. }).exec();
  15707. });
  15708. },
  15709. getParentData: function getParentData() {
  15710. var _this3 = this;
  15711. var parentName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  15712. // 避免在created中去定义parent变量
  15713. if (!this.parent) this.parent = {};
  15714. // 这里的本质原理是,通过获取父组件实例(也即类似u-radio的父组件u-radio-group的this)
  15715. // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
  15716. // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
  15717. // 此处并不会自动更新子组件的数据,而是依赖父组件u-radio-group去监听data的变化,手动调用更新子组件的方法去重新获取
  15718. this.parent = uni.$u.$parent.call(this, parentName);
  15719. if (this.parent.children) {
  15720. // 如果父组件的children不存在本组件的实例,才将本实例添加到父组件的children中
  15721. this.parent.children.indexOf(this) === -1 && this.parent.children.push(this);
  15722. }
  15723. if (this.parent && this.parentData) {
  15724. // 历遍parentData中的属性,将parent中的同名属性赋值给parentData
  15725. Object.keys(this.parentData).map(function (key) {
  15726. _this3.parentData[key] = _this3.parent[key];
  15727. });
  15728. }
  15729. },
  15730. // 阻止事件冒泡
  15731. preventEvent: function preventEvent(e) {
  15732. e && typeof e.stopPropagation === 'function' && e.stopPropagation();
  15733. },
  15734. // 空操作
  15735. noop: function noop(e) {
  15736. this.preventEvent(e);
  15737. }
  15738. },
  15739. onReachBottom: function onReachBottom() {
  15740. uni.$emit('uOnReachBottom');
  15741. },
  15742. beforeDestroy: function beforeDestroy() {
  15743. var _this4 = this;
  15744. // 判断当前页面是否存在parent和chldren,一般在checkbox和checkbox-group父子联动的场景会有此情况
  15745. // 组件销毁时,移除子组件在父组件children数组中的实例,释放资源,避免数据混乱
  15746. if (this.parent && uni.$u.test.array(this.parent.children)) {
  15747. // 组件销毁时,移除父组件中的children数组中对应的实例
  15748. var childrenList = this.parent.children;
  15749. childrenList.map(function (child, index) {
  15750. // 如果相等,则移除
  15751. if (child === _this4) {
  15752. childrenList.splice(index, 1);
  15753. }
  15754. });
  15755. }
  15756. }
  15757. };
  15758. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  15759. /***/ }),
  15760. /***/ 36:
  15761. /*!*******************************************************************!*\
  15762. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/mixin/mpMixin.js ***!
  15763. \*******************************************************************/
  15764. /*! no static exports found */
  15765. /***/ (function(module, exports, __webpack_require__) {
  15766. "use strict";
  15767. Object.defineProperty(exports, "__esModule", {
  15768. value: true
  15769. });
  15770. exports.default = void 0;
  15771. var _default = {
  15772. // 将自定义节点设置成虚拟的,更加接近Vue组件的表现,能更好的使用flex属性
  15773. options: {
  15774. virtualHost: true
  15775. }
  15776. };
  15777. exports.default = _default;
  15778. /***/ }),
  15779. /***/ 37:
  15780. /*!************************************************************************!*\
  15781. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/luch-request/index.js ***!
  15782. \************************************************************************/
  15783. /*! no static exports found */
  15784. /***/ (function(module, exports, __webpack_require__) {
  15785. "use strict";
  15786. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15787. Object.defineProperty(exports, "__esModule", {
  15788. value: true
  15789. });
  15790. exports.default = void 0;
  15791. var _Request = _interopRequireDefault(__webpack_require__(/*! ./core/Request */ 38));
  15792. var _default = _Request.default;
  15793. exports.default = _default;
  15794. /***/ }),
  15795. /***/ 38:
  15796. /*!*******************************************************************************!*\
  15797. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/luch-request/core/Request.js ***!
  15798. \*******************************************************************************/
  15799. /*! no static exports found */
  15800. /***/ (function(module, exports, __webpack_require__) {
  15801. "use strict";
  15802. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15803. Object.defineProperty(exports, "__esModule", {
  15804. value: true
  15805. });
  15806. exports.default = void 0;
  15807. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  15808. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  15809. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  15810. var _dispatchRequest = _interopRequireDefault(__webpack_require__(/*! ./dispatchRequest */ 39));
  15811. var _InterceptorManager = _interopRequireDefault(__webpack_require__(/*! ./InterceptorManager */ 47));
  15812. var _mergeConfig = _interopRequireDefault(__webpack_require__(/*! ./mergeConfig */ 48));
  15813. var _defaults = _interopRequireDefault(__webpack_require__(/*! ./defaults */ 49));
  15814. var _utils = __webpack_require__(/*! ../utils */ 42);
  15815. var _clone = _interopRequireDefault(__webpack_require__(/*! ../utils/clone */ 50));
  15816. 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; }
  15817. 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; }
  15818. var Request = /*#__PURE__*/function () {
  15819. /**
  15820. * @param {Object} arg - 全局配置
  15821. * @param {String} arg.baseURL - 全局根路径
  15822. * @param {Object} arg.header - 全局header
  15823. * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式
  15824. * @param {String} arg.dataType = [json] - 全局默认的dataType
  15825. * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持
  15826. * @param {Object} arg.custom - 全局默认的自定义参数
  15827. * @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序(2.10.0)、支付宝小程序
  15828. * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+)
  15829. * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+)
  15830. * @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+)
  15831. * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
  15832. */
  15833. function Request() {
  15834. var arg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  15835. (0, _classCallCheck2.default)(this, Request);
  15836. if (!(0, _utils.isPlainObject)(arg)) {
  15837. arg = {};
  15838. console.warn('设置全局参数必须接收一个Object');
  15839. }
  15840. this.config = (0, _clone.default)(_objectSpread(_objectSpread({}, _defaults.default), arg));
  15841. this.interceptors = {
  15842. request: new _InterceptorManager.default(),
  15843. response: new _InterceptorManager.default()
  15844. };
  15845. }
  15846. /**
  15847. * @Function
  15848. * @param {Request~setConfigCallback} f - 设置全局默认配置
  15849. */
  15850. (0, _createClass2.default)(Request, [{
  15851. key: "setConfig",
  15852. value: function setConfig(f) {
  15853. this.config = f(this.config);
  15854. }
  15855. }, {
  15856. key: "middleware",
  15857. value: function middleware(config) {
  15858. config = (0, _mergeConfig.default)(this.config, config);
  15859. var chain = [_dispatchRequest.default, undefined];
  15860. var promise = Promise.resolve(config);
  15861. this.interceptors.request.forEach(function (interceptor) {
  15862. chain.unshift(interceptor.fulfilled, interceptor.rejected);
  15863. });
  15864. this.interceptors.response.forEach(function (interceptor) {
  15865. chain.push(interceptor.fulfilled, interceptor.rejected);
  15866. });
  15867. while (chain.length) {
  15868. promise = promise.then(chain.shift(), chain.shift());
  15869. }
  15870. return promise;
  15871. }
  15872. /**
  15873. * @Function
  15874. * @param {Object} config - 请求配置项
  15875. * @prop {String} options.url - 请求路径
  15876. * @prop {Object} options.data - 请求参数
  15877. * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型
  15878. * @prop {Object} [options.dataType = config.dataType] - 如果设为 json,会尝试对返回的数据做一次 JSON.parse
  15879. * @prop {Object} [options.header = config.header] - 请求header
  15880. * @prop {Object} [options.method = config.method] - 请求方法
  15881. * @returns {Promise<unknown>}
  15882. */
  15883. }, {
  15884. key: "request",
  15885. value: function request() {
  15886. var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  15887. return this.middleware(config);
  15888. }
  15889. }, {
  15890. key: "get",
  15891. value: function get(url) {
  15892. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  15893. return this.middleware(_objectSpread({
  15894. url: url,
  15895. method: 'GET'
  15896. }, options));
  15897. }
  15898. }, {
  15899. key: "post",
  15900. value: function post(url, data) {
  15901. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  15902. return this.middleware(_objectSpread({
  15903. url: url,
  15904. data: data,
  15905. method: 'POST'
  15906. }, options));
  15907. }
  15908. }, {
  15909. key: "put",
  15910. value: function put(url, data) {
  15911. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  15912. return this.middleware(_objectSpread({
  15913. url: url,
  15914. data: data,
  15915. method: 'PUT'
  15916. }, options));
  15917. }
  15918. }, {
  15919. key: "delete",
  15920. value: function _delete(url, data) {
  15921. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  15922. return this.middleware(_objectSpread({
  15923. url: url,
  15924. data: data,
  15925. method: 'DELETE'
  15926. }, options));
  15927. }
  15928. }, {
  15929. key: "connect",
  15930. value: function connect(url, data) {
  15931. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  15932. return this.middleware(_objectSpread({
  15933. url: url,
  15934. data: data,
  15935. method: 'CONNECT'
  15936. }, options));
  15937. }
  15938. }, {
  15939. key: "head",
  15940. value: function head(url, data) {
  15941. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  15942. return this.middleware(_objectSpread({
  15943. url: url,
  15944. data: data,
  15945. method: 'HEAD'
  15946. }, options));
  15947. }
  15948. }, {
  15949. key: "options",
  15950. value: function options(url, data) {
  15951. var _options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  15952. return this.middleware(_objectSpread({
  15953. url: url,
  15954. data: data,
  15955. method: 'OPTIONS'
  15956. }, _options));
  15957. }
  15958. }, {
  15959. key: "trace",
  15960. value: function trace(url, data) {
  15961. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  15962. return this.middleware(_objectSpread({
  15963. url: url,
  15964. data: data,
  15965. method: 'TRACE'
  15966. }, options));
  15967. }
  15968. }, {
  15969. key: "upload",
  15970. value: function upload(url) {
  15971. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  15972. config.url = url;
  15973. config.method = 'UPLOAD';
  15974. return this.middleware(config);
  15975. }
  15976. }, {
  15977. key: "download",
  15978. value: function download(url) {
  15979. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  15980. config.url = url;
  15981. config.method = 'DOWNLOAD';
  15982. return this.middleware(config);
  15983. }
  15984. }]);
  15985. return Request;
  15986. }();
  15987. /**
  15988. * setConfig回调
  15989. * @return {Object} - 返回操作后的config
  15990. * @callback Request~setConfigCallback
  15991. * @param {Object} config - 全局默认config
  15992. */
  15993. exports.default = Request;
  15994. /***/ }),
  15995. /***/ 39:
  15996. /*!***************************************************************************************!*\
  15997. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/luch-request/core/dispatchRequest.js ***!
  15998. \***************************************************************************************/
  15999. /*! no static exports found */
  16000. /***/ (function(module, exports, __webpack_require__) {
  16001. "use strict";
  16002. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  16003. Object.defineProperty(exports, "__esModule", {
  16004. value: true
  16005. });
  16006. exports.default = void 0;
  16007. var _index = _interopRequireDefault(__webpack_require__(/*! ../adapters/index */ 40));
  16008. var _default = function _default(config) {
  16009. return (0, _index.default)(config);
  16010. };
  16011. exports.default = _default;
  16012. /***/ }),
  16013. /***/ 4:
  16014. /*!**********************************************************************!*\
  16015. !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  16016. \**********************************************************************/
  16017. /*! no static exports found */
  16018. /***/ (function(module, exports) {
  16019. function _interopRequireDefault(obj) {
  16020. return obj && obj.__esModule ? obj : {
  16021. "default": obj
  16022. };
  16023. }
  16024. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  16025. /***/ }),
  16026. /***/ 40:
  16027. /*!*********************************************************************************!*\
  16028. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/luch-request/adapters/index.js ***!
  16029. \*********************************************************************************/
  16030. /*! no static exports found */
  16031. /***/ (function(module, exports, __webpack_require__) {
  16032. "use strict";
  16033. /* WEBPACK VAR INJECTION */(function(uni) {
  16034. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  16035. Object.defineProperty(exports, "__esModule", {
  16036. value: true
  16037. });
  16038. exports.default = void 0;
  16039. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  16040. var _buildURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/buildURL */ 41));
  16041. var _buildFullPath = _interopRequireDefault(__webpack_require__(/*! ../core/buildFullPath */ 43));
  16042. var _settle = _interopRequireDefault(__webpack_require__(/*! ../core/settle */ 46));
  16043. var _utils = __webpack_require__(/*! ../utils */ 42);
  16044. 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; }
  16045. 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; }
  16046. /**
  16047. * 返回可选值存在的配置
  16048. * @param {Array} keys - 可选值数组
  16049. * @param {Object} config2 - 配置
  16050. * @return {{}} - 存在的配置项
  16051. */
  16052. var mergeKeys = function mergeKeys(keys, config2) {
  16053. var config = {};
  16054. keys.forEach(function (prop) {
  16055. if (!(0, _utils.isUndefined)(config2[prop])) {
  16056. config[prop] = config2[prop];
  16057. }
  16058. });
  16059. return config;
  16060. };
  16061. var _default = function _default(config) {
  16062. return new Promise(function (resolve, reject) {
  16063. var fullPath = (0, _buildURL.default)((0, _buildFullPath.default)(config.baseURL, config.url), config.params);
  16064. var _config = {
  16065. url: fullPath,
  16066. header: config.header,
  16067. complete: function complete(response) {
  16068. config.fullPath = fullPath;
  16069. response.config = config;
  16070. try {
  16071. // 对可能字符串不是json 的情况容错
  16072. if (typeof response.data === 'string') {
  16073. response.data = JSON.parse(response.data);
  16074. }
  16075. // eslint-disable-next-line no-empty
  16076. } catch (e) {}
  16077. (0, _settle.default)(resolve, reject, response);
  16078. }
  16079. };
  16080. var requestTask;
  16081. if (config.method === 'UPLOAD') {
  16082. delete _config.header['content-type'];
  16083. delete _config.header['Content-Type'];
  16084. var otherConfig = {
  16085. filePath: config.filePath,
  16086. name: config.name
  16087. };
  16088. var optionalKeys = ['formData'];
  16089. requestTask = uni.uploadFile(_objectSpread(_objectSpread(_objectSpread({}, _config), otherConfig), mergeKeys(optionalKeys, config)));
  16090. } else if (config.method === 'DOWNLOAD') {
  16091. requestTask = uni.downloadFile(_config);
  16092. } else {
  16093. var _optionalKeys = ['data', 'method', 'timeout', 'dataType', 'responseType'];
  16094. requestTask = uni.request(_objectSpread(_objectSpread({}, _config), mergeKeys(_optionalKeys, config)));
  16095. }
  16096. if (config.getTask) {
  16097. config.getTask(requestTask, config);
  16098. }
  16099. });
  16100. };
  16101. exports.default = _default;
  16102. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  16103. /***/ }),
  16104. /***/ 41:
  16105. /*!***********************************************************************************!*\
  16106. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/luch-request/helpers/buildURL.js ***!
  16107. \***********************************************************************************/
  16108. /*! no static exports found */
  16109. /***/ (function(module, exports, __webpack_require__) {
  16110. "use strict";
  16111. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16112. Object.defineProperty(exports, "__esModule", {
  16113. value: true
  16114. });
  16115. exports.default = buildURL;
  16116. var utils = _interopRequireWildcard(__webpack_require__(/*! ../utils */ 42));
  16117. 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); }
  16118. 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; }
  16119. function encode(val) {
  16120. return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
  16121. }
  16122. /**
  16123. * Build a URL by appending params to the end
  16124. *
  16125. * @param {string} url The base of the url (e.g., http://www.google.com)
  16126. * @param {object} [params] The params to be appended
  16127. * @returns {string} The formatted url
  16128. */
  16129. function buildURL(url, params) {
  16130. /* eslint no-param-reassign:0 */
  16131. if (!params) {
  16132. return url;
  16133. }
  16134. var serializedParams;
  16135. if (utils.isURLSearchParams(params)) {
  16136. serializedParams = params.toString();
  16137. } else {
  16138. var parts = [];
  16139. utils.forEach(params, function (val, key) {
  16140. if (val === null || typeof val === 'undefined') {
  16141. return;
  16142. }
  16143. if (utils.isArray(val)) {
  16144. key = "".concat(key, "[]");
  16145. } else {
  16146. val = [val];
  16147. }
  16148. utils.forEach(val, function (v) {
  16149. if (utils.isDate(v)) {
  16150. v = v.toISOString();
  16151. } else if (utils.isObject(v)) {
  16152. v = JSON.stringify(v);
  16153. }
  16154. parts.push("".concat(encode(key), "=").concat(encode(v)));
  16155. });
  16156. });
  16157. serializedParams = parts.join('&');
  16158. }
  16159. if (serializedParams) {
  16160. var hashmarkIndex = url.indexOf('#');
  16161. if (hashmarkIndex !== -1) {
  16162. url = url.slice(0, hashmarkIndex);
  16163. }
  16164. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  16165. }
  16166. return url;
  16167. }
  16168. /***/ }),
  16169. /***/ 42:
  16170. /*!************************************************************************!*\
  16171. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/luch-request/utils.js ***!
  16172. \************************************************************************/
  16173. /*! no static exports found */
  16174. /***/ (function(module, exports, __webpack_require__) {
  16175. "use strict";
  16176. // utils is a library of generic helper functions non-specific to axios
  16177. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  16178. Object.defineProperty(exports, "__esModule", {
  16179. value: true
  16180. });
  16181. exports.deepMerge = deepMerge;
  16182. exports.forEach = forEach;
  16183. exports.isArray = isArray;
  16184. exports.isBoolean = isBoolean;
  16185. exports.isDate = isDate;
  16186. exports.isObject = isObject;
  16187. exports.isPlainObject = isPlainObject;
  16188. exports.isURLSearchParams = isURLSearchParams;
  16189. exports.isUndefined = isUndefined;
  16190. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  16191. var toString = Object.prototype.toString;
  16192. /**
  16193. * Determine if a value is an Array
  16194. *
  16195. * @param {Object} val The value to test
  16196. * @returns {boolean} True if value is an Array, otherwise false
  16197. */
  16198. function isArray(val) {
  16199. return toString.call(val) === '[object Array]';
  16200. }
  16201. /**
  16202. * Determine if a value is an Object
  16203. *
  16204. * @param {Object} val The value to test
  16205. * @returns {boolean} True if value is an Object, otherwise false
  16206. */
  16207. function isObject(val) {
  16208. return val !== null && (0, _typeof2.default)(val) === 'object';
  16209. }
  16210. /**
  16211. * Determine if a value is a Date
  16212. *
  16213. * @param {Object} val The value to test
  16214. * @returns {boolean} True if value is a Date, otherwise false
  16215. */
  16216. function isDate(val) {
  16217. return toString.call(val) === '[object Date]';
  16218. }
  16219. /**
  16220. * Determine if a value is a URLSearchParams object
  16221. *
  16222. * @param {Object} val The value to test
  16223. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  16224. */
  16225. function isURLSearchParams(val) {
  16226. return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  16227. }
  16228. /**
  16229. * Iterate over an Array or an Object invoking a function for each item.
  16230. *
  16231. * If `obj` is an Array callback will be called passing
  16232. * the value, index, and complete array for each item.
  16233. *
  16234. * If 'obj' is an Object callback will be called passing
  16235. * the value, key, and complete object for each property.
  16236. *
  16237. * @param {Object|Array} obj The object to iterate
  16238. * @param {Function} fn The callback to invoke for each item
  16239. */
  16240. function forEach(obj, fn) {
  16241. // Don't bother if no value provided
  16242. if (obj === null || typeof obj === 'undefined') {
  16243. return;
  16244. }
  16245. // Force an array if not already something iterable
  16246. if ((0, _typeof2.default)(obj) !== 'object') {
  16247. /* eslint no-param-reassign:0 */
  16248. obj = [obj];
  16249. }
  16250. if (isArray(obj)) {
  16251. // Iterate over array values
  16252. for (var i = 0, l = obj.length; i < l; i++) {
  16253. fn.call(null, obj[i], i, obj);
  16254. }
  16255. } else {
  16256. // Iterate over object keys
  16257. for (var key in obj) {
  16258. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  16259. fn.call(null, obj[key], key, obj);
  16260. }
  16261. }
  16262. }
  16263. }
  16264. /**
  16265. * 是否为boolean 值
  16266. * @param val
  16267. * @returns {boolean}
  16268. */
  16269. function isBoolean(val) {
  16270. return typeof val === 'boolean';
  16271. }
  16272. /**
  16273. * 是否为真正的对象{} new Object
  16274. * @param {any} obj - 检测的对象
  16275. * @returns {boolean}
  16276. */
  16277. function isPlainObject(obj) {
  16278. return Object.prototype.toString.call(obj) === '[object Object]';
  16279. }
  16280. /**
  16281. * Function equal to merge with the difference being that no reference
  16282. * to original objects is kept.
  16283. *
  16284. * @see merge
  16285. * @param {Object} obj1 Object to merge
  16286. * @returns {Object} Result of all merge properties
  16287. */
  16288. function deepMerge( /* obj1, obj2, obj3, ... */
  16289. ) {
  16290. var result = {};
  16291. function assignValue(val, key) {
  16292. if ((0, _typeof2.default)(result[key]) === 'object' && (0, _typeof2.default)(val) === 'object') {
  16293. result[key] = deepMerge(result[key], val);
  16294. } else if ((0, _typeof2.default)(val) === 'object') {
  16295. result[key] = deepMerge({}, val);
  16296. } else {
  16297. result[key] = val;
  16298. }
  16299. }
  16300. for (var i = 0, l = arguments.length; i < l; i++) {
  16301. forEach(arguments[i], assignValue);
  16302. }
  16303. return result;
  16304. }
  16305. function isUndefined(val) {
  16306. return typeof val === 'undefined';
  16307. }
  16308. /***/ }),
  16309. /***/ 43:
  16310. /*!*************************************************************************************!*\
  16311. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/luch-request/core/buildFullPath.js ***!
  16312. \*************************************************************************************/
  16313. /*! no static exports found */
  16314. /***/ (function(module, exports, __webpack_require__) {
  16315. "use strict";
  16316. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  16317. Object.defineProperty(exports, "__esModule", {
  16318. value: true
  16319. });
  16320. exports.default = buildFullPath;
  16321. var _isAbsoluteURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/isAbsoluteURL */ 44));
  16322. var _combineURLs = _interopRequireDefault(__webpack_require__(/*! ../helpers/combineURLs */ 45));
  16323. /**
  16324. * Creates a new URL by combining the baseURL with the requestedURL,
  16325. * only when the requestedURL is not already an absolute URL.
  16326. * If the requestURL is absolute, this function returns the requestedURL untouched.
  16327. *
  16328. * @param {string} baseURL The base URL
  16329. * @param {string} requestedURL Absolute or relative URL to combine
  16330. * @returns {string} The combined full path
  16331. */
  16332. function buildFullPath(baseURL, requestedURL) {
  16333. if (baseURL && !(0, _isAbsoluteURL.default)(requestedURL)) {
  16334. return (0, _combineURLs.default)(baseURL, requestedURL);
  16335. }
  16336. return requestedURL;
  16337. }
  16338. /***/ }),
  16339. /***/ 44:
  16340. /*!****************************************************************************************!*\
  16341. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js ***!
  16342. \****************************************************************************************/
  16343. /*! no static exports found */
  16344. /***/ (function(module, exports, __webpack_require__) {
  16345. "use strict";
  16346. /**
  16347. * Determines whether the specified URL is absolute
  16348. *
  16349. * @param {string} url The URL to test
  16350. * @returns {boolean} True if the specified URL is absolute, otherwise false
  16351. */
  16352. Object.defineProperty(exports, "__esModule", {
  16353. value: true
  16354. });
  16355. exports.default = isAbsoluteURL;
  16356. function isAbsoluteURL(url) {
  16357. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  16358. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  16359. // by any combination of letters, digits, plus, period, or hyphen.
  16360. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
  16361. }
  16362. /***/ }),
  16363. /***/ 45:
  16364. /*!**************************************************************************************!*\
  16365. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/luch-request/helpers/combineURLs.js ***!
  16366. \**************************************************************************************/
  16367. /*! no static exports found */
  16368. /***/ (function(module, exports, __webpack_require__) {
  16369. "use strict";
  16370. /**
  16371. * Creates a new URL by combining the specified URLs
  16372. *
  16373. * @param {string} baseURL The base URL
  16374. * @param {string} relativeURL The relative URL
  16375. * @returns {string} The combined URL
  16376. */
  16377. Object.defineProperty(exports, "__esModule", {
  16378. value: true
  16379. });
  16380. exports.default = combineURLs;
  16381. function combineURLs(baseURL, relativeURL) {
  16382. return relativeURL ? "".concat(baseURL.replace(/\/+$/, ''), "/").concat(relativeURL.replace(/^\/+/, '')) : baseURL;
  16383. }
  16384. /***/ }),
  16385. /***/ 46:
  16386. /*!******************************************************************************!*\
  16387. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/luch-request/core/settle.js ***!
  16388. \******************************************************************************/
  16389. /*! no static exports found */
  16390. /***/ (function(module, exports, __webpack_require__) {
  16391. "use strict";
  16392. Object.defineProperty(exports, "__esModule", {
  16393. value: true
  16394. });
  16395. exports.default = settle;
  16396. /**
  16397. * Resolve or reject a Promise based on response status.
  16398. *
  16399. * @param {Function} resolve A function that resolves the promise.
  16400. * @param {Function} reject A function that rejects the promise.
  16401. * @param {object} response The response.
  16402. */
  16403. function settle(resolve, reject, response) {
  16404. var validateStatus = response.config.validateStatus;
  16405. var status = response.statusCode;
  16406. if (status && (!validateStatus || validateStatus(status))) {
  16407. resolve(response);
  16408. } else {
  16409. reject(response);
  16410. }
  16411. }
  16412. /***/ }),
  16413. /***/ 47:
  16414. /*!******************************************************************************************!*\
  16415. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/luch-request/core/InterceptorManager.js ***!
  16416. \******************************************************************************************/
  16417. /*! no static exports found */
  16418. /***/ (function(module, exports, __webpack_require__) {
  16419. "use strict";
  16420. Object.defineProperty(exports, "__esModule", {
  16421. value: true
  16422. });
  16423. exports.default = void 0;
  16424. function InterceptorManager() {
  16425. this.handlers = [];
  16426. }
  16427. /**
  16428. * Add a new interceptor to the stack
  16429. *
  16430. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  16431. * @param {Function} rejected The function to handle `reject` for a `Promise`
  16432. *
  16433. * @return {Number} An ID used to remove interceptor later
  16434. */
  16435. InterceptorManager.prototype.use = function use(fulfilled, rejected) {
  16436. this.handlers.push({
  16437. fulfilled: fulfilled,
  16438. rejected: rejected
  16439. });
  16440. return this.handlers.length - 1;
  16441. };
  16442. /**
  16443. * Remove an interceptor from the stack
  16444. *
  16445. * @param {Number} id The ID that was returned by `use`
  16446. */
  16447. InterceptorManager.prototype.eject = function eject(id) {
  16448. if (this.handlers[id]) {
  16449. this.handlers[id] = null;
  16450. }
  16451. };
  16452. /**
  16453. * Iterate over all the registered interceptors
  16454. *
  16455. * This method is particularly useful for skipping over any
  16456. * interceptors that may have become `null` calling `eject`.
  16457. *
  16458. * @param {Function} fn The function to call for each interceptor
  16459. */
  16460. InterceptorManager.prototype.forEach = function forEach(fn) {
  16461. this.handlers.forEach(function (h) {
  16462. if (h !== null) {
  16463. fn(h);
  16464. }
  16465. });
  16466. };
  16467. var _default = InterceptorManager;
  16468. exports.default = _default;
  16469. /***/ }),
  16470. /***/ 48:
  16471. /*!***********************************************************************************!*\
  16472. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/luch-request/core/mergeConfig.js ***!
  16473. \***********************************************************************************/
  16474. /*! no static exports found */
  16475. /***/ (function(module, exports, __webpack_require__) {
  16476. "use strict";
  16477. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  16478. Object.defineProperty(exports, "__esModule", {
  16479. value: true
  16480. });
  16481. exports.default = void 0;
  16482. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  16483. var _utils = __webpack_require__(/*! ../utils */ 42);
  16484. 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; }
  16485. 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; }
  16486. /**
  16487. * 合并局部配置优先的配置,如果局部有该配置项则用局部,如果全局有该配置项则用全局
  16488. * @param {Array} keys - 配置项
  16489. * @param {Object} globalsConfig - 当前的全局配置
  16490. * @param {Object} config2 - 局部配置
  16491. * @return {{}}
  16492. */
  16493. var mergeKeys = function mergeKeys(keys, globalsConfig, config2) {
  16494. var config = {};
  16495. keys.forEach(function (prop) {
  16496. if (!(0, _utils.isUndefined)(config2[prop])) {
  16497. config[prop] = config2[prop];
  16498. } else if (!(0, _utils.isUndefined)(globalsConfig[prop])) {
  16499. config[prop] = globalsConfig[prop];
  16500. }
  16501. });
  16502. return config;
  16503. };
  16504. /**
  16505. *
  16506. * @param globalsConfig - 当前实例的全局配置
  16507. * @param config2 - 当前的局部配置
  16508. * @return - 合并后的配置
  16509. */
  16510. var _default = function _default(globalsConfig) {
  16511. var config2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  16512. var method = config2.method || globalsConfig.method || 'GET';
  16513. var config = {
  16514. baseURL: globalsConfig.baseURL || '',
  16515. method: method,
  16516. url: config2.url || '',
  16517. params: config2.params || {},
  16518. custom: _objectSpread(_objectSpread({}, globalsConfig.custom || {}), config2.custom || {}),
  16519. header: (0, _utils.deepMerge)(globalsConfig.header || {}, config2.header || {})
  16520. };
  16521. var defaultToConfig2Keys = ['getTask', 'validateStatus'];
  16522. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultToConfig2Keys, globalsConfig, config2));
  16523. // eslint-disable-next-line no-empty
  16524. if (method === 'DOWNLOAD') {} else if (method === 'UPLOAD') {
  16525. delete config.header['content-type'];
  16526. delete config.header['Content-Type'];
  16527. var uploadKeys = ['filePath', 'name', 'formData'];
  16528. uploadKeys.forEach(function (prop) {
  16529. if (!(0, _utils.isUndefined)(config2[prop])) {
  16530. config[prop] = config2[prop];
  16531. }
  16532. });
  16533. } else {
  16534. var defaultsKeys = ['data', 'timeout', 'dataType', 'responseType'];
  16535. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultsKeys, globalsConfig, config2));
  16536. }
  16537. return config;
  16538. };
  16539. exports.default = _default;
  16540. /***/ }),
  16541. /***/ 49:
  16542. /*!********************************************************************************!*\
  16543. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/luch-request/core/defaults.js ***!
  16544. \********************************************************************************/
  16545. /*! no static exports found */
  16546. /***/ (function(module, exports, __webpack_require__) {
  16547. "use strict";
  16548. Object.defineProperty(exports, "__esModule", {
  16549. value: true
  16550. });
  16551. exports.default = void 0;
  16552. /**
  16553. * 默认的全局配置
  16554. */
  16555. var _default = {
  16556. baseURL: '',
  16557. header: {},
  16558. method: 'GET',
  16559. dataType: 'json',
  16560. responseType: 'text',
  16561. custom: {},
  16562. timeout: 60000,
  16563. validateStatus: function validateStatus(status) {
  16564. return status >= 200 && status < 300;
  16565. }
  16566. };
  16567. exports.default = _default;
  16568. /***/ }),
  16569. /***/ 5:
  16570. /*!**************************************************************!*\
  16571. !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  16572. \**************************************************************/
  16573. /*! no static exports found */
  16574. /***/ (function(module, exports, __webpack_require__) {
  16575. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  16576. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 7);
  16577. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  16578. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  16579. function _slicedToArray(arr, i) {
  16580. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
  16581. }
  16582. module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  16583. /***/ }),
  16584. /***/ 50:
  16585. /*!******************************************************************************!*\
  16586. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/luch-request/utils/clone.js ***!
  16587. \******************************************************************************/
  16588. /*! no static exports found */
  16589. /***/ (function(module, exports, __webpack_require__) {
  16590. "use strict";
  16591. /* WEBPACK VAR INJECTION */(function(Buffer) {
  16592. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  16593. Object.defineProperty(exports, "__esModule", {
  16594. value: true
  16595. });
  16596. exports.default = void 0;
  16597. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  16598. /* eslint-disable */
  16599. var clone = function () {
  16600. 'use strict';
  16601. function _instanceof(obj, type) {
  16602. return type != null && obj instanceof type;
  16603. }
  16604. var nativeMap;
  16605. try {
  16606. nativeMap = Map;
  16607. } catch (_) {
  16608. // maybe a reference error because no `Map`. Give it a dummy value that no
  16609. // value will ever be an instanceof.
  16610. nativeMap = function nativeMap() {};
  16611. }
  16612. var nativeSet;
  16613. try {
  16614. nativeSet = Set;
  16615. } catch (_) {
  16616. nativeSet = function nativeSet() {};
  16617. }
  16618. var nativePromise;
  16619. try {
  16620. nativePromise = Promise;
  16621. } catch (_) {
  16622. nativePromise = function nativePromise() {};
  16623. }
  16624. /**
  16625. * Clones (copies) an Object using deep copying.
  16626. *
  16627. * This function supports circular references by default, but if you are certain
  16628. * there are no circular references in your object, you can save some CPU time
  16629. * by calling clone(obj, false).
  16630. *
  16631. * Caution: if `circular` is false and `parent` contains circular references,
  16632. * your program may enter an infinite loop and crash.
  16633. *
  16634. * @param `parent` - the object to be cloned
  16635. * @param `circular` - set to true if the object to be cloned may contain
  16636. * circular references. (optional - true by default)
  16637. * @param `depth` - set to a number if the object is only to be cloned to
  16638. * a particular depth. (optional - defaults to Infinity)
  16639. * @param `prototype` - sets the prototype to be used when cloning an object.
  16640. * (optional - defaults to parent prototype).
  16641. * @param `includeNonEnumerable` - set to true if the non-enumerable properties
  16642. * should be cloned as well. Non-enumerable properties on the prototype
  16643. * chain will be ignored. (optional - false by default)
  16644. */
  16645. function clone(parent, circular, depth, prototype, includeNonEnumerable) {
  16646. if ((0, _typeof2.default)(circular) === 'object') {
  16647. depth = circular.depth;
  16648. prototype = circular.prototype;
  16649. includeNonEnumerable = circular.includeNonEnumerable;
  16650. circular = circular.circular;
  16651. }
  16652. // maintain two arrays for circular references, where corresponding parents
  16653. // and children have the same index
  16654. var allParents = [];
  16655. var allChildren = [];
  16656. var useBuffer = typeof Buffer != 'undefined';
  16657. if (typeof circular == 'undefined') circular = true;
  16658. if (typeof depth == 'undefined') depth = Infinity;
  16659. // recurse this function so we don't reset allParents and allChildren
  16660. function _clone(parent, depth) {
  16661. // cloning null always returns null
  16662. if (parent === null) return null;
  16663. if (depth === 0) return parent;
  16664. var child;
  16665. var proto;
  16666. if ((0, _typeof2.default)(parent) != 'object') {
  16667. return parent;
  16668. }
  16669. if (_instanceof(parent, nativeMap)) {
  16670. child = new nativeMap();
  16671. } else if (_instanceof(parent, nativeSet)) {
  16672. child = new nativeSet();
  16673. } else if (_instanceof(parent, nativePromise)) {
  16674. child = new nativePromise(function (resolve, reject) {
  16675. parent.then(function (value) {
  16676. resolve(_clone(value, depth - 1));
  16677. }, function (err) {
  16678. reject(_clone(err, depth - 1));
  16679. });
  16680. });
  16681. } else if (clone.__isArray(parent)) {
  16682. child = [];
  16683. } else if (clone.__isRegExp(parent)) {
  16684. child = new RegExp(parent.source, __getRegExpFlags(parent));
  16685. if (parent.lastIndex) child.lastIndex = parent.lastIndex;
  16686. } else if (clone.__isDate(parent)) {
  16687. child = new Date(parent.getTime());
  16688. } else if (useBuffer && Buffer.isBuffer(parent)) {
  16689. if (Buffer.from) {
  16690. // Node.js >= 5.10.0
  16691. child = Buffer.from(parent);
  16692. } else {
  16693. // Older Node.js versions
  16694. child = new Buffer(parent.length);
  16695. parent.copy(child);
  16696. }
  16697. return child;
  16698. } else if (_instanceof(parent, Error)) {
  16699. child = Object.create(parent);
  16700. } else {
  16701. if (typeof prototype == 'undefined') {
  16702. proto = Object.getPrototypeOf(parent);
  16703. child = Object.create(proto);
  16704. } else {
  16705. child = Object.create(prototype);
  16706. proto = prototype;
  16707. }
  16708. }
  16709. if (circular) {
  16710. var index = allParents.indexOf(parent);
  16711. if (index != -1) {
  16712. return allChildren[index];
  16713. }
  16714. allParents.push(parent);
  16715. allChildren.push(child);
  16716. }
  16717. if (_instanceof(parent, nativeMap)) {
  16718. parent.forEach(function (value, key) {
  16719. var keyChild = _clone(key, depth - 1);
  16720. var valueChild = _clone(value, depth - 1);
  16721. child.set(keyChild, valueChild);
  16722. });
  16723. }
  16724. if (_instanceof(parent, nativeSet)) {
  16725. parent.forEach(function (value) {
  16726. var entryChild = _clone(value, depth - 1);
  16727. child.add(entryChild);
  16728. });
  16729. }
  16730. for (var i in parent) {
  16731. var attrs = Object.getOwnPropertyDescriptor(parent, i);
  16732. if (attrs) {
  16733. child[i] = _clone(parent[i], depth - 1);
  16734. }
  16735. try {
  16736. var objProperty = Object.getOwnPropertyDescriptor(parent, i);
  16737. if (objProperty.set === 'undefined') {
  16738. // no setter defined. Skip cloning this property
  16739. continue;
  16740. }
  16741. child[i] = _clone(parent[i], depth - 1);
  16742. } catch (e) {
  16743. if (e instanceof TypeError) {
  16744. // when in strict mode, TypeError will be thrown if child[i] property only has a getter
  16745. // we can't do anything about this, other than inform the user that this property cannot be set.
  16746. continue;
  16747. } else if (e instanceof ReferenceError) {
  16748. //this may happen in non strict mode
  16749. continue;
  16750. }
  16751. }
  16752. }
  16753. if (Object.getOwnPropertySymbols) {
  16754. var symbols = Object.getOwnPropertySymbols(parent);
  16755. for (var i = 0; i < symbols.length; i++) {
  16756. // Don't need to worry about cloning a symbol because it is a primitive,
  16757. // like a number or string.
  16758. var symbol = symbols[i];
  16759. var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
  16760. if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
  16761. continue;
  16762. }
  16763. child[symbol] = _clone(parent[symbol], depth - 1);
  16764. Object.defineProperty(child, symbol, descriptor);
  16765. }
  16766. }
  16767. if (includeNonEnumerable) {
  16768. var allPropertyNames = Object.getOwnPropertyNames(parent);
  16769. for (var i = 0; i < allPropertyNames.length; i++) {
  16770. var propertyName = allPropertyNames[i];
  16771. var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
  16772. if (descriptor && descriptor.enumerable) {
  16773. continue;
  16774. }
  16775. child[propertyName] = _clone(parent[propertyName], depth - 1);
  16776. Object.defineProperty(child, propertyName, descriptor);
  16777. }
  16778. }
  16779. return child;
  16780. }
  16781. return _clone(parent, depth);
  16782. }
  16783. /**
  16784. * Simple flat clone using prototype, accepts only objects, usefull for property
  16785. * override on FLAT configuration object (no nested props).
  16786. *
  16787. * USE WITH CAUTION! This may not behave as you wish if you do not know how this
  16788. * works.
  16789. */
  16790. clone.clonePrototype = function clonePrototype(parent) {
  16791. if (parent === null) return null;
  16792. var c = function c() {};
  16793. c.prototype = parent;
  16794. return new c();
  16795. };
  16796. // private utility functions
  16797. function __objToStr(o) {
  16798. return Object.prototype.toString.call(o);
  16799. }
  16800. clone.__objToStr = __objToStr;
  16801. function __isDate(o) {
  16802. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Date]';
  16803. }
  16804. clone.__isDate = __isDate;
  16805. function __isArray(o) {
  16806. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Array]';
  16807. }
  16808. clone.__isArray = __isArray;
  16809. function __isRegExp(o) {
  16810. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object RegExp]';
  16811. }
  16812. clone.__isRegExp = __isRegExp;
  16813. function __getRegExpFlags(re) {
  16814. var flags = '';
  16815. if (re.global) flags += 'g';
  16816. if (re.ignoreCase) flags += 'i';
  16817. if (re.multiline) flags += 'm';
  16818. return flags;
  16819. }
  16820. clone.__getRegExpFlags = __getRegExpFlags;
  16821. return clone;
  16822. }();
  16823. var _default = clone;
  16824. exports.default = _default;
  16825. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../../Application/HBuilderX.4.04.2024031519-alpha/HBuilderX/plugins/uniapp-cli/node_modules/buffer/index.js */ 51).Buffer))
  16826. /***/ }),
  16827. /***/ 51:
  16828. /*!**************************************!*\
  16829. !*** ./node_modules/buffer/index.js ***!
  16830. \**************************************/
  16831. /*! no static exports found */
  16832. /***/ (function(module, exports, __webpack_require__) {
  16833. "use strict";
  16834. /* WEBPACK VAR INJECTION */(function(global) {/*!
  16835. * The buffer module from node.js, for the browser.
  16836. *
  16837. * @author Feross Aboukhadijeh <http://feross.org>
  16838. * @license MIT
  16839. */
  16840. /* eslint-disable no-proto */
  16841. var base64 = __webpack_require__(/*! base64-js */ 52)
  16842. var ieee754 = __webpack_require__(/*! ieee754 */ 53)
  16843. var isArray = __webpack_require__(/*! isarray */ 54)
  16844. exports.Buffer = Buffer
  16845. exports.SlowBuffer = SlowBuffer
  16846. exports.INSPECT_MAX_BYTES = 50
  16847. /**
  16848. * If `Buffer.TYPED_ARRAY_SUPPORT`:
  16849. * === true Use Uint8Array implementation (fastest)
  16850. * === false Use Object implementation (most compatible, even IE6)
  16851. *
  16852. * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
  16853. * Opera 11.6+, iOS 4.2+.
  16854. *
  16855. * Due to various browser bugs, sometimes the Object implementation will be used even
  16856. * when the browser supports typed arrays.
  16857. *
  16858. * Note:
  16859. *
  16860. * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
  16861. * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
  16862. *
  16863. * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
  16864. *
  16865. * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
  16866. * incorrect length in some situations.
  16867. * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
  16868. * get the Object implementation, which is slower but behaves correctly.
  16869. */
  16870. Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
  16871. ? global.TYPED_ARRAY_SUPPORT
  16872. : typedArraySupport()
  16873. /*
  16874. * Export kMaxLength after typed array support is determined.
  16875. */
  16876. exports.kMaxLength = kMaxLength()
  16877. function typedArraySupport () {
  16878. try {
  16879. var arr = new Uint8Array(1)
  16880. arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
  16881. return arr.foo() === 42 && // typed array instances can be augmented
  16882. typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
  16883. arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  16884. } catch (e) {
  16885. return false
  16886. }
  16887. }
  16888. function kMaxLength () {
  16889. return Buffer.TYPED_ARRAY_SUPPORT
  16890. ? 0x7fffffff
  16891. : 0x3fffffff
  16892. }
  16893. function createBuffer (that, length) {
  16894. if (kMaxLength() < length) {
  16895. throw new RangeError('Invalid typed array length')
  16896. }
  16897. if (Buffer.TYPED_ARRAY_SUPPORT) {
  16898. // Return an augmented `Uint8Array` instance, for best performance
  16899. that = new Uint8Array(length)
  16900. that.__proto__ = Buffer.prototype
  16901. } else {
  16902. // Fallback: Return an object instance of the Buffer class
  16903. if (that === null) {
  16904. that = new Buffer(length)
  16905. }
  16906. that.length = length
  16907. }
  16908. return that
  16909. }
  16910. /**
  16911. * The Buffer constructor returns instances of `Uint8Array` that have their
  16912. * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
  16913. * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
  16914. * and the `Uint8Array` methods. Square bracket notation works as expected -- it
  16915. * returns a single octet.
  16916. *
  16917. * The `Uint8Array` prototype remains unmodified.
  16918. */
  16919. function Buffer (arg, encodingOrOffset, length) {
  16920. if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
  16921. return new Buffer(arg, encodingOrOffset, length)
  16922. }
  16923. // Common case.
  16924. if (typeof arg === 'number') {
  16925. if (typeof encodingOrOffset === 'string') {
  16926. throw new Error(
  16927. 'If encoding is specified then the first argument must be a string'
  16928. )
  16929. }
  16930. return allocUnsafe(this, arg)
  16931. }
  16932. return from(this, arg, encodingOrOffset, length)
  16933. }
  16934. Buffer.poolSize = 8192 // not used by this implementation
  16935. // TODO: Legacy, not needed anymore. Remove in next major version.
  16936. Buffer._augment = function (arr) {
  16937. arr.__proto__ = Buffer.prototype
  16938. return arr
  16939. }
  16940. function from (that, value, encodingOrOffset, length) {
  16941. if (typeof value === 'number') {
  16942. throw new TypeError('"value" argument must not be a number')
  16943. }
  16944. if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
  16945. return fromArrayBuffer(that, value, encodingOrOffset, length)
  16946. }
  16947. if (typeof value === 'string') {
  16948. return fromString(that, value, encodingOrOffset)
  16949. }
  16950. return fromObject(that, value)
  16951. }
  16952. /**
  16953. * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
  16954. * if value is a number.
  16955. * Buffer.from(str[, encoding])
  16956. * Buffer.from(array)
  16957. * Buffer.from(buffer)
  16958. * Buffer.from(arrayBuffer[, byteOffset[, length]])
  16959. **/
  16960. Buffer.from = function (value, encodingOrOffset, length) {
  16961. return from(null, value, encodingOrOffset, length)
  16962. }
  16963. if (Buffer.TYPED_ARRAY_SUPPORT) {
  16964. Buffer.prototype.__proto__ = Uint8Array.prototype
  16965. Buffer.__proto__ = Uint8Array
  16966. if (typeof Symbol !== 'undefined' && Symbol.species &&
  16967. Buffer[Symbol.species] === Buffer) {
  16968. // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
  16969. Object.defineProperty(Buffer, Symbol.species, {
  16970. value: null,
  16971. configurable: true
  16972. })
  16973. }
  16974. }
  16975. function assertSize (size) {
  16976. if (typeof size !== 'number') {
  16977. throw new TypeError('"size" argument must be a number')
  16978. } else if (size < 0) {
  16979. throw new RangeError('"size" argument must not be negative')
  16980. }
  16981. }
  16982. function alloc (that, size, fill, encoding) {
  16983. assertSize(size)
  16984. if (size <= 0) {
  16985. return createBuffer(that, size)
  16986. }
  16987. if (fill !== undefined) {
  16988. // Only pay attention to encoding if it's a string. This
  16989. // prevents accidentally sending in a number that would
  16990. // be interpretted as a start offset.
  16991. return typeof encoding === 'string'
  16992. ? createBuffer(that, size).fill(fill, encoding)
  16993. : createBuffer(that, size).fill(fill)
  16994. }
  16995. return createBuffer(that, size)
  16996. }
  16997. /**
  16998. * Creates a new filled Buffer instance.
  16999. * alloc(size[, fill[, encoding]])
  17000. **/
  17001. Buffer.alloc = function (size, fill, encoding) {
  17002. return alloc(null, size, fill, encoding)
  17003. }
  17004. function allocUnsafe (that, size) {
  17005. assertSize(size)
  17006. that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  17007. if (!Buffer.TYPED_ARRAY_SUPPORT) {
  17008. for (var i = 0; i < size; ++i) {
  17009. that[i] = 0
  17010. }
  17011. }
  17012. return that
  17013. }
  17014. /**
  17015. * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
  17016. * */
  17017. Buffer.allocUnsafe = function (size) {
  17018. return allocUnsafe(null, size)
  17019. }
  17020. /**
  17021. * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
  17022. */
  17023. Buffer.allocUnsafeSlow = function (size) {
  17024. return allocUnsafe(null, size)
  17025. }
  17026. function fromString (that, string, encoding) {
  17027. if (typeof encoding !== 'string' || encoding === '') {
  17028. encoding = 'utf8'
  17029. }
  17030. if (!Buffer.isEncoding(encoding)) {
  17031. throw new TypeError('"encoding" must be a valid string encoding')
  17032. }
  17033. var length = byteLength(string, encoding) | 0
  17034. that = createBuffer(that, length)
  17035. var actual = that.write(string, encoding)
  17036. if (actual !== length) {
  17037. // Writing a hex string, for example, that contains invalid characters will
  17038. // cause everything after the first invalid character to be ignored. (e.g.
  17039. // 'abxxcd' will be treated as 'ab')
  17040. that = that.slice(0, actual)
  17041. }
  17042. return that
  17043. }
  17044. function fromArrayLike (that, array) {
  17045. var length = array.length < 0 ? 0 : checked(array.length) | 0
  17046. that = createBuffer(that, length)
  17047. for (var i = 0; i < length; i += 1) {
  17048. that[i] = array[i] & 255
  17049. }
  17050. return that
  17051. }
  17052. function fromArrayBuffer (that, array, byteOffset, length) {
  17053. array.byteLength // this throws if `array` is not a valid ArrayBuffer
  17054. if (byteOffset < 0 || array.byteLength < byteOffset) {
  17055. throw new RangeError('\'offset\' is out of bounds')
  17056. }
  17057. if (array.byteLength < byteOffset + (length || 0)) {
  17058. throw new RangeError('\'length\' is out of bounds')
  17059. }
  17060. if (byteOffset === undefined && length === undefined) {
  17061. array = new Uint8Array(array)
  17062. } else if (length === undefined) {
  17063. array = new Uint8Array(array, byteOffset)
  17064. } else {
  17065. array = new Uint8Array(array, byteOffset, length)
  17066. }
  17067. if (Buffer.TYPED_ARRAY_SUPPORT) {
  17068. // Return an augmented `Uint8Array` instance, for best performance
  17069. that = array
  17070. that.__proto__ = Buffer.prototype
  17071. } else {
  17072. // Fallback: Return an object instance of the Buffer class
  17073. that = fromArrayLike(that, array)
  17074. }
  17075. return that
  17076. }
  17077. function fromObject (that, obj) {
  17078. if (Buffer.isBuffer(obj)) {
  17079. var len = checked(obj.length) | 0
  17080. that = createBuffer(that, len)
  17081. if (that.length === 0) {
  17082. return that
  17083. }
  17084. obj.copy(that, 0, 0, len)
  17085. return that
  17086. }
  17087. if (obj) {
  17088. if ((typeof ArrayBuffer !== 'undefined' &&
  17089. obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
  17090. if (typeof obj.length !== 'number' || isnan(obj.length)) {
  17091. return createBuffer(that, 0)
  17092. }
  17093. return fromArrayLike(that, obj)
  17094. }
  17095. if (obj.type === 'Buffer' && isArray(obj.data)) {
  17096. return fromArrayLike(that, obj.data)
  17097. }
  17098. }
  17099. throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
  17100. }
  17101. function checked (length) {
  17102. // Note: cannot use `length < kMaxLength()` here because that fails when
  17103. // length is NaN (which is otherwise coerced to zero.)
  17104. if (length >= kMaxLength()) {
  17105. throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
  17106. 'size: 0x' + kMaxLength().toString(16) + ' bytes')
  17107. }
  17108. return length | 0
  17109. }
  17110. function SlowBuffer (length) {
  17111. if (+length != length) { // eslint-disable-line eqeqeq
  17112. length = 0
  17113. }
  17114. return Buffer.alloc(+length)
  17115. }
  17116. Buffer.isBuffer = function isBuffer (b) {
  17117. return !!(b != null && b._isBuffer)
  17118. }
  17119. Buffer.compare = function compare (a, b) {
  17120. if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
  17121. throw new TypeError('Arguments must be Buffers')
  17122. }
  17123. if (a === b) return 0
  17124. var x = a.length
  17125. var y = b.length
  17126. for (var i = 0, len = Math.min(x, y); i < len; ++i) {
  17127. if (a[i] !== b[i]) {
  17128. x = a[i]
  17129. y = b[i]
  17130. break
  17131. }
  17132. }
  17133. if (x < y) return -1
  17134. if (y < x) return 1
  17135. return 0
  17136. }
  17137. Buffer.isEncoding = function isEncoding (encoding) {
  17138. switch (String(encoding).toLowerCase()) {
  17139. case 'hex':
  17140. case 'utf8':
  17141. case 'utf-8':
  17142. case 'ascii':
  17143. case 'latin1':
  17144. case 'binary':
  17145. case 'base64':
  17146. case 'ucs2':
  17147. case 'ucs-2':
  17148. case 'utf16le':
  17149. case 'utf-16le':
  17150. return true
  17151. default:
  17152. return false
  17153. }
  17154. }
  17155. Buffer.concat = function concat (list, length) {
  17156. if (!isArray(list)) {
  17157. throw new TypeError('"list" argument must be an Array of Buffers')
  17158. }
  17159. if (list.length === 0) {
  17160. return Buffer.alloc(0)
  17161. }
  17162. var i
  17163. if (length === undefined) {
  17164. length = 0
  17165. for (i = 0; i < list.length; ++i) {
  17166. length += list[i].length
  17167. }
  17168. }
  17169. var buffer = Buffer.allocUnsafe(length)
  17170. var pos = 0
  17171. for (i = 0; i < list.length; ++i) {
  17172. var buf = list[i]
  17173. if (!Buffer.isBuffer(buf)) {
  17174. throw new TypeError('"list" argument must be an Array of Buffers')
  17175. }
  17176. buf.copy(buffer, pos)
  17177. pos += buf.length
  17178. }
  17179. return buffer
  17180. }
  17181. function byteLength (string, encoding) {
  17182. if (Buffer.isBuffer(string)) {
  17183. return string.length
  17184. }
  17185. if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
  17186. (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
  17187. return string.byteLength
  17188. }
  17189. if (typeof string !== 'string') {
  17190. string = '' + string
  17191. }
  17192. var len = string.length
  17193. if (len === 0) return 0
  17194. // Use a for loop to avoid recursion
  17195. var loweredCase = false
  17196. for (;;) {
  17197. switch (encoding) {
  17198. case 'ascii':
  17199. case 'latin1':
  17200. case 'binary':
  17201. return len
  17202. case 'utf8':
  17203. case 'utf-8':
  17204. case undefined:
  17205. return utf8ToBytes(string).length
  17206. case 'ucs2':
  17207. case 'ucs-2':
  17208. case 'utf16le':
  17209. case 'utf-16le':
  17210. return len * 2
  17211. case 'hex':
  17212. return len >>> 1
  17213. case 'base64':
  17214. return base64ToBytes(string).length
  17215. default:
  17216. if (loweredCase) return utf8ToBytes(string).length // assume utf8
  17217. encoding = ('' + encoding).toLowerCase()
  17218. loweredCase = true
  17219. }
  17220. }
  17221. }
  17222. Buffer.byteLength = byteLength
  17223. function slowToString (encoding, start, end) {
  17224. var loweredCase = false
  17225. // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
  17226. // property of a typed array.
  17227. // This behaves neither like String nor Uint8Array in that we set start/end
  17228. // to their upper/lower bounds if the value passed is out of range.
  17229. // undefined is handled specially as per ECMA-262 6th Edition,
  17230. // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
  17231. if (start === undefined || start < 0) {
  17232. start = 0
  17233. }
  17234. // Return early if start > this.length. Done here to prevent potential uint32
  17235. // coercion fail below.
  17236. if (start > this.length) {
  17237. return ''
  17238. }
  17239. if (end === undefined || end > this.length) {
  17240. end = this.length
  17241. }
  17242. if (end <= 0) {
  17243. return ''
  17244. }
  17245. // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
  17246. end >>>= 0
  17247. start >>>= 0
  17248. if (end <= start) {
  17249. return ''
  17250. }
  17251. if (!encoding) encoding = 'utf8'
  17252. while (true) {
  17253. switch (encoding) {
  17254. case 'hex':
  17255. return hexSlice(this, start, end)
  17256. case 'utf8':
  17257. case 'utf-8':
  17258. return utf8Slice(this, start, end)
  17259. case 'ascii':
  17260. return asciiSlice(this, start, end)
  17261. case 'latin1':
  17262. case 'binary':
  17263. return latin1Slice(this, start, end)
  17264. case 'base64':
  17265. return base64Slice(this, start, end)
  17266. case 'ucs2':
  17267. case 'ucs-2':
  17268. case 'utf16le':
  17269. case 'utf-16le':
  17270. return utf16leSlice(this, start, end)
  17271. default:
  17272. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  17273. encoding = (encoding + '').toLowerCase()
  17274. loweredCase = true
  17275. }
  17276. }
  17277. }
  17278. // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
  17279. // Buffer instances.
  17280. Buffer.prototype._isBuffer = true
  17281. function swap (b, n, m) {
  17282. var i = b[n]
  17283. b[n] = b[m]
  17284. b[m] = i
  17285. }
  17286. Buffer.prototype.swap16 = function swap16 () {
  17287. var len = this.length
  17288. if (len % 2 !== 0) {
  17289. throw new RangeError('Buffer size must be a multiple of 16-bits')
  17290. }
  17291. for (var i = 0; i < len; i += 2) {
  17292. swap(this, i, i + 1)
  17293. }
  17294. return this
  17295. }
  17296. Buffer.prototype.swap32 = function swap32 () {
  17297. var len = this.length
  17298. if (len % 4 !== 0) {
  17299. throw new RangeError('Buffer size must be a multiple of 32-bits')
  17300. }
  17301. for (var i = 0; i < len; i += 4) {
  17302. swap(this, i, i + 3)
  17303. swap(this, i + 1, i + 2)
  17304. }
  17305. return this
  17306. }
  17307. Buffer.prototype.swap64 = function swap64 () {
  17308. var len = this.length
  17309. if (len % 8 !== 0) {
  17310. throw new RangeError('Buffer size must be a multiple of 64-bits')
  17311. }
  17312. for (var i = 0; i < len; i += 8) {
  17313. swap(this, i, i + 7)
  17314. swap(this, i + 1, i + 6)
  17315. swap(this, i + 2, i + 5)
  17316. swap(this, i + 3, i + 4)
  17317. }
  17318. return this
  17319. }
  17320. Buffer.prototype.toString = function toString () {
  17321. var length = this.length | 0
  17322. if (length === 0) return ''
  17323. if (arguments.length === 0) return utf8Slice(this, 0, length)
  17324. return slowToString.apply(this, arguments)
  17325. }
  17326. Buffer.prototype.equals = function equals (b) {
  17327. if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  17328. if (this === b) return true
  17329. return Buffer.compare(this, b) === 0
  17330. }
  17331. Buffer.prototype.inspect = function inspect () {
  17332. var str = ''
  17333. var max = exports.INSPECT_MAX_BYTES
  17334. if (this.length > 0) {
  17335. str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
  17336. if (this.length > max) str += ' ... '
  17337. }
  17338. return '<Buffer ' + str + '>'
  17339. }
  17340. Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  17341. if (!Buffer.isBuffer(target)) {
  17342. throw new TypeError('Argument must be a Buffer')
  17343. }
  17344. if (start === undefined) {
  17345. start = 0
  17346. }
  17347. if (end === undefined) {
  17348. end = target ? target.length : 0
  17349. }
  17350. if (thisStart === undefined) {
  17351. thisStart = 0
  17352. }
  17353. if (thisEnd === undefined) {
  17354. thisEnd = this.length
  17355. }
  17356. if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
  17357. throw new RangeError('out of range index')
  17358. }
  17359. if (thisStart >= thisEnd && start >= end) {
  17360. return 0
  17361. }
  17362. if (thisStart >= thisEnd) {
  17363. return -1
  17364. }
  17365. if (start >= end) {
  17366. return 1
  17367. }
  17368. start >>>= 0
  17369. end >>>= 0
  17370. thisStart >>>= 0
  17371. thisEnd >>>= 0
  17372. if (this === target) return 0
  17373. var x = thisEnd - thisStart
  17374. var y = end - start
  17375. var len = Math.min(x, y)
  17376. var thisCopy = this.slice(thisStart, thisEnd)
  17377. var targetCopy = target.slice(start, end)
  17378. for (var i = 0; i < len; ++i) {
  17379. if (thisCopy[i] !== targetCopy[i]) {
  17380. x = thisCopy[i]
  17381. y = targetCopy[i]
  17382. break
  17383. }
  17384. }
  17385. if (x < y) return -1
  17386. if (y < x) return 1
  17387. return 0
  17388. }
  17389. // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
  17390. // OR the last index of `val` in `buffer` at offset <= `byteOffset`.
  17391. //
  17392. // Arguments:
  17393. // - buffer - a Buffer to search
  17394. // - val - a string, Buffer, or number
  17395. // - byteOffset - an index into `buffer`; will be clamped to an int32
  17396. // - encoding - an optional encoding, relevant is val is a string
  17397. // - dir - true for indexOf, false for lastIndexOf
  17398. function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
  17399. // Empty buffer means no match
  17400. if (buffer.length === 0) return -1
  17401. // Normalize byteOffset
  17402. if (typeof byteOffset === 'string') {
  17403. encoding = byteOffset
  17404. byteOffset = 0
  17405. } else if (byteOffset > 0x7fffffff) {
  17406. byteOffset = 0x7fffffff
  17407. } else if (byteOffset < -0x80000000) {
  17408. byteOffset = -0x80000000
  17409. }
  17410. byteOffset = +byteOffset // Coerce to Number.
  17411. if (isNaN(byteOffset)) {
  17412. // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
  17413. byteOffset = dir ? 0 : (buffer.length - 1)
  17414. }
  17415. // Normalize byteOffset: negative offsets start from the end of the buffer
  17416. if (byteOffset < 0) byteOffset = buffer.length + byteOffset
  17417. if (byteOffset >= buffer.length) {
  17418. if (dir) return -1
  17419. else byteOffset = buffer.length - 1
  17420. } else if (byteOffset < 0) {
  17421. if (dir) byteOffset = 0
  17422. else return -1
  17423. }
  17424. // Normalize val
  17425. if (typeof val === 'string') {
  17426. val = Buffer.from(val, encoding)
  17427. }
  17428. // Finally, search either indexOf (if dir is true) or lastIndexOf
  17429. if (Buffer.isBuffer(val)) {
  17430. // Special case: looking for empty string/buffer always fails
  17431. if (val.length === 0) {
  17432. return -1
  17433. }
  17434. return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
  17435. } else if (typeof val === 'number') {
  17436. val = val & 0xFF // Search for a byte value [0-255]
  17437. if (Buffer.TYPED_ARRAY_SUPPORT &&
  17438. typeof Uint8Array.prototype.indexOf === 'function') {
  17439. if (dir) {
  17440. return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
  17441. } else {
  17442. return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
  17443. }
  17444. }
  17445. return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
  17446. }
  17447. throw new TypeError('val must be string, number or Buffer')
  17448. }
  17449. function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
  17450. var indexSize = 1
  17451. var arrLength = arr.length
  17452. var valLength = val.length
  17453. if (encoding !== undefined) {
  17454. encoding = String(encoding).toLowerCase()
  17455. if (encoding === 'ucs2' || encoding === 'ucs-2' ||
  17456. encoding === 'utf16le' || encoding === 'utf-16le') {
  17457. if (arr.length < 2 || val.length < 2) {
  17458. return -1
  17459. }
  17460. indexSize = 2
  17461. arrLength /= 2
  17462. valLength /= 2
  17463. byteOffset /= 2
  17464. }
  17465. }
  17466. function read (buf, i) {
  17467. if (indexSize === 1) {
  17468. return buf[i]
  17469. } else {
  17470. return buf.readUInt16BE(i * indexSize)
  17471. }
  17472. }
  17473. var i
  17474. if (dir) {
  17475. var foundIndex = -1
  17476. for (i = byteOffset; i < arrLength; i++) {
  17477. if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
  17478. if (foundIndex === -1) foundIndex = i
  17479. if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
  17480. } else {
  17481. if (foundIndex !== -1) i -= i - foundIndex
  17482. foundIndex = -1
  17483. }
  17484. }
  17485. } else {
  17486. if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
  17487. for (i = byteOffset; i >= 0; i--) {
  17488. var found = true
  17489. for (var j = 0; j < valLength; j++) {
  17490. if (read(arr, i + j) !== read(val, j)) {
  17491. found = false
  17492. break
  17493. }
  17494. }
  17495. if (found) return i
  17496. }
  17497. }
  17498. return -1
  17499. }
  17500. Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
  17501. return this.indexOf(val, byteOffset, encoding) !== -1
  17502. }
  17503. Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
  17504. return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
  17505. }
  17506. Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
  17507. return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
  17508. }
  17509. function hexWrite (buf, string, offset, length) {
  17510. offset = Number(offset) || 0
  17511. var remaining = buf.length - offset
  17512. if (!length) {
  17513. length = remaining
  17514. } else {
  17515. length = Number(length)
  17516. if (length > remaining) {
  17517. length = remaining
  17518. }
  17519. }
  17520. // must be an even number of digits
  17521. var strLen = string.length
  17522. if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
  17523. if (length > strLen / 2) {
  17524. length = strLen / 2
  17525. }
  17526. for (var i = 0; i < length; ++i) {
  17527. var parsed = parseInt(string.substr(i * 2, 2), 16)
  17528. if (isNaN(parsed)) return i
  17529. buf[offset + i] = parsed
  17530. }
  17531. return i
  17532. }
  17533. function utf8Write (buf, string, offset, length) {
  17534. return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
  17535. }
  17536. function asciiWrite (buf, string, offset, length) {
  17537. return blitBuffer(asciiToBytes(string), buf, offset, length)
  17538. }
  17539. function latin1Write (buf, string, offset, length) {
  17540. return asciiWrite(buf, string, offset, length)
  17541. }
  17542. function base64Write (buf, string, offset, length) {
  17543. return blitBuffer(base64ToBytes(string), buf, offset, length)
  17544. }
  17545. function ucs2Write (buf, string, offset, length) {
  17546. return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
  17547. }
  17548. Buffer.prototype.write = function write (string, offset, length, encoding) {
  17549. // Buffer#write(string)
  17550. if (offset === undefined) {
  17551. encoding = 'utf8'
  17552. length = this.length
  17553. offset = 0
  17554. // Buffer#write(string, encoding)
  17555. } else if (length === undefined && typeof offset === 'string') {
  17556. encoding = offset
  17557. length = this.length
  17558. offset = 0
  17559. // Buffer#write(string, offset[, length][, encoding])
  17560. } else if (isFinite(offset)) {
  17561. offset = offset | 0
  17562. if (isFinite(length)) {
  17563. length = length | 0
  17564. if (encoding === undefined) encoding = 'utf8'
  17565. } else {
  17566. encoding = length
  17567. length = undefined
  17568. }
  17569. // legacy write(string, encoding, offset, length) - remove in v0.13
  17570. } else {
  17571. throw new Error(
  17572. 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
  17573. )
  17574. }
  17575. var remaining = this.length - offset
  17576. if (length === undefined || length > remaining) length = remaining
  17577. if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
  17578. throw new RangeError('Attempt to write outside buffer bounds')
  17579. }
  17580. if (!encoding) encoding = 'utf8'
  17581. var loweredCase = false
  17582. for (;;) {
  17583. switch (encoding) {
  17584. case 'hex':
  17585. return hexWrite(this, string, offset, length)
  17586. case 'utf8':
  17587. case 'utf-8':
  17588. return utf8Write(this, string, offset, length)
  17589. case 'ascii':
  17590. return asciiWrite(this, string, offset, length)
  17591. case 'latin1':
  17592. case 'binary':
  17593. return latin1Write(this, string, offset, length)
  17594. case 'base64':
  17595. // Warning: maxLength not taken into account in base64Write
  17596. return base64Write(this, string, offset, length)
  17597. case 'ucs2':
  17598. case 'ucs-2':
  17599. case 'utf16le':
  17600. case 'utf-16le':
  17601. return ucs2Write(this, string, offset, length)
  17602. default:
  17603. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  17604. encoding = ('' + encoding).toLowerCase()
  17605. loweredCase = true
  17606. }
  17607. }
  17608. }
  17609. Buffer.prototype.toJSON = function toJSON () {
  17610. return {
  17611. type: 'Buffer',
  17612. data: Array.prototype.slice.call(this._arr || this, 0)
  17613. }
  17614. }
  17615. function base64Slice (buf, start, end) {
  17616. if (start === 0 && end === buf.length) {
  17617. return base64.fromByteArray(buf)
  17618. } else {
  17619. return base64.fromByteArray(buf.slice(start, end))
  17620. }
  17621. }
  17622. function utf8Slice (buf, start, end) {
  17623. end = Math.min(buf.length, end)
  17624. var res = []
  17625. var i = start
  17626. while (i < end) {
  17627. var firstByte = buf[i]
  17628. var codePoint = null
  17629. var bytesPerSequence = (firstByte > 0xEF) ? 4
  17630. : (firstByte > 0xDF) ? 3
  17631. : (firstByte > 0xBF) ? 2
  17632. : 1
  17633. if (i + bytesPerSequence <= end) {
  17634. var secondByte, thirdByte, fourthByte, tempCodePoint
  17635. switch (bytesPerSequence) {
  17636. case 1:
  17637. if (firstByte < 0x80) {
  17638. codePoint = firstByte
  17639. }
  17640. break
  17641. case 2:
  17642. secondByte = buf[i + 1]
  17643. if ((secondByte & 0xC0) === 0x80) {
  17644. tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
  17645. if (tempCodePoint > 0x7F) {
  17646. codePoint = tempCodePoint
  17647. }
  17648. }
  17649. break
  17650. case 3:
  17651. secondByte = buf[i + 1]
  17652. thirdByte = buf[i + 2]
  17653. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
  17654. tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
  17655. if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
  17656. codePoint = tempCodePoint
  17657. }
  17658. }
  17659. break
  17660. case 4:
  17661. secondByte = buf[i + 1]
  17662. thirdByte = buf[i + 2]
  17663. fourthByte = buf[i + 3]
  17664. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
  17665. tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
  17666. if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
  17667. codePoint = tempCodePoint
  17668. }
  17669. }
  17670. }
  17671. }
  17672. if (codePoint === null) {
  17673. // we did not generate a valid codePoint so insert a
  17674. // replacement char (U+FFFD) and advance only 1 byte
  17675. codePoint = 0xFFFD
  17676. bytesPerSequence = 1
  17677. } else if (codePoint > 0xFFFF) {
  17678. // encode to utf16 (surrogate pair dance)
  17679. codePoint -= 0x10000
  17680. res.push(codePoint >>> 10 & 0x3FF | 0xD800)
  17681. codePoint = 0xDC00 | codePoint & 0x3FF
  17682. }
  17683. res.push(codePoint)
  17684. i += bytesPerSequence
  17685. }
  17686. return decodeCodePointsArray(res)
  17687. }
  17688. // Based on http://stackoverflow.com/a/22747272/680742, the browser with
  17689. // the lowest limit is Chrome, with 0x10000 args.
  17690. // We go 1 magnitude less, for safety
  17691. var MAX_ARGUMENTS_LENGTH = 0x1000
  17692. function decodeCodePointsArray (codePoints) {
  17693. var len = codePoints.length
  17694. if (len <= MAX_ARGUMENTS_LENGTH) {
  17695. return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
  17696. }
  17697. // Decode in chunks to avoid "call stack size exceeded".
  17698. var res = ''
  17699. var i = 0
  17700. while (i < len) {
  17701. res += String.fromCharCode.apply(
  17702. String,
  17703. codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
  17704. )
  17705. }
  17706. return res
  17707. }
  17708. function asciiSlice (buf, start, end) {
  17709. var ret = ''
  17710. end = Math.min(buf.length, end)
  17711. for (var i = start; i < end; ++i) {
  17712. ret += String.fromCharCode(buf[i] & 0x7F)
  17713. }
  17714. return ret
  17715. }
  17716. function latin1Slice (buf, start, end) {
  17717. var ret = ''
  17718. end = Math.min(buf.length, end)
  17719. for (var i = start; i < end; ++i) {
  17720. ret += String.fromCharCode(buf[i])
  17721. }
  17722. return ret
  17723. }
  17724. function hexSlice (buf, start, end) {
  17725. var len = buf.length
  17726. if (!start || start < 0) start = 0
  17727. if (!end || end < 0 || end > len) end = len
  17728. var out = ''
  17729. for (var i = start; i < end; ++i) {
  17730. out += toHex(buf[i])
  17731. }
  17732. return out
  17733. }
  17734. function utf16leSlice (buf, start, end) {
  17735. var bytes = buf.slice(start, end)
  17736. var res = ''
  17737. for (var i = 0; i < bytes.length; i += 2) {
  17738. res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  17739. }
  17740. return res
  17741. }
  17742. Buffer.prototype.slice = function slice (start, end) {
  17743. var len = this.length
  17744. start = ~~start
  17745. end = end === undefined ? len : ~~end
  17746. if (start < 0) {
  17747. start += len
  17748. if (start < 0) start = 0
  17749. } else if (start > len) {
  17750. start = len
  17751. }
  17752. if (end < 0) {
  17753. end += len
  17754. if (end < 0) end = 0
  17755. } else if (end > len) {
  17756. end = len
  17757. }
  17758. if (end < start) end = start
  17759. var newBuf
  17760. if (Buffer.TYPED_ARRAY_SUPPORT) {
  17761. newBuf = this.subarray(start, end)
  17762. newBuf.__proto__ = Buffer.prototype
  17763. } else {
  17764. var sliceLen = end - start
  17765. newBuf = new Buffer(sliceLen, undefined)
  17766. for (var i = 0; i < sliceLen; ++i) {
  17767. newBuf[i] = this[i + start]
  17768. }
  17769. }
  17770. return newBuf
  17771. }
  17772. /*
  17773. * Need to make sure that buffer isn't trying to write out of bounds.
  17774. */
  17775. function checkOffset (offset, ext, length) {
  17776. if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  17777. if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
  17778. }
  17779. Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  17780. offset = offset | 0
  17781. byteLength = byteLength | 0
  17782. if (!noAssert) checkOffset(offset, byteLength, this.length)
  17783. var val = this[offset]
  17784. var mul = 1
  17785. var i = 0
  17786. while (++i < byteLength && (mul *= 0x100)) {
  17787. val += this[offset + i] * mul
  17788. }
  17789. return val
  17790. }
  17791. Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  17792. offset = offset | 0
  17793. byteLength = byteLength | 0
  17794. if (!noAssert) {
  17795. checkOffset(offset, byteLength, this.length)
  17796. }
  17797. var val = this[offset + --byteLength]
  17798. var mul = 1
  17799. while (byteLength > 0 && (mul *= 0x100)) {
  17800. val += this[offset + --byteLength] * mul
  17801. }
  17802. return val
  17803. }
  17804. Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  17805. if (!noAssert) checkOffset(offset, 1, this.length)
  17806. return this[offset]
  17807. }
  17808. Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  17809. if (!noAssert) checkOffset(offset, 2, this.length)
  17810. return this[offset] | (this[offset + 1] << 8)
  17811. }
  17812. Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  17813. if (!noAssert) checkOffset(offset, 2, this.length)
  17814. return (this[offset] << 8) | this[offset + 1]
  17815. }
  17816. Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  17817. if (!noAssert) checkOffset(offset, 4, this.length)
  17818. return ((this[offset]) |
  17819. (this[offset + 1] << 8) |
  17820. (this[offset + 2] << 16)) +
  17821. (this[offset + 3] * 0x1000000)
  17822. }
  17823. Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  17824. if (!noAssert) checkOffset(offset, 4, this.length)
  17825. return (this[offset] * 0x1000000) +
  17826. ((this[offset + 1] << 16) |
  17827. (this[offset + 2] << 8) |
  17828. this[offset + 3])
  17829. }
  17830. Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  17831. offset = offset | 0
  17832. byteLength = byteLength | 0
  17833. if (!noAssert) checkOffset(offset, byteLength, this.length)
  17834. var val = this[offset]
  17835. var mul = 1
  17836. var i = 0
  17837. while (++i < byteLength && (mul *= 0x100)) {
  17838. val += this[offset + i] * mul
  17839. }
  17840. mul *= 0x80
  17841. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  17842. return val
  17843. }
  17844. Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  17845. offset = offset | 0
  17846. byteLength = byteLength | 0
  17847. if (!noAssert) checkOffset(offset, byteLength, this.length)
  17848. var i = byteLength
  17849. var mul = 1
  17850. var val = this[offset + --i]
  17851. while (i > 0 && (mul *= 0x100)) {
  17852. val += this[offset + --i] * mul
  17853. }
  17854. mul *= 0x80
  17855. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  17856. return val
  17857. }
  17858. Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  17859. if (!noAssert) checkOffset(offset, 1, this.length)
  17860. if (!(this[offset] & 0x80)) return (this[offset])
  17861. return ((0xff - this[offset] + 1) * -1)
  17862. }
  17863. Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  17864. if (!noAssert) checkOffset(offset, 2, this.length)
  17865. var val = this[offset] | (this[offset + 1] << 8)
  17866. return (val & 0x8000) ? val | 0xFFFF0000 : val
  17867. }
  17868. Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  17869. if (!noAssert) checkOffset(offset, 2, this.length)
  17870. var val = this[offset + 1] | (this[offset] << 8)
  17871. return (val & 0x8000) ? val | 0xFFFF0000 : val
  17872. }
  17873. Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  17874. if (!noAssert) checkOffset(offset, 4, this.length)
  17875. return (this[offset]) |
  17876. (this[offset + 1] << 8) |
  17877. (this[offset + 2] << 16) |
  17878. (this[offset + 3] << 24)
  17879. }
  17880. Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  17881. if (!noAssert) checkOffset(offset, 4, this.length)
  17882. return (this[offset] << 24) |
  17883. (this[offset + 1] << 16) |
  17884. (this[offset + 2] << 8) |
  17885. (this[offset + 3])
  17886. }
  17887. Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  17888. if (!noAssert) checkOffset(offset, 4, this.length)
  17889. return ieee754.read(this, offset, true, 23, 4)
  17890. }
  17891. Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  17892. if (!noAssert) checkOffset(offset, 4, this.length)
  17893. return ieee754.read(this, offset, false, 23, 4)
  17894. }
  17895. Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  17896. if (!noAssert) checkOffset(offset, 8, this.length)
  17897. return ieee754.read(this, offset, true, 52, 8)
  17898. }
  17899. Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  17900. if (!noAssert) checkOffset(offset, 8, this.length)
  17901. return ieee754.read(this, offset, false, 52, 8)
  17902. }
  17903. function checkInt (buf, value, offset, ext, max, min) {
  17904. if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
  17905. if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
  17906. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  17907. }
  17908. Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  17909. value = +value
  17910. offset = offset | 0
  17911. byteLength = byteLength | 0
  17912. if (!noAssert) {
  17913. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  17914. checkInt(this, value, offset, byteLength, maxBytes, 0)
  17915. }
  17916. var mul = 1
  17917. var i = 0
  17918. this[offset] = value & 0xFF
  17919. while (++i < byteLength && (mul *= 0x100)) {
  17920. this[offset + i] = (value / mul) & 0xFF
  17921. }
  17922. return offset + byteLength
  17923. }
  17924. Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  17925. value = +value
  17926. offset = offset | 0
  17927. byteLength = byteLength | 0
  17928. if (!noAssert) {
  17929. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  17930. checkInt(this, value, offset, byteLength, maxBytes, 0)
  17931. }
  17932. var i = byteLength - 1
  17933. var mul = 1
  17934. this[offset + i] = value & 0xFF
  17935. while (--i >= 0 && (mul *= 0x100)) {
  17936. this[offset + i] = (value / mul) & 0xFF
  17937. }
  17938. return offset + byteLength
  17939. }
  17940. Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  17941. value = +value
  17942. offset = offset | 0
  17943. if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  17944. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  17945. this[offset] = (value & 0xff)
  17946. return offset + 1
  17947. }
  17948. function objectWriteUInt16 (buf, value, offset, littleEndian) {
  17949. if (value < 0) value = 0xffff + value + 1
  17950. for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
  17951. buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
  17952. (littleEndian ? i : 1 - i) * 8
  17953. }
  17954. }
  17955. Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  17956. value = +value
  17957. offset = offset | 0
  17958. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  17959. if (Buffer.TYPED_ARRAY_SUPPORT) {
  17960. this[offset] = (value & 0xff)
  17961. this[offset + 1] = (value >>> 8)
  17962. } else {
  17963. objectWriteUInt16(this, value, offset, true)
  17964. }
  17965. return offset + 2
  17966. }
  17967. Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  17968. value = +value
  17969. offset = offset | 0
  17970. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  17971. if (Buffer.TYPED_ARRAY_SUPPORT) {
  17972. this[offset] = (value >>> 8)
  17973. this[offset + 1] = (value & 0xff)
  17974. } else {
  17975. objectWriteUInt16(this, value, offset, false)
  17976. }
  17977. return offset + 2
  17978. }
  17979. function objectWriteUInt32 (buf, value, offset, littleEndian) {
  17980. if (value < 0) value = 0xffffffff + value + 1
  17981. for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
  17982. buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  17983. }
  17984. }
  17985. Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  17986. value = +value
  17987. offset = offset | 0
  17988. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  17989. if (Buffer.TYPED_ARRAY_SUPPORT) {
  17990. this[offset + 3] = (value >>> 24)
  17991. this[offset + 2] = (value >>> 16)
  17992. this[offset + 1] = (value >>> 8)
  17993. this[offset] = (value & 0xff)
  17994. } else {
  17995. objectWriteUInt32(this, value, offset, true)
  17996. }
  17997. return offset + 4
  17998. }
  17999. Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  18000. value = +value
  18001. offset = offset | 0
  18002. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  18003. if (Buffer.TYPED_ARRAY_SUPPORT) {
  18004. this[offset] = (value >>> 24)
  18005. this[offset + 1] = (value >>> 16)
  18006. this[offset + 2] = (value >>> 8)
  18007. this[offset + 3] = (value & 0xff)
  18008. } else {
  18009. objectWriteUInt32(this, value, offset, false)
  18010. }
  18011. return offset + 4
  18012. }
  18013. Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  18014. value = +value
  18015. offset = offset | 0
  18016. if (!noAssert) {
  18017. var limit = Math.pow(2, 8 * byteLength - 1)
  18018. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  18019. }
  18020. var i = 0
  18021. var mul = 1
  18022. var sub = 0
  18023. this[offset] = value & 0xFF
  18024. while (++i < byteLength && (mul *= 0x100)) {
  18025. if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
  18026. sub = 1
  18027. }
  18028. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  18029. }
  18030. return offset + byteLength
  18031. }
  18032. Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  18033. value = +value
  18034. offset = offset | 0
  18035. if (!noAssert) {
  18036. var limit = Math.pow(2, 8 * byteLength - 1)
  18037. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  18038. }
  18039. var i = byteLength - 1
  18040. var mul = 1
  18041. var sub = 0
  18042. this[offset + i] = value & 0xFF
  18043. while (--i >= 0 && (mul *= 0x100)) {
  18044. if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
  18045. sub = 1
  18046. }
  18047. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  18048. }
  18049. return offset + byteLength
  18050. }
  18051. Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  18052. value = +value
  18053. offset = offset | 0
  18054. if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  18055. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  18056. if (value < 0) value = 0xff + value + 1
  18057. this[offset] = (value & 0xff)
  18058. return offset + 1
  18059. }
  18060. Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  18061. value = +value
  18062. offset = offset | 0
  18063. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  18064. if (Buffer.TYPED_ARRAY_SUPPORT) {
  18065. this[offset] = (value & 0xff)
  18066. this[offset + 1] = (value >>> 8)
  18067. } else {
  18068. objectWriteUInt16(this, value, offset, true)
  18069. }
  18070. return offset + 2
  18071. }
  18072. Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  18073. value = +value
  18074. offset = offset | 0
  18075. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  18076. if (Buffer.TYPED_ARRAY_SUPPORT) {
  18077. this[offset] = (value >>> 8)
  18078. this[offset + 1] = (value & 0xff)
  18079. } else {
  18080. objectWriteUInt16(this, value, offset, false)
  18081. }
  18082. return offset + 2
  18083. }
  18084. Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  18085. value = +value
  18086. offset = offset | 0
  18087. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  18088. if (Buffer.TYPED_ARRAY_SUPPORT) {
  18089. this[offset] = (value & 0xff)
  18090. this[offset + 1] = (value >>> 8)
  18091. this[offset + 2] = (value >>> 16)
  18092. this[offset + 3] = (value >>> 24)
  18093. } else {
  18094. objectWriteUInt32(this, value, offset, true)
  18095. }
  18096. return offset + 4
  18097. }
  18098. Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  18099. value = +value
  18100. offset = offset | 0
  18101. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  18102. if (value < 0) value = 0xffffffff + value + 1
  18103. if (Buffer.TYPED_ARRAY_SUPPORT) {
  18104. this[offset] = (value >>> 24)
  18105. this[offset + 1] = (value >>> 16)
  18106. this[offset + 2] = (value >>> 8)
  18107. this[offset + 3] = (value & 0xff)
  18108. } else {
  18109. objectWriteUInt32(this, value, offset, false)
  18110. }
  18111. return offset + 4
  18112. }
  18113. function checkIEEE754 (buf, value, offset, ext, max, min) {
  18114. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  18115. if (offset < 0) throw new RangeError('Index out of range')
  18116. }
  18117. function writeFloat (buf, value, offset, littleEndian, noAssert) {
  18118. if (!noAssert) {
  18119. checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  18120. }
  18121. ieee754.write(buf, value, offset, littleEndian, 23, 4)
  18122. return offset + 4
  18123. }
  18124. Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  18125. return writeFloat(this, value, offset, true, noAssert)
  18126. }
  18127. Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  18128. return writeFloat(this, value, offset, false, noAssert)
  18129. }
  18130. function writeDouble (buf, value, offset, littleEndian, noAssert) {
  18131. if (!noAssert) {
  18132. checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  18133. }
  18134. ieee754.write(buf, value, offset, littleEndian, 52, 8)
  18135. return offset + 8
  18136. }
  18137. Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  18138. return writeDouble(this, value, offset, true, noAssert)
  18139. }
  18140. Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  18141. return writeDouble(this, value, offset, false, noAssert)
  18142. }
  18143. // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
  18144. Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  18145. if (!start) start = 0
  18146. if (!end && end !== 0) end = this.length
  18147. if (targetStart >= target.length) targetStart = target.length
  18148. if (!targetStart) targetStart = 0
  18149. if (end > 0 && end < start) end = start
  18150. // Copy 0 bytes; we're done
  18151. if (end === start) return 0
  18152. if (target.length === 0 || this.length === 0) return 0
  18153. // Fatal error conditions
  18154. if (targetStart < 0) {
  18155. throw new RangeError('targetStart out of bounds')
  18156. }
  18157. if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  18158. if (end < 0) throw new RangeError('sourceEnd out of bounds')
  18159. // Are we oob?
  18160. if (end > this.length) end = this.length
  18161. if (target.length - targetStart < end - start) {
  18162. end = target.length - targetStart + start
  18163. }
  18164. var len = end - start
  18165. var i
  18166. if (this === target && start < targetStart && targetStart < end) {
  18167. // descending copy from end
  18168. for (i = len - 1; i >= 0; --i) {
  18169. target[i + targetStart] = this[i + start]
  18170. }
  18171. } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
  18172. // ascending copy from start
  18173. for (i = 0; i < len; ++i) {
  18174. target[i + targetStart] = this[i + start]
  18175. }
  18176. } else {
  18177. Uint8Array.prototype.set.call(
  18178. target,
  18179. this.subarray(start, start + len),
  18180. targetStart
  18181. )
  18182. }
  18183. return len
  18184. }
  18185. // Usage:
  18186. // buffer.fill(number[, offset[, end]])
  18187. // buffer.fill(buffer[, offset[, end]])
  18188. // buffer.fill(string[, offset[, end]][, encoding])
  18189. Buffer.prototype.fill = function fill (val, start, end, encoding) {
  18190. // Handle string cases:
  18191. if (typeof val === 'string') {
  18192. if (typeof start === 'string') {
  18193. encoding = start
  18194. start = 0
  18195. end = this.length
  18196. } else if (typeof end === 'string') {
  18197. encoding = end
  18198. end = this.length
  18199. }
  18200. if (val.length === 1) {
  18201. var code = val.charCodeAt(0)
  18202. if (code < 256) {
  18203. val = code
  18204. }
  18205. }
  18206. if (encoding !== undefined && typeof encoding !== 'string') {
  18207. throw new TypeError('encoding must be a string')
  18208. }
  18209. if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
  18210. throw new TypeError('Unknown encoding: ' + encoding)
  18211. }
  18212. } else if (typeof val === 'number') {
  18213. val = val & 255
  18214. }
  18215. // Invalid ranges are not set to a default, so can range check early.
  18216. if (start < 0 || this.length < start || this.length < end) {
  18217. throw new RangeError('Out of range index')
  18218. }
  18219. if (end <= start) {
  18220. return this
  18221. }
  18222. start = start >>> 0
  18223. end = end === undefined ? this.length : end >>> 0
  18224. if (!val) val = 0
  18225. var i
  18226. if (typeof val === 'number') {
  18227. for (i = start; i < end; ++i) {
  18228. this[i] = val
  18229. }
  18230. } else {
  18231. var bytes = Buffer.isBuffer(val)
  18232. ? val
  18233. : utf8ToBytes(new Buffer(val, encoding).toString())
  18234. var len = bytes.length
  18235. for (i = 0; i < end - start; ++i) {
  18236. this[i + start] = bytes[i % len]
  18237. }
  18238. }
  18239. return this
  18240. }
  18241. // HELPER FUNCTIONS
  18242. // ================
  18243. var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
  18244. function base64clean (str) {
  18245. // Node strips out invalid characters like \n and \t from the string, base64-js does not
  18246. str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  18247. // Node converts strings with length < 2 to ''
  18248. if (str.length < 2) return ''
  18249. // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  18250. while (str.length % 4 !== 0) {
  18251. str = str + '='
  18252. }
  18253. return str
  18254. }
  18255. function stringtrim (str) {
  18256. if (str.trim) return str.trim()
  18257. return str.replace(/^\s+|\s+$/g, '')
  18258. }
  18259. function toHex (n) {
  18260. if (n < 16) return '0' + n.toString(16)
  18261. return n.toString(16)
  18262. }
  18263. function utf8ToBytes (string, units) {
  18264. units = units || Infinity
  18265. var codePoint
  18266. var length = string.length
  18267. var leadSurrogate = null
  18268. var bytes = []
  18269. for (var i = 0; i < length; ++i) {
  18270. codePoint = string.charCodeAt(i)
  18271. // is surrogate component
  18272. if (codePoint > 0xD7FF && codePoint < 0xE000) {
  18273. // last char was a lead
  18274. if (!leadSurrogate) {
  18275. // no lead yet
  18276. if (codePoint > 0xDBFF) {
  18277. // unexpected trail
  18278. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  18279. continue
  18280. } else if (i + 1 === length) {
  18281. // unpaired lead
  18282. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  18283. continue
  18284. }
  18285. // valid lead
  18286. leadSurrogate = codePoint
  18287. continue
  18288. }
  18289. // 2 leads in a row
  18290. if (codePoint < 0xDC00) {
  18291. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  18292. leadSurrogate = codePoint
  18293. continue
  18294. }
  18295. // valid surrogate pair
  18296. codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
  18297. } else if (leadSurrogate) {
  18298. // valid bmp char, but last char was a lead
  18299. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  18300. }
  18301. leadSurrogate = null
  18302. // encode utf8
  18303. if (codePoint < 0x80) {
  18304. if ((units -= 1) < 0) break
  18305. bytes.push(codePoint)
  18306. } else if (codePoint < 0x800) {
  18307. if ((units -= 2) < 0) break
  18308. bytes.push(
  18309. codePoint >> 0x6 | 0xC0,
  18310. codePoint & 0x3F | 0x80
  18311. )
  18312. } else if (codePoint < 0x10000) {
  18313. if ((units -= 3) < 0) break
  18314. bytes.push(
  18315. codePoint >> 0xC | 0xE0,
  18316. codePoint >> 0x6 & 0x3F | 0x80,
  18317. codePoint & 0x3F | 0x80
  18318. )
  18319. } else if (codePoint < 0x110000) {
  18320. if ((units -= 4) < 0) break
  18321. bytes.push(
  18322. codePoint >> 0x12 | 0xF0,
  18323. codePoint >> 0xC & 0x3F | 0x80,
  18324. codePoint >> 0x6 & 0x3F | 0x80,
  18325. codePoint & 0x3F | 0x80
  18326. )
  18327. } else {
  18328. throw new Error('Invalid code point')
  18329. }
  18330. }
  18331. return bytes
  18332. }
  18333. function asciiToBytes (str) {
  18334. var byteArray = []
  18335. for (var i = 0; i < str.length; ++i) {
  18336. // Node's code seems to be doing this and not & 0x7F..
  18337. byteArray.push(str.charCodeAt(i) & 0xFF)
  18338. }
  18339. return byteArray
  18340. }
  18341. function utf16leToBytes (str, units) {
  18342. var c, hi, lo
  18343. var byteArray = []
  18344. for (var i = 0; i < str.length; ++i) {
  18345. if ((units -= 2) < 0) break
  18346. c = str.charCodeAt(i)
  18347. hi = c >> 8
  18348. lo = c % 256
  18349. byteArray.push(lo)
  18350. byteArray.push(hi)
  18351. }
  18352. return byteArray
  18353. }
  18354. function base64ToBytes (str) {
  18355. return base64.toByteArray(base64clean(str))
  18356. }
  18357. function blitBuffer (src, dst, offset, length) {
  18358. for (var i = 0; i < length; ++i) {
  18359. if ((i + offset >= dst.length) || (i >= src.length)) break
  18360. dst[i + offset] = src[i]
  18361. }
  18362. return i
  18363. }
  18364. function isnan (val) {
  18365. return val !== val // eslint-disable-line no-self-compare
  18366. }
  18367. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 3)))
  18368. /***/ }),
  18369. /***/ 52:
  18370. /*!*****************************************!*\
  18371. !*** ./node_modules/base64-js/index.js ***!
  18372. \*****************************************/
  18373. /*! no static exports found */
  18374. /***/ (function(module, exports, __webpack_require__) {
  18375. "use strict";
  18376. exports.byteLength = byteLength
  18377. exports.toByteArray = toByteArray
  18378. exports.fromByteArray = fromByteArray
  18379. var lookup = []
  18380. var revLookup = []
  18381. var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
  18382. var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  18383. for (var i = 0, len = code.length; i < len; ++i) {
  18384. lookup[i] = code[i]
  18385. revLookup[code.charCodeAt(i)] = i
  18386. }
  18387. // Support decoding URL-safe base64 strings, as Node.js does.
  18388. // See: https://en.wikipedia.org/wiki/Base64#URL_applications
  18389. revLookup['-'.charCodeAt(0)] = 62
  18390. revLookup['_'.charCodeAt(0)] = 63
  18391. function getLens (b64) {
  18392. var len = b64.length
  18393. if (len % 4 > 0) {
  18394. throw new Error('Invalid string. Length must be a multiple of 4')
  18395. }
  18396. // Trim off extra bytes after placeholder bytes are found
  18397. // See: https://github.com/beatgammit/base64-js/issues/42
  18398. var validLen = b64.indexOf('=')
  18399. if (validLen === -1) validLen = len
  18400. var placeHoldersLen = validLen === len
  18401. ? 0
  18402. : 4 - (validLen % 4)
  18403. return [validLen, placeHoldersLen]
  18404. }
  18405. // base64 is 4/3 + up to two characters of the original data
  18406. function byteLength (b64) {
  18407. var lens = getLens(b64)
  18408. var validLen = lens[0]
  18409. var placeHoldersLen = lens[1]
  18410. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  18411. }
  18412. function _byteLength (b64, validLen, placeHoldersLen) {
  18413. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  18414. }
  18415. function toByteArray (b64) {
  18416. var tmp
  18417. var lens = getLens(b64)
  18418. var validLen = lens[0]
  18419. var placeHoldersLen = lens[1]
  18420. var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
  18421. var curByte = 0
  18422. // if there are placeholders, only get up to the last complete 4 chars
  18423. var len = placeHoldersLen > 0
  18424. ? validLen - 4
  18425. : validLen
  18426. var i
  18427. for (i = 0; i < len; i += 4) {
  18428. tmp =
  18429. (revLookup[b64.charCodeAt(i)] << 18) |
  18430. (revLookup[b64.charCodeAt(i + 1)] << 12) |
  18431. (revLookup[b64.charCodeAt(i + 2)] << 6) |
  18432. revLookup[b64.charCodeAt(i + 3)]
  18433. arr[curByte++] = (tmp >> 16) & 0xFF
  18434. arr[curByte++] = (tmp >> 8) & 0xFF
  18435. arr[curByte++] = tmp & 0xFF
  18436. }
  18437. if (placeHoldersLen === 2) {
  18438. tmp =
  18439. (revLookup[b64.charCodeAt(i)] << 2) |
  18440. (revLookup[b64.charCodeAt(i + 1)] >> 4)
  18441. arr[curByte++] = tmp & 0xFF
  18442. }
  18443. if (placeHoldersLen === 1) {
  18444. tmp =
  18445. (revLookup[b64.charCodeAt(i)] << 10) |
  18446. (revLookup[b64.charCodeAt(i + 1)] << 4) |
  18447. (revLookup[b64.charCodeAt(i + 2)] >> 2)
  18448. arr[curByte++] = (tmp >> 8) & 0xFF
  18449. arr[curByte++] = tmp & 0xFF
  18450. }
  18451. return arr
  18452. }
  18453. function tripletToBase64 (num) {
  18454. return lookup[num >> 18 & 0x3F] +
  18455. lookup[num >> 12 & 0x3F] +
  18456. lookup[num >> 6 & 0x3F] +
  18457. lookup[num & 0x3F]
  18458. }
  18459. function encodeChunk (uint8, start, end) {
  18460. var tmp
  18461. var output = []
  18462. for (var i = start; i < end; i += 3) {
  18463. tmp =
  18464. ((uint8[i] << 16) & 0xFF0000) +
  18465. ((uint8[i + 1] << 8) & 0xFF00) +
  18466. (uint8[i + 2] & 0xFF)
  18467. output.push(tripletToBase64(tmp))
  18468. }
  18469. return output.join('')
  18470. }
  18471. function fromByteArray (uint8) {
  18472. var tmp
  18473. var len = uint8.length
  18474. var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
  18475. var parts = []
  18476. var maxChunkLength = 16383 // must be multiple of 3
  18477. // go through the array every three bytes, we'll deal with trailing stuff later
  18478. for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
  18479. parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
  18480. }
  18481. // pad the end with zeros, but make sure to not forget the extra bytes
  18482. if (extraBytes === 1) {
  18483. tmp = uint8[len - 1]
  18484. parts.push(
  18485. lookup[tmp >> 2] +
  18486. lookup[(tmp << 4) & 0x3F] +
  18487. '=='
  18488. )
  18489. } else if (extraBytes === 2) {
  18490. tmp = (uint8[len - 2] << 8) + uint8[len - 1]
  18491. parts.push(
  18492. lookup[tmp >> 10] +
  18493. lookup[(tmp >> 4) & 0x3F] +
  18494. lookup[(tmp << 2) & 0x3F] +
  18495. '='
  18496. )
  18497. }
  18498. return parts.join('')
  18499. }
  18500. /***/ }),
  18501. /***/ 53:
  18502. /*!***************************************!*\
  18503. !*** ./node_modules/ieee754/index.js ***!
  18504. \***************************************/
  18505. /*! no static exports found */
  18506. /***/ (function(module, exports) {
  18507. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  18508. exports.read = function (buffer, offset, isLE, mLen, nBytes) {
  18509. var e, m
  18510. var eLen = (nBytes * 8) - mLen - 1
  18511. var eMax = (1 << eLen) - 1
  18512. var eBias = eMax >> 1
  18513. var nBits = -7
  18514. var i = isLE ? (nBytes - 1) : 0
  18515. var d = isLE ? -1 : 1
  18516. var s = buffer[offset + i]
  18517. i += d
  18518. e = s & ((1 << (-nBits)) - 1)
  18519. s >>= (-nBits)
  18520. nBits += eLen
  18521. for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  18522. m = e & ((1 << (-nBits)) - 1)
  18523. e >>= (-nBits)
  18524. nBits += mLen
  18525. for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  18526. if (e === 0) {
  18527. e = 1 - eBias
  18528. } else if (e === eMax) {
  18529. return m ? NaN : ((s ? -1 : 1) * Infinity)
  18530. } else {
  18531. m = m + Math.pow(2, mLen)
  18532. e = e - eBias
  18533. }
  18534. return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
  18535. }
  18536. exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
  18537. var e, m, c
  18538. var eLen = (nBytes * 8) - mLen - 1
  18539. var eMax = (1 << eLen) - 1
  18540. var eBias = eMax >> 1
  18541. var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
  18542. var i = isLE ? 0 : (nBytes - 1)
  18543. var d = isLE ? 1 : -1
  18544. var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
  18545. value = Math.abs(value)
  18546. if (isNaN(value) || value === Infinity) {
  18547. m = isNaN(value) ? 1 : 0
  18548. e = eMax
  18549. } else {
  18550. e = Math.floor(Math.log(value) / Math.LN2)
  18551. if (value * (c = Math.pow(2, -e)) < 1) {
  18552. e--
  18553. c *= 2
  18554. }
  18555. if (e + eBias >= 1) {
  18556. value += rt / c
  18557. } else {
  18558. value += rt * Math.pow(2, 1 - eBias)
  18559. }
  18560. if (value * c >= 2) {
  18561. e++
  18562. c /= 2
  18563. }
  18564. if (e + eBias >= eMax) {
  18565. m = 0
  18566. e = eMax
  18567. } else if (e + eBias >= 1) {
  18568. m = ((value * c) - 1) * Math.pow(2, mLen)
  18569. e = e + eBias
  18570. } else {
  18571. m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
  18572. e = 0
  18573. }
  18574. }
  18575. for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
  18576. e = (e << mLen) | m
  18577. eLen += mLen
  18578. for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
  18579. buffer[offset + i - d] |= s * 128
  18580. }
  18581. /***/ }),
  18582. /***/ 54:
  18583. /*!***************************************!*\
  18584. !*** ./node_modules/isarray/index.js ***!
  18585. \***************************************/
  18586. /*! no static exports found */
  18587. /***/ (function(module, exports) {
  18588. var toString = {}.toString;
  18589. module.exports = Array.isArray || function (arr) {
  18590. return toString.call(arr) == '[object Array]';
  18591. };
  18592. /***/ }),
  18593. /***/ 55:
  18594. /*!****************************************************************!*\
  18595. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/util/route.js ***!
  18596. \****************************************************************/
  18597. /*! no static exports found */
  18598. /***/ (function(module, exports, __webpack_require__) {
  18599. "use strict";
  18600. /* WEBPACK VAR INJECTION */(function(uni) {
  18601. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  18602. Object.defineProperty(exports, "__esModule", {
  18603. value: true
  18604. });
  18605. exports.default = void 0;
  18606. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 56));
  18607. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 58));
  18608. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  18609. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  18610. /**
  18611. * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
  18612. * 并且带有路由拦截功能
  18613. */
  18614. var Router = /*#__PURE__*/function () {
  18615. function Router() {
  18616. (0, _classCallCheck2.default)(this, Router);
  18617. // 原始属性定义
  18618. this.config = {
  18619. type: 'navigateTo',
  18620. url: '',
  18621. delta: 1,
  18622. // navigateBack页面后退时,回退的层数
  18623. params: {},
  18624. // 传递的参数
  18625. animationType: 'pop-in',
  18626. // 窗口动画,只在APP有效
  18627. animationDuration: 300,
  18628. // 窗口动画持续时间,单位毫秒,只在APP有效
  18629. intercept: false // 是否需要拦截
  18630. };
  18631. // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
  18632. // 这里在构造函数中进行this绑定
  18633. this.route = this.route.bind(this);
  18634. }
  18635. // 判断url前面是否有"/",如果没有则加上,否则无法跳转
  18636. (0, _createClass2.default)(Router, [{
  18637. key: "addRootPath",
  18638. value: function addRootPath(url) {
  18639. return url[0] === '/' ? url : "/".concat(url);
  18640. }
  18641. // 整合路由参数
  18642. }, {
  18643. key: "mixinParam",
  18644. value: function mixinParam(url, params) {
  18645. url = url && this.addRootPath(url);
  18646. // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
  18647. // 如果有url中有get参数,转换后无需带上"?"
  18648. var query = '';
  18649. if (/.*\/.*\?.*=.*/.test(url)) {
  18650. // object对象转为get类型的参数
  18651. query = uni.$u.queryParams(params, false);
  18652. // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
  18653. return url += "&".concat(query);
  18654. }
  18655. // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
  18656. query = uni.$u.queryParams(params);
  18657. return url += query;
  18658. }
  18659. // 对外的方法名称
  18660. }, {
  18661. key: "route",
  18662. value: function () {
  18663. var _route = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  18664. var options,
  18665. params,
  18666. mergeConfig,
  18667. isNext,
  18668. _args = arguments;
  18669. return _regenerator.default.wrap(function _callee$(_context) {
  18670. while (1) {
  18671. switch (_context.prev = _context.next) {
  18672. case 0:
  18673. options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
  18674. params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
  18675. // 合并用户的配置和内部的默认配置
  18676. mergeConfig = {};
  18677. if (typeof options === 'string') {
  18678. // 如果options为字符串,则为route(url, params)的形式
  18679. mergeConfig.url = this.mixinParam(options, params);
  18680. mergeConfig.type = 'navigateTo';
  18681. } else {
  18682. mergeConfig = uni.$u.deepMerge(this.config, options);
  18683. // 否则正常使用mergeConfig中的url和params进行拼接
  18684. mergeConfig.url = this.mixinParam(options.url, options.params);
  18685. }
  18686. // 如果本次跳转的路径和本页面路径一致,不执行跳转,防止用户快速点击跳转按钮,造成多次跳转同一个页面的问题
  18687. if (!(mergeConfig.url === uni.$u.page())) {
  18688. _context.next = 6;
  18689. break;
  18690. }
  18691. return _context.abrupt("return");
  18692. case 6:
  18693. if (params.intercept) {
  18694. this.config.intercept = params.intercept;
  18695. }
  18696. // params参数也带给拦截器
  18697. mergeConfig.params = params;
  18698. // 合并内外部参数
  18699. mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
  18700. // 判断用户是否定义了拦截器
  18701. if (!(typeof uni.$u.routeIntercept === 'function')) {
  18702. _context.next = 16;
  18703. break;
  18704. }
  18705. _context.next = 12;
  18706. return new Promise(function (resolve, reject) {
  18707. uni.$u.routeIntercept(mergeConfig, resolve);
  18708. });
  18709. case 12:
  18710. isNext = _context.sent;
  18711. // 如果isNext为true,则执行路由跳转
  18712. isNext && this.openPage(mergeConfig);
  18713. _context.next = 17;
  18714. break;
  18715. case 16:
  18716. this.openPage(mergeConfig);
  18717. case 17:
  18718. case "end":
  18719. return _context.stop();
  18720. }
  18721. }
  18722. }, _callee, this);
  18723. }));
  18724. function route() {
  18725. return _route.apply(this, arguments);
  18726. }
  18727. return route;
  18728. }() // 执行路由跳转
  18729. }, {
  18730. key: "openPage",
  18731. value: function openPage(config) {
  18732. // 解构参数
  18733. var url = config.url,
  18734. type = config.type,
  18735. delta = config.delta,
  18736. animationType = config.animationType,
  18737. animationDuration = config.animationDuration;
  18738. if (config.type == 'navigateTo' || config.type == 'to') {
  18739. uni.navigateTo({
  18740. url: url,
  18741. animationType: animationType,
  18742. animationDuration: animationDuration
  18743. });
  18744. }
  18745. if (config.type == 'redirectTo' || config.type == 'redirect') {
  18746. uni.redirectTo({
  18747. url: url
  18748. });
  18749. }
  18750. if (config.type == 'switchTab' || config.type == 'tab') {
  18751. uni.switchTab({
  18752. url: url
  18753. });
  18754. }
  18755. if (config.type == 'reLaunch' || config.type == 'launch') {
  18756. uni.reLaunch({
  18757. url: url
  18758. });
  18759. }
  18760. if (config.type == 'navigateBack' || config.type == 'back') {
  18761. uni.navigateBack({
  18762. delta: delta
  18763. });
  18764. }
  18765. }
  18766. }]);
  18767. return Router;
  18768. }();
  18769. var _default = new Router().route;
  18770. exports.default = _default;
  18771. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18772. /***/ }),
  18773. /***/ 56:
  18774. /*!************************************************************************************************!*\
  18775. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  18776. \************************************************************************************************/
  18777. /*! no static exports found */
  18778. /***/ (function(module, exports, __webpack_require__) {
  18779. // TODO(Babel 8): Remove this file.
  18780. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 57)();
  18781. module.exports = runtime;
  18782. /***/ }),
  18783. /***/ 57:
  18784. /*!*******************************************************************!*\
  18785. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  18786. \*******************************************************************/
  18787. /*! no static exports found */
  18788. /***/ (function(module, exports, __webpack_require__) {
  18789. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  18790. function _regeneratorRuntime() {
  18791. "use strict";
  18792. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  18793. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  18794. return e;
  18795. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18796. var t,
  18797. e = {},
  18798. r = Object.prototype,
  18799. n = r.hasOwnProperty,
  18800. o = Object.defineProperty || function (t, e, r) {
  18801. t[e] = r.value;
  18802. },
  18803. i = "function" == typeof Symbol ? Symbol : {},
  18804. a = i.iterator || "@@iterator",
  18805. c = i.asyncIterator || "@@asyncIterator",
  18806. u = i.toStringTag || "@@toStringTag";
  18807. function define(t, e, r) {
  18808. return Object.defineProperty(t, e, {
  18809. value: r,
  18810. enumerable: !0,
  18811. configurable: !0,
  18812. writable: !0
  18813. }), t[e];
  18814. }
  18815. try {
  18816. define({}, "");
  18817. } catch (t) {
  18818. define = function define(t, e, r) {
  18819. return t[e] = r;
  18820. };
  18821. }
  18822. function wrap(t, e, r, n) {
  18823. var i = e && e.prototype instanceof Generator ? e : Generator,
  18824. a = Object.create(i.prototype),
  18825. c = new Context(n || []);
  18826. return o(a, "_invoke", {
  18827. value: makeInvokeMethod(t, r, c)
  18828. }), a;
  18829. }
  18830. function tryCatch(t, e, r) {
  18831. try {
  18832. return {
  18833. type: "normal",
  18834. arg: t.call(e, r)
  18835. };
  18836. } catch (t) {
  18837. return {
  18838. type: "throw",
  18839. arg: t
  18840. };
  18841. }
  18842. }
  18843. e.wrap = wrap;
  18844. var h = "suspendedStart",
  18845. l = "suspendedYield",
  18846. f = "executing",
  18847. s = "completed",
  18848. y = {};
  18849. function Generator() {}
  18850. function GeneratorFunction() {}
  18851. function GeneratorFunctionPrototype() {}
  18852. var p = {};
  18853. define(p, a, function () {
  18854. return this;
  18855. });
  18856. var d = Object.getPrototypeOf,
  18857. v = d && d(d(values([])));
  18858. v && v !== r && n.call(v, a) && (p = v);
  18859. var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
  18860. function defineIteratorMethods(t) {
  18861. ["next", "throw", "return"].forEach(function (e) {
  18862. define(t, e, function (t) {
  18863. return this._invoke(e, t);
  18864. });
  18865. });
  18866. }
  18867. function AsyncIterator(t, e) {
  18868. function invoke(r, o, i, a) {
  18869. var c = tryCatch(t[r], t, o);
  18870. if ("throw" !== c.type) {
  18871. var u = c.arg,
  18872. h = u.value;
  18873. return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
  18874. invoke("next", t, i, a);
  18875. }, function (t) {
  18876. invoke("throw", t, i, a);
  18877. }) : e.resolve(h).then(function (t) {
  18878. u.value = t, i(u);
  18879. }, function (t) {
  18880. return invoke("throw", t, i, a);
  18881. });
  18882. }
  18883. a(c.arg);
  18884. }
  18885. var r;
  18886. o(this, "_invoke", {
  18887. value: function value(t, n) {
  18888. function callInvokeWithMethodAndArg() {
  18889. return new e(function (e, r) {
  18890. invoke(t, n, e, r);
  18891. });
  18892. }
  18893. return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  18894. }
  18895. });
  18896. }
  18897. function makeInvokeMethod(e, r, n) {
  18898. var o = h;
  18899. return function (i, a) {
  18900. if (o === f) throw Error("Generator is already running");
  18901. if (o === s) {
  18902. if ("throw" === i) throw a;
  18903. return {
  18904. value: t,
  18905. done: !0
  18906. };
  18907. }
  18908. for (n.method = i, n.arg = a;;) {
  18909. var c = n.delegate;
  18910. if (c) {
  18911. var u = maybeInvokeDelegate(c, n);
  18912. if (u) {
  18913. if (u === y) continue;
  18914. return u;
  18915. }
  18916. }
  18917. if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
  18918. if (o === h) throw o = s, n.arg;
  18919. n.dispatchException(n.arg);
  18920. } else "return" === n.method && n.abrupt("return", n.arg);
  18921. o = f;
  18922. var p = tryCatch(e, r, n);
  18923. if ("normal" === p.type) {
  18924. if (o = n.done ? s : l, p.arg === y) continue;
  18925. return {
  18926. value: p.arg,
  18927. done: n.done
  18928. };
  18929. }
  18930. "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
  18931. }
  18932. };
  18933. }
  18934. function maybeInvokeDelegate(e, r) {
  18935. var n = r.method,
  18936. o = e.iterator[n];
  18937. 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;
  18938. var i = tryCatch(o, e.iterator, r.arg);
  18939. if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
  18940. var a = i.arg;
  18941. 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);
  18942. }
  18943. function pushTryEntry(t) {
  18944. var e = {
  18945. tryLoc: t[0]
  18946. };
  18947. 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
  18948. }
  18949. function resetTryEntry(t) {
  18950. var e = t.completion || {};
  18951. e.type = "normal", delete e.arg, t.completion = e;
  18952. }
  18953. function Context(t) {
  18954. this.tryEntries = [{
  18955. tryLoc: "root"
  18956. }], t.forEach(pushTryEntry, this), this.reset(!0);
  18957. }
  18958. function values(e) {
  18959. if (e || "" === e) {
  18960. var r = e[a];
  18961. if (r) return r.call(e);
  18962. if ("function" == typeof e.next) return e;
  18963. if (!isNaN(e.length)) {
  18964. var o = -1,
  18965. i = function next() {
  18966. for (; ++o < e.length;) {
  18967. if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
  18968. }
  18969. return next.value = t, next.done = !0, next;
  18970. };
  18971. return i.next = i;
  18972. }
  18973. }
  18974. throw new TypeError(_typeof(e) + " is not iterable");
  18975. }
  18976. return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
  18977. value: GeneratorFunctionPrototype,
  18978. configurable: !0
  18979. }), o(GeneratorFunctionPrototype, "constructor", {
  18980. value: GeneratorFunction,
  18981. configurable: !0
  18982. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
  18983. var e = "function" == typeof t && t.constructor;
  18984. return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
  18985. }, e.mark = function (t) {
  18986. return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
  18987. }, e.awrap = function (t) {
  18988. return {
  18989. __await: t
  18990. };
  18991. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
  18992. return this;
  18993. }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
  18994. void 0 === i && (i = Promise);
  18995. var a = new AsyncIterator(wrap(t, r, n, o), i);
  18996. return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
  18997. return t.done ? t.value : a.next();
  18998. });
  18999. }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
  19000. return this;
  19001. }), define(g, "toString", function () {
  19002. return "[object Generator]";
  19003. }), e.keys = function (t) {
  19004. var e = Object(t),
  19005. r = [];
  19006. for (var n in e) {
  19007. r.push(n);
  19008. }
  19009. return r.reverse(), function next() {
  19010. for (; r.length;) {
  19011. var t = r.pop();
  19012. if (t in e) return next.value = t, next.done = !1, next;
  19013. }
  19014. return next.done = !0, next;
  19015. };
  19016. }, e.values = values, Context.prototype = {
  19017. constructor: Context,
  19018. reset: function reset(e) {
  19019. 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) {
  19020. "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
  19021. }
  19022. },
  19023. stop: function stop() {
  19024. this.done = !0;
  19025. var t = this.tryEntries[0].completion;
  19026. if ("throw" === t.type) throw t.arg;
  19027. return this.rval;
  19028. },
  19029. dispatchException: function dispatchException(e) {
  19030. if (this.done) throw e;
  19031. var r = this;
  19032. function handle(n, o) {
  19033. return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
  19034. }
  19035. for (var o = this.tryEntries.length - 1; o >= 0; --o) {
  19036. var i = this.tryEntries[o],
  19037. a = i.completion;
  19038. if ("root" === i.tryLoc) return handle("end");
  19039. if (i.tryLoc <= this.prev) {
  19040. var c = n.call(i, "catchLoc"),
  19041. u = n.call(i, "finallyLoc");
  19042. if (c && u) {
  19043. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  19044. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  19045. } else if (c) {
  19046. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  19047. } else {
  19048. if (!u) throw Error("try statement without catch or finally");
  19049. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  19050. }
  19051. }
  19052. }
  19053. },
  19054. abrupt: function abrupt(t, e) {
  19055. for (var r = this.tryEntries.length - 1; r >= 0; --r) {
  19056. var o = this.tryEntries[r];
  19057. if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
  19058. var i = o;
  19059. break;
  19060. }
  19061. }
  19062. i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
  19063. var a = i ? i.completion : {};
  19064. return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
  19065. },
  19066. complete: function complete(t, e) {
  19067. if ("throw" === t.type) throw t.arg;
  19068. 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;
  19069. },
  19070. finish: function finish(t) {
  19071. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  19072. var r = this.tryEntries[e];
  19073. if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
  19074. }
  19075. },
  19076. "catch": function _catch(t) {
  19077. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  19078. var r = this.tryEntries[e];
  19079. if (r.tryLoc === t) {
  19080. var n = r.completion;
  19081. if ("throw" === n.type) {
  19082. var o = n.arg;
  19083. resetTryEntry(r);
  19084. }
  19085. return o;
  19086. }
  19087. }
  19088. throw Error("illegal catch attempt");
  19089. },
  19090. delegateYield: function delegateYield(e, r, n) {
  19091. return this.delegate = {
  19092. iterator: values(e),
  19093. resultName: r,
  19094. nextLoc: n
  19095. }, "next" === this.method && (this.arg = t), y;
  19096. }
  19097. }, e;
  19098. }
  19099. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  19100. /***/ }),
  19101. /***/ 58:
  19102. /*!*****************************************************************!*\
  19103. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  19104. \*****************************************************************/
  19105. /*! no static exports found */
  19106. /***/ (function(module, exports) {
  19107. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  19108. try {
  19109. var info = gen[key](arg);
  19110. var value = info.value;
  19111. } catch (error) {
  19112. reject(error);
  19113. return;
  19114. }
  19115. if (info.done) {
  19116. resolve(value);
  19117. } else {
  19118. Promise.resolve(value).then(_next, _throw);
  19119. }
  19120. }
  19121. function _asyncToGenerator(fn) {
  19122. return function () {
  19123. var self = this,
  19124. args = arguments;
  19125. return new Promise(function (resolve, reject) {
  19126. var gen = fn.apply(self, args);
  19127. function _next(value) {
  19128. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  19129. }
  19130. function _throw(err) {
  19131. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  19132. }
  19133. _next(undefined);
  19134. });
  19135. };
  19136. }
  19137. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  19138. /***/ }),
  19139. /***/ 59:
  19140. /*!****************************************************************************!*\
  19141. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/function/colorGradient.js ***!
  19142. \****************************************************************************/
  19143. /*! no static exports found */
  19144. /***/ (function(module, exports, __webpack_require__) {
  19145. "use strict";
  19146. Object.defineProperty(exports, "__esModule", {
  19147. value: true
  19148. });
  19149. exports.default = void 0;
  19150. /**
  19151. * 求两个颜色之间的渐变值
  19152. * @param {string} startColor 开始的颜色
  19153. * @param {string} endColor 结束的颜色
  19154. * @param {number} step 颜色等分的份额
  19155. * */
  19156. function colorGradient() {
  19157. var startColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'rgb(0, 0, 0)';
  19158. var endColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rgb(255, 255, 255)';
  19159. var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
  19160. var startRGB = hexToRgb(startColor, false); // 转换为rgb数组模式
  19161. var startR = startRGB[0];
  19162. var startG = startRGB[1];
  19163. var startB = startRGB[2];
  19164. var endRGB = hexToRgb(endColor, false);
  19165. var endR = endRGB[0];
  19166. var endG = endRGB[1];
  19167. var endB = endRGB[2];
  19168. var sR = (endR - startR) / step; // 总差值
  19169. var sG = (endG - startG) / step;
  19170. var sB = (endB - startB) / step;
  19171. var colorArr = [];
  19172. for (var i = 0; i < step; i++) {
  19173. // 计算每一步的hex值
  19174. var hex = rgbToHex("rgb(".concat(Math.round(sR * i + startR), ",").concat(Math.round(sG * i + startG), ",").concat(Math.round(sB * i + startB), ")"));
  19175. // 确保第一个颜色值为startColor的值
  19176. if (i === 0) hex = rgbToHex(startColor);
  19177. // 确保最后一个颜色值为endColor的值
  19178. if (i === step - 1) hex = rgbToHex(endColor);
  19179. colorArr.push(hex);
  19180. }
  19181. return colorArr;
  19182. }
  19183. // 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
  19184. function hexToRgb(sColor) {
  19185. var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  19186. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  19187. sColor = String(sColor).toLowerCase();
  19188. if (sColor && reg.test(sColor)) {
  19189. if (sColor.length === 4) {
  19190. var sColorNew = '#';
  19191. for (var i = 1; i < 4; i += 1) {
  19192. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  19193. }
  19194. sColor = sColorNew;
  19195. }
  19196. // 处理六位的颜色值
  19197. var sColorChange = [];
  19198. for (var _i = 1; _i < 7; _i += 2) {
  19199. sColorChange.push(parseInt("0x".concat(sColor.slice(_i, _i + 2))));
  19200. }
  19201. if (!str) {
  19202. return sColorChange;
  19203. }
  19204. return "rgb(".concat(sColorChange[0], ",").concat(sColorChange[1], ",").concat(sColorChange[2], ")");
  19205. }
  19206. if (/^(rgb|RGB)/.test(sColor)) {
  19207. var arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  19208. return arr.map(function (val) {
  19209. return Number(val);
  19210. });
  19211. }
  19212. return sColor;
  19213. }
  19214. // 将rgb表示方式转换为hex表示方式
  19215. function rgbToHex(rgb) {
  19216. var _this = rgb;
  19217. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  19218. if (/^(rgb|RGB)/.test(_this)) {
  19219. var aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  19220. var strHex = '#';
  19221. for (var i = 0; i < aColor.length; i++) {
  19222. var hex = Number(aColor[i]).toString(16);
  19223. hex = String(hex).length == 1 ? "".concat(0, hex) : hex; // 保证每个rgb的值为2位
  19224. if (hex === '0') {
  19225. hex += hex;
  19226. }
  19227. strHex += hex;
  19228. }
  19229. if (strHex.length !== 7) {
  19230. strHex = _this;
  19231. }
  19232. return strHex;
  19233. }
  19234. if (reg.test(_this)) {
  19235. var aNum = _this.replace(/#/, '').split('');
  19236. if (aNum.length === 6) {
  19237. return _this;
  19238. }
  19239. if (aNum.length === 3) {
  19240. var numHex = '#';
  19241. for (var _i2 = 0; _i2 < aNum.length; _i2 += 1) {
  19242. numHex += aNum[_i2] + aNum[_i2];
  19243. }
  19244. return numHex;
  19245. }
  19246. } else {
  19247. return _this;
  19248. }
  19249. }
  19250. /**
  19251. * JS颜色十六进制转换为rgb或rgba,返回的格式为 rgba(255,255,255,0.5)字符串
  19252. * sHex为传入的十六进制的色值
  19253. * alpha为rgba的透明度
  19254. */
  19255. function colorToRgba(color, alpha) {
  19256. color = rgbToHex(color);
  19257. // 十六进制颜色值的正则表达式
  19258. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  19259. /* 16进制颜色转为RGB格式 */
  19260. var sColor = String(color).toLowerCase();
  19261. if (sColor && reg.test(sColor)) {
  19262. if (sColor.length === 4) {
  19263. var sColorNew = '#';
  19264. for (var i = 1; i < 4; i += 1) {
  19265. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  19266. }
  19267. sColor = sColorNew;
  19268. }
  19269. // 处理六位的颜色值
  19270. var sColorChange = [];
  19271. for (var _i3 = 1; _i3 < 7; _i3 += 2) {
  19272. sColorChange.push(parseInt("0x".concat(sColor.slice(_i3, _i3 + 2))));
  19273. }
  19274. // return sColorChange.join(',')
  19275. return "rgba(".concat(sColorChange.join(','), ",").concat(alpha, ")");
  19276. }
  19277. return sColor;
  19278. }
  19279. var _default = {
  19280. colorGradient: colorGradient,
  19281. hexToRgb: hexToRgb,
  19282. rgbToHex: rgbToHex,
  19283. colorToRgba: colorToRgba
  19284. };
  19285. exports.default = _default;
  19286. /***/ }),
  19287. /***/ 6:
  19288. /*!***************************************************************!*\
  19289. !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  19290. \***************************************************************/
  19291. /*! no static exports found */
  19292. /***/ (function(module, exports) {
  19293. function _arrayWithHoles(arr) {
  19294. if (Array.isArray(arr)) return arr;
  19295. }
  19296. module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  19297. /***/ }),
  19298. /***/ 60:
  19299. /*!*******************************************************************!*\
  19300. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/function/test.js ***!
  19301. \*******************************************************************/
  19302. /*! no static exports found */
  19303. /***/ (function(module, exports, __webpack_require__) {
  19304. "use strict";
  19305. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  19306. Object.defineProperty(exports, "__esModule", {
  19307. value: true
  19308. });
  19309. exports.default = void 0;
  19310. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  19311. /**
  19312. * 验证电子邮箱格式
  19313. */
  19314. function email(value) {
  19315. return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
  19316. }
  19317. /**
  19318. * 验证手机格式
  19319. */
  19320. function mobile(value) {
  19321. return /^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/.test(value);
  19322. }
  19323. /**
  19324. * 验证URL格式
  19325. */
  19326. function url(value) {
  19327. 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);
  19328. }
  19329. /**
  19330. * 验证日期格式
  19331. */
  19332. function date(value) {
  19333. if (!value) return false;
  19334. // 判断是否数值或者字符串数值(意味着为时间戳),转为数值,否则new Date无法识别字符串时间戳
  19335. if (number(value)) value = +value;
  19336. return !/Invalid|NaN/.test(new Date(value).toString());
  19337. }
  19338. /**
  19339. * 验证ISO类型的日期格式
  19340. */
  19341. function dateISO(value) {
  19342. return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
  19343. }
  19344. /**
  19345. * 验证十进制数字
  19346. */
  19347. function number(value) {
  19348. return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value);
  19349. }
  19350. /**
  19351. * 验证字符串
  19352. */
  19353. function string(value) {
  19354. return typeof value === 'string';
  19355. }
  19356. /**
  19357. * 验证整数
  19358. */
  19359. function digits(value) {
  19360. return /^\d+$/.test(value);
  19361. }
  19362. /**
  19363. * 验证身份证号码
  19364. */
  19365. function idCard(value) {
  19366. 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);
  19367. }
  19368. /**
  19369. * 是否车牌号
  19370. */
  19371. function carNo(value) {
  19372. // 新能源车牌
  19373. var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
  19374. // 旧车牌
  19375. var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
  19376. if (value.length === 7) {
  19377. return creg.test(value);
  19378. }
  19379. if (value.length === 8) {
  19380. return xreg.test(value);
  19381. }
  19382. return false;
  19383. }
  19384. /**
  19385. * 金额,只允许2位小数
  19386. */
  19387. function amount(value) {
  19388. // 金额,只允许保留两位小数
  19389. return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
  19390. }
  19391. /**
  19392. * 中文
  19393. */
  19394. function chinese(value) {
  19395. var reg = /^[\u4e00-\u9fa5]+$/gi;
  19396. return reg.test(value);
  19397. }
  19398. /**
  19399. * 只能输入字母
  19400. */
  19401. function letter(value) {
  19402. return /^[a-zA-Z]*$/.test(value);
  19403. }
  19404. /**
  19405. * 只能是字母或者数字
  19406. */
  19407. function enOrNum(value) {
  19408. // 英文或者数字
  19409. var reg = /^[0-9a-zA-Z]*$/g;
  19410. return reg.test(value);
  19411. }
  19412. /**
  19413. * 验证是否包含某个值
  19414. */
  19415. function contains(value, param) {
  19416. return value.indexOf(param) >= 0;
  19417. }
  19418. /**
  19419. * 验证一个值范围[min, max]
  19420. */
  19421. function range(value, param) {
  19422. return value >= param[0] && value <= param[1];
  19423. }
  19424. /**
  19425. * 验证一个长度范围[min, max]
  19426. */
  19427. function rangeLength(value, param) {
  19428. return value.length >= param[0] && value.length <= param[1];
  19429. }
  19430. /**
  19431. * 是否固定电话
  19432. */
  19433. function landline(value) {
  19434. var reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
  19435. return reg.test(value);
  19436. }
  19437. /**
  19438. * 判断是否为空
  19439. */
  19440. function empty(value) {
  19441. switch ((0, _typeof2.default)(value)) {
  19442. case 'undefined':
  19443. return true;
  19444. case 'string':
  19445. if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true;
  19446. break;
  19447. case 'boolean':
  19448. if (!value) return true;
  19449. break;
  19450. case 'number':
  19451. if (value === 0 || isNaN(value)) return true;
  19452. break;
  19453. case 'object':
  19454. if (value === null || value.length === 0) return true;
  19455. for (var i in value) {
  19456. return false;
  19457. }
  19458. return true;
  19459. }
  19460. return false;
  19461. }
  19462. /**
  19463. * 是否json字符串
  19464. */
  19465. function jsonString(value) {
  19466. if (typeof value === 'string') {
  19467. try {
  19468. var obj = JSON.parse(value);
  19469. if ((0, _typeof2.default)(obj) === 'object' && obj) {
  19470. return true;
  19471. }
  19472. return false;
  19473. } catch (e) {
  19474. return false;
  19475. }
  19476. }
  19477. return false;
  19478. }
  19479. /**
  19480. * 是否数组
  19481. */
  19482. function array(value) {
  19483. if (typeof Array.isArray === 'function') {
  19484. return Array.isArray(value);
  19485. }
  19486. return Object.prototype.toString.call(value) === '[object Array]';
  19487. }
  19488. /**
  19489. * 是否对象
  19490. */
  19491. function object(value) {
  19492. return Object.prototype.toString.call(value) === '[object Object]';
  19493. }
  19494. /**
  19495. * 是否短信验证码
  19496. */
  19497. function code(value) {
  19498. var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  19499. return new RegExp("^\\d{".concat(len, "}$")).test(value);
  19500. }
  19501. /**
  19502. * 是否函数方法
  19503. * @param {Object} value
  19504. */
  19505. function func(value) {
  19506. return typeof value === 'function';
  19507. }
  19508. /**
  19509. * 是否promise对象
  19510. * @param {Object} value
  19511. */
  19512. function promise(value) {
  19513. return object(value) && func(value.then) && func(value.catch);
  19514. }
  19515. /** 是否图片格式
  19516. * @param {Object} value
  19517. */
  19518. function image(value) {
  19519. var newValue = value.split('?')[0];
  19520. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  19521. return IMAGE_REGEXP.test(newValue);
  19522. }
  19523. /**
  19524. * 是否视频格式
  19525. * @param {Object} value
  19526. */
  19527. function video(value) {
  19528. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;
  19529. return VIDEO_REGEXP.test(value);
  19530. }
  19531. /**
  19532. * 是否为正则对象
  19533. * @param {Object}
  19534. * @return {Boolean}
  19535. */
  19536. function regExp(o) {
  19537. return o && Object.prototype.toString.call(o) === '[object RegExp]';
  19538. }
  19539. var _default = {
  19540. email: email,
  19541. mobile: mobile,
  19542. url: url,
  19543. date: date,
  19544. dateISO: dateISO,
  19545. number: number,
  19546. digits: digits,
  19547. idCard: idCard,
  19548. carNo: carNo,
  19549. amount: amount,
  19550. chinese: chinese,
  19551. letter: letter,
  19552. enOrNum: enOrNum,
  19553. contains: contains,
  19554. range: range,
  19555. rangeLength: rangeLength,
  19556. empty: empty,
  19557. isEmpty: empty,
  19558. jsonString: jsonString,
  19559. landline: landline,
  19560. object: object,
  19561. array: array,
  19562. code: code,
  19563. func: func,
  19564. promise: promise,
  19565. video: video,
  19566. image: image,
  19567. regExp: regExp,
  19568. string: string
  19569. };
  19570. exports.default = _default;
  19571. /***/ }),
  19572. /***/ 61:
  19573. /*!***********************************************************************!*\
  19574. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/function/debounce.js ***!
  19575. \***********************************************************************/
  19576. /*! no static exports found */
  19577. /***/ (function(module, exports, __webpack_require__) {
  19578. "use strict";
  19579. Object.defineProperty(exports, "__esModule", {
  19580. value: true
  19581. });
  19582. exports.default = void 0;
  19583. var timeout = null;
  19584. /**
  19585. * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
  19586. *
  19587. * @param {Function} func 要执行的回调函数
  19588. * @param {Number} wait 延时的时间
  19589. * @param {Boolean} immediate 是否立即执行
  19590. * @return null
  19591. */
  19592. function debounce(func) {
  19593. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  19594. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  19595. // 清除定时器
  19596. if (timeout !== null) clearTimeout(timeout);
  19597. // 立即执行,此类情况一般用不到
  19598. if (immediate) {
  19599. var callNow = !timeout;
  19600. timeout = setTimeout(function () {
  19601. timeout = null;
  19602. }, wait);
  19603. if (callNow) typeof func === 'function' && func();
  19604. } else {
  19605. // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
  19606. timeout = setTimeout(function () {
  19607. typeof func === 'function' && func();
  19608. }, wait);
  19609. }
  19610. }
  19611. var _default = debounce;
  19612. exports.default = _default;
  19613. /***/ }),
  19614. /***/ 62:
  19615. /*!***********************************************************************!*\
  19616. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/function/throttle.js ***!
  19617. \***********************************************************************/
  19618. /*! no static exports found */
  19619. /***/ (function(module, exports, __webpack_require__) {
  19620. "use strict";
  19621. Object.defineProperty(exports, "__esModule", {
  19622. value: true
  19623. });
  19624. exports.default = void 0;
  19625. var timer;
  19626. var flag;
  19627. /**
  19628. * 节流原理:在一定时间内,只能触发一次
  19629. *
  19630. * @param {Function} func 要执行的回调函数
  19631. * @param {Number} wait 延时的时间
  19632. * @param {Boolean} immediate 是否立即执行
  19633. * @return null
  19634. */
  19635. function throttle(func) {
  19636. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  19637. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  19638. if (immediate) {
  19639. if (!flag) {
  19640. flag = true;
  19641. // 如果是立即执行,则在wait毫秒内开始时执行
  19642. typeof func === 'function' && func();
  19643. timer = setTimeout(function () {
  19644. flag = false;
  19645. }, wait);
  19646. }
  19647. } else if (!flag) {
  19648. flag = true;
  19649. // 如果是非立即执行,则在wait毫秒内的结束处执行
  19650. timer = setTimeout(function () {
  19651. flag = false;
  19652. typeof func === 'function' && func();
  19653. }, wait);
  19654. }
  19655. }
  19656. var _default = throttle;
  19657. exports.default = _default;
  19658. /***/ }),
  19659. /***/ 63:
  19660. /*!********************************************************************!*\
  19661. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/function/index.js ***!
  19662. \********************************************************************/
  19663. /*! no static exports found */
  19664. /***/ (function(module, exports, __webpack_require__) {
  19665. "use strict";
  19666. /* WEBPACK VAR INJECTION */(function(uni) {
  19667. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  19668. Object.defineProperty(exports, "__esModule", {
  19669. value: true
  19670. });
  19671. exports.default = void 0;
  19672. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  19673. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  19674. var _test = _interopRequireDefault(__webpack_require__(/*! ./test.js */ 60));
  19675. var _digit = __webpack_require__(/*! ./digit.js */ 64);
  19676. /**
  19677. * @description 如果value小于min,取min;如果value大于max,取max
  19678. * @param {number} min
  19679. * @param {number} max
  19680. * @param {number} value
  19681. */
  19682. function range() {
  19683. var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  19684. var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  19685. var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
  19686. return Math.max(min, Math.min(max, Number(value)));
  19687. }
  19688. /**
  19689. * @description 用于获取用户传递值的px值 如果用户传递了"xxpx"或者"xxrpx",取出其数值部分,如果是"xxxrpx"还需要用过uni.upx2px进行转换
  19690. * @param {number|string} value 用户传递值的px值
  19691. * @param {boolean} unit
  19692. * @returns {number|string}
  19693. */
  19694. function getPx(value) {
  19695. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  19696. if (_test.default.number(value)) {
  19697. return unit ? "".concat(value, "px") : Number(value);
  19698. }
  19699. // 如果带有rpx,先取出其数值部分,再转为px值
  19700. if (/(rpx|upx)$/.test(value)) {
  19701. return unit ? "".concat(uni.upx2px(parseInt(value)), "px") : Number(uni.upx2px(parseInt(value)));
  19702. }
  19703. return unit ? "".concat(parseInt(value), "px") : parseInt(value);
  19704. }
  19705. /**
  19706. * @description 进行延时,以达到可以简写代码的目的 比如: await uni.$u.sleep(20)将会阻塞20ms
  19707. * @param {number} value 堵塞时间 单位ms 毫秒
  19708. * @returns {Promise} 返回promise
  19709. */
  19710. function sleep() {
  19711. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 30;
  19712. return new Promise(function (resolve) {
  19713. setTimeout(function () {
  19714. resolve();
  19715. }, value);
  19716. });
  19717. }
  19718. /**
  19719. * @description 运行期判断平台
  19720. * @returns {string} 返回所在平台(小写)
  19721. * @link 运行期判断平台 https://uniapp.dcloud.io/frame?id=判断平台
  19722. */
  19723. function os() {
  19724. return uni.getSystemInfoSync().platform.toLowerCase();
  19725. }
  19726. /**
  19727. * @description 获取系统信息同步接口
  19728. * @link 获取系统信息同步接口 https://uniapp.dcloud.io/api/system/info?id=getsysteminfosync
  19729. */
  19730. function sys() {
  19731. return uni.getSystemInfoSync();
  19732. }
  19733. /**
  19734. * @description 取一个区间数
  19735. * @param {Number} min 最小值
  19736. * @param {Number} max 最大值
  19737. */
  19738. function random(min, max) {
  19739. if (min >= 0 && max > 0 && max >= min) {
  19740. var gab = max - min + 1;
  19741. return Math.floor(Math.random() * gab + min);
  19742. }
  19743. return 0;
  19744. }
  19745. /**
  19746. * @param {Number} len uuid的长度
  19747. * @param {Boolean} firstU 将返回的首字母置为"u"
  19748. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  19749. */
  19750. function guid() {
  19751. var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
  19752. var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  19753. var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  19754. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  19755. var uuid = [];
  19756. radix = radix || chars.length;
  19757. if (len) {
  19758. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  19759. for (var i = 0; i < len; i++) {
  19760. uuid[i] = chars[0 | Math.random() * radix];
  19761. }
  19762. } else {
  19763. var r;
  19764. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  19765. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  19766. uuid[14] = '4';
  19767. for (var _i = 0; _i < 36; _i++) {
  19768. if (!uuid[_i]) {
  19769. r = 0 | Math.random() * 16;
  19770. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  19771. }
  19772. }
  19773. }
  19774. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  19775. if (firstU) {
  19776. uuid.shift();
  19777. return "u".concat(uuid.join(''));
  19778. }
  19779. return uuid.join('');
  19780. }
  19781. /**
  19782. * @description 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  19783. this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  19784. 这里默认值等于undefined有它的含义,因为最顶层元素(组件)的$parent就是undefined,意味着不传name
  19785. 值(默认为undefined),就是查找最顶层的$parent
  19786. * @param {string|undefined} name 父组件的参数名
  19787. */
  19788. function $parent() {
  19789. var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  19790. var parent = this.$parent;
  19791. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  19792. while (parent) {
  19793. // 父组件
  19794. if (parent.$options && parent.$options.name !== name) {
  19795. // 如果组件的name不相等,继续上一级寻找
  19796. parent = parent.$parent;
  19797. } else {
  19798. return parent;
  19799. }
  19800. }
  19801. return false;
  19802. }
  19803. /**
  19804. * @description 样式转换
  19805. * 对象转字符串,或者字符串转对象
  19806. * @param {object | string} customStyle 需要转换的目标
  19807. * @param {String} target 转换的目的,object-转为对象,string-转为字符串
  19808. * @returns {object|string}
  19809. */
  19810. function addStyle(customStyle) {
  19811. var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'object';
  19812. // 字符串转字符串,对象转对象情形,直接返回
  19813. if (_test.default.empty(customStyle) || (0, _typeof2.default)(customStyle) === 'object' && target === 'object' || target === 'string' && typeof customStyle === 'string') {
  19814. return customStyle;
  19815. }
  19816. // 字符串转对象
  19817. if (target === 'object') {
  19818. // 去除字符串样式中的两端空格(中间的空格不能去掉,比如padding: 20px 0如果去掉了就错了),空格是无用的
  19819. customStyle = trim(customStyle);
  19820. // 根据";"将字符串转为数组形式
  19821. var styleArray = customStyle.split(';');
  19822. var style = {};
  19823. // 历遍数组,拼接成对象
  19824. for (var i = 0; i < styleArray.length; i++) {
  19825. // 'font-size:20px;color:red;',如此最后字符串有";"的话,会导致styleArray最后一个元素为空字符串,这里需要过滤
  19826. if (styleArray[i]) {
  19827. var item = styleArray[i].split(':');
  19828. style[trim(item[0])] = trim(item[1]);
  19829. }
  19830. }
  19831. return style;
  19832. }
  19833. // 这里为对象转字符串形式
  19834. var string = '';
  19835. for (var _i2 in customStyle) {
  19836. // 驼峰转为中划线的形式,否则css内联样式,无法识别驼峰样式属性名
  19837. var key = _i2.replace(/([A-Z])/g, '-$1').toLowerCase();
  19838. string += "".concat(key, ":").concat(customStyle[_i2], ";");
  19839. }
  19840. // 去除两端空格
  19841. return trim(string);
  19842. }
  19843. /**
  19844. * @description 添加单位,如果有rpx,upx,%,px等单位结尾或者值为auto,直接返回,否则加上px单位结尾
  19845. * @param {string|number} value 需要添加单位的值
  19846. * @param {string} unit 添加的单位名 比如px
  19847. */
  19848. function addUnit() {
  19849. var _uni$$u$config$unit, _uni, _uni$$u, _uni$$u$config;
  19850. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'auto';
  19851. 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';
  19852. value = String(value);
  19853. // 用uView内置验证规则中的number判断是否为数值
  19854. return _test.default.number(value) ? "".concat(value).concat(unit) : value;
  19855. }
  19856. /**
  19857. * @description 深度克隆
  19858. * @param {object} obj 需要深度克隆的对象
  19859. * @param cache 缓存
  19860. * @returns {*} 克隆后的对象或者原值(不是对象)
  19861. */
  19862. function deepClone(obj) {
  19863. var cache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new WeakMap();
  19864. if (obj === null || (0, _typeof2.default)(obj) !== 'object') return obj;
  19865. if (cache.has(obj)) return cache.get(obj);
  19866. var clone;
  19867. if (obj instanceof Date) {
  19868. clone = new Date(obj.getTime());
  19869. } else if (obj instanceof RegExp) {
  19870. clone = new RegExp(obj);
  19871. } else if (obj instanceof Map) {
  19872. clone = new Map(Array.from(obj, function (_ref) {
  19873. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  19874. key = _ref2[0],
  19875. value = _ref2[1];
  19876. return [key, deepClone(value, cache)];
  19877. }));
  19878. } else if (obj instanceof Set) {
  19879. clone = new Set(Array.from(obj, function (value) {
  19880. return deepClone(value, cache);
  19881. }));
  19882. } else if (Array.isArray(obj)) {
  19883. clone = obj.map(function (value) {
  19884. return deepClone(value, cache);
  19885. });
  19886. } else if (Object.prototype.toString.call(obj) === '[object Object]') {
  19887. clone = Object.create(Object.getPrototypeOf(obj));
  19888. cache.set(obj, clone);
  19889. for (var _i3 = 0, _Object$entries = Object.entries(obj); _i3 < _Object$entries.length; _i3++) {
  19890. var _Object$entries$_i = (0, _slicedToArray2.default)(_Object$entries[_i3], 2),
  19891. key = _Object$entries$_i[0],
  19892. value = _Object$entries$_i[1];
  19893. clone[key] = deepClone(value, cache);
  19894. }
  19895. } else {
  19896. clone = Object.assign({}, obj);
  19897. }
  19898. cache.set(obj, clone);
  19899. return clone;
  19900. }
  19901. /**
  19902. * @description JS对象深度合并
  19903. * @param {object} target 需要拷贝的对象
  19904. * @param {object} source 拷贝的来源对象
  19905. * @returns {object|boolean} 深度合并后的对象或者false(入参有不是对象)
  19906. */
  19907. function deepMerge() {
  19908. var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  19909. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  19910. target = deepClone(target);
  19911. if ((0, _typeof2.default)(target) !== 'object' || target === null || (0, _typeof2.default)(source) !== 'object' || source === null) return target;
  19912. var merged = Array.isArray(target) ? target.slice() : Object.assign({}, target);
  19913. for (var prop in source) {
  19914. if (!source.hasOwnProperty(prop)) continue;
  19915. var sourceValue = source[prop];
  19916. var targetValue = merged[prop];
  19917. if (sourceValue instanceof Date) {
  19918. merged[prop] = new Date(sourceValue);
  19919. } else if (sourceValue instanceof RegExp) {
  19920. merged[prop] = new RegExp(sourceValue);
  19921. } else if (sourceValue instanceof Map) {
  19922. merged[prop] = new Map(sourceValue);
  19923. } else if (sourceValue instanceof Set) {
  19924. merged[prop] = new Set(sourceValue);
  19925. } else if ((0, _typeof2.default)(sourceValue) === 'object' && sourceValue !== null) {
  19926. merged[prop] = deepMerge(targetValue, sourceValue);
  19927. } else {
  19928. merged[prop] = sourceValue;
  19929. }
  19930. }
  19931. return merged;
  19932. }
  19933. /**
  19934. * @description error提示
  19935. * @param {*} err 错误内容
  19936. */
  19937. function error(err) {
  19938. // 开发环境才提示,生产环境不会提示
  19939. if (true) {
  19940. console.error("uView\u63D0\u793A\uFF1A".concat(err));
  19941. }
  19942. }
  19943. /**
  19944. * @description 打乱数组
  19945. * @param {array} array 需要打乱的数组
  19946. * @returns {array} 打乱后的数组
  19947. */
  19948. function randomArray() {
  19949. var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  19950. // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
  19951. return array.sort(function () {
  19952. return Math.random() - 0.5;
  19953. });
  19954. }
  19955. // padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
  19956. // 所以这里做一个兼容polyfill的兼容处理
  19957. if (!String.prototype.padStart) {
  19958. // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
  19959. String.prototype.padStart = function (maxLength) {
  19960. var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
  19961. if (Object.prototype.toString.call(fillString) !== '[object String]') {
  19962. throw new TypeError('fillString must be String');
  19963. }
  19964. var str = this;
  19965. // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
  19966. if (str.length >= maxLength) return String(str);
  19967. var fillLength = maxLength - str.length;
  19968. var times = Math.ceil(fillLength / fillString.length);
  19969. while (times >>= 1) {
  19970. fillString += fillString;
  19971. if (times === 1) {
  19972. fillString += fillString;
  19973. }
  19974. }
  19975. return fillString.slice(0, fillLength) + str;
  19976. };
  19977. }
  19978. /**
  19979. * @description 格式化时间
  19980. * @param {String|Number} dateTime 需要格式化的时间戳
  19981. * @param {String} fmt 格式化规则 yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合 默认yyyy-mm-dd
  19982. * @returns {string} 返回格式化后的字符串
  19983. */
  19984. function timeFormat() {
  19985. var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  19986. var formatStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  19987. var date;
  19988. // 若传入时间为假值,则取当前时间
  19989. if (!dateTime) {
  19990. date = new Date();
  19991. }
  19992. // 若为unix秒时间戳,则转为毫秒时间戳(逻辑有点奇怪,但不敢改,以保证历史兼容)
  19993. else if (/^\d{10}$/.test(dateTime === null || dateTime === void 0 ? void 0 : dateTime.toString().trim())) {
  19994. date = new Date(dateTime * 1000);
  19995. }
  19996. // 若用户传入字符串格式时间戳,new Date无法解析,需做兼容
  19997. else if (typeof dateTime === 'string' && /^\d+$/.test(dateTime.trim())) {
  19998. date = new Date(Number(dateTime));
  19999. }
  20000. // 处理平台性差异,在Safari/Webkit中,new Date仅支持/作为分割符的字符串时间
  20001. // 处理 '2022-07-10 01:02:03',跳过 '2022-07-10T01:02:03'
  20002. else if (typeof dateTime === 'string' && dateTime.includes('-') && !dateTime.includes('T')) {
  20003. date = new Date(dateTime.replace(/-/g, '/'));
  20004. }
  20005. // 其他都认为符合 RFC 2822 规范
  20006. else {
  20007. date = new Date(dateTime);
  20008. }
  20009. var timeSource = {
  20010. 'y': date.getFullYear().toString(),
  20011. // 年
  20012. 'm': (date.getMonth() + 1).toString().padStart(2, '0'),
  20013. // 月
  20014. 'd': date.getDate().toString().padStart(2, '0'),
  20015. // 日
  20016. 'h': date.getHours().toString().padStart(2, '0'),
  20017. // 时
  20018. 'M': date.getMinutes().toString().padStart(2, '0'),
  20019. // 分
  20020. 's': date.getSeconds().toString().padStart(2, '0') // 秒
  20021. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  20022. };
  20023. for (var key in timeSource) {
  20024. var _ref3 = new RegExp("".concat(key, "+")).exec(formatStr) || [],
  20025. _ref4 = (0, _slicedToArray2.default)(_ref3, 1),
  20026. ret = _ref4[0];
  20027. if (ret) {
  20028. // 年可能只需展示两位
  20029. var beginIndex = key === 'y' && ret.length === 2 ? 2 : 0;
  20030. formatStr = formatStr.replace(ret, timeSource[key].slice(beginIndex));
  20031. }
  20032. }
  20033. return formatStr;
  20034. }
  20035. /**
  20036. * @description 时间戳转为多久之前
  20037. * @param {String|Number} timestamp 时间戳
  20038. * @param {String|Boolean} format
  20039. * 格式化规则如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
  20040. * 如果为布尔值false,无论什么时间,都返回多久以前的格式
  20041. * @returns {string} 转化后的内容
  20042. */
  20043. function timeFrom() {
  20044. var timestamp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  20045. var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  20046. if (timestamp == null) timestamp = Number(new Date());
  20047. timestamp = parseInt(timestamp);
  20048. // 判断用户输入的时间戳是秒还是毫秒,一般前端js获取的时间戳是毫秒(13位),后端传过来的为秒(10位)
  20049. if (timestamp.toString().length == 10) timestamp *= 1000;
  20050. var timer = new Date().getTime() - timestamp;
  20051. timer = parseInt(timer / 1000);
  20052. // 如果小于5分钟,则返回"刚刚",其他以此类推
  20053. var tips = '';
  20054. switch (true) {
  20055. case timer < 300:
  20056. tips = '刚刚';
  20057. break;
  20058. case timer >= 300 && timer < 3600:
  20059. tips = "".concat(parseInt(timer / 60), "\u5206\u949F\u524D");
  20060. break;
  20061. case timer >= 3600 && timer < 86400:
  20062. tips = "".concat(parseInt(timer / 3600), "\u5C0F\u65F6\u524D");
  20063. break;
  20064. case timer >= 86400 && timer < 2592000:
  20065. tips = "".concat(parseInt(timer / 86400), "\u5929\u524D");
  20066. break;
  20067. default:
  20068. // 如果format为false,则无论什么时间戳,都显示xx之前
  20069. if (format === false) {
  20070. if (timer >= 2592000 && timer < 365 * 86400) {
  20071. tips = "".concat(parseInt(timer / (86400 * 30)), "\u4E2A\u6708\u524D");
  20072. } else {
  20073. tips = "".concat(parseInt(timer / (86400 * 365)), "\u5E74\u524D");
  20074. }
  20075. } else {
  20076. tips = timeFormat(timestamp, format);
  20077. }
  20078. }
  20079. return tips;
  20080. }
  20081. /**
  20082. * @description 去除空格
  20083. * @param String str 需要去除空格的字符串
  20084. * @param String pos both(左右)|left|right|all 默认both
  20085. */
  20086. function trim(str) {
  20087. var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
  20088. str = String(str);
  20089. if (pos == 'both') {
  20090. return str.replace(/^\s+|\s+$/g, '');
  20091. }
  20092. if (pos == 'left') {
  20093. return str.replace(/^\s*/, '');
  20094. }
  20095. if (pos == 'right') {
  20096. return str.replace(/(\s*$)/g, '');
  20097. }
  20098. if (pos == 'all') {
  20099. return str.replace(/\s+/g, '');
  20100. }
  20101. return str;
  20102. }
  20103. /**
  20104. * @description 对象转url参数
  20105. * @param {object} data,对象
  20106. * @param {Boolean} isPrefix,是否自动加上"?"
  20107. * @param {string} arrayFormat 规则 indices|brackets|repeat|comma
  20108. */
  20109. function queryParams() {
  20110. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  20111. var isPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  20112. var arrayFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'brackets';
  20113. var prefix = isPrefix ? '?' : '';
  20114. var _result = [];
  20115. if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';
  20116. var _loop = function _loop(key) {
  20117. var value = data[key];
  20118. // 去掉为空的参数
  20119. if (['', undefined, null].indexOf(value) >= 0) {
  20120. return "continue";
  20121. }
  20122. // 如果值为数组,另行处理
  20123. if (value.constructor === Array) {
  20124. // e.g. {ids: [1, 2, 3]}
  20125. switch (arrayFormat) {
  20126. case 'indices':
  20127. // 结果: ids[0]=1&ids[1]=2&ids[2]=3
  20128. for (var i = 0; i < value.length; i++) {
  20129. _result.push("".concat(key, "[").concat(i, "]=").concat(value[i]));
  20130. }
  20131. break;
  20132. case 'brackets':
  20133. // 结果: ids[]=1&ids[]=2&ids[]=3
  20134. value.forEach(function (_value) {
  20135. _result.push("".concat(key, "[]=").concat(_value));
  20136. });
  20137. break;
  20138. case 'repeat':
  20139. // 结果: ids=1&ids=2&ids=3
  20140. value.forEach(function (_value) {
  20141. _result.push("".concat(key, "=").concat(_value));
  20142. });
  20143. break;
  20144. case 'comma':
  20145. // 结果: ids=1,2,3
  20146. var commaStr = '';
  20147. value.forEach(function (_value) {
  20148. commaStr += (commaStr ? ',' : '') + _value;
  20149. });
  20150. _result.push("".concat(key, "=").concat(commaStr));
  20151. break;
  20152. default:
  20153. value.forEach(function (_value) {
  20154. _result.push("".concat(key, "[]=").concat(_value));
  20155. });
  20156. }
  20157. } else {
  20158. _result.push("".concat(key, "=").concat(value));
  20159. }
  20160. };
  20161. for (var key in data) {
  20162. var _ret = _loop(key);
  20163. if (_ret === "continue") continue;
  20164. }
  20165. return _result.length ? prefix + _result.join('&') : '';
  20166. }
  20167. /**
  20168. * 显示消息提示框
  20169. * @param {String} title 提示的内容,长度与 icon 取值有关。
  20170. * @param {Number} duration 提示的延迟时间,单位毫秒,默认:2000
  20171. */
  20172. function toast(title) {
  20173. var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
  20174. uni.showToast({
  20175. title: String(title),
  20176. icon: 'none',
  20177. duration: duration
  20178. });
  20179. }
  20180. /**
  20181. * @description 根据主题type值,获取对应的图标
  20182. * @param {String} type 主题名称,primary|info|error|warning|success
  20183. * @param {boolean} fill 是否使用fill填充实体的图标
  20184. */
  20185. function type2icon() {
  20186. var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';
  20187. var fill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  20188. // 如果非预置值,默认为success
  20189. if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success';
  20190. var iconName = '';
  20191. // 目前(2019-12-12),info和primary使用同一个图标
  20192. switch (type) {
  20193. case 'primary':
  20194. iconName = 'info-circle';
  20195. break;
  20196. case 'info':
  20197. iconName = 'info-circle';
  20198. break;
  20199. case 'error':
  20200. iconName = 'close-circle';
  20201. break;
  20202. case 'warning':
  20203. iconName = 'error-circle';
  20204. break;
  20205. case 'success':
  20206. iconName = 'checkmark-circle';
  20207. break;
  20208. default:
  20209. iconName = 'checkmark-circle';
  20210. }
  20211. // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的
  20212. if (fill) iconName += '-fill';
  20213. return iconName;
  20214. }
  20215. /**
  20216. * @description 数字格式化
  20217. * @param {number|string} number 要格式化的数字
  20218. * @param {number} decimals 保留几位小数
  20219. * @param {string} decimalPoint 小数点符号
  20220. * @param {string} thousandsSeparator 千分位符号
  20221. * @returns {string} 格式化后的数字
  20222. */
  20223. function priceFormat(number) {
  20224. var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  20225. var decimalPoint = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.';
  20226. var thousandsSeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ',';
  20227. number = "".concat(number).replace(/[^0-9+-Ee.]/g, '');
  20228. var n = !isFinite(+number) ? 0 : +number;
  20229. var prec = !isFinite(+decimals) ? 0 : Math.abs(decimals);
  20230. var sep = typeof thousandsSeparator === 'undefined' ? ',' : thousandsSeparator;
  20231. var dec = typeof decimalPoint === 'undefined' ? '.' : decimalPoint;
  20232. var s = '';
  20233. s = (prec ? (0, _digit.round)(n, prec) + '' : "".concat(Math.round(n))).split('.');
  20234. var re = /(-?\d+)(\d{3})/;
  20235. while (re.test(s[0])) {
  20236. s[0] = s[0].replace(re, "$1".concat(sep, "$2"));
  20237. }
  20238. if ((s[1] || '').length < prec) {
  20239. s[1] = s[1] || '';
  20240. s[1] += new Array(prec - s[1].length + 1).join('0');
  20241. }
  20242. return s.join(dec);
  20243. }
  20244. /**
  20245. * @description 获取duration值
  20246. * 如果带有ms或者s直接返回,如果大于一定值,认为是ms单位,小于一定值,认为是s单位
  20247. * 比如以30位阈值,那么300大于30,可以理解为用户想要的是300ms,而不是想花300s去执行一个动画
  20248. * @param {String|number} value 比如: "1s"|"100ms"|1|100
  20249. * @param {boolean} unit 提示: 如果是false 默认返回number
  20250. * @return {string|number}
  20251. */
  20252. function getDuration(value) {
  20253. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  20254. var valueNum = parseInt(value);
  20255. if (unit) {
  20256. if (/s$/.test(value)) return value;
  20257. return value > 30 ? "".concat(value, "ms") : "".concat(value, "s");
  20258. }
  20259. if (/ms$/.test(value)) return valueNum;
  20260. if (/s$/.test(value)) return valueNum > 30 ? valueNum : valueNum * 1000;
  20261. return valueNum;
  20262. }
  20263. /**
  20264. * @description 日期的月或日补零操作
  20265. * @param {String} value 需要补零的值
  20266. */
  20267. function padZero(value) {
  20268. return "00".concat(value).slice(-2);
  20269. }
  20270. /**
  20271. * @description 在u-form的子组件内容发生变化,或者失去焦点时,尝试通知u-form执行校验方法
  20272. * @param {*} instance
  20273. * @param {*} event
  20274. */
  20275. function formValidate(instance, event) {
  20276. var formItem = uni.$u.$parent.call(instance, 'u-form-item');
  20277. var form = uni.$u.$parent.call(instance, 'u-form');
  20278. // 如果发生变化的input或者textarea等,其父组件中有u-form-item或者u-form等,就执行form的validate方法
  20279. // 同时将form-item的pros传递给form,让其进行精确对象验证
  20280. if (formItem && form) {
  20281. form.validateField(formItem.prop, function () {}, event);
  20282. }
  20283. }
  20284. /**
  20285. * @description 获取某个对象下的属性,用于通过类似'a.b.c'的形式去获取一个对象的的属性的形式
  20286. * @param {object} obj 对象
  20287. * @param {string} key 需要获取的属性字段
  20288. * @returns {*}
  20289. */
  20290. function getProperty(obj, key) {
  20291. if (!obj) {
  20292. return;
  20293. }
  20294. if (typeof key !== 'string' || key === '') {
  20295. return '';
  20296. }
  20297. if (key.indexOf('.') !== -1) {
  20298. var keys = key.split('.');
  20299. var firstObj = obj[keys[0]] || {};
  20300. for (var i = 1; i < keys.length; i++) {
  20301. if (firstObj) {
  20302. firstObj = firstObj[keys[i]];
  20303. }
  20304. }
  20305. return firstObj;
  20306. }
  20307. return obj[key];
  20308. }
  20309. /**
  20310. * @description 设置对象的属性值,如果'a.b.c'的形式进行设置
  20311. * @param {object} obj 对象
  20312. * @param {string} key 需要设置的属性
  20313. * @param {string} value 设置的值
  20314. */
  20315. function setProperty(obj, key, value) {
  20316. if (!obj) {
  20317. return;
  20318. }
  20319. // 递归赋值
  20320. var inFn = function inFn(_obj, keys, v) {
  20321. // 最后一个属性key
  20322. if (keys.length === 1) {
  20323. _obj[keys[0]] = v;
  20324. return;
  20325. }
  20326. // 0~length-1个key
  20327. while (keys.length > 1) {
  20328. var k = keys[0];
  20329. if (!_obj[k] || (0, _typeof2.default)(_obj[k]) !== 'object') {
  20330. _obj[k] = {};
  20331. }
  20332. var _key = keys.shift();
  20333. // 自调用判断是否存在属性,不存在则自动创建对象
  20334. inFn(_obj[k], keys, v);
  20335. }
  20336. };
  20337. if (typeof key !== 'string' || key === '') {} else if (key.indexOf('.') !== -1) {
  20338. // 支持多层级赋值操作
  20339. var keys = key.split('.');
  20340. inFn(obj, keys, value);
  20341. } else {
  20342. obj[key] = value;
  20343. }
  20344. }
  20345. /**
  20346. * @description 获取当前页面路径
  20347. */
  20348. function page() {
  20349. var _pages$route, _pages;
  20350. var pages = getCurrentPages();
  20351. // 某些特殊情况下(比如页面进行redirectTo时的一些时机),pages可能为空数组
  20352. return "/".concat((_pages$route = (_pages = pages[pages.length - 1]) === null || _pages === void 0 ? void 0 : _pages.route) !== null && _pages$route !== void 0 ? _pages$route : '');
  20353. }
  20354. /**
  20355. * @description 获取当前路由栈实例数组
  20356. */
  20357. function pages() {
  20358. var pages = getCurrentPages();
  20359. return pages;
  20360. }
  20361. /**
  20362. * 获取页面历史栈指定层实例
  20363. * @param back {number} [0] - 0或者负数,表示获取历史栈的哪一层,0表示获取当前页面实例,-1 表示获取上一个页面实例。默认0。
  20364. */
  20365. function getHistoryPage() {
  20366. var back = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  20367. var pages = getCurrentPages();
  20368. var len = pages.length;
  20369. return pages[len - 1 + back];
  20370. }
  20371. /**
  20372. * @description 修改uView内置属性值
  20373. * @param {object} props 修改内置props属性
  20374. * @param {object} config 修改内置config属性
  20375. * @param {object} color 修改内置color属性
  20376. * @param {object} zIndex 修改内置zIndex属性
  20377. */
  20378. function setConfig(_ref5) {
  20379. var _ref5$props = _ref5.props,
  20380. props = _ref5$props === void 0 ? {} : _ref5$props,
  20381. _ref5$config = _ref5.config,
  20382. config = _ref5$config === void 0 ? {} : _ref5$config,
  20383. _ref5$color = _ref5.color,
  20384. color = _ref5$color === void 0 ? {} : _ref5$color,
  20385. _ref5$zIndex = _ref5.zIndex,
  20386. zIndex = _ref5$zIndex === void 0 ? {} : _ref5$zIndex;
  20387. var deepMerge = uni.$u.deepMerge;
  20388. uni.$u.config = deepMerge(uni.$u.config, config);
  20389. uni.$u.props = deepMerge(uni.$u.props, props);
  20390. uni.$u.color = deepMerge(uni.$u.color, color);
  20391. uni.$u.zIndex = deepMerge(uni.$u.zIndex, zIndex);
  20392. }
  20393. var _default = {
  20394. range: range,
  20395. getPx: getPx,
  20396. sleep: sleep,
  20397. os: os,
  20398. sys: sys,
  20399. random: random,
  20400. guid: guid,
  20401. $parent: $parent,
  20402. addStyle: addStyle,
  20403. addUnit: addUnit,
  20404. deepClone: deepClone,
  20405. deepMerge: deepMerge,
  20406. error: error,
  20407. randomArray: randomArray,
  20408. timeFormat: timeFormat,
  20409. timeFrom: timeFrom,
  20410. trim: trim,
  20411. queryParams: queryParams,
  20412. toast: toast,
  20413. type2icon: type2icon,
  20414. priceFormat: priceFormat,
  20415. getDuration: getDuration,
  20416. padZero: padZero,
  20417. formValidate: formValidate,
  20418. getProperty: getProperty,
  20419. setProperty: setProperty,
  20420. page: page,
  20421. pages: pages,
  20422. getHistoryPage: getHistoryPage,
  20423. setConfig: setConfig
  20424. };
  20425. exports.default = _default;
  20426. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20427. /***/ }),
  20428. /***/ 64:
  20429. /*!********************************************************************!*\
  20430. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/function/digit.js ***!
  20431. \********************************************************************/
  20432. /*! no static exports found */
  20433. /***/ (function(module, exports, __webpack_require__) {
  20434. "use strict";
  20435. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20436. Object.defineProperty(exports, "__esModule", {
  20437. value: true
  20438. });
  20439. exports.default = void 0;
  20440. exports.divide = divide;
  20441. exports.enableBoundaryChecking = enableBoundaryChecking;
  20442. exports.minus = minus;
  20443. exports.plus = plus;
  20444. exports.round = round;
  20445. exports.times = times;
  20446. var _toArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toArray */ 65));
  20447. var _boundaryCheckingState = true; // 是否进行越界检查的全局开关
  20448. /**
  20449. * 把错误的数据转正
  20450. * @private
  20451. * @example strip(0.09999999999999998)=0.1
  20452. */
  20453. function strip(num) {
  20454. var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 15;
  20455. return +parseFloat(Number(num).toPrecision(precision));
  20456. }
  20457. /**
  20458. * Return digits length of a number
  20459. * @private
  20460. * @param {*number} num Input number
  20461. */
  20462. function digitLength(num) {
  20463. // Get digit length of e
  20464. var eSplit = num.toString().split(/[eE]/);
  20465. var len = (eSplit[0].split('.')[1] || '').length - +(eSplit[1] || 0);
  20466. return len > 0 ? len : 0;
  20467. }
  20468. /**
  20469. * 把小数转成整数,如果是小数则放大成整数
  20470. * @private
  20471. * @param {*number} num 输入数
  20472. */
  20473. function float2Fixed(num) {
  20474. if (num.toString().indexOf('e') === -1) {
  20475. return Number(num.toString().replace('.', ''));
  20476. }
  20477. var dLen = digitLength(num);
  20478. return dLen > 0 ? strip(Number(num) * Math.pow(10, dLen)) : Number(num);
  20479. }
  20480. /**
  20481. * 检测数字是否越界,如果越界给出提示
  20482. * @private
  20483. * @param {*number} num 输入数
  20484. */
  20485. function checkBoundary(num) {
  20486. if (_boundaryCheckingState) {
  20487. if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) {
  20488. console.warn("".concat(num, " \u8D85\u51FA\u4E86\u7CBE\u5EA6\u9650\u5236\uFF0C\u7ED3\u679C\u53EF\u80FD\u4E0D\u6B63\u786E"));
  20489. }
  20490. }
  20491. }
  20492. /**
  20493. * 把递归操作扁平迭代化
  20494. * @param {number[]} arr 要操作的数字数组
  20495. * @param {function} operation 迭代操作
  20496. * @private
  20497. */
  20498. function iteratorOperation(arr, operation) {
  20499. var _arr = (0, _toArray2.default)(arr),
  20500. num1 = _arr[0],
  20501. num2 = _arr[1],
  20502. others = _arr.slice(2);
  20503. var res = operation(num1, num2);
  20504. others.forEach(function (num) {
  20505. res = operation(res, num);
  20506. });
  20507. return res;
  20508. }
  20509. /**
  20510. * 高精度乘法
  20511. * @export
  20512. */
  20513. function times() {
  20514. for (var _len = arguments.length, nums = new Array(_len), _key = 0; _key < _len; _key++) {
  20515. nums[_key] = arguments[_key];
  20516. }
  20517. if (nums.length > 2) {
  20518. return iteratorOperation(nums, times);
  20519. }
  20520. var num1 = nums[0],
  20521. num2 = nums[1];
  20522. var num1Changed = float2Fixed(num1);
  20523. var num2Changed = float2Fixed(num2);
  20524. var baseNum = digitLength(num1) + digitLength(num2);
  20525. var leftValue = num1Changed * num2Changed;
  20526. checkBoundary(leftValue);
  20527. return leftValue / Math.pow(10, baseNum);
  20528. }
  20529. /**
  20530. * 高精度加法
  20531. * @export
  20532. */
  20533. function plus() {
  20534. for (var _len2 = arguments.length, nums = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  20535. nums[_key2] = arguments[_key2];
  20536. }
  20537. if (nums.length > 2) {
  20538. return iteratorOperation(nums, plus);
  20539. }
  20540. var num1 = nums[0],
  20541. num2 = nums[1];
  20542. // 取最大的小数位
  20543. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  20544. // 把小数都转为整数然后再计算
  20545. return (times(num1, baseNum) + times(num2, baseNum)) / baseNum;
  20546. }
  20547. /**
  20548. * 高精度减法
  20549. * @export
  20550. */
  20551. function minus() {
  20552. for (var _len3 = arguments.length, nums = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  20553. nums[_key3] = arguments[_key3];
  20554. }
  20555. if (nums.length > 2) {
  20556. return iteratorOperation(nums, minus);
  20557. }
  20558. var num1 = nums[0],
  20559. num2 = nums[1];
  20560. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  20561. return (times(num1, baseNum) - times(num2, baseNum)) / baseNum;
  20562. }
  20563. /**
  20564. * 高精度除法
  20565. * @export
  20566. */
  20567. function divide() {
  20568. for (var _len4 = arguments.length, nums = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  20569. nums[_key4] = arguments[_key4];
  20570. }
  20571. if (nums.length > 2) {
  20572. return iteratorOperation(nums, divide);
  20573. }
  20574. var num1 = nums[0],
  20575. num2 = nums[1];
  20576. var num1Changed = float2Fixed(num1);
  20577. var num2Changed = float2Fixed(num2);
  20578. checkBoundary(num1Changed);
  20579. checkBoundary(num2Changed);
  20580. // 重要,这里必须用strip进行修正
  20581. return times(num1Changed / num2Changed, strip(Math.pow(10, digitLength(num2) - digitLength(num1))));
  20582. }
  20583. /**
  20584. * 四舍五入
  20585. * @export
  20586. */
  20587. function round(num, ratio) {
  20588. var base = Math.pow(10, ratio);
  20589. var result = divide(Math.round(Math.abs(times(num, base))), base);
  20590. if (num < 0 && result !== 0) {
  20591. result = times(result, -1);
  20592. }
  20593. // 位数不足则补0
  20594. return result;
  20595. }
  20596. /**
  20597. * 是否进行边界检查,默认开启
  20598. * @param flag 标记开关,true 为开启,false 为关闭,默认为 true
  20599. * @export
  20600. */
  20601. function enableBoundaryChecking() {
  20602. var flag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  20603. _boundaryCheckingState = flag;
  20604. }
  20605. var _default = {
  20606. times: times,
  20607. plus: plus,
  20608. minus: minus,
  20609. divide: divide,
  20610. round: round,
  20611. enableBoundaryChecking: enableBoundaryChecking
  20612. };
  20613. exports.default = _default;
  20614. /***/ }),
  20615. /***/ 640:
  20616. /*!**************************************************************************!*\
  20617. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-navbar/props.js ***!
  20618. \**************************************************************************/
  20619. /*! no static exports found */
  20620. /***/ (function(module, exports, __webpack_require__) {
  20621. "use strict";
  20622. /* WEBPACK VAR INJECTION */(function(uni) {
  20623. Object.defineProperty(exports, "__esModule", {
  20624. value: true
  20625. });
  20626. exports.default = void 0;
  20627. var _default = {
  20628. props: {
  20629. // 是否开启顶部安全区适配
  20630. safeAreaInsetTop: {
  20631. type: Boolean,
  20632. default: uni.$u.props.navbar.safeAreaInsetTop
  20633. },
  20634. // 固定在顶部时,是否生成一个等高元素,以防止塌陷
  20635. placeholder: {
  20636. type: Boolean,
  20637. default: uni.$u.props.navbar.placeholder
  20638. },
  20639. // 是否固定在顶部
  20640. fixed: {
  20641. type: Boolean,
  20642. default: uni.$u.props.navbar.fixed
  20643. },
  20644. // 是否显示下边框
  20645. border: {
  20646. type: Boolean,
  20647. default: uni.$u.props.navbar.border
  20648. },
  20649. // 左边的图标
  20650. leftIcon: {
  20651. type: String,
  20652. default: uni.$u.props.navbar.leftIcon
  20653. },
  20654. // 左边的提示文字
  20655. leftText: {
  20656. type: String,
  20657. default: uni.$u.props.navbar.leftText
  20658. },
  20659. // 左右的提示文字
  20660. rightText: {
  20661. type: String,
  20662. default: uni.$u.props.navbar.rightText
  20663. },
  20664. // 右边的图标
  20665. rightIcon: {
  20666. type: String,
  20667. default: uni.$u.props.navbar.rightIcon
  20668. },
  20669. // 标题
  20670. title: {
  20671. type: [String, Number],
  20672. default: uni.$u.props.navbar.title
  20673. },
  20674. // 背景颜色
  20675. bgColor: {
  20676. type: String,
  20677. default: uni.$u.props.navbar.bgColor
  20678. },
  20679. // 标题的宽度
  20680. titleWidth: {
  20681. type: [String, Number],
  20682. default: uni.$u.props.navbar.titleWidth
  20683. },
  20684. // 导航栏高度
  20685. height: {
  20686. type: [String, Number],
  20687. default: uni.$u.props.navbar.height
  20688. },
  20689. // 左侧返回图标的大小
  20690. leftIconSize: {
  20691. type: [String, Number],
  20692. default: uni.$u.props.navbar.leftIconSize
  20693. },
  20694. // 左侧返回图标的颜色
  20695. leftIconColor: {
  20696. type: String,
  20697. default: uni.$u.props.navbar.leftIconColor
  20698. },
  20699. // 点击左侧区域(返回图标),是否自动返回上一页
  20700. autoBack: {
  20701. type: Boolean,
  20702. default: uni.$u.props.navbar.autoBack
  20703. },
  20704. // 标题的样式,对象或字符串
  20705. titleStyle: {
  20706. type: [String, Object],
  20707. default: uni.$u.props.navbar.titleStyle
  20708. }
  20709. }
  20710. };
  20711. exports.default = _default;
  20712. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20713. /***/ }),
  20714. /***/ 648:
  20715. /*!******************************************************************************!*\
  20716. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-subsection/props.js ***!
  20717. \******************************************************************************/
  20718. /*! no static exports found */
  20719. /***/ (function(module, exports, __webpack_require__) {
  20720. "use strict";
  20721. /* WEBPACK VAR INJECTION */(function(uni) {
  20722. Object.defineProperty(exports, "__esModule", {
  20723. value: true
  20724. });
  20725. exports.default = void 0;
  20726. var _default = {
  20727. props: {
  20728. // tab的数据
  20729. list: {
  20730. type: Array,
  20731. default: uni.$u.props.subsection.list
  20732. },
  20733. // 当前活动的tab的index
  20734. current: {
  20735. type: [String, Number],
  20736. default: uni.$u.props.subsection.current
  20737. },
  20738. // 激活的颜色
  20739. activeColor: {
  20740. type: String,
  20741. default: uni.$u.props.subsection.activeColor
  20742. },
  20743. // 未激活的颜色
  20744. inactiveColor: {
  20745. type: String,
  20746. default: uni.$u.props.subsection.inactiveColor
  20747. },
  20748. // 模式选择,mode=button为按钮形式,mode=subsection时为分段模式
  20749. mode: {
  20750. type: String,
  20751. default: uni.$u.props.subsection.mode
  20752. },
  20753. // 字体大小
  20754. fontSize: {
  20755. type: [String, Number],
  20756. default: uni.$u.props.subsection.fontSize
  20757. },
  20758. // 激活tab的字体是否加粗
  20759. bold: {
  20760. type: Boolean,
  20761. default: uni.$u.props.subsection.bold
  20762. },
  20763. // mode = button时,组件背景颜色
  20764. bgColor: {
  20765. type: String,
  20766. default: uni.$u.props.subsection.bgColor
  20767. },
  20768. // 从list元素对象中读取的键名
  20769. keyName: {
  20770. type: String,
  20771. default: uni.$u.props.subsection.keyName
  20772. }
  20773. }
  20774. };
  20775. exports.default = _default;
  20776. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20777. /***/ }),
  20778. /***/ 65:
  20779. /*!********************************************************!*\
  20780. !*** ./node_modules/@babel/runtime/helpers/toArray.js ***!
  20781. \********************************************************/
  20782. /*! no static exports found */
  20783. /***/ (function(module, exports, __webpack_require__) {
  20784. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  20785. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  20786. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  20787. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  20788. function _toArray(arr) {
  20789. return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
  20790. }
  20791. module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  20792. /***/ }),
  20793. /***/ 656:
  20794. /*!************************************************************************!*\
  20795. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-icon/icons.js ***!
  20796. \************************************************************************/
  20797. /*! no static exports found */
  20798. /***/ (function(module, exports, __webpack_require__) {
  20799. "use strict";
  20800. Object.defineProperty(exports, "__esModule", {
  20801. value: true
  20802. });
  20803. exports.default = void 0;
  20804. var _default = {
  20805. 'uicon-level': "\uE693",
  20806. 'uicon-column-line': "\uE68E",
  20807. 'uicon-checkbox-mark': "\uE807",
  20808. 'uicon-folder': "\uE7F5",
  20809. 'uicon-movie': "\uE7F6",
  20810. 'uicon-star-fill': "\uE669",
  20811. 'uicon-star': "\uE65F",
  20812. 'uicon-phone-fill': "\uE64F",
  20813. 'uicon-phone': "\uE622",
  20814. 'uicon-apple-fill': "\uE881",
  20815. 'uicon-chrome-circle-fill': "\uE885",
  20816. 'uicon-backspace': "\uE67B",
  20817. 'uicon-attach': "\uE632",
  20818. 'uicon-cut': "\uE948",
  20819. 'uicon-empty-car': "\uE602",
  20820. 'uicon-empty-coupon': "\uE682",
  20821. 'uicon-empty-address': "\uE646",
  20822. 'uicon-empty-favor': "\uE67C",
  20823. 'uicon-empty-permission': "\uE686",
  20824. 'uicon-empty-news': "\uE687",
  20825. 'uicon-empty-search': "\uE664",
  20826. 'uicon-github-circle-fill': "\uE887",
  20827. 'uicon-rmb': "\uE608",
  20828. 'uicon-person-delete-fill': "\uE66A",
  20829. 'uicon-reload': "\uE788",
  20830. 'uicon-order': "\uE68F",
  20831. 'uicon-server-man': "\uE6BC",
  20832. 'uicon-search': "\uE62A",
  20833. 'uicon-fingerprint': "\uE955",
  20834. 'uicon-more-dot-fill': "\uE630",
  20835. 'uicon-scan': "\uE662",
  20836. 'uicon-share-square': "\uE60B",
  20837. 'uicon-map': "\uE61D",
  20838. 'uicon-map-fill': "\uE64E",
  20839. 'uicon-tags': "\uE629",
  20840. 'uicon-tags-fill': "\uE651",
  20841. 'uicon-bookmark-fill': "\uE63B",
  20842. 'uicon-bookmark': "\uE60A",
  20843. 'uicon-eye': "\uE613",
  20844. 'uicon-eye-fill': "\uE641",
  20845. 'uicon-mic': "\uE64A",
  20846. 'uicon-mic-off': "\uE649",
  20847. 'uicon-calendar': "\uE66E",
  20848. 'uicon-calendar-fill': "\uE634",
  20849. 'uicon-trash': "\uE623",
  20850. 'uicon-trash-fill': "\uE658",
  20851. 'uicon-play-left': "\uE66D",
  20852. 'uicon-play-right': "\uE610",
  20853. 'uicon-minus': "\uE618",
  20854. 'uicon-plus': "\uE62D",
  20855. 'uicon-info': "\uE653",
  20856. 'uicon-info-circle': "\uE7D2",
  20857. 'uicon-info-circle-fill': "\uE64B",
  20858. 'uicon-question': "\uE715",
  20859. 'uicon-error': "\uE6D3",
  20860. 'uicon-close': "\uE685",
  20861. 'uicon-checkmark': "\uE6A8",
  20862. 'uicon-android-circle-fill': "\uE67E",
  20863. 'uicon-android-fill': "\uE67D",
  20864. 'uicon-ie': "\uE87B",
  20865. 'uicon-IE-circle-fill': "\uE889",
  20866. 'uicon-google': "\uE87A",
  20867. 'uicon-google-circle-fill': "\uE88A",
  20868. 'uicon-setting-fill': "\uE872",
  20869. 'uicon-setting': "\uE61F",
  20870. 'uicon-minus-square-fill': "\uE855",
  20871. 'uicon-plus-square-fill': "\uE856",
  20872. 'uicon-heart': "\uE7DF",
  20873. 'uicon-heart-fill': "\uE851",
  20874. 'uicon-camera': "\uE7D7",
  20875. 'uicon-camera-fill': "\uE870",
  20876. 'uicon-more-circle': "\uE63E",
  20877. 'uicon-more-circle-fill': "\uE645",
  20878. 'uicon-chat': "\uE620",
  20879. 'uicon-chat-fill': "\uE61E",
  20880. 'uicon-bag-fill': "\uE617",
  20881. 'uicon-bag': "\uE619",
  20882. 'uicon-error-circle-fill': "\uE62C",
  20883. 'uicon-error-circle': "\uE624",
  20884. 'uicon-close-circle': "\uE63F",
  20885. 'uicon-close-circle-fill': "\uE637",
  20886. 'uicon-checkmark-circle': "\uE63D",
  20887. 'uicon-checkmark-circle-fill': "\uE635",
  20888. 'uicon-question-circle-fill': "\uE666",
  20889. 'uicon-question-circle': "\uE625",
  20890. 'uicon-share': "\uE631",
  20891. 'uicon-share-fill': "\uE65E",
  20892. 'uicon-shopping-cart': "\uE621",
  20893. 'uicon-shopping-cart-fill': "\uE65D",
  20894. 'uicon-bell': "\uE609",
  20895. 'uicon-bell-fill': "\uE640",
  20896. 'uicon-list': "\uE650",
  20897. 'uicon-list-dot': "\uE616",
  20898. 'uicon-zhihu': "\uE6BA",
  20899. 'uicon-zhihu-circle-fill': "\uE709",
  20900. 'uicon-zhifubao': "\uE6B9",
  20901. 'uicon-zhifubao-circle-fill': "\uE6B8",
  20902. 'uicon-weixin-circle-fill': "\uE6B1",
  20903. 'uicon-weixin-fill': "\uE6B2",
  20904. 'uicon-twitter-circle-fill': "\uE6AB",
  20905. 'uicon-twitter': "\uE6AA",
  20906. 'uicon-taobao-circle-fill': "\uE6A7",
  20907. 'uicon-taobao': "\uE6A6",
  20908. 'uicon-weibo-circle-fill': "\uE6A5",
  20909. 'uicon-weibo': "\uE6A4",
  20910. 'uicon-qq-fill': "\uE6A1",
  20911. 'uicon-qq-circle-fill': "\uE6A0",
  20912. 'uicon-moments-circel-fill': "\uE69A",
  20913. 'uicon-moments': "\uE69B",
  20914. 'uicon-qzone': "\uE695",
  20915. 'uicon-qzone-circle-fill': "\uE696",
  20916. 'uicon-baidu-circle-fill': "\uE680",
  20917. 'uicon-baidu': "\uE681",
  20918. 'uicon-facebook-circle-fill': "\uE68A",
  20919. 'uicon-facebook': "\uE689",
  20920. 'uicon-car': "\uE60C",
  20921. 'uicon-car-fill': "\uE636",
  20922. 'uicon-warning-fill': "\uE64D",
  20923. 'uicon-warning': "\uE694",
  20924. 'uicon-clock-fill': "\uE638",
  20925. 'uicon-clock': "\uE60F",
  20926. 'uicon-edit-pen': "\uE612",
  20927. 'uicon-edit-pen-fill': "\uE66B",
  20928. 'uicon-email': "\uE611",
  20929. 'uicon-email-fill': "\uE642",
  20930. 'uicon-minus-circle': "\uE61B",
  20931. 'uicon-minus-circle-fill': "\uE652",
  20932. 'uicon-plus-circle': "\uE62E",
  20933. 'uicon-plus-circle-fill': "\uE661",
  20934. 'uicon-file-text': "\uE663",
  20935. 'uicon-file-text-fill': "\uE665",
  20936. 'uicon-pushpin': "\uE7E3",
  20937. 'uicon-pushpin-fill': "\uE86E",
  20938. 'uicon-grid': "\uE673",
  20939. 'uicon-grid-fill': "\uE678",
  20940. 'uicon-play-circle': "\uE647",
  20941. 'uicon-play-circle-fill': "\uE655",
  20942. 'uicon-pause-circle-fill': "\uE654",
  20943. 'uicon-pause': "\uE8FA",
  20944. 'uicon-pause-circle': "\uE643",
  20945. 'uicon-eye-off': "\uE648",
  20946. 'uicon-eye-off-outline': "\uE62B",
  20947. 'uicon-gift-fill': "\uE65C",
  20948. 'uicon-gift': "\uE65B",
  20949. 'uicon-rmb-circle-fill': "\uE657",
  20950. 'uicon-rmb-circle': "\uE677",
  20951. 'uicon-kefu-ermai': "\uE656",
  20952. 'uicon-server-fill': "\uE751",
  20953. 'uicon-coupon-fill': "\uE8C4",
  20954. 'uicon-coupon': "\uE8AE",
  20955. 'uicon-integral': "\uE704",
  20956. 'uicon-integral-fill': "\uE703",
  20957. 'uicon-home-fill': "\uE964",
  20958. 'uicon-home': "\uE965",
  20959. 'uicon-hourglass-half-fill': "\uE966",
  20960. 'uicon-hourglass': "\uE967",
  20961. 'uicon-account': "\uE628",
  20962. 'uicon-plus-people-fill': "\uE626",
  20963. 'uicon-minus-people-fill': "\uE615",
  20964. 'uicon-account-fill': "\uE614",
  20965. 'uicon-thumb-down-fill': "\uE726",
  20966. 'uicon-thumb-down': "\uE727",
  20967. 'uicon-thumb-up': "\uE733",
  20968. 'uicon-thumb-up-fill': "\uE72F",
  20969. 'uicon-lock-fill': "\uE979",
  20970. 'uicon-lock-open': "\uE973",
  20971. 'uicon-lock-opened-fill': "\uE974",
  20972. 'uicon-lock': "\uE97A",
  20973. 'uicon-red-packet-fill': "\uE690",
  20974. 'uicon-photo-fill': "\uE98B",
  20975. 'uicon-photo': "\uE98D",
  20976. 'uicon-volume-off-fill': "\uE659",
  20977. 'uicon-volume-off': "\uE644",
  20978. 'uicon-volume-fill': "\uE670",
  20979. 'uicon-volume': "\uE633",
  20980. 'uicon-red-packet': "\uE691",
  20981. 'uicon-download': "\uE63C",
  20982. 'uicon-arrow-up-fill': "\uE6B0",
  20983. 'uicon-arrow-down-fill': "\uE600",
  20984. 'uicon-play-left-fill': "\uE675",
  20985. 'uicon-play-right-fill': "\uE676",
  20986. 'uicon-rewind-left-fill': "\uE679",
  20987. 'uicon-rewind-right-fill': "\uE67A",
  20988. 'uicon-arrow-downward': "\uE604",
  20989. 'uicon-arrow-leftward': "\uE601",
  20990. 'uicon-arrow-rightward': "\uE603",
  20991. 'uicon-arrow-upward': "\uE607",
  20992. 'uicon-arrow-down': "\uE60D",
  20993. 'uicon-arrow-right': "\uE605",
  20994. 'uicon-arrow-left': "\uE60E",
  20995. 'uicon-arrow-up': "\uE606",
  20996. 'uicon-skip-back-left': "\uE674",
  20997. 'uicon-skip-forward-right': "\uE672",
  20998. 'uicon-rewind-right': "\uE66F",
  20999. 'uicon-rewind-left': "\uE671",
  21000. 'uicon-arrow-right-double': "\uE68D",
  21001. 'uicon-arrow-left-double': "\uE68C",
  21002. 'uicon-wifi-off': "\uE668",
  21003. 'uicon-wifi': "\uE667",
  21004. 'uicon-empty-data': "\uE62F",
  21005. 'uicon-empty-history': "\uE684",
  21006. 'uicon-empty-list': "\uE68B",
  21007. 'uicon-empty-page': "\uE627",
  21008. 'uicon-empty-order': "\uE639",
  21009. 'uicon-man': "\uE697",
  21010. 'uicon-woman': "\uE69C",
  21011. 'uicon-man-add': "\uE61C",
  21012. 'uicon-man-add-fill': "\uE64C",
  21013. 'uicon-man-delete': "\uE61A",
  21014. 'uicon-man-delete-fill': "\uE66A",
  21015. 'uicon-zh': "\uE70A",
  21016. 'uicon-en': "\uE692"
  21017. };
  21018. exports.default = _default;
  21019. /***/ }),
  21020. /***/ 657:
  21021. /*!************************************************************************!*\
  21022. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-icon/props.js ***!
  21023. \************************************************************************/
  21024. /*! no static exports found */
  21025. /***/ (function(module, exports, __webpack_require__) {
  21026. "use strict";
  21027. /* WEBPACK VAR INJECTION */(function(uni) {
  21028. Object.defineProperty(exports, "__esModule", {
  21029. value: true
  21030. });
  21031. exports.default = void 0;
  21032. var _default = {
  21033. props: {
  21034. // 图标类名
  21035. name: {
  21036. type: String,
  21037. default: uni.$u.props.icon.name
  21038. },
  21039. // 图标颜色,可接受主题色
  21040. color: {
  21041. type: String,
  21042. default: uni.$u.props.icon.color
  21043. },
  21044. // 字体大小,单位px
  21045. size: {
  21046. type: [String, Number],
  21047. default: uni.$u.props.icon.size
  21048. },
  21049. // 是否显示粗体
  21050. bold: {
  21051. type: Boolean,
  21052. default: uni.$u.props.icon.bold
  21053. },
  21054. // 点击图标的时候传递事件出去的index(用于区分点击了哪一个)
  21055. index: {
  21056. type: [String, Number],
  21057. default: uni.$u.props.icon.index
  21058. },
  21059. // 触摸图标时的类名
  21060. hoverClass: {
  21061. type: String,
  21062. default: uni.$u.props.icon.hoverClass
  21063. },
  21064. // 自定义扩展前缀,方便用户扩展自己的图标库
  21065. customPrefix: {
  21066. type: String,
  21067. default: uni.$u.props.icon.customPrefix
  21068. },
  21069. // 图标右边或者下面的文字
  21070. label: {
  21071. type: [String, Number],
  21072. default: uni.$u.props.icon.label
  21073. },
  21074. // label的位置,只能右边或者下边
  21075. labelPos: {
  21076. type: String,
  21077. default: uni.$u.props.icon.labelPos
  21078. },
  21079. // label的大小
  21080. labelSize: {
  21081. type: [String, Number],
  21082. default: uni.$u.props.icon.labelSize
  21083. },
  21084. // label的颜色
  21085. labelColor: {
  21086. type: String,
  21087. default: uni.$u.props.icon.labelColor
  21088. },
  21089. // label与图标的距离
  21090. space: {
  21091. type: [String, Number],
  21092. default: uni.$u.props.icon.space
  21093. },
  21094. // 图片的mode
  21095. imgMode: {
  21096. type: String,
  21097. default: uni.$u.props.icon.imgMode
  21098. },
  21099. // 用于显示图片小图标时,图片的宽度
  21100. width: {
  21101. type: [String, Number],
  21102. default: uni.$u.props.icon.width
  21103. },
  21104. // 用于显示图片小图标时,图片的高度
  21105. height: {
  21106. type: [String, Number],
  21107. default: uni.$u.props.icon.height
  21108. },
  21109. // 用于解决某些情况下,让图标垂直居中的用途
  21110. top: {
  21111. type: [String, Number],
  21112. default: uni.$u.props.icon.top
  21113. },
  21114. // 是否阻止事件传播
  21115. stop: {
  21116. type: Boolean,
  21117. default: uni.$u.props.icon.stop
  21118. }
  21119. }
  21120. };
  21121. exports.default = _default;
  21122. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21123. /***/ }),
  21124. /***/ 66:
  21125. /*!*******************************************************************!*\
  21126. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/config.js ***!
  21127. \*******************************************************************/
  21128. /*! no static exports found */
  21129. /***/ (function(module, exports, __webpack_require__) {
  21130. "use strict";
  21131. Object.defineProperty(exports, "__esModule", {
  21132. value: true
  21133. });
  21134. exports.default = void 0;
  21135. // 此版本发布于2024-03-17
  21136. var version = '2.0.37';
  21137. // 开发环境才提示,生产环境不会提示
  21138. if (true) {
  21139. console.log("\n %c uView V".concat(version, " %c https://uviewui.com/ \n\n"), 'color: #ffffff; background: #3c9cff; padding:5px 0; border-radius: 5px;');
  21140. }
  21141. var _default = {
  21142. v: version,
  21143. version: version,
  21144. // 主题名称
  21145. type: ['primary', 'success', 'info', 'error', 'warning'],
  21146. // 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持
  21147. color: {
  21148. 'u-primary': '#2979ff',
  21149. 'u-warning': '#ff9900',
  21150. 'u-success': '#19be6b',
  21151. 'u-error': '#fa3534',
  21152. 'u-info': '#909399',
  21153. 'u-main-color': '#303133',
  21154. 'u-content-color': '#606266',
  21155. 'u-tips-color': '#909399',
  21156. 'u-light-color': '#c0c4cc'
  21157. },
  21158. // 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx
  21159. unit: 'px'
  21160. };
  21161. exports.default = _default;
  21162. /***/ }),
  21163. /***/ 665:
  21164. /*!************************************************************************!*\
  21165. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-tabs/props.js ***!
  21166. \************************************************************************/
  21167. /*! no static exports found */
  21168. /***/ (function(module, exports, __webpack_require__) {
  21169. "use strict";
  21170. /* WEBPACK VAR INJECTION */(function(uni) {
  21171. Object.defineProperty(exports, "__esModule", {
  21172. value: true
  21173. });
  21174. exports.default = void 0;
  21175. var _default = {
  21176. props: {
  21177. // 滑块的移动过渡时间,单位ms
  21178. duration: {
  21179. type: Number,
  21180. default: uni.$u.props.tabs.duration
  21181. },
  21182. // tabs标签数组
  21183. list: {
  21184. type: Array,
  21185. default: uni.$u.props.tabs.list
  21186. },
  21187. // 滑块颜色
  21188. lineColor: {
  21189. type: String,
  21190. default: uni.$u.props.tabs.lineColor
  21191. },
  21192. // 菜单选择中时的样式
  21193. activeStyle: {
  21194. type: [String, Object],
  21195. default: uni.$u.props.tabs.activeStyle
  21196. },
  21197. // 菜单非选中时的样式
  21198. inactiveStyle: {
  21199. type: [String, Object],
  21200. default: uni.$u.props.tabs.inactiveStyle
  21201. },
  21202. // 滑块长度
  21203. lineWidth: {
  21204. type: [String, Number],
  21205. default: uni.$u.props.tabs.lineWidth
  21206. },
  21207. // 滑块高度
  21208. lineHeight: {
  21209. type: [String, Number],
  21210. default: uni.$u.props.tabs.lineHeight
  21211. },
  21212. // 滑块背景显示大小,当滑块背景设置为图片时使用
  21213. lineBgSize: {
  21214. type: String,
  21215. default: uni.$u.props.tabs.lineBgSize
  21216. },
  21217. // 菜单item的样式
  21218. itemStyle: {
  21219. type: [String, Object],
  21220. default: uni.$u.props.tabs.itemStyle
  21221. },
  21222. // 菜单是否可滚动
  21223. scrollable: {
  21224. type: Boolean,
  21225. default: uni.$u.props.tabs.scrollable
  21226. },
  21227. // 当前选中标签的索引
  21228. current: {
  21229. type: [Number, String],
  21230. default: uni.$u.props.tabs.current
  21231. },
  21232. // 默认读取的键名
  21233. keyName: {
  21234. type: String,
  21235. default: uni.$u.props.tabs.keyName
  21236. }
  21237. }
  21238. };
  21239. exports.default = _default;
  21240. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21241. /***/ }),
  21242. /***/ 67:
  21243. /*!******************************************************************!*\
  21244. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props.js ***!
  21245. \******************************************************************/
  21246. /*! no static exports found */
  21247. /***/ (function(module, exports, __webpack_require__) {
  21248. "use strict";
  21249. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  21250. Object.defineProperty(exports, "__esModule", {
  21251. value: true
  21252. });
  21253. exports.default = void 0;
  21254. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  21255. var _config = _interopRequireDefault(__webpack_require__(/*! ./config */ 66));
  21256. var _actionSheet = _interopRequireDefault(__webpack_require__(/*! ./props/actionSheet.js */ 68));
  21257. var _album = _interopRequireDefault(__webpack_require__(/*! ./props/album.js */ 69));
  21258. var _alert = _interopRequireDefault(__webpack_require__(/*! ./props/alert.js */ 70));
  21259. var _avatar = _interopRequireDefault(__webpack_require__(/*! ./props/avatar */ 71));
  21260. var _avatarGroup = _interopRequireDefault(__webpack_require__(/*! ./props/avatarGroup */ 72));
  21261. var _backtop = _interopRequireDefault(__webpack_require__(/*! ./props/backtop */ 73));
  21262. var _badge = _interopRequireDefault(__webpack_require__(/*! ./props/badge */ 74));
  21263. var _button = _interopRequireDefault(__webpack_require__(/*! ./props/button */ 75));
  21264. var _calendar = _interopRequireDefault(__webpack_require__(/*! ./props/calendar */ 76));
  21265. var _carKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/carKeyboard */ 77));
  21266. var _cell = _interopRequireDefault(__webpack_require__(/*! ./props/cell */ 78));
  21267. var _cellGroup = _interopRequireDefault(__webpack_require__(/*! ./props/cellGroup */ 79));
  21268. var _checkbox = _interopRequireDefault(__webpack_require__(/*! ./props/checkbox */ 80));
  21269. var _checkboxGroup = _interopRequireDefault(__webpack_require__(/*! ./props/checkboxGroup */ 81));
  21270. var _circleProgress = _interopRequireDefault(__webpack_require__(/*! ./props/circleProgress */ 82));
  21271. var _code = _interopRequireDefault(__webpack_require__(/*! ./props/code */ 83));
  21272. var _codeInput = _interopRequireDefault(__webpack_require__(/*! ./props/codeInput */ 84));
  21273. var _col = _interopRequireDefault(__webpack_require__(/*! ./props/col */ 85));
  21274. var _collapse = _interopRequireDefault(__webpack_require__(/*! ./props/collapse */ 86));
  21275. var _collapseItem = _interopRequireDefault(__webpack_require__(/*! ./props/collapseItem */ 87));
  21276. var _columnNotice = _interopRequireDefault(__webpack_require__(/*! ./props/columnNotice */ 88));
  21277. var _countDown = _interopRequireDefault(__webpack_require__(/*! ./props/countDown */ 89));
  21278. var _countTo = _interopRequireDefault(__webpack_require__(/*! ./props/countTo */ 90));
  21279. var _datetimePicker = _interopRequireDefault(__webpack_require__(/*! ./props/datetimePicker */ 91));
  21280. var _divider = _interopRequireDefault(__webpack_require__(/*! ./props/divider */ 92));
  21281. var _empty = _interopRequireDefault(__webpack_require__(/*! ./props/empty */ 93));
  21282. var _form = _interopRequireDefault(__webpack_require__(/*! ./props/form */ 94));
  21283. var _formItem = _interopRequireDefault(__webpack_require__(/*! ./props/formItem */ 95));
  21284. var _gap = _interopRequireDefault(__webpack_require__(/*! ./props/gap */ 96));
  21285. var _grid = _interopRequireDefault(__webpack_require__(/*! ./props/grid */ 97));
  21286. var _gridItem = _interopRequireDefault(__webpack_require__(/*! ./props/gridItem */ 98));
  21287. var _icon = _interopRequireDefault(__webpack_require__(/*! ./props/icon */ 99));
  21288. var _image = _interopRequireDefault(__webpack_require__(/*! ./props/image */ 100));
  21289. var _indexAnchor = _interopRequireDefault(__webpack_require__(/*! ./props/indexAnchor */ 101));
  21290. var _indexList = _interopRequireDefault(__webpack_require__(/*! ./props/indexList */ 102));
  21291. var _input = _interopRequireDefault(__webpack_require__(/*! ./props/input */ 103));
  21292. var _keyboard = _interopRequireDefault(__webpack_require__(/*! ./props/keyboard */ 104));
  21293. var _line = _interopRequireDefault(__webpack_require__(/*! ./props/line */ 105));
  21294. var _lineProgress = _interopRequireDefault(__webpack_require__(/*! ./props/lineProgress */ 106));
  21295. var _link = _interopRequireDefault(__webpack_require__(/*! ./props/link */ 107));
  21296. var _list = _interopRequireDefault(__webpack_require__(/*! ./props/list */ 108));
  21297. var _listItem = _interopRequireDefault(__webpack_require__(/*! ./props/listItem */ 109));
  21298. var _loadingIcon = _interopRequireDefault(__webpack_require__(/*! ./props/loadingIcon */ 110));
  21299. var _loadingPage = _interopRequireDefault(__webpack_require__(/*! ./props/loadingPage */ 111));
  21300. var _loadmore = _interopRequireDefault(__webpack_require__(/*! ./props/loadmore */ 112));
  21301. var _modal = _interopRequireDefault(__webpack_require__(/*! ./props/modal */ 113));
  21302. var _navbar = _interopRequireDefault(__webpack_require__(/*! ./props/navbar */ 114));
  21303. var _noNetwork = _interopRequireDefault(__webpack_require__(/*! ./props/noNetwork */ 116));
  21304. var _noticeBar = _interopRequireDefault(__webpack_require__(/*! ./props/noticeBar */ 117));
  21305. var _notify = _interopRequireDefault(__webpack_require__(/*! ./props/notify */ 118));
  21306. var _numberBox = _interopRequireDefault(__webpack_require__(/*! ./props/numberBox */ 119));
  21307. var _numberKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/numberKeyboard */ 120));
  21308. var _overlay = _interopRequireDefault(__webpack_require__(/*! ./props/overlay */ 121));
  21309. var _parse = _interopRequireDefault(__webpack_require__(/*! ./props/parse */ 122));
  21310. var _picker = _interopRequireDefault(__webpack_require__(/*! ./props/picker */ 123));
  21311. var _popup = _interopRequireDefault(__webpack_require__(/*! ./props/popup */ 124));
  21312. var _radio = _interopRequireDefault(__webpack_require__(/*! ./props/radio */ 125));
  21313. var _radioGroup = _interopRequireDefault(__webpack_require__(/*! ./props/radioGroup */ 126));
  21314. var _rate = _interopRequireDefault(__webpack_require__(/*! ./props/rate */ 127));
  21315. var _readMore = _interopRequireDefault(__webpack_require__(/*! ./props/readMore */ 128));
  21316. var _row = _interopRequireDefault(__webpack_require__(/*! ./props/row */ 129));
  21317. var _rowNotice = _interopRequireDefault(__webpack_require__(/*! ./props/rowNotice */ 130));
  21318. var _scrollList = _interopRequireDefault(__webpack_require__(/*! ./props/scrollList */ 131));
  21319. var _search = _interopRequireDefault(__webpack_require__(/*! ./props/search */ 132));
  21320. var _section = _interopRequireDefault(__webpack_require__(/*! ./props/section */ 133));
  21321. var _skeleton = _interopRequireDefault(__webpack_require__(/*! ./props/skeleton */ 134));
  21322. var _slider = _interopRequireDefault(__webpack_require__(/*! ./props/slider */ 135));
  21323. var _statusBar = _interopRequireDefault(__webpack_require__(/*! ./props/statusBar */ 136));
  21324. var _steps = _interopRequireDefault(__webpack_require__(/*! ./props/steps */ 137));
  21325. var _stepsItem = _interopRequireDefault(__webpack_require__(/*! ./props/stepsItem */ 138));
  21326. var _sticky = _interopRequireDefault(__webpack_require__(/*! ./props/sticky */ 139));
  21327. var _subsection = _interopRequireDefault(__webpack_require__(/*! ./props/subsection */ 140));
  21328. var _swipeAction = _interopRequireDefault(__webpack_require__(/*! ./props/swipeAction */ 141));
  21329. var _swipeActionItem = _interopRequireDefault(__webpack_require__(/*! ./props/swipeActionItem */ 142));
  21330. var _swiper = _interopRequireDefault(__webpack_require__(/*! ./props/swiper */ 143));
  21331. var _swipterIndicator = _interopRequireDefault(__webpack_require__(/*! ./props/swipterIndicator */ 144));
  21332. var _switch2 = _interopRequireDefault(__webpack_require__(/*! ./props/switch */ 145));
  21333. var _tabbar = _interopRequireDefault(__webpack_require__(/*! ./props/tabbar */ 146));
  21334. var _tabbarItem = _interopRequireDefault(__webpack_require__(/*! ./props/tabbarItem */ 147));
  21335. var _tabs = _interopRequireDefault(__webpack_require__(/*! ./props/tabs */ 148));
  21336. var _tag = _interopRequireDefault(__webpack_require__(/*! ./props/tag */ 149));
  21337. var _text = _interopRequireDefault(__webpack_require__(/*! ./props/text */ 150));
  21338. var _textarea = _interopRequireDefault(__webpack_require__(/*! ./props/textarea */ 151));
  21339. var _toast = _interopRequireDefault(__webpack_require__(/*! ./props/toast */ 152));
  21340. var _toolbar = _interopRequireDefault(__webpack_require__(/*! ./props/toolbar */ 153));
  21341. var _tooltip = _interopRequireDefault(__webpack_require__(/*! ./props/tooltip */ 154));
  21342. var _transition = _interopRequireDefault(__webpack_require__(/*! ./props/transition */ 155));
  21343. var _upload = _interopRequireDefault(__webpack_require__(/*! ./props/upload */ 156));
  21344. 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; }
  21345. 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; }
  21346. var color = _config.default.color;
  21347. 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);
  21348. exports.default = _default;
  21349. /***/ }),
  21350. /***/ 673:
  21351. /*!**************************************************************************!*\
  21352. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-swiper/props.js ***!
  21353. \**************************************************************************/
  21354. /*! no static exports found */
  21355. /***/ (function(module, exports, __webpack_require__) {
  21356. "use strict";
  21357. /* WEBPACK VAR INJECTION */(function(uni) {
  21358. Object.defineProperty(exports, "__esModule", {
  21359. value: true
  21360. });
  21361. exports.default = void 0;
  21362. var _default = {
  21363. props: {
  21364. // 列表数组,元素可为字符串,如为对象可通过keyName指定目标属性名
  21365. list: {
  21366. type: Array,
  21367. default: uni.$u.props.swiper.list
  21368. },
  21369. // 是否显示面板指示器
  21370. indicator: {
  21371. type: Boolean,
  21372. default: uni.$u.props.swiper.indicator
  21373. },
  21374. // 指示器非激活颜色
  21375. indicatorActiveColor: {
  21376. type: String,
  21377. default: uni.$u.props.swiper.indicatorActiveColor
  21378. },
  21379. // 指示器的激活颜色
  21380. indicatorInactiveColor: {
  21381. type: String,
  21382. default: uni.$u.props.swiper.indicatorInactiveColor
  21383. },
  21384. // 指示器样式,可通过bottom,left,right进行定位
  21385. indicatorStyle: {
  21386. type: [String, Object],
  21387. default: uni.$u.props.swiper.indicatorStyle
  21388. },
  21389. // 指示器模式,line-线型,dot-点型
  21390. indicatorMode: {
  21391. type: String,
  21392. default: uni.$u.props.swiper.indicatorMode
  21393. },
  21394. // 是否自动切换
  21395. autoplay: {
  21396. type: Boolean,
  21397. default: uni.$u.props.swiper.autoplay
  21398. },
  21399. // 当前所在滑块的 index
  21400. current: {
  21401. type: [String, Number],
  21402. default: uni.$u.props.swiper.current
  21403. },
  21404. // 当前所在滑块的 item-id ,不能与 current 被同时指定
  21405. currentItemId: {
  21406. type: String,
  21407. default: uni.$u.props.swiper.currentItemId
  21408. },
  21409. // 滑块自动切换时间间隔
  21410. interval: {
  21411. type: [String, Number],
  21412. default: uni.$u.props.swiper.interval
  21413. },
  21414. // 滑块切换过程所需时间
  21415. duration: {
  21416. type: [String, Number],
  21417. default: uni.$u.props.swiper.duration
  21418. },
  21419. // 播放到末尾后是否重新回到开头
  21420. circular: {
  21421. type: Boolean,
  21422. default: uni.$u.props.swiper.circular
  21423. },
  21424. // 前边距,可用于露出前一项的一小部分,nvue和支付宝不支持
  21425. previousMargin: {
  21426. type: [String, Number],
  21427. default: uni.$u.props.swiper.previousMargin
  21428. },
  21429. // 后边距,可用于露出后一项的一小部分,nvue和支付宝不支持
  21430. nextMargin: {
  21431. type: [String, Number],
  21432. default: uni.$u.props.swiper.nextMargin
  21433. },
  21434. // 当开启时,会根据滑动速度,连续滑动多屏,支付宝不支持
  21435. acceleration: {
  21436. type: Boolean,
  21437. default: uni.$u.props.swiper.acceleration
  21438. },
  21439. // 同时显示的滑块数量,nvue、支付宝小程序不支持
  21440. displayMultipleItems: {
  21441. type: Number,
  21442. default: uni.$u.props.swiper.displayMultipleItems
  21443. },
  21444. // 指定swiper切换缓动动画类型,有效值:default、linear、easeInCubic、easeOutCubic、easeInOutCubic
  21445. // 只对微信小程序有效
  21446. easingFunction: {
  21447. type: String,
  21448. default: uni.$u.props.swiper.easingFunction
  21449. },
  21450. // list数组中指定对象的目标属性名
  21451. keyName: {
  21452. type: String,
  21453. default: uni.$u.props.swiper.keyName
  21454. },
  21455. // 图片的裁剪模式
  21456. imgMode: {
  21457. type: String,
  21458. default: uni.$u.props.swiper.imgMode
  21459. },
  21460. // 组件高度
  21461. height: {
  21462. type: [String, Number],
  21463. default: uni.$u.props.swiper.height
  21464. },
  21465. // 背景颜色
  21466. bgColor: {
  21467. type: String,
  21468. default: uni.$u.props.swiper.bgColor
  21469. },
  21470. // 组件圆角,数值或带单位的字符串
  21471. radius: {
  21472. type: [String, Number],
  21473. default: uni.$u.props.swiper.radius
  21474. },
  21475. // 是否加载中
  21476. loading: {
  21477. type: Boolean,
  21478. default: uni.$u.props.swiper.loading
  21479. },
  21480. // 是否显示标题,要求数组对象中有title属性
  21481. showTitle: {
  21482. type: Boolean,
  21483. default: uni.$u.props.swiper.showTitle
  21484. }
  21485. }
  21486. };
  21487. exports.default = _default;
  21488. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21489. /***/ }),
  21490. /***/ 68:
  21491. /*!******************************************************************************!*\
  21492. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/actionSheet.js ***!
  21493. \******************************************************************************/
  21494. /*! no static exports found */
  21495. /***/ (function(module, exports, __webpack_require__) {
  21496. "use strict";
  21497. Object.defineProperty(exports, "__esModule", {
  21498. value: true
  21499. });
  21500. exports.default = void 0;
  21501. /*
  21502. * @Author : LQ
  21503. * @Description :
  21504. * @version : 1.0
  21505. * @Date : 2021-08-20 16:44:21
  21506. * @LastAuthor : LQ
  21507. * @lastTime : 2021-08-20 16:44:35
  21508. * @FilePath : /u-view2.0/uview-ui/libs/config/props/actionSheet.js
  21509. */
  21510. var _default = {
  21511. // action-sheet组件
  21512. actionSheet: {
  21513. show: false,
  21514. title: '',
  21515. description: '',
  21516. actions: function actions() {
  21517. return [];
  21518. },
  21519. index: '',
  21520. cancelText: '',
  21521. closeOnClickAction: true,
  21522. safeAreaInsetBottom: true,
  21523. openType: '',
  21524. closeOnClickOverlay: true,
  21525. round: 0
  21526. }
  21527. };
  21528. exports.default = _default;
  21529. /***/ }),
  21530. /***/ 681:
  21531. /*!*************************************************************************!*\
  21532. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-popup/props.js ***!
  21533. \*************************************************************************/
  21534. /*! no static exports found */
  21535. /***/ (function(module, exports, __webpack_require__) {
  21536. "use strict";
  21537. /* WEBPACK VAR INJECTION */(function(uni) {
  21538. Object.defineProperty(exports, "__esModule", {
  21539. value: true
  21540. });
  21541. exports.default = void 0;
  21542. var _default = {
  21543. props: {
  21544. // 是否展示弹窗
  21545. show: {
  21546. type: Boolean,
  21547. default: uni.$u.props.popup.show
  21548. },
  21549. // 是否显示遮罩
  21550. overlay: {
  21551. type: Boolean,
  21552. default: uni.$u.props.popup.overlay
  21553. },
  21554. // 弹出的方向,可选值为 top bottom right left center
  21555. mode: {
  21556. type: String,
  21557. default: uni.$u.props.popup.mode
  21558. },
  21559. // 动画时长,单位ms
  21560. duration: {
  21561. type: [String, Number],
  21562. default: uni.$u.props.popup.duration
  21563. },
  21564. // 是否显示关闭图标
  21565. closeable: {
  21566. type: Boolean,
  21567. default: uni.$u.props.popup.closeable
  21568. },
  21569. // 自定义遮罩的样式
  21570. overlayStyle: {
  21571. type: [Object, String],
  21572. default: uni.$u.props.popup.overlayStyle
  21573. },
  21574. // 点击遮罩是否关闭弹窗
  21575. closeOnClickOverlay: {
  21576. type: Boolean,
  21577. default: uni.$u.props.popup.closeOnClickOverlay
  21578. },
  21579. // 层级
  21580. zIndex: {
  21581. type: [String, Number],
  21582. default: uni.$u.props.popup.zIndex
  21583. },
  21584. // 是否为iPhoneX留出底部安全距离
  21585. safeAreaInsetBottom: {
  21586. type: Boolean,
  21587. default: uni.$u.props.popup.safeAreaInsetBottom
  21588. },
  21589. // 是否留出顶部安全距离(状态栏高度)
  21590. safeAreaInsetTop: {
  21591. type: Boolean,
  21592. default: uni.$u.props.popup.safeAreaInsetTop
  21593. },
  21594. // 自定义关闭图标位置,top-left为左上角,top-right为右上角,bottom-left为左下角,bottom-right为右下角
  21595. closeIconPos: {
  21596. type: String,
  21597. default: uni.$u.props.popup.closeIconPos
  21598. },
  21599. // 是否显示圆角
  21600. round: {
  21601. type: [Boolean, String, Number],
  21602. default: uni.$u.props.popup.round
  21603. },
  21604. // mode=center,也即中部弹出时,是否使用缩放模式
  21605. zoom: {
  21606. type: Boolean,
  21607. default: uni.$u.props.popup.zoom
  21608. },
  21609. // 弹窗背景色,设置为transparent可去除白色背景
  21610. bgColor: {
  21611. type: String,
  21612. default: uni.$u.props.popup.bgColor
  21613. },
  21614. // 遮罩的透明度,0-1之间
  21615. overlayOpacity: {
  21616. type: [Number, String],
  21617. default: uni.$u.props.popup.overlayOpacity
  21618. }
  21619. }
  21620. };
  21621. exports.default = _default;
  21622. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21623. /***/ }),
  21624. /***/ 689:
  21625. /*!**************************************************************************************!*\
  21626. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vuex3/dist/vuex.common.js ***!
  21627. \**************************************************************************************/
  21628. /*! no static exports found */
  21629. /***/ (function(module, exports, __webpack_require__) {
  21630. "use strict";
  21631. /* WEBPACK VAR INJECTION */(function(global) {/*!
  21632. * vuex v3.6.2
  21633. * (c) 2021 Evan You
  21634. * @license MIT
  21635. */
  21636. function applyMixin (Vue) {
  21637. var version = Number(Vue.version.split('.')[0]);
  21638. if (version >= 2) {
  21639. Vue.mixin({ beforeCreate: vuexInit });
  21640. } else {
  21641. // override init and inject vuex init procedure
  21642. // for 1.x backwards compatibility.
  21643. var _init = Vue.prototype._init;
  21644. Vue.prototype._init = function (options) {
  21645. if ( options === void 0 ) options = {};
  21646. options.init = options.init
  21647. ? [vuexInit].concat(options.init)
  21648. : vuexInit;
  21649. _init.call(this, options);
  21650. };
  21651. }
  21652. /**
  21653. * Vuex init hook, injected into each instances init hooks list.
  21654. */
  21655. function vuexInit () {
  21656. var options = this.$options;
  21657. // store injection
  21658. if (options.store) {
  21659. this.$store = typeof options.store === 'function'
  21660. ? options.store()
  21661. : options.store;
  21662. } else if (options.parent && options.parent.$store) {
  21663. this.$store = options.parent.$store;
  21664. }
  21665. }
  21666. }
  21667. var target = typeof window !== 'undefined'
  21668. ? window
  21669. : typeof global !== 'undefined'
  21670. ? global
  21671. : {};
  21672. var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  21673. function devtoolPlugin (store) {
  21674. if (!devtoolHook) { return }
  21675. store._devtoolHook = devtoolHook;
  21676. devtoolHook.emit('vuex:init', store);
  21677. devtoolHook.on('vuex:travel-to-state', function (targetState) {
  21678. store.replaceState(targetState);
  21679. });
  21680. store.subscribe(function (mutation, state) {
  21681. devtoolHook.emit('vuex:mutation', mutation, state);
  21682. }, { prepend: true });
  21683. store.subscribeAction(function (action, state) {
  21684. devtoolHook.emit('vuex:action', action, state);
  21685. }, { prepend: true });
  21686. }
  21687. /**
  21688. * Get the first item that pass the test
  21689. * by second argument function
  21690. *
  21691. * @param {Array} list
  21692. * @param {Function} f
  21693. * @return {*}
  21694. */
  21695. function find (list, f) {
  21696. return list.filter(f)[0]
  21697. }
  21698. /**
  21699. * Deep copy the given object considering circular structure.
  21700. * This function caches all nested objects and its copies.
  21701. * If it detects circular structure, use cached copy to avoid infinite loop.
  21702. *
  21703. * @param {*} obj
  21704. * @param {Array<Object>} cache
  21705. * @return {*}
  21706. */
  21707. function deepCopy (obj, cache) {
  21708. if ( cache === void 0 ) cache = [];
  21709. // just return if obj is immutable value
  21710. if (obj === null || typeof obj !== 'object') {
  21711. return obj
  21712. }
  21713. // if obj is hit, it is in circular structure
  21714. var hit = find(cache, function (c) { return c.original === obj; });
  21715. if (hit) {
  21716. return hit.copy
  21717. }
  21718. var copy = Array.isArray(obj) ? [] : {};
  21719. // put the copy into cache at first
  21720. // because we want to refer it in recursive deepCopy
  21721. cache.push({
  21722. original: obj,
  21723. copy: copy
  21724. });
  21725. Object.keys(obj).forEach(function (key) {
  21726. copy[key] = deepCopy(obj[key], cache);
  21727. });
  21728. return copy
  21729. }
  21730. /**
  21731. * forEach for object
  21732. */
  21733. function forEachValue (obj, fn) {
  21734. Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
  21735. }
  21736. function isObject (obj) {
  21737. return obj !== null && typeof obj === 'object'
  21738. }
  21739. function isPromise (val) {
  21740. return val && typeof val.then === 'function'
  21741. }
  21742. function assert (condition, msg) {
  21743. if (!condition) { throw new Error(("[vuex] " + msg)) }
  21744. }
  21745. function partial (fn, arg) {
  21746. return function () {
  21747. return fn(arg)
  21748. }
  21749. }
  21750. // Base data struct for store's module, package with some attribute and method
  21751. var Module = function Module (rawModule, runtime) {
  21752. this.runtime = runtime;
  21753. // Store some children item
  21754. this._children = Object.create(null);
  21755. // Store the origin module object which passed by programmer
  21756. this._rawModule = rawModule;
  21757. var rawState = rawModule.state;
  21758. // Store the origin module's state
  21759. this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
  21760. };
  21761. var prototypeAccessors = { namespaced: { configurable: true } };
  21762. prototypeAccessors.namespaced.get = function () {
  21763. return !!this._rawModule.namespaced
  21764. };
  21765. Module.prototype.addChild = function addChild (key, module) {
  21766. this._children[key] = module;
  21767. };
  21768. Module.prototype.removeChild = function removeChild (key) {
  21769. delete this._children[key];
  21770. };
  21771. Module.prototype.getChild = function getChild (key) {
  21772. return this._children[key]
  21773. };
  21774. Module.prototype.hasChild = function hasChild (key) {
  21775. return key in this._children
  21776. };
  21777. Module.prototype.update = function update (rawModule) {
  21778. this._rawModule.namespaced = rawModule.namespaced;
  21779. if (rawModule.actions) {
  21780. this._rawModule.actions = rawModule.actions;
  21781. }
  21782. if (rawModule.mutations) {
  21783. this._rawModule.mutations = rawModule.mutations;
  21784. }
  21785. if (rawModule.getters) {
  21786. this._rawModule.getters = rawModule.getters;
  21787. }
  21788. };
  21789. Module.prototype.forEachChild = function forEachChild (fn) {
  21790. forEachValue(this._children, fn);
  21791. };
  21792. Module.prototype.forEachGetter = function forEachGetter (fn) {
  21793. if (this._rawModule.getters) {
  21794. forEachValue(this._rawModule.getters, fn);
  21795. }
  21796. };
  21797. Module.prototype.forEachAction = function forEachAction (fn) {
  21798. if (this._rawModule.actions) {
  21799. forEachValue(this._rawModule.actions, fn);
  21800. }
  21801. };
  21802. Module.prototype.forEachMutation = function forEachMutation (fn) {
  21803. if (this._rawModule.mutations) {
  21804. forEachValue(this._rawModule.mutations, fn);
  21805. }
  21806. };
  21807. Object.defineProperties( Module.prototype, prototypeAccessors );
  21808. var ModuleCollection = function ModuleCollection (rawRootModule) {
  21809. // register root module (Vuex.Store options)
  21810. this.register([], rawRootModule, false);
  21811. };
  21812. ModuleCollection.prototype.get = function get (path) {
  21813. return path.reduce(function (module, key) {
  21814. return module.getChild(key)
  21815. }, this.root)
  21816. };
  21817. ModuleCollection.prototype.getNamespace = function getNamespace (path) {
  21818. var module = this.root;
  21819. return path.reduce(function (namespace, key) {
  21820. module = module.getChild(key);
  21821. return namespace + (module.namespaced ? key + '/' : '')
  21822. }, '')
  21823. };
  21824. ModuleCollection.prototype.update = function update$1 (rawRootModule) {
  21825. update([], this.root, rawRootModule);
  21826. };
  21827. ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
  21828. var this$1 = this;
  21829. if ( runtime === void 0 ) runtime = true;
  21830. if ((true)) {
  21831. assertRawModule(path, rawModule);
  21832. }
  21833. var newModule = new Module(rawModule, runtime);
  21834. if (path.length === 0) {
  21835. this.root = newModule;
  21836. } else {
  21837. var parent = this.get(path.slice(0, -1));
  21838. parent.addChild(path[path.length - 1], newModule);
  21839. }
  21840. // register nested modules
  21841. if (rawModule.modules) {
  21842. forEachValue(rawModule.modules, function (rawChildModule, key) {
  21843. this$1.register(path.concat(key), rawChildModule, runtime);
  21844. });
  21845. }
  21846. };
  21847. ModuleCollection.prototype.unregister = function unregister (path) {
  21848. var parent = this.get(path.slice(0, -1));
  21849. var key = path[path.length - 1];
  21850. var child = parent.getChild(key);
  21851. if (!child) {
  21852. if ((true)) {
  21853. console.warn(
  21854. "[vuex] trying to unregister module '" + key + "', which is " +
  21855. "not registered"
  21856. );
  21857. }
  21858. return
  21859. }
  21860. if (!child.runtime) {
  21861. return
  21862. }
  21863. parent.removeChild(key);
  21864. };
  21865. ModuleCollection.prototype.isRegistered = function isRegistered (path) {
  21866. var parent = this.get(path.slice(0, -1));
  21867. var key = path[path.length - 1];
  21868. if (parent) {
  21869. return parent.hasChild(key)
  21870. }
  21871. return false
  21872. };
  21873. function update (path, targetModule, newModule) {
  21874. if ((true)) {
  21875. assertRawModule(path, newModule);
  21876. }
  21877. // update target module
  21878. targetModule.update(newModule);
  21879. // update nested modules
  21880. if (newModule.modules) {
  21881. for (var key in newModule.modules) {
  21882. if (!targetModule.getChild(key)) {
  21883. if ((true)) {
  21884. console.warn(
  21885. "[vuex] trying to add a new module '" + key + "' on hot reloading, " +
  21886. 'manual reload is needed'
  21887. );
  21888. }
  21889. return
  21890. }
  21891. update(
  21892. path.concat(key),
  21893. targetModule.getChild(key),
  21894. newModule.modules[key]
  21895. );
  21896. }
  21897. }
  21898. }
  21899. var functionAssert = {
  21900. assert: function (value) { return typeof value === 'function'; },
  21901. expected: 'function'
  21902. };
  21903. var objectAssert = {
  21904. assert: function (value) { return typeof value === 'function' ||
  21905. (typeof value === 'object' && typeof value.handler === 'function'); },
  21906. expected: 'function or object with "handler" function'
  21907. };
  21908. var assertTypes = {
  21909. getters: functionAssert,
  21910. mutations: functionAssert,
  21911. actions: objectAssert
  21912. };
  21913. function assertRawModule (path, rawModule) {
  21914. Object.keys(assertTypes).forEach(function (key) {
  21915. if (!rawModule[key]) { return }
  21916. var assertOptions = assertTypes[key];
  21917. forEachValue(rawModule[key], function (value, type) {
  21918. assert(
  21919. assertOptions.assert(value),
  21920. makeAssertionMessage(path, key, type, value, assertOptions.expected)
  21921. );
  21922. });
  21923. });
  21924. }
  21925. function makeAssertionMessage (path, key, type, value, expected) {
  21926. var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
  21927. if (path.length > 0) {
  21928. buf += " in module \"" + (path.join('.')) + "\"";
  21929. }
  21930. buf += " is " + (JSON.stringify(value)) + ".";
  21931. return buf
  21932. }
  21933. var Vue; // bind on install
  21934. var Store = function Store (options) {
  21935. var this$1 = this;
  21936. if ( options === void 0 ) options = {};
  21937. // Auto install if it is not done yet and `window` has `Vue`.
  21938. // To allow users to avoid auto-installation in some cases,
  21939. // this code should be placed here. See #731
  21940. if (!Vue && typeof window !== 'undefined' && window.Vue) {
  21941. install(window.Vue);
  21942. }
  21943. if ((true)) {
  21944. assert(Vue, "must call Vue.use(Vuex) before creating a store instance.");
  21945. assert(typeof Promise !== 'undefined', "vuex requires a Promise polyfill in this browser.");
  21946. assert(this instanceof Store, "store must be called with the new operator.");
  21947. }
  21948. var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
  21949. var strict = options.strict; if ( strict === void 0 ) strict = false;
  21950. // store internal state
  21951. this._committing = false;
  21952. this._actions = Object.create(null);
  21953. this._actionSubscribers = [];
  21954. this._mutations = Object.create(null);
  21955. this._wrappedGetters = Object.create(null);
  21956. this._modules = new ModuleCollection(options);
  21957. this._modulesNamespaceMap = Object.create(null);
  21958. this._subscribers = [];
  21959. this._watcherVM = new Vue();
  21960. this._makeLocalGettersCache = Object.create(null);
  21961. // bind commit and dispatch to self
  21962. var store = this;
  21963. var ref = this;
  21964. var dispatch = ref.dispatch;
  21965. var commit = ref.commit;
  21966. this.dispatch = function boundDispatch (type, payload) {
  21967. return dispatch.call(store, type, payload)
  21968. };
  21969. this.commit = function boundCommit (type, payload, options) {
  21970. return commit.call(store, type, payload, options)
  21971. };
  21972. // strict mode
  21973. this.strict = strict;
  21974. var state = this._modules.root.state;
  21975. // init root module.
  21976. // this also recursively registers all sub-modules
  21977. // and collects all module getters inside this._wrappedGetters
  21978. installModule(this, state, [], this._modules.root);
  21979. // initialize the store vm, which is responsible for the reactivity
  21980. // (also registers _wrappedGetters as computed properties)
  21981. resetStoreVM(this, state);
  21982. // apply plugins
  21983. plugins.forEach(function (plugin) { return plugin(this$1); });
  21984. var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
  21985. if (useDevtools) {
  21986. devtoolPlugin(this);
  21987. }
  21988. };
  21989. var prototypeAccessors$1 = { state: { configurable: true } };
  21990. prototypeAccessors$1.state.get = function () {
  21991. return this._vm._data.$$state
  21992. };
  21993. prototypeAccessors$1.state.set = function (v) {
  21994. if ((true)) {
  21995. assert(false, "use store.replaceState() to explicit replace store state.");
  21996. }
  21997. };
  21998. Store.prototype.commit = function commit (_type, _payload, _options) {
  21999. var this$1 = this;
  22000. // check object-style commit
  22001. var ref = unifyObjectStyle(_type, _payload, _options);
  22002. var type = ref.type;
  22003. var payload = ref.payload;
  22004. var options = ref.options;
  22005. var mutation = { type: type, payload: payload };
  22006. var entry = this._mutations[type];
  22007. if (!entry) {
  22008. if ((true)) {
  22009. console.error(("[vuex] unknown mutation type: " + type));
  22010. }
  22011. return
  22012. }
  22013. this._withCommit(function () {
  22014. entry.forEach(function commitIterator (handler) {
  22015. handler(payload);
  22016. });
  22017. });
  22018. this._subscribers
  22019. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  22020. .forEach(function (sub) { return sub(mutation, this$1.state); });
  22021. if (
  22022. ( true) &&
  22023. options && options.silent
  22024. ) {
  22025. console.warn(
  22026. "[vuex] mutation type: " + type + ". Silent option has been removed. " +
  22027. 'Use the filter functionality in the vue-devtools'
  22028. );
  22029. }
  22030. };
  22031. Store.prototype.dispatch = function dispatch (_type, _payload) {
  22032. var this$1 = this;
  22033. // check object-style dispatch
  22034. var ref = unifyObjectStyle(_type, _payload);
  22035. var type = ref.type;
  22036. var payload = ref.payload;
  22037. var action = { type: type, payload: payload };
  22038. var entry = this._actions[type];
  22039. if (!entry) {
  22040. if ((true)) {
  22041. console.error(("[vuex] unknown action type: " + type));
  22042. }
  22043. return
  22044. }
  22045. try {
  22046. this._actionSubscribers
  22047. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  22048. .filter(function (sub) { return sub.before; })
  22049. .forEach(function (sub) { return sub.before(action, this$1.state); });
  22050. } catch (e) {
  22051. if ((true)) {
  22052. console.warn("[vuex] error in before action subscribers: ");
  22053. console.error(e);
  22054. }
  22055. }
  22056. var result = entry.length > 1
  22057. ? Promise.all(entry.map(function (handler) { return handler(payload); }))
  22058. : entry[0](payload);
  22059. return new Promise(function (resolve, reject) {
  22060. result.then(function (res) {
  22061. try {
  22062. this$1._actionSubscribers
  22063. .filter(function (sub) { return sub.after; })
  22064. .forEach(function (sub) { return sub.after(action, this$1.state); });
  22065. } catch (e) {
  22066. if ((true)) {
  22067. console.warn("[vuex] error in after action subscribers: ");
  22068. console.error(e);
  22069. }
  22070. }
  22071. resolve(res);
  22072. }, function (error) {
  22073. try {
  22074. this$1._actionSubscribers
  22075. .filter(function (sub) { return sub.error; })
  22076. .forEach(function (sub) { return sub.error(action, this$1.state, error); });
  22077. } catch (e) {
  22078. if ((true)) {
  22079. console.warn("[vuex] error in error action subscribers: ");
  22080. console.error(e);
  22081. }
  22082. }
  22083. reject(error);
  22084. });
  22085. })
  22086. };
  22087. Store.prototype.subscribe = function subscribe (fn, options) {
  22088. return genericSubscribe(fn, this._subscribers, options)
  22089. };
  22090. Store.prototype.subscribeAction = function subscribeAction (fn, options) {
  22091. var subs = typeof fn === 'function' ? { before: fn } : fn;
  22092. return genericSubscribe(subs, this._actionSubscribers, options)
  22093. };
  22094. Store.prototype.watch = function watch (getter, cb, options) {
  22095. var this$1 = this;
  22096. if ((true)) {
  22097. assert(typeof getter === 'function', "store.watch only accepts a function.");
  22098. }
  22099. return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
  22100. };
  22101. Store.prototype.replaceState = function replaceState (state) {
  22102. var this$1 = this;
  22103. this._withCommit(function () {
  22104. this$1._vm._data.$$state = state;
  22105. });
  22106. };
  22107. Store.prototype.registerModule = function registerModule (path, rawModule, options) {
  22108. if ( options === void 0 ) options = {};
  22109. if (typeof path === 'string') { path = [path]; }
  22110. if ((true)) {
  22111. assert(Array.isArray(path), "module path must be a string or an Array.");
  22112. assert(path.length > 0, 'cannot register the root module by using registerModule.');
  22113. }
  22114. this._modules.register(path, rawModule);
  22115. installModule(this, this.state, path, this._modules.get(path), options.preserveState);
  22116. // reset store to update getters...
  22117. resetStoreVM(this, this.state);
  22118. };
  22119. Store.prototype.unregisterModule = function unregisterModule (path) {
  22120. var this$1 = this;
  22121. if (typeof path === 'string') { path = [path]; }
  22122. if ((true)) {
  22123. assert(Array.isArray(path), "module path must be a string or an Array.");
  22124. }
  22125. this._modules.unregister(path);
  22126. this._withCommit(function () {
  22127. var parentState = getNestedState(this$1.state, path.slice(0, -1));
  22128. Vue.delete(parentState, path[path.length - 1]);
  22129. });
  22130. resetStore(this);
  22131. };
  22132. Store.prototype.hasModule = function hasModule (path) {
  22133. if (typeof path === 'string') { path = [path]; }
  22134. if ((true)) {
  22135. assert(Array.isArray(path), "module path must be a string or an Array.");
  22136. }
  22137. return this._modules.isRegistered(path)
  22138. };
  22139. Store.prototype[[104,111,116,85,112,100,97,116,101].map(function (item) {return String.fromCharCode(item)}).join('')] = function (newOptions) {
  22140. this._modules.update(newOptions);
  22141. resetStore(this, true);
  22142. };
  22143. Store.prototype._withCommit = function _withCommit (fn) {
  22144. var committing = this._committing;
  22145. this._committing = true;
  22146. fn();
  22147. this._committing = committing;
  22148. };
  22149. Object.defineProperties( Store.prototype, prototypeAccessors$1 );
  22150. function genericSubscribe (fn, subs, options) {
  22151. if (subs.indexOf(fn) < 0) {
  22152. options && options.prepend
  22153. ? subs.unshift(fn)
  22154. : subs.push(fn);
  22155. }
  22156. return function () {
  22157. var i = subs.indexOf(fn);
  22158. if (i > -1) {
  22159. subs.splice(i, 1);
  22160. }
  22161. }
  22162. }
  22163. function resetStore (store, hot) {
  22164. store._actions = Object.create(null);
  22165. store._mutations = Object.create(null);
  22166. store._wrappedGetters = Object.create(null);
  22167. store._modulesNamespaceMap = Object.create(null);
  22168. var state = store.state;
  22169. // init all modules
  22170. installModule(store, state, [], store._modules.root, true);
  22171. // reset vm
  22172. resetStoreVM(store, state, hot);
  22173. }
  22174. function resetStoreVM (store, state, hot) {
  22175. var oldVm = store._vm;
  22176. // bind store public getters
  22177. store.getters = {};
  22178. // reset local getters cache
  22179. store._makeLocalGettersCache = Object.create(null);
  22180. var wrappedGetters = store._wrappedGetters;
  22181. var computed = {};
  22182. forEachValue(wrappedGetters, function (fn, key) {
  22183. // use computed to leverage its lazy-caching mechanism
  22184. // direct inline function use will lead to closure preserving oldVm.
  22185. // using partial to return function with only arguments preserved in closure environment.
  22186. computed[key] = partial(fn, store);
  22187. Object.defineProperty(store.getters, key, {
  22188. get: function () { return store._vm[key]; },
  22189. enumerable: true // for local getters
  22190. });
  22191. });
  22192. // use a Vue instance to store the state tree
  22193. // suppress warnings just in case the user has added
  22194. // some funky global mixins
  22195. var silent = Vue.config.silent;
  22196. Vue.config.silent = true;
  22197. store._vm = new Vue({
  22198. data: {
  22199. $$state: state
  22200. },
  22201. computed: computed
  22202. });
  22203. Vue.config.silent = silent;
  22204. // enable strict mode for new vm
  22205. if (store.strict) {
  22206. enableStrictMode(store);
  22207. }
  22208. if (oldVm) {
  22209. if (hot) {
  22210. // dispatch changes in all subscribed watchers
  22211. // to force getter re-evaluation for hot reloading.
  22212. store._withCommit(function () {
  22213. oldVm._data.$$state = null;
  22214. });
  22215. }
  22216. Vue.nextTick(function () { return oldVm.$destroy(); });
  22217. }
  22218. }
  22219. function installModule (store, rootState, path, module, hot) {
  22220. var isRoot = !path.length;
  22221. var namespace = store._modules.getNamespace(path);
  22222. // register in namespace map
  22223. if (module.namespaced) {
  22224. if (store._modulesNamespaceMap[namespace] && ("development" !== 'production')) {
  22225. console.error(("[vuex] duplicate namespace " + namespace + " for the namespaced module " + (path.join('/'))));
  22226. }
  22227. store._modulesNamespaceMap[namespace] = module;
  22228. }
  22229. // set state
  22230. if (!isRoot && !hot) {
  22231. var parentState = getNestedState(rootState, path.slice(0, -1));
  22232. var moduleName = path[path.length - 1];
  22233. store._withCommit(function () {
  22234. if ((true)) {
  22235. if (moduleName in parentState) {
  22236. console.warn(
  22237. ("[vuex] state field \"" + moduleName + "\" was overridden by a module with the same name at \"" + (path.join('.')) + "\"")
  22238. );
  22239. }
  22240. }
  22241. Vue.set(parentState, moduleName, module.state);
  22242. });
  22243. }
  22244. var local = module.context = makeLocalContext(store, namespace, path);
  22245. module.forEachMutation(function (mutation, key) {
  22246. var namespacedType = namespace + key;
  22247. registerMutation(store, namespacedType, mutation, local);
  22248. });
  22249. module.forEachAction(function (action, key) {
  22250. var type = action.root ? key : namespace + key;
  22251. var handler = action.handler || action;
  22252. registerAction(store, type, handler, local);
  22253. });
  22254. module.forEachGetter(function (getter, key) {
  22255. var namespacedType = namespace + key;
  22256. registerGetter(store, namespacedType, getter, local);
  22257. });
  22258. module.forEachChild(function (child, key) {
  22259. installModule(store, rootState, path.concat(key), child, hot);
  22260. });
  22261. }
  22262. /**
  22263. * make localized dispatch, commit, getters and state
  22264. * if there is no namespace, just use root ones
  22265. */
  22266. function makeLocalContext (store, namespace, path) {
  22267. var noNamespace = namespace === '';
  22268. var local = {
  22269. dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
  22270. var args = unifyObjectStyle(_type, _payload, _options);
  22271. var payload = args.payload;
  22272. var options = args.options;
  22273. var type = args.type;
  22274. if (!options || !options.root) {
  22275. type = namespace + type;
  22276. if (( true) && !store._actions[type]) {
  22277. console.error(("[vuex] unknown local action type: " + (args.type) + ", global type: " + type));
  22278. return
  22279. }
  22280. }
  22281. return store.dispatch(type, payload)
  22282. },
  22283. commit: noNamespace ? store.commit : function (_type, _payload, _options) {
  22284. var args = unifyObjectStyle(_type, _payload, _options);
  22285. var payload = args.payload;
  22286. var options = args.options;
  22287. var type = args.type;
  22288. if (!options || !options.root) {
  22289. type = namespace + type;
  22290. if (( true) && !store._mutations[type]) {
  22291. console.error(("[vuex] unknown local mutation type: " + (args.type) + ", global type: " + type));
  22292. return
  22293. }
  22294. }
  22295. store.commit(type, payload, options);
  22296. }
  22297. };
  22298. // getters and state object must be gotten lazily
  22299. // because they will be changed by vm update
  22300. Object.defineProperties(local, {
  22301. getters: {
  22302. get: noNamespace
  22303. ? function () { return store.getters; }
  22304. : function () { return makeLocalGetters(store, namespace); }
  22305. },
  22306. state: {
  22307. get: function () { return getNestedState(store.state, path); }
  22308. }
  22309. });
  22310. return local
  22311. }
  22312. function makeLocalGetters (store, namespace) {
  22313. if (!store._makeLocalGettersCache[namespace]) {
  22314. var gettersProxy = {};
  22315. var splitPos = namespace.length;
  22316. Object.keys(store.getters).forEach(function (type) {
  22317. // skip if the target getter is not match this namespace
  22318. if (type.slice(0, splitPos) !== namespace) { return }
  22319. // extract local getter type
  22320. var localType = type.slice(splitPos);
  22321. // Add a port to the getters proxy.
  22322. // Define as getter property because
  22323. // we do not want to evaluate the getters in this time.
  22324. Object.defineProperty(gettersProxy, localType, {
  22325. get: function () { return store.getters[type]; },
  22326. enumerable: true
  22327. });
  22328. });
  22329. store._makeLocalGettersCache[namespace] = gettersProxy;
  22330. }
  22331. return store._makeLocalGettersCache[namespace]
  22332. }
  22333. function registerMutation (store, type, handler, local) {
  22334. var entry = store._mutations[type] || (store._mutations[type] = []);
  22335. entry.push(function wrappedMutationHandler (payload) {
  22336. handler.call(store, local.state, payload);
  22337. });
  22338. }
  22339. function registerAction (store, type, handler, local) {
  22340. var entry = store._actions[type] || (store._actions[type] = []);
  22341. entry.push(function wrappedActionHandler (payload) {
  22342. var res = handler.call(store, {
  22343. dispatch: local.dispatch,
  22344. commit: local.commit,
  22345. getters: local.getters,
  22346. state: local.state,
  22347. rootGetters: store.getters,
  22348. rootState: store.state
  22349. }, payload);
  22350. if (!isPromise(res)) {
  22351. res = Promise.resolve(res);
  22352. }
  22353. if (store._devtoolHook) {
  22354. return res.catch(function (err) {
  22355. store._devtoolHook.emit('vuex:error', err);
  22356. throw err
  22357. })
  22358. } else {
  22359. return res
  22360. }
  22361. });
  22362. }
  22363. function registerGetter (store, type, rawGetter, local) {
  22364. if (store._wrappedGetters[type]) {
  22365. if ((true)) {
  22366. console.error(("[vuex] duplicate getter key: " + type));
  22367. }
  22368. return
  22369. }
  22370. store._wrappedGetters[type] = function wrappedGetter (store) {
  22371. return rawGetter(
  22372. local.state, // local state
  22373. local.getters, // local getters
  22374. store.state, // root state
  22375. store.getters // root getters
  22376. )
  22377. };
  22378. }
  22379. function enableStrictMode (store) {
  22380. store._vm.$watch(function () { return this._data.$$state }, function () {
  22381. if ((true)) {
  22382. assert(store._committing, "do not mutate vuex store state outside mutation handlers.");
  22383. }
  22384. }, { deep: true, sync: true });
  22385. }
  22386. function getNestedState (state, path) {
  22387. return path.reduce(function (state, key) { return state[key]; }, state)
  22388. }
  22389. function unifyObjectStyle (type, payload, options) {
  22390. if (isObject(type) && type.type) {
  22391. options = payload;
  22392. payload = type;
  22393. type = type.type;
  22394. }
  22395. if ((true)) {
  22396. assert(typeof type === 'string', ("expects string as the type, but found " + (typeof type) + "."));
  22397. }
  22398. return { type: type, payload: payload, options: options }
  22399. }
  22400. function install (_Vue) {
  22401. if (Vue && _Vue === Vue) {
  22402. if ((true)) {
  22403. console.error(
  22404. '[vuex] already installed. Vue.use(Vuex) should be called only once.'
  22405. );
  22406. }
  22407. return
  22408. }
  22409. Vue = _Vue;
  22410. applyMixin(Vue);
  22411. }
  22412. /**
  22413. * Reduce the code which written in Vue.js for getting the state.
  22414. * @param {String} [namespace] - Module's namespace
  22415. * @param {Object|Array} states # Object's item can be a function which accept state and getters for param, you can do something for state and getters in it.
  22416. * @param {Object}
  22417. */
  22418. var mapState = normalizeNamespace(function (namespace, states) {
  22419. var res = {};
  22420. if (( true) && !isValidMap(states)) {
  22421. console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');
  22422. }
  22423. normalizeMap(states).forEach(function (ref) {
  22424. var key = ref.key;
  22425. var val = ref.val;
  22426. res[key] = function mappedState () {
  22427. var state = this.$store.state;
  22428. var getters = this.$store.getters;
  22429. if (namespace) {
  22430. var module = getModuleByNamespace(this.$store, 'mapState', namespace);
  22431. if (!module) {
  22432. return
  22433. }
  22434. state = module.context.state;
  22435. getters = module.context.getters;
  22436. }
  22437. return typeof val === 'function'
  22438. ? val.call(this, state, getters)
  22439. : state[val]
  22440. };
  22441. // mark vuex getter for devtools
  22442. res[key].vuex = true;
  22443. });
  22444. return res
  22445. });
  22446. /**
  22447. * Reduce the code which written in Vue.js for committing the mutation
  22448. * @param {String} [namespace] - Module's namespace
  22449. * @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept another params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
  22450. * @return {Object}
  22451. */
  22452. var mapMutations = normalizeNamespace(function (namespace, mutations) {
  22453. var res = {};
  22454. if (( true) && !isValidMap(mutations)) {
  22455. console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');
  22456. }
  22457. normalizeMap(mutations).forEach(function (ref) {
  22458. var key = ref.key;
  22459. var val = ref.val;
  22460. res[key] = function mappedMutation () {
  22461. var args = [], len = arguments.length;
  22462. while ( len-- ) args[ len ] = arguments[ len ];
  22463. // Get the commit method from store
  22464. var commit = this.$store.commit;
  22465. if (namespace) {
  22466. var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
  22467. if (!module) {
  22468. return
  22469. }
  22470. commit = module.context.commit;
  22471. }
  22472. return typeof val === 'function'
  22473. ? val.apply(this, [commit].concat(args))
  22474. : commit.apply(this.$store, [val].concat(args))
  22475. };
  22476. });
  22477. return res
  22478. });
  22479. /**
  22480. * Reduce the code which written in Vue.js for getting the getters
  22481. * @param {String} [namespace] - Module's namespace
  22482. * @param {Object|Array} getters
  22483. * @return {Object}
  22484. */
  22485. var mapGetters = normalizeNamespace(function (namespace, getters) {
  22486. var res = {};
  22487. if (( true) && !isValidMap(getters)) {
  22488. console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');
  22489. }
  22490. normalizeMap(getters).forEach(function (ref) {
  22491. var key = ref.key;
  22492. var val = ref.val;
  22493. // The namespace has been mutated by normalizeNamespace
  22494. val = namespace + val;
  22495. res[key] = function mappedGetter () {
  22496. if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
  22497. return
  22498. }
  22499. if (( true) && !(val in this.$store.getters)) {
  22500. console.error(("[vuex] unknown getter: " + val));
  22501. return
  22502. }
  22503. return this.$store.getters[val]
  22504. };
  22505. // mark vuex getter for devtools
  22506. res[key].vuex = true;
  22507. });
  22508. return res
  22509. });
  22510. /**
  22511. * Reduce the code which written in Vue.js for dispatch the action
  22512. * @param {String} [namespace] - Module's namespace
  22513. * @param {Object|Array} actions # Object's item can be a function which accept `dispatch` function as the first param, it can accept anthor params. You can dispatch action and do any other things in this function. specially, You need to pass anthor params from the mapped function.
  22514. * @return {Object}
  22515. */
  22516. var mapActions = normalizeNamespace(function (namespace, actions) {
  22517. var res = {};
  22518. if (( true) && !isValidMap(actions)) {
  22519. console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');
  22520. }
  22521. normalizeMap(actions).forEach(function (ref) {
  22522. var key = ref.key;
  22523. var val = ref.val;
  22524. res[key] = function mappedAction () {
  22525. var args = [], len = arguments.length;
  22526. while ( len-- ) args[ len ] = arguments[ len ];
  22527. // get dispatch function from store
  22528. var dispatch = this.$store.dispatch;
  22529. if (namespace) {
  22530. var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
  22531. if (!module) {
  22532. return
  22533. }
  22534. dispatch = module.context.dispatch;
  22535. }
  22536. return typeof val === 'function'
  22537. ? val.apply(this, [dispatch].concat(args))
  22538. : dispatch.apply(this.$store, [val].concat(args))
  22539. };
  22540. });
  22541. return res
  22542. });
  22543. /**
  22544. * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
  22545. * @param {String} namespace
  22546. * @return {Object}
  22547. */
  22548. var createNamespacedHelpers = function (namespace) { return ({
  22549. mapState: mapState.bind(null, namespace),
  22550. mapGetters: mapGetters.bind(null, namespace),
  22551. mapMutations: mapMutations.bind(null, namespace),
  22552. mapActions: mapActions.bind(null, namespace)
  22553. }); };
  22554. /**
  22555. * Normalize the map
  22556. * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
  22557. * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
  22558. * @param {Array|Object} map
  22559. * @return {Object}
  22560. */
  22561. function normalizeMap (map) {
  22562. if (!isValidMap(map)) {
  22563. return []
  22564. }
  22565. return Array.isArray(map)
  22566. ? map.map(function (key) { return ({ key: key, val: key }); })
  22567. : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
  22568. }
  22569. /**
  22570. * Validate whether given map is valid or not
  22571. * @param {*} map
  22572. * @return {Boolean}
  22573. */
  22574. function isValidMap (map) {
  22575. return Array.isArray(map) || isObject(map)
  22576. }
  22577. /**
  22578. * Return a function expect two param contains namespace and map. it will normalize the namespace and then the param's function will handle the new namespace and the map.
  22579. * @param {Function} fn
  22580. * @return {Function}
  22581. */
  22582. function normalizeNamespace (fn) {
  22583. return function (namespace, map) {
  22584. if (typeof namespace !== 'string') {
  22585. map = namespace;
  22586. namespace = '';
  22587. } else if (namespace.charAt(namespace.length - 1) !== '/') {
  22588. namespace += '/';
  22589. }
  22590. return fn(namespace, map)
  22591. }
  22592. }
  22593. /**
  22594. * Search a special module from store by namespace. if module not exist, print error message.
  22595. * @param {Object} store
  22596. * @param {String} helper
  22597. * @param {String} namespace
  22598. * @return {Object}
  22599. */
  22600. function getModuleByNamespace (store, helper, namespace) {
  22601. var module = store._modulesNamespaceMap[namespace];
  22602. if (( true) && !module) {
  22603. console.error(("[vuex] module namespace not found in " + helper + "(): " + namespace));
  22604. }
  22605. return module
  22606. }
  22607. // Credits: borrowed code from fcomb/redux-logger
  22608. function createLogger (ref) {
  22609. if ( ref === void 0 ) ref = {};
  22610. var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
  22611. var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
  22612. var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
  22613. var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };
  22614. var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };
  22615. var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };
  22616. var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;
  22617. var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;
  22618. var logger = ref.logger; if ( logger === void 0 ) logger = console;
  22619. return function (store) {
  22620. var prevState = deepCopy(store.state);
  22621. if (typeof logger === 'undefined') {
  22622. return
  22623. }
  22624. if (logMutations) {
  22625. store.subscribe(function (mutation, state) {
  22626. var nextState = deepCopy(state);
  22627. if (filter(mutation, prevState, nextState)) {
  22628. var formattedTime = getFormattedTime();
  22629. var formattedMutation = mutationTransformer(mutation);
  22630. var message = "mutation " + (mutation.type) + formattedTime;
  22631. startMessage(logger, message, collapsed);
  22632. logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
  22633. logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
  22634. logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
  22635. endMessage(logger);
  22636. }
  22637. prevState = nextState;
  22638. });
  22639. }
  22640. if (logActions) {
  22641. store.subscribeAction(function (action, state) {
  22642. if (actionFilter(action, state)) {
  22643. var formattedTime = getFormattedTime();
  22644. var formattedAction = actionTransformer(action);
  22645. var message = "action " + (action.type) + formattedTime;
  22646. startMessage(logger, message, collapsed);
  22647. logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
  22648. endMessage(logger);
  22649. }
  22650. });
  22651. }
  22652. }
  22653. }
  22654. function startMessage (logger, message, collapsed) {
  22655. var startMessage = collapsed
  22656. ? logger.groupCollapsed
  22657. : logger.group;
  22658. // render
  22659. try {
  22660. startMessage.call(logger, message);
  22661. } catch (e) {
  22662. logger.log(message);
  22663. }
  22664. }
  22665. function endMessage (logger) {
  22666. try {
  22667. logger.groupEnd();
  22668. } catch (e) {
  22669. logger.log('—— log end ——');
  22670. }
  22671. }
  22672. function getFormattedTime () {
  22673. var time = new Date();
  22674. return (" @ " + (pad(time.getHours(), 2)) + ":" + (pad(time.getMinutes(), 2)) + ":" + (pad(time.getSeconds(), 2)) + "." + (pad(time.getMilliseconds(), 3)))
  22675. }
  22676. function repeat (str, times) {
  22677. return (new Array(times + 1)).join(str)
  22678. }
  22679. function pad (num, maxLength) {
  22680. return repeat('0', maxLength - num.toString().length) + num
  22681. }
  22682. var index_cjs = {
  22683. Store: Store,
  22684. install: install,
  22685. version: '3.6.2',
  22686. mapState: mapState,
  22687. mapMutations: mapMutations,
  22688. mapGetters: mapGetters,
  22689. mapActions: mapActions,
  22690. createNamespacedHelpers: createNamespacedHelpers,
  22691. createLogger: createLogger
  22692. };
  22693. module.exports = index_cjs;
  22694. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  22695. /***/ }),
  22696. /***/ 69:
  22697. /*!************************************************************************!*\
  22698. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/album.js ***!
  22699. \************************************************************************/
  22700. /*! no static exports found */
  22701. /***/ (function(module, exports, __webpack_require__) {
  22702. "use strict";
  22703. Object.defineProperty(exports, "__esModule", {
  22704. value: true
  22705. });
  22706. exports.default = void 0;
  22707. /*
  22708. * @Author : LQ
  22709. * @Description :
  22710. * @version : 1.0
  22711. * @Date : 2021-08-20 16:44:21
  22712. * @LastAuthor : LQ
  22713. * @lastTime : 2021-08-20 16:47:24
  22714. * @FilePath : /u-view2.0/uview-ui/libs/config/props/album.js
  22715. */
  22716. var _default = {
  22717. // album 组件
  22718. album: {
  22719. urls: function urls() {
  22720. return [];
  22721. },
  22722. keyName: '',
  22723. singleSize: 180,
  22724. multipleSize: 70,
  22725. space: 6,
  22726. singleMode: 'scaleToFill',
  22727. multipleMode: 'aspectFill',
  22728. maxCount: 9,
  22729. previewFullImage: true,
  22730. rowCount: 3,
  22731. showMore: true
  22732. }
  22733. };
  22734. exports.default = _default;
  22735. /***/ }),
  22736. /***/ 7:
  22737. /*!*********************************************************************!*\
  22738. !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  22739. \*********************************************************************/
  22740. /*! no static exports found */
  22741. /***/ (function(module, exports) {
  22742. function _iterableToArrayLimit(r, l) {
  22743. var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  22744. if (null != t) {
  22745. var e,
  22746. n,
  22747. i,
  22748. u,
  22749. a = [],
  22750. f = !0,
  22751. o = !1;
  22752. try {
  22753. if (i = (t = t.call(r)).next, 0 === l) {
  22754. if (Object(t) !== t) return;
  22755. f = !1;
  22756. } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) {
  22757. ;
  22758. }
  22759. } catch (r) {
  22760. o = !0, n = r;
  22761. } finally {
  22762. try {
  22763. if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
  22764. } finally {
  22765. if (o) throw n;
  22766. }
  22767. }
  22768. return a;
  22769. }
  22770. }
  22771. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  22772. /***/ }),
  22773. /***/ 70:
  22774. /*!************************************************************************!*\
  22775. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/alert.js ***!
  22776. \************************************************************************/
  22777. /*! no static exports found */
  22778. /***/ (function(module, exports, __webpack_require__) {
  22779. "use strict";
  22780. Object.defineProperty(exports, "__esModule", {
  22781. value: true
  22782. });
  22783. exports.default = void 0;
  22784. /*
  22785. * @Author : LQ
  22786. * @Description :
  22787. * @version : 1.0
  22788. * @Date : 2021-08-20 16:44:21
  22789. * @LastAuthor : LQ
  22790. * @lastTime : 2021-08-20 16:48:53
  22791. * @FilePath : /u-view2.0/uview-ui/libs/config/props/alert.js
  22792. */
  22793. var _default = {
  22794. // alert警告组件
  22795. alert: {
  22796. title: '',
  22797. type: 'warning',
  22798. description: '',
  22799. closable: false,
  22800. showIcon: false,
  22801. effect: 'light',
  22802. center: false,
  22803. fontSize: 14
  22804. }
  22805. };
  22806. exports.default = _default;
  22807. /***/ }),
  22808. /***/ 71:
  22809. /*!*************************************************************************!*\
  22810. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/avatar.js ***!
  22811. \*************************************************************************/
  22812. /*! no static exports found */
  22813. /***/ (function(module, exports, __webpack_require__) {
  22814. "use strict";
  22815. Object.defineProperty(exports, "__esModule", {
  22816. value: true
  22817. });
  22818. exports.default = void 0;
  22819. /*
  22820. * @Author : LQ
  22821. * @Description :
  22822. * @version : 1.0
  22823. * @Date : 2021-08-20 16:44:21
  22824. * @LastAuthor : LQ
  22825. * @lastTime : 2021-08-20 16:49:22
  22826. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatar.js
  22827. */
  22828. var _default = {
  22829. // avatar 组件
  22830. avatar: {
  22831. src: '',
  22832. shape: 'circle',
  22833. size: 40,
  22834. mode: 'scaleToFill',
  22835. text: '',
  22836. bgColor: '#c0c4cc',
  22837. color: '#ffffff',
  22838. fontSize: 18,
  22839. icon: '',
  22840. mpAvatar: false,
  22841. randomBgColor: false,
  22842. defaultUrl: '',
  22843. colorIndex: '',
  22844. name: ''
  22845. }
  22846. };
  22847. exports.default = _default;
  22848. /***/ }),
  22849. /***/ 72:
  22850. /*!******************************************************************************!*\
  22851. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/avatarGroup.js ***!
  22852. \******************************************************************************/
  22853. /*! no static exports found */
  22854. /***/ (function(module, exports, __webpack_require__) {
  22855. "use strict";
  22856. Object.defineProperty(exports, "__esModule", {
  22857. value: true
  22858. });
  22859. exports.default = void 0;
  22860. /*
  22861. * @Author : LQ
  22862. * @Description :
  22863. * @version : 1.0
  22864. * @Date : 2021-08-20 16:44:21
  22865. * @LastAuthor : LQ
  22866. * @lastTime : 2021-08-20 16:49:55
  22867. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatarGroup.js
  22868. */
  22869. var _default = {
  22870. // avatarGroup 组件
  22871. avatarGroup: {
  22872. urls: function urls() {
  22873. return [];
  22874. },
  22875. maxCount: 5,
  22876. shape: 'circle',
  22877. mode: 'scaleToFill',
  22878. showMore: true,
  22879. size: 40,
  22880. keyName: '',
  22881. gap: 0.5,
  22882. extraValue: 0
  22883. }
  22884. };
  22885. exports.default = _default;
  22886. /***/ }),
  22887. /***/ 723:
  22888. /*!*************************************************************************!*\
  22889. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-badge/props.js ***!
  22890. \*************************************************************************/
  22891. /*! no static exports found */
  22892. /***/ (function(module, exports, __webpack_require__) {
  22893. "use strict";
  22894. /* WEBPACK VAR INJECTION */(function(uni) {
  22895. Object.defineProperty(exports, "__esModule", {
  22896. value: true
  22897. });
  22898. exports.default = void 0;
  22899. var _default = {
  22900. props: {
  22901. // 是否显示圆点
  22902. isDot: {
  22903. type: Boolean,
  22904. default: uni.$u.props.badge.isDot
  22905. },
  22906. // 显示的内容
  22907. value: {
  22908. type: [Number, String],
  22909. default: uni.$u.props.badge.value
  22910. },
  22911. // 是否显示
  22912. show: {
  22913. type: Boolean,
  22914. default: uni.$u.props.badge.show
  22915. },
  22916. // 最大值,超过最大值会显示 '{max}+'
  22917. max: {
  22918. type: [Number, String],
  22919. default: uni.$u.props.badge.max
  22920. },
  22921. // 主题类型,error|warning|success|primary
  22922. type: {
  22923. type: String,
  22924. default: uni.$u.props.badge.type
  22925. },
  22926. // 当数值为 0 时,是否展示 Badge
  22927. showZero: {
  22928. type: Boolean,
  22929. default: uni.$u.props.badge.showZero
  22930. },
  22931. // 背景颜色,优先级比type高,如设置,type参数会失效
  22932. bgColor: {
  22933. type: [String, null],
  22934. default: uni.$u.props.badge.bgColor
  22935. },
  22936. // 字体颜色
  22937. color: {
  22938. type: [String, null],
  22939. default: uni.$u.props.badge.color
  22940. },
  22941. // 徽标形状,circle-四角均为圆角,horn-左下角为直角
  22942. shape: {
  22943. type: String,
  22944. default: uni.$u.props.badge.shape
  22945. },
  22946. // 设置数字的显示方式,overflow|ellipsis|limit
  22947. // overflow会根据max字段判断,超出显示`${max}+`
  22948. // ellipsis会根据max判断,超出显示`${max}...`
  22949. // limit会依据1000作为判断条件,超出1000,显示`${value/1000}K`,比如2.2k、3.34w,最多保留2位小数
  22950. numberType: {
  22951. type: String,
  22952. default: uni.$u.props.badge.numberType
  22953. },
  22954. // 设置badge的位置偏移,格式为 [x, y],也即设置的为top和right的值,absolute为true时有效
  22955. offset: {
  22956. type: Array,
  22957. default: uni.$u.props.badge.offset
  22958. },
  22959. // 是否反转背景和字体颜色
  22960. inverted: {
  22961. type: Boolean,
  22962. default: uni.$u.props.badge.inverted
  22963. },
  22964. // 是否绝对定位
  22965. absolute: {
  22966. type: Boolean,
  22967. default: uni.$u.props.badge.absolute
  22968. }
  22969. }
  22970. };
  22971. exports.default = _default;
  22972. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22973. /***/ }),
  22974. /***/ 73:
  22975. /*!**************************************************************************!*\
  22976. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/backtop.js ***!
  22977. \**************************************************************************/
  22978. /*! no static exports found */
  22979. /***/ (function(module, exports, __webpack_require__) {
  22980. "use strict";
  22981. Object.defineProperty(exports, "__esModule", {
  22982. value: true
  22983. });
  22984. exports.default = void 0;
  22985. /*
  22986. * @Author : LQ
  22987. * @Description :
  22988. * @version : 1.0
  22989. * @Date : 2021-08-20 16:44:21
  22990. * @LastAuthor : LQ
  22991. * @lastTime : 2021-08-20 16:50:18
  22992. * @FilePath : /u-view2.0/uview-ui/libs/config/props/backtop.js
  22993. */
  22994. var _default = {
  22995. // backtop组件
  22996. backtop: {
  22997. mode: 'circle',
  22998. icon: 'arrow-upward',
  22999. text: '',
  23000. duration: 100,
  23001. scrollTop: 0,
  23002. top: 400,
  23003. bottom: 100,
  23004. right: 20,
  23005. zIndex: 9,
  23006. iconStyle: function iconStyle() {
  23007. return {
  23008. color: '#909399',
  23009. fontSize: '19px'
  23010. };
  23011. }
  23012. }
  23013. };
  23014. exports.default = _default;
  23015. /***/ }),
  23016. /***/ 731:
  23017. /*!*********************************************************************************!*\
  23018. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-line-progress/props.js ***!
  23019. \*********************************************************************************/
  23020. /*! no static exports found */
  23021. /***/ (function(module, exports, __webpack_require__) {
  23022. "use strict";
  23023. /* WEBPACK VAR INJECTION */(function(uni) {
  23024. Object.defineProperty(exports, "__esModule", {
  23025. value: true
  23026. });
  23027. exports.default = void 0;
  23028. var _default = {
  23029. props: {
  23030. // 激活部分的颜色
  23031. activeColor: {
  23032. type: String,
  23033. default: uni.$u.props.lineProgress.activeColor
  23034. },
  23035. inactiveColor: {
  23036. type: String,
  23037. default: uni.$u.props.lineProgress.color
  23038. },
  23039. // 进度百分比,数值
  23040. percentage: {
  23041. type: [String, Number],
  23042. default: uni.$u.props.lineProgress.inactiveColor
  23043. },
  23044. // 是否在进度条内部显示百分比的值
  23045. showText: {
  23046. type: Boolean,
  23047. default: uni.$u.props.lineProgress.showText
  23048. },
  23049. // 进度条的高度,单位px
  23050. height: {
  23051. type: [String, Number],
  23052. default: uni.$u.props.lineProgress.height
  23053. }
  23054. }
  23055. };
  23056. exports.default = _default;
  23057. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23058. /***/ }),
  23059. /***/ 74:
  23060. /*!************************************************************************!*\
  23061. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/badge.js ***!
  23062. \************************************************************************/
  23063. /*! no static exports found */
  23064. /***/ (function(module, exports, __webpack_require__) {
  23065. "use strict";
  23066. Object.defineProperty(exports, "__esModule", {
  23067. value: true
  23068. });
  23069. exports.default = void 0;
  23070. /*
  23071. * @Author : LQ
  23072. * @Description :
  23073. * @version : 1.0
  23074. * @Date : 2021-08-20 16:44:21
  23075. * @LastAuthor : LQ
  23076. * @lastTime : 2021-08-23 19:51:50
  23077. * @FilePath : /u-view2.0/uview-ui/libs/config/props/badge.js
  23078. */
  23079. var _default = {
  23080. // 徽标数组件
  23081. badge: {
  23082. isDot: false,
  23083. value: '',
  23084. show: true,
  23085. max: 999,
  23086. type: 'error',
  23087. showZero: false,
  23088. bgColor: null,
  23089. color: null,
  23090. shape: 'circle',
  23091. numberType: 'overflow',
  23092. offset: function offset() {
  23093. return [];
  23094. },
  23095. inverted: false,
  23096. absolute: false
  23097. }
  23098. };
  23099. exports.default = _default;
  23100. /***/ }),
  23101. /***/ 746:
  23102. /*!**********************************************************************************!*\
  23103. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-checkbox-group/props.js ***!
  23104. \**********************************************************************************/
  23105. /*! no static exports found */
  23106. /***/ (function(module, exports, __webpack_require__) {
  23107. "use strict";
  23108. /* WEBPACK VAR INJECTION */(function(uni) {
  23109. Object.defineProperty(exports, "__esModule", {
  23110. value: true
  23111. });
  23112. exports.default = void 0;
  23113. var _default = {
  23114. props: {
  23115. // 标识符
  23116. name: {
  23117. type: String,
  23118. default: uni.$u.props.checkboxGroup.name
  23119. },
  23120. // 绑定的值
  23121. value: {
  23122. type: Array,
  23123. default: uni.$u.props.checkboxGroup.value
  23124. },
  23125. // 形状,circle-圆形,square-方形
  23126. shape: {
  23127. type: String,
  23128. default: uni.$u.props.checkboxGroup.shape
  23129. },
  23130. // 是否禁用全部checkbox
  23131. disabled: {
  23132. type: Boolean,
  23133. default: uni.$u.props.checkboxGroup.disabled
  23134. },
  23135. // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
  23136. activeColor: {
  23137. type: String,
  23138. default: uni.$u.props.checkboxGroup.activeColor
  23139. },
  23140. // 未选中的颜色
  23141. inactiveColor: {
  23142. type: String,
  23143. default: uni.$u.props.checkboxGroup.inactiveColor
  23144. },
  23145. // 整个组件的尺寸,默认px
  23146. size: {
  23147. type: [String, Number],
  23148. default: uni.$u.props.checkboxGroup.size
  23149. },
  23150. // 布局方式,row-横向,column-纵向
  23151. placement: {
  23152. type: String,
  23153. default: uni.$u.props.checkboxGroup.placement
  23154. },
  23155. // label的字体大小,px单位
  23156. labelSize: {
  23157. type: [String, Number],
  23158. default: uni.$u.props.checkboxGroup.labelSize
  23159. },
  23160. // label的字体颜色
  23161. labelColor: {
  23162. type: [String],
  23163. default: uni.$u.props.checkboxGroup.labelColor
  23164. },
  23165. // 是否禁止点击文本操作
  23166. labelDisabled: {
  23167. type: Boolean,
  23168. default: uni.$u.props.checkboxGroup.labelDisabled
  23169. },
  23170. // 图标颜色
  23171. iconColor: {
  23172. type: String,
  23173. default: uni.$u.props.checkboxGroup.iconColor
  23174. },
  23175. // 图标的大小,单位px
  23176. iconSize: {
  23177. type: [String, Number],
  23178. default: uni.$u.props.checkboxGroup.iconSize
  23179. },
  23180. // 勾选图标的对齐方式,left-左边,right-右边
  23181. iconPlacement: {
  23182. type: String,
  23183. default: uni.$u.props.checkboxGroup.iconPlacement
  23184. },
  23185. // 竖向配列时,是否显示下划线
  23186. borderBottom: {
  23187. type: Boolean,
  23188. default: uni.$u.props.checkboxGroup.borderBottom
  23189. }
  23190. }
  23191. };
  23192. exports.default = _default;
  23193. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23194. /***/ }),
  23195. /***/ 75:
  23196. /*!*************************************************************************!*\
  23197. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/button.js ***!
  23198. \*************************************************************************/
  23199. /*! no static exports found */
  23200. /***/ (function(module, exports, __webpack_require__) {
  23201. "use strict";
  23202. Object.defineProperty(exports, "__esModule", {
  23203. value: true
  23204. });
  23205. exports.default = void 0;
  23206. /*
  23207. * @Author : LQ
  23208. * @Description :
  23209. * @version : 1.0
  23210. * @Date : 2021-08-20 16:44:21
  23211. * @LastAuthor : LQ
  23212. * @lastTime : 2021-08-20 16:51:27
  23213. * @FilePath : /u-view2.0/uview-ui/libs/config/props/button.js
  23214. */
  23215. var _default = {
  23216. // button组件
  23217. button: {
  23218. hairline: false,
  23219. type: 'info',
  23220. size: 'normal',
  23221. shape: 'square',
  23222. plain: false,
  23223. disabled: false,
  23224. loading: false,
  23225. loadingText: '',
  23226. loadingMode: 'spinner',
  23227. loadingSize: 15,
  23228. openType: '',
  23229. formType: '',
  23230. appParameter: '',
  23231. hoverStopPropagation: true,
  23232. lang: 'en',
  23233. sessionFrom: '',
  23234. sendMessageTitle: '',
  23235. sendMessagePath: '',
  23236. sendMessageImg: '',
  23237. showMessageCard: false,
  23238. dataName: '',
  23239. throttleTime: 0,
  23240. hoverStartTime: 0,
  23241. hoverStayTime: 200,
  23242. text: '',
  23243. icon: '',
  23244. iconColor: '',
  23245. color: ''
  23246. }
  23247. };
  23248. exports.default = _default;
  23249. /***/ }),
  23250. /***/ 754:
  23251. /*!********************************************************************************!*\
  23252. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-swipe-action/props.js ***!
  23253. \********************************************************************************/
  23254. /*! no static exports found */
  23255. /***/ (function(module, exports, __webpack_require__) {
  23256. "use strict";
  23257. /* WEBPACK VAR INJECTION */(function(uni) {
  23258. Object.defineProperty(exports, "__esModule", {
  23259. value: true
  23260. });
  23261. exports.default = void 0;
  23262. var _default = {
  23263. props: {
  23264. // 是否自动关闭其他swipe按钮组
  23265. autoClose: {
  23266. type: Boolean,
  23267. default: uni.$u.props.swipeAction.autoClose
  23268. }
  23269. }
  23270. };
  23271. exports.default = _default;
  23272. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23273. /***/ }),
  23274. /***/ 76:
  23275. /*!***************************************************************************!*\
  23276. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/calendar.js ***!
  23277. \***************************************************************************/
  23278. /*! no static exports found */
  23279. /***/ (function(module, exports, __webpack_require__) {
  23280. "use strict";
  23281. Object.defineProperty(exports, "__esModule", {
  23282. value: true
  23283. });
  23284. exports.default = void 0;
  23285. /*
  23286. * @Author : LQ
  23287. * @Description :
  23288. * @version : 1.0
  23289. * @Date : 2021-08-20 16:44:21
  23290. * @LastAuthor : LQ
  23291. * @lastTime : 2021-08-20 16:52:43
  23292. * @FilePath : /u-view2.0/uview-ui/libs/config/props/calendar.js
  23293. */
  23294. var _default = {
  23295. // calendar 组件
  23296. calendar: {
  23297. title: '日期选择',
  23298. showTitle: true,
  23299. showSubtitle: true,
  23300. mode: 'single',
  23301. startText: '开始',
  23302. endText: '结束',
  23303. customList: function customList() {
  23304. return [];
  23305. },
  23306. color: '#3c9cff',
  23307. minDate: 0,
  23308. maxDate: 0,
  23309. defaultDate: null,
  23310. maxCount: Number.MAX_SAFE_INTEGER,
  23311. // Infinity
  23312. rowHeight: 56,
  23313. formatter: null,
  23314. showLunar: false,
  23315. showMark: true,
  23316. confirmText: '确定',
  23317. confirmDisabledText: '确定',
  23318. show: false,
  23319. closeOnClickOverlay: false,
  23320. readonly: false,
  23321. showConfirm: true,
  23322. maxRange: Number.MAX_SAFE_INTEGER,
  23323. // Infinity
  23324. rangePrompt: '',
  23325. showRangePrompt: true,
  23326. allowSameDay: false,
  23327. round: 0,
  23328. monthNum: 3
  23329. }
  23330. };
  23331. exports.default = _default;
  23332. /***/ }),
  23333. /***/ 760:
  23334. /*!*****************************************************************!*\
  23335. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/mixin/touch.js ***!
  23336. \*****************************************************************/
  23337. /*! no static exports found */
  23338. /***/ (function(module, exports, __webpack_require__) {
  23339. "use strict";
  23340. Object.defineProperty(exports, "__esModule", {
  23341. value: true
  23342. });
  23343. exports.default = void 0;
  23344. var MIN_DISTANCE = 10;
  23345. function getDirection(x, y) {
  23346. if (x > y && x > MIN_DISTANCE) {
  23347. return 'horizontal';
  23348. }
  23349. if (y > x && y > MIN_DISTANCE) {
  23350. return 'vertical';
  23351. }
  23352. return '';
  23353. }
  23354. var _default = {
  23355. methods: {
  23356. getTouchPoint: function getTouchPoint(e) {
  23357. if (!e) {
  23358. return {
  23359. x: 0,
  23360. y: 0
  23361. };
  23362. }
  23363. if (e.touches && e.touches[0]) {
  23364. return {
  23365. x: e.touches[0].pageX,
  23366. y: e.touches[0].pageY
  23367. };
  23368. }
  23369. if (e.changedTouches && e.changedTouches[0]) {
  23370. return {
  23371. x: e.changedTouches[0].pageX,
  23372. y: e.changedTouches[0].pageY
  23373. };
  23374. }
  23375. return {
  23376. x: e.clientX || 0,
  23377. y: e.clientY || 0
  23378. };
  23379. },
  23380. resetTouchStatus: function resetTouchStatus() {
  23381. this.direction = '';
  23382. this.deltaX = 0;
  23383. this.deltaY = 0;
  23384. this.offsetX = 0;
  23385. this.offsetY = 0;
  23386. },
  23387. touchStart: function touchStart(event) {
  23388. this.resetTouchStatus();
  23389. var touch = this.getTouchPoint(event);
  23390. this.startX = touch.x;
  23391. this.startY = touch.y;
  23392. },
  23393. touchMove: function touchMove(event) {
  23394. var touch = this.getTouchPoint(event);
  23395. this.deltaX = touch.x - this.startX;
  23396. this.deltaY = touch.y - this.startY;
  23397. this.offsetX = Math.abs(this.deltaX);
  23398. this.offsetY = Math.abs(this.deltaY);
  23399. this.direction = this.direction || getDirection(this.offsetX, this.offsetY);
  23400. }
  23401. }
  23402. };
  23403. exports.default = _default;
  23404. /***/ }),
  23405. /***/ 761:
  23406. /*!*************************************************************************************!*\
  23407. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-swipe-action-item/props.js ***!
  23408. \*************************************************************************************/
  23409. /*! no static exports found */
  23410. /***/ (function(module, exports, __webpack_require__) {
  23411. "use strict";
  23412. /* WEBPACK VAR INJECTION */(function(uni) {
  23413. Object.defineProperty(exports, "__esModule", {
  23414. value: true
  23415. });
  23416. exports.default = void 0;
  23417. var _default2 = {
  23418. props: {
  23419. // 控制打开或者关闭
  23420. show: {
  23421. type: Boolean,
  23422. default: uni.$u.props.swipeActionItem.show
  23423. },
  23424. // 标识符,如果是v-for,可用index索引值
  23425. name: {
  23426. type: [String, Number],
  23427. default: uni.$u.props.swipeActionItem.name
  23428. },
  23429. // 是否禁用
  23430. disabled: {
  23431. type: Boolean,
  23432. default: uni.$u.props.swipeActionItem.disabled
  23433. },
  23434. // 是否自动关闭其他swipe按钮组
  23435. autoClose: {
  23436. type: Boolean,
  23437. default: uni.$u.props.swipeActionItem.autoClose
  23438. },
  23439. // 滑动距离阈值,只有大于此值,才被认为是要打开菜单
  23440. threshold: {
  23441. type: Number,
  23442. default: uni.$u.props.swipeActionItem.threshold
  23443. },
  23444. // 右侧按钮内容
  23445. options: {
  23446. type: Array,
  23447. default: function _default() {
  23448. return uni.$u.props.swipeActionItem.rightOptions;
  23449. }
  23450. },
  23451. // 动画过渡时间,单位ms
  23452. duration: {
  23453. type: [String, Number],
  23454. default: uni.$u.props.swipeActionItem.duration
  23455. }
  23456. }
  23457. };
  23458. exports.default = _default2;
  23459. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23460. /***/ }),
  23461. /***/ 762:
  23462. /*!***********************************************************************************!*\
  23463. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-swipe-action-item/wxs.js ***!
  23464. \***********************************************************************************/
  23465. /*! no static exports found */
  23466. /***/ (function(module, exports, __webpack_require__) {
  23467. "use strict";
  23468. Object.defineProperty(exports, "__esModule", {
  23469. value: true
  23470. });
  23471. exports.default = void 0;
  23472. var _default = {
  23473. methods: {
  23474. // 关闭时执行
  23475. closeHandler: function closeHandler() {
  23476. this.status = 'close';
  23477. },
  23478. setState: function setState(status) {
  23479. this.status = status;
  23480. },
  23481. closeOther: function closeOther() {
  23482. // 尝试关闭其他打开的单元格
  23483. this.parent && this.parent.closeOther(this);
  23484. }
  23485. }
  23486. };
  23487. exports.default = _default;
  23488. /***/ }),
  23489. /***/ 77:
  23490. /*!******************************************************************************!*\
  23491. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/carKeyboard.js ***!
  23492. \******************************************************************************/
  23493. /*! no static exports found */
  23494. /***/ (function(module, exports, __webpack_require__) {
  23495. "use strict";
  23496. Object.defineProperty(exports, "__esModule", {
  23497. value: true
  23498. });
  23499. exports.default = void 0;
  23500. /*
  23501. * @Author : LQ
  23502. * @Description :
  23503. * @version : 1.0
  23504. * @Date : 2021-08-20 16:44:21
  23505. * @LastAuthor : LQ
  23506. * @lastTime : 2021-08-20 16:53:20
  23507. * @FilePath : /u-view2.0/uview-ui/libs/config/props/carKeyboard.js
  23508. */
  23509. var _default = {
  23510. // 车牌号键盘
  23511. carKeyboard: {
  23512. random: false
  23513. }
  23514. };
  23515. exports.default = _default;
  23516. /***/ }),
  23517. /***/ 772:
  23518. /*!****************************************************************************!*\
  23519. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-checkbox/props.js ***!
  23520. \****************************************************************************/
  23521. /*! no static exports found */
  23522. /***/ (function(module, exports, __webpack_require__) {
  23523. "use strict";
  23524. /* WEBPACK VAR INJECTION */(function(uni) {
  23525. Object.defineProperty(exports, "__esModule", {
  23526. value: true
  23527. });
  23528. exports.default = void 0;
  23529. var _default = {
  23530. props: {
  23531. // checkbox的名称
  23532. name: {
  23533. type: [String, Number, Boolean],
  23534. default: uni.$u.props.checkbox.name
  23535. },
  23536. // 形状,square为方形,circle为圆型
  23537. shape: {
  23538. type: String,
  23539. default: uni.$u.props.checkbox.shape
  23540. },
  23541. // 整体的大小
  23542. size: {
  23543. type: [String, Number],
  23544. default: uni.$u.props.checkbox.size
  23545. },
  23546. // 是否默认选中
  23547. checked: {
  23548. type: Boolean,
  23549. default: uni.$u.props.checkbox.checked
  23550. },
  23551. // 是否禁用
  23552. disabled: {
  23553. type: [String, Boolean],
  23554. default: uni.$u.props.checkbox.disabled
  23555. },
  23556. // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
  23557. activeColor: {
  23558. type: String,
  23559. default: uni.$u.props.checkbox.activeColor
  23560. },
  23561. // 未选中的颜色
  23562. inactiveColor: {
  23563. type: String,
  23564. default: uni.$u.props.checkbox.inactiveColor
  23565. },
  23566. // 图标的大小,单位px
  23567. iconSize: {
  23568. type: [String, Number],
  23569. default: uni.$u.props.checkbox.iconSize
  23570. },
  23571. // 图标颜色
  23572. iconColor: {
  23573. type: String,
  23574. default: uni.$u.props.checkbox.iconColor
  23575. },
  23576. // label提示文字,因为nvue下,直接slot进来的文字,由于特殊的结构,无法修改样式
  23577. label: {
  23578. type: [String, Number],
  23579. default: uni.$u.props.checkbox.label
  23580. },
  23581. // label的字体大小,px单位
  23582. labelSize: {
  23583. type: [String, Number],
  23584. default: uni.$u.props.checkbox.labelSize
  23585. },
  23586. // label的颜色
  23587. labelColor: {
  23588. type: String,
  23589. default: uni.$u.props.checkbox.labelColor
  23590. },
  23591. // 是否禁止点击提示语选中复选框
  23592. labelDisabled: {
  23593. type: [String, Boolean],
  23594. default: uni.$u.props.checkbox.labelDisabled
  23595. }
  23596. }
  23597. };
  23598. exports.default = _default;
  23599. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23600. /***/ }),
  23601. /***/ 78:
  23602. /*!***********************************************************************!*\
  23603. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/cell.js ***!
  23604. \***********************************************************************/
  23605. /*! no static exports found */
  23606. /***/ (function(module, exports, __webpack_require__) {
  23607. "use strict";
  23608. Object.defineProperty(exports, "__esModule", {
  23609. value: true
  23610. });
  23611. exports.default = void 0;
  23612. /*
  23613. * @Author : LQ
  23614. * @Description :
  23615. * @version : 1.0
  23616. * @Date : 2021-08-20 16:44:21
  23617. * @LastAuthor : LQ
  23618. * @lastTime : 2021-08-23 20:53:09
  23619. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cell.js
  23620. */
  23621. var _default = {
  23622. // cell组件的props
  23623. cell: {
  23624. customClass: '',
  23625. title: '',
  23626. label: '',
  23627. value: '',
  23628. icon: '',
  23629. disabled: false,
  23630. border: true,
  23631. center: false,
  23632. url: '',
  23633. linkType: 'navigateTo',
  23634. clickable: false,
  23635. isLink: false,
  23636. required: false,
  23637. arrowDirection: '',
  23638. iconStyle: {},
  23639. rightIconStyle: {},
  23640. rightIcon: 'arrow-right',
  23641. titleStyle: {},
  23642. size: '',
  23643. stop: true,
  23644. name: ''
  23645. }
  23646. };
  23647. exports.default = _default;
  23648. /***/ }),
  23649. /***/ 780:
  23650. /*!******************************************************************************!*\
  23651. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-number-box/props.js ***!
  23652. \******************************************************************************/
  23653. /*! no static exports found */
  23654. /***/ (function(module, exports, __webpack_require__) {
  23655. "use strict";
  23656. /* WEBPACK VAR INJECTION */(function(uni) {
  23657. Object.defineProperty(exports, "__esModule", {
  23658. value: true
  23659. });
  23660. exports.default = void 0;
  23661. var _default = {
  23662. props: {
  23663. // 步进器标识符,在change回调返回
  23664. name: {
  23665. type: [String, Number],
  23666. default: uni.$u.props.numberBox.name
  23667. },
  23668. // 用于双向绑定的值,初始化时设置设为默认min值(最小值)
  23669. value: {
  23670. type: [String, Number],
  23671. default: uni.$u.props.numberBox.value
  23672. },
  23673. // 最小值
  23674. min: {
  23675. type: [String, Number],
  23676. default: uni.$u.props.numberBox.min
  23677. },
  23678. // 最大值
  23679. max: {
  23680. type: [String, Number],
  23681. default: uni.$u.props.numberBox.max
  23682. },
  23683. // 加减的步长,可为小数
  23684. step: {
  23685. type: [String, Number],
  23686. default: uni.$u.props.numberBox.step
  23687. },
  23688. // 是否只允许输入整数
  23689. integer: {
  23690. type: Boolean,
  23691. default: uni.$u.props.numberBox.integer
  23692. },
  23693. // 是否禁用,包括输入框,加减按钮
  23694. disabled: {
  23695. type: Boolean,
  23696. default: uni.$u.props.numberBox.disabled
  23697. },
  23698. // 是否禁用输入框
  23699. disabledInput: {
  23700. type: Boolean,
  23701. default: uni.$u.props.numberBox.disabledInput
  23702. },
  23703. // 是否开启异步变更,开启后需要手动控制输入值
  23704. asyncChange: {
  23705. type: Boolean,
  23706. default: uni.$u.props.numberBox.asyncChange
  23707. },
  23708. // 输入框宽度,单位为px
  23709. inputWidth: {
  23710. type: [String, Number],
  23711. default: uni.$u.props.numberBox.inputWidth
  23712. },
  23713. // 是否显示减少按钮
  23714. showMinus: {
  23715. type: Boolean,
  23716. default: uni.$u.props.numberBox.showMinus
  23717. },
  23718. // 是否显示增加按钮
  23719. showPlus: {
  23720. type: Boolean,
  23721. default: uni.$u.props.numberBox.showPlus
  23722. },
  23723. // 显示的小数位数
  23724. decimalLength: {
  23725. type: [String, Number, null],
  23726. default: uni.$u.props.numberBox.decimalLength
  23727. },
  23728. // 是否开启长按加减手势
  23729. longPress: {
  23730. type: Boolean,
  23731. default: uni.$u.props.numberBox.longPress
  23732. },
  23733. // 输入框文字和加减按钮图标的颜色
  23734. color: {
  23735. type: String,
  23736. default: uni.$u.props.numberBox.color
  23737. },
  23738. // 按钮大小,宽高等于此值,单位px,输入框高度和此值保持一致
  23739. buttonSize: {
  23740. type: [String, Number],
  23741. default: uni.$u.props.numberBox.buttonSize
  23742. },
  23743. // 输入框和按钮的背景颜色
  23744. bgColor: {
  23745. type: String,
  23746. default: uni.$u.props.numberBox.bgColor
  23747. },
  23748. // 指定光标于键盘的距离,避免键盘遮挡输入框,单位px
  23749. cursorSpacing: {
  23750. type: [String, Number],
  23751. default: uni.$u.props.numberBox.cursorSpacing
  23752. },
  23753. // 是否禁用增加按钮
  23754. disablePlus: {
  23755. type: Boolean,
  23756. default: uni.$u.props.numberBox.disablePlus
  23757. },
  23758. // 是否禁用减少按钮
  23759. disableMinus: {
  23760. type: Boolean,
  23761. default: uni.$u.props.numberBox.disableMinus
  23762. },
  23763. // 加减按钮图标的样式
  23764. iconStyle: {
  23765. type: [Object, String],
  23766. default: uni.$u.props.numberBox.iconStyle
  23767. }
  23768. }
  23769. };
  23770. exports.default = _default;
  23771. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23772. /***/ }),
  23773. /***/ 788:
  23774. /*!**************************************************************************!*\
  23775. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-picker/props.js ***!
  23776. \**************************************************************************/
  23777. /*! no static exports found */
  23778. /***/ (function(module, exports, __webpack_require__) {
  23779. "use strict";
  23780. /* WEBPACK VAR INJECTION */(function(uni) {
  23781. Object.defineProperty(exports, "__esModule", {
  23782. value: true
  23783. });
  23784. exports.default = void 0;
  23785. var _default = {
  23786. props: {
  23787. // 是否展示picker弹窗
  23788. show: {
  23789. type: Boolean,
  23790. default: uni.$u.props.picker.show
  23791. },
  23792. // 是否展示顶部的操作栏
  23793. showToolbar: {
  23794. type: Boolean,
  23795. default: uni.$u.props.picker.showToolbar
  23796. },
  23797. // 顶部标题
  23798. title: {
  23799. type: String,
  23800. default: uni.$u.props.picker.title
  23801. },
  23802. // 对象数组,设置每一列的数据
  23803. columns: {
  23804. type: Array,
  23805. default: uni.$u.props.picker.columns
  23806. },
  23807. // 是否显示加载中状态
  23808. loading: {
  23809. type: Boolean,
  23810. default: uni.$u.props.picker.loading
  23811. },
  23812. // 各列中,单个选项的高度
  23813. itemHeight: {
  23814. type: [String, Number],
  23815. default: uni.$u.props.picker.itemHeight
  23816. },
  23817. // 取消按钮的文字
  23818. cancelText: {
  23819. type: String,
  23820. default: uni.$u.props.picker.cancelText
  23821. },
  23822. // 确认按钮的文字
  23823. confirmText: {
  23824. type: String,
  23825. default: uni.$u.props.picker.confirmText
  23826. },
  23827. // 取消按钮的颜色
  23828. cancelColor: {
  23829. type: String,
  23830. default: uni.$u.props.picker.cancelColor
  23831. },
  23832. // 确认按钮的颜色
  23833. confirmColor: {
  23834. type: String,
  23835. default: uni.$u.props.picker.confirmColor
  23836. },
  23837. // 每列中可见选项的数量
  23838. visibleItemCount: {
  23839. type: [String, Number],
  23840. default: uni.$u.props.picker.visibleItemCount
  23841. },
  23842. // 选项对象中,需要展示的属性键名
  23843. keyName: {
  23844. type: String,
  23845. default: uni.$u.props.picker.keyName
  23846. },
  23847. // 是否允许点击遮罩关闭选择器
  23848. closeOnClickOverlay: {
  23849. type: Boolean,
  23850. default: uni.$u.props.picker.closeOnClickOverlay
  23851. },
  23852. // 各列的默认索引
  23853. defaultIndex: {
  23854. type: Array,
  23855. default: uni.$u.props.picker.defaultIndex
  23856. },
  23857. // 是否在手指松开时立即触发 change 事件。若不开启则会在滚动动画结束后触发 change 事件,只在微信2.21.1及以上有效
  23858. immediateChange: {
  23859. type: Boolean,
  23860. default: uni.$u.props.picker.immediateChange
  23861. }
  23862. }
  23863. };
  23864. exports.default = _default;
  23865. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23866. /***/ }),
  23867. /***/ 79:
  23868. /*!****************************************************************************!*\
  23869. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/cellGroup.js ***!
  23870. \****************************************************************************/
  23871. /*! no static exports found */
  23872. /***/ (function(module, exports, __webpack_require__) {
  23873. "use strict";
  23874. Object.defineProperty(exports, "__esModule", {
  23875. value: true
  23876. });
  23877. exports.default = void 0;
  23878. /*
  23879. * @Author : LQ
  23880. * @Description :
  23881. * @version : 1.0
  23882. * @Date : 2021-08-20 16:44:21
  23883. * @LastAuthor : LQ
  23884. * @lastTime : 2021-08-20 16:54:16
  23885. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cellGroup.js
  23886. */
  23887. var _default = {
  23888. // cell-group组件的props
  23889. cellGroup: {
  23890. title: '',
  23891. border: true,
  23892. customStyle: {}
  23893. }
  23894. };
  23895. exports.default = _default;
  23896. /***/ }),
  23897. /***/ 8:
  23898. /*!***************************************************************************!*\
  23899. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  23900. \***************************************************************************/
  23901. /*! no static exports found */
  23902. /***/ (function(module, exports, __webpack_require__) {
  23903. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  23904. function _unsupportedIterableToArray(o, minLen) {
  23905. if (!o) return;
  23906. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  23907. var n = Object.prototype.toString.call(o).slice(8, -1);
  23908. if (n === "Object" && o.constructor) n = o.constructor.name;
  23909. if (n === "Map" || n === "Set") return Array.from(o);
  23910. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  23911. }
  23912. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  23913. /***/ }),
  23914. /***/ 80:
  23915. /*!***************************************************************************!*\
  23916. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/checkbox.js ***!
  23917. \***************************************************************************/
  23918. /*! no static exports found */
  23919. /***/ (function(module, exports, __webpack_require__) {
  23920. "use strict";
  23921. Object.defineProperty(exports, "__esModule", {
  23922. value: true
  23923. });
  23924. exports.default = void 0;
  23925. /*
  23926. * @Author : LQ
  23927. * @Description :
  23928. * @version : 1.0
  23929. * @Date : 2021-08-20 16:44:21
  23930. * @LastAuthor : LQ
  23931. * @lastTime : 2021-08-23 21:06:59
  23932. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkbox.js
  23933. */
  23934. var _default = {
  23935. // checkbox组件
  23936. checkbox: {
  23937. name: '',
  23938. shape: '',
  23939. size: '',
  23940. checkbox: false,
  23941. disabled: '',
  23942. activeColor: '',
  23943. inactiveColor: '',
  23944. iconSize: '',
  23945. iconColor: '',
  23946. label: '',
  23947. labelSize: '',
  23948. labelColor: '',
  23949. labelDisabled: ''
  23950. }
  23951. };
  23952. exports.default = _default;
  23953. /***/ }),
  23954. /***/ 81:
  23955. /*!********************************************************************************!*\
  23956. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/checkboxGroup.js ***!
  23957. \********************************************************************************/
  23958. /*! no static exports found */
  23959. /***/ (function(module, exports, __webpack_require__) {
  23960. "use strict";
  23961. Object.defineProperty(exports, "__esModule", {
  23962. value: true
  23963. });
  23964. exports.default = void 0;
  23965. /*
  23966. * @Author : LQ
  23967. * @Description :
  23968. * @version : 1.0
  23969. * @Date : 2021-08-20 16:44:21
  23970. * @LastAuthor : LQ
  23971. * @lastTime : 2021-08-20 16:54:47
  23972. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkboxGroup.js
  23973. */
  23974. var _default = {
  23975. // checkbox-group组件
  23976. checkboxGroup: {
  23977. name: '',
  23978. value: function value() {
  23979. return [];
  23980. },
  23981. shape: 'square',
  23982. disabled: false,
  23983. activeColor: '#2979ff',
  23984. inactiveColor: '#c8c9cc',
  23985. size: 18,
  23986. placement: 'row',
  23987. labelSize: 14,
  23988. labelColor: '#303133',
  23989. labelDisabled: false,
  23990. iconColor: '#ffffff',
  23991. iconSize: 12,
  23992. iconPlacement: 'left',
  23993. borderBottom: false
  23994. }
  23995. };
  23996. exports.default = _default;
  23997. /***/ }),
  23998. /***/ 810:
  23999. /*!***********************************************************************************************************!*\
  24000. !*** D:/www/uniapp-project/wx-qhb/uni_modules/liu-indexed-list/components/liu-indexed-list/pinyinUtil.js ***!
  24001. \***********************************************************************************************************/
  24002. /*! no static exports found */
  24003. /***/ (function(module, exports, __webpack_require__) {
  24004. "use strict";
  24005. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  24006. Object.defineProperty(exports, "__esModule", {
  24007. value: true
  24008. });
  24009. exports.pinyin_dict_notone = exports.pinyinUtil = void 0;
  24010. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  24011. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  24012. var _polyphone;
  24013. var dict = {};
  24014. //拼音首字母字典文件
  24015. var pinyin_dict_firstletter = {
  24016. all: "YDYQSXMWZSSXJBYMGCCZQPSSQBYCDSCDQLDYLYBSSJGYZZJJFKCCLZDHWDWZJLJPFYYNWJJTMYHZWZHFLZPPQHGSCYYYNJQYXXGJHHSDSJNKKTMOMLCRXYPSNQSECCQZGGLLYJLMYZZSECYKYYHQWJSSGGYXYZYJWWKDJHYCHMYXJTLXJYQBYXZLDWRDJRWYSRLDZJPCBZJJBRCFTLECZSTZFXXZHTRQHYBDLYCZSSYMMRFMYQZPWWJJYFCRWFDFZQPYDDWYXKYJAWJFFXYPSFTZYHHYZYSWCJYXSCLCXXWZZXNBGNNXBXLZSZSBSGPYSYZDHMDZBQBZCWDZZYYTZHBTSYYBZGNTNXQYWQSKBPHHLXGYBFMJEBJHHGQTJCYSXSTKZHLYCKGLYSMZXYALMELDCCXGZYRJXSDLTYZCQKCNNJWHJTZZCQLJSTSTBNXBTYXCEQXGKWJYFLZQLYHYXSPSFXLMPBYSXXXYDJCZYLLLSJXFHJXPJBTFFYABYXBHZZBJYZLWLCZGGBTSSMDTJZXPTHYQTGLJSCQFZKJZJQNLZWLSLHDZBWJNCJZYZSQQYCQYRZCJJWYBRTWPYFTWEXCSKDZCTBZHYZZYYJXZCFFZZMJYXXSDZZOTTBZLQWFCKSZSXFYRLNYJMBDTHJXSQQCCSBXYYTSYFBXDZTGBCNSLCYZZPSAZYZZSCJCSHZQYDXLBPJLLMQXTYDZXSQJTZPXLCGLQTZWJBHCTSYJSFXYEJJTLBGXSXJMYJQQPFZASYJNTYDJXKJCDJSZCBARTDCLYJQMWNQNCLLLKBYBZZSYHQQLTWLCCXTXLLZNTYLNEWYZYXCZXXGRKRMTCNDNJTSYYSSDQDGHSDBJGHRWRQLYBGLXHLGTGXBQJDZPYJSJYJCTMRNYMGRZJCZGJMZMGXMPRYXKJNYMSGMZJYMKMFXMLDTGFBHCJHKYLPFMDXLQJJSMTQGZSJLQDLDGJYCALCMZCSDJLLNXDJFFFFJCZFMZFFPFKHKGDPSXKTACJDHHZDDCRRCFQYJKQCCWJDXHWJLYLLZGCFCQDSMLZPBJJPLSBCJGGDCKKDEZSQCCKJGCGKDJTJDLZYCXKLQSCGJCLTFPCQCZGWPJDQYZJJBYJHSJDZWGFSJGZKQCCZLLPSPKJGQJHZZLJPLGJGJJTHJJYJZCZMLZLYQBGJWMLJKXZDZNJQSYZMLJLLJKYWXMKJLHSKJGBMCLYYMKXJQLBMLLKMDXXKWYXYSLMLPSJQQJQXYXFJTJDXMXXLLCXQBSYJBGWYMBGGBCYXPJYGPEPFGDJGBHBNSQJYZJKJKHXQFGQZKFHYGKHDKLLSDJQXPQYKYBNQSXQNSZSWHBSXWHXWBZZXDMNSJBSBKBBZKLYLXGWXDRWYQZMYWSJQLCJXXJXKJEQXSCYETLZHLYYYSDZPAQYZCMTLSHTZCFYZYXYLJSDCJQAGYSLCQLYYYSHMRQQKLDXZSCSSSYDYCJYSFSJBFRSSZQSBXXPXJYSDRCKGJLGDKZJZBDKTCSYQPYHSTCLDJDHMXMCGXYZHJDDTMHLTXZXYLYMOHYJCLTYFBQQXPFBDFHHTKSQHZYYWCNXXCRWHOWGYJLEGWDQCWGFJYCSNTMYTOLBYGWQWESJPWNMLRYDZSZTXYQPZGCWXHNGPYXSHMYQJXZTDPPBFYHZHTJYFDZWKGKZBLDNTSXHQEEGZZYLZMMZYJZGXZXKHKSTXNXXWYLYAPSTHXDWHZYMPXAGKYDXBHNHXKDPJNMYHYLPMGOCSLNZHKXXLPZZLBMLSFBHHGYGYYGGBHSCYAQTYWLXTZQCEZYDQDQMMHTKLLSZHLSJZWFYHQSWSCWLQAZYNYTLSXTHAZNKZZSZZLAXXZWWCTGQQTDDYZTCCHYQZFLXPSLZYGPZSZNGLNDQTBDLXGTCTAJDKYWNSYZLJHHZZCWNYYZYWMHYCHHYXHJKZWSXHZYXLYSKQYSPSLYZWMYPPKBYGLKZHTYXAXQSYSHXASMCHKDSCRSWJPWXSGZJLWWSCHSJHSQNHCSEGNDAQTBAALZZMSSTDQJCJKTSCJAXPLGGXHHGXXZCXPDMMHLDGTYBYSJMXHMRCPXXJZCKZXSHMLQXXTTHXWZFKHCCZDYTCJYXQHLXDHYPJQXYLSYYDZOZJNYXQEZYSQYAYXWYPDGXDDXSPPYZNDLTWRHXYDXZZJHTCXMCZLHPYYYYMHZLLHNXMYLLLMDCPPXHMXDKYCYRDLTXJCHHZZXZLCCLYLNZSHZJZZLNNRLWHYQSNJHXYNTTTKYJPYCHHYEGKCTTWLGQRLGGTGTYGYHPYHYLQYQGCWYQKPYYYTTTTLHYHLLTYTTSPLKYZXGZWGPYDSSZZDQXSKCQNMJJZZBXYQMJRTFFBTKHZKBXLJJKDXJTLBWFZPPTKQTZTGPDGNTPJYFALQMKGXBDCLZFHZCLLLLADPMXDJHLCCLGYHDZFGYDDGCYYFGYDXKSSEBDHYKDKDKHNAXXYBPBYYHXZQGAFFQYJXDMLJCSQZLLPCHBSXGJYNDYBYQSPZWJLZKSDDTACTBXZDYZYPJZQSJNKKTKNJDJGYYPGTLFYQKASDNTCYHBLWDZHBBYDWJRYGKZYHEYYFJMSDTYFZJJHGCXPLXHLDWXXJKYTCYKSSSMTWCTTQZLPBSZDZWZXGZAGYKTYWXLHLSPBCLLOQMMZSSLCMBJCSZZKYDCZJGQQDSMCYTZQQLWZQZXSSFPTTFQMDDZDSHDTDWFHTDYZJYQJQKYPBDJYYXTLJHDRQXXXHAYDHRJLKLYTWHLLRLLRCXYLBWSRSZZSYMKZZHHKYHXKSMDSYDYCJPBZBSQLFCXXXNXKXWYWSDZYQOGGQMMYHCDZTTFJYYBGSTTTYBYKJDHKYXBELHTYPJQNFXFDYKZHQKZBYJTZBXHFDXKDASWTAWAJLDYJSFHBLDNNTNQJTJNCHXFJSRFWHZFMDRYJYJWZPDJKZYJYMPCYZNYNXFBYTFYFWYGDBNZZZDNYTXZEMMQBSQEHXFZMBMFLZZSRXYMJGSXWZJSPRYDJSJGXHJJGLJJYNZZJXHGXKYMLPYYYCXYTWQZSWHWLYRJLPXSLSXMFSWWKLCTNXNYNPSJSZHDZEPTXMYYWXYYSYWLXJQZQXZDCLEEELMCPJPCLWBXSQHFWWTFFJTNQJHJQDXHWLBYZNFJLALKYYJLDXHHYCSTYYWNRJYXYWTRMDRQHWQCMFJDYZMHMYYXJWMYZQZXTLMRSPWWCHAQBXYGZYPXYYRRCLMPYMGKSJSZYSRMYJSNXTPLNBAPPYPYLXYYZKYNLDZYJZCZNNLMZHHARQMPGWQTZMXXMLLHGDZXYHXKYXYCJMFFYYHJFSBSSQLXXNDYCANNMTCJCYPRRNYTYQNYYMBMSXNDLYLYSLJRLXYSXQMLLYZLZJJJKYZZCSFBZXXMSTBJGNXYZHLXNMCWSCYZYFZLXBRNNNYLBNRTGZQYSATSWRYHYJZMZDHZGZDWYBSSCSKXSYHYTXXGCQGXZZSHYXJSCRHMKKBXCZJYJYMKQHZJFNBHMQHYSNJNZYBKNQMCLGQHWLZNZSWXKHLJHYYBQLBFCDSXDLDSPFZPSKJYZWZXZDDXJSMMEGJSCSSMGCLXXKYYYLNYPWWWGYDKZJGGGZGGSYCKNJWNJPCXBJJTQTJWDSSPJXZXNZXUMELPXFSXTLLXCLJXJJLJZXCTPSWXLYDHLYQRWHSYCSQYYBYAYWJJJQFWQCQQCJQGXALDBZZYJGKGXPLTZYFXJLTPADKYQHPMATLCPDCKBMTXYBHKLENXDLEEGQDYMSAWHZMLJTWYGXLYQZLJEEYYBQQFFNLYXRDSCTGJGXYYNKLLYQKCCTLHJLQMKKZGCYYGLLLJDZGYDHZWXPYSJBZKDZGYZZHYWYFQYTYZSZYEZZLYMHJJHTSMQWYZLKYYWZCSRKQYTLTDXWCTYJKLWSQZWBDCQYNCJSRSZJLKCDCDTLZZZACQQZZDDXYPLXZBQJYLZLLLQDDZQJYJYJZYXNYYYNYJXKXDAZWYRDLJYYYRJLXLLDYXJCYWYWNQCCLDDNYYYNYCKCZHXXCCLGZQJGKWPPCQQJYSBZZXYJSQPXJPZBSBDSFNSFPZXHDWZTDWPPTFLZZBZDMYYPQJRSDZSQZSQXBDGCPZSWDWCSQZGMDHZXMWWFYBPDGPHTMJTHZSMMBGZMBZJCFZWFZBBZMQCFMBDMCJXLGPNJBBXGYHYYJGPTZGZMQBQTCGYXJXLWZKYDPDYMGCFTPFXYZTZXDZXTGKMTYBBCLBJASKYTSSQYYMSZXFJEWLXLLSZBQJJJAKLYLXLYCCTSXMCWFKKKBSXLLLLJYXTYLTJYYTDPJHNHNNKBYQNFQYYZBYYESSESSGDYHFHWTCJBSDZZTFDMXHCNJZYMQWSRYJDZJQPDQBBSTJGGFBKJBXTGQHNGWJXJGDLLTHZHHYYYYYYSXWTYYYCCBDBPYPZYCCZYJPZYWCBDLFWZCWJDXXHYHLHWZZXJTCZLCDPXUJCZZZLYXJJTXPHFXWPYWXZPTDZZBDZCYHJHMLXBQXSBYLRDTGJRRCTTTHYTCZWMXFYTWWZCWJWXJYWCSKYBZSCCTZQNHXNWXXKHKFHTSWOCCJYBCMPZZYKBNNZPBZHHZDLSYDDYTYFJPXYNGFXBYQXCBHXCPSXTYZDMKYSNXSXLHKMZXLYHDHKWHXXSSKQYHHCJYXGLHZXCSNHEKDTGZXQYPKDHEXTYKCNYMYYYPKQYYYKXZLTHJQTBYQHXBMYHSQCKWWYLLHCYYLNNEQXQWMCFBDCCMLJGGXDQKTLXKGNQCDGZJWYJJLYHHQTTTNWCHMXCXWHWSZJYDJCCDBQCDGDNYXZTHCQRXCBHZTQCBXWGQWYYBXHMBYMYQTYEXMQKYAQYRGYZSLFYKKQHYSSQYSHJGJCNXKZYCXSBXYXHYYLSTYCXQTHYSMGSCPMMGCCCCCMTZTASMGQZJHKLOSQYLSWTMXSYQKDZLJQQYPLSYCZTCQQPBBQJZCLPKHQZYYXXDTDDTSJCXFFLLCHQXMJLWCJCXTSPYCXNDTJSHJWXDQQJSKXYAMYLSJHMLALYKXCYYDMNMDQMXMCZNNCYBZKKYFLMCHCMLHXRCJJHSYLNMTJZGZGYWJXSRXCWJGJQHQZDQJDCJJZKJKGDZQGJJYJYLXZXXCDQHHHEYTMHLFSBDJSYYSHFYSTCZQLPBDRFRZTZYKYWHSZYQKWDQZRKMSYNBCRXQBJYFAZPZZEDZCJYWBCJWHYJBQSZYWRYSZPTDKZPFPBNZTKLQYHBBZPNPPTYZZYBQNYDCPJMMCYCQMCYFZZDCMNLFPBPLNGQJTBTTNJZPZBBZNJKLJQYLNBZQHKSJZNGGQSZZKYXSHPZSNBCGZKDDZQANZHJKDRTLZLSWJLJZLYWTJNDJZJHXYAYNCBGTZCSSQMNJPJYTYSWXZFKWJQTKHTZPLBHSNJZSYZBWZZZZLSYLSBJHDWWQPSLMMFBJDWAQYZTCJTBNNWZXQXCDSLQGDSDPDZHJTQQPSWLYYJZLGYXYZLCTCBJTKTYCZJTQKBSJLGMGZDMCSGPYNJZYQYYKNXRPWSZXMTNCSZZYXYBYHYZAXYWQCJTLLCKJJTJHGDXDXYQYZZBYWDLWQCGLZGJGQRQZCZSSBCRPCSKYDZNXJSQGXSSJMYDNSTZTPBDLTKZWXQWQTZEXNQCZGWEZKSSBYBRTSSSLCCGBPSZQSZLCCGLLLZXHZQTHCZMQGYZQZNMCOCSZJMMZSQPJYGQLJYJPPLDXRGZYXCCSXHSHGTZNLZWZKJCXTCFCJXLBMQBCZZWPQDNHXLJCTHYZLGYLNLSZZPCXDSCQQHJQKSXZPBAJYEMSMJTZDXLCJYRYYNWJBNGZZTMJXLTBSLYRZPYLSSCNXPHLLHYLLQQZQLXYMRSYCXZLMMCZLTZSDWTJJLLNZGGQXPFSKYGYGHBFZPDKMWGHCXMSGDXJMCJZDYCABXJDLNBCDQYGSKYDQTXDJJYXMSZQAZDZFSLQXYJSJZYLBTXXWXQQZBJZUFBBLYLWDSLJHXJYZJWTDJCZFQZQZZDZSXZZQLZCDZFJHYSPYMPQZMLPPLFFXJJNZZYLSJEYQZFPFZKSYWJJJHRDJZZXTXXGLGHYDXCSKYSWMMZCWYBAZBJKSHFHJCXMHFQHYXXYZFTSJYZFXYXPZLCHMZMBXHZZSXYFYMNCWDABAZLXKTCSHHXKXJJZJSTHYGXSXYYHHHJWXKZXSSBZZWHHHCWTZZZPJXSNXQQJGZYZYWLLCWXZFXXYXYHXMKYYSWSQMNLNAYCYSPMJKHWCQHYLAJJMZXHMMCNZHBHXCLXTJPLTXYJHDYYLTTXFSZHYXXSJBJYAYRSMXYPLCKDUYHLXRLNLLSTYZYYQYGYHHSCCSMZCTZQXKYQFPYYRPFFLKQUNTSZLLZMWWTCQQYZWTLLMLMPWMBZSSTZRBPDDTLQJJBXZCSRZQQYGWCSXFWZLXCCRSZDZMCYGGDZQSGTJSWLJMYMMZYHFBJDGYXCCPSHXNZCSBSJYJGJMPPWAFFYFNXHYZXZYLREMZGZCYZSSZDLLJCSQFNXZKPTXZGXJJGFMYYYSNBTYLBNLHPFZDCYFBMGQRRSSSZXYSGTZRNYDZZCDGPJAFJFZKNZBLCZSZPSGCYCJSZLMLRSZBZZLDLSLLYSXSQZQLYXZLSKKBRXBRBZCYCXZZZEEYFGKLZLYYHGZSGZLFJHGTGWKRAAJYZKZQTSSHJJXDCYZUYJLZYRZDQQHGJZXSSZBYKJPBFRTJXLLFQWJHYLQTYMBLPZDXTZYGBDHZZRBGXHWNJTJXLKSCFSMWLSDQYSJTXKZSCFWJLBXFTZLLJZLLQBLSQMQQCGCZFPBPHZCZJLPYYGGDTGWDCFCZQYYYQYSSCLXZSKLZZZGFFCQNWGLHQYZJJCZLQZZYJPJZZBPDCCMHJGXDQDGDLZQMFGPSYTSDYFWWDJZJYSXYYCZCYHZWPBYKXRYLYBHKJKSFXTZJMMCKHLLTNYYMSYXYZPYJQYCSYCWMTJJKQYRHLLQXPSGTLYYCLJSCPXJYZFNMLRGJJTYZBXYZMSJYJHHFZQMSYXRSZCWTLRTQZSSTKXGQKGSPTGCZNJSJCQCXHMXGGZTQYDJKZDLBZSXJLHYQGGGTHQSZPYHJHHGYYGKGGCWJZZYLCZLXQSFTGZSLLLMLJSKCTBLLZZSZMMNYTPZSXQHJCJYQXYZXZQZCPSHKZZYSXCDFGMWQRLLQXRFZTLYSTCTMJCXJJXHJNXTNRZTZFQYHQGLLGCXSZSJDJLJCYDSJTLNYXHSZXCGJZYQPYLFHDJSBPCCZHJJJQZJQDYBSSLLCMYTTMQTBHJQNNYGKYRQYQMZGCJKPDCGMYZHQLLSLLCLMHOLZGDYYFZSLJCQZLYLZQJESHNYLLJXGJXLYSYYYXNBZLJSSZCQQCJYLLZLTJYLLZLLBNYLGQCHXYYXOXCXQKYJXXXYKLXSXXYQXCYKQXQCSGYXXYQXYGYTQOHXHXPYXXXULCYEYCHZZCBWQBBWJQZSCSZSSLZYLKDESJZWMYMCYTSDSXXSCJPQQSQYLYYZYCMDJDZYWCBTJSYDJKCYDDJLBDJJSODZYSYXQQYXDHHGQQYQHDYXWGMMMAJDYBBBPPBCMUUPLJZSMTXERXJMHQNUTPJDCBSSMSSSTKJTSSMMTRCPLZSZMLQDSDMJMQPNQDXCFYNBFSDQXYXHYAYKQYDDLQYYYSSZBYDSLNTFQTZQPZMCHDHCZCWFDXTMYQSPHQYYXSRGJCWTJTZZQMGWJJTJHTQJBBHWZPXXHYQFXXQYWYYHYSCDYDHHQMNMTMWCPBSZPPZZGLMZFOLLCFWHMMSJZTTDHZZYFFYTZZGZYSKYJXQYJZQBHMBZZLYGHGFMSHPZFZSNCLPBQSNJXZSLXXFPMTYJYGBXLLDLXPZJYZJYHHZCYWHJYLSJEXFSZZYWXKZJLUYDTMLYMQJPWXYHXSKTQJEZRPXXZHHMHWQPWQLYJJQJJZSZCPHJLCHHNXJLQWZJHBMZYXBDHHYPZLHLHLGFWLCHYYTLHJXCJMSCPXSTKPNHQXSRTYXXTESYJCTLSSLSTDLLLWWYHDHRJZSFGXTSYCZYNYHTDHWJSLHTZDQDJZXXQHGYLTZPHCSQFCLNJTCLZPFSTPDYNYLGMJLLYCQHYSSHCHYLHQYQTMZYPBYWRFQYKQSYSLZDQJMPXYYSSRHZJNYWTQDFZBWWTWWRXCWHGYHXMKMYYYQMSMZHNGCEPMLQQMTCWCTMMPXJPJJHFXYYZSXZHTYBMSTSYJTTQQQYYLHYNPYQZLCYZHZWSMYLKFJXLWGXYPJYTYSYXYMZCKTTWLKSMZSYLMPWLZWXWQZSSAQSYXYRHSSNTSRAPXCPWCMGDXHXZDZYFJHGZTTSBJHGYZSZYSMYCLLLXBTYXHBBZJKSSDMALXHYCFYGMQYPJYCQXJLLLJGSLZGQLYCJCCZOTYXMTMTTLLWTGPXYMZMKLPSZZZXHKQYSXCTYJZYHXSHYXZKXLZWPSQPYHJWPJPWXQQYLXSDHMRSLZZYZWTTCYXYSZZSHBSCCSTPLWSSCJCHNLCGCHSSPHYLHFHHXJSXYLLNYLSZDHZXYLSXLWZYKCLDYAXZCMDDYSPJTQJZLNWQPSSSWCTSTSZLBLNXSMNYYMJQBQHRZWTYYDCHQLXKPZWBGQYBKFCMZWPZLLYYLSZYDWHXPSBCMLJBSCGBHXLQHYRLJXYSWXWXZSLDFHLSLYNJLZYFLYJYCDRJLFSYZFSLLCQYQFGJYHYXZLYLMSTDJCYHBZLLNWLXXYGYYHSMGDHXXHHLZZJZXCZZZCYQZFNGWPYLCPKPYYPMCLQKDGXZGGWQBDXZZKZFBXXLZXJTPJPTTBYTSZZDWSLCHZHSLTYXHQLHYXXXYYZYSWTXZKHLXZXZPYHGCHKCFSYHUTJRLXFJXPTZTWHPLYXFCRHXSHXKYXXYHZQDXQWULHYHMJTBFLKHTXCWHJFWJCFPQRYQXCYYYQYGRPYWSGSUNGWCHKZDXYFLXXHJJBYZWTSXXNCYJJYMSWZJQRMHXZWFQSYLZJZGBHYNSLBGTTCSYBYXXWXYHXYYXNSQYXMQYWRGYQLXBBZLJSYLPSYTJZYHYZAWLRORJMKSCZJXXXYXCHDYXRYXXJDTSQFXLYLTSFFYXLMTYJMJUYYYXLTZCSXQZQHZXLYYXZHDNBRXXXJCTYHLBRLMBRLLAXKYLLLJLYXXLYCRYLCJTGJCMTLZLLCYZZPZPCYAWHJJFYBDYYZSMPCKZDQYQPBPCJPDCYZMDPBCYYDYCNNPLMTMLRMFMMGWYZBSJGYGSMZQQQZTXMKQWGXLLPJGZBQCDJJJFPKJKCXBLJMSWMDTQJXLDLPPBXCWRCQFBFQJCZAHZGMYKPHYYHZYKNDKZMBPJYXPXYHLFPNYYGXJDBKXNXHJMZJXSTRSTLDXSKZYSYBZXJLXYSLBZYSLHXJPFXPQNBYLLJQKYGZMCYZZYMCCSLCLHZFWFWYXZMWSXTYNXJHPYYMCYSPMHYSMYDYSHQYZCHMJJMZCAAGCFJBBHPLYZYLXXSDJGXDHKXXTXXNBHRMLYJSLTXMRHNLXQJXYZLLYSWQGDLBJHDCGJYQYCMHWFMJYBMBYJYJWYMDPWHXQLDYGPDFXXBCGJSPCKRSSYZJMSLBZZJFLJJJLGXZGYXYXLSZQYXBEXYXHGCXBPLDYHWETTWWCJMBTXCHXYQXLLXFLYXLLJLSSFWDPZSMYJCLMWYTCZPCHQEKCQBWLCQYDPLQPPQZQFJQDJHYMMCXTXDRMJWRHXCJZYLQXDYYNHYYHRSLSRSYWWZJYMTLTLLGTQCJZYABTCKZCJYCCQLJZQXALMZYHYWLWDXZXQDLLQSHGPJFJLJHJABCQZDJGTKHSSTCYJLPSWZLXZXRWGLDLZRLZXTGSLLLLZLYXXWGDZYGBDPHZPBRLWSXQBPFDWOFMWHLYPCBJCCLDMBZPBZZLCYQXLDOMZBLZWPDWYYGDSTTHCSQSCCRSSSYSLFYBFNTYJSZDFNDPDHDZZMBBLSLCMYFFGTJJQWFTMTPJWFNLBZCMMJTGBDZLQLPYFHYYMJYLSDCHDZJWJCCTLJCLDTLJJCPDDSQDSSZYBNDBJLGGJZXSXNLYCYBJXQYCBYLZCFZPPGKCXZDZFZTJJFJSJXZBNZYJQTTYJYHTYCZHYMDJXTTMPXSPLZCDWSLSHXYPZGTFMLCJTYCBPMGDKWYCYZCDSZZYHFLYCTYGWHKJYYLSJCXGYWJCBLLCSNDDBTZBSCLYZCZZSSQDLLMQYYHFSLQLLXFTYHABXGWNYWYYPLLSDLDLLBJCYXJZMLHLJDXYYQYTDLLLBUGBFDFBBQJZZMDPJHGCLGMJJPGAEHHBWCQXAXHHHZCHXYPHJAXHLPHJPGPZJQCQZGJJZZUZDMQYYBZZPHYHYBWHAZYJHYKFGDPFQSDLZMLJXKXGALXZDAGLMDGXMWZQYXXDXXPFDMMSSYMPFMDMMKXKSYZYSHDZKXSYSMMZZZMSYDNZZCZXFPLSTMZDNMXCKJMZTYYMZMZZMSXHHDCZJEMXXKLJSTLWLSQLYJZLLZJSSDPPMHNLZJCZYHMXXHGZCJMDHXTKGRMXFWMCGMWKDTKSXQMMMFZZYDKMSCLCMPCGMHSPXQPZDSSLCXKYXTWLWJYAHZJGZQMCSNXYYMMPMLKJXMHLMLQMXCTKZMJQYSZJSYSZHSYJZJCDAJZYBSDQJZGWZQQXFKDMSDJLFWEHKZQKJPEYPZYSZCDWYJFFMZZYLTTDZZEFMZLBNPPLPLPEPSZALLTYLKCKQZKGENQLWAGYXYDPXLHSXQQWQCQXQCLHYXXMLYCCWLYMQYSKGCHLCJNSZKPYZKCQZQLJPDMDZHLASXLBYDWQLWDNBQCRYDDZTJYBKBWSZDXDTNPJDTCTQDFXQQMGNXECLTTBKPWSLCTYQLPWYZZKLPYGZCQQPLLKCCYLPQMZCZQCLJSLQZDJXLDDHPZQDLJJXZQDXYZQKZLJCYQDYJPPYPQYKJYRMPCBYMCXKLLZLLFQPYLLLMBSGLCYSSLRSYSQTMXYXZQZFDZUYSYZTFFMZZSMZQHZSSCCMLYXWTPZGXZJGZGSJSGKDDHTQGGZLLBJDZLCBCHYXYZHZFYWXYZYMSDBZZYJGTSMTFXQYXQSTDGSLNXDLRYZZLRYYLXQHTXSRTZNGZXBNQQZFMYKMZJBZYMKBPNLYZPBLMCNQYZZZSJZHJCTZKHYZZJRDYZHNPXGLFZTLKGJTCTSSYLLGZRZBBQZZKLPKLCZYSSUYXBJFPNJZZXCDWXZYJXZZDJJKGGRSRJKMSMZJLSJYWQSKYHQJSXPJZZZLSNSHRNYPZTWCHKLPSRZLZXYJQXQKYSJYCZTLQZYBBYBWZPQDWWYZCYTJCJXCKCWDKKZXSGKDZXWWYYJQYYTCYTDLLXWKCZKKLCCLZCQQDZLQLCSFQCHQHSFSMQZZLNBJJZBSJHTSZDYSJQJPDLZCDCWJKJZZLPYCGMZWDJJBSJQZSYZYHHXJPBJYDSSXDZNCGLQMBTSFSBPDZDLZNFGFJGFSMPXJQLMBLGQCYYXBQKDJJQYRFKZTJDHCZKLBSDZCFJTPLLJGXHYXZCSSZZXSTJYGKGCKGYOQXJPLZPBPGTGYJZGHZQZZLBJLSQFZGKQQJZGYCZBZQTLDXRJXBSXXPZXHYZYCLWDXJJHXMFDZPFZHQHQMQGKSLYHTYCGFRZGNQXCLPDLBZCSCZQLLJBLHBZCYPZZPPDYMZZSGYHCKCPZJGSLJLNSCDSLDLXBMSTLDDFJMKDJDHZLZXLSZQPQPGJLLYBDSZGQLBZLSLKYYHZTTNTJYQTZZPSZQZTLLJTYYLLQLLQYZQLBDZLSLYYZYMDFSZSNHLXZNCZQZPBWSKRFBSYZMTHBLGJPMCZZLSTLXSHTCSYZLZBLFEQHLXFLCJLYLJQCBZLZJHHSSTBRMHXZHJZCLXFNBGXGTQJCZTMSFZKJMSSNXLJKBHSJXNTNLZDNTLMSJXGZJYJCZXYJYJWRWWQNZTNFJSZPZSHZJFYRDJSFSZJZBJFZQZZHZLXFYSBZQLZSGYFTZDCSZXZJBQMSZKJRHYJZCKMJKHCHGTXKXQGLXPXFXTRTYLXJXHDTSJXHJZJXZWZLCQSBTXWXGXTXXHXFTSDKFJHZYJFJXRZSDLLLTQSQQZQWZXSYQTWGWBZCGZLLYZBCLMQQTZHZXZXLJFRMYZFLXYSQXXJKXRMQDZDMMYYBSQBHGZMWFWXGMXLZPYYTGZYCCDXYZXYWGSYJYZNBHPZJSQSYXSXRTFYZGRHZTXSZZTHCBFCLSYXZLZQMZLMPLMXZJXSFLBYZMYQHXJSXRXSQZZZSSLYFRCZJRCRXHHZXQYDYHXSJJHZCXZBTYNSYSXJBQLPXZQPYMLXZKYXLXCJLCYSXXZZLXDLLLJJYHZXGYJWKJRWYHCPSGNRZLFZWFZZNSXGXFLZSXZZZBFCSYJDBRJKRDHHGXJLJJTGXJXXSTJTJXLYXQFCSGSWMSBCTLQZZWLZZKXJMLTMJYHSDDBXGZHDLBMYJFRZFSGCLYJBPMLYSMSXLSZJQQHJZFXGFQFQBPXZGYYQXGZTCQWYLTLGWSGWHRLFSFGZJMGMGBGTJFSYZZGZYZAFLSSPMLPFLCWBJZCLJJMZLPJJLYMQDMYYYFBGYGYZMLYZDXQYXRQQQHSYYYQXYLJTYXFSFSLLGNQCYHYCWFHCCCFXPYLYPLLZYXXXXXKQHHXSHJZCFZSCZJXCPZWHHHHHAPYLQALPQAFYHXDYLUKMZQGGGDDESRNNZLTZGCHYPPYSQJJHCLLJTOLNJPZLJLHYMHEYDYDSQYCDDHGZUNDZCLZYZLLZNTNYZGSLHSLPJJBDGWXPCDUTJCKLKCLWKLLCASSTKZZDNQNTTLYYZSSYSSZZRYLJQKCQDHHCRXRZYDGRGCWCGZQFFFPPJFZYNAKRGYWYQPQXXFKJTSZZXSWZDDFBBXTBGTZKZNPZZPZXZPJSZBMQHKCYXYLDKLJNYPKYGHGDZJXXEAHPNZKZTZCMXCXMMJXNKSZQNMNLWBWWXJKYHCPSTMCSQTZJYXTPCTPDTNNPGLLLZSJLSPBLPLQHDTNJNLYYRSZFFJFQWDPHZDWMRZCCLODAXNSSNYZRESTYJWJYJDBCFXNMWTTBYLWSTSZGYBLJPXGLBOCLHPCBJLTMXZLJYLZXCLTPNCLCKXTPZJSWCYXSFYSZDKNTLBYJCYJLLSTGQCBXRYZXBXKLYLHZLQZLNZCXWJZLJZJNCJHXMNZZGJZZXTZJXYCYYCXXJYYXJJXSSSJSTSSTTPPGQTCSXWZDCSYFPTFBFHFBBLZJCLZZDBXGCXLQPXKFZFLSYLTUWBMQJHSZBMDDBCYSCCLDXYCDDQLYJJWMQLLCSGLJJSYFPYYCCYLTJANTJJPWYCMMGQYYSXDXQMZHSZXPFTWWZQSWQRFKJLZJQQYFBRXJHHFWJJZYQAZMYFRHCYYBYQWLPEXCCZSTYRLTTDMQLYKMBBGMYYJPRKZNPBSXYXBHYZDJDNGHPMFSGMWFZMFQMMBCMZZCJJLCNUXYQLMLRYGQZCYXZLWJGCJCGGMCJNFYZZJHYCPRRCMTZQZXHFQGTJXCCJEAQCRJYHPLQLSZDJRBCQHQDYRHYLYXJSYMHZYDWLDFRYHBPYDTSSCNWBXGLPZMLZZTQSSCPJMXXYCSJYTYCGHYCJWYRXXLFEMWJNMKLLSWTXHYYYNCMMCWJDQDJZGLLJWJRKHPZGGFLCCSCZMCBLTBHBQJXQDSPDJZZGKGLFQYWBZYZJLTSTDHQHCTCBCHFLQMPWDSHYYTQWCNZZJTLBYMBPDYYYXSQKXWYYFLXXNCWCXYPMAELYKKJMZZZBRXYYQJFLJPFHHHYTZZXSGQQMHSPGDZQWBWPJHZJDYSCQWZKTXXSQLZYYMYSDZGRXCKKUJLWPYSYSCSYZLRMLQSYLJXBCXTLWDQZPCYCYKPPPNSXFYZJJRCEMHSZMSXLXGLRWGCSTLRSXBZGBZGZTCPLUJLSLYLYMTXMTZPALZXPXJTJWTCYYZLBLXBZLQMYLXPGHDSLSSDMXMBDZZSXWHAMLCZCPJMCNHJYSNSYGCHSKQMZZQDLLKABLWJXSFMOCDXJRRLYQZKJMYBYQLYHETFJZFRFKSRYXFJTWDSXXSYSQJYSLYXWJHSNLXYYXHBHAWHHJZXWMYLJCSSLKYDZTXBZSYFDXGXZJKHSXXYBSSXDPYNZWRPTQZCZENYGCXQFJYKJBZMLJCMQQXUOXSLYXXLYLLJDZBTYMHPFSTTQQWLHOKYBLZZALZXQLHZWRRQHLSTMYPYXJJXMQSJFNBXYXYJXXYQYLTHYLQYFMLKLJTMLLHSZWKZHLJMLHLJKLJSTLQXYLMBHHLNLZXQJHXCFXXLHYHJJGBYZZKBXSCQDJQDSUJZYYHZHHMGSXCSYMXFEBCQWWRBPYYJQTYZCYQYQQZYHMWFFHGZFRJFCDPXNTQYZPDYKHJLFRZXPPXZDBBGZQSTLGDGYLCQMLCHHMFYWLZYXKJLYPQHSYWMQQGQZMLZJNSQXJQSYJYCBEHSXFSZPXZWFLLBCYYJDYTDTHWZSFJMQQYJLMQXXLLDTTKHHYBFPWTYYSQQWNQWLGWDEBZWCMYGCULKJXTMXMYJSXHYBRWFYMWFRXYQMXYSZTZZTFYKMLDHQDXWYYNLCRYJBLPSXCXYWLSPRRJWXHQYPHTYDNXHHMMYWYTZCSQMTSSCCDALWZTCPQPYJLLQZYJSWXMZZMMYLMXCLMXCZMXMZSQTZPPQQBLPGXQZHFLJJHYTJSRXWZXSCCDLXTYJDCQJXSLQYCLZXLZZXMXQRJMHRHZJBHMFLJLMLCLQNLDXZLLLPYPSYJYSXCQQDCMQJZZXHNPNXZMEKMXHYKYQLXSXTXJYYHWDCWDZHQYYBGYBCYSCFGPSJNZDYZZJZXRZRQJJYMCANYRJTLDPPYZBSTJKXXZYPFDWFGZZRPYMTNGXZQBYXNBUFNQKRJQZMJEGRZGYCLKXZDSKKNSXKCLJSPJYYZLQQJYBZSSQLLLKJXTBKTYLCCDDBLSPPFYLGYDTZJYQGGKQTTFZXBDKTYYHYBBFYTYYBCLPDYTGDHRYRNJSPTCSNYJQHKLLLZSLYDXXWBCJQSPXBPJZJCJDZFFXXBRMLAZHCSNDLBJDSZBLPRZTSWSBXBCLLXXLZDJZSJPYLYXXYFTFFFBHJJXGBYXJPMMMPSSJZJMTLYZJXSWXTYLEDQPJMYGQZJGDJLQJWJQLLSJGJGYGMSCLJJXDTYGJQJQJCJZCJGDZZSXQGSJGGCXHQXSNQLZZBXHSGZXCXYLJXYXYYDFQQJHJFXDHCTXJYRXYSQTJXYEFYYSSYYJXNCYZXFXMSYSZXYYSCHSHXZZZGZZZGFJDLTYLNPZGYJYZYYQZPBXQBDZTZCZYXXYHHSQXSHDHGQHJHGYWSZTMZMLHYXGEBTYLZKQWYTJZRCLEKYSTDBCYKQQSAYXCJXWWGSBHJYZYDHCSJKQCXSWXFLTYNYZPZCCZJQTZWJQDZZZQZLJJXLSBHPYXXPSXSHHEZTXFPTLQYZZXHYTXNCFZYYHXGNXMYWXTZSJPTHHGYMXMXQZXTSBCZYJYXXTYYZYPCQLMMSZMJZZLLZXGXZAAJZYXJMZXWDXZSXZDZXLEYJJZQBHZWZZZQTZPSXZTDSXJJJZNYAZPHXYYSRNQDTHZHYYKYJHDZXZLSWCLYBZYECWCYCRYLCXNHZYDZYDYJDFRJJHTRSQTXYXJRJHOJYNXELXSFSFJZGHPZSXZSZDZCQZBYYKLSGSJHCZSHDGQGXYZGXCHXZJWYQWGYHKSSEQZZNDZFKWYSSTCLZSTSYMCDHJXXYWEYXCZAYDMPXMDSXYBSQMJMZJMTZQLPJYQZCGQHXJHHLXXHLHDLDJQCLDWBSXFZZYYSCHTYTYYBHECXHYKGJPXHHYZJFXHWHBDZFYZBCAPNPGNYDMSXHMMMMAMYNBYJTMPXYYMCTHJBZYFCGTYHWPHFTWZZEZSBZEGPFMTSKFTYCMHFLLHGPZJXZJGZJYXZSBBQSCZZLZCCSTPGXMJSFTCCZJZDJXCYBZLFCJSYZFGSZLYBCWZZBYZDZYPSWYJZXZBDSYUXLZZBZFYGCZXBZHZFTPBGZGEJBSTGKDMFHYZZJHZLLZZGJQZLSFDJSSCBZGPDLFZFZSZYZYZSYGCXSNXXCHCZXTZZLJFZGQSQYXZJQDCCZTQCDXZJYQJQCHXZTDLGSCXZSYQJQTZWLQDQZTQCHQQJZYEZZZPBWKDJFCJPZTYPQYQTTYNLMBDKTJZPQZQZZFPZSBNJLGYJDXJDZZKZGQKXDLPZJTCJDQBXDJQJSTCKNXBXZMSLYJCQMTJQWWCJQNJNLLLHJCWQTBZQYDZCZPZZDZYDDCYZZZCCJTTJFZDPRRTZTJDCQTQZDTJNPLZBCLLCTZSXKJZQZPZLBZRBTJDCXFCZDBCCJJLTQQPLDCGZDBBZJCQDCJWYNLLZYZCCDWLLXWZLXRXNTQQCZXKQLSGDFQTDDGLRLAJJTKUYMKQLLTZYTDYYCZGJWYXDXFRSKSTQTENQMRKQZHHQKDLDAZFKYPBGGPZREBZZYKZZSPEGJXGYKQZZZSLYSYYYZWFQZYLZZLZHWCHKYPQGNPGBLPLRRJYXCCSYYHSFZFYBZYYTGZXYLXCZWXXZJZBLFFLGSKHYJZEYJHLPLLLLCZGXDRZELRHGKLZZYHZLYQSZZJZQLJZFLNBHGWLCZCFJYSPYXZLZLXGCCPZBLLCYBBBBUBBCBPCRNNZCZYRBFSRLDCGQYYQXYGMQZWTZYTYJXYFWTEHZZJYWLCCNTZYJJZDEDPZDZTSYQJHDYMBJNYJZLXTSSTPHNDJXXBYXQTZQDDTJTDYYTGWSCSZQFLSHLGLBCZPHDLYZJYCKWTYTYLBNYTSDSYCCTYSZYYEBHEXHQDTWNYGYCLXTSZYSTQMYGZAZCCSZZDSLZCLZRQXYYELJSBYMXSXZTEMBBLLYYLLYTDQYSHYMRQWKFKBFXNXSBYCHXBWJYHTQBPBSBWDZYLKGZSKYHXQZJXHXJXGNLJKZLYYCDXLFYFGHLJGJYBXQLYBXQPQGZTZPLNCYPXDJYQYDYMRBESJYYHKXXSTMXRCZZYWXYQYBMCLLYZHQYZWQXDBXBZWZMSLPDMYSKFMZKLZCYQYCZLQXFZZYDQZPZYGYJYZMZXDZFYFYTTQTZHGSPCZMLCCYTZXJCYTJMKSLPZHYSNZLLYTPZCTZZCKTXDHXXTQCYFKSMQCCYYAZHTJPCYLZLYJBJXTPNYLJYYNRXSYLMMNXJSMYBCSYSYLZYLXJJQYLDZLPQBFZZBLFNDXQKCZFYWHGQMRDSXYCYTXNQQJZYYPFZXDYZFPRXEJDGYQBXRCNFYYQPGHYJDYZXGRHTKYLNWDZNTSMPKLBTHBPYSZBZTJZSZZJTYYXZPHSSZZBZCZPTQFZMYFLYPYBBJQXZMXXDJMTSYSKKBJZXHJCKLPSMKYJZCXTMLJYXRZZQSLXXQPYZXMKYXXXJCLJPRMYYGADYSKQLSNDHYZKQXZYZTCGHZTLMLWZYBWSYCTBHJHJFCWZTXWYTKZLXQSHLYJZJXTMPLPYCGLTBZZTLZJCYJGDTCLKLPLLQPJMZPAPXYZLKKTKDZCZZBNZDYDYQZJYJGMCTXLTGXSZLMLHBGLKFWNWZHDXUHLFMKYSLGXDTWWFRJEJZTZHYDXYKSHWFZCQSHKTMQQHTZHYMJDJSKHXZJZBZZXYMPAGQMSTPXLSKLZYNWRTSQLSZBPSPSGZWYHTLKSSSWHZZLYYTNXJGMJSZSUFWNLSOZTXGXLSAMMLBWLDSZYLAKQCQCTMYCFJBSLXCLZZCLXXKSBZQCLHJPSQPLSXXCKSLNHPSFQQYTXYJZLQLDXZQJZDYYDJNZPTUZDSKJFSLJHYLZSQZLBTXYDGTQFDBYAZXDZHZJNHHQBYKNXJJQCZMLLJZKSPLDYCLBBLXKLELXJLBQYCXJXGCNLCQPLZLZYJTZLJGYZDZPLTQCSXFDMNYCXGBTJDCZNBGBQYQJWGKFHTNPYQZQGBKPBBYZMTJDYTBLSQMPSXTBNPDXKLEMYYCJYNZCTLDYKZZXDDXHQSHDGMZSJYCCTAYRZLPYLTLKXSLZCGGEXCLFXLKJRTLQJAQZNCMBYDKKCXGLCZJZXJHPTDJJMZQYKQSECQZDSHHADMLZFMMZBGNTJNNLGBYJBRBTMLBYJDZXLCJLPLDLPCQDHLXZLYCBLCXZZJADJLNZMMSSSMYBHBSQKBHRSXXJMXSDZNZPXLGBRHWGGFCXGMSKLLTSJYYCQLTSKYWYYHYWXBXQYWPYWYKQLSQPTNTKHQCWDQKTWPXXHCPTHTWUMSSYHBWCRWXHJMKMZNGWTMLKFGHKJYLSYYCXWHYECLQHKQHTTQKHFZLDXQWYZYYDESBPKYRZPJFYYZJCEQDZZDLATZBBFJLLCXDLMJSSXEGYGSJQXCWBXSSZPDYZCXDNYXPPZYDLYJCZPLTXLSXYZYRXCYYYDYLWWNZSAHJSYQYHGYWWAXTJZDAXYSRLTDPSSYYFNEJDXYZHLXLLLZQZSJNYQYQQXYJGHZGZCYJCHZLYCDSHWSHJZYJXCLLNXZJJYYXNFXMWFPYLCYLLABWDDHWDXJMCXZTZPMLQZHSFHZYNZTLLDYWLSLXHYMMYLMBWWKYXYADTXYLLDJPYBPWUXJMWMLLSAFDLLYFLBHHHBQQLTZJCQJLDJTFFKMMMBYTHYGDCQRDDWRQJXNBYSNWZDBYYTBJHPYBYTTJXAAHGQDQTMYSTQXKBTZPKJLZRBEQQSSMJJBDJOTGTBXPGBKTLHQXJJJCTHXQDWJLWRFWQGWSHCKRYSWGFTGYGBXSDWDWRFHWYTJJXXXJYZYSLPYYYPAYXHYDQKXSHXYXGSKQHYWFDDDPPLCJLQQEEWXKSYYKDYPLTJTHKJLTCYYHHJTTPLTZZCDLTHQKZXQYSTEEYWYYZYXXYYSTTJKLLPZMCYHQGXYHSRMBXPLLNQYDQHXSXXWGDQBSHYLLPJJJTHYJKYPPTHYYKTYEZYENMDSHLCRPQFDGFXZPSFTLJXXJBSWYYSKSFLXLPPLBBBLBSFXFYZBSJSSYLPBBFFFFSSCJDSTZSXZRYYSYFFSYZYZBJTBCTSBSDHRTJJBYTCXYJEYLXCBNEBJDSYXYKGSJZBXBYTFZWGENYHHTHZHHXFWGCSTBGXKLSXYWMTMBYXJSTZSCDYQRCYTWXZFHMYMCXLZNSDJTTTXRYCFYJSBSDYERXJLJXBBDEYNJGHXGCKGSCYMBLXJMSZNSKGXFBNBPTHFJAAFXYXFPXMYPQDTZCXZZPXRSYWZDLYBBKTYQPQJPZYPZJZNJPZJLZZFYSBTTSLMPTZRTDXQSJEHBZYLZDHLJSQMLHTXTJECXSLZZSPKTLZKQQYFSYGYWPCPQFHQHYTQXZKRSGTTSQCZLPTXCDYYZXSQZSLXLZMYCPCQBZYXHBSXLZDLTCDXTYLZJYYZPZYZLTXJSJXHLPMYTXCQRBLZSSFJZZTNJYTXMYJHLHPPLCYXQJQQKZZSCPZKSWALQSBLCCZJSXGWWWYGYKTJBBZTDKHXHKGTGPBKQYSLPXPJCKBMLLXDZSTBKLGGQKQLSBKKTFXRMDKBFTPZFRTBBRFERQGXYJPZSSTLBZTPSZQZSJDHLJQLZBPMSMMSXLQQNHKNBLRDDNXXDHDDJCYYGYLXGZLXSYGMQQGKHBPMXYXLYTQWLWGCPBMQXCYZYDRJBHTDJYHQSHTMJSBYPLWHLZFFNYPMHXXHPLTBQPFBJWQDBYGPNZTPFZJGSDDTQSHZEAWZZYLLTYYBWJKXXGHLFKXDJTMSZSQYNZGGSWQSPHTLSSKMCLZXYSZQZXNCJDQGZDLFNYKLJCJLLZLMZZNHYDSSHTHZZLZZBBHQZWWYCRZHLYQQJBEYFXXXWHSRXWQHWPSLMSSKZTTYGYQQWRSLALHMJTQJSMXQBJJZJXZYZKXBYQXBJXSHZTSFJLXMXZXFGHKZSZGGYLCLSARJYHSLLLMZXELGLXYDJYTLFBHBPNLYZFBBHPTGJKWETZHKJJXZXXGLLJLSTGSHJJYQLQZFKCGNNDJSSZFDBCTWWSEQFHQJBSAQTGYPQLBXBMMYWXGSLZHGLZGQYFLZBYFZJFRYSFMBYZHQGFWZSYFYJJPHZBYYZFFWODGRLMFTWLBZGYCQXCDJYGZYYYYTYTYDWEGAZYHXJLZYYHLRMGRXXZCLHNELJJTJTPWJYBJJBXJJTJTEEKHWSLJPLPSFYZPQQBDLQJJTYYQLYZKDKSQJYYQZLDQTGJQYZJSUCMRYQTHTEJMFCTYHYPKMHYZWJDQFHYYXWSHCTXRLJHQXHCCYYYJLTKTTYTMXGTCJTZAYYOCZLYLBSZYWJYTSJYHBYSHFJLYGJXXTMZYYLTXXYPZLXYJZYZYYPNHMYMDYYLBLHLSYYQQLLNJJYMSOYQBZGDLYXYLCQYXTSZEGXHZGLHWBLJHEYXTWQMAKBPQCGYSHHEGQCMWYYWLJYJHYYZLLJJYLHZYHMGSLJLJXCJJYCLYCJPCPZJZJMMYLCQLNQLJQJSXYJMLSZLJQLYCMMHCFMMFPQQMFYLQMCFFQMMMMHMZNFHHJGTTHHKHSLNCHHYQDXTMMQDCYZYXYQMYQYLTDCYYYZAZZCYMZYDLZFFFMMYCQZWZZMABTBYZTDMNZZGGDFTYPCGQYTTSSFFWFDTZQSSYSTWXJHXYTSXXYLBYQHWWKXHZXWZNNZZJZJJQJCCCHYYXBZXZCYZTLLCQXYNJYCYYCYNZZQYYYEWYCZDCJYCCHYJLBTZYYCQWMPWPYMLGKDLDLGKQQBGYCHJXY",
  24017. polyphone: (_polyphone = {
  24018. "19969": "DZ",
  24019. "19975": "WM",
  24020. "19988": "QJ",
  24021. "20048": "YL",
  24022. "20056": "SC",
  24023. "20060": "NM",
  24024. "20094": "QG",
  24025. "20127": "QJ",
  24026. "20167": "QC",
  24027. "20193": "YG",
  24028. "20250": "KH",
  24029. "20256": "ZC",
  24030. "20282": "SC",
  24031. "20285": "QJG",
  24032. "20291": "TD",
  24033. "20314": "YD",
  24034. "20340": "NE",
  24035. "20375": "TD",
  24036. "20389": "YJ",
  24037. "20391": "CZ",
  24038. "20415": "PB",
  24039. "20446": "YS",
  24040. "20447": "SQ",
  24041. "20504": "TC",
  24042. "20608": "KG",
  24043. "20854": "QJ",
  24044. "20857": "ZC",
  24045. "20911": "PF"
  24046. }, (0, _defineProperty2.default)(_polyphone, "20504", "TC"), (0, _defineProperty2.default)(_polyphone, "20608", "KG"), (0, _defineProperty2.default)(_polyphone, "20854", "QJ"), (0, _defineProperty2.default)(_polyphone, "20857", "ZC"), (0, _defineProperty2.default)(_polyphone, "20911", "PF"), (0, _defineProperty2.default)(_polyphone, "20985", "AW"), (0, _defineProperty2.default)(_polyphone, "21032", "PB"), (0, _defineProperty2.default)(_polyphone, "21048", "XQ"), (0, _defineProperty2.default)(_polyphone, "21049", "SC"), (0, _defineProperty2.default)(_polyphone, "21089", "YS"), (0, _defineProperty2.default)(_polyphone, "21119", "JC"), (0, _defineProperty2.default)(_polyphone, "21242", "SB"), (0, _defineProperty2.default)(_polyphone, "21273", "SC"), (0, _defineProperty2.default)(_polyphone, "21305", "YP"), (0, _defineProperty2.default)(_polyphone, "21306", "QO"), (0, _defineProperty2.default)(_polyphone, "21330", "ZC"), (0, _defineProperty2.default)(_polyphone, "21333", "SDC"), (0, _defineProperty2.default)(_polyphone, "21345", "QK"), (0, _defineProperty2.default)(_polyphone, "21378", "CA"), (0, _defineProperty2.default)(_polyphone, "21397", "SC"), (0, _defineProperty2.default)(_polyphone, "21414", "XS"), (0, _defineProperty2.default)(_polyphone, "21442", "SC"), (0, _defineProperty2.default)(_polyphone, "21477", "JG"), (0, _defineProperty2.default)(_polyphone, "21480", "TD"), (0, _defineProperty2.default)(_polyphone, "21484", "ZS"), (0, _defineProperty2.default)(_polyphone, "21494", "YX"), (0, _defineProperty2.default)(_polyphone, "21505", "YX"), (0, _defineProperty2.default)(_polyphone, "21512", "HG"), (0, _defineProperty2.default)(_polyphone, "21523", "XH"), (0, _defineProperty2.default)(_polyphone, "21537", "PB"), (0, _defineProperty2.default)(_polyphone, "21542", "PF"), (0, _defineProperty2.default)(_polyphone, "21549", "KH"), (0, _defineProperty2.default)(_polyphone, "21571", "E"), (0, _defineProperty2.default)(_polyphone, "21574", "DA"), (0, _defineProperty2.default)(_polyphone, "21588", "TD"), (0, _defineProperty2.default)(_polyphone, "21589", "O"), (0, _defineProperty2.default)(_polyphone, "21618", "ZC"), (0, _defineProperty2.default)(_polyphone, "21621", "KHA"), (0, _defineProperty2.default)(_polyphone, "21632", "ZJ"), (0, _defineProperty2.default)(_polyphone, "21654", "KG"), (0, _defineProperty2.default)(_polyphone, "21679", "LKG"), (0, _defineProperty2.default)(_polyphone, "21683", "KH"), (0, _defineProperty2.default)(_polyphone, "21710", "A"), (0, _defineProperty2.default)(_polyphone, "21719", "YH"), (0, _defineProperty2.default)(_polyphone, "21734", "WOE"), (0, _defineProperty2.default)(_polyphone, "21769", "A"), (0, _defineProperty2.default)(_polyphone, "21780", "WN"), (0, _defineProperty2.default)(_polyphone, "21804", "XH"), (0, _defineProperty2.default)(_polyphone, "21834", "A"), (0, _defineProperty2.default)(_polyphone, "21899", "ZD"), (0, _defineProperty2.default)(_polyphone, "21903", "RN"), (0, _defineProperty2.default)(_polyphone, "21908", "WO"), (0, _defineProperty2.default)(_polyphone, "21939", "ZC"), (0, _defineProperty2.default)(_polyphone, "21956", "SA"), (0, _defineProperty2.default)(_polyphone, "21964", "YA"), (0, _defineProperty2.default)(_polyphone, "21970", "TD"), (0, _defineProperty2.default)(_polyphone, "22003", "A"), (0, _defineProperty2.default)(_polyphone, "22031", "JG"), (0, _defineProperty2.default)(_polyphone, "22040", "XS"), (0, _defineProperty2.default)(_polyphone, "22060", "ZC"), (0, _defineProperty2.default)(_polyphone, "22066", "ZC"), (0, _defineProperty2.default)(_polyphone, "22079", "MH"), (0, _defineProperty2.default)(_polyphone, "22129", "XJ"), (0, _defineProperty2.default)(_polyphone, "22179", "XA"), (0, _defineProperty2.default)(_polyphone, "22237", "NJ"), (0, _defineProperty2.default)(_polyphone, "22244", "TD"), (0, _defineProperty2.default)(_polyphone, "22280", "JQ"), (0, _defineProperty2.default)(_polyphone, "22300", "YH"), (0, _defineProperty2.default)(_polyphone, "22313", "XW"), (0, _defineProperty2.default)(_polyphone, "22331", "YQ"), (0, _defineProperty2.default)(_polyphone, "22343", "YJ"), (0, _defineProperty2.default)(_polyphone, "22351", "PH"), (0, _defineProperty2.default)(_polyphone, "22395", "DC"), (0, _defineProperty2.default)(_polyphone, "22412", "TD"), (0, _defineProperty2.default)(_polyphone, "22484", "PB"), (0, _defineProperty2.default)(_polyphone, "22500", "PB"), (0, _defineProperty2.default)(_polyphone, "22534", "ZD"), (0, _defineProperty2.default)(_polyphone, "22549", "DH"), (0, _defineProperty2.default)(_polyphone, "22561", "PB"), (0, _defineProperty2.default)(_polyphone, "22612", "TD"), (0, _defineProperty2.default)(_polyphone, "22771", "KQ"), (0, _defineProperty2.default)(_polyphone, "22831", "HB"), (0, _defineProperty2.default)(_polyphone, "22841", "JG"), (0, _defineProperty2.default)(_polyphone, "22855", "QJ"), (0, _defineProperty2.default)(_polyphone, "22865", "XQ"), (0, _defineProperty2.default)(_polyphone, "23013", "ML"), (0, _defineProperty2.default)(_polyphone, "23081", "WM"), (0, _defineProperty2.default)(_polyphone, "23487", "SX"), (0, _defineProperty2.default)(_polyphone, "23558", "QJ"), (0, _defineProperty2.default)(_polyphone, "23561", "YW"), (0, _defineProperty2.default)(_polyphone, "23586", "YW"), (0, _defineProperty2.default)(_polyphone, "23614", "YW"), (0, _defineProperty2.default)(_polyphone, "23615", "SN"), (0, _defineProperty2.default)(_polyphone, "23631", "PB"), (0, _defineProperty2.default)(_polyphone, "23646", "ZS"), (0, _defineProperty2.default)(_polyphone, "23663", "ZT"), (0, _defineProperty2.default)(_polyphone, "23673", "YG"), (0, _defineProperty2.default)(_polyphone, "23762", "TD"), (0, _defineProperty2.default)(_polyphone, "23769", "ZS"), (0, _defineProperty2.default)(_polyphone, "23780", "QJ"), (0, _defineProperty2.default)(_polyphone, "23884", "QK"), (0, _defineProperty2.default)(_polyphone, "24055", "XH"), (0, _defineProperty2.default)(_polyphone, "24113", "DC"), (0, _defineProperty2.default)(_polyphone, "24162", "ZC"), (0, _defineProperty2.default)(_polyphone, "24191", "GA"), (0, _defineProperty2.default)(_polyphone, "24273", "QJ"), (0, _defineProperty2.default)(_polyphone, "24324", "NL"), (0, _defineProperty2.default)(_polyphone, "24377", "TD"), (0, _defineProperty2.default)(_polyphone, "24378", "QJ"), (0, _defineProperty2.default)(_polyphone, "24439", "PF"), (0, _defineProperty2.default)(_polyphone, "24554", "ZS"), (0, _defineProperty2.default)(_polyphone, "24683", "TD"), (0, _defineProperty2.default)(_polyphone, "24694", "WE"), (0, _defineProperty2.default)(_polyphone, "24733", "LK"), (0, _defineProperty2.default)(_polyphone, "24925", "TN"), (0, _defineProperty2.default)(_polyphone, "25094", "ZG"), (0, _defineProperty2.default)(_polyphone, "25100", "XQ"), (0, _defineProperty2.default)(_polyphone, "25103", "XH"), (0, _defineProperty2.default)(_polyphone, "25153", "PB"), (0, _defineProperty2.default)(_polyphone, "25170", "PB"), (0, _defineProperty2.default)(_polyphone, "25179", "KG"), (0, _defineProperty2.default)(_polyphone, "25203", "PB"), (0, _defineProperty2.default)(_polyphone, "25240", "ZS"), (0, _defineProperty2.default)(_polyphone, "25282", "FB"), (0, _defineProperty2.default)(_polyphone, "25303", "NA"), (0, _defineProperty2.default)(_polyphone, "25324", "KG"), (0, _defineProperty2.default)(_polyphone, "25341", "ZY"), (0, _defineProperty2.default)(_polyphone, "25373", "WZ"), (0, _defineProperty2.default)(_polyphone, "25375", "XJ"), (0, _defineProperty2.default)(_polyphone, "25384", "A"), (0, _defineProperty2.default)(_polyphone, "25457", "A"), (0, _defineProperty2.default)(_polyphone, "25528", "SD"), (0, _defineProperty2.default)(_polyphone, "25530", "SC"), (0, _defineProperty2.default)(_polyphone, "25552", "TD"), (0, _defineProperty2.default)(_polyphone, "25774", "ZC"), (0, _defineProperty2.default)(_polyphone, "25874", "ZC"), (0, _defineProperty2.default)(_polyphone, "26044", "YW"), (0, _defineProperty2.default)(_polyphone, "26080", "WM"), (0, _defineProperty2.default)(_polyphone, "26292", "PB"), (0, _defineProperty2.default)(_polyphone, "26333", "PB"), (0, _defineProperty2.default)(_polyphone, "26355", "ZY"), (0, _defineProperty2.default)(_polyphone, "26366", "CZ"), (0, _defineProperty2.default)(_polyphone, "26397", "ZC"), (0, _defineProperty2.default)(_polyphone, "26399", "QJ"), (0, _defineProperty2.default)(_polyphone, "26415", "ZS"), (0, _defineProperty2.default)(_polyphone, "26451", "SB"), (0, _defineProperty2.default)(_polyphone, "26526", "ZC"), (0, _defineProperty2.default)(_polyphone, "26552", "JG"), (0, _defineProperty2.default)(_polyphone, "26561", "TD"), (0, _defineProperty2.default)(_polyphone, "26588", "JG"), (0, _defineProperty2.default)(_polyphone, "26597", "CZ"), (0, _defineProperty2.default)(_polyphone, "26629", "ZS"), (0, _defineProperty2.default)(_polyphone, "26638", "YL"), (0, _defineProperty2.default)(_polyphone, "26646", "XQ"), (0, _defineProperty2.default)(_polyphone, "26653", "KG"), (0, _defineProperty2.default)(_polyphone, "26657", "XJ"), (0, _defineProperty2.default)(_polyphone, "26727", "HG"), (0, _defineProperty2.default)(_polyphone, "26894", "ZC"), (0, _defineProperty2.default)(_polyphone, "26937", "ZS"), (0, _defineProperty2.default)(_polyphone, "26946", "ZC"), (0, _defineProperty2.default)(_polyphone, "26999", "KJ"), (0, _defineProperty2.default)(_polyphone, "27099", "KJ"), (0, _defineProperty2.default)(_polyphone, "27449", "YQ"), (0, _defineProperty2.default)(_polyphone, "27481", "XS"), (0, _defineProperty2.default)(_polyphone, "27542", "ZS"), (0, _defineProperty2.default)(_polyphone, "27663", "ZS"), (0, _defineProperty2.default)(_polyphone, "27748", "TS"), (0, _defineProperty2.default)(_polyphone, "27784", "SC"), (0, _defineProperty2.default)(_polyphone, "27788", "ZD"), (0, _defineProperty2.default)(_polyphone, "27795", "TD"), (0, _defineProperty2.default)(_polyphone, "27812", "O"), (0, _defineProperty2.default)(_polyphone, "27850", "PB"), (0, _defineProperty2.default)(_polyphone, "27852", "MB"), (0, _defineProperty2.default)(_polyphone, "27895", "SL"), (0, _defineProperty2.default)(_polyphone, "27898", "PL"), (0, _defineProperty2.default)(_polyphone, "27973", "QJ"), (0, _defineProperty2.default)(_polyphone, "27981", "KH"), (0, _defineProperty2.default)(_polyphone, "27986", "HX"), (0, _defineProperty2.default)(_polyphone, "27994", "XJ"), (0, _defineProperty2.default)(_polyphone, "28044", "YC"), (0, _defineProperty2.default)(_polyphone, "28065", "WG"), (0, _defineProperty2.default)(_polyphone, "28177", "SM"), (0, _defineProperty2.default)(_polyphone, "28267", "QJ"), (0, _defineProperty2.default)(_polyphone, "28291", "KH"), (0, _defineProperty2.default)(_polyphone, "28337", "ZQ"), (0, _defineProperty2.default)(_polyphone, "28463", "TL"), (0, _defineProperty2.default)(_polyphone, "28548", "DC"), (0, _defineProperty2.default)(_polyphone, "28601", "TD"), (0, _defineProperty2.default)(_polyphone, "28689", "PB"), (0, _defineProperty2.default)(_polyphone, "28805", "JG"), (0, _defineProperty2.default)(_polyphone, "28820", "QG"), (0, _defineProperty2.default)(_polyphone, "28846", "PB"), (0, _defineProperty2.default)(_polyphone, "28952", "TD"), (0, _defineProperty2.default)(_polyphone, "28975", "ZC"), (0, _defineProperty2.default)(_polyphone, "29100", "A"), (0, _defineProperty2.default)(_polyphone, "29325", "QJ"), (0, _defineProperty2.default)(_polyphone, "29575", "SL"), (0, _defineProperty2.default)(_polyphone, "29602", "FB"), (0, _defineProperty2.default)(_polyphone, "30010", "TD"), (0, _defineProperty2.default)(_polyphone, "30044", "CX"), (0, _defineProperty2.default)(_polyphone, "30058", "PF"), (0, _defineProperty2.default)(_polyphone, "30091", "YSP"), (0, _defineProperty2.default)(_polyphone, "30111", "YN"), (0, _defineProperty2.default)(_polyphone, "30229", "XJ"), (0, _defineProperty2.default)(_polyphone, "30427", "SC"), (0, _defineProperty2.default)(_polyphone, "30465", "SX"), (0, _defineProperty2.default)(_polyphone, "30631", "YQ"), (0, _defineProperty2.default)(_polyphone, "30655", "QJ"), (0, _defineProperty2.default)(_polyphone, "30684", "QJG"), (0, _defineProperty2.default)(_polyphone, "30707", "SD"), (0, _defineProperty2.default)(_polyphone, "30729", "XH"), (0, _defineProperty2.default)(_polyphone, "30796", "LG"), (0, _defineProperty2.default)(_polyphone, "30917", "PB"), (0, _defineProperty2.default)(_polyphone, "31074", "NM"), (0, _defineProperty2.default)(_polyphone, "31085", "JZ"), (0, _defineProperty2.default)(_polyphone, "31109", "SC"), (0, _defineProperty2.default)(_polyphone, "31181", "ZC"), (0, _defineProperty2.default)(_polyphone, "31192", "MLB"), (0, _defineProperty2.default)(_polyphone, "31293", "JQ"), (0, _defineProperty2.default)(_polyphone, "31400", "YX"), (0, _defineProperty2.default)(_polyphone, "31584", "YJ"), (0, _defineProperty2.default)(_polyphone, "31896", "ZN"), (0, _defineProperty2.default)(_polyphone, "31909", "ZY"), (0, _defineProperty2.default)(_polyphone, "31995", "XJ"), (0, _defineProperty2.default)(_polyphone, "32321", "PF"), (0, _defineProperty2.default)(_polyphone, "32327", "ZY"), (0, _defineProperty2.default)(_polyphone, "32418", "HG"), (0, _defineProperty2.default)(_polyphone, "32420", "XQ"), (0, _defineProperty2.default)(_polyphone, "32421", "HG"), (0, _defineProperty2.default)(_polyphone, "32438", "LG"), (0, _defineProperty2.default)(_polyphone, "32473", "GJ"), (0, _defineProperty2.default)(_polyphone, "32488", "TD"), (0, _defineProperty2.default)(_polyphone, "32521", "QJ"), (0, _defineProperty2.default)(_polyphone, "32527", "PB"), (0, _defineProperty2.default)(_polyphone, "32562", "ZSQ"), (0, _defineProperty2.default)(_polyphone, "32564", "JZ"), (0, _defineProperty2.default)(_polyphone, "32735", "ZD"), (0, _defineProperty2.default)(_polyphone, "32793", "PB"), (0, _defineProperty2.default)(_polyphone, "33071", "PF"), (0, _defineProperty2.default)(_polyphone, "33098", "XL"), (0, _defineProperty2.default)(_polyphone, "33100", "YA"), (0, _defineProperty2.default)(_polyphone, "33152", "PB"), (0, _defineProperty2.default)(_polyphone, "33261", "CX"), (0, _defineProperty2.default)(_polyphone, "33324", "BP"), (0, _defineProperty2.default)(_polyphone, "33333", "TD"), (0, _defineProperty2.default)(_polyphone, "33406", "YA"), (0, _defineProperty2.default)(_polyphone, "33426", "WM"), (0, _defineProperty2.default)(_polyphone, "33432", "PB"), (0, _defineProperty2.default)(_polyphone, "33445", "JG"), (0, _defineProperty2.default)(_polyphone, "33486", "ZN"), (0, _defineProperty2.default)(_polyphone, "33493", "TS"), (0, _defineProperty2.default)(_polyphone, "33507", "QJ"), (0, _defineProperty2.default)(_polyphone, "33540", "QJ"), (0, _defineProperty2.default)(_polyphone, "33544", "ZC"), (0, _defineProperty2.default)(_polyphone, "33564", "XQ"), (0, _defineProperty2.default)(_polyphone, "33617", "YT"), (0, _defineProperty2.default)(_polyphone, "33632", "QJ"), (0, _defineProperty2.default)(_polyphone, "33636", "XH"), (0, _defineProperty2.default)(_polyphone, "33637", "YX"), (0, _defineProperty2.default)(_polyphone, "33694", "WG"), (0, _defineProperty2.default)(_polyphone, "33705", "PF"), (0, _defineProperty2.default)(_polyphone, "33728", "YW"), (0, _defineProperty2.default)(_polyphone, "33882", "SR"), (0, _defineProperty2.default)(_polyphone, "34067", "WM"), (0, _defineProperty2.default)(_polyphone, "34074", "YW"), (0, _defineProperty2.default)(_polyphone, "34121", "QJ"), (0, _defineProperty2.default)(_polyphone, "34255", "ZC"), (0, _defineProperty2.default)(_polyphone, "34259", "XL"), (0, _defineProperty2.default)(_polyphone, "34425", "JH"), (0, _defineProperty2.default)(_polyphone, "34430", "XH"), (0, _defineProperty2.default)(_polyphone, "34485", "KH"), (0, _defineProperty2.default)(_polyphone, "34503", "YS"), (0, _defineProperty2.default)(_polyphone, "34532", "HG"), (0, _defineProperty2.default)(_polyphone, "34552", "XS"), (0, _defineProperty2.default)(_polyphone, "34558", "YE"), (0, _defineProperty2.default)(_polyphone, "34593", "ZL"), (0, _defineProperty2.default)(_polyphone, "34660", "YQ"), (0, _defineProperty2.default)(_polyphone, "34892", "XH"), (0, _defineProperty2.default)(_polyphone, "34928", "SC"), (0, _defineProperty2.default)(_polyphone, "34999", "QJ"), (0, _defineProperty2.default)(_polyphone, "35048", "PB"), (0, _defineProperty2.default)(_polyphone, "35059", "SC"), (0, _defineProperty2.default)(_polyphone, "35098", "ZC"), (0, _defineProperty2.default)(_polyphone, "35203", "TQ"), (0, _defineProperty2.default)(_polyphone, "35265", "JX"), (0, _defineProperty2.default)(_polyphone, "35299", "JX"), (0, _defineProperty2.default)(_polyphone, "35782", "SZ"), (0, _defineProperty2.default)(_polyphone, "35828", "YS"), (0, _defineProperty2.default)(_polyphone, "35830", "E"), (0, _defineProperty2.default)(_polyphone, "35843", "TD"), (0, _defineProperty2.default)(_polyphone, "35895", "YG"), (0, _defineProperty2.default)(_polyphone, "35977", "MH"), (0, _defineProperty2.default)(_polyphone, "36158", "JG"), (0, _defineProperty2.default)(_polyphone, "36228", "QJ"), (0, _defineProperty2.default)(_polyphone, "36426", "XQ"), (0, _defineProperty2.default)(_polyphone, "36466", "DC"), (0, _defineProperty2.default)(_polyphone, "36710", "JC"), (0, _defineProperty2.default)(_polyphone, "36711", "ZYG"), (0, _defineProperty2.default)(_polyphone, "36767", "PB"), (0, _defineProperty2.default)(_polyphone, "36866", "SK"), (0, _defineProperty2.default)(_polyphone, "36951", "YW"), (0, _defineProperty2.default)(_polyphone, "37034", "YX"), (0, _defineProperty2.default)(_polyphone, "37063", "XH"), (0, _defineProperty2.default)(_polyphone, "37218", "ZC"), (0, _defineProperty2.default)(_polyphone, "37325", "ZC"), (0, _defineProperty2.default)(_polyphone, "38063", "PB"), (0, _defineProperty2.default)(_polyphone, "38079", "TD"), (0, _defineProperty2.default)(_polyphone, "38085", "QY"), (0, _defineProperty2.default)(_polyphone, "38107", "DC"), (0, _defineProperty2.default)(_polyphone, "38116", "TD"), (0, _defineProperty2.default)(_polyphone, "38123", "YD"), (0, _defineProperty2.default)(_polyphone, "38224", "HG"), (0, _defineProperty2.default)(_polyphone, "38241", "XTC"), (0, _defineProperty2.default)(_polyphone, "38271", "ZC"), (0, _defineProperty2.default)(_polyphone, "38415", "YE"), (0, _defineProperty2.default)(_polyphone, "38426", "KH"), (0, _defineProperty2.default)(_polyphone, "38461", "YD"), (0, _defineProperty2.default)(_polyphone, "38463", "AE"), (0, _defineProperty2.default)(_polyphone, "38466", "PB"), (0, _defineProperty2.default)(_polyphone, "38477", "XJ"), (0, _defineProperty2.default)(_polyphone, "38518", "YT"), (0, _defineProperty2.default)(_polyphone, "38551", "WK"), (0, _defineProperty2.default)(_polyphone, "38585", "ZC"), (0, _defineProperty2.default)(_polyphone, "38704", "XS"), (0, _defineProperty2.default)(_polyphone, "38739", "LJ"), (0, _defineProperty2.default)(_polyphone, "38761", "GJ"), (0, _defineProperty2.default)(_polyphone, "38808", "SQ"), (0, _defineProperty2.default)(_polyphone, "39048", "JG"), (0, _defineProperty2.default)(_polyphone, "39049", "XJ"), (0, _defineProperty2.default)(_polyphone, "39052", "HG"), (0, _defineProperty2.default)(_polyphone, "39076", "CZ"), (0, _defineProperty2.default)(_polyphone, "39271", "XT"), (0, _defineProperty2.default)(_polyphone, "39534", "TD"), (0, _defineProperty2.default)(_polyphone, "39552", "TD"), (0, _defineProperty2.default)(_polyphone, "39584", "PB"), (0, _defineProperty2.default)(_polyphone, "39647", "SB"), (0, _defineProperty2.default)(_polyphone, "39730", "LG"), (0, _defineProperty2.default)(_polyphone, "39748", "TPB"), (0, _defineProperty2.default)(_polyphone, "40109", "ZQ"), (0, _defineProperty2.default)(_polyphone, "40479", "ND"), (0, _defineProperty2.default)(_polyphone, "40516", "HG"), (0, _defineProperty2.default)(_polyphone, "40536", "HG"), (0, _defineProperty2.default)(_polyphone, "40583", "QJ"), (0, _defineProperty2.default)(_polyphone, "40765", "YQ"), (0, _defineProperty2.default)(_polyphone, "40784", "QJ"), (0, _defineProperty2.default)(_polyphone, "40840", "YK"), (0, _defineProperty2.default)(_polyphone, "40863", "QJG"), _polyphone)
  24047. };
  24048. //常用汉字按照汉字使用频率由低到高排序
  24049. var pinyin_dict_notone = {
  24050. "a": "阿啊呵腌嗄吖锕",
  24051. "e": "额阿俄恶鹅遏鄂厄饿峨扼娥鳄哦蛾噩愕讹锷垩婀鹗萼谔莪腭锇颚呃阏屙苊轭",
  24052. "ai": "爱埃艾碍癌哀挨矮隘蔼唉皑哎霭捱暧嫒嗳瑷嗌锿砹",
  24053. "ei": "诶",
  24054. "xi": "系西席息希习吸喜细析戏洗悉锡溪惜稀袭夕洒晰昔牺腊烯熙媳栖膝隙犀蹊硒兮熄曦禧嬉玺奚汐徙羲铣淅嘻歙熹矽蟋郗唏皙隰樨浠忾蜥檄郄翕阋鳃舾屣葸螅咭粞觋欷僖醯鼷裼穸饩舄禊诶菥蓰",
  24055. "yi": "一以已意议义益亿易医艺食依移衣异伊仪宜射遗疑毅谊亦疫役忆抑尾乙译翼蛇溢椅沂泄逸蚁夷邑怡绎彝裔姨熠贻矣屹颐倚诣胰奕翌疙弈轶蛾驿壹猗臆弋铱旖漪迤佚翊诒怿痍懿饴峄揖眙镒仡黟肄咿翳挹缢呓刈咦嶷羿钇殪荑薏蜴镱噫癔苡悒嗌瘗衤佾埸圯舣酏劓",
  24056. "an": "安案按岸暗鞍氨俺胺铵谙庵黯鹌桉埯犴揞厂广",
  24057. "han": "厂汉韩含旱寒汗涵函喊憾罕焊翰邯撼瀚憨捍酣悍鼾邗颔蚶晗菡旰顸犴焓撖",
  24058. "ang": "昂仰盎肮",
  24059. "ao": "奥澳傲熬凹鳌敖遨鏖袄坳翱嗷拗懊岙螯骜獒鏊艹媪廒聱",
  24060. "wa": "瓦挖娃洼袜蛙凹哇佤娲呙腽",
  24061. "yu": "于与育余预域予遇奥语誉玉鱼雨渔裕愈娱欲吁舆宇羽逾豫郁寓吾狱喻御浴愉禹俞邪榆愚渝尉淤虞屿峪粥驭瑜禺毓钰隅芋熨瘀迂煜昱汩於臾盂聿竽萸妪腴圄谕觎揄龉谀俣馀庾妤瘐鬻欤鹬阈嵛雩鹆圉蜮伛纡窬窳饫蓣狳肀舁蝓燠",
  24062. "niu": "牛纽扭钮拗妞忸狃",
  24063. "o": "哦噢喔",
  24064. "ba": "把八巴拔伯吧坝爸霸罢芭跋扒叭靶疤笆耙鲅粑岜灞钯捌菝魃茇",
  24065. "pa": "怕帕爬扒趴琶啪葩耙杷钯筢",
  24066. "pi": "被批副否皮坏辟啤匹披疲罢僻毗坯脾譬劈媲屁琵邳裨痞癖陂丕枇噼霹吡纰砒铍淠郫埤濞睥芘蚍圮鼙罴蜱疋貔仳庀擗甓陴",
  24067. "bi": "比必币笔毕秘避闭佛辟壁弊彼逼碧鼻臂蔽拂泌璧庇痹毙弼匕鄙陛裨贲敝蓖吡篦纰俾铋毖筚荸薜婢哔跸濞秕荜愎睥妣芘箅髀畀滗狴萆嬖襞舭",
  24068. "bai": "百白败摆伯拜柏佰掰呗擘捭稗",
  24069. "bo": "波博播勃拨薄佛伯玻搏柏泊舶剥渤卜驳簿脖膊簸菠礴箔铂亳钵帛擘饽跛钹趵檗啵鹁擗踣",
  24070. "bei": "北被备倍背杯勃贝辈悲碑臂卑悖惫蓓陂钡狈呗焙碚褙庳鞴孛鹎邶鐾",
  24071. "ban": "办版半班般板颁伴搬斑扮拌扳瓣坂阪绊钣瘢舨癍",
  24072. "pan": "判盘番潘攀盼拚畔胖叛拌蹒磐爿蟠泮袢襻丬",
  24073. "bin": "份宾频滨斌彬濒殡缤鬓槟摈膑玢镔豳髌傧",
  24074. "bang": "帮邦彭旁榜棒膀镑绑傍磅蚌谤梆浜蒡",
  24075. "pang": "旁庞乓磅螃彷滂逄耪",
  24076. "beng": "泵崩蚌蹦迸绷甭嘣甏堋",
  24077. "bao": "报保包宝暴胞薄爆炮饱抱堡剥鲍曝葆瀑豹刨褒雹孢苞煲褓趵鸨龅勹",
  24078. "bu": "不部步布补捕堡埔卜埠簿哺怖钚卟瓿逋晡醭钸",
  24079. "pu": "普暴铺浦朴堡葡谱埔扑仆蒲曝瀑溥莆圃璞濮菩蹼匍噗氆攵镨攴镤",
  24080. "mian": "面棉免绵缅勉眠冕娩腼渑湎沔黾宀眄",
  24081. "po": "破繁坡迫颇朴泊婆泼魄粕鄱珀陂叵笸泺皤钋钷",
  24082. "fan": "反范犯繁饭泛翻凡返番贩烦拚帆樊藩矾梵蕃钒幡畈蘩蹯燔",
  24083. "fu": "府服副负富复福夫妇幅付扶父符附腐赴佛浮覆辅傅伏抚赋辐腹弗肤阜袱缚甫氟斧孚敷俯拂俘咐腑孵芙涪釜脯茯馥宓绂讣呋罘麸蝠匐芾蜉跗凫滏蝮驸绋蚨砩桴赙菔呒趺苻拊阝鲋怫稃郛莩幞祓艴黻黼鳆",
  24084. "ben": "本体奔苯笨夯贲锛畚坌",
  24085. "feng": "风丰封峰奉凤锋冯逢缝蜂枫疯讽烽俸沣酆砜葑唪",
  24086. "bian": "变便边编遍辩鞭辨贬匾扁卞汴辫砭苄蝙鳊弁窆笾煸褊碥忭缏",
  24087. "pian": "便片篇偏骗翩扁骈胼蹁谝犏缏",
  24088. "zhen": "镇真针圳振震珍阵诊填侦臻贞枕桢赈祯帧甄斟缜箴疹砧榛鸩轸稹溱蓁胗椹朕畛浈",
  24089. "biao": "表标彪镖裱飚膘飙镳婊骠飑杓髟鳔灬瘭",
  24090. "piao": "票朴漂飘嫖瓢剽缥殍瞟骠嘌莩螵",
  24091. "huo": "和活或货获火伙惑霍祸豁嚯藿锪蠖钬耠镬夥灬劐攉",
  24092. "bie": "别鳖憋瘪蹩",
  24093. "min": "民敏闽闵皿泯岷悯珉抿黾缗玟愍苠鳘",
  24094. "fen": "分份纷奋粉氛芬愤粪坟汾焚酚吩忿棼玢鼢瀵偾鲼",
  24095. "bing": "并病兵冰屏饼炳秉丙摒柄槟禀枋邴冫",
  24096. "geng": "更耕颈庚耿梗埂羹哽赓绠鲠",
  24097. "fang": "方放房防访纺芳仿坊妨肪邡舫彷枋鲂匚钫",
  24098. "xian": "现先县见线限显险献鲜洗宪纤陷闲贤仙衔掀咸嫌掺羡弦腺痫娴舷馅酰铣冼涎暹籼锨苋蚬跹岘藓燹鹇氙莶霰跣猃彡祆筅",
  24099. "fou": "不否缶",
  24100. "ca": "拆擦嚓礤",
  24101. "cha": "查察差茶插叉刹茬楂岔诧碴嚓喳姹杈汊衩搽槎镲苴檫馇锸猹",
  24102. "cai": "才采财材菜彩裁蔡猜踩睬",
  24103. "can": "参残餐灿惨蚕掺璨惭粲孱骖黪",
  24104. "shen": "信深参身神什审申甚沈伸慎渗肾绅莘呻婶娠砷蜃哂椹葚吲糁渖诜谂矧胂",
  24105. "cen": "参岑涔",
  24106. "san": "三参散伞叁糁馓毵",
  24107. "cang": "藏仓苍沧舱臧伧",
  24108. "zang": "藏脏葬赃臧奘驵",
  24109. "chen": "称陈沈沉晨琛臣尘辰衬趁忱郴宸谌碜嗔抻榇伧谶龀肜",
  24110. "cao": "草操曹槽糙嘈漕螬艚屮",
  24111. "ce": "策测册侧厕栅恻",
  24112. "ze": "责则泽择侧咋啧仄箦赜笮舴昃迮帻",
  24113. "zhai": "债择齐宅寨侧摘窄斋祭翟砦瘵哜",
  24114. "dao": "到道导岛倒刀盗稻蹈悼捣叨祷焘氘纛刂帱忉",
  24115. "ceng": "层曾蹭噌",
  24116. "zha": "查扎炸诈闸渣咋乍榨楂札栅眨咤柞喳喋铡蚱吒怍砟揸痄哳齄",
  24117. "chai": "差拆柴钗豺侪虿瘥",
  24118. "ci": "次此差词辞刺瓷磁兹慈茨赐祠伺雌疵鹚糍呲粢",
  24119. "zi": "资自子字齐咨滋仔姿紫兹孜淄籽梓鲻渍姊吱秭恣甾孳訾滓锱辎趑龇赀眦缁呲笫谘嵫髭茈粢觜耔",
  24120. "cuo": "措错磋挫搓撮蹉锉厝嵯痤矬瘥脞鹾",
  24121. "chan": "产单阐崭缠掺禅颤铲蝉搀潺蟾馋忏婵孱觇廛谄谗澶骣羼躔蒇冁",
  24122. "shan": "山单善陕闪衫擅汕扇掺珊禅删膳缮赡鄯栅煽姗跚鳝嬗潸讪舢苫疝掸膻钐剡蟮芟埏彡骟",
  24123. "zhan": "展战占站崭粘湛沾瞻颤詹斩盏辗绽毡栈蘸旃谵搌",
  24124. "xin": "新心信辛欣薪馨鑫芯锌忻莘昕衅歆囟忄镡",
  24125. "lian": "联连练廉炼脸莲恋链帘怜涟敛琏镰濂楝鲢殓潋裢裣臁奁莶蠊蔹",
  24126. "chang": "场长厂常偿昌唱畅倡尝肠敞倘猖娼淌裳徜昶怅嫦菖鲳阊伥苌氅惝鬯",
  24127. "zhang": "长张章障涨掌帐胀彰丈仗漳樟账杖璋嶂仉瘴蟑獐幛鄣嫜",
  24128. "chao": "超朝潮炒钞抄巢吵剿绰嘲晁焯耖怊",
  24129. "zhao": "着照招找召朝赵兆昭肇罩钊沼嘲爪诏濯啁棹笊",
  24130. "zhou": "调州周洲舟骤轴昼宙粥皱肘咒帚胄绉纣妯啁诌繇碡籀酎荮",
  24131. "che": "车彻撤尺扯澈掣坼砗屮",
  24132. "ju": "车局据具举且居剧巨聚渠距句拒俱柜菊拘炬桔惧矩鞠驹锯踞咀瞿枸掬沮莒橘飓疽钜趄踽遽琚龃椐苣裾榘狙倨榉苴讵雎锔窭鞫犋屦醵",
  24133. "cheng": "成程城承称盛抢乘诚呈净惩撑澄秤橙骋逞瞠丞晟铛埕塍蛏柽铖酲裎枨",
  24134. "rong": "容荣融绒溶蓉熔戎榕茸冗嵘肜狨蝾",
  24135. "sheng": "生声升胜盛乘圣剩牲甸省绳笙甥嵊晟渑眚",
  24136. "deng": "等登邓灯澄凳瞪蹬噔磴嶝镫簦戥",
  24137. "zhi": "制之治质职只志至指织支值知识直致执置止植纸拓智殖秩旨址滞氏枝芝脂帜汁肢挚稚酯掷峙炙栉侄芷窒咫吱趾痔蜘郅桎雉祉郦陟痣蛭帙枳踯徵胝栀贽祗豸鸷摭轵卮轾彘觯絷跖埴夂黹忮骘膣踬",
  24138. "zheng": "政正证争整征郑丁症挣蒸睁铮筝拯峥怔诤狰徵钲",
  24139. "tang": "堂唐糖汤塘躺趟倘棠烫淌膛搪镗傥螳溏帑羰樘醣螗耥铴瑭",
  24140. "chi": "持吃池迟赤驰尺斥齿翅匙痴耻炽侈弛叱啻坻眙嗤墀哧茌豉敕笞饬踟蚩柢媸魑篪褫彳鸱螭瘛眵傺",
  24141. "shi": "是时实事市十使世施式势视识师史示石食始士失适试什泽室似诗饰殖释驶氏硕逝湿蚀狮誓拾尸匙仕柿矢峙侍噬嗜栅拭嘘屎恃轼虱耆舐莳铈谥炻豕鲥饣螫酾筮埘弑礻蓍鲺贳",
  24142. "qi": "企其起期气七器汽奇齐启旗棋妻弃揭枝歧欺骑契迄亟漆戚岂稽岐琦栖缉琪泣乞砌祁崎绮祺祈凄淇杞脐麒圻憩芪伎俟畦耆葺沏萋骐鳍綦讫蕲屺颀亓碛柒啐汔綮萁嘁蛴槭欹芑桤丌蜞",
  24143. "chuai": "揣踹啜搋膪",
  24144. "tuo": "托脱拓拖妥驼陀沱鸵驮唾椭坨佗砣跎庹柁橐乇铊沲酡鼍箨柝",
  24145. "duo": "多度夺朵躲铎隋咄堕舵垛惰哆踱跺掇剁柁缍沲裰哚隳",
  24146. "xue": "学血雪削薛穴靴谑噱鳕踅泶彐",
  24147. "chong": "重种充冲涌崇虫宠忡憧舂茺铳艟",
  24148. "chou": "筹抽绸酬愁丑臭仇畴稠瞅踌惆俦瘳雠帱",
  24149. "qiu": "求球秋丘邱仇酋裘龟囚遒鳅虬蚯泅楸湫犰逑巯艽俅蝤赇鼽糗",
  24150. "xiu": "修秀休宿袖绣臭朽锈羞嗅岫溴庥馐咻髹鸺貅",
  24151. "chu": "出处础初助除储畜触楚厨雏矗橱锄滁躇怵绌搐刍蜍黜杵蹰亍樗憷楮",
  24152. "tuan": "团揣湍疃抟彖",
  24153. "zhui": "追坠缀揣椎锥赘惴隹骓缒",
  24154. "chuan": "传川船穿串喘椽舛钏遄氚巛舡",
  24155. "zhuan": "专转传赚砖撰篆馔啭颛",
  24156. "yuan": "元员院原源远愿园援圆缘袁怨渊苑宛冤媛猿垣沅塬垸鸳辕鸢瑗圜爰芫鼋橼螈眢箢掾",
  24157. "cuan": "窜攒篡蹿撺爨汆镩",
  24158. "chuang": "创床窗闯幢疮怆",
  24159. "zhuang": "装状庄壮撞妆幢桩奘僮戆",
  24160. "chui": "吹垂锤炊椎陲槌捶棰",
  24161. "chun": "春纯醇淳唇椿蠢鹑朐莼肫蝽",
  24162. "zhun": "准屯淳谆肫窀",
  24163. "cu": "促趋趣粗簇醋卒蹴猝蹙蔟殂徂",
  24164. "dun": "吨顿盾敦蹲墩囤沌钝炖盹遁趸砘礅",
  24165. "qu": "区去取曲趋渠趣驱屈躯衢娶祛瞿岖龋觑朐蛐癯蛆苣阒诎劬蕖蘧氍黢蠼璩麴鸲磲",
  24166. "xu": "需许续须序徐休蓄畜虚吁绪叙旭邪恤墟栩絮圩婿戌胥嘘浒煦酗诩朐盱蓿溆洫顼勖糈砉醑",
  24167. "chuo": "辍绰戳淖啜龊踔辶",
  24168. "zu": "组族足祖租阻卒俎诅镞菹",
  24169. "ji": "济机其技基记计系期际及集级几给积极己纪即继击既激绩急奇吉季齐疾迹鸡剂辑籍寄挤圾冀亟寂暨脊跻肌稽忌饥祭缉棘矶汲畸姬藉瘠骥羁妓讥稷蓟悸嫉岌叽伎鲫诘楫荠戟箕霁嵇觊麂畿玑笈犄芨唧屐髻戢佶偈笄跽蒺乩咭赍嵴虮掎齑殛鲚剞洎丌墼蕺彐芰哜",
  24170. "cong": "从丛匆聪葱囱琮淙枞骢苁璁",
  24171. "zong": "总从综宗纵踪棕粽鬃偬枞腙",
  24172. "cou": "凑辏腠楱",
  24173. "cui": "衰催崔脆翠萃粹摧璀瘁悴淬啐隹毳榱",
  24174. "wei": "为位委未维卫围违威伟危味微唯谓伪慰尾魏韦胃畏帷喂巍萎蔚纬潍尉渭惟薇苇炜圩娓诿玮崴桅偎逶倭猥囗葳隗痿猬涠嵬韪煨艉隹帏闱洧沩隈鲔軎",
  24175. "cun": "村存寸忖皴",
  24176. "zuo": "作做座左坐昨佐琢撮祚柞唑嘬酢怍笮阼胙",
  24177. "zuan": "钻纂攥缵躜",
  24178. "da": "大达打答搭沓瘩惮嗒哒耷鞑靼褡笪怛妲",
  24179. "dai": "大代带待贷毒戴袋歹呆隶逮岱傣棣怠殆黛甙埭诒绐玳呔迨",
  24180. "tai": "大台太态泰抬胎汰钛苔薹肽跆邰鲐酞骀炱",
  24181. "ta": "他它她拓塔踏塌榻沓漯獭嗒挞蹋趿遢铊鳎溻闼",
  24182. "dan": "但单石担丹胆旦弹蛋淡诞氮郸耽殚惮儋眈疸澹掸膻啖箪聃萏瘅赕",
  24183. "lu": "路六陆录绿露鲁卢炉鹿禄赂芦庐碌麓颅泸卤潞鹭辘虏璐漉噜戮鲈掳橹轳逯渌蓼撸鸬栌氇胪镥簏舻辂垆",
  24184. "tan": "谈探坦摊弹炭坛滩贪叹谭潭碳毯瘫檀痰袒坍覃忐昙郯澹钽锬",
  24185. "ren": "人任认仁忍韧刃纫饪妊荏稔壬仞轫亻衽",
  24186. "jie": "家结解价界接节她届介阶街借杰洁截姐揭捷劫戒皆竭桔诫楷秸睫藉拮芥诘碣嗟颉蚧孑婕疖桀讦疥偈羯袷哜喈卩鲒骱",
  24187. "yan": "研严验演言眼烟沿延盐炎燕岩宴艳颜殷彦掩淹阎衍铅雁咽厌焰堰砚唁焉晏檐蜒奄俨腌妍谚兖筵焱偃闫嫣鄢湮赝胭琰滟阉魇酽郾恹崦芫剡鼹菸餍埏谳讠厣罨",
  24188. "dang": "当党档荡挡宕砀铛裆凼菪谠",
  24189. "tao": "套讨跳陶涛逃桃萄淘掏滔韬叨洮啕绦饕鼗",
  24190. "tiao": "条调挑跳迢眺苕窕笤佻啁粜髫铫祧龆蜩鲦",
  24191. "te": "特忑忒铽慝",
  24192. "de": "的地得德底锝",
  24193. "dei": "得",
  24194. "di": "的地第提低底抵弟迪递帝敌堤蒂缔滴涤翟娣笛棣荻谛狄邸嘀砥坻诋嫡镝碲骶氐柢籴羝睇觌",
  24195. "ti": "体提题弟替梯踢惕剔蹄棣啼屉剃涕锑倜悌逖嚏荑醍绨鹈缇裼",
  24196. "tui": "推退弟腿褪颓蜕忒煺",
  24197. "you": "有由又优游油友右邮尤忧幼犹诱悠幽佑釉柚铀鱿囿酉攸黝莠猷蝣疣呦蚴莸莜铕宥繇卣牖鼬尢蚰侑",
  24198. "dian": "电点店典奠甸碘淀殿垫颠滇癫巅惦掂癜玷佃踮靛钿簟坫阽",
  24199. "tian": "天田添填甜甸恬腆佃舔钿阗忝殄畋栝掭",
  24200. "zhu": "主术住注助属逐宁著筑驻朱珠祝猪诸柱竹铸株瞩嘱贮煮烛苎褚蛛拄铢洙竺蛀渚伫杼侏澍诛茱箸炷躅翥潴邾槠舳橥丶瘃麈疰",
  24201. "nian": "年念酿辗碾廿捻撵拈蔫鲶埝鲇辇黏",
  24202. "diao": "调掉雕吊钓刁貂凋碉鲷叼铫铞",
  24203. "yao": "要么约药邀摇耀腰遥姚窑瑶咬尧钥谣肴夭侥吆疟妖幺杳舀窕窈曜鹞爻繇徭轺铫鳐崾珧",
  24204. "die": "跌叠蝶迭碟爹谍牒耋佚喋堞瓞鲽垤揲蹀",
  24205. "she": "设社摄涉射折舍蛇拾舌奢慑赦赊佘麝歙畲厍猞揲滠",
  24206. "ye": "业也夜叶射野液冶喝页爷耶邪咽椰烨掖拽曳晔谒腋噎揶靥邺铘揲",
  24207. "xie": "些解协写血叶谢械鞋胁斜携懈契卸谐泄蟹邪歇泻屑挟燮榭蝎撷偕亵楔颉缬邂鲑瀣勰榍薤绁渫廨獬躞",
  24208. "zhe": "这者着著浙折哲蔗遮辙辄柘锗褶蜇蛰鹧谪赭摺乇磔螫",
  24209. "ding": "定订顶丁鼎盯钉锭叮仃铤町酊啶碇腚疔玎耵",
  24210. "diu": "丢铥",
  24211. "ting": "听庭停厅廷挺亭艇婷汀铤烃霆町蜓葶梃莛",
  24212. "dong": "动东董冬洞懂冻栋侗咚峒氡恫胴硐垌鸫岽胨",
  24213. "tong": "同通统童痛铜桶桐筒彤侗佟潼捅酮砼瞳恸峒仝嗵僮垌茼",
  24214. "zhong": "中重种众终钟忠仲衷肿踵冢盅蚣忪锺舯螽夂",
  24215. "dou": "都斗读豆抖兜陡逗窦渎蚪痘蔸钭篼",
  24216. "du": "度都独督读毒渡杜堵赌睹肚镀渎笃竺嘟犊妒牍蠹椟黩芏髑",
  24217. "duan": "断段短端锻缎煅椴簖",
  24218. "dui": "对队追敦兑堆碓镦怼憝",
  24219. "rui": "瑞兑锐睿芮蕊蕤蚋枘",
  24220. "yue": "月说约越乐跃兑阅岳粤悦曰钥栎钺樾瀹龠哕刖",
  24221. "tun": "吞屯囤褪豚臀饨暾氽",
  24222. "hui": "会回挥汇惠辉恢徽绘毁慧灰贿卉悔秽溃荟晖彗讳诲珲堕诙蕙晦睢麾烩茴喙桧蛔洄浍虺恚蟪咴隳缋哕",
  24223. "wu": "务物无五武午吴舞伍污乌误亡恶屋晤悟吾雾芜梧勿巫侮坞毋诬呜钨邬捂鹜兀婺妩於戊鹉浯蜈唔骛仵焐芴鋈庑鼯牾怃圬忤痦迕杌寤阢",
  24224. "ya": "亚压雅牙押鸭呀轧涯崖邪芽哑讶鸦娅衙丫蚜碣垭伢氩桠琊揠吖睚痖疋迓岈砑",
  24225. "he": "和合河何核盖贺喝赫荷盒鹤吓呵苛禾菏壑褐涸阂阖劾诃颌嗬貉曷翮纥盍",
  24226. "wo": "我握窝沃卧挝涡斡渥幄蜗喔倭莴龌肟硪",
  24227. "en": "恩摁蒽",
  24228. "n": "嗯唔",
  24229. "er": "而二尔儿耳迩饵洱贰铒珥佴鸸鲕",
  24230. "fa": "发法罚乏伐阀筏砝垡珐",
  24231. "quan": "全权券泉圈拳劝犬铨痊诠荃醛蜷颧绻犭筌鬈悛辁畎",
  24232. "fei": "费非飞肥废菲肺啡沸匪斐蜚妃诽扉翡霏吠绯腓痱芾淝悱狒榧砩鲱篚镄",
  24233. "pei": "配培坏赔佩陪沛裴胚妃霈淠旆帔呸醅辔锫",
  24234. "ping": "平评凭瓶冯屏萍苹乒坪枰娉俜鲆",
  24235. "fo": "佛",
  24236. "hu": "和护许户核湖互乎呼胡戏忽虎沪糊壶葫狐蝴弧瑚浒鹄琥扈唬滹惚祜囫斛笏芴醐猢怙唿戽槲觳煳鹕冱瓠虍岵鹱烀轷",
  24237. "ga": "夹咖嘎尬噶旮伽尕钆尜",
  24238. "ge": "个合各革格歌哥盖隔割阁戈葛鸽搁胳舸疙铬骼蛤咯圪镉颌仡硌嗝鬲膈纥袼搿塥哿虼",
  24239. "ha": "哈蛤铪",
  24240. "xia": "下夏峡厦辖霞夹虾狭吓侠暇遐瞎匣瑕唬呷黠硖罅狎瘕柙",
  24241. "gai": "改该盖概溉钙丐芥赅垓陔戤",
  24242. "hai": "海还害孩亥咳骸骇氦嗨胲醢",
  24243. "gan": "干感赶敢甘肝杆赣乾柑尴竿秆橄矸淦苷擀酐绀泔坩旰疳澉",
  24244. "gang": "港钢刚岗纲冈杠缸扛肛罡戆筻",
  24245. "jiang": "将强江港奖讲降疆蒋姜浆匠酱僵桨绛缰犟豇礓洚茳糨耩",
  24246. "hang": "行航杭巷夯吭桁沆绗颃",
  24247. "gong": "工公共供功红贡攻宫巩龚恭拱躬弓汞蚣珙觥肱廾",
  24248. "hong": "红宏洪轰虹鸿弘哄烘泓訇蕻闳讧荭黉薨",
  24249. "guang": "广光逛潢犷胱咣桄",
  24250. "qiong": "穷琼穹邛茕筇跫蛩銎",
  24251. "gao": "高告搞稿膏糕镐皋羔锆杲郜睾诰藁篙缟槁槔",
  24252. "hao": "好号毫豪耗浩郝皓昊皋蒿壕灏嚎濠蚝貉颢嗥薅嚆",
  24253. "li": "理力利立里李历例离励礼丽黎璃厉厘粒莉梨隶栗荔沥犁漓哩狸藜罹篱鲤砺吏澧俐骊溧砾莅锂笠蠡蛎痢雳俪傈醴栎郦俚枥喱逦娌鹂戾砬唳坜疠蜊黧猁鬲粝蓠呖跞疬缡鲡鳢嫠詈悝苈篥轹",
  24254. "jia": "家加价假佳架甲嘉贾驾嫁夹稼钾挟拮迦伽颊浃枷戛荚痂颉镓笳珈岬胛袈郏葭袷瘕铗跏蛱恝哿",
  24255. "luo": "落罗络洛逻螺锣骆萝裸漯烙摞骡咯箩珞捋荦硌雒椤镙跞瘰泺脶猡倮蠃",
  24256. "ke": "可科克客刻课颗渴壳柯棵呵坷恪苛咳磕珂稞瞌溘轲窠嗑疴蝌岢铪颏髁蚵缂氪骒钶锞",
  24257. "qia": "卡恰洽掐髂袷咭葜",
  24258. "gei": "给",
  24259. "gen": "根跟亘艮哏茛",
  24260. "hen": "很狠恨痕哏",
  24261. "gou": "构购够句沟狗钩拘勾苟垢枸篝佝媾诟岣彀缑笱鞲觏遘",
  24262. "kou": "口扣寇叩抠佝蔻芤眍筘",
  24263. "gu": "股古顾故固鼓骨估谷贾姑孤雇辜菇沽咕呱锢钴箍汩梏痼崮轱鸪牯蛊诂毂鹘菰罟嘏臌觚瞽蛄酤牿鲴",
  24264. "pai": "牌排派拍迫徘湃俳哌蒎",
  24265. "gua": "括挂瓜刮寡卦呱褂剐胍诖鸹栝呙",
  24266. "tou": "投头透偷愉骰亠",
  24267. "guai": "怪拐乖",
  24268. "kuai": "会快块筷脍蒯侩浍郐蒉狯哙",
  24269. "guan": "关管观馆官贯冠惯灌罐莞纶棺斡矜倌鹳鳏盥掼涫",
  24270. "wan": "万完晚湾玩碗顽挽弯蔓丸莞皖宛婉腕蜿惋烷琬畹豌剜纨绾脘菀芄箢",
  24271. "ne": "呢哪呐讷疒",
  24272. "gui": "规贵归轨桂柜圭鬼硅瑰跪龟匮闺诡癸鳜桧皈鲑刽晷傀眭妫炅庋簋刿宄匦",
  24273. "jun": "军均俊君峻菌竣钧骏龟浚隽郡筠皲麇捃",
  24274. "jiong": "窘炯迥炅冂扃",
  24275. "jue": "决绝角觉掘崛诀獗抉爵嚼倔厥蕨攫珏矍蹶谲镢鳜噱桷噘撅橛孓觖劂爝",
  24276. "gun": "滚棍辊衮磙鲧绲丨",
  24277. "hun": "婚混魂浑昏棍珲荤馄诨溷阍",
  24278. "guo": "国过果郭锅裹帼涡椁囗蝈虢聒埚掴猓崞蜾呙馘",
  24279. "hei": "黑嘿嗨",
  24280. "kan": "看刊勘堪坎砍侃嵌槛瞰阚龛戡凵莰",
  24281. "heng": "衡横恒亨哼珩桁蘅",
  24282. "mo": "万没么模末冒莫摩墨默磨摸漠脉膜魔沫陌抹寞蘑摹蓦馍茉嘿谟秣蟆貉嫫镆殁耱嬷麽瘼貊貘",
  24283. "peng": "鹏朋彭膨蓬碰苹棚捧亨烹篷澎抨硼怦砰嘭蟛堋",
  24284. "hou": "后候厚侯猴喉吼逅篌糇骺後鲎瘊堠",
  24285. "hua": "化华划话花画滑哗豁骅桦猾铧砉",
  24286. "huai": "怀坏淮徊槐踝",
  24287. "huan": "还环换欢患缓唤焕幻痪桓寰涣宦垸洹浣豢奂郇圜獾鲩鬟萑逭漶锾缳擐",
  24288. "xun": "讯训迅孙寻询循旬巡汛勋逊熏徇浚殉驯鲟薰荀浔洵峋埙巽郇醺恂荨窨蕈曛獯",
  24289. "huang": "黄荒煌皇凰慌晃潢谎惶簧璜恍幌湟蝗磺隍徨遑肓篁鳇蟥癀",
  24290. "nai": "能乃奶耐奈鼐萘氖柰佴艿",
  24291. "luan": "乱卵滦峦鸾栾銮挛孪脔娈",
  24292. "qie": "切且契窃茄砌锲怯伽惬妾趄挈郄箧慊",
  24293. "jian": "建间件见坚检健监减简艰践兼鉴键渐柬剑尖肩舰荐箭浅剪俭碱茧奸歼拣捡煎贱溅槛涧堑笺谏饯锏缄睑謇蹇腱菅翦戬毽笕犍硷鞯牮枧湔鲣囝裥踺搛缣鹣蒹谫僭戋趼楗",
  24294. "nan": "南难男楠喃囡赧腩囝蝻",
  24295. "qian": "前千钱签潜迁欠纤牵浅遣谦乾铅歉黔谴嵌倩钳茜虔堑钎骞阡掮钤扦芊犍荨仟芡悭缱佥愆褰凵肷岍搴箝慊椠",
  24296. "qiang": "强抢疆墙枪腔锵呛羌蔷襁羟跄樯戕嫱戗炝镪锖蜣",
  24297. "xiang": "向项相想乡象响香降像享箱羊祥湘详橡巷翔襄厢镶飨饷缃骧芗庠鲞葙蟓",
  24298. "jiao": "教交较校角觉叫脚缴胶轿郊焦骄浇椒礁佼蕉娇矫搅绞酵剿嚼饺窖跤蛟侥狡姣皎茭峤铰醮鲛湫徼鹪僬噍艽挢敫",
  24299. "zhuo": "着著缴桌卓捉琢灼浊酌拙茁涿镯淖啄濯焯倬擢斫棹诼浞禚",
  24300. "qiao": "桥乔侨巧悄敲俏壳雀瞧翘窍峭锹撬荞跷樵憔鞘橇峤诮谯愀鞒硗劁缲",
  24301. "xiao": "小效销消校晓笑肖削孝萧俏潇硝宵啸嚣霄淆哮筱逍姣箫骁枭哓绡蛸崤枵魈",
  24302. "si": "司四思斯食私死似丝饲寺肆撕泗伺嗣祀厮驷嘶锶俟巳蛳咝耜笥纟糸鸶缌澌姒汜厶兕",
  24303. "kai": "开凯慨岂楷恺揩锴铠忾垲剀锎蒈",
  24304. "jin": "进金今近仅紧尽津斤禁锦劲晋谨筋巾浸襟靳瑾烬缙钅矜觐堇馑荩噤廑妗槿赆衿卺",
  24305. "qin": "亲勤侵秦钦琴禽芹沁寝擒覃噙矜嗪揿溱芩衾廑锓吣檎螓",
  24306. "jing": "经京精境竞景警竟井惊径静劲敬净镜睛晶颈荆兢靖泾憬鲸茎腈菁胫阱旌粳靓痉箐儆迳婧肼刭弪獍",
  24307. "ying": "应营影英景迎映硬盈赢颖婴鹰荧莹樱瑛蝇萦莺颍膺缨瀛楹罂荥萤鹦滢蓥郢茔嘤璎嬴瘿媵撄潆",
  24308. "jiu": "就究九酒久救旧纠舅灸疚揪咎韭玖臼柩赳鸠鹫厩啾阄桕僦鬏",
  24309. "zui": "最罪嘴醉咀蕞觜",
  24310. "juan": "卷捐圈眷娟倦绢隽镌涓鹃鄄蠲狷锩桊",
  24311. "suan": "算酸蒜狻",
  24312. "yun": "员运云允孕蕴韵酝耘晕匀芸陨纭郧筠恽韫郓氲殒愠昀菀狁",
  24313. "qun": "群裙逡麇",
  24314. "ka": "卡喀咖咔咯佧胩",
  24315. "kang": "康抗扛慷炕亢糠伉钪闶",
  24316. "keng": "坑铿吭",
  24317. "kao": "考靠烤拷铐栲尻犒",
  24318. "ken": "肯垦恳啃龈裉",
  24319. "yin": "因引银印音饮阴隐姻殷淫尹荫吟瘾寅茵圻垠鄞湮蚓氤胤龈窨喑铟洇狺夤廴吲霪茚堙",
  24320. "kong": "空控孔恐倥崆箜",
  24321. "ku": "苦库哭酷裤枯窟挎骷堀绔刳喾",
  24322. "kua": "跨夸垮挎胯侉",
  24323. "kui": "亏奎愧魁馈溃匮葵窥盔逵睽馗聩喟夔篑岿喹揆隗傀暌跬蒉愦悝蝰",
  24324. "kuan": "款宽髋",
  24325. "kuang": "况矿框狂旷眶匡筐邝圹哐贶夼诳诓纩",
  24326. "que": "确却缺雀鹊阙瘸榷炔阕悫",
  24327. "kun": "困昆坤捆琨锟鲲醌髡悃阃",
  24328. "kuo": "扩括阔廓蛞",
  24329. "la": "拉落垃腊啦辣蜡喇剌旯砬邋瘌",
  24330. "lai": "来莱赖睐徕籁涞赉濑癞崃疠铼",
  24331. "lan": "兰览蓝篮栏岚烂滥缆揽澜拦懒榄斓婪阑褴罱啉谰镧漤",
  24332. "lin": "林临邻赁琳磷淋麟霖鳞凛拎遴蔺吝粼嶙躏廪檩啉辚膦瞵懔",
  24333. "lang": "浪朗郎廊狼琅榔螂阆锒莨啷蒗稂",
  24334. "liang": "量两粮良辆亮梁凉谅粱晾靓踉莨椋魉墚",
  24335. "lao": "老劳落络牢捞涝烙姥佬崂唠酪潦痨醪铑铹栳耢",
  24336. "mu": "目模木亩幕母牧莫穆姆墓慕牟牡募睦缪沐暮拇姥钼苜仫毪坶",
  24337. "le": "了乐勒肋叻鳓嘞仂泐",
  24338. "lei": "类累雷勒泪蕾垒磊擂镭肋羸耒儡嫘缧酹嘞诔檑",
  24339. "sui": "随岁虽碎尿隧遂髓穗绥隋邃睢祟濉燧谇眭荽",
  24340. "lie": "列烈劣裂猎冽咧趔洌鬣埒捩躐",
  24341. "leng": "冷愣棱楞塄",
  24342. "ling": "领令另零灵龄陵岭凌玲铃菱棱伶羚苓聆翎泠瓴囹绫呤棂蛉酃鲮柃",
  24343. "lia": "俩",
  24344. "liao": "了料疗辽廖聊寥缪僚燎缭撂撩嘹潦镣寮蓼獠钌尥鹩",
  24345. "liu": "流刘六留柳瘤硫溜碌浏榴琉馏遛鎏骝绺镏旒熘鹨锍",
  24346. "lun": "论轮伦仑纶沦抡囵",
  24347. "lv": "率律旅绿虑履吕铝屡氯缕滤侣驴榈闾偻褛捋膂稆",
  24348. "lou": "楼露漏陋娄搂篓喽镂偻瘘髅耧蝼嵝蒌",
  24349. "mao": "贸毛矛冒貌茂茅帽猫髦锚懋袤牦卯铆耄峁瑁蟊茆蝥旄泖昴瞀",
  24350. "long": "龙隆弄垄笼拢聋陇胧珑窿茏咙砻垅泷栊癃",
  24351. "nong": "农浓弄脓侬哝",
  24352. "shuang": "双爽霜孀泷",
  24353. "shu": "术书数属树输束述署朱熟殊蔬舒疏鼠淑叔暑枢墅俞曙抒竖蜀薯梳戍恕孰沭赎庶漱塾倏澍纾姝菽黍腧秫毹殳疋摅",
  24354. "shuai": "率衰帅摔甩蟀",
  24355. "lve": "略掠锊",
  24356. "ma": "么马吗摩麻码妈玛嘛骂抹蚂唛蟆犸杩",
  24357. "me": "么麽",
  24358. "mai": "买卖麦迈脉埋霾荬劢",
  24359. "man": "满慢曼漫埋蔓瞒蛮鳗馒幔谩螨熳缦镘颟墁鞔",
  24360. "mi": "米密秘迷弥蜜谜觅靡泌眯麋猕谧咪糜宓汨醚嘧弭脒冖幂祢縻蘼芈糸敉",
  24361. "men": "们门闷瞒汶扪焖懑鞔钔",
  24362. "mang": "忙盲茫芒氓莽蟒邙硭漭",
  24363. "meng": "蒙盟梦猛孟萌氓朦锰檬勐懵蟒蜢虻黾蠓艨甍艋瞢礞",
  24364. "miao": "苗秒妙描庙瞄缪渺淼藐缈邈鹋杪眇喵",
  24365. "mou": "某谋牟缪眸哞鍪蛑侔厶",
  24366. "miu": "缪谬",
  24367. "mei": "美没每煤梅媒枚妹眉魅霉昧媚玫酶镁湄寐莓袂楣糜嵋镅浼猸鹛",
  24368. "wen": "文问闻稳温纹吻蚊雯紊瘟汶韫刎璺玟阌",
  24369. "mie": "灭蔑篾乜咩蠛",
  24370. "ming": "明名命鸣铭冥茗溟酩瞑螟暝",
  24371. "na": "内南那纳拿哪娜钠呐捺衲镎肭",
  24372. "nei": "内那哪馁",
  24373. "nuo": "难诺挪娜糯懦傩喏搦锘",
  24374. "ruo": "若弱偌箬",
  24375. "nang": "囊馕囔曩攮",
  24376. "nao": "脑闹恼挠瑙淖孬垴铙桡呶硇猱蛲",
  24377. "ni": "你尼呢泥疑拟逆倪妮腻匿霓溺旎昵坭铌鲵伲怩睨猊",
  24378. "nen": "嫩恁",
  24379. "neng": "能",
  24380. "nin": "您恁",
  24381. "niao": "鸟尿溺袅脲茑嬲",
  24382. "nie": "摄聂捏涅镍孽捻蘖啮蹑嗫臬镊颞乜陧",
  24383. "niang": "娘酿",
  24384. "ning": "宁凝拧泞柠咛狞佞聍甯",
  24385. "nu": "努怒奴弩驽帑孥胬",
  24386. "nv": "女钕衄恧",
  24387. "ru": "入如女乳儒辱汝茹褥孺濡蠕嚅缛溽铷洳薷襦颥蓐",
  24388. "nuan": "暖",
  24389. "nve": "虐疟",
  24390. "re": "热若惹喏",
  24391. "ou": "区欧偶殴呕禺藕讴鸥瓯沤耦怄",
  24392. "pao": "跑炮泡抛刨袍咆疱庖狍匏脬",
  24393. "pou": "剖掊裒",
  24394. "pen": "喷盆湓",
  24395. "pie": "瞥撇苤氕丿",
  24396. "pin": "品贫聘频拼拚颦姘嫔榀牝",
  24397. "se": "色塞瑟涩啬穑铯槭",
  24398. "qing": "情青清请亲轻庆倾顷卿晴氢擎氰罄磬蜻箐鲭綮苘黥圊檠謦",
  24399. "zan": "赞暂攒堑昝簪糌瓒錾趱拶",
  24400. "shao": "少绍召烧稍邵哨韶捎勺梢鞘芍苕劭艄筲杓潲",
  24401. "sao": "扫骚嫂梢缫搔瘙臊埽缲鳋",
  24402. "sha": "沙厦杀纱砂啥莎刹杉傻煞鲨霎嗄痧裟挲铩唼歃",
  24403. "xuan": "县选宣券旋悬轩喧玄绚渲璇炫萱癣漩眩暄煊铉楦泫谖痃碹揎镟儇",
  24404. "ran": "然染燃冉苒髯蚺",
  24405. "rang": "让壤攘嚷瓤穰禳",
  24406. "rao": "绕扰饶娆桡荛",
  24407. "reng": "仍扔",
  24408. "ri": "日",
  24409. "rou": "肉柔揉糅鞣蹂",
  24410. "ruan": "软阮朊",
  24411. "run": "润闰",
  24412. "sa": "萨洒撒飒卅仨脎",
  24413. "suo": "所些索缩锁莎梭琐嗦唆唢娑蓑羧挲桫嗍睃",
  24414. "sai": "思赛塞腮噻鳃",
  24415. "shui": "说水税谁睡氵",
  24416. "sang": "桑丧嗓搡颡磉",
  24417. "sen": "森",
  24418. "seng": "僧",
  24419. "shai": "筛晒",
  24420. "shang": "上商尚伤赏汤裳墒晌垧觞殇熵绱",
  24421. "xing": "行省星腥猩惺兴刑型形邢饧醒幸杏性姓陉荇荥擤悻硎",
  24422. "shou": "收手受首售授守寿瘦兽狩绶艏扌",
  24423. "shuo": "说数硕烁朔铄妁槊蒴搠",
  24424. "su": "速素苏诉缩塑肃俗宿粟溯酥夙愫簌稣僳谡涑蔌嗉觫",
  24425. "shua": "刷耍唰",
  24426. "shuan": "栓拴涮闩",
  24427. "shun": "顺瞬舜吮",
  24428. "song": "送松宋讼颂耸诵嵩淞怂悚崧凇忪竦菘",
  24429. "sou": "艘搜擞嗽嗖叟馊薮飕嗾溲锼螋瞍",
  24430. "sun": "损孙笋荪榫隼狲飧",
  24431. "teng": "腾疼藤滕誊",
  24432. "tie": "铁贴帖餮萜",
  24433. "tu": "土突图途徒涂吐屠兔秃凸荼钍菟堍酴",
  24434. "wai": "外歪崴",
  24435. "wang": "王望往网忘亡旺汪枉妄惘罔辋魍",
  24436. "weng": "翁嗡瓮蓊蕹",
  24437. "zhua": "抓挝爪",
  24438. "yang": "样养央阳洋扬杨羊详氧仰秧痒漾疡泱殃恙鸯徉佯怏炀烊鞅蛘",
  24439. "xiong": "雄兄熊胸凶匈汹芎",
  24440. "yo": "哟唷",
  24441. "yong": "用永拥勇涌泳庸俑踊佣咏雍甬镛臃邕蛹恿慵壅痈鳙墉饔喁",
  24442. "za": "杂扎咱砸咋匝咂拶",
  24443. "zai": "在再灾载栽仔宰哉崽甾",
  24444. "zao": "造早遭枣噪灶燥糟凿躁藻皂澡蚤唣",
  24445. "zei": "贼",
  24446. "zen": "怎谮",
  24447. "zeng": "增曾综赠憎锃甑罾缯",
  24448. "zhei": "这",
  24449. "zou": "走邹奏揍诹驺陬楱鄹鲰",
  24450. "zhuai": "转拽",
  24451. "zun": "尊遵鳟樽撙",
  24452. "dia": "嗲",
  24453. "nou": "耨"
  24454. };
  24455. exports.pinyin_dict_notone = pinyin_dict_notone;
  24456. var pinyinUtil = {
  24457. //加载字典
  24458. parseDict: function parseDict() {
  24459. dict.firstletter = pinyin_dict_firstletter;
  24460. dict.notone = {};
  24461. dict.py2hz = pinyin_dict_notone;
  24462. for (var i in pinyin_dict_notone) {
  24463. var temp = pinyin_dict_notone[i];
  24464. for (var j = 0, len = temp.length; j < len; j++) {
  24465. dict.notone[temp[j]] = i;
  24466. }
  24467. }
  24468. },
  24469. //根据汉字获取拼音,如果不是汉字直接返回原字符
  24470. getPinyin: function getPinyin(chinese, splitter, withtone, polyphone) {
  24471. if (!chinese || /^ +$/g.test(chinese)) return '';
  24472. splitter = splitter == undefined ? '' : splitter;
  24473. withtone = withtone == undefined ? false : withtone;
  24474. polyphone = polyphone == undefined ? false : polyphone;
  24475. var result = [];
  24476. if (dict.withtone) {
  24477. // 优先使用带声调的字典文件
  24478. for (var i = 0, len = chinese.length; i < len; i++) {
  24479. var pinyin = dict.withtone[chinese[i]];
  24480. if (pinyin) {
  24481. if (!polyphone) pinyin = pinyin.replace(/ .*$/g, ''); // 如果不需要多音字
  24482. if (!withtone) pinyin = this.removeTone(pinyin); // 如果不需要声调
  24483. }
  24484. result.push(pinyin || chinese[i]);
  24485. }
  24486. } else if (dict.notone) {
  24487. // 使用没有声调的字典文件
  24488. if (withtone) console.warn('pinyin_dict_notone 字典文件不支持声调!');
  24489. if (polyphone) console.warn('pinyin_dict_notone 字典文件不支持多音字!');
  24490. for (var i = 0, len = chinese.length; i < len; i++) {
  24491. var temp = chinese.charAt(i);
  24492. if (dict.notone[temp]) dict.notone[temp] = dict.notone[temp].substring(0, 1).toUpperCase() + dict.notone[temp].substring(1);
  24493. result.push(dict.notone[temp] || temp);
  24494. }
  24495. } else {
  24496. throw '抱歉,未找到合适的拼音字典文件!';
  24497. }
  24498. if (!polyphone) return result.join(splitter);else {
  24499. if (window.pinyin_dict_polyphone) return parsePolyphone(chinese, result, splitter, withtone);else return handlePolyphone(result, ' ', splitter);
  24500. }
  24501. },
  24502. //获取汉字的拼音首字母
  24503. getFirstLetter: function getFirstLetter(str, polyphone) {
  24504. polyphone = polyphone == undefined ? false : polyphone;
  24505. if (!str || /^ +$/g.test(str)) return '';
  24506. if (dict.firstletter)
  24507. // 使用首字母字典文件
  24508. {
  24509. var result = [];
  24510. for (var i = 0; i < str.length; i++) {
  24511. var unicode = str.charCodeAt(i);
  24512. var ch = str.charAt(i);
  24513. if (unicode >= 19968 && unicode <= 40869) {
  24514. ch = dict.firstletter.all.charAt(unicode - 19968);
  24515. if (polyphone) ch = dict.firstletter.polyphone[unicode] || ch;
  24516. }
  24517. result.push(ch);
  24518. }
  24519. if (!polyphone) return result.join(''); // 如果不用管多音字,直接将数组拼接成字符串
  24520. else return handlePolyphone(result, '', ''); // 处理多音字,此时的result类似于:['D', 'ZC', 'F']
  24521. } else {
  24522. var py = this.getPinyin(str, ' ', false, polyphone);
  24523. py = py instanceof Array ? py : [py];
  24524. var result = [];
  24525. for (var i = 0; i < py.length; i++) {
  24526. result.push(py[i].replace(/(^| )(\w)\w*/g, function (m, $1, $2) {
  24527. return $2.toUpperCase();
  24528. }));
  24529. }
  24530. if (!polyphone) return result[0];else return simpleUnique(result);
  24531. }
  24532. },
  24533. //拼音转汉字,只支持单个汉字,返回所有匹配的汉字组合
  24534. getHanzi: function getHanzi(pinyin) {
  24535. if (!dict.py2hz) {
  24536. throw '抱歉,未找到合适的拼音字典文件!';
  24537. }
  24538. return dict.py2hz[pinyin] || '';
  24539. },
  24540. //去除拼音中的声调,比如将 xiǎo míng tóng xué 转换成 xiao ming tong xue
  24541. removeTone: function removeTone(pinyin) {
  24542. var toneMap = {
  24543. "ā": "a1",
  24544. "á": "a2",
  24545. "ǎ": "a3",
  24546. "à": "a4",
  24547. "ō": "o1",
  24548. "ó": "o2",
  24549. "ǒ": "o3",
  24550. "ò": "o4",
  24551. "ē": "e1",
  24552. "é": "e2",
  24553. "ě": "e3",
  24554. "è": "e4",
  24555. "ī": "i1",
  24556. "í": "i2",
  24557. "ǐ": "i3",
  24558. "ì": "i4",
  24559. "ū": "u1",
  24560. "ú": "u2",
  24561. "ǔ": "u3",
  24562. "ù": "u4",
  24563. "ü": "v0",
  24564. "ǖ": "v1",
  24565. "ǘ": "v2",
  24566. "ǚ": "v3",
  24567. "ǜ": "v4",
  24568. "ń": "n2",
  24569. "ň": "n3",
  24570. "": "m2"
  24571. };
  24572. return pinyin.replace(/[āáǎàōóǒòēéěèīíǐìūúǔùüǖǘǚǜńň]/g, function (m) {
  24573. return toneMap[m][0];
  24574. });
  24575. }
  24576. };
  24577. //处理多音字, 将类似['D', 'ZC', 'F'] 转换成['DZF', 'DCF']
  24578. exports.pinyinUtil = pinyinUtil;
  24579. function handlePolyphone(array, splitter, joinChar) {
  24580. splitter = splitter || '';
  24581. var result = [''],
  24582. temp = [];
  24583. for (var i = 0; i < array.length; i++) {
  24584. temp = [];
  24585. var t = array[i].split(splitter);
  24586. for (var j = 0; j < t.length; j++) {
  24587. for (var k = 0; k < result.length; k++) {
  24588. temp.push(result[k] + (result[k] ? joinChar : '') + t[j]);
  24589. }
  24590. }
  24591. result = temp;
  24592. }
  24593. return simpleUnique(result);
  24594. }
  24595. //根据词库找出多音字正确的读音
  24596. function parsePolyphone(chinese, result, splitter, withtone) {
  24597. var poly = window.pinyin_dict_polyphone;
  24598. var max = 7; // 最多只考虑7个汉字的多音字词,虽然词库里面有10个字的,但是数量非常少,为了整体效率暂时忽略之
  24599. var temp = poly[chinese];
  24600. if (temp)
  24601. // 如果直接找到了结果
  24602. {
  24603. temp = temp.split(' ');
  24604. for (var i = 0; i < temp.length; i++) {
  24605. result[i] = temp[i] || result[i];
  24606. if (!withtone) result[i] = pinyinUtil.removeTone(result[i]);
  24607. }
  24608. return result.join(splitter);
  24609. }
  24610. for (var i = 0; i < chinese.length; i++) {
  24611. temp = '';
  24612. for (var j = 0; j < max && i + j < chinese.length; j++) {
  24613. if (!/^[\u2E80-\u9FFF]+$/.test(chinese[i + j])) break; // 如果碰到非汉字直接停止本次查找
  24614. temp += chinese[i + j];
  24615. var res = poly[temp];
  24616. if (res)
  24617. // 如果找到了多音字词语
  24618. {
  24619. res = res.split(' ');
  24620. for (var k = 0; k <= j; k++) {
  24621. if (res[k]) result[i + k] = withtone ? res[k] : pinyinUtil.removeTone(res[k]);
  24622. }
  24623. break;
  24624. }
  24625. }
  24626. }
  24627. // 最后这一步是为了防止出现词库里面也没有包含的多音字词语
  24628. for (var i = 0; i < result.length; i++) {
  24629. result[i] = result[i].replace(/ .*$/g, '');
  24630. }
  24631. return result.join(splitter);
  24632. }
  24633. // 数组去重
  24634. function simpleUnique(array) {
  24635. var result = [];
  24636. var hash = {};
  24637. for (var i = 0; i < array.length; i++) {
  24638. var key = (0, _typeof2.default)(array[i]) + array[i];
  24639. if (!hash[key]) {
  24640. result.push(array[i]);
  24641. hash[key] = true;
  24642. }
  24643. }
  24644. return result;
  24645. }
  24646. pinyinUtil.parseDict();
  24647. pinyinUtil.dict = dict;
  24648. module.exports = {
  24649. pinyinUtil: pinyinUtil
  24650. };
  24651. /***/ }),
  24652. /***/ 82:
  24653. /*!*********************************************************************************!*\
  24654. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/circleProgress.js ***!
  24655. \*********************************************************************************/
  24656. /*! no static exports found */
  24657. /***/ (function(module, exports, __webpack_require__) {
  24658. "use strict";
  24659. Object.defineProperty(exports, "__esModule", {
  24660. value: true
  24661. });
  24662. exports.default = void 0;
  24663. /*
  24664. * @Author : LQ
  24665. * @Description :
  24666. * @version : 1.0
  24667. * @Date : 2021-08-20 16:44:21
  24668. * @LastAuthor : LQ
  24669. * @lastTime : 2021-08-20 16:55:02
  24670. * @FilePath : /u-view2.0/uview-ui/libs/config/props/circleProgress.js
  24671. */
  24672. var _default = {
  24673. // circleProgress 组件
  24674. circleProgress: {
  24675. percentage: 30
  24676. }
  24677. };
  24678. exports.default = _default;
  24679. /***/ }),
  24680. /***/ 820:
  24681. /*!*******************************************************************************!*\
  24682. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-radio-group/props.js ***!
  24683. \*******************************************************************************/
  24684. /*! no static exports found */
  24685. /***/ (function(module, exports, __webpack_require__) {
  24686. "use strict";
  24687. /* WEBPACK VAR INJECTION */(function(uni) {
  24688. Object.defineProperty(exports, "__esModule", {
  24689. value: true
  24690. });
  24691. exports.default = void 0;
  24692. var _default = {
  24693. props: {
  24694. // 绑定的值
  24695. value: {
  24696. type: [String, Number, Boolean],
  24697. default: uni.$u.props.radioGroup.value
  24698. },
  24699. // 是否禁用全部radio
  24700. disabled: {
  24701. type: Boolean,
  24702. default: uni.$u.props.radioGroup.disabled
  24703. },
  24704. // 形状,circle-圆形,square-方形
  24705. shape: {
  24706. type: String,
  24707. default: uni.$u.props.radioGroup.shape
  24708. },
  24709. // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
  24710. activeColor: {
  24711. type: String,
  24712. default: uni.$u.props.radioGroup.activeColor
  24713. },
  24714. // 未选中的颜色
  24715. inactiveColor: {
  24716. type: String,
  24717. default: uni.$u.props.radioGroup.inactiveColor
  24718. },
  24719. // 标识符
  24720. name: {
  24721. type: String,
  24722. default: uni.$u.props.radioGroup.name
  24723. },
  24724. // 整个组件的尺寸,默认px
  24725. size: {
  24726. type: [String, Number],
  24727. default: uni.$u.props.radioGroup.size
  24728. },
  24729. // 布局方式,row-横向,column-纵向
  24730. placement: {
  24731. type: String,
  24732. default: uni.$u.props.radioGroup.placement
  24733. },
  24734. // label的文本
  24735. label: {
  24736. type: [String],
  24737. default: uni.$u.props.radioGroup.label
  24738. },
  24739. // label的颜色 (默认 '#303133' )
  24740. labelColor: {
  24741. type: [String],
  24742. default: uni.$u.props.radioGroup.labelColor
  24743. },
  24744. // label的字体大小,px单位
  24745. labelSize: {
  24746. type: [String, Number],
  24747. default: uni.$u.props.radioGroup.labelSize
  24748. },
  24749. // 是否禁止点击文本操作checkbox(默认 false )
  24750. labelDisabled: {
  24751. type: Boolean,
  24752. default: uni.$u.props.radioGroup.labelDisabled
  24753. },
  24754. // 图标颜色
  24755. iconColor: {
  24756. type: String,
  24757. default: uni.$u.props.radioGroup.iconColor
  24758. },
  24759. // 图标的大小,单位px
  24760. iconSize: {
  24761. type: [String, Number],
  24762. default: uni.$u.props.radioGroup.iconSize
  24763. },
  24764. // 竖向配列时,是否显示下划线
  24765. borderBottom: {
  24766. type: Boolean,
  24767. default: uni.$u.props.radioGroup.borderBottom
  24768. },
  24769. // 图标与文字的对齐方式
  24770. iconPlacement: {
  24771. type: String,
  24772. default: uni.$u.props.radio.iconPlacement
  24773. }
  24774. }
  24775. };
  24776. exports.default = _default;
  24777. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  24778. /***/ }),
  24779. /***/ 828:
  24780. /*!*************************************************************************!*\
  24781. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-radio/props.js ***!
  24782. \*************************************************************************/
  24783. /*! no static exports found */
  24784. /***/ (function(module, exports, __webpack_require__) {
  24785. "use strict";
  24786. /* WEBPACK VAR INJECTION */(function(uni) {
  24787. Object.defineProperty(exports, "__esModule", {
  24788. value: true
  24789. });
  24790. exports.default = void 0;
  24791. var _default = {
  24792. props: {
  24793. // radio的名称
  24794. name: {
  24795. type: [String, Number, Boolean],
  24796. default: uni.$u.props.radio.name
  24797. },
  24798. // 形状,square为方形,circle为圆型
  24799. shape: {
  24800. type: String,
  24801. default: uni.$u.props.radio.shape
  24802. },
  24803. // 是否禁用
  24804. disabled: {
  24805. type: [String, Boolean],
  24806. default: uni.$u.props.radio.disabled
  24807. },
  24808. // 是否禁止点击提示语选中单选框
  24809. labelDisabled: {
  24810. type: [String, Boolean],
  24811. default: uni.$u.props.radio.labelDisabled
  24812. },
  24813. // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
  24814. activeColor: {
  24815. type: String,
  24816. default: uni.$u.props.radio.activeColor
  24817. },
  24818. // 未选中的颜色
  24819. inactiveColor: {
  24820. type: String,
  24821. default: uni.$u.props.radio.inactiveColor
  24822. },
  24823. // 图标的大小,单位px
  24824. iconSize: {
  24825. type: [String, Number],
  24826. default: uni.$u.props.radio.iconSize
  24827. },
  24828. // label的字体大小,px单位
  24829. labelSize: {
  24830. type: [String, Number],
  24831. default: uni.$u.props.radio.labelSize
  24832. },
  24833. // label提示文字,因为nvue下,直接slot进来的文字,由于特殊的结构,无法修改样式
  24834. label: {
  24835. type: [String, Number],
  24836. default: uni.$u.props.radio.label
  24837. },
  24838. // 整体的大小
  24839. size: {
  24840. type: [String, Number],
  24841. default: uni.$u.props.radio.size
  24842. },
  24843. // 图标颜色
  24844. color: {
  24845. type: String,
  24846. default: uni.$u.props.radio.color
  24847. },
  24848. // label的颜色
  24849. labelColor: {
  24850. type: String,
  24851. default: uni.$u.props.radio.labelColor
  24852. }
  24853. }
  24854. };
  24855. exports.default = _default;
  24856. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  24857. /***/ }),
  24858. /***/ 83:
  24859. /*!***********************************************************************!*\
  24860. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/code.js ***!
  24861. \***********************************************************************/
  24862. /*! no static exports found */
  24863. /***/ (function(module, exports, __webpack_require__) {
  24864. "use strict";
  24865. Object.defineProperty(exports, "__esModule", {
  24866. value: true
  24867. });
  24868. exports.default = void 0;
  24869. /*
  24870. * @Author : LQ
  24871. * @Description :
  24872. * @version : 1.0
  24873. * @Date : 2021-08-20 16:44:21
  24874. * @LastAuthor : LQ
  24875. * @lastTime : 2021-08-20 16:55:27
  24876. * @FilePath : /u-view2.0/uview-ui/libs/config/props/code.js
  24877. */
  24878. var _default = {
  24879. // code 组件
  24880. code: {
  24881. seconds: 60,
  24882. startText: '获取验证码',
  24883. changeText: 'X秒重新获取',
  24884. endText: '重新获取',
  24885. keepRunning: false,
  24886. uniqueKey: ''
  24887. }
  24888. };
  24889. exports.default = _default;
  24890. /***/ }),
  24891. /***/ 836:
  24892. /*!**************************************************************************!*\
  24893. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-search/props.js ***!
  24894. \**************************************************************************/
  24895. /*! no static exports found */
  24896. /***/ (function(module, exports, __webpack_require__) {
  24897. "use strict";
  24898. /* WEBPACK VAR INJECTION */(function(uni) {
  24899. Object.defineProperty(exports, "__esModule", {
  24900. value: true
  24901. });
  24902. exports.default = void 0;
  24903. var _default = {
  24904. props: {
  24905. // 搜索框形状,round-圆形,square-方形
  24906. shape: {
  24907. type: String,
  24908. default: uni.$u.props.search.shape
  24909. },
  24910. // 搜索框背景色,默认值#f2f2f2
  24911. bgColor: {
  24912. type: String,
  24913. default: uni.$u.props.search.bgColor
  24914. },
  24915. // 占位提示文字
  24916. placeholder: {
  24917. type: String,
  24918. default: uni.$u.props.search.placeholder
  24919. },
  24920. // 是否启用清除控件
  24921. clearabled: {
  24922. type: Boolean,
  24923. default: uni.$u.props.search.clearabled
  24924. },
  24925. // 是否自动聚焦
  24926. focus: {
  24927. type: Boolean,
  24928. default: uni.$u.props.search.focus
  24929. },
  24930. // 是否在搜索框右侧显示取消按钮
  24931. showAction: {
  24932. type: Boolean,
  24933. default: uni.$u.props.search.showAction
  24934. },
  24935. // 右边控件的样式
  24936. actionStyle: {
  24937. type: Object,
  24938. default: uni.$u.props.search.actionStyle
  24939. },
  24940. // 取消按钮文字
  24941. actionText: {
  24942. type: String,
  24943. default: uni.$u.props.search.actionText
  24944. },
  24945. // 输入框内容对齐方式,可选值为 left|center|right
  24946. inputAlign: {
  24947. type: String,
  24948. default: uni.$u.props.search.inputAlign
  24949. },
  24950. // input输入框的样式,可以定义文字颜色,大小等,对象形式
  24951. inputStyle: {
  24952. type: Object,
  24953. default: uni.$u.props.search.inputStyle
  24954. },
  24955. // 是否启用输入框
  24956. disabled: {
  24957. type: Boolean,
  24958. default: uni.$u.props.search.disabled
  24959. },
  24960. // 边框颜色
  24961. borderColor: {
  24962. type: String,
  24963. default: uni.$u.props.search.borderColor
  24964. },
  24965. // 搜索图标的颜色,默认同输入框字体颜色
  24966. searchIconColor: {
  24967. type: String,
  24968. default: uni.$u.props.search.searchIconColor
  24969. },
  24970. // 输入框字体颜色
  24971. color: {
  24972. type: String,
  24973. default: uni.$u.props.search.color
  24974. },
  24975. // placeholder的颜色
  24976. placeholderColor: {
  24977. type: String,
  24978. default: uni.$u.props.search.placeholderColor
  24979. },
  24980. // 左边输入框的图标,可以为uView图标名称或图片路径
  24981. searchIcon: {
  24982. type: String,
  24983. default: uni.$u.props.search.searchIcon
  24984. },
  24985. searchIconSize: {
  24986. type: [Number, String],
  24987. default: uni.$u.props.search.searchIconSize
  24988. },
  24989. // 组件与其他上下左右元素之间的距离,带单位的字符串形式,如"30px"、"30px 20px"等写法
  24990. margin: {
  24991. type: String,
  24992. default: uni.$u.props.search.margin
  24993. },
  24994. // 开启showAction时,是否在input获取焦点时才显示
  24995. animation: {
  24996. type: Boolean,
  24997. default: uni.$u.props.search.animation
  24998. },
  24999. // 输入框的初始化内容
  25000. value: {
  25001. type: String,
  25002. default: uni.$u.props.search.value
  25003. },
  25004. // 输入框最大能输入的长度,-1为不限制长度(来自uniapp文档)
  25005. maxlength: {
  25006. type: [String, Number],
  25007. default: uni.$u.props.search.maxlength
  25008. },
  25009. // 搜索框高度,单位px
  25010. height: {
  25011. type: [String, Number],
  25012. default: uni.$u.props.search.height
  25013. },
  25014. // 搜索框左侧文本
  25015. label: {
  25016. type: [String, Number, null],
  25017. default: uni.$u.props.search.label
  25018. }
  25019. }
  25020. };
  25021. exports.default = _default;
  25022. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25023. /***/ }),
  25024. /***/ 84:
  25025. /*!****************************************************************************!*\
  25026. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/codeInput.js ***!
  25027. \****************************************************************************/
  25028. /*! no static exports found */
  25029. /***/ (function(module, exports, __webpack_require__) {
  25030. "use strict";
  25031. Object.defineProperty(exports, "__esModule", {
  25032. value: true
  25033. });
  25034. exports.default = void 0;
  25035. /*
  25036. * @Author : LQ
  25037. * @Description :
  25038. * @version : 1.0
  25039. * @Date : 2021-08-20 16:44:21
  25040. * @LastAuthor : LQ
  25041. * @lastTime : 2021-08-20 16:55:58
  25042. * @FilePath : /u-view2.0/uview-ui/libs/config/props/codeInput.js
  25043. */
  25044. var _default = {
  25045. // codeInput 组件
  25046. codeInput: {
  25047. adjustPosition: true,
  25048. maxlength: 6,
  25049. dot: false,
  25050. mode: 'box',
  25051. hairline: false,
  25052. space: 10,
  25053. value: '',
  25054. focus: false,
  25055. bold: false,
  25056. color: '#606266',
  25057. fontSize: 18,
  25058. size: 35,
  25059. disabledKeyboard: false,
  25060. borderColor: '#c9cacc',
  25061. disabledDot: true
  25062. }
  25063. };
  25064. exports.default = _default;
  25065. /***/ }),
  25066. /***/ 85:
  25067. /*!**********************************************************************!*\
  25068. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/col.js ***!
  25069. \**********************************************************************/
  25070. /*! no static exports found */
  25071. /***/ (function(module, exports, __webpack_require__) {
  25072. "use strict";
  25073. Object.defineProperty(exports, "__esModule", {
  25074. value: true
  25075. });
  25076. exports.default = void 0;
  25077. /*
  25078. * @Author : LQ
  25079. * @Description :
  25080. * @version : 1.0
  25081. * @Date : 2021-08-20 16:44:21
  25082. * @LastAuthor : LQ
  25083. * @lastTime : 2021-08-20 16:56:12
  25084. * @FilePath : /u-view2.0/uview-ui/libs/config/props/col.js
  25085. */
  25086. var _default = {
  25087. // col 组件
  25088. col: {
  25089. span: 12,
  25090. offset: 0,
  25091. justify: 'start',
  25092. align: 'stretch',
  25093. textAlign: 'left'
  25094. }
  25095. };
  25096. exports.default = _default;
  25097. /***/ }),
  25098. /***/ 858:
  25099. /*!*************************************************************************!*\
  25100. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-input/props.js ***!
  25101. \*************************************************************************/
  25102. /*! no static exports found */
  25103. /***/ (function(module, exports, __webpack_require__) {
  25104. "use strict";
  25105. /* WEBPACK VAR INJECTION */(function(uni) {
  25106. Object.defineProperty(exports, "__esModule", {
  25107. value: true
  25108. });
  25109. exports.default = void 0;
  25110. var _default = {
  25111. props: {
  25112. // 输入的值
  25113. value: {
  25114. type: [String, Number],
  25115. default: uni.$u.props.input.value
  25116. },
  25117. // 输入框类型
  25118. // number-数字输入键盘,app-vue下可以输入浮点数,app-nvue和小程序平台下只能输入整数
  25119. // idcard-身份证输入键盘,微信、支付宝、百度、QQ小程序
  25120. // digit-带小数点的数字键盘,App的nvue页面、微信、支付宝、百度、头条、QQ小程序
  25121. // text-文本输入键盘
  25122. type: {
  25123. type: String,
  25124. default: uni.$u.props.input.type
  25125. },
  25126. // 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true,
  25127. // 兼容性:微信小程序、百度小程序、字节跳动小程序、QQ小程序
  25128. fixed: {
  25129. type: Boolean,
  25130. default: uni.$u.props.input.fixed
  25131. },
  25132. // 是否禁用输入框
  25133. disabled: {
  25134. type: Boolean,
  25135. default: uni.$u.props.input.disabled
  25136. },
  25137. // 禁用状态时的背景色
  25138. disabledColor: {
  25139. type: String,
  25140. default: uni.$u.props.input.disabledColor
  25141. },
  25142. // 是否显示清除控件
  25143. clearable: {
  25144. type: Boolean,
  25145. default: uni.$u.props.input.clearable
  25146. },
  25147. // 是否密码类型
  25148. password: {
  25149. type: Boolean,
  25150. default: uni.$u.props.input.password
  25151. },
  25152. // 最大输入长度,设置为 -1 的时候不限制最大长度
  25153. maxlength: {
  25154. type: [String, Number],
  25155. default: uni.$u.props.input.maxlength
  25156. },
  25157. // 输入框为空时的占位符
  25158. placeholder: {
  25159. type: String,
  25160. default: uni.$u.props.input.placeholder
  25161. },
  25162. // 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
  25163. placeholderClass: {
  25164. type: String,
  25165. default: uni.$u.props.input.placeholderClass
  25166. },
  25167. // 指定placeholder的样式
  25168. placeholderStyle: {
  25169. type: [String, Object],
  25170. default: uni.$u.props.input.placeholderStyle
  25171. },
  25172. // 是否显示输入字数统计,只在 type ="text"或type ="textarea"时有效
  25173. showWordLimit: {
  25174. type: Boolean,
  25175. default: uni.$u.props.input.showWordLimit
  25176. },
  25177. // 设置右下角按钮的文字,有效值:send|search|next|go|done,兼容性详见uni-app文档
  25178. // https://uniapp.dcloud.io/component/input
  25179. // https://uniapp.dcloud.io/component/textarea
  25180. confirmType: {
  25181. type: String,
  25182. default: uni.$u.props.input.confirmType
  25183. },
  25184. // 点击键盘右下角按钮时是否保持键盘不收起,H5无效
  25185. confirmHold: {
  25186. type: Boolean,
  25187. default: uni.$u.props.input.confirmHold
  25188. },
  25189. // focus时,点击页面的时候不收起键盘,微信小程序有效
  25190. holdKeyboard: {
  25191. type: Boolean,
  25192. default: uni.$u.props.input.holdKeyboard
  25193. },
  25194. // 自动获取焦点
  25195. // 在 H5 平台能否聚焦以及软键盘是否跟随弹出,取决于当前浏览器本身的实现。nvue 页面不支持,需使用组件的 focus()、blur() 方法控制焦点
  25196. focus: {
  25197. type: Boolean,
  25198. default: uni.$u.props.input.focus
  25199. },
  25200. // 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效
  25201. autoBlur: {
  25202. type: Boolean,
  25203. default: uni.$u.props.input.autoBlur
  25204. },
  25205. // 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效
  25206. disableDefaultPadding: {
  25207. type: Boolean,
  25208. default: uni.$u.props.input.disableDefaultPadding
  25209. },
  25210. // 指定focus时光标的位置
  25211. cursor: {
  25212. type: [String, Number],
  25213. default: uni.$u.props.input.cursor
  25214. },
  25215. // 输入框聚焦时底部与键盘的距离
  25216. cursorSpacing: {
  25217. type: [String, Number],
  25218. default: uni.$u.props.input.cursorSpacing
  25219. },
  25220. // 光标起始位置,自动聚集时有效,需与selection-end搭配使用
  25221. selectionStart: {
  25222. type: [String, Number],
  25223. default: uni.$u.props.input.selectionStart
  25224. },
  25225. // 光标结束位置,自动聚集时有效,需与selection-start搭配使用
  25226. selectionEnd: {
  25227. type: [String, Number],
  25228. default: uni.$u.props.input.selectionEnd
  25229. },
  25230. // 键盘弹起时,是否自动上推页面
  25231. adjustPosition: {
  25232. type: Boolean,
  25233. default: uni.$u.props.input.adjustPosition
  25234. },
  25235. // 输入框内容对齐方式,可选值为:left|center|right
  25236. inputAlign: {
  25237. type: String,
  25238. default: uni.$u.props.input.inputAlign
  25239. },
  25240. // 输入框字体的大小
  25241. fontSize: {
  25242. type: [String, Number],
  25243. default: uni.$u.props.input.fontSize
  25244. },
  25245. // 输入框字体颜色
  25246. color: {
  25247. type: String,
  25248. default: uni.$u.props.input.color
  25249. },
  25250. // 输入框前置图标
  25251. prefixIcon: {
  25252. type: String,
  25253. default: uni.$u.props.input.prefixIcon
  25254. },
  25255. // 前置图标样式,对象或字符串
  25256. prefixIconStyle: {
  25257. type: [String, Object],
  25258. default: uni.$u.props.input.prefixIconStyle
  25259. },
  25260. // 输入框后置图标
  25261. suffixIcon: {
  25262. type: String,
  25263. default: uni.$u.props.input.suffixIcon
  25264. },
  25265. // 后置图标样式,对象或字符串
  25266. suffixIconStyle: {
  25267. type: [String, Object],
  25268. default: uni.$u.props.input.suffixIconStyle
  25269. },
  25270. // 边框类型,surround-四周边框,bottom-底部边框,none-无边框
  25271. border: {
  25272. type: String,
  25273. default: uni.$u.props.input.border
  25274. },
  25275. // 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会
  25276. readonly: {
  25277. type: Boolean,
  25278. default: uni.$u.props.input.readonly
  25279. },
  25280. // 输入框形状,circle-圆形,square-方形
  25281. shape: {
  25282. type: String,
  25283. default: uni.$u.props.input.shape
  25284. },
  25285. // 用于处理或者过滤输入框内容的方法
  25286. formatter: {
  25287. type: [Function, null],
  25288. default: uni.$u.props.input.formatter
  25289. },
  25290. // 是否忽略组件内对文本合成系统事件的处理
  25291. ignoreCompositionEvent: {
  25292. type: Boolean,
  25293. default: true
  25294. }
  25295. }
  25296. };
  25297. exports.default = _default;
  25298. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25299. /***/ }),
  25300. /***/ 86:
  25301. /*!***************************************************************************!*\
  25302. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/collapse.js ***!
  25303. \***************************************************************************/
  25304. /*! no static exports found */
  25305. /***/ (function(module, exports, __webpack_require__) {
  25306. "use strict";
  25307. Object.defineProperty(exports, "__esModule", {
  25308. value: true
  25309. });
  25310. exports.default = void 0;
  25311. /*
  25312. * @Author : LQ
  25313. * @Description :
  25314. * @version : 1.0
  25315. * @Date : 2021-08-20 16:44:21
  25316. * @LastAuthor : LQ
  25317. * @lastTime : 2021-08-20 16:56:30
  25318. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapse.js
  25319. */
  25320. var _default = {
  25321. // collapse 组件
  25322. collapse: {
  25323. value: null,
  25324. accordion: false,
  25325. border: true
  25326. }
  25327. };
  25328. exports.default = _default;
  25329. /***/ }),
  25330. /***/ 864:
  25331. /*!************************************************************************!*\
  25332. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-rate/props.js ***!
  25333. \************************************************************************/
  25334. /*! no static exports found */
  25335. /***/ (function(module, exports, __webpack_require__) {
  25336. "use strict";
  25337. /* WEBPACK VAR INJECTION */(function(uni) {
  25338. Object.defineProperty(exports, "__esModule", {
  25339. value: true
  25340. });
  25341. exports.default = void 0;
  25342. var _default = {
  25343. props: {
  25344. // 用于v-model双向绑定选中的星星数量
  25345. value: {
  25346. type: [String, Number],
  25347. default: uni.$u.props.rate.value
  25348. },
  25349. // 要显示的星星数量
  25350. count: {
  25351. type: [String, Number],
  25352. default: uni.$u.props.rate.count
  25353. },
  25354. // 是否不可选中
  25355. disabled: {
  25356. type: Boolean,
  25357. default: uni.$u.props.rate.disabled
  25358. },
  25359. // 是否只读
  25360. readonly: {
  25361. type: Boolean,
  25362. default: uni.$u.props.rate.readonly
  25363. },
  25364. // 星星的大小,单位px
  25365. size: {
  25366. type: [String, Number],
  25367. default: uni.$u.props.rate.size
  25368. },
  25369. // 未选中时的颜色
  25370. inactiveColor: {
  25371. type: String,
  25372. default: uni.$u.props.rate.inactiveColor
  25373. },
  25374. // 选中的颜色
  25375. activeColor: {
  25376. type: String,
  25377. default: uni.$u.props.rate.activeColor
  25378. },
  25379. // 星星之间的间距,单位px
  25380. gutter: {
  25381. type: [String, Number],
  25382. default: uni.$u.props.rate.gutter
  25383. },
  25384. // 最少能选择的星星个数
  25385. minCount: {
  25386. type: [String, Number],
  25387. default: uni.$u.props.rate.minCount
  25388. },
  25389. // 是否允许半星
  25390. allowHalf: {
  25391. type: Boolean,
  25392. default: uni.$u.props.rate.allowHalf
  25393. },
  25394. // 选中时的图标(星星)
  25395. activeIcon: {
  25396. type: String,
  25397. default: uni.$u.props.rate.activeIcon
  25398. },
  25399. // 未选中时的图标(星星)
  25400. inactiveIcon: {
  25401. type: String,
  25402. default: uni.$u.props.rate.inactiveIcon
  25403. },
  25404. // 是否可以通过滑动手势选择评分
  25405. touchable: {
  25406. type: Boolean,
  25407. default: uni.$u.props.rate.touchable
  25408. }
  25409. }
  25410. };
  25411. exports.default = _default;
  25412. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25413. /***/ }),
  25414. /***/ 87:
  25415. /*!*******************************************************************************!*\
  25416. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/collapseItem.js ***!
  25417. \*******************************************************************************/
  25418. /*! no static exports found */
  25419. /***/ (function(module, exports, __webpack_require__) {
  25420. "use strict";
  25421. Object.defineProperty(exports, "__esModule", {
  25422. value: true
  25423. });
  25424. exports.default = void 0;
  25425. /*
  25426. * @Author : LQ
  25427. * @Description :
  25428. * @version : 1.0
  25429. * @Date : 2021-08-20 16:44:21
  25430. * @LastAuthor : LQ
  25431. * @lastTime : 2021-08-20 16:56:42
  25432. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapseItem.js
  25433. */
  25434. var _default = {
  25435. // collapseItem 组件
  25436. collapseItem: {
  25437. title: '',
  25438. value: '',
  25439. label: '',
  25440. disabled: false,
  25441. isLink: true,
  25442. clickable: true,
  25443. border: true,
  25444. align: 'left',
  25445. name: '',
  25446. icon: '',
  25447. duration: 300
  25448. }
  25449. };
  25450. exports.default = _default;
  25451. /***/ }),
  25452. /***/ 879:
  25453. /*!************************************************************************!*\
  25454. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-form/props.js ***!
  25455. \************************************************************************/
  25456. /*! no static exports found */
  25457. /***/ (function(module, exports, __webpack_require__) {
  25458. "use strict";
  25459. /* WEBPACK VAR INJECTION */(function(uni) {
  25460. Object.defineProperty(exports, "__esModule", {
  25461. value: true
  25462. });
  25463. exports.default = void 0;
  25464. var _default = {
  25465. props: {
  25466. // 当前form的需要验证字段的集合
  25467. model: {
  25468. type: Object,
  25469. default: uni.$u.props.form.model
  25470. },
  25471. // 验证规则
  25472. rules: {
  25473. type: [Object, Function, Array],
  25474. default: uni.$u.props.form.rules
  25475. },
  25476. // 有错误时的提示方式,message-提示信息,toast-进行toast提示
  25477. // border-bottom-下边框呈现红色,none-无提示
  25478. errorType: {
  25479. type: String,
  25480. default: uni.$u.props.form.errorType
  25481. },
  25482. // 是否显示表单域的下划线边框
  25483. borderBottom: {
  25484. type: Boolean,
  25485. default: uni.$u.props.form.borderBottom
  25486. },
  25487. // label的位置,left-左边,top-上边
  25488. labelPosition: {
  25489. type: String,
  25490. default: uni.$u.props.form.labelPosition
  25491. },
  25492. // label的宽度,单位px
  25493. labelWidth: {
  25494. type: [String, Number],
  25495. default: uni.$u.props.form.labelWidth
  25496. },
  25497. // lable字体的对齐方式
  25498. labelAlign: {
  25499. type: String,
  25500. default: uni.$u.props.form.labelAlign
  25501. },
  25502. // lable的样式,对象形式
  25503. labelStyle: {
  25504. type: Object,
  25505. default: uni.$u.props.form.labelStyle
  25506. }
  25507. }
  25508. };
  25509. exports.default = _default;
  25510. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25511. /***/ }),
  25512. /***/ 88:
  25513. /*!*******************************************************************************!*\
  25514. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/columnNotice.js ***!
  25515. \*******************************************************************************/
  25516. /*! no static exports found */
  25517. /***/ (function(module, exports, __webpack_require__) {
  25518. "use strict";
  25519. Object.defineProperty(exports, "__esModule", {
  25520. value: true
  25521. });
  25522. exports.default = void 0;
  25523. /*
  25524. * @Author : LQ
  25525. * @Description :
  25526. * @version : 1.0
  25527. * @Date : 2021-08-20 16:44:21
  25528. * @LastAuthor : LQ
  25529. * @lastTime : 2021-08-20 16:57:16
  25530. * @FilePath : /u-view2.0/uview-ui/libs/config/props/columnNotice.js
  25531. */
  25532. var _default = {
  25533. // columnNotice 组件
  25534. columnNotice: {
  25535. text: '',
  25536. icon: 'volume',
  25537. mode: '',
  25538. color: '#f9ae3d',
  25539. bgColor: '#fdf6ec',
  25540. fontSize: 14,
  25541. speed: 80,
  25542. step: false,
  25543. duration: 1500,
  25544. disableTouch: true
  25545. }
  25546. };
  25547. exports.default = _default;
  25548. /***/ }),
  25549. /***/ 885:
  25550. /*!*****************************************************************************!*\
  25551. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-form-item/props.js ***!
  25552. \*****************************************************************************/
  25553. /*! no static exports found */
  25554. /***/ (function(module, exports, __webpack_require__) {
  25555. "use strict";
  25556. /* WEBPACK VAR INJECTION */(function(uni) {
  25557. Object.defineProperty(exports, "__esModule", {
  25558. value: true
  25559. });
  25560. exports.default = void 0;
  25561. var _default = {
  25562. props: {
  25563. // input的label提示语
  25564. label: {
  25565. type: String,
  25566. default: uni.$u.props.formItem.label
  25567. },
  25568. // 绑定的值
  25569. prop: {
  25570. type: String,
  25571. default: uni.$u.props.formItem.prop
  25572. },
  25573. // 是否显示表单域的下划线边框
  25574. borderBottom: {
  25575. type: [String, Boolean],
  25576. default: uni.$u.props.formItem.borderBottom
  25577. },
  25578. // label的位置,left-左边,top-上边
  25579. labelPosition: {
  25580. type: String,
  25581. default: uni.$u.props.formItem.labelPosition
  25582. },
  25583. // label的宽度,单位px
  25584. labelWidth: {
  25585. type: [String, Number],
  25586. default: uni.$u.props.formItem.labelWidth
  25587. },
  25588. // 右侧图标
  25589. rightIcon: {
  25590. type: String,
  25591. default: uni.$u.props.formItem.rightIcon
  25592. },
  25593. // 左侧图标
  25594. leftIcon: {
  25595. type: String,
  25596. default: uni.$u.props.formItem.leftIcon
  25597. },
  25598. // 是否显示左边的必填星号,只作显示用,具体校验必填的逻辑,请在rules中配置
  25599. required: {
  25600. type: Boolean,
  25601. default: uni.$u.props.formItem.required
  25602. },
  25603. leftIconStyle: {
  25604. type: [String, Object],
  25605. default: uni.$u.props.formItem.leftIconStyle
  25606. }
  25607. }
  25608. };
  25609. exports.default = _default;
  25610. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25611. /***/ }),
  25612. /***/ 89:
  25613. /*!****************************************************************************!*\
  25614. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/countDown.js ***!
  25615. \****************************************************************************/
  25616. /*! no static exports found */
  25617. /***/ (function(module, exports, __webpack_require__) {
  25618. "use strict";
  25619. Object.defineProperty(exports, "__esModule", {
  25620. value: true
  25621. });
  25622. exports.default = void 0;
  25623. /*
  25624. * @Author : LQ
  25625. * @Description :
  25626. * @version : 1.0
  25627. * @Date : 2021-08-20 16:44:21
  25628. * @LastAuthor : LQ
  25629. * @lastTime : 2021-08-20 17:11:29
  25630. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countDown.js
  25631. */
  25632. var _default = {
  25633. // u-count-down 计时器组件
  25634. countDown: {
  25635. time: 0,
  25636. format: 'HH:mm:ss',
  25637. autoStart: true,
  25638. millisecond: false
  25639. }
  25640. };
  25641. exports.default = _default;
  25642. /***/ }),
  25643. /***/ 9:
  25644. /*!*****************************************************************!*\
  25645. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  25646. \*****************************************************************/
  25647. /*! no static exports found */
  25648. /***/ (function(module, exports) {
  25649. function _arrayLikeToArray(arr, len) {
  25650. if (len == null || len > arr.length) len = arr.length;
  25651. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  25652. arr2[i] = arr[i];
  25653. }
  25654. return arr2;
  25655. }
  25656. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  25657. /***/ }),
  25658. /***/ 90:
  25659. /*!**************************************************************************!*\
  25660. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/countTo.js ***!
  25661. \**************************************************************************/
  25662. /*! no static exports found */
  25663. /***/ (function(module, exports, __webpack_require__) {
  25664. "use strict";
  25665. Object.defineProperty(exports, "__esModule", {
  25666. value: true
  25667. });
  25668. exports.default = void 0;
  25669. /*
  25670. * @Author : LQ
  25671. * @Description :
  25672. * @version : 1.0
  25673. * @Date : 2021-08-20 16:44:21
  25674. * @LastAuthor : LQ
  25675. * @lastTime : 2021-08-20 16:57:32
  25676. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countTo.js
  25677. */
  25678. var _default = {
  25679. // countTo 组件
  25680. countTo: {
  25681. startVal: 0,
  25682. endVal: 0,
  25683. duration: 2000,
  25684. autoplay: true,
  25685. decimals: 0,
  25686. useEasing: true,
  25687. decimal: '.',
  25688. color: '#606266',
  25689. fontSize: 22,
  25690. bold: false,
  25691. separator: ''
  25692. }
  25693. };
  25694. exports.default = _default;
  25695. /***/ }),
  25696. /***/ 91:
  25697. /*!*********************************************************************************!*\
  25698. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/datetimePicker.js ***!
  25699. \*********************************************************************************/
  25700. /*! no static exports found */
  25701. /***/ (function(module, exports, __webpack_require__) {
  25702. "use strict";
  25703. Object.defineProperty(exports, "__esModule", {
  25704. value: true
  25705. });
  25706. exports.default = void 0;
  25707. /*
  25708. * @Author : LQ
  25709. * @Description :
  25710. * @version : 1.0
  25711. * @Date : 2021-08-20 16:44:21
  25712. * @LastAuthor : LQ
  25713. * @lastTime : 2021-08-20 16:57:48
  25714. * @FilePath : /u-view2.0/uview-ui/libs/config/props/datetimePicker.js
  25715. */
  25716. var _default = {
  25717. // datetimePicker 组件
  25718. datetimePicker: {
  25719. show: false,
  25720. showToolbar: true,
  25721. value: '',
  25722. title: '',
  25723. mode: 'datetime',
  25724. maxDate: new Date(new Date().getFullYear() + 10, 0, 1).getTime(),
  25725. minDate: new Date(new Date().getFullYear() - 10, 0, 1).getTime(),
  25726. minHour: 0,
  25727. maxHour: 23,
  25728. minMinute: 0,
  25729. maxMinute: 59,
  25730. filter: null,
  25731. formatter: null,
  25732. loading: false,
  25733. itemHeight: 44,
  25734. cancelText: '取消',
  25735. confirmText: '确认',
  25736. cancelColor: '#909193',
  25737. confirmColor: '#3c9cff',
  25738. visibleItemCount: 5,
  25739. closeOnClickOverlay: false,
  25740. defaultIndex: function defaultIndex() {
  25741. return [];
  25742. }
  25743. }
  25744. };
  25745. exports.default = _default;
  25746. /***/ }),
  25747. /***/ 92:
  25748. /*!**************************************************************************!*\
  25749. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/divider.js ***!
  25750. \**************************************************************************/
  25751. /*! no static exports found */
  25752. /***/ (function(module, exports, __webpack_require__) {
  25753. "use strict";
  25754. Object.defineProperty(exports, "__esModule", {
  25755. value: true
  25756. });
  25757. exports.default = void 0;
  25758. /*
  25759. * @Author : LQ
  25760. * @Description :
  25761. * @version : 1.0
  25762. * @Date : 2021-08-20 16:44:21
  25763. * @LastAuthor : LQ
  25764. * @lastTime : 2021-08-20 16:58:03
  25765. * @FilePath : /u-view2.0/uview-ui/libs/config/props/divider.js
  25766. */
  25767. var _default = {
  25768. // divider组件
  25769. divider: {
  25770. dashed: false,
  25771. hairline: true,
  25772. dot: false,
  25773. textPosition: 'center',
  25774. text: '',
  25775. textSize: 14,
  25776. textColor: '#909399',
  25777. lineColor: '#dcdfe6'
  25778. }
  25779. };
  25780. exports.default = _default;
  25781. /***/ }),
  25782. /***/ 921:
  25783. /*!******************************************************************************!*\
  25784. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-transition/props.js ***!
  25785. \******************************************************************************/
  25786. /*! no static exports found */
  25787. /***/ (function(module, exports, __webpack_require__) {
  25788. "use strict";
  25789. /* WEBPACK VAR INJECTION */(function(uni) {
  25790. Object.defineProperty(exports, "__esModule", {
  25791. value: true
  25792. });
  25793. exports.default = void 0;
  25794. var _default = {
  25795. props: {
  25796. // 是否展示组件
  25797. show: {
  25798. type: Boolean,
  25799. default: uni.$u.props.transition.show
  25800. },
  25801. // 使用的动画模式
  25802. mode: {
  25803. type: String,
  25804. default: uni.$u.props.transition.mode
  25805. },
  25806. // 动画的执行时间,单位ms
  25807. duration: {
  25808. type: [String, Number],
  25809. default: uni.$u.props.transition.duration
  25810. },
  25811. // 使用的动画过渡函数
  25812. timingFunction: {
  25813. type: String,
  25814. default: uni.$u.props.transition.timingFunction
  25815. }
  25816. }
  25817. };
  25818. exports.default = _default;
  25819. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25820. /***/ }),
  25821. /***/ 922:
  25822. /*!***********************************************************************************!*\
  25823. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-transition/transition.js ***!
  25824. \***********************************************************************************/
  25825. /*! no static exports found */
  25826. /***/ (function(module, exports, __webpack_require__) {
  25827. "use strict";
  25828. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  25829. Object.defineProperty(exports, "__esModule", {
  25830. value: true
  25831. });
  25832. exports.default = void 0;
  25833. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 56));
  25834. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 58));
  25835. var _nvueAniMap = _interopRequireDefault(__webpack_require__(/*! ./nvue.ani-map.js */ 923));
  25836. // 定义一个一定时间后自动成功的promise,让调用nextTick方法处,进入下一个then方法
  25837. var nextTick = function nextTick() {
  25838. return new Promise(function (resolve) {
  25839. return setTimeout(resolve, 1000 / 50);
  25840. });
  25841. };
  25842. // nvue动画模块实现细节抽离在外部文件
  25843. // 定义类名,通过给元素动态切换类名,赋予元素一定的css动画样式
  25844. var getClassNames = function getClassNames(name) {
  25845. return {
  25846. enter: "u-".concat(name, "-enter u-").concat(name, "-enter-active"),
  25847. 'enter-to': "u-".concat(name, "-enter-to u-").concat(name, "-enter-active"),
  25848. leave: "u-".concat(name, "-leave u-").concat(name, "-leave-active"),
  25849. 'leave-to': "u-".concat(name, "-leave-to u-").concat(name, "-leave-active")
  25850. };
  25851. };
  25852. var _default = {
  25853. methods: {
  25854. // 组件被点击发出事件
  25855. clickHandler: function clickHandler() {
  25856. this.$emit('click');
  25857. },
  25858. // vue版本的组件进场处理
  25859. vueEnter: function vueEnter() {
  25860. var _this = this;
  25861. // 动画进入时的类名
  25862. var classNames = getClassNames(this.mode);
  25863. // 定义状态和发出动画进入前事件
  25864. this.status = 'enter';
  25865. this.$emit('beforeEnter');
  25866. this.inited = true;
  25867. this.display = true;
  25868. this.classes = classNames.enter;
  25869. this.$nextTick( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  25870. return _regenerator.default.wrap(function _callee$(_context) {
  25871. while (1) {
  25872. switch (_context.prev = _context.next) {
  25873. case 0:
  25874. // 标识动画尚未结束
  25875. _this.$emit('enter');
  25876. _this.transitionEnded = false;
  25877. // 组件动画进入后触发的事件
  25878. _this.$emit('afterEnter');
  25879. // 赋予组件enter-to类名
  25880. _this.classes = classNames['enter-to'];
  25881. case 4:
  25882. case "end":
  25883. return _context.stop();
  25884. }
  25885. }
  25886. }, _callee);
  25887. })));
  25888. },
  25889. // 动画离场处理
  25890. vueLeave: function vueLeave() {
  25891. var _this2 = this;
  25892. // 如果不是展示状态,无需执行逻辑
  25893. if (!this.display) return;
  25894. var classNames = getClassNames(this.mode);
  25895. // 标记离开状态和发出事件
  25896. this.status = 'leave';
  25897. this.$emit('beforeLeave');
  25898. // 获得类名
  25899. this.classes = classNames.leave;
  25900. this.$nextTick(function () {
  25901. // 动画正在离场的状态
  25902. _this2.transitionEnded = false;
  25903. _this2.$emit('leave');
  25904. // 组件执行动画,到了执行的执行时间后,执行一些额外处理
  25905. setTimeout(_this2.onTransitionEnd, _this2.duration);
  25906. _this2.classes = classNames['leave-to'];
  25907. });
  25908. },
  25909. // 完成过渡后触发
  25910. onTransitionEnd: function onTransitionEnd() {
  25911. // 如果已经是结束的状态,无需再处理
  25912. if (this.transitionEnded) return;
  25913. this.transitionEnded = true;
  25914. // 发出组件动画执行后的事件
  25915. this.$emit(this.status === 'leave' ? 'afterLeave' : 'afterEnter');
  25916. if (!this.show && this.display) {
  25917. this.display = false;
  25918. this.inited = false;
  25919. }
  25920. }
  25921. }
  25922. };
  25923. exports.default = _default;
  25924. /***/ }),
  25925. /***/ 923:
  25926. /*!*************************************************************************************!*\
  25927. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-transition/nvue.ani-map.js ***!
  25928. \*************************************************************************************/
  25929. /*! no static exports found */
  25930. /***/ (function(module, exports, __webpack_require__) {
  25931. "use strict";
  25932. Object.defineProperty(exports, "__esModule", {
  25933. value: true
  25934. });
  25935. exports.default = void 0;
  25936. var _default = {
  25937. fade: {
  25938. enter: {
  25939. opacity: 0
  25940. },
  25941. 'enter-to': {
  25942. opacity: 1
  25943. },
  25944. leave: {
  25945. opacity: 1
  25946. },
  25947. 'leave-to': {
  25948. opacity: 0
  25949. }
  25950. },
  25951. 'fade-up': {
  25952. enter: {
  25953. opacity: 0,
  25954. transform: 'translateY(100%)'
  25955. },
  25956. 'enter-to': {
  25957. opacity: 1,
  25958. transform: 'translateY(0)'
  25959. },
  25960. leave: {
  25961. opacity: 1,
  25962. transform: 'translateY(0)'
  25963. },
  25964. 'leave-to': {
  25965. opacity: 0,
  25966. transform: 'translateY(100%)'
  25967. }
  25968. },
  25969. 'fade-down': {
  25970. enter: {
  25971. opacity: 0,
  25972. transform: 'translateY(-100%)'
  25973. },
  25974. 'enter-to': {
  25975. opacity: 1,
  25976. transform: 'translateY(0)'
  25977. },
  25978. leave: {
  25979. opacity: 1,
  25980. transform: 'translateY(0)'
  25981. },
  25982. 'leave-to': {
  25983. opacity: 0,
  25984. transform: 'translateY(-100%)'
  25985. }
  25986. },
  25987. 'fade-left': {
  25988. enter: {
  25989. opacity: 0,
  25990. transform: 'translateX(-100%)'
  25991. },
  25992. 'enter-to': {
  25993. opacity: 1,
  25994. transform: 'translateY(0)'
  25995. },
  25996. leave: {
  25997. opacity: 1,
  25998. transform: 'translateY(0)'
  25999. },
  26000. 'leave-to': {
  26001. opacity: 0,
  26002. transform: 'translateX(-100%)'
  26003. }
  26004. },
  26005. 'fade-right': {
  26006. enter: {
  26007. opacity: 0,
  26008. transform: 'translateX(100%)'
  26009. },
  26010. 'enter-to': {
  26011. opacity: 1,
  26012. transform: 'translateY(0)'
  26013. },
  26014. leave: {
  26015. opacity: 1,
  26016. transform: 'translateY(0)'
  26017. },
  26018. 'leave-to': {
  26019. opacity: 0,
  26020. transform: 'translateX(100%)'
  26021. }
  26022. },
  26023. 'slide-up': {
  26024. enter: {
  26025. transform: 'translateY(100%)'
  26026. },
  26027. 'enter-to': {
  26028. transform: 'translateY(0)'
  26029. },
  26030. leave: {
  26031. transform: 'translateY(0)'
  26032. },
  26033. 'leave-to': {
  26034. transform: 'translateY(100%)'
  26035. }
  26036. },
  26037. 'slide-down': {
  26038. enter: {
  26039. transform: 'translateY(-100%)'
  26040. },
  26041. 'enter-to': {
  26042. transform: 'translateY(0)'
  26043. },
  26044. leave: {
  26045. transform: 'translateY(0)'
  26046. },
  26047. 'leave-to': {
  26048. transform: 'translateY(-100%)'
  26049. }
  26050. },
  26051. 'slide-left': {
  26052. enter: {
  26053. transform: 'translateX(-100%)'
  26054. },
  26055. 'enter-to': {
  26056. transform: 'translateY(0)'
  26057. },
  26058. leave: {
  26059. transform: 'translateY(0)'
  26060. },
  26061. 'leave-to': {
  26062. transform: 'translateX(-100%)'
  26063. }
  26064. },
  26065. 'slide-right': {
  26066. enter: {
  26067. transform: 'translateX(100%)'
  26068. },
  26069. 'enter-to': {
  26070. transform: 'translateY(0)'
  26071. },
  26072. leave: {
  26073. transform: 'translateY(0)'
  26074. },
  26075. 'leave-to': {
  26076. transform: 'translateX(100%)'
  26077. }
  26078. },
  26079. zoom: {
  26080. enter: {
  26081. transform: 'scale(0.95)'
  26082. },
  26083. 'enter-to': {
  26084. transform: 'scale(1)'
  26085. },
  26086. leave: {
  26087. transform: 'scale(1)'
  26088. },
  26089. 'leave-to': {
  26090. transform: 'scale(0.95)'
  26091. }
  26092. },
  26093. 'fade-zoom': {
  26094. enter: {
  26095. opacity: 0,
  26096. transform: 'scale(0.95)'
  26097. },
  26098. 'enter-to': {
  26099. opacity: 1,
  26100. transform: 'scale(1)'
  26101. },
  26102. leave: {
  26103. opacity: 1,
  26104. transform: 'scale(1)'
  26105. },
  26106. 'leave-to': {
  26107. opacity: 0,
  26108. transform: 'scale(0.95)'
  26109. }
  26110. }
  26111. };
  26112. exports.default = _default;
  26113. /***/ }),
  26114. /***/ 93:
  26115. /*!************************************************************************!*\
  26116. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/empty.js ***!
  26117. \************************************************************************/
  26118. /*! no static exports found */
  26119. /***/ (function(module, exports, __webpack_require__) {
  26120. "use strict";
  26121. Object.defineProperty(exports, "__esModule", {
  26122. value: true
  26123. });
  26124. exports.default = void 0;
  26125. /*
  26126. * @Author : LQ
  26127. * @Description :
  26128. * @version : 1.0
  26129. * @Date : 2021-08-20 16:44:21
  26130. * @LastAuthor : LQ
  26131. * @lastTime : 2021-08-20 17:03:27
  26132. * @FilePath : /u-view2.0/uview-ui/libs/config/props/empty.js
  26133. */
  26134. var _default = {
  26135. // empty组件
  26136. empty: {
  26137. icon: '',
  26138. text: '',
  26139. textColor: '#c0c4cc',
  26140. textSize: 14,
  26141. iconColor: '#c0c4cc',
  26142. iconSize: 90,
  26143. mode: 'data',
  26144. width: 160,
  26145. height: 160,
  26146. show: true,
  26147. marginTop: 0
  26148. }
  26149. };
  26150. exports.default = _default;
  26151. /***/ }),
  26152. /***/ 938:
  26153. /*!****************************************************************************!*\
  26154. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-textarea/props.js ***!
  26155. \****************************************************************************/
  26156. /*! no static exports found */
  26157. /***/ (function(module, exports, __webpack_require__) {
  26158. "use strict";
  26159. /* WEBPACK VAR INJECTION */(function(uni) {
  26160. Object.defineProperty(exports, "__esModule", {
  26161. value: true
  26162. });
  26163. exports.default = void 0;
  26164. var _default = {
  26165. props: {
  26166. // 输入框的内容
  26167. value: {
  26168. type: [String, Number],
  26169. default: uni.$u.props.textarea.value
  26170. },
  26171. // 输入框为空时占位符
  26172. placeholder: {
  26173. type: [String, Number],
  26174. default: uni.$u.props.textarea.placeholder
  26175. },
  26176. // 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
  26177. placeholderClass: {
  26178. type: String,
  26179. default: uni.$u.props.input.placeholderClass
  26180. },
  26181. // 指定placeholder的样式
  26182. placeholderStyle: {
  26183. type: [String, Object],
  26184. default: uni.$u.props.input.placeholderStyle
  26185. },
  26186. // 输入框高度
  26187. height: {
  26188. type: [String, Number],
  26189. default: uni.$u.props.textarea.height
  26190. },
  26191. // 设置键盘右下角按钮的文字,仅微信小程序,App-vue和H5有效
  26192. confirmType: {
  26193. type: String,
  26194. default: uni.$u.props.textarea.confirmType
  26195. },
  26196. // 是否禁用
  26197. disabled: {
  26198. type: Boolean,
  26199. default: uni.$u.props.textarea.disabled
  26200. },
  26201. // 是否显示统计字数
  26202. count: {
  26203. type: Boolean,
  26204. default: uni.$u.props.textarea.count
  26205. },
  26206. // 是否自动获取焦点,nvue不支持,H5取决于浏览器的实现
  26207. focus: {
  26208. type: Boolean,
  26209. default: uni.$u.props.textarea.focus
  26210. },
  26211. // 是否自动增加高度
  26212. autoHeight: {
  26213. type: Boolean,
  26214. default: uni.$u.props.textarea.autoHeight
  26215. },
  26216. // 如果textarea是在一个position:fixed的区域,需要显示指定属性fixed为true
  26217. fixed: {
  26218. type: Boolean,
  26219. default: uni.$u.props.textarea.fixed
  26220. },
  26221. // 指定光标与键盘的距离
  26222. cursorSpacing: {
  26223. type: Number,
  26224. default: uni.$u.props.textarea.cursorSpacing
  26225. },
  26226. // 指定focus时的光标位置
  26227. cursor: {
  26228. type: [String, Number],
  26229. default: uni.$u.props.textarea.cursor
  26230. },
  26231. // 是否显示键盘上方带有”完成“按钮那一栏,
  26232. showConfirmBar: {
  26233. type: Boolean,
  26234. default: uni.$u.props.textarea.showConfirmBar
  26235. },
  26236. // 光标起始位置,自动聚焦时有效,需与selection-end搭配使用
  26237. selectionStart: {
  26238. type: Number,
  26239. default: uni.$u.props.textarea.selectionStart
  26240. },
  26241. // 光标结束位置,自动聚焦时有效,需与selection-start搭配使用
  26242. selectionEnd: {
  26243. type: Number,
  26244. default: uni.$u.props.textarea.selectionEnd
  26245. },
  26246. // 键盘弹起时,是否自动上推页面
  26247. adjustPosition: {
  26248. type: Boolean,
  26249. default: uni.$u.props.textarea.adjustPosition
  26250. },
  26251. // 是否去掉 iOS 下的默认内边距,只微信小程序有效
  26252. disableDefaultPadding: {
  26253. type: Boolean,
  26254. default: uni.$u.props.textarea.disableDefaultPadding
  26255. },
  26256. // focus时,点击页面的时候不收起键盘,只微信小程序有效
  26257. holdKeyboard: {
  26258. type: Boolean,
  26259. default: uni.$u.props.textarea.holdKeyboard
  26260. },
  26261. // 最大输入长度,设置为 -1 的时候不限制最大长度
  26262. maxlength: {
  26263. type: [String, Number],
  26264. default: uni.$u.props.textarea.maxlength
  26265. },
  26266. // 边框类型,surround-四周边框,bottom-底部边框
  26267. border: {
  26268. type: String,
  26269. default: uni.$u.props.textarea.border
  26270. },
  26271. // 用于处理或者过滤输入框内容的方法
  26272. formatter: {
  26273. type: [Function, null],
  26274. default: uni.$u.props.textarea.formatter
  26275. },
  26276. // 是否忽略组件内对文本合成系统事件的处理
  26277. ignoreCompositionEvent: {
  26278. type: Boolean,
  26279. default: true
  26280. }
  26281. }
  26282. };
  26283. exports.default = _default;
  26284. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  26285. /***/ }),
  26286. /***/ 94:
  26287. /*!***********************************************************************!*\
  26288. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/form.js ***!
  26289. \***********************************************************************/
  26290. /*! no static exports found */
  26291. /***/ (function(module, exports, __webpack_require__) {
  26292. "use strict";
  26293. Object.defineProperty(exports, "__esModule", {
  26294. value: true
  26295. });
  26296. exports.default = void 0;
  26297. /*
  26298. * @Author : LQ
  26299. * @Description :
  26300. * @version : 1.0
  26301. * @Date : 2021-08-20 16:44:21
  26302. * @LastAuthor : LQ
  26303. * @lastTime : 2021-08-20 17:03:49
  26304. * @FilePath : /u-view2.0/uview-ui/libs/config/props/form.js
  26305. */
  26306. var _default = {
  26307. // form 组件
  26308. form: {
  26309. model: function model() {
  26310. return {};
  26311. },
  26312. rules: function rules() {
  26313. return {};
  26314. },
  26315. errorType: 'message',
  26316. borderBottom: true,
  26317. labelPosition: 'left',
  26318. labelWidth: 45,
  26319. labelAlign: 'left',
  26320. labelStyle: function labelStyle() {
  26321. return {};
  26322. }
  26323. }
  26324. };
  26325. exports.default = _default;
  26326. /***/ }),
  26327. /***/ 944:
  26328. /*!**************************************************************************!*\
  26329. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-upload/utils.js ***!
  26330. \**************************************************************************/
  26331. /*! no static exports found */
  26332. /***/ (function(module, exports, __webpack_require__) {
  26333. "use strict";
  26334. /* WEBPACK VAR INJECTION */(function(uni, wx) {
  26335. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  26336. Object.defineProperty(exports, "__esModule", {
  26337. value: true
  26338. });
  26339. exports.chooseFile = chooseFile;
  26340. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  26341. 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; }
  26342. 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; }
  26343. function pickExclude(obj, keys) {
  26344. // 某些情况下,type可能会为
  26345. if (!['[object Object]', '[object File]'].includes(Object.prototype.toString.call(obj))) {
  26346. return {};
  26347. }
  26348. return Object.keys(obj).reduce(function (prev, key) {
  26349. if (!keys.includes(key)) {
  26350. prev[key] = obj[key];
  26351. }
  26352. return prev;
  26353. }, {});
  26354. }
  26355. function formatImage(res) {
  26356. return res.tempFiles.map(function (item) {
  26357. return _objectSpread(_objectSpread({}, pickExclude(item, ['path'])), {}, {
  26358. type: 'image',
  26359. url: item.path,
  26360. thumb: item.path,
  26361. size: item.size
  26362. });
  26363. });
  26364. }
  26365. function formatVideo(res) {
  26366. return [_objectSpread(_objectSpread({}, pickExclude(res, ['tempFilePath', 'thumbTempFilePath', 'errMsg'])), {}, {
  26367. type: 'video',
  26368. url: res.tempFilePath,
  26369. thumb: res.thumbTempFilePath,
  26370. size: res.size
  26371. })];
  26372. }
  26373. function formatMedia(res) {
  26374. return res.tempFiles.map(function (item) {
  26375. return _objectSpread(_objectSpread({}, pickExclude(item, ['fileType', 'thumbTempFilePath', 'tempFilePath'])), {}, {
  26376. type: res.type,
  26377. url: item.tempFilePath,
  26378. thumb: res.type === 'video' ? item.thumbTempFilePath : item.tempFilePath,
  26379. size: item.size
  26380. });
  26381. });
  26382. }
  26383. function formatFile(res) {
  26384. return res.tempFiles.map(function (item) {
  26385. return _objectSpread(_objectSpread({}, pickExclude(item, ['path'])), {}, {
  26386. url: item.path,
  26387. size: item.size
  26388. });
  26389. });
  26390. }
  26391. function chooseFile(_ref) {
  26392. var accept = _ref.accept,
  26393. multiple = _ref.multiple,
  26394. capture = _ref.capture,
  26395. compressed = _ref.compressed,
  26396. maxDuration = _ref.maxDuration,
  26397. sizeType = _ref.sizeType,
  26398. camera = _ref.camera,
  26399. maxCount = _ref.maxCount;
  26400. return new Promise(function (resolve, reject) {
  26401. switch (accept) {
  26402. case 'image':
  26403. uni.chooseImage({
  26404. count: multiple ? Math.min(maxCount, 9) : 1,
  26405. sourceType: capture,
  26406. sizeType: sizeType,
  26407. success: function success(res) {
  26408. return resolve(formatImage(res));
  26409. },
  26410. fail: reject
  26411. });
  26412. break;
  26413. // 只有微信小程序才支持chooseMedia接口
  26414. case 'media':
  26415. wx.chooseMedia({
  26416. count: multiple ? Math.min(maxCount, 9) : 1,
  26417. sourceType: capture,
  26418. maxDuration: maxDuration,
  26419. sizeType: sizeType,
  26420. camera: camera,
  26421. success: function success(res) {
  26422. return resolve(formatMedia(res));
  26423. },
  26424. fail: reject
  26425. });
  26426. break;
  26427. case 'video':
  26428. uni.chooseVideo({
  26429. sourceType: capture,
  26430. compressed: compressed,
  26431. maxDuration: maxDuration,
  26432. camera: camera,
  26433. success: function success(res) {
  26434. return resolve(formatVideo(res));
  26435. },
  26436. fail: reject
  26437. });
  26438. break;
  26439. // 只有微信小程序才支持chooseMessageFile接口
  26440. case 'file':
  26441. wx.chooseMessageFile({
  26442. count: multiple ? maxCount : 1,
  26443. type: accept,
  26444. success: function success(res) {
  26445. return resolve(formatFile(res));
  26446. },
  26447. fail: reject
  26448. });
  26449. break;
  26450. default:
  26451. // 此为保底选项,在accept不为上面任意一项的时候选取全部文件
  26452. wx.chooseMessageFile({
  26453. count: multiple ? maxCount : 1,
  26454. type: 'all',
  26455. success: function success(res) {
  26456. return resolve(formatFile(res));
  26457. },
  26458. fail: reject
  26459. });
  26460. }
  26461. });
  26462. }
  26463. /* 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"]))
  26464. /***/ }),
  26465. /***/ 945:
  26466. /*!**************************************************************************!*\
  26467. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-upload/mixin.js ***!
  26468. \**************************************************************************/
  26469. /*! no static exports found */
  26470. /***/ (function(module, exports, __webpack_require__) {
  26471. "use strict";
  26472. Object.defineProperty(exports, "__esModule", {
  26473. value: true
  26474. });
  26475. exports.default = void 0;
  26476. var _default = {
  26477. watch: {
  26478. // 监听accept的变化,判断是否符合个平台要求
  26479. // 只有微信小程序才支持选择媒体,文件类型,所以这里做一个判断提示
  26480. accept: {
  26481. immediate: true,
  26482. handler: function handler(val) {}
  26483. }
  26484. }
  26485. };
  26486. exports.default = _default;
  26487. /***/ }),
  26488. /***/ 946:
  26489. /*!**************************************************************************!*\
  26490. !*** D:/www/uniapp-project/wx-qhb/uview-ui/components/u-upload/props.js ***!
  26491. \**************************************************************************/
  26492. /*! no static exports found */
  26493. /***/ (function(module, exports, __webpack_require__) {
  26494. "use strict";
  26495. /* WEBPACK VAR INJECTION */(function(uni) {
  26496. Object.defineProperty(exports, "__esModule", {
  26497. value: true
  26498. });
  26499. exports.default = void 0;
  26500. var _default = {
  26501. props: {
  26502. // 接受的文件类型, 可选值为all media image file video
  26503. accept: {
  26504. type: String,
  26505. default: uni.$u.props.upload.accept
  26506. },
  26507. // 图片或视频拾取模式,当accept为image类型时设置capture可选额外camera可以直接调起摄像头
  26508. capture: {
  26509. type: [String, Array],
  26510. default: uni.$u.props.upload.capture
  26511. },
  26512. // 当accept为video时生效,是否压缩视频,默认为true
  26513. compressed: {
  26514. type: Boolean,
  26515. default: uni.$u.props.upload.compressed
  26516. },
  26517. // 当accept为video时生效,可选值为back或front
  26518. camera: {
  26519. type: String,
  26520. default: uni.$u.props.upload.camera
  26521. },
  26522. // 当accept为video时生效,拍摄视频最长拍摄时间,单位秒
  26523. maxDuration: {
  26524. type: Number,
  26525. default: uni.$u.props.upload.maxDuration
  26526. },
  26527. // 上传区域的图标,只能内置图标
  26528. uploadIcon: {
  26529. type: String,
  26530. default: uni.$u.props.upload.uploadIcon
  26531. },
  26532. // 上传区域的图标的颜色,默认
  26533. uploadIconColor: {
  26534. type: String,
  26535. default: uni.$u.props.upload.uploadIconColor
  26536. },
  26537. // 是否开启文件读取前事件
  26538. useBeforeRead: {
  26539. type: Boolean,
  26540. default: uni.$u.props.upload.useBeforeRead
  26541. },
  26542. // 读取后的处理函数
  26543. afterRead: {
  26544. type: Function,
  26545. default: null
  26546. },
  26547. // 读取前的处理函数
  26548. beforeRead: {
  26549. type: Function,
  26550. default: null
  26551. },
  26552. // 是否显示组件自带的图片预览功能
  26553. previewFullImage: {
  26554. type: Boolean,
  26555. default: uni.$u.props.upload.previewFullImage
  26556. },
  26557. // 最大上传数量
  26558. maxCount: {
  26559. type: [String, Number],
  26560. default: uni.$u.props.upload.maxCount
  26561. },
  26562. // 是否启用
  26563. disabled: {
  26564. type: Boolean,
  26565. default: uni.$u.props.upload.disabled
  26566. },
  26567. // 预览上传的图片时的裁剪模式,和image组件mode属性一致
  26568. imageMode: {
  26569. type: String,
  26570. default: uni.$u.props.upload.imageMode
  26571. },
  26572. // 标识符,可以在回调函数的第二项参数中获取
  26573. name: {
  26574. type: String,
  26575. default: uni.$u.props.upload.name
  26576. },
  26577. // 所选的图片的尺寸, 可选值为original compressed
  26578. sizeType: {
  26579. type: Array,
  26580. default: uni.$u.props.upload.sizeType
  26581. },
  26582. // 是否开启图片多选,部分安卓机型不支持
  26583. multiple: {
  26584. type: Boolean,
  26585. default: uni.$u.props.upload.multiple
  26586. },
  26587. // 是否展示删除按钮
  26588. deletable: {
  26589. type: Boolean,
  26590. default: uni.$u.props.upload.deletable
  26591. },
  26592. // 文件大小限制,单位为byte
  26593. maxSize: {
  26594. type: [String, Number],
  26595. default: uni.$u.props.upload.maxSize
  26596. },
  26597. // 显示已上传的文件列表
  26598. fileList: {
  26599. type: Array,
  26600. default: uni.$u.props.upload.fileList
  26601. },
  26602. // 上传区域的提示文字
  26603. uploadText: {
  26604. type: String,
  26605. default: uni.$u.props.upload.uploadText
  26606. },
  26607. // 内部预览图片区域和选择图片按钮的区域宽度
  26608. width: {
  26609. type: [String, Number],
  26610. default: uni.$u.props.upload.width
  26611. },
  26612. // 内部预览图片区域和选择图片按钮的区域高度
  26613. height: {
  26614. type: [String, Number],
  26615. default: uni.$u.props.upload.height
  26616. },
  26617. // 是否在上传完成后展示预览图
  26618. previewImage: {
  26619. type: Boolean,
  26620. default: uni.$u.props.upload.previewImage
  26621. }
  26622. }
  26623. };
  26624. exports.default = _default;
  26625. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  26626. /***/ }),
  26627. /***/ 95:
  26628. /*!***************************************************************************!*\
  26629. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/formItem.js ***!
  26630. \***************************************************************************/
  26631. /*! no static exports found */
  26632. /***/ (function(module, exports, __webpack_require__) {
  26633. "use strict";
  26634. Object.defineProperty(exports, "__esModule", {
  26635. value: true
  26636. });
  26637. exports.default = void 0;
  26638. /*
  26639. * @Author : LQ
  26640. * @Description :
  26641. * @version : 1.0
  26642. * @Date : 2021-08-20 16:44:21
  26643. * @LastAuthor : LQ
  26644. * @lastTime : 2021-08-20 17:04:32
  26645. * @FilePath : /u-view2.0/uview-ui/libs/config/props/formItem.js
  26646. */
  26647. var _default = {
  26648. // formItem 组件
  26649. formItem: {
  26650. label: '',
  26651. prop: '',
  26652. borderBottom: '',
  26653. labelPosition: '',
  26654. labelWidth: '',
  26655. rightIcon: '',
  26656. leftIcon: '',
  26657. required: false,
  26658. leftIconStyle: ''
  26659. }
  26660. };
  26661. exports.default = _default;
  26662. /***/ }),
  26663. /***/ 96:
  26664. /*!**********************************************************************!*\
  26665. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/gap.js ***!
  26666. \**********************************************************************/
  26667. /*! no static exports found */
  26668. /***/ (function(module, exports, __webpack_require__) {
  26669. "use strict";
  26670. Object.defineProperty(exports, "__esModule", {
  26671. value: true
  26672. });
  26673. exports.default = void 0;
  26674. /*
  26675. * @Author : LQ
  26676. * @Description :
  26677. * @version : 1.0
  26678. * @Date : 2021-08-20 16:44:21
  26679. * @LastAuthor : LQ
  26680. * @lastTime : 2021-08-20 17:05:25
  26681. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gap.js
  26682. */
  26683. var _default = {
  26684. // gap组件
  26685. gap: {
  26686. bgColor: 'transparent',
  26687. height: 20,
  26688. marginTop: 0,
  26689. marginBottom: 0,
  26690. customStyle: {}
  26691. }
  26692. };
  26693. exports.default = _default;
  26694. /***/ }),
  26695. /***/ 97:
  26696. /*!***********************************************************************!*\
  26697. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/grid.js ***!
  26698. \***********************************************************************/
  26699. /*! no static exports found */
  26700. /***/ (function(module, exports, __webpack_require__) {
  26701. "use strict";
  26702. Object.defineProperty(exports, "__esModule", {
  26703. value: true
  26704. });
  26705. exports.default = void 0;
  26706. /*
  26707. * @Author : LQ
  26708. * @Description :
  26709. * @version : 1.0
  26710. * @Date : 2021-08-20 16:44:21
  26711. * @LastAuthor : LQ
  26712. * @lastTime : 2021-08-20 17:05:57
  26713. * @FilePath : /u-view2.0/uview-ui/libs/config/props/grid.js
  26714. */
  26715. var _default = {
  26716. // grid组件
  26717. grid: {
  26718. col: 3,
  26719. border: false,
  26720. align: 'left'
  26721. }
  26722. };
  26723. exports.default = _default;
  26724. /***/ }),
  26725. /***/ 98:
  26726. /*!***************************************************************************!*\
  26727. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/gridItem.js ***!
  26728. \***************************************************************************/
  26729. /*! no static exports found */
  26730. /***/ (function(module, exports, __webpack_require__) {
  26731. "use strict";
  26732. Object.defineProperty(exports, "__esModule", {
  26733. value: true
  26734. });
  26735. exports.default = void 0;
  26736. /*
  26737. * @Author : LQ
  26738. * @Description :
  26739. * @version : 1.0
  26740. * @Date : 2021-08-20 16:44:21
  26741. * @LastAuthor : LQ
  26742. * @lastTime : 2021-08-20 17:06:13
  26743. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gridItem.js
  26744. */
  26745. var _default = {
  26746. // grid-item组件
  26747. gridItem: {
  26748. name: null,
  26749. bgColor: 'transparent'
  26750. }
  26751. };
  26752. exports.default = _default;
  26753. /***/ }),
  26754. /***/ 99:
  26755. /*!***********************************************************************!*\
  26756. !*** D:/www/uniapp-project/wx-qhb/uview-ui/libs/config/props/icon.js ***!
  26757. \***********************************************************************/
  26758. /*! no static exports found */
  26759. /***/ (function(module, exports, __webpack_require__) {
  26760. "use strict";
  26761. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  26762. Object.defineProperty(exports, "__esModule", {
  26763. value: true
  26764. });
  26765. exports.default = void 0;
  26766. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 66));
  26767. /*
  26768. * @Author : LQ
  26769. * @Description :
  26770. * @version : 1.0
  26771. * @Date : 2021-08-20 16:44:21
  26772. * @LastAuthor : LQ
  26773. * @lastTime : 2021-08-20 18:00:14
  26774. * @FilePath : /u-view2.0/uview-ui/libs/config/props/icon.js
  26775. */
  26776. var color = _config.default.color;
  26777. var _default = {
  26778. // icon组件
  26779. icon: {
  26780. name: '',
  26781. color: color['u-content-color'],
  26782. size: '16px',
  26783. bold: false,
  26784. index: '',
  26785. hoverClass: '',
  26786. customPrefix: 'uicon',
  26787. label: '',
  26788. labelPos: 'right',
  26789. labelSize: '15px',
  26790. labelColor: color['u-content-color'],
  26791. space: '3px',
  26792. imgMode: '',
  26793. width: '',
  26794. height: '',
  26795. top: 0,
  26796. stop: false
  26797. }
  26798. };
  26799. exports.default = _default;
  26800. /***/ })
  26801. }]);
  26802. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map