vendor.js 664 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006
  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. /***/ 11:
  53. /*!***************************************************************!*\
  54. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  55. \***************************************************************/
  56. /*! no static exports found */
  57. /***/ (function(module, exports, __webpack_require__) {
  58. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  59. function _defineProperty(obj, key, value) {
  60. key = toPropertyKey(key);
  61. if (key in obj) {
  62. Object.defineProperty(obj, key, {
  63. value: value,
  64. enumerable: true,
  65. configurable: true,
  66. writable: true
  67. });
  68. } else {
  69. obj[key] = value;
  70. }
  71. return obj;
  72. }
  73. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  74. /***/ }),
  75. /***/ 117:
  76. /*!***************************************************!*\
  77. !*** E:/书嗨项目/book-hi/pages-pub/mixins/article.js ***!
  78. \***************************************************/
  79. /*! no static exports found */
  80. /***/ (function(module, exports, __webpack_require__) {
  81. "use strict";
  82. /* WEBPACK VAR INJECTION */(function(uni) {
  83. Object.defineProperty(exports, "__esModule", {
  84. value: true
  85. });
  86. exports.articleOpar = void 0;
  87. var articleOpar = {
  88. data: function data() {
  89. return {
  90. // 主题色
  91. appThemeColor: this.$appTheme.appThemeColor
  92. };
  93. },
  94. onload: function onload() {},
  95. methods: {
  96. // goAboutUs(){
  97. // // 去关于我们
  98. // // privacy_policy
  99. // this.$u.api.getArticleListAjax({
  100. // 'article_type':'about_us'
  101. // }).then(({data})=>{
  102. // })
  103. // },
  104. goArticleToId: function goArticleToId(id) {},
  105. goArticleDetail: function goArticleDetail(type, title) {
  106. var agreementParam = {
  107. param: {
  108. article_type: type
  109. },
  110. title: title
  111. };
  112. var url = "/pages-pub/richTextPage?option=".concat(encodeURIComponent(JSON.stringify(agreementParam)));
  113. uni.navigateTo({
  114. url: url
  115. });
  116. }
  117. }
  118. };
  119. exports.articleOpar = articleOpar;
  120. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  121. /***/ }),
  122. /***/ 118:
  123. /*!***************************************************!*\
  124. !*** E:/书嗨项目/book-hi/static/nav/mine-order-1.png ***!
  125. \***************************************************/
  126. /*! no static exports found */
  127. /***/ (function(module, exports) {
  128. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAMAAABiM0N1AAAAt1BMVEUAAAD//Ob/8tz/8t3/8dz/8t3/893/8t3/893/8t3/8dz/9N3/8tz/8dz/8dz/8t3/8t7/897/9d//8dr/7Nn/8d3/8Nz/8d3/8tz/8Nz/8t3/8d3/8d7/8Nv/8t7/8dz/fj7/lVL8cDL/pWr+0rL+k1D+k1v9dTf+xJz/mlv+ezv+mWf+yaT+vZT/hEf/jkv/277/iEr/7Nb+t4n+pHT/n2L/5s7/38L/gkL+q3j+zqv+sX/+n20mvih7AAAAH3RSTlMABuzn+9K2kXJk8zP48M2waz0jGw1bQ9/WvYh6XFVNUwGSfgAAAydJREFUWMO1mNd64jAQRuVKs02HUJKfZmOKgdCSbPL+z7UWAeQiC9vsnpvkJucbzUjjyRARlVK/qnVlw5C7WrVfqpA8NGtVExHMaq2ZzSK1dRVcVL0tpda0igoEKMVWOk9RxgPkYgpNXUMKtPqj5BSQkoIwVQ0LqbEayZ6OiQyYnSTPq4FMGK98TwmZKXHjQQ44MXUM5MDoxOplIhdmpHaShZxY4ftUQG4KoXeBJwi+Fg1PoDFPESE+vqchFuMb25GPM4uYivf+I4c90zCn8Z330YU/CCG3+AF9R0RjxuZXtOGHJCkIMY0ejDG6EjmcIl1E7Yg/2bO9iVyEaV9EukB0cH9PtnA9+5IivkinnqYqEAF7mmt7BxzYyWIilX6lakgWLWgRfQ8t09d4myhCzRdV4yKWny8AM/sAYG2PP5NFVV9kJokuZ/KoCcDOZgFxRCYhFUQJlsujIsraO30KRKhwGmyg6jMw9gHRmtN0+xzRiWooHwiwuXuWM0Tpx3ONwBWcuuv1mmbJ/3FkAc3joiqng4wD2D4ATjYLhy/SSFck+gJjzUSTuKhLZJHojADv94A4IpkYIpELxsdIJDKIKhLZCx/6PBzHYTWbcEQqKfNFjC0AJ5RqnqhMFLFo+zk6X9PDAuKIFGKJRFtadcc7jgJMuCKL6Ihi3/CjibOkxEX6g2/s7naonz2EFB5NRYeraPdwUqpAiHsV4QEVEq+/c8cD9puL5whg5TirK7t49Uk82yyx7/Th0yyt9v4vfuEp3KrpvOY/YhxoQ3O9y9858wkT8Zp/ky+KfuWPzMMRNYlPjytiMVHOK2bhiHqEMuSIGJtvz/V+5hOhaMgdImJ32bdE2HGHCDJAiON8vry/hzmzMDYIM+APWufNREy0ZcuthNHvfFyKNLHrWGRT9gue4EX65+Px8wM7Q9KQE02K/FMjIxdyg0ToqMiB2iEx2shBm3AoqZnjKREub2VkovyWuOZRkAGlIlggaBnq3vivKw1G/SXV+6qTh0hp1j5SukXUQLyIGrRIWqRhDwn0hlLWZZ1ejl0cXbCsE68PC7qllFW1rFh6Qbw+/At7I/nmavOoQAAAAABJRU5ErkJggg=="
  129. /***/ }),
  130. /***/ 119:
  131. /*!***************************************************!*\
  132. !*** E:/书嗨项目/book-hi/static/nav/mine-order-2.png ***!
  133. \***************************************************/
  134. /*! no static exports found */
  135. /***/ (function(module, exports) {
  136. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFwAAABcCAMAAADUMSJqAAABa1BMVEUTlP8AAAATlP8XmP8TlP8TlP8TlP8TlP8Zmv8TlP8pqf8zsv8TlP8TlP8TlP87vP8Ulv8TlP8coP8anf83tP8ko/8ioP8Ymf8/vv84s/8Xl/8VlP8TlP82tf8yrv8Zmv8TlP8TlP9Awf89vP8Xlf8anf8TlP8TlP87uP83s/8mpP89u/85tP8hpv8am/8ZmP85tv8TlP8TlP8iqP8hp/8fpf8fo/8cnv8zrf8fo/8xrP8dov8wrP8anf8hov8TlP8TlP8Wkv8eo/83tv8sqP8Ymv8Zm/8TlP84sP8fpP8Wk/8hp/84uf8Vkv8tqv8xs/8Ymf8YnP8/wP82rv8pqf8Wk/8hp/8Vkv83uf8hp/8doP8eov8cnv8bnP8fpP8amv85sv87tv85tP8ZmP8Xlv9Bwf8+vf8gpv84sP9Av/86tf8WlP89u/87uP88uf9Cwv8jq/9Cw/81rv8iqf8iqP8oqf8vrP8kpv8nrf+t85HEAAAAWnRSTlNNAClUSDQKPFZLd6BDFxXGVEagdsZsbFz986SkMrW1pCgd9PT0pCwO89F2/f3z8/PRIA/+/f359dHQxq+giGRAEPnet5+XayH67+2+vK+Ti39k4N3V1ciupqaw4SVMAAAELklEQVRo3qzMuQ3EIBAF0O8RDEICJHIHOMGxK7Cz7b+jTXd9cc0r4GGqcSykjYsKUNEZTcsx1SjngYzFhTUURnM/KzxSs+/PmSIKInFXvmpU0WtzzhrVNLflZNHAUkMeHBq5UJtndMhVORt0MVzOvUIn5Uv5hgGf9zxhSHrLCYPoOU8Ylp7yDQK2+9xDhL/LWUGE4pt8h5D9mmeIyec8QFA45Q6C3H9OEEW/OVuIsl9a6uUlgSiK4/jNNxmaPbSFBdlCtIxIe6IushahKLWIUhFHyMZhfE/mn9+5Z5rudbhn6Xc1qw8/hssJSLifqSo33qNS4QTDsrW9/+4/Si9MkV/gabUdnfLG4/Enb1AJMWz/wjTN0Wg41DRtOZlUlXoacXJ4KLpCDyQcbQ3qTqC3BDEd8QBT1UjJNnQocD4bMhYcz5WYogDi1FOpuey+wG3bMHpLsOf5KvFgEI8p8VeXLeGOPeP23HpgimKIU9cwNQVa2BKe0WybD59b1leOuo6AJwlczAbbjQPd02E22ASeRNxH4C5bwnE2DEebwn0cjzACF78EMwWOdlcHG2gKZxHAPRTuss2KwLndXVq23bkmDgzgQRo/cDrlOcvjmTPeLJ8vFApX0LMaCAJO3axNd2Vm541nebsi4nptsEu2roA+ZusKaA8j8rpLeBkGH9C2lBoA2k/h4dWKxXqCYeV6sfi4I/WkBoAOUvhJHxO3+8h5Lbdd/Yc/wU6n1Wo1m80bNQD0FokjLWxD4Po30mjTONAxEnfZEr5YsdsEDrSPxh377wgKHO0WxOk2iQNN4mjjbDyCAr+TbeicNGj8lzY7aEkgiqI4Tmq4SZECBysKwaBdUCHo4CJRMSEQKlqNGgkJ7gZGv36nyYfXgT/T5p0P8GM44/DevdpKZC8cPuqYSpSIca4lYy+uivry60Xh1o4ixEv8Qm9N3bKFB/VBt3s6OuuYSiLGRZ8gvq9bttIdvK7iZNYP+4f2HHDRZcT3lchWxmPZqrst2trzO/yIjhE3dSsrJd6aV+loxEUXEP+v/QW46CbiGTvebM2v29iIN/mwaHyKtvYMbMTv+ZhrHFaSZL4cRystPOaOyoRbewN1K8tliw/oAuGmkoQqkY14QXgVcWfrsdlmvIrXOeE7O966MwdswEvuIkq46EQ01p1mLRwvohXEf+l8G/AKX/6Frzai7bkA9npCl38eW94evnNt0co7jS08cIWPsunLsfbTCw1cPCpOn/PrTjOZ0qjIQ24tbOfXnT54jYdcfPQgbOfWLfsDZtycxULQG9785XqXc5cLl2EvgMWCv5WIz2WO1zWUxwXapc/Vn9elped1q/9Fsf8Vt//lvP+/FZSfuVM8IUL/qRzKJ6FoOH02GCb+yJiyHDyTrUBgRPQ08WCb4CZqan7wLipAWQ7Bwgk0lIWE5RAA29dE8CbA9lEAAAAASUVORK5CYII="
  137. /***/ }),
  138. /***/ 12:
  139. /*!**************************************************************!*\
  140. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  141. \**************************************************************/
  142. /*! no static exports found */
  143. /***/ (function(module, exports, __webpack_require__) {
  144. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  145. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
  146. function toPropertyKey(t) {
  147. var i = toPrimitive(t, "string");
  148. return "symbol" == _typeof(i) ? i : i + "";
  149. }
  150. module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  151. /***/ }),
  152. /***/ 120:
  153. /*!***************************************************!*\
  154. !*** E:/书嗨项目/book-hi/static/nav/mine-order-3.png ***!
  155. \***************************************************/
  156. /*! no static exports found */
  157. /***/ (function(module, exports) {
  158. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAMAAABiM0N1AAABQVBMVEUAAAD/5ub/49v/49v/49z/49z/5Nv/49v/5Nv/5Nz/5Nv/5Nz/49z/5N3/5d3/5tz/49r/3dn/49v/49v/5Nz/49v/5Nz/5Nv/5Nv/49v/49z/49z/5dv/4tz/49z/5Nz/49z/5tv/4tv/5Nv/5Nz/6eH/5Nv/5dz/5Nv/4tv/5d7/4tv/497/493/4tv/49v/XGT8SVb/cW7yPU/+WmP8Slf8TVn4g4r9dn31X2v/Ymf+pqb/oJ/9V2H8cHj+087/b238Ul39tbT9sK/9raz9gob+W2T9VF/6R1X/39j/2tP8mZz6iY79Y2z3Q1L+0Mv+lpj9j5L9hYr9Z3D+b27/amryQlP+y8b9xcH+ubf7qqv4kJT3fIT8eYD2bHf8X2rzSlrzRVb+zMf9bnX8UFv+zcn+vrv2cnz1ZHD1X2zzTl2unqEIAAAAL3RSTlMABvz45lvz8OvSzrWwcT0yGw3skv3n39bMvbiPiHRtamVkYlVCIvSSenpNRjYlIw5I2gUAAAOpSURBVFjDrdhpV9NAGIbhNynd9yLIvon78hgTW0RK7UKhRUBAERAB9+X//wAnYVqYSSZtWq8PQDiH+0xmziRDyU92aSaVGI+FQrHxRGpmKUuDyM2lopBEU3M5CkQLT+nwpE+FNepXfnYEPkZm89SXdAE9FNLUWyaOPsQzvSZnFH0a9Z2quxPo28RdUlqOIoDoMincCSGQ0B3ytHALAd1a8BwP6wQueYxpOYQBhJZd6xXFQKLS2mkTGNCEJoRGMbBRYV9gCBm6FscQ4tSVxlDSxOULGEqh83yahWDt/fsX1z48d1g7r6E0y5defB5uvLjpzfOuDfUzUyNbWBzPC8Fqt9M0GlAJk21K+B27LenGuLJxCJUpYnK6FJJvjNs0ilDR7bfUHARCZ/VGqGi8hNIcC6XUodXmYTdlGX6hFAtJ216Y6BW0djp35huKEmUhEu5rDVjp3hkrMdVteMnSkiLEOjzE16xjqwQPSzQDkbDuPMQHZFS/Vi6MLdOrNCPPNTrDEUJ8QOvAO2PX9CqlKAERz4gh66UQ8iglaFwOfbAz3147jnnou3EdMm2nkIxTDKLnjuut/s1Z+m6ovlEqnV2a55DEKASRtNNrFp8gHnLUzVeQhEiXQ1csrulMEFdt87o7pFNEDol4hysfvGVKl+5QhMZ6hMq8w+2aNndojBK+oeamITIVoQQl/UJWUersqkJJmlaHrKoh2TJVoWlaVIWs8qY4PcXqy11laNH1GOms/ruP7OJkpVP5vl1h18dnqlCW5PVvWtZmtbjzg1/Wr0Z1WOlcH3mGIkTybDt/WK4AtYOVfTaqhn190UZrbf380x5w6oR+u+aaaB6CdYNpABvOtLAf7Ls7QfvQnugvNeDc9Nj+8+7X0U97KwBrfIK/omYYTdZlHbtUQY19O/ro8TqiSQgaReMzcGFc2QfsL63Owm+jxXJ1iCb5K1u0t13nU8Ww5uf1BvZMrgSU2AJKwsIhQlDmoQM4Wkc89MnnEEEP4faWh0749S8eOoaHh52DVgwu7R0+IG7vr3pAsbzf0a+9bxVvHq4qZ5dHf079j36k3cYQbmv/73j8/w/spMUxoLhGgqcFDKTwlCSPB/s36zG5hHUEpofJw6IeuLNInh7dQyD3HpHCkzEEMPaElJ7FA6z7M/Kh3Uef7mvkL3O7r/2VoZ60dAw9xNIa9SP/wP+DqAf5AB+NTao+GpsMaxRIbj4ZgSSSnM/RILIL08nESETXIyOJ5PRClnz8A9tB/5TOngjEAAAAAElFTkSuQmCC"
  159. /***/ }),
  160. /***/ 121:
  161. /*!***************************************************!*\
  162. !*** E:/书嗨项目/book-hi/static/nav/mine-order-4.png ***!
  163. \***************************************************/
  164. /*! no static exports found */
  165. /***/ (function(module, exports) {
  166. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFwAAABcCAMAAADUMSJqAAABI1BMVEUauocAAAAauocauocauocy0Z4auocauocauocauocauocbypIauocauocauodG5LEauocauoc+3qoi05oauodC4a4dzpUdzZU826gj05kbyJAhxpEavYkauocj1ZwbzpQjy5UdwY0auodM6bY42KQe0JZI5bM826ggy5QhxZAbv4sKv4Qw1aEMvoQx0Z4azJM726hM6bcl1p1M6bcLvYRE4a8z058MvYRB4K093akYzJIUyY4d0Zc726gbz5UQxosf0phI5rMWyo9G5bIOxIlK6LVA36sNw4g42KUZzZNC4a4LwYZF47ARxow+3qs52qYSyI1E4q8i1JsJwIUg05pL6bYWy5BN6rgj1pw216NP7Lkm2J4p26Es1Z8w16Er3aMo1JxHLd+YAAAAOHRSTlNNAEtIKno0Fwo8KKYfREHSMhXS0g7S0MbSvJFpVA/h4XpiEOLd2sGNg3Nb4dS7pu/p5+fbxLOmpl5Z+4cAAAPxSURBVGjerMzJDcMwDATADUmIlCAZNuAK3H+R+Sa+dHEKGHxaHDmFuDADzEsMKR+fFvV8S5FwQTFts7mujEe86nhuUlBRxIbyPRAaUNi7cwtoRcH6ciF0IOnItaBT0dZcMECacosYEq2eK2MQay3PhGGU3/OEKektF0yS5zxhWnrKMxzk+1wJDkjvcmO4YLvJFzhZrrnAjZxzhSM95QWOyn8ucCW/uRFc0Zd1ultJIIrCMLxqVDKjtAxTSQJBPeikIvAnQxNlFFHcTDnO+Hf/V9G3Z2I02R8S9J4OPAxrrX22hyfkn0vs8KyYq1bKnjdHn6iPut1ur9cbj2ejUX2zWS5L+ZqYy4Y4//EXDzG7Dhv5eeG/LnzilQO7iwI6sAcBjVJ86kJPpQr6qRqnPaDas++6BXowGrfYj5eLcqRiyVXmwVgap4+z7M1f5Wh5pUr0mQJPizGMO34cTymnI8bSwNlUBJu8iroNug670z3ehDkdglsazwjF9ZUcngnuZDBpNBo+VqmUA/uNABngMYofXvcMNOyJtqduZDM8Bjwp5kwvB3Rgt9vrnf1OgCTwU4YTu6Httg9b07AZfnoi90JxNm7YtopsioO+EFKf29PpSjmRPSQA6HMhsVVq2w7skB42CQA6ISS2Sm2v9m2Gg04Kia0Stq1AR/YXAUBfComsErS9/WV/EAC0JSSyStjryG5qm+IWx82rhL1QnVytADq0Wy2O08yrhL3t5PD5ZySwgf858yoX382aTUvDQBCGS+nFntKLwdYahPRQa9WDKGggHgQPEiikB4Mk+P9/hTNu42yXvGMtHegc2ttDmHdn52urOovP6aoV9goi8Ld3Ssns04Bd7OHzUErHbhx7IyWhVwWG46PoSXmXErv97qtf9rNj5/Ao4iDypJz3HgI2oTfsPIfwExz+4hKC924IXX1ls8stdsHsVxz+QwgXKdMJ0atm3c2G8CG+cn0pU4ZmWcJ/npSO/QavXJwstqLyml2dTOjHl5LQxIbwKU5zXlRW9QsfQGb7Ujo2hPeVBN1GZdX8XLBE99mFsN9hgsalBaEJXH+0uTJGbAQfKEXRpyt7JFfeJoGUDg3hI6WcIzSzJZ+FUrbsEgS/VoiG7EBKYQN4pJXQF8yWfNbpbkaXC6WERn4525FdLoFXtLZlvBb2E5CyZANti95wzf6Wku0eNVx6qxhjKYX9iFtFvckdx4nu7sVyjppcy/bcdLBgOhKxH+bYj6HYosOxI8vRn+nQ0nLcajkothxxWw7nLdcKlgsRy1WO5RLKcH12DIs/s5UlXrZiU5atyKY7r4mPbcFtuJoXGw26HxUM9npUgJ9D9An6n+cQ3yFXqhLF9V3eAAAAAElFTkSuQmCC"
  167. /***/ }),
  168. /***/ 122:
  169. /*!***************************************************!*\
  170. !*** E:/书嗨项目/book-hi/static/nav/mine-order-5.png ***!
  171. \***************************************************/
  172. /*! no static exports found */
  173. /***/ (function(module, exports) {
  174. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFwAAABcCAMAAADUMSJqAAAA21BMVEX/AAAAAAD/AAD/AAD/AAD/AAD/AAD/MDD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AQH/AAD/Dw//ODj/AAD/MzP/KSn/Hx//AAD/Pz//AAD/PT3/AAD/AAD/Nzf/AAD/JSX/AwP/AAD/AAD/AAD/PDz/AAD/NTX/AAD/Li7/AAD/AAD/AAD/HBz/AAD/AAD/Bgb/AAD/Pz//EhL/FBT/AAD/Cgr/AAD/QED/Jyf/BAT/Ly//EhL/GRn/DQ3/Ojr/NTX/Li585fNtAAAAPnRSTlNSAFAtK001qUCpSxkPFkUMCjd9SCIfBLyTY83dtZF+ZPzt6uTPxcOIevzx6eTWvbKjnpuKdW5oXxX22amiW/M4k3UAAAM9SURBVGjezdppU+IwGMDxhyRNL1pgQS7Ba3XVdb3PvUoB0f3+n2hrKaKk6ZOWZob/jC9885tMKKRNChWVqluMW75jABiOb3G2Va2ohONPzCIgRCz2tC7ucgOkGdwtjtepA0gOrRfCqw0CCpFGNTdeawiMnK/lwtuUQI4IbavjXhNy1vRUcQoFokp43YJCWXUcdw0omOFieItA4UgrG2ewViwLp7BmVI4zWDsmw1tQQq103CVl4MRNw2sGlJJRS8F9KClfxCmUFl3FPSgx7zPebpaJN9sJnn2F75ijjMwT+cQs8ZrsKrwYZdaRXY+1DzgHsd6xaZp7mfbrqW3bt7sgxpd4FcQGC6F/LJmxwSgM4r6BWDXGJQM/Gi3qgaTewTSYt5029ASvizM+XH5oIM0cB0ldcdbrCc4kA8dGPolY6cTQBHdA6GCJ94fp9rD//I7vg5Azx10QG6k0Dt4DMTfGeUE8DDJxHuNGQXyWjRtvuAfF8EmQjYMX4awgPsVwFuFWMXwSYLgV4aQYPkNxUoEqFMLDAMUjeksN3zM//fsyxvGIZkp4f8cUPk0UZ8AV8L0rAFOYFBTnYOF4/w4+9XfHPlTBLfAx/OcVpPTnFMd9cBD86A7S+4riDhjYyAeP6fguikc0Ouc/JIvoDYYDjkcNegBm0m/b7s7X+wccN3A8GvxwcSnGq8/Z9eqsS2gHwZMuYvxl+nG57yC4g1+KSQfR3+sssQ6VcF/+JRILxwn1vas0LRZwVfzll5108wBv3eNff6aIh8KNTwfDmeJP7mR2Bit18Z9cpcViMhVvqh5VFgt8mQvn18iJMG4EJ+gCPXl+v0Q6XxZdd1R+cq3MW4vXMJJl4TiT3RT9C5+nCIzinux2To3Eb+cqXA/OY9zVg7vJzb8O3KnMcaoDp8IDV3k4qcsfFbfz2fsCwDMeci/z4ecZD7ni0O/z4bewUiNzY8HOY9vixkL2lsju5bbifJ+LGyNU62aOzm0ojRtoXOfWn9ZNS53brTo3inVucevcnNd5rKDzQETnUY7OQyiNx2ebcPBX5MhS12ErNGqbdEysfsC9iUfz8zya/lIB9SpYyq9DNCzfIRHq+FZD9XWI/5N81+wARwjKAAAAAElFTkSuQmCC"
  175. /***/ }),
  176. /***/ 13:
  177. /*!*******************************************************!*\
  178. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  179. \*******************************************************/
  180. /*! no static exports found */
  181. /***/ (function(module, exports) {
  182. function _typeof(o) {
  183. "@babel/helpers - typeof";
  184. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
  185. return typeof o;
  186. } : function (o) {
  187. return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
  188. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
  189. }
  190. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  191. /***/ }),
  192. /***/ 14:
  193. /*!************************************************************!*\
  194. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  195. \************************************************************/
  196. /*! no static exports found */
  197. /***/ (function(module, exports, __webpack_require__) {
  198. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  199. function toPrimitive(t, r) {
  200. if ("object" != _typeof(t) || !t) return t;
  201. var e = t[Symbol.toPrimitive];
  202. if (void 0 !== e) {
  203. var i = e.call(t, r || "default");
  204. if ("object" != _typeof(i)) return i;
  205. throw new TypeError("@@toPrimitive must return a primitive value.");
  206. }
  207. return ("string" === r ? String : Number)(t);
  208. }
  209. module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  210. /***/ }),
  211. /***/ 15:
  212. /*!**********************************************************!*\
  213. !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  214. \**********************************************************/
  215. /*! no static exports found */
  216. /***/ (function(module, exports, __webpack_require__) {
  217. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  218. var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 17);
  219. function _construct(t, e, r) {
  220. if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
  221. var o = [null];
  222. o.push.apply(o, e);
  223. var p = new (t.bind.apply(t, o))();
  224. return r && setPrototypeOf(p, r.prototype), p;
  225. }
  226. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  227. /***/ }),
  228. /***/ 16:
  229. /*!***************************************************************!*\
  230. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  231. \***************************************************************/
  232. /*! no static exports found */
  233. /***/ (function(module, exports) {
  234. function _setPrototypeOf(o, p) {
  235. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  236. o.__proto__ = p;
  237. return o;
  238. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  239. return _setPrototypeOf(o, p);
  240. }
  241. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  242. /***/ }),
  243. /***/ 17:
  244. /*!*************************************************************************!*\
  245. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  246. \*************************************************************************/
  247. /*! no static exports found */
  248. /***/ (function(module, exports) {
  249. function _isNativeReflectConstruct() {
  250. try {
  251. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  252. } catch (t) {}
  253. return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() {
  254. return !!t;
  255. }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
  256. }
  257. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  258. /***/ }),
  259. /***/ 18:
  260. /*!******************************************************************!*\
  261. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  262. \******************************************************************/
  263. /*! no static exports found */
  264. /***/ (function(module, exports, __webpack_require__) {
  265. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
  266. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  267. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  268. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
  269. function _toConsumableArray(arr) {
  270. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  271. }
  272. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  273. /***/ }),
  274. /***/ 19:
  275. /*!******************************************************************!*\
  276. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  277. \******************************************************************/
  278. /*! no static exports found */
  279. /***/ (function(module, exports, __webpack_require__) {
  280. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  281. function _arrayWithoutHoles(arr) {
  282. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  283. }
  284. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  285. /***/ }),
  286. /***/ 2:
  287. /*!************************************************************!*\
  288. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  289. \************************************************************/
  290. /*! no static exports found */
  291. /***/ (function(module, exports, __webpack_require__) {
  292. "use strict";
  293. /* WEBPACK VAR INJECTION */(function(wx, global) {
  294. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  295. Object.defineProperty(exports, "__esModule", {
  296. value: true
  297. });
  298. exports.createApp = createApp;
  299. exports.createComponent = createComponent;
  300. exports.createPage = createPage;
  301. exports.createPlugin = createPlugin;
  302. exports.createSubpackageApp = createSubpackageApp;
  303. exports.default = void 0;
  304. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  305. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  306. var _construct2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/construct */ 15));
  307. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  308. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  309. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 22);
  310. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  311. 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; }
  312. 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; }
  313. var realAtob;
  314. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  315. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  316. if (typeof atob !== 'function') {
  317. realAtob = function realAtob(str) {
  318. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  319. if (!b64re.test(str)) {
  320. throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  321. }
  322. // Adding the padding if missing, for semplicity
  323. str += '=='.slice(2 - (str.length & 3));
  324. var bitmap;
  325. var result = '';
  326. var r1;
  327. var r2;
  328. var i = 0;
  329. for (; i < str.length;) {
  330. 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++)));
  331. 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);
  332. }
  333. return result;
  334. };
  335. } else {
  336. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  337. realAtob = atob;
  338. }
  339. function b64DecodeUnicode(str) {
  340. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  341. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  342. }).join(''));
  343. }
  344. function getCurrentUserInfo() {
  345. var token = wx.getStorageSync('uni_id_token') || '';
  346. var tokenArr = token.split('.');
  347. if (!token || tokenArr.length !== 3) {
  348. return {
  349. uid: null,
  350. role: [],
  351. permission: [],
  352. tokenExpired: 0
  353. };
  354. }
  355. var userInfo;
  356. try {
  357. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  358. } catch (error) {
  359. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  360. }
  361. userInfo.tokenExpired = userInfo.exp * 1000;
  362. delete userInfo.exp;
  363. delete userInfo.iat;
  364. return userInfo;
  365. }
  366. function uniIdMixin(Vue) {
  367. Vue.prototype.uniIDHasRole = function (roleId) {
  368. var _getCurrentUserInfo = getCurrentUserInfo(),
  369. role = _getCurrentUserInfo.role;
  370. return role.indexOf(roleId) > -1;
  371. };
  372. Vue.prototype.uniIDHasPermission = function (permissionId) {
  373. var _getCurrentUserInfo2 = getCurrentUserInfo(),
  374. permission = _getCurrentUserInfo2.permission;
  375. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  376. };
  377. Vue.prototype.uniIDTokenValid = function () {
  378. var _getCurrentUserInfo3 = getCurrentUserInfo(),
  379. tokenExpired = _getCurrentUserInfo3.tokenExpired;
  380. return tokenExpired > Date.now();
  381. };
  382. }
  383. var _toString = Object.prototype.toString;
  384. var hasOwnProperty = Object.prototype.hasOwnProperty;
  385. function isFn(fn) {
  386. return typeof fn === 'function';
  387. }
  388. function isStr(str) {
  389. return typeof str === 'string';
  390. }
  391. function isObject(obj) {
  392. return obj !== null && (0, _typeof2.default)(obj) === 'object';
  393. }
  394. function isPlainObject(obj) {
  395. return _toString.call(obj) === '[object Object]';
  396. }
  397. function hasOwn(obj, key) {
  398. return hasOwnProperty.call(obj, key);
  399. }
  400. function noop() {}
  401. /**
  402. * Create a cached version of a pure function.
  403. */
  404. function cached(fn) {
  405. var cache = Object.create(null);
  406. return function cachedFn(str) {
  407. var hit = cache[str];
  408. return hit || (cache[str] = fn(str));
  409. };
  410. }
  411. /**
  412. * Camelize a hyphen-delimited string.
  413. */
  414. var camelizeRE = /-(\w)/g;
  415. var camelize = cached(function (str) {
  416. return str.replace(camelizeRE, function (_, c) {
  417. return c ? c.toUpperCase() : '';
  418. });
  419. });
  420. function sortObject(obj) {
  421. var sortObj = {};
  422. if (isPlainObject(obj)) {
  423. Object.keys(obj).sort().forEach(function (key) {
  424. sortObj[key] = obj[key];
  425. });
  426. }
  427. return !Object.keys(sortObj) ? obj : sortObj;
  428. }
  429. var HOOKS = ['invoke', 'success', 'fail', 'complete', 'returnValue'];
  430. var globalInterceptors = {};
  431. var scopedInterceptors = {};
  432. function mergeHook(parentVal, childVal) {
  433. var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal;
  434. return res ? dedupeHooks(res) : res;
  435. }
  436. function dedupeHooks(hooks) {
  437. var res = [];
  438. for (var i = 0; i < hooks.length; i++) {
  439. if (res.indexOf(hooks[i]) === -1) {
  440. res.push(hooks[i]);
  441. }
  442. }
  443. return res;
  444. }
  445. function removeHook(hooks, hook) {
  446. var index = hooks.indexOf(hook);
  447. if (index !== -1) {
  448. hooks.splice(index, 1);
  449. }
  450. }
  451. function mergeInterceptorHook(interceptor, option) {
  452. Object.keys(option).forEach(function (hook) {
  453. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  454. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  455. }
  456. });
  457. }
  458. function removeInterceptorHook(interceptor, option) {
  459. if (!interceptor || !option) {
  460. return;
  461. }
  462. Object.keys(option).forEach(function (hook) {
  463. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  464. removeHook(interceptor[hook], option[hook]);
  465. }
  466. });
  467. }
  468. function addInterceptor(method, option) {
  469. if (typeof method === 'string' && isPlainObject(option)) {
  470. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  471. } else if (isPlainObject(method)) {
  472. mergeInterceptorHook(globalInterceptors, method);
  473. }
  474. }
  475. function removeInterceptor(method, option) {
  476. if (typeof method === 'string') {
  477. if (isPlainObject(option)) {
  478. removeInterceptorHook(scopedInterceptors[method], option);
  479. } else {
  480. delete scopedInterceptors[method];
  481. }
  482. } else if (isPlainObject(method)) {
  483. removeInterceptorHook(globalInterceptors, method);
  484. }
  485. }
  486. function wrapperHook(hook, params) {
  487. return function (data) {
  488. return hook(data, params) || data;
  489. };
  490. }
  491. function isPromise(obj) {
  492. return !!obj && ((0, _typeof2.default)(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  493. }
  494. function queue(hooks, data, params) {
  495. var promise = false;
  496. for (var i = 0; i < hooks.length; i++) {
  497. var hook = hooks[i];
  498. if (promise) {
  499. promise = Promise.resolve(wrapperHook(hook, params));
  500. } else {
  501. var res = hook(data, params);
  502. if (isPromise(res)) {
  503. promise = Promise.resolve(res);
  504. }
  505. if (res === false) {
  506. return {
  507. then: function then() {}
  508. };
  509. }
  510. }
  511. }
  512. return promise || {
  513. then: function then(callback) {
  514. return callback(data);
  515. }
  516. };
  517. }
  518. function wrapperOptions(interceptor) {
  519. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  520. ['success', 'fail', 'complete'].forEach(function (name) {
  521. if (Array.isArray(interceptor[name])) {
  522. var oldCallback = options[name];
  523. options[name] = function callbackInterceptor(res) {
  524. queue(interceptor[name], res, options).then(function (res) {
  525. /* eslint-disable no-mixed-operators */
  526. return isFn(oldCallback) && oldCallback(res) || res;
  527. });
  528. };
  529. }
  530. });
  531. return options;
  532. }
  533. function wrapperReturnValue(method, returnValue) {
  534. var returnValueHooks = [];
  535. if (Array.isArray(globalInterceptors.returnValue)) {
  536. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(globalInterceptors.returnValue));
  537. }
  538. var interceptor = scopedInterceptors[method];
  539. if (interceptor && Array.isArray(interceptor.returnValue)) {
  540. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(interceptor.returnValue));
  541. }
  542. returnValueHooks.forEach(function (hook) {
  543. returnValue = hook(returnValue) || returnValue;
  544. });
  545. return returnValue;
  546. }
  547. function getApiInterceptorHooks(method) {
  548. var interceptor = Object.create(null);
  549. Object.keys(globalInterceptors).forEach(function (hook) {
  550. if (hook !== 'returnValue') {
  551. interceptor[hook] = globalInterceptors[hook].slice();
  552. }
  553. });
  554. var scopedInterceptor = scopedInterceptors[method];
  555. if (scopedInterceptor) {
  556. Object.keys(scopedInterceptor).forEach(function (hook) {
  557. if (hook !== 'returnValue') {
  558. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  559. }
  560. });
  561. }
  562. return interceptor;
  563. }
  564. function invokeApi(method, api, options) {
  565. for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
  566. params[_key - 3] = arguments[_key];
  567. }
  568. var interceptor = getApiInterceptorHooks(method);
  569. if (interceptor && Object.keys(interceptor).length) {
  570. if (Array.isArray(interceptor.invoke)) {
  571. var res = queue(interceptor.invoke, options);
  572. return res.then(function (options) {
  573. // 重新访问 getApiInterceptorHooks, 允许 invoke 中再次调用 addInterceptor,removeInterceptor
  574. return api.apply(void 0, [wrapperOptions(getApiInterceptorHooks(method), options)].concat(params));
  575. });
  576. } else {
  577. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  578. }
  579. }
  580. return api.apply(void 0, [options].concat(params));
  581. }
  582. var promiseInterceptor = {
  583. returnValue: function returnValue(res) {
  584. if (!isPromise(res)) {
  585. return res;
  586. }
  587. return new Promise(function (resolve, reject) {
  588. res.then(function (res) {
  589. if (res[0]) {
  590. reject(res[0]);
  591. } else {
  592. resolve(res[1]);
  593. }
  594. });
  595. });
  596. }
  597. };
  598. 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/;
  599. var CONTEXT_API_RE = /^create|Manager$/;
  600. // Context例外情况
  601. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  602. // 同步例外情况
  603. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  604. var CALLBACK_API_RE = /^on|^off/;
  605. function isContextApi(name) {
  606. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  607. }
  608. function isSyncApi(name) {
  609. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  610. }
  611. function isCallbackApi(name) {
  612. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  613. }
  614. function handlePromise(promise) {
  615. return promise.then(function (data) {
  616. return [null, data];
  617. }).catch(function (err) {
  618. return [err];
  619. });
  620. }
  621. function shouldPromise(name) {
  622. if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) {
  623. return false;
  624. }
  625. return true;
  626. }
  627. /* eslint-disable no-extend-native */
  628. if (!Promise.prototype.finally) {
  629. Promise.prototype.finally = function (callback) {
  630. var promise = this.constructor;
  631. return this.then(function (value) {
  632. return promise.resolve(callback()).then(function () {
  633. return value;
  634. });
  635. }, function (reason) {
  636. return promise.resolve(callback()).then(function () {
  637. throw reason;
  638. });
  639. });
  640. };
  641. }
  642. function promisify(name, api) {
  643. if (!shouldPromise(name) || !isFn(api)) {
  644. return api;
  645. }
  646. return function promiseApi() {
  647. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  648. for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  649. params[_key2 - 1] = arguments[_key2];
  650. }
  651. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  652. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  653. }
  654. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  655. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  656. success: resolve,
  657. fail: reject
  658. })].concat(params));
  659. })));
  660. };
  661. }
  662. var EPS = 1e-4;
  663. var BASE_DEVICE_WIDTH = 750;
  664. var isIOS = false;
  665. var deviceWidth = 0;
  666. var deviceDPR = 0;
  667. function checkDeviceWidth() {
  668. var _wx$getSystemInfoSync = wx.getSystemInfoSync(),
  669. platform = _wx$getSystemInfoSync.platform,
  670. pixelRatio = _wx$getSystemInfoSync.pixelRatio,
  671. windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  672. deviceWidth = windowWidth;
  673. deviceDPR = pixelRatio;
  674. isIOS = platform === 'ios';
  675. }
  676. function upx2px(number, newDeviceWidth) {
  677. if (deviceWidth === 0) {
  678. checkDeviceWidth();
  679. }
  680. number = Number(number);
  681. if (number === 0) {
  682. return 0;
  683. }
  684. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  685. if (result < 0) {
  686. result = -result;
  687. }
  688. result = Math.floor(result + EPS);
  689. if (result === 0) {
  690. if (deviceDPR === 1 || !isIOS) {
  691. result = 1;
  692. } else {
  693. result = 0.5;
  694. }
  695. }
  696. return number < 0 ? -result : result;
  697. }
  698. var LOCALE_ZH_HANS = 'zh-Hans';
  699. var LOCALE_ZH_HANT = 'zh-Hant';
  700. var LOCALE_EN = 'en';
  701. var LOCALE_FR = 'fr';
  702. var LOCALE_ES = 'es';
  703. var messages = {};
  704. var locale;
  705. {
  706. locale = normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  707. }
  708. function initI18nMessages() {
  709. if (!isEnableLocale()) {
  710. return;
  711. }
  712. var localeKeys = Object.keys(__uniConfig.locales);
  713. if (localeKeys.length) {
  714. localeKeys.forEach(function (locale) {
  715. var curMessages = messages[locale];
  716. var userMessages = __uniConfig.locales[locale];
  717. if (curMessages) {
  718. Object.assign(curMessages, userMessages);
  719. } else {
  720. messages[locale] = userMessages;
  721. }
  722. });
  723. }
  724. }
  725. initI18nMessages();
  726. var i18n = (0, _uniI18n.initVueI18n)(locale, {});
  727. var t = i18n.t;
  728. var i18nMixin = i18n.mixin = {
  729. beforeCreate: function beforeCreate() {
  730. var _this = this;
  731. var unwatch = i18n.i18n.watchLocale(function () {
  732. _this.$forceUpdate();
  733. });
  734. this.$once('hook:beforeDestroy', function () {
  735. unwatch();
  736. });
  737. },
  738. methods: {
  739. $$t: function $$t(key, values) {
  740. return t(key, values);
  741. }
  742. }
  743. };
  744. var setLocale = i18n.setLocale;
  745. var getLocale = i18n.getLocale;
  746. function initAppLocale(Vue, appVm, locale) {
  747. var state = Vue.observable({
  748. locale: locale || i18n.getLocale()
  749. });
  750. var localeWatchers = [];
  751. appVm.$watchLocale = function (fn) {
  752. localeWatchers.push(fn);
  753. };
  754. Object.defineProperty(appVm, '$locale', {
  755. get: function get() {
  756. return state.locale;
  757. },
  758. set: function set(v) {
  759. state.locale = v;
  760. localeWatchers.forEach(function (watch) {
  761. return watch(v);
  762. });
  763. }
  764. });
  765. }
  766. function isEnableLocale() {
  767. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  768. }
  769. function include(str, parts) {
  770. return !!parts.find(function (part) {
  771. return str.indexOf(part) !== -1;
  772. });
  773. }
  774. function startsWith(str, parts) {
  775. return parts.find(function (part) {
  776. return str.indexOf(part) === 0;
  777. });
  778. }
  779. function normalizeLocale(locale, messages) {
  780. if (!locale) {
  781. return;
  782. }
  783. locale = locale.trim().replace(/_/g, '-');
  784. if (messages && messages[locale]) {
  785. return locale;
  786. }
  787. locale = locale.toLowerCase();
  788. if (locale === 'chinese') {
  789. // 支付宝
  790. return LOCALE_ZH_HANS;
  791. }
  792. if (locale.indexOf('zh') === 0) {
  793. if (locale.indexOf('-hans') > -1) {
  794. return LOCALE_ZH_HANS;
  795. }
  796. if (locale.indexOf('-hant') > -1) {
  797. return LOCALE_ZH_HANT;
  798. }
  799. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  800. return LOCALE_ZH_HANT;
  801. }
  802. return LOCALE_ZH_HANS;
  803. }
  804. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  805. if (lang) {
  806. return lang;
  807. }
  808. }
  809. // export function initI18n() {
  810. // const localeKeys = Object.keys(__uniConfig.locales || {})
  811. // if (localeKeys.length) {
  812. // localeKeys.forEach((locale) =>
  813. // i18n.add(locale, __uniConfig.locales[locale])
  814. // )
  815. // }
  816. // }
  817. function getLocale$1() {
  818. // 优先使用 $locale
  819. if (isFn(getApp)) {
  820. var app = getApp({
  821. allowDefault: true
  822. });
  823. if (app && app.$vm) {
  824. return app.$vm.$locale;
  825. }
  826. }
  827. return normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  828. }
  829. function setLocale$1(locale) {
  830. var app = isFn(getApp) ? getApp() : false;
  831. if (!app) {
  832. return false;
  833. }
  834. var oldLocale = app.$vm.$locale;
  835. if (oldLocale !== locale) {
  836. app.$vm.$locale = locale;
  837. onLocaleChangeCallbacks.forEach(function (fn) {
  838. return fn({
  839. locale: locale
  840. });
  841. });
  842. return true;
  843. }
  844. return false;
  845. }
  846. var onLocaleChangeCallbacks = [];
  847. function onLocaleChange(fn) {
  848. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  849. onLocaleChangeCallbacks.push(fn);
  850. }
  851. }
  852. if (typeof global !== 'undefined') {
  853. global.getLocale = getLocale$1;
  854. }
  855. var interceptors = {
  856. promiseInterceptor: promiseInterceptor
  857. };
  858. var baseApi = /*#__PURE__*/Object.freeze({
  859. __proto__: null,
  860. upx2px: upx2px,
  861. getLocale: getLocale$1,
  862. setLocale: setLocale$1,
  863. onLocaleChange: onLocaleChange,
  864. addInterceptor: addInterceptor,
  865. removeInterceptor: removeInterceptor,
  866. interceptors: interceptors
  867. });
  868. function findExistsPageIndex(url) {
  869. var pages = getCurrentPages();
  870. var len = pages.length;
  871. while (len--) {
  872. var page = pages[len];
  873. if (page.$page && page.$page.fullPath === url) {
  874. return len;
  875. }
  876. }
  877. return -1;
  878. }
  879. var redirectTo = {
  880. name: function name(fromArgs) {
  881. if (fromArgs.exists === 'back' && fromArgs.delta) {
  882. return 'navigateBack';
  883. }
  884. return 'redirectTo';
  885. },
  886. args: function args(fromArgs) {
  887. if (fromArgs.exists === 'back' && fromArgs.url) {
  888. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  889. if (existsPageIndex !== -1) {
  890. var delta = getCurrentPages().length - 1 - existsPageIndex;
  891. if (delta > 0) {
  892. fromArgs.delta = delta;
  893. }
  894. }
  895. }
  896. }
  897. };
  898. var previewImage = {
  899. args: function args(fromArgs) {
  900. var currentIndex = parseInt(fromArgs.current);
  901. if (isNaN(currentIndex)) {
  902. return;
  903. }
  904. var urls = fromArgs.urls;
  905. if (!Array.isArray(urls)) {
  906. return;
  907. }
  908. var len = urls.length;
  909. if (!len) {
  910. return;
  911. }
  912. if (currentIndex < 0) {
  913. currentIndex = 0;
  914. } else if (currentIndex >= len) {
  915. currentIndex = len - 1;
  916. }
  917. if (currentIndex > 0) {
  918. fromArgs.current = urls[currentIndex];
  919. fromArgs.urls = urls.filter(function (item, index) {
  920. return index < currentIndex ? item !== urls[currentIndex] : true;
  921. });
  922. } else {
  923. fromArgs.current = urls[0];
  924. }
  925. return {
  926. indicator: false,
  927. loop: false
  928. };
  929. }
  930. };
  931. var UUID_KEY = '__DC_STAT_UUID';
  932. var deviceId;
  933. function useDeviceId(result) {
  934. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  935. if (!deviceId) {
  936. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  937. wx.setStorage({
  938. key: UUID_KEY,
  939. data: deviceId
  940. });
  941. }
  942. result.deviceId = deviceId;
  943. }
  944. function addSafeAreaInsets(result) {
  945. if (result.safeArea) {
  946. var safeArea = result.safeArea;
  947. result.safeAreaInsets = {
  948. top: safeArea.top,
  949. left: safeArea.left,
  950. right: result.windowWidth - safeArea.right,
  951. bottom: result.screenHeight - safeArea.bottom
  952. };
  953. }
  954. }
  955. function populateParameters(result) {
  956. var _result$brand = result.brand,
  957. brand = _result$brand === void 0 ? '' : _result$brand,
  958. _result$model = result.model,
  959. model = _result$model === void 0 ? '' : _result$model,
  960. _result$system = result.system,
  961. system = _result$system === void 0 ? '' : _result$system,
  962. _result$language = result.language,
  963. language = _result$language === void 0 ? '' : _result$language,
  964. theme = result.theme,
  965. version = result.version,
  966. platform = result.platform,
  967. fontSizeSetting = result.fontSizeSetting,
  968. SDKVersion = result.SDKVersion,
  969. pixelRatio = result.pixelRatio,
  970. deviceOrientation = result.deviceOrientation;
  971. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  972. var extraParam = {};
  973. // osName osVersion
  974. var osName = '';
  975. var osVersion = '';
  976. {
  977. osName = system.split(' ')[0] || '';
  978. osVersion = system.split(' ')[1] || '';
  979. }
  980. var hostVersion = version;
  981. // deviceType
  982. var deviceType = getGetDeviceType(result, model);
  983. // deviceModel
  984. var deviceBrand = getDeviceBrand(brand);
  985. // hostName
  986. var _hostName = getHostName(result);
  987. // deviceOrientation
  988. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  989. // devicePixelRatio
  990. var _devicePixelRatio = pixelRatio;
  991. // SDKVersion
  992. var _SDKVersion = SDKVersion;
  993. // hostLanguage
  994. var hostLanguage = language.replace(/_/g, '-');
  995. // wx.getAccountInfoSync
  996. var parameters = {
  997. appId: "__UNI__5A1BAE0",
  998. appName: "书嗨",
  999. appVersion: "1.0.0",
  1000. appVersionCode: "100",
  1001. appLanguage: getAppLanguage(hostLanguage),
  1002. uniCompileVersion: "4.29",
  1003. uniRuntimeVersion: "4.29",
  1004. uniPlatform: undefined || "mp-weixin",
  1005. deviceBrand: deviceBrand,
  1006. deviceModel: model,
  1007. deviceType: deviceType,
  1008. devicePixelRatio: _devicePixelRatio,
  1009. deviceOrientation: _deviceOrientation,
  1010. osName: osName.toLocaleLowerCase(),
  1011. osVersion: osVersion,
  1012. hostTheme: theme,
  1013. hostVersion: hostVersion,
  1014. hostLanguage: hostLanguage,
  1015. hostName: _hostName,
  1016. hostSDKVersion: _SDKVersion,
  1017. hostFontSizeSetting: fontSizeSetting,
  1018. windowTop: 0,
  1019. windowBottom: 0,
  1020. // TODO
  1021. osLanguage: undefined,
  1022. osTheme: undefined,
  1023. ua: undefined,
  1024. hostPackageName: undefined,
  1025. browserName: undefined,
  1026. browserVersion: undefined
  1027. };
  1028. Object.assign(result, parameters, extraParam);
  1029. }
  1030. function getGetDeviceType(result, model) {
  1031. var deviceType = result.deviceType || 'phone';
  1032. {
  1033. var deviceTypeMaps = {
  1034. ipad: 'pad',
  1035. windows: 'pc',
  1036. mac: 'pc'
  1037. };
  1038. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  1039. var _model = model.toLocaleLowerCase();
  1040. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  1041. var _m = deviceTypeMapsKeys[index];
  1042. if (_model.indexOf(_m) !== -1) {
  1043. deviceType = deviceTypeMaps[_m];
  1044. break;
  1045. }
  1046. }
  1047. }
  1048. return deviceType;
  1049. }
  1050. function getDeviceBrand(brand) {
  1051. var deviceBrand = brand;
  1052. if (deviceBrand) {
  1053. deviceBrand = brand.toLocaleLowerCase();
  1054. }
  1055. return deviceBrand;
  1056. }
  1057. function getAppLanguage(defaultLanguage) {
  1058. return getLocale$1 ? getLocale$1() : defaultLanguage;
  1059. }
  1060. function getHostName(result) {
  1061. var _platform = 'WeChat';
  1062. var _hostName = result.hostName || _platform; // mp-jd
  1063. {
  1064. if (result.environment) {
  1065. _hostName = result.environment;
  1066. } else if (result.host && result.host.env) {
  1067. _hostName = result.host.env;
  1068. }
  1069. }
  1070. return _hostName;
  1071. }
  1072. var getSystemInfo = {
  1073. returnValue: function returnValue(result) {
  1074. useDeviceId(result);
  1075. addSafeAreaInsets(result);
  1076. populateParameters(result);
  1077. }
  1078. };
  1079. var showActionSheet = {
  1080. args: function args(fromArgs) {
  1081. if ((0, _typeof2.default)(fromArgs) === 'object') {
  1082. fromArgs.alertText = fromArgs.title;
  1083. }
  1084. }
  1085. };
  1086. var getAppBaseInfo = {
  1087. returnValue: function returnValue(result) {
  1088. var _result = result,
  1089. version = _result.version,
  1090. language = _result.language,
  1091. SDKVersion = _result.SDKVersion,
  1092. theme = _result.theme;
  1093. var _hostName = getHostName(result);
  1094. var hostLanguage = language.replace('_', '-');
  1095. result = sortObject(Object.assign(result, {
  1096. appId: "__UNI__5A1BAE0",
  1097. appName: "书嗨",
  1098. appVersion: "1.0.0",
  1099. appVersionCode: "100",
  1100. appLanguage: getAppLanguage(hostLanguage),
  1101. hostVersion: version,
  1102. hostLanguage: hostLanguage,
  1103. hostName: _hostName,
  1104. hostSDKVersion: SDKVersion,
  1105. hostTheme: theme
  1106. }));
  1107. }
  1108. };
  1109. var getDeviceInfo = {
  1110. returnValue: function returnValue(result) {
  1111. var _result2 = result,
  1112. brand = _result2.brand,
  1113. model = _result2.model;
  1114. var deviceType = getGetDeviceType(result, model);
  1115. var deviceBrand = getDeviceBrand(brand);
  1116. useDeviceId(result);
  1117. result = sortObject(Object.assign(result, {
  1118. deviceType: deviceType,
  1119. deviceBrand: deviceBrand,
  1120. deviceModel: model
  1121. }));
  1122. }
  1123. };
  1124. var getWindowInfo = {
  1125. returnValue: function returnValue(result) {
  1126. addSafeAreaInsets(result);
  1127. result = sortObject(Object.assign(result, {
  1128. windowTop: 0,
  1129. windowBottom: 0
  1130. }));
  1131. }
  1132. };
  1133. var getAppAuthorizeSetting = {
  1134. returnValue: function returnValue(result) {
  1135. var locationReducedAccuracy = result.locationReducedAccuracy;
  1136. result.locationAccuracy = 'unsupported';
  1137. if (locationReducedAccuracy === true) {
  1138. result.locationAccuracy = 'reduced';
  1139. } else if (locationReducedAccuracy === false) {
  1140. result.locationAccuracy = 'full';
  1141. }
  1142. }
  1143. };
  1144. // import navigateTo from 'uni-helpers/navigate-to'
  1145. var compressImage = {
  1146. args: function args(fromArgs) {
  1147. // https://developers.weixin.qq.com/community/develop/doc/000c08940c865011298e0a43256800?highLine=compressHeight
  1148. if (fromArgs.compressedHeight && !fromArgs.compressHeight) {
  1149. fromArgs.compressHeight = fromArgs.compressedHeight;
  1150. }
  1151. if (fromArgs.compressedWidth && !fromArgs.compressWidth) {
  1152. fromArgs.compressWidth = fromArgs.compressedWidth;
  1153. }
  1154. }
  1155. };
  1156. var protocols = {
  1157. redirectTo: redirectTo,
  1158. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  1159. previewImage: previewImage,
  1160. getSystemInfo: getSystemInfo,
  1161. getSystemInfoSync: getSystemInfo,
  1162. showActionSheet: showActionSheet,
  1163. getAppBaseInfo: getAppBaseInfo,
  1164. getDeviceInfo: getDeviceInfo,
  1165. getWindowInfo: getWindowInfo,
  1166. getAppAuthorizeSetting: getAppAuthorizeSetting,
  1167. compressImage: compressImage
  1168. };
  1169. var todos = ['vibrate', 'preloadPage', 'unPreloadPage', 'loadSubPackage'];
  1170. var canIUses = [];
  1171. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  1172. function processCallback(methodName, method, returnValue) {
  1173. return function (res) {
  1174. return method(processReturnValue(methodName, res, returnValue));
  1175. };
  1176. }
  1177. function processArgs(methodName, fromArgs) {
  1178. var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  1179. var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  1180. var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  1181. if (isPlainObject(fromArgs)) {
  1182. // 一般 api 的参数解析
  1183. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  1184. if (isFn(argsOption)) {
  1185. argsOption = argsOption(fromArgs, toArgs) || {};
  1186. }
  1187. for (var key in fromArgs) {
  1188. if (hasOwn(argsOption, key)) {
  1189. var keyOption = argsOption[key];
  1190. if (isFn(keyOption)) {
  1191. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  1192. }
  1193. if (!keyOption) {
  1194. // 不支持的参数
  1195. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  1196. } else if (isStr(keyOption)) {
  1197. // 重写参数 key
  1198. toArgs[keyOption] = fromArgs[key];
  1199. } else if (isPlainObject(keyOption)) {
  1200. // {name:newName,value:value}可重新指定参数 key:value
  1201. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  1202. }
  1203. } else if (CALLBACKS.indexOf(key) !== -1) {
  1204. if (isFn(fromArgs[key])) {
  1205. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  1206. }
  1207. } else {
  1208. if (!keepFromArgs) {
  1209. toArgs[key] = fromArgs[key];
  1210. }
  1211. }
  1212. }
  1213. return toArgs;
  1214. } else if (isFn(fromArgs)) {
  1215. fromArgs = processCallback(methodName, fromArgs, returnValue);
  1216. }
  1217. return fromArgs;
  1218. }
  1219. function processReturnValue(methodName, res, returnValue) {
  1220. var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  1221. if (isFn(protocols.returnValue)) {
  1222. // 处理通用 returnValue
  1223. res = protocols.returnValue(methodName, res);
  1224. }
  1225. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  1226. }
  1227. function wrapper(methodName, method) {
  1228. if (hasOwn(protocols, methodName)) {
  1229. var protocol = protocols[methodName];
  1230. if (!protocol) {
  1231. // 暂不支持的 api
  1232. return function () {
  1233. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  1234. };
  1235. }
  1236. return function (arg1, arg2) {
  1237. // 目前 api 最多两个参数
  1238. var options = protocol;
  1239. if (isFn(protocol)) {
  1240. options = protocol(arg1);
  1241. }
  1242. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  1243. var args = [arg1];
  1244. if (typeof arg2 !== 'undefined') {
  1245. args.push(arg2);
  1246. }
  1247. if (isFn(options.name)) {
  1248. methodName = options.name(arg1);
  1249. } else if (isStr(options.name)) {
  1250. methodName = options.name;
  1251. }
  1252. var returnValue = wx[methodName].apply(wx, args);
  1253. if (isSyncApi(methodName)) {
  1254. // 同步 api
  1255. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  1256. }
  1257. return returnValue;
  1258. };
  1259. }
  1260. return method;
  1261. }
  1262. var todoApis = Object.create(null);
  1263. var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
  1264. function createTodoApi(name) {
  1265. return function todoApi(_ref) {
  1266. var fail = _ref.fail,
  1267. complete = _ref.complete;
  1268. var res = {
  1269. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
  1270. };
  1271. isFn(fail) && fail(res);
  1272. isFn(complete) && complete(res);
  1273. };
  1274. }
  1275. TODOS.forEach(function (name) {
  1276. todoApis[name] = createTodoApi(name);
  1277. });
  1278. var providers = {
  1279. oauth: ['weixin'],
  1280. share: ['weixin'],
  1281. payment: ['wxpay'],
  1282. push: ['weixin']
  1283. };
  1284. function getProvider(_ref2) {
  1285. var service = _ref2.service,
  1286. success = _ref2.success,
  1287. fail = _ref2.fail,
  1288. complete = _ref2.complete;
  1289. var res = false;
  1290. if (providers[service]) {
  1291. res = {
  1292. errMsg: 'getProvider:ok',
  1293. service: service,
  1294. provider: providers[service]
  1295. };
  1296. isFn(success) && success(res);
  1297. } else {
  1298. res = {
  1299. errMsg: 'getProvider:fail service not found'
  1300. };
  1301. isFn(fail) && fail(res);
  1302. }
  1303. isFn(complete) && complete(res);
  1304. }
  1305. var extraApi = /*#__PURE__*/Object.freeze({
  1306. __proto__: null,
  1307. getProvider: getProvider
  1308. });
  1309. var getEmitter = function () {
  1310. var Emitter;
  1311. return function getUniEmitter() {
  1312. if (!Emitter) {
  1313. Emitter = new _vue.default();
  1314. }
  1315. return Emitter;
  1316. };
  1317. }();
  1318. function apply(ctx, method, args) {
  1319. return ctx[method].apply(ctx, args);
  1320. }
  1321. function $on() {
  1322. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  1323. }
  1324. function $off() {
  1325. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  1326. }
  1327. function $once() {
  1328. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  1329. }
  1330. function $emit() {
  1331. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  1332. }
  1333. var eventApi = /*#__PURE__*/Object.freeze({
  1334. __proto__: null,
  1335. $on: $on,
  1336. $off: $off,
  1337. $once: $once,
  1338. $emit: $emit
  1339. });
  1340. /**
  1341. * 框架内 try-catch
  1342. */
  1343. /**
  1344. * 开发者 try-catch
  1345. */
  1346. function tryCatch(fn) {
  1347. return function () {
  1348. try {
  1349. return fn.apply(fn, arguments);
  1350. } catch (e) {
  1351. // TODO
  1352. console.error(e);
  1353. }
  1354. };
  1355. }
  1356. function getApiCallbacks(params) {
  1357. var apiCallbacks = {};
  1358. for (var name in params) {
  1359. var param = params[name];
  1360. if (isFn(param)) {
  1361. apiCallbacks[name] = tryCatch(param);
  1362. delete params[name];
  1363. }
  1364. }
  1365. return apiCallbacks;
  1366. }
  1367. var cid;
  1368. var cidErrMsg;
  1369. var enabled;
  1370. function normalizePushMessage(message) {
  1371. try {
  1372. return JSON.parse(message);
  1373. } catch (e) {}
  1374. return message;
  1375. }
  1376. function invokePushCallback(args) {
  1377. if (args.type === 'enabled') {
  1378. enabled = true;
  1379. } else if (args.type === 'clientId') {
  1380. cid = args.cid;
  1381. cidErrMsg = args.errMsg;
  1382. invokeGetPushCidCallbacks(cid, args.errMsg);
  1383. } else if (args.type === 'pushMsg') {
  1384. var message = {
  1385. type: 'receive',
  1386. data: normalizePushMessage(args.message)
  1387. };
  1388. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  1389. var callback = onPushMessageCallbacks[i];
  1390. callback(message);
  1391. // 该消息已被阻止
  1392. if (message.stopped) {
  1393. break;
  1394. }
  1395. }
  1396. } else if (args.type === 'click') {
  1397. onPushMessageCallbacks.forEach(function (callback) {
  1398. callback({
  1399. type: 'click',
  1400. data: normalizePushMessage(args.message)
  1401. });
  1402. });
  1403. }
  1404. }
  1405. var getPushCidCallbacks = [];
  1406. function invokeGetPushCidCallbacks(cid, errMsg) {
  1407. getPushCidCallbacks.forEach(function (callback) {
  1408. callback(cid, errMsg);
  1409. });
  1410. getPushCidCallbacks.length = 0;
  1411. }
  1412. function getPushClientId(args) {
  1413. if (!isPlainObject(args)) {
  1414. args = {};
  1415. }
  1416. var _getApiCallbacks = getApiCallbacks(args),
  1417. success = _getApiCallbacks.success,
  1418. fail = _getApiCallbacks.fail,
  1419. complete = _getApiCallbacks.complete;
  1420. var hasSuccess = isFn(success);
  1421. var hasFail = isFn(fail);
  1422. var hasComplete = isFn(complete);
  1423. Promise.resolve().then(function () {
  1424. if (typeof enabled === 'undefined') {
  1425. enabled = false;
  1426. cid = '';
  1427. cidErrMsg = 'uniPush is not enabled';
  1428. }
  1429. getPushCidCallbacks.push(function (cid, errMsg) {
  1430. var res;
  1431. if (cid) {
  1432. res = {
  1433. errMsg: 'getPushClientId:ok',
  1434. cid: cid
  1435. };
  1436. hasSuccess && success(res);
  1437. } else {
  1438. res = {
  1439. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
  1440. };
  1441. hasFail && fail(res);
  1442. }
  1443. hasComplete && complete(res);
  1444. });
  1445. if (typeof cid !== 'undefined') {
  1446. invokeGetPushCidCallbacks(cid, cidErrMsg);
  1447. }
  1448. });
  1449. }
  1450. var onPushMessageCallbacks = [];
  1451. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  1452. var onPushMessage = function onPushMessage(fn) {
  1453. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  1454. onPushMessageCallbacks.push(fn);
  1455. }
  1456. };
  1457. var offPushMessage = function offPushMessage(fn) {
  1458. if (!fn) {
  1459. onPushMessageCallbacks.length = 0;
  1460. } else {
  1461. var index = onPushMessageCallbacks.indexOf(fn);
  1462. if (index > -1) {
  1463. onPushMessageCallbacks.splice(index, 1);
  1464. }
  1465. }
  1466. };
  1467. var baseInfo = wx.getAppBaseInfo && wx.getAppBaseInfo();
  1468. if (!baseInfo) {
  1469. baseInfo = wx.getSystemInfoSync();
  1470. }
  1471. var host = baseInfo ? baseInfo.host : null;
  1472. var shareVideoMessage = host && host.env === 'SAAASDK' ? wx.miniapp.shareVideoMessage : wx.shareVideoMessage;
  1473. var api = /*#__PURE__*/Object.freeze({
  1474. __proto__: null,
  1475. shareVideoMessage: shareVideoMessage,
  1476. getPushClientId: getPushClientId,
  1477. onPushMessage: onPushMessage,
  1478. offPushMessage: offPushMessage,
  1479. invokePushCallback: invokePushCallback
  1480. });
  1481. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1482. function findVmByVueId(vm, vuePid) {
  1483. var $children = vm.$children;
  1484. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1485. for (var i = $children.length - 1; i >= 0; i--) {
  1486. var childVm = $children[i];
  1487. if (childVm.$scope._$vueId === vuePid) {
  1488. return childVm;
  1489. }
  1490. }
  1491. // 反向递归查找
  1492. var parentVm;
  1493. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1494. parentVm = findVmByVueId($children[_i], vuePid);
  1495. if (parentVm) {
  1496. return parentVm;
  1497. }
  1498. }
  1499. }
  1500. function initBehavior(options) {
  1501. return Behavior(options);
  1502. }
  1503. function isPage() {
  1504. return !!this.route;
  1505. }
  1506. function initRelation(detail) {
  1507. this.triggerEvent('__l', detail);
  1508. }
  1509. function selectAllComponents(mpInstance, selector, $refs) {
  1510. var components = mpInstance.selectAllComponents(selector) || [];
  1511. components.forEach(function (component) {
  1512. var ref = component.dataset.ref;
  1513. $refs[ref] = component.$vm || toSkip(component);
  1514. {
  1515. if (component.dataset.vueGeneric === 'scoped') {
  1516. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1517. selectAllComponents(scopedComponent, selector, $refs);
  1518. });
  1519. }
  1520. }
  1521. });
  1522. }
  1523. function syncRefs(refs, newRefs) {
  1524. var oldKeys = (0, _construct2.default)(Set, (0, _toConsumableArray2.default)(Object.keys(refs)));
  1525. var newKeys = Object.keys(newRefs);
  1526. newKeys.forEach(function (key) {
  1527. var oldValue = refs[key];
  1528. var newValue = newRefs[key];
  1529. if (Array.isArray(oldValue) && Array.isArray(newValue) && oldValue.length === newValue.length && newValue.every(function (value) {
  1530. return oldValue.includes(value);
  1531. })) {
  1532. return;
  1533. }
  1534. refs[key] = newValue;
  1535. oldKeys.delete(key);
  1536. });
  1537. oldKeys.forEach(function (key) {
  1538. delete refs[key];
  1539. });
  1540. return refs;
  1541. }
  1542. function initRefs(vm) {
  1543. var mpInstance = vm.$scope;
  1544. var refs = {};
  1545. Object.defineProperty(vm, '$refs', {
  1546. get: function get() {
  1547. var $refs = {};
  1548. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1549. // TODO 暂不考虑 for 中的 scoped
  1550. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for') || [];
  1551. forComponents.forEach(function (component) {
  1552. var ref = component.dataset.ref;
  1553. if (!$refs[ref]) {
  1554. $refs[ref] = [];
  1555. }
  1556. $refs[ref].push(component.$vm || toSkip(component));
  1557. });
  1558. return syncRefs(refs, $refs);
  1559. }
  1560. });
  1561. }
  1562. function handleLink(event) {
  1563. var _ref3 = event.detail || event.value,
  1564. vuePid = _ref3.vuePid,
  1565. vueOptions = _ref3.vueOptions; // detail 是微信,value 是百度(dipatch)
  1566. var parentVm;
  1567. if (vuePid) {
  1568. parentVm = findVmByVueId(this.$vm, vuePid);
  1569. }
  1570. if (!parentVm) {
  1571. parentVm = this.$vm;
  1572. }
  1573. vueOptions.parent = parentVm;
  1574. }
  1575. function markMPComponent(component) {
  1576. // 在 Vue 中标记为小程序组件
  1577. var IS_MP = '__v_isMPComponent';
  1578. Object.defineProperty(component, IS_MP, {
  1579. configurable: true,
  1580. enumerable: false,
  1581. value: true
  1582. });
  1583. return component;
  1584. }
  1585. function toSkip(obj) {
  1586. var OB = '__ob__';
  1587. var SKIP = '__v_skip';
  1588. if (isObject(obj) && Object.isExtensible(obj)) {
  1589. // 避免被 @vue/composition-api 观测
  1590. Object.defineProperty(obj, OB, {
  1591. configurable: true,
  1592. enumerable: false,
  1593. value: (0, _defineProperty2.default)({}, SKIP, true)
  1594. });
  1595. }
  1596. return obj;
  1597. }
  1598. var WORKLET_RE = /_(.*)_worklet_factory_/;
  1599. function initWorkletMethods(mpMethods, vueMethods) {
  1600. if (vueMethods) {
  1601. Object.keys(vueMethods).forEach(function (name) {
  1602. var matches = name.match(WORKLET_RE);
  1603. if (matches) {
  1604. var workletName = matches[1];
  1605. mpMethods[name] = vueMethods[name];
  1606. mpMethods[workletName] = vueMethods[workletName];
  1607. }
  1608. });
  1609. }
  1610. }
  1611. var MPPage = Page;
  1612. var MPComponent = Component;
  1613. var customizeRE = /:/g;
  1614. var customize = cached(function (str) {
  1615. return camelize(str.replace(customizeRE, '-'));
  1616. });
  1617. function initTriggerEvent(mpInstance) {
  1618. var oldTriggerEvent = mpInstance.triggerEvent;
  1619. var newTriggerEvent = function newTriggerEvent(event) {
  1620. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
  1621. args[_key3 - 1] = arguments[_key3];
  1622. }
  1623. // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
  1624. if (this.$vm || this.dataset && this.dataset.comType) {
  1625. event = customize(event);
  1626. } else {
  1627. // 针对微信/QQ小程序单独补充驼峰格式事件,以兼容历史项目
  1628. var newEvent = customize(event);
  1629. if (newEvent !== event) {
  1630. oldTriggerEvent.apply(this, [newEvent].concat(args));
  1631. }
  1632. }
  1633. return oldTriggerEvent.apply(this, [event].concat(args));
  1634. };
  1635. try {
  1636. // 京东小程序 triggerEvent 为只读
  1637. mpInstance.triggerEvent = newTriggerEvent;
  1638. } catch (error) {
  1639. mpInstance._triggerEvent = newTriggerEvent;
  1640. }
  1641. }
  1642. function initHook(name, options, isComponent) {
  1643. var oldHook = options[name];
  1644. options[name] = function () {
  1645. markMPComponent(this);
  1646. initTriggerEvent(this);
  1647. if (oldHook) {
  1648. for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  1649. args[_key4] = arguments[_key4];
  1650. }
  1651. return oldHook.apply(this, args);
  1652. }
  1653. };
  1654. }
  1655. if (!MPPage.__$wrappered) {
  1656. MPPage.__$wrappered = true;
  1657. Page = function Page() {
  1658. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1659. initHook('onLoad', options);
  1660. return MPPage(options);
  1661. };
  1662. Page.after = MPPage.after;
  1663. Component = function Component() {
  1664. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1665. initHook('created', options);
  1666. return MPComponent(options);
  1667. };
  1668. }
  1669. var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
  1670. function initMocks(vm, mocks) {
  1671. var mpInstance = vm.$mp[vm.mpType];
  1672. mocks.forEach(function (mock) {
  1673. if (hasOwn(mpInstance, mock)) {
  1674. vm[mock] = mpInstance[mock];
  1675. }
  1676. });
  1677. }
  1678. function hasHook(hook, vueOptions) {
  1679. if (!vueOptions) {
  1680. return true;
  1681. }
  1682. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  1683. return true;
  1684. }
  1685. vueOptions = vueOptions.default || vueOptions;
  1686. if (isFn(vueOptions)) {
  1687. if (isFn(vueOptions.extendOptions[hook])) {
  1688. return true;
  1689. }
  1690. if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
  1691. return true;
  1692. }
  1693. return false;
  1694. }
  1695. if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
  1696. return true;
  1697. }
  1698. var mixins = vueOptions.mixins;
  1699. if (Array.isArray(mixins)) {
  1700. return !!mixins.find(function (mixin) {
  1701. return hasHook(hook, mixin);
  1702. });
  1703. }
  1704. }
  1705. function initHooks(mpOptions, hooks, vueOptions) {
  1706. hooks.forEach(function (hook) {
  1707. if (hasHook(hook, vueOptions)) {
  1708. mpOptions[hook] = function (args) {
  1709. return this.$vm && this.$vm.__call_hook(hook, args);
  1710. };
  1711. }
  1712. });
  1713. }
  1714. function initUnknownHooks(mpOptions, vueOptions) {
  1715. var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1716. findHooks(vueOptions).forEach(function (hook) {
  1717. return initHook$1(mpOptions, hook, excludes);
  1718. });
  1719. }
  1720. function findHooks(vueOptions) {
  1721. var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  1722. if (vueOptions) {
  1723. Object.keys(vueOptions).forEach(function (name) {
  1724. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  1725. hooks.push(name);
  1726. }
  1727. });
  1728. }
  1729. return hooks;
  1730. }
  1731. function initHook$1(mpOptions, hook, excludes) {
  1732. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  1733. mpOptions[hook] = function (args) {
  1734. return this.$vm && this.$vm.__call_hook(hook, args);
  1735. };
  1736. }
  1737. }
  1738. function initVueComponent(Vue, vueOptions) {
  1739. vueOptions = vueOptions.default || vueOptions;
  1740. var VueComponent;
  1741. if (isFn(vueOptions)) {
  1742. VueComponent = vueOptions;
  1743. } else {
  1744. VueComponent = Vue.extend(vueOptions);
  1745. }
  1746. vueOptions = VueComponent.options;
  1747. return [VueComponent, vueOptions];
  1748. }
  1749. function initSlots(vm, vueSlots) {
  1750. if (Array.isArray(vueSlots) && vueSlots.length) {
  1751. var $slots = Object.create(null);
  1752. vueSlots.forEach(function (slotName) {
  1753. $slots[slotName] = true;
  1754. });
  1755. vm.$scopedSlots = vm.$slots = $slots;
  1756. }
  1757. }
  1758. function initVueIds(vueIds, mpInstance) {
  1759. vueIds = (vueIds || '').split(',');
  1760. var len = vueIds.length;
  1761. if (len === 1) {
  1762. mpInstance._$vueId = vueIds[0];
  1763. } else if (len === 2) {
  1764. mpInstance._$vueId = vueIds[0];
  1765. mpInstance._$vuePid = vueIds[1];
  1766. }
  1767. }
  1768. function initData(vueOptions, context) {
  1769. var data = vueOptions.data || {};
  1770. var methods = vueOptions.methods || {};
  1771. if (typeof data === 'function') {
  1772. try {
  1773. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  1774. } catch (e) {
  1775. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"书嗨","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  1776. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  1777. }
  1778. }
  1779. } else {
  1780. try {
  1781. // 对 data 格式化
  1782. data = JSON.parse(JSON.stringify(data));
  1783. } catch (e) {}
  1784. }
  1785. if (!isPlainObject(data)) {
  1786. data = {};
  1787. }
  1788. Object.keys(methods).forEach(function (methodName) {
  1789. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  1790. data[methodName] = methods[methodName];
  1791. }
  1792. });
  1793. return data;
  1794. }
  1795. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  1796. function createObserver(name) {
  1797. return function observer(newVal, oldVal) {
  1798. if (this.$vm) {
  1799. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  1800. }
  1801. };
  1802. }
  1803. function initBehaviors(vueOptions, initBehavior) {
  1804. var vueBehaviors = vueOptions.behaviors;
  1805. var vueExtends = vueOptions.extends;
  1806. var vueMixins = vueOptions.mixins;
  1807. var vueProps = vueOptions.props;
  1808. if (!vueProps) {
  1809. vueOptions.props = vueProps = [];
  1810. }
  1811. var behaviors = [];
  1812. if (Array.isArray(vueBehaviors)) {
  1813. vueBehaviors.forEach(function (behavior) {
  1814. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  1815. if (behavior === 'uni://form-field') {
  1816. if (Array.isArray(vueProps)) {
  1817. vueProps.push('name');
  1818. vueProps.push('value');
  1819. } else {
  1820. vueProps.name = {
  1821. type: String,
  1822. default: ''
  1823. };
  1824. vueProps.value = {
  1825. type: [String, Number, Boolean, Array, Object, Date],
  1826. default: ''
  1827. };
  1828. }
  1829. }
  1830. });
  1831. }
  1832. if (isPlainObject(vueExtends) && vueExtends.props) {
  1833. behaviors.push(initBehavior({
  1834. properties: initProperties(vueExtends.props, true)
  1835. }));
  1836. }
  1837. if (Array.isArray(vueMixins)) {
  1838. vueMixins.forEach(function (vueMixin) {
  1839. if (isPlainObject(vueMixin) && vueMixin.props) {
  1840. behaviors.push(initBehavior({
  1841. properties: initProperties(vueMixin.props, true)
  1842. }));
  1843. }
  1844. });
  1845. }
  1846. return behaviors;
  1847. }
  1848. function parsePropType(key, type, defaultValue, file) {
  1849. // [String]=>String
  1850. if (Array.isArray(type) && type.length === 1) {
  1851. return type[0];
  1852. }
  1853. return type;
  1854. }
  1855. function initProperties(props) {
  1856. var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  1857. var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  1858. var options = arguments.length > 3 ? arguments[3] : undefined;
  1859. var properties = {};
  1860. if (!isBehavior) {
  1861. properties.vueId = {
  1862. type: String,
  1863. value: ''
  1864. };
  1865. {
  1866. if (options.virtualHost) {
  1867. properties.virtualHostStyle = {
  1868. type: null,
  1869. value: ''
  1870. };
  1871. properties.virtualHostClass = {
  1872. type: null,
  1873. value: ''
  1874. };
  1875. }
  1876. }
  1877. // scopedSlotsCompiler auto
  1878. properties.scopedSlotsCompiler = {
  1879. type: String,
  1880. value: ''
  1881. };
  1882. properties.vueSlots = {
  1883. // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  1884. type: null,
  1885. value: [],
  1886. observer: function observer(newVal, oldVal) {
  1887. var $slots = Object.create(null);
  1888. newVal.forEach(function (slotName) {
  1889. $slots[slotName] = true;
  1890. });
  1891. this.setData({
  1892. $slots: $slots
  1893. });
  1894. }
  1895. };
  1896. }
  1897. if (Array.isArray(props)) {
  1898. // ['title']
  1899. props.forEach(function (key) {
  1900. properties[key] = {
  1901. type: null,
  1902. observer: createObserver(key)
  1903. };
  1904. });
  1905. } else if (isPlainObject(props)) {
  1906. // {title:{type:String,default:''},content:String}
  1907. Object.keys(props).forEach(function (key) {
  1908. var opts = props[key];
  1909. if (isPlainObject(opts)) {
  1910. // title:{type:String,default:''}
  1911. var value = opts.default;
  1912. if (isFn(value)) {
  1913. value = value();
  1914. }
  1915. opts.type = parsePropType(key, opts.type);
  1916. properties[key] = {
  1917. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  1918. value: value,
  1919. observer: createObserver(key)
  1920. };
  1921. } else {
  1922. // content:String
  1923. var type = parsePropType(key, opts);
  1924. properties[key] = {
  1925. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  1926. observer: createObserver(key)
  1927. };
  1928. }
  1929. });
  1930. }
  1931. return properties;
  1932. }
  1933. function wrapper$1(event) {
  1934. // TODO 又得兼容 mpvue 的 mp 对象
  1935. try {
  1936. event.mp = JSON.parse(JSON.stringify(event));
  1937. } catch (e) {}
  1938. event.stopPropagation = noop;
  1939. event.preventDefault = noop;
  1940. event.target = event.target || {};
  1941. if (!hasOwn(event, 'detail')) {
  1942. event.detail = {};
  1943. }
  1944. if (hasOwn(event, 'markerId')) {
  1945. event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
  1946. event.detail.markerId = event.markerId;
  1947. }
  1948. if (isPlainObject(event.detail)) {
  1949. event.target = Object.assign({}, event.target, event.detail);
  1950. }
  1951. return event;
  1952. }
  1953. function getExtraValue(vm, dataPathsArray) {
  1954. var context = vm;
  1955. dataPathsArray.forEach(function (dataPathArray) {
  1956. var dataPath = dataPathArray[0];
  1957. var value = dataPathArray[2];
  1958. if (dataPath || typeof value !== 'undefined') {
  1959. // ['','',index,'disable']
  1960. var propPath = dataPathArray[1];
  1961. var valuePath = dataPathArray[3];
  1962. var vFor;
  1963. if (Number.isInteger(dataPath)) {
  1964. vFor = dataPath;
  1965. } else if (!dataPath) {
  1966. vFor = context;
  1967. } else if (typeof dataPath === 'string' && dataPath) {
  1968. if (dataPath.indexOf('#s#') === 0) {
  1969. vFor = dataPath.substr(3);
  1970. } else {
  1971. vFor = vm.__get_value(dataPath, context);
  1972. }
  1973. }
  1974. if (Number.isInteger(vFor)) {
  1975. context = value;
  1976. } else if (!propPath) {
  1977. context = vFor[value];
  1978. } else {
  1979. if (Array.isArray(vFor)) {
  1980. context = vFor.find(function (vForItem) {
  1981. return vm.__get_value(propPath, vForItem) === value;
  1982. });
  1983. } else if (isPlainObject(vFor)) {
  1984. context = Object.keys(vFor).find(function (vForKey) {
  1985. return vm.__get_value(propPath, vFor[vForKey]) === value;
  1986. });
  1987. } else {
  1988. console.error('v-for 暂不支持循环数据:', vFor);
  1989. }
  1990. }
  1991. if (valuePath) {
  1992. context = vm.__get_value(valuePath, context);
  1993. }
  1994. }
  1995. });
  1996. return context;
  1997. }
  1998. function processEventExtra(vm, extra, event, __args__) {
  1999. var extraObj = {};
  2000. if (Array.isArray(extra) && extra.length) {
  2001. /**
  2002. *[
  2003. * ['data.items', 'data.id', item.data.id],
  2004. * ['metas', 'id', meta.id]
  2005. *],
  2006. *[
  2007. * ['data.items', 'data.id', item.data.id],
  2008. * ['metas', 'id', meta.id]
  2009. *],
  2010. *'test'
  2011. */
  2012. extra.forEach(function (dataPath, index) {
  2013. if (typeof dataPath === 'string') {
  2014. if (!dataPath) {
  2015. // model,prop.sync
  2016. extraObj['$' + index] = vm;
  2017. } else {
  2018. if (dataPath === '$event') {
  2019. // $event
  2020. extraObj['$' + index] = event;
  2021. } else if (dataPath === 'arguments') {
  2022. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  2023. } else if (dataPath.indexOf('$event.') === 0) {
  2024. // $event.target.value
  2025. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  2026. } else {
  2027. extraObj['$' + index] = vm.__get_value(dataPath);
  2028. }
  2029. }
  2030. } else {
  2031. extraObj['$' + index] = getExtraValue(vm, dataPath);
  2032. }
  2033. });
  2034. }
  2035. return extraObj;
  2036. }
  2037. function getObjByArray(arr) {
  2038. var obj = {};
  2039. for (var i = 1; i < arr.length; i++) {
  2040. var element = arr[i];
  2041. obj[element[0]] = element[1];
  2042. }
  2043. return obj;
  2044. }
  2045. function processEventArgs(vm, event) {
  2046. var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  2047. var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  2048. var isCustom = arguments.length > 4 ? arguments[4] : undefined;
  2049. var methodName = arguments.length > 5 ? arguments[5] : undefined;
  2050. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  2051. // fixed 用户直接触发 mpInstance.triggerEvent
  2052. var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
  2053. if (isCustom) {
  2054. // 自定义事件
  2055. isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
  2056. if (!args.length) {
  2057. // 无参数,直接传入 event 或 detail 数组
  2058. if (isCustomMPEvent) {
  2059. return [event];
  2060. }
  2061. return __args__;
  2062. }
  2063. }
  2064. var extraObj = processEventExtra(vm, extra, event, __args__);
  2065. var ret = [];
  2066. args.forEach(function (arg) {
  2067. if (arg === '$event') {
  2068. if (methodName === '__set_model' && !isCustom) {
  2069. // input v-model value
  2070. ret.push(event.target.value);
  2071. } else {
  2072. if (isCustom && !isCustomMPEvent) {
  2073. ret.push(__args__[0]);
  2074. } else {
  2075. // wxcomponent 组件或内置组件
  2076. ret.push(event);
  2077. }
  2078. }
  2079. } else {
  2080. if (Array.isArray(arg) && arg[0] === 'o') {
  2081. ret.push(getObjByArray(arg));
  2082. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  2083. ret.push(extraObj[arg]);
  2084. } else {
  2085. ret.push(arg);
  2086. }
  2087. }
  2088. });
  2089. return ret;
  2090. }
  2091. var ONCE = '~';
  2092. var CUSTOM = '^';
  2093. function isMatchEventType(eventType, optType) {
  2094. return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
  2095. }
  2096. function getContextVm(vm) {
  2097. var $parent = vm.$parent;
  2098. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  2099. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  2100. $parent = $parent.$parent;
  2101. }
  2102. return $parent && $parent.$parent;
  2103. }
  2104. function handleEvent(event) {
  2105. var _this2 = this;
  2106. event = wrapper$1(event);
  2107. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  2108. var dataset = (event.currentTarget || event.target).dataset;
  2109. if (!dataset) {
  2110. return console.warn('事件信息不存在');
  2111. }
  2112. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  2113. if (!eventOpts) {
  2114. return console.warn('事件信息不存在');
  2115. }
  2116. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  2117. var eventType = event.type;
  2118. var ret = [];
  2119. eventOpts.forEach(function (eventOpt) {
  2120. var type = eventOpt[0];
  2121. var eventsArray = eventOpt[1];
  2122. var isCustom = type.charAt(0) === CUSTOM;
  2123. type = isCustom ? type.slice(1) : type;
  2124. var isOnce = type.charAt(0) === ONCE;
  2125. type = isOnce ? type.slice(1) : type;
  2126. if (eventsArray && isMatchEventType(eventType, type)) {
  2127. eventsArray.forEach(function (eventArray) {
  2128. var methodName = eventArray[0];
  2129. if (methodName) {
  2130. var handlerCtx = _this2.$vm;
  2131. if (handlerCtx.$options.generic) {
  2132. // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  2133. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  2134. }
  2135. if (methodName === '$emit') {
  2136. handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
  2137. return;
  2138. }
  2139. var handler = handlerCtx[methodName];
  2140. if (!isFn(handler)) {
  2141. var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
  2142. var path = _this2.route || _this2.is;
  2143. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  2144. }
  2145. if (isOnce) {
  2146. if (handler.once) {
  2147. return;
  2148. }
  2149. handler.once = true;
  2150. }
  2151. var params = processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
  2152. params = Array.isArray(params) ? params : [];
  2153. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  2154. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  2155. // eslint-disable-next-line no-sparse-arrays
  2156. params = params.concat([,,,,,,,,,, event]);
  2157. }
  2158. ret.push(handler.apply(handlerCtx, params));
  2159. }
  2160. });
  2161. }
  2162. });
  2163. if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
  2164. return ret[0];
  2165. }
  2166. }
  2167. var eventChannels = {};
  2168. function getEventChannel(id) {
  2169. var eventChannel = eventChannels[id];
  2170. delete eventChannels[id];
  2171. return eventChannel;
  2172. }
  2173. var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
  2174. function initEventChannel() {
  2175. _vue.default.prototype.getOpenerEventChannel = function () {
  2176. // 微信小程序使用自身getOpenerEventChannel
  2177. {
  2178. return this.$scope.getOpenerEventChannel();
  2179. }
  2180. };
  2181. var callHook = _vue.default.prototype.__call_hook;
  2182. _vue.default.prototype.__call_hook = function (hook, args) {
  2183. if (hook === 'onLoad' && args && args.__id__) {
  2184. this.__eventChannel__ = getEventChannel(args.__id__);
  2185. delete args.__id__;
  2186. }
  2187. return callHook.call(this, hook, args);
  2188. };
  2189. }
  2190. function initScopedSlotsParams() {
  2191. var center = {};
  2192. var parents = {};
  2193. function currentId(fn) {
  2194. var vueIds = this.$options.propsData.vueId;
  2195. if (vueIds) {
  2196. var vueId = vueIds.split(',')[0];
  2197. fn(vueId);
  2198. }
  2199. }
  2200. _vue.default.prototype.$hasSSP = function (vueId) {
  2201. var slot = center[vueId];
  2202. if (!slot) {
  2203. parents[vueId] = this;
  2204. this.$on('hook:destroyed', function () {
  2205. delete parents[vueId];
  2206. });
  2207. }
  2208. return slot;
  2209. };
  2210. _vue.default.prototype.$getSSP = function (vueId, name, needAll) {
  2211. var slot = center[vueId];
  2212. if (slot) {
  2213. var params = slot[name] || [];
  2214. if (needAll) {
  2215. return params;
  2216. }
  2217. return params[0];
  2218. }
  2219. };
  2220. _vue.default.prototype.$setSSP = function (name, value) {
  2221. var index = 0;
  2222. currentId.call(this, function (vueId) {
  2223. var slot = center[vueId];
  2224. var params = slot[name] = slot[name] || [];
  2225. params.push(value);
  2226. index = params.length - 1;
  2227. });
  2228. return index;
  2229. };
  2230. _vue.default.prototype.$initSSP = function () {
  2231. currentId.call(this, function (vueId) {
  2232. center[vueId] = {};
  2233. });
  2234. };
  2235. _vue.default.prototype.$callSSP = function () {
  2236. currentId.call(this, function (vueId) {
  2237. if (parents[vueId]) {
  2238. parents[vueId].$forceUpdate();
  2239. }
  2240. });
  2241. };
  2242. _vue.default.mixin({
  2243. destroyed: function destroyed() {
  2244. var propsData = this.$options.propsData;
  2245. var vueId = propsData && propsData.vueId;
  2246. if (vueId) {
  2247. delete center[vueId];
  2248. delete parents[vueId];
  2249. }
  2250. }
  2251. });
  2252. }
  2253. function parseBaseApp(vm, _ref4) {
  2254. var mocks = _ref4.mocks,
  2255. initRefs = _ref4.initRefs;
  2256. initEventChannel();
  2257. {
  2258. initScopedSlotsParams();
  2259. }
  2260. if (vm.$options.store) {
  2261. _vue.default.prototype.$store = vm.$options.store;
  2262. }
  2263. uniIdMixin(_vue.default);
  2264. _vue.default.prototype.mpHost = "mp-weixin";
  2265. _vue.default.mixin({
  2266. beforeCreate: function beforeCreate() {
  2267. if (!this.$options.mpType) {
  2268. return;
  2269. }
  2270. this.mpType = this.$options.mpType;
  2271. this.$mp = (0, _defineProperty2.default)({
  2272. data: {}
  2273. }, this.mpType, this.$options.mpInstance);
  2274. this.$scope = this.$options.mpInstance;
  2275. delete this.$options.mpType;
  2276. delete this.$options.mpInstance;
  2277. if (this.mpType === 'page' && typeof getApp === 'function') {
  2278. // hack vue-i18n
  2279. var app = getApp();
  2280. if (app.$vm && app.$vm.$i18n) {
  2281. this._i18n = app.$vm.$i18n;
  2282. }
  2283. }
  2284. if (this.mpType !== 'app') {
  2285. initRefs(this);
  2286. initMocks(this, mocks);
  2287. }
  2288. }
  2289. });
  2290. var appOptions = {
  2291. onLaunch: function onLaunch(args) {
  2292. if (this.$vm) {
  2293. // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  2294. return;
  2295. }
  2296. {
  2297. if (wx.canIUse && !wx.canIUse('nextTick')) {
  2298. // 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  2299. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  2300. }
  2301. }
  2302. this.$vm = vm;
  2303. this.$vm.$mp = {
  2304. app: this
  2305. };
  2306. this.$vm.$scope = this;
  2307. // vm 上也挂载 globalData
  2308. this.$vm.globalData = this.globalData;
  2309. this.$vm._isMounted = true;
  2310. this.$vm.__call_hook('mounted', args);
  2311. this.$vm.__call_hook('onLaunch', args);
  2312. }
  2313. };
  2314. // 兼容旧版本 globalData
  2315. appOptions.globalData = vm.$options.globalData || {};
  2316. // 将 methods 中的方法挂在 getApp() 中
  2317. var methods = vm.$options.methods;
  2318. if (methods) {
  2319. Object.keys(methods).forEach(function (name) {
  2320. appOptions[name] = methods[name];
  2321. });
  2322. }
  2323. initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
  2324. initHooks(appOptions, hooks);
  2325. initUnknownHooks(appOptions, vm.$options);
  2326. return appOptions;
  2327. }
  2328. function parseApp(vm) {
  2329. return parseBaseApp(vm, {
  2330. mocks: mocks,
  2331. initRefs: initRefs
  2332. });
  2333. }
  2334. function createApp(vm) {
  2335. App(parseApp(vm));
  2336. return vm;
  2337. }
  2338. var encodeReserveRE = /[!'()*]/g;
  2339. var encodeReserveReplacer = function encodeReserveReplacer(c) {
  2340. return '%' + c.charCodeAt(0).toString(16);
  2341. };
  2342. var commaRE = /%2C/g;
  2343. // fixed encodeURIComponent which is more conformant to RFC3986:
  2344. // - escapes [!'()*]
  2345. // - preserve commas
  2346. var encode = function encode(str) {
  2347. return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
  2348. };
  2349. function stringifyQuery(obj) {
  2350. var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  2351. var res = obj ? Object.keys(obj).map(function (key) {
  2352. var val = obj[key];
  2353. if (val === undefined) {
  2354. return '';
  2355. }
  2356. if (val === null) {
  2357. return encodeStr(key);
  2358. }
  2359. if (Array.isArray(val)) {
  2360. var result = [];
  2361. val.forEach(function (val2) {
  2362. if (val2 === undefined) {
  2363. return;
  2364. }
  2365. if (val2 === null) {
  2366. result.push(encodeStr(key));
  2367. } else {
  2368. result.push(encodeStr(key) + '=' + encodeStr(val2));
  2369. }
  2370. });
  2371. return result.join('&');
  2372. }
  2373. return encodeStr(key) + '=' + encodeStr(val);
  2374. }).filter(function (x) {
  2375. return x.length > 0;
  2376. }).join('&') : null;
  2377. return res ? "?".concat(res) : '';
  2378. }
  2379. function parseBaseComponent(vueComponentOptions) {
  2380. var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  2381. isPage = _ref5.isPage,
  2382. initRelation = _ref5.initRelation;
  2383. var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
  2384. var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
  2385. _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
  2386. VueComponent = _initVueComponent2[0],
  2387. vueOptions = _initVueComponent2[1];
  2388. var options = _objectSpread({
  2389. multipleSlots: true,
  2390. // styleIsolation: 'apply-shared',
  2391. addGlobalClass: true
  2392. }, vueOptions.options || {});
  2393. {
  2394. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  2395. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  2396. Object.assign(options, vueOptions['mp-weixin'].options);
  2397. }
  2398. }
  2399. var componentOptions = {
  2400. options: options,
  2401. data: initData(vueOptions, _vue.default.prototype),
  2402. behaviors: initBehaviors(vueOptions, initBehavior),
  2403. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  2404. lifetimes: {
  2405. attached: function attached() {
  2406. var properties = this.properties;
  2407. var options = {
  2408. mpType: isPage.call(this) ? 'page' : 'component',
  2409. mpInstance: this,
  2410. propsData: properties
  2411. };
  2412. initVueIds(properties.vueId, this);
  2413. // 处理父子关系
  2414. initRelation.call(this, {
  2415. vuePid: this._$vuePid,
  2416. vueOptions: options
  2417. });
  2418. // 初始化 vue 实例
  2419. this.$vm = new VueComponent(options);
  2420. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  2421. initSlots(this.$vm, properties.vueSlots);
  2422. // 触发首次 setData
  2423. this.$vm.$mount();
  2424. },
  2425. ready: function ready() {
  2426. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  2427. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  2428. if (this.$vm) {
  2429. this.$vm._isMounted = true;
  2430. this.$vm.__call_hook('mounted');
  2431. this.$vm.__call_hook('onReady');
  2432. }
  2433. },
  2434. detached: function detached() {
  2435. this.$vm && this.$vm.$destroy();
  2436. }
  2437. },
  2438. pageLifetimes: {
  2439. show: function show(args) {
  2440. this.$vm && this.$vm.__call_hook('onPageShow', args);
  2441. },
  2442. hide: function hide() {
  2443. this.$vm && this.$vm.__call_hook('onPageHide');
  2444. },
  2445. resize: function resize(size) {
  2446. this.$vm && this.$vm.__call_hook('onPageResize', size);
  2447. }
  2448. },
  2449. methods: {
  2450. __l: handleLink,
  2451. __e: handleEvent
  2452. }
  2453. };
  2454. // externalClasses
  2455. if (vueOptions.externalClasses) {
  2456. componentOptions.externalClasses = vueOptions.externalClasses;
  2457. }
  2458. if (Array.isArray(vueOptions.wxsCallMethods)) {
  2459. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  2460. componentOptions.methods[callMethod] = function (args) {
  2461. return this.$vm[callMethod](args);
  2462. };
  2463. });
  2464. }
  2465. if (needVueOptions) {
  2466. return [componentOptions, vueOptions, VueComponent];
  2467. }
  2468. if (isPage) {
  2469. return componentOptions;
  2470. }
  2471. return [componentOptions, VueComponent];
  2472. }
  2473. function parseComponent(vueComponentOptions, needVueOptions) {
  2474. return parseBaseComponent(vueComponentOptions, {
  2475. isPage: isPage,
  2476. initRelation: initRelation
  2477. }, needVueOptions);
  2478. }
  2479. var hooks$1 = ['onShow', 'onHide', 'onUnload'];
  2480. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  2481. function parseBasePage(vuePageOptions) {
  2482. var _parseComponent = parseComponent(vuePageOptions, true),
  2483. _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
  2484. pageOptions = _parseComponent2[0],
  2485. vueOptions = _parseComponent2[1];
  2486. initHooks(pageOptions.methods, hooks$1, vueOptions);
  2487. pageOptions.methods.onLoad = function (query) {
  2488. this.options = query;
  2489. var copyQuery = Object.assign({}, query);
  2490. delete copyQuery.__id__;
  2491. this.$page = {
  2492. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
  2493. };
  2494. this.$vm.$mp.query = query; // 兼容 mpvue
  2495. this.$vm.__call_hook('onLoad', query);
  2496. };
  2497. {
  2498. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  2499. }
  2500. {
  2501. initWorkletMethods(pageOptions.methods, vueOptions.methods);
  2502. }
  2503. return pageOptions;
  2504. }
  2505. function parsePage(vuePageOptions) {
  2506. return parseBasePage(vuePageOptions);
  2507. }
  2508. function createPage(vuePageOptions) {
  2509. {
  2510. return Component(parsePage(vuePageOptions));
  2511. }
  2512. }
  2513. function createComponent(vueOptions) {
  2514. {
  2515. return Component(parseComponent(vueOptions));
  2516. }
  2517. }
  2518. function createSubpackageApp(vm) {
  2519. var appOptions = parseApp(vm);
  2520. var app = getApp({
  2521. allowDefault: true
  2522. });
  2523. vm.$scope = app;
  2524. var globalData = app.globalData;
  2525. if (globalData) {
  2526. Object.keys(appOptions.globalData).forEach(function (name) {
  2527. if (!hasOwn(globalData, name)) {
  2528. globalData[name] = appOptions.globalData[name];
  2529. }
  2530. });
  2531. }
  2532. Object.keys(appOptions).forEach(function (name) {
  2533. if (!hasOwn(app, name)) {
  2534. app[name] = appOptions[name];
  2535. }
  2536. });
  2537. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2538. wx.onAppShow(function () {
  2539. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  2540. args[_key5] = arguments[_key5];
  2541. }
  2542. vm.__call_hook('onShow', args);
  2543. });
  2544. }
  2545. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2546. wx.onAppHide(function () {
  2547. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  2548. args[_key6] = arguments[_key6];
  2549. }
  2550. vm.__call_hook('onHide', args);
  2551. });
  2552. }
  2553. if (isFn(appOptions.onLaunch)) {
  2554. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2555. vm.__call_hook('onLaunch', args);
  2556. }
  2557. return vm;
  2558. }
  2559. function createPlugin(vm) {
  2560. var appOptions = parseApp(vm);
  2561. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2562. wx.onAppShow(function () {
  2563. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  2564. args[_key7] = arguments[_key7];
  2565. }
  2566. vm.__call_hook('onShow', args);
  2567. });
  2568. }
  2569. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2570. wx.onAppHide(function () {
  2571. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  2572. args[_key8] = arguments[_key8];
  2573. }
  2574. vm.__call_hook('onHide', args);
  2575. });
  2576. }
  2577. if (isFn(appOptions.onLaunch)) {
  2578. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2579. vm.__call_hook('onLaunch', args);
  2580. }
  2581. return vm;
  2582. }
  2583. todos.forEach(function (todoApi) {
  2584. protocols[todoApi] = false;
  2585. });
  2586. canIUses.forEach(function (canIUseApi) {
  2587. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  2588. if (!wx.canIUse(apiName)) {
  2589. protocols[canIUseApi] = false;
  2590. }
  2591. });
  2592. var uni = {};
  2593. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  2594. uni = new Proxy({}, {
  2595. get: function get(target, name) {
  2596. if (hasOwn(target, name)) {
  2597. return target[name];
  2598. }
  2599. if (baseApi[name]) {
  2600. return baseApi[name];
  2601. }
  2602. if (api[name]) {
  2603. return promisify(name, api[name]);
  2604. }
  2605. {
  2606. if (extraApi[name]) {
  2607. return promisify(name, extraApi[name]);
  2608. }
  2609. if (todoApis[name]) {
  2610. return promisify(name, todoApis[name]);
  2611. }
  2612. }
  2613. if (eventApi[name]) {
  2614. return eventApi[name];
  2615. }
  2616. return promisify(name, wrapper(name, wx[name]));
  2617. },
  2618. set: function set(target, name, value) {
  2619. target[name] = value;
  2620. return true;
  2621. }
  2622. });
  2623. } else {
  2624. Object.keys(baseApi).forEach(function (name) {
  2625. uni[name] = baseApi[name];
  2626. });
  2627. {
  2628. Object.keys(todoApis).forEach(function (name) {
  2629. uni[name] = promisify(name, todoApis[name]);
  2630. });
  2631. Object.keys(extraApi).forEach(function (name) {
  2632. uni[name] = promisify(name, extraApi[name]);
  2633. });
  2634. }
  2635. Object.keys(eventApi).forEach(function (name) {
  2636. uni[name] = eventApi[name];
  2637. });
  2638. Object.keys(api).forEach(function (name) {
  2639. uni[name] = promisify(name, api[name]);
  2640. });
  2641. Object.keys(wx).forEach(function (name) {
  2642. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  2643. uni[name] = promisify(name, wrapper(name, wx[name]));
  2644. }
  2645. });
  2646. }
  2647. wx.createApp = createApp;
  2648. wx.createPage = createPage;
  2649. wx.createComponent = createComponent;
  2650. wx.createSubpackageApp = createSubpackageApp;
  2651. wx.createPlugin = createPlugin;
  2652. var uni$1 = uni;
  2653. var _default = uni$1;
  2654. exports.default = _default;
  2655. /* 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)))
  2656. /***/ }),
  2657. /***/ 20:
  2658. /*!****************************************************************!*\
  2659. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  2660. \****************************************************************/
  2661. /*! no static exports found */
  2662. /***/ (function(module, exports) {
  2663. function _iterableToArray(iter) {
  2664. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  2665. }
  2666. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2667. /***/ }),
  2668. /***/ 21:
  2669. /*!******************************************************************!*\
  2670. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  2671. \******************************************************************/
  2672. /*! no static exports found */
  2673. /***/ (function(module, exports) {
  2674. function _nonIterableSpread() {
  2675. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2676. }
  2677. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2678. /***/ }),
  2679. /***/ 22:
  2680. /*!*************************************************************!*\
  2681. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  2682. \*************************************************************/
  2683. /*! no static exports found */
  2684. /***/ (function(module, exports, __webpack_require__) {
  2685. "use strict";
  2686. /* WEBPACK VAR INJECTION */(function(uni, global) {
  2687. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  2688. Object.defineProperty(exports, "__esModule", {
  2689. value: true
  2690. });
  2691. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  2692. exports.compileI18nJsonStr = compileI18nJsonStr;
  2693. exports.hasI18nJson = hasI18nJson;
  2694. exports.initVueI18n = initVueI18n;
  2695. exports.isI18nStr = isI18nStr;
  2696. exports.isString = void 0;
  2697. exports.normalizeLocale = normalizeLocale;
  2698. exports.parseI18nJson = parseI18nJson;
  2699. exports.resolveLocale = resolveLocale;
  2700. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  2701. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  2702. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  2703. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  2704. var isObject = function isObject(val) {
  2705. return val !== null && (0, _typeof2.default)(val) === 'object';
  2706. };
  2707. var defaultDelimiters = ['{', '}'];
  2708. var BaseFormatter = /*#__PURE__*/function () {
  2709. function BaseFormatter() {
  2710. (0, _classCallCheck2.default)(this, BaseFormatter);
  2711. this._caches = Object.create(null);
  2712. }
  2713. (0, _createClass2.default)(BaseFormatter, [{
  2714. key: "interpolate",
  2715. value: function interpolate(message, values) {
  2716. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  2717. if (!values) {
  2718. return [message];
  2719. }
  2720. var tokens = this._caches[message];
  2721. if (!tokens) {
  2722. tokens = parse(message, delimiters);
  2723. this._caches[message] = tokens;
  2724. }
  2725. return compile(tokens, values);
  2726. }
  2727. }]);
  2728. return BaseFormatter;
  2729. }();
  2730. exports.Formatter = BaseFormatter;
  2731. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  2732. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  2733. function parse(format, _ref) {
  2734. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  2735. startDelimiter = _ref2[0],
  2736. endDelimiter = _ref2[1];
  2737. var tokens = [];
  2738. var position = 0;
  2739. var text = '';
  2740. while (position < format.length) {
  2741. var char = format[position++];
  2742. if (char === startDelimiter) {
  2743. if (text) {
  2744. tokens.push({
  2745. type: 'text',
  2746. value: text
  2747. });
  2748. }
  2749. text = '';
  2750. var sub = '';
  2751. char = format[position++];
  2752. while (char !== undefined && char !== endDelimiter) {
  2753. sub += char;
  2754. char = format[position++];
  2755. }
  2756. var isClosed = char === endDelimiter;
  2757. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  2758. tokens.push({
  2759. value: sub,
  2760. type: type
  2761. });
  2762. }
  2763. // else if (char === '%') {
  2764. // // when found rails i18n syntax, skip text capture
  2765. // if (format[position] !== '{') {
  2766. // text += char
  2767. // }
  2768. // }
  2769. else {
  2770. text += char;
  2771. }
  2772. }
  2773. text && tokens.push({
  2774. type: 'text',
  2775. value: text
  2776. });
  2777. return tokens;
  2778. }
  2779. function compile(tokens, values) {
  2780. var compiled = [];
  2781. var index = 0;
  2782. var mode = Array.isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  2783. if (mode === 'unknown') {
  2784. return compiled;
  2785. }
  2786. while (index < tokens.length) {
  2787. var token = tokens[index];
  2788. switch (token.type) {
  2789. case 'text':
  2790. compiled.push(token.value);
  2791. break;
  2792. case 'list':
  2793. compiled.push(values[parseInt(token.value, 10)]);
  2794. break;
  2795. case 'named':
  2796. if (mode === 'named') {
  2797. compiled.push(values[token.value]);
  2798. } else {
  2799. if (true) {
  2800. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  2801. }
  2802. }
  2803. break;
  2804. case 'unknown':
  2805. if (true) {
  2806. console.warn("Detect 'unknown' type of token!");
  2807. }
  2808. break;
  2809. }
  2810. index++;
  2811. }
  2812. return compiled;
  2813. }
  2814. var LOCALE_ZH_HANS = 'zh-Hans';
  2815. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  2816. var LOCALE_ZH_HANT = 'zh-Hant';
  2817. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  2818. var LOCALE_EN = 'en';
  2819. exports.LOCALE_EN = LOCALE_EN;
  2820. var LOCALE_FR = 'fr';
  2821. exports.LOCALE_FR = LOCALE_FR;
  2822. var LOCALE_ES = 'es';
  2823. exports.LOCALE_ES = LOCALE_ES;
  2824. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2825. var hasOwn = function hasOwn(val, key) {
  2826. return hasOwnProperty.call(val, key);
  2827. };
  2828. var defaultFormatter = new BaseFormatter();
  2829. function include(str, parts) {
  2830. return !!parts.find(function (part) {
  2831. return str.indexOf(part) !== -1;
  2832. });
  2833. }
  2834. function startsWith(str, parts) {
  2835. return parts.find(function (part) {
  2836. return str.indexOf(part) === 0;
  2837. });
  2838. }
  2839. function normalizeLocale(locale, messages) {
  2840. if (!locale) {
  2841. return;
  2842. }
  2843. locale = locale.trim().replace(/_/g, '-');
  2844. if (messages && messages[locale]) {
  2845. return locale;
  2846. }
  2847. locale = locale.toLowerCase();
  2848. if (locale === 'chinese') {
  2849. // 支付宝
  2850. return LOCALE_ZH_HANS;
  2851. }
  2852. if (locale.indexOf('zh') === 0) {
  2853. if (locale.indexOf('-hans') > -1) {
  2854. return LOCALE_ZH_HANS;
  2855. }
  2856. if (locale.indexOf('-hant') > -1) {
  2857. return LOCALE_ZH_HANT;
  2858. }
  2859. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  2860. return LOCALE_ZH_HANT;
  2861. }
  2862. return LOCALE_ZH_HANS;
  2863. }
  2864. var locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES];
  2865. if (messages && Object.keys(messages).length > 0) {
  2866. locales = Object.keys(messages);
  2867. }
  2868. var lang = startsWith(locale, locales);
  2869. if (lang) {
  2870. return lang;
  2871. }
  2872. }
  2873. var I18n = /*#__PURE__*/function () {
  2874. function I18n(_ref3) {
  2875. var locale = _ref3.locale,
  2876. fallbackLocale = _ref3.fallbackLocale,
  2877. messages = _ref3.messages,
  2878. watcher = _ref3.watcher,
  2879. formater = _ref3.formater;
  2880. (0, _classCallCheck2.default)(this, I18n);
  2881. this.locale = LOCALE_EN;
  2882. this.fallbackLocale = LOCALE_EN;
  2883. this.message = {};
  2884. this.messages = {};
  2885. this.watchers = [];
  2886. if (fallbackLocale) {
  2887. this.fallbackLocale = fallbackLocale;
  2888. }
  2889. this.formater = formater || defaultFormatter;
  2890. this.messages = messages || {};
  2891. this.setLocale(locale || LOCALE_EN);
  2892. if (watcher) {
  2893. this.watchLocale(watcher);
  2894. }
  2895. }
  2896. (0, _createClass2.default)(I18n, [{
  2897. key: "setLocale",
  2898. value: function setLocale(locale) {
  2899. var _this = this;
  2900. var oldLocale = this.locale;
  2901. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  2902. if (!this.messages[this.locale]) {
  2903. // 可能初始化时不存在
  2904. this.messages[this.locale] = {};
  2905. }
  2906. this.message = this.messages[this.locale];
  2907. // 仅发生变化时,通知
  2908. if (oldLocale !== this.locale) {
  2909. this.watchers.forEach(function (watcher) {
  2910. watcher(_this.locale, oldLocale);
  2911. });
  2912. }
  2913. }
  2914. }, {
  2915. key: "getLocale",
  2916. value: function getLocale() {
  2917. return this.locale;
  2918. }
  2919. }, {
  2920. key: "watchLocale",
  2921. value: function watchLocale(fn) {
  2922. var _this2 = this;
  2923. var index = this.watchers.push(fn) - 1;
  2924. return function () {
  2925. _this2.watchers.splice(index, 1);
  2926. };
  2927. }
  2928. }, {
  2929. key: "add",
  2930. value: function add(locale, message) {
  2931. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  2932. var curMessages = this.messages[locale];
  2933. if (curMessages) {
  2934. if (override) {
  2935. Object.assign(curMessages, message);
  2936. } else {
  2937. Object.keys(message).forEach(function (key) {
  2938. if (!hasOwn(curMessages, key)) {
  2939. curMessages[key] = message[key];
  2940. }
  2941. });
  2942. }
  2943. } else {
  2944. this.messages[locale] = message;
  2945. }
  2946. }
  2947. }, {
  2948. key: "f",
  2949. value: function f(message, values, delimiters) {
  2950. return this.formater.interpolate(message, values, delimiters).join('');
  2951. }
  2952. }, {
  2953. key: "t",
  2954. value: function t(key, locale, values) {
  2955. var message = this.message;
  2956. if (typeof locale === 'string') {
  2957. locale = normalizeLocale(locale, this.messages);
  2958. locale && (message = this.messages[locale]);
  2959. } else {
  2960. values = locale;
  2961. }
  2962. if (!hasOwn(message, key)) {
  2963. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  2964. return key;
  2965. }
  2966. return this.formater.interpolate(message[key], values).join('');
  2967. }
  2968. }]);
  2969. return I18n;
  2970. }();
  2971. exports.I18n = I18n;
  2972. function watchAppLocale(appVm, i18n) {
  2973. // 需要保证 watch 的触发在组件渲染之前
  2974. if (appVm.$watchLocale) {
  2975. // vue2
  2976. appVm.$watchLocale(function (newLocale) {
  2977. i18n.setLocale(newLocale);
  2978. });
  2979. } else {
  2980. appVm.$watch(function () {
  2981. return appVm.$locale;
  2982. }, function (newLocale) {
  2983. i18n.setLocale(newLocale);
  2984. });
  2985. }
  2986. }
  2987. function getDefaultLocale() {
  2988. if (typeof uni !== 'undefined' && uni.getLocale) {
  2989. return uni.getLocale();
  2990. }
  2991. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  2992. if (typeof global !== 'undefined' && global.getLocale) {
  2993. return global.getLocale();
  2994. }
  2995. return LOCALE_EN;
  2996. }
  2997. function initVueI18n(locale) {
  2998. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2999. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  3000. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  3001. // 兼容旧版本入参
  3002. if (typeof locale !== 'string') {
  3003. var _ref4 = [messages, locale];
  3004. locale = _ref4[0];
  3005. messages = _ref4[1];
  3006. }
  3007. if (typeof locale !== 'string') {
  3008. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  3009. locale = getDefaultLocale();
  3010. }
  3011. if (typeof fallbackLocale !== 'string') {
  3012. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  3013. }
  3014. var i18n = new I18n({
  3015. locale: locale,
  3016. fallbackLocale: fallbackLocale,
  3017. messages: messages,
  3018. watcher: watcher
  3019. });
  3020. var _t = function t(key, values) {
  3021. if (typeof getApp !== 'function') {
  3022. // app view
  3023. /* eslint-disable no-func-assign */
  3024. _t = function t(key, values) {
  3025. return i18n.t(key, values);
  3026. };
  3027. } else {
  3028. var isWatchedAppLocale = false;
  3029. _t = function t(key, values) {
  3030. var appVm = getApp().$vm;
  3031. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  3032. // options: {
  3033. // type: Array,
  3034. // default () {
  3035. // return [{
  3036. // icon: 'shop',
  3037. // text: t("uni-goods-nav.options.shop"),
  3038. // }, {
  3039. // icon: 'cart',
  3040. // text: t("uni-goods-nav.options.cart")
  3041. // }]
  3042. // }
  3043. // },
  3044. if (appVm) {
  3045. // 触发响应式
  3046. appVm.$locale;
  3047. if (!isWatchedAppLocale) {
  3048. isWatchedAppLocale = true;
  3049. watchAppLocale(appVm, i18n);
  3050. }
  3051. }
  3052. return i18n.t(key, values);
  3053. };
  3054. }
  3055. return _t(key, values);
  3056. };
  3057. return {
  3058. i18n: i18n,
  3059. f: function f(message, values, delimiters) {
  3060. return i18n.f(message, values, delimiters);
  3061. },
  3062. t: function t(key, values) {
  3063. return _t(key, values);
  3064. },
  3065. add: function add(locale, message) {
  3066. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3067. return i18n.add(locale, message, override);
  3068. },
  3069. watch: function watch(fn) {
  3070. return i18n.watchLocale(fn);
  3071. },
  3072. getLocale: function getLocale() {
  3073. return i18n.getLocale();
  3074. },
  3075. setLocale: function setLocale(newLocale) {
  3076. return i18n.setLocale(newLocale);
  3077. }
  3078. };
  3079. }
  3080. var isString = function isString(val) {
  3081. return typeof val === 'string';
  3082. };
  3083. exports.isString = isString;
  3084. var formater;
  3085. function hasI18nJson(jsonObj, delimiters) {
  3086. if (!formater) {
  3087. formater = new BaseFormatter();
  3088. }
  3089. return walkJsonObj(jsonObj, function (jsonObj, key) {
  3090. var value = jsonObj[key];
  3091. if (isString(value)) {
  3092. if (isI18nStr(value, delimiters)) {
  3093. return true;
  3094. }
  3095. } else {
  3096. return hasI18nJson(value, delimiters);
  3097. }
  3098. });
  3099. }
  3100. function parseI18nJson(jsonObj, values, delimiters) {
  3101. if (!formater) {
  3102. formater = new BaseFormatter();
  3103. }
  3104. walkJsonObj(jsonObj, function (jsonObj, key) {
  3105. var value = jsonObj[key];
  3106. if (isString(value)) {
  3107. if (isI18nStr(value, delimiters)) {
  3108. jsonObj[key] = compileStr(value, values, delimiters);
  3109. }
  3110. } else {
  3111. parseI18nJson(value, values, delimiters);
  3112. }
  3113. });
  3114. return jsonObj;
  3115. }
  3116. function compileI18nJsonStr(jsonStr, _ref5) {
  3117. var locale = _ref5.locale,
  3118. locales = _ref5.locales,
  3119. delimiters = _ref5.delimiters;
  3120. if (!isI18nStr(jsonStr, delimiters)) {
  3121. return jsonStr;
  3122. }
  3123. if (!formater) {
  3124. formater = new BaseFormatter();
  3125. }
  3126. var localeValues = [];
  3127. Object.keys(locales).forEach(function (name) {
  3128. if (name !== locale) {
  3129. localeValues.push({
  3130. locale: name,
  3131. values: locales[name]
  3132. });
  3133. }
  3134. });
  3135. localeValues.unshift({
  3136. locale: locale,
  3137. values: locales[locale]
  3138. });
  3139. try {
  3140. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  3141. } catch (e) {}
  3142. return jsonStr;
  3143. }
  3144. function isI18nStr(value, delimiters) {
  3145. return value.indexOf(delimiters[0]) > -1;
  3146. }
  3147. function compileStr(value, values, delimiters) {
  3148. return formater.interpolate(value, values, delimiters).join('');
  3149. }
  3150. function compileValue(jsonObj, key, localeValues, delimiters) {
  3151. var value = jsonObj[key];
  3152. if (isString(value)) {
  3153. // 存在国际化
  3154. if (isI18nStr(value, delimiters)) {
  3155. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  3156. if (localeValues.length > 1) {
  3157. // 格式化国际化语言
  3158. var valueLocales = jsonObj[key + 'Locales'] = {};
  3159. localeValues.forEach(function (localValue) {
  3160. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  3161. });
  3162. }
  3163. }
  3164. } else {
  3165. compileJsonObj(value, localeValues, delimiters);
  3166. }
  3167. }
  3168. function compileJsonObj(jsonObj, localeValues, delimiters) {
  3169. walkJsonObj(jsonObj, function (jsonObj, key) {
  3170. compileValue(jsonObj, key, localeValues, delimiters);
  3171. });
  3172. return jsonObj;
  3173. }
  3174. function walkJsonObj(jsonObj, walk) {
  3175. if (Array.isArray(jsonObj)) {
  3176. for (var i = 0; i < jsonObj.length; i++) {
  3177. if (walk(jsonObj, i)) {
  3178. return true;
  3179. }
  3180. }
  3181. } else if (isObject(jsonObj)) {
  3182. for (var key in jsonObj) {
  3183. if (walk(jsonObj, key)) {
  3184. return true;
  3185. }
  3186. }
  3187. }
  3188. return false;
  3189. }
  3190. function resolveLocale(locales) {
  3191. return function (locale) {
  3192. if (!locale) {
  3193. return locale;
  3194. }
  3195. locale = normalizeLocale(locale) || locale;
  3196. return resolveLocaleChain(locale).find(function (locale) {
  3197. return locales.indexOf(locale) > -1;
  3198. });
  3199. };
  3200. }
  3201. function resolveLocaleChain(locale) {
  3202. var chain = [];
  3203. var tokens = locale.split('-');
  3204. while (tokens.length) {
  3205. chain.push(tokens.join('-'));
  3206. tokens.pop();
  3207. }
  3208. return chain;
  3209. }
  3210. /* 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)))
  3211. /***/ }),
  3212. /***/ 23:
  3213. /*!***************************************************************!*\
  3214. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  3215. \***************************************************************/
  3216. /*! no static exports found */
  3217. /***/ (function(module, exports) {
  3218. function _classCallCheck(instance, Constructor) {
  3219. if (!(instance instanceof Constructor)) {
  3220. throw new TypeError("Cannot call a class as a function");
  3221. }
  3222. }
  3223. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3224. /***/ }),
  3225. /***/ 236:
  3226. /*!**************************************!*\
  3227. !*** E:/书嗨项目/book-hi/utils/tools.js ***!
  3228. \**************************************/
  3229. /*! no static exports found */
  3230. /***/ (function(module, exports, __webpack_require__) {
  3231. "use strict";
  3232. /* WEBPACK VAR INJECTION */(function(uni) {
  3233. Object.defineProperty(exports, "__esModule", {
  3234. value: true
  3235. });
  3236. exports.replaceSale = exports.objKeySort = exports.naviBackEmit = exports.formatDate = void 0;
  3237. /**
  3238. * 常用正则表达式替换方法
  3239. *
  3240. * @replaceSale 月销量,超过一万的加上'w+'
  3241. */
  3242. // 月销量,超过一万的加上'w+'
  3243. var replaceSale = function replaceSale(sale) {
  3244. return sale > 10000 ? sale.replace(/\d{4}$/, 'w+') : sale;
  3245. };
  3246. // 对象key 排序
  3247. exports.replaceSale = replaceSale;
  3248. var objKeySort = function objKeySort(arys) {
  3249. var newkey = Object.keys(arys).sort();
  3250. var newObj = {};
  3251. for (var i = 0; i < newkey.length; i++) {
  3252. newObj[newkey[i]] = arys[newkey[i]];
  3253. }
  3254. return JSON.stringify(newObj);
  3255. };
  3256. // 返回并刷新指定接口
  3257. exports.objKeySort = objKeySort;
  3258. var naviBackEmit = function naviBackEmit(fun) {
  3259. uni.$emit(fun);
  3260. uni.navigateBack({
  3261. delta: 1
  3262. });
  3263. };
  3264. exports.naviBackEmit = naviBackEmit;
  3265. var formatDate = function formatDate(v, type) {
  3266. var date = new Date(v);
  3267. var Y = date.getFullYear();
  3268. var M = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1;
  3269. var D = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
  3270. var h = date.getHours() < 10 ? '0' + date.getHours() : date.getHours();
  3271. var m = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();
  3272. var s = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();
  3273. if (type == 'all') {
  3274. return Y + '/' + M + '/' + D + ' ' + h + ':' + m + ':' + s;
  3275. }
  3276. return Y + '/' + M + '/' + D;
  3277. };
  3278. exports.formatDate = formatDate;
  3279. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  3280. /***/ }),
  3281. /***/ 24:
  3282. /*!************************************************************!*\
  3283. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  3284. \************************************************************/
  3285. /*! no static exports found */
  3286. /***/ (function(module, exports, __webpack_require__) {
  3287. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  3288. function _defineProperties(target, props) {
  3289. for (var i = 0; i < props.length; i++) {
  3290. var descriptor = props[i];
  3291. descriptor.enumerable = descriptor.enumerable || false;
  3292. descriptor.configurable = true;
  3293. if ("value" in descriptor) descriptor.writable = true;
  3294. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  3295. }
  3296. }
  3297. function _createClass(Constructor, protoProps, staticProps) {
  3298. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  3299. if (staticProps) _defineProperties(Constructor, staticProps);
  3300. Object.defineProperty(Constructor, "prototype", {
  3301. writable: false
  3302. });
  3303. return Constructor;
  3304. }
  3305. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3306. /***/ }),
  3307. /***/ 25:
  3308. /*!******************************************************************************************!*\
  3309. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  3310. \******************************************************************************************/
  3311. /*! exports provided: default */
  3312. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3313. "use strict";
  3314. __webpack_require__.r(__webpack_exports__);
  3315. /* WEBPACK VAR INJECTION */(function(global) {/*!
  3316. * Vue.js v2.6.11
  3317. * (c) 2014-2023 Evan You
  3318. * Released under the MIT License.
  3319. */
  3320. /* */
  3321. var emptyObject = Object.freeze({});
  3322. // These helpers produce better VM code in JS engines due to their
  3323. // explicitness and function inlining.
  3324. function isUndef (v) {
  3325. return v === undefined || v === null
  3326. }
  3327. function isDef (v) {
  3328. return v !== undefined && v !== null
  3329. }
  3330. function isTrue (v) {
  3331. return v === true
  3332. }
  3333. function isFalse (v) {
  3334. return v === false
  3335. }
  3336. /**
  3337. * Check if value is primitive.
  3338. */
  3339. function isPrimitive (value) {
  3340. return (
  3341. typeof value === 'string' ||
  3342. typeof value === 'number' ||
  3343. // $flow-disable-line
  3344. typeof value === 'symbol' ||
  3345. typeof value === 'boolean'
  3346. )
  3347. }
  3348. /**
  3349. * Quick object check - this is primarily used to tell
  3350. * Objects from primitive values when we know the value
  3351. * is a JSON-compliant type.
  3352. */
  3353. function isObject (obj) {
  3354. return obj !== null && typeof obj === 'object'
  3355. }
  3356. /**
  3357. * Get the raw type string of a value, e.g., [object Object].
  3358. */
  3359. var _toString = Object.prototype.toString;
  3360. function toRawType (value) {
  3361. return _toString.call(value).slice(8, -1)
  3362. }
  3363. /**
  3364. * Strict object type check. Only returns true
  3365. * for plain JavaScript objects.
  3366. */
  3367. function isPlainObject (obj) {
  3368. return _toString.call(obj) === '[object Object]'
  3369. }
  3370. function isRegExp (v) {
  3371. return _toString.call(v) === '[object RegExp]'
  3372. }
  3373. /**
  3374. * Check if val is a valid array index.
  3375. */
  3376. function isValidArrayIndex (val) {
  3377. var n = parseFloat(String(val));
  3378. return n >= 0 && Math.floor(n) === n && isFinite(val)
  3379. }
  3380. function isPromise (val) {
  3381. return (
  3382. isDef(val) &&
  3383. typeof val.then === 'function' &&
  3384. typeof val.catch === 'function'
  3385. )
  3386. }
  3387. /**
  3388. * Convert a value to a string that is actually rendered.
  3389. */
  3390. function toString (val) {
  3391. return val == null
  3392. ? ''
  3393. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  3394. ? JSON.stringify(val, null, 2)
  3395. : String(val)
  3396. }
  3397. /**
  3398. * Convert an input value to a number for persistence.
  3399. * If the conversion fails, return original string.
  3400. */
  3401. function toNumber (val) {
  3402. var n = parseFloat(val);
  3403. return isNaN(n) ? val : n
  3404. }
  3405. /**
  3406. * Make a map and return a function for checking if a key
  3407. * is in that map.
  3408. */
  3409. function makeMap (
  3410. str,
  3411. expectsLowerCase
  3412. ) {
  3413. var map = Object.create(null);
  3414. var list = str.split(',');
  3415. for (var i = 0; i < list.length; i++) {
  3416. map[list[i]] = true;
  3417. }
  3418. return expectsLowerCase
  3419. ? function (val) { return map[val.toLowerCase()]; }
  3420. : function (val) { return map[val]; }
  3421. }
  3422. /**
  3423. * Check if a tag is a built-in tag.
  3424. */
  3425. var isBuiltInTag = makeMap('slot,component', true);
  3426. /**
  3427. * Check if an attribute is a reserved attribute.
  3428. */
  3429. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  3430. /**
  3431. * Remove an item from an array.
  3432. */
  3433. function remove (arr, item) {
  3434. if (arr.length) {
  3435. var index = arr.indexOf(item);
  3436. if (index > -1) {
  3437. return arr.splice(index, 1)
  3438. }
  3439. }
  3440. }
  3441. /**
  3442. * Check whether an object has the property.
  3443. */
  3444. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3445. function hasOwn (obj, key) {
  3446. return hasOwnProperty.call(obj, key)
  3447. }
  3448. /**
  3449. * Create a cached version of a pure function.
  3450. */
  3451. function cached (fn) {
  3452. var cache = Object.create(null);
  3453. return (function cachedFn (str) {
  3454. var hit = cache[str];
  3455. return hit || (cache[str] = fn(str))
  3456. })
  3457. }
  3458. /**
  3459. * Camelize a hyphen-delimited string.
  3460. */
  3461. var camelizeRE = /-(\w)/g;
  3462. var camelize = cached(function (str) {
  3463. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  3464. });
  3465. /**
  3466. * Capitalize a string.
  3467. */
  3468. var capitalize = cached(function (str) {
  3469. return str.charAt(0).toUpperCase() + str.slice(1)
  3470. });
  3471. /**
  3472. * Hyphenate a camelCase string.
  3473. */
  3474. var hyphenateRE = /\B([A-Z])/g;
  3475. var hyphenate = cached(function (str) {
  3476. return str.replace(hyphenateRE, '-$1').toLowerCase()
  3477. });
  3478. /**
  3479. * Simple bind polyfill for environments that do not support it,
  3480. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  3481. * since native bind is now performant enough in most browsers.
  3482. * But removing it would mean breaking code that was able to run in
  3483. * PhantomJS 1.x, so this must be kept for backward compatibility.
  3484. */
  3485. /* istanbul ignore next */
  3486. function polyfillBind (fn, ctx) {
  3487. function boundFn (a) {
  3488. var l = arguments.length;
  3489. return l
  3490. ? l > 1
  3491. ? fn.apply(ctx, arguments)
  3492. : fn.call(ctx, a)
  3493. : fn.call(ctx)
  3494. }
  3495. boundFn._length = fn.length;
  3496. return boundFn
  3497. }
  3498. function nativeBind (fn, ctx) {
  3499. return fn.bind(ctx)
  3500. }
  3501. var bind = Function.prototype.bind
  3502. ? nativeBind
  3503. : polyfillBind;
  3504. /**
  3505. * Convert an Array-like object to a real Array.
  3506. */
  3507. function toArray (list, start) {
  3508. start = start || 0;
  3509. var i = list.length - start;
  3510. var ret = new Array(i);
  3511. while (i--) {
  3512. ret[i] = list[i + start];
  3513. }
  3514. return ret
  3515. }
  3516. /**
  3517. * Mix properties into target object.
  3518. */
  3519. function extend (to, _from) {
  3520. for (var key in _from) {
  3521. to[key] = _from[key];
  3522. }
  3523. return to
  3524. }
  3525. /**
  3526. * Merge an Array of Objects into a single Object.
  3527. */
  3528. function toObject (arr) {
  3529. var res = {};
  3530. for (var i = 0; i < arr.length; i++) {
  3531. if (arr[i]) {
  3532. extend(res, arr[i]);
  3533. }
  3534. }
  3535. return res
  3536. }
  3537. /* eslint-disable no-unused-vars */
  3538. /**
  3539. * Perform no operation.
  3540. * Stubbing args to make Flow happy without leaving useless transpiled code
  3541. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  3542. */
  3543. function noop (a, b, c) {}
  3544. /**
  3545. * Always return false.
  3546. */
  3547. var no = function (a, b, c) { return false; };
  3548. /* eslint-enable no-unused-vars */
  3549. /**
  3550. * Return the same value.
  3551. */
  3552. var identity = function (_) { return _; };
  3553. /**
  3554. * Check if two values are loosely equal - that is,
  3555. * if they are plain objects, do they have the same shape?
  3556. */
  3557. function looseEqual (a, b) {
  3558. if (a === b) { return true }
  3559. var isObjectA = isObject(a);
  3560. var isObjectB = isObject(b);
  3561. if (isObjectA && isObjectB) {
  3562. try {
  3563. var isArrayA = Array.isArray(a);
  3564. var isArrayB = Array.isArray(b);
  3565. if (isArrayA && isArrayB) {
  3566. return a.length === b.length && a.every(function (e, i) {
  3567. return looseEqual(e, b[i])
  3568. })
  3569. } else if (a instanceof Date && b instanceof Date) {
  3570. return a.getTime() === b.getTime()
  3571. } else if (!isArrayA && !isArrayB) {
  3572. var keysA = Object.keys(a);
  3573. var keysB = Object.keys(b);
  3574. return keysA.length === keysB.length && keysA.every(function (key) {
  3575. return looseEqual(a[key], b[key])
  3576. })
  3577. } else {
  3578. /* istanbul ignore next */
  3579. return false
  3580. }
  3581. } catch (e) {
  3582. /* istanbul ignore next */
  3583. return false
  3584. }
  3585. } else if (!isObjectA && !isObjectB) {
  3586. return String(a) === String(b)
  3587. } else {
  3588. return false
  3589. }
  3590. }
  3591. /**
  3592. * Return the first index at which a loosely equal value can be
  3593. * found in the array (if value is a plain object, the array must
  3594. * contain an object of the same shape), or -1 if it is not present.
  3595. */
  3596. function looseIndexOf (arr, val) {
  3597. for (var i = 0; i < arr.length; i++) {
  3598. if (looseEqual(arr[i], val)) { return i }
  3599. }
  3600. return -1
  3601. }
  3602. /**
  3603. * Ensure a function is called only once.
  3604. */
  3605. function once (fn) {
  3606. var called = false;
  3607. return function () {
  3608. if (!called) {
  3609. called = true;
  3610. fn.apply(this, arguments);
  3611. }
  3612. }
  3613. }
  3614. var ASSET_TYPES = [
  3615. 'component',
  3616. 'directive',
  3617. 'filter'
  3618. ];
  3619. var LIFECYCLE_HOOKS = [
  3620. 'beforeCreate',
  3621. 'created',
  3622. 'beforeMount',
  3623. 'mounted',
  3624. 'beforeUpdate',
  3625. 'updated',
  3626. 'beforeDestroy',
  3627. 'destroyed',
  3628. 'activated',
  3629. 'deactivated',
  3630. 'errorCaptured',
  3631. 'serverPrefetch'
  3632. ];
  3633. /* */
  3634. var config = ({
  3635. /**
  3636. * Option merge strategies (used in core/util/options)
  3637. */
  3638. // $flow-disable-line
  3639. optionMergeStrategies: Object.create(null),
  3640. /**
  3641. * Whether to suppress warnings.
  3642. */
  3643. silent: false,
  3644. /**
  3645. * Show production mode tip message on boot?
  3646. */
  3647. productionTip: "development" !== 'production',
  3648. /**
  3649. * Whether to enable devtools
  3650. */
  3651. devtools: "development" !== 'production',
  3652. /**
  3653. * Whether to record perf
  3654. */
  3655. performance: false,
  3656. /**
  3657. * Error handler for watcher errors
  3658. */
  3659. errorHandler: null,
  3660. /**
  3661. * Warn handler for watcher warns
  3662. */
  3663. warnHandler: null,
  3664. /**
  3665. * Ignore certain custom elements
  3666. */
  3667. ignoredElements: [],
  3668. /**
  3669. * Custom user key aliases for v-on
  3670. */
  3671. // $flow-disable-line
  3672. keyCodes: Object.create(null),
  3673. /**
  3674. * Check if a tag is reserved so that it cannot be registered as a
  3675. * component. This is platform-dependent and may be overwritten.
  3676. */
  3677. isReservedTag: no,
  3678. /**
  3679. * Check if an attribute is reserved so that it cannot be used as a component
  3680. * prop. This is platform-dependent and may be overwritten.
  3681. */
  3682. isReservedAttr: no,
  3683. /**
  3684. * Check if a tag is an unknown element.
  3685. * Platform-dependent.
  3686. */
  3687. isUnknownElement: no,
  3688. /**
  3689. * Get the namespace of an element
  3690. */
  3691. getTagNamespace: noop,
  3692. /**
  3693. * Parse the real tag name for the specific platform.
  3694. */
  3695. parsePlatformTagName: identity,
  3696. /**
  3697. * Check if an attribute must be bound using property, e.g. value
  3698. * Platform-dependent.
  3699. */
  3700. mustUseProp: no,
  3701. /**
  3702. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  3703. * This will significantly reduce performance if set to false.
  3704. */
  3705. async: true,
  3706. /**
  3707. * Exposed for legacy reasons
  3708. */
  3709. _lifecycleHooks: LIFECYCLE_HOOKS
  3710. });
  3711. /* */
  3712. /**
  3713. * unicode letters used for parsing html tags, component names and property paths.
  3714. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  3715. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  3716. */
  3717. var unicodeRegExp = /a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;
  3718. /**
  3719. * Check if a string starts with $ or _
  3720. */
  3721. function isReserved (str) {
  3722. var c = (str + '').charCodeAt(0);
  3723. return c === 0x24 || c === 0x5F
  3724. }
  3725. /**
  3726. * Define a property.
  3727. */
  3728. function def (obj, key, val, enumerable) {
  3729. Object.defineProperty(obj, key, {
  3730. value: val,
  3731. enumerable: !!enumerable,
  3732. writable: true,
  3733. configurable: true
  3734. });
  3735. }
  3736. /**
  3737. * Parse simple path.
  3738. */
  3739. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  3740. function parsePath (path) {
  3741. if (bailRE.test(path)) {
  3742. return
  3743. }
  3744. var segments = path.split('.');
  3745. return function (obj) {
  3746. for (var i = 0; i < segments.length; i++) {
  3747. if (!obj) { return }
  3748. obj = obj[segments[i]];
  3749. }
  3750. return obj
  3751. }
  3752. }
  3753. /* */
  3754. // can we use __proto__?
  3755. var hasProto = '__proto__' in {};
  3756. // Browser environment sniffing
  3757. var inBrowser = typeof window !== 'undefined';
  3758. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  3759. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  3760. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  3761. var isIE = UA && /msie|trident/.test(UA);
  3762. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  3763. var isEdge = UA && UA.indexOf('edge/') > 0;
  3764. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  3765. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  3766. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  3767. var isPhantomJS = UA && /phantomjs/.test(UA);
  3768. var isFF = UA && UA.match(/firefox\/(\d+)/);
  3769. // Firefox has a "watch" function on Object.prototype...
  3770. var nativeWatch = ({}).watch;
  3771. if (inBrowser) {
  3772. try {
  3773. var opts = {};
  3774. Object.defineProperty(opts, 'passive', ({
  3775. get: function get () {
  3776. }
  3777. })); // https://github.com/facebook/flow/issues/285
  3778. window.addEventListener('test-passive', null, opts);
  3779. } catch (e) {}
  3780. }
  3781. // this needs to be lazy-evaled because vue may be required before
  3782. // vue-server-renderer can set VUE_ENV
  3783. var _isServer;
  3784. var isServerRendering = function () {
  3785. if (_isServer === undefined) {
  3786. /* istanbul ignore if */
  3787. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  3788. // detect presence of vue-server-renderer and avoid
  3789. // Webpack shimming the process
  3790. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  3791. } else {
  3792. _isServer = false;
  3793. }
  3794. }
  3795. return _isServer
  3796. };
  3797. // detect devtools
  3798. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  3799. /* istanbul ignore next */
  3800. function isNative (Ctor) {
  3801. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  3802. }
  3803. var hasSymbol =
  3804. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  3805. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  3806. var _Set;
  3807. /* istanbul ignore if */ // $flow-disable-line
  3808. if (typeof Set !== 'undefined' && isNative(Set)) {
  3809. // use native Set when available.
  3810. _Set = Set;
  3811. } else {
  3812. // a non-standard Set polyfill that only works with primitive keys.
  3813. _Set = /*@__PURE__*/(function () {
  3814. function Set () {
  3815. this.set = Object.create(null);
  3816. }
  3817. Set.prototype.has = function has (key) {
  3818. return this.set[key] === true
  3819. };
  3820. Set.prototype.add = function add (key) {
  3821. this.set[key] = true;
  3822. };
  3823. Set.prototype.clear = function clear () {
  3824. this.set = Object.create(null);
  3825. };
  3826. return Set;
  3827. }());
  3828. }
  3829. /* */
  3830. var warn = noop;
  3831. var tip = noop;
  3832. var generateComponentTrace = (noop); // work around flow check
  3833. var formatComponentName = (noop);
  3834. if (true) {
  3835. var hasConsole = typeof console !== 'undefined';
  3836. var classifyRE = /(?:^|[-_])(\w)/g;
  3837. var classify = function (str) { return str
  3838. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  3839. .replace(/[-_]/g, ''); };
  3840. warn = function (msg, vm) {
  3841. var trace = vm ? generateComponentTrace(vm) : '';
  3842. if (config.warnHandler) {
  3843. config.warnHandler.call(null, msg, vm, trace);
  3844. } else if (hasConsole && (!config.silent)) {
  3845. console.error(("[Vue warn]: " + msg + trace));
  3846. }
  3847. };
  3848. tip = function (msg, vm) {
  3849. if (hasConsole && (!config.silent)) {
  3850. console.warn("[Vue tip]: " + msg + (
  3851. vm ? generateComponentTrace(vm) : ''
  3852. ));
  3853. }
  3854. };
  3855. formatComponentName = function (vm, includeFile) {
  3856. if (vm.$root === vm) {
  3857. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  3858. return ('') + vm.$options.__file
  3859. }
  3860. return '<Root>'
  3861. }
  3862. var options = typeof vm === 'function' && vm.cid != null
  3863. ? vm.options
  3864. : vm._isVue
  3865. ? vm.$options || vm.constructor.options
  3866. : vm;
  3867. var name = options.name || options._componentTag;
  3868. var file = options.__file;
  3869. if (!name && file) {
  3870. var match = file.match(/([^/\\]+)\.vue$/);
  3871. name = match && match[1];
  3872. }
  3873. return (
  3874. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  3875. (file && includeFile !== false ? (" at " + file) : '')
  3876. )
  3877. };
  3878. var repeat = function (str, n) {
  3879. var res = '';
  3880. while (n) {
  3881. if (n % 2 === 1) { res += str; }
  3882. if (n > 1) { str += str; }
  3883. n >>= 1;
  3884. }
  3885. return res
  3886. };
  3887. generateComponentTrace = function (vm) {
  3888. if (vm._isVue && vm.$parent) {
  3889. var tree = [];
  3890. var currentRecursiveSequence = 0;
  3891. while (vm && vm.$options.name !== 'PageBody') {
  3892. if (tree.length > 0) {
  3893. var last = tree[tree.length - 1];
  3894. if (last.constructor === vm.constructor) {
  3895. currentRecursiveSequence++;
  3896. vm = vm.$parent;
  3897. continue
  3898. } else if (currentRecursiveSequence > 0) {
  3899. tree[tree.length - 1] = [last, currentRecursiveSequence];
  3900. currentRecursiveSequence = 0;
  3901. }
  3902. }
  3903. !vm.$options.isReserved && tree.push(vm);
  3904. vm = vm.$parent;
  3905. }
  3906. return '\n\nfound in\n\n' + tree
  3907. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  3908. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  3909. : formatComponentName(vm))); })
  3910. .join('\n')
  3911. } else {
  3912. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  3913. }
  3914. };
  3915. }
  3916. /* */
  3917. var uid = 0;
  3918. /**
  3919. * A dep is an observable that can have multiple
  3920. * directives subscribing to it.
  3921. */
  3922. var Dep = function Dep () {
  3923. this.id = uid++;
  3924. this.subs = [];
  3925. };
  3926. Dep.prototype.addSub = function addSub (sub) {
  3927. this.subs.push(sub);
  3928. };
  3929. Dep.prototype.removeSub = function removeSub (sub) {
  3930. remove(this.subs, sub);
  3931. };
  3932. Dep.prototype.depend = function depend () {
  3933. if (Dep.SharedObject.target) {
  3934. Dep.SharedObject.target.addDep(this);
  3935. }
  3936. };
  3937. Dep.prototype.notify = function notify () {
  3938. // stabilize the subscriber list first
  3939. var subs = this.subs.slice();
  3940. if ( true && !config.async) {
  3941. // subs aren't sorted in scheduler if not running async
  3942. // we need to sort them now to make sure they fire in correct
  3943. // order
  3944. subs.sort(function (a, b) { return a.id - b.id; });
  3945. }
  3946. for (var i = 0, l = subs.length; i < l; i++) {
  3947. subs[i].update();
  3948. }
  3949. };
  3950. // The current target watcher being evaluated.
  3951. // This is globally unique because only one watcher
  3952. // can be evaluated at a time.
  3953. // fixed by xxxxxx (nvue shared vuex)
  3954. /* eslint-disable no-undef */
  3955. Dep.SharedObject = {};
  3956. Dep.SharedObject.target = null;
  3957. Dep.SharedObject.targetStack = [];
  3958. function pushTarget (target) {
  3959. Dep.SharedObject.targetStack.push(target);
  3960. Dep.SharedObject.target = target;
  3961. Dep.target = target;
  3962. }
  3963. function popTarget () {
  3964. Dep.SharedObject.targetStack.pop();
  3965. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  3966. Dep.target = Dep.SharedObject.target;
  3967. }
  3968. /* */
  3969. var VNode = function VNode (
  3970. tag,
  3971. data,
  3972. children,
  3973. text,
  3974. elm,
  3975. context,
  3976. componentOptions,
  3977. asyncFactory
  3978. ) {
  3979. this.tag = tag;
  3980. this.data = data;
  3981. this.children = children;
  3982. this.text = text;
  3983. this.elm = elm;
  3984. this.ns = undefined;
  3985. this.context = context;
  3986. this.fnContext = undefined;
  3987. this.fnOptions = undefined;
  3988. this.fnScopeId = undefined;
  3989. this.key = data && data.key;
  3990. this.componentOptions = componentOptions;
  3991. this.componentInstance = undefined;
  3992. this.parent = undefined;
  3993. this.raw = false;
  3994. this.isStatic = false;
  3995. this.isRootInsert = true;
  3996. this.isComment = false;
  3997. this.isCloned = false;
  3998. this.isOnce = false;
  3999. this.asyncFactory = asyncFactory;
  4000. this.asyncMeta = undefined;
  4001. this.isAsyncPlaceholder = false;
  4002. };
  4003. var prototypeAccessors = { child: { configurable: true } };
  4004. // DEPRECATED: alias for componentInstance for backwards compat.
  4005. /* istanbul ignore next */
  4006. prototypeAccessors.child.get = function () {
  4007. return this.componentInstance
  4008. };
  4009. Object.defineProperties( VNode.prototype, prototypeAccessors );
  4010. var createEmptyVNode = function (text) {
  4011. if ( text === void 0 ) text = '';
  4012. var node = new VNode();
  4013. node.text = text;
  4014. node.isComment = true;
  4015. return node
  4016. };
  4017. function createTextVNode (val) {
  4018. return new VNode(undefined, undefined, undefined, String(val))
  4019. }
  4020. // optimized shallow clone
  4021. // used for static nodes and slot nodes because they may be reused across
  4022. // multiple renders, cloning them avoids errors when DOM manipulations rely
  4023. // on their elm reference.
  4024. function cloneVNode (vnode) {
  4025. var cloned = new VNode(
  4026. vnode.tag,
  4027. vnode.data,
  4028. // #7975
  4029. // clone children array to avoid mutating original in case of cloning
  4030. // a child.
  4031. vnode.children && vnode.children.slice(),
  4032. vnode.text,
  4033. vnode.elm,
  4034. vnode.context,
  4035. vnode.componentOptions,
  4036. vnode.asyncFactory
  4037. );
  4038. cloned.ns = vnode.ns;
  4039. cloned.isStatic = vnode.isStatic;
  4040. cloned.key = vnode.key;
  4041. cloned.isComment = vnode.isComment;
  4042. cloned.fnContext = vnode.fnContext;
  4043. cloned.fnOptions = vnode.fnOptions;
  4044. cloned.fnScopeId = vnode.fnScopeId;
  4045. cloned.asyncMeta = vnode.asyncMeta;
  4046. cloned.isCloned = true;
  4047. return cloned
  4048. }
  4049. /*
  4050. * not type checking this file because flow doesn't play well with
  4051. * dynamically accessing methods on Array prototype
  4052. */
  4053. var arrayProto = Array.prototype;
  4054. var arrayMethods = Object.create(arrayProto);
  4055. var methodsToPatch = [
  4056. 'push',
  4057. 'pop',
  4058. 'shift',
  4059. 'unshift',
  4060. 'splice',
  4061. 'sort',
  4062. 'reverse'
  4063. ];
  4064. /**
  4065. * Intercept mutating methods and emit events
  4066. */
  4067. methodsToPatch.forEach(function (method) {
  4068. // cache original method
  4069. var original = arrayProto[method];
  4070. def(arrayMethods, method, function mutator () {
  4071. var args = [], len = arguments.length;
  4072. while ( len-- ) args[ len ] = arguments[ len ];
  4073. var result = original.apply(this, args);
  4074. var ob = this.__ob__;
  4075. var inserted;
  4076. switch (method) {
  4077. case 'push':
  4078. case 'unshift':
  4079. inserted = args;
  4080. break
  4081. case 'splice':
  4082. inserted = args.slice(2);
  4083. break
  4084. }
  4085. if (inserted) { ob.observeArray(inserted); }
  4086. // notify change
  4087. ob.dep.notify();
  4088. return result
  4089. });
  4090. });
  4091. /* */
  4092. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  4093. /**
  4094. * In some cases we may want to disable observation inside a component's
  4095. * update computation.
  4096. */
  4097. var shouldObserve = true;
  4098. function toggleObserving (value) {
  4099. shouldObserve = value;
  4100. }
  4101. /**
  4102. * Observer class that is attached to each observed
  4103. * object. Once attached, the observer converts the target
  4104. * object's property keys into getter/setters that
  4105. * collect dependencies and dispatch updates.
  4106. */
  4107. var Observer = function Observer (value) {
  4108. this.value = value;
  4109. this.dep = new Dep();
  4110. this.vmCount = 0;
  4111. def(value, '__ob__', this);
  4112. if (Array.isArray(value)) {
  4113. if (hasProto) {
  4114. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  4115. if(value.push !== value.__proto__.push){
  4116. copyAugment(value, arrayMethods, arrayKeys);
  4117. } else {
  4118. protoAugment(value, arrayMethods);
  4119. }
  4120. }
  4121. } else {
  4122. copyAugment(value, arrayMethods, arrayKeys);
  4123. }
  4124. this.observeArray(value);
  4125. } else {
  4126. this.walk(value);
  4127. }
  4128. };
  4129. /**
  4130. * Walk through all properties and convert them into
  4131. * getter/setters. This method should only be called when
  4132. * value type is Object.
  4133. */
  4134. Observer.prototype.walk = function walk (obj) {
  4135. var keys = Object.keys(obj);
  4136. for (var i = 0; i < keys.length; i++) {
  4137. defineReactive$$1(obj, keys[i]);
  4138. }
  4139. };
  4140. /**
  4141. * Observe a list of Array items.
  4142. */
  4143. Observer.prototype.observeArray = function observeArray (items) {
  4144. for (var i = 0, l = items.length; i < l; i++) {
  4145. observe(items[i]);
  4146. }
  4147. };
  4148. // helpers
  4149. /**
  4150. * Augment a target Object or Array by intercepting
  4151. * the prototype chain using __proto__
  4152. */
  4153. function protoAugment (target, src) {
  4154. /* eslint-disable no-proto */
  4155. target.__proto__ = src;
  4156. /* eslint-enable no-proto */
  4157. }
  4158. /**
  4159. * Augment a target Object or Array by defining
  4160. * hidden properties.
  4161. */
  4162. /* istanbul ignore next */
  4163. function copyAugment (target, src, keys) {
  4164. for (var i = 0, l = keys.length; i < l; i++) {
  4165. var key = keys[i];
  4166. def(target, key, src[key]);
  4167. }
  4168. }
  4169. /**
  4170. * Attempt to create an observer instance for a value,
  4171. * returns the new observer if successfully observed,
  4172. * or the existing observer if the value already has one.
  4173. */
  4174. function observe (value, asRootData) {
  4175. if (!isObject(value) || value instanceof VNode) {
  4176. return
  4177. }
  4178. var ob;
  4179. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  4180. ob = value.__ob__;
  4181. } else if (
  4182. shouldObserve &&
  4183. !isServerRendering() &&
  4184. (Array.isArray(value) || isPlainObject(value)) &&
  4185. Object.isExtensible(value) &&
  4186. !value._isVue &&
  4187. !value.__v_isMPComponent
  4188. ) {
  4189. ob = new Observer(value);
  4190. }
  4191. if (asRootData && ob) {
  4192. ob.vmCount++;
  4193. }
  4194. return ob
  4195. }
  4196. /**
  4197. * Define a reactive property on an Object.
  4198. */
  4199. function defineReactive$$1 (
  4200. obj,
  4201. key,
  4202. val,
  4203. customSetter,
  4204. shallow
  4205. ) {
  4206. var dep = new Dep();
  4207. var property = Object.getOwnPropertyDescriptor(obj, key);
  4208. if (property && property.configurable === false) {
  4209. return
  4210. }
  4211. // cater for pre-defined getter/setters
  4212. var getter = property && property.get;
  4213. var setter = property && property.set;
  4214. if ((!getter || setter) && arguments.length === 2) {
  4215. val = obj[key];
  4216. }
  4217. var childOb = !shallow && observe(val);
  4218. Object.defineProperty(obj, key, {
  4219. enumerable: true,
  4220. configurable: true,
  4221. get: function reactiveGetter () {
  4222. var value = getter ? getter.call(obj) : val;
  4223. if (Dep.SharedObject.target) { // fixed by xxxxxx
  4224. dep.depend();
  4225. if (childOb) {
  4226. childOb.dep.depend();
  4227. if (Array.isArray(value)) {
  4228. dependArray(value);
  4229. }
  4230. }
  4231. }
  4232. return value
  4233. },
  4234. set: function reactiveSetter (newVal) {
  4235. var value = getter ? getter.call(obj) : val;
  4236. /* eslint-disable no-self-compare */
  4237. if (newVal === value || (newVal !== newVal && value !== value)) {
  4238. return
  4239. }
  4240. /* eslint-enable no-self-compare */
  4241. if ( true && customSetter) {
  4242. customSetter();
  4243. }
  4244. // #7981: for accessor properties without setter
  4245. if (getter && !setter) { return }
  4246. if (setter) {
  4247. setter.call(obj, newVal);
  4248. } else {
  4249. val = newVal;
  4250. }
  4251. childOb = !shallow && observe(newVal);
  4252. dep.notify();
  4253. }
  4254. });
  4255. }
  4256. /**
  4257. * Set a property on an object. Adds the new property and
  4258. * triggers change notification if the property doesn't
  4259. * already exist.
  4260. */
  4261. function set (target, key, val) {
  4262. if ( true &&
  4263. (isUndef(target) || isPrimitive(target))
  4264. ) {
  4265. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  4266. }
  4267. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4268. target.length = Math.max(target.length, key);
  4269. target.splice(key, 1, val);
  4270. return val
  4271. }
  4272. if (key in target && !(key in Object.prototype)) {
  4273. target[key] = val;
  4274. return val
  4275. }
  4276. var ob = (target).__ob__;
  4277. if (target._isVue || (ob && ob.vmCount)) {
  4278. true && warn(
  4279. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  4280. 'at runtime - declare it upfront in the data option.'
  4281. );
  4282. return val
  4283. }
  4284. if (!ob) {
  4285. target[key] = val;
  4286. return val
  4287. }
  4288. defineReactive$$1(ob.value, key, val);
  4289. ob.dep.notify();
  4290. return val
  4291. }
  4292. /**
  4293. * Delete a property and trigger change if necessary.
  4294. */
  4295. function del (target, key) {
  4296. if ( true &&
  4297. (isUndef(target) || isPrimitive(target))
  4298. ) {
  4299. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  4300. }
  4301. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4302. target.splice(key, 1);
  4303. return
  4304. }
  4305. var ob = (target).__ob__;
  4306. if (target._isVue || (ob && ob.vmCount)) {
  4307. true && warn(
  4308. 'Avoid deleting properties on a Vue instance or its root $data ' +
  4309. '- just set it to null.'
  4310. );
  4311. return
  4312. }
  4313. if (!hasOwn(target, key)) {
  4314. return
  4315. }
  4316. delete target[key];
  4317. if (!ob) {
  4318. return
  4319. }
  4320. ob.dep.notify();
  4321. }
  4322. /**
  4323. * Collect dependencies on array elements when the array is touched, since
  4324. * we cannot intercept array element access like property getters.
  4325. */
  4326. function dependArray (value) {
  4327. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  4328. e = value[i];
  4329. e && e.__ob__ && e.__ob__.dep.depend();
  4330. if (Array.isArray(e)) {
  4331. dependArray(e);
  4332. }
  4333. }
  4334. }
  4335. /* */
  4336. /**
  4337. * Option overwriting strategies are functions that handle
  4338. * how to merge a parent option value and a child option
  4339. * value into the final value.
  4340. */
  4341. var strats = config.optionMergeStrategies;
  4342. /**
  4343. * Options with restrictions
  4344. */
  4345. if (true) {
  4346. strats.el = strats.propsData = function (parent, child, vm, key) {
  4347. if (!vm) {
  4348. warn(
  4349. "option \"" + key + "\" can only be used during instance " +
  4350. 'creation with the `new` keyword.'
  4351. );
  4352. }
  4353. return defaultStrat(parent, child)
  4354. };
  4355. }
  4356. /**
  4357. * Helper that recursively merges two data objects together.
  4358. */
  4359. function mergeData (to, from) {
  4360. if (!from) { return to }
  4361. var key, toVal, fromVal;
  4362. var keys = hasSymbol
  4363. ? Reflect.ownKeys(from)
  4364. : Object.keys(from);
  4365. for (var i = 0; i < keys.length; i++) {
  4366. key = keys[i];
  4367. // in case the object is already observed...
  4368. if (key === '__ob__') { continue }
  4369. toVal = to[key];
  4370. fromVal = from[key];
  4371. if (!hasOwn(to, key)) {
  4372. set(to, key, fromVal);
  4373. } else if (
  4374. toVal !== fromVal &&
  4375. isPlainObject(toVal) &&
  4376. isPlainObject(fromVal)
  4377. ) {
  4378. mergeData(toVal, fromVal);
  4379. }
  4380. }
  4381. return to
  4382. }
  4383. /**
  4384. * Data
  4385. */
  4386. function mergeDataOrFn (
  4387. parentVal,
  4388. childVal,
  4389. vm
  4390. ) {
  4391. if (!vm) {
  4392. // in a Vue.extend merge, both should be functions
  4393. if (!childVal) {
  4394. return parentVal
  4395. }
  4396. if (!parentVal) {
  4397. return childVal
  4398. }
  4399. // when parentVal & childVal are both present,
  4400. // we need to return a function that returns the
  4401. // merged result of both functions... no need to
  4402. // check if parentVal is a function here because
  4403. // it has to be a function to pass previous merges.
  4404. return function mergedDataFn () {
  4405. return mergeData(
  4406. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  4407. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  4408. )
  4409. }
  4410. } else {
  4411. return function mergedInstanceDataFn () {
  4412. // instance merge
  4413. var instanceData = typeof childVal === 'function'
  4414. ? childVal.call(vm, vm)
  4415. : childVal;
  4416. var defaultData = typeof parentVal === 'function'
  4417. ? parentVal.call(vm, vm)
  4418. : parentVal;
  4419. if (instanceData) {
  4420. return mergeData(instanceData, defaultData)
  4421. } else {
  4422. return defaultData
  4423. }
  4424. }
  4425. }
  4426. }
  4427. strats.data = function (
  4428. parentVal,
  4429. childVal,
  4430. vm
  4431. ) {
  4432. if (!vm) {
  4433. if (childVal && typeof childVal !== 'function') {
  4434. true && warn(
  4435. 'The "data" option should be a function ' +
  4436. 'that returns a per-instance value in component ' +
  4437. 'definitions.',
  4438. vm
  4439. );
  4440. return parentVal
  4441. }
  4442. return mergeDataOrFn(parentVal, childVal)
  4443. }
  4444. return mergeDataOrFn(parentVal, childVal, vm)
  4445. };
  4446. /**
  4447. * Hooks and props are merged as arrays.
  4448. */
  4449. function mergeHook (
  4450. parentVal,
  4451. childVal
  4452. ) {
  4453. var res = childVal
  4454. ? parentVal
  4455. ? parentVal.concat(childVal)
  4456. : Array.isArray(childVal)
  4457. ? childVal
  4458. : [childVal]
  4459. : parentVal;
  4460. return res
  4461. ? dedupeHooks(res)
  4462. : res
  4463. }
  4464. function dedupeHooks (hooks) {
  4465. var res = [];
  4466. for (var i = 0; i < hooks.length; i++) {
  4467. if (res.indexOf(hooks[i]) === -1) {
  4468. res.push(hooks[i]);
  4469. }
  4470. }
  4471. return res
  4472. }
  4473. LIFECYCLE_HOOKS.forEach(function (hook) {
  4474. strats[hook] = mergeHook;
  4475. });
  4476. /**
  4477. * Assets
  4478. *
  4479. * When a vm is present (instance creation), we need to do
  4480. * a three-way merge between constructor options, instance
  4481. * options and parent options.
  4482. */
  4483. function mergeAssets (
  4484. parentVal,
  4485. childVal,
  4486. vm,
  4487. key
  4488. ) {
  4489. var res = Object.create(parentVal || null);
  4490. if (childVal) {
  4491. true && assertObjectType(key, childVal, vm);
  4492. return extend(res, childVal)
  4493. } else {
  4494. return res
  4495. }
  4496. }
  4497. ASSET_TYPES.forEach(function (type) {
  4498. strats[type + 's'] = mergeAssets;
  4499. });
  4500. /**
  4501. * Watchers.
  4502. *
  4503. * Watchers hashes should not overwrite one
  4504. * another, so we merge them as arrays.
  4505. */
  4506. strats.watch = function (
  4507. parentVal,
  4508. childVal,
  4509. vm,
  4510. key
  4511. ) {
  4512. // work around Firefox's Object.prototype.watch...
  4513. if (parentVal === nativeWatch) { parentVal = undefined; }
  4514. if (childVal === nativeWatch) { childVal = undefined; }
  4515. /* istanbul ignore if */
  4516. if (!childVal) { return Object.create(parentVal || null) }
  4517. if (true) {
  4518. assertObjectType(key, childVal, vm);
  4519. }
  4520. if (!parentVal) { return childVal }
  4521. var ret = {};
  4522. extend(ret, parentVal);
  4523. for (var key$1 in childVal) {
  4524. var parent = ret[key$1];
  4525. var child = childVal[key$1];
  4526. if (parent && !Array.isArray(parent)) {
  4527. parent = [parent];
  4528. }
  4529. ret[key$1] = parent
  4530. ? parent.concat(child)
  4531. : Array.isArray(child) ? child : [child];
  4532. }
  4533. return ret
  4534. };
  4535. /**
  4536. * Other object hashes.
  4537. */
  4538. strats.props =
  4539. strats.methods =
  4540. strats.inject =
  4541. strats.computed = function (
  4542. parentVal,
  4543. childVal,
  4544. vm,
  4545. key
  4546. ) {
  4547. if (childVal && "development" !== 'production') {
  4548. assertObjectType(key, childVal, vm);
  4549. }
  4550. if (!parentVal) { return childVal }
  4551. var ret = Object.create(null);
  4552. extend(ret, parentVal);
  4553. if (childVal) { extend(ret, childVal); }
  4554. return ret
  4555. };
  4556. strats.provide = mergeDataOrFn;
  4557. /**
  4558. * Default strategy.
  4559. */
  4560. var defaultStrat = function (parentVal, childVal) {
  4561. return childVal === undefined
  4562. ? parentVal
  4563. : childVal
  4564. };
  4565. /**
  4566. * Validate component names
  4567. */
  4568. function checkComponents (options) {
  4569. for (var key in options.components) {
  4570. validateComponentName(key);
  4571. }
  4572. }
  4573. function validateComponentName (name) {
  4574. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  4575. warn(
  4576. 'Invalid component name: "' + name + '". Component names ' +
  4577. 'should conform to valid custom element name in html5 specification.'
  4578. );
  4579. }
  4580. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  4581. warn(
  4582. 'Do not use built-in or reserved HTML elements as component ' +
  4583. 'id: ' + name
  4584. );
  4585. }
  4586. }
  4587. /**
  4588. * Ensure all props option syntax are normalized into the
  4589. * Object-based format.
  4590. */
  4591. function normalizeProps (options, vm) {
  4592. var props = options.props;
  4593. if (!props) { return }
  4594. var res = {};
  4595. var i, val, name;
  4596. if (Array.isArray(props)) {
  4597. i = props.length;
  4598. while (i--) {
  4599. val = props[i];
  4600. if (typeof val === 'string') {
  4601. name = camelize(val);
  4602. res[name] = { type: null };
  4603. } else if (true) {
  4604. warn('props must be strings when using array syntax.');
  4605. }
  4606. }
  4607. } else if (isPlainObject(props)) {
  4608. for (var key in props) {
  4609. val = props[key];
  4610. name = camelize(key);
  4611. res[name] = isPlainObject(val)
  4612. ? val
  4613. : { type: val };
  4614. }
  4615. } else if (true) {
  4616. warn(
  4617. "Invalid value for option \"props\": expected an Array or an Object, " +
  4618. "but got " + (toRawType(props)) + ".",
  4619. vm
  4620. );
  4621. }
  4622. options.props = res;
  4623. }
  4624. /**
  4625. * Normalize all injections into Object-based format
  4626. */
  4627. function normalizeInject (options, vm) {
  4628. var inject = options.inject;
  4629. if (!inject) { return }
  4630. var normalized = options.inject = {};
  4631. if (Array.isArray(inject)) {
  4632. for (var i = 0; i < inject.length; i++) {
  4633. normalized[inject[i]] = { from: inject[i] };
  4634. }
  4635. } else if (isPlainObject(inject)) {
  4636. for (var key in inject) {
  4637. var val = inject[key];
  4638. normalized[key] = isPlainObject(val)
  4639. ? extend({ from: key }, val)
  4640. : { from: val };
  4641. }
  4642. } else if (true) {
  4643. warn(
  4644. "Invalid value for option \"inject\": expected an Array or an Object, " +
  4645. "but got " + (toRawType(inject)) + ".",
  4646. vm
  4647. );
  4648. }
  4649. }
  4650. /**
  4651. * Normalize raw function directives into object format.
  4652. */
  4653. function normalizeDirectives (options) {
  4654. var dirs = options.directives;
  4655. if (dirs) {
  4656. for (var key in dirs) {
  4657. var def$$1 = dirs[key];
  4658. if (typeof def$$1 === 'function') {
  4659. dirs[key] = { bind: def$$1, update: def$$1 };
  4660. }
  4661. }
  4662. }
  4663. }
  4664. function assertObjectType (name, value, vm) {
  4665. if (!isPlainObject(value)) {
  4666. warn(
  4667. "Invalid value for option \"" + name + "\": expected an Object, " +
  4668. "but got " + (toRawType(value)) + ".",
  4669. vm
  4670. );
  4671. }
  4672. }
  4673. /**
  4674. * Merge two option objects into a new one.
  4675. * Core utility used in both instantiation and inheritance.
  4676. */
  4677. function mergeOptions (
  4678. parent,
  4679. child,
  4680. vm
  4681. ) {
  4682. if (true) {
  4683. checkComponents(child);
  4684. }
  4685. if (typeof child === 'function') {
  4686. child = child.options;
  4687. }
  4688. normalizeProps(child, vm);
  4689. normalizeInject(child, vm);
  4690. normalizeDirectives(child);
  4691. // Apply extends and mixins on the child options,
  4692. // but only if it is a raw options object that isn't
  4693. // the result of another mergeOptions call.
  4694. // Only merged options has the _base property.
  4695. if (!child._base) {
  4696. if (child.extends) {
  4697. parent = mergeOptions(parent, child.extends, vm);
  4698. }
  4699. if (child.mixins) {
  4700. for (var i = 0, l = child.mixins.length; i < l; i++) {
  4701. parent = mergeOptions(parent, child.mixins[i], vm);
  4702. }
  4703. }
  4704. }
  4705. var options = {};
  4706. var key;
  4707. for (key in parent) {
  4708. mergeField(key);
  4709. }
  4710. for (key in child) {
  4711. if (!hasOwn(parent, key)) {
  4712. mergeField(key);
  4713. }
  4714. }
  4715. function mergeField (key) {
  4716. var strat = strats[key] || defaultStrat;
  4717. options[key] = strat(parent[key], child[key], vm, key);
  4718. }
  4719. return options
  4720. }
  4721. /**
  4722. * Resolve an asset.
  4723. * This function is used because child instances need access
  4724. * to assets defined in its ancestor chain.
  4725. */
  4726. function resolveAsset (
  4727. options,
  4728. type,
  4729. id,
  4730. warnMissing
  4731. ) {
  4732. /* istanbul ignore if */
  4733. if (typeof id !== 'string') {
  4734. return
  4735. }
  4736. var assets = options[type];
  4737. // check local registration variations first
  4738. if (hasOwn(assets, id)) { return assets[id] }
  4739. var camelizedId = camelize(id);
  4740. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  4741. var PascalCaseId = capitalize(camelizedId);
  4742. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  4743. // fallback to prototype chain
  4744. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  4745. if ( true && warnMissing && !res) {
  4746. warn(
  4747. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  4748. options
  4749. );
  4750. }
  4751. return res
  4752. }
  4753. /* */
  4754. function validateProp (
  4755. key,
  4756. propOptions,
  4757. propsData,
  4758. vm
  4759. ) {
  4760. var prop = propOptions[key];
  4761. var absent = !hasOwn(propsData, key);
  4762. var value = propsData[key];
  4763. // boolean casting
  4764. var booleanIndex = getTypeIndex(Boolean, prop.type);
  4765. if (booleanIndex > -1) {
  4766. if (absent && !hasOwn(prop, 'default')) {
  4767. value = false;
  4768. } else if (value === '' || value === hyphenate(key)) {
  4769. // only cast empty string / same name to boolean if
  4770. // boolean has higher priority
  4771. var stringIndex = getTypeIndex(String, prop.type);
  4772. if (stringIndex < 0 || booleanIndex < stringIndex) {
  4773. value = true;
  4774. }
  4775. }
  4776. }
  4777. // check default value
  4778. if (value === undefined) {
  4779. value = getPropDefaultValue(vm, prop, key);
  4780. // since the default value is a fresh copy,
  4781. // make sure to observe it.
  4782. var prevShouldObserve = shouldObserve;
  4783. toggleObserving(true);
  4784. observe(value);
  4785. toggleObserving(prevShouldObserve);
  4786. }
  4787. if (
  4788. true
  4789. ) {
  4790. assertProp(prop, key, value, vm, absent);
  4791. }
  4792. return value
  4793. }
  4794. /**
  4795. * Get the default value of a prop.
  4796. */
  4797. function getPropDefaultValue (vm, prop, key) {
  4798. // no default, return undefined
  4799. if (!hasOwn(prop, 'default')) {
  4800. return undefined
  4801. }
  4802. var def = prop.default;
  4803. // warn against non-factory defaults for Object & Array
  4804. if ( true && isObject(def)) {
  4805. warn(
  4806. 'Invalid default value for prop "' + key + '": ' +
  4807. 'Props with type Object/Array must use a factory function ' +
  4808. 'to return the default value.',
  4809. vm
  4810. );
  4811. }
  4812. // the raw prop value was also undefined from previous render,
  4813. // return previous default value to avoid unnecessary watcher trigger
  4814. if (vm && vm.$options.propsData &&
  4815. vm.$options.propsData[key] === undefined &&
  4816. vm._props[key] !== undefined
  4817. ) {
  4818. return vm._props[key]
  4819. }
  4820. // call factory function for non-Function types
  4821. // a value is Function if its prototype is function even across different execution context
  4822. return typeof def === 'function' && getType(prop.type) !== 'Function'
  4823. ? def.call(vm)
  4824. : def
  4825. }
  4826. /**
  4827. * Assert whether a prop is valid.
  4828. */
  4829. function assertProp (
  4830. prop,
  4831. name,
  4832. value,
  4833. vm,
  4834. absent
  4835. ) {
  4836. if (prop.required && absent) {
  4837. warn(
  4838. 'Missing required prop: "' + name + '"',
  4839. vm
  4840. );
  4841. return
  4842. }
  4843. if (value == null && !prop.required) {
  4844. return
  4845. }
  4846. var type = prop.type;
  4847. var valid = !type || type === true;
  4848. var expectedTypes = [];
  4849. if (type) {
  4850. if (!Array.isArray(type)) {
  4851. type = [type];
  4852. }
  4853. for (var i = 0; i < type.length && !valid; i++) {
  4854. var assertedType = assertType(value, type[i]);
  4855. expectedTypes.push(assertedType.expectedType || '');
  4856. valid = assertedType.valid;
  4857. }
  4858. }
  4859. if (!valid) {
  4860. warn(
  4861. getInvalidTypeMessage(name, value, expectedTypes),
  4862. vm
  4863. );
  4864. return
  4865. }
  4866. var validator = prop.validator;
  4867. if (validator) {
  4868. if (!validator(value)) {
  4869. warn(
  4870. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  4871. vm
  4872. );
  4873. }
  4874. }
  4875. }
  4876. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  4877. function assertType (value, type) {
  4878. var valid;
  4879. var expectedType = getType(type);
  4880. if (simpleCheckRE.test(expectedType)) {
  4881. var t = typeof value;
  4882. valid = t === expectedType.toLowerCase();
  4883. // for primitive wrapper objects
  4884. if (!valid && t === 'object') {
  4885. valid = value instanceof type;
  4886. }
  4887. } else if (expectedType === 'Object') {
  4888. valid = isPlainObject(value);
  4889. } else if (expectedType === 'Array') {
  4890. valid = Array.isArray(value);
  4891. } else {
  4892. valid = value instanceof type;
  4893. }
  4894. return {
  4895. valid: valid,
  4896. expectedType: expectedType
  4897. }
  4898. }
  4899. /**
  4900. * Use function string name to check built-in types,
  4901. * because a simple equality check will fail when running
  4902. * across different vms / iframes.
  4903. */
  4904. function getType (fn) {
  4905. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  4906. return match ? match[1] : ''
  4907. }
  4908. function isSameType (a, b) {
  4909. return getType(a) === getType(b)
  4910. }
  4911. function getTypeIndex (type, expectedTypes) {
  4912. if (!Array.isArray(expectedTypes)) {
  4913. return isSameType(expectedTypes, type) ? 0 : -1
  4914. }
  4915. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  4916. if (isSameType(expectedTypes[i], type)) {
  4917. return i
  4918. }
  4919. }
  4920. return -1
  4921. }
  4922. function getInvalidTypeMessage (name, value, expectedTypes) {
  4923. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  4924. " Expected " + (expectedTypes.map(capitalize).join(', '));
  4925. var expectedType = expectedTypes[0];
  4926. var receivedType = toRawType(value);
  4927. var expectedValue = styleValue(value, expectedType);
  4928. var receivedValue = styleValue(value, receivedType);
  4929. // check if we need to specify expected value
  4930. if (expectedTypes.length === 1 &&
  4931. isExplicable(expectedType) &&
  4932. !isBoolean(expectedType, receivedType)) {
  4933. message += " with value " + expectedValue;
  4934. }
  4935. message += ", got " + receivedType + " ";
  4936. // check if we need to specify received value
  4937. if (isExplicable(receivedType)) {
  4938. message += "with value " + receivedValue + ".";
  4939. }
  4940. return message
  4941. }
  4942. function styleValue (value, type) {
  4943. if (type === 'String') {
  4944. return ("\"" + value + "\"")
  4945. } else if (type === 'Number') {
  4946. return ("" + (Number(value)))
  4947. } else {
  4948. return ("" + value)
  4949. }
  4950. }
  4951. function isExplicable (value) {
  4952. var explicitTypes = ['string', 'number', 'boolean'];
  4953. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  4954. }
  4955. function isBoolean () {
  4956. var args = [], len = arguments.length;
  4957. while ( len-- ) args[ len ] = arguments[ len ];
  4958. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  4959. }
  4960. /* */
  4961. function handleError (err, vm, info) {
  4962. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  4963. // See: https://github.com/vuejs/vuex/issues/1505
  4964. pushTarget();
  4965. try {
  4966. if (vm) {
  4967. var cur = vm;
  4968. while ((cur = cur.$parent)) {
  4969. var hooks = cur.$options.errorCaptured;
  4970. if (hooks) {
  4971. for (var i = 0; i < hooks.length; i++) {
  4972. try {
  4973. var capture = hooks[i].call(cur, err, vm, info) === false;
  4974. if (capture) { return }
  4975. } catch (e) {
  4976. globalHandleError(e, cur, 'errorCaptured hook');
  4977. }
  4978. }
  4979. }
  4980. }
  4981. }
  4982. globalHandleError(err, vm, info);
  4983. } finally {
  4984. popTarget();
  4985. }
  4986. }
  4987. function invokeWithErrorHandling (
  4988. handler,
  4989. context,
  4990. args,
  4991. vm,
  4992. info
  4993. ) {
  4994. var res;
  4995. try {
  4996. res = args ? handler.apply(context, args) : handler.call(context);
  4997. if (res && !res._isVue && isPromise(res) && !res._handled) {
  4998. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  4999. // issue #9511
  5000. // avoid catch triggering multiple times when nested calls
  5001. res._handled = true;
  5002. }
  5003. } catch (e) {
  5004. handleError(e, vm, info);
  5005. }
  5006. return res
  5007. }
  5008. function globalHandleError (err, vm, info) {
  5009. if (config.errorHandler) {
  5010. try {
  5011. return config.errorHandler.call(null, err, vm, info)
  5012. } catch (e) {
  5013. // if the user intentionally throws the original error in the handler,
  5014. // do not log it twice
  5015. if (e !== err) {
  5016. logError(e, null, 'config.errorHandler');
  5017. }
  5018. }
  5019. }
  5020. logError(err, vm, info);
  5021. }
  5022. function logError (err, vm, info) {
  5023. if (true) {
  5024. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  5025. }
  5026. /* istanbul ignore else */
  5027. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  5028. console.error(err);
  5029. } else {
  5030. throw err
  5031. }
  5032. }
  5033. /* */
  5034. var callbacks = [];
  5035. var pending = false;
  5036. function flushCallbacks () {
  5037. pending = false;
  5038. var copies = callbacks.slice(0);
  5039. callbacks.length = 0;
  5040. for (var i = 0; i < copies.length; i++) {
  5041. copies[i]();
  5042. }
  5043. }
  5044. // Here we have async deferring wrappers using microtasks.
  5045. // In 2.5 we used (macro) tasks (in combination with microtasks).
  5046. // However, it has subtle problems when state is changed right before repaint
  5047. // (e.g. #6813, out-in transitions).
  5048. // Also, using (macro) tasks in event handler would cause some weird behaviors
  5049. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  5050. // So we now use microtasks everywhere, again.
  5051. // A major drawback of this tradeoff is that there are some scenarios
  5052. // where microtasks have too high a priority and fire in between supposedly
  5053. // sequential events (e.g. #4521, #6690, which have workarounds)
  5054. // or even between bubbling of the same event (#6566).
  5055. var timerFunc;
  5056. // The nextTick behavior leverages the microtask queue, which can be accessed
  5057. // via either native Promise.then or MutationObserver.
  5058. // MutationObserver has wider support, however it is seriously bugged in
  5059. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  5060. // completely stops working after triggering a few times... so, if native
  5061. // Promise is available, we will use it:
  5062. /* istanbul ignore next, $flow-disable-line */
  5063. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  5064. var p = Promise.resolve();
  5065. timerFunc = function () {
  5066. p.then(flushCallbacks);
  5067. // In problematic UIWebViews, Promise.then doesn't completely break, but
  5068. // it can get stuck in a weird state where callbacks are pushed into the
  5069. // microtask queue but the queue isn't being flushed, until the browser
  5070. // needs to do some other work, e.g. handle a timer. Therefore we can
  5071. // "force" the microtask queue to be flushed by adding an empty timer.
  5072. if (isIOS) { setTimeout(noop); }
  5073. };
  5074. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  5075. isNative(MutationObserver) ||
  5076. // PhantomJS and iOS 7.x
  5077. MutationObserver.toString() === '[object MutationObserverConstructor]'
  5078. )) {
  5079. // Use MutationObserver where native Promise is not available,
  5080. // e.g. PhantomJS, iOS7, Android 4.4
  5081. // (#6466 MutationObserver is unreliable in IE11)
  5082. var counter = 1;
  5083. var observer = new MutationObserver(flushCallbacks);
  5084. var textNode = document.createTextNode(String(counter));
  5085. observer.observe(textNode, {
  5086. characterData: true
  5087. });
  5088. timerFunc = function () {
  5089. counter = (counter + 1) % 2;
  5090. textNode.data = String(counter);
  5091. };
  5092. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  5093. // Fallback to setImmediate.
  5094. // Technically it leverages the (macro) task queue,
  5095. // but it is still a better choice than setTimeout.
  5096. timerFunc = function () {
  5097. setImmediate(flushCallbacks);
  5098. };
  5099. } else {
  5100. // Fallback to setTimeout.
  5101. timerFunc = function () {
  5102. setTimeout(flushCallbacks, 0);
  5103. };
  5104. }
  5105. function nextTick (cb, ctx) {
  5106. var _resolve;
  5107. callbacks.push(function () {
  5108. if (cb) {
  5109. try {
  5110. cb.call(ctx);
  5111. } catch (e) {
  5112. handleError(e, ctx, 'nextTick');
  5113. }
  5114. } else if (_resolve) {
  5115. _resolve(ctx);
  5116. }
  5117. });
  5118. if (!pending) {
  5119. pending = true;
  5120. timerFunc();
  5121. }
  5122. // $flow-disable-line
  5123. if (!cb && typeof Promise !== 'undefined') {
  5124. return new Promise(function (resolve) {
  5125. _resolve = resolve;
  5126. })
  5127. }
  5128. }
  5129. /* */
  5130. /* not type checking this file because flow doesn't play well with Proxy */
  5131. var initProxy;
  5132. if (true) {
  5133. var allowedGlobals = makeMap(
  5134. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  5135. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  5136. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  5137. 'require' // for Webpack/Browserify
  5138. );
  5139. var warnNonPresent = function (target, key) {
  5140. warn(
  5141. "Property or method \"" + key + "\" is not defined on the instance but " +
  5142. 'referenced during render. Make sure that this property is reactive, ' +
  5143. 'either in the data option, or for class-based components, by ' +
  5144. 'initializing the property. ' +
  5145. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  5146. target
  5147. );
  5148. };
  5149. var warnReservedPrefix = function (target, key) {
  5150. warn(
  5151. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  5152. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  5153. 'prevent conflicts with Vue internals. ' +
  5154. 'See: https://vuejs.org/v2/api/#data',
  5155. target
  5156. );
  5157. };
  5158. var hasProxy =
  5159. typeof Proxy !== 'undefined' && isNative(Proxy);
  5160. if (hasProxy) {
  5161. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  5162. config.keyCodes = new Proxy(config.keyCodes, {
  5163. set: function set (target, key, value) {
  5164. if (isBuiltInModifier(key)) {
  5165. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  5166. return false
  5167. } else {
  5168. target[key] = value;
  5169. return true
  5170. }
  5171. }
  5172. });
  5173. }
  5174. var hasHandler = {
  5175. has: function has (target, key) {
  5176. var has = key in target;
  5177. var isAllowed = allowedGlobals(key) ||
  5178. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  5179. if (!has && !isAllowed) {
  5180. if (key in target.$data) { warnReservedPrefix(target, key); }
  5181. else { warnNonPresent(target, key); }
  5182. }
  5183. return has || !isAllowed
  5184. }
  5185. };
  5186. var getHandler = {
  5187. get: function get (target, key) {
  5188. if (typeof key === 'string' && !(key in target)) {
  5189. if (key in target.$data) { warnReservedPrefix(target, key); }
  5190. else { warnNonPresent(target, key); }
  5191. }
  5192. return target[key]
  5193. }
  5194. };
  5195. initProxy = function initProxy (vm) {
  5196. if (hasProxy) {
  5197. // determine which proxy handler to use
  5198. var options = vm.$options;
  5199. var handlers = options.render && options.render._withStripped
  5200. ? getHandler
  5201. : hasHandler;
  5202. vm._renderProxy = new Proxy(vm, handlers);
  5203. } else {
  5204. vm._renderProxy = vm;
  5205. }
  5206. };
  5207. }
  5208. /* */
  5209. var seenObjects = new _Set();
  5210. /**
  5211. * Recursively traverse an object to evoke all converted
  5212. * getters, so that every nested property inside the object
  5213. * is collected as a "deep" dependency.
  5214. */
  5215. function traverse (val) {
  5216. _traverse(val, seenObjects);
  5217. seenObjects.clear();
  5218. }
  5219. function _traverse (val, seen) {
  5220. var i, keys;
  5221. var isA = Array.isArray(val);
  5222. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  5223. return
  5224. }
  5225. if (val.__ob__) {
  5226. var depId = val.__ob__.dep.id;
  5227. if (seen.has(depId)) {
  5228. return
  5229. }
  5230. seen.add(depId);
  5231. }
  5232. if (isA) {
  5233. i = val.length;
  5234. while (i--) { _traverse(val[i], seen); }
  5235. } else {
  5236. keys = Object.keys(val);
  5237. i = keys.length;
  5238. while (i--) { _traverse(val[keys[i]], seen); }
  5239. }
  5240. }
  5241. var mark;
  5242. var measure;
  5243. if (true) {
  5244. var perf = inBrowser && window.performance;
  5245. /* istanbul ignore if */
  5246. if (
  5247. perf &&
  5248. perf.mark &&
  5249. perf.measure &&
  5250. perf.clearMarks &&
  5251. perf.clearMeasures
  5252. ) {
  5253. mark = function (tag) { return perf.mark(tag); };
  5254. measure = function (name, startTag, endTag) {
  5255. perf.measure(name, startTag, endTag);
  5256. perf.clearMarks(startTag);
  5257. perf.clearMarks(endTag);
  5258. // perf.clearMeasures(name)
  5259. };
  5260. }
  5261. }
  5262. /* */
  5263. var normalizeEvent = cached(function (name) {
  5264. var passive = name.charAt(0) === '&';
  5265. name = passive ? name.slice(1) : name;
  5266. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  5267. name = once$$1 ? name.slice(1) : name;
  5268. var capture = name.charAt(0) === '!';
  5269. name = capture ? name.slice(1) : name;
  5270. return {
  5271. name: name,
  5272. once: once$$1,
  5273. capture: capture,
  5274. passive: passive
  5275. }
  5276. });
  5277. function createFnInvoker (fns, vm) {
  5278. function invoker () {
  5279. var arguments$1 = arguments;
  5280. var fns = invoker.fns;
  5281. if (Array.isArray(fns)) {
  5282. var cloned = fns.slice();
  5283. for (var i = 0; i < cloned.length; i++) {
  5284. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  5285. }
  5286. } else {
  5287. // return handler return value for single handlers
  5288. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  5289. }
  5290. }
  5291. invoker.fns = fns;
  5292. return invoker
  5293. }
  5294. function updateListeners (
  5295. on,
  5296. oldOn,
  5297. add,
  5298. remove$$1,
  5299. createOnceHandler,
  5300. vm
  5301. ) {
  5302. var name, def$$1, cur, old, event;
  5303. for (name in on) {
  5304. def$$1 = cur = on[name];
  5305. old = oldOn[name];
  5306. event = normalizeEvent(name);
  5307. if (isUndef(cur)) {
  5308. true && warn(
  5309. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  5310. vm
  5311. );
  5312. } else if (isUndef(old)) {
  5313. if (isUndef(cur.fns)) {
  5314. cur = on[name] = createFnInvoker(cur, vm);
  5315. }
  5316. if (isTrue(event.once)) {
  5317. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  5318. }
  5319. add(event.name, cur, event.capture, event.passive, event.params);
  5320. } else if (cur !== old) {
  5321. old.fns = cur;
  5322. on[name] = old;
  5323. }
  5324. }
  5325. for (name in oldOn) {
  5326. if (isUndef(on[name])) {
  5327. event = normalizeEvent(name);
  5328. remove$$1(event.name, oldOn[name], event.capture);
  5329. }
  5330. }
  5331. }
  5332. /* */
  5333. /* */
  5334. // fixed by xxxxxx (mp properties)
  5335. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  5336. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  5337. if (isUndef(propOptions)) {
  5338. return res
  5339. }
  5340. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  5341. var attrs = data.attrs;
  5342. var props = data.props;
  5343. if (isDef(attrs) || isDef(props)) {
  5344. for (var key in propOptions) {
  5345. var altKey = hyphenate(key);
  5346. var result = checkProp(res, props, key, altKey, true) ||
  5347. checkProp(res, attrs, key, altKey, false);
  5348. // externalClass
  5349. if (
  5350. result &&
  5351. res[key] &&
  5352. externalClasses.indexOf(altKey) !== -1 &&
  5353. context[camelize(res[key])]
  5354. ) {
  5355. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  5356. res[key] = context[camelize(res[key])];
  5357. }
  5358. }
  5359. }
  5360. return res
  5361. }
  5362. function extractPropsFromVNodeData (
  5363. data,
  5364. Ctor,
  5365. tag,
  5366. context// fixed by xxxxxx
  5367. ) {
  5368. // we are only extracting raw values here.
  5369. // validation and default values are handled in the child
  5370. // component itself.
  5371. var propOptions = Ctor.options.props;
  5372. if (isUndef(propOptions)) {
  5373. // fixed by xxxxxx
  5374. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  5375. }
  5376. var res = {};
  5377. var attrs = data.attrs;
  5378. var props = data.props;
  5379. if (isDef(attrs) || isDef(props)) {
  5380. for (var key in propOptions) {
  5381. var altKey = hyphenate(key);
  5382. if (true) {
  5383. var keyInLowerCase = key.toLowerCase();
  5384. if (
  5385. key !== keyInLowerCase &&
  5386. attrs && hasOwn(attrs, keyInLowerCase)
  5387. ) {
  5388. tip(
  5389. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  5390. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  5391. " \"" + key + "\". " +
  5392. "Note that HTML attributes are case-insensitive and camelCased " +
  5393. "props need to use their kebab-case equivalents when using in-DOM " +
  5394. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  5395. );
  5396. }
  5397. }
  5398. checkProp(res, props, key, altKey, true) ||
  5399. checkProp(res, attrs, key, altKey, false);
  5400. }
  5401. }
  5402. // fixed by xxxxxx
  5403. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  5404. }
  5405. function checkProp (
  5406. res,
  5407. hash,
  5408. key,
  5409. altKey,
  5410. preserve
  5411. ) {
  5412. if (isDef(hash)) {
  5413. if (hasOwn(hash, key)) {
  5414. res[key] = hash[key];
  5415. if (!preserve) {
  5416. delete hash[key];
  5417. }
  5418. return true
  5419. } else if (hasOwn(hash, altKey)) {
  5420. res[key] = hash[altKey];
  5421. if (!preserve) {
  5422. delete hash[altKey];
  5423. }
  5424. return true
  5425. }
  5426. }
  5427. return false
  5428. }
  5429. /* */
  5430. // The template compiler attempts to minimize the need for normalization by
  5431. // statically analyzing the template at compile time.
  5432. //
  5433. // For plain HTML markup, normalization can be completely skipped because the
  5434. // generated render function is guaranteed to return Array<VNode>. There are
  5435. // two cases where extra normalization is needed:
  5436. // 1. When the children contains components - because a functional component
  5437. // may return an Array instead of a single root. In this case, just a simple
  5438. // normalization is needed - if any child is an Array, we flatten the whole
  5439. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  5440. // because functional components already normalize their own children.
  5441. function simpleNormalizeChildren (children) {
  5442. for (var i = 0; i < children.length; i++) {
  5443. if (Array.isArray(children[i])) {
  5444. return Array.prototype.concat.apply([], children)
  5445. }
  5446. }
  5447. return children
  5448. }
  5449. // 2. When the children contains constructs that always generated nested Arrays,
  5450. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  5451. // with hand-written render functions / JSX. In such cases a full normalization
  5452. // is needed to cater to all possible types of children values.
  5453. function normalizeChildren (children) {
  5454. return isPrimitive(children)
  5455. ? [createTextVNode(children)]
  5456. : Array.isArray(children)
  5457. ? normalizeArrayChildren(children)
  5458. : undefined
  5459. }
  5460. function isTextNode (node) {
  5461. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  5462. }
  5463. function normalizeArrayChildren (children, nestedIndex) {
  5464. var res = [];
  5465. var i, c, lastIndex, last;
  5466. for (i = 0; i < children.length; i++) {
  5467. c = children[i];
  5468. if (isUndef(c) || typeof c === 'boolean') { continue }
  5469. lastIndex = res.length - 1;
  5470. last = res[lastIndex];
  5471. // nested
  5472. if (Array.isArray(c)) {
  5473. if (c.length > 0) {
  5474. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  5475. // merge adjacent text nodes
  5476. if (isTextNode(c[0]) && isTextNode(last)) {
  5477. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  5478. c.shift();
  5479. }
  5480. res.push.apply(res, c);
  5481. }
  5482. } else if (isPrimitive(c)) {
  5483. if (isTextNode(last)) {
  5484. // merge adjacent text nodes
  5485. // this is necessary for SSR hydration because text nodes are
  5486. // essentially merged when rendered to HTML strings
  5487. res[lastIndex] = createTextVNode(last.text + c);
  5488. } else if (c !== '') {
  5489. // convert primitive to vnode
  5490. res.push(createTextVNode(c));
  5491. }
  5492. } else {
  5493. if (isTextNode(c) && isTextNode(last)) {
  5494. // merge adjacent text nodes
  5495. res[lastIndex] = createTextVNode(last.text + c.text);
  5496. } else {
  5497. // default key for nested array children (likely generated by v-for)
  5498. if (isTrue(children._isVList) &&
  5499. isDef(c.tag) &&
  5500. isUndef(c.key) &&
  5501. isDef(nestedIndex)) {
  5502. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  5503. }
  5504. res.push(c);
  5505. }
  5506. }
  5507. }
  5508. return res
  5509. }
  5510. /* */
  5511. function initProvide (vm) {
  5512. var provide = vm.$options.provide;
  5513. if (provide) {
  5514. vm._provided = typeof provide === 'function'
  5515. ? provide.call(vm)
  5516. : provide;
  5517. }
  5518. }
  5519. function initInjections (vm) {
  5520. var result = resolveInject(vm.$options.inject, vm);
  5521. if (result) {
  5522. toggleObserving(false);
  5523. Object.keys(result).forEach(function (key) {
  5524. /* istanbul ignore else */
  5525. if (true) {
  5526. defineReactive$$1(vm, key, result[key], function () {
  5527. warn(
  5528. "Avoid mutating an injected value directly since the changes will be " +
  5529. "overwritten whenever the provided component re-renders. " +
  5530. "injection being mutated: \"" + key + "\"",
  5531. vm
  5532. );
  5533. });
  5534. } else {}
  5535. });
  5536. toggleObserving(true);
  5537. }
  5538. }
  5539. function resolveInject (inject, vm) {
  5540. if (inject) {
  5541. // inject is :any because flow is not smart enough to figure out cached
  5542. var result = Object.create(null);
  5543. var keys = hasSymbol
  5544. ? Reflect.ownKeys(inject)
  5545. : Object.keys(inject);
  5546. for (var i = 0; i < keys.length; i++) {
  5547. var key = keys[i];
  5548. // #6574 in case the inject object is observed...
  5549. if (key === '__ob__') { continue }
  5550. var provideKey = inject[key].from;
  5551. var source = vm;
  5552. while (source) {
  5553. if (source._provided && hasOwn(source._provided, provideKey)) {
  5554. result[key] = source._provided[provideKey];
  5555. break
  5556. }
  5557. source = source.$parent;
  5558. }
  5559. if (!source) {
  5560. if ('default' in inject[key]) {
  5561. var provideDefault = inject[key].default;
  5562. result[key] = typeof provideDefault === 'function'
  5563. ? provideDefault.call(vm)
  5564. : provideDefault;
  5565. } else if (true) {
  5566. warn(("Injection \"" + key + "\" not found"), vm);
  5567. }
  5568. }
  5569. }
  5570. return result
  5571. }
  5572. }
  5573. /* */
  5574. /**
  5575. * Runtime helper for resolving raw children VNodes into a slot object.
  5576. */
  5577. function resolveSlots (
  5578. children,
  5579. context
  5580. ) {
  5581. if (!children || !children.length) {
  5582. return {}
  5583. }
  5584. var slots = {};
  5585. for (var i = 0, l = children.length; i < l; i++) {
  5586. var child = children[i];
  5587. var data = child.data;
  5588. // remove slot attribute if the node is resolved as a Vue slot node
  5589. if (data && data.attrs && data.attrs.slot) {
  5590. delete data.attrs.slot;
  5591. }
  5592. // named slots should only be respected if the vnode was rendered in the
  5593. // same context.
  5594. if ((child.context === context || child.fnContext === context) &&
  5595. data && data.slot != null
  5596. ) {
  5597. var name = data.slot;
  5598. var slot = (slots[name] || (slots[name] = []));
  5599. if (child.tag === 'template') {
  5600. slot.push.apply(slot, child.children || []);
  5601. } else {
  5602. slot.push(child);
  5603. }
  5604. } else {
  5605. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  5606. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  5607. (slots['page'] || (slots['page'] = [])).push(child);
  5608. }else{
  5609. (slots.default || (slots.default = [])).push(child);
  5610. }
  5611. }
  5612. }
  5613. // ignore slots that contains only whitespace
  5614. for (var name$1 in slots) {
  5615. if (slots[name$1].every(isWhitespace)) {
  5616. delete slots[name$1];
  5617. }
  5618. }
  5619. return slots
  5620. }
  5621. function isWhitespace (node) {
  5622. return (node.isComment && !node.asyncFactory) || node.text === ' '
  5623. }
  5624. /* */
  5625. function normalizeScopedSlots (
  5626. slots,
  5627. normalSlots,
  5628. prevSlots
  5629. ) {
  5630. var res;
  5631. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  5632. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  5633. var key = slots && slots.$key;
  5634. if (!slots) {
  5635. res = {};
  5636. } else if (slots._normalized) {
  5637. // fast path 1: child component re-render only, parent did not change
  5638. return slots._normalized
  5639. } else if (
  5640. isStable &&
  5641. prevSlots &&
  5642. prevSlots !== emptyObject &&
  5643. key === prevSlots.$key &&
  5644. !hasNormalSlots &&
  5645. !prevSlots.$hasNormal
  5646. ) {
  5647. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  5648. // only need to normalize once
  5649. return prevSlots
  5650. } else {
  5651. res = {};
  5652. for (var key$1 in slots) {
  5653. if (slots[key$1] && key$1[0] !== '$') {
  5654. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  5655. }
  5656. }
  5657. }
  5658. // expose normal slots on scopedSlots
  5659. for (var key$2 in normalSlots) {
  5660. if (!(key$2 in res)) {
  5661. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  5662. }
  5663. }
  5664. // avoriaz seems to mock a non-extensible $scopedSlots object
  5665. // and when that is passed down this would cause an error
  5666. if (slots && Object.isExtensible(slots)) {
  5667. (slots)._normalized = res;
  5668. }
  5669. def(res, '$stable', isStable);
  5670. def(res, '$key', key);
  5671. def(res, '$hasNormal', hasNormalSlots);
  5672. return res
  5673. }
  5674. function normalizeScopedSlot(normalSlots, key, fn) {
  5675. var normalized = function () {
  5676. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  5677. res = res && typeof res === 'object' && !Array.isArray(res)
  5678. ? [res] // single vnode
  5679. : normalizeChildren(res);
  5680. return res && (
  5681. res.length === 0 ||
  5682. (res.length === 1 && res[0].isComment) // #9658
  5683. ) ? undefined
  5684. : res
  5685. };
  5686. // this is a slot using the new v-slot syntax without scope. although it is
  5687. // compiled as a scoped slot, render fn users would expect it to be present
  5688. // on this.$slots because the usage is semantically a normal slot.
  5689. if (fn.proxy) {
  5690. Object.defineProperty(normalSlots, key, {
  5691. get: normalized,
  5692. enumerable: true,
  5693. configurable: true
  5694. });
  5695. }
  5696. return normalized
  5697. }
  5698. function proxyNormalSlot(slots, key) {
  5699. return function () { return slots[key]; }
  5700. }
  5701. /* */
  5702. /**
  5703. * Runtime helper for rendering v-for lists.
  5704. */
  5705. function renderList (
  5706. val,
  5707. render
  5708. ) {
  5709. var ret, i, l, keys, key;
  5710. if (Array.isArray(val) || typeof val === 'string') {
  5711. ret = new Array(val.length);
  5712. for (i = 0, l = val.length; i < l; i++) {
  5713. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  5714. }
  5715. } else if (typeof val === 'number') {
  5716. ret = new Array(val);
  5717. for (i = 0; i < val; i++) {
  5718. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  5719. }
  5720. } else if (isObject(val)) {
  5721. if (hasSymbol && val[Symbol.iterator]) {
  5722. ret = [];
  5723. var iterator = val[Symbol.iterator]();
  5724. var result = iterator.next();
  5725. while (!result.done) {
  5726. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  5727. result = iterator.next();
  5728. }
  5729. } else {
  5730. keys = Object.keys(val);
  5731. ret = new Array(keys.length);
  5732. for (i = 0, l = keys.length; i < l; i++) {
  5733. key = keys[i];
  5734. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  5735. }
  5736. }
  5737. }
  5738. if (!isDef(ret)) {
  5739. ret = [];
  5740. }
  5741. (ret)._isVList = true;
  5742. return ret
  5743. }
  5744. /* */
  5745. /**
  5746. * Runtime helper for rendering <slot>
  5747. */
  5748. function renderSlot (
  5749. name,
  5750. fallback,
  5751. props,
  5752. bindObject
  5753. ) {
  5754. var scopedSlotFn = this.$scopedSlots[name];
  5755. var nodes;
  5756. if (scopedSlotFn) { // scoped slot
  5757. props = props || {};
  5758. if (bindObject) {
  5759. if ( true && !isObject(bindObject)) {
  5760. warn(
  5761. 'slot v-bind without argument expects an Object',
  5762. this
  5763. );
  5764. }
  5765. props = extend(extend({}, bindObject), props);
  5766. }
  5767. // fixed by xxxxxx app-plus scopedSlot
  5768. nodes = scopedSlotFn(props, this, props._i) || fallback;
  5769. } else {
  5770. nodes = this.$slots[name] || fallback;
  5771. }
  5772. var target = props && props.slot;
  5773. if (target) {
  5774. return this.$createElement('template', { slot: target }, nodes)
  5775. } else {
  5776. return nodes
  5777. }
  5778. }
  5779. /* */
  5780. /**
  5781. * Runtime helper for resolving filters
  5782. */
  5783. function resolveFilter (id) {
  5784. return resolveAsset(this.$options, 'filters', id, true) || identity
  5785. }
  5786. /* */
  5787. function isKeyNotMatch (expect, actual) {
  5788. if (Array.isArray(expect)) {
  5789. return expect.indexOf(actual) === -1
  5790. } else {
  5791. return expect !== actual
  5792. }
  5793. }
  5794. /**
  5795. * Runtime helper for checking keyCodes from config.
  5796. * exposed as Vue.prototype._k
  5797. * passing in eventKeyName as last argument separately for backwards compat
  5798. */
  5799. function checkKeyCodes (
  5800. eventKeyCode,
  5801. key,
  5802. builtInKeyCode,
  5803. eventKeyName,
  5804. builtInKeyName
  5805. ) {
  5806. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  5807. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  5808. return isKeyNotMatch(builtInKeyName, eventKeyName)
  5809. } else if (mappedKeyCode) {
  5810. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  5811. } else if (eventKeyName) {
  5812. return hyphenate(eventKeyName) !== key
  5813. }
  5814. }
  5815. /* */
  5816. /**
  5817. * Runtime helper for merging v-bind="object" into a VNode's data.
  5818. */
  5819. function bindObjectProps (
  5820. data,
  5821. tag,
  5822. value,
  5823. asProp,
  5824. isSync
  5825. ) {
  5826. if (value) {
  5827. if (!isObject(value)) {
  5828. true && warn(
  5829. 'v-bind without argument expects an Object or Array value',
  5830. this
  5831. );
  5832. } else {
  5833. if (Array.isArray(value)) {
  5834. value = toObject(value);
  5835. }
  5836. var hash;
  5837. var loop = function ( key ) {
  5838. if (
  5839. key === 'class' ||
  5840. key === 'style' ||
  5841. isReservedAttribute(key)
  5842. ) {
  5843. hash = data;
  5844. } else {
  5845. var type = data.attrs && data.attrs.type;
  5846. hash = asProp || config.mustUseProp(tag, type, key)
  5847. ? data.domProps || (data.domProps = {})
  5848. : data.attrs || (data.attrs = {});
  5849. }
  5850. var camelizedKey = camelize(key);
  5851. var hyphenatedKey = hyphenate(key);
  5852. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  5853. hash[key] = value[key];
  5854. if (isSync) {
  5855. var on = data.on || (data.on = {});
  5856. on[("update:" + key)] = function ($event) {
  5857. value[key] = $event;
  5858. };
  5859. }
  5860. }
  5861. };
  5862. for (var key in value) loop( key );
  5863. }
  5864. }
  5865. return data
  5866. }
  5867. /* */
  5868. /**
  5869. * Runtime helper for rendering static trees.
  5870. */
  5871. function renderStatic (
  5872. index,
  5873. isInFor
  5874. ) {
  5875. var cached = this._staticTrees || (this._staticTrees = []);
  5876. var tree = cached[index];
  5877. // if has already-rendered static tree and not inside v-for,
  5878. // we can reuse the same tree.
  5879. if (tree && !isInFor) {
  5880. return tree
  5881. }
  5882. // otherwise, render a fresh tree.
  5883. tree = cached[index] = this.$options.staticRenderFns[index].call(
  5884. this._renderProxy,
  5885. null,
  5886. this // for render fns generated for functional component templates
  5887. );
  5888. markStatic(tree, ("__static__" + index), false);
  5889. return tree
  5890. }
  5891. /**
  5892. * Runtime helper for v-once.
  5893. * Effectively it means marking the node as static with a unique key.
  5894. */
  5895. function markOnce (
  5896. tree,
  5897. index,
  5898. key
  5899. ) {
  5900. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  5901. return tree
  5902. }
  5903. function markStatic (
  5904. tree,
  5905. key,
  5906. isOnce
  5907. ) {
  5908. if (Array.isArray(tree)) {
  5909. for (var i = 0; i < tree.length; i++) {
  5910. if (tree[i] && typeof tree[i] !== 'string') {
  5911. markStaticNode(tree[i], (key + "_" + i), isOnce);
  5912. }
  5913. }
  5914. } else {
  5915. markStaticNode(tree, key, isOnce);
  5916. }
  5917. }
  5918. function markStaticNode (node, key, isOnce) {
  5919. node.isStatic = true;
  5920. node.key = key;
  5921. node.isOnce = isOnce;
  5922. }
  5923. /* */
  5924. function bindObjectListeners (data, value) {
  5925. if (value) {
  5926. if (!isPlainObject(value)) {
  5927. true && warn(
  5928. 'v-on without argument expects an Object value',
  5929. this
  5930. );
  5931. } else {
  5932. var on = data.on = data.on ? extend({}, data.on) : {};
  5933. for (var key in value) {
  5934. var existing = on[key];
  5935. var ours = value[key];
  5936. on[key] = existing ? [].concat(existing, ours) : ours;
  5937. }
  5938. }
  5939. }
  5940. return data
  5941. }
  5942. /* */
  5943. function resolveScopedSlots (
  5944. fns, // see flow/vnode
  5945. res,
  5946. // the following are added in 2.6
  5947. hasDynamicKeys,
  5948. contentHashKey
  5949. ) {
  5950. res = res || { $stable: !hasDynamicKeys };
  5951. for (var i = 0; i < fns.length; i++) {
  5952. var slot = fns[i];
  5953. if (Array.isArray(slot)) {
  5954. resolveScopedSlots(slot, res, hasDynamicKeys);
  5955. } else if (slot) {
  5956. // marker for reverse proxying v-slot without scope on this.$slots
  5957. if (slot.proxy) {
  5958. slot.fn.proxy = true;
  5959. }
  5960. res[slot.key] = slot.fn;
  5961. }
  5962. }
  5963. if (contentHashKey) {
  5964. (res).$key = contentHashKey;
  5965. }
  5966. return res
  5967. }
  5968. /* */
  5969. function bindDynamicKeys (baseObj, values) {
  5970. for (var i = 0; i < values.length; i += 2) {
  5971. var key = values[i];
  5972. if (typeof key === 'string' && key) {
  5973. baseObj[values[i]] = values[i + 1];
  5974. } else if ( true && key !== '' && key !== null) {
  5975. // null is a special value for explicitly removing a binding
  5976. warn(
  5977. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  5978. this
  5979. );
  5980. }
  5981. }
  5982. return baseObj
  5983. }
  5984. // helper to dynamically append modifier runtime markers to event names.
  5985. // ensure only append when value is already string, otherwise it will be cast
  5986. // to string and cause the type check to miss.
  5987. function prependModifier (value, symbol) {
  5988. return typeof value === 'string' ? symbol + value : value
  5989. }
  5990. /* */
  5991. function installRenderHelpers (target) {
  5992. target._o = markOnce;
  5993. target._n = toNumber;
  5994. target._s = toString;
  5995. target._l = renderList;
  5996. target._t = renderSlot;
  5997. target._q = looseEqual;
  5998. target._i = looseIndexOf;
  5999. target._m = renderStatic;
  6000. target._f = resolveFilter;
  6001. target._k = checkKeyCodes;
  6002. target._b = bindObjectProps;
  6003. target._v = createTextVNode;
  6004. target._e = createEmptyVNode;
  6005. target._u = resolveScopedSlots;
  6006. target._g = bindObjectListeners;
  6007. target._d = bindDynamicKeys;
  6008. target._p = prependModifier;
  6009. }
  6010. /* */
  6011. function FunctionalRenderContext (
  6012. data,
  6013. props,
  6014. children,
  6015. parent,
  6016. Ctor
  6017. ) {
  6018. var this$1 = this;
  6019. var options = Ctor.options;
  6020. // ensure the createElement function in functional components
  6021. // gets a unique context - this is necessary for correct named slot check
  6022. var contextVm;
  6023. if (hasOwn(parent, '_uid')) {
  6024. contextVm = Object.create(parent);
  6025. // $flow-disable-line
  6026. contextVm._original = parent;
  6027. } else {
  6028. // the context vm passed in is a functional context as well.
  6029. // in this case we want to make sure we are able to get a hold to the
  6030. // real context instance.
  6031. contextVm = parent;
  6032. // $flow-disable-line
  6033. parent = parent._original;
  6034. }
  6035. var isCompiled = isTrue(options._compiled);
  6036. var needNormalization = !isCompiled;
  6037. this.data = data;
  6038. this.props = props;
  6039. this.children = children;
  6040. this.parent = parent;
  6041. this.listeners = data.on || emptyObject;
  6042. this.injections = resolveInject(options.inject, parent);
  6043. this.slots = function () {
  6044. if (!this$1.$slots) {
  6045. normalizeScopedSlots(
  6046. data.scopedSlots,
  6047. this$1.$slots = resolveSlots(children, parent)
  6048. );
  6049. }
  6050. return this$1.$slots
  6051. };
  6052. Object.defineProperty(this, 'scopedSlots', ({
  6053. enumerable: true,
  6054. get: function get () {
  6055. return normalizeScopedSlots(data.scopedSlots, this.slots())
  6056. }
  6057. }));
  6058. // support for compiled functional template
  6059. if (isCompiled) {
  6060. // exposing $options for renderStatic()
  6061. this.$options = options;
  6062. // pre-resolve slots for renderSlot()
  6063. this.$slots = this.slots();
  6064. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  6065. }
  6066. if (options._scopeId) {
  6067. this._c = function (a, b, c, d) {
  6068. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  6069. if (vnode && !Array.isArray(vnode)) {
  6070. vnode.fnScopeId = options._scopeId;
  6071. vnode.fnContext = parent;
  6072. }
  6073. return vnode
  6074. };
  6075. } else {
  6076. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  6077. }
  6078. }
  6079. installRenderHelpers(FunctionalRenderContext.prototype);
  6080. function createFunctionalComponent (
  6081. Ctor,
  6082. propsData,
  6083. data,
  6084. contextVm,
  6085. children
  6086. ) {
  6087. var options = Ctor.options;
  6088. var props = {};
  6089. var propOptions = options.props;
  6090. if (isDef(propOptions)) {
  6091. for (var key in propOptions) {
  6092. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  6093. }
  6094. } else {
  6095. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  6096. if (isDef(data.props)) { mergeProps(props, data.props); }
  6097. }
  6098. var renderContext = new FunctionalRenderContext(
  6099. data,
  6100. props,
  6101. children,
  6102. contextVm,
  6103. Ctor
  6104. );
  6105. var vnode = options.render.call(null, renderContext._c, renderContext);
  6106. if (vnode instanceof VNode) {
  6107. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  6108. } else if (Array.isArray(vnode)) {
  6109. var vnodes = normalizeChildren(vnode) || [];
  6110. var res = new Array(vnodes.length);
  6111. for (var i = 0; i < vnodes.length; i++) {
  6112. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  6113. }
  6114. return res
  6115. }
  6116. }
  6117. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  6118. // #7817 clone node before setting fnContext, otherwise if the node is reused
  6119. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  6120. // that should not be matched to match.
  6121. var clone = cloneVNode(vnode);
  6122. clone.fnContext = contextVm;
  6123. clone.fnOptions = options;
  6124. if (true) {
  6125. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  6126. }
  6127. if (data.slot) {
  6128. (clone.data || (clone.data = {})).slot = data.slot;
  6129. }
  6130. return clone
  6131. }
  6132. function mergeProps (to, from) {
  6133. for (var key in from) {
  6134. to[camelize(key)] = from[key];
  6135. }
  6136. }
  6137. /* */
  6138. /* */
  6139. /* */
  6140. /* */
  6141. // inline hooks to be invoked on component VNodes during patch
  6142. var componentVNodeHooks = {
  6143. init: function init (vnode, hydrating) {
  6144. if (
  6145. vnode.componentInstance &&
  6146. !vnode.componentInstance._isDestroyed &&
  6147. vnode.data.keepAlive
  6148. ) {
  6149. // kept-alive components, treat as a patch
  6150. var mountedNode = vnode; // work around flow
  6151. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  6152. } else {
  6153. var child = vnode.componentInstance = createComponentInstanceForVnode(
  6154. vnode,
  6155. activeInstance
  6156. );
  6157. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  6158. }
  6159. },
  6160. prepatch: function prepatch (oldVnode, vnode) {
  6161. var options = vnode.componentOptions;
  6162. var child = vnode.componentInstance = oldVnode.componentInstance;
  6163. updateChildComponent(
  6164. child,
  6165. options.propsData, // updated props
  6166. options.listeners, // updated listeners
  6167. vnode, // new parent vnode
  6168. options.children // new children
  6169. );
  6170. },
  6171. insert: function insert (vnode) {
  6172. var context = vnode.context;
  6173. var componentInstance = vnode.componentInstance;
  6174. if (!componentInstance._isMounted) {
  6175. callHook(componentInstance, 'onServiceCreated');
  6176. callHook(componentInstance, 'onServiceAttached');
  6177. componentInstance._isMounted = true;
  6178. callHook(componentInstance, 'mounted');
  6179. }
  6180. if (vnode.data.keepAlive) {
  6181. if (context._isMounted) {
  6182. // vue-router#1212
  6183. // During updates, a kept-alive component's child components may
  6184. // change, so directly walking the tree here may call activated hooks
  6185. // on incorrect children. Instead we push them into a queue which will
  6186. // be processed after the whole patch process ended.
  6187. queueActivatedComponent(componentInstance);
  6188. } else {
  6189. activateChildComponent(componentInstance, true /* direct */);
  6190. }
  6191. }
  6192. },
  6193. destroy: function destroy (vnode) {
  6194. var componentInstance = vnode.componentInstance;
  6195. if (!componentInstance._isDestroyed) {
  6196. if (!vnode.data.keepAlive) {
  6197. componentInstance.$destroy();
  6198. } else {
  6199. deactivateChildComponent(componentInstance, true /* direct */);
  6200. }
  6201. }
  6202. }
  6203. };
  6204. var hooksToMerge = Object.keys(componentVNodeHooks);
  6205. function createComponent (
  6206. Ctor,
  6207. data,
  6208. context,
  6209. children,
  6210. tag
  6211. ) {
  6212. if (isUndef(Ctor)) {
  6213. return
  6214. }
  6215. var baseCtor = context.$options._base;
  6216. // plain options object: turn it into a constructor
  6217. if (isObject(Ctor)) {
  6218. Ctor = baseCtor.extend(Ctor);
  6219. }
  6220. // if at this stage it's not a constructor or an async component factory,
  6221. // reject.
  6222. if (typeof Ctor !== 'function') {
  6223. if (true) {
  6224. warn(("Invalid Component definition: " + (String(Ctor))), context);
  6225. }
  6226. return
  6227. }
  6228. // async component
  6229. var asyncFactory;
  6230. if (isUndef(Ctor.cid)) {
  6231. asyncFactory = Ctor;
  6232. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  6233. if (Ctor === undefined) {
  6234. // return a placeholder node for async component, which is rendered
  6235. // as a comment node but preserves all the raw information for the node.
  6236. // the information will be used for async server-rendering and hydration.
  6237. return createAsyncPlaceholder(
  6238. asyncFactory,
  6239. data,
  6240. context,
  6241. children,
  6242. tag
  6243. )
  6244. }
  6245. }
  6246. data = data || {};
  6247. // resolve constructor options in case global mixins are applied after
  6248. // component constructor creation
  6249. resolveConstructorOptions(Ctor);
  6250. // transform component v-model data into props & events
  6251. if (isDef(data.model)) {
  6252. transformModel(Ctor.options, data);
  6253. }
  6254. // extract props
  6255. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  6256. // functional component
  6257. if (isTrue(Ctor.options.functional)) {
  6258. return createFunctionalComponent(Ctor, propsData, data, context, children)
  6259. }
  6260. // extract listeners, since these needs to be treated as
  6261. // child component listeners instead of DOM listeners
  6262. var listeners = data.on;
  6263. // replace with listeners with .native modifier
  6264. // so it gets processed during parent component patch.
  6265. data.on = data.nativeOn;
  6266. if (isTrue(Ctor.options.abstract)) {
  6267. // abstract components do not keep anything
  6268. // other than props & listeners & slot
  6269. // work around flow
  6270. var slot = data.slot;
  6271. data = {};
  6272. if (slot) {
  6273. data.slot = slot;
  6274. }
  6275. }
  6276. // install component management hooks onto the placeholder node
  6277. installComponentHooks(data);
  6278. // return a placeholder vnode
  6279. var name = Ctor.options.name || tag;
  6280. var vnode = new VNode(
  6281. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  6282. data, undefined, undefined, undefined, context,
  6283. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  6284. asyncFactory
  6285. );
  6286. return vnode
  6287. }
  6288. function createComponentInstanceForVnode (
  6289. vnode, // we know it's MountedComponentVNode but flow doesn't
  6290. parent // activeInstance in lifecycle state
  6291. ) {
  6292. var options = {
  6293. _isComponent: true,
  6294. _parentVnode: vnode,
  6295. parent: parent
  6296. };
  6297. // check inline-template render functions
  6298. var inlineTemplate = vnode.data.inlineTemplate;
  6299. if (isDef(inlineTemplate)) {
  6300. options.render = inlineTemplate.render;
  6301. options.staticRenderFns = inlineTemplate.staticRenderFns;
  6302. }
  6303. return new vnode.componentOptions.Ctor(options)
  6304. }
  6305. function installComponentHooks (data) {
  6306. var hooks = data.hook || (data.hook = {});
  6307. for (var i = 0; i < hooksToMerge.length; i++) {
  6308. var key = hooksToMerge[i];
  6309. var existing = hooks[key];
  6310. var toMerge = componentVNodeHooks[key];
  6311. if (existing !== toMerge && !(existing && existing._merged)) {
  6312. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  6313. }
  6314. }
  6315. }
  6316. function mergeHook$1 (f1, f2) {
  6317. var merged = function (a, b) {
  6318. // flow complains about extra args which is why we use any
  6319. f1(a, b);
  6320. f2(a, b);
  6321. };
  6322. merged._merged = true;
  6323. return merged
  6324. }
  6325. // transform component v-model info (value and callback) into
  6326. // prop and event handler respectively.
  6327. function transformModel (options, data) {
  6328. var prop = (options.model && options.model.prop) || 'value';
  6329. var event = (options.model && options.model.event) || 'input'
  6330. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  6331. var on = data.on || (data.on = {});
  6332. var existing = on[event];
  6333. var callback = data.model.callback;
  6334. if (isDef(existing)) {
  6335. if (
  6336. Array.isArray(existing)
  6337. ? existing.indexOf(callback) === -1
  6338. : existing !== callback
  6339. ) {
  6340. on[event] = [callback].concat(existing);
  6341. }
  6342. } else {
  6343. on[event] = callback;
  6344. }
  6345. }
  6346. /* */
  6347. var SIMPLE_NORMALIZE = 1;
  6348. var ALWAYS_NORMALIZE = 2;
  6349. // wrapper function for providing a more flexible interface
  6350. // without getting yelled at by flow
  6351. function createElement (
  6352. context,
  6353. tag,
  6354. data,
  6355. children,
  6356. normalizationType,
  6357. alwaysNormalize
  6358. ) {
  6359. if (Array.isArray(data) || isPrimitive(data)) {
  6360. normalizationType = children;
  6361. children = data;
  6362. data = undefined;
  6363. }
  6364. if (isTrue(alwaysNormalize)) {
  6365. normalizationType = ALWAYS_NORMALIZE;
  6366. }
  6367. return _createElement(context, tag, data, children, normalizationType)
  6368. }
  6369. function _createElement (
  6370. context,
  6371. tag,
  6372. data,
  6373. children,
  6374. normalizationType
  6375. ) {
  6376. if (isDef(data) && isDef((data).__ob__)) {
  6377. true && warn(
  6378. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  6379. 'Always create fresh vnode data objects in each render!',
  6380. context
  6381. );
  6382. return createEmptyVNode()
  6383. }
  6384. // object syntax in v-bind
  6385. if (isDef(data) && isDef(data.is)) {
  6386. tag = data.is;
  6387. }
  6388. if (!tag) {
  6389. // in case of component :is set to falsy value
  6390. return createEmptyVNode()
  6391. }
  6392. // warn against non-primitive key
  6393. if ( true &&
  6394. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  6395. ) {
  6396. {
  6397. warn(
  6398. 'Avoid using non-primitive value as key, ' +
  6399. 'use string/number value instead.',
  6400. context
  6401. );
  6402. }
  6403. }
  6404. // support single function children as default scoped slot
  6405. if (Array.isArray(children) &&
  6406. typeof children[0] === 'function'
  6407. ) {
  6408. data = data || {};
  6409. data.scopedSlots = { default: children[0] };
  6410. children.length = 0;
  6411. }
  6412. if (normalizationType === ALWAYS_NORMALIZE) {
  6413. children = normalizeChildren(children);
  6414. } else if (normalizationType === SIMPLE_NORMALIZE) {
  6415. children = simpleNormalizeChildren(children);
  6416. }
  6417. var vnode, ns;
  6418. if (typeof tag === 'string') {
  6419. var Ctor;
  6420. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  6421. if (config.isReservedTag(tag)) {
  6422. // platform built-in elements
  6423. if ( true && isDef(data) && isDef(data.nativeOn)) {
  6424. warn(
  6425. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  6426. context
  6427. );
  6428. }
  6429. vnode = new VNode(
  6430. config.parsePlatformTagName(tag), data, children,
  6431. undefined, undefined, context
  6432. );
  6433. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  6434. // component
  6435. vnode = createComponent(Ctor, data, context, children, tag);
  6436. } else {
  6437. // unknown or unlisted namespaced elements
  6438. // check at runtime because it may get assigned a namespace when its
  6439. // parent normalizes children
  6440. vnode = new VNode(
  6441. tag, data, children,
  6442. undefined, undefined, context
  6443. );
  6444. }
  6445. } else {
  6446. // direct component options / constructor
  6447. vnode = createComponent(tag, data, context, children);
  6448. }
  6449. if (Array.isArray(vnode)) {
  6450. return vnode
  6451. } else if (isDef(vnode)) {
  6452. if (isDef(ns)) { applyNS(vnode, ns); }
  6453. if (isDef(data)) { registerDeepBindings(data); }
  6454. return vnode
  6455. } else {
  6456. return createEmptyVNode()
  6457. }
  6458. }
  6459. function applyNS (vnode, ns, force) {
  6460. vnode.ns = ns;
  6461. if (vnode.tag === 'foreignObject') {
  6462. // use default namespace inside foreignObject
  6463. ns = undefined;
  6464. force = true;
  6465. }
  6466. if (isDef(vnode.children)) {
  6467. for (var i = 0, l = vnode.children.length; i < l; i++) {
  6468. var child = vnode.children[i];
  6469. if (isDef(child.tag) && (
  6470. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  6471. applyNS(child, ns, force);
  6472. }
  6473. }
  6474. }
  6475. }
  6476. // ref #5318
  6477. // necessary to ensure parent re-render when deep bindings like :style and
  6478. // :class are used on slot nodes
  6479. function registerDeepBindings (data) {
  6480. if (isObject(data.style)) {
  6481. traverse(data.style);
  6482. }
  6483. if (isObject(data.class)) {
  6484. traverse(data.class);
  6485. }
  6486. }
  6487. /* */
  6488. function initRender (vm) {
  6489. vm._vnode = null; // the root of the child tree
  6490. vm._staticTrees = null; // v-once cached trees
  6491. var options = vm.$options;
  6492. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  6493. var renderContext = parentVnode && parentVnode.context;
  6494. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  6495. vm.$scopedSlots = emptyObject;
  6496. // bind the createElement fn to this instance
  6497. // so that we get proper render context inside it.
  6498. // args order: tag, data, children, normalizationType, alwaysNormalize
  6499. // internal version is used by render functions compiled from templates
  6500. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  6501. // normalization is always applied for the public version, used in
  6502. // user-written render functions.
  6503. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  6504. // $attrs & $listeners are exposed for easier HOC creation.
  6505. // they need to be reactive so that HOCs using them are always updated
  6506. var parentData = parentVnode && parentVnode.data;
  6507. /* istanbul ignore else */
  6508. if (true) {
  6509. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  6510. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  6511. }, true);
  6512. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  6513. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  6514. }, true);
  6515. } else {}
  6516. }
  6517. var currentRenderingInstance = null;
  6518. function renderMixin (Vue) {
  6519. // install runtime convenience helpers
  6520. installRenderHelpers(Vue.prototype);
  6521. Vue.prototype.$nextTick = function (fn) {
  6522. return nextTick(fn, this)
  6523. };
  6524. Vue.prototype._render = function () {
  6525. var vm = this;
  6526. var ref = vm.$options;
  6527. var render = ref.render;
  6528. var _parentVnode = ref._parentVnode;
  6529. if (_parentVnode) {
  6530. vm.$scopedSlots = normalizeScopedSlots(
  6531. _parentVnode.data.scopedSlots,
  6532. vm.$slots,
  6533. vm.$scopedSlots
  6534. );
  6535. }
  6536. // set parent vnode. this allows render functions to have access
  6537. // to the data on the placeholder node.
  6538. vm.$vnode = _parentVnode;
  6539. // render self
  6540. var vnode;
  6541. try {
  6542. // There's no need to maintain a stack because all render fns are called
  6543. // separately from one another. Nested component's render fns are called
  6544. // when parent component is patched.
  6545. currentRenderingInstance = vm;
  6546. vnode = render.call(vm._renderProxy, vm.$createElement);
  6547. } catch (e) {
  6548. handleError(e, vm, "render");
  6549. // return error render result,
  6550. // or previous vnode to prevent render error causing blank component
  6551. /* istanbul ignore else */
  6552. if ( true && vm.$options.renderError) {
  6553. try {
  6554. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  6555. } catch (e) {
  6556. handleError(e, vm, "renderError");
  6557. vnode = vm._vnode;
  6558. }
  6559. } else {
  6560. vnode = vm._vnode;
  6561. }
  6562. } finally {
  6563. currentRenderingInstance = null;
  6564. }
  6565. // if the returned array contains only a single node, allow it
  6566. if (Array.isArray(vnode) && vnode.length === 1) {
  6567. vnode = vnode[0];
  6568. }
  6569. // return empty vnode in case the render function errored out
  6570. if (!(vnode instanceof VNode)) {
  6571. if ( true && Array.isArray(vnode)) {
  6572. warn(
  6573. 'Multiple root nodes returned from render function. Render function ' +
  6574. 'should return a single root node.',
  6575. vm
  6576. );
  6577. }
  6578. vnode = createEmptyVNode();
  6579. }
  6580. // set parent
  6581. vnode.parent = _parentVnode;
  6582. return vnode
  6583. };
  6584. }
  6585. /* */
  6586. function ensureCtor (comp, base) {
  6587. if (
  6588. comp.__esModule ||
  6589. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  6590. ) {
  6591. comp = comp.default;
  6592. }
  6593. return isObject(comp)
  6594. ? base.extend(comp)
  6595. : comp
  6596. }
  6597. function createAsyncPlaceholder (
  6598. factory,
  6599. data,
  6600. context,
  6601. children,
  6602. tag
  6603. ) {
  6604. var node = createEmptyVNode();
  6605. node.asyncFactory = factory;
  6606. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  6607. return node
  6608. }
  6609. function resolveAsyncComponent (
  6610. factory,
  6611. baseCtor
  6612. ) {
  6613. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  6614. return factory.errorComp
  6615. }
  6616. if (isDef(factory.resolved)) {
  6617. return factory.resolved
  6618. }
  6619. var owner = currentRenderingInstance;
  6620. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  6621. // already pending
  6622. factory.owners.push(owner);
  6623. }
  6624. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  6625. return factory.loadingComp
  6626. }
  6627. if (owner && !isDef(factory.owners)) {
  6628. var owners = factory.owners = [owner];
  6629. var sync = true;
  6630. var timerLoading = null;
  6631. var timerTimeout = null
  6632. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  6633. var forceRender = function (renderCompleted) {
  6634. for (var i = 0, l = owners.length; i < l; i++) {
  6635. (owners[i]).$forceUpdate();
  6636. }
  6637. if (renderCompleted) {
  6638. owners.length = 0;
  6639. if (timerLoading !== null) {
  6640. clearTimeout(timerLoading);
  6641. timerLoading = null;
  6642. }
  6643. if (timerTimeout !== null) {
  6644. clearTimeout(timerTimeout);
  6645. timerTimeout = null;
  6646. }
  6647. }
  6648. };
  6649. var resolve = once(function (res) {
  6650. // cache resolved
  6651. factory.resolved = ensureCtor(res, baseCtor);
  6652. // invoke callbacks only if this is not a synchronous resolve
  6653. // (async resolves are shimmed as synchronous during SSR)
  6654. if (!sync) {
  6655. forceRender(true);
  6656. } else {
  6657. owners.length = 0;
  6658. }
  6659. });
  6660. var reject = once(function (reason) {
  6661. true && warn(
  6662. "Failed to resolve async component: " + (String(factory)) +
  6663. (reason ? ("\nReason: " + reason) : '')
  6664. );
  6665. if (isDef(factory.errorComp)) {
  6666. factory.error = true;
  6667. forceRender(true);
  6668. }
  6669. });
  6670. var res = factory(resolve, reject);
  6671. if (isObject(res)) {
  6672. if (isPromise(res)) {
  6673. // () => Promise
  6674. if (isUndef(factory.resolved)) {
  6675. res.then(resolve, reject);
  6676. }
  6677. } else if (isPromise(res.component)) {
  6678. res.component.then(resolve, reject);
  6679. if (isDef(res.error)) {
  6680. factory.errorComp = ensureCtor(res.error, baseCtor);
  6681. }
  6682. if (isDef(res.loading)) {
  6683. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  6684. if (res.delay === 0) {
  6685. factory.loading = true;
  6686. } else {
  6687. timerLoading = setTimeout(function () {
  6688. timerLoading = null;
  6689. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  6690. factory.loading = true;
  6691. forceRender(false);
  6692. }
  6693. }, res.delay || 200);
  6694. }
  6695. }
  6696. if (isDef(res.timeout)) {
  6697. timerTimeout = setTimeout(function () {
  6698. timerTimeout = null;
  6699. if (isUndef(factory.resolved)) {
  6700. reject(
  6701. true
  6702. ? ("timeout (" + (res.timeout) + "ms)")
  6703. : undefined
  6704. );
  6705. }
  6706. }, res.timeout);
  6707. }
  6708. }
  6709. }
  6710. sync = false;
  6711. // return in case resolved synchronously
  6712. return factory.loading
  6713. ? factory.loadingComp
  6714. : factory.resolved
  6715. }
  6716. }
  6717. /* */
  6718. function isAsyncPlaceholder (node) {
  6719. return node.isComment && node.asyncFactory
  6720. }
  6721. /* */
  6722. function getFirstComponentChild (children) {
  6723. if (Array.isArray(children)) {
  6724. for (var i = 0; i < children.length; i++) {
  6725. var c = children[i];
  6726. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  6727. return c
  6728. }
  6729. }
  6730. }
  6731. }
  6732. /* */
  6733. /* */
  6734. function initEvents (vm) {
  6735. vm._events = Object.create(null);
  6736. vm._hasHookEvent = false;
  6737. // init parent attached events
  6738. var listeners = vm.$options._parentListeners;
  6739. if (listeners) {
  6740. updateComponentListeners(vm, listeners);
  6741. }
  6742. }
  6743. var target;
  6744. function add (event, fn) {
  6745. target.$on(event, fn);
  6746. }
  6747. function remove$1 (event, fn) {
  6748. target.$off(event, fn);
  6749. }
  6750. function createOnceHandler (event, fn) {
  6751. var _target = target;
  6752. return function onceHandler () {
  6753. var res = fn.apply(null, arguments);
  6754. if (res !== null) {
  6755. _target.$off(event, onceHandler);
  6756. }
  6757. }
  6758. }
  6759. function updateComponentListeners (
  6760. vm,
  6761. listeners,
  6762. oldListeners
  6763. ) {
  6764. target = vm;
  6765. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  6766. target = undefined;
  6767. }
  6768. function eventsMixin (Vue) {
  6769. var hookRE = /^hook:/;
  6770. Vue.prototype.$on = function (event, fn) {
  6771. var vm = this;
  6772. if (Array.isArray(event)) {
  6773. for (var i = 0, l = event.length; i < l; i++) {
  6774. vm.$on(event[i], fn);
  6775. }
  6776. } else {
  6777. (vm._events[event] || (vm._events[event] = [])).push(fn);
  6778. // optimize hook:event cost by using a boolean flag marked at registration
  6779. // instead of a hash lookup
  6780. if (hookRE.test(event)) {
  6781. vm._hasHookEvent = true;
  6782. }
  6783. }
  6784. return vm
  6785. };
  6786. Vue.prototype.$once = function (event, fn) {
  6787. var vm = this;
  6788. function on () {
  6789. vm.$off(event, on);
  6790. fn.apply(vm, arguments);
  6791. }
  6792. on.fn = fn;
  6793. vm.$on(event, on);
  6794. return vm
  6795. };
  6796. Vue.prototype.$off = function (event, fn) {
  6797. var vm = this;
  6798. // all
  6799. if (!arguments.length) {
  6800. vm._events = Object.create(null);
  6801. return vm
  6802. }
  6803. // array of events
  6804. if (Array.isArray(event)) {
  6805. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  6806. vm.$off(event[i$1], fn);
  6807. }
  6808. return vm
  6809. }
  6810. // specific event
  6811. var cbs = vm._events[event];
  6812. if (!cbs) {
  6813. return vm
  6814. }
  6815. if (!fn) {
  6816. vm._events[event] = null;
  6817. return vm
  6818. }
  6819. // specific handler
  6820. var cb;
  6821. var i = cbs.length;
  6822. while (i--) {
  6823. cb = cbs[i];
  6824. if (cb === fn || cb.fn === fn) {
  6825. cbs.splice(i, 1);
  6826. break
  6827. }
  6828. }
  6829. return vm
  6830. };
  6831. Vue.prototype.$emit = function (event) {
  6832. var vm = this;
  6833. if (true) {
  6834. var lowerCaseEvent = event.toLowerCase();
  6835. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  6836. tip(
  6837. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  6838. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  6839. "Note that HTML attributes are case-insensitive and you cannot use " +
  6840. "v-on to listen to camelCase events when using in-DOM templates. " +
  6841. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  6842. );
  6843. }
  6844. }
  6845. var cbs = vm._events[event];
  6846. if (cbs) {
  6847. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  6848. var args = toArray(arguments, 1);
  6849. var info = "event handler for \"" + event + "\"";
  6850. for (var i = 0, l = cbs.length; i < l; i++) {
  6851. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  6852. }
  6853. }
  6854. return vm
  6855. };
  6856. }
  6857. /* */
  6858. var activeInstance = null;
  6859. var isUpdatingChildComponent = false;
  6860. function setActiveInstance(vm) {
  6861. var prevActiveInstance = activeInstance;
  6862. activeInstance = vm;
  6863. return function () {
  6864. activeInstance = prevActiveInstance;
  6865. }
  6866. }
  6867. function initLifecycle (vm) {
  6868. var options = vm.$options;
  6869. // locate first non-abstract parent
  6870. var parent = options.parent;
  6871. if (parent && !options.abstract) {
  6872. while (parent.$options.abstract && parent.$parent) {
  6873. parent = parent.$parent;
  6874. }
  6875. parent.$children.push(vm);
  6876. }
  6877. vm.$parent = parent;
  6878. vm.$root = parent ? parent.$root : vm;
  6879. vm.$children = [];
  6880. vm.$refs = {};
  6881. vm._watcher = null;
  6882. vm._inactive = null;
  6883. vm._directInactive = false;
  6884. vm._isMounted = false;
  6885. vm._isDestroyed = false;
  6886. vm._isBeingDestroyed = false;
  6887. }
  6888. function lifecycleMixin (Vue) {
  6889. Vue.prototype._update = function (vnode, hydrating) {
  6890. var vm = this;
  6891. var prevEl = vm.$el;
  6892. var prevVnode = vm._vnode;
  6893. var restoreActiveInstance = setActiveInstance(vm);
  6894. vm._vnode = vnode;
  6895. // Vue.prototype.__patch__ is injected in entry points
  6896. // based on the rendering backend used.
  6897. if (!prevVnode) {
  6898. // initial render
  6899. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  6900. } else {
  6901. // updates
  6902. vm.$el = vm.__patch__(prevVnode, vnode);
  6903. }
  6904. restoreActiveInstance();
  6905. // update __vue__ reference
  6906. if (prevEl) {
  6907. prevEl.__vue__ = null;
  6908. }
  6909. if (vm.$el) {
  6910. vm.$el.__vue__ = vm;
  6911. }
  6912. // if parent is an HOC, update its $el as well
  6913. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  6914. vm.$parent.$el = vm.$el;
  6915. }
  6916. // updated hook is called by the scheduler to ensure that children are
  6917. // updated in a parent's updated hook.
  6918. };
  6919. Vue.prototype.$forceUpdate = function () {
  6920. var vm = this;
  6921. if (vm._watcher) {
  6922. vm._watcher.update();
  6923. }
  6924. };
  6925. Vue.prototype.$destroy = function () {
  6926. var vm = this;
  6927. if (vm._isBeingDestroyed) {
  6928. return
  6929. }
  6930. callHook(vm, 'beforeDestroy');
  6931. vm._isBeingDestroyed = true;
  6932. // remove self from parent
  6933. var parent = vm.$parent;
  6934. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  6935. remove(parent.$children, vm);
  6936. }
  6937. // teardown watchers
  6938. if (vm._watcher) {
  6939. vm._watcher.teardown();
  6940. }
  6941. var i = vm._watchers.length;
  6942. while (i--) {
  6943. vm._watchers[i].teardown();
  6944. }
  6945. // remove reference from data ob
  6946. // frozen object may not have observer.
  6947. if (vm._data.__ob__) {
  6948. vm._data.__ob__.vmCount--;
  6949. }
  6950. // call the last hook...
  6951. vm._isDestroyed = true;
  6952. // invoke destroy hooks on current rendered tree
  6953. vm.__patch__(vm._vnode, null);
  6954. // fire destroyed hook
  6955. callHook(vm, 'destroyed');
  6956. // turn off all instance listeners.
  6957. vm.$off();
  6958. // remove __vue__ reference
  6959. if (vm.$el) {
  6960. vm.$el.__vue__ = null;
  6961. }
  6962. // release circular reference (#6759)
  6963. if (vm.$vnode) {
  6964. vm.$vnode.parent = null;
  6965. }
  6966. };
  6967. }
  6968. function updateChildComponent (
  6969. vm,
  6970. propsData,
  6971. listeners,
  6972. parentVnode,
  6973. renderChildren
  6974. ) {
  6975. if (true) {
  6976. isUpdatingChildComponent = true;
  6977. }
  6978. // determine whether component has slot children
  6979. // we need to do this before overwriting $options._renderChildren.
  6980. // check if there are dynamic scopedSlots (hand-written or compiled but with
  6981. // dynamic slot names). Static scoped slots compiled from template has the
  6982. // "$stable" marker.
  6983. var newScopedSlots = parentVnode.data.scopedSlots;
  6984. var oldScopedSlots = vm.$scopedSlots;
  6985. var hasDynamicScopedSlot = !!(
  6986. (newScopedSlots && !newScopedSlots.$stable) ||
  6987. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  6988. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  6989. );
  6990. // Any static slot children from the parent may have changed during parent's
  6991. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  6992. // update is necessary to ensure correctness.
  6993. var needsForceUpdate = !!(
  6994. renderChildren || // has new static slots
  6995. vm.$options._renderChildren || // has old static slots
  6996. hasDynamicScopedSlot
  6997. );
  6998. vm.$options._parentVnode = parentVnode;
  6999. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  7000. if (vm._vnode) { // update child tree's parent
  7001. vm._vnode.parent = parentVnode;
  7002. }
  7003. vm.$options._renderChildren = renderChildren;
  7004. // update $attrs and $listeners hash
  7005. // these are also reactive so they may trigger child update if the child
  7006. // used them during render
  7007. vm.$attrs = parentVnode.data.attrs || emptyObject;
  7008. vm.$listeners = listeners || emptyObject;
  7009. // update props
  7010. if (propsData && vm.$options.props) {
  7011. toggleObserving(false);
  7012. var props = vm._props;
  7013. var propKeys = vm.$options._propKeys || [];
  7014. for (var i = 0; i < propKeys.length; i++) {
  7015. var key = propKeys[i];
  7016. var propOptions = vm.$options.props; // wtf flow?
  7017. props[key] = validateProp(key, propOptions, propsData, vm);
  7018. }
  7019. toggleObserving(true);
  7020. // keep a copy of raw propsData
  7021. vm.$options.propsData = propsData;
  7022. }
  7023. // fixed by xxxxxx update properties(mp runtime)
  7024. vm._$updateProperties && vm._$updateProperties(vm);
  7025. // update listeners
  7026. listeners = listeners || emptyObject;
  7027. var oldListeners = vm.$options._parentListeners;
  7028. vm.$options._parentListeners = listeners;
  7029. updateComponentListeners(vm, listeners, oldListeners);
  7030. // resolve slots + force update if has children
  7031. if (needsForceUpdate) {
  7032. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  7033. vm.$forceUpdate();
  7034. }
  7035. if (true) {
  7036. isUpdatingChildComponent = false;
  7037. }
  7038. }
  7039. function isInInactiveTree (vm) {
  7040. while (vm && (vm = vm.$parent)) {
  7041. if (vm._inactive) { return true }
  7042. }
  7043. return false
  7044. }
  7045. function activateChildComponent (vm, direct) {
  7046. if (direct) {
  7047. vm._directInactive = false;
  7048. if (isInInactiveTree(vm)) {
  7049. return
  7050. }
  7051. } else if (vm._directInactive) {
  7052. return
  7053. }
  7054. if (vm._inactive || vm._inactive === null) {
  7055. vm._inactive = false;
  7056. for (var i = 0; i < vm.$children.length; i++) {
  7057. activateChildComponent(vm.$children[i]);
  7058. }
  7059. callHook(vm, 'activated');
  7060. }
  7061. }
  7062. function deactivateChildComponent (vm, direct) {
  7063. if (direct) {
  7064. vm._directInactive = true;
  7065. if (isInInactiveTree(vm)) {
  7066. return
  7067. }
  7068. }
  7069. if (!vm._inactive) {
  7070. vm._inactive = true;
  7071. for (var i = 0; i < vm.$children.length; i++) {
  7072. deactivateChildComponent(vm.$children[i]);
  7073. }
  7074. callHook(vm, 'deactivated');
  7075. }
  7076. }
  7077. function callHook (vm, hook) {
  7078. // #7573 disable dep collection when invoking lifecycle hooks
  7079. pushTarget();
  7080. var handlers = vm.$options[hook];
  7081. var info = hook + " hook";
  7082. if (handlers) {
  7083. for (var i = 0, j = handlers.length; i < j; i++) {
  7084. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  7085. }
  7086. }
  7087. if (vm._hasHookEvent) {
  7088. vm.$emit('hook:' + hook);
  7089. }
  7090. popTarget();
  7091. }
  7092. /* */
  7093. var MAX_UPDATE_COUNT = 100;
  7094. var queue = [];
  7095. var activatedChildren = [];
  7096. var has = {};
  7097. var circular = {};
  7098. var waiting = false;
  7099. var flushing = false;
  7100. var index = 0;
  7101. /**
  7102. * Reset the scheduler's state.
  7103. */
  7104. function resetSchedulerState () {
  7105. index = queue.length = activatedChildren.length = 0;
  7106. has = {};
  7107. if (true) {
  7108. circular = {};
  7109. }
  7110. waiting = flushing = false;
  7111. }
  7112. // Async edge case #6566 requires saving the timestamp when event listeners are
  7113. // attached. However, calling performance.now() has a perf overhead especially
  7114. // if the page has thousands of event listeners. Instead, we take a timestamp
  7115. // every time the scheduler flushes and use that for all event listeners
  7116. // attached during that flush.
  7117. var currentFlushTimestamp = 0;
  7118. // Async edge case fix requires storing an event listener's attach timestamp.
  7119. var getNow = Date.now;
  7120. // Determine what event timestamp the browser is using. Annoyingly, the
  7121. // timestamp can either be hi-res (relative to page load) or low-res
  7122. // (relative to UNIX epoch), so in order to compare time we have to use the
  7123. // same timestamp type when saving the flush timestamp.
  7124. // All IE versions use low-res event timestamps, and have problematic clock
  7125. // implementations (#9632)
  7126. if (inBrowser && !isIE) {
  7127. var performance = window.performance;
  7128. if (
  7129. performance &&
  7130. typeof performance.now === 'function' &&
  7131. getNow() > document.createEvent('Event').timeStamp
  7132. ) {
  7133. // if the event timestamp, although evaluated AFTER the Date.now(), is
  7134. // smaller than it, it means the event is using a hi-res timestamp,
  7135. // and we need to use the hi-res version for event listener timestamps as
  7136. // well.
  7137. getNow = function () { return performance.now(); };
  7138. }
  7139. }
  7140. /**
  7141. * Flush both queues and run the watchers.
  7142. */
  7143. function flushSchedulerQueue () {
  7144. currentFlushTimestamp = getNow();
  7145. flushing = true;
  7146. var watcher, id;
  7147. // Sort queue before flush.
  7148. // This ensures that:
  7149. // 1. Components are updated from parent to child. (because parent is always
  7150. // created before the child)
  7151. // 2. A component's user watchers are run before its render watcher (because
  7152. // user watchers are created before the render watcher)
  7153. // 3. If a component is destroyed during a parent component's watcher run,
  7154. // its watchers can be skipped.
  7155. queue.sort(function (a, b) { return a.id - b.id; });
  7156. // do not cache length because more watchers might be pushed
  7157. // as we run existing watchers
  7158. for (index = 0; index < queue.length; index++) {
  7159. watcher = queue[index];
  7160. if (watcher.before) {
  7161. watcher.before();
  7162. }
  7163. id = watcher.id;
  7164. has[id] = null;
  7165. watcher.run();
  7166. // in dev build, check and stop circular updates.
  7167. if ( true && has[id] != null) {
  7168. circular[id] = (circular[id] || 0) + 1;
  7169. if (circular[id] > MAX_UPDATE_COUNT) {
  7170. warn(
  7171. 'You may have an infinite update loop ' + (
  7172. watcher.user
  7173. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  7174. : "in a component render function."
  7175. ),
  7176. watcher.vm
  7177. );
  7178. break
  7179. }
  7180. }
  7181. }
  7182. // keep copies of post queues before resetting state
  7183. var activatedQueue = activatedChildren.slice();
  7184. var updatedQueue = queue.slice();
  7185. resetSchedulerState();
  7186. // call component updated and activated hooks
  7187. callActivatedHooks(activatedQueue);
  7188. callUpdatedHooks(updatedQueue);
  7189. // devtool hook
  7190. /* istanbul ignore if */
  7191. if (devtools && config.devtools) {
  7192. devtools.emit('flush');
  7193. }
  7194. }
  7195. function callUpdatedHooks (queue) {
  7196. var i = queue.length;
  7197. while (i--) {
  7198. var watcher = queue[i];
  7199. var vm = watcher.vm;
  7200. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  7201. callHook(vm, 'updated');
  7202. }
  7203. }
  7204. }
  7205. /**
  7206. * Queue a kept-alive component that was activated during patch.
  7207. * The queue will be processed after the entire tree has been patched.
  7208. */
  7209. function queueActivatedComponent (vm) {
  7210. // setting _inactive to false here so that a render function can
  7211. // rely on checking whether it's in an inactive tree (e.g. router-view)
  7212. vm._inactive = false;
  7213. activatedChildren.push(vm);
  7214. }
  7215. function callActivatedHooks (queue) {
  7216. for (var i = 0; i < queue.length; i++) {
  7217. queue[i]._inactive = true;
  7218. activateChildComponent(queue[i], true /* true */);
  7219. }
  7220. }
  7221. /**
  7222. * Push a watcher into the watcher queue.
  7223. * Jobs with duplicate IDs will be skipped unless it's
  7224. * pushed when the queue is being flushed.
  7225. */
  7226. function queueWatcher (watcher) {
  7227. var id = watcher.id;
  7228. if (has[id] == null) {
  7229. has[id] = true;
  7230. if (!flushing) {
  7231. queue.push(watcher);
  7232. } else {
  7233. // if already flushing, splice the watcher based on its id
  7234. // if already past its id, it will be run next immediately.
  7235. var i = queue.length - 1;
  7236. while (i > index && queue[i].id > watcher.id) {
  7237. i--;
  7238. }
  7239. queue.splice(i + 1, 0, watcher);
  7240. }
  7241. // queue the flush
  7242. if (!waiting) {
  7243. waiting = true;
  7244. if ( true && !config.async) {
  7245. flushSchedulerQueue();
  7246. return
  7247. }
  7248. nextTick(flushSchedulerQueue);
  7249. }
  7250. }
  7251. }
  7252. /* */
  7253. var uid$2 = 0;
  7254. /**
  7255. * A watcher parses an expression, collects dependencies,
  7256. * and fires callback when the expression value changes.
  7257. * This is used for both the $watch() api and directives.
  7258. */
  7259. var Watcher = function Watcher (
  7260. vm,
  7261. expOrFn,
  7262. cb,
  7263. options,
  7264. isRenderWatcher
  7265. ) {
  7266. this.vm = vm;
  7267. if (isRenderWatcher) {
  7268. vm._watcher = this;
  7269. }
  7270. vm._watchers.push(this);
  7271. // options
  7272. if (options) {
  7273. this.deep = !!options.deep;
  7274. this.user = !!options.user;
  7275. this.lazy = !!options.lazy;
  7276. this.sync = !!options.sync;
  7277. this.before = options.before;
  7278. } else {
  7279. this.deep = this.user = this.lazy = this.sync = false;
  7280. }
  7281. this.cb = cb;
  7282. this.id = ++uid$2; // uid for batching
  7283. this.active = true;
  7284. this.dirty = this.lazy; // for lazy watchers
  7285. this.deps = [];
  7286. this.newDeps = [];
  7287. this.depIds = new _Set();
  7288. this.newDepIds = new _Set();
  7289. this.expression = true
  7290. ? expOrFn.toString()
  7291. : undefined;
  7292. // parse expression for getter
  7293. if (typeof expOrFn === 'function') {
  7294. this.getter = expOrFn;
  7295. } else {
  7296. this.getter = parsePath(expOrFn);
  7297. if (!this.getter) {
  7298. this.getter = noop;
  7299. true && warn(
  7300. "Failed watching path: \"" + expOrFn + "\" " +
  7301. 'Watcher only accepts simple dot-delimited paths. ' +
  7302. 'For full control, use a function instead.',
  7303. vm
  7304. );
  7305. }
  7306. }
  7307. this.value = this.lazy
  7308. ? undefined
  7309. : this.get();
  7310. };
  7311. /**
  7312. * Evaluate the getter, and re-collect dependencies.
  7313. */
  7314. Watcher.prototype.get = function get () {
  7315. pushTarget(this);
  7316. var value;
  7317. var vm = this.vm;
  7318. try {
  7319. value = this.getter.call(vm, vm);
  7320. } catch (e) {
  7321. if (this.user) {
  7322. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  7323. } else {
  7324. throw e
  7325. }
  7326. } finally {
  7327. // "touch" every property so they are all tracked as
  7328. // dependencies for deep watching
  7329. if (this.deep) {
  7330. traverse(value);
  7331. }
  7332. popTarget();
  7333. this.cleanupDeps();
  7334. }
  7335. return value
  7336. };
  7337. /**
  7338. * Add a dependency to this directive.
  7339. */
  7340. Watcher.prototype.addDep = function addDep (dep) {
  7341. var id = dep.id;
  7342. if (!this.newDepIds.has(id)) {
  7343. this.newDepIds.add(id);
  7344. this.newDeps.push(dep);
  7345. if (!this.depIds.has(id)) {
  7346. dep.addSub(this);
  7347. }
  7348. }
  7349. };
  7350. /**
  7351. * Clean up for dependency collection.
  7352. */
  7353. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  7354. var i = this.deps.length;
  7355. while (i--) {
  7356. var dep = this.deps[i];
  7357. if (!this.newDepIds.has(dep.id)) {
  7358. dep.removeSub(this);
  7359. }
  7360. }
  7361. var tmp = this.depIds;
  7362. this.depIds = this.newDepIds;
  7363. this.newDepIds = tmp;
  7364. this.newDepIds.clear();
  7365. tmp = this.deps;
  7366. this.deps = this.newDeps;
  7367. this.newDeps = tmp;
  7368. this.newDeps.length = 0;
  7369. };
  7370. /**
  7371. * Subscriber interface.
  7372. * Will be called when a dependency changes.
  7373. */
  7374. Watcher.prototype.update = function update () {
  7375. /* istanbul ignore else */
  7376. if (this.lazy) {
  7377. this.dirty = true;
  7378. } else if (this.sync) {
  7379. this.run();
  7380. } else {
  7381. queueWatcher(this);
  7382. }
  7383. };
  7384. /**
  7385. * Scheduler job interface.
  7386. * Will be called by the scheduler.
  7387. */
  7388. Watcher.prototype.run = function run () {
  7389. if (this.active) {
  7390. var value = this.get();
  7391. if (
  7392. value !== this.value ||
  7393. // Deep watchers and watchers on Object/Arrays should fire even
  7394. // when the value is the same, because the value may
  7395. // have mutated.
  7396. isObject(value) ||
  7397. this.deep
  7398. ) {
  7399. // set new value
  7400. var oldValue = this.value;
  7401. this.value = value;
  7402. if (this.user) {
  7403. try {
  7404. this.cb.call(this.vm, value, oldValue);
  7405. } catch (e) {
  7406. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  7407. }
  7408. } else {
  7409. this.cb.call(this.vm, value, oldValue);
  7410. }
  7411. }
  7412. }
  7413. };
  7414. /**
  7415. * Evaluate the value of the watcher.
  7416. * This only gets called for lazy watchers.
  7417. */
  7418. Watcher.prototype.evaluate = function evaluate () {
  7419. this.value = this.get();
  7420. this.dirty = false;
  7421. };
  7422. /**
  7423. * Depend on all deps collected by this watcher.
  7424. */
  7425. Watcher.prototype.depend = function depend () {
  7426. var i = this.deps.length;
  7427. while (i--) {
  7428. this.deps[i].depend();
  7429. }
  7430. };
  7431. /**
  7432. * Remove self from all dependencies' subscriber list.
  7433. */
  7434. Watcher.prototype.teardown = function teardown () {
  7435. if (this.active) {
  7436. // remove self from vm's watcher list
  7437. // this is a somewhat expensive operation so we skip it
  7438. // if the vm is being destroyed.
  7439. if (!this.vm._isBeingDestroyed) {
  7440. remove(this.vm._watchers, this);
  7441. }
  7442. var i = this.deps.length;
  7443. while (i--) {
  7444. this.deps[i].removeSub(this);
  7445. }
  7446. this.active = false;
  7447. }
  7448. };
  7449. /* */
  7450. var sharedPropertyDefinition = {
  7451. enumerable: true,
  7452. configurable: true,
  7453. get: noop,
  7454. set: noop
  7455. };
  7456. function proxy (target, sourceKey, key) {
  7457. sharedPropertyDefinition.get = function proxyGetter () {
  7458. return this[sourceKey][key]
  7459. };
  7460. sharedPropertyDefinition.set = function proxySetter (val) {
  7461. this[sourceKey][key] = val;
  7462. };
  7463. Object.defineProperty(target, key, sharedPropertyDefinition);
  7464. }
  7465. function initState (vm) {
  7466. vm._watchers = [];
  7467. var opts = vm.$options;
  7468. if (opts.props) { initProps(vm, opts.props); }
  7469. if (opts.methods) { initMethods(vm, opts.methods); }
  7470. if (opts.data) {
  7471. initData(vm);
  7472. } else {
  7473. observe(vm._data = {}, true /* asRootData */);
  7474. }
  7475. if (opts.computed) { initComputed(vm, opts.computed); }
  7476. if (opts.watch && opts.watch !== nativeWatch) {
  7477. initWatch(vm, opts.watch);
  7478. }
  7479. }
  7480. function initProps (vm, propsOptions) {
  7481. var propsData = vm.$options.propsData || {};
  7482. var props = vm._props = {};
  7483. // cache prop keys so that future props updates can iterate using Array
  7484. // instead of dynamic object key enumeration.
  7485. var keys = vm.$options._propKeys = [];
  7486. var isRoot = !vm.$parent;
  7487. // root instance props should be converted
  7488. if (!isRoot) {
  7489. toggleObserving(false);
  7490. }
  7491. var loop = function ( key ) {
  7492. keys.push(key);
  7493. var value = validateProp(key, propsOptions, propsData, vm);
  7494. /* istanbul ignore else */
  7495. if (true) {
  7496. var hyphenatedKey = hyphenate(key);
  7497. if (isReservedAttribute(hyphenatedKey) ||
  7498. config.isReservedAttr(hyphenatedKey)) {
  7499. warn(
  7500. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  7501. vm
  7502. );
  7503. }
  7504. defineReactive$$1(props, key, value, function () {
  7505. if (!isRoot && !isUpdatingChildComponent) {
  7506. {
  7507. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  7508. return
  7509. }
  7510. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  7511. if(
  7512. key === 'value' &&
  7513. Array.isArray(vm.$options.behaviors) &&
  7514. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  7515. ){
  7516. return
  7517. }
  7518. if(vm._getFormData){
  7519. return
  7520. }
  7521. var $parent = vm.$parent;
  7522. while($parent){
  7523. if($parent.__next_tick_pending){
  7524. return
  7525. }
  7526. $parent = $parent.$parent;
  7527. }
  7528. }
  7529. warn(
  7530. "Avoid mutating a prop directly since the value will be " +
  7531. "overwritten whenever the parent component re-renders. " +
  7532. "Instead, use a data or computed property based on the prop's " +
  7533. "value. Prop being mutated: \"" + key + "\"",
  7534. vm
  7535. );
  7536. }
  7537. });
  7538. } else {}
  7539. // static props are already proxied on the component's prototype
  7540. // during Vue.extend(). We only need to proxy props defined at
  7541. // instantiation here.
  7542. if (!(key in vm)) {
  7543. proxy(vm, "_props", key);
  7544. }
  7545. };
  7546. for (var key in propsOptions) loop( key );
  7547. toggleObserving(true);
  7548. }
  7549. function initData (vm) {
  7550. var data = vm.$options.data;
  7551. data = vm._data = typeof data === 'function'
  7552. ? getData(data, vm)
  7553. : data || {};
  7554. if (!isPlainObject(data)) {
  7555. data = {};
  7556. true && warn(
  7557. 'data functions should return an object:\n' +
  7558. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  7559. vm
  7560. );
  7561. }
  7562. // proxy data on instance
  7563. var keys = Object.keys(data);
  7564. var props = vm.$options.props;
  7565. var methods = vm.$options.methods;
  7566. var i = keys.length;
  7567. while (i--) {
  7568. var key = keys[i];
  7569. if (true) {
  7570. if (methods && hasOwn(methods, key)) {
  7571. warn(
  7572. ("Method \"" + key + "\" has already been defined as a data property."),
  7573. vm
  7574. );
  7575. }
  7576. }
  7577. if (props && hasOwn(props, key)) {
  7578. true && warn(
  7579. "The data property \"" + key + "\" is already declared as a prop. " +
  7580. "Use prop default value instead.",
  7581. vm
  7582. );
  7583. } else if (!isReserved(key)) {
  7584. proxy(vm, "_data", key);
  7585. }
  7586. }
  7587. // observe data
  7588. observe(data, true /* asRootData */);
  7589. }
  7590. function getData (data, vm) {
  7591. // #7573 disable dep collection when invoking data getters
  7592. pushTarget();
  7593. try {
  7594. return data.call(vm, vm)
  7595. } catch (e) {
  7596. handleError(e, vm, "data()");
  7597. return {}
  7598. } finally {
  7599. popTarget();
  7600. }
  7601. }
  7602. var computedWatcherOptions = { lazy: true };
  7603. function initComputed (vm, computed) {
  7604. // $flow-disable-line
  7605. var watchers = vm._computedWatchers = Object.create(null);
  7606. // computed properties are just getters during SSR
  7607. var isSSR = isServerRendering();
  7608. for (var key in computed) {
  7609. var userDef = computed[key];
  7610. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  7611. if ( true && getter == null) {
  7612. warn(
  7613. ("Getter is missing for computed property \"" + key + "\"."),
  7614. vm
  7615. );
  7616. }
  7617. if (!isSSR) {
  7618. // create internal watcher for the computed property.
  7619. watchers[key] = new Watcher(
  7620. vm,
  7621. getter || noop,
  7622. noop,
  7623. computedWatcherOptions
  7624. );
  7625. }
  7626. // component-defined computed properties are already defined on the
  7627. // component prototype. We only need to define computed properties defined
  7628. // at instantiation here.
  7629. if (!(key in vm)) {
  7630. defineComputed(vm, key, userDef);
  7631. } else if (true) {
  7632. if (key in vm.$data) {
  7633. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  7634. } else if (vm.$options.props && key in vm.$options.props) {
  7635. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  7636. }
  7637. }
  7638. }
  7639. }
  7640. function defineComputed (
  7641. target,
  7642. key,
  7643. userDef
  7644. ) {
  7645. var shouldCache = !isServerRendering();
  7646. if (typeof userDef === 'function') {
  7647. sharedPropertyDefinition.get = shouldCache
  7648. ? createComputedGetter(key)
  7649. : createGetterInvoker(userDef);
  7650. sharedPropertyDefinition.set = noop;
  7651. } else {
  7652. sharedPropertyDefinition.get = userDef.get
  7653. ? shouldCache && userDef.cache !== false
  7654. ? createComputedGetter(key)
  7655. : createGetterInvoker(userDef.get)
  7656. : noop;
  7657. sharedPropertyDefinition.set = userDef.set || noop;
  7658. }
  7659. if ( true &&
  7660. sharedPropertyDefinition.set === noop) {
  7661. sharedPropertyDefinition.set = function () {
  7662. warn(
  7663. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  7664. this
  7665. );
  7666. };
  7667. }
  7668. Object.defineProperty(target, key, sharedPropertyDefinition);
  7669. }
  7670. function createComputedGetter (key) {
  7671. return function computedGetter () {
  7672. var watcher = this._computedWatchers && this._computedWatchers[key];
  7673. if (watcher) {
  7674. if (watcher.dirty) {
  7675. watcher.evaluate();
  7676. }
  7677. if (Dep.SharedObject.target) {// fixed by xxxxxx
  7678. watcher.depend();
  7679. }
  7680. return watcher.value
  7681. }
  7682. }
  7683. }
  7684. function createGetterInvoker(fn) {
  7685. return function computedGetter () {
  7686. return fn.call(this, this)
  7687. }
  7688. }
  7689. function initMethods (vm, methods) {
  7690. var props = vm.$options.props;
  7691. for (var key in methods) {
  7692. if (true) {
  7693. if (typeof methods[key] !== 'function') {
  7694. warn(
  7695. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  7696. "Did you reference the function correctly?",
  7697. vm
  7698. );
  7699. }
  7700. if (props && hasOwn(props, key)) {
  7701. warn(
  7702. ("Method \"" + key + "\" has already been defined as a prop."),
  7703. vm
  7704. );
  7705. }
  7706. if ((key in vm) && isReserved(key)) {
  7707. warn(
  7708. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  7709. "Avoid defining component methods that start with _ or $."
  7710. );
  7711. }
  7712. }
  7713. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  7714. }
  7715. }
  7716. function initWatch (vm, watch) {
  7717. for (var key in watch) {
  7718. var handler = watch[key];
  7719. if (Array.isArray(handler)) {
  7720. for (var i = 0; i < handler.length; i++) {
  7721. createWatcher(vm, key, handler[i]);
  7722. }
  7723. } else {
  7724. createWatcher(vm, key, handler);
  7725. }
  7726. }
  7727. }
  7728. function createWatcher (
  7729. vm,
  7730. expOrFn,
  7731. handler,
  7732. options
  7733. ) {
  7734. if (isPlainObject(handler)) {
  7735. options = handler;
  7736. handler = handler.handler;
  7737. }
  7738. if (typeof handler === 'string') {
  7739. handler = vm[handler];
  7740. }
  7741. return vm.$watch(expOrFn, handler, options)
  7742. }
  7743. function stateMixin (Vue) {
  7744. // flow somehow has problems with directly declared definition object
  7745. // when using Object.defineProperty, so we have to procedurally build up
  7746. // the object here.
  7747. var dataDef = {};
  7748. dataDef.get = function () { return this._data };
  7749. var propsDef = {};
  7750. propsDef.get = function () { return this._props };
  7751. if (true) {
  7752. dataDef.set = function () {
  7753. warn(
  7754. 'Avoid replacing instance root $data. ' +
  7755. 'Use nested data properties instead.',
  7756. this
  7757. );
  7758. };
  7759. propsDef.set = function () {
  7760. warn("$props is readonly.", this);
  7761. };
  7762. }
  7763. Object.defineProperty(Vue.prototype, '$data', dataDef);
  7764. Object.defineProperty(Vue.prototype, '$props', propsDef);
  7765. Vue.prototype.$set = set;
  7766. Vue.prototype.$delete = del;
  7767. Vue.prototype.$watch = function (
  7768. expOrFn,
  7769. cb,
  7770. options
  7771. ) {
  7772. var vm = this;
  7773. if (isPlainObject(cb)) {
  7774. return createWatcher(vm, expOrFn, cb, options)
  7775. }
  7776. options = options || {};
  7777. options.user = true;
  7778. var watcher = new Watcher(vm, expOrFn, cb, options);
  7779. if (options.immediate) {
  7780. try {
  7781. cb.call(vm, watcher.value);
  7782. } catch (error) {
  7783. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  7784. }
  7785. }
  7786. return function unwatchFn () {
  7787. watcher.teardown();
  7788. }
  7789. };
  7790. }
  7791. /* */
  7792. var uid$3 = 0;
  7793. function initMixin (Vue) {
  7794. Vue.prototype._init = function (options) {
  7795. var vm = this;
  7796. // a uid
  7797. vm._uid = uid$3++;
  7798. var startTag, endTag;
  7799. /* istanbul ignore if */
  7800. if ( true && config.performance && mark) {
  7801. startTag = "vue-perf-start:" + (vm._uid);
  7802. endTag = "vue-perf-end:" + (vm._uid);
  7803. mark(startTag);
  7804. }
  7805. // a flag to avoid this being observed
  7806. vm._isVue = true;
  7807. // merge options
  7808. if (options && options._isComponent) {
  7809. // optimize internal component instantiation
  7810. // since dynamic options merging is pretty slow, and none of the
  7811. // internal component options needs special treatment.
  7812. initInternalComponent(vm, options);
  7813. } else {
  7814. vm.$options = mergeOptions(
  7815. resolveConstructorOptions(vm.constructor),
  7816. options || {},
  7817. vm
  7818. );
  7819. }
  7820. /* istanbul ignore else */
  7821. if (true) {
  7822. initProxy(vm);
  7823. } else {}
  7824. // expose real self
  7825. vm._self = vm;
  7826. initLifecycle(vm);
  7827. initEvents(vm);
  7828. initRender(vm);
  7829. callHook(vm, 'beforeCreate');
  7830. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  7831. initState(vm);
  7832. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  7833. !vm._$fallback && callHook(vm, 'created');
  7834. /* istanbul ignore if */
  7835. if ( true && config.performance && mark) {
  7836. vm._name = formatComponentName(vm, false);
  7837. mark(endTag);
  7838. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  7839. }
  7840. if (vm.$options.el) {
  7841. vm.$mount(vm.$options.el);
  7842. }
  7843. };
  7844. }
  7845. function initInternalComponent (vm, options) {
  7846. var opts = vm.$options = Object.create(vm.constructor.options);
  7847. // doing this because it's faster than dynamic enumeration.
  7848. var parentVnode = options._parentVnode;
  7849. opts.parent = options.parent;
  7850. opts._parentVnode = parentVnode;
  7851. var vnodeComponentOptions = parentVnode.componentOptions;
  7852. opts.propsData = vnodeComponentOptions.propsData;
  7853. opts._parentListeners = vnodeComponentOptions.listeners;
  7854. opts._renderChildren = vnodeComponentOptions.children;
  7855. opts._componentTag = vnodeComponentOptions.tag;
  7856. if (options.render) {
  7857. opts.render = options.render;
  7858. opts.staticRenderFns = options.staticRenderFns;
  7859. }
  7860. }
  7861. function resolveConstructorOptions (Ctor) {
  7862. var options = Ctor.options;
  7863. if (Ctor.super) {
  7864. var superOptions = resolveConstructorOptions(Ctor.super);
  7865. var cachedSuperOptions = Ctor.superOptions;
  7866. if (superOptions !== cachedSuperOptions) {
  7867. // super option changed,
  7868. // need to resolve new options.
  7869. Ctor.superOptions = superOptions;
  7870. // check if there are any late-modified/attached options (#4976)
  7871. var modifiedOptions = resolveModifiedOptions(Ctor);
  7872. // update base extend options
  7873. if (modifiedOptions) {
  7874. extend(Ctor.extendOptions, modifiedOptions);
  7875. }
  7876. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  7877. if (options.name) {
  7878. options.components[options.name] = Ctor;
  7879. }
  7880. }
  7881. }
  7882. return options
  7883. }
  7884. function resolveModifiedOptions (Ctor) {
  7885. var modified;
  7886. var latest = Ctor.options;
  7887. var sealed = Ctor.sealedOptions;
  7888. for (var key in latest) {
  7889. if (latest[key] !== sealed[key]) {
  7890. if (!modified) { modified = {}; }
  7891. modified[key] = latest[key];
  7892. }
  7893. }
  7894. return modified
  7895. }
  7896. function Vue (options) {
  7897. if ( true &&
  7898. !(this instanceof Vue)
  7899. ) {
  7900. warn('Vue is a constructor and should be called with the `new` keyword');
  7901. }
  7902. this._init(options);
  7903. }
  7904. initMixin(Vue);
  7905. stateMixin(Vue);
  7906. eventsMixin(Vue);
  7907. lifecycleMixin(Vue);
  7908. renderMixin(Vue);
  7909. /* */
  7910. function initUse (Vue) {
  7911. Vue.use = function (plugin) {
  7912. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  7913. if (installedPlugins.indexOf(plugin) > -1) {
  7914. return this
  7915. }
  7916. // additional parameters
  7917. var args = toArray(arguments, 1);
  7918. args.unshift(this);
  7919. if (typeof plugin.install === 'function') {
  7920. plugin.install.apply(plugin, args);
  7921. } else if (typeof plugin === 'function') {
  7922. plugin.apply(null, args);
  7923. }
  7924. installedPlugins.push(plugin);
  7925. return this
  7926. };
  7927. }
  7928. /* */
  7929. function initMixin$1 (Vue) {
  7930. Vue.mixin = function (mixin) {
  7931. this.options = mergeOptions(this.options, mixin);
  7932. return this
  7933. };
  7934. }
  7935. /* */
  7936. function initExtend (Vue) {
  7937. /**
  7938. * Each instance constructor, including Vue, has a unique
  7939. * cid. This enables us to create wrapped "child
  7940. * constructors" for prototypal inheritance and cache them.
  7941. */
  7942. Vue.cid = 0;
  7943. var cid = 1;
  7944. /**
  7945. * Class inheritance
  7946. */
  7947. Vue.extend = function (extendOptions) {
  7948. extendOptions = extendOptions || {};
  7949. var Super = this;
  7950. var SuperId = Super.cid;
  7951. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  7952. if (cachedCtors[SuperId]) {
  7953. return cachedCtors[SuperId]
  7954. }
  7955. var name = extendOptions.name || Super.options.name;
  7956. if ( true && name) {
  7957. validateComponentName(name);
  7958. }
  7959. var Sub = function VueComponent (options) {
  7960. this._init(options);
  7961. };
  7962. Sub.prototype = Object.create(Super.prototype);
  7963. Sub.prototype.constructor = Sub;
  7964. Sub.cid = cid++;
  7965. Sub.options = mergeOptions(
  7966. Super.options,
  7967. extendOptions
  7968. );
  7969. Sub['super'] = Super;
  7970. // For props and computed properties, we define the proxy getters on
  7971. // the Vue instances at extension time, on the extended prototype. This
  7972. // avoids Object.defineProperty calls for each instance created.
  7973. if (Sub.options.props) {
  7974. initProps$1(Sub);
  7975. }
  7976. if (Sub.options.computed) {
  7977. initComputed$1(Sub);
  7978. }
  7979. // allow further extension/mixin/plugin usage
  7980. Sub.extend = Super.extend;
  7981. Sub.mixin = Super.mixin;
  7982. Sub.use = Super.use;
  7983. // create asset registers, so extended classes
  7984. // can have their private assets too.
  7985. ASSET_TYPES.forEach(function (type) {
  7986. Sub[type] = Super[type];
  7987. });
  7988. // enable recursive self-lookup
  7989. if (name) {
  7990. Sub.options.components[name] = Sub;
  7991. }
  7992. // keep a reference to the super options at extension time.
  7993. // later at instantiation we can check if Super's options have
  7994. // been updated.
  7995. Sub.superOptions = Super.options;
  7996. Sub.extendOptions = extendOptions;
  7997. Sub.sealedOptions = extend({}, Sub.options);
  7998. // cache constructor
  7999. cachedCtors[SuperId] = Sub;
  8000. return Sub
  8001. };
  8002. }
  8003. function initProps$1 (Comp) {
  8004. var props = Comp.options.props;
  8005. for (var key in props) {
  8006. proxy(Comp.prototype, "_props", key);
  8007. }
  8008. }
  8009. function initComputed$1 (Comp) {
  8010. var computed = Comp.options.computed;
  8011. for (var key in computed) {
  8012. defineComputed(Comp.prototype, key, computed[key]);
  8013. }
  8014. }
  8015. /* */
  8016. function initAssetRegisters (Vue) {
  8017. /**
  8018. * Create asset registration methods.
  8019. */
  8020. ASSET_TYPES.forEach(function (type) {
  8021. Vue[type] = function (
  8022. id,
  8023. definition
  8024. ) {
  8025. if (!definition) {
  8026. return this.options[type + 's'][id]
  8027. } else {
  8028. /* istanbul ignore if */
  8029. if ( true && type === 'component') {
  8030. validateComponentName(id);
  8031. }
  8032. if (type === 'component' && isPlainObject(definition)) {
  8033. definition.name = definition.name || id;
  8034. definition = this.options._base.extend(definition);
  8035. }
  8036. if (type === 'directive' && typeof definition === 'function') {
  8037. definition = { bind: definition, update: definition };
  8038. }
  8039. this.options[type + 's'][id] = definition;
  8040. return definition
  8041. }
  8042. };
  8043. });
  8044. }
  8045. /* */
  8046. function getComponentName (opts) {
  8047. return opts && (opts.Ctor.options.name || opts.tag)
  8048. }
  8049. function matches (pattern, name) {
  8050. if (Array.isArray(pattern)) {
  8051. return pattern.indexOf(name) > -1
  8052. } else if (typeof pattern === 'string') {
  8053. return pattern.split(',').indexOf(name) > -1
  8054. } else if (isRegExp(pattern)) {
  8055. return pattern.test(name)
  8056. }
  8057. /* istanbul ignore next */
  8058. return false
  8059. }
  8060. function pruneCache (keepAliveInstance, filter) {
  8061. var cache = keepAliveInstance.cache;
  8062. var keys = keepAliveInstance.keys;
  8063. var _vnode = keepAliveInstance._vnode;
  8064. for (var key in cache) {
  8065. var cachedNode = cache[key];
  8066. if (cachedNode) {
  8067. var name = getComponentName(cachedNode.componentOptions);
  8068. if (name && !filter(name)) {
  8069. pruneCacheEntry(cache, key, keys, _vnode);
  8070. }
  8071. }
  8072. }
  8073. }
  8074. function pruneCacheEntry (
  8075. cache,
  8076. key,
  8077. keys,
  8078. current
  8079. ) {
  8080. var cached$$1 = cache[key];
  8081. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  8082. cached$$1.componentInstance.$destroy();
  8083. }
  8084. cache[key] = null;
  8085. remove(keys, key);
  8086. }
  8087. var patternTypes = [String, RegExp, Array];
  8088. var KeepAlive = {
  8089. name: 'keep-alive',
  8090. abstract: true,
  8091. props: {
  8092. include: patternTypes,
  8093. exclude: patternTypes,
  8094. max: [String, Number]
  8095. },
  8096. created: function created () {
  8097. this.cache = Object.create(null);
  8098. this.keys = [];
  8099. },
  8100. destroyed: function destroyed () {
  8101. for (var key in this.cache) {
  8102. pruneCacheEntry(this.cache, key, this.keys);
  8103. }
  8104. },
  8105. mounted: function mounted () {
  8106. var this$1 = this;
  8107. this.$watch('include', function (val) {
  8108. pruneCache(this$1, function (name) { return matches(val, name); });
  8109. });
  8110. this.$watch('exclude', function (val) {
  8111. pruneCache(this$1, function (name) { return !matches(val, name); });
  8112. });
  8113. },
  8114. render: function render () {
  8115. var slot = this.$slots.default;
  8116. var vnode = getFirstComponentChild(slot);
  8117. var componentOptions = vnode && vnode.componentOptions;
  8118. if (componentOptions) {
  8119. // check pattern
  8120. var name = getComponentName(componentOptions);
  8121. var ref = this;
  8122. var include = ref.include;
  8123. var exclude = ref.exclude;
  8124. if (
  8125. // not included
  8126. (include && (!name || !matches(include, name))) ||
  8127. // excluded
  8128. (exclude && name && matches(exclude, name))
  8129. ) {
  8130. return vnode
  8131. }
  8132. var ref$1 = this;
  8133. var cache = ref$1.cache;
  8134. var keys = ref$1.keys;
  8135. var key = vnode.key == null
  8136. // same constructor may get registered as different local components
  8137. // so cid alone is not enough (#3269)
  8138. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  8139. : vnode.key;
  8140. if (cache[key]) {
  8141. vnode.componentInstance = cache[key].componentInstance;
  8142. // make current key freshest
  8143. remove(keys, key);
  8144. keys.push(key);
  8145. } else {
  8146. cache[key] = vnode;
  8147. keys.push(key);
  8148. // prune oldest entry
  8149. if (this.max && keys.length > parseInt(this.max)) {
  8150. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  8151. }
  8152. }
  8153. vnode.data.keepAlive = true;
  8154. }
  8155. return vnode || (slot && slot[0])
  8156. }
  8157. };
  8158. var builtInComponents = {
  8159. KeepAlive: KeepAlive
  8160. };
  8161. /* */
  8162. function initGlobalAPI (Vue) {
  8163. // config
  8164. var configDef = {};
  8165. configDef.get = function () { return config; };
  8166. if (true) {
  8167. configDef.set = function () {
  8168. warn(
  8169. 'Do not replace the Vue.config object, set individual fields instead.'
  8170. );
  8171. };
  8172. }
  8173. Object.defineProperty(Vue, 'config', configDef);
  8174. // exposed util methods.
  8175. // NOTE: these are not considered part of the public API - avoid relying on
  8176. // them unless you are aware of the risk.
  8177. Vue.util = {
  8178. warn: warn,
  8179. extend: extend,
  8180. mergeOptions: mergeOptions,
  8181. defineReactive: defineReactive$$1
  8182. };
  8183. Vue.set = set;
  8184. Vue.delete = del;
  8185. Vue.nextTick = nextTick;
  8186. // 2.6 explicit observable API
  8187. Vue.observable = function (obj) {
  8188. observe(obj);
  8189. return obj
  8190. };
  8191. Vue.options = Object.create(null);
  8192. ASSET_TYPES.forEach(function (type) {
  8193. Vue.options[type + 's'] = Object.create(null);
  8194. });
  8195. // this is used to identify the "base" constructor to extend all plain-object
  8196. // components with in Weex's multi-instance scenarios.
  8197. Vue.options._base = Vue;
  8198. extend(Vue.options.components, builtInComponents);
  8199. initUse(Vue);
  8200. initMixin$1(Vue);
  8201. initExtend(Vue);
  8202. initAssetRegisters(Vue);
  8203. }
  8204. initGlobalAPI(Vue);
  8205. Object.defineProperty(Vue.prototype, '$isServer', {
  8206. get: isServerRendering
  8207. });
  8208. Object.defineProperty(Vue.prototype, '$ssrContext', {
  8209. get: function get () {
  8210. /* istanbul ignore next */
  8211. return this.$vnode && this.$vnode.ssrContext
  8212. }
  8213. });
  8214. // expose FunctionalRenderContext for ssr runtime helper installation
  8215. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  8216. value: FunctionalRenderContext
  8217. });
  8218. Vue.version = '2.6.11';
  8219. /**
  8220. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  8221. */
  8222. var ARRAYTYPE = '[object Array]';
  8223. var OBJECTTYPE = '[object Object]';
  8224. var NULLTYPE = '[object Null]';
  8225. var UNDEFINEDTYPE = '[object Undefined]';
  8226. // const FUNCTIONTYPE = '[object Function]'
  8227. function diff(current, pre) {
  8228. var result = {};
  8229. syncKeys(current, pre);
  8230. _diff(current, pre, '', result);
  8231. return result
  8232. }
  8233. function syncKeys(current, pre) {
  8234. if (current === pre) { return }
  8235. var rootCurrentType = type(current);
  8236. var rootPreType = type(pre);
  8237. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  8238. if(Object.keys(current).length >= Object.keys(pre).length){
  8239. for (var key in pre) {
  8240. var currentValue = current[key];
  8241. if (currentValue === undefined) {
  8242. current[key] = null;
  8243. } else {
  8244. syncKeys(currentValue, pre[key]);
  8245. }
  8246. }
  8247. }
  8248. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  8249. if (current.length >= pre.length) {
  8250. pre.forEach(function (item, index) {
  8251. syncKeys(current[index], item);
  8252. });
  8253. }
  8254. }
  8255. }
  8256. function nullOrUndefined(currentType, preType) {
  8257. if(
  8258. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  8259. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  8260. ) {
  8261. return false
  8262. }
  8263. return true
  8264. }
  8265. function _diff(current, pre, path, result) {
  8266. if (current === pre) { return }
  8267. var rootCurrentType = type(current);
  8268. var rootPreType = type(pre);
  8269. if (rootCurrentType == OBJECTTYPE) {
  8270. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  8271. setResult(result, path, current);
  8272. } else {
  8273. var loop = function ( key ) {
  8274. var currentValue = current[key];
  8275. var preValue = pre[key];
  8276. var currentType = type(currentValue);
  8277. var preType = type(preValue);
  8278. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  8279. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  8280. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8281. }
  8282. } else if (currentType == ARRAYTYPE) {
  8283. if (preType != ARRAYTYPE) {
  8284. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8285. } else {
  8286. if (currentValue.length < preValue.length) {
  8287. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8288. } else {
  8289. currentValue.forEach(function (item, index) {
  8290. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  8291. });
  8292. }
  8293. }
  8294. } else if (currentType == OBJECTTYPE) {
  8295. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  8296. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8297. } else {
  8298. for (var subKey in currentValue) {
  8299. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  8300. }
  8301. }
  8302. }
  8303. };
  8304. for (var key in current) loop( key );
  8305. }
  8306. } else if (rootCurrentType == ARRAYTYPE) {
  8307. if (rootPreType != ARRAYTYPE) {
  8308. setResult(result, path, current);
  8309. } else {
  8310. if (current.length < pre.length) {
  8311. setResult(result, path, current);
  8312. } else {
  8313. current.forEach(function (item, index) {
  8314. _diff(item, pre[index], path + '[' + index + ']', result);
  8315. });
  8316. }
  8317. }
  8318. } else {
  8319. setResult(result, path, current);
  8320. }
  8321. }
  8322. function setResult(result, k, v) {
  8323. // if (type(v) != FUNCTIONTYPE) {
  8324. result[k] = v;
  8325. // }
  8326. }
  8327. function type(obj) {
  8328. return Object.prototype.toString.call(obj)
  8329. }
  8330. /* */
  8331. function flushCallbacks$1(vm) {
  8332. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  8333. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"书嗨","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8334. var mpInstance = vm.$scope;
  8335. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8336. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  8337. }
  8338. var copies = vm.__next_tick_callbacks.slice(0);
  8339. vm.__next_tick_callbacks.length = 0;
  8340. for (var i = 0; i < copies.length; i++) {
  8341. copies[i]();
  8342. }
  8343. }
  8344. }
  8345. function hasRenderWatcher(vm) {
  8346. return queue.find(function (watcher) { return vm._watcher === watcher; })
  8347. }
  8348. function nextTick$1(vm, cb) {
  8349. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  8350. //2.nextTick 之前存在 render watcher
  8351. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  8352. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"书嗨","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8353. var mpInstance = vm.$scope;
  8354. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8355. ']:nextVueTick');
  8356. }
  8357. return nextTick(cb, vm)
  8358. }else{
  8359. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"书嗨","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8360. var mpInstance$1 = vm.$scope;
  8361. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  8362. ']:nextMPTick');
  8363. }
  8364. }
  8365. var _resolve;
  8366. if (!vm.__next_tick_callbacks) {
  8367. vm.__next_tick_callbacks = [];
  8368. }
  8369. vm.__next_tick_callbacks.push(function () {
  8370. if (cb) {
  8371. try {
  8372. cb.call(vm);
  8373. } catch (e) {
  8374. handleError(e, vm, 'nextTick');
  8375. }
  8376. } else if (_resolve) {
  8377. _resolve(vm);
  8378. }
  8379. });
  8380. // $flow-disable-line
  8381. if (!cb && typeof Promise !== 'undefined') {
  8382. return new Promise(function (resolve) {
  8383. _resolve = resolve;
  8384. })
  8385. }
  8386. }
  8387. /* */
  8388. function clearInstance(key, value) {
  8389. // 简易去除 Vue 和小程序组件实例
  8390. if (value) {
  8391. if (value._isVue || value.__v_isMPComponent) {
  8392. return {}
  8393. }
  8394. }
  8395. return value
  8396. }
  8397. function cloneWithData(vm) {
  8398. // 确保当前 vm 所有数据被同步
  8399. var ret = Object.create(null);
  8400. var dataKeys = [].concat(
  8401. Object.keys(vm._data || {}),
  8402. Object.keys(vm._computedWatchers || {}));
  8403. dataKeys.reduce(function(ret, key) {
  8404. ret[key] = vm[key];
  8405. return ret
  8406. }, ret);
  8407. // vue-composition-api
  8408. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  8409. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  8410. if (rawBindings) {
  8411. Object.keys(rawBindings).forEach(function (key) {
  8412. ret[key] = vm[key];
  8413. });
  8414. }
  8415. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  8416. Object.assign(ret, vm.$mp.data || {});
  8417. if (
  8418. Array.isArray(vm.$options.behaviors) &&
  8419. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  8420. ) { //form-field
  8421. ret['name'] = vm.name;
  8422. ret['value'] = vm.value;
  8423. }
  8424. return JSON.parse(JSON.stringify(ret, clearInstance))
  8425. }
  8426. var patch = function(oldVnode, vnode) {
  8427. var this$1 = this;
  8428. if (vnode === null) { //destroy
  8429. return
  8430. }
  8431. if (this.mpType === 'page' || this.mpType === 'component') {
  8432. var mpInstance = this.$scope;
  8433. var data = Object.create(null);
  8434. try {
  8435. data = cloneWithData(this);
  8436. } catch (err) {
  8437. console.error(err);
  8438. }
  8439. data.__webviewId__ = mpInstance.data.__webviewId__;
  8440. var mpData = Object.create(null);
  8441. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  8442. mpData[key] = mpInstance.data[key];
  8443. });
  8444. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  8445. if (Object.keys(diffData).length) {
  8446. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"书嗨","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8447. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  8448. ']差量更新',
  8449. JSON.stringify(diffData));
  8450. }
  8451. this.__next_tick_pending = true;
  8452. mpInstance.setData(diffData, function () {
  8453. this$1.__next_tick_pending = false;
  8454. flushCallbacks$1(this$1);
  8455. });
  8456. } else {
  8457. flushCallbacks$1(this);
  8458. }
  8459. }
  8460. };
  8461. /* */
  8462. function createEmptyRender() {
  8463. }
  8464. function mountComponent$1(
  8465. vm,
  8466. el,
  8467. hydrating
  8468. ) {
  8469. if (!vm.mpType) {//main.js 中的 new Vue
  8470. return vm
  8471. }
  8472. if (vm.mpType === 'app') {
  8473. vm.$options.render = createEmptyRender;
  8474. }
  8475. if (!vm.$options.render) {
  8476. vm.$options.render = createEmptyRender;
  8477. if (true) {
  8478. /* istanbul ignore if */
  8479. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  8480. vm.$options.el || el) {
  8481. warn(
  8482. 'You are using the runtime-only build of Vue where the template ' +
  8483. 'compiler is not available. Either pre-compile the templates into ' +
  8484. 'render functions, or use the compiler-included build.',
  8485. vm
  8486. );
  8487. } else {
  8488. warn(
  8489. 'Failed to mount component: template or render function not defined.',
  8490. vm
  8491. );
  8492. }
  8493. }
  8494. }
  8495. !vm._$fallback && callHook(vm, 'beforeMount');
  8496. var updateComponent = function () {
  8497. vm._update(vm._render(), hydrating);
  8498. };
  8499. // we set this to vm._watcher inside the watcher's constructor
  8500. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  8501. // component's mounted hook), which relies on vm._watcher being already defined
  8502. new Watcher(vm, updateComponent, noop, {
  8503. before: function before() {
  8504. if (vm._isMounted && !vm._isDestroyed) {
  8505. callHook(vm, 'beforeUpdate');
  8506. }
  8507. }
  8508. }, true /* isRenderWatcher */);
  8509. hydrating = false;
  8510. return vm
  8511. }
  8512. /* */
  8513. function renderClass (
  8514. staticClass,
  8515. dynamicClass
  8516. ) {
  8517. if (isDef(staticClass) || isDef(dynamicClass)) {
  8518. return concat(staticClass, stringifyClass(dynamicClass))
  8519. }
  8520. /* istanbul ignore next */
  8521. return ''
  8522. }
  8523. function concat (a, b) {
  8524. return a ? b ? (a + ' ' + b) : a : (b || '')
  8525. }
  8526. function stringifyClass (value) {
  8527. if (Array.isArray(value)) {
  8528. return stringifyArray(value)
  8529. }
  8530. if (isObject(value)) {
  8531. return stringifyObject(value)
  8532. }
  8533. if (typeof value === 'string') {
  8534. return value
  8535. }
  8536. /* istanbul ignore next */
  8537. return ''
  8538. }
  8539. function stringifyArray (value) {
  8540. var res = '';
  8541. var stringified;
  8542. for (var i = 0, l = value.length; i < l; i++) {
  8543. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  8544. if (res) { res += ' '; }
  8545. res += stringified;
  8546. }
  8547. }
  8548. return res
  8549. }
  8550. function stringifyObject (value) {
  8551. var res = '';
  8552. for (var key in value) {
  8553. if (value[key]) {
  8554. if (res) { res += ' '; }
  8555. res += key;
  8556. }
  8557. }
  8558. return res
  8559. }
  8560. /* */
  8561. var parseStyleText = cached(function (cssText) {
  8562. var res = {};
  8563. var listDelimiter = /;(?![^(]*\))/g;
  8564. var propertyDelimiter = /:(.+)/;
  8565. cssText.split(listDelimiter).forEach(function (item) {
  8566. if (item) {
  8567. var tmp = item.split(propertyDelimiter);
  8568. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  8569. }
  8570. });
  8571. return res
  8572. });
  8573. // normalize possible array / string values into Object
  8574. function normalizeStyleBinding (bindingStyle) {
  8575. if (Array.isArray(bindingStyle)) {
  8576. return toObject(bindingStyle)
  8577. }
  8578. if (typeof bindingStyle === 'string') {
  8579. return parseStyleText(bindingStyle)
  8580. }
  8581. return bindingStyle
  8582. }
  8583. /* */
  8584. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  8585. function getTarget(obj, path) {
  8586. var parts = path.split('.');
  8587. var key = parts[0];
  8588. if (key.indexOf('__$n') === 0) { //number index
  8589. key = parseInt(key.replace('__$n', ''));
  8590. }
  8591. if (parts.length === 1) {
  8592. return obj[key]
  8593. }
  8594. return getTarget(obj[key], parts.slice(1).join('.'))
  8595. }
  8596. function internalMixin(Vue) {
  8597. Vue.config.errorHandler = function(err, vm, info) {
  8598. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  8599. console.error(err);
  8600. /* eslint-disable no-undef */
  8601. var app = typeof getApp === 'function' && getApp();
  8602. if (app && app.onError) {
  8603. app.onError(err);
  8604. }
  8605. };
  8606. var oldEmit = Vue.prototype.$emit;
  8607. Vue.prototype.$emit = function(event) {
  8608. if (this.$scope && event) {
  8609. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  8610. if (triggerEvent) {
  8611. try {
  8612. triggerEvent.call(this.$scope, event, {
  8613. __args__: toArray(arguments, 1)
  8614. });
  8615. } catch (error) {
  8616. }
  8617. }
  8618. }
  8619. return oldEmit.apply(this, arguments)
  8620. };
  8621. Vue.prototype.$nextTick = function(fn) {
  8622. return nextTick$1(this, fn)
  8623. };
  8624. MP_METHODS.forEach(function (method) {
  8625. Vue.prototype[method] = function(args) {
  8626. if (this.$scope && this.$scope[method]) {
  8627. return this.$scope[method](args)
  8628. }
  8629. // mp-alipay
  8630. if (typeof my === 'undefined') {
  8631. return
  8632. }
  8633. if (method === 'createSelectorQuery') {
  8634. /* eslint-disable no-undef */
  8635. return my.createSelectorQuery(args)
  8636. } else if (method === 'createIntersectionObserver') {
  8637. /* eslint-disable no-undef */
  8638. return my.createIntersectionObserver(args)
  8639. }
  8640. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  8641. };
  8642. });
  8643. Vue.prototype.__init_provide = initProvide;
  8644. Vue.prototype.__init_injections = initInjections;
  8645. Vue.prototype.__call_hook = function(hook, args) {
  8646. var vm = this;
  8647. // #7573 disable dep collection when invoking lifecycle hooks
  8648. pushTarget();
  8649. var handlers = vm.$options[hook];
  8650. var info = hook + " hook";
  8651. var ret;
  8652. if (handlers) {
  8653. for (var i = 0, j = handlers.length; i < j; i++) {
  8654. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  8655. }
  8656. }
  8657. if (vm._hasHookEvent) {
  8658. vm.$emit('hook:' + hook, args);
  8659. }
  8660. popTarget();
  8661. return ret
  8662. };
  8663. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  8664. if (Array.isArray(modifiers)) {
  8665. if (modifiers.indexOf('trim') !== -1) {
  8666. value = value.trim();
  8667. }
  8668. if (modifiers.indexOf('number') !== -1) {
  8669. value = this._n(value);
  8670. }
  8671. }
  8672. if (!target) {
  8673. target = this;
  8674. }
  8675. // 解决动态属性添加
  8676. Vue.set(target, key, value);
  8677. };
  8678. Vue.prototype.__set_sync = function(target, key, value) {
  8679. if (!target) {
  8680. target = this;
  8681. }
  8682. // 解决动态属性添加
  8683. Vue.set(target, key, value);
  8684. };
  8685. Vue.prototype.__get_orig = function(item) {
  8686. if (isPlainObject(item)) {
  8687. return item['$orig'] || item
  8688. }
  8689. return item
  8690. };
  8691. Vue.prototype.__get_value = function(dataPath, target) {
  8692. return getTarget(target || this, dataPath)
  8693. };
  8694. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  8695. return renderClass(staticClass, dynamicClass)
  8696. };
  8697. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  8698. if (!dynamicStyle && !staticStyle) {
  8699. return ''
  8700. }
  8701. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  8702. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  8703. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  8704. };
  8705. Vue.prototype.__map = function(val, iteratee) {
  8706. //TODO 暂不考虑 string
  8707. var ret, i, l, keys, key;
  8708. if (Array.isArray(val)) {
  8709. ret = new Array(val.length);
  8710. for (i = 0, l = val.length; i < l; i++) {
  8711. ret[i] = iteratee(val[i], i);
  8712. }
  8713. return ret
  8714. } else if (isObject(val)) {
  8715. keys = Object.keys(val);
  8716. ret = Object.create(null);
  8717. for (i = 0, l = keys.length; i < l; i++) {
  8718. key = keys[i];
  8719. ret[key] = iteratee(val[key], key, i);
  8720. }
  8721. return ret
  8722. } else if (typeof val === 'number') {
  8723. ret = new Array(val);
  8724. for (i = 0, l = val; i < l; i++) {
  8725. // 第一个参数暂时仍和小程序一致
  8726. ret[i] = iteratee(i, i);
  8727. }
  8728. return ret
  8729. }
  8730. return []
  8731. };
  8732. }
  8733. /* */
  8734. var LIFECYCLE_HOOKS$1 = [
  8735. //App
  8736. 'onLaunch',
  8737. 'onShow',
  8738. 'onHide',
  8739. 'onUniNViewMessage',
  8740. 'onPageNotFound',
  8741. 'onThemeChange',
  8742. 'onError',
  8743. 'onUnhandledRejection',
  8744. //Page
  8745. 'onInit',
  8746. 'onLoad',
  8747. // 'onShow',
  8748. 'onReady',
  8749. // 'onHide',
  8750. 'onUnload',
  8751. 'onPullDownRefresh',
  8752. 'onReachBottom',
  8753. 'onTabItemTap',
  8754. 'onAddToFavorites',
  8755. 'onShareTimeline',
  8756. 'onShareAppMessage',
  8757. 'onResize',
  8758. 'onPageScroll',
  8759. 'onNavigationBarButtonTap',
  8760. 'onBackPress',
  8761. 'onNavigationBarSearchInputChanged',
  8762. 'onNavigationBarSearchInputConfirmed',
  8763. 'onNavigationBarSearchInputClicked',
  8764. 'onUploadDouyinVideo',
  8765. 'onNFCReadMessage',
  8766. //Component
  8767. // 'onReady', // 兼容旧版本,应该移除该事件
  8768. 'onPageShow',
  8769. 'onPageHide',
  8770. 'onPageResize'
  8771. ];
  8772. function lifecycleMixin$1(Vue) {
  8773. //fixed vue-class-component
  8774. var oldExtend = Vue.extend;
  8775. Vue.extend = function(extendOptions) {
  8776. extendOptions = extendOptions || {};
  8777. var methods = extendOptions.methods;
  8778. if (methods) {
  8779. Object.keys(methods).forEach(function (methodName) {
  8780. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  8781. extendOptions[methodName] = methods[methodName];
  8782. delete methods[methodName];
  8783. }
  8784. });
  8785. }
  8786. return oldExtend.call(this, extendOptions)
  8787. };
  8788. var strategies = Vue.config.optionMergeStrategies;
  8789. var mergeHook = strategies.created;
  8790. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  8791. strategies[hook] = mergeHook;
  8792. });
  8793. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  8794. }
  8795. /* */
  8796. // install platform patch function
  8797. Vue.prototype.__patch__ = patch;
  8798. // public mount method
  8799. Vue.prototype.$mount = function(
  8800. el ,
  8801. hydrating
  8802. ) {
  8803. return mountComponent$1(this, el, hydrating)
  8804. };
  8805. lifecycleMixin$1(Vue);
  8806. internalMixin(Vue);
  8807. /* */
  8808. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  8809. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  8810. /***/ }),
  8811. /***/ 26:
  8812. /*!**********************************!*\
  8813. !*** E:/书嗨项目/book-hi/pages.json ***!
  8814. \**********************************/
  8815. /*! no static exports found */
  8816. /***/ (function(module, exports) {
  8817. /***/ }),
  8818. /***/ 3:
  8819. /*!***********************************!*\
  8820. !*** (webpack)/buildin/global.js ***!
  8821. \***********************************/
  8822. /*! no static exports found */
  8823. /***/ (function(module, exports) {
  8824. var g;
  8825. // This works in non-strict mode
  8826. g = (function() {
  8827. return this;
  8828. })();
  8829. try {
  8830. // This works if eval is allowed (see CSP)
  8831. g = g || new Function("return this")();
  8832. } catch (e) {
  8833. // This works if the window reference is available
  8834. if (typeof window === "object") g = window;
  8835. }
  8836. // g can still be undefined, but nothing to do about it...
  8837. // We return undefined, instead of nothing here, so it's
  8838. // easier to handle this case. if(!global) { ...}
  8839. module.exports = g;
  8840. /***/ }),
  8841. /***/ 32:
  8842. /*!**********************************************************************************************************!*\
  8843. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  8844. \**********************************************************************************************************/
  8845. /*! exports provided: default */
  8846. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8847. "use strict";
  8848. __webpack_require__.r(__webpack_exports__);
  8849. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  8850. /* globals __VUE_SSR_CONTEXT__ */
  8851. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  8852. // This module is a runtime utility for cleaner component module output and will
  8853. // be included in the final webpack user bundle.
  8854. function normalizeComponent (
  8855. scriptExports,
  8856. render,
  8857. staticRenderFns,
  8858. functionalTemplate,
  8859. injectStyles,
  8860. scopeId,
  8861. moduleIdentifier, /* server only */
  8862. shadowMode, /* vue-cli only */
  8863. components, // fixed by xxxxxx auto components
  8864. renderjs // fixed by xxxxxx renderjs
  8865. ) {
  8866. // Vue.extend constructor export interop
  8867. var options = typeof scriptExports === 'function'
  8868. ? scriptExports.options
  8869. : scriptExports
  8870. // fixed by xxxxxx auto components
  8871. if (components) {
  8872. if (!options.components) {
  8873. options.components = {}
  8874. }
  8875. var hasOwn = Object.prototype.hasOwnProperty
  8876. for (var name in components) {
  8877. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  8878. options.components[name] = components[name]
  8879. }
  8880. }
  8881. }
  8882. // fixed by xxxxxx renderjs
  8883. if (renderjs) {
  8884. if(typeof renderjs.beforeCreate === 'function'){
  8885. renderjs.beforeCreate = [renderjs.beforeCreate]
  8886. }
  8887. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  8888. this[renderjs.__module] = this
  8889. });
  8890. (options.mixins || (options.mixins = [])).push(renderjs)
  8891. }
  8892. // render functions
  8893. if (render) {
  8894. options.render = render
  8895. options.staticRenderFns = staticRenderFns
  8896. options._compiled = true
  8897. }
  8898. // functional template
  8899. if (functionalTemplate) {
  8900. options.functional = true
  8901. }
  8902. // scopedId
  8903. if (scopeId) {
  8904. options._scopeId = 'data-v-' + scopeId
  8905. }
  8906. var hook
  8907. if (moduleIdentifier) { // server build
  8908. hook = function (context) {
  8909. // 2.3 injection
  8910. context =
  8911. context || // cached call
  8912. (this.$vnode && this.$vnode.ssrContext) || // stateful
  8913. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  8914. // 2.2 with runInNewContext: true
  8915. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  8916. context = __VUE_SSR_CONTEXT__
  8917. }
  8918. // inject component styles
  8919. if (injectStyles) {
  8920. injectStyles.call(this, context)
  8921. }
  8922. // register component module identifier for async chunk inferrence
  8923. if (context && context._registeredComponents) {
  8924. context._registeredComponents.add(moduleIdentifier)
  8925. }
  8926. }
  8927. // used by ssr in case component is cached and beforeCreate
  8928. // never gets called
  8929. options._ssrRegister = hook
  8930. } else if (injectStyles) {
  8931. hook = shadowMode
  8932. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  8933. : injectStyles
  8934. }
  8935. if (hook) {
  8936. if (options.functional) {
  8937. // for template-only hot-reload because in that case the render fn doesn't
  8938. // go through the normalizer
  8939. options._injectStyles = hook
  8940. // register for functioal component in vue file
  8941. var originalRender = options.render
  8942. options.render = function renderWithStyleInjection (h, context) {
  8943. hook.call(context)
  8944. return originalRender(h, context)
  8945. }
  8946. } else {
  8947. // inject component registration as beforeCreate hook
  8948. var existing = options.beforeCreate
  8949. options.beforeCreate = existing
  8950. ? [].concat(existing, hook)
  8951. : [hook]
  8952. }
  8953. }
  8954. return {
  8955. exports: scriptExports,
  8956. options: options
  8957. }
  8958. }
  8959. /***/ }),
  8960. /***/ 33:
  8961. /*!*****************************************!*\
  8962. !*** E:/书嗨项目/book-hi/uview-ui/index.js ***!
  8963. \*****************************************/
  8964. /*! no static exports found */
  8965. /***/ (function(module, exports, __webpack_require__) {
  8966. "use strict";
  8967. /* WEBPACK VAR INJECTION */(function(uni) {
  8968. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  8969. Object.defineProperty(exports, "__esModule", {
  8970. value: true
  8971. });
  8972. exports.default = void 0;
  8973. var _mixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mixin.js */ 34));
  8974. var _request = _interopRequireDefault(__webpack_require__(/*! ./libs/request */ 35));
  8975. var _queryParams = _interopRequireDefault(__webpack_require__(/*! ./libs/function/queryParams.js */ 39));
  8976. var _route = _interopRequireDefault(__webpack_require__(/*! ./libs/function/route.js */ 40));
  8977. var _timeFormat = _interopRequireDefault(__webpack_require__(/*! ./libs/function/timeFormat.js */ 44));
  8978. var _timeFrom = _interopRequireDefault(__webpack_require__(/*! ./libs/function/timeFrom.js */ 45));
  8979. var _colorGradient = _interopRequireDefault(__webpack_require__(/*! ./libs/function/colorGradient.js */ 46));
  8980. var _guid = _interopRequireDefault(__webpack_require__(/*! ./libs/function/guid.js */ 47));
  8981. var _color = _interopRequireDefault(__webpack_require__(/*! ./libs/function/color.js */ 48));
  8982. var _type2icon = _interopRequireDefault(__webpack_require__(/*! ./libs/function/type2icon.js */ 49));
  8983. var _randomArray = _interopRequireDefault(__webpack_require__(/*! ./libs/function/randomArray.js */ 50));
  8984. var _deepClone = _interopRequireDefault(__webpack_require__(/*! ./libs/function/deepClone.js */ 37));
  8985. var _deepMerge = _interopRequireDefault(__webpack_require__(/*! ./libs/function/deepMerge.js */ 36));
  8986. var _addUnit = _interopRequireDefault(__webpack_require__(/*! ./libs/function/addUnit.js */ 51));
  8987. var _test = _interopRequireDefault(__webpack_require__(/*! ./libs/function/test.js */ 38));
  8988. var _random = _interopRequireDefault(__webpack_require__(/*! ./libs/function/random.js */ 52));
  8989. var _trim = _interopRequireDefault(__webpack_require__(/*! ./libs/function/trim.js */ 53));
  8990. var _toast = _interopRequireDefault(__webpack_require__(/*! ./libs/function/toast.js */ 54));
  8991. var _getParent = _interopRequireDefault(__webpack_require__(/*! ./libs/function/getParent.js */ 55));
  8992. var _$parent = _interopRequireDefault(__webpack_require__(/*! ./libs/function/$parent.js */ 56));
  8993. var _sys = __webpack_require__(/*! ./libs/function/sys.js */ 57);
  8994. var _debounce = _interopRequireDefault(__webpack_require__(/*! ./libs/function/debounce.js */ 58));
  8995. var _throttle = _interopRequireDefault(__webpack_require__(/*! ./libs/function/throttle.js */ 59));
  8996. var _config = _interopRequireDefault(__webpack_require__(/*! ./libs/config/config.js */ 60));
  8997. var _zIndex = _interopRequireDefault(__webpack_require__(/*! ./libs/config/zIndex.js */ 61));
  8998. // 引入全局mixin
  8999. // 引入关于是否mixin集成小程序分享的配置
  9000. // import wxshare from './libs/mixin/mpShare.js'
  9001. // 全局挂载引入http相关请求拦截插件
  9002. function wranning(str) {
  9003. // 开发环境进行信息输出,主要是一些报错信息
  9004. // 这个环境的来由是在程序编写时候,点击hx编辑器运行调试代码的时候,详见:
  9005. // https://uniapp.dcloud.io/frame?id=%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83%e5%92%8c%e7%94%9f%e4%ba%a7%e7%8e%af%e5%a2%83
  9006. if (true) {
  9007. console.warn(str);
  9008. }
  9009. }
  9010. // 尝试判断在根目录的/store中是否有$u.mixin.js,此文件uView默认为需要挂在到全局的vuex的state变量
  9011. // HX2.6.11版本,放到try中,控制台依然会警告,暂时不用此方式,
  9012. // let vuexStore = {};
  9013. // try {
  9014. // vuexStore = require("@/store/$u.mixin.js");
  9015. // } catch (e) {
  9016. // //TODO handle the exception
  9017. // }
  9018. // post类型对象参数转为get类型url参数
  9019. var $u = {
  9020. queryParams: _queryParams.default,
  9021. route: _route.default,
  9022. timeFormat: _timeFormat.default,
  9023. date: _timeFormat.default,
  9024. // 另名date
  9025. timeFrom: _timeFrom.default,
  9026. colorGradient: _colorGradient.default.colorGradient,
  9027. colorToRgba: _colorGradient.default.colorToRgba,
  9028. guid: _guid.default,
  9029. color: _color.default,
  9030. sys: _sys.sys,
  9031. os: _sys.os,
  9032. type2icon: _type2icon.default,
  9033. randomArray: _randomArray.default,
  9034. wranning: wranning,
  9035. get: _request.default.get,
  9036. post: _request.default.post,
  9037. put: _request.default.put,
  9038. 'delete': _request.default.delete,
  9039. hexToRgb: _colorGradient.default.hexToRgb,
  9040. rgbToHex: _colorGradient.default.rgbToHex,
  9041. test: _test.default,
  9042. random: _random.default,
  9043. deepClone: _deepClone.default,
  9044. deepMerge: _deepMerge.default,
  9045. getParent: _getParent.default,
  9046. $parent: _$parent.default,
  9047. addUnit: _addUnit.default,
  9048. trim: _trim.default,
  9049. type: ['primary', 'success', 'error', 'warning', 'info'],
  9050. http: _request.default,
  9051. toast: _toast.default,
  9052. config: _config.default,
  9053. // uView配置信息相关,比如版本号
  9054. zIndex: _zIndex.default,
  9055. debounce: _debounce.default,
  9056. throttle: _throttle.default
  9057. };
  9058. // $u挂载到uni对象上
  9059. uni.$u = $u;
  9060. var install = function install(Vue) {
  9061. Vue.mixin(_mixin.default);
  9062. if (Vue.prototype.openShare) {
  9063. Vue.mixin(mpShare);
  9064. }
  9065. // Vue.mixin(vuexStore);
  9066. // 时间格式化,同时两个名称,date和timeFormat
  9067. Vue.filter('timeFormat', function (timestamp, format) {
  9068. return (0, _timeFormat.default)(timestamp, format);
  9069. });
  9070. Vue.filter('date', function (timestamp, format) {
  9071. return (0, _timeFormat.default)(timestamp, format);
  9072. });
  9073. // 将多久以前的方法,注入到全局过滤器
  9074. Vue.filter('timeFrom', function (timestamp, format) {
  9075. return (0, _timeFrom.default)(timestamp, format);
  9076. });
  9077. Vue.prototype.$u = $u;
  9078. };
  9079. var _default = {
  9080. install: install
  9081. };
  9082. exports.default = _default;
  9083. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9084. /***/ }),
  9085. /***/ 34:
  9086. /*!****************************************************!*\
  9087. !*** E:/书嗨项目/book-hi/uview-ui/libs/mixin/mixin.js ***!
  9088. \****************************************************/
  9089. /*! no static exports found */
  9090. /***/ (function(module, exports, __webpack_require__) {
  9091. /* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
  9092. data: function data() {
  9093. return {};
  9094. },
  9095. onLoad: function onLoad() {
  9096. // getRect挂载到$u上,因为这方法需要使用in(this),所以无法把它独立成一个单独的文件导出
  9097. this.$u.getRect = this.$uGetRect;
  9098. },
  9099. methods: {
  9100. // 查询节点信息
  9101. // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
  9102. // 解决办法为在组件根部再套一个没有任何作用的view元素
  9103. $uGetRect: function $uGetRect(selector, all) {
  9104. var _this = this;
  9105. return new Promise(function (resolve) {
  9106. uni.createSelectorQuery().in(_this)[all ? 'selectAll' : 'select'](selector).boundingClientRect(function (rect) {
  9107. if (all && Array.isArray(rect) && rect.length) {
  9108. resolve(rect);
  9109. }
  9110. if (!all && rect) {
  9111. resolve(rect);
  9112. }
  9113. }).exec();
  9114. });
  9115. },
  9116. getParentData: function getParentData() {
  9117. var _this2 = this;
  9118. var parentName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  9119. // 避免在created中去定义parent变量
  9120. if (!this.parent) this.parent = false;
  9121. // 这里的本质原理是,通过获取父组件实例(也即u-radio-group的this)
  9122. // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
  9123. // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
  9124. this.parent = this.$u.$parent.call(this, parentName);
  9125. if (this.parent) {
  9126. // 历遍parentData中的属性,将parent中的同名属性赋值给parentData
  9127. Object.keys(this.parentData).map(function (key) {
  9128. _this2.parentData[key] = _this2.parent[key];
  9129. });
  9130. }
  9131. },
  9132. // 阻止事件冒泡
  9133. preventEvent: function preventEvent(e) {
  9134. e && e.stopPropagation && e.stopPropagation();
  9135. }
  9136. },
  9137. onReachBottom: function onReachBottom() {
  9138. uni.$emit('uOnReachBottom');
  9139. },
  9140. beforeDestroy: function beforeDestroy() {
  9141. var _this3 = this;
  9142. // 判断当前页面是否存在parent和chldren,一般在checkbox和checkbox-group父子联动的场景会有此情况
  9143. // 组件销毁时,移除子组件在父组件children数组中的实例,释放资源,避免数据混乱
  9144. if (this.parent && uni.$u.test.array(this.parent.children)) {
  9145. // 组件销毁时,移除父组件中的children数组中对应的实例
  9146. var childrenList = this.parent.children;
  9147. childrenList.map(function (child, index) {
  9148. // 如果相等,则移除
  9149. if (child === _this3) {
  9150. childrenList.splice(index, 1);
  9151. }
  9152. });
  9153. }
  9154. }
  9155. };
  9156. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9157. /***/ }),
  9158. /***/ 35:
  9159. /*!******************************************************!*\
  9160. !*** E:/书嗨项目/book-hi/uview-ui/libs/request/index.js ***!
  9161. \******************************************************/
  9162. /*! no static exports found */
  9163. /***/ (function(module, exports, __webpack_require__) {
  9164. "use strict";
  9165. /* WEBPACK VAR INJECTION */(function(uni) {
  9166. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9167. Object.defineProperty(exports, "__esModule", {
  9168. value: true
  9169. });
  9170. exports.default = void 0;
  9171. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  9172. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  9173. var _deepMerge = _interopRequireDefault(__webpack_require__(/*! ../function/deepMerge */ 36));
  9174. var _test = _interopRequireDefault(__webpack_require__(/*! ../function/test */ 38));
  9175. var Request = /*#__PURE__*/function () {
  9176. function Request() {
  9177. var _this = this;
  9178. (0, _classCallCheck2.default)(this, Request);
  9179. this.config = {
  9180. baseUrl: '',
  9181. // 请求的根域名
  9182. // 默认的请求头
  9183. header: {},
  9184. method: 'POST',
  9185. // 设置为json,返回后uni.request会对数据进行一次JSON.parse
  9186. dataType: 'json',
  9187. // 此参数无需处理,因为5+和支付宝小程序不支持,默认为text即可
  9188. responseType: 'text',
  9189. showLoading: true,
  9190. // 是否显示请求中的loading
  9191. loadingText: '请求中...',
  9192. loadingTime: 800,
  9193. // 在此时间内,请求还没回来的话,就显示加载中动画,单位ms
  9194. timer: null,
  9195. // 定时器
  9196. originalData: false,
  9197. // 是否在拦截器中返回服务端的原始数据,见文档说明
  9198. loadingMask: true // 展示loading的时候,是否给一个透明的蒙层,防止触摸穿透
  9199. };
  9200. // 拦截器
  9201. this.interceptor = {
  9202. // 请求前的拦截
  9203. request: null,
  9204. // 请求后的拦截
  9205. response: null
  9206. };
  9207. // get请求
  9208. this.get = function (url) {
  9209. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9210. var header = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9211. return _this.request({
  9212. method: 'GET',
  9213. url: url,
  9214. header: header,
  9215. data: data
  9216. });
  9217. };
  9218. // post请求
  9219. this.post = function (url) {
  9220. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9221. var header = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9222. return _this.request({
  9223. url: url,
  9224. method: 'POST',
  9225. header: header,
  9226. data: data
  9227. });
  9228. };
  9229. // put请求,不支持支付宝小程序(HX2.6.15)
  9230. this.put = function (url) {
  9231. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9232. var header = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9233. return _this.request({
  9234. url: url,
  9235. method: 'PUT',
  9236. header: header,
  9237. data: data
  9238. });
  9239. };
  9240. // delete请求,不支持支付宝和头条小程序(HX2.6.15)
  9241. this.delete = function (url) {
  9242. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9243. var header = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9244. return _this.request({
  9245. url: url,
  9246. method: 'DELETE',
  9247. header: header,
  9248. data: data
  9249. });
  9250. };
  9251. }
  9252. (0, _createClass2.default)(Request, [{
  9253. key: "setConfig",
  9254. value:
  9255. // 设置全局默认配置
  9256. function setConfig(customConfig) {
  9257. // 深度合并对象,否则会造成对象深层属性丢失
  9258. this.config = (0, _deepMerge.default)(this.config, customConfig);
  9259. }
  9260. // 主要请求部分
  9261. }, {
  9262. key: "request",
  9263. value: function request() {
  9264. var _this2 = this;
  9265. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9266. // 检查请求拦截
  9267. if (this.interceptor.request && typeof this.interceptor.request === 'function') {
  9268. var tmpConfig = {};
  9269. var interceptorRequest = this.interceptor.request(options);
  9270. if (interceptorRequest === false) {
  9271. // 返回一个处于pending状态中的Promise,来取消原promise,避免进入then()回调
  9272. return new Promise(function () {});
  9273. }
  9274. this.options = interceptorRequest;
  9275. }
  9276. options.dataType = options.dataType || this.config.dataType;
  9277. options.responseType = options.responseType || this.config.responseType;
  9278. options.url = options.url || '';
  9279. options.params = options.params || {};
  9280. options.header = Object.assign({}, this.config.header, options.header);
  9281. options.method = options.method || this.config.method;
  9282. return new Promise(function (resolve, reject) {
  9283. options.complete = function (response) {
  9284. // 请求返回后,隐藏loading(如果请求返回快的话,可能会没有loading)
  9285. uni.hideLoading();
  9286. // 清除定时器,如果请求回来了,就无需loading
  9287. clearTimeout(_this2.config.timer);
  9288. _this2.config.timer = null;
  9289. // 判断用户对拦截返回数据的要求,如果originalData为true,返回所有的数据(response)到拦截器,否则只返回response.data
  9290. if (_this2.config.originalData) {
  9291. // 判断是否存在拦截器
  9292. if (_this2.interceptor.response && typeof _this2.interceptor.response === 'function') {
  9293. var resInterceptors = _this2.interceptor.response(response);
  9294. // 如果拦截器不返回false,就将拦截器返回的内容给this.$u.post的then回调
  9295. if (resInterceptors !== false) {
  9296. resolve(resInterceptors);
  9297. } else {
  9298. // 如果拦截器返回false,意味着拦截器定义者认为返回有问题,直接接入catch回调
  9299. reject(response);
  9300. }
  9301. } else {
  9302. // 如果要求返回原始数据,就算没有拦截器,也返回最原始的数据
  9303. resolve(response);
  9304. }
  9305. } else {
  9306. if (response.statusCode == 200) {
  9307. if (_this2.interceptor.response && typeof _this2.interceptor.response === 'function') {
  9308. var _resInterceptors = _this2.interceptor.response(response.data);
  9309. if (_resInterceptors !== false) {
  9310. resolve(_resInterceptors);
  9311. } else {
  9312. reject(response.data);
  9313. }
  9314. } else {
  9315. // 如果不是返回原始数据(originalData=false),且没有拦截器的情况下,返回纯数据给then回调
  9316. resolve(response.data);
  9317. }
  9318. } else {
  9319. // 不返回原始数据的情况下,服务器状态码不为200,modal弹框提示
  9320. // if(response.errMsg) {
  9321. // uni.showModal({
  9322. // title: response.errMsg
  9323. // });
  9324. // }
  9325. reject(response);
  9326. }
  9327. }
  9328. };
  9329. // 判断用户传递的URL是否/开头,如果不是,加上/,这里使用了uView的test.js验证库的url()方法
  9330. options.url = _test.default.url(options.url) ? options.url : _this2.config.baseUrl + (options.url.indexOf('/') == 0 ? options.url : '/' + options.url);
  9331. // 是否显示loading
  9332. // 加一个是否已有timer定时器的判断,否则有两个同时请求的时候,后者会清除前者的定时器id
  9333. // 而没有清除前者的定时器,导致前者超时,一直显示loading
  9334. if (_this2.config.showLoading && !_this2.config.timer) {
  9335. _this2.config.timer = setTimeout(function () {
  9336. uni.showLoading({
  9337. title: _this2.config.loadingText,
  9338. mask: _this2.config.loadingMask
  9339. });
  9340. _this2.config.timer = null;
  9341. }, _this2.config.loadingTime);
  9342. }
  9343. uni.request(options);
  9344. });
  9345. // .catch(res => {
  9346. // // 如果返回reject(),不让其进入this.$u.post().then().catch()后面的catct()
  9347. // // 因为很多人都会忘了写后面的catch(),导致报错捕获不到catch
  9348. // return new Promise(()=>{});
  9349. // })
  9350. }
  9351. }]);
  9352. return Request;
  9353. }();
  9354. var _default = new Request();
  9355. exports.default = _default;
  9356. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9357. /***/ }),
  9358. /***/ 36:
  9359. /*!***********************************************************!*\
  9360. !*** E:/书嗨项目/book-hi/uview-ui/libs/function/deepMerge.js ***!
  9361. \***********************************************************/
  9362. /*! no static exports found */
  9363. /***/ (function(module, exports, __webpack_require__) {
  9364. "use strict";
  9365. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9366. Object.defineProperty(exports, "__esModule", {
  9367. value: true
  9368. });
  9369. exports.default = void 0;
  9370. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  9371. var _deepClone = _interopRequireDefault(__webpack_require__(/*! ./deepClone */ 37));
  9372. // JS对象深度合并
  9373. function deepMerge() {
  9374. var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9375. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9376. target = (0, _deepClone.default)(target);
  9377. if ((0, _typeof2.default)(target) !== 'object' || (0, _typeof2.default)(source) !== 'object') return false;
  9378. for (var prop in source) {
  9379. if (!source.hasOwnProperty(prop)) continue;
  9380. if (prop in target) {
  9381. if ((0, _typeof2.default)(target[prop]) !== 'object') {
  9382. target[prop] = source[prop];
  9383. } else {
  9384. if ((0, _typeof2.default)(source[prop]) !== 'object') {
  9385. target[prop] = source[prop];
  9386. } else {
  9387. if (target[prop].concat && source[prop].concat) {
  9388. target[prop] = target[prop].concat(source[prop]);
  9389. } else {
  9390. target[prop] = deepMerge(target[prop], source[prop]);
  9391. }
  9392. }
  9393. }
  9394. } else {
  9395. target[prop] = source[prop];
  9396. }
  9397. }
  9398. return target;
  9399. }
  9400. var _default = deepMerge;
  9401. exports.default = _default;
  9402. /***/ }),
  9403. /***/ 37:
  9404. /*!***********************************************************!*\
  9405. !*** E:/书嗨项目/book-hi/uview-ui/libs/function/deepClone.js ***!
  9406. \***********************************************************/
  9407. /*! no static exports found */
  9408. /***/ (function(module, exports, __webpack_require__) {
  9409. "use strict";
  9410. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9411. Object.defineProperty(exports, "__esModule", {
  9412. value: true
  9413. });
  9414. exports.default = void 0;
  9415. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  9416. // 判断arr是否为一个数组,返回一个bool值
  9417. function isArray(arr) {
  9418. return Object.prototype.toString.call(arr) === '[object Array]';
  9419. }
  9420. // 深度克隆
  9421. function deepClone(obj) {
  9422. // 对常见的“非”值,直接返回原来值
  9423. if ([null, undefined, NaN, false].includes(obj)) return obj;
  9424. if ((0, _typeof2.default)(obj) !== "object" && typeof obj !== 'function') {
  9425. //原始类型直接返回
  9426. return obj;
  9427. }
  9428. var o = isArray(obj) ? [] : {};
  9429. for (var i in obj) {
  9430. if (obj.hasOwnProperty(i)) {
  9431. o[i] = (0, _typeof2.default)(obj[i]) === "object" ? deepClone(obj[i]) : obj[i];
  9432. }
  9433. }
  9434. return o;
  9435. }
  9436. var _default = deepClone;
  9437. exports.default = _default;
  9438. /***/ }),
  9439. /***/ 38:
  9440. /*!******************************************************!*\
  9441. !*** E:/书嗨项目/book-hi/uview-ui/libs/function/test.js ***!
  9442. \******************************************************/
  9443. /*! no static exports found */
  9444. /***/ (function(module, exports, __webpack_require__) {
  9445. "use strict";
  9446. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9447. Object.defineProperty(exports, "__esModule", {
  9448. value: true
  9449. });
  9450. exports.default = void 0;
  9451. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  9452. /**
  9453. * 验证电子邮箱格式
  9454. */
  9455. function email(value) {
  9456. return /[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/.test(value);
  9457. }
  9458. /**
  9459. * 验证手机格式
  9460. */
  9461. function mobile(value) {
  9462. return /^1[3-9]\d{9}$/.test(value);
  9463. }
  9464. /**
  9465. * 验证URL格式
  9466. */
  9467. function url(value) {
  9468. return /http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w-.\/?%&=]*)?/.test(value);
  9469. }
  9470. /**
  9471. * 验证日期格式
  9472. */
  9473. function date(value) {
  9474. return !/Invalid|NaN/.test(new Date(value).toString());
  9475. }
  9476. /**
  9477. * 验证ISO类型的日期格式
  9478. */
  9479. function dateISO(value) {
  9480. return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
  9481. }
  9482. /**
  9483. * 验证十进制数字
  9484. */
  9485. function number(value) {
  9486. return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value);
  9487. }
  9488. /**
  9489. * 验证整数
  9490. */
  9491. function digits(value) {
  9492. return /^\d+$/.test(value);
  9493. }
  9494. /**
  9495. * 验证身份证号码
  9496. */
  9497. function idCard(value) {
  9498. 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);
  9499. }
  9500. /**
  9501. * 是否车牌号
  9502. */
  9503. function carNo(value) {
  9504. // 新能源车牌
  9505. var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
  9506. // 旧车牌
  9507. var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
  9508. if (value.length === 7) {
  9509. return creg.test(value);
  9510. } else if (value.length === 8) {
  9511. return xreg.test(value);
  9512. } else {
  9513. return false;
  9514. }
  9515. }
  9516. /**
  9517. * 金额,只允许2位小数
  9518. */
  9519. function amount(value) {
  9520. //金额,只允许保留两位小数
  9521. return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
  9522. }
  9523. /**
  9524. * 中文
  9525. */
  9526. function chinese(value) {
  9527. var reg = /^[\u4e00-\u9fa5]+$/gi;
  9528. return reg.test(value);
  9529. }
  9530. /**
  9531. * 只能输入字母
  9532. */
  9533. function letter(value) {
  9534. return /^[a-zA-Z]*$/.test(value);
  9535. }
  9536. /**
  9537. * 只能是字母或者数字
  9538. */
  9539. function enOrNum(value) {
  9540. //英文或者数字
  9541. var reg = /^[0-9a-zA-Z]*$/g;
  9542. return reg.test(value);
  9543. }
  9544. /**
  9545. * 验证是否包含某个值
  9546. */
  9547. function contains(value, param) {
  9548. return value.indexOf(param) >= 0;
  9549. }
  9550. /**
  9551. * 验证一个值范围[min, max]
  9552. */
  9553. function range(value, param) {
  9554. return value >= param[0] && value <= param[1];
  9555. }
  9556. /**
  9557. * 验证一个长度范围[min, max]
  9558. */
  9559. function rangeLength(value, param) {
  9560. return value.length >= param[0] && value.length <= param[1];
  9561. }
  9562. /**
  9563. * 是否固定电话
  9564. */
  9565. function landline(value) {
  9566. var reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
  9567. return reg.test(value);
  9568. }
  9569. /**
  9570. * 判断是否为空
  9571. */
  9572. function empty(value) {
  9573. switch ((0, _typeof2.default)(value)) {
  9574. case 'undefined':
  9575. return true;
  9576. case 'string':
  9577. if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true;
  9578. break;
  9579. case 'boolean':
  9580. if (!value) return true;
  9581. break;
  9582. case 'number':
  9583. if (0 === value || isNaN(value)) return true;
  9584. break;
  9585. case 'object':
  9586. if (null === value || value.length === 0) return true;
  9587. for (var i in value) {
  9588. return false;
  9589. }
  9590. return true;
  9591. }
  9592. return false;
  9593. }
  9594. /**
  9595. * 是否json字符串
  9596. */
  9597. function jsonString(value) {
  9598. if (typeof value == 'string') {
  9599. try {
  9600. var obj = JSON.parse(value);
  9601. if ((0, _typeof2.default)(obj) == 'object' && obj) {
  9602. return true;
  9603. } else {
  9604. return false;
  9605. }
  9606. } catch (e) {
  9607. return false;
  9608. }
  9609. }
  9610. return false;
  9611. }
  9612. /**
  9613. * 是否数组
  9614. */
  9615. function array(value) {
  9616. if (typeof Array.isArray === "function") {
  9617. return Array.isArray(value);
  9618. } else {
  9619. return Object.prototype.toString.call(value) === "[object Array]";
  9620. }
  9621. }
  9622. /**
  9623. * 是否对象
  9624. */
  9625. function object(value) {
  9626. return Object.prototype.toString.call(value) === '[object Object]';
  9627. }
  9628. /**
  9629. * 是否短信验证码
  9630. */
  9631. function code(value) {
  9632. var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  9633. return new RegExp("^\\d{".concat(len, "}$")).test(value);
  9634. }
  9635. var _default = {
  9636. email: email,
  9637. mobile: mobile,
  9638. url: url,
  9639. date: date,
  9640. dateISO: dateISO,
  9641. number: number,
  9642. digits: digits,
  9643. idCard: idCard,
  9644. carNo: carNo,
  9645. amount: amount,
  9646. chinese: chinese,
  9647. letter: letter,
  9648. enOrNum: enOrNum,
  9649. contains: contains,
  9650. range: range,
  9651. rangeLength: rangeLength,
  9652. empty: empty,
  9653. isEmpty: empty,
  9654. jsonString: jsonString,
  9655. landline: landline,
  9656. object: object,
  9657. array: array,
  9658. code: code
  9659. };
  9660. exports.default = _default;
  9661. /***/ }),
  9662. /***/ 39:
  9663. /*!*************************************************************!*\
  9664. !*** E:/书嗨项目/book-hi/uview-ui/libs/function/queryParams.js ***!
  9665. \*************************************************************/
  9666. /*! no static exports found */
  9667. /***/ (function(module, exports, __webpack_require__) {
  9668. "use strict";
  9669. Object.defineProperty(exports, "__esModule", {
  9670. value: true
  9671. });
  9672. exports.default = void 0;
  9673. /**
  9674. * 对象转url参数
  9675. * @param {*} data,对象
  9676. * @param {*} isPrefix,是否自动加上"?"
  9677. */
  9678. function queryParams() {
  9679. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9680. var isPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  9681. var arrayFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'brackets';
  9682. var prefix = isPrefix ? '?' : '';
  9683. var _result = [];
  9684. if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';
  9685. var _loop = function _loop(key) {
  9686. var value = data[key];
  9687. // 去掉为空的参数
  9688. if (['', undefined, null].indexOf(value) >= 0) {
  9689. return "continue";
  9690. }
  9691. // 如果值为数组,另行处理
  9692. if (value.constructor === Array) {
  9693. // e.g. {ids: [1, 2, 3]}
  9694. switch (arrayFormat) {
  9695. case 'indices':
  9696. // 结果: ids[0]=1&ids[1]=2&ids[2]=3
  9697. for (var i = 0; i < value.length; i++) {
  9698. _result.push(key + '[' + i + ']=' + value[i]);
  9699. }
  9700. break;
  9701. case 'brackets':
  9702. // 结果: ids[]=1&ids[]=2&ids[]=3
  9703. value.forEach(function (_value) {
  9704. _result.push(key + '[]=' + _value);
  9705. });
  9706. break;
  9707. case 'repeat':
  9708. // 结果: ids=1&ids=2&ids=3
  9709. value.forEach(function (_value) {
  9710. _result.push(key + '=' + _value);
  9711. });
  9712. break;
  9713. case 'comma':
  9714. // 结果: ids=1,2,3
  9715. var commaStr = "";
  9716. value.forEach(function (_value) {
  9717. commaStr += (commaStr ? "," : "") + _value;
  9718. });
  9719. _result.push(key + '=' + commaStr);
  9720. break;
  9721. default:
  9722. value.forEach(function (_value) {
  9723. _result.push(key + '[]=' + _value);
  9724. });
  9725. }
  9726. } else {
  9727. _result.push(key + '=' + value);
  9728. }
  9729. };
  9730. for (var key in data) {
  9731. var _ret = _loop(key);
  9732. if (_ret === "continue") continue;
  9733. }
  9734. return _result.length ? prefix + _result.join('&') : '';
  9735. }
  9736. var _default = queryParams;
  9737. exports.default = _default;
  9738. /***/ }),
  9739. /***/ 4:
  9740. /*!**********************************************************************!*\
  9741. !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  9742. \**********************************************************************/
  9743. /*! no static exports found */
  9744. /***/ (function(module, exports) {
  9745. function _interopRequireDefault(obj) {
  9746. return obj && obj.__esModule ? obj : {
  9747. "default": obj
  9748. };
  9749. }
  9750. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  9751. /***/ }),
  9752. /***/ 40:
  9753. /*!*******************************************************!*\
  9754. !*** E:/书嗨项目/book-hi/uview-ui/libs/function/route.js ***!
  9755. \*******************************************************/
  9756. /*! no static exports found */
  9757. /***/ (function(module, exports, __webpack_require__) {
  9758. "use strict";
  9759. /* WEBPACK VAR INJECTION */(function(uni) {
  9760. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9761. Object.defineProperty(exports, "__esModule", {
  9762. value: true
  9763. });
  9764. exports.default = void 0;
  9765. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 41));
  9766. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 43));
  9767. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  9768. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  9769. /**
  9770. * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
  9771. * 并且带有路由拦截功能
  9772. */
  9773. var Router = /*#__PURE__*/function () {
  9774. function Router() {
  9775. (0, _classCallCheck2.default)(this, Router);
  9776. // 原始属性定义
  9777. this.config = {
  9778. type: 'navigateTo',
  9779. url: '',
  9780. delta: 1,
  9781. // navigateBack页面后退时,回退的层数
  9782. params: {},
  9783. // 传递的参数
  9784. animationType: 'pop-in',
  9785. // 窗口动画,只在APP有效
  9786. animationDuration: 300,
  9787. // 窗口动画持续时间,单位毫秒,只在APP有效
  9788. intercept: false // 是否需要拦截
  9789. };
  9790. // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
  9791. // 这里在构造函数中进行this绑定
  9792. this.route = this.route.bind(this);
  9793. }
  9794. // 判断url前面是否有"/",如果没有则加上,否则无法跳转
  9795. (0, _createClass2.default)(Router, [{
  9796. key: "addRootPath",
  9797. value: function addRootPath(url) {
  9798. return url[0] === '/' ? url : "/".concat(url);
  9799. }
  9800. // 整合路由参数
  9801. }, {
  9802. key: "mixinParam",
  9803. value: function mixinParam(url, params) {
  9804. url = url && this.addRootPath(url);
  9805. // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
  9806. // 如果有url中有get参数,转换后无需带上"?"
  9807. var query = '';
  9808. if (/.*\/.*\?.*=.*/.test(url)) {
  9809. // object对象转为get类型的参数
  9810. query = uni.$u.queryParams(params, false);
  9811. // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
  9812. return url += "&" + query;
  9813. } else {
  9814. // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
  9815. query = uni.$u.queryParams(params);
  9816. return url += query;
  9817. }
  9818. }
  9819. // 对外的方法名称
  9820. }, {
  9821. key: "route",
  9822. value: function () {
  9823. var _route = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  9824. var options,
  9825. params,
  9826. mergeConfig,
  9827. isNext,
  9828. _args = arguments;
  9829. return _regenerator.default.wrap(function _callee$(_context) {
  9830. while (1) {
  9831. switch (_context.prev = _context.next) {
  9832. case 0:
  9833. options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
  9834. params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
  9835. // 合并用户的配置和内部的默认配置
  9836. mergeConfig = {};
  9837. if (typeof options === 'string') {
  9838. // 如果options为字符串,则为route(url, params)的形式
  9839. mergeConfig.url = this.mixinParam(options, params);
  9840. mergeConfig.type = 'navigateTo';
  9841. } else {
  9842. mergeConfig = uni.$u.deepClone(options, this.config);
  9843. // 否则正常使用mergeConfig中的url和params进行拼接
  9844. mergeConfig.url = this.mixinParam(options.url, options.params);
  9845. }
  9846. if (params.intercept) {
  9847. this.config.intercept = params.intercept;
  9848. }
  9849. // params参数也带给拦截器
  9850. mergeConfig.params = params;
  9851. // 合并内外部参数
  9852. mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
  9853. // 判断用户是否定义了拦截器
  9854. if (!(typeof uni.$u.routeIntercept === 'function')) {
  9855. _context.next = 14;
  9856. break;
  9857. }
  9858. _context.next = 10;
  9859. return new Promise(function (resolve, reject) {
  9860. uni.$u.routeIntercept(mergeConfig, resolve);
  9861. });
  9862. case 10:
  9863. isNext = _context.sent;
  9864. // 如果isNext为true,则执行路由跳转
  9865. isNext && this.openPage(mergeConfig);
  9866. _context.next = 15;
  9867. break;
  9868. case 14:
  9869. this.openPage(mergeConfig);
  9870. case 15:
  9871. case "end":
  9872. return _context.stop();
  9873. }
  9874. }
  9875. }, _callee, this);
  9876. }));
  9877. function route() {
  9878. return _route.apply(this, arguments);
  9879. }
  9880. return route;
  9881. }() // 执行路由跳转
  9882. }, {
  9883. key: "openPage",
  9884. value: function openPage(config) {
  9885. // 解构参数
  9886. var url = config.url,
  9887. type = config.type,
  9888. delta = config.delta,
  9889. animationType = config.animationType,
  9890. animationDuration = config.animationDuration;
  9891. if (config.type == 'navigateTo' || config.type == 'to') {
  9892. uni.navigateTo({
  9893. url: url,
  9894. animationType: animationType,
  9895. animationDuration: animationDuration
  9896. });
  9897. }
  9898. if (config.type == 'redirectTo' || config.type == 'redirect') {
  9899. uni.redirectTo({
  9900. url: url
  9901. });
  9902. }
  9903. if (config.type == 'switchTab' || config.type == 'tab') {
  9904. uni.switchTab({
  9905. url: url
  9906. });
  9907. }
  9908. if (config.type == 'reLaunch' || config.type == 'launch') {
  9909. uni.reLaunch({
  9910. url: url
  9911. });
  9912. }
  9913. if (config.type == 'navigateBack' || config.type == 'back') {
  9914. uni.navigateBack({
  9915. delta: delta
  9916. });
  9917. }
  9918. }
  9919. }]);
  9920. return Router;
  9921. }();
  9922. var _default = new Router().route;
  9923. exports.default = _default;
  9924. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9925. /***/ }),
  9926. /***/ 41:
  9927. /*!************************************************************************************************!*\
  9928. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  9929. \************************************************************************************************/
  9930. /*! no static exports found */
  9931. /***/ (function(module, exports, __webpack_require__) {
  9932. // TODO(Babel 8): Remove this file.
  9933. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 42)();
  9934. module.exports = runtime;
  9935. /***/ }),
  9936. /***/ 42:
  9937. /*!*******************************************************************!*\
  9938. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  9939. \*******************************************************************/
  9940. /*! no static exports found */
  9941. /***/ (function(module, exports, __webpack_require__) {
  9942. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  9943. function _regeneratorRuntime() {
  9944. "use strict";
  9945. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  9946. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  9947. return e;
  9948. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  9949. var t,
  9950. e = {},
  9951. r = Object.prototype,
  9952. n = r.hasOwnProperty,
  9953. o = Object.defineProperty || function (t, e, r) {
  9954. t[e] = r.value;
  9955. },
  9956. i = "function" == typeof Symbol ? Symbol : {},
  9957. a = i.iterator || "@@iterator",
  9958. c = i.asyncIterator || "@@asyncIterator",
  9959. u = i.toStringTag || "@@toStringTag";
  9960. function define(t, e, r) {
  9961. return Object.defineProperty(t, e, {
  9962. value: r,
  9963. enumerable: !0,
  9964. configurable: !0,
  9965. writable: !0
  9966. }), t[e];
  9967. }
  9968. try {
  9969. define({}, "");
  9970. } catch (t) {
  9971. define = function define(t, e, r) {
  9972. return t[e] = r;
  9973. };
  9974. }
  9975. function wrap(t, e, r, n) {
  9976. var i = e && e.prototype instanceof Generator ? e : Generator,
  9977. a = Object.create(i.prototype),
  9978. c = new Context(n || []);
  9979. return o(a, "_invoke", {
  9980. value: makeInvokeMethod(t, r, c)
  9981. }), a;
  9982. }
  9983. function tryCatch(t, e, r) {
  9984. try {
  9985. return {
  9986. type: "normal",
  9987. arg: t.call(e, r)
  9988. };
  9989. } catch (t) {
  9990. return {
  9991. type: "throw",
  9992. arg: t
  9993. };
  9994. }
  9995. }
  9996. e.wrap = wrap;
  9997. var h = "suspendedStart",
  9998. l = "suspendedYield",
  9999. f = "executing",
  10000. s = "completed",
  10001. y = {};
  10002. function Generator() {}
  10003. function GeneratorFunction() {}
  10004. function GeneratorFunctionPrototype() {}
  10005. var p = {};
  10006. define(p, a, function () {
  10007. return this;
  10008. });
  10009. var d = Object.getPrototypeOf,
  10010. v = d && d(d(values([])));
  10011. v && v !== r && n.call(v, a) && (p = v);
  10012. var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
  10013. function defineIteratorMethods(t) {
  10014. ["next", "throw", "return"].forEach(function (e) {
  10015. define(t, e, function (t) {
  10016. return this._invoke(e, t);
  10017. });
  10018. });
  10019. }
  10020. function AsyncIterator(t, e) {
  10021. function invoke(r, o, i, a) {
  10022. var c = tryCatch(t[r], t, o);
  10023. if ("throw" !== c.type) {
  10024. var u = c.arg,
  10025. h = u.value;
  10026. return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
  10027. invoke("next", t, i, a);
  10028. }, function (t) {
  10029. invoke("throw", t, i, a);
  10030. }) : e.resolve(h).then(function (t) {
  10031. u.value = t, i(u);
  10032. }, function (t) {
  10033. return invoke("throw", t, i, a);
  10034. });
  10035. }
  10036. a(c.arg);
  10037. }
  10038. var r;
  10039. o(this, "_invoke", {
  10040. value: function value(t, n) {
  10041. function callInvokeWithMethodAndArg() {
  10042. return new e(function (e, r) {
  10043. invoke(t, n, e, r);
  10044. });
  10045. }
  10046. return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  10047. }
  10048. });
  10049. }
  10050. function makeInvokeMethod(e, r, n) {
  10051. var o = h;
  10052. return function (i, a) {
  10053. if (o === f) throw Error("Generator is already running");
  10054. if (o === s) {
  10055. if ("throw" === i) throw a;
  10056. return {
  10057. value: t,
  10058. done: !0
  10059. };
  10060. }
  10061. for (n.method = i, n.arg = a;;) {
  10062. var c = n.delegate;
  10063. if (c) {
  10064. var u = maybeInvokeDelegate(c, n);
  10065. if (u) {
  10066. if (u === y) continue;
  10067. return u;
  10068. }
  10069. }
  10070. if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
  10071. if (o === h) throw o = s, n.arg;
  10072. n.dispatchException(n.arg);
  10073. } else "return" === n.method && n.abrupt("return", n.arg);
  10074. o = f;
  10075. var p = tryCatch(e, r, n);
  10076. if ("normal" === p.type) {
  10077. if (o = n.done ? s : l, p.arg === y) continue;
  10078. return {
  10079. value: p.arg,
  10080. done: n.done
  10081. };
  10082. }
  10083. "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
  10084. }
  10085. };
  10086. }
  10087. function maybeInvokeDelegate(e, r) {
  10088. var n = r.method,
  10089. o = e.iterator[n];
  10090. 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;
  10091. var i = tryCatch(o, e.iterator, r.arg);
  10092. if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
  10093. var a = i.arg;
  10094. 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);
  10095. }
  10096. function pushTryEntry(t) {
  10097. var e = {
  10098. tryLoc: t[0]
  10099. };
  10100. 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
  10101. }
  10102. function resetTryEntry(t) {
  10103. var e = t.completion || {};
  10104. e.type = "normal", delete e.arg, t.completion = e;
  10105. }
  10106. function Context(t) {
  10107. this.tryEntries = [{
  10108. tryLoc: "root"
  10109. }], t.forEach(pushTryEntry, this), this.reset(!0);
  10110. }
  10111. function values(e) {
  10112. if (e || "" === e) {
  10113. var r = e[a];
  10114. if (r) return r.call(e);
  10115. if ("function" == typeof e.next) return e;
  10116. if (!isNaN(e.length)) {
  10117. var o = -1,
  10118. i = function next() {
  10119. for (; ++o < e.length;) {
  10120. if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
  10121. }
  10122. return next.value = t, next.done = !0, next;
  10123. };
  10124. return i.next = i;
  10125. }
  10126. }
  10127. throw new TypeError(_typeof(e) + " is not iterable");
  10128. }
  10129. return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
  10130. value: GeneratorFunctionPrototype,
  10131. configurable: !0
  10132. }), o(GeneratorFunctionPrototype, "constructor", {
  10133. value: GeneratorFunction,
  10134. configurable: !0
  10135. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
  10136. var e = "function" == typeof t && t.constructor;
  10137. return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
  10138. }, e.mark = function (t) {
  10139. return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
  10140. }, e.awrap = function (t) {
  10141. return {
  10142. __await: t
  10143. };
  10144. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
  10145. return this;
  10146. }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
  10147. void 0 === i && (i = Promise);
  10148. var a = new AsyncIterator(wrap(t, r, n, o), i);
  10149. return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
  10150. return t.done ? t.value : a.next();
  10151. });
  10152. }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
  10153. return this;
  10154. }), define(g, "toString", function () {
  10155. return "[object Generator]";
  10156. }), e.keys = function (t) {
  10157. var e = Object(t),
  10158. r = [];
  10159. for (var n in e) {
  10160. r.push(n);
  10161. }
  10162. return r.reverse(), function next() {
  10163. for (; r.length;) {
  10164. var t = r.pop();
  10165. if (t in e) return next.value = t, next.done = !1, next;
  10166. }
  10167. return next.done = !0, next;
  10168. };
  10169. }, e.values = values, Context.prototype = {
  10170. constructor: Context,
  10171. reset: function reset(e) {
  10172. 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) {
  10173. "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
  10174. }
  10175. },
  10176. stop: function stop() {
  10177. this.done = !0;
  10178. var t = this.tryEntries[0].completion;
  10179. if ("throw" === t.type) throw t.arg;
  10180. return this.rval;
  10181. },
  10182. dispatchException: function dispatchException(e) {
  10183. if (this.done) throw e;
  10184. var r = this;
  10185. function handle(n, o) {
  10186. return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
  10187. }
  10188. for (var o = this.tryEntries.length - 1; o >= 0; --o) {
  10189. var i = this.tryEntries[o],
  10190. a = i.completion;
  10191. if ("root" === i.tryLoc) return handle("end");
  10192. if (i.tryLoc <= this.prev) {
  10193. var c = n.call(i, "catchLoc"),
  10194. u = n.call(i, "finallyLoc");
  10195. if (c && u) {
  10196. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  10197. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  10198. } else if (c) {
  10199. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  10200. } else {
  10201. if (!u) throw Error("try statement without catch or finally");
  10202. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  10203. }
  10204. }
  10205. }
  10206. },
  10207. abrupt: function abrupt(t, e) {
  10208. for (var r = this.tryEntries.length - 1; r >= 0; --r) {
  10209. var o = this.tryEntries[r];
  10210. if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
  10211. var i = o;
  10212. break;
  10213. }
  10214. }
  10215. i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
  10216. var a = i ? i.completion : {};
  10217. return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
  10218. },
  10219. complete: function complete(t, e) {
  10220. if ("throw" === t.type) throw t.arg;
  10221. 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;
  10222. },
  10223. finish: function finish(t) {
  10224. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  10225. var r = this.tryEntries[e];
  10226. if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
  10227. }
  10228. },
  10229. "catch": function _catch(t) {
  10230. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  10231. var r = this.tryEntries[e];
  10232. if (r.tryLoc === t) {
  10233. var n = r.completion;
  10234. if ("throw" === n.type) {
  10235. var o = n.arg;
  10236. resetTryEntry(r);
  10237. }
  10238. return o;
  10239. }
  10240. }
  10241. throw Error("illegal catch attempt");
  10242. },
  10243. delegateYield: function delegateYield(e, r, n) {
  10244. return this.delegate = {
  10245. iterator: values(e),
  10246. resultName: r,
  10247. nextLoc: n
  10248. }, "next" === this.method && (this.arg = t), y;
  10249. }
  10250. }, e;
  10251. }
  10252. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  10253. /***/ }),
  10254. /***/ 43:
  10255. /*!*****************************************************************!*\
  10256. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  10257. \*****************************************************************/
  10258. /*! no static exports found */
  10259. /***/ (function(module, exports) {
  10260. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  10261. try {
  10262. var info = gen[key](arg);
  10263. var value = info.value;
  10264. } catch (error) {
  10265. reject(error);
  10266. return;
  10267. }
  10268. if (info.done) {
  10269. resolve(value);
  10270. } else {
  10271. Promise.resolve(value).then(_next, _throw);
  10272. }
  10273. }
  10274. function _asyncToGenerator(fn) {
  10275. return function () {
  10276. var self = this,
  10277. args = arguments;
  10278. return new Promise(function (resolve, reject) {
  10279. var gen = fn.apply(self, args);
  10280. function _next(value) {
  10281. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  10282. }
  10283. function _throw(err) {
  10284. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  10285. }
  10286. _next(undefined);
  10287. });
  10288. };
  10289. }
  10290. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  10291. /***/ }),
  10292. /***/ 44:
  10293. /*!************************************************************!*\
  10294. !*** E:/书嗨项目/book-hi/uview-ui/libs/function/timeFormat.js ***!
  10295. \************************************************************/
  10296. /*! no static exports found */
  10297. /***/ (function(module, exports, __webpack_require__) {
  10298. "use strict";
  10299. Object.defineProperty(exports, "__esModule", {
  10300. value: true
  10301. });
  10302. exports.default = void 0;
  10303. // padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
  10304. // 所以这里做一个兼容polyfill的兼容处理
  10305. if (!String.prototype.padStart) {
  10306. // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
  10307. String.prototype.padStart = function (maxLength) {
  10308. var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
  10309. if (Object.prototype.toString.call(fillString) !== "[object String]") throw new TypeError('fillString must be String');
  10310. var str = this;
  10311. // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
  10312. if (str.length >= maxLength) return String(str);
  10313. var fillLength = maxLength - str.length,
  10314. times = Math.ceil(fillLength / fillString.length);
  10315. while (times >>= 1) {
  10316. fillString += fillString;
  10317. if (times === 1) {
  10318. fillString += fillString;
  10319. }
  10320. }
  10321. return fillString.slice(0, fillLength) + str;
  10322. };
  10323. }
  10324. // 其他更多是格式化有如下:
  10325. // yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合
  10326. function timeFormat() {
  10327. var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  10328. var fmt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  10329. // 如果为null,则格式化当前时间
  10330. if (!dateTime) dateTime = Number(new Date());
  10331. // 如果dateTime长度为10或者13,则为秒和毫秒的时间戳,如果超过13位,则为其他的时间格式
  10332. if (dateTime.toString().length == 10) dateTime *= 1000;
  10333. var date = new Date(dateTime);
  10334. var ret;
  10335. var opt = {
  10336. "y+": date.getFullYear().toString(),
  10337. // 年
  10338. "m+": (date.getMonth() + 1).toString(),
  10339. // 月
  10340. "d+": date.getDate().toString(),
  10341. // 日
  10342. "h+": date.getHours().toString(),
  10343. // 时
  10344. "M+": date.getMinutes().toString(),
  10345. // 分
  10346. "s+": date.getSeconds().toString() // 秒
  10347. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  10348. };
  10349. for (var k in opt) {
  10350. ret = new RegExp("(" + k + ")").exec(fmt);
  10351. if (ret) {
  10352. fmt = fmt.replace(ret[1], ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, "0"));
  10353. }
  10354. ;
  10355. }
  10356. ;
  10357. return fmt;
  10358. }
  10359. var _default = timeFormat;
  10360. exports.default = _default;
  10361. /***/ }),
  10362. /***/ 45:
  10363. /*!**********************************************************!*\
  10364. !*** E:/书嗨项目/book-hi/uview-ui/libs/function/timeFrom.js ***!
  10365. \**********************************************************/
  10366. /*! no static exports found */
  10367. /***/ (function(module, exports, __webpack_require__) {
  10368. "use strict";
  10369. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10370. Object.defineProperty(exports, "__esModule", {
  10371. value: true
  10372. });
  10373. exports.default = void 0;
  10374. var _timeFormat = _interopRequireDefault(__webpack_require__(/*! ../../libs/function/timeFormat.js */ 44));
  10375. /**
  10376. * 时间戳转为多久之前
  10377. * @param String timestamp 时间戳
  10378. * @param String | Boolean format 如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
  10379. * 如果为布尔值false,无论什么时间,都返回多久以前的格式
  10380. */
  10381. function timeFrom() {
  10382. var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  10383. var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  10384. // 如果为null,则格式化当前时间
  10385. if (!dateTime) dateTime = Number(new Date());
  10386. // 如果dateTime长度为10或者13,则为秒和毫秒的时间戳,如果超过13位,则为其他的时间格式
  10387. if (dateTime.toString().length == 10) dateTime *= 1000;
  10388. var timestamp = +new Date(Number(dateTime));
  10389. var timer = (Number(new Date()) - timestamp) / 1000;
  10390. // 如果小于5分钟,则返回"刚刚",其他以此类推
  10391. var tips = '';
  10392. switch (true) {
  10393. case timer < 300:
  10394. tips = '刚刚';
  10395. break;
  10396. case timer >= 300 && timer < 3600:
  10397. tips = parseInt(timer / 60) + '分钟前';
  10398. break;
  10399. case timer >= 3600 && timer < 86400:
  10400. tips = parseInt(timer / 3600) + '小时前';
  10401. break;
  10402. case timer >= 86400 && timer < 2592000:
  10403. tips = parseInt(timer / 86400) + '天前';
  10404. break;
  10405. default:
  10406. // 如果format为false,则无论什么时间戳,都显示xx之前
  10407. if (format === false) {
  10408. if (timer >= 2592000 && timer < 365 * 86400) {
  10409. tips = parseInt(timer / (86400 * 30)) + '个月前';
  10410. } else {
  10411. tips = parseInt(timer / (86400 * 365)) + '年前';
  10412. }
  10413. } else {
  10414. tips = (0, _timeFormat.default)(timestamp, format);
  10415. }
  10416. }
  10417. return tips;
  10418. }
  10419. var _default = timeFrom;
  10420. exports.default = _default;
  10421. /***/ }),
  10422. /***/ 46:
  10423. /*!***************************************************************!*\
  10424. !*** E:/书嗨项目/book-hi/uview-ui/libs/function/colorGradient.js ***!
  10425. \***************************************************************/
  10426. /*! no static exports found */
  10427. /***/ (function(module, exports, __webpack_require__) {
  10428. "use strict";
  10429. Object.defineProperty(exports, "__esModule", {
  10430. value: true
  10431. });
  10432. exports.default = void 0;
  10433. /**
  10434. * 求两个颜色之间的渐变值
  10435. * @param {string} startColor 开始的颜色
  10436. * @param {string} endColor 结束的颜色
  10437. * @param {number} step 颜色等分的份额
  10438. * */
  10439. function colorGradient() {
  10440. var startColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'rgb(0, 0, 0)';
  10441. var endColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rgb(255, 255, 255)';
  10442. var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
  10443. var startRGB = hexToRgb(startColor, false); //转换为rgb数组模式
  10444. var startR = startRGB[0];
  10445. var startG = startRGB[1];
  10446. var startB = startRGB[2];
  10447. var endRGB = hexToRgb(endColor, false);
  10448. var endR = endRGB[0];
  10449. var endG = endRGB[1];
  10450. var endB = endRGB[2];
  10451. var sR = (endR - startR) / step; //总差值
  10452. var sG = (endG - startG) / step;
  10453. var sB = (endB - startB) / step;
  10454. var colorArr = [];
  10455. for (var i = 0; i < step; i++) {
  10456. //计算每一步的hex值
  10457. var hex = rgbToHex('rgb(' + Math.round(sR * i + startR) + ',' + Math.round(sG * i + startG) + ',' + Math.round(sB * i + startB) + ')');
  10458. colorArr.push(hex);
  10459. }
  10460. return colorArr;
  10461. }
  10462. // 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
  10463. function hexToRgb(sColor) {
  10464. var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  10465. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  10466. sColor = sColor.toLowerCase();
  10467. if (sColor && reg.test(sColor)) {
  10468. if (sColor.length === 4) {
  10469. var sColorNew = "#";
  10470. for (var i = 1; i < 4; i += 1) {
  10471. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  10472. }
  10473. sColor = sColorNew;
  10474. }
  10475. //处理六位的颜色值
  10476. var sColorChange = [];
  10477. for (var _i = 1; _i < 7; _i += 2) {
  10478. sColorChange.push(parseInt("0x" + sColor.slice(_i, _i + 2)));
  10479. }
  10480. if (!str) {
  10481. return sColorChange;
  10482. } else {
  10483. return "rgb(".concat(sColorChange[0], ",").concat(sColorChange[1], ",").concat(sColorChange[2], ")");
  10484. }
  10485. } else if (/^(rgb|RGB)/.test(sColor)) {
  10486. var arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, "").split(",");
  10487. return arr.map(function (val) {
  10488. return Number(val);
  10489. });
  10490. } else {
  10491. return sColor;
  10492. }
  10493. }
  10494. ;
  10495. // 将rgb表示方式转换为hex表示方式
  10496. function rgbToHex(rgb) {
  10497. var _this = rgb;
  10498. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  10499. if (/^(rgb|RGB)/.test(_this)) {
  10500. var aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, "").split(",");
  10501. var strHex = "#";
  10502. for (var i = 0; i < aColor.length; i++) {
  10503. var hex = Number(aColor[i]).toString(16);
  10504. hex = String(hex).length == 1 ? 0 + '' + hex : hex; // 保证每个rgb的值为2位
  10505. if (hex === "0") {
  10506. hex += hex;
  10507. }
  10508. strHex += hex;
  10509. }
  10510. if (strHex.length !== 7) {
  10511. strHex = _this;
  10512. }
  10513. return strHex;
  10514. } else if (reg.test(_this)) {
  10515. var aNum = _this.replace(/#/, "").split("");
  10516. if (aNum.length === 6) {
  10517. return _this;
  10518. } else if (aNum.length === 3) {
  10519. var numHex = "#";
  10520. for (var _i2 = 0; _i2 < aNum.length; _i2 += 1) {
  10521. numHex += aNum[_i2] + aNum[_i2];
  10522. }
  10523. return numHex;
  10524. }
  10525. } else {
  10526. return _this;
  10527. }
  10528. }
  10529. /**
  10530. * JS颜色十六进制转换为rgb或rgba,返回的格式为 rgba(255,255,255,0.5)字符串
  10531. * sHex为传入的十六进制的色值
  10532. * alpha为rgba的透明度
  10533. */
  10534. function colorToRgba(color) {
  10535. var alpha = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.3;
  10536. color = rgbToHex(color);
  10537. // 十六进制颜色值的正则表达式
  10538. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  10539. /* 16进制颜色转为RGB格式 */
  10540. var sColor = color.toLowerCase();
  10541. if (sColor && reg.test(sColor)) {
  10542. if (sColor.length === 4) {
  10543. var sColorNew = '#';
  10544. for (var i = 1; i < 4; i += 1) {
  10545. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  10546. }
  10547. sColor = sColorNew;
  10548. }
  10549. // 处理六位的颜色值
  10550. var sColorChange = [];
  10551. for (var _i3 = 1; _i3 < 7; _i3 += 2) {
  10552. sColorChange.push(parseInt('0x' + sColor.slice(_i3, _i3 + 2)));
  10553. }
  10554. // return sColorChange.join(',')
  10555. return 'rgba(' + sColorChange.join(',') + ',' + alpha + ')';
  10556. } else {
  10557. return sColor;
  10558. }
  10559. }
  10560. var _default = {
  10561. colorGradient: colorGradient,
  10562. hexToRgb: hexToRgb,
  10563. rgbToHex: rgbToHex,
  10564. colorToRgba: colorToRgba
  10565. };
  10566. exports.default = _default;
  10567. /***/ }),
  10568. /***/ 47:
  10569. /*!******************************************************!*\
  10570. !*** E:/书嗨项目/book-hi/uview-ui/libs/function/guid.js ***!
  10571. \******************************************************/
  10572. /*! no static exports found */
  10573. /***/ (function(module, exports, __webpack_require__) {
  10574. "use strict";
  10575. Object.defineProperty(exports, "__esModule", {
  10576. value: true
  10577. });
  10578. exports.default = void 0;
  10579. /**
  10580. * 本算法来源于简书开源代码,详见:https://www.jianshu.com/p/fdbf293d0a85
  10581. * 全局唯一标识符(uuid,Globally Unique Identifier),也称作 uuid(Universally Unique IDentifier)
  10582. * 一般用于多个组件之间,给它一个唯一的标识符,或者v-for循环的时候,如果使用数组的index可能会导致更新列表出现问题
  10583. * 最可能的情况是左滑删除item或者对某条信息流"不喜欢"并去掉它的时候,会导致组件内的数据可能出现错乱
  10584. * v-for的时候,推荐使用后端返回的id而不是循环的index
  10585. * @param {Number} len uuid的长度
  10586. * @param {Boolean} firstU 将返回的首字母置为"u"
  10587. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  10588. */
  10589. function guid() {
  10590. var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
  10591. var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  10592. var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  10593. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  10594. var uuid = [];
  10595. radix = radix || chars.length;
  10596. if (len) {
  10597. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  10598. for (var i = 0; i < len; i++) {
  10599. uuid[i] = chars[0 | Math.random() * radix];
  10600. }
  10601. } else {
  10602. var r;
  10603. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  10604. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  10605. uuid[14] = '4';
  10606. for (var _i = 0; _i < 36; _i++) {
  10607. if (!uuid[_i]) {
  10608. r = 0 | Math.random() * 16;
  10609. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  10610. }
  10611. }
  10612. }
  10613. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  10614. if (firstU) {
  10615. uuid.shift();
  10616. return 'u' + uuid.join('');
  10617. } else {
  10618. return uuid.join('');
  10619. }
  10620. }
  10621. var _default = guid;
  10622. exports.default = _default;
  10623. /***/ }),
  10624. /***/ 48:
  10625. /*!*******************************************************!*\
  10626. !*** E:/书嗨项目/book-hi/uview-ui/libs/function/color.js ***!
  10627. \*******************************************************/
  10628. /*! no static exports found */
  10629. /***/ (function(module, exports, __webpack_require__) {
  10630. "use strict";
  10631. Object.defineProperty(exports, "__esModule", {
  10632. value: true
  10633. });
  10634. exports.default = void 0;
  10635. // 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供
  10636. // 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)
  10637. var color = {
  10638. primary: "#2979ff",
  10639. primaryDark: "#2b85e4",
  10640. primaryDisabled: "#a0cfff",
  10641. primaryLight: "#ecf5ff",
  10642. bgColor: "#f3f4f6",
  10643. info: "#909399",
  10644. infoDark: "#82848a",
  10645. infoDisabled: "#c8c9cc",
  10646. infoLight: "#f4f4f5",
  10647. warning: "#ff9900",
  10648. warningDark: "#f29100",
  10649. warningDisabled: "#fcbd71",
  10650. warningLight: "#fdf6ec",
  10651. error: "#fa3534",
  10652. errorDark: "#dd6161",
  10653. errorDisabled: "#fab6b6",
  10654. errorLight: "#fef0f0",
  10655. success: "#19be6b",
  10656. successDark: "#18b566",
  10657. successDisabled: "#71d5a1",
  10658. successLight: "#dbf1e1",
  10659. mainColor: "#303133",
  10660. contentColor: "#606266",
  10661. tipsColor: "#909399",
  10662. lightColor: "#c0c4cc",
  10663. borderColor: "#e4e7ed"
  10664. };
  10665. var _default = color;
  10666. exports.default = _default;
  10667. /***/ }),
  10668. /***/ 49:
  10669. /*!***********************************************************!*\
  10670. !*** E:/书嗨项目/book-hi/uview-ui/libs/function/type2icon.js ***!
  10671. \***********************************************************/
  10672. /*! no static exports found */
  10673. /***/ (function(module, exports, __webpack_require__) {
  10674. "use strict";
  10675. Object.defineProperty(exports, "__esModule", {
  10676. value: true
  10677. });
  10678. exports.default = void 0;
  10679. /**
  10680. * 根据主题type值,获取对应的图标
  10681. * @param String type 主题名称,primary|info|error|warning|success
  10682. * @param String fill 是否使用fill填充实体的图标
  10683. */
  10684. function type2icon() {
  10685. var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';
  10686. var fill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  10687. // 如果非预置值,默认为success
  10688. if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success';
  10689. var iconName = '';
  10690. // 目前(2019-12-12),info和primary使用同一个图标
  10691. switch (type) {
  10692. case 'primary':
  10693. iconName = 'info-circle';
  10694. break;
  10695. case 'info':
  10696. iconName = 'info-circle';
  10697. break;
  10698. case 'error':
  10699. iconName = 'close-circle';
  10700. break;
  10701. case 'warning':
  10702. iconName = 'error-circle';
  10703. break;
  10704. case 'success':
  10705. iconName = 'checkmark-circle';
  10706. break;
  10707. default:
  10708. iconName = 'checkmark-circle';
  10709. }
  10710. // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的
  10711. if (fill) iconName += '-fill';
  10712. return iconName;
  10713. }
  10714. var _default = type2icon;
  10715. exports.default = _default;
  10716. /***/ }),
  10717. /***/ 5:
  10718. /*!**************************************************************!*\
  10719. !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  10720. \**************************************************************/
  10721. /*! no static exports found */
  10722. /***/ (function(module, exports, __webpack_require__) {
  10723. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  10724. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 7);
  10725. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  10726. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  10727. function _slicedToArray(arr, i) {
  10728. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
  10729. }
  10730. module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  10731. /***/ }),
  10732. /***/ 50:
  10733. /*!*************************************************************!*\
  10734. !*** E:/书嗨项目/book-hi/uview-ui/libs/function/randomArray.js ***!
  10735. \*************************************************************/
  10736. /*! no static exports found */
  10737. /***/ (function(module, exports, __webpack_require__) {
  10738. "use strict";
  10739. Object.defineProperty(exports, "__esModule", {
  10740. value: true
  10741. });
  10742. exports.default = void 0;
  10743. // 打乱数组
  10744. function randomArray() {
  10745. var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  10746. // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
  10747. return array.sort(function () {
  10748. return Math.random() - 0.5;
  10749. });
  10750. }
  10751. var _default = randomArray;
  10752. exports.default = _default;
  10753. /***/ }),
  10754. /***/ 51:
  10755. /*!*********************************************************!*\
  10756. !*** E:/书嗨项目/book-hi/uview-ui/libs/function/addUnit.js ***!
  10757. \*********************************************************/
  10758. /*! no static exports found */
  10759. /***/ (function(module, exports, __webpack_require__) {
  10760. "use strict";
  10761. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10762. Object.defineProperty(exports, "__esModule", {
  10763. value: true
  10764. });
  10765. exports.default = addUnit;
  10766. var _test = _interopRequireDefault(__webpack_require__(/*! ./test.js */ 38));
  10767. // 添加单位,如果有rpx,%,px等单位结尾或者值为auto,直接返回,否则加上rpx单位结尾
  10768. function addUnit() {
  10769. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'auto';
  10770. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rpx';
  10771. value = String(value);
  10772. // 用uView内置验证规则中的number判断是否为数值
  10773. return _test.default.number(value) ? "".concat(value).concat(unit) : value;
  10774. }
  10775. /***/ }),
  10776. /***/ 52:
  10777. /*!********************************************************!*\
  10778. !*** E:/书嗨项目/book-hi/uview-ui/libs/function/random.js ***!
  10779. \********************************************************/
  10780. /*! no static exports found */
  10781. /***/ (function(module, exports, __webpack_require__) {
  10782. "use strict";
  10783. Object.defineProperty(exports, "__esModule", {
  10784. value: true
  10785. });
  10786. exports.default = void 0;
  10787. function random(min, max) {
  10788. if (min >= 0 && max > 0 && max >= min) {
  10789. var gab = max - min + 1;
  10790. return Math.floor(Math.random() * gab + min);
  10791. } else {
  10792. return 0;
  10793. }
  10794. }
  10795. var _default = random;
  10796. exports.default = _default;
  10797. /***/ }),
  10798. /***/ 53:
  10799. /*!******************************************************!*\
  10800. !*** E:/书嗨项目/book-hi/uview-ui/libs/function/trim.js ***!
  10801. \******************************************************/
  10802. /*! no static exports found */
  10803. /***/ (function(module, exports, __webpack_require__) {
  10804. "use strict";
  10805. Object.defineProperty(exports, "__esModule", {
  10806. value: true
  10807. });
  10808. exports.default = void 0;
  10809. function trim(str) {
  10810. var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
  10811. if (pos == 'both') {
  10812. return str.replace(/^\s+|\s+$/g, "");
  10813. } else if (pos == "left") {
  10814. return str.replace(/^\s*/, '');
  10815. } else if (pos == 'right') {
  10816. return str.replace(/(\s*$)/g, "");
  10817. } else if (pos == 'all') {
  10818. return str.replace(/\s+/g, "");
  10819. } else {
  10820. return str;
  10821. }
  10822. }
  10823. var _default = trim;
  10824. exports.default = _default;
  10825. /***/ }),
  10826. /***/ 54:
  10827. /*!*******************************************************!*\
  10828. !*** E:/书嗨项目/book-hi/uview-ui/libs/function/toast.js ***!
  10829. \*******************************************************/
  10830. /*! no static exports found */
  10831. /***/ (function(module, exports, __webpack_require__) {
  10832. "use strict";
  10833. /* WEBPACK VAR INJECTION */(function(uni) {
  10834. Object.defineProperty(exports, "__esModule", {
  10835. value: true
  10836. });
  10837. exports.default = void 0;
  10838. function toast(title) {
  10839. var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1500;
  10840. uni.showToast({
  10841. title: title,
  10842. icon: 'none',
  10843. duration: duration
  10844. });
  10845. }
  10846. var _default = toast;
  10847. exports.default = _default;
  10848. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  10849. /***/ }),
  10850. /***/ 55:
  10851. /*!***********************************************************!*\
  10852. !*** E:/书嗨项目/book-hi/uview-ui/libs/function/getParent.js ***!
  10853. \***********************************************************/
  10854. /*! no static exports found */
  10855. /***/ (function(module, exports, __webpack_require__) {
  10856. "use strict";
  10857. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10858. Object.defineProperty(exports, "__esModule", {
  10859. value: true
  10860. });
  10861. exports.default = getParent;
  10862. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  10863. // 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  10864. // this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  10865. function getParent(name, keys) {
  10866. var parent = this.$parent;
  10867. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  10868. while (parent) {
  10869. // 父组件
  10870. if (parent.$options.name !== name) {
  10871. // 如果组件的name不相等,继续上一级寻找
  10872. parent = parent.$parent;
  10873. } else {
  10874. var _ret = function () {
  10875. var data = {};
  10876. // 判断keys是否数组,如果传过来的是一个数组,那么直接使用数组元素值当做键值去父组件寻找
  10877. if (Array.isArray(keys)) {
  10878. keys.map(function (val) {
  10879. data[val] = parent[val] ? parent[val] : '';
  10880. });
  10881. } else {
  10882. // 历遍传过来的对象参数
  10883. for (var i in keys) {
  10884. // 如果子组件有此值则用,无此值则用父组件的值
  10885. // 判断是否空数组,如果是,则用父组件的值,否则用子组件的值
  10886. if (Array.isArray(keys[i])) {
  10887. if (keys[i].length) {
  10888. data[i] = keys[i];
  10889. } else {
  10890. data[i] = parent[i];
  10891. }
  10892. } else if (keys[i].constructor === Object) {
  10893. // 判断是否对象,如果是对象,且有属性,那么使用子组件的值,否则使用父组件的值
  10894. if (Object.keys(keys[i]).length) {
  10895. data[i] = keys[i];
  10896. } else {
  10897. data[i] = parent[i];
  10898. }
  10899. } else {
  10900. // 只要子组件有传值,即使是false值,也是“传值”了,也需要覆盖父组件的同名参数
  10901. data[i] = keys[i] || keys[i] === false ? keys[i] : parent[i];
  10902. }
  10903. }
  10904. }
  10905. return {
  10906. v: data
  10907. };
  10908. }();
  10909. if ((0, _typeof2.default)(_ret) === "object") return _ret.v;
  10910. }
  10911. }
  10912. return {};
  10913. }
  10914. /***/ }),
  10915. /***/ 56:
  10916. /*!*********************************************************!*\
  10917. !*** E:/书嗨项目/book-hi/uview-ui/libs/function/$parent.js ***!
  10918. \*********************************************************/
  10919. /*! no static exports found */
  10920. /***/ (function(module, exports, __webpack_require__) {
  10921. "use strict";
  10922. Object.defineProperty(exports, "__esModule", {
  10923. value: true
  10924. });
  10925. exports.default = $parent;
  10926. // 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  10927. // this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  10928. // 这里默认值等于undefined有它的含义,因为最顶层元素(组件)的$parent就是undefined,意味着不传name
  10929. // 值(默认为undefined),就是查找最顶层的$parent
  10930. function $parent() {
  10931. var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  10932. var parent = this.$parent;
  10933. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  10934. while (parent) {
  10935. // 父组件
  10936. if (parent.$options && parent.$options.name !== name) {
  10937. // 如果组件的name不相等,继续上一级寻找
  10938. parent = parent.$parent;
  10939. } else {
  10940. return parent;
  10941. }
  10942. }
  10943. return false;
  10944. }
  10945. /***/ }),
  10946. /***/ 57:
  10947. /*!*****************************************************!*\
  10948. !*** E:/书嗨项目/book-hi/uview-ui/libs/function/sys.js ***!
  10949. \*****************************************************/
  10950. /*! no static exports found */
  10951. /***/ (function(module, exports, __webpack_require__) {
  10952. "use strict";
  10953. /* WEBPACK VAR INJECTION */(function(uni) {
  10954. Object.defineProperty(exports, "__esModule", {
  10955. value: true
  10956. });
  10957. exports.os = os;
  10958. exports.sys = sys;
  10959. function os() {
  10960. return uni.getSystemInfoSync().platform;
  10961. }
  10962. ;
  10963. function sys() {
  10964. return uni.getSystemInfoSync();
  10965. }
  10966. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  10967. /***/ }),
  10968. /***/ 58:
  10969. /*!**********************************************************!*\
  10970. !*** E:/书嗨项目/book-hi/uview-ui/libs/function/debounce.js ***!
  10971. \**********************************************************/
  10972. /*! no static exports found */
  10973. /***/ (function(module, exports, __webpack_require__) {
  10974. "use strict";
  10975. Object.defineProperty(exports, "__esModule", {
  10976. value: true
  10977. });
  10978. exports.default = void 0;
  10979. var timeout = null;
  10980. /**
  10981. * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
  10982. *
  10983. * @param {Function} func 要执行的回调函数
  10984. * @param {Number} wait 延时的时间
  10985. * @param {Boolean} immediate 是否立即执行
  10986. * @return null
  10987. */
  10988. function debounce(func) {
  10989. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  10990. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  10991. // 清除定时器
  10992. if (timeout !== null) clearTimeout(timeout);
  10993. // 立即执行,此类情况一般用不到
  10994. if (immediate) {
  10995. var callNow = !timeout;
  10996. timeout = setTimeout(function () {
  10997. timeout = null;
  10998. }, wait);
  10999. if (callNow) typeof func === 'function' && func();
  11000. } else {
  11001. // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
  11002. timeout = setTimeout(function () {
  11003. typeof func === 'function' && func();
  11004. }, wait);
  11005. }
  11006. }
  11007. var _default = debounce;
  11008. exports.default = _default;
  11009. /***/ }),
  11010. /***/ 59:
  11011. /*!**********************************************************!*\
  11012. !*** E:/书嗨项目/book-hi/uview-ui/libs/function/throttle.js ***!
  11013. \**********************************************************/
  11014. /*! no static exports found */
  11015. /***/ (function(module, exports, __webpack_require__) {
  11016. "use strict";
  11017. Object.defineProperty(exports, "__esModule", {
  11018. value: true
  11019. });
  11020. exports.default = void 0;
  11021. var timer, flag;
  11022. /**
  11023. * 节流原理:在一定时间内,只能触发一次
  11024. *
  11025. * @param {Function} func 要执行的回调函数
  11026. * @param {Number} wait 延时的时间
  11027. * @param {Boolean} immediate 是否立即执行
  11028. * @return null
  11029. */
  11030. function throttle(func) {
  11031. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  11032. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  11033. if (immediate) {
  11034. if (!flag) {
  11035. flag = true;
  11036. // 如果是立即执行,则在wait毫秒内开始时执行
  11037. typeof func === 'function' && func();
  11038. timer = setTimeout(function () {
  11039. flag = false;
  11040. }, wait);
  11041. }
  11042. } else {
  11043. if (!flag) {
  11044. flag = true;
  11045. // 如果是非立即执行,则在wait毫秒内的结束处执行
  11046. timer = setTimeout(function () {
  11047. flag = false;
  11048. typeof func === 'function' && func();
  11049. }, wait);
  11050. }
  11051. }
  11052. }
  11053. ;
  11054. var _default = throttle;
  11055. exports.default = _default;
  11056. /***/ }),
  11057. /***/ 6:
  11058. /*!***************************************************************!*\
  11059. !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  11060. \***************************************************************/
  11061. /*! no static exports found */
  11062. /***/ (function(module, exports) {
  11063. function _arrayWithHoles(arr) {
  11064. if (Array.isArray(arr)) return arr;
  11065. }
  11066. module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  11067. /***/ }),
  11068. /***/ 60:
  11069. /*!******************************************************!*\
  11070. !*** E:/书嗨项目/book-hi/uview-ui/libs/config/config.js ***!
  11071. \******************************************************/
  11072. /*! no static exports found */
  11073. /***/ (function(module, exports, __webpack_require__) {
  11074. "use strict";
  11075. Object.defineProperty(exports, "__esModule", {
  11076. value: true
  11077. });
  11078. exports.default = void 0;
  11079. // 此版本发布于2020-12-17
  11080. var version = '1.8.3';
  11081. var _default = {
  11082. v: version,
  11083. version: version,
  11084. // 主题名称
  11085. type: ['primary', 'success', 'info', 'error', 'warning']
  11086. };
  11087. exports.default = _default;
  11088. /***/ }),
  11089. /***/ 61:
  11090. /*!******************************************************!*\
  11091. !*** E:/书嗨项目/book-hi/uview-ui/libs/config/zIndex.js ***!
  11092. \******************************************************/
  11093. /*! no static exports found */
  11094. /***/ (function(module, exports, __webpack_require__) {
  11095. "use strict";
  11096. Object.defineProperty(exports, "__esModule", {
  11097. value: true
  11098. });
  11099. exports.default = void 0;
  11100. // uniapp在H5中各API的z-index值如下:
  11101. /**
  11102. * actionsheet: 999
  11103. * modal: 999
  11104. * navigate: 998
  11105. * tabbar: 998
  11106. * toast: 999
  11107. */
  11108. var _default = {
  11109. toast: 10090,
  11110. noNetwork: 10080,
  11111. // popup包含popup,actionsheet,keyboard,picker的值
  11112. popup: 10075,
  11113. mask: 10070,
  11114. navbar: 980,
  11115. topTips: 975,
  11116. sticky: 970,
  11117. indexListSticky: 965
  11118. };
  11119. exports.default = _default;
  11120. /***/ }),
  11121. /***/ 62:
  11122. /*!**********************************!*\
  11123. !*** E:/书嗨项目/book-hi/theme.scss ***!
  11124. \**********************************/
  11125. /*! no static exports found */
  11126. /***/ (function(module, exports, __webpack_require__) {
  11127. // extracted by mini-css-extract-plugin
  11128. module.exports = {"appThemeColor":"#22ac38","appThemeBgColor":"#ffffff","appThemeBgGrayColor":"#fafafa","appThemeBgGrayDeppColor":"#f8f8f8","appThemeSearchBgColor":"#F4F5F8","appThemeBorderColor":"#efefef","appThemeTextColor":"#333333","appThemeTextGrayColor":"#8f92a1","appThemeTextGrayLightColor":"#cccccc","appThemeTextGrayDeepColor":"#696969","appThemeTextWhiteColor":"#ffffff","appThemeTextBlackColor":"#171717","appThemeTextBlackDeepColor":"#16162e","appThemeTextMoneyColor":"#f00","appThemeTextGrayWhiteColor":"#c3c6cb","appThemeSkuGrayColor":"#f5f5f8","appThemeCardGrayColor":"#8f92a1","appThemeShopGrayColor":"#888e98","appThemePointsSignBgColor":"#f0f0f0","appThemePointsSignLabelColor":"#dfdfdf","appThemePointsSignValueColor":"#696969","appThemePointsSignYellowColor":"#f9a906","appThemePointsSignBlueColor":"#22ac38","appThemeNavbarTabColor":"#696969","appThemeNavbarTabColorActive":"#333333","appThemeShadow":"0px 2px 8px 0px rgba(27, 25, 86, 0.06)","appZIndexDeep":"0","appZIndexNormal":"19","appZIndexAbsolute":"99","appZIndexFixed":"199","appZIndexPage":"999","appThemeBuyBtnBgColor":"#ed3f14"};
  11129. if(false) { var cssReload; }
  11130. /***/ }),
  11131. /***/ 63:
  11132. /*!****************************************!*\
  11133. !*** E:/书嗨项目/book-hi/utils/replace.js ***!
  11134. \****************************************/
  11135. /*! no static exports found */
  11136. /***/ (function(module, exports, __webpack_require__) {
  11137. "use strict";
  11138. Object.defineProperty(exports, "__esModule", {
  11139. value: true
  11140. });
  11141. exports.replaceSale = void 0;
  11142. /**
  11143. * 常用正则表达式替换方法
  11144. *
  11145. * @replaceSale 月销量,超过一万的加上'w+'
  11146. */
  11147. // 月销量,超过一万的加上'w+'
  11148. var replaceSale = function replaceSale(sale) {
  11149. return sale > 10000 ? sale.replace(/\d{4}$/, 'w+') : sale;
  11150. };
  11151. exports.replaceSale = replaceSale;
  11152. /***/ }),
  11153. /***/ 64:
  11154. /*!*******************************************!*\
  11155. !*** E:/书嗨项目/book-hi/utils/uniapp-api.js ***!
  11156. \*******************************************/
  11157. /*! no static exports found */
  11158. /***/ (function(module, exports, __webpack_require__) {
  11159. "use strict";
  11160. /* WEBPACK VAR INJECTION */(function(uni) {
  11161. Object.defineProperty(exports, "__esModule", {
  11162. value: true
  11163. });
  11164. exports.copyByUniappApi = void 0;
  11165. /**
  11166. * 基于uniapp的api进行二次封装,便于全局管理
  11167. *
  11168. * @copyByUniappApi 全局复制到剪贴板方法
  11169. */
  11170. // 全局复制到剪贴板方法
  11171. var copyByUniappApi = function copyByUniappApi(data) {
  11172. var msg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '已复制到剪贴板';
  11173. console.log(".>>>>>复制", data, msg);
  11174. uni.setClipboardData({
  11175. data: data.toString(),
  11176. success: function success() {
  11177. uni.showToast({
  11178. title: msg,
  11179. icon: 'none'
  11180. });
  11181. },
  11182. fail: function fail(error) {
  11183. console.log('error', error);
  11184. }
  11185. });
  11186. };
  11187. exports.copyByUniappApi = copyByUniappApi;
  11188. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  11189. /***/ }),
  11190. /***/ 65:
  11191. /*!*******************************!*\
  11192. !*** E:/书嗨项目/book-hi/.env.js ***!
  11193. \*******************************/
  11194. /*! no static exports found */
  11195. /***/ (function(module, exports, __webpack_require__) {
  11196. "use strict";
  11197. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  11198. var _envDev = _interopRequireDefault(__webpack_require__(/*! ./.env.dev.js */ 66));
  11199. var _envProd = _interopRequireDefault(__webpack_require__(/*! ./.env.prod.js */ 67));
  11200. /* // 开发环境
  11201. const dev = {
  11202. "apiUrl":"https://erp.521word.com"
  11203. }
  11204. // 生产环境
  11205. const production= {
  11206. "apiUrl":"https://erp.521word.com"
  11207. } */
  11208. // 注意:这里的属性名要和上面package.json中定义的扩展节点编译名称相同
  11209. var ENV_CONFIG = {
  11210. dev: _envDev.default,
  11211. prod: _envProd.default
  11212. };
  11213. console.log(ENV_CONFIG);
  11214. module.exports = ENV_CONFIG;
  11215. /***/ }),
  11216. /***/ 650:
  11217. /*!*****************************************************!*\
  11218. !*** E:/书嗨项目/book-hi/uview-ui/libs/util/emitter.js ***!
  11219. \*****************************************************/
  11220. /*! no static exports found */
  11221. /***/ (function(module, exports, __webpack_require__) {
  11222. "use strict";
  11223. Object.defineProperty(exports, "__esModule", {
  11224. value: true
  11225. });
  11226. exports.default = void 0;
  11227. /**
  11228. * 递归使用 call 方式this指向
  11229. * @param componentName // 需要找的组件的名称
  11230. * @param eventName // 事件名称
  11231. * @param params // 需要传递的参数
  11232. */
  11233. function _broadcast(componentName, eventName, params) {
  11234. // 循环子节点找到名称一样的子节点 否则 递归 当前子节点
  11235. this.$children.map(function (child) {
  11236. if (componentName === child.$options.name) {
  11237. child.$emit.apply(child, [eventName].concat(params));
  11238. } else {
  11239. _broadcast.apply(child, [componentName, eventName].concat(params));
  11240. }
  11241. });
  11242. }
  11243. var _default = {
  11244. methods: {
  11245. /**
  11246. * 派发 (向上查找) (一个)
  11247. * @param componentName // 需要找的组件的名称
  11248. * @param eventName // 事件名称
  11249. * @param params // 需要传递的参数
  11250. */
  11251. dispatch: function dispatch(componentName, eventName, params) {
  11252. var parent = this.$parent || this.$root; //$parent 找到最近的父节点 $root 根节点
  11253. var name = parent.$options.name; // 获取当前组件实例的name
  11254. // 如果当前有节点 && 当前没名称 且 当前名称等于需要传进来的名称的时候就去查找当前的节点
  11255. // 循环出当前名称的一样的组件实例
  11256. while (parent && (!name || name !== componentName)) {
  11257. parent = parent.$parent;
  11258. if (parent) {
  11259. name = parent.$options.name;
  11260. }
  11261. }
  11262. // 有节点表示当前找到了name一样的实例
  11263. if (parent) {
  11264. parent.$emit.apply(parent, [eventName].concat(params));
  11265. }
  11266. },
  11267. /**
  11268. * 广播 (向下查找) (广播多个)
  11269. * @param componentName // 需要找的组件的名称
  11270. * @param eventName // 事件名称
  11271. * @param params // 需要传递的参数
  11272. */
  11273. broadcast: function broadcast(componentName, eventName, params) {
  11274. _broadcast.call(this, componentName, eventName, params);
  11275. }
  11276. }
  11277. };
  11278. exports.default = _default;
  11279. /***/ }),
  11280. /***/ 66:
  11281. /*!***********************************!*\
  11282. !*** E:/书嗨项目/book-hi/.env.dev.js ***!
  11283. \***********************************/
  11284. /*! no static exports found */
  11285. /***/ (function(module, exports, __webpack_require__) {
  11286. "use strict";
  11287. Object.defineProperty(exports, "__esModule", {
  11288. value: true
  11289. });
  11290. exports.default = void 0;
  11291. var _default = {
  11292. "NODE_ENV": 'development',
  11293. "apiUrl": "http://bk.shuhi.com",
  11294. "apiUrlPrefix": "/api"
  11295. };
  11296. exports.default = _default;
  11297. /***/ }),
  11298. /***/ 67:
  11299. /*!************************************!*\
  11300. !*** E:/书嗨项目/book-hi/.env.prod.js ***!
  11301. \************************************/
  11302. /*! no static exports found */
  11303. /***/ (function(module, exports, __webpack_require__) {
  11304. "use strict";
  11305. Object.defineProperty(exports, "__esModule", {
  11306. value: true
  11307. });
  11308. exports.default = void 0;
  11309. var _default = {
  11310. "NODE_ENV": 'production',
  11311. "apiUrl": "https://book.shuhi.com",
  11312. "apiUrlPrefix": "/api"
  11313. };
  11314. exports.default = _default;
  11315. /***/ }),
  11316. /***/ 68:
  11317. /*!**************************************!*\
  11318. !*** E:/书嗨项目/book-hi/store/index.js ***!
  11319. \**************************************/
  11320. /*! no static exports found */
  11321. /***/ (function(module, exports, __webpack_require__) {
  11322. "use strict";
  11323. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  11324. Object.defineProperty(exports, "__esModule", {
  11325. value: true
  11326. });
  11327. exports.default = void 0;
  11328. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  11329. var _vuex = _interopRequireDefault(__webpack_require__(/*! vuex */ 69));
  11330. var _user = _interopRequireDefault(__webpack_require__(/*! ./modules/user.js */ 70));
  11331. var _pub = _interopRequireDefault(__webpack_require__(/*! ./modules/pub.js */ 72));
  11332. _vue.default.use(_vuex.default);
  11333. var _default = new _vuex.default.Store({
  11334. modules: {
  11335. user: _user.default,
  11336. pub: _pub.default
  11337. }
  11338. });
  11339. exports.default = _default;
  11340. /***/ }),
  11341. /***/ 69:
  11342. /*!**************************************************************************************!*\
  11343. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vuex3/dist/vuex.common.js ***!
  11344. \**************************************************************************************/
  11345. /*! no static exports found */
  11346. /***/ (function(module, exports, __webpack_require__) {
  11347. "use strict";
  11348. /* WEBPACK VAR INJECTION */(function(global) {/*!
  11349. * vuex v3.6.2
  11350. * (c) 2021 Evan You
  11351. * @license MIT
  11352. */
  11353. function applyMixin (Vue) {
  11354. var version = Number(Vue.version.split('.')[0]);
  11355. if (version >= 2) {
  11356. Vue.mixin({ beforeCreate: vuexInit });
  11357. } else {
  11358. // override init and inject vuex init procedure
  11359. // for 1.x backwards compatibility.
  11360. var _init = Vue.prototype._init;
  11361. Vue.prototype._init = function (options) {
  11362. if ( options === void 0 ) options = {};
  11363. options.init = options.init
  11364. ? [vuexInit].concat(options.init)
  11365. : vuexInit;
  11366. _init.call(this, options);
  11367. };
  11368. }
  11369. /**
  11370. * Vuex init hook, injected into each instances init hooks list.
  11371. */
  11372. function vuexInit () {
  11373. var options = this.$options;
  11374. // store injection
  11375. if (options.store) {
  11376. this.$store = typeof options.store === 'function'
  11377. ? options.store()
  11378. : options.store;
  11379. } else if (options.parent && options.parent.$store) {
  11380. this.$store = options.parent.$store;
  11381. }
  11382. }
  11383. }
  11384. var target = typeof window !== 'undefined'
  11385. ? window
  11386. : typeof global !== 'undefined'
  11387. ? global
  11388. : {};
  11389. var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  11390. function devtoolPlugin (store) {
  11391. if (!devtoolHook) { return }
  11392. store._devtoolHook = devtoolHook;
  11393. devtoolHook.emit('vuex:init', store);
  11394. devtoolHook.on('vuex:travel-to-state', function (targetState) {
  11395. store.replaceState(targetState);
  11396. });
  11397. store.subscribe(function (mutation, state) {
  11398. devtoolHook.emit('vuex:mutation', mutation, state);
  11399. }, { prepend: true });
  11400. store.subscribeAction(function (action, state) {
  11401. devtoolHook.emit('vuex:action', action, state);
  11402. }, { prepend: true });
  11403. }
  11404. /**
  11405. * Get the first item that pass the test
  11406. * by second argument function
  11407. *
  11408. * @param {Array} list
  11409. * @param {Function} f
  11410. * @return {*}
  11411. */
  11412. function find (list, f) {
  11413. return list.filter(f)[0]
  11414. }
  11415. /**
  11416. * Deep copy the given object considering circular structure.
  11417. * This function caches all nested objects and its copies.
  11418. * If it detects circular structure, use cached copy to avoid infinite loop.
  11419. *
  11420. * @param {*} obj
  11421. * @param {Array<Object>} cache
  11422. * @return {*}
  11423. */
  11424. function deepCopy (obj, cache) {
  11425. if ( cache === void 0 ) cache = [];
  11426. // just return if obj is immutable value
  11427. if (obj === null || typeof obj !== 'object') {
  11428. return obj
  11429. }
  11430. // if obj is hit, it is in circular structure
  11431. var hit = find(cache, function (c) { return c.original === obj; });
  11432. if (hit) {
  11433. return hit.copy
  11434. }
  11435. var copy = Array.isArray(obj) ? [] : {};
  11436. // put the copy into cache at first
  11437. // because we want to refer it in recursive deepCopy
  11438. cache.push({
  11439. original: obj,
  11440. copy: copy
  11441. });
  11442. Object.keys(obj).forEach(function (key) {
  11443. copy[key] = deepCopy(obj[key], cache);
  11444. });
  11445. return copy
  11446. }
  11447. /**
  11448. * forEach for object
  11449. */
  11450. function forEachValue (obj, fn) {
  11451. Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
  11452. }
  11453. function isObject (obj) {
  11454. return obj !== null && typeof obj === 'object'
  11455. }
  11456. function isPromise (val) {
  11457. return val && typeof val.then === 'function'
  11458. }
  11459. function assert (condition, msg) {
  11460. if (!condition) { throw new Error(("[vuex] " + msg)) }
  11461. }
  11462. function partial (fn, arg) {
  11463. return function () {
  11464. return fn(arg)
  11465. }
  11466. }
  11467. // Base data struct for store's module, package with some attribute and method
  11468. var Module = function Module (rawModule, runtime) {
  11469. this.runtime = runtime;
  11470. // Store some children item
  11471. this._children = Object.create(null);
  11472. // Store the origin module object which passed by programmer
  11473. this._rawModule = rawModule;
  11474. var rawState = rawModule.state;
  11475. // Store the origin module's state
  11476. this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
  11477. };
  11478. var prototypeAccessors = { namespaced: { configurable: true } };
  11479. prototypeAccessors.namespaced.get = function () {
  11480. return !!this._rawModule.namespaced
  11481. };
  11482. Module.prototype.addChild = function addChild (key, module) {
  11483. this._children[key] = module;
  11484. };
  11485. Module.prototype.removeChild = function removeChild (key) {
  11486. delete this._children[key];
  11487. };
  11488. Module.prototype.getChild = function getChild (key) {
  11489. return this._children[key]
  11490. };
  11491. Module.prototype.hasChild = function hasChild (key) {
  11492. return key in this._children
  11493. };
  11494. Module.prototype.update = function update (rawModule) {
  11495. this._rawModule.namespaced = rawModule.namespaced;
  11496. if (rawModule.actions) {
  11497. this._rawModule.actions = rawModule.actions;
  11498. }
  11499. if (rawModule.mutations) {
  11500. this._rawModule.mutations = rawModule.mutations;
  11501. }
  11502. if (rawModule.getters) {
  11503. this._rawModule.getters = rawModule.getters;
  11504. }
  11505. };
  11506. Module.prototype.forEachChild = function forEachChild (fn) {
  11507. forEachValue(this._children, fn);
  11508. };
  11509. Module.prototype.forEachGetter = function forEachGetter (fn) {
  11510. if (this._rawModule.getters) {
  11511. forEachValue(this._rawModule.getters, fn);
  11512. }
  11513. };
  11514. Module.prototype.forEachAction = function forEachAction (fn) {
  11515. if (this._rawModule.actions) {
  11516. forEachValue(this._rawModule.actions, fn);
  11517. }
  11518. };
  11519. Module.prototype.forEachMutation = function forEachMutation (fn) {
  11520. if (this._rawModule.mutations) {
  11521. forEachValue(this._rawModule.mutations, fn);
  11522. }
  11523. };
  11524. Object.defineProperties( Module.prototype, prototypeAccessors );
  11525. var ModuleCollection = function ModuleCollection (rawRootModule) {
  11526. // register root module (Vuex.Store options)
  11527. this.register([], rawRootModule, false);
  11528. };
  11529. ModuleCollection.prototype.get = function get (path) {
  11530. return path.reduce(function (module, key) {
  11531. return module.getChild(key)
  11532. }, this.root)
  11533. };
  11534. ModuleCollection.prototype.getNamespace = function getNamespace (path) {
  11535. var module = this.root;
  11536. return path.reduce(function (namespace, key) {
  11537. module = module.getChild(key);
  11538. return namespace + (module.namespaced ? key + '/' : '')
  11539. }, '')
  11540. };
  11541. ModuleCollection.prototype.update = function update$1 (rawRootModule) {
  11542. update([], this.root, rawRootModule);
  11543. };
  11544. ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
  11545. var this$1 = this;
  11546. if ( runtime === void 0 ) runtime = true;
  11547. if ((true)) {
  11548. assertRawModule(path, rawModule);
  11549. }
  11550. var newModule = new Module(rawModule, runtime);
  11551. if (path.length === 0) {
  11552. this.root = newModule;
  11553. } else {
  11554. var parent = this.get(path.slice(0, -1));
  11555. parent.addChild(path[path.length - 1], newModule);
  11556. }
  11557. // register nested modules
  11558. if (rawModule.modules) {
  11559. forEachValue(rawModule.modules, function (rawChildModule, key) {
  11560. this$1.register(path.concat(key), rawChildModule, runtime);
  11561. });
  11562. }
  11563. };
  11564. ModuleCollection.prototype.unregister = function unregister (path) {
  11565. var parent = this.get(path.slice(0, -1));
  11566. var key = path[path.length - 1];
  11567. var child = parent.getChild(key);
  11568. if (!child) {
  11569. if ((true)) {
  11570. console.warn(
  11571. "[vuex] trying to unregister module '" + key + "', which is " +
  11572. "not registered"
  11573. );
  11574. }
  11575. return
  11576. }
  11577. if (!child.runtime) {
  11578. return
  11579. }
  11580. parent.removeChild(key);
  11581. };
  11582. ModuleCollection.prototype.isRegistered = function isRegistered (path) {
  11583. var parent = this.get(path.slice(0, -1));
  11584. var key = path[path.length - 1];
  11585. if (parent) {
  11586. return parent.hasChild(key)
  11587. }
  11588. return false
  11589. };
  11590. function update (path, targetModule, newModule) {
  11591. if ((true)) {
  11592. assertRawModule(path, newModule);
  11593. }
  11594. // update target module
  11595. targetModule.update(newModule);
  11596. // update nested modules
  11597. if (newModule.modules) {
  11598. for (var key in newModule.modules) {
  11599. if (!targetModule.getChild(key)) {
  11600. if ((true)) {
  11601. console.warn(
  11602. "[vuex] trying to add a new module '" + key + "' on hot reloading, " +
  11603. 'manual reload is needed'
  11604. );
  11605. }
  11606. return
  11607. }
  11608. update(
  11609. path.concat(key),
  11610. targetModule.getChild(key),
  11611. newModule.modules[key]
  11612. );
  11613. }
  11614. }
  11615. }
  11616. var functionAssert = {
  11617. assert: function (value) { return typeof value === 'function'; },
  11618. expected: 'function'
  11619. };
  11620. var objectAssert = {
  11621. assert: function (value) { return typeof value === 'function' ||
  11622. (typeof value === 'object' && typeof value.handler === 'function'); },
  11623. expected: 'function or object with "handler" function'
  11624. };
  11625. var assertTypes = {
  11626. getters: functionAssert,
  11627. mutations: functionAssert,
  11628. actions: objectAssert
  11629. };
  11630. function assertRawModule (path, rawModule) {
  11631. Object.keys(assertTypes).forEach(function (key) {
  11632. if (!rawModule[key]) { return }
  11633. var assertOptions = assertTypes[key];
  11634. forEachValue(rawModule[key], function (value, type) {
  11635. assert(
  11636. assertOptions.assert(value),
  11637. makeAssertionMessage(path, key, type, value, assertOptions.expected)
  11638. );
  11639. });
  11640. });
  11641. }
  11642. function makeAssertionMessage (path, key, type, value, expected) {
  11643. var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
  11644. if (path.length > 0) {
  11645. buf += " in module \"" + (path.join('.')) + "\"";
  11646. }
  11647. buf += " is " + (JSON.stringify(value)) + ".";
  11648. return buf
  11649. }
  11650. var Vue; // bind on install
  11651. var Store = function Store (options) {
  11652. var this$1 = this;
  11653. if ( options === void 0 ) options = {};
  11654. // Auto install if it is not done yet and `window` has `Vue`.
  11655. // To allow users to avoid auto-installation in some cases,
  11656. // this code should be placed here. See #731
  11657. if (!Vue && typeof window !== 'undefined' && window.Vue) {
  11658. install(window.Vue);
  11659. }
  11660. if ((true)) {
  11661. assert(Vue, "must call Vue.use(Vuex) before creating a store instance.");
  11662. assert(typeof Promise !== 'undefined', "vuex requires a Promise polyfill in this browser.");
  11663. assert(this instanceof Store, "store must be called with the new operator.");
  11664. }
  11665. var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
  11666. var strict = options.strict; if ( strict === void 0 ) strict = false;
  11667. // store internal state
  11668. this._committing = false;
  11669. this._actions = Object.create(null);
  11670. this._actionSubscribers = [];
  11671. this._mutations = Object.create(null);
  11672. this._wrappedGetters = Object.create(null);
  11673. this._modules = new ModuleCollection(options);
  11674. this._modulesNamespaceMap = Object.create(null);
  11675. this._subscribers = [];
  11676. this._watcherVM = new Vue();
  11677. this._makeLocalGettersCache = Object.create(null);
  11678. // bind commit and dispatch to self
  11679. var store = this;
  11680. var ref = this;
  11681. var dispatch = ref.dispatch;
  11682. var commit = ref.commit;
  11683. this.dispatch = function boundDispatch (type, payload) {
  11684. return dispatch.call(store, type, payload)
  11685. };
  11686. this.commit = function boundCommit (type, payload, options) {
  11687. return commit.call(store, type, payload, options)
  11688. };
  11689. // strict mode
  11690. this.strict = strict;
  11691. var state = this._modules.root.state;
  11692. // init root module.
  11693. // this also recursively registers all sub-modules
  11694. // and collects all module getters inside this._wrappedGetters
  11695. installModule(this, state, [], this._modules.root);
  11696. // initialize the store vm, which is responsible for the reactivity
  11697. // (also registers _wrappedGetters as computed properties)
  11698. resetStoreVM(this, state);
  11699. // apply plugins
  11700. plugins.forEach(function (plugin) { return plugin(this$1); });
  11701. var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
  11702. if (useDevtools) {
  11703. devtoolPlugin(this);
  11704. }
  11705. };
  11706. var prototypeAccessors$1 = { state: { configurable: true } };
  11707. prototypeAccessors$1.state.get = function () {
  11708. return this._vm._data.$$state
  11709. };
  11710. prototypeAccessors$1.state.set = function (v) {
  11711. if ((true)) {
  11712. assert(false, "use store.replaceState() to explicit replace store state.");
  11713. }
  11714. };
  11715. Store.prototype.commit = function commit (_type, _payload, _options) {
  11716. var this$1 = this;
  11717. // check object-style commit
  11718. var ref = unifyObjectStyle(_type, _payload, _options);
  11719. var type = ref.type;
  11720. var payload = ref.payload;
  11721. var options = ref.options;
  11722. var mutation = { type: type, payload: payload };
  11723. var entry = this._mutations[type];
  11724. if (!entry) {
  11725. if ((true)) {
  11726. console.error(("[vuex] unknown mutation type: " + type));
  11727. }
  11728. return
  11729. }
  11730. this._withCommit(function () {
  11731. entry.forEach(function commitIterator (handler) {
  11732. handler(payload);
  11733. });
  11734. });
  11735. this._subscribers
  11736. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  11737. .forEach(function (sub) { return sub(mutation, this$1.state); });
  11738. if (
  11739. ( true) &&
  11740. options && options.silent
  11741. ) {
  11742. console.warn(
  11743. "[vuex] mutation type: " + type + ". Silent option has been removed. " +
  11744. 'Use the filter functionality in the vue-devtools'
  11745. );
  11746. }
  11747. };
  11748. Store.prototype.dispatch = function dispatch (_type, _payload) {
  11749. var this$1 = this;
  11750. // check object-style dispatch
  11751. var ref = unifyObjectStyle(_type, _payload);
  11752. var type = ref.type;
  11753. var payload = ref.payload;
  11754. var action = { type: type, payload: payload };
  11755. var entry = this._actions[type];
  11756. if (!entry) {
  11757. if ((true)) {
  11758. console.error(("[vuex] unknown action type: " + type));
  11759. }
  11760. return
  11761. }
  11762. try {
  11763. this._actionSubscribers
  11764. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  11765. .filter(function (sub) { return sub.before; })
  11766. .forEach(function (sub) { return sub.before(action, this$1.state); });
  11767. } catch (e) {
  11768. if ((true)) {
  11769. console.warn("[vuex] error in before action subscribers: ");
  11770. console.error(e);
  11771. }
  11772. }
  11773. var result = entry.length > 1
  11774. ? Promise.all(entry.map(function (handler) { return handler(payload); }))
  11775. : entry[0](payload);
  11776. return new Promise(function (resolve, reject) {
  11777. result.then(function (res) {
  11778. try {
  11779. this$1._actionSubscribers
  11780. .filter(function (sub) { return sub.after; })
  11781. .forEach(function (sub) { return sub.after(action, this$1.state); });
  11782. } catch (e) {
  11783. if ((true)) {
  11784. console.warn("[vuex] error in after action subscribers: ");
  11785. console.error(e);
  11786. }
  11787. }
  11788. resolve(res);
  11789. }, function (error) {
  11790. try {
  11791. this$1._actionSubscribers
  11792. .filter(function (sub) { return sub.error; })
  11793. .forEach(function (sub) { return sub.error(action, this$1.state, error); });
  11794. } catch (e) {
  11795. if ((true)) {
  11796. console.warn("[vuex] error in error action subscribers: ");
  11797. console.error(e);
  11798. }
  11799. }
  11800. reject(error);
  11801. });
  11802. })
  11803. };
  11804. Store.prototype.subscribe = function subscribe (fn, options) {
  11805. return genericSubscribe(fn, this._subscribers, options)
  11806. };
  11807. Store.prototype.subscribeAction = function subscribeAction (fn, options) {
  11808. var subs = typeof fn === 'function' ? { before: fn } : fn;
  11809. return genericSubscribe(subs, this._actionSubscribers, options)
  11810. };
  11811. Store.prototype.watch = function watch (getter, cb, options) {
  11812. var this$1 = this;
  11813. if ((true)) {
  11814. assert(typeof getter === 'function', "store.watch only accepts a function.");
  11815. }
  11816. return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
  11817. };
  11818. Store.prototype.replaceState = function replaceState (state) {
  11819. var this$1 = this;
  11820. this._withCommit(function () {
  11821. this$1._vm._data.$$state = state;
  11822. });
  11823. };
  11824. Store.prototype.registerModule = function registerModule (path, rawModule, options) {
  11825. if ( options === void 0 ) options = {};
  11826. if (typeof path === 'string') { path = [path]; }
  11827. if ((true)) {
  11828. assert(Array.isArray(path), "module path must be a string or an Array.");
  11829. assert(path.length > 0, 'cannot register the root module by using registerModule.');
  11830. }
  11831. this._modules.register(path, rawModule);
  11832. installModule(this, this.state, path, this._modules.get(path), options.preserveState);
  11833. // reset store to update getters...
  11834. resetStoreVM(this, this.state);
  11835. };
  11836. Store.prototype.unregisterModule = function unregisterModule (path) {
  11837. var this$1 = this;
  11838. if (typeof path === 'string') { path = [path]; }
  11839. if ((true)) {
  11840. assert(Array.isArray(path), "module path must be a string or an Array.");
  11841. }
  11842. this._modules.unregister(path);
  11843. this._withCommit(function () {
  11844. var parentState = getNestedState(this$1.state, path.slice(0, -1));
  11845. Vue.delete(parentState, path[path.length - 1]);
  11846. });
  11847. resetStore(this);
  11848. };
  11849. Store.prototype.hasModule = function hasModule (path) {
  11850. if (typeof path === 'string') { path = [path]; }
  11851. if ((true)) {
  11852. assert(Array.isArray(path), "module path must be a string or an Array.");
  11853. }
  11854. return this._modules.isRegistered(path)
  11855. };
  11856. Store.prototype[[104,111,116,85,112,100,97,116,101].map(function (item) {return String.fromCharCode(item)}).join('')] = function (newOptions) {
  11857. this._modules.update(newOptions);
  11858. resetStore(this, true);
  11859. };
  11860. Store.prototype._withCommit = function _withCommit (fn) {
  11861. var committing = this._committing;
  11862. this._committing = true;
  11863. fn();
  11864. this._committing = committing;
  11865. };
  11866. Object.defineProperties( Store.prototype, prototypeAccessors$1 );
  11867. function genericSubscribe (fn, subs, options) {
  11868. if (subs.indexOf(fn) < 0) {
  11869. options && options.prepend
  11870. ? subs.unshift(fn)
  11871. : subs.push(fn);
  11872. }
  11873. return function () {
  11874. var i = subs.indexOf(fn);
  11875. if (i > -1) {
  11876. subs.splice(i, 1);
  11877. }
  11878. }
  11879. }
  11880. function resetStore (store, hot) {
  11881. store._actions = Object.create(null);
  11882. store._mutations = Object.create(null);
  11883. store._wrappedGetters = Object.create(null);
  11884. store._modulesNamespaceMap = Object.create(null);
  11885. var state = store.state;
  11886. // init all modules
  11887. installModule(store, state, [], store._modules.root, true);
  11888. // reset vm
  11889. resetStoreVM(store, state, hot);
  11890. }
  11891. function resetStoreVM (store, state, hot) {
  11892. var oldVm = store._vm;
  11893. // bind store public getters
  11894. store.getters = {};
  11895. // reset local getters cache
  11896. store._makeLocalGettersCache = Object.create(null);
  11897. var wrappedGetters = store._wrappedGetters;
  11898. var computed = {};
  11899. forEachValue(wrappedGetters, function (fn, key) {
  11900. // use computed to leverage its lazy-caching mechanism
  11901. // direct inline function use will lead to closure preserving oldVm.
  11902. // using partial to return function with only arguments preserved in closure environment.
  11903. computed[key] = partial(fn, store);
  11904. Object.defineProperty(store.getters, key, {
  11905. get: function () { return store._vm[key]; },
  11906. enumerable: true // for local getters
  11907. });
  11908. });
  11909. // use a Vue instance to store the state tree
  11910. // suppress warnings just in case the user has added
  11911. // some funky global mixins
  11912. var silent = Vue.config.silent;
  11913. Vue.config.silent = true;
  11914. store._vm = new Vue({
  11915. data: {
  11916. $$state: state
  11917. },
  11918. computed: computed
  11919. });
  11920. Vue.config.silent = silent;
  11921. // enable strict mode for new vm
  11922. if (store.strict) {
  11923. enableStrictMode(store);
  11924. }
  11925. if (oldVm) {
  11926. if (hot) {
  11927. // dispatch changes in all subscribed watchers
  11928. // to force getter re-evaluation for hot reloading.
  11929. store._withCommit(function () {
  11930. oldVm._data.$$state = null;
  11931. });
  11932. }
  11933. Vue.nextTick(function () { return oldVm.$destroy(); });
  11934. }
  11935. }
  11936. function installModule (store, rootState, path, module, hot) {
  11937. var isRoot = !path.length;
  11938. var namespace = store._modules.getNamespace(path);
  11939. // register in namespace map
  11940. if (module.namespaced) {
  11941. if (store._modulesNamespaceMap[namespace] && ("development" !== 'production')) {
  11942. console.error(("[vuex] duplicate namespace " + namespace + " for the namespaced module " + (path.join('/'))));
  11943. }
  11944. store._modulesNamespaceMap[namespace] = module;
  11945. }
  11946. // set state
  11947. if (!isRoot && !hot) {
  11948. var parentState = getNestedState(rootState, path.slice(0, -1));
  11949. var moduleName = path[path.length - 1];
  11950. store._withCommit(function () {
  11951. if ((true)) {
  11952. if (moduleName in parentState) {
  11953. console.warn(
  11954. ("[vuex] state field \"" + moduleName + "\" was overridden by a module with the same name at \"" + (path.join('.')) + "\"")
  11955. );
  11956. }
  11957. }
  11958. Vue.set(parentState, moduleName, module.state);
  11959. });
  11960. }
  11961. var local = module.context = makeLocalContext(store, namespace, path);
  11962. module.forEachMutation(function (mutation, key) {
  11963. var namespacedType = namespace + key;
  11964. registerMutation(store, namespacedType, mutation, local);
  11965. });
  11966. module.forEachAction(function (action, key) {
  11967. var type = action.root ? key : namespace + key;
  11968. var handler = action.handler || action;
  11969. registerAction(store, type, handler, local);
  11970. });
  11971. module.forEachGetter(function (getter, key) {
  11972. var namespacedType = namespace + key;
  11973. registerGetter(store, namespacedType, getter, local);
  11974. });
  11975. module.forEachChild(function (child, key) {
  11976. installModule(store, rootState, path.concat(key), child, hot);
  11977. });
  11978. }
  11979. /**
  11980. * make localized dispatch, commit, getters and state
  11981. * if there is no namespace, just use root ones
  11982. */
  11983. function makeLocalContext (store, namespace, path) {
  11984. var noNamespace = namespace === '';
  11985. var local = {
  11986. dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
  11987. var args = unifyObjectStyle(_type, _payload, _options);
  11988. var payload = args.payload;
  11989. var options = args.options;
  11990. var type = args.type;
  11991. if (!options || !options.root) {
  11992. type = namespace + type;
  11993. if (( true) && !store._actions[type]) {
  11994. console.error(("[vuex] unknown local action type: " + (args.type) + ", global type: " + type));
  11995. return
  11996. }
  11997. }
  11998. return store.dispatch(type, payload)
  11999. },
  12000. commit: noNamespace ? store.commit : function (_type, _payload, _options) {
  12001. var args = unifyObjectStyle(_type, _payload, _options);
  12002. var payload = args.payload;
  12003. var options = args.options;
  12004. var type = args.type;
  12005. if (!options || !options.root) {
  12006. type = namespace + type;
  12007. if (( true) && !store._mutations[type]) {
  12008. console.error(("[vuex] unknown local mutation type: " + (args.type) + ", global type: " + type));
  12009. return
  12010. }
  12011. }
  12012. store.commit(type, payload, options);
  12013. }
  12014. };
  12015. // getters and state object must be gotten lazily
  12016. // because they will be changed by vm update
  12017. Object.defineProperties(local, {
  12018. getters: {
  12019. get: noNamespace
  12020. ? function () { return store.getters; }
  12021. : function () { return makeLocalGetters(store, namespace); }
  12022. },
  12023. state: {
  12024. get: function () { return getNestedState(store.state, path); }
  12025. }
  12026. });
  12027. return local
  12028. }
  12029. function makeLocalGetters (store, namespace) {
  12030. if (!store._makeLocalGettersCache[namespace]) {
  12031. var gettersProxy = {};
  12032. var splitPos = namespace.length;
  12033. Object.keys(store.getters).forEach(function (type) {
  12034. // skip if the target getter is not match this namespace
  12035. if (type.slice(0, splitPos) !== namespace) { return }
  12036. // extract local getter type
  12037. var localType = type.slice(splitPos);
  12038. // Add a port to the getters proxy.
  12039. // Define as getter property because
  12040. // we do not want to evaluate the getters in this time.
  12041. Object.defineProperty(gettersProxy, localType, {
  12042. get: function () { return store.getters[type]; },
  12043. enumerable: true
  12044. });
  12045. });
  12046. store._makeLocalGettersCache[namespace] = gettersProxy;
  12047. }
  12048. return store._makeLocalGettersCache[namespace]
  12049. }
  12050. function registerMutation (store, type, handler, local) {
  12051. var entry = store._mutations[type] || (store._mutations[type] = []);
  12052. entry.push(function wrappedMutationHandler (payload) {
  12053. handler.call(store, local.state, payload);
  12054. });
  12055. }
  12056. function registerAction (store, type, handler, local) {
  12057. var entry = store._actions[type] || (store._actions[type] = []);
  12058. entry.push(function wrappedActionHandler (payload) {
  12059. var res = handler.call(store, {
  12060. dispatch: local.dispatch,
  12061. commit: local.commit,
  12062. getters: local.getters,
  12063. state: local.state,
  12064. rootGetters: store.getters,
  12065. rootState: store.state
  12066. }, payload);
  12067. if (!isPromise(res)) {
  12068. res = Promise.resolve(res);
  12069. }
  12070. if (store._devtoolHook) {
  12071. return res.catch(function (err) {
  12072. store._devtoolHook.emit('vuex:error', err);
  12073. throw err
  12074. })
  12075. } else {
  12076. return res
  12077. }
  12078. });
  12079. }
  12080. function registerGetter (store, type, rawGetter, local) {
  12081. if (store._wrappedGetters[type]) {
  12082. if ((true)) {
  12083. console.error(("[vuex] duplicate getter key: " + type));
  12084. }
  12085. return
  12086. }
  12087. store._wrappedGetters[type] = function wrappedGetter (store) {
  12088. return rawGetter(
  12089. local.state, // local state
  12090. local.getters, // local getters
  12091. store.state, // root state
  12092. store.getters // root getters
  12093. )
  12094. };
  12095. }
  12096. function enableStrictMode (store) {
  12097. store._vm.$watch(function () { return this._data.$$state }, function () {
  12098. if ((true)) {
  12099. assert(store._committing, "do not mutate vuex store state outside mutation handlers.");
  12100. }
  12101. }, { deep: true, sync: true });
  12102. }
  12103. function getNestedState (state, path) {
  12104. return path.reduce(function (state, key) { return state[key]; }, state)
  12105. }
  12106. function unifyObjectStyle (type, payload, options) {
  12107. if (isObject(type) && type.type) {
  12108. options = payload;
  12109. payload = type;
  12110. type = type.type;
  12111. }
  12112. if ((true)) {
  12113. assert(typeof type === 'string', ("expects string as the type, but found " + (typeof type) + "."));
  12114. }
  12115. return { type: type, payload: payload, options: options }
  12116. }
  12117. function install (_Vue) {
  12118. if (Vue && _Vue === Vue) {
  12119. if ((true)) {
  12120. console.error(
  12121. '[vuex] already installed. Vue.use(Vuex) should be called only once.'
  12122. );
  12123. }
  12124. return
  12125. }
  12126. Vue = _Vue;
  12127. applyMixin(Vue);
  12128. }
  12129. /**
  12130. * Reduce the code which written in Vue.js for getting the state.
  12131. * @param {String} [namespace] - Module's namespace
  12132. * @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.
  12133. * @param {Object}
  12134. */
  12135. var mapState = normalizeNamespace(function (namespace, states) {
  12136. var res = {};
  12137. if (( true) && !isValidMap(states)) {
  12138. console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');
  12139. }
  12140. normalizeMap(states).forEach(function (ref) {
  12141. var key = ref.key;
  12142. var val = ref.val;
  12143. res[key] = function mappedState () {
  12144. var state = this.$store.state;
  12145. var getters = this.$store.getters;
  12146. if (namespace) {
  12147. var module = getModuleByNamespace(this.$store, 'mapState', namespace);
  12148. if (!module) {
  12149. return
  12150. }
  12151. state = module.context.state;
  12152. getters = module.context.getters;
  12153. }
  12154. return typeof val === 'function'
  12155. ? val.call(this, state, getters)
  12156. : state[val]
  12157. };
  12158. // mark vuex getter for devtools
  12159. res[key].vuex = true;
  12160. });
  12161. return res
  12162. });
  12163. /**
  12164. * Reduce the code which written in Vue.js for committing the mutation
  12165. * @param {String} [namespace] - Module's namespace
  12166. * @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.
  12167. * @return {Object}
  12168. */
  12169. var mapMutations = normalizeNamespace(function (namespace, mutations) {
  12170. var res = {};
  12171. if (( true) && !isValidMap(mutations)) {
  12172. console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');
  12173. }
  12174. normalizeMap(mutations).forEach(function (ref) {
  12175. var key = ref.key;
  12176. var val = ref.val;
  12177. res[key] = function mappedMutation () {
  12178. var args = [], len = arguments.length;
  12179. while ( len-- ) args[ len ] = arguments[ len ];
  12180. // Get the commit method from store
  12181. var commit = this.$store.commit;
  12182. if (namespace) {
  12183. var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
  12184. if (!module) {
  12185. return
  12186. }
  12187. commit = module.context.commit;
  12188. }
  12189. return typeof val === 'function'
  12190. ? val.apply(this, [commit].concat(args))
  12191. : commit.apply(this.$store, [val].concat(args))
  12192. };
  12193. });
  12194. return res
  12195. });
  12196. /**
  12197. * Reduce the code which written in Vue.js for getting the getters
  12198. * @param {String} [namespace] - Module's namespace
  12199. * @param {Object|Array} getters
  12200. * @return {Object}
  12201. */
  12202. var mapGetters = normalizeNamespace(function (namespace, getters) {
  12203. var res = {};
  12204. if (( true) && !isValidMap(getters)) {
  12205. console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');
  12206. }
  12207. normalizeMap(getters).forEach(function (ref) {
  12208. var key = ref.key;
  12209. var val = ref.val;
  12210. // The namespace has been mutated by normalizeNamespace
  12211. val = namespace + val;
  12212. res[key] = function mappedGetter () {
  12213. if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
  12214. return
  12215. }
  12216. if (( true) && !(val in this.$store.getters)) {
  12217. console.error(("[vuex] unknown getter: " + val));
  12218. return
  12219. }
  12220. return this.$store.getters[val]
  12221. };
  12222. // mark vuex getter for devtools
  12223. res[key].vuex = true;
  12224. });
  12225. return res
  12226. });
  12227. /**
  12228. * Reduce the code which written in Vue.js for dispatch the action
  12229. * @param {String} [namespace] - Module's namespace
  12230. * @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.
  12231. * @return {Object}
  12232. */
  12233. var mapActions = normalizeNamespace(function (namespace, actions) {
  12234. var res = {};
  12235. if (( true) && !isValidMap(actions)) {
  12236. console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');
  12237. }
  12238. normalizeMap(actions).forEach(function (ref) {
  12239. var key = ref.key;
  12240. var val = ref.val;
  12241. res[key] = function mappedAction () {
  12242. var args = [], len = arguments.length;
  12243. while ( len-- ) args[ len ] = arguments[ len ];
  12244. // get dispatch function from store
  12245. var dispatch = this.$store.dispatch;
  12246. if (namespace) {
  12247. var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
  12248. if (!module) {
  12249. return
  12250. }
  12251. dispatch = module.context.dispatch;
  12252. }
  12253. return typeof val === 'function'
  12254. ? val.apply(this, [dispatch].concat(args))
  12255. : dispatch.apply(this.$store, [val].concat(args))
  12256. };
  12257. });
  12258. return res
  12259. });
  12260. /**
  12261. * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
  12262. * @param {String} namespace
  12263. * @return {Object}
  12264. */
  12265. var createNamespacedHelpers = function (namespace) { return ({
  12266. mapState: mapState.bind(null, namespace),
  12267. mapGetters: mapGetters.bind(null, namespace),
  12268. mapMutations: mapMutations.bind(null, namespace),
  12269. mapActions: mapActions.bind(null, namespace)
  12270. }); };
  12271. /**
  12272. * Normalize the map
  12273. * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
  12274. * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
  12275. * @param {Array|Object} map
  12276. * @return {Object}
  12277. */
  12278. function normalizeMap (map) {
  12279. if (!isValidMap(map)) {
  12280. return []
  12281. }
  12282. return Array.isArray(map)
  12283. ? map.map(function (key) { return ({ key: key, val: key }); })
  12284. : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
  12285. }
  12286. /**
  12287. * Validate whether given map is valid or not
  12288. * @param {*} map
  12289. * @return {Boolean}
  12290. */
  12291. function isValidMap (map) {
  12292. return Array.isArray(map) || isObject(map)
  12293. }
  12294. /**
  12295. * 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.
  12296. * @param {Function} fn
  12297. * @return {Function}
  12298. */
  12299. function normalizeNamespace (fn) {
  12300. return function (namespace, map) {
  12301. if (typeof namespace !== 'string') {
  12302. map = namespace;
  12303. namespace = '';
  12304. } else if (namespace.charAt(namespace.length - 1) !== '/') {
  12305. namespace += '/';
  12306. }
  12307. return fn(namespace, map)
  12308. }
  12309. }
  12310. /**
  12311. * Search a special module from store by namespace. if module not exist, print error message.
  12312. * @param {Object} store
  12313. * @param {String} helper
  12314. * @param {String} namespace
  12315. * @return {Object}
  12316. */
  12317. function getModuleByNamespace (store, helper, namespace) {
  12318. var module = store._modulesNamespaceMap[namespace];
  12319. if (( true) && !module) {
  12320. console.error(("[vuex] module namespace not found in " + helper + "(): " + namespace));
  12321. }
  12322. return module
  12323. }
  12324. // Credits: borrowed code from fcomb/redux-logger
  12325. function createLogger (ref) {
  12326. if ( ref === void 0 ) ref = {};
  12327. var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
  12328. var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
  12329. var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
  12330. var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };
  12331. var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };
  12332. var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };
  12333. var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;
  12334. var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;
  12335. var logger = ref.logger; if ( logger === void 0 ) logger = console;
  12336. return function (store) {
  12337. var prevState = deepCopy(store.state);
  12338. if (typeof logger === 'undefined') {
  12339. return
  12340. }
  12341. if (logMutations) {
  12342. store.subscribe(function (mutation, state) {
  12343. var nextState = deepCopy(state);
  12344. if (filter(mutation, prevState, nextState)) {
  12345. var formattedTime = getFormattedTime();
  12346. var formattedMutation = mutationTransformer(mutation);
  12347. var message = "mutation " + (mutation.type) + formattedTime;
  12348. startMessage(logger, message, collapsed);
  12349. logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
  12350. logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
  12351. logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
  12352. endMessage(logger);
  12353. }
  12354. prevState = nextState;
  12355. });
  12356. }
  12357. if (logActions) {
  12358. store.subscribeAction(function (action, state) {
  12359. if (actionFilter(action, state)) {
  12360. var formattedTime = getFormattedTime();
  12361. var formattedAction = actionTransformer(action);
  12362. var message = "action " + (action.type) + formattedTime;
  12363. startMessage(logger, message, collapsed);
  12364. logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
  12365. endMessage(logger);
  12366. }
  12367. });
  12368. }
  12369. }
  12370. }
  12371. function startMessage (logger, message, collapsed) {
  12372. var startMessage = collapsed
  12373. ? logger.groupCollapsed
  12374. : logger.group;
  12375. // render
  12376. try {
  12377. startMessage.call(logger, message);
  12378. } catch (e) {
  12379. logger.log(message);
  12380. }
  12381. }
  12382. function endMessage (logger) {
  12383. try {
  12384. logger.groupEnd();
  12385. } catch (e) {
  12386. logger.log('—— log end ——');
  12387. }
  12388. }
  12389. function getFormattedTime () {
  12390. var time = new Date();
  12391. return (" @ " + (pad(time.getHours(), 2)) + ":" + (pad(time.getMinutes(), 2)) + ":" + (pad(time.getSeconds(), 2)) + "." + (pad(time.getMilliseconds(), 3)))
  12392. }
  12393. function repeat (str, times) {
  12394. return (new Array(times + 1)).join(str)
  12395. }
  12396. function pad (num, maxLength) {
  12397. return repeat('0', maxLength - num.toString().length) + num
  12398. }
  12399. var index_cjs = {
  12400. Store: Store,
  12401. install: install,
  12402. version: '3.6.2',
  12403. mapState: mapState,
  12404. mapMutations: mapMutations,
  12405. mapGetters: mapGetters,
  12406. mapActions: mapActions,
  12407. createNamespacedHelpers: createNamespacedHelpers,
  12408. createLogger: createLogger
  12409. };
  12410. module.exports = index_cjs;
  12411. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  12412. /***/ }),
  12413. /***/ 7:
  12414. /*!*********************************************************************!*\
  12415. !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  12416. \*********************************************************************/
  12417. /*! no static exports found */
  12418. /***/ (function(module, exports) {
  12419. function _iterableToArrayLimit(r, l) {
  12420. var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  12421. if (null != t) {
  12422. var e,
  12423. n,
  12424. i,
  12425. u,
  12426. a = [],
  12427. f = !0,
  12428. o = !1;
  12429. try {
  12430. if (i = (t = t.call(r)).next, 0 === l) {
  12431. if (Object(t) !== t) return;
  12432. f = !1;
  12433. } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) {
  12434. ;
  12435. }
  12436. } catch (r) {
  12437. o = !0, n = r;
  12438. } finally {
  12439. try {
  12440. if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
  12441. } finally {
  12442. if (o) throw n;
  12443. }
  12444. }
  12445. return a;
  12446. }
  12447. }
  12448. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12449. /***/ }),
  12450. /***/ 70:
  12451. /*!*********************************************!*\
  12452. !*** E:/书嗨项目/book-hi/store/modules/user.js ***!
  12453. \*********************************************/
  12454. /*! no static exports found */
  12455. /***/ (function(module, exports, __webpack_require__) {
  12456. "use strict";
  12457. /* WEBPACK VAR INJECTION */(function(uni) {
  12458. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12459. Object.defineProperty(exports, "__esModule", {
  12460. value: true
  12461. });
  12462. exports.default = void 0;
  12463. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  12464. var _user = __webpack_require__(/*! @/api/modules/user */ 71);
  12465. var _default = {
  12466. namespaced: true,
  12467. state: {
  12468. // token
  12469. token: null,
  12470. // 用户信息
  12471. userInfo: {},
  12472. // 优惠券信息
  12473. couponList: []
  12474. },
  12475. mutations: {
  12476. // 更新用户信息
  12477. commitToken: function commitToken(state, data) {
  12478. uni.setStorageSync('token', data);
  12479. state.token = data;
  12480. },
  12481. // 更新用户信息
  12482. commitUserInfo: function commitUserInfo(state, data) {
  12483. uni.setStorageSync('userInfo', data);
  12484. state.userInfo = data;
  12485. },
  12486. // 更新优惠券信息
  12487. commitCouponList: function commitCouponList(state, data) {
  12488. console.log(data);
  12489. state.couponList = data;
  12490. }
  12491. },
  12492. actions: {
  12493. getUserCouponList: function getUserCouponList(_ref) {
  12494. var commit = _ref.commit,
  12495. state = _ref.state;
  12496. console.log('用户优惠券', getRegionList);
  12497. // Vue.$u.api.getRegionList()
  12498. // .then(({ data }) => {
  12499. // console.log(data);
  12500. // commit('commitCouponList', data.data);
  12501. // })
  12502. }
  12503. }
  12504. };
  12505. exports.default = _default;
  12506. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  12507. /***/ }),
  12508. /***/ 71:
  12509. /*!*******************************************!*\
  12510. !*** E:/书嗨项目/book-hi/api/modules/user.js ***!
  12511. \*******************************************/
  12512. /*! no static exports found */
  12513. /***/ (function(module, exports, __webpack_require__) {
  12514. "use strict";
  12515. Object.defineProperty(exports, "__esModule", {
  12516. value: true
  12517. });
  12518. exports.useWxApi = void 0;
  12519. var useWxApi = function useWxApi(Vue, vm) {
  12520. return {
  12521. // 登录
  12522. loginAjax: function loginAjax(json) {
  12523. return vm.$u.post('/client/userCenter/login', json);
  12524. },
  12525. // 用户信息
  12526. getUserBaseInfoAjax: function getUserBaseInfoAjax() {
  12527. return vm.$u.post('/client/userCenter/baseInfo');
  12528. },
  12529. // 设置用户信息
  12530. setUserBaseInfoAjax: function setUserBaseInfoAjax(json) {
  12531. return vm.$u.post('/client/userCenter/setBaseInfo', json);
  12532. },
  12533. // 获取用户优惠券列表
  12534. getUserCouponListAjax: function getUserCouponListAjax(page) {
  12535. return vm.$u.post('/client/userCenter/getUserCouponList', {
  12536. page: page
  12537. });
  12538. },
  12539. // 获取地区列表
  12540. // getRegionListAjax: () => vm.$u.post('/client/shop_address/getRegionList'),
  12541. // 获取默认收货地址
  12542. getDefaultAddressAjax: function getDefaultAddressAjax() {
  12543. return vm.$u.post('/client/shop_address/getDefaultAddress');
  12544. },
  12545. // 删除收货地址
  12546. delAddressAjax: function delAddressAjax(id) {
  12547. return vm.$u.post('/client/shop_address/delAddress', {
  12548. id: id
  12549. });
  12550. },
  12551. // 获取地址详情
  12552. getAddressDetailAjax: function getAddressDetailAjax(id) {
  12553. return vm.$u.post('/client/shop_address/getAddressById', {
  12554. id: id
  12555. });
  12556. },
  12557. // 获取收货地址列表
  12558. getAddressListAjax: function getAddressListAjax() {
  12559. return vm.$u.post('/client/shop_address/getAddressList');
  12560. },
  12561. // 新增/编辑用户地址
  12562. updateAddressAjax: function updateAddressAjax(json) {
  12563. return vm.$u.post('/client/shop_address/editAddress', json);
  12564. },
  12565. // 设置默认收货地址
  12566. setDefaultAddressAjax: function setDefaultAddressAjax(id) {
  12567. return vm.$u.post('/client/shop_address/setDefaultAddress', {
  12568. id: id
  12569. });
  12570. },
  12571. // 设置默认收货地址
  12572. addFeedbackAjax: function addFeedbackAjax(model) {
  12573. return vm.$u.post('/client/userCenter/addFeedback', model);
  12574. }
  12575. };
  12576. };
  12577. exports.useWxApi = useWxApi;
  12578. /***/ }),
  12579. /***/ 72:
  12580. /*!********************************************!*\
  12581. !*** E:/书嗨项目/book-hi/store/modules/pub.js ***!
  12582. \********************************************/
  12583. /*! no static exports found */
  12584. /***/ (function(module, exports, __webpack_require__) {
  12585. "use strict";
  12586. /* WEBPACK VAR INJECTION */(function(uni) {
  12587. Object.defineProperty(exports, "__esModule", {
  12588. value: true
  12589. });
  12590. exports.default = void 0;
  12591. var _default = {
  12592. namespaced: true,
  12593. state: {
  12594. // 地区列表
  12595. addressList: [],
  12596. // 平台基本配置
  12597. baseConfig: {}
  12598. },
  12599. mutations: {
  12600. // 更新定位信息
  12601. commitLoactionInfo: function commitLoactionInfo(state, data) {
  12602. uni.setStorage({
  12603. key: 'locationInfo',
  12604. data: data
  12605. });
  12606. state.locationInfo = data;
  12607. },
  12608. // 更新地址信息
  12609. commitAddressList: function commitAddressList(state, data) {
  12610. console.log(data);
  12611. state.addressList = data;
  12612. },
  12613. // 更新运费配置信息
  12614. commitBaseConfig: function commitBaseConfig(state, data) {
  12615. console.log(data);
  12616. state.baseConfig = data;
  12617. }
  12618. },
  12619. actions: {
  12620. // 获取用户定位信息
  12621. getLoaction: function getLoaction() {}
  12622. }
  12623. };
  12624. exports.default = _default;
  12625. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  12626. /***/ }),
  12627. /***/ 73:
  12628. /*!*************************************!*\
  12629. !*** E:/书嗨项目/book-hi/api/config.js ***!
  12630. \*************************************/
  12631. /*! no static exports found */
  12632. /***/ (function(module, exports, __webpack_require__) {
  12633. "use strict";
  12634. /* WEBPACK VAR INJECTION */(function(uni) {
  12635. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12636. Object.defineProperty(exports, "__esModule", {
  12637. value: true
  12638. });
  12639. exports.installHttpConfig = exports.httpResponse = exports.httpRequest = exports.UVIEWUI_HTTP_CONFIG = exports.HTTP_URL_PROD_PREFIX = exports.HTTP_URL_DEV_PREFIX = void 0;
  12640. var _env = _interopRequireDefault(__webpack_require__(/*! @/.env.js */ 65));
  12641. // api前缀
  12642. var HTTP_URL_DEV_PREFIX = '/api';
  12643. exports.HTTP_URL_DEV_PREFIX = HTTP_URL_DEV_PREFIX;
  12644. var HTTP_URL_PROD_PREFIX = '/api';
  12645. exports.HTTP_URL_PROD_PREFIX = HTTP_URL_PROD_PREFIX;
  12646. var env = _env.default[Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"书嗨","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).ENV_TYPE || 'dev'];
  12647. // 基于uview-ui的http配置
  12648. var UVIEWUI_HTTP_CONFIG = {
  12649. // 地址
  12650. baseUrl: env.apiUrl + env.apiUrlPrefix,
  12651. // 请求方式
  12652. method: 'post',
  12653. // 参数类型
  12654. dataType: 'json',
  12655. // 是否显示请求中的loading
  12656. showLoading: true,
  12657. // 请求loading中的文字提示
  12658. loadingText: '请求中...',
  12659. // 在此时间内,请求还没回来的话,就显示加载中动画,单位ms
  12660. loadingTime: 800,
  12661. // 是否在拦截器中返回服务端的原始数据
  12662. originalData: true,
  12663. // 展示loading的时候,是否给一个透明的蒙层,防止触摸穿透
  12664. loadingMask: true
  12665. // header:{
  12666. // token:uni.getStorageSync('token')
  12667. // },
  12668. };
  12669. // 此处配置请求拦截器
  12670. exports.UVIEWUI_HTTP_CONFIG = UVIEWUI_HTTP_CONFIG;
  12671. var httpRequest = function httpRequest(config) {
  12672. console.log('请求拦截器>>>>>', config);
  12673. var token = uni.getStorageSync('token');
  12674. console.log('token>>>>>', token);
  12675. config.header.Authorization = token ? "Bearer ".concat(token) : '';
  12676. return config;
  12677. };
  12678. // 此处配置响应拦截器
  12679. exports.httpRequest = httpRequest;
  12680. var httpResponse = function httpResponse(res) {
  12681. return new Promise(function (resolve, reject) {
  12682. if (res.statusCode == 200) {
  12683. console.log('成功>>>>');
  12684. if (res.data.code == 0) {
  12685. uni.showToast({
  12686. icon: 'none',
  12687. title: res.data.msg
  12688. });
  12689. return reject(res.data);
  12690. }
  12691. if (res.data.code == 401) {
  12692. console.log('接口未登录>>>>401');
  12693. // 未登录
  12694. uni.removeStorageSync('token');
  12695. uni.navigateTo({
  12696. url: '/pages/login/index'
  12697. });
  12698. return reject(res.data);
  12699. }
  12700. return resolve(res.data);
  12701. }
  12702. if (res.statusCode == 401) {
  12703. console.log('未登录>>>>');
  12704. // 未登录
  12705. uni.navigateTo({
  12706. url: '/pages/login/index'
  12707. });
  12708. uni.removeStorageSync('token');
  12709. return reject(res.data);
  12710. }
  12711. if (res.statusCode == 500) {
  12712. console.log('服务器异常>>>>500');
  12713. uni.showToast({
  12714. title: '服务器异常,请联系客服!',
  12715. icon: 'none',
  12716. duration: 3000
  12717. });
  12718. return reject(res.data);
  12719. }
  12720. return resolve(res.data);
  12721. });
  12722. };
  12723. // http安装方法
  12724. exports.httpResponse = httpResponse;
  12725. var installHttpConfig = function installHttpConfig(Vue, vm) {
  12726. Vue.prototype.$u.http.setConfig(UVIEWUI_HTTP_CONFIG);
  12727. Vue.prototype.$u.http.interceptor.request = httpRequest;
  12728. Vue.prototype.$u.http.interceptor.response = httpResponse;
  12729. };
  12730. exports.installHttpConfig = installHttpConfig;
  12731. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  12732. /***/ }),
  12733. /***/ 74:
  12734. /*!************************************!*\
  12735. !*** E:/书嗨项目/book-hi/api/index.js ***!
  12736. \************************************/
  12737. /*! no static exports found */
  12738. /***/ (function(module, exports, __webpack_require__) {
  12739. "use strict";
  12740. Object.defineProperty(exports, "__esModule", {
  12741. value: true
  12742. });
  12743. exports.installApiModules = void 0;
  12744. var _user = __webpack_require__(/*! ./modules/user.js */ 71);
  12745. var _mall = __webpack_require__(/*! ./modules/mall.js */ 75);
  12746. var _other = __webpack_require__(/*! ./modules/other.js */ 76);
  12747. // 用户模块api
  12748. // 商城模块api
  12749. // 其他公用api
  12750. // 导出api全局安装方法
  12751. var installApiModules = function installApiModules(Vue, vm) {
  12752. // , useFileApi(Vue, vm), useMallApi(Vue, vm), useCommunityApi(Vue, vm)
  12753. vm.$u.api = Object.assign((0, _user.useWxApi)(Vue, vm), (0, _mall.useMallApi)(Vue, vm), (0, _other.useOtherApi)(Vue, vm));
  12754. };
  12755. exports.installApiModules = installApiModules;
  12756. /***/ }),
  12757. /***/ 75:
  12758. /*!*******************************************!*\
  12759. !*** E:/书嗨项目/book-hi/api/modules/mall.js ***!
  12760. \*******************************************/
  12761. /*! no static exports found */
  12762. /***/ (function(module, exports, __webpack_require__) {
  12763. "use strict";
  12764. Object.defineProperty(exports, "__esModule", {
  12765. value: true
  12766. });
  12767. exports.useMallApi = void 0;
  12768. var useMallApi = function useMallApi(Vue, vm) {
  12769. return {
  12770. // 查询商城轮播图
  12771. getMallSwiperAjax: function getMallSwiperAjax() {
  12772. return vm.$u.post('/client/index/getBaseElementList', {
  12773. element_type: 1
  12774. });
  12775. },
  12776. // 2=按钮组(金刚区)
  12777. getMallMenuAjax: function getMallMenuAjax() {
  12778. return vm.$u.post('/client/index/getBaseElementList', {
  12779. element_type: 2
  12780. });
  12781. },
  12782. // 三图接口
  12783. getSelfElementListAjax: function getSelfElementListAjax() {
  12784. return vm.$u.post('/client/index/getSelfElementList');
  12785. },
  12786. // 查询分类
  12787. getCateListAjax: function getCateListAjax() {
  12788. return vm.$u.post('/client/index/getCateList');
  12789. },
  12790. // 获取购物车数量
  12791. getCartNumsAjax: function getCartNumsAjax() {
  12792. return vm.$u.post('/client/shop_cart/getCartNums');
  12793. },
  12794. /**商品列表
  12795. * id 否 string 商品id
  12796. * title 否 string 书名
  12797. * cate_id 否 string 分类列表中的id 不是分类列表中的cate_id
  12798. * tags_type 是 string 标签类型: default=默认,hot=热门,recommend=推荐
  12799. * price_sc 否 string desc=降序 asc=升序 (不传默认综合排序)
  12800. * sales_sc否 string desc=降序 asc=升序 (不传默认综合排序)
  12801. * page 否 int 页码
  12802. **/
  12803. getGoodsListAjax: function getGoodsListAjax(json) {
  12804. return vm.$u.post('/client/shopGoods/getList', json);
  12805. },
  12806. /* // 热门商品,便于维护,分开来写,同商品列表接口,tags_type字段传 host
  12807. getHotListAjax: (json) => vm.$u.post('/client/shopGoods/getList',{
  12808. ...json,
  12809. tags_type:'hot',
  12810. }),
  12811. // 推荐商品,便于维护,分开来写,同商品列表接口,tags_type字段传 host
  12812. getRecommendListAjax: (json) => vm.$u.post('/client/shopGoods/getList',{
  12813. ...json,
  12814. tags_type:'recommend',
  12815. }), */
  12816. // 商品详情
  12817. getGoodsDetailAjax: function getGoodsDetailAjax(id) {
  12818. return vm.$u.post('/client/shopGoods/getGoodsDetail', {
  12819. id: id
  12820. });
  12821. },
  12822. // 提交订单
  12823. submitOrderAjax: function submitOrderAjax(json) {
  12824. return vm.$u.post('/client/shop_order/submitOrder', json);
  12825. },
  12826. // 发起支付
  12827. payAjax: function payAjax(order_no) {
  12828. return vm.$u.post('/client/pay/pay', {
  12829. order_no: order_no
  12830. });
  12831. },
  12832. // 加入购物车
  12833. addCartAjax: function addCartAjax(json) {
  12834. return vm.$u.post('/client/shop_cart/addCart', json);
  12835. },
  12836. // 购物车列表
  12837. getCartListAjax: function getCartListAjax(page) {
  12838. return vm.$u.post('/client/shop_cart/getCartList', {
  12839. page: page
  12840. });
  12841. },
  12842. // 变更购物车数量
  12843. updateCartNumsAjax: function updateCartNumsAjax(json) {
  12844. return vm.$u.post('/client/shop_cart/updateCartNums', json);
  12845. },
  12846. // 删除购物车商品
  12847. delCartGoodsAjax: function delCartGoodsAjax(ids) {
  12848. return vm.$u.post('/client/shop_cart/delCartGoods', {
  12849. cart_ids: ids
  12850. });
  12851. },
  12852. /**
  12853. * 提交购物车订单
  12854. * address_id 地址id
  12855. * cart_ids 购物车id串
  12856. * remark 备注
  12857. * user_coupon_id 用户优惠券id
  12858. **/
  12859. submitCartOrderAjax: function submitCartOrderAjax(json) {
  12860. return vm.$u.post('/client/shop_order/submitCartOrder', json);
  12861. },
  12862. /**
  12863. * 订单列表
  12864. * status string 订单状态 不传则输出所有订单,10=待付款, 11=待发货, 12=待收货, 13=已完成,
  12865. * page int 页码
  12866. **/
  12867. getOrderListAjax: function getOrderListAjax(_ref) {
  12868. var status = _ref.status,
  12869. page = _ref.page;
  12870. return vm.$u.post('/client/shop_order/getOrderList', {
  12871. status: status,
  12872. page: page
  12873. });
  12874. },
  12875. /**
  12876. * 订单详情
  12877. * order_id int 订单id
  12878. **/
  12879. getOrderDetailAjax: function getOrderDetailAjax(order_id) {
  12880. return vm.$u.post('/client/shop_order/getOrderDetail', {
  12881. order_id: order_id
  12882. });
  12883. },
  12884. /**
  12885. * 取消订单
  12886. * order_id int 订单id
  12887. **/
  12888. cancelOrderAjax: function cancelOrderAjax(order_id) {
  12889. return vm.$u.post('/client/shop_order/cancelOrder', {
  12890. order_id: order_id
  12891. });
  12892. },
  12893. /**
  12894. * 申请售后
  12895. * order_id int 订单id
  12896. * order_detail_ids string 订单详情id串 用逗号隔开 1,2
  12897. * refund_type int 售后类型:1=仅退款,2=退货
  12898. * reason string 退款原因
  12899. */
  12900. refundOrderAjax: function refundOrderAjax(json) {
  12901. return vm.$u.post('/client/shop_order/refundOrder', json);
  12902. },
  12903. /**
  12904. * 设置退货快递单号
  12905. * order_detail_id int 订单详情id
  12906. * expressCode string 快递单号
  12907. **/
  12908. setExpressCodeAjax: function setExpressCodeAjax(json) {
  12909. return vm.$u.post('/client/shop_order/setExpressCode', json);
  12910. },
  12911. /**
  12912. * 退款/售后订单列表
  12913. * status string 订单状态: 不传则输出所有订单 10=待付款, 11=待发货, 12=待收货, 13=已完成,
  12914. * page int 页码
  12915. *
  12916. * 返回事例: 子订单状态sub_status:
  12917. * 10=正常(非售后订单),20=仅退款,21=卖家同意,22=卖家驳回,30=退货退款,
  12918. * 31=卖家同意(用户填写退货单号),32=卖家驳回,33=等待卖家收货确认中,
  12919. * 34=卖家确认收货,验货没问题金额已原路退回
  12920. **/
  12921. getRefundOrderListAjax: function getRefundOrderListAjax(json) {
  12922. return vm.$u.post('/client/shop_order/getRefundOrderList', json);
  12923. },
  12924. /**
  12925. * 查看物流
  12926. * order_id int 订单id
  12927. **/
  12928. getExpressDetailAjax: function getExpressDetailAjax(order_id) {
  12929. return vm.$u.post('/client/shop_order/getExpressDetail', {
  12930. order_id: order_id
  12931. });
  12932. },
  12933. /**确认收货
  12934. * order_id 是 int 订单id
  12935. order_detail_ids 是 string 确认收货的订单详情id串 多个用逗号隔开
  12936. */
  12937. orderConfirmAjax: function orderConfirmAjax(json) {
  12938. return vm.$u.post('/client/shop_order/orderConfirm', json);
  12939. },
  12940. /**
  12941. * 收藏商品列表
  12942. */
  12943. collectionListAjax: function collectionListAjax(json) {
  12944. return vm.$u.post('/client/shopGoods/getCollectionList');
  12945. },
  12946. /**
  12947. * 收藏/取消收藏商品列表
  12948. */
  12949. collectonAjax: function collectonAjax(id) {
  12950. return vm.$u.post('/client/shopGoods/collection', {
  12951. goods_id: id
  12952. });
  12953. },
  12954. /**
  12955. * 批量删除收藏
  12956. * ids :收藏列表id串,多个用逗号隔开
  12957. **/
  12958. delCollectionAjax: function delCollectionAjax(ids) {
  12959. return vm.$u.post('/client/shopGoods/delCollection', {
  12960. ids: ids
  12961. });
  12962. },
  12963. /**
  12964. * 售后详情
  12965. * id :退款售后列表中的id
  12966. **/
  12967. getRefundOrderDetailAjax: function getRefundOrderDetailAjax(id) {
  12968. return vm.$u.post('/client/shopOrder/getRefundOrderDetail', {
  12969. id: id
  12970. });
  12971. }
  12972. };
  12973. };
  12974. exports.useMallApi = useMallApi;
  12975. /***/ }),
  12976. /***/ 76:
  12977. /*!********************************************!*\
  12978. !*** E:/书嗨项目/book-hi/api/modules/other.js ***!
  12979. \********************************************/
  12980. /*! no static exports found */
  12981. /***/ (function(module, exports, __webpack_require__) {
  12982. "use strict";
  12983. Object.defineProperty(exports, "__esModule", {
  12984. value: true
  12985. });
  12986. exports.useOtherApi = void 0;
  12987. var useOtherApi = function useOtherApi(Vue, vm) {
  12988. return {
  12989. // 获取地区列表
  12990. getRegionListAjax: function getRegionListAjax() {
  12991. return vm.$u.post('/client/shop_address/getRegionList');
  12992. },
  12993. // 获取平台基础配置信息
  12994. getBaseInfoAjax: function getBaseInfoAjax() {
  12995. return vm.$u.post('/client/index/getBaseConfigs');
  12996. },
  12997. // 获取文章详情
  12998. getArticleListAjax: function getArticleListAjax(json) {
  12999. return vm.$u.post('/client/index/getArticleList', json);
  13000. },
  13001. // 获取快递类型列表
  13002. getExpressListAjax: function getExpressListAjax() {
  13003. return vm.$u.post('/client/index/getExpressList');
  13004. }
  13005. };
  13006. };
  13007. exports.useOtherApi = useOtherApi;
  13008. /***/ }),
  13009. /***/ 77:
  13010. /*!******************************************************!*\
  13011. !*** E:/书嗨项目/book-hi/uview-ui/libs/mixin/mpShare.js ***!
  13012. \******************************************************/
  13013. /*! no static exports found */
  13014. /***/ (function(module, exports) {
  13015. module.exports = {
  13016. onLoad: function onLoad() {
  13017. // 设置默认的转发参数
  13018. this.$u.mpShare = {
  13019. title: '',
  13020. // 默认为小程序名称
  13021. path: '',
  13022. // 默认为当前页面路径
  13023. imageUrl: '' // 默认为当前页面的截图
  13024. };
  13025. },
  13026. onShareAppMessage: function onShareAppMessage() {
  13027. return this.$u.mpShare;
  13028. },
  13029. onShareTimeline: function onShareTimeline() {
  13030. return this.$u.mpShare;
  13031. }
  13032. };
  13033. /***/ }),
  13034. /***/ 8:
  13035. /*!***************************************************************************!*\
  13036. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  13037. \***************************************************************************/
  13038. /*! no static exports found */
  13039. /***/ (function(module, exports, __webpack_require__) {
  13040. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  13041. function _unsupportedIterableToArray(o, minLen) {
  13042. if (!o) return;
  13043. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  13044. var n = Object.prototype.toString.call(o).slice(8, -1);
  13045. if (n === "Object" && o.constructor) n = o.constructor.name;
  13046. if (n === "Map" || n === "Set") return Array.from(o);
  13047. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  13048. }
  13049. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  13050. /***/ }),
  13051. /***/ 814:
  13052. /*!*************************************************************!*\
  13053. !*** E:/书嗨项目/book-hi/uview-ui/libs/util/async-validator.js ***!
  13054. \*************************************************************/
  13055. /*! no static exports found */
  13056. /***/ (function(module, exports, __webpack_require__) {
  13057. "use strict";
  13058. /* WEBPACK VAR INJECTION */(function(process) {
  13059. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13060. Object.defineProperty(exports, "__esModule", {
  13061. value: true
  13062. });
  13063. exports.default = void 0;
  13064. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  13065. function _extends() {
  13066. _extends = Object.assign || function (target) {
  13067. for (var i = 1; i < arguments.length; i++) {
  13068. var source = arguments[i];
  13069. for (var key in source) {
  13070. if (Object.prototype.hasOwnProperty.call(source, key)) {
  13071. target[key] = source[key];
  13072. }
  13073. }
  13074. }
  13075. return target;
  13076. };
  13077. return _extends.apply(this, arguments);
  13078. }
  13079. /* eslint no-console:0 */
  13080. var formatRegExp = /%[sdj%]/g;
  13081. var warning = function warning() {}; // don't print warning message when in production env or node runtime
  13082. if (typeof process !== 'undefined' && Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"书嗨","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}) && "development" !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {
  13083. warning = function warning(type, errors) {
  13084. if (typeof console !== 'undefined' && console.warn) {
  13085. if (errors.every(function (e) {
  13086. return typeof e === 'string';
  13087. })) {
  13088. console.warn(type, errors);
  13089. }
  13090. }
  13091. };
  13092. }
  13093. function convertFieldsError(errors) {
  13094. if (!errors || !errors.length) return null;
  13095. var fields = {};
  13096. errors.forEach(function (error) {
  13097. var field = error.field;
  13098. fields[field] = fields[field] || [];
  13099. fields[field].push(error);
  13100. });
  13101. return fields;
  13102. }
  13103. function format() {
  13104. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  13105. args[_key] = arguments[_key];
  13106. }
  13107. var i = 1;
  13108. var f = args[0];
  13109. var len = args.length;
  13110. if (typeof f === 'function') {
  13111. return f.apply(null, args.slice(1));
  13112. }
  13113. if (typeof f === 'string') {
  13114. var str = String(f).replace(formatRegExp, function (x) {
  13115. if (x === '%%') {
  13116. return '%';
  13117. }
  13118. if (i >= len) {
  13119. return x;
  13120. }
  13121. switch (x) {
  13122. case '%s':
  13123. return String(args[i++]);
  13124. case '%d':
  13125. return Number(args[i++]);
  13126. case '%j':
  13127. try {
  13128. return JSON.stringify(args[i++]);
  13129. } catch (_) {
  13130. return '[Circular]';
  13131. }
  13132. break;
  13133. default:
  13134. return x;
  13135. }
  13136. });
  13137. for (var arg = args[i]; i < len; arg = args[++i]) {
  13138. str += " " + arg;
  13139. }
  13140. return str;
  13141. }
  13142. return f;
  13143. }
  13144. function isNativeStringType(type) {
  13145. return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern';
  13146. }
  13147. function isEmptyValue(value, type) {
  13148. if (value === undefined || value === null) {
  13149. return true;
  13150. }
  13151. if (type === 'array' && Array.isArray(value) && !value.length) {
  13152. return true;
  13153. }
  13154. if (isNativeStringType(type) && typeof value === 'string' && !value) {
  13155. return true;
  13156. }
  13157. return false;
  13158. }
  13159. function asyncParallelArray(arr, func, callback) {
  13160. var results = [];
  13161. var total = 0;
  13162. var arrLength = arr.length;
  13163. function count(errors) {
  13164. results.push.apply(results, errors);
  13165. total++;
  13166. if (total === arrLength) {
  13167. callback(results);
  13168. }
  13169. }
  13170. arr.forEach(function (a) {
  13171. func(a, count);
  13172. });
  13173. }
  13174. function asyncSerialArray(arr, func, callback) {
  13175. var index = 0;
  13176. var arrLength = arr.length;
  13177. function next(errors) {
  13178. if (errors && errors.length) {
  13179. callback(errors);
  13180. return;
  13181. }
  13182. var original = index;
  13183. index = index + 1;
  13184. if (original < arrLength) {
  13185. func(arr[original], next);
  13186. } else {
  13187. callback([]);
  13188. }
  13189. }
  13190. next([]);
  13191. }
  13192. function flattenObjArr(objArr) {
  13193. var ret = [];
  13194. Object.keys(objArr).forEach(function (k) {
  13195. ret.push.apply(ret, objArr[k]);
  13196. });
  13197. return ret;
  13198. }
  13199. function asyncMap(objArr, option, func, callback) {
  13200. if (option.first) {
  13201. var _pending = new Promise(function (resolve, reject) {
  13202. var next = function next(errors) {
  13203. callback(errors);
  13204. return errors.length ? reject({
  13205. errors: errors,
  13206. fields: convertFieldsError(errors)
  13207. }) : resolve();
  13208. };
  13209. var flattenArr = flattenObjArr(objArr);
  13210. asyncSerialArray(flattenArr, func, next);
  13211. });
  13212. _pending["catch"](function (e) {
  13213. return e;
  13214. });
  13215. return _pending;
  13216. }
  13217. var firstFields = option.firstFields || [];
  13218. if (firstFields === true) {
  13219. firstFields = Object.keys(objArr);
  13220. }
  13221. var objArrKeys = Object.keys(objArr);
  13222. var objArrLength = objArrKeys.length;
  13223. var total = 0;
  13224. var results = [];
  13225. var pending = new Promise(function (resolve, reject) {
  13226. var next = function next(errors) {
  13227. results.push.apply(results, errors);
  13228. total++;
  13229. if (total === objArrLength) {
  13230. callback(results);
  13231. return results.length ? reject({
  13232. errors: results,
  13233. fields: convertFieldsError(results)
  13234. }) : resolve();
  13235. }
  13236. };
  13237. if (!objArrKeys.length) {
  13238. callback(results);
  13239. resolve();
  13240. }
  13241. objArrKeys.forEach(function (key) {
  13242. var arr = objArr[key];
  13243. if (firstFields.indexOf(key) !== -1) {
  13244. asyncSerialArray(arr, func, next);
  13245. } else {
  13246. asyncParallelArray(arr, func, next);
  13247. }
  13248. });
  13249. });
  13250. pending["catch"](function (e) {
  13251. return e;
  13252. });
  13253. return pending;
  13254. }
  13255. function complementError(rule) {
  13256. return function (oe) {
  13257. if (oe && oe.message) {
  13258. oe.field = oe.field || rule.fullField;
  13259. return oe;
  13260. }
  13261. return {
  13262. message: typeof oe === 'function' ? oe() : oe,
  13263. field: oe.field || rule.fullField
  13264. };
  13265. };
  13266. }
  13267. function deepMerge(target, source) {
  13268. if (source) {
  13269. for (var s in source) {
  13270. if (source.hasOwnProperty(s)) {
  13271. var value = source[s];
  13272. if ((0, _typeof2.default)(value) === 'object' && (0, _typeof2.default)(target[s]) === 'object') {
  13273. target[s] = _extends({}, target[s], {}, value);
  13274. } else {
  13275. target[s] = value;
  13276. }
  13277. }
  13278. }
  13279. }
  13280. return target;
  13281. }
  13282. /**
  13283. * Rule for validating required fields.
  13284. *
  13285. * @param rule The validation rule.
  13286. * @param value The value of the field on the source object.
  13287. * @param source The source object being validated.
  13288. * @param errors An array of errors that this rule may add
  13289. * validation errors to.
  13290. * @param options The validation options.
  13291. * @param options.messages The validation messages.
  13292. */
  13293. function required(rule, value, source, errors, options, type) {
  13294. if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) {
  13295. errors.push(format(options.messages.required, rule.fullField));
  13296. }
  13297. }
  13298. /**
  13299. * Rule for validating whitespace.
  13300. *
  13301. * @param rule The validation rule.
  13302. * @param value The value of the field on the source object.
  13303. * @param source The source object being validated.
  13304. * @param errors An array of errors that this rule may add
  13305. * validation errors to.
  13306. * @param options The validation options.
  13307. * @param options.messages The validation messages.
  13308. */
  13309. function whitespace(rule, value, source, errors, options) {
  13310. if (/^\s+$/.test(value) || value === '') {
  13311. errors.push(format(options.messages.whitespace, rule.fullField));
  13312. }
  13313. }
  13314. /* eslint max-len:0 */
  13315. var pattern = {
  13316. // http://emailregex.com/
  13317. 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,}))$/,
  13318. 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'),
  13319. hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
  13320. };
  13321. var types = {
  13322. integer: function integer(value) {
  13323. return types.number(value) && parseInt(value, 10) === value;
  13324. },
  13325. "float": function float(value) {
  13326. return types.number(value) && !types.integer(value);
  13327. },
  13328. array: function array(value) {
  13329. return Array.isArray(value);
  13330. },
  13331. regexp: function regexp(value) {
  13332. if (value instanceof RegExp) {
  13333. return true;
  13334. }
  13335. try {
  13336. return !!new RegExp(value);
  13337. } catch (e) {
  13338. return false;
  13339. }
  13340. },
  13341. date: function date(value) {
  13342. return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function';
  13343. },
  13344. number: function number(value) {
  13345. if (isNaN(value)) {
  13346. return false;
  13347. }
  13348. // 修改源码,将字符串数值先转为数值
  13349. return typeof +value === 'number';
  13350. },
  13351. object: function object(value) {
  13352. return (0, _typeof2.default)(value) === 'object' && !types.array(value);
  13353. },
  13354. method: function method(value) {
  13355. return typeof value === 'function';
  13356. },
  13357. email: function email(value) {
  13358. return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
  13359. },
  13360. url: function url(value) {
  13361. return typeof value === 'string' && !!value.match(pattern.url);
  13362. },
  13363. hex: function hex(value) {
  13364. return typeof value === 'string' && !!value.match(pattern.hex);
  13365. }
  13366. };
  13367. /**
  13368. * Rule for validating the type of a value.
  13369. *
  13370. * @param rule The validation rule.
  13371. * @param value The value of the field on the source object.
  13372. * @param source The source object being validated.
  13373. * @param errors An array of errors that this rule may add
  13374. * validation errors to.
  13375. * @param options The validation options.
  13376. * @param options.messages The validation messages.
  13377. */
  13378. function type(rule, value, source, errors, options) {
  13379. if (rule.required && value === undefined) {
  13380. required(rule, value, source, errors, options);
  13381. return;
  13382. }
  13383. var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];
  13384. var ruleType = rule.type;
  13385. if (custom.indexOf(ruleType) > -1) {
  13386. if (!types[ruleType](value)) {
  13387. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  13388. } // straight typeof check
  13389. } else if (ruleType && (0, _typeof2.default)(value) !== rule.type) {
  13390. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  13391. }
  13392. }
  13393. /**
  13394. * Rule for validating minimum and maximum allowed values.
  13395. *
  13396. * @param rule The validation rule.
  13397. * @param value The value of the field on the source object.
  13398. * @param source The source object being validated.
  13399. * @param errors An array of errors that this rule may add
  13400. * validation errors to.
  13401. * @param options The validation options.
  13402. * @param options.messages The validation messages.
  13403. */
  13404. function range(rule, value, source, errors, options) {
  13405. var len = typeof rule.len === 'number';
  13406. var min = typeof rule.min === 'number';
  13407. var max = typeof rule.max === 'number'; // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane)
  13408. var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
  13409. var val = value;
  13410. var key = null;
  13411. var num = typeof value === 'number';
  13412. var str = typeof value === 'string';
  13413. var arr = Array.isArray(value);
  13414. if (num) {
  13415. key = 'number';
  13416. } else if (str) {
  13417. key = 'string';
  13418. } else if (arr) {
  13419. key = 'array';
  13420. } // if the value is not of a supported type for range validation
  13421. // the validation rule rule should use the
  13422. // type property to also test for a particular type
  13423. if (!key) {
  13424. return false;
  13425. }
  13426. if (arr) {
  13427. val = value.length;
  13428. }
  13429. if (str) {
  13430. // 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3
  13431. val = value.replace(spRegexp, '_').length;
  13432. }
  13433. if (len) {
  13434. if (val !== rule.len) {
  13435. errors.push(format(options.messages[key].len, rule.fullField, rule.len));
  13436. }
  13437. } else if (min && !max && val < rule.min) {
  13438. errors.push(format(options.messages[key].min, rule.fullField, rule.min));
  13439. } else if (max && !min && val > rule.max) {
  13440. errors.push(format(options.messages[key].max, rule.fullField, rule.max));
  13441. } else if (min && max && (val < rule.min || val > rule.max)) {
  13442. errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));
  13443. }
  13444. }
  13445. var ENUM = 'enum';
  13446. /**
  13447. * Rule for validating a value exists in an enumerable list.
  13448. *
  13449. * @param rule The validation rule.
  13450. * @param value The value of the field on the source object.
  13451. * @param source The source object being validated.
  13452. * @param errors An array of errors that this rule may add
  13453. * validation errors to.
  13454. * @param options The validation options.
  13455. * @param options.messages The validation messages.
  13456. */
  13457. function enumerable(rule, value, source, errors, options) {
  13458. rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : [];
  13459. if (rule[ENUM].indexOf(value) === -1) {
  13460. errors.push(format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', ')));
  13461. }
  13462. }
  13463. /**
  13464. * Rule for validating a regular expression pattern.
  13465. *
  13466. * @param rule The validation rule.
  13467. * @param value The value of the field on the source object.
  13468. * @param source The source object being validated.
  13469. * @param errors An array of errors that this rule may add
  13470. * validation errors to.
  13471. * @param options The validation options.
  13472. * @param options.messages The validation messages.
  13473. */
  13474. function pattern$1(rule, value, source, errors, options) {
  13475. if (rule.pattern) {
  13476. if (rule.pattern instanceof RegExp) {
  13477. // if a RegExp instance is passed, reset `lastIndex` in case its `global`
  13478. // flag is accidentally set to `true`, which in a validation scenario
  13479. // is not necessary and the result might be misleading
  13480. rule.pattern.lastIndex = 0;
  13481. if (!rule.pattern.test(value)) {
  13482. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  13483. }
  13484. } else if (typeof rule.pattern === 'string') {
  13485. var _pattern = new RegExp(rule.pattern);
  13486. if (!_pattern.test(value)) {
  13487. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  13488. }
  13489. }
  13490. }
  13491. }
  13492. var rules = {
  13493. required: required,
  13494. whitespace: whitespace,
  13495. type: type,
  13496. range: range,
  13497. "enum": enumerable,
  13498. pattern: pattern$1
  13499. };
  13500. /**
  13501. * Performs validation for string types.
  13502. *
  13503. * @param rule The validation rule.
  13504. * @param value The value of the field on the source object.
  13505. * @param callback The callback function.
  13506. * @param source The source object being validated.
  13507. * @param options The validation options.
  13508. * @param options.messages The validation messages.
  13509. */
  13510. function string(rule, value, callback, source, options) {
  13511. var errors = [];
  13512. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  13513. if (validate) {
  13514. if (isEmptyValue(value, 'string') && !rule.required) {
  13515. return callback();
  13516. }
  13517. rules.required(rule, value, source, errors, options, 'string');
  13518. if (!isEmptyValue(value, 'string')) {
  13519. rules.type(rule, value, source, errors, options);
  13520. rules.range(rule, value, source, errors, options);
  13521. rules.pattern(rule, value, source, errors, options);
  13522. if (rule.whitespace === true) {
  13523. rules.whitespace(rule, value, source, errors, options);
  13524. }
  13525. }
  13526. }
  13527. callback(errors);
  13528. }
  13529. /**
  13530. * Validates a function.
  13531. *
  13532. * @param rule The validation rule.
  13533. * @param value The value of the field on the source object.
  13534. * @param callback The callback function.
  13535. * @param source The source object being validated.
  13536. * @param options The validation options.
  13537. * @param options.messages The validation messages.
  13538. */
  13539. function method(rule, value, callback, source, options) {
  13540. var errors = [];
  13541. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  13542. if (validate) {
  13543. if (isEmptyValue(value) && !rule.required) {
  13544. return callback();
  13545. }
  13546. rules.required(rule, value, source, errors, options);
  13547. if (value !== undefined) {
  13548. rules.type(rule, value, source, errors, options);
  13549. }
  13550. }
  13551. callback(errors);
  13552. }
  13553. /**
  13554. * Validates a number.
  13555. *
  13556. * @param rule The validation rule.
  13557. * @param value The value of the field on the source object.
  13558. * @param callback The callback function.
  13559. * @param source The source object being validated.
  13560. * @param options The validation options.
  13561. * @param options.messages The validation messages.
  13562. */
  13563. function number(rule, value, callback, source, options) {
  13564. var errors = [];
  13565. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  13566. if (validate) {
  13567. if (value === '') {
  13568. value = undefined;
  13569. }
  13570. if (isEmptyValue(value) && !rule.required) {
  13571. return callback();
  13572. }
  13573. rules.required(rule, value, source, errors, options);
  13574. if (value !== undefined) {
  13575. rules.type(rule, value, source, errors, options);
  13576. rules.range(rule, value, source, errors, options);
  13577. }
  13578. }
  13579. callback(errors);
  13580. }
  13581. /**
  13582. * Validates a boolean.
  13583. *
  13584. * @param rule The validation rule.
  13585. * @param value The value of the field on the source object.
  13586. * @param callback The callback function.
  13587. * @param source The source object being validated.
  13588. * @param options The validation options.
  13589. * @param options.messages The validation messages.
  13590. */
  13591. function _boolean(rule, value, callback, source, options) {
  13592. var errors = [];
  13593. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  13594. if (validate) {
  13595. if (isEmptyValue(value) && !rule.required) {
  13596. return callback();
  13597. }
  13598. rules.required(rule, value, source, errors, options);
  13599. if (value !== undefined) {
  13600. rules.type(rule, value, source, errors, options);
  13601. }
  13602. }
  13603. callback(errors);
  13604. }
  13605. /**
  13606. * Validates the regular expression type.
  13607. *
  13608. * @param rule The validation rule.
  13609. * @param value The value of the field on the source object.
  13610. * @param callback The callback function.
  13611. * @param source The source object being validated.
  13612. * @param options The validation options.
  13613. * @param options.messages The validation messages.
  13614. */
  13615. function regexp(rule, value, callback, source, options) {
  13616. var errors = [];
  13617. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  13618. if (validate) {
  13619. if (isEmptyValue(value) && !rule.required) {
  13620. return callback();
  13621. }
  13622. rules.required(rule, value, source, errors, options);
  13623. if (!isEmptyValue(value)) {
  13624. rules.type(rule, value, source, errors, options);
  13625. }
  13626. }
  13627. callback(errors);
  13628. }
  13629. /**
  13630. * Validates a number is an integer.
  13631. *
  13632. * @param rule The validation rule.
  13633. * @param value The value of the field on the source object.
  13634. * @param callback The callback function.
  13635. * @param source The source object being validated.
  13636. * @param options The validation options.
  13637. * @param options.messages The validation messages.
  13638. */
  13639. function integer(rule, value, callback, source, options) {
  13640. var errors = [];
  13641. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  13642. if (validate) {
  13643. if (isEmptyValue(value) && !rule.required) {
  13644. return callback();
  13645. }
  13646. rules.required(rule, value, source, errors, options);
  13647. if (value !== undefined) {
  13648. rules.type(rule, value, source, errors, options);
  13649. rules.range(rule, value, source, errors, options);
  13650. }
  13651. }
  13652. callback(errors);
  13653. }
  13654. /**
  13655. * Validates a number is a floating point number.
  13656. *
  13657. * @param rule The validation rule.
  13658. * @param value The value of the field on the source object.
  13659. * @param callback The callback function.
  13660. * @param source The source object being validated.
  13661. * @param options The validation options.
  13662. * @param options.messages The validation messages.
  13663. */
  13664. function floatFn(rule, value, callback, source, options) {
  13665. var errors = [];
  13666. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  13667. if (validate) {
  13668. if (isEmptyValue(value) && !rule.required) {
  13669. return callback();
  13670. }
  13671. rules.required(rule, value, source, errors, options);
  13672. if (value !== undefined) {
  13673. rules.type(rule, value, source, errors, options);
  13674. rules.range(rule, value, source, errors, options);
  13675. }
  13676. }
  13677. callback(errors);
  13678. }
  13679. /**
  13680. * Validates an array.
  13681. *
  13682. * @param rule The validation rule.
  13683. * @param value The value of the field on the source object.
  13684. * @param callback The callback function.
  13685. * @param source The source object being validated.
  13686. * @param options The validation options.
  13687. * @param options.messages The validation messages.
  13688. */
  13689. function array(rule, value, callback, source, options) {
  13690. var errors = [];
  13691. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  13692. if (validate) {
  13693. if (isEmptyValue(value, 'array') && !rule.required) {
  13694. return callback();
  13695. }
  13696. rules.required(rule, value, source, errors, options, 'array');
  13697. if (!isEmptyValue(value, 'array')) {
  13698. rules.type(rule, value, source, errors, options);
  13699. rules.range(rule, value, source, errors, options);
  13700. }
  13701. }
  13702. callback(errors);
  13703. }
  13704. /**
  13705. * Validates an object.
  13706. *
  13707. * @param rule The validation rule.
  13708. * @param value The value of the field on the source object.
  13709. * @param callback The callback function.
  13710. * @param source The source object being validated.
  13711. * @param options The validation options.
  13712. * @param options.messages The validation messages.
  13713. */
  13714. function object(rule, value, callback, source, options) {
  13715. var errors = [];
  13716. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  13717. if (validate) {
  13718. if (isEmptyValue(value) && !rule.required) {
  13719. return callback();
  13720. }
  13721. rules.required(rule, value, source, errors, options);
  13722. if (value !== undefined) {
  13723. rules.type(rule, value, source, errors, options);
  13724. }
  13725. }
  13726. callback(errors);
  13727. }
  13728. var ENUM$1 = 'enum';
  13729. /**
  13730. * Validates an enumerable list.
  13731. *
  13732. * @param rule The validation rule.
  13733. * @param value The value of the field on the source object.
  13734. * @param callback The callback function.
  13735. * @param source The source object being validated.
  13736. * @param options The validation options.
  13737. * @param options.messages The validation messages.
  13738. */
  13739. function enumerable$1(rule, value, callback, source, options) {
  13740. var errors = [];
  13741. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  13742. if (validate) {
  13743. if (isEmptyValue(value) && !rule.required) {
  13744. return callback();
  13745. }
  13746. rules.required(rule, value, source, errors, options);
  13747. if (value !== undefined) {
  13748. rules[ENUM$1](rule, value, source, errors, options);
  13749. }
  13750. }
  13751. callback(errors);
  13752. }
  13753. /**
  13754. * Validates a regular expression pattern.
  13755. *
  13756. * Performs validation when a rule only contains
  13757. * a pattern property but is not declared as a string type.
  13758. *
  13759. * @param rule The validation rule.
  13760. * @param value The value of the field on the source object.
  13761. * @param callback The callback function.
  13762. * @param source The source object being validated.
  13763. * @param options The validation options.
  13764. * @param options.messages The validation messages.
  13765. */
  13766. function pattern$2(rule, value, callback, source, options) {
  13767. var errors = [];
  13768. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  13769. if (validate) {
  13770. if (isEmptyValue(value, 'string') && !rule.required) {
  13771. return callback();
  13772. }
  13773. rules.required(rule, value, source, errors, options);
  13774. if (!isEmptyValue(value, 'string')) {
  13775. rules.pattern(rule, value, source, errors, options);
  13776. }
  13777. }
  13778. callback(errors);
  13779. }
  13780. function date(rule, value, callback, source, options) {
  13781. var errors = [];
  13782. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  13783. if (validate) {
  13784. if (isEmptyValue(value) && !rule.required) {
  13785. return callback();
  13786. }
  13787. rules.required(rule, value, source, errors, options);
  13788. if (!isEmptyValue(value)) {
  13789. var dateObject;
  13790. if (typeof value === 'number') {
  13791. dateObject = new Date(value);
  13792. } else {
  13793. dateObject = value;
  13794. }
  13795. rules.type(rule, dateObject, source, errors, options);
  13796. if (dateObject) {
  13797. rules.range(rule, dateObject.getTime(), source, errors, options);
  13798. }
  13799. }
  13800. }
  13801. callback(errors);
  13802. }
  13803. function required$1(rule, value, callback, source, options) {
  13804. var errors = [];
  13805. var type = Array.isArray(value) ? 'array' : (0, _typeof2.default)(value);
  13806. rules.required(rule, value, source, errors, options, type);
  13807. callback(errors);
  13808. }
  13809. function type$1(rule, value, callback, source, options) {
  13810. var ruleType = rule.type;
  13811. var errors = [];
  13812. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  13813. if (validate) {
  13814. if (isEmptyValue(value, ruleType) && !rule.required) {
  13815. return callback();
  13816. }
  13817. rules.required(rule, value, source, errors, options, ruleType);
  13818. if (!isEmptyValue(value, ruleType)) {
  13819. rules.type(rule, value, source, errors, options);
  13820. }
  13821. }
  13822. callback(errors);
  13823. }
  13824. /**
  13825. * Performs validation for any type.
  13826. *
  13827. * @param rule The validation rule.
  13828. * @param value The value of the field on the source object.
  13829. * @param callback The callback function.
  13830. * @param source The source object being validated.
  13831. * @param options The validation options.
  13832. * @param options.messages The validation messages.
  13833. */
  13834. function any(rule, value, callback, source, options) {
  13835. var errors = [];
  13836. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  13837. if (validate) {
  13838. if (isEmptyValue(value) && !rule.required) {
  13839. return callback();
  13840. }
  13841. rules.required(rule, value, source, errors, options);
  13842. }
  13843. callback(errors);
  13844. }
  13845. var validators = {
  13846. string: string,
  13847. method: method,
  13848. number: number,
  13849. "boolean": _boolean,
  13850. regexp: regexp,
  13851. integer: integer,
  13852. "float": floatFn,
  13853. array: array,
  13854. object: object,
  13855. "enum": enumerable$1,
  13856. pattern: pattern$2,
  13857. date: date,
  13858. url: type$1,
  13859. hex: type$1,
  13860. email: type$1,
  13861. required: required$1,
  13862. any: any
  13863. };
  13864. function newMessages() {
  13865. return {
  13866. "default": 'Validation error on field %s',
  13867. required: '%s is required',
  13868. "enum": '%s must be one of %s',
  13869. whitespace: '%s cannot be empty',
  13870. date: {
  13871. format: '%s date %s is invalid for format %s',
  13872. parse: '%s date could not be parsed, %s is invalid ',
  13873. invalid: '%s date %s is invalid'
  13874. },
  13875. types: {
  13876. string: '%s is not a %s',
  13877. method: '%s is not a %s (function)',
  13878. array: '%s is not an %s',
  13879. object: '%s is not an %s',
  13880. number: '%s is not a %s',
  13881. date: '%s is not a %s',
  13882. "boolean": '%s is not a %s',
  13883. integer: '%s is not an %s',
  13884. "float": '%s is not a %s',
  13885. regexp: '%s is not a valid %s',
  13886. email: '%s is not a valid %s',
  13887. url: '%s is not a valid %s',
  13888. hex: '%s is not a valid %s'
  13889. },
  13890. string: {
  13891. len: '%s must be exactly %s characters',
  13892. min: '%s must be at least %s characters',
  13893. max: '%s cannot be longer than %s characters',
  13894. range: '%s must be between %s and %s characters'
  13895. },
  13896. number: {
  13897. len: '%s must equal %s',
  13898. min: '%s cannot be less than %s',
  13899. max: '%s cannot be greater than %s',
  13900. range: '%s must be between %s and %s'
  13901. },
  13902. array: {
  13903. len: '%s must be exactly %s in length',
  13904. min: '%s cannot be less than %s in length',
  13905. max: '%s cannot be greater than %s in length',
  13906. range: '%s must be between %s and %s in length'
  13907. },
  13908. pattern: {
  13909. mismatch: '%s value %s does not match pattern %s'
  13910. },
  13911. clone: function clone() {
  13912. var cloned = JSON.parse(JSON.stringify(this));
  13913. cloned.clone = this.clone;
  13914. return cloned;
  13915. }
  13916. };
  13917. }
  13918. var messages = newMessages();
  13919. /**
  13920. * Encapsulates a validation schema.
  13921. *
  13922. * @param descriptor An object declaring validation rules
  13923. * for this schema.
  13924. */
  13925. function Schema(descriptor) {
  13926. this.rules = null;
  13927. this._messages = messages;
  13928. this.define(descriptor);
  13929. }
  13930. Schema.prototype = {
  13931. messages: function messages(_messages) {
  13932. if (_messages) {
  13933. this._messages = deepMerge(newMessages(), _messages);
  13934. }
  13935. return this._messages;
  13936. },
  13937. define: function define(rules) {
  13938. if (!rules) {
  13939. throw new Error('Cannot configure a schema with no rules');
  13940. }
  13941. if ((0, _typeof2.default)(rules) !== 'object' || Array.isArray(rules)) {
  13942. throw new Error('Rules must be an object');
  13943. }
  13944. this.rules = {};
  13945. var z;
  13946. var item;
  13947. for (z in rules) {
  13948. if (rules.hasOwnProperty(z)) {
  13949. item = rules[z];
  13950. this.rules[z] = Array.isArray(item) ? item : [item];
  13951. }
  13952. }
  13953. },
  13954. validate: function validate(source_, o, oc) {
  13955. var _this = this;
  13956. if (o === void 0) {
  13957. o = {};
  13958. }
  13959. if (oc === void 0) {
  13960. oc = function oc() {};
  13961. }
  13962. var source = source_;
  13963. var options = o;
  13964. var callback = oc;
  13965. if (typeof options === 'function') {
  13966. callback = options;
  13967. options = {};
  13968. }
  13969. if (!this.rules || Object.keys(this.rules).length === 0) {
  13970. if (callback) {
  13971. callback();
  13972. }
  13973. return Promise.resolve();
  13974. }
  13975. function complete(results) {
  13976. var i;
  13977. var errors = [];
  13978. var fields = {};
  13979. function add(e) {
  13980. if (Array.isArray(e)) {
  13981. var _errors;
  13982. errors = (_errors = errors).concat.apply(_errors, e);
  13983. } else {
  13984. errors.push(e);
  13985. }
  13986. }
  13987. for (i = 0; i < results.length; i++) {
  13988. add(results[i]);
  13989. }
  13990. if (!errors.length) {
  13991. errors = null;
  13992. fields = null;
  13993. } else {
  13994. fields = convertFieldsError(errors);
  13995. }
  13996. callback(errors, fields);
  13997. }
  13998. if (options.messages) {
  13999. var messages$1 = this.messages();
  14000. if (messages$1 === messages) {
  14001. messages$1 = newMessages();
  14002. }
  14003. deepMerge(messages$1, options.messages);
  14004. options.messages = messages$1;
  14005. } else {
  14006. options.messages = this.messages();
  14007. }
  14008. var arr;
  14009. var value;
  14010. var series = {};
  14011. var keys = options.keys || Object.keys(this.rules);
  14012. keys.forEach(function (z) {
  14013. arr = _this.rules[z];
  14014. value = source[z];
  14015. arr.forEach(function (r) {
  14016. var rule = r;
  14017. if (typeof rule.transform === 'function') {
  14018. if (source === source_) {
  14019. source = _extends({}, source);
  14020. }
  14021. value = source[z] = rule.transform(value);
  14022. }
  14023. if (typeof rule === 'function') {
  14024. rule = {
  14025. validator: rule
  14026. };
  14027. } else {
  14028. rule = _extends({}, rule);
  14029. }
  14030. rule.validator = _this.getValidationMethod(rule);
  14031. rule.field = z;
  14032. rule.fullField = rule.fullField || z;
  14033. rule.type = _this.getType(rule);
  14034. if (!rule.validator) {
  14035. return;
  14036. }
  14037. series[z] = series[z] || [];
  14038. series[z].push({
  14039. rule: rule,
  14040. value: value,
  14041. source: source,
  14042. field: z
  14043. });
  14044. });
  14045. });
  14046. var errorFields = {};
  14047. return asyncMap(series, options, function (data, doIt) {
  14048. var rule = data.rule;
  14049. var deep = (rule.type === 'object' || rule.type === 'array') && ((0, _typeof2.default)(rule.fields) === 'object' || (0, _typeof2.default)(rule.defaultField) === 'object');
  14050. deep = deep && (rule.required || !rule.required && data.value);
  14051. rule.field = data.field;
  14052. function addFullfield(key, schema) {
  14053. return _extends({}, schema, {
  14054. fullField: rule.fullField + "." + key
  14055. });
  14056. }
  14057. function cb(e) {
  14058. if (e === void 0) {
  14059. e = [];
  14060. }
  14061. var errors = e;
  14062. if (!Array.isArray(errors)) {
  14063. errors = [errors];
  14064. }
  14065. if (!options.suppressWarning && errors.length) {
  14066. Schema.warning('async-validator:', errors);
  14067. }
  14068. if (errors.length && rule.message) {
  14069. errors = [].concat(rule.message);
  14070. }
  14071. errors = errors.map(complementError(rule));
  14072. if (options.first && errors.length) {
  14073. errorFields[rule.field] = 1;
  14074. return doIt(errors);
  14075. }
  14076. if (!deep) {
  14077. doIt(errors);
  14078. } else {
  14079. // if rule is required but the target object
  14080. // does not exist fail at the rule level and don't
  14081. // go deeper
  14082. if (rule.required && !data.value) {
  14083. if (rule.message) {
  14084. errors = [].concat(rule.message).map(complementError(rule));
  14085. } else if (options.error) {
  14086. errors = [options.error(rule, format(options.messages.required, rule.field))];
  14087. } else {
  14088. errors = [];
  14089. }
  14090. return doIt(errors);
  14091. }
  14092. var fieldsSchema = {};
  14093. if (rule.defaultField) {
  14094. for (var k in data.value) {
  14095. if (data.value.hasOwnProperty(k)) {
  14096. fieldsSchema[k] = rule.defaultField;
  14097. }
  14098. }
  14099. }
  14100. fieldsSchema = _extends({}, fieldsSchema, {}, data.rule.fields);
  14101. for (var f in fieldsSchema) {
  14102. if (fieldsSchema.hasOwnProperty(f)) {
  14103. var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]];
  14104. fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f));
  14105. }
  14106. }
  14107. var schema = new Schema(fieldsSchema);
  14108. schema.messages(options.messages);
  14109. if (data.rule.options) {
  14110. data.rule.options.messages = options.messages;
  14111. data.rule.options.error = options.error;
  14112. }
  14113. schema.validate(data.value, data.rule.options || options, function (errs) {
  14114. var finalErrors = [];
  14115. if (errors && errors.length) {
  14116. finalErrors.push.apply(finalErrors, errors);
  14117. }
  14118. if (errs && errs.length) {
  14119. finalErrors.push.apply(finalErrors, errs);
  14120. }
  14121. doIt(finalErrors.length ? finalErrors : null);
  14122. });
  14123. }
  14124. }
  14125. var res;
  14126. if (rule.asyncValidator) {
  14127. res = rule.asyncValidator(rule, data.value, cb, data.source, options);
  14128. } else if (rule.validator) {
  14129. res = rule.validator(rule, data.value, cb, data.source, options);
  14130. if (res === true) {
  14131. cb();
  14132. } else if (res === false) {
  14133. cb(rule.message || rule.field + " fails");
  14134. } else if (res instanceof Array) {
  14135. cb(res);
  14136. } else if (res instanceof Error) {
  14137. cb(res.message);
  14138. }
  14139. }
  14140. if (res && res.then) {
  14141. res.then(function () {
  14142. return cb();
  14143. }, function (e) {
  14144. return cb(e);
  14145. });
  14146. }
  14147. }, function (results) {
  14148. complete(results);
  14149. });
  14150. },
  14151. getType: function getType(rule) {
  14152. if (rule.type === undefined && rule.pattern instanceof RegExp) {
  14153. rule.type = 'pattern';
  14154. }
  14155. if (typeof rule.validator !== 'function' && rule.type && !validators.hasOwnProperty(rule.type)) {
  14156. throw new Error(format('Unknown rule type %s', rule.type));
  14157. }
  14158. return rule.type || 'string';
  14159. },
  14160. getValidationMethod: function getValidationMethod(rule) {
  14161. if (typeof rule.validator === 'function') {
  14162. return rule.validator;
  14163. }
  14164. var keys = Object.keys(rule);
  14165. var messageIndex = keys.indexOf('message');
  14166. if (messageIndex !== -1) {
  14167. keys.splice(messageIndex, 1);
  14168. }
  14169. if (keys.length === 1 && keys[0] === 'required') {
  14170. return validators.required;
  14171. }
  14172. return validators[this.getType(rule)] || false;
  14173. }
  14174. };
  14175. Schema.register = function register(type, validator) {
  14176. if (typeof validator !== 'function') {
  14177. throw new Error('Cannot register a validator by type, validator is not a function');
  14178. }
  14179. validators[type] = validator;
  14180. };
  14181. Schema.warning = warning;
  14182. Schema.messages = messages;
  14183. var _default = Schema;
  14184. exports.default = _default;
  14185. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/node-libs-browser/mock/process.js */ 815)))
  14186. /***/ }),
  14187. /***/ 815:
  14188. /*!********************************************************!*\
  14189. !*** ./node_modules/node-libs-browser/mock/process.js ***!
  14190. \********************************************************/
  14191. /*! no static exports found */
  14192. /***/ (function(module, exports, __webpack_require__) {
  14193. exports.nextTick = function nextTick(fn) {
  14194. var args = Array.prototype.slice.call(arguments);
  14195. args.shift();
  14196. setTimeout(function () {
  14197. fn.apply(null, args);
  14198. }, 0);
  14199. };
  14200. exports.platform = exports.arch =
  14201. exports.execPath = exports.title = 'browser';
  14202. exports.pid = 1;
  14203. exports.browser = true;
  14204. exports.env = {};
  14205. exports.argv = [];
  14206. exports.binding = function (name) {
  14207. throw new Error('No such module. (Possibly not yet loaded)')
  14208. };
  14209. (function () {
  14210. var cwd = '/';
  14211. var path;
  14212. exports.cwd = function () { return cwd };
  14213. exports.chdir = function (dir) {
  14214. if (!path) path = __webpack_require__(/*! path */ 816);
  14215. cwd = path.resolve(dir, cwd);
  14216. };
  14217. })();
  14218. exports.exit = exports.kill =
  14219. exports.umask = exports.dlopen =
  14220. exports.uptime = exports.memoryUsage =
  14221. exports.uvCounters = function() {};
  14222. exports.features = {};
  14223. /***/ }),
  14224. /***/ 816:
  14225. /*!***********************************************!*\
  14226. !*** ./node_modules/path-browserify/index.js ***!
  14227. \***********************************************/
  14228. /*! no static exports found */
  14229. /***/ (function(module, exports, __webpack_require__) {
  14230. /* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
  14231. // backported and transplited with Babel, with backwards-compat fixes
  14232. // Copyright Joyent, Inc. and other Node contributors.
  14233. //
  14234. // Permission is hereby granted, free of charge, to any person obtaining a
  14235. // copy of this software and associated documentation files (the
  14236. // "Software"), to deal in the Software without restriction, including
  14237. // without limitation the rights to use, copy, modify, merge, publish,
  14238. // distribute, sublicense, and/or sell copies of the Software, and to permit
  14239. // persons to whom the Software is furnished to do so, subject to the
  14240. // following conditions:
  14241. //
  14242. // The above copyright notice and this permission notice shall be included
  14243. // in all copies or substantial portions of the Software.
  14244. //
  14245. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  14246. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  14247. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  14248. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  14249. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  14250. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  14251. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  14252. // resolves . and .. elements in a path array with directory names there
  14253. // must be no slashes, empty elements, or device names (c:\) in the array
  14254. // (so also no leading and trailing slashes - it does not distinguish
  14255. // relative and absolute paths)
  14256. function normalizeArray(parts, allowAboveRoot) {
  14257. // if the path tries to go above the root, `up` ends up > 0
  14258. var up = 0;
  14259. for (var i = parts.length - 1; i >= 0; i--) {
  14260. var last = parts[i];
  14261. if (last === '.') {
  14262. parts.splice(i, 1);
  14263. } else if (last === '..') {
  14264. parts.splice(i, 1);
  14265. up++;
  14266. } else if (up) {
  14267. parts.splice(i, 1);
  14268. up--;
  14269. }
  14270. }
  14271. // if the path is allowed to go above the root, restore leading ..s
  14272. if (allowAboveRoot) {
  14273. for (; up--; up) {
  14274. parts.unshift('..');
  14275. }
  14276. }
  14277. return parts;
  14278. }
  14279. // path.resolve([from ...], to)
  14280. // posix version
  14281. exports.resolve = function() {
  14282. var resolvedPath = '',
  14283. resolvedAbsolute = false;
  14284. for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
  14285. var path = (i >= 0) ? arguments[i] : process.cwd();
  14286. // Skip empty and invalid entries
  14287. if (typeof path !== 'string') {
  14288. throw new TypeError('Arguments to path.resolve must be strings');
  14289. } else if (!path) {
  14290. continue;
  14291. }
  14292. resolvedPath = path + '/' + resolvedPath;
  14293. resolvedAbsolute = path.charAt(0) === '/';
  14294. }
  14295. // At this point the path should be resolved to a full absolute path, but
  14296. // handle relative paths to be safe (might happen when process.cwd() fails)
  14297. // Normalize the path
  14298. resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
  14299. return !!p;
  14300. }), !resolvedAbsolute).join('/');
  14301. return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
  14302. };
  14303. // path.normalize(path)
  14304. // posix version
  14305. exports.normalize = function(path) {
  14306. var isAbsolute = exports.isAbsolute(path),
  14307. trailingSlash = substr(path, -1) === '/';
  14308. // Normalize the path
  14309. path = normalizeArray(filter(path.split('/'), function(p) {
  14310. return !!p;
  14311. }), !isAbsolute).join('/');
  14312. if (!path && !isAbsolute) {
  14313. path = '.';
  14314. }
  14315. if (path && trailingSlash) {
  14316. path += '/';
  14317. }
  14318. return (isAbsolute ? '/' : '') + path;
  14319. };
  14320. // posix version
  14321. exports.isAbsolute = function(path) {
  14322. return path.charAt(0) === '/';
  14323. };
  14324. // posix version
  14325. exports.join = function() {
  14326. var paths = Array.prototype.slice.call(arguments, 0);
  14327. return exports.normalize(filter(paths, function(p, index) {
  14328. if (typeof p !== 'string') {
  14329. throw new TypeError('Arguments to path.join must be strings');
  14330. }
  14331. return p;
  14332. }).join('/'));
  14333. };
  14334. // path.relative(from, to)
  14335. // posix version
  14336. exports.relative = function(from, to) {
  14337. from = exports.resolve(from).substr(1);
  14338. to = exports.resolve(to).substr(1);
  14339. function trim(arr) {
  14340. var start = 0;
  14341. for (; start < arr.length; start++) {
  14342. if (arr[start] !== '') break;
  14343. }
  14344. var end = arr.length - 1;
  14345. for (; end >= 0; end--) {
  14346. if (arr[end] !== '') break;
  14347. }
  14348. if (start > end) return [];
  14349. return arr.slice(start, end - start + 1);
  14350. }
  14351. var fromParts = trim(from.split('/'));
  14352. var toParts = trim(to.split('/'));
  14353. var length = Math.min(fromParts.length, toParts.length);
  14354. var samePartsLength = length;
  14355. for (var i = 0; i < length; i++) {
  14356. if (fromParts[i] !== toParts[i]) {
  14357. samePartsLength = i;
  14358. break;
  14359. }
  14360. }
  14361. var outputParts = [];
  14362. for (var i = samePartsLength; i < fromParts.length; i++) {
  14363. outputParts.push('..');
  14364. }
  14365. outputParts = outputParts.concat(toParts.slice(samePartsLength));
  14366. return outputParts.join('/');
  14367. };
  14368. exports.sep = '/';
  14369. exports.delimiter = ':';
  14370. exports.dirname = function (path) {
  14371. if (typeof path !== 'string') path = path + '';
  14372. if (path.length === 0) return '.';
  14373. var code = path.charCodeAt(0);
  14374. var hasRoot = code === 47 /*/*/;
  14375. var end = -1;
  14376. var matchedSlash = true;
  14377. for (var i = path.length - 1; i >= 1; --i) {
  14378. code = path.charCodeAt(i);
  14379. if (code === 47 /*/*/) {
  14380. if (!matchedSlash) {
  14381. end = i;
  14382. break;
  14383. }
  14384. } else {
  14385. // We saw the first non-path separator
  14386. matchedSlash = false;
  14387. }
  14388. }
  14389. if (end === -1) return hasRoot ? '/' : '.';
  14390. if (hasRoot && end === 1) {
  14391. // return '//';
  14392. // Backwards-compat fix:
  14393. return '/';
  14394. }
  14395. return path.slice(0, end);
  14396. };
  14397. function basename(path) {
  14398. if (typeof path !== 'string') path = path + '';
  14399. var start = 0;
  14400. var end = -1;
  14401. var matchedSlash = true;
  14402. var i;
  14403. for (i = path.length - 1; i >= 0; --i) {
  14404. if (path.charCodeAt(i) === 47 /*/*/) {
  14405. // If we reached a path separator that was not part of a set of path
  14406. // separators at the end of the string, stop now
  14407. if (!matchedSlash) {
  14408. start = i + 1;
  14409. break;
  14410. }
  14411. } else if (end === -1) {
  14412. // We saw the first non-path separator, mark this as the end of our
  14413. // path component
  14414. matchedSlash = false;
  14415. end = i + 1;
  14416. }
  14417. }
  14418. if (end === -1) return '';
  14419. return path.slice(start, end);
  14420. }
  14421. // Uses a mixed approach for backwards-compatibility, as ext behavior changed
  14422. // in new Node.js versions, so only basename() above is backported here
  14423. exports.basename = function (path, ext) {
  14424. var f = basename(path);
  14425. if (ext && f.substr(-1 * ext.length) === ext) {
  14426. f = f.substr(0, f.length - ext.length);
  14427. }
  14428. return f;
  14429. };
  14430. exports.extname = function (path) {
  14431. if (typeof path !== 'string') path = path + '';
  14432. var startDot = -1;
  14433. var startPart = 0;
  14434. var end = -1;
  14435. var matchedSlash = true;
  14436. // Track the state of characters (if any) we see before our first dot and
  14437. // after any path separator we find
  14438. var preDotState = 0;
  14439. for (var i = path.length - 1; i >= 0; --i) {
  14440. var code = path.charCodeAt(i);
  14441. if (code === 47 /*/*/) {
  14442. // If we reached a path separator that was not part of a set of path
  14443. // separators at the end of the string, stop now
  14444. if (!matchedSlash) {
  14445. startPart = i + 1;
  14446. break;
  14447. }
  14448. continue;
  14449. }
  14450. if (end === -1) {
  14451. // We saw the first non-path separator, mark this as the end of our
  14452. // extension
  14453. matchedSlash = false;
  14454. end = i + 1;
  14455. }
  14456. if (code === 46 /*.*/) {
  14457. // If this is our first dot, mark it as the start of our extension
  14458. if (startDot === -1)
  14459. startDot = i;
  14460. else if (preDotState !== 1)
  14461. preDotState = 1;
  14462. } else if (startDot !== -1) {
  14463. // We saw a non-dot and non-path separator before our dot, so we should
  14464. // have a good chance at having a non-empty extension
  14465. preDotState = -1;
  14466. }
  14467. }
  14468. if (startDot === -1 || end === -1 ||
  14469. // We saw a non-dot character immediately before the dot
  14470. preDotState === 0 ||
  14471. // The (right-most) trimmed path component is exactly '..'
  14472. preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
  14473. return '';
  14474. }
  14475. return path.slice(startDot, end);
  14476. };
  14477. function filter (xs, f) {
  14478. if (xs.filter) return xs.filter(f);
  14479. var res = [];
  14480. for (var i = 0; i < xs.length; i++) {
  14481. if (f(xs[i], i, xs)) res.push(xs[i]);
  14482. }
  14483. return res;
  14484. }
  14485. // String.prototype.substr - negative index don't work in IE8
  14486. var substr = 'ab'.substr(-1) === 'b'
  14487. ? function (str, start, len) { return str.substr(start, len) }
  14488. : function (str, start, len) {
  14489. if (start < 0) start = str.length + start;
  14490. return str.substr(start, len);
  14491. }
  14492. ;
  14493. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ 815)))
  14494. /***/ }),
  14495. /***/ 866:
  14496. /*!************************************************************************!*\
  14497. !*** E:/书嗨项目/book-hi/uview-ui/components/u-parse/libs/MpHtmlParser.js ***!
  14498. \************************************************************************/
  14499. /*! no static exports found */
  14500. /***/ (function(module, exports, __webpack_require__) {
  14501. /* WEBPACK VAR INJECTION */(function(uni) {/**
  14502. * html 解析器
  14503. * @tutorial https://github.com/jin-yufeng/Parser
  14504. * @version 20201029
  14505. * @author JinYufeng
  14506. * @listens MIT
  14507. */
  14508. var cfg = __webpack_require__(/*! ./config.js */ 867),
  14509. blankChar = cfg.blankChar,
  14510. CssHandler = __webpack_require__(/*! ./CssHandler.js */ 868),
  14511. windowWidth = uni.getSystemInfoSync().windowWidth;
  14512. var emoji;
  14513. function MpHtmlParser(data) {
  14514. var _this = this;
  14515. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  14516. this.attrs = {};
  14517. this.CssHandler = new CssHandler(options.tagStyle, windowWidth);
  14518. this.data = data;
  14519. this.domain = options.domain;
  14520. this.DOM = [];
  14521. this.i = this.start = this.audioNum = this.imgNum = this.videoNum = 0;
  14522. options.prot = (this.domain || '').includes('://') ? this.domain.split('://')[0] : 'http';
  14523. this.options = options;
  14524. this.state = this.Text;
  14525. this.STACK = [];
  14526. // 工具函数
  14527. this.bubble = function () {
  14528. for (var i = _this.STACK.length, item; item = _this.STACK[--i];) {
  14529. if (cfg.richOnlyTags[item.name]) return false;
  14530. item.c = 1;
  14531. }
  14532. return true;
  14533. };
  14534. this.decode = function (val, amp) {
  14535. var i = -1,
  14536. j,
  14537. en;
  14538. while (1) {
  14539. if ((i = val.indexOf('&', i + 1)) == -1) break;
  14540. if ((j = val.indexOf(';', i + 2)) == -1) break;
  14541. if (val[i + 1] == '#') {
  14542. en = parseInt((val[i + 2] == 'x' ? '0' : '') + val.substring(i + 2, j));
  14543. if (!isNaN(en)) val = val.substr(0, i) + String.fromCharCode(en) + val.substr(j + 1);
  14544. } else {
  14545. en = val.substring(i + 1, j);
  14546. if (cfg.entities[en] || en == amp) val = val.substr(0, i) + (cfg.entities[en] || '&') + val.substr(j + 1);
  14547. }
  14548. }
  14549. return val;
  14550. };
  14551. this.getUrl = function (url) {
  14552. if (url[0] == '/') {
  14553. if (url[1] == '/') url = _this.options.prot + ':' + url;else if (_this.domain) url = _this.domain + url;
  14554. } else if (_this.domain && url.indexOf('data:') != 0 && !url.includes('://')) url = _this.domain + '/' + url;
  14555. return url;
  14556. };
  14557. this.isClose = function () {
  14558. return _this.data[_this.i] == '>' || _this.data[_this.i] == '/' && _this.data[_this.i + 1] == '>';
  14559. };
  14560. this.section = function () {
  14561. return _this.data.substring(_this.start, _this.i);
  14562. };
  14563. this.parent = function () {
  14564. return _this.STACK[_this.STACK.length - 1];
  14565. };
  14566. this.siblings = function () {
  14567. return _this.STACK.length ? _this.parent().children : _this.DOM;
  14568. };
  14569. }
  14570. MpHtmlParser.prototype.parse = function () {
  14571. if (emoji) this.data = emoji.parseEmoji(this.data);
  14572. for (var c; c = this.data[this.i]; this.i++) {
  14573. this.state(c);
  14574. }
  14575. if (this.state == this.Text) this.setText();
  14576. while (this.STACK.length) {
  14577. this.popNode(this.STACK.pop());
  14578. }
  14579. return this.DOM;
  14580. };
  14581. // 设置属性
  14582. MpHtmlParser.prototype.setAttr = function () {
  14583. var name = this.attrName.toLowerCase(),
  14584. val = this.attrVal;
  14585. if (cfg.boolAttrs[name]) this.attrs[name] = 'T';else if (val) {
  14586. if (name == 'src' || name == 'data-src' && !this.attrs.src) this.attrs.src = this.getUrl(this.decode(val, 'amp'));else if (name == 'href' || name == 'style') this.attrs[name] = this.decode(val, 'amp');else if (name.substr(0, 5) != 'data-') this.attrs[name] = val;
  14587. }
  14588. this.attrVal = '';
  14589. while (blankChar[this.data[this.i]]) {
  14590. this.i++;
  14591. }
  14592. if (this.isClose()) this.setNode();else {
  14593. this.start = this.i;
  14594. this.state = this.AttrName;
  14595. }
  14596. };
  14597. // 设置文本节点
  14598. MpHtmlParser.prototype.setText = function () {
  14599. var back,
  14600. text = this.section();
  14601. if (!text) return;
  14602. text = cfg.onText && cfg.onText(text, function () {
  14603. return back = true;
  14604. }) || text;
  14605. if (back) {
  14606. this.data = this.data.substr(0, this.start) + text + this.data.substr(this.i);
  14607. var j = this.start + text.length;
  14608. for (this.i = this.start; this.i < j; this.i++) {
  14609. this.state(this.data[this.i]);
  14610. }
  14611. return;
  14612. }
  14613. if (!this.pre) {
  14614. // 合并空白符
  14615. var flag,
  14616. tmp = [];
  14617. for (var i = text.length, c; c = text[--i];) {
  14618. if (!blankChar[c]) {
  14619. tmp.unshift(c);
  14620. if (!flag) flag = 1;
  14621. } else {
  14622. if (tmp[0] != ' ') tmp.unshift(' ');
  14623. if (c == '\n' && flag == void 0) flag = 0;
  14624. }
  14625. }
  14626. if (flag == 0) return;
  14627. text = tmp.join('');
  14628. }
  14629. this.siblings().push({
  14630. type: 'text',
  14631. text: this.decode(text)
  14632. });
  14633. };
  14634. // 设置元素节点
  14635. MpHtmlParser.prototype.setNode = function () {
  14636. var node = {
  14637. name: this.tagName.toLowerCase(),
  14638. attrs: this.attrs
  14639. },
  14640. close = cfg.selfClosingTags[node.name];
  14641. if (this.options.nodes.length) node.type = 'node';
  14642. this.attrs = {};
  14643. if (!cfg.ignoreTags[node.name]) {
  14644. // 处理属性
  14645. var attrs = node.attrs,
  14646. style = this.CssHandler.match(node.name, attrs, node) + (attrs.style || ''),
  14647. styleObj = {};
  14648. if (attrs.id) {
  14649. if (this.options.compress & 1) attrs.id = void 0;else if (this.options.useAnchor) this.bubble();
  14650. }
  14651. if (this.options.compress & 2 && attrs.class) attrs.class = void 0;
  14652. switch (node.name) {
  14653. case 'a':
  14654. case 'ad':
  14655. this.bubble();
  14656. break;
  14657. case 'font':
  14658. if (attrs.color) {
  14659. styleObj['color'] = attrs.color;
  14660. attrs.color = void 0;
  14661. }
  14662. if (attrs.face) {
  14663. styleObj['font-family'] = attrs.face;
  14664. attrs.face = void 0;
  14665. }
  14666. if (attrs.size) {
  14667. var size = parseInt(attrs.size);
  14668. if (size < 1) size = 1;else if (size > 7) size = 7;
  14669. var map = ['xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large'];
  14670. styleObj['font-size'] = map[size - 1];
  14671. attrs.size = void 0;
  14672. }
  14673. break;
  14674. case 'embed':
  14675. var src = node.attrs.src || '',
  14676. type = node.attrs.type || '';
  14677. if (type.includes('video') || src.includes('.mp4') || src.includes('.3gp') || src.includes('.m3u8')) node.name = 'video';else if (type.includes('audio') || src.includes('.m4a') || src.includes('.wav') || src.includes('.mp3') || src.includes('.aac')) node.name = 'audio';else break;
  14678. if (node.attrs.autostart) node.attrs.autoplay = 'T';
  14679. node.attrs.controls = 'T';
  14680. case 'video':
  14681. case 'audio':
  14682. if (!attrs.id) attrs.id = node.name + ++this["".concat(node.name, "Num")];else this["".concat(node.name, "Num")]++;
  14683. if (node.name == 'video') {
  14684. if (this.videoNum > 3) node.lazyLoad = 1;
  14685. if (attrs.width) {
  14686. styleObj.width = parseFloat(attrs.width) + (attrs.width.includes('%') ? '%' : 'px');
  14687. attrs.width = void 0;
  14688. }
  14689. if (attrs.height) {
  14690. styleObj.height = parseFloat(attrs.height) + (attrs.height.includes('%') ? '%' : 'px');
  14691. attrs.height = void 0;
  14692. }
  14693. }
  14694. if (!attrs.controls && !attrs.autoplay) attrs.controls = 'T';
  14695. attrs.source = [];
  14696. if (attrs.src) {
  14697. attrs.source.push(attrs.src);
  14698. attrs.src = void 0;
  14699. }
  14700. this.bubble();
  14701. break;
  14702. case 'td':
  14703. case 'th':
  14704. if (attrs.colspan || attrs.rowspan) for (var k = this.STACK.length, item; item = this.STACK[--k];) {
  14705. if (item.name == 'table') {
  14706. item.flag = 1;
  14707. break;
  14708. }
  14709. }
  14710. }
  14711. if (attrs.align) {
  14712. if (node.name == 'table') {
  14713. if (attrs.align == 'center') styleObj['margin-inline-start'] = styleObj['margin-inline-end'] = 'auto';else styleObj['float'] = attrs.align;
  14714. } else styleObj['text-align'] = attrs.align;
  14715. attrs.align = void 0;
  14716. }
  14717. // 压缩 style
  14718. var styles = style.split(';');
  14719. style = '';
  14720. for (var i = 0, len = styles.length; i < len; i++) {
  14721. var info = styles[i].split(':');
  14722. if (info.length < 2) continue;
  14723. var _key = info[0].trim().toLowerCase(),
  14724. _value = info.slice(1).join(':').trim();
  14725. if (_value[0] == '-' || _value.includes('safe')) style += ";".concat(_key, ":").concat(_value);else if (!styleObj[_key] || _value.includes('import') || !styleObj[_key].includes('import')) styleObj[_key] = _value;
  14726. }
  14727. if (node.name == 'img') {
  14728. if (attrs.src && !attrs.ignore) {
  14729. if (this.bubble()) attrs.i = (this.imgNum++).toString();else attrs.ignore = 'T';
  14730. }
  14731. if (attrs.ignore) {
  14732. style += ';-webkit-touch-callout:none';
  14733. styleObj['max-width'] = '100%';
  14734. }
  14735. var width;
  14736. if (styleObj.width) width = styleObj.width;else if (attrs.width) width = attrs.width.includes('%') ? attrs.width : parseFloat(attrs.width) + 'px';
  14737. if (width) {
  14738. styleObj.width = width;
  14739. attrs.width = '100%';
  14740. if (parseInt(width) > windowWidth) {
  14741. styleObj.height = '';
  14742. if (attrs.height) attrs.height = void 0;
  14743. }
  14744. }
  14745. if (styleObj.height) {
  14746. attrs.height = styleObj.height;
  14747. styleObj.height = '';
  14748. } else if (attrs.height && !attrs.height.includes('%')) attrs.height = parseFloat(attrs.height) + 'px';
  14749. }
  14750. for (var key in styleObj) {
  14751. var value = styleObj[key];
  14752. if (!value) continue;
  14753. if (key.includes('flex') || key == 'order' || key == 'self-align') node.c = 1;
  14754. // 填充链接
  14755. if (value.includes('url')) {
  14756. var j = value.indexOf('(');
  14757. if (j++ != -1) {
  14758. while (value[j] == '"' || value[j] == "'" || blankChar[value[j]]) {
  14759. j++;
  14760. }
  14761. value = value.substr(0, j) + this.getUrl(value.substr(j));
  14762. }
  14763. }
  14764. // 转换 rpx
  14765. else if (value.includes('rpx')) value = value.replace(/[0-9.]+\s*rpx/g, function ($) {
  14766. return parseFloat($) * windowWidth / 750 + 'px';
  14767. });else if (key == 'white-space' && value.includes('pre') && !close) this.pre = node.pre = true;
  14768. style += ";".concat(key, ":").concat(value);
  14769. }
  14770. style = style.substr(1);
  14771. if (style) attrs.style = style;
  14772. if (!close) {
  14773. node.children = [];
  14774. if (node.name == 'pre' && cfg.highlight) {
  14775. this.remove(node);
  14776. this.pre = node.pre = true;
  14777. }
  14778. this.siblings().push(node);
  14779. this.STACK.push(node);
  14780. } else if (!cfg.filter || cfg.filter(node, this) != false) this.siblings().push(node);
  14781. } else {
  14782. if (!close) this.remove(node);else if (node.name == 'source') {
  14783. var parent = this.parent();
  14784. if (parent && (parent.name == 'video' || parent.name == 'audio') && node.attrs.src) parent.attrs.source.push(node.attrs.src);
  14785. } else if (node.name == 'base' && !this.domain) this.domain = node.attrs.href;
  14786. }
  14787. if (this.data[this.i] == '/') this.i++;
  14788. this.start = this.i + 1;
  14789. this.state = this.Text;
  14790. };
  14791. // 移除标签
  14792. MpHtmlParser.prototype.remove = function (node) {
  14793. var _this2 = this;
  14794. var name = node.name,
  14795. j = this.i;
  14796. // 处理 svg
  14797. var handleSvg = function handleSvg() {
  14798. var src = _this2.data.substring(j, _this2.i + 1);
  14799. node.attrs.xmlns = 'http://www.w3.org/2000/svg';
  14800. for (var key in node.attrs) {
  14801. if (key == 'viewbox') src = " viewBox=\"".concat(node.attrs.viewbox, "\"") + src;else if (key != 'style') src = " ".concat(key, "=\"").concat(node.attrs[key], "\"") + src;
  14802. }
  14803. src = '<svg' + src;
  14804. var parent = _this2.parent();
  14805. if (node.attrs.width == '100%' && parent && (parent.attrs.style || '').includes('inline')) parent.attrs.style = 'width:300px;max-width:100%;' + parent.attrs.style;
  14806. _this2.siblings().push({
  14807. name: 'img',
  14808. attrs: {
  14809. src: 'data:image/svg+xml;utf8,' + src.replace(/#/g, '%23'),
  14810. style: node.attrs.style,
  14811. ignore: 'T'
  14812. }
  14813. });
  14814. };
  14815. if (node.name == 'svg' && this.data[j] == '/') return handleSvg(this.i++);
  14816. while (1) {
  14817. if ((this.i = this.data.indexOf('</', this.i + 1)) == -1) {
  14818. if (name == 'pre' || name == 'svg') this.i = j;else this.i = this.data.length;
  14819. return;
  14820. }
  14821. this.start = this.i += 2;
  14822. while (!blankChar[this.data[this.i]] && !this.isClose()) {
  14823. this.i++;
  14824. }
  14825. if (this.section().toLowerCase() == name) {
  14826. // 代码块高亮
  14827. if (name == 'pre') {
  14828. this.data = this.data.substr(0, j + 1) + cfg.highlight(this.data.substring(j + 1, this.i - 5), node.attrs) + this.data.substr(this.i - 5);
  14829. return this.i = j;
  14830. } else if (name == 'style') this.CssHandler.getStyle(this.data.substring(j + 1, this.i - 7));else if (name == 'title') this.DOM.title = this.data.substring(j + 1, this.i - 7);
  14831. if ((this.i = this.data.indexOf('>', this.i)) == -1) this.i = this.data.length;
  14832. if (name == 'svg') handleSvg();
  14833. return;
  14834. }
  14835. }
  14836. };
  14837. // 节点出栈处理
  14838. MpHtmlParser.prototype.popNode = function (node) {
  14839. // 空白符处理
  14840. if (node.pre) {
  14841. node.pre = this.pre = void 0;
  14842. for (var i = this.STACK.length; i--;) {
  14843. if (this.STACK[i].pre) this.pre = true;
  14844. }
  14845. }
  14846. var siblings = this.siblings(),
  14847. len = siblings.length,
  14848. childs = node.children;
  14849. if (node.name == 'head' || cfg.filter && cfg.filter(node, this) == false) return siblings.pop();
  14850. var attrs = node.attrs;
  14851. // 替换一些标签名
  14852. if (cfg.blockTags[node.name]) node.name = 'div';else if (!cfg.trustTags[node.name]) node.name = 'span';
  14853. // 处理列表
  14854. if (node.c && (node.name == 'ul' || node.name == 'ol')) {
  14855. if ((node.attrs.style || '').includes('list-style:none')) {
  14856. for (var _i = 0, child; child = childs[_i++];) {
  14857. if (child.name == 'li') child.name = 'div';
  14858. }
  14859. } else if (node.name == 'ul') {
  14860. var floor = 1;
  14861. for (var _i2 = this.STACK.length; _i2--;) {
  14862. if (this.STACK[_i2].name == 'ul') floor++;
  14863. }
  14864. if (floor != 1) for (var _i3 = childs.length; _i3--;) {
  14865. childs[_i3].floor = floor;
  14866. }
  14867. } else {
  14868. for (var _i4 = 0, num = 1, _child; _child = childs[_i4++];) {
  14869. if (_child.name == 'li') {
  14870. _child.type = 'ol';
  14871. _child.num = function (num, type) {
  14872. if (type == 'a') return String.fromCharCode(97 + (num - 1) % 26);
  14873. if (type == 'A') return String.fromCharCode(65 + (num - 1) % 26);
  14874. if (type == 'i' || type == 'I') {
  14875. num = (num - 1) % 99 + 1;
  14876. var one = ['I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX'],
  14877. ten = ['X', 'XX', 'XXX', 'XL', 'L', 'LX', 'LXX', 'LXXX', 'XC'],
  14878. res = (ten[Math.floor(num / 10) - 1] || '') + (one[num % 10 - 1] || '');
  14879. if (type == 'i') return res.toLowerCase();
  14880. return res;
  14881. }
  14882. return num;
  14883. }(num++, attrs.type) + '.';
  14884. }
  14885. }
  14886. }
  14887. }
  14888. // 处理表格
  14889. if (node.name == 'table') {
  14890. var padding = parseFloat(attrs.cellpadding),
  14891. spacing = parseFloat(attrs.cellspacing),
  14892. border = parseFloat(attrs.border);
  14893. if (node.c) {
  14894. if (isNaN(padding)) padding = 2;
  14895. if (isNaN(spacing)) spacing = 2;
  14896. }
  14897. if (border) attrs.style = "border:".concat(border, "px solid gray;").concat(attrs.style || '');
  14898. if (node.flag && node.c) {
  14899. // 有 colspan 或 rowspan 且含有链接的表格转为 grid 布局实现
  14900. attrs.style = "".concat(attrs.style || '', ";").concat(spacing ? ";grid-gap:".concat(spacing, "px") : ';border-left:0;border-top:0');
  14901. var row = 1,
  14902. col = 1,
  14903. colNum,
  14904. trs = [],
  14905. children = [],
  14906. map = {};
  14907. (function f(ns) {
  14908. for (var i = 0; i < ns.length; i++) {
  14909. if (ns[i].name == 'tr') trs.push(ns[i]);else f(ns[i].children || []);
  14910. }
  14911. })(node.children);
  14912. for (var _i5 = 0; _i5 < trs.length; _i5++) {
  14913. for (var j = 0, td; td = trs[_i5].children[j]; j++) {
  14914. if (td.name == 'td' || td.name == 'th') {
  14915. while (map[row + '.' + col]) {
  14916. col++;
  14917. }
  14918. var cell = {
  14919. name: 'div',
  14920. c: 1,
  14921. attrs: {
  14922. style: (td.attrs.style || '') + (border ? ";border:".concat(border, "px solid gray") + (spacing ? '' : ';border-right:0;border-bottom:0') : '') + (padding ? ";padding:".concat(padding, "px") : '')
  14923. },
  14924. children: td.children
  14925. };
  14926. if (td.attrs.colspan) {
  14927. cell.attrs.style += ';grid-column-start:' + col + ';grid-column-end:' + (col + parseInt(td.attrs.colspan));
  14928. if (!td.attrs.rowspan) cell.attrs.style += ';grid-row-start:' + row + ';grid-row-end:' + (row + 1);
  14929. col += parseInt(td.attrs.colspan) - 1;
  14930. }
  14931. if (td.attrs.rowspan) {
  14932. cell.attrs.style += ';grid-row-start:' + row + ';grid-row-end:' + (row + parseInt(td.attrs.rowspan));
  14933. if (!td.attrs.colspan) cell.attrs.style += ';grid-column-start:' + col + ';grid-column-end:' + (col + 1);
  14934. for (var k = 1; k < td.attrs.rowspan; k++) {
  14935. map[row + k + '.' + col] = 1;
  14936. }
  14937. }
  14938. children.push(cell);
  14939. col++;
  14940. }
  14941. }
  14942. if (!colNum) {
  14943. colNum = col - 1;
  14944. attrs.style += ";grid-template-columns:repeat(".concat(colNum, ",auto)");
  14945. }
  14946. col = 1;
  14947. row++;
  14948. }
  14949. node.children = children;
  14950. } else {
  14951. attrs.style = "border-spacing:".concat(spacing, "px;").concat(attrs.style || '');
  14952. if (border || padding) (function f(ns) {
  14953. for (var i = 0, n; n = ns[i]; i++) {
  14954. if (n.name == 'th' || n.name == 'td') {
  14955. if (border) n.attrs.style = "border:".concat(border, "px solid gray;").concat(n.attrs.style || '');
  14956. if (padding) n.attrs.style = "padding:".concat(padding, "px;").concat(n.attrs.style || '');
  14957. } else f(n.children || []);
  14958. }
  14959. })(childs);
  14960. }
  14961. if (this.options.autoscroll) {
  14962. var table = Object.assign({}, node);
  14963. node.name = 'div';
  14964. node.attrs = {
  14965. style: 'overflow:scroll'
  14966. };
  14967. node.children = [table];
  14968. }
  14969. }
  14970. this.CssHandler.pop && this.CssHandler.pop(node);
  14971. // 自动压缩
  14972. if (node.name == 'div' && !Object.keys(attrs).length && childs.length == 1 && childs[0].name == 'div') siblings[len - 1] = childs[0];
  14973. };
  14974. // 状态机
  14975. MpHtmlParser.prototype.Text = function (c) {
  14976. if (c == '<') {
  14977. var next = this.data[this.i + 1],
  14978. isLetter = function isLetter(c) {
  14979. return c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z';
  14980. };
  14981. if (isLetter(next)) {
  14982. this.setText();
  14983. this.start = this.i + 1;
  14984. this.state = this.TagName;
  14985. } else if (next == '/') {
  14986. this.setText();
  14987. if (isLetter(this.data[++this.i + 1])) {
  14988. this.start = this.i + 1;
  14989. this.state = this.EndTag;
  14990. } else this.Comment();
  14991. } else if (next == '!' || next == '?') {
  14992. this.setText();
  14993. this.Comment();
  14994. }
  14995. }
  14996. };
  14997. MpHtmlParser.prototype.Comment = function () {
  14998. var key;
  14999. if (this.data.substring(this.i + 2, this.i + 4) == '--') key = '-->';else if (this.data.substring(this.i + 2, this.i + 9) == '[CDATA[') key = ']]>';else key = '>';
  15000. if ((this.i = this.data.indexOf(key, this.i + 2)) == -1) this.i = this.data.length;else this.i += key.length - 1;
  15001. this.start = this.i + 1;
  15002. this.state = this.Text;
  15003. };
  15004. MpHtmlParser.prototype.TagName = function (c) {
  15005. if (blankChar[c]) {
  15006. this.tagName = this.section();
  15007. while (blankChar[this.data[this.i]]) {
  15008. this.i++;
  15009. }
  15010. if (this.isClose()) this.setNode();else {
  15011. this.start = this.i;
  15012. this.state = this.AttrName;
  15013. }
  15014. } else if (this.isClose()) {
  15015. this.tagName = this.section();
  15016. this.setNode();
  15017. }
  15018. };
  15019. MpHtmlParser.prototype.AttrName = function (c) {
  15020. if (c == '=' || blankChar[c] || this.isClose()) {
  15021. this.attrName = this.section();
  15022. if (blankChar[c]) while (blankChar[this.data[++this.i]]) {
  15023. ;
  15024. }
  15025. if (this.data[this.i] == '=') {
  15026. while (blankChar[this.data[++this.i]]) {
  15027. ;
  15028. }
  15029. this.start = this.i--;
  15030. this.state = this.AttrValue;
  15031. } else this.setAttr();
  15032. }
  15033. };
  15034. MpHtmlParser.prototype.AttrValue = function (c) {
  15035. if (c == '"' || c == "'") {
  15036. this.start++;
  15037. if ((this.i = this.data.indexOf(c, this.i + 1)) == -1) return this.i = this.data.length;
  15038. this.attrVal = this.section();
  15039. this.i++;
  15040. } else {
  15041. for (; !blankChar[this.data[this.i]] && !this.isClose(); this.i++) {
  15042. ;
  15043. }
  15044. this.attrVal = this.section();
  15045. }
  15046. this.setAttr();
  15047. };
  15048. MpHtmlParser.prototype.EndTag = function (c) {
  15049. if (blankChar[c] || c == '>' || c == '/') {
  15050. var name = this.section().toLowerCase();
  15051. for (var i = this.STACK.length; i--;) {
  15052. if (this.STACK[i].name == name) break;
  15053. }
  15054. if (i != -1) {
  15055. var node;
  15056. while ((node = this.STACK.pop()).name != name) {
  15057. this.popNode(node);
  15058. }
  15059. this.popNode(node);
  15060. } else if (name == 'p' || name == 'br') this.siblings().push({
  15061. name: name,
  15062. attrs: {}
  15063. });
  15064. this.i = this.data.indexOf('>', this.i);
  15065. this.start = this.i + 1;
  15066. if (this.i == -1) this.i = this.data.length;else this.state = this.Text;
  15067. }
  15068. };
  15069. module.exports = MpHtmlParser;
  15070. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  15071. /***/ }),
  15072. /***/ 867:
  15073. /*!******************************************************************!*\
  15074. !*** E:/书嗨项目/book-hi/uview-ui/components/u-parse/libs/config.js ***!
  15075. \******************************************************************/
  15076. /*! no static exports found */
  15077. /***/ (function(module, exports, __webpack_require__) {
  15078. /* WEBPACK VAR INJECTION */(function(wx) {/* 配置文件 */
  15079. var cfg = {
  15080. // 出错占位图
  15081. errorImg: null,
  15082. // 过滤器函数
  15083. filter: null,
  15084. // 代码高亮函数
  15085. highlight: null,
  15086. // 文本处理函数
  15087. onText: null,
  15088. // 实体编码列表
  15089. entities: {
  15090. quot: '"',
  15091. apos: "'",
  15092. semi: ';',
  15093. nbsp: '\xA0',
  15094. ensp: "\u2002",
  15095. emsp: "\u2003",
  15096. ndash: '–',
  15097. mdash: '—',
  15098. middot: '·',
  15099. lsquo: '‘',
  15100. rsquo: '’',
  15101. ldquo: '“',
  15102. rdquo: '”',
  15103. bull: '•',
  15104. hellip: '…'
  15105. },
  15106. blankChar: makeMap(' ,\xA0,\t,\r,\n,\f'),
  15107. boolAttrs: makeMap('allowfullscreen,autoplay,autostart,controls,ignore,loop,muted'),
  15108. // 块级标签,将被转为 div
  15109. blockTags: makeMap('address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section'),
  15110. // 将被移除的标签
  15111. ignoreTags: makeMap('area,base,canvas,frame,iframe,input,link,map,meta,param,script,source,style,svg,textarea,title,track,wbr'),
  15112. // 只能被 rich-text 显示的标签
  15113. richOnlyTags: makeMap('a,colgroup,fieldset,legend'),
  15114. // 自闭合的标签
  15115. selfClosingTags: makeMap('area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr'),
  15116. // 信任的标签
  15117. trustTags: makeMap('a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video'),
  15118. // 默认的标签样式
  15119. userAgentStyles: {
  15120. address: 'font-style:italic',
  15121. big: 'display:inline;font-size:1.2em',
  15122. blockquote: 'background-color:#f6f6f6;border-left:3px solid #dbdbdb;color:#6c6c6c;padding:5px 0 5px 10px',
  15123. caption: 'display:table-caption;text-align:center',
  15124. center: 'text-align:center',
  15125. cite: 'font-style:italic',
  15126. dd: 'margin-left:40px',
  15127. mark: 'background-color:yellow',
  15128. pre: 'font-family:monospace;white-space:pre;overflow:scroll',
  15129. s: 'text-decoration:line-through',
  15130. small: 'display:inline;font-size:0.8em',
  15131. u: 'text-decoration:underline'
  15132. }
  15133. };
  15134. function makeMap(str) {
  15135. var map = Object.create(null),
  15136. list = str.split(',');
  15137. for (var i = list.length; i--;) {
  15138. map[list[i]] = true;
  15139. }
  15140. return map;
  15141. }
  15142. if (wx.canIUse('editor')) {
  15143. cfg.blockTags.pre = void 0;
  15144. cfg.ignoreTags.rp = true;
  15145. Object.assign(cfg.richOnlyTags, makeMap('bdi,bdo,caption,rt,ruby'));
  15146. Object.assign(cfg.trustTags, makeMap('bdi,bdo,caption,pre,rt,ruby'));
  15147. }
  15148. module.exports = cfg;
  15149. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  15150. /***/ }),
  15151. /***/ 868:
  15152. /*!**********************************************************************!*\
  15153. !*** E:/书嗨项目/book-hi/uview-ui/components/u-parse/libs/CssHandler.js ***!
  15154. \**********************************************************************/
  15155. /*! no static exports found */
  15156. /***/ (function(module, exports, __webpack_require__) {
  15157. var cfg = __webpack_require__(/*! ./config.js */ 867),
  15158. isLetter = function isLetter(c) {
  15159. return c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z';
  15160. };
  15161. function CssHandler(tagStyle) {
  15162. var styles = Object.assign(Object.create(null), cfg.userAgentStyles);
  15163. for (var item in tagStyle) {
  15164. styles[item] = (styles[item] ? styles[item] + ';' : '') + tagStyle[item];
  15165. }
  15166. this.styles = styles;
  15167. }
  15168. CssHandler.prototype.getStyle = function (data) {
  15169. this.styles = new parser(data, this.styles).parse();
  15170. };
  15171. CssHandler.prototype.match = function (name, attrs) {
  15172. var tmp,
  15173. matched = (tmp = this.styles[name]) ? tmp + ';' : '';
  15174. if (attrs.class) {
  15175. var items = attrs.class.split(' ');
  15176. for (var i = 0, item; item = items[i]; i++) {
  15177. if (tmp = this.styles['.' + item]) matched += tmp + ';';
  15178. }
  15179. }
  15180. if (tmp = this.styles['#' + attrs.id]) matched += tmp + ';';
  15181. return matched;
  15182. };
  15183. module.exports = CssHandler;
  15184. function parser(data, init) {
  15185. this.data = data;
  15186. this.floor = 0;
  15187. this.i = 0;
  15188. this.list = [];
  15189. this.res = init;
  15190. this.state = this.Space;
  15191. }
  15192. parser.prototype.parse = function () {
  15193. for (var c; c = this.data[this.i]; this.i++) {
  15194. this.state(c);
  15195. }
  15196. return this.res;
  15197. };
  15198. parser.prototype.section = function () {
  15199. return this.data.substring(this.start, this.i);
  15200. };
  15201. // 状态机
  15202. parser.prototype.Space = function (c) {
  15203. if (c == '.' || c == '#' || isLetter(c)) {
  15204. this.start = this.i;
  15205. this.state = this.Name;
  15206. } else if (c == '/' && this.data[this.i + 1] == '*') this.Comment();else if (!cfg.blankChar[c] && c != ';') this.state = this.Ignore;
  15207. };
  15208. parser.prototype.Comment = function () {
  15209. this.i = this.data.indexOf('*/', this.i) + 1;
  15210. if (!this.i) this.i = this.data.length;
  15211. this.state = this.Space;
  15212. };
  15213. parser.prototype.Ignore = function (c) {
  15214. if (c == '{') this.floor++;else if (c == '}' && ! --this.floor) {
  15215. this.list = [];
  15216. this.state = this.Space;
  15217. }
  15218. };
  15219. parser.prototype.Name = function (c) {
  15220. if (cfg.blankChar[c]) {
  15221. this.list.push(this.section());
  15222. this.state = this.NameSpace;
  15223. } else if (c == '{') {
  15224. this.list.push(this.section());
  15225. this.Content();
  15226. } else if (c == ',') {
  15227. this.list.push(this.section());
  15228. this.Comma();
  15229. } else if (!isLetter(c) && (c < '0' || c > '9') && c != '-' && c != '_') this.state = this.Ignore;
  15230. };
  15231. parser.prototype.NameSpace = function (c) {
  15232. if (c == '{') this.Content();else if (c == ',') this.Comma();else if (!cfg.blankChar[c]) this.state = this.Ignore;
  15233. };
  15234. parser.prototype.Comma = function () {
  15235. while (cfg.blankChar[this.data[++this.i]]) {
  15236. ;
  15237. }
  15238. if (this.data[this.i] == '{') this.Content();else {
  15239. this.start = this.i--;
  15240. this.state = this.Name;
  15241. }
  15242. };
  15243. parser.prototype.Content = function () {
  15244. this.start = ++this.i;
  15245. if ((this.i = this.data.indexOf('}', this.i)) == -1) this.i = this.data.length;
  15246. var content = this.section();
  15247. for (var i = 0, item; item = this.list[i++];) {
  15248. if (this.res[item]) this.res[item] += ';' + content;else this.res[item] = content;
  15249. }
  15250. this.list = [];
  15251. this.state = this.Space;
  15252. };
  15253. /***/ }),
  15254. /***/ 9:
  15255. /*!*****************************************************************!*\
  15256. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  15257. \*****************************************************************/
  15258. /*! no static exports found */
  15259. /***/ (function(module, exports) {
  15260. function _arrayLikeToArray(arr, len) {
  15261. if (len == null || len > arr.length) len = arr.length;
  15262. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  15263. arr2[i] = arr[i];
  15264. }
  15265. return arr2;
  15266. }
  15267. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  15268. /***/ }),
  15269. /***/ 904:
  15270. /*!******************************************************!*\
  15271. !*** E:/书嗨项目/book-hi/uview-ui/libs/util/province.js ***!
  15272. \******************************************************/
  15273. /*! no static exports found */
  15274. /***/ (function(module, exports, __webpack_require__) {
  15275. "use strict";
  15276. Object.defineProperty(exports, "__esModule", {
  15277. value: true
  15278. });
  15279. exports.default = void 0;
  15280. var provinceData = [{
  15281. "label": "北京市",
  15282. "value": "11"
  15283. }, {
  15284. "label": "天津市",
  15285. "value": "12"
  15286. }, {
  15287. "label": "河北省",
  15288. "value": "13"
  15289. }, {
  15290. "label": "山西省",
  15291. "value": "14"
  15292. }, {
  15293. "label": "内蒙古自治区",
  15294. "value": "15"
  15295. }, {
  15296. "label": "辽宁省",
  15297. "value": "21"
  15298. }, {
  15299. "label": "吉林省",
  15300. "value": "22"
  15301. }, {
  15302. "label": "黑龙江省",
  15303. "value": "23"
  15304. }, {
  15305. "label": "上海市",
  15306. "value": "31"
  15307. }, {
  15308. "label": "江苏省",
  15309. "value": "32"
  15310. }, {
  15311. "label": "浙江省",
  15312. "value": "33"
  15313. }, {
  15314. "label": "安徽省",
  15315. "value": "34"
  15316. }, {
  15317. "label": "福建省",
  15318. "value": "35"
  15319. }, {
  15320. "label": "江西省",
  15321. "value": "36"
  15322. }, {
  15323. "label": "山东省",
  15324. "value": "37"
  15325. }, {
  15326. "label": "河南省",
  15327. "value": "41"
  15328. }, {
  15329. "label": "湖北省",
  15330. "value": "42"
  15331. }, {
  15332. "label": "湖南省",
  15333. "value": "43"
  15334. }, {
  15335. "label": "广东省",
  15336. "value": "44"
  15337. }, {
  15338. "label": "广西壮族自治区",
  15339. "value": "45"
  15340. }, {
  15341. "label": "海南省",
  15342. "value": "46"
  15343. }, {
  15344. "label": "重庆市",
  15345. "value": "50"
  15346. }, {
  15347. "label": "四川省",
  15348. "value": "51"
  15349. }, {
  15350. "label": "贵州省",
  15351. "value": "52"
  15352. }, {
  15353. "label": "云南省",
  15354. "value": "53"
  15355. }, {
  15356. "label": "西藏自治区",
  15357. "value": "54"
  15358. }, {
  15359. "label": "陕西省",
  15360. "value": "61"
  15361. }, {
  15362. "label": "甘肃省",
  15363. "value": "62"
  15364. }, {
  15365. "label": "青海省",
  15366. "value": "63"
  15367. }, {
  15368. "label": "宁夏回族自治区",
  15369. "value": "64"
  15370. }, {
  15371. "label": "新疆维吾尔自治区",
  15372. "value": "65"
  15373. }, {
  15374. "label": "台湾",
  15375. "value": "66"
  15376. }, {
  15377. "label": "香港",
  15378. "value": "67"
  15379. }, {
  15380. "label": "澳门",
  15381. "value": "68"
  15382. }];
  15383. var _default = provinceData;
  15384. exports.default = _default;
  15385. /***/ }),
  15386. /***/ 905:
  15387. /*!**************************************************!*\
  15388. !*** E:/书嗨项目/book-hi/uview-ui/libs/util/city.js ***!
  15389. \**************************************************/
  15390. /*! no static exports found */
  15391. /***/ (function(module, exports, __webpack_require__) {
  15392. "use strict";
  15393. Object.defineProperty(exports, "__esModule", {
  15394. value: true
  15395. });
  15396. exports.default = void 0;
  15397. var cityData = [[{
  15398. "label": "市辖区",
  15399. "value": "1101"
  15400. }], [{
  15401. "label": "市辖区",
  15402. "value": "1201"
  15403. }], [{
  15404. "label": "石家庄市",
  15405. "value": "1301"
  15406. }, {
  15407. "label": "唐山市",
  15408. "value": "1302"
  15409. }, {
  15410. "label": "秦皇岛市",
  15411. "value": "1303"
  15412. }, {
  15413. "label": "邯郸市",
  15414. "value": "1304"
  15415. }, {
  15416. "label": "邢台市",
  15417. "value": "1305"
  15418. }, {
  15419. "label": "保定市",
  15420. "value": "1306"
  15421. }, {
  15422. "label": "张家口市",
  15423. "value": "1307"
  15424. }, {
  15425. "label": "承德市",
  15426. "value": "1308"
  15427. }, {
  15428. "label": "沧州市",
  15429. "value": "1309"
  15430. }, {
  15431. "label": "廊坊市",
  15432. "value": "1310"
  15433. }, {
  15434. "label": "衡水市",
  15435. "value": "1311"
  15436. }], [{
  15437. "label": "太原市",
  15438. "value": "1401"
  15439. }, {
  15440. "label": "大同市",
  15441. "value": "1402"
  15442. }, {
  15443. "label": "阳泉市",
  15444. "value": "1403"
  15445. }, {
  15446. "label": "长治市",
  15447. "value": "1404"
  15448. }, {
  15449. "label": "晋城市",
  15450. "value": "1405"
  15451. }, {
  15452. "label": "朔州市",
  15453. "value": "1406"
  15454. }, {
  15455. "label": "晋中市",
  15456. "value": "1407"
  15457. }, {
  15458. "label": "运城市",
  15459. "value": "1408"
  15460. }, {
  15461. "label": "忻州市",
  15462. "value": "1409"
  15463. }, {
  15464. "label": "临汾市",
  15465. "value": "1410"
  15466. }, {
  15467. "label": "吕梁市",
  15468. "value": "1411"
  15469. }], [{
  15470. "label": "呼和浩特市",
  15471. "value": "1501"
  15472. }, {
  15473. "label": "包头市",
  15474. "value": "1502"
  15475. }, {
  15476. "label": "乌海市",
  15477. "value": "1503"
  15478. }, {
  15479. "label": "赤峰市",
  15480. "value": "1504"
  15481. }, {
  15482. "label": "通辽市",
  15483. "value": "1505"
  15484. }, {
  15485. "label": "鄂尔多斯市",
  15486. "value": "1506"
  15487. }, {
  15488. "label": "呼伦贝尔市",
  15489. "value": "1507"
  15490. }, {
  15491. "label": "巴彦淖尔市",
  15492. "value": "1508"
  15493. }, {
  15494. "label": "乌兰察布市",
  15495. "value": "1509"
  15496. }, {
  15497. "label": "兴安盟",
  15498. "value": "1522"
  15499. }, {
  15500. "label": "锡林郭勒盟",
  15501. "value": "1525"
  15502. }, {
  15503. "label": "阿拉善盟",
  15504. "value": "1529"
  15505. }], [{
  15506. "label": "沈阳市",
  15507. "value": "2101"
  15508. }, {
  15509. "label": "大连市",
  15510. "value": "2102"
  15511. }, {
  15512. "label": "鞍山市",
  15513. "value": "2103"
  15514. }, {
  15515. "label": "抚顺市",
  15516. "value": "2104"
  15517. }, {
  15518. "label": "本溪市",
  15519. "value": "2105"
  15520. }, {
  15521. "label": "丹东市",
  15522. "value": "2106"
  15523. }, {
  15524. "label": "锦州市",
  15525. "value": "2107"
  15526. }, {
  15527. "label": "营口市",
  15528. "value": "2108"
  15529. }, {
  15530. "label": "阜新市",
  15531. "value": "2109"
  15532. }, {
  15533. "label": "辽阳市",
  15534. "value": "2110"
  15535. }, {
  15536. "label": "盘锦市",
  15537. "value": "2111"
  15538. }, {
  15539. "label": "铁岭市",
  15540. "value": "2112"
  15541. }, {
  15542. "label": "朝阳市",
  15543. "value": "2113"
  15544. }, {
  15545. "label": "葫芦岛市",
  15546. "value": "2114"
  15547. }], [{
  15548. "label": "长春市",
  15549. "value": "2201"
  15550. }, {
  15551. "label": "吉林市",
  15552. "value": "2202"
  15553. }, {
  15554. "label": "四平市",
  15555. "value": "2203"
  15556. }, {
  15557. "label": "辽源市",
  15558. "value": "2204"
  15559. }, {
  15560. "label": "通化市",
  15561. "value": "2205"
  15562. }, {
  15563. "label": "白山市",
  15564. "value": "2206"
  15565. }, {
  15566. "label": "松原市",
  15567. "value": "2207"
  15568. }, {
  15569. "label": "白城市",
  15570. "value": "2208"
  15571. }, {
  15572. "label": "延边朝鲜族自治州",
  15573. "value": "2224"
  15574. }], [{
  15575. "label": "哈尔滨市",
  15576. "value": "2301"
  15577. }, {
  15578. "label": "齐齐哈尔市",
  15579. "value": "2302"
  15580. }, {
  15581. "label": "鸡西市",
  15582. "value": "2303"
  15583. }, {
  15584. "label": "鹤岗市",
  15585. "value": "2304"
  15586. }, {
  15587. "label": "双鸭山市",
  15588. "value": "2305"
  15589. }, {
  15590. "label": "大庆市",
  15591. "value": "2306"
  15592. }, {
  15593. "label": "伊春市",
  15594. "value": "2307"
  15595. }, {
  15596. "label": "佳木斯市",
  15597. "value": "2308"
  15598. }, {
  15599. "label": "七台河市",
  15600. "value": "2309"
  15601. }, {
  15602. "label": "牡丹江市",
  15603. "value": "2310"
  15604. }, {
  15605. "label": "黑河市",
  15606. "value": "2311"
  15607. }, {
  15608. "label": "绥化市",
  15609. "value": "2312"
  15610. }, {
  15611. "label": "大兴安岭地区",
  15612. "value": "2327"
  15613. }], [{
  15614. "label": "市辖区",
  15615. "value": "3101"
  15616. }], [{
  15617. "label": "南京市",
  15618. "value": "3201"
  15619. }, {
  15620. "label": "无锡市",
  15621. "value": "3202"
  15622. }, {
  15623. "label": "徐州市",
  15624. "value": "3203"
  15625. }, {
  15626. "label": "常州市",
  15627. "value": "3204"
  15628. }, {
  15629. "label": "苏州市",
  15630. "value": "3205"
  15631. }, {
  15632. "label": "南通市",
  15633. "value": "3206"
  15634. }, {
  15635. "label": "连云港市",
  15636. "value": "3207"
  15637. }, {
  15638. "label": "淮安市",
  15639. "value": "3208"
  15640. }, {
  15641. "label": "盐城市",
  15642. "value": "3209"
  15643. }, {
  15644. "label": "扬州市",
  15645. "value": "3210"
  15646. }, {
  15647. "label": "镇江市",
  15648. "value": "3211"
  15649. }, {
  15650. "label": "泰州市",
  15651. "value": "3212"
  15652. }, {
  15653. "label": "宿迁市",
  15654. "value": "3213"
  15655. }], [{
  15656. "label": "杭州市",
  15657. "value": "3301"
  15658. }, {
  15659. "label": "宁波市",
  15660. "value": "3302"
  15661. }, {
  15662. "label": "温州市",
  15663. "value": "3303"
  15664. }, {
  15665. "label": "嘉兴市",
  15666. "value": "3304"
  15667. }, {
  15668. "label": "湖州市",
  15669. "value": "3305"
  15670. }, {
  15671. "label": "绍兴市",
  15672. "value": "3306"
  15673. }, {
  15674. "label": "金华市",
  15675. "value": "3307"
  15676. }, {
  15677. "label": "衢州市",
  15678. "value": "3308"
  15679. }, {
  15680. "label": "舟山市",
  15681. "value": "3309"
  15682. }, {
  15683. "label": "台州市",
  15684. "value": "3310"
  15685. }, {
  15686. "label": "丽水市",
  15687. "value": "3311"
  15688. }], [{
  15689. "label": "合肥市",
  15690. "value": "3401"
  15691. }, {
  15692. "label": "芜湖市",
  15693. "value": "3402"
  15694. }, {
  15695. "label": "蚌埠市",
  15696. "value": "3403"
  15697. }, {
  15698. "label": "淮南市",
  15699. "value": "3404"
  15700. }, {
  15701. "label": "马鞍山市",
  15702. "value": "3405"
  15703. }, {
  15704. "label": "淮北市",
  15705. "value": "3406"
  15706. }, {
  15707. "label": "铜陵市",
  15708. "value": "3407"
  15709. }, {
  15710. "label": "安庆市",
  15711. "value": "3408"
  15712. }, {
  15713. "label": "黄山市",
  15714. "value": "3410"
  15715. }, {
  15716. "label": "滁州市",
  15717. "value": "3411"
  15718. }, {
  15719. "label": "阜阳市",
  15720. "value": "3412"
  15721. }, {
  15722. "label": "宿州市",
  15723. "value": "3413"
  15724. }, {
  15725. "label": "六安市",
  15726. "value": "3415"
  15727. }, {
  15728. "label": "亳州市",
  15729. "value": "3416"
  15730. }, {
  15731. "label": "池州市",
  15732. "value": "3417"
  15733. }, {
  15734. "label": "宣城市",
  15735. "value": "3418"
  15736. }], [{
  15737. "label": "福州市",
  15738. "value": "3501"
  15739. }, {
  15740. "label": "厦门市",
  15741. "value": "3502"
  15742. }, {
  15743. "label": "莆田市",
  15744. "value": "3503"
  15745. }, {
  15746. "label": "三明市",
  15747. "value": "3504"
  15748. }, {
  15749. "label": "泉州市",
  15750. "value": "3505"
  15751. }, {
  15752. "label": "漳州市",
  15753. "value": "3506"
  15754. }, {
  15755. "label": "南平市",
  15756. "value": "3507"
  15757. }, {
  15758. "label": "龙岩市",
  15759. "value": "3508"
  15760. }, {
  15761. "label": "宁德市",
  15762. "value": "3509"
  15763. }], [{
  15764. "label": "南昌市",
  15765. "value": "3601"
  15766. }, {
  15767. "label": "景德镇市",
  15768. "value": "3602"
  15769. }, {
  15770. "label": "萍乡市",
  15771. "value": "3603"
  15772. }, {
  15773. "label": "九江市",
  15774. "value": "3604"
  15775. }, {
  15776. "label": "新余市",
  15777. "value": "3605"
  15778. }, {
  15779. "label": "鹰潭市",
  15780. "value": "3606"
  15781. }, {
  15782. "label": "赣州市",
  15783. "value": "3607"
  15784. }, {
  15785. "label": "吉安市",
  15786. "value": "3608"
  15787. }, {
  15788. "label": "宜春市",
  15789. "value": "3609"
  15790. }, {
  15791. "label": "抚州市",
  15792. "value": "3610"
  15793. }, {
  15794. "label": "上饶市",
  15795. "value": "3611"
  15796. }], [{
  15797. "label": "济南市",
  15798. "value": "3701"
  15799. }, {
  15800. "label": "青岛市",
  15801. "value": "3702"
  15802. }, {
  15803. "label": "淄博市",
  15804. "value": "3703"
  15805. }, {
  15806. "label": "枣庄市",
  15807. "value": "3704"
  15808. }, {
  15809. "label": "东营市",
  15810. "value": "3705"
  15811. }, {
  15812. "label": "烟台市",
  15813. "value": "3706"
  15814. }, {
  15815. "label": "潍坊市",
  15816. "value": "3707"
  15817. }, {
  15818. "label": "济宁市",
  15819. "value": "3708"
  15820. }, {
  15821. "label": "泰安市",
  15822. "value": "3709"
  15823. }, {
  15824. "label": "威海市",
  15825. "value": "3710"
  15826. }, {
  15827. "label": "日照市",
  15828. "value": "3711"
  15829. }, {
  15830. "label": "莱芜市",
  15831. "value": "3712"
  15832. }, {
  15833. "label": "临沂市",
  15834. "value": "3713"
  15835. }, {
  15836. "label": "德州市",
  15837. "value": "3714"
  15838. }, {
  15839. "label": "聊城市",
  15840. "value": "3715"
  15841. }, {
  15842. "label": "滨州市",
  15843. "value": "3716"
  15844. }, {
  15845. "label": "菏泽市",
  15846. "value": "3717"
  15847. }], [{
  15848. "label": "郑州市",
  15849. "value": "4101"
  15850. }, {
  15851. "label": "开封市",
  15852. "value": "4102"
  15853. }, {
  15854. "label": "洛阳市",
  15855. "value": "4103"
  15856. }, {
  15857. "label": "平顶山市",
  15858. "value": "4104"
  15859. }, {
  15860. "label": "安阳市",
  15861. "value": "4105"
  15862. }, {
  15863. "label": "鹤壁市",
  15864. "value": "4106"
  15865. }, {
  15866. "label": "新乡市",
  15867. "value": "4107"
  15868. }, {
  15869. "label": "焦作市",
  15870. "value": "4108"
  15871. }, {
  15872. "label": "濮阳市",
  15873. "value": "4109"
  15874. }, {
  15875. "label": "许昌市",
  15876. "value": "4110"
  15877. }, {
  15878. "label": "漯河市",
  15879. "value": "4111"
  15880. }, {
  15881. "label": "三门峡市",
  15882. "value": "4112"
  15883. }, {
  15884. "label": "南阳市",
  15885. "value": "4113"
  15886. }, {
  15887. "label": "商丘市",
  15888. "value": "4114"
  15889. }, {
  15890. "label": "信阳市",
  15891. "value": "4115"
  15892. }, {
  15893. "label": "周口市",
  15894. "value": "4116"
  15895. }, {
  15896. "label": "驻马店市",
  15897. "value": "4117"
  15898. }, {
  15899. "label": "省直辖县级行政区划",
  15900. "value": "4190"
  15901. }], [{
  15902. "label": "武汉市",
  15903. "value": "4201"
  15904. }, {
  15905. "label": "黄石市",
  15906. "value": "4202"
  15907. }, {
  15908. "label": "十堰市",
  15909. "value": "4203"
  15910. }, {
  15911. "label": "宜昌市",
  15912. "value": "4205"
  15913. }, {
  15914. "label": "襄阳市",
  15915. "value": "4206"
  15916. }, {
  15917. "label": "鄂州市",
  15918. "value": "4207"
  15919. }, {
  15920. "label": "荆门市",
  15921. "value": "4208"
  15922. }, {
  15923. "label": "孝感市",
  15924. "value": "4209"
  15925. }, {
  15926. "label": "荆州市",
  15927. "value": "4210"
  15928. }, {
  15929. "label": "黄冈市",
  15930. "value": "4211"
  15931. }, {
  15932. "label": "咸宁市",
  15933. "value": "4212"
  15934. }, {
  15935. "label": "随州市",
  15936. "value": "4213"
  15937. }, {
  15938. "label": "恩施土家族苗族自治州",
  15939. "value": "4228"
  15940. }, {
  15941. "label": "省直辖县级行政区划",
  15942. "value": "4290"
  15943. }], [{
  15944. "label": "长沙市",
  15945. "value": "4301"
  15946. }, {
  15947. "label": "株洲市",
  15948. "value": "4302"
  15949. }, {
  15950. "label": "湘潭市",
  15951. "value": "4303"
  15952. }, {
  15953. "label": "衡阳市",
  15954. "value": "4304"
  15955. }, {
  15956. "label": "邵阳市",
  15957. "value": "4305"
  15958. }, {
  15959. "label": "岳阳市",
  15960. "value": "4306"
  15961. }, {
  15962. "label": "常德市",
  15963. "value": "4307"
  15964. }, {
  15965. "label": "张家界市",
  15966. "value": "4308"
  15967. }, {
  15968. "label": "益阳市",
  15969. "value": "4309"
  15970. }, {
  15971. "label": "郴州市",
  15972. "value": "4310"
  15973. }, {
  15974. "label": "永州市",
  15975. "value": "4311"
  15976. }, {
  15977. "label": "怀化市",
  15978. "value": "4312"
  15979. }, {
  15980. "label": "娄底市",
  15981. "value": "4313"
  15982. }, {
  15983. "label": "湘西土家族苗族自治州",
  15984. "value": "4331"
  15985. }], [{
  15986. "label": "广州市",
  15987. "value": "4401"
  15988. }, {
  15989. "label": "韶关市",
  15990. "value": "4402"
  15991. }, {
  15992. "label": "深圳市",
  15993. "value": "4403"
  15994. }, {
  15995. "label": "珠海市",
  15996. "value": "4404"
  15997. }, {
  15998. "label": "汕头市",
  15999. "value": "4405"
  16000. }, {
  16001. "label": "佛山市",
  16002. "value": "4406"
  16003. }, {
  16004. "label": "江门市",
  16005. "value": "4407"
  16006. }, {
  16007. "label": "湛江市",
  16008. "value": "4408"
  16009. }, {
  16010. "label": "茂名市",
  16011. "value": "4409"
  16012. }, {
  16013. "label": "肇庆市",
  16014. "value": "4412"
  16015. }, {
  16016. "label": "惠州市",
  16017. "value": "4413"
  16018. }, {
  16019. "label": "梅州市",
  16020. "value": "4414"
  16021. }, {
  16022. "label": "汕尾市",
  16023. "value": "4415"
  16024. }, {
  16025. "label": "河源市",
  16026. "value": "4416"
  16027. }, {
  16028. "label": "阳江市",
  16029. "value": "4417"
  16030. }, {
  16031. "label": "清远市",
  16032. "value": "4418"
  16033. }, {
  16034. "label": "东莞市",
  16035. "value": "4419"
  16036. }, {
  16037. "label": "中山市",
  16038. "value": "4420"
  16039. }, {
  16040. "label": "潮州市",
  16041. "value": "4451"
  16042. }, {
  16043. "label": "揭阳市",
  16044. "value": "4452"
  16045. }, {
  16046. "label": "云浮市",
  16047. "value": "4453"
  16048. }], [{
  16049. "label": "南宁市",
  16050. "value": "4501"
  16051. }, {
  16052. "label": "柳州市",
  16053. "value": "4502"
  16054. }, {
  16055. "label": "桂林市",
  16056. "value": "4503"
  16057. }, {
  16058. "label": "梧州市",
  16059. "value": "4504"
  16060. }, {
  16061. "label": "北海市",
  16062. "value": "4505"
  16063. }, {
  16064. "label": "防城港市",
  16065. "value": "4506"
  16066. }, {
  16067. "label": "钦州市",
  16068. "value": "4507"
  16069. }, {
  16070. "label": "贵港市",
  16071. "value": "4508"
  16072. }, {
  16073. "label": "玉林市",
  16074. "value": "4509"
  16075. }, {
  16076. "label": "百色市",
  16077. "value": "4510"
  16078. }, {
  16079. "label": "贺州市",
  16080. "value": "4511"
  16081. }, {
  16082. "label": "河池市",
  16083. "value": "4512"
  16084. }, {
  16085. "label": "来宾市",
  16086. "value": "4513"
  16087. }, {
  16088. "label": "崇左市",
  16089. "value": "4514"
  16090. }], [{
  16091. "label": "海口市",
  16092. "value": "4601"
  16093. }, {
  16094. "label": "三亚市",
  16095. "value": "4602"
  16096. }, {
  16097. "label": "三沙市",
  16098. "value": "4603"
  16099. }, {
  16100. "label": "儋州市",
  16101. "value": "4604"
  16102. }, {
  16103. "label": "省直辖县级行政区划",
  16104. "value": "4690"
  16105. }], [{
  16106. "label": "市辖区",
  16107. "value": "5001"
  16108. }, {
  16109. "label": "县",
  16110. "value": "5002"
  16111. }], [{
  16112. "label": "成都市",
  16113. "value": "5101"
  16114. }, {
  16115. "label": "自贡市",
  16116. "value": "5103"
  16117. }, {
  16118. "label": "攀枝花市",
  16119. "value": "5104"
  16120. }, {
  16121. "label": "泸州市",
  16122. "value": "5105"
  16123. }, {
  16124. "label": "德阳市",
  16125. "value": "5106"
  16126. }, {
  16127. "label": "绵阳市",
  16128. "value": "5107"
  16129. }, {
  16130. "label": "广元市",
  16131. "value": "5108"
  16132. }, {
  16133. "label": "遂宁市",
  16134. "value": "5109"
  16135. }, {
  16136. "label": "内江市",
  16137. "value": "5110"
  16138. }, {
  16139. "label": "乐山市",
  16140. "value": "5111"
  16141. }, {
  16142. "label": "南充市",
  16143. "value": "5113"
  16144. }, {
  16145. "label": "眉山市",
  16146. "value": "5114"
  16147. }, {
  16148. "label": "宜宾市",
  16149. "value": "5115"
  16150. }, {
  16151. "label": "广安市",
  16152. "value": "5116"
  16153. }, {
  16154. "label": "达州市",
  16155. "value": "5117"
  16156. }, {
  16157. "label": "雅安市",
  16158. "value": "5118"
  16159. }, {
  16160. "label": "巴中市",
  16161. "value": "5119"
  16162. }, {
  16163. "label": "资阳市",
  16164. "value": "5120"
  16165. }, {
  16166. "label": "阿坝藏族羌族自治州",
  16167. "value": "5132"
  16168. }, {
  16169. "label": "甘孜藏族自治州",
  16170. "value": "5133"
  16171. }, {
  16172. "label": "凉山彝族自治州",
  16173. "value": "5134"
  16174. }], [{
  16175. "label": "贵阳市",
  16176. "value": "5201"
  16177. }, {
  16178. "label": "六盘水市",
  16179. "value": "5202"
  16180. }, {
  16181. "label": "遵义市",
  16182. "value": "5203"
  16183. }, {
  16184. "label": "安顺市",
  16185. "value": "5204"
  16186. }, {
  16187. "label": "毕节市",
  16188. "value": "5205"
  16189. }, {
  16190. "label": "铜仁市",
  16191. "value": "5206"
  16192. }, {
  16193. "label": "黔西南布依族苗族自治州",
  16194. "value": "5223"
  16195. }, {
  16196. "label": "黔东南苗族侗族自治州",
  16197. "value": "5226"
  16198. }, {
  16199. "label": "黔南布依族苗族自治州",
  16200. "value": "5227"
  16201. }], [{
  16202. "label": "昆明市",
  16203. "value": "5301"
  16204. }, {
  16205. "label": "曲靖市",
  16206. "value": "5303"
  16207. }, {
  16208. "label": "玉溪市",
  16209. "value": "5304"
  16210. }, {
  16211. "label": "保山市",
  16212. "value": "5305"
  16213. }, {
  16214. "label": "昭通市",
  16215. "value": "5306"
  16216. }, {
  16217. "label": "丽江市",
  16218. "value": "5307"
  16219. }, {
  16220. "label": "普洱市",
  16221. "value": "5308"
  16222. }, {
  16223. "label": "临沧市",
  16224. "value": "5309"
  16225. }, {
  16226. "label": "楚雄彝族自治州",
  16227. "value": "5323"
  16228. }, {
  16229. "label": "红河哈尼族彝族自治州",
  16230. "value": "5325"
  16231. }, {
  16232. "label": "文山壮族苗族自治州",
  16233. "value": "5326"
  16234. }, {
  16235. "label": "西双版纳傣族自治州",
  16236. "value": "5328"
  16237. }, {
  16238. "label": "大理白族自治州",
  16239. "value": "5329"
  16240. }, {
  16241. "label": "德宏傣族景颇族自治州",
  16242. "value": "5331"
  16243. }, {
  16244. "label": "怒江傈僳族自治州",
  16245. "value": "5333"
  16246. }, {
  16247. "label": "迪庆藏族自治州",
  16248. "value": "5334"
  16249. }], [{
  16250. "label": "拉萨市",
  16251. "value": "5401"
  16252. }, {
  16253. "label": "日喀则市",
  16254. "value": "5402"
  16255. }, {
  16256. "label": "昌都市",
  16257. "value": "5403"
  16258. }, {
  16259. "label": "林芝市",
  16260. "value": "5404"
  16261. }, {
  16262. "label": "山南市",
  16263. "value": "5405"
  16264. }, {
  16265. "label": "那曲地区",
  16266. "value": "5424"
  16267. }, {
  16268. "label": "阿里地区",
  16269. "value": "5425"
  16270. }], [{
  16271. "label": "西安市",
  16272. "value": "6101"
  16273. }, {
  16274. "label": "铜川市",
  16275. "value": "6102"
  16276. }, {
  16277. "label": "宝鸡市",
  16278. "value": "6103"
  16279. }, {
  16280. "label": "咸阳市",
  16281. "value": "6104"
  16282. }, {
  16283. "label": "渭南市",
  16284. "value": "6105"
  16285. }, {
  16286. "label": "延安市",
  16287. "value": "6106"
  16288. }, {
  16289. "label": "汉中市",
  16290. "value": "6107"
  16291. }, {
  16292. "label": "榆林市",
  16293. "value": "6108"
  16294. }, {
  16295. "label": "安康市",
  16296. "value": "6109"
  16297. }, {
  16298. "label": "商洛市",
  16299. "value": "6110"
  16300. }], [{
  16301. "label": "兰州市",
  16302. "value": "6201"
  16303. }, {
  16304. "label": "嘉峪关市",
  16305. "value": "6202"
  16306. }, {
  16307. "label": "金昌市",
  16308. "value": "6203"
  16309. }, {
  16310. "label": "白银市",
  16311. "value": "6204"
  16312. }, {
  16313. "label": "天水市",
  16314. "value": "6205"
  16315. }, {
  16316. "label": "武威市",
  16317. "value": "6206"
  16318. }, {
  16319. "label": "张掖市",
  16320. "value": "6207"
  16321. }, {
  16322. "label": "平凉市",
  16323. "value": "6208"
  16324. }, {
  16325. "label": "酒泉市",
  16326. "value": "6209"
  16327. }, {
  16328. "label": "庆阳市",
  16329. "value": "6210"
  16330. }, {
  16331. "label": "定西市",
  16332. "value": "6211"
  16333. }, {
  16334. "label": "陇南市",
  16335. "value": "6212"
  16336. }, {
  16337. "label": "临夏回族自治州",
  16338. "value": "6229"
  16339. }, {
  16340. "label": "甘南藏族自治州",
  16341. "value": "6230"
  16342. }], [{
  16343. "label": "西宁市",
  16344. "value": "6301"
  16345. }, {
  16346. "label": "海东市",
  16347. "value": "6302"
  16348. }, {
  16349. "label": "海北藏族自治州",
  16350. "value": "6322"
  16351. }, {
  16352. "label": "黄南藏族自治州",
  16353. "value": "6323"
  16354. }, {
  16355. "label": "海南藏族自治州",
  16356. "value": "6325"
  16357. }, {
  16358. "label": "果洛藏族自治州",
  16359. "value": "6326"
  16360. }, {
  16361. "label": "玉树藏族自治州",
  16362. "value": "6327"
  16363. }, {
  16364. "label": "海西蒙古族藏族自治州",
  16365. "value": "6328"
  16366. }], [{
  16367. "label": "银川市",
  16368. "value": "6401"
  16369. }, {
  16370. "label": "石嘴山市",
  16371. "value": "6402"
  16372. }, {
  16373. "label": "吴忠市",
  16374. "value": "6403"
  16375. }, {
  16376. "label": "固原市",
  16377. "value": "6404"
  16378. }, {
  16379. "label": "中卫市",
  16380. "value": "6405"
  16381. }], [{
  16382. "label": "乌鲁木齐市",
  16383. "value": "6501"
  16384. }, {
  16385. "label": "克拉玛依市",
  16386. "value": "6502"
  16387. }, {
  16388. "label": "吐鲁番市",
  16389. "value": "6504"
  16390. }, {
  16391. "label": "哈密市",
  16392. "value": "6505"
  16393. }, {
  16394. "label": "昌吉回族自治州",
  16395. "value": "6523"
  16396. }, {
  16397. "label": "博尔塔拉蒙古自治州",
  16398. "value": "6527"
  16399. }, {
  16400. "label": "巴音郭楞蒙古自治州",
  16401. "value": "6528"
  16402. }, {
  16403. "label": "阿克苏地区",
  16404. "value": "6529"
  16405. }, {
  16406. "label": "克孜勒苏柯尔克孜自治州",
  16407. "value": "6530"
  16408. }, {
  16409. "label": "喀什地区",
  16410. "value": "6531"
  16411. }, {
  16412. "label": "和田地区",
  16413. "value": "6532"
  16414. }, {
  16415. "label": "伊犁哈萨克自治州",
  16416. "value": "6540"
  16417. }, {
  16418. "label": "塔城地区",
  16419. "value": "6542"
  16420. }, {
  16421. "label": "阿勒泰地区",
  16422. "value": "6543"
  16423. }, {
  16424. "label": "自治区直辖县级行政区划",
  16425. "value": "6590"
  16426. }], [{
  16427. "label": "台北",
  16428. "value": "6601"
  16429. }, {
  16430. "label": "高雄",
  16431. "value": "6602"
  16432. }, {
  16433. "label": "基隆",
  16434. "value": "6603"
  16435. }, {
  16436. "label": "台中",
  16437. "value": "6604"
  16438. }, {
  16439. "label": "台南",
  16440. "value": "6605"
  16441. }, {
  16442. "label": "新竹",
  16443. "value": "6606"
  16444. }, {
  16445. "label": "嘉义",
  16446. "value": "6607"
  16447. }, {
  16448. "label": "宜兰",
  16449. "value": "6608"
  16450. }, {
  16451. "label": "桃园",
  16452. "value": "6609"
  16453. }, {
  16454. "label": "苗栗",
  16455. "value": "6610"
  16456. }, {
  16457. "label": "彰化",
  16458. "value": "6611"
  16459. }, {
  16460. "label": "南投",
  16461. "value": "6612"
  16462. }, {
  16463. "label": "云林",
  16464. "value": "6613"
  16465. }, {
  16466. "label": "屏东",
  16467. "value": "6614"
  16468. }, {
  16469. "label": "台东",
  16470. "value": "6615"
  16471. }, {
  16472. "label": "花莲",
  16473. "value": "6616"
  16474. }, {
  16475. "label": "澎湖",
  16476. "value": "6617"
  16477. }], [{
  16478. "label": "香港岛",
  16479. "value": "6701"
  16480. }, {
  16481. "label": "九龙",
  16482. "value": "6702"
  16483. }, {
  16484. "label": "新界",
  16485. "value": "6703"
  16486. }], [{
  16487. "label": "澳门半岛",
  16488. "value": "6801"
  16489. }, {
  16490. "label": "氹仔岛",
  16491. "value": "6802"
  16492. }, {
  16493. "label": "路环岛",
  16494. "value": "6803"
  16495. }, {
  16496. "label": "路氹城",
  16497. "value": "6804"
  16498. }]];
  16499. var _default = cityData;
  16500. exports.default = _default;
  16501. /***/ }),
  16502. /***/ 906:
  16503. /*!**************************************************!*\
  16504. !*** E:/书嗨项目/book-hi/uview-ui/libs/util/area.js ***!
  16505. \**************************************************/
  16506. /*! no static exports found */
  16507. /***/ (function(module, exports, __webpack_require__) {
  16508. "use strict";
  16509. Object.defineProperty(exports, "__esModule", {
  16510. value: true
  16511. });
  16512. exports.default = void 0;
  16513. var areaData = [[[{
  16514. "label": "东城区",
  16515. "value": "110101"
  16516. }, {
  16517. "label": "西城区",
  16518. "value": "110102"
  16519. }, {
  16520. "label": "朝阳区",
  16521. "value": "110105"
  16522. }, {
  16523. "label": "丰台区",
  16524. "value": "110106"
  16525. }, {
  16526. "label": "石景山区",
  16527. "value": "110107"
  16528. }, {
  16529. "label": "海淀区",
  16530. "value": "110108"
  16531. }, {
  16532. "label": "门头沟区",
  16533. "value": "110109"
  16534. }, {
  16535. "label": "房山区",
  16536. "value": "110111"
  16537. }, {
  16538. "label": "通州区",
  16539. "value": "110112"
  16540. }, {
  16541. "label": "顺义区",
  16542. "value": "110113"
  16543. }, {
  16544. "label": "昌平区",
  16545. "value": "110114"
  16546. }, {
  16547. "label": "大兴区",
  16548. "value": "110115"
  16549. }, {
  16550. "label": "怀柔区",
  16551. "value": "110116"
  16552. }, {
  16553. "label": "平谷区",
  16554. "value": "110117"
  16555. }, {
  16556. "label": "密云区",
  16557. "value": "110118"
  16558. }, {
  16559. "label": "延庆区",
  16560. "value": "110119"
  16561. }]], [[{
  16562. "label": "和平区",
  16563. "value": "120101"
  16564. }, {
  16565. "label": "河东区",
  16566. "value": "120102"
  16567. }, {
  16568. "label": "河西区",
  16569. "value": "120103"
  16570. }, {
  16571. "label": "南开区",
  16572. "value": "120104"
  16573. }, {
  16574. "label": "河北区",
  16575. "value": "120105"
  16576. }, {
  16577. "label": "红桥区",
  16578. "value": "120106"
  16579. }, {
  16580. "label": "东丽区",
  16581. "value": "120110"
  16582. }, {
  16583. "label": "西青区",
  16584. "value": "120111"
  16585. }, {
  16586. "label": "津南区",
  16587. "value": "120112"
  16588. }, {
  16589. "label": "北辰区",
  16590. "value": "120113"
  16591. }, {
  16592. "label": "武清区",
  16593. "value": "120114"
  16594. }, {
  16595. "label": "宝坻区",
  16596. "value": "120115"
  16597. }, {
  16598. "label": "滨海新区",
  16599. "value": "120116"
  16600. }, {
  16601. "label": "宁河区",
  16602. "value": "120117"
  16603. }, {
  16604. "label": "静海区",
  16605. "value": "120118"
  16606. }, {
  16607. "label": "蓟州区",
  16608. "value": "120119"
  16609. }]], [[{
  16610. "label": "长安区",
  16611. "value": "130102"
  16612. }, {
  16613. "label": "桥西区",
  16614. "value": "130104"
  16615. }, {
  16616. "label": "新华区",
  16617. "value": "130105"
  16618. }, {
  16619. "label": "井陉矿区",
  16620. "value": "130107"
  16621. }, {
  16622. "label": "裕华区",
  16623. "value": "130108"
  16624. }, {
  16625. "label": "藁城区",
  16626. "value": "130109"
  16627. }, {
  16628. "label": "鹿泉区",
  16629. "value": "130110"
  16630. }, {
  16631. "label": "栾城区",
  16632. "value": "130111"
  16633. }, {
  16634. "label": "井陉县",
  16635. "value": "130121"
  16636. }, {
  16637. "label": "正定县",
  16638. "value": "130123"
  16639. }, {
  16640. "label": "行唐县",
  16641. "value": "130125"
  16642. }, {
  16643. "label": "灵寿县",
  16644. "value": "130126"
  16645. }, {
  16646. "label": "高邑县",
  16647. "value": "130127"
  16648. }, {
  16649. "label": "深泽县",
  16650. "value": "130128"
  16651. }, {
  16652. "label": "赞皇县",
  16653. "value": "130129"
  16654. }, {
  16655. "label": "无极县",
  16656. "value": "130130"
  16657. }, {
  16658. "label": "平山县",
  16659. "value": "130131"
  16660. }, {
  16661. "label": "元氏县",
  16662. "value": "130132"
  16663. }, {
  16664. "label": "赵县",
  16665. "value": "130133"
  16666. }, {
  16667. "label": "石家庄高新技术产业开发区",
  16668. "value": "130171"
  16669. }, {
  16670. "label": "石家庄循环化工园区",
  16671. "value": "130172"
  16672. }, {
  16673. "label": "辛集市",
  16674. "value": "130181"
  16675. }, {
  16676. "label": "晋州市",
  16677. "value": "130183"
  16678. }, {
  16679. "label": "新乐市",
  16680. "value": "130184"
  16681. }], [{
  16682. "label": "路南区",
  16683. "value": "130202"
  16684. }, {
  16685. "label": "路北区",
  16686. "value": "130203"
  16687. }, {
  16688. "label": "古冶区",
  16689. "value": "130204"
  16690. }, {
  16691. "label": "开平区",
  16692. "value": "130205"
  16693. }, {
  16694. "label": "丰南区",
  16695. "value": "130207"
  16696. }, {
  16697. "label": "丰润区",
  16698. "value": "130208"
  16699. }, {
  16700. "label": "曹妃甸区",
  16701. "value": "130209"
  16702. }, {
  16703. "label": "滦县",
  16704. "value": "130223"
  16705. }, {
  16706. "label": "滦南县",
  16707. "value": "130224"
  16708. }, {
  16709. "label": "乐亭县",
  16710. "value": "130225"
  16711. }, {
  16712. "label": "迁西县",
  16713. "value": "130227"
  16714. }, {
  16715. "label": "玉田县",
  16716. "value": "130229"
  16717. }, {
  16718. "label": "唐山市芦台经济技术开发区",
  16719. "value": "130271"
  16720. }, {
  16721. "label": "唐山市汉沽管理区",
  16722. "value": "130272"
  16723. }, {
  16724. "label": "唐山高新技术产业开发区",
  16725. "value": "130273"
  16726. }, {
  16727. "label": "河北唐山海港经济开发区",
  16728. "value": "130274"
  16729. }, {
  16730. "label": "遵化市",
  16731. "value": "130281"
  16732. }, {
  16733. "label": "迁安市",
  16734. "value": "130283"
  16735. }], [{
  16736. "label": "海港区",
  16737. "value": "130302"
  16738. }, {
  16739. "label": "山海关区",
  16740. "value": "130303"
  16741. }, {
  16742. "label": "北戴河区",
  16743. "value": "130304"
  16744. }, {
  16745. "label": "抚宁区",
  16746. "value": "130306"
  16747. }, {
  16748. "label": "青龙满族自治县",
  16749. "value": "130321"
  16750. }, {
  16751. "label": "昌黎县",
  16752. "value": "130322"
  16753. }, {
  16754. "label": "卢龙县",
  16755. "value": "130324"
  16756. }, {
  16757. "label": "秦皇岛市经济技术开发区",
  16758. "value": "130371"
  16759. }, {
  16760. "label": "北戴河新区",
  16761. "value": "130372"
  16762. }], [{
  16763. "label": "邯山区",
  16764. "value": "130402"
  16765. }, {
  16766. "label": "丛台区",
  16767. "value": "130403"
  16768. }, {
  16769. "label": "复兴区",
  16770. "value": "130404"
  16771. }, {
  16772. "label": "峰峰矿区",
  16773. "value": "130406"
  16774. }, {
  16775. "label": "肥乡区",
  16776. "value": "130407"
  16777. }, {
  16778. "label": "永年区",
  16779. "value": "130408"
  16780. }, {
  16781. "label": "临漳县",
  16782. "value": "130423"
  16783. }, {
  16784. "label": "成安县",
  16785. "value": "130424"
  16786. }, {
  16787. "label": "大名县",
  16788. "value": "130425"
  16789. }, {
  16790. "label": "涉县",
  16791. "value": "130426"
  16792. }, {
  16793. "label": "磁县",
  16794. "value": "130427"
  16795. }, {
  16796. "label": "邱县",
  16797. "value": "130430"
  16798. }, {
  16799. "label": "鸡泽县",
  16800. "value": "130431"
  16801. }, {
  16802. "label": "广平县",
  16803. "value": "130432"
  16804. }, {
  16805. "label": "馆陶县",
  16806. "value": "130433"
  16807. }, {
  16808. "label": "魏县",
  16809. "value": "130434"
  16810. }, {
  16811. "label": "曲周县",
  16812. "value": "130435"
  16813. }, {
  16814. "label": "邯郸经济技术开发区",
  16815. "value": "130471"
  16816. }, {
  16817. "label": "邯郸冀南新区",
  16818. "value": "130473"
  16819. }, {
  16820. "label": "武安市",
  16821. "value": "130481"
  16822. }], [{
  16823. "label": "桥东区",
  16824. "value": "130502"
  16825. }, {
  16826. "label": "桥西区",
  16827. "value": "130503"
  16828. }, {
  16829. "label": "邢台县",
  16830. "value": "130521"
  16831. }, {
  16832. "label": "临城县",
  16833. "value": "130522"
  16834. }, {
  16835. "label": "内丘县",
  16836. "value": "130523"
  16837. }, {
  16838. "label": "柏乡县",
  16839. "value": "130524"
  16840. }, {
  16841. "label": "隆尧县",
  16842. "value": "130525"
  16843. }, {
  16844. "label": "任县",
  16845. "value": "130526"
  16846. }, {
  16847. "label": "南和县",
  16848. "value": "130527"
  16849. }, {
  16850. "label": "宁晋县",
  16851. "value": "130528"
  16852. }, {
  16853. "label": "巨鹿县",
  16854. "value": "130529"
  16855. }, {
  16856. "label": "新河县",
  16857. "value": "130530"
  16858. }, {
  16859. "label": "广宗县",
  16860. "value": "130531"
  16861. }, {
  16862. "label": "平乡县",
  16863. "value": "130532"
  16864. }, {
  16865. "label": "威县",
  16866. "value": "130533"
  16867. }, {
  16868. "label": "清河县",
  16869. "value": "130534"
  16870. }, {
  16871. "label": "临西县",
  16872. "value": "130535"
  16873. }, {
  16874. "label": "河北邢台经济开发区",
  16875. "value": "130571"
  16876. }, {
  16877. "label": "南宫市",
  16878. "value": "130581"
  16879. }, {
  16880. "label": "沙河市",
  16881. "value": "130582"
  16882. }], [{
  16883. "label": "竞秀区",
  16884. "value": "130602"
  16885. }, {
  16886. "label": "莲池区",
  16887. "value": "130606"
  16888. }, {
  16889. "label": "满城区",
  16890. "value": "130607"
  16891. }, {
  16892. "label": "清苑区",
  16893. "value": "130608"
  16894. }, {
  16895. "label": "徐水区",
  16896. "value": "130609"
  16897. }, {
  16898. "label": "涞水县",
  16899. "value": "130623"
  16900. }, {
  16901. "label": "阜平县",
  16902. "value": "130624"
  16903. }, {
  16904. "label": "定兴县",
  16905. "value": "130626"
  16906. }, {
  16907. "label": "唐县",
  16908. "value": "130627"
  16909. }, {
  16910. "label": "高阳县",
  16911. "value": "130628"
  16912. }, {
  16913. "label": "容城县",
  16914. "value": "130629"
  16915. }, {
  16916. "label": "涞源县",
  16917. "value": "130630"
  16918. }, {
  16919. "label": "望都县",
  16920. "value": "130631"
  16921. }, {
  16922. "label": "安新县",
  16923. "value": "130632"
  16924. }, {
  16925. "label": "易县",
  16926. "value": "130633"
  16927. }, {
  16928. "label": "曲阳县",
  16929. "value": "130634"
  16930. }, {
  16931. "label": "蠡县",
  16932. "value": "130635"
  16933. }, {
  16934. "label": "顺平县",
  16935. "value": "130636"
  16936. }, {
  16937. "label": "博野县",
  16938. "value": "130637"
  16939. }, {
  16940. "label": "雄县",
  16941. "value": "130638"
  16942. }, {
  16943. "label": "保定高新技术产业开发区",
  16944. "value": "130671"
  16945. }, {
  16946. "label": "保定白沟新城",
  16947. "value": "130672"
  16948. }, {
  16949. "label": "涿州市",
  16950. "value": "130681"
  16951. }, {
  16952. "label": "定州市",
  16953. "value": "130682"
  16954. }, {
  16955. "label": "安国市",
  16956. "value": "130683"
  16957. }, {
  16958. "label": "高碑店市",
  16959. "value": "130684"
  16960. }], [{
  16961. "label": "桥东区",
  16962. "value": "130702"
  16963. }, {
  16964. "label": "桥西区",
  16965. "value": "130703"
  16966. }, {
  16967. "label": "宣化区",
  16968. "value": "130705"
  16969. }, {
  16970. "label": "下花园区",
  16971. "value": "130706"
  16972. }, {
  16973. "label": "万全区",
  16974. "value": "130708"
  16975. }, {
  16976. "label": "崇礼区",
  16977. "value": "130709"
  16978. }, {
  16979. "label": "张北县",
  16980. "value": "130722"
  16981. }, {
  16982. "label": "康保县",
  16983. "value": "130723"
  16984. }, {
  16985. "label": "沽源县",
  16986. "value": "130724"
  16987. }, {
  16988. "label": "尚义县",
  16989. "value": "130725"
  16990. }, {
  16991. "label": "蔚县",
  16992. "value": "130726"
  16993. }, {
  16994. "label": "阳原县",
  16995. "value": "130727"
  16996. }, {
  16997. "label": "怀安县",
  16998. "value": "130728"
  16999. }, {
  17000. "label": "怀来县",
  17001. "value": "130730"
  17002. }, {
  17003. "label": "涿鹿县",
  17004. "value": "130731"
  17005. }, {
  17006. "label": "赤城县",
  17007. "value": "130732"
  17008. }, {
  17009. "label": "张家口市高新技术产业开发区",
  17010. "value": "130771"
  17011. }, {
  17012. "label": "张家口市察北管理区",
  17013. "value": "130772"
  17014. }, {
  17015. "label": "张家口市塞北管理区",
  17016. "value": "130773"
  17017. }], [{
  17018. "label": "双桥区",
  17019. "value": "130802"
  17020. }, {
  17021. "label": "双滦区",
  17022. "value": "130803"
  17023. }, {
  17024. "label": "鹰手营子矿区",
  17025. "value": "130804"
  17026. }, {
  17027. "label": "承德县",
  17028. "value": "130821"
  17029. }, {
  17030. "label": "兴隆县",
  17031. "value": "130822"
  17032. }, {
  17033. "label": "滦平县",
  17034. "value": "130824"
  17035. }, {
  17036. "label": "隆化县",
  17037. "value": "130825"
  17038. }, {
  17039. "label": "丰宁满族自治县",
  17040. "value": "130826"
  17041. }, {
  17042. "label": "宽城满族自治县",
  17043. "value": "130827"
  17044. }, {
  17045. "label": "围场满族蒙古族自治县",
  17046. "value": "130828"
  17047. }, {
  17048. "label": "承德高新技术产业开发区",
  17049. "value": "130871"
  17050. }, {
  17051. "label": "平泉市",
  17052. "value": "130881"
  17053. }], [{
  17054. "label": "新华区",
  17055. "value": "130902"
  17056. }, {
  17057. "label": "运河区",
  17058. "value": "130903"
  17059. }, {
  17060. "label": "沧县",
  17061. "value": "130921"
  17062. }, {
  17063. "label": "青县",
  17064. "value": "130922"
  17065. }, {
  17066. "label": "东光县",
  17067. "value": "130923"
  17068. }, {
  17069. "label": "海兴县",
  17070. "value": "130924"
  17071. }, {
  17072. "label": "盐山县",
  17073. "value": "130925"
  17074. }, {
  17075. "label": "肃宁县",
  17076. "value": "130926"
  17077. }, {
  17078. "label": "南皮县",
  17079. "value": "130927"
  17080. }, {
  17081. "label": "吴桥县",
  17082. "value": "130928"
  17083. }, {
  17084. "label": "献县",
  17085. "value": "130929"
  17086. }, {
  17087. "label": "孟村回族自治县",
  17088. "value": "130930"
  17089. }, {
  17090. "label": "河北沧州经济开发区",
  17091. "value": "130971"
  17092. }, {
  17093. "label": "沧州高新技术产业开发区",
  17094. "value": "130972"
  17095. }, {
  17096. "label": "沧州渤海新区",
  17097. "value": "130973"
  17098. }, {
  17099. "label": "泊头市",
  17100. "value": "130981"
  17101. }, {
  17102. "label": "任丘市",
  17103. "value": "130982"
  17104. }, {
  17105. "label": "黄骅市",
  17106. "value": "130983"
  17107. }, {
  17108. "label": "河间市",
  17109. "value": "130984"
  17110. }], [{
  17111. "label": "安次区",
  17112. "value": "131002"
  17113. }, {
  17114. "label": "广阳区",
  17115. "value": "131003"
  17116. }, {
  17117. "label": "固安县",
  17118. "value": "131022"
  17119. }, {
  17120. "label": "永清县",
  17121. "value": "131023"
  17122. }, {
  17123. "label": "香河县",
  17124. "value": "131024"
  17125. }, {
  17126. "label": "大城县",
  17127. "value": "131025"
  17128. }, {
  17129. "label": "文安县",
  17130. "value": "131026"
  17131. }, {
  17132. "label": "大厂回族自治县",
  17133. "value": "131028"
  17134. }, {
  17135. "label": "廊坊经济技术开发区",
  17136. "value": "131071"
  17137. }, {
  17138. "label": "霸州市",
  17139. "value": "131081"
  17140. }, {
  17141. "label": "三河市",
  17142. "value": "131082"
  17143. }], [{
  17144. "label": "桃城区",
  17145. "value": "131102"
  17146. }, {
  17147. "label": "冀州区",
  17148. "value": "131103"
  17149. }, {
  17150. "label": "枣强县",
  17151. "value": "131121"
  17152. }, {
  17153. "label": "武邑县",
  17154. "value": "131122"
  17155. }, {
  17156. "label": "武强县",
  17157. "value": "131123"
  17158. }, {
  17159. "label": "饶阳县",
  17160. "value": "131124"
  17161. }, {
  17162. "label": "安平县",
  17163. "value": "131125"
  17164. }, {
  17165. "label": "故城县",
  17166. "value": "131126"
  17167. }, {
  17168. "label": "景县",
  17169. "value": "131127"
  17170. }, {
  17171. "label": "阜城县",
  17172. "value": "131128"
  17173. }, {
  17174. "label": "河北衡水经济开发区",
  17175. "value": "131171"
  17176. }, {
  17177. "label": "衡水滨湖新区",
  17178. "value": "131172"
  17179. }, {
  17180. "label": "深州市",
  17181. "value": "131182"
  17182. }]], [[{
  17183. "label": "小店区",
  17184. "value": "140105"
  17185. }, {
  17186. "label": "迎泽区",
  17187. "value": "140106"
  17188. }, {
  17189. "label": "杏花岭区",
  17190. "value": "140107"
  17191. }, {
  17192. "label": "尖草坪区",
  17193. "value": "140108"
  17194. }, {
  17195. "label": "万柏林区",
  17196. "value": "140109"
  17197. }, {
  17198. "label": "晋源区",
  17199. "value": "140110"
  17200. }, {
  17201. "label": "清徐县",
  17202. "value": "140121"
  17203. }, {
  17204. "label": "阳曲县",
  17205. "value": "140122"
  17206. }, {
  17207. "label": "娄烦县",
  17208. "value": "140123"
  17209. }, {
  17210. "label": "山西转型综合改革示范区",
  17211. "value": "140171"
  17212. }, {
  17213. "label": "古交市",
  17214. "value": "140181"
  17215. }], [{
  17216. "label": "城区",
  17217. "value": "140202"
  17218. }, {
  17219. "label": "矿区",
  17220. "value": "140203"
  17221. }, {
  17222. "label": "南郊区",
  17223. "value": "140211"
  17224. }, {
  17225. "label": "新荣区",
  17226. "value": "140212"
  17227. }, {
  17228. "label": "阳高县",
  17229. "value": "140221"
  17230. }, {
  17231. "label": "天镇县",
  17232. "value": "140222"
  17233. }, {
  17234. "label": "广灵县",
  17235. "value": "140223"
  17236. }, {
  17237. "label": "灵丘县",
  17238. "value": "140224"
  17239. }, {
  17240. "label": "浑源县",
  17241. "value": "140225"
  17242. }, {
  17243. "label": "左云县",
  17244. "value": "140226"
  17245. }, {
  17246. "label": "大同县",
  17247. "value": "140227"
  17248. }, {
  17249. "label": "山西大同经济开发区",
  17250. "value": "140271"
  17251. }], [{
  17252. "label": "城区",
  17253. "value": "140302"
  17254. }, {
  17255. "label": "矿区",
  17256. "value": "140303"
  17257. }, {
  17258. "label": "郊区",
  17259. "value": "140311"
  17260. }, {
  17261. "label": "平定县",
  17262. "value": "140321"
  17263. }, {
  17264. "label": "盂县",
  17265. "value": "140322"
  17266. }, {
  17267. "label": "山西阳泉经济开发区",
  17268. "value": "140371"
  17269. }], [{
  17270. "label": "城区",
  17271. "value": "140402"
  17272. }, {
  17273. "label": "郊区",
  17274. "value": "140411"
  17275. }, {
  17276. "label": "长治县",
  17277. "value": "140421"
  17278. }, {
  17279. "label": "襄垣县",
  17280. "value": "140423"
  17281. }, {
  17282. "label": "屯留县",
  17283. "value": "140424"
  17284. }, {
  17285. "label": "平顺县",
  17286. "value": "140425"
  17287. }, {
  17288. "label": "黎城县",
  17289. "value": "140426"
  17290. }, {
  17291. "label": "壶关县",
  17292. "value": "140427"
  17293. }, {
  17294. "label": "长子县",
  17295. "value": "140428"
  17296. }, {
  17297. "label": "武乡县",
  17298. "value": "140429"
  17299. }, {
  17300. "label": "沁县",
  17301. "value": "140430"
  17302. }, {
  17303. "label": "沁源县",
  17304. "value": "140431"
  17305. }, {
  17306. "label": "山西长治高新技术产业园区",
  17307. "value": "140471"
  17308. }, {
  17309. "label": "潞城市",
  17310. "value": "140481"
  17311. }], [{
  17312. "label": "城区",
  17313. "value": "140502"
  17314. }, {
  17315. "label": "沁水县",
  17316. "value": "140521"
  17317. }, {
  17318. "label": "阳城县",
  17319. "value": "140522"
  17320. }, {
  17321. "label": "陵川县",
  17322. "value": "140524"
  17323. }, {
  17324. "label": "泽州县",
  17325. "value": "140525"
  17326. }, {
  17327. "label": "高平市",
  17328. "value": "140581"
  17329. }], [{
  17330. "label": "朔城区",
  17331. "value": "140602"
  17332. }, {
  17333. "label": "平鲁区",
  17334. "value": "140603"
  17335. }, {
  17336. "label": "山阴县",
  17337. "value": "140621"
  17338. }, {
  17339. "label": "应县",
  17340. "value": "140622"
  17341. }, {
  17342. "label": "右玉县",
  17343. "value": "140623"
  17344. }, {
  17345. "label": "怀仁县",
  17346. "value": "140624"
  17347. }, {
  17348. "label": "山西朔州经济开发区",
  17349. "value": "140671"
  17350. }], [{
  17351. "label": "榆次区",
  17352. "value": "140702"
  17353. }, {
  17354. "label": "榆社县",
  17355. "value": "140721"
  17356. }, {
  17357. "label": "左权县",
  17358. "value": "140722"
  17359. }, {
  17360. "label": "和顺县",
  17361. "value": "140723"
  17362. }, {
  17363. "label": "昔阳县",
  17364. "value": "140724"
  17365. }, {
  17366. "label": "寿阳县",
  17367. "value": "140725"
  17368. }, {
  17369. "label": "太谷县",
  17370. "value": "140726"
  17371. }, {
  17372. "label": "祁县",
  17373. "value": "140727"
  17374. }, {
  17375. "label": "平遥县",
  17376. "value": "140728"
  17377. }, {
  17378. "label": "灵石县",
  17379. "value": "140729"
  17380. }, {
  17381. "label": "介休市",
  17382. "value": "140781"
  17383. }], [{
  17384. "label": "盐湖区",
  17385. "value": "140802"
  17386. }, {
  17387. "label": "临猗县",
  17388. "value": "140821"
  17389. }, {
  17390. "label": "万荣县",
  17391. "value": "140822"
  17392. }, {
  17393. "label": "闻喜县",
  17394. "value": "140823"
  17395. }, {
  17396. "label": "稷山县",
  17397. "value": "140824"
  17398. }, {
  17399. "label": "新绛县",
  17400. "value": "140825"
  17401. }, {
  17402. "label": "绛县",
  17403. "value": "140826"
  17404. }, {
  17405. "label": "垣曲县",
  17406. "value": "140827"
  17407. }, {
  17408. "label": "夏县",
  17409. "value": "140828"
  17410. }, {
  17411. "label": "平陆县",
  17412. "value": "140829"
  17413. }, {
  17414. "label": "芮城县",
  17415. "value": "140830"
  17416. }, {
  17417. "label": "永济市",
  17418. "value": "140881"
  17419. }, {
  17420. "label": "河津市",
  17421. "value": "140882"
  17422. }], [{
  17423. "label": "忻府区",
  17424. "value": "140902"
  17425. }, {
  17426. "label": "定襄县",
  17427. "value": "140921"
  17428. }, {
  17429. "label": "五台县",
  17430. "value": "140922"
  17431. }, {
  17432. "label": "代县",
  17433. "value": "140923"
  17434. }, {
  17435. "label": "繁峙县",
  17436. "value": "140924"
  17437. }, {
  17438. "label": "宁武县",
  17439. "value": "140925"
  17440. }, {
  17441. "label": "静乐县",
  17442. "value": "140926"
  17443. }, {
  17444. "label": "神池县",
  17445. "value": "140927"
  17446. }, {
  17447. "label": "五寨县",
  17448. "value": "140928"
  17449. }, {
  17450. "label": "岢岚县",
  17451. "value": "140929"
  17452. }, {
  17453. "label": "河曲县",
  17454. "value": "140930"
  17455. }, {
  17456. "label": "保德县",
  17457. "value": "140931"
  17458. }, {
  17459. "label": "偏关县",
  17460. "value": "140932"
  17461. }, {
  17462. "label": "五台山风景名胜区",
  17463. "value": "140971"
  17464. }, {
  17465. "label": "原平市",
  17466. "value": "140981"
  17467. }], [{
  17468. "label": "尧都区",
  17469. "value": "141002"
  17470. }, {
  17471. "label": "曲沃县",
  17472. "value": "141021"
  17473. }, {
  17474. "label": "翼城县",
  17475. "value": "141022"
  17476. }, {
  17477. "label": "襄汾县",
  17478. "value": "141023"
  17479. }, {
  17480. "label": "洪洞县",
  17481. "value": "141024"
  17482. }, {
  17483. "label": "古县",
  17484. "value": "141025"
  17485. }, {
  17486. "label": "安泽县",
  17487. "value": "141026"
  17488. }, {
  17489. "label": "浮山县",
  17490. "value": "141027"
  17491. }, {
  17492. "label": "吉县",
  17493. "value": "141028"
  17494. }, {
  17495. "label": "乡宁县",
  17496. "value": "141029"
  17497. }, {
  17498. "label": "大宁县",
  17499. "value": "141030"
  17500. }, {
  17501. "label": "隰县",
  17502. "value": "141031"
  17503. }, {
  17504. "label": "永和县",
  17505. "value": "141032"
  17506. }, {
  17507. "label": "蒲县",
  17508. "value": "141033"
  17509. }, {
  17510. "label": "汾西县",
  17511. "value": "141034"
  17512. }, {
  17513. "label": "侯马市",
  17514. "value": "141081"
  17515. }, {
  17516. "label": "霍州市",
  17517. "value": "141082"
  17518. }], [{
  17519. "label": "离石区",
  17520. "value": "141102"
  17521. }, {
  17522. "label": "文水县",
  17523. "value": "141121"
  17524. }, {
  17525. "label": "交城县",
  17526. "value": "141122"
  17527. }, {
  17528. "label": "兴县",
  17529. "value": "141123"
  17530. }, {
  17531. "label": "临县",
  17532. "value": "141124"
  17533. }, {
  17534. "label": "柳林县",
  17535. "value": "141125"
  17536. }, {
  17537. "label": "石楼县",
  17538. "value": "141126"
  17539. }, {
  17540. "label": "岚县",
  17541. "value": "141127"
  17542. }, {
  17543. "label": "方山县",
  17544. "value": "141128"
  17545. }, {
  17546. "label": "中阳县",
  17547. "value": "141129"
  17548. }, {
  17549. "label": "交口县",
  17550. "value": "141130"
  17551. }, {
  17552. "label": "孝义市",
  17553. "value": "141181"
  17554. }, {
  17555. "label": "汾阳市",
  17556. "value": "141182"
  17557. }]], [[{
  17558. "label": "新城区",
  17559. "value": "150102"
  17560. }, {
  17561. "label": "回民区",
  17562. "value": "150103"
  17563. }, {
  17564. "label": "玉泉区",
  17565. "value": "150104"
  17566. }, {
  17567. "label": "赛罕区",
  17568. "value": "150105"
  17569. }, {
  17570. "label": "土默特左旗",
  17571. "value": "150121"
  17572. }, {
  17573. "label": "托克托县",
  17574. "value": "150122"
  17575. }, {
  17576. "label": "和林格尔县",
  17577. "value": "150123"
  17578. }, {
  17579. "label": "清水河县",
  17580. "value": "150124"
  17581. }, {
  17582. "label": "武川县",
  17583. "value": "150125"
  17584. }, {
  17585. "label": "呼和浩特金海工业园区",
  17586. "value": "150171"
  17587. }, {
  17588. "label": "呼和浩特经济技术开发区",
  17589. "value": "150172"
  17590. }], [{
  17591. "label": "东河区",
  17592. "value": "150202"
  17593. }, {
  17594. "label": "昆都仑区",
  17595. "value": "150203"
  17596. }, {
  17597. "label": "青山区",
  17598. "value": "150204"
  17599. }, {
  17600. "label": "石拐区",
  17601. "value": "150205"
  17602. }, {
  17603. "label": "白云鄂博矿区",
  17604. "value": "150206"
  17605. }, {
  17606. "label": "九原区",
  17607. "value": "150207"
  17608. }, {
  17609. "label": "土默特右旗",
  17610. "value": "150221"
  17611. }, {
  17612. "label": "固阳县",
  17613. "value": "150222"
  17614. }, {
  17615. "label": "达尔罕茂明安联合旗",
  17616. "value": "150223"
  17617. }, {
  17618. "label": "包头稀土高新技术产业开发区",
  17619. "value": "150271"
  17620. }], [{
  17621. "label": "海勃湾区",
  17622. "value": "150302"
  17623. }, {
  17624. "label": "海南区",
  17625. "value": "150303"
  17626. }, {
  17627. "label": "乌达区",
  17628. "value": "150304"
  17629. }], [{
  17630. "label": "红山区",
  17631. "value": "150402"
  17632. }, {
  17633. "label": "元宝山区",
  17634. "value": "150403"
  17635. }, {
  17636. "label": "松山区",
  17637. "value": "150404"
  17638. }, {
  17639. "label": "阿鲁科尔沁旗",
  17640. "value": "150421"
  17641. }, {
  17642. "label": "巴林左旗",
  17643. "value": "150422"
  17644. }, {
  17645. "label": "巴林右旗",
  17646. "value": "150423"
  17647. }, {
  17648. "label": "林西县",
  17649. "value": "150424"
  17650. }, {
  17651. "label": "克什克腾旗",
  17652. "value": "150425"
  17653. }, {
  17654. "label": "翁牛特旗",
  17655. "value": "150426"
  17656. }, {
  17657. "label": "喀喇沁旗",
  17658. "value": "150428"
  17659. }, {
  17660. "label": "宁城县",
  17661. "value": "150429"
  17662. }, {
  17663. "label": "敖汉旗",
  17664. "value": "150430"
  17665. }], [{
  17666. "label": "科尔沁区",
  17667. "value": "150502"
  17668. }, {
  17669. "label": "科尔沁左翼中旗",
  17670. "value": "150521"
  17671. }, {
  17672. "label": "科尔沁左翼后旗",
  17673. "value": "150522"
  17674. }, {
  17675. "label": "开鲁县",
  17676. "value": "150523"
  17677. }, {
  17678. "label": "库伦旗",
  17679. "value": "150524"
  17680. }, {
  17681. "label": "奈曼旗",
  17682. "value": "150525"
  17683. }, {
  17684. "label": "扎鲁特旗",
  17685. "value": "150526"
  17686. }, {
  17687. "label": "通辽经济技术开发区",
  17688. "value": "150571"
  17689. }, {
  17690. "label": "霍林郭勒市",
  17691. "value": "150581"
  17692. }], [{
  17693. "label": "东胜区",
  17694. "value": "150602"
  17695. }, {
  17696. "label": "康巴什区",
  17697. "value": "150603"
  17698. }, {
  17699. "label": "达拉特旗",
  17700. "value": "150621"
  17701. }, {
  17702. "label": "准格尔旗",
  17703. "value": "150622"
  17704. }, {
  17705. "label": "鄂托克前旗",
  17706. "value": "150623"
  17707. }, {
  17708. "label": "鄂托克旗",
  17709. "value": "150624"
  17710. }, {
  17711. "label": "杭锦旗",
  17712. "value": "150625"
  17713. }, {
  17714. "label": "乌审旗",
  17715. "value": "150626"
  17716. }, {
  17717. "label": "伊金霍洛旗",
  17718. "value": "150627"
  17719. }], [{
  17720. "label": "海拉尔区",
  17721. "value": "150702"
  17722. }, {
  17723. "label": "扎赉诺尔区",
  17724. "value": "150703"
  17725. }, {
  17726. "label": "阿荣旗",
  17727. "value": "150721"
  17728. }, {
  17729. "label": "莫力达瓦达斡尔族自治旗",
  17730. "value": "150722"
  17731. }, {
  17732. "label": "鄂伦春自治旗",
  17733. "value": "150723"
  17734. }, {
  17735. "label": "鄂温克族自治旗",
  17736. "value": "150724"
  17737. }, {
  17738. "label": "陈巴尔虎旗",
  17739. "value": "150725"
  17740. }, {
  17741. "label": "新巴尔虎左旗",
  17742. "value": "150726"
  17743. }, {
  17744. "label": "新巴尔虎右旗",
  17745. "value": "150727"
  17746. }, {
  17747. "label": "满洲里市",
  17748. "value": "150781"
  17749. }, {
  17750. "label": "牙克石市",
  17751. "value": "150782"
  17752. }, {
  17753. "label": "扎兰屯市",
  17754. "value": "150783"
  17755. }, {
  17756. "label": "额尔古纳市",
  17757. "value": "150784"
  17758. }, {
  17759. "label": "根河市",
  17760. "value": "150785"
  17761. }], [{
  17762. "label": "临河区",
  17763. "value": "150802"
  17764. }, {
  17765. "label": "五原县",
  17766. "value": "150821"
  17767. }, {
  17768. "label": "磴口县",
  17769. "value": "150822"
  17770. }, {
  17771. "label": "乌拉特前旗",
  17772. "value": "150823"
  17773. }, {
  17774. "label": "乌拉特中旗",
  17775. "value": "150824"
  17776. }, {
  17777. "label": "乌拉特后旗",
  17778. "value": "150825"
  17779. }, {
  17780. "label": "杭锦后旗",
  17781. "value": "150826"
  17782. }], [{
  17783. "label": "集宁区",
  17784. "value": "150902"
  17785. }, {
  17786. "label": "卓资县",
  17787. "value": "150921"
  17788. }, {
  17789. "label": "化德县",
  17790. "value": "150922"
  17791. }, {
  17792. "label": "商都县",
  17793. "value": "150923"
  17794. }, {
  17795. "label": "兴和县",
  17796. "value": "150924"
  17797. }, {
  17798. "label": "凉城县",
  17799. "value": "150925"
  17800. }, {
  17801. "label": "察哈尔右翼前旗",
  17802. "value": "150926"
  17803. }, {
  17804. "label": "察哈尔右翼中旗",
  17805. "value": "150927"
  17806. }, {
  17807. "label": "察哈尔右翼后旗",
  17808. "value": "150928"
  17809. }, {
  17810. "label": "四子王旗",
  17811. "value": "150929"
  17812. }, {
  17813. "label": "丰镇市",
  17814. "value": "150981"
  17815. }], [{
  17816. "label": "乌兰浩特市",
  17817. "value": "152201"
  17818. }, {
  17819. "label": "阿尔山市",
  17820. "value": "152202"
  17821. }, {
  17822. "label": "科尔沁右翼前旗",
  17823. "value": "152221"
  17824. }, {
  17825. "label": "科尔沁右翼中旗",
  17826. "value": "152222"
  17827. }, {
  17828. "label": "扎赉特旗",
  17829. "value": "152223"
  17830. }, {
  17831. "label": "突泉县",
  17832. "value": "152224"
  17833. }], [{
  17834. "label": "二连浩特市",
  17835. "value": "152501"
  17836. }, {
  17837. "label": "锡林浩特市",
  17838. "value": "152502"
  17839. }, {
  17840. "label": "阿巴嘎旗",
  17841. "value": "152522"
  17842. }, {
  17843. "label": "苏尼特左旗",
  17844. "value": "152523"
  17845. }, {
  17846. "label": "苏尼特右旗",
  17847. "value": "152524"
  17848. }, {
  17849. "label": "东乌珠穆沁旗",
  17850. "value": "152525"
  17851. }, {
  17852. "label": "西乌珠穆沁旗",
  17853. "value": "152526"
  17854. }, {
  17855. "label": "太仆寺旗",
  17856. "value": "152527"
  17857. }, {
  17858. "label": "镶黄旗",
  17859. "value": "152528"
  17860. }, {
  17861. "label": "正镶白旗",
  17862. "value": "152529"
  17863. }, {
  17864. "label": "正蓝旗",
  17865. "value": "152530"
  17866. }, {
  17867. "label": "多伦县",
  17868. "value": "152531"
  17869. }, {
  17870. "label": "乌拉盖管委会",
  17871. "value": "152571"
  17872. }], [{
  17873. "label": "阿拉善左旗",
  17874. "value": "152921"
  17875. }, {
  17876. "label": "阿拉善右旗",
  17877. "value": "152922"
  17878. }, {
  17879. "label": "额济纳旗",
  17880. "value": "152923"
  17881. }, {
  17882. "label": "内蒙古阿拉善经济开发区",
  17883. "value": "152971"
  17884. }]], [[{
  17885. "label": "和平区",
  17886. "value": "210102"
  17887. }, {
  17888. "label": "沈河区",
  17889. "value": "210103"
  17890. }, {
  17891. "label": "大东区",
  17892. "value": "210104"
  17893. }, {
  17894. "label": "皇姑区",
  17895. "value": "210105"
  17896. }, {
  17897. "label": "铁西区",
  17898. "value": "210106"
  17899. }, {
  17900. "label": "苏家屯区",
  17901. "value": "210111"
  17902. }, {
  17903. "label": "浑南区",
  17904. "value": "210112"
  17905. }, {
  17906. "label": "沈北新区",
  17907. "value": "210113"
  17908. }, {
  17909. "label": "于洪区",
  17910. "value": "210114"
  17911. }, {
  17912. "label": "辽中区",
  17913. "value": "210115"
  17914. }, {
  17915. "label": "康平县",
  17916. "value": "210123"
  17917. }, {
  17918. "label": "法库县",
  17919. "value": "210124"
  17920. }, {
  17921. "label": "新民市",
  17922. "value": "210181"
  17923. }], [{
  17924. "label": "中山区",
  17925. "value": "210202"
  17926. }, {
  17927. "label": "西岗区",
  17928. "value": "210203"
  17929. }, {
  17930. "label": "沙河口区",
  17931. "value": "210204"
  17932. }, {
  17933. "label": "甘井子区",
  17934. "value": "210211"
  17935. }, {
  17936. "label": "旅顺口区",
  17937. "value": "210212"
  17938. }, {
  17939. "label": "金州区",
  17940. "value": "210213"
  17941. }, {
  17942. "label": "普兰店区",
  17943. "value": "210214"
  17944. }, {
  17945. "label": "长海县",
  17946. "value": "210224"
  17947. }, {
  17948. "label": "瓦房店市",
  17949. "value": "210281"
  17950. }, {
  17951. "label": "庄河市",
  17952. "value": "210283"
  17953. }], [{
  17954. "label": "铁东区",
  17955. "value": "210302"
  17956. }, {
  17957. "label": "铁西区",
  17958. "value": "210303"
  17959. }, {
  17960. "label": "立山区",
  17961. "value": "210304"
  17962. }, {
  17963. "label": "千山区",
  17964. "value": "210311"
  17965. }, {
  17966. "label": "台安县",
  17967. "value": "210321"
  17968. }, {
  17969. "label": "岫岩满族自治县",
  17970. "value": "210323"
  17971. }, {
  17972. "label": "海城市",
  17973. "value": "210381"
  17974. }], [{
  17975. "label": "新抚区",
  17976. "value": "210402"
  17977. }, {
  17978. "label": "东洲区",
  17979. "value": "210403"
  17980. }, {
  17981. "label": "望花区",
  17982. "value": "210404"
  17983. }, {
  17984. "label": "顺城区",
  17985. "value": "210411"
  17986. }, {
  17987. "label": "抚顺县",
  17988. "value": "210421"
  17989. }, {
  17990. "label": "新宾满族自治县",
  17991. "value": "210422"
  17992. }, {
  17993. "label": "清原满族自治县",
  17994. "value": "210423"
  17995. }], [{
  17996. "label": "平山区",
  17997. "value": "210502"
  17998. }, {
  17999. "label": "溪湖区",
  18000. "value": "210503"
  18001. }, {
  18002. "label": "明山区",
  18003. "value": "210504"
  18004. }, {
  18005. "label": "南芬区",
  18006. "value": "210505"
  18007. }, {
  18008. "label": "本溪满族自治县",
  18009. "value": "210521"
  18010. }, {
  18011. "label": "桓仁满族自治县",
  18012. "value": "210522"
  18013. }], [{
  18014. "label": "元宝区",
  18015. "value": "210602"
  18016. }, {
  18017. "label": "振兴区",
  18018. "value": "210603"
  18019. }, {
  18020. "label": "振安区",
  18021. "value": "210604"
  18022. }, {
  18023. "label": "宽甸满族自治县",
  18024. "value": "210624"
  18025. }, {
  18026. "label": "东港市",
  18027. "value": "210681"
  18028. }, {
  18029. "label": "凤城市",
  18030. "value": "210682"
  18031. }], [{
  18032. "label": "古塔区",
  18033. "value": "210702"
  18034. }, {
  18035. "label": "凌河区",
  18036. "value": "210703"
  18037. }, {
  18038. "label": "太和区",
  18039. "value": "210711"
  18040. }, {
  18041. "label": "黑山县",
  18042. "value": "210726"
  18043. }, {
  18044. "label": "义县",
  18045. "value": "210727"
  18046. }, {
  18047. "label": "凌海市",
  18048. "value": "210781"
  18049. }, {
  18050. "label": "北镇市",
  18051. "value": "210782"
  18052. }], [{
  18053. "label": "站前区",
  18054. "value": "210802"
  18055. }, {
  18056. "label": "西市区",
  18057. "value": "210803"
  18058. }, {
  18059. "label": "鲅鱼圈区",
  18060. "value": "210804"
  18061. }, {
  18062. "label": "老边区",
  18063. "value": "210811"
  18064. }, {
  18065. "label": "盖州市",
  18066. "value": "210881"
  18067. }, {
  18068. "label": "大石桥市",
  18069. "value": "210882"
  18070. }], [{
  18071. "label": "海州区",
  18072. "value": "210902"
  18073. }, {
  18074. "label": "新邱区",
  18075. "value": "210903"
  18076. }, {
  18077. "label": "太平区",
  18078. "value": "210904"
  18079. }, {
  18080. "label": "清河门区",
  18081. "value": "210905"
  18082. }, {
  18083. "label": "细河区",
  18084. "value": "210911"
  18085. }, {
  18086. "label": "阜新蒙古族自治县",
  18087. "value": "210921"
  18088. }, {
  18089. "label": "彰武县",
  18090. "value": "210922"
  18091. }], [{
  18092. "label": "白塔区",
  18093. "value": "211002"
  18094. }, {
  18095. "label": "文圣区",
  18096. "value": "211003"
  18097. }, {
  18098. "label": "宏伟区",
  18099. "value": "211004"
  18100. }, {
  18101. "label": "弓长岭区",
  18102. "value": "211005"
  18103. }, {
  18104. "label": "太子河区",
  18105. "value": "211011"
  18106. }, {
  18107. "label": "辽阳县",
  18108. "value": "211021"
  18109. }, {
  18110. "label": "灯塔市",
  18111. "value": "211081"
  18112. }], [{
  18113. "label": "双台子区",
  18114. "value": "211102"
  18115. }, {
  18116. "label": "兴隆台区",
  18117. "value": "211103"
  18118. }, {
  18119. "label": "大洼区",
  18120. "value": "211104"
  18121. }, {
  18122. "label": "盘山县",
  18123. "value": "211122"
  18124. }], [{
  18125. "label": "银州区",
  18126. "value": "211202"
  18127. }, {
  18128. "label": "清河区",
  18129. "value": "211204"
  18130. }, {
  18131. "label": "铁岭县",
  18132. "value": "211221"
  18133. }, {
  18134. "label": "西丰县",
  18135. "value": "211223"
  18136. }, {
  18137. "label": "昌图县",
  18138. "value": "211224"
  18139. }, {
  18140. "label": "调兵山市",
  18141. "value": "211281"
  18142. }, {
  18143. "label": "开原市",
  18144. "value": "211282"
  18145. }], [{
  18146. "label": "双塔区",
  18147. "value": "211302"
  18148. }, {
  18149. "label": "龙城区",
  18150. "value": "211303"
  18151. }, {
  18152. "label": "朝阳县",
  18153. "value": "211321"
  18154. }, {
  18155. "label": "建平县",
  18156. "value": "211322"
  18157. }, {
  18158. "label": "喀喇沁左翼蒙古族自治县",
  18159. "value": "211324"
  18160. }, {
  18161. "label": "北票市",
  18162. "value": "211381"
  18163. }, {
  18164. "label": "凌源市",
  18165. "value": "211382"
  18166. }], [{
  18167. "label": "连山区",
  18168. "value": "211402"
  18169. }, {
  18170. "label": "龙港区",
  18171. "value": "211403"
  18172. }, {
  18173. "label": "南票区",
  18174. "value": "211404"
  18175. }, {
  18176. "label": "绥中县",
  18177. "value": "211421"
  18178. }, {
  18179. "label": "建昌县",
  18180. "value": "211422"
  18181. }, {
  18182. "label": "兴城市",
  18183. "value": "211481"
  18184. }]], [[{
  18185. "label": "南关区",
  18186. "value": "220102"
  18187. }, {
  18188. "label": "宽城区",
  18189. "value": "220103"
  18190. }, {
  18191. "label": "朝阳区",
  18192. "value": "220104"
  18193. }, {
  18194. "label": "二道区",
  18195. "value": "220105"
  18196. }, {
  18197. "label": "绿园区",
  18198. "value": "220106"
  18199. }, {
  18200. "label": "双阳区",
  18201. "value": "220112"
  18202. }, {
  18203. "label": "九台区",
  18204. "value": "220113"
  18205. }, {
  18206. "label": "农安县",
  18207. "value": "220122"
  18208. }, {
  18209. "label": "长春经济技术开发区",
  18210. "value": "220171"
  18211. }, {
  18212. "label": "长春净月高新技术产业开发区",
  18213. "value": "220172"
  18214. }, {
  18215. "label": "长春高新技术产业开发区",
  18216. "value": "220173"
  18217. }, {
  18218. "label": "长春汽车经济技术开发区",
  18219. "value": "220174"
  18220. }, {
  18221. "label": "榆树市",
  18222. "value": "220182"
  18223. }, {
  18224. "label": "德惠市",
  18225. "value": "220183"
  18226. }], [{
  18227. "label": "昌邑区",
  18228. "value": "220202"
  18229. }, {
  18230. "label": "龙潭区",
  18231. "value": "220203"
  18232. }, {
  18233. "label": "船营区",
  18234. "value": "220204"
  18235. }, {
  18236. "label": "丰满区",
  18237. "value": "220211"
  18238. }, {
  18239. "label": "永吉县",
  18240. "value": "220221"
  18241. }, {
  18242. "label": "吉林经济开发区",
  18243. "value": "220271"
  18244. }, {
  18245. "label": "吉林高新技术产业开发区",
  18246. "value": "220272"
  18247. }, {
  18248. "label": "吉林中国新加坡食品区",
  18249. "value": "220273"
  18250. }, {
  18251. "label": "蛟河市",
  18252. "value": "220281"
  18253. }, {
  18254. "label": "桦甸市",
  18255. "value": "220282"
  18256. }, {
  18257. "label": "舒兰市",
  18258. "value": "220283"
  18259. }, {
  18260. "label": "磐石市",
  18261. "value": "220284"
  18262. }], [{
  18263. "label": "铁西区",
  18264. "value": "220302"
  18265. }, {
  18266. "label": "铁东区",
  18267. "value": "220303"
  18268. }, {
  18269. "label": "梨树县",
  18270. "value": "220322"
  18271. }, {
  18272. "label": "伊通满族自治县",
  18273. "value": "220323"
  18274. }, {
  18275. "label": "公主岭市",
  18276. "value": "220381"
  18277. }, {
  18278. "label": "双辽市",
  18279. "value": "220382"
  18280. }], [{
  18281. "label": "龙山区",
  18282. "value": "220402"
  18283. }, {
  18284. "label": "西安区",
  18285. "value": "220403"
  18286. }, {
  18287. "label": "东丰县",
  18288. "value": "220421"
  18289. }, {
  18290. "label": "东辽县",
  18291. "value": "220422"
  18292. }], [{
  18293. "label": "东昌区",
  18294. "value": "220502"
  18295. }, {
  18296. "label": "二道江区",
  18297. "value": "220503"
  18298. }, {
  18299. "label": "通化县",
  18300. "value": "220521"
  18301. }, {
  18302. "label": "辉南县",
  18303. "value": "220523"
  18304. }, {
  18305. "label": "柳河县",
  18306. "value": "220524"
  18307. }, {
  18308. "label": "梅河口市",
  18309. "value": "220581"
  18310. }, {
  18311. "label": "集安市",
  18312. "value": "220582"
  18313. }], [{
  18314. "label": "浑江区",
  18315. "value": "220602"
  18316. }, {
  18317. "label": "江源区",
  18318. "value": "220605"
  18319. }, {
  18320. "label": "抚松县",
  18321. "value": "220621"
  18322. }, {
  18323. "label": "靖宇县",
  18324. "value": "220622"
  18325. }, {
  18326. "label": "长白朝鲜族自治县",
  18327. "value": "220623"
  18328. }, {
  18329. "label": "临江市",
  18330. "value": "220681"
  18331. }], [{
  18332. "label": "宁江区",
  18333. "value": "220702"
  18334. }, {
  18335. "label": "前郭尔罗斯蒙古族自治县",
  18336. "value": "220721"
  18337. }, {
  18338. "label": "长岭县",
  18339. "value": "220722"
  18340. }, {
  18341. "label": "乾安县",
  18342. "value": "220723"
  18343. }, {
  18344. "label": "吉林松原经济开发区",
  18345. "value": "220771"
  18346. }, {
  18347. "label": "扶余市",
  18348. "value": "220781"
  18349. }], [{
  18350. "label": "洮北区",
  18351. "value": "220802"
  18352. }, {
  18353. "label": "镇赉县",
  18354. "value": "220821"
  18355. }, {
  18356. "label": "通榆县",
  18357. "value": "220822"
  18358. }, {
  18359. "label": "吉林白城经济开发区",
  18360. "value": "220871"
  18361. }, {
  18362. "label": "洮南市",
  18363. "value": "220881"
  18364. }, {
  18365. "label": "大安市",
  18366. "value": "220882"
  18367. }], [{
  18368. "label": "延吉市",
  18369. "value": "222401"
  18370. }, {
  18371. "label": "图们市",
  18372. "value": "222402"
  18373. }, {
  18374. "label": "敦化市",
  18375. "value": "222403"
  18376. }, {
  18377. "label": "珲春市",
  18378. "value": "222404"
  18379. }, {
  18380. "label": "龙井市",
  18381. "value": "222405"
  18382. }, {
  18383. "label": "和龙市",
  18384. "value": "222406"
  18385. }, {
  18386. "label": "汪清县",
  18387. "value": "222424"
  18388. }, {
  18389. "label": "安图县",
  18390. "value": "222426"
  18391. }]], [[{
  18392. "label": "道里区",
  18393. "value": "230102"
  18394. }, {
  18395. "label": "南岗区",
  18396. "value": "230103"
  18397. }, {
  18398. "label": "道外区",
  18399. "value": "230104"
  18400. }, {
  18401. "label": "平房区",
  18402. "value": "230108"
  18403. }, {
  18404. "label": "松北区",
  18405. "value": "230109"
  18406. }, {
  18407. "label": "香坊区",
  18408. "value": "230110"
  18409. }, {
  18410. "label": "呼兰区",
  18411. "value": "230111"
  18412. }, {
  18413. "label": "阿城区",
  18414. "value": "230112"
  18415. }, {
  18416. "label": "双城区",
  18417. "value": "230113"
  18418. }, {
  18419. "label": "依兰县",
  18420. "value": "230123"
  18421. }, {
  18422. "label": "方正县",
  18423. "value": "230124"
  18424. }, {
  18425. "label": "宾县",
  18426. "value": "230125"
  18427. }, {
  18428. "label": "巴彦县",
  18429. "value": "230126"
  18430. }, {
  18431. "label": "木兰县",
  18432. "value": "230127"
  18433. }, {
  18434. "label": "通河县",
  18435. "value": "230128"
  18436. }, {
  18437. "label": "延寿县",
  18438. "value": "230129"
  18439. }, {
  18440. "label": "尚志市",
  18441. "value": "230183"
  18442. }, {
  18443. "label": "五常市",
  18444. "value": "230184"
  18445. }], [{
  18446. "label": "龙沙区",
  18447. "value": "230202"
  18448. }, {
  18449. "label": "建华区",
  18450. "value": "230203"
  18451. }, {
  18452. "label": "铁锋区",
  18453. "value": "230204"
  18454. }, {
  18455. "label": "昂昂溪区",
  18456. "value": "230205"
  18457. }, {
  18458. "label": "富拉尔基区",
  18459. "value": "230206"
  18460. }, {
  18461. "label": "碾子山区",
  18462. "value": "230207"
  18463. }, {
  18464. "label": "梅里斯达斡尔族区",
  18465. "value": "230208"
  18466. }, {
  18467. "label": "龙江县",
  18468. "value": "230221"
  18469. }, {
  18470. "label": "依安县",
  18471. "value": "230223"
  18472. }, {
  18473. "label": "泰来县",
  18474. "value": "230224"
  18475. }, {
  18476. "label": "甘南县",
  18477. "value": "230225"
  18478. }, {
  18479. "label": "富裕县",
  18480. "value": "230227"
  18481. }, {
  18482. "label": "克山县",
  18483. "value": "230229"
  18484. }, {
  18485. "label": "克东县",
  18486. "value": "230230"
  18487. }, {
  18488. "label": "拜泉县",
  18489. "value": "230231"
  18490. }, {
  18491. "label": "讷河市",
  18492. "value": "230281"
  18493. }], [{
  18494. "label": "鸡冠区",
  18495. "value": "230302"
  18496. }, {
  18497. "label": "恒山区",
  18498. "value": "230303"
  18499. }, {
  18500. "label": "滴道区",
  18501. "value": "230304"
  18502. }, {
  18503. "label": "梨树区",
  18504. "value": "230305"
  18505. }, {
  18506. "label": "城子河区",
  18507. "value": "230306"
  18508. }, {
  18509. "label": "麻山区",
  18510. "value": "230307"
  18511. }, {
  18512. "label": "鸡东县",
  18513. "value": "230321"
  18514. }, {
  18515. "label": "虎林市",
  18516. "value": "230381"
  18517. }, {
  18518. "label": "密山市",
  18519. "value": "230382"
  18520. }], [{
  18521. "label": "向阳区",
  18522. "value": "230402"
  18523. }, {
  18524. "label": "工农区",
  18525. "value": "230403"
  18526. }, {
  18527. "label": "南山区",
  18528. "value": "230404"
  18529. }, {
  18530. "label": "兴安区",
  18531. "value": "230405"
  18532. }, {
  18533. "label": "东山区",
  18534. "value": "230406"
  18535. }, {
  18536. "label": "兴山区",
  18537. "value": "230407"
  18538. }, {
  18539. "label": "萝北县",
  18540. "value": "230421"
  18541. }, {
  18542. "label": "绥滨县",
  18543. "value": "230422"
  18544. }], [{
  18545. "label": "尖山区",
  18546. "value": "230502"
  18547. }, {
  18548. "label": "岭东区",
  18549. "value": "230503"
  18550. }, {
  18551. "label": "四方台区",
  18552. "value": "230505"
  18553. }, {
  18554. "label": "宝山区",
  18555. "value": "230506"
  18556. }, {
  18557. "label": "集贤县",
  18558. "value": "230521"
  18559. }, {
  18560. "label": "友谊县",
  18561. "value": "230522"
  18562. }, {
  18563. "label": "宝清县",
  18564. "value": "230523"
  18565. }, {
  18566. "label": "饶河县",
  18567. "value": "230524"
  18568. }], [{
  18569. "label": "萨尔图区",
  18570. "value": "230602"
  18571. }, {
  18572. "label": "龙凤区",
  18573. "value": "230603"
  18574. }, {
  18575. "label": "让胡路区",
  18576. "value": "230604"
  18577. }, {
  18578. "label": "红岗区",
  18579. "value": "230605"
  18580. }, {
  18581. "label": "大同区",
  18582. "value": "230606"
  18583. }, {
  18584. "label": "肇州县",
  18585. "value": "230621"
  18586. }, {
  18587. "label": "肇源县",
  18588. "value": "230622"
  18589. }, {
  18590. "label": "林甸县",
  18591. "value": "230623"
  18592. }, {
  18593. "label": "杜尔伯特蒙古族自治县",
  18594. "value": "230624"
  18595. }, {
  18596. "label": "大庆高新技术产业开发区",
  18597. "value": "230671"
  18598. }], [{
  18599. "label": "伊春区",
  18600. "value": "230702"
  18601. }, {
  18602. "label": "南岔区",
  18603. "value": "230703"
  18604. }, {
  18605. "label": "友好区",
  18606. "value": "230704"
  18607. }, {
  18608. "label": "西林区",
  18609. "value": "230705"
  18610. }, {
  18611. "label": "翠峦区",
  18612. "value": "230706"
  18613. }, {
  18614. "label": "新青区",
  18615. "value": "230707"
  18616. }, {
  18617. "label": "美溪区",
  18618. "value": "230708"
  18619. }, {
  18620. "label": "金山屯区",
  18621. "value": "230709"
  18622. }, {
  18623. "label": "五营区",
  18624. "value": "230710"
  18625. }, {
  18626. "label": "乌马河区",
  18627. "value": "230711"
  18628. }, {
  18629. "label": "汤旺河区",
  18630. "value": "230712"
  18631. }, {
  18632. "label": "带岭区",
  18633. "value": "230713"
  18634. }, {
  18635. "label": "乌伊岭区",
  18636. "value": "230714"
  18637. }, {
  18638. "label": "红星区",
  18639. "value": "230715"
  18640. }, {
  18641. "label": "上甘岭区",
  18642. "value": "230716"
  18643. }, {
  18644. "label": "嘉荫县",
  18645. "value": "230722"
  18646. }, {
  18647. "label": "铁力市",
  18648. "value": "230781"
  18649. }], [{
  18650. "label": "向阳区",
  18651. "value": "230803"
  18652. }, {
  18653. "label": "前进区",
  18654. "value": "230804"
  18655. }, {
  18656. "label": "东风区",
  18657. "value": "230805"
  18658. }, {
  18659. "label": "郊区",
  18660. "value": "230811"
  18661. }, {
  18662. "label": "桦南县",
  18663. "value": "230822"
  18664. }, {
  18665. "label": "桦川县",
  18666. "value": "230826"
  18667. }, {
  18668. "label": "汤原县",
  18669. "value": "230828"
  18670. }, {
  18671. "label": "同江市",
  18672. "value": "230881"
  18673. }, {
  18674. "label": "富锦市",
  18675. "value": "230882"
  18676. }, {
  18677. "label": "抚远市",
  18678. "value": "230883"
  18679. }], [{
  18680. "label": "新兴区",
  18681. "value": "230902"
  18682. }, {
  18683. "label": "桃山区",
  18684. "value": "230903"
  18685. }, {
  18686. "label": "茄子河区",
  18687. "value": "230904"
  18688. }, {
  18689. "label": "勃利县",
  18690. "value": "230921"
  18691. }], [{
  18692. "label": "东安区",
  18693. "value": "231002"
  18694. }, {
  18695. "label": "阳明区",
  18696. "value": "231003"
  18697. }, {
  18698. "label": "爱民区",
  18699. "value": "231004"
  18700. }, {
  18701. "label": "西安区",
  18702. "value": "231005"
  18703. }, {
  18704. "label": "林口县",
  18705. "value": "231025"
  18706. }, {
  18707. "label": "牡丹江经济技术开发区",
  18708. "value": "231071"
  18709. }, {
  18710. "label": "绥芬河市",
  18711. "value": "231081"
  18712. }, {
  18713. "label": "海林市",
  18714. "value": "231083"
  18715. }, {
  18716. "label": "宁安市",
  18717. "value": "231084"
  18718. }, {
  18719. "label": "穆棱市",
  18720. "value": "231085"
  18721. }, {
  18722. "label": "东宁市",
  18723. "value": "231086"
  18724. }], [{
  18725. "label": "爱辉区",
  18726. "value": "231102"
  18727. }, {
  18728. "label": "嫩江县",
  18729. "value": "231121"
  18730. }, {
  18731. "label": "逊克县",
  18732. "value": "231123"
  18733. }, {
  18734. "label": "孙吴县",
  18735. "value": "231124"
  18736. }, {
  18737. "label": "北安市",
  18738. "value": "231181"
  18739. }, {
  18740. "label": "五大连池市",
  18741. "value": "231182"
  18742. }], [{
  18743. "label": "北林区",
  18744. "value": "231202"
  18745. }, {
  18746. "label": "望奎县",
  18747. "value": "231221"
  18748. }, {
  18749. "label": "兰西县",
  18750. "value": "231222"
  18751. }, {
  18752. "label": "青冈县",
  18753. "value": "231223"
  18754. }, {
  18755. "label": "庆安县",
  18756. "value": "231224"
  18757. }, {
  18758. "label": "明水县",
  18759. "value": "231225"
  18760. }, {
  18761. "label": "绥棱县",
  18762. "value": "231226"
  18763. }, {
  18764. "label": "安达市",
  18765. "value": "231281"
  18766. }, {
  18767. "label": "肇东市",
  18768. "value": "231282"
  18769. }, {
  18770. "label": "海伦市",
  18771. "value": "231283"
  18772. }], [{
  18773. "label": "加格达奇区",
  18774. "value": "232701"
  18775. }, {
  18776. "label": "松岭区",
  18777. "value": "232702"
  18778. }, {
  18779. "label": "新林区",
  18780. "value": "232703"
  18781. }, {
  18782. "label": "呼中区",
  18783. "value": "232704"
  18784. }, {
  18785. "label": "呼玛县",
  18786. "value": "232721"
  18787. }, {
  18788. "label": "塔河县",
  18789. "value": "232722"
  18790. }, {
  18791. "label": "漠河县",
  18792. "value": "232723"
  18793. }]], [[{
  18794. "label": "黄浦区",
  18795. "value": "310101"
  18796. }, {
  18797. "label": "徐汇区",
  18798. "value": "310104"
  18799. }, {
  18800. "label": "长宁区",
  18801. "value": "310105"
  18802. }, {
  18803. "label": "静安区",
  18804. "value": "310106"
  18805. }, {
  18806. "label": "普陀区",
  18807. "value": "310107"
  18808. }, {
  18809. "label": "虹口区",
  18810. "value": "310109"
  18811. }, {
  18812. "label": "杨浦区",
  18813. "value": "310110"
  18814. }, {
  18815. "label": "闵行区",
  18816. "value": "310112"
  18817. }, {
  18818. "label": "宝山区",
  18819. "value": "310113"
  18820. }, {
  18821. "label": "嘉定区",
  18822. "value": "310114"
  18823. }, {
  18824. "label": "浦东新区",
  18825. "value": "310115"
  18826. }, {
  18827. "label": "金山区",
  18828. "value": "310116"
  18829. }, {
  18830. "label": "松江区",
  18831. "value": "310117"
  18832. }, {
  18833. "label": "青浦区",
  18834. "value": "310118"
  18835. }, {
  18836. "label": "奉贤区",
  18837. "value": "310120"
  18838. }, {
  18839. "label": "崇明区",
  18840. "value": "310151"
  18841. }]], [[{
  18842. "label": "玄武区",
  18843. "value": "320102"
  18844. }, {
  18845. "label": "秦淮区",
  18846. "value": "320104"
  18847. }, {
  18848. "label": "建邺区",
  18849. "value": "320105"
  18850. }, {
  18851. "label": "鼓楼区",
  18852. "value": "320106"
  18853. }, {
  18854. "label": "浦口区",
  18855. "value": "320111"
  18856. }, {
  18857. "label": "栖霞区",
  18858. "value": "320113"
  18859. }, {
  18860. "label": "雨花台区",
  18861. "value": "320114"
  18862. }, {
  18863. "label": "江宁区",
  18864. "value": "320115"
  18865. }, {
  18866. "label": "六合区",
  18867. "value": "320116"
  18868. }, {
  18869. "label": "溧水区",
  18870. "value": "320117"
  18871. }, {
  18872. "label": "高淳区",
  18873. "value": "320118"
  18874. }], [{
  18875. "label": "锡山区",
  18876. "value": "320205"
  18877. }, {
  18878. "label": "惠山区",
  18879. "value": "320206"
  18880. }, {
  18881. "label": "滨湖区",
  18882. "value": "320211"
  18883. }, {
  18884. "label": "梁溪区",
  18885. "value": "320213"
  18886. }, {
  18887. "label": "新吴区",
  18888. "value": "320214"
  18889. }, {
  18890. "label": "江阴市",
  18891. "value": "320281"
  18892. }, {
  18893. "label": "宜兴市",
  18894. "value": "320282"
  18895. }], [{
  18896. "label": "鼓楼区",
  18897. "value": "320302"
  18898. }, {
  18899. "label": "云龙区",
  18900. "value": "320303"
  18901. }, {
  18902. "label": "贾汪区",
  18903. "value": "320305"
  18904. }, {
  18905. "label": "泉山区",
  18906. "value": "320311"
  18907. }, {
  18908. "label": "铜山区",
  18909. "value": "320312"
  18910. }, {
  18911. "label": "丰县",
  18912. "value": "320321"
  18913. }, {
  18914. "label": "沛县",
  18915. "value": "320322"
  18916. }, {
  18917. "label": "睢宁县",
  18918. "value": "320324"
  18919. }, {
  18920. "label": "徐州经济技术开发区",
  18921. "value": "320371"
  18922. }, {
  18923. "label": "新沂市",
  18924. "value": "320381"
  18925. }, {
  18926. "label": "邳州市",
  18927. "value": "320382"
  18928. }], [{
  18929. "label": "天宁区",
  18930. "value": "320402"
  18931. }, {
  18932. "label": "钟楼区",
  18933. "value": "320404"
  18934. }, {
  18935. "label": "新北区",
  18936. "value": "320411"
  18937. }, {
  18938. "label": "武进区",
  18939. "value": "320412"
  18940. }, {
  18941. "label": "金坛区",
  18942. "value": "320413"
  18943. }, {
  18944. "label": "溧阳市",
  18945. "value": "320481"
  18946. }], [{
  18947. "label": "虎丘区",
  18948. "value": "320505"
  18949. }, {
  18950. "label": "吴中区",
  18951. "value": "320506"
  18952. }, {
  18953. "label": "相城区",
  18954. "value": "320507"
  18955. }, {
  18956. "label": "姑苏区",
  18957. "value": "320508"
  18958. }, {
  18959. "label": "吴江区",
  18960. "value": "320509"
  18961. }, {
  18962. "label": "苏州工业园区",
  18963. "value": "320571"
  18964. }, {
  18965. "label": "常熟市",
  18966. "value": "320581"
  18967. }, {
  18968. "label": "张家港市",
  18969. "value": "320582"
  18970. }, {
  18971. "label": "昆山市",
  18972. "value": "320583"
  18973. }, {
  18974. "label": "太仓市",
  18975. "value": "320585"
  18976. }], [{
  18977. "label": "崇川区",
  18978. "value": "320602"
  18979. }, {
  18980. "label": "港闸区",
  18981. "value": "320611"
  18982. }, {
  18983. "label": "通州区",
  18984. "value": "320612"
  18985. }, {
  18986. "label": "海安县",
  18987. "value": "320621"
  18988. }, {
  18989. "label": "如东县",
  18990. "value": "320623"
  18991. }, {
  18992. "label": "南通经济技术开发区",
  18993. "value": "320671"
  18994. }, {
  18995. "label": "启东市",
  18996. "value": "320681"
  18997. }, {
  18998. "label": "如皋市",
  18999. "value": "320682"
  19000. }, {
  19001. "label": "海门市",
  19002. "value": "320684"
  19003. }], [{
  19004. "label": "连云区",
  19005. "value": "320703"
  19006. }, {
  19007. "label": "海州区",
  19008. "value": "320706"
  19009. }, {
  19010. "label": "赣榆区",
  19011. "value": "320707"
  19012. }, {
  19013. "label": "东海县",
  19014. "value": "320722"
  19015. }, {
  19016. "label": "灌云县",
  19017. "value": "320723"
  19018. }, {
  19019. "label": "灌南县",
  19020. "value": "320724"
  19021. }, {
  19022. "label": "连云港经济技术开发区",
  19023. "value": "320771"
  19024. }, {
  19025. "label": "连云港高新技术产业开发区",
  19026. "value": "320772"
  19027. }], [{
  19028. "label": "淮安区",
  19029. "value": "320803"
  19030. }, {
  19031. "label": "淮阴区",
  19032. "value": "320804"
  19033. }, {
  19034. "label": "清江浦区",
  19035. "value": "320812"
  19036. }, {
  19037. "label": "洪泽区",
  19038. "value": "320813"
  19039. }, {
  19040. "label": "涟水县",
  19041. "value": "320826"
  19042. }, {
  19043. "label": "盱眙县",
  19044. "value": "320830"
  19045. }, {
  19046. "label": "金湖县",
  19047. "value": "320831"
  19048. }, {
  19049. "label": "淮安经济技术开发区",
  19050. "value": "320871"
  19051. }], [{
  19052. "label": "亭湖区",
  19053. "value": "320902"
  19054. }, {
  19055. "label": "盐都区",
  19056. "value": "320903"
  19057. }, {
  19058. "label": "大丰区",
  19059. "value": "320904"
  19060. }, {
  19061. "label": "响水县",
  19062. "value": "320921"
  19063. }, {
  19064. "label": "滨海县",
  19065. "value": "320922"
  19066. }, {
  19067. "label": "阜宁县",
  19068. "value": "320923"
  19069. }, {
  19070. "label": "射阳县",
  19071. "value": "320924"
  19072. }, {
  19073. "label": "建湖县",
  19074. "value": "320925"
  19075. }, {
  19076. "label": "盐城经济技术开发区",
  19077. "value": "320971"
  19078. }, {
  19079. "label": "东台市",
  19080. "value": "320981"
  19081. }], [{
  19082. "label": "广陵区",
  19083. "value": "321002"
  19084. }, {
  19085. "label": "邗江区",
  19086. "value": "321003"
  19087. }, {
  19088. "label": "江都区",
  19089. "value": "321012"
  19090. }, {
  19091. "label": "宝应县",
  19092. "value": "321023"
  19093. }, {
  19094. "label": "扬州经济技术开发区",
  19095. "value": "321071"
  19096. }, {
  19097. "label": "仪征市",
  19098. "value": "321081"
  19099. }, {
  19100. "label": "高邮市",
  19101. "value": "321084"
  19102. }], [{
  19103. "label": "京口区",
  19104. "value": "321102"
  19105. }, {
  19106. "label": "润州区",
  19107. "value": "321111"
  19108. }, {
  19109. "label": "丹徒区",
  19110. "value": "321112"
  19111. }, {
  19112. "label": "镇江新区",
  19113. "value": "321171"
  19114. }, {
  19115. "label": "丹阳市",
  19116. "value": "321181"
  19117. }, {
  19118. "label": "扬中市",
  19119. "value": "321182"
  19120. }, {
  19121. "label": "句容市",
  19122. "value": "321183"
  19123. }], [{
  19124. "label": "海陵区",
  19125. "value": "321202"
  19126. }, {
  19127. "label": "高港区",
  19128. "value": "321203"
  19129. }, {
  19130. "label": "姜堰区",
  19131. "value": "321204"
  19132. }, {
  19133. "label": "泰州医药高新技术产业开发区",
  19134. "value": "321271"
  19135. }, {
  19136. "label": "兴化市",
  19137. "value": "321281"
  19138. }, {
  19139. "label": "靖江市",
  19140. "value": "321282"
  19141. }, {
  19142. "label": "泰兴市",
  19143. "value": "321283"
  19144. }], [{
  19145. "label": "宿城区",
  19146. "value": "321302"
  19147. }, {
  19148. "label": "宿豫区",
  19149. "value": "321311"
  19150. }, {
  19151. "label": "沭阳县",
  19152. "value": "321322"
  19153. }, {
  19154. "label": "泗阳县",
  19155. "value": "321323"
  19156. }, {
  19157. "label": "泗洪县",
  19158. "value": "321324"
  19159. }, {
  19160. "label": "宿迁经济技术开发区",
  19161. "value": "321371"
  19162. }]], [[{
  19163. "label": "上城区",
  19164. "value": "330102"
  19165. }, {
  19166. "label": "下城区",
  19167. "value": "330103"
  19168. }, {
  19169. "label": "江干区",
  19170. "value": "330104"
  19171. }, {
  19172. "label": "拱墅区",
  19173. "value": "330105"
  19174. }, {
  19175. "label": "西湖区",
  19176. "value": "330106"
  19177. }, {
  19178. "label": "滨江区",
  19179. "value": "330108"
  19180. }, {
  19181. "label": "萧山区",
  19182. "value": "330109"
  19183. }, {
  19184. "label": "余杭区",
  19185. "value": "330110"
  19186. }, {
  19187. "label": "富阳区",
  19188. "value": "330111"
  19189. }, {
  19190. "label": "临安区",
  19191. "value": "330112"
  19192. }, {
  19193. "label": "桐庐县",
  19194. "value": "330122"
  19195. }, {
  19196. "label": "淳安县",
  19197. "value": "330127"
  19198. }, {
  19199. "label": "建德市",
  19200. "value": "330182"
  19201. }], [{
  19202. "label": "海曙区",
  19203. "value": "330203"
  19204. }, {
  19205. "label": "江北区",
  19206. "value": "330205"
  19207. }, {
  19208. "label": "北仑区",
  19209. "value": "330206"
  19210. }, {
  19211. "label": "镇海区",
  19212. "value": "330211"
  19213. }, {
  19214. "label": "鄞州区",
  19215. "value": "330212"
  19216. }, {
  19217. "label": "奉化区",
  19218. "value": "330213"
  19219. }, {
  19220. "label": "象山县",
  19221. "value": "330225"
  19222. }, {
  19223. "label": "宁海县",
  19224. "value": "330226"
  19225. }, {
  19226. "label": "余姚市",
  19227. "value": "330281"
  19228. }, {
  19229. "label": "慈溪市",
  19230. "value": "330282"
  19231. }], [{
  19232. "label": "鹿城区",
  19233. "value": "330302"
  19234. }, {
  19235. "label": "龙湾区",
  19236. "value": "330303"
  19237. }, {
  19238. "label": "瓯海区",
  19239. "value": "330304"
  19240. }, {
  19241. "label": "洞头区",
  19242. "value": "330305"
  19243. }, {
  19244. "label": "永嘉县",
  19245. "value": "330324"
  19246. }, {
  19247. "label": "平阳县",
  19248. "value": "330326"
  19249. }, {
  19250. "label": "苍南县",
  19251. "value": "330327"
  19252. }, {
  19253. "label": "文成县",
  19254. "value": "330328"
  19255. }, {
  19256. "label": "泰顺县",
  19257. "value": "330329"
  19258. }, {
  19259. "label": "温州经济技术开发区",
  19260. "value": "330371"
  19261. }, {
  19262. "label": "瑞安市",
  19263. "value": "330381"
  19264. }, {
  19265. "label": "乐清市",
  19266. "value": "330382"
  19267. }], [{
  19268. "label": "南湖区",
  19269. "value": "330402"
  19270. }, {
  19271. "label": "秀洲区",
  19272. "value": "330411"
  19273. }, {
  19274. "label": "嘉善县",
  19275. "value": "330421"
  19276. }, {
  19277. "label": "海盐县",
  19278. "value": "330424"
  19279. }, {
  19280. "label": "海宁市",
  19281. "value": "330481"
  19282. }, {
  19283. "label": "平湖市",
  19284. "value": "330482"
  19285. }, {
  19286. "label": "桐乡市",
  19287. "value": "330483"
  19288. }], [{
  19289. "label": "吴兴区",
  19290. "value": "330502"
  19291. }, {
  19292. "label": "南浔区",
  19293. "value": "330503"
  19294. }, {
  19295. "label": "德清县",
  19296. "value": "330521"
  19297. }, {
  19298. "label": "长兴县",
  19299. "value": "330522"
  19300. }, {
  19301. "label": "安吉县",
  19302. "value": "330523"
  19303. }], [{
  19304. "label": "越城区",
  19305. "value": "330602"
  19306. }, {
  19307. "label": "柯桥区",
  19308. "value": "330603"
  19309. }, {
  19310. "label": "上虞区",
  19311. "value": "330604"
  19312. }, {
  19313. "label": "新昌县",
  19314. "value": "330624"
  19315. }, {
  19316. "label": "诸暨市",
  19317. "value": "330681"
  19318. }, {
  19319. "label": "嵊州市",
  19320. "value": "330683"
  19321. }], [{
  19322. "label": "婺城区",
  19323. "value": "330702"
  19324. }, {
  19325. "label": "金东区",
  19326. "value": "330703"
  19327. }, {
  19328. "label": "武义县",
  19329. "value": "330723"
  19330. }, {
  19331. "label": "浦江县",
  19332. "value": "330726"
  19333. }, {
  19334. "label": "磐安县",
  19335. "value": "330727"
  19336. }, {
  19337. "label": "兰溪市",
  19338. "value": "330781"
  19339. }, {
  19340. "label": "义乌市",
  19341. "value": "330782"
  19342. }, {
  19343. "label": "东阳市",
  19344. "value": "330783"
  19345. }, {
  19346. "label": "永康市",
  19347. "value": "330784"
  19348. }], [{
  19349. "label": "柯城区",
  19350. "value": "330802"
  19351. }, {
  19352. "label": "衢江区",
  19353. "value": "330803"
  19354. }, {
  19355. "label": "常山县",
  19356. "value": "330822"
  19357. }, {
  19358. "label": "开化县",
  19359. "value": "330824"
  19360. }, {
  19361. "label": "龙游县",
  19362. "value": "330825"
  19363. }, {
  19364. "label": "江山市",
  19365. "value": "330881"
  19366. }], [{
  19367. "label": "定海区",
  19368. "value": "330902"
  19369. }, {
  19370. "label": "普陀区",
  19371. "value": "330903"
  19372. }, {
  19373. "label": "岱山县",
  19374. "value": "330921"
  19375. }, {
  19376. "label": "嵊泗县",
  19377. "value": "330922"
  19378. }], [{
  19379. "label": "椒江区",
  19380. "value": "331002"
  19381. }, {
  19382. "label": "黄岩区",
  19383. "value": "331003"
  19384. }, {
  19385. "label": "路桥区",
  19386. "value": "331004"
  19387. }, {
  19388. "label": "三门县",
  19389. "value": "331022"
  19390. }, {
  19391. "label": "天台县",
  19392. "value": "331023"
  19393. }, {
  19394. "label": "仙居县",
  19395. "value": "331024"
  19396. }, {
  19397. "label": "温岭市",
  19398. "value": "331081"
  19399. }, {
  19400. "label": "临海市",
  19401. "value": "331082"
  19402. }, {
  19403. "label": "玉环市",
  19404. "value": "331083"
  19405. }], [{
  19406. "label": "莲都区",
  19407. "value": "331102"
  19408. }, {
  19409. "label": "青田县",
  19410. "value": "331121"
  19411. }, {
  19412. "label": "缙云县",
  19413. "value": "331122"
  19414. }, {
  19415. "label": "遂昌县",
  19416. "value": "331123"
  19417. }, {
  19418. "label": "松阳县",
  19419. "value": "331124"
  19420. }, {
  19421. "label": "云和县",
  19422. "value": "331125"
  19423. }, {
  19424. "label": "庆元县",
  19425. "value": "331126"
  19426. }, {
  19427. "label": "景宁畲族自治县",
  19428. "value": "331127"
  19429. }, {
  19430. "label": "龙泉市",
  19431. "value": "331181"
  19432. }]], [[{
  19433. "label": "瑶海区",
  19434. "value": "340102"
  19435. }, {
  19436. "label": "庐阳区",
  19437. "value": "340103"
  19438. }, {
  19439. "label": "蜀山区",
  19440. "value": "340104"
  19441. }, {
  19442. "label": "包河区",
  19443. "value": "340111"
  19444. }, {
  19445. "label": "长丰县",
  19446. "value": "340121"
  19447. }, {
  19448. "label": "肥东县",
  19449. "value": "340122"
  19450. }, {
  19451. "label": "肥西县",
  19452. "value": "340123"
  19453. }, {
  19454. "label": "庐江县",
  19455. "value": "340124"
  19456. }, {
  19457. "label": "合肥高新技术产业开发区",
  19458. "value": "340171"
  19459. }, {
  19460. "label": "合肥经济技术开发区",
  19461. "value": "340172"
  19462. }, {
  19463. "label": "合肥新站高新技术产业开发区",
  19464. "value": "340173"
  19465. }, {
  19466. "label": "巢湖市",
  19467. "value": "340181"
  19468. }], [{
  19469. "label": "镜湖区",
  19470. "value": "340202"
  19471. }, {
  19472. "label": "弋江区",
  19473. "value": "340203"
  19474. }, {
  19475. "label": "鸠江区",
  19476. "value": "340207"
  19477. }, {
  19478. "label": "三山区",
  19479. "value": "340208"
  19480. }, {
  19481. "label": "芜湖县",
  19482. "value": "340221"
  19483. }, {
  19484. "label": "繁昌县",
  19485. "value": "340222"
  19486. }, {
  19487. "label": "南陵县",
  19488. "value": "340223"
  19489. }, {
  19490. "label": "无为县",
  19491. "value": "340225"
  19492. }, {
  19493. "label": "芜湖经济技术开发区",
  19494. "value": "340271"
  19495. }, {
  19496. "label": "安徽芜湖长江大桥经济开发区",
  19497. "value": "340272"
  19498. }], [{
  19499. "label": "龙子湖区",
  19500. "value": "340302"
  19501. }, {
  19502. "label": "蚌山区",
  19503. "value": "340303"
  19504. }, {
  19505. "label": "禹会区",
  19506. "value": "340304"
  19507. }, {
  19508. "label": "淮上区",
  19509. "value": "340311"
  19510. }, {
  19511. "label": "怀远县",
  19512. "value": "340321"
  19513. }, {
  19514. "label": "五河县",
  19515. "value": "340322"
  19516. }, {
  19517. "label": "固镇县",
  19518. "value": "340323"
  19519. }, {
  19520. "label": "蚌埠市高新技术开发区",
  19521. "value": "340371"
  19522. }, {
  19523. "label": "蚌埠市经济开发区",
  19524. "value": "340372"
  19525. }], [{
  19526. "label": "大通区",
  19527. "value": "340402"
  19528. }, {
  19529. "label": "田家庵区",
  19530. "value": "340403"
  19531. }, {
  19532. "label": "谢家集区",
  19533. "value": "340404"
  19534. }, {
  19535. "label": "八公山区",
  19536. "value": "340405"
  19537. }, {
  19538. "label": "潘集区",
  19539. "value": "340406"
  19540. }, {
  19541. "label": "凤台县",
  19542. "value": "340421"
  19543. }, {
  19544. "label": "寿县",
  19545. "value": "340422"
  19546. }], [{
  19547. "label": "花山区",
  19548. "value": "340503"
  19549. }, {
  19550. "label": "雨山区",
  19551. "value": "340504"
  19552. }, {
  19553. "label": "博望区",
  19554. "value": "340506"
  19555. }, {
  19556. "label": "当涂县",
  19557. "value": "340521"
  19558. }, {
  19559. "label": "含山县",
  19560. "value": "340522"
  19561. }, {
  19562. "label": "和县",
  19563. "value": "340523"
  19564. }], [{
  19565. "label": "杜集区",
  19566. "value": "340602"
  19567. }, {
  19568. "label": "相山区",
  19569. "value": "340603"
  19570. }, {
  19571. "label": "烈山区",
  19572. "value": "340604"
  19573. }, {
  19574. "label": "濉溪县",
  19575. "value": "340621"
  19576. }], [{
  19577. "label": "铜官区",
  19578. "value": "340705"
  19579. }, {
  19580. "label": "义安区",
  19581. "value": "340706"
  19582. }, {
  19583. "label": "郊区",
  19584. "value": "340711"
  19585. }, {
  19586. "label": "枞阳县",
  19587. "value": "340722"
  19588. }], [{
  19589. "label": "迎江区",
  19590. "value": "340802"
  19591. }, {
  19592. "label": "大观区",
  19593. "value": "340803"
  19594. }, {
  19595. "label": "宜秀区",
  19596. "value": "340811"
  19597. }, {
  19598. "label": "怀宁县",
  19599. "value": "340822"
  19600. }, {
  19601. "label": "潜山县",
  19602. "value": "340824"
  19603. }, {
  19604. "label": "太湖县",
  19605. "value": "340825"
  19606. }, {
  19607. "label": "宿松县",
  19608. "value": "340826"
  19609. }, {
  19610. "label": "望江县",
  19611. "value": "340827"
  19612. }, {
  19613. "label": "岳西县",
  19614. "value": "340828"
  19615. }, {
  19616. "label": "安徽安庆经济开发区",
  19617. "value": "340871"
  19618. }, {
  19619. "label": "桐城市",
  19620. "value": "340881"
  19621. }], [{
  19622. "label": "屯溪区",
  19623. "value": "341002"
  19624. }, {
  19625. "label": "黄山区",
  19626. "value": "341003"
  19627. }, {
  19628. "label": "徽州区",
  19629. "value": "341004"
  19630. }, {
  19631. "label": "歙县",
  19632. "value": "341021"
  19633. }, {
  19634. "label": "休宁县",
  19635. "value": "341022"
  19636. }, {
  19637. "label": "黟县",
  19638. "value": "341023"
  19639. }, {
  19640. "label": "祁门县",
  19641. "value": "341024"
  19642. }], [{
  19643. "label": "琅琊区",
  19644. "value": "341102"
  19645. }, {
  19646. "label": "南谯区",
  19647. "value": "341103"
  19648. }, {
  19649. "label": "来安县",
  19650. "value": "341122"
  19651. }, {
  19652. "label": "全椒县",
  19653. "value": "341124"
  19654. }, {
  19655. "label": "定远县",
  19656. "value": "341125"
  19657. }, {
  19658. "label": "凤阳县",
  19659. "value": "341126"
  19660. }, {
  19661. "label": "苏滁现代产业园",
  19662. "value": "341171"
  19663. }, {
  19664. "label": "滁州经济技术开发区",
  19665. "value": "341172"
  19666. }, {
  19667. "label": "天长市",
  19668. "value": "341181"
  19669. }, {
  19670. "label": "明光市",
  19671. "value": "341182"
  19672. }], [{
  19673. "label": "颍州区",
  19674. "value": "341202"
  19675. }, {
  19676. "label": "颍东区",
  19677. "value": "341203"
  19678. }, {
  19679. "label": "颍泉区",
  19680. "value": "341204"
  19681. }, {
  19682. "label": "临泉县",
  19683. "value": "341221"
  19684. }, {
  19685. "label": "太和县",
  19686. "value": "341222"
  19687. }, {
  19688. "label": "阜南县",
  19689. "value": "341225"
  19690. }, {
  19691. "label": "颍上县",
  19692. "value": "341226"
  19693. }, {
  19694. "label": "阜阳合肥现代产业园区",
  19695. "value": "341271"
  19696. }, {
  19697. "label": "阜阳经济技术开发区",
  19698. "value": "341272"
  19699. }, {
  19700. "label": "界首市",
  19701. "value": "341282"
  19702. }], [{
  19703. "label": "埇桥区",
  19704. "value": "341302"
  19705. }, {
  19706. "label": "砀山县",
  19707. "value": "341321"
  19708. }, {
  19709. "label": "萧县",
  19710. "value": "341322"
  19711. }, {
  19712. "label": "灵璧县",
  19713. "value": "341323"
  19714. }, {
  19715. "label": "泗县",
  19716. "value": "341324"
  19717. }, {
  19718. "label": "宿州马鞍山现代产业园区",
  19719. "value": "341371"
  19720. }, {
  19721. "label": "宿州经济技术开发区",
  19722. "value": "341372"
  19723. }], [{
  19724. "label": "金安区",
  19725. "value": "341502"
  19726. }, {
  19727. "label": "裕安区",
  19728. "value": "341503"
  19729. }, {
  19730. "label": "叶集区",
  19731. "value": "341504"
  19732. }, {
  19733. "label": "霍邱县",
  19734. "value": "341522"
  19735. }, {
  19736. "label": "舒城县",
  19737. "value": "341523"
  19738. }, {
  19739. "label": "金寨县",
  19740. "value": "341524"
  19741. }, {
  19742. "label": "霍山县",
  19743. "value": "341525"
  19744. }], [{
  19745. "label": "谯城区",
  19746. "value": "341602"
  19747. }, {
  19748. "label": "涡阳县",
  19749. "value": "341621"
  19750. }, {
  19751. "label": "蒙城县",
  19752. "value": "341622"
  19753. }, {
  19754. "label": "利辛县",
  19755. "value": "341623"
  19756. }], [{
  19757. "label": "贵池区",
  19758. "value": "341702"
  19759. }, {
  19760. "label": "东至县",
  19761. "value": "341721"
  19762. }, {
  19763. "label": "石台县",
  19764. "value": "341722"
  19765. }, {
  19766. "label": "青阳县",
  19767. "value": "341723"
  19768. }], [{
  19769. "label": "宣州区",
  19770. "value": "341802"
  19771. }, {
  19772. "label": "郎溪县",
  19773. "value": "341821"
  19774. }, {
  19775. "label": "广德县",
  19776. "value": "341822"
  19777. }, {
  19778. "label": "泾县",
  19779. "value": "341823"
  19780. }, {
  19781. "label": "绩溪县",
  19782. "value": "341824"
  19783. }, {
  19784. "label": "旌德县",
  19785. "value": "341825"
  19786. }, {
  19787. "label": "宣城市经济开发区",
  19788. "value": "341871"
  19789. }, {
  19790. "label": "宁国市",
  19791. "value": "341881"
  19792. }]], [[{
  19793. "label": "鼓楼区",
  19794. "value": "350102"
  19795. }, {
  19796. "label": "台江区",
  19797. "value": "350103"
  19798. }, {
  19799. "label": "仓山区",
  19800. "value": "350104"
  19801. }, {
  19802. "label": "马尾区",
  19803. "value": "350105"
  19804. }, {
  19805. "label": "晋安区",
  19806. "value": "350111"
  19807. }, {
  19808. "label": "闽侯县",
  19809. "value": "350121"
  19810. }, {
  19811. "label": "连江县",
  19812. "value": "350122"
  19813. }, {
  19814. "label": "罗源县",
  19815. "value": "350123"
  19816. }, {
  19817. "label": "闽清县",
  19818. "value": "350124"
  19819. }, {
  19820. "label": "永泰县",
  19821. "value": "350125"
  19822. }, {
  19823. "label": "平潭县",
  19824. "value": "350128"
  19825. }, {
  19826. "label": "福清市",
  19827. "value": "350181"
  19828. }, {
  19829. "label": "长乐市",
  19830. "value": "350182"
  19831. }], [{
  19832. "label": "思明区",
  19833. "value": "350203"
  19834. }, {
  19835. "label": "海沧区",
  19836. "value": "350205"
  19837. }, {
  19838. "label": "湖里区",
  19839. "value": "350206"
  19840. }, {
  19841. "label": "集美区",
  19842. "value": "350211"
  19843. }, {
  19844. "label": "同安区",
  19845. "value": "350212"
  19846. }, {
  19847. "label": "翔安区",
  19848. "value": "350213"
  19849. }], [{
  19850. "label": "城厢区",
  19851. "value": "350302"
  19852. }, {
  19853. "label": "涵江区",
  19854. "value": "350303"
  19855. }, {
  19856. "label": "荔城区",
  19857. "value": "350304"
  19858. }, {
  19859. "label": "秀屿区",
  19860. "value": "350305"
  19861. }, {
  19862. "label": "仙游县",
  19863. "value": "350322"
  19864. }], [{
  19865. "label": "梅列区",
  19866. "value": "350402"
  19867. }, {
  19868. "label": "三元区",
  19869. "value": "350403"
  19870. }, {
  19871. "label": "明溪县",
  19872. "value": "350421"
  19873. }, {
  19874. "label": "清流县",
  19875. "value": "350423"
  19876. }, {
  19877. "label": "宁化县",
  19878. "value": "350424"
  19879. }, {
  19880. "label": "大田县",
  19881. "value": "350425"
  19882. }, {
  19883. "label": "尤溪县",
  19884. "value": "350426"
  19885. }, {
  19886. "label": "沙县",
  19887. "value": "350427"
  19888. }, {
  19889. "label": "将乐县",
  19890. "value": "350428"
  19891. }, {
  19892. "label": "泰宁县",
  19893. "value": "350429"
  19894. }, {
  19895. "label": "建宁县",
  19896. "value": "350430"
  19897. }, {
  19898. "label": "永安市",
  19899. "value": "350481"
  19900. }], [{
  19901. "label": "鲤城区",
  19902. "value": "350502"
  19903. }, {
  19904. "label": "丰泽区",
  19905. "value": "350503"
  19906. }, {
  19907. "label": "洛江区",
  19908. "value": "350504"
  19909. }, {
  19910. "label": "泉港区",
  19911. "value": "350505"
  19912. }, {
  19913. "label": "惠安县",
  19914. "value": "350521"
  19915. }, {
  19916. "label": "安溪县",
  19917. "value": "350524"
  19918. }, {
  19919. "label": "永春县",
  19920. "value": "350525"
  19921. }, {
  19922. "label": "德化县",
  19923. "value": "350526"
  19924. }, {
  19925. "label": "金门县",
  19926. "value": "350527"
  19927. }, {
  19928. "label": "石狮市",
  19929. "value": "350581"
  19930. }, {
  19931. "label": "晋江市",
  19932. "value": "350582"
  19933. }, {
  19934. "label": "南安市",
  19935. "value": "350583"
  19936. }], [{
  19937. "label": "芗城区",
  19938. "value": "350602"
  19939. }, {
  19940. "label": "龙文区",
  19941. "value": "350603"
  19942. }, {
  19943. "label": "云霄县",
  19944. "value": "350622"
  19945. }, {
  19946. "label": "漳浦县",
  19947. "value": "350623"
  19948. }, {
  19949. "label": "诏安县",
  19950. "value": "350624"
  19951. }, {
  19952. "label": "长泰县",
  19953. "value": "350625"
  19954. }, {
  19955. "label": "东山县",
  19956. "value": "350626"
  19957. }, {
  19958. "label": "南靖县",
  19959. "value": "350627"
  19960. }, {
  19961. "label": "平和县",
  19962. "value": "350628"
  19963. }, {
  19964. "label": "华安县",
  19965. "value": "350629"
  19966. }, {
  19967. "label": "龙海市",
  19968. "value": "350681"
  19969. }], [{
  19970. "label": "延平区",
  19971. "value": "350702"
  19972. }, {
  19973. "label": "建阳区",
  19974. "value": "350703"
  19975. }, {
  19976. "label": "顺昌县",
  19977. "value": "350721"
  19978. }, {
  19979. "label": "浦城县",
  19980. "value": "350722"
  19981. }, {
  19982. "label": "光泽县",
  19983. "value": "350723"
  19984. }, {
  19985. "label": "松溪县",
  19986. "value": "350724"
  19987. }, {
  19988. "label": "政和县",
  19989. "value": "350725"
  19990. }, {
  19991. "label": "邵武市",
  19992. "value": "350781"
  19993. }, {
  19994. "label": "武夷山市",
  19995. "value": "350782"
  19996. }, {
  19997. "label": "建瓯市",
  19998. "value": "350783"
  19999. }], [{
  20000. "label": "新罗区",
  20001. "value": "350802"
  20002. }, {
  20003. "label": "永定区",
  20004. "value": "350803"
  20005. }, {
  20006. "label": "长汀县",
  20007. "value": "350821"
  20008. }, {
  20009. "label": "上杭县",
  20010. "value": "350823"
  20011. }, {
  20012. "label": "武平县",
  20013. "value": "350824"
  20014. }, {
  20015. "label": "连城县",
  20016. "value": "350825"
  20017. }, {
  20018. "label": "漳平市",
  20019. "value": "350881"
  20020. }], [{
  20021. "label": "蕉城区",
  20022. "value": "350902"
  20023. }, {
  20024. "label": "霞浦县",
  20025. "value": "350921"
  20026. }, {
  20027. "label": "古田县",
  20028. "value": "350922"
  20029. }, {
  20030. "label": "屏南县",
  20031. "value": "350923"
  20032. }, {
  20033. "label": "寿宁县",
  20034. "value": "350924"
  20035. }, {
  20036. "label": "周宁县",
  20037. "value": "350925"
  20038. }, {
  20039. "label": "柘荣县",
  20040. "value": "350926"
  20041. }, {
  20042. "label": "福安市",
  20043. "value": "350981"
  20044. }, {
  20045. "label": "福鼎市",
  20046. "value": "350982"
  20047. }]], [[{
  20048. "label": "东湖区",
  20049. "value": "360102"
  20050. }, {
  20051. "label": "西湖区",
  20052. "value": "360103"
  20053. }, {
  20054. "label": "青云谱区",
  20055. "value": "360104"
  20056. }, {
  20057. "label": "湾里区",
  20058. "value": "360105"
  20059. }, {
  20060. "label": "青山湖区",
  20061. "value": "360111"
  20062. }, {
  20063. "label": "新建区",
  20064. "value": "360112"
  20065. }, {
  20066. "label": "南昌县",
  20067. "value": "360121"
  20068. }, {
  20069. "label": "安义县",
  20070. "value": "360123"
  20071. }, {
  20072. "label": "进贤县",
  20073. "value": "360124"
  20074. }], [{
  20075. "label": "昌江区",
  20076. "value": "360202"
  20077. }, {
  20078. "label": "珠山区",
  20079. "value": "360203"
  20080. }, {
  20081. "label": "浮梁县",
  20082. "value": "360222"
  20083. }, {
  20084. "label": "乐平市",
  20085. "value": "360281"
  20086. }], [{
  20087. "label": "安源区",
  20088. "value": "360302"
  20089. }, {
  20090. "label": "湘东区",
  20091. "value": "360313"
  20092. }, {
  20093. "label": "莲花县",
  20094. "value": "360321"
  20095. }, {
  20096. "label": "上栗县",
  20097. "value": "360322"
  20098. }, {
  20099. "label": "芦溪县",
  20100. "value": "360323"
  20101. }], [{
  20102. "label": "濂溪区",
  20103. "value": "360402"
  20104. }, {
  20105. "label": "浔阳区",
  20106. "value": "360403"
  20107. }, {
  20108. "label": "柴桑区",
  20109. "value": "360404"
  20110. }, {
  20111. "label": "武宁县",
  20112. "value": "360423"
  20113. }, {
  20114. "label": "修水县",
  20115. "value": "360424"
  20116. }, {
  20117. "label": "永修县",
  20118. "value": "360425"
  20119. }, {
  20120. "label": "德安县",
  20121. "value": "360426"
  20122. }, {
  20123. "label": "都昌县",
  20124. "value": "360428"
  20125. }, {
  20126. "label": "湖口县",
  20127. "value": "360429"
  20128. }, {
  20129. "label": "彭泽县",
  20130. "value": "360430"
  20131. }, {
  20132. "label": "瑞昌市",
  20133. "value": "360481"
  20134. }, {
  20135. "label": "共青城市",
  20136. "value": "360482"
  20137. }, {
  20138. "label": "庐山市",
  20139. "value": "360483"
  20140. }], [{
  20141. "label": "渝水区",
  20142. "value": "360502"
  20143. }, {
  20144. "label": "分宜县",
  20145. "value": "360521"
  20146. }], [{
  20147. "label": "月湖区",
  20148. "value": "360602"
  20149. }, {
  20150. "label": "余江县",
  20151. "value": "360622"
  20152. }, {
  20153. "label": "贵溪市",
  20154. "value": "360681"
  20155. }], [{
  20156. "label": "章贡区",
  20157. "value": "360702"
  20158. }, {
  20159. "label": "南康区",
  20160. "value": "360703"
  20161. }, {
  20162. "label": "赣县区",
  20163. "value": "360704"
  20164. }, {
  20165. "label": "信丰县",
  20166. "value": "360722"
  20167. }, {
  20168. "label": "大余县",
  20169. "value": "360723"
  20170. }, {
  20171. "label": "上犹县",
  20172. "value": "360724"
  20173. }, {
  20174. "label": "崇义县",
  20175. "value": "360725"
  20176. }, {
  20177. "label": "安远县",
  20178. "value": "360726"
  20179. }, {
  20180. "label": "龙南县",
  20181. "value": "360727"
  20182. }, {
  20183. "label": "定南县",
  20184. "value": "360728"
  20185. }, {
  20186. "label": "全南县",
  20187. "value": "360729"
  20188. }, {
  20189. "label": "宁都县",
  20190. "value": "360730"
  20191. }, {
  20192. "label": "于都县",
  20193. "value": "360731"
  20194. }, {
  20195. "label": "兴国县",
  20196. "value": "360732"
  20197. }, {
  20198. "label": "会昌县",
  20199. "value": "360733"
  20200. }, {
  20201. "label": "寻乌县",
  20202. "value": "360734"
  20203. }, {
  20204. "label": "石城县",
  20205. "value": "360735"
  20206. }, {
  20207. "label": "瑞金市",
  20208. "value": "360781"
  20209. }], [{
  20210. "label": "吉州区",
  20211. "value": "360802"
  20212. }, {
  20213. "label": "青原区",
  20214. "value": "360803"
  20215. }, {
  20216. "label": "吉安县",
  20217. "value": "360821"
  20218. }, {
  20219. "label": "吉水县",
  20220. "value": "360822"
  20221. }, {
  20222. "label": "峡江县",
  20223. "value": "360823"
  20224. }, {
  20225. "label": "新干县",
  20226. "value": "360824"
  20227. }, {
  20228. "label": "永丰县",
  20229. "value": "360825"
  20230. }, {
  20231. "label": "泰和县",
  20232. "value": "360826"
  20233. }, {
  20234. "label": "遂川县",
  20235. "value": "360827"
  20236. }, {
  20237. "label": "万安县",
  20238. "value": "360828"
  20239. }, {
  20240. "label": "安福县",
  20241. "value": "360829"
  20242. }, {
  20243. "label": "永新县",
  20244. "value": "360830"
  20245. }, {
  20246. "label": "井冈山市",
  20247. "value": "360881"
  20248. }], [{
  20249. "label": "袁州区",
  20250. "value": "360902"
  20251. }, {
  20252. "label": "奉新县",
  20253. "value": "360921"
  20254. }, {
  20255. "label": "万载县",
  20256. "value": "360922"
  20257. }, {
  20258. "label": "上高县",
  20259. "value": "360923"
  20260. }, {
  20261. "label": "宜丰县",
  20262. "value": "360924"
  20263. }, {
  20264. "label": "靖安县",
  20265. "value": "360925"
  20266. }, {
  20267. "label": "铜鼓县",
  20268. "value": "360926"
  20269. }, {
  20270. "label": "丰城市",
  20271. "value": "360981"
  20272. }, {
  20273. "label": "樟树市",
  20274. "value": "360982"
  20275. }, {
  20276. "label": "高安市",
  20277. "value": "360983"
  20278. }], [{
  20279. "label": "临川区",
  20280. "value": "361002"
  20281. }, {
  20282. "label": "东乡区",
  20283. "value": "361003"
  20284. }, {
  20285. "label": "南城县",
  20286. "value": "361021"
  20287. }, {
  20288. "label": "黎川县",
  20289. "value": "361022"
  20290. }, {
  20291. "label": "南丰县",
  20292. "value": "361023"
  20293. }, {
  20294. "label": "崇仁县",
  20295. "value": "361024"
  20296. }, {
  20297. "label": "乐安县",
  20298. "value": "361025"
  20299. }, {
  20300. "label": "宜黄县",
  20301. "value": "361026"
  20302. }, {
  20303. "label": "金溪县",
  20304. "value": "361027"
  20305. }, {
  20306. "label": "资溪县",
  20307. "value": "361028"
  20308. }, {
  20309. "label": "广昌县",
  20310. "value": "361030"
  20311. }], [{
  20312. "label": "信州区",
  20313. "value": "361102"
  20314. }, {
  20315. "label": "广丰区",
  20316. "value": "361103"
  20317. }, {
  20318. "label": "上饶县",
  20319. "value": "361121"
  20320. }, {
  20321. "label": "玉山县",
  20322. "value": "361123"
  20323. }, {
  20324. "label": "铅山县",
  20325. "value": "361124"
  20326. }, {
  20327. "label": "横峰县",
  20328. "value": "361125"
  20329. }, {
  20330. "label": "弋阳县",
  20331. "value": "361126"
  20332. }, {
  20333. "label": "余干县",
  20334. "value": "361127"
  20335. }, {
  20336. "label": "鄱阳县",
  20337. "value": "361128"
  20338. }, {
  20339. "label": "万年县",
  20340. "value": "361129"
  20341. }, {
  20342. "label": "婺源县",
  20343. "value": "361130"
  20344. }, {
  20345. "label": "德兴市",
  20346. "value": "361181"
  20347. }]], [[{
  20348. "label": "历下区",
  20349. "value": "370102"
  20350. }, {
  20351. "label": "市中区",
  20352. "value": "370103"
  20353. }, {
  20354. "label": "槐荫区",
  20355. "value": "370104"
  20356. }, {
  20357. "label": "天桥区",
  20358. "value": "370105"
  20359. }, {
  20360. "label": "历城区",
  20361. "value": "370112"
  20362. }, {
  20363. "label": "长清区",
  20364. "value": "370113"
  20365. }, {
  20366. "label": "章丘区",
  20367. "value": "370114"
  20368. }, {
  20369. "label": "平阴县",
  20370. "value": "370124"
  20371. }, {
  20372. "label": "济阳县",
  20373. "value": "370125"
  20374. }, {
  20375. "label": "商河县",
  20376. "value": "370126"
  20377. }, {
  20378. "label": "济南高新技术产业开发区",
  20379. "value": "370171"
  20380. }], [{
  20381. "label": "市南区",
  20382. "value": "370202"
  20383. }, {
  20384. "label": "市北区",
  20385. "value": "370203"
  20386. }, {
  20387. "label": "黄岛区",
  20388. "value": "370211"
  20389. }, {
  20390. "label": "崂山区",
  20391. "value": "370212"
  20392. }, {
  20393. "label": "李沧区",
  20394. "value": "370213"
  20395. }, {
  20396. "label": "城阳区",
  20397. "value": "370214"
  20398. }, {
  20399. "label": "即墨区",
  20400. "value": "370215"
  20401. }, {
  20402. "label": "青岛高新技术产业开发区",
  20403. "value": "370271"
  20404. }, {
  20405. "label": "胶州市",
  20406. "value": "370281"
  20407. }, {
  20408. "label": "平度市",
  20409. "value": "370283"
  20410. }, {
  20411. "label": "莱西市",
  20412. "value": "370285"
  20413. }], [{
  20414. "label": "淄川区",
  20415. "value": "370302"
  20416. }, {
  20417. "label": "张店区",
  20418. "value": "370303"
  20419. }, {
  20420. "label": "博山区",
  20421. "value": "370304"
  20422. }, {
  20423. "label": "临淄区",
  20424. "value": "370305"
  20425. }, {
  20426. "label": "周村区",
  20427. "value": "370306"
  20428. }, {
  20429. "label": "桓台县",
  20430. "value": "370321"
  20431. }, {
  20432. "label": "高青县",
  20433. "value": "370322"
  20434. }, {
  20435. "label": "沂源县",
  20436. "value": "370323"
  20437. }], [{
  20438. "label": "市中区",
  20439. "value": "370402"
  20440. }, {
  20441. "label": "薛城区",
  20442. "value": "370403"
  20443. }, {
  20444. "label": "峄城区",
  20445. "value": "370404"
  20446. }, {
  20447. "label": "台儿庄区",
  20448. "value": "370405"
  20449. }, {
  20450. "label": "山亭区",
  20451. "value": "370406"
  20452. }, {
  20453. "label": "滕州市",
  20454. "value": "370481"
  20455. }], [{
  20456. "label": "东营区",
  20457. "value": "370502"
  20458. }, {
  20459. "label": "河口区",
  20460. "value": "370503"
  20461. }, {
  20462. "label": "垦利区",
  20463. "value": "370505"
  20464. }, {
  20465. "label": "利津县",
  20466. "value": "370522"
  20467. }, {
  20468. "label": "广饶县",
  20469. "value": "370523"
  20470. }, {
  20471. "label": "东营经济技术开发区",
  20472. "value": "370571"
  20473. }, {
  20474. "label": "东营港经济开发区",
  20475. "value": "370572"
  20476. }], [{
  20477. "label": "芝罘区",
  20478. "value": "370602"
  20479. }, {
  20480. "label": "福山区",
  20481. "value": "370611"
  20482. }, {
  20483. "label": "牟平区",
  20484. "value": "370612"
  20485. }, {
  20486. "label": "莱山区",
  20487. "value": "370613"
  20488. }, {
  20489. "label": "长岛县",
  20490. "value": "370634"
  20491. }, {
  20492. "label": "烟台高新技术产业开发区",
  20493. "value": "370671"
  20494. }, {
  20495. "label": "烟台经济技术开发区",
  20496. "value": "370672"
  20497. }, {
  20498. "label": "龙口市",
  20499. "value": "370681"
  20500. }, {
  20501. "label": "莱阳市",
  20502. "value": "370682"
  20503. }, {
  20504. "label": "莱州市",
  20505. "value": "370683"
  20506. }, {
  20507. "label": "蓬莱市",
  20508. "value": "370684"
  20509. }, {
  20510. "label": "招远市",
  20511. "value": "370685"
  20512. }, {
  20513. "label": "栖霞市",
  20514. "value": "370686"
  20515. }, {
  20516. "label": "海阳市",
  20517. "value": "370687"
  20518. }], [{
  20519. "label": "潍城区",
  20520. "value": "370702"
  20521. }, {
  20522. "label": "寒亭区",
  20523. "value": "370703"
  20524. }, {
  20525. "label": "坊子区",
  20526. "value": "370704"
  20527. }, {
  20528. "label": "奎文区",
  20529. "value": "370705"
  20530. }, {
  20531. "label": "临朐县",
  20532. "value": "370724"
  20533. }, {
  20534. "label": "昌乐县",
  20535. "value": "370725"
  20536. }, {
  20537. "label": "潍坊滨海经济技术开发区",
  20538. "value": "370772"
  20539. }, {
  20540. "label": "青州市",
  20541. "value": "370781"
  20542. }, {
  20543. "label": "诸城市",
  20544. "value": "370782"
  20545. }, {
  20546. "label": "寿光市",
  20547. "value": "370783"
  20548. }, {
  20549. "label": "安丘市",
  20550. "value": "370784"
  20551. }, {
  20552. "label": "高密市",
  20553. "value": "370785"
  20554. }, {
  20555. "label": "昌邑市",
  20556. "value": "370786"
  20557. }], [{
  20558. "label": "任城区",
  20559. "value": "370811"
  20560. }, {
  20561. "label": "兖州区",
  20562. "value": "370812"
  20563. }, {
  20564. "label": "微山县",
  20565. "value": "370826"
  20566. }, {
  20567. "label": "鱼台县",
  20568. "value": "370827"
  20569. }, {
  20570. "label": "金乡县",
  20571. "value": "370828"
  20572. }, {
  20573. "label": "嘉祥县",
  20574. "value": "370829"
  20575. }, {
  20576. "label": "汶上县",
  20577. "value": "370830"
  20578. }, {
  20579. "label": "泗水县",
  20580. "value": "370831"
  20581. }, {
  20582. "label": "梁山县",
  20583. "value": "370832"
  20584. }, {
  20585. "label": "济宁高新技术产业开发区",
  20586. "value": "370871"
  20587. }, {
  20588. "label": "曲阜市",
  20589. "value": "370881"
  20590. }, {
  20591. "label": "邹城市",
  20592. "value": "370883"
  20593. }], [{
  20594. "label": "泰山区",
  20595. "value": "370902"
  20596. }, {
  20597. "label": "岱岳区",
  20598. "value": "370911"
  20599. }, {
  20600. "label": "宁阳县",
  20601. "value": "370921"
  20602. }, {
  20603. "label": "东平县",
  20604. "value": "370923"
  20605. }, {
  20606. "label": "新泰市",
  20607. "value": "370982"
  20608. }, {
  20609. "label": "肥城市",
  20610. "value": "370983"
  20611. }], [{
  20612. "label": "环翠区",
  20613. "value": "371002"
  20614. }, {
  20615. "label": "文登区",
  20616. "value": "371003"
  20617. }, {
  20618. "label": "威海火炬高技术产业开发区",
  20619. "value": "371071"
  20620. }, {
  20621. "label": "威海经济技术开发区",
  20622. "value": "371072"
  20623. }, {
  20624. "label": "威海临港经济技术开发区",
  20625. "value": "371073"
  20626. }, {
  20627. "label": "荣成市",
  20628. "value": "371082"
  20629. }, {
  20630. "label": "乳山市",
  20631. "value": "371083"
  20632. }], [{
  20633. "label": "东港区",
  20634. "value": "371102"
  20635. }, {
  20636. "label": "岚山区",
  20637. "value": "371103"
  20638. }, {
  20639. "label": "五莲县",
  20640. "value": "371121"
  20641. }, {
  20642. "label": "莒县",
  20643. "value": "371122"
  20644. }, {
  20645. "label": "日照经济技术开发区",
  20646. "value": "371171"
  20647. }, {
  20648. "label": "日照国际海洋城",
  20649. "value": "371172"
  20650. }], [{
  20651. "label": "莱城区",
  20652. "value": "371202"
  20653. }, {
  20654. "label": "钢城区",
  20655. "value": "371203"
  20656. }], [{
  20657. "label": "兰山区",
  20658. "value": "371302"
  20659. }, {
  20660. "label": "罗庄区",
  20661. "value": "371311"
  20662. }, {
  20663. "label": "河东区",
  20664. "value": "371312"
  20665. }, {
  20666. "label": "沂南县",
  20667. "value": "371321"
  20668. }, {
  20669. "label": "郯城县",
  20670. "value": "371322"
  20671. }, {
  20672. "label": "沂水县",
  20673. "value": "371323"
  20674. }, {
  20675. "label": "兰陵县",
  20676. "value": "371324"
  20677. }, {
  20678. "label": "费县",
  20679. "value": "371325"
  20680. }, {
  20681. "label": "平邑县",
  20682. "value": "371326"
  20683. }, {
  20684. "label": "莒南县",
  20685. "value": "371327"
  20686. }, {
  20687. "label": "蒙阴县",
  20688. "value": "371328"
  20689. }, {
  20690. "label": "临沭县",
  20691. "value": "371329"
  20692. }, {
  20693. "label": "临沂高新技术产业开发区",
  20694. "value": "371371"
  20695. }, {
  20696. "label": "临沂经济技术开发区",
  20697. "value": "371372"
  20698. }, {
  20699. "label": "临沂临港经济开发区",
  20700. "value": "371373"
  20701. }], [{
  20702. "label": "德城区",
  20703. "value": "371402"
  20704. }, {
  20705. "label": "陵城区",
  20706. "value": "371403"
  20707. }, {
  20708. "label": "宁津县",
  20709. "value": "371422"
  20710. }, {
  20711. "label": "庆云县",
  20712. "value": "371423"
  20713. }, {
  20714. "label": "临邑县",
  20715. "value": "371424"
  20716. }, {
  20717. "label": "齐河县",
  20718. "value": "371425"
  20719. }, {
  20720. "label": "平原县",
  20721. "value": "371426"
  20722. }, {
  20723. "label": "夏津县",
  20724. "value": "371427"
  20725. }, {
  20726. "label": "武城县",
  20727. "value": "371428"
  20728. }, {
  20729. "label": "德州经济技术开发区",
  20730. "value": "371471"
  20731. }, {
  20732. "label": "德州运河经济开发区",
  20733. "value": "371472"
  20734. }, {
  20735. "label": "乐陵市",
  20736. "value": "371481"
  20737. }, {
  20738. "label": "禹城市",
  20739. "value": "371482"
  20740. }], [{
  20741. "label": "东昌府区",
  20742. "value": "371502"
  20743. }, {
  20744. "label": "阳谷县",
  20745. "value": "371521"
  20746. }, {
  20747. "label": "莘县",
  20748. "value": "371522"
  20749. }, {
  20750. "label": "茌平县",
  20751. "value": "371523"
  20752. }, {
  20753. "label": "东阿县",
  20754. "value": "371524"
  20755. }, {
  20756. "label": "冠县",
  20757. "value": "371525"
  20758. }, {
  20759. "label": "高唐县",
  20760. "value": "371526"
  20761. }, {
  20762. "label": "临清市",
  20763. "value": "371581"
  20764. }], [{
  20765. "label": "滨城区",
  20766. "value": "371602"
  20767. }, {
  20768. "label": "沾化区",
  20769. "value": "371603"
  20770. }, {
  20771. "label": "惠民县",
  20772. "value": "371621"
  20773. }, {
  20774. "label": "阳信县",
  20775. "value": "371622"
  20776. }, {
  20777. "label": "无棣县",
  20778. "value": "371623"
  20779. }, {
  20780. "label": "博兴县",
  20781. "value": "371625"
  20782. }, {
  20783. "label": "邹平县",
  20784. "value": "371626"
  20785. }], [{
  20786. "label": "牡丹区",
  20787. "value": "371702"
  20788. }, {
  20789. "label": "定陶区",
  20790. "value": "371703"
  20791. }, {
  20792. "label": "曹县",
  20793. "value": "371721"
  20794. }, {
  20795. "label": "单县",
  20796. "value": "371722"
  20797. }, {
  20798. "label": "成武县",
  20799. "value": "371723"
  20800. }, {
  20801. "label": "巨野县",
  20802. "value": "371724"
  20803. }, {
  20804. "label": "郓城县",
  20805. "value": "371725"
  20806. }, {
  20807. "label": "鄄城县",
  20808. "value": "371726"
  20809. }, {
  20810. "label": "东明县",
  20811. "value": "371728"
  20812. }, {
  20813. "label": "菏泽经济技术开发区",
  20814. "value": "371771"
  20815. }, {
  20816. "label": "菏泽高新技术开发区",
  20817. "value": "371772"
  20818. }]], [[{
  20819. "label": "中原区",
  20820. "value": "410102"
  20821. }, {
  20822. "label": "二七区",
  20823. "value": "410103"
  20824. }, {
  20825. "label": "管城回族区",
  20826. "value": "410104"
  20827. }, {
  20828. "label": "金水区",
  20829. "value": "410105"
  20830. }, {
  20831. "label": "上街区",
  20832. "value": "410106"
  20833. }, {
  20834. "label": "惠济区",
  20835. "value": "410108"
  20836. }, {
  20837. "label": "中牟县",
  20838. "value": "410122"
  20839. }, {
  20840. "label": "郑州经济技术开发区",
  20841. "value": "410171"
  20842. }, {
  20843. "label": "郑州高新技术产业开发区",
  20844. "value": "410172"
  20845. }, {
  20846. "label": "郑州航空港经济综合实验区",
  20847. "value": "410173"
  20848. }, {
  20849. "label": "巩义市",
  20850. "value": "410181"
  20851. }, {
  20852. "label": "荥阳市",
  20853. "value": "410182"
  20854. }, {
  20855. "label": "新密市",
  20856. "value": "410183"
  20857. }, {
  20858. "label": "新郑市",
  20859. "value": "410184"
  20860. }, {
  20861. "label": "登封市",
  20862. "value": "410185"
  20863. }], [{
  20864. "label": "龙亭区",
  20865. "value": "410202"
  20866. }, {
  20867. "label": "顺河回族区",
  20868. "value": "410203"
  20869. }, {
  20870. "label": "鼓楼区",
  20871. "value": "410204"
  20872. }, {
  20873. "label": "禹王台区",
  20874. "value": "410205"
  20875. }, {
  20876. "label": "祥符区",
  20877. "value": "410212"
  20878. }, {
  20879. "label": "杞县",
  20880. "value": "410221"
  20881. }, {
  20882. "label": "通许县",
  20883. "value": "410222"
  20884. }, {
  20885. "label": "尉氏县",
  20886. "value": "410223"
  20887. }, {
  20888. "label": "兰考县",
  20889. "value": "410225"
  20890. }], [{
  20891. "label": "老城区",
  20892. "value": "410302"
  20893. }, {
  20894. "label": "西工区",
  20895. "value": "410303"
  20896. }, {
  20897. "label": "瀍河回族区",
  20898. "value": "410304"
  20899. }, {
  20900. "label": "涧西区",
  20901. "value": "410305"
  20902. }, {
  20903. "label": "吉利区",
  20904. "value": "410306"
  20905. }, {
  20906. "label": "洛龙区",
  20907. "value": "410311"
  20908. }, {
  20909. "label": "孟津县",
  20910. "value": "410322"
  20911. }, {
  20912. "label": "新安县",
  20913. "value": "410323"
  20914. }, {
  20915. "label": "栾川县",
  20916. "value": "410324"
  20917. }, {
  20918. "label": "嵩县",
  20919. "value": "410325"
  20920. }, {
  20921. "label": "汝阳县",
  20922. "value": "410326"
  20923. }, {
  20924. "label": "宜阳县",
  20925. "value": "410327"
  20926. }, {
  20927. "label": "洛宁县",
  20928. "value": "410328"
  20929. }, {
  20930. "label": "伊川县",
  20931. "value": "410329"
  20932. }, {
  20933. "label": "洛阳高新技术产业开发区",
  20934. "value": "410371"
  20935. }, {
  20936. "label": "偃师市",
  20937. "value": "410381"
  20938. }], [{
  20939. "label": "新华区",
  20940. "value": "410402"
  20941. }, {
  20942. "label": "卫东区",
  20943. "value": "410403"
  20944. }, {
  20945. "label": "石龙区",
  20946. "value": "410404"
  20947. }, {
  20948. "label": "湛河区",
  20949. "value": "410411"
  20950. }, {
  20951. "label": "宝丰县",
  20952. "value": "410421"
  20953. }, {
  20954. "label": "叶县",
  20955. "value": "410422"
  20956. }, {
  20957. "label": "鲁山县",
  20958. "value": "410423"
  20959. }, {
  20960. "label": "郏县",
  20961. "value": "410425"
  20962. }, {
  20963. "label": "平顶山高新技术产业开发区",
  20964. "value": "410471"
  20965. }, {
  20966. "label": "平顶山市新城区",
  20967. "value": "410472"
  20968. }, {
  20969. "label": "舞钢市",
  20970. "value": "410481"
  20971. }, {
  20972. "label": "汝州市",
  20973. "value": "410482"
  20974. }], [{
  20975. "label": "文峰区",
  20976. "value": "410502"
  20977. }, {
  20978. "label": "北关区",
  20979. "value": "410503"
  20980. }, {
  20981. "label": "殷都区",
  20982. "value": "410505"
  20983. }, {
  20984. "label": "龙安区",
  20985. "value": "410506"
  20986. }, {
  20987. "label": "安阳县",
  20988. "value": "410522"
  20989. }, {
  20990. "label": "汤阴县",
  20991. "value": "410523"
  20992. }, {
  20993. "label": "滑县",
  20994. "value": "410526"
  20995. }, {
  20996. "label": "内黄县",
  20997. "value": "410527"
  20998. }, {
  20999. "label": "安阳高新技术产业开发区",
  21000. "value": "410571"
  21001. }, {
  21002. "label": "林州市",
  21003. "value": "410581"
  21004. }], [{
  21005. "label": "鹤山区",
  21006. "value": "410602"
  21007. }, {
  21008. "label": "山城区",
  21009. "value": "410603"
  21010. }, {
  21011. "label": "淇滨区",
  21012. "value": "410611"
  21013. }, {
  21014. "label": "浚县",
  21015. "value": "410621"
  21016. }, {
  21017. "label": "淇县",
  21018. "value": "410622"
  21019. }, {
  21020. "label": "鹤壁经济技术开发区",
  21021. "value": "410671"
  21022. }], [{
  21023. "label": "红旗区",
  21024. "value": "410702"
  21025. }, {
  21026. "label": "卫滨区",
  21027. "value": "410703"
  21028. }, {
  21029. "label": "凤泉区",
  21030. "value": "410704"
  21031. }, {
  21032. "label": "牧野区",
  21033. "value": "410711"
  21034. }, {
  21035. "label": "新乡县",
  21036. "value": "410721"
  21037. }, {
  21038. "label": "获嘉县",
  21039. "value": "410724"
  21040. }, {
  21041. "label": "原阳县",
  21042. "value": "410725"
  21043. }, {
  21044. "label": "延津县",
  21045. "value": "410726"
  21046. }, {
  21047. "label": "封丘县",
  21048. "value": "410727"
  21049. }, {
  21050. "label": "长垣县",
  21051. "value": "410728"
  21052. }, {
  21053. "label": "新乡高新技术产业开发区",
  21054. "value": "410771"
  21055. }, {
  21056. "label": "新乡经济技术开发区",
  21057. "value": "410772"
  21058. }, {
  21059. "label": "新乡市平原城乡一体化示范区",
  21060. "value": "410773"
  21061. }, {
  21062. "label": "卫辉市",
  21063. "value": "410781"
  21064. }, {
  21065. "label": "辉县市",
  21066. "value": "410782"
  21067. }], [{
  21068. "label": "解放区",
  21069. "value": "410802"
  21070. }, {
  21071. "label": "中站区",
  21072. "value": "410803"
  21073. }, {
  21074. "label": "马村区",
  21075. "value": "410804"
  21076. }, {
  21077. "label": "山阳区",
  21078. "value": "410811"
  21079. }, {
  21080. "label": "修武县",
  21081. "value": "410821"
  21082. }, {
  21083. "label": "博爱县",
  21084. "value": "410822"
  21085. }, {
  21086. "label": "武陟县",
  21087. "value": "410823"
  21088. }, {
  21089. "label": "温县",
  21090. "value": "410825"
  21091. }, {
  21092. "label": "焦作城乡一体化示范区",
  21093. "value": "410871"
  21094. }, {
  21095. "label": "沁阳市",
  21096. "value": "410882"
  21097. }, {
  21098. "label": "孟州市",
  21099. "value": "410883"
  21100. }], [{
  21101. "label": "华龙区",
  21102. "value": "410902"
  21103. }, {
  21104. "label": "清丰县",
  21105. "value": "410922"
  21106. }, {
  21107. "label": "南乐县",
  21108. "value": "410923"
  21109. }, {
  21110. "label": "范县",
  21111. "value": "410926"
  21112. }, {
  21113. "label": "台前县",
  21114. "value": "410927"
  21115. }, {
  21116. "label": "濮阳县",
  21117. "value": "410928"
  21118. }, {
  21119. "label": "河南濮阳工业园区",
  21120. "value": "410971"
  21121. }, {
  21122. "label": "濮阳经济技术开发区",
  21123. "value": "410972"
  21124. }], [{
  21125. "label": "魏都区",
  21126. "value": "411002"
  21127. }, {
  21128. "label": "建安区",
  21129. "value": "411003"
  21130. }, {
  21131. "label": "鄢陵县",
  21132. "value": "411024"
  21133. }, {
  21134. "label": "襄城县",
  21135. "value": "411025"
  21136. }, {
  21137. "label": "许昌经济技术开发区",
  21138. "value": "411071"
  21139. }, {
  21140. "label": "禹州市",
  21141. "value": "411081"
  21142. }, {
  21143. "label": "长葛市",
  21144. "value": "411082"
  21145. }], [{
  21146. "label": "源汇区",
  21147. "value": "411102"
  21148. }, {
  21149. "label": "郾城区",
  21150. "value": "411103"
  21151. }, {
  21152. "label": "召陵区",
  21153. "value": "411104"
  21154. }, {
  21155. "label": "舞阳县",
  21156. "value": "411121"
  21157. }, {
  21158. "label": "临颍县",
  21159. "value": "411122"
  21160. }, {
  21161. "label": "漯河经济技术开发区",
  21162. "value": "411171"
  21163. }], [{
  21164. "label": "湖滨区",
  21165. "value": "411202"
  21166. }, {
  21167. "label": "陕州区",
  21168. "value": "411203"
  21169. }, {
  21170. "label": "渑池县",
  21171. "value": "411221"
  21172. }, {
  21173. "label": "卢氏县",
  21174. "value": "411224"
  21175. }, {
  21176. "label": "河南三门峡经济开发区",
  21177. "value": "411271"
  21178. }, {
  21179. "label": "义马市",
  21180. "value": "411281"
  21181. }, {
  21182. "label": "灵宝市",
  21183. "value": "411282"
  21184. }], [{
  21185. "label": "宛城区",
  21186. "value": "411302"
  21187. }, {
  21188. "label": "卧龙区",
  21189. "value": "411303"
  21190. }, {
  21191. "label": "南召县",
  21192. "value": "411321"
  21193. }, {
  21194. "label": "方城县",
  21195. "value": "411322"
  21196. }, {
  21197. "label": "西峡县",
  21198. "value": "411323"
  21199. }, {
  21200. "label": "镇平县",
  21201. "value": "411324"
  21202. }, {
  21203. "label": "内乡县",
  21204. "value": "411325"
  21205. }, {
  21206. "label": "淅川县",
  21207. "value": "411326"
  21208. }, {
  21209. "label": "社旗县",
  21210. "value": "411327"
  21211. }, {
  21212. "label": "唐河县",
  21213. "value": "411328"
  21214. }, {
  21215. "label": "新野县",
  21216. "value": "411329"
  21217. }, {
  21218. "label": "桐柏县",
  21219. "value": "411330"
  21220. }, {
  21221. "label": "南阳高新技术产业开发区",
  21222. "value": "411371"
  21223. }, {
  21224. "label": "南阳市城乡一体化示范区",
  21225. "value": "411372"
  21226. }, {
  21227. "label": "邓州市",
  21228. "value": "411381"
  21229. }], [{
  21230. "label": "梁园区",
  21231. "value": "411402"
  21232. }, {
  21233. "label": "睢阳区",
  21234. "value": "411403"
  21235. }, {
  21236. "label": "民权县",
  21237. "value": "411421"
  21238. }, {
  21239. "label": "睢县",
  21240. "value": "411422"
  21241. }, {
  21242. "label": "宁陵县",
  21243. "value": "411423"
  21244. }, {
  21245. "label": "柘城县",
  21246. "value": "411424"
  21247. }, {
  21248. "label": "虞城县",
  21249. "value": "411425"
  21250. }, {
  21251. "label": "夏邑县",
  21252. "value": "411426"
  21253. }, {
  21254. "label": "豫东综合物流产业聚集区",
  21255. "value": "411471"
  21256. }, {
  21257. "label": "河南商丘经济开发区",
  21258. "value": "411472"
  21259. }, {
  21260. "label": "永城市",
  21261. "value": "411481"
  21262. }], [{
  21263. "label": "浉河区",
  21264. "value": "411502"
  21265. }, {
  21266. "label": "平桥区",
  21267. "value": "411503"
  21268. }, {
  21269. "label": "罗山县",
  21270. "value": "411521"
  21271. }, {
  21272. "label": "光山县",
  21273. "value": "411522"
  21274. }, {
  21275. "label": "新县",
  21276. "value": "411523"
  21277. }, {
  21278. "label": "商城县",
  21279. "value": "411524"
  21280. }, {
  21281. "label": "固始县",
  21282. "value": "411525"
  21283. }, {
  21284. "label": "潢川县",
  21285. "value": "411526"
  21286. }, {
  21287. "label": "淮滨县",
  21288. "value": "411527"
  21289. }, {
  21290. "label": "息县",
  21291. "value": "411528"
  21292. }, {
  21293. "label": "信阳高新技术产业开发区",
  21294. "value": "411571"
  21295. }], [{
  21296. "label": "川汇区",
  21297. "value": "411602"
  21298. }, {
  21299. "label": "扶沟县",
  21300. "value": "411621"
  21301. }, {
  21302. "label": "西华县",
  21303. "value": "411622"
  21304. }, {
  21305. "label": "商水县",
  21306. "value": "411623"
  21307. }, {
  21308. "label": "沈丘县",
  21309. "value": "411624"
  21310. }, {
  21311. "label": "郸城县",
  21312. "value": "411625"
  21313. }, {
  21314. "label": "淮阳县",
  21315. "value": "411626"
  21316. }, {
  21317. "label": "太康县",
  21318. "value": "411627"
  21319. }, {
  21320. "label": "鹿邑县",
  21321. "value": "411628"
  21322. }, {
  21323. "label": "河南周口经济开发区",
  21324. "value": "411671"
  21325. }, {
  21326. "label": "项城市",
  21327. "value": "411681"
  21328. }], [{
  21329. "label": "驿城区",
  21330. "value": "411702"
  21331. }, {
  21332. "label": "西平县",
  21333. "value": "411721"
  21334. }, {
  21335. "label": "上蔡县",
  21336. "value": "411722"
  21337. }, {
  21338. "label": "平舆县",
  21339. "value": "411723"
  21340. }, {
  21341. "label": "正阳县",
  21342. "value": "411724"
  21343. }, {
  21344. "label": "确山县",
  21345. "value": "411725"
  21346. }, {
  21347. "label": "泌阳县",
  21348. "value": "411726"
  21349. }, {
  21350. "label": "汝南县",
  21351. "value": "411727"
  21352. }, {
  21353. "label": "遂平县",
  21354. "value": "411728"
  21355. }, {
  21356. "label": "新蔡县",
  21357. "value": "411729"
  21358. }, {
  21359. "label": "河南驻马店经济开发区",
  21360. "value": "411771"
  21361. }], [{
  21362. "label": "济源市",
  21363. "value": "419001"
  21364. }]], [[{
  21365. "label": "江岸区",
  21366. "value": "420102"
  21367. }, {
  21368. "label": "江汉区",
  21369. "value": "420103"
  21370. }, {
  21371. "label": "硚口区",
  21372. "value": "420104"
  21373. }, {
  21374. "label": "汉阳区",
  21375. "value": "420105"
  21376. }, {
  21377. "label": "武昌区",
  21378. "value": "420106"
  21379. }, {
  21380. "label": "青山区",
  21381. "value": "420107"
  21382. }, {
  21383. "label": "洪山区",
  21384. "value": "420111"
  21385. }, {
  21386. "label": "东西湖区",
  21387. "value": "420112"
  21388. }, {
  21389. "label": "汉南区",
  21390. "value": "420113"
  21391. }, {
  21392. "label": "蔡甸区",
  21393. "value": "420114"
  21394. }, {
  21395. "label": "江夏区",
  21396. "value": "420115"
  21397. }, {
  21398. "label": "黄陂区",
  21399. "value": "420116"
  21400. }, {
  21401. "label": "新洲区",
  21402. "value": "420117"
  21403. }], [{
  21404. "label": "黄石港区",
  21405. "value": "420202"
  21406. }, {
  21407. "label": "西塞山区",
  21408. "value": "420203"
  21409. }, {
  21410. "label": "下陆区",
  21411. "value": "420204"
  21412. }, {
  21413. "label": "铁山区",
  21414. "value": "420205"
  21415. }, {
  21416. "label": "阳新县",
  21417. "value": "420222"
  21418. }, {
  21419. "label": "大冶市",
  21420. "value": "420281"
  21421. }], [{
  21422. "label": "茅箭区",
  21423. "value": "420302"
  21424. }, {
  21425. "label": "张湾区",
  21426. "value": "420303"
  21427. }, {
  21428. "label": "郧阳区",
  21429. "value": "420304"
  21430. }, {
  21431. "label": "郧西县",
  21432. "value": "420322"
  21433. }, {
  21434. "label": "竹山县",
  21435. "value": "420323"
  21436. }, {
  21437. "label": "竹溪县",
  21438. "value": "420324"
  21439. }, {
  21440. "label": "房县",
  21441. "value": "420325"
  21442. }, {
  21443. "label": "丹江口市",
  21444. "value": "420381"
  21445. }], [{
  21446. "label": "西陵区",
  21447. "value": "420502"
  21448. }, {
  21449. "label": "伍家岗区",
  21450. "value": "420503"
  21451. }, {
  21452. "label": "点军区",
  21453. "value": "420504"
  21454. }, {
  21455. "label": "猇亭区",
  21456. "value": "420505"
  21457. }, {
  21458. "label": "夷陵区",
  21459. "value": "420506"
  21460. }, {
  21461. "label": "远安县",
  21462. "value": "420525"
  21463. }, {
  21464. "label": "兴山县",
  21465. "value": "420526"
  21466. }, {
  21467. "label": "秭归县",
  21468. "value": "420527"
  21469. }, {
  21470. "label": "长阳土家族自治县",
  21471. "value": "420528"
  21472. }, {
  21473. "label": "五峰土家族自治县",
  21474. "value": "420529"
  21475. }, {
  21476. "label": "宜都市",
  21477. "value": "420581"
  21478. }, {
  21479. "label": "当阳市",
  21480. "value": "420582"
  21481. }, {
  21482. "label": "枝江市",
  21483. "value": "420583"
  21484. }], [{
  21485. "label": "襄城区",
  21486. "value": "420602"
  21487. }, {
  21488. "label": "樊城区",
  21489. "value": "420606"
  21490. }, {
  21491. "label": "襄州区",
  21492. "value": "420607"
  21493. }, {
  21494. "label": "南漳县",
  21495. "value": "420624"
  21496. }, {
  21497. "label": "谷城县",
  21498. "value": "420625"
  21499. }, {
  21500. "label": "保康县",
  21501. "value": "420626"
  21502. }, {
  21503. "label": "老河口市",
  21504. "value": "420682"
  21505. }, {
  21506. "label": "枣阳市",
  21507. "value": "420683"
  21508. }, {
  21509. "label": "宜城市",
  21510. "value": "420684"
  21511. }], [{
  21512. "label": "梁子湖区",
  21513. "value": "420702"
  21514. }, {
  21515. "label": "华容区",
  21516. "value": "420703"
  21517. }, {
  21518. "label": "鄂城区",
  21519. "value": "420704"
  21520. }], [{
  21521. "label": "东宝区",
  21522. "value": "420802"
  21523. }, {
  21524. "label": "掇刀区",
  21525. "value": "420804"
  21526. }, {
  21527. "label": "京山县",
  21528. "value": "420821"
  21529. }, {
  21530. "label": "沙洋县",
  21531. "value": "420822"
  21532. }, {
  21533. "label": "钟祥市",
  21534. "value": "420881"
  21535. }], [{
  21536. "label": "孝南区",
  21537. "value": "420902"
  21538. }, {
  21539. "label": "孝昌县",
  21540. "value": "420921"
  21541. }, {
  21542. "label": "大悟县",
  21543. "value": "420922"
  21544. }, {
  21545. "label": "云梦县",
  21546. "value": "420923"
  21547. }, {
  21548. "label": "应城市",
  21549. "value": "420981"
  21550. }, {
  21551. "label": "安陆市",
  21552. "value": "420982"
  21553. }, {
  21554. "label": "汉川市",
  21555. "value": "420984"
  21556. }], [{
  21557. "label": "沙市区",
  21558. "value": "421002"
  21559. }, {
  21560. "label": "荆州区",
  21561. "value": "421003"
  21562. }, {
  21563. "label": "公安县",
  21564. "value": "421022"
  21565. }, {
  21566. "label": "监利县",
  21567. "value": "421023"
  21568. }, {
  21569. "label": "江陵县",
  21570. "value": "421024"
  21571. }, {
  21572. "label": "荆州经济技术开发区",
  21573. "value": "421071"
  21574. }, {
  21575. "label": "石首市",
  21576. "value": "421081"
  21577. }, {
  21578. "label": "洪湖市",
  21579. "value": "421083"
  21580. }, {
  21581. "label": "松滋市",
  21582. "value": "421087"
  21583. }], [{
  21584. "label": "黄州区",
  21585. "value": "421102"
  21586. }, {
  21587. "label": "团风县",
  21588. "value": "421121"
  21589. }, {
  21590. "label": "红安县",
  21591. "value": "421122"
  21592. }, {
  21593. "label": "罗田县",
  21594. "value": "421123"
  21595. }, {
  21596. "label": "英山县",
  21597. "value": "421124"
  21598. }, {
  21599. "label": "浠水县",
  21600. "value": "421125"
  21601. }, {
  21602. "label": "蕲春县",
  21603. "value": "421126"
  21604. }, {
  21605. "label": "黄梅县",
  21606. "value": "421127"
  21607. }, {
  21608. "label": "龙感湖管理区",
  21609. "value": "421171"
  21610. }, {
  21611. "label": "麻城市",
  21612. "value": "421181"
  21613. }, {
  21614. "label": "武穴市",
  21615. "value": "421182"
  21616. }], [{
  21617. "label": "咸安区",
  21618. "value": "421202"
  21619. }, {
  21620. "label": "嘉鱼县",
  21621. "value": "421221"
  21622. }, {
  21623. "label": "通城县",
  21624. "value": "421222"
  21625. }, {
  21626. "label": "崇阳县",
  21627. "value": "421223"
  21628. }, {
  21629. "label": "通山县",
  21630. "value": "421224"
  21631. }, {
  21632. "label": "赤壁市",
  21633. "value": "421281"
  21634. }], [{
  21635. "label": "曾都区",
  21636. "value": "421303"
  21637. }, {
  21638. "label": "随县",
  21639. "value": "421321"
  21640. }, {
  21641. "label": "广水市",
  21642. "value": "421381"
  21643. }], [{
  21644. "label": "恩施市",
  21645. "value": "422801"
  21646. }, {
  21647. "label": "利川市",
  21648. "value": "422802"
  21649. }, {
  21650. "label": "建始县",
  21651. "value": "422822"
  21652. }, {
  21653. "label": "巴东县",
  21654. "value": "422823"
  21655. }, {
  21656. "label": "宣恩县",
  21657. "value": "422825"
  21658. }, {
  21659. "label": "咸丰县",
  21660. "value": "422826"
  21661. }, {
  21662. "label": "来凤县",
  21663. "value": "422827"
  21664. }, {
  21665. "label": "鹤峰县",
  21666. "value": "422828"
  21667. }], [{
  21668. "label": "仙桃市",
  21669. "value": "429004"
  21670. }, {
  21671. "label": "潜江市",
  21672. "value": "429005"
  21673. }, {
  21674. "label": "天门市",
  21675. "value": "429006"
  21676. }, {
  21677. "label": "神农架林区",
  21678. "value": "429021"
  21679. }]], [[{
  21680. "label": "芙蓉区",
  21681. "value": "430102"
  21682. }, {
  21683. "label": "天心区",
  21684. "value": "430103"
  21685. }, {
  21686. "label": "岳麓区",
  21687. "value": "430104"
  21688. }, {
  21689. "label": "开福区",
  21690. "value": "430105"
  21691. }, {
  21692. "label": "雨花区",
  21693. "value": "430111"
  21694. }, {
  21695. "label": "望城区",
  21696. "value": "430112"
  21697. }, {
  21698. "label": "长沙县",
  21699. "value": "430121"
  21700. }, {
  21701. "label": "浏阳市",
  21702. "value": "430181"
  21703. }, {
  21704. "label": "宁乡市",
  21705. "value": "430182"
  21706. }], [{
  21707. "label": "荷塘区",
  21708. "value": "430202"
  21709. }, {
  21710. "label": "芦淞区",
  21711. "value": "430203"
  21712. }, {
  21713. "label": "石峰区",
  21714. "value": "430204"
  21715. }, {
  21716. "label": "天元区",
  21717. "value": "430211"
  21718. }, {
  21719. "label": "株洲县",
  21720. "value": "430221"
  21721. }, {
  21722. "label": "攸县",
  21723. "value": "430223"
  21724. }, {
  21725. "label": "茶陵县",
  21726. "value": "430224"
  21727. }, {
  21728. "label": "炎陵县",
  21729. "value": "430225"
  21730. }, {
  21731. "label": "云龙示范区",
  21732. "value": "430271"
  21733. }, {
  21734. "label": "醴陵市",
  21735. "value": "430281"
  21736. }], [{
  21737. "label": "雨湖区",
  21738. "value": "430302"
  21739. }, {
  21740. "label": "岳塘区",
  21741. "value": "430304"
  21742. }, {
  21743. "label": "湘潭县",
  21744. "value": "430321"
  21745. }, {
  21746. "label": "湖南湘潭高新技术产业园区",
  21747. "value": "430371"
  21748. }, {
  21749. "label": "湘潭昭山示范区",
  21750. "value": "430372"
  21751. }, {
  21752. "label": "湘潭九华示范区",
  21753. "value": "430373"
  21754. }, {
  21755. "label": "湘乡市",
  21756. "value": "430381"
  21757. }, {
  21758. "label": "韶山市",
  21759. "value": "430382"
  21760. }], [{
  21761. "label": "珠晖区",
  21762. "value": "430405"
  21763. }, {
  21764. "label": "雁峰区",
  21765. "value": "430406"
  21766. }, {
  21767. "label": "石鼓区",
  21768. "value": "430407"
  21769. }, {
  21770. "label": "蒸湘区",
  21771. "value": "430408"
  21772. }, {
  21773. "label": "南岳区",
  21774. "value": "430412"
  21775. }, {
  21776. "label": "衡阳县",
  21777. "value": "430421"
  21778. }, {
  21779. "label": "衡南县",
  21780. "value": "430422"
  21781. }, {
  21782. "label": "衡山县",
  21783. "value": "430423"
  21784. }, {
  21785. "label": "衡东县",
  21786. "value": "430424"
  21787. }, {
  21788. "label": "祁东县",
  21789. "value": "430426"
  21790. }, {
  21791. "label": "衡阳综合保税区",
  21792. "value": "430471"
  21793. }, {
  21794. "label": "湖南衡阳高新技术产业园区",
  21795. "value": "430472"
  21796. }, {
  21797. "label": "湖南衡阳松木经济开发区",
  21798. "value": "430473"
  21799. }, {
  21800. "label": "耒阳市",
  21801. "value": "430481"
  21802. }, {
  21803. "label": "常宁市",
  21804. "value": "430482"
  21805. }], [{
  21806. "label": "双清区",
  21807. "value": "430502"
  21808. }, {
  21809. "label": "大祥区",
  21810. "value": "430503"
  21811. }, {
  21812. "label": "北塔区",
  21813. "value": "430511"
  21814. }, {
  21815. "label": "邵东县",
  21816. "value": "430521"
  21817. }, {
  21818. "label": "新邵县",
  21819. "value": "430522"
  21820. }, {
  21821. "label": "邵阳县",
  21822. "value": "430523"
  21823. }, {
  21824. "label": "隆回县",
  21825. "value": "430524"
  21826. }, {
  21827. "label": "洞口县",
  21828. "value": "430525"
  21829. }, {
  21830. "label": "绥宁县",
  21831. "value": "430527"
  21832. }, {
  21833. "label": "新宁县",
  21834. "value": "430528"
  21835. }, {
  21836. "label": "城步苗族自治县",
  21837. "value": "430529"
  21838. }, {
  21839. "label": "武冈市",
  21840. "value": "430581"
  21841. }], [{
  21842. "label": "岳阳楼区",
  21843. "value": "430602"
  21844. }, {
  21845. "label": "云溪区",
  21846. "value": "430603"
  21847. }, {
  21848. "label": "君山区",
  21849. "value": "430611"
  21850. }, {
  21851. "label": "岳阳县",
  21852. "value": "430621"
  21853. }, {
  21854. "label": "华容县",
  21855. "value": "430623"
  21856. }, {
  21857. "label": "湘阴县",
  21858. "value": "430624"
  21859. }, {
  21860. "label": "平江县",
  21861. "value": "430626"
  21862. }, {
  21863. "label": "岳阳市屈原管理区",
  21864. "value": "430671"
  21865. }, {
  21866. "label": "汨罗市",
  21867. "value": "430681"
  21868. }, {
  21869. "label": "临湘市",
  21870. "value": "430682"
  21871. }], [{
  21872. "label": "武陵区",
  21873. "value": "430702"
  21874. }, {
  21875. "label": "鼎城区",
  21876. "value": "430703"
  21877. }, {
  21878. "label": "安乡县",
  21879. "value": "430721"
  21880. }, {
  21881. "label": "汉寿县",
  21882. "value": "430722"
  21883. }, {
  21884. "label": "澧县",
  21885. "value": "430723"
  21886. }, {
  21887. "label": "临澧县",
  21888. "value": "430724"
  21889. }, {
  21890. "label": "桃源县",
  21891. "value": "430725"
  21892. }, {
  21893. "label": "石门县",
  21894. "value": "430726"
  21895. }, {
  21896. "label": "常德市西洞庭管理区",
  21897. "value": "430771"
  21898. }, {
  21899. "label": "津市市",
  21900. "value": "430781"
  21901. }], [{
  21902. "label": "永定区",
  21903. "value": "430802"
  21904. }, {
  21905. "label": "武陵源区",
  21906. "value": "430811"
  21907. }, {
  21908. "label": "慈利县",
  21909. "value": "430821"
  21910. }, {
  21911. "label": "桑植县",
  21912. "value": "430822"
  21913. }], [{
  21914. "label": "资阳区",
  21915. "value": "430902"
  21916. }, {
  21917. "label": "赫山区",
  21918. "value": "430903"
  21919. }, {
  21920. "label": "南县",
  21921. "value": "430921"
  21922. }, {
  21923. "label": "桃江县",
  21924. "value": "430922"
  21925. }, {
  21926. "label": "安化县",
  21927. "value": "430923"
  21928. }, {
  21929. "label": "益阳市大通湖管理区",
  21930. "value": "430971"
  21931. }, {
  21932. "label": "湖南益阳高新技术产业园区",
  21933. "value": "430972"
  21934. }, {
  21935. "label": "沅江市",
  21936. "value": "430981"
  21937. }], [{
  21938. "label": "北湖区",
  21939. "value": "431002"
  21940. }, {
  21941. "label": "苏仙区",
  21942. "value": "431003"
  21943. }, {
  21944. "label": "桂阳县",
  21945. "value": "431021"
  21946. }, {
  21947. "label": "宜章县",
  21948. "value": "431022"
  21949. }, {
  21950. "label": "永兴县",
  21951. "value": "431023"
  21952. }, {
  21953. "label": "嘉禾县",
  21954. "value": "431024"
  21955. }, {
  21956. "label": "临武县",
  21957. "value": "431025"
  21958. }, {
  21959. "label": "汝城县",
  21960. "value": "431026"
  21961. }, {
  21962. "label": "桂东县",
  21963. "value": "431027"
  21964. }, {
  21965. "label": "安仁县",
  21966. "value": "431028"
  21967. }, {
  21968. "label": "资兴市",
  21969. "value": "431081"
  21970. }], [{
  21971. "label": "零陵区",
  21972. "value": "431102"
  21973. }, {
  21974. "label": "冷水滩区",
  21975. "value": "431103"
  21976. }, {
  21977. "label": "祁阳县",
  21978. "value": "431121"
  21979. }, {
  21980. "label": "东安县",
  21981. "value": "431122"
  21982. }, {
  21983. "label": "双牌县",
  21984. "value": "431123"
  21985. }, {
  21986. "label": "道县",
  21987. "value": "431124"
  21988. }, {
  21989. "label": "江永县",
  21990. "value": "431125"
  21991. }, {
  21992. "label": "宁远县",
  21993. "value": "431126"
  21994. }, {
  21995. "label": "蓝山县",
  21996. "value": "431127"
  21997. }, {
  21998. "label": "新田县",
  21999. "value": "431128"
  22000. }, {
  22001. "label": "江华瑶族自治县",
  22002. "value": "431129"
  22003. }, {
  22004. "label": "永州经济技术开发区",
  22005. "value": "431171"
  22006. }, {
  22007. "label": "永州市金洞管理区",
  22008. "value": "431172"
  22009. }, {
  22010. "label": "永州市回龙圩管理区",
  22011. "value": "431173"
  22012. }], [{
  22013. "label": "鹤城区",
  22014. "value": "431202"
  22015. }, {
  22016. "label": "中方县",
  22017. "value": "431221"
  22018. }, {
  22019. "label": "沅陵县",
  22020. "value": "431222"
  22021. }, {
  22022. "label": "辰溪县",
  22023. "value": "431223"
  22024. }, {
  22025. "label": "溆浦县",
  22026. "value": "431224"
  22027. }, {
  22028. "label": "会同县",
  22029. "value": "431225"
  22030. }, {
  22031. "label": "麻阳苗族自治县",
  22032. "value": "431226"
  22033. }, {
  22034. "label": "新晃侗族自治县",
  22035. "value": "431227"
  22036. }, {
  22037. "label": "芷江侗族自治县",
  22038. "value": "431228"
  22039. }, {
  22040. "label": "靖州苗族侗族自治县",
  22041. "value": "431229"
  22042. }, {
  22043. "label": "通道侗族自治县",
  22044. "value": "431230"
  22045. }, {
  22046. "label": "怀化市洪江管理区",
  22047. "value": "431271"
  22048. }, {
  22049. "label": "洪江市",
  22050. "value": "431281"
  22051. }], [{
  22052. "label": "娄星区",
  22053. "value": "431302"
  22054. }, {
  22055. "label": "双峰县",
  22056. "value": "431321"
  22057. }, {
  22058. "label": "新化县",
  22059. "value": "431322"
  22060. }, {
  22061. "label": "冷水江市",
  22062. "value": "431381"
  22063. }, {
  22064. "label": "涟源市",
  22065. "value": "431382"
  22066. }], [{
  22067. "label": "吉首市",
  22068. "value": "433101"
  22069. }, {
  22070. "label": "泸溪县",
  22071. "value": "433122"
  22072. }, {
  22073. "label": "凤凰县",
  22074. "value": "433123"
  22075. }, {
  22076. "label": "花垣县",
  22077. "value": "433124"
  22078. }, {
  22079. "label": "保靖县",
  22080. "value": "433125"
  22081. }, {
  22082. "label": "古丈县",
  22083. "value": "433126"
  22084. }, {
  22085. "label": "永顺县",
  22086. "value": "433127"
  22087. }, {
  22088. "label": "龙山县",
  22089. "value": "433130"
  22090. }, {
  22091. "label": "湖南吉首经济开发区",
  22092. "value": "433172"
  22093. }, {
  22094. "label": "湖南永顺经济开发区",
  22095. "value": "433173"
  22096. }]], [[{
  22097. "label": "荔湾区",
  22098. "value": "440103"
  22099. }, {
  22100. "label": "越秀区",
  22101. "value": "440104"
  22102. }, {
  22103. "label": "海珠区",
  22104. "value": "440105"
  22105. }, {
  22106. "label": "天河区",
  22107. "value": "440106"
  22108. }, {
  22109. "label": "白云区",
  22110. "value": "440111"
  22111. }, {
  22112. "label": "黄埔区",
  22113. "value": "440112"
  22114. }, {
  22115. "label": "番禺区",
  22116. "value": "440113"
  22117. }, {
  22118. "label": "花都区",
  22119. "value": "440114"
  22120. }, {
  22121. "label": "南沙区",
  22122. "value": "440115"
  22123. }, {
  22124. "label": "从化区",
  22125. "value": "440117"
  22126. }, {
  22127. "label": "增城区",
  22128. "value": "440118"
  22129. }], [{
  22130. "label": "武江区",
  22131. "value": "440203"
  22132. }, {
  22133. "label": "浈江区",
  22134. "value": "440204"
  22135. }, {
  22136. "label": "曲江区",
  22137. "value": "440205"
  22138. }, {
  22139. "label": "始兴县",
  22140. "value": "440222"
  22141. }, {
  22142. "label": "仁化县",
  22143. "value": "440224"
  22144. }, {
  22145. "label": "翁源县",
  22146. "value": "440229"
  22147. }, {
  22148. "label": "乳源瑶族自治县",
  22149. "value": "440232"
  22150. }, {
  22151. "label": "新丰县",
  22152. "value": "440233"
  22153. }, {
  22154. "label": "乐昌市",
  22155. "value": "440281"
  22156. }, {
  22157. "label": "南雄市",
  22158. "value": "440282"
  22159. }], [{
  22160. "label": "罗湖区",
  22161. "value": "440303"
  22162. }, {
  22163. "label": "福田区",
  22164. "value": "440304"
  22165. }, {
  22166. "label": "南山区",
  22167. "value": "440305"
  22168. }, {
  22169. "label": "宝安区",
  22170. "value": "440306"
  22171. }, {
  22172. "label": "龙岗区",
  22173. "value": "440307"
  22174. }, {
  22175. "label": "盐田区",
  22176. "value": "440308"
  22177. }, {
  22178. "label": "龙华区",
  22179. "value": "440309"
  22180. }, {
  22181. "label": "坪山区",
  22182. "value": "440310"
  22183. }], [{
  22184. "label": "香洲区",
  22185. "value": "440402"
  22186. }, {
  22187. "label": "斗门区",
  22188. "value": "440403"
  22189. }, {
  22190. "label": "金湾区",
  22191. "value": "440404"
  22192. }], [{
  22193. "label": "龙湖区",
  22194. "value": "440507"
  22195. }, {
  22196. "label": "金平区",
  22197. "value": "440511"
  22198. }, {
  22199. "label": "濠江区",
  22200. "value": "440512"
  22201. }, {
  22202. "label": "潮阳区",
  22203. "value": "440513"
  22204. }, {
  22205. "label": "潮南区",
  22206. "value": "440514"
  22207. }, {
  22208. "label": "澄海区",
  22209. "value": "440515"
  22210. }, {
  22211. "label": "南澳县",
  22212. "value": "440523"
  22213. }], [{
  22214. "label": "禅城区",
  22215. "value": "440604"
  22216. }, {
  22217. "label": "南海区",
  22218. "value": "440605"
  22219. }, {
  22220. "label": "顺德区",
  22221. "value": "440606"
  22222. }, {
  22223. "label": "三水区",
  22224. "value": "440607"
  22225. }, {
  22226. "label": "高明区",
  22227. "value": "440608"
  22228. }], [{
  22229. "label": "蓬江区",
  22230. "value": "440703"
  22231. }, {
  22232. "label": "江海区",
  22233. "value": "440704"
  22234. }, {
  22235. "label": "新会区",
  22236. "value": "440705"
  22237. }, {
  22238. "label": "台山市",
  22239. "value": "440781"
  22240. }, {
  22241. "label": "开平市",
  22242. "value": "440783"
  22243. }, {
  22244. "label": "鹤山市",
  22245. "value": "440784"
  22246. }, {
  22247. "label": "恩平市",
  22248. "value": "440785"
  22249. }], [{
  22250. "label": "赤坎区",
  22251. "value": "440802"
  22252. }, {
  22253. "label": "霞山区",
  22254. "value": "440803"
  22255. }, {
  22256. "label": "坡头区",
  22257. "value": "440804"
  22258. }, {
  22259. "label": "麻章区",
  22260. "value": "440811"
  22261. }, {
  22262. "label": "遂溪县",
  22263. "value": "440823"
  22264. }, {
  22265. "label": "徐闻县",
  22266. "value": "440825"
  22267. }, {
  22268. "label": "廉江市",
  22269. "value": "440881"
  22270. }, {
  22271. "label": "雷州市",
  22272. "value": "440882"
  22273. }, {
  22274. "label": "吴川市",
  22275. "value": "440883"
  22276. }], [{
  22277. "label": "茂南区",
  22278. "value": "440902"
  22279. }, {
  22280. "label": "电白区",
  22281. "value": "440904"
  22282. }, {
  22283. "label": "高州市",
  22284. "value": "440981"
  22285. }, {
  22286. "label": "化州市",
  22287. "value": "440982"
  22288. }, {
  22289. "label": "信宜市",
  22290. "value": "440983"
  22291. }], [{
  22292. "label": "端州区",
  22293. "value": "441202"
  22294. }, {
  22295. "label": "鼎湖区",
  22296. "value": "441203"
  22297. }, {
  22298. "label": "高要区",
  22299. "value": "441204"
  22300. }, {
  22301. "label": "广宁县",
  22302. "value": "441223"
  22303. }, {
  22304. "label": "怀集县",
  22305. "value": "441224"
  22306. }, {
  22307. "label": "封开县",
  22308. "value": "441225"
  22309. }, {
  22310. "label": "德庆县",
  22311. "value": "441226"
  22312. }, {
  22313. "label": "四会市",
  22314. "value": "441284"
  22315. }], [{
  22316. "label": "惠城区",
  22317. "value": "441302"
  22318. }, {
  22319. "label": "惠阳区",
  22320. "value": "441303"
  22321. }, {
  22322. "label": "博罗县",
  22323. "value": "441322"
  22324. }, {
  22325. "label": "惠东县",
  22326. "value": "441323"
  22327. }, {
  22328. "label": "龙门县",
  22329. "value": "441324"
  22330. }], [{
  22331. "label": "梅江区",
  22332. "value": "441402"
  22333. }, {
  22334. "label": "梅县区",
  22335. "value": "441403"
  22336. }, {
  22337. "label": "大埔县",
  22338. "value": "441422"
  22339. }, {
  22340. "label": "丰顺县",
  22341. "value": "441423"
  22342. }, {
  22343. "label": "五华县",
  22344. "value": "441424"
  22345. }, {
  22346. "label": "平远县",
  22347. "value": "441426"
  22348. }, {
  22349. "label": "蕉岭县",
  22350. "value": "441427"
  22351. }, {
  22352. "label": "兴宁市",
  22353. "value": "441481"
  22354. }], [{
  22355. "label": "城区",
  22356. "value": "441502"
  22357. }, {
  22358. "label": "海丰县",
  22359. "value": "441521"
  22360. }, {
  22361. "label": "陆河县",
  22362. "value": "441523"
  22363. }, {
  22364. "label": "陆丰市",
  22365. "value": "441581"
  22366. }], [{
  22367. "label": "源城区",
  22368. "value": "441602"
  22369. }, {
  22370. "label": "紫金县",
  22371. "value": "441621"
  22372. }, {
  22373. "label": "龙川县",
  22374. "value": "441622"
  22375. }, {
  22376. "label": "连平县",
  22377. "value": "441623"
  22378. }, {
  22379. "label": "和平县",
  22380. "value": "441624"
  22381. }, {
  22382. "label": "东源县",
  22383. "value": "441625"
  22384. }], [{
  22385. "label": "江城区",
  22386. "value": "441702"
  22387. }, {
  22388. "label": "阳东区",
  22389. "value": "441704"
  22390. }, {
  22391. "label": "阳西县",
  22392. "value": "441721"
  22393. }, {
  22394. "label": "阳春市",
  22395. "value": "441781"
  22396. }], [{
  22397. "label": "清城区",
  22398. "value": "441802"
  22399. }, {
  22400. "label": "清新区",
  22401. "value": "441803"
  22402. }, {
  22403. "label": "佛冈县",
  22404. "value": "441821"
  22405. }, {
  22406. "label": "阳山县",
  22407. "value": "441823"
  22408. }, {
  22409. "label": "连山壮族瑶族自治县",
  22410. "value": "441825"
  22411. }, {
  22412. "label": "连南瑶族自治县",
  22413. "value": "441826"
  22414. }, {
  22415. "label": "英德市",
  22416. "value": "441881"
  22417. }, {
  22418. "label": "连州市",
  22419. "value": "441882"
  22420. }], [{
  22421. "label": "东莞市",
  22422. "value": "441900"
  22423. }], [{
  22424. "label": "中山市",
  22425. "value": "442000"
  22426. }], [{
  22427. "label": "湘桥区",
  22428. "value": "445102"
  22429. }, {
  22430. "label": "潮安区",
  22431. "value": "445103"
  22432. }, {
  22433. "label": "饶平县",
  22434. "value": "445122"
  22435. }], [{
  22436. "label": "榕城区",
  22437. "value": "445202"
  22438. }, {
  22439. "label": "揭东区",
  22440. "value": "445203"
  22441. }, {
  22442. "label": "揭西县",
  22443. "value": "445222"
  22444. }, {
  22445. "label": "惠来县",
  22446. "value": "445224"
  22447. }, {
  22448. "label": "普宁市",
  22449. "value": "445281"
  22450. }], [{
  22451. "label": "云城区",
  22452. "value": "445302"
  22453. }, {
  22454. "label": "云安区",
  22455. "value": "445303"
  22456. }, {
  22457. "label": "新兴县",
  22458. "value": "445321"
  22459. }, {
  22460. "label": "郁南县",
  22461. "value": "445322"
  22462. }, {
  22463. "label": "罗定市",
  22464. "value": "445381"
  22465. }]], [[{
  22466. "label": "兴宁区",
  22467. "value": "450102"
  22468. }, {
  22469. "label": "青秀区",
  22470. "value": "450103"
  22471. }, {
  22472. "label": "江南区",
  22473. "value": "450105"
  22474. }, {
  22475. "label": "西乡塘区",
  22476. "value": "450107"
  22477. }, {
  22478. "label": "良庆区",
  22479. "value": "450108"
  22480. }, {
  22481. "label": "邕宁区",
  22482. "value": "450109"
  22483. }, {
  22484. "label": "武鸣区",
  22485. "value": "450110"
  22486. }, {
  22487. "label": "隆安县",
  22488. "value": "450123"
  22489. }, {
  22490. "label": "马山县",
  22491. "value": "450124"
  22492. }, {
  22493. "label": "上林县",
  22494. "value": "450125"
  22495. }, {
  22496. "label": "宾阳县",
  22497. "value": "450126"
  22498. }, {
  22499. "label": "横县",
  22500. "value": "450127"
  22501. }], [{
  22502. "label": "城中区",
  22503. "value": "450202"
  22504. }, {
  22505. "label": "鱼峰区",
  22506. "value": "450203"
  22507. }, {
  22508. "label": "柳南区",
  22509. "value": "450204"
  22510. }, {
  22511. "label": "柳北区",
  22512. "value": "450205"
  22513. }, {
  22514. "label": "柳江区",
  22515. "value": "450206"
  22516. }, {
  22517. "label": "柳城县",
  22518. "value": "450222"
  22519. }, {
  22520. "label": "鹿寨县",
  22521. "value": "450223"
  22522. }, {
  22523. "label": "融安县",
  22524. "value": "450224"
  22525. }, {
  22526. "label": "融水苗族自治县",
  22527. "value": "450225"
  22528. }, {
  22529. "label": "三江侗族自治县",
  22530. "value": "450226"
  22531. }], [{
  22532. "label": "秀峰区",
  22533. "value": "450302"
  22534. }, {
  22535. "label": "叠彩区",
  22536. "value": "450303"
  22537. }, {
  22538. "label": "象山区",
  22539. "value": "450304"
  22540. }, {
  22541. "label": "七星区",
  22542. "value": "450305"
  22543. }, {
  22544. "label": "雁山区",
  22545. "value": "450311"
  22546. }, {
  22547. "label": "临桂区",
  22548. "value": "450312"
  22549. }, {
  22550. "label": "阳朔县",
  22551. "value": "450321"
  22552. }, {
  22553. "label": "灵川县",
  22554. "value": "450323"
  22555. }, {
  22556. "label": "全州县",
  22557. "value": "450324"
  22558. }, {
  22559. "label": "兴安县",
  22560. "value": "450325"
  22561. }, {
  22562. "label": "永福县",
  22563. "value": "450326"
  22564. }, {
  22565. "label": "灌阳县",
  22566. "value": "450327"
  22567. }, {
  22568. "label": "龙胜各族自治县",
  22569. "value": "450328"
  22570. }, {
  22571. "label": "资源县",
  22572. "value": "450329"
  22573. }, {
  22574. "label": "平乐县",
  22575. "value": "450330"
  22576. }, {
  22577. "label": "荔浦县",
  22578. "value": "450331"
  22579. }, {
  22580. "label": "恭城瑶族自治县",
  22581. "value": "450332"
  22582. }], [{
  22583. "label": "万秀区",
  22584. "value": "450403"
  22585. }, {
  22586. "label": "长洲区",
  22587. "value": "450405"
  22588. }, {
  22589. "label": "龙圩区",
  22590. "value": "450406"
  22591. }, {
  22592. "label": "苍梧县",
  22593. "value": "450421"
  22594. }, {
  22595. "label": "藤县",
  22596. "value": "450422"
  22597. }, {
  22598. "label": "蒙山县",
  22599. "value": "450423"
  22600. }, {
  22601. "label": "岑溪市",
  22602. "value": "450481"
  22603. }], [{
  22604. "label": "海城区",
  22605. "value": "450502"
  22606. }, {
  22607. "label": "银海区",
  22608. "value": "450503"
  22609. }, {
  22610. "label": "铁山港区",
  22611. "value": "450512"
  22612. }, {
  22613. "label": "合浦县",
  22614. "value": "450521"
  22615. }], [{
  22616. "label": "港口区",
  22617. "value": "450602"
  22618. }, {
  22619. "label": "防城区",
  22620. "value": "450603"
  22621. }, {
  22622. "label": "上思县",
  22623. "value": "450621"
  22624. }, {
  22625. "label": "东兴市",
  22626. "value": "450681"
  22627. }], [{
  22628. "label": "钦南区",
  22629. "value": "450702"
  22630. }, {
  22631. "label": "钦北区",
  22632. "value": "450703"
  22633. }, {
  22634. "label": "灵山县",
  22635. "value": "450721"
  22636. }, {
  22637. "label": "浦北县",
  22638. "value": "450722"
  22639. }], [{
  22640. "label": "港北区",
  22641. "value": "450802"
  22642. }, {
  22643. "label": "港南区",
  22644. "value": "450803"
  22645. }, {
  22646. "label": "覃塘区",
  22647. "value": "450804"
  22648. }, {
  22649. "label": "平南县",
  22650. "value": "450821"
  22651. }, {
  22652. "label": "桂平市",
  22653. "value": "450881"
  22654. }], [{
  22655. "label": "玉州区",
  22656. "value": "450902"
  22657. }, {
  22658. "label": "福绵区",
  22659. "value": "450903"
  22660. }, {
  22661. "label": "容县",
  22662. "value": "450921"
  22663. }, {
  22664. "label": "陆川县",
  22665. "value": "450922"
  22666. }, {
  22667. "label": "博白县",
  22668. "value": "450923"
  22669. }, {
  22670. "label": "兴业县",
  22671. "value": "450924"
  22672. }, {
  22673. "label": "北流市",
  22674. "value": "450981"
  22675. }], [{
  22676. "label": "右江区",
  22677. "value": "451002"
  22678. }, {
  22679. "label": "田阳县",
  22680. "value": "451021"
  22681. }, {
  22682. "label": "田东县",
  22683. "value": "451022"
  22684. }, {
  22685. "label": "平果县",
  22686. "value": "451023"
  22687. }, {
  22688. "label": "德保县",
  22689. "value": "451024"
  22690. }, {
  22691. "label": "那坡县",
  22692. "value": "451026"
  22693. }, {
  22694. "label": "凌云县",
  22695. "value": "451027"
  22696. }, {
  22697. "label": "乐业县",
  22698. "value": "451028"
  22699. }, {
  22700. "label": "田林县",
  22701. "value": "451029"
  22702. }, {
  22703. "label": "西林县",
  22704. "value": "451030"
  22705. }, {
  22706. "label": "隆林各族自治县",
  22707. "value": "451031"
  22708. }, {
  22709. "label": "靖西市",
  22710. "value": "451081"
  22711. }], [{
  22712. "label": "八步区",
  22713. "value": "451102"
  22714. }, {
  22715. "label": "平桂区",
  22716. "value": "451103"
  22717. }, {
  22718. "label": "昭平县",
  22719. "value": "451121"
  22720. }, {
  22721. "label": "钟山县",
  22722. "value": "451122"
  22723. }, {
  22724. "label": "富川瑶族自治县",
  22725. "value": "451123"
  22726. }], [{
  22727. "label": "金城江区",
  22728. "value": "451202"
  22729. }, {
  22730. "label": "宜州区",
  22731. "value": "451203"
  22732. }, {
  22733. "label": "南丹县",
  22734. "value": "451221"
  22735. }, {
  22736. "label": "天峨县",
  22737. "value": "451222"
  22738. }, {
  22739. "label": "凤山县",
  22740. "value": "451223"
  22741. }, {
  22742. "label": "东兰县",
  22743. "value": "451224"
  22744. }, {
  22745. "label": "罗城仫佬族自治县",
  22746. "value": "451225"
  22747. }, {
  22748. "label": "环江毛南族自治县",
  22749. "value": "451226"
  22750. }, {
  22751. "label": "巴马瑶族自治县",
  22752. "value": "451227"
  22753. }, {
  22754. "label": "都安瑶族自治县",
  22755. "value": "451228"
  22756. }, {
  22757. "label": "大化瑶族自治县",
  22758. "value": "451229"
  22759. }], [{
  22760. "label": "兴宾区",
  22761. "value": "451302"
  22762. }, {
  22763. "label": "忻城县",
  22764. "value": "451321"
  22765. }, {
  22766. "label": "象州县",
  22767. "value": "451322"
  22768. }, {
  22769. "label": "武宣县",
  22770. "value": "451323"
  22771. }, {
  22772. "label": "金秀瑶族自治县",
  22773. "value": "451324"
  22774. }, {
  22775. "label": "合山市",
  22776. "value": "451381"
  22777. }], [{
  22778. "label": "江州区",
  22779. "value": "451402"
  22780. }, {
  22781. "label": "扶绥县",
  22782. "value": "451421"
  22783. }, {
  22784. "label": "宁明县",
  22785. "value": "451422"
  22786. }, {
  22787. "label": "龙州县",
  22788. "value": "451423"
  22789. }, {
  22790. "label": "大新县",
  22791. "value": "451424"
  22792. }, {
  22793. "label": "天等县",
  22794. "value": "451425"
  22795. }, {
  22796. "label": "凭祥市",
  22797. "value": "451481"
  22798. }]], [[{
  22799. "label": "秀英区",
  22800. "value": "460105"
  22801. }, {
  22802. "label": "龙华区",
  22803. "value": "460106"
  22804. }, {
  22805. "label": "琼山区",
  22806. "value": "460107"
  22807. }, {
  22808. "label": "美兰区",
  22809. "value": "460108"
  22810. }], [{
  22811. "label": "海棠区",
  22812. "value": "460202"
  22813. }, {
  22814. "label": "吉阳区",
  22815. "value": "460203"
  22816. }, {
  22817. "label": "天涯区",
  22818. "value": "460204"
  22819. }, {
  22820. "label": "崖州区",
  22821. "value": "460205"
  22822. }], [{
  22823. "label": "西沙群岛",
  22824. "value": "460321"
  22825. }, {
  22826. "label": "南沙群岛",
  22827. "value": "460322"
  22828. }, {
  22829. "label": "中沙群岛的岛礁及其海域",
  22830. "value": "460323"
  22831. }], [{
  22832. "label": "儋州市",
  22833. "value": "460400"
  22834. }], [{
  22835. "label": "五指山市",
  22836. "value": "469001"
  22837. }, {
  22838. "label": "琼海市",
  22839. "value": "469002"
  22840. }, {
  22841. "label": "文昌市",
  22842. "value": "469005"
  22843. }, {
  22844. "label": "万宁市",
  22845. "value": "469006"
  22846. }, {
  22847. "label": "东方市",
  22848. "value": "469007"
  22849. }, {
  22850. "label": "定安县",
  22851. "value": "469021"
  22852. }, {
  22853. "label": "屯昌县",
  22854. "value": "469022"
  22855. }, {
  22856. "label": "澄迈县",
  22857. "value": "469023"
  22858. }, {
  22859. "label": "临高县",
  22860. "value": "469024"
  22861. }, {
  22862. "label": "白沙黎族自治县",
  22863. "value": "469025"
  22864. }, {
  22865. "label": "昌江黎族自治县",
  22866. "value": "469026"
  22867. }, {
  22868. "label": "乐东黎族自治县",
  22869. "value": "469027"
  22870. }, {
  22871. "label": "陵水黎族自治县",
  22872. "value": "469028"
  22873. }, {
  22874. "label": "保亭黎族苗族自治县",
  22875. "value": "469029"
  22876. }, {
  22877. "label": "琼中黎族苗族自治县",
  22878. "value": "469030"
  22879. }]], [[{
  22880. "label": "万州区",
  22881. "value": "500101"
  22882. }, {
  22883. "label": "涪陵区",
  22884. "value": "500102"
  22885. }, {
  22886. "label": "渝中区",
  22887. "value": "500103"
  22888. }, {
  22889. "label": "大渡口区",
  22890. "value": "500104"
  22891. }, {
  22892. "label": "江北区",
  22893. "value": "500105"
  22894. }, {
  22895. "label": "沙坪坝区",
  22896. "value": "500106"
  22897. }, {
  22898. "label": "九龙坡区",
  22899. "value": "500107"
  22900. }, {
  22901. "label": "南岸区",
  22902. "value": "500108"
  22903. }, {
  22904. "label": "北碚区",
  22905. "value": "500109"
  22906. }, {
  22907. "label": "綦江区",
  22908. "value": "500110"
  22909. }, {
  22910. "label": "大足区",
  22911. "value": "500111"
  22912. }, {
  22913. "label": "渝北区",
  22914. "value": "500112"
  22915. }, {
  22916. "label": "巴南区",
  22917. "value": "500113"
  22918. }, {
  22919. "label": "黔江区",
  22920. "value": "500114"
  22921. }, {
  22922. "label": "长寿区",
  22923. "value": "500115"
  22924. }, {
  22925. "label": "江津区",
  22926. "value": "500116"
  22927. }, {
  22928. "label": "合川区",
  22929. "value": "500117"
  22930. }, {
  22931. "label": "永川区",
  22932. "value": "500118"
  22933. }, {
  22934. "label": "南川区",
  22935. "value": "500119"
  22936. }, {
  22937. "label": "璧山区",
  22938. "value": "500120"
  22939. }, {
  22940. "label": "铜梁区",
  22941. "value": "500151"
  22942. }, {
  22943. "label": "潼南区",
  22944. "value": "500152"
  22945. }, {
  22946. "label": "荣昌区",
  22947. "value": "500153"
  22948. }, {
  22949. "label": "开州区",
  22950. "value": "500154"
  22951. }, {
  22952. "label": "梁平区",
  22953. "value": "500155"
  22954. }, {
  22955. "label": "武隆区",
  22956. "value": "500156"
  22957. }], [{
  22958. "label": "城口县",
  22959. "value": "500229"
  22960. }, {
  22961. "label": "丰都县",
  22962. "value": "500230"
  22963. }, {
  22964. "label": "垫江县",
  22965. "value": "500231"
  22966. }, {
  22967. "label": "忠县",
  22968. "value": "500233"
  22969. }, {
  22970. "label": "云阳县",
  22971. "value": "500235"
  22972. }, {
  22973. "label": "奉节县",
  22974. "value": "500236"
  22975. }, {
  22976. "label": "巫山县",
  22977. "value": "500237"
  22978. }, {
  22979. "label": "巫溪县",
  22980. "value": "500238"
  22981. }, {
  22982. "label": "石柱土家族自治县",
  22983. "value": "500240"
  22984. }, {
  22985. "label": "秀山土家族苗族自治县",
  22986. "value": "500241"
  22987. }, {
  22988. "label": "酉阳土家族苗族自治县",
  22989. "value": "500242"
  22990. }, {
  22991. "label": "彭水苗族土家族自治县",
  22992. "value": "500243"
  22993. }]], [[{
  22994. "label": "锦江区",
  22995. "value": "510104"
  22996. }, {
  22997. "label": "青羊区",
  22998. "value": "510105"
  22999. }, {
  23000. "label": "金牛区",
  23001. "value": "510106"
  23002. }, {
  23003. "label": "武侯区",
  23004. "value": "510107"
  23005. }, {
  23006. "label": "成华区",
  23007. "value": "510108"
  23008. }, {
  23009. "label": "龙泉驿区",
  23010. "value": "510112"
  23011. }, {
  23012. "label": "青白江区",
  23013. "value": "510113"
  23014. }, {
  23015. "label": "新都区",
  23016. "value": "510114"
  23017. }, {
  23018. "label": "温江区",
  23019. "value": "510115"
  23020. }, {
  23021. "label": "双流区",
  23022. "value": "510116"
  23023. }, {
  23024. "label": "郫都区",
  23025. "value": "510117"
  23026. }, {
  23027. "label": "金堂县",
  23028. "value": "510121"
  23029. }, {
  23030. "label": "大邑县",
  23031. "value": "510129"
  23032. }, {
  23033. "label": "蒲江县",
  23034. "value": "510131"
  23035. }, {
  23036. "label": "新津县",
  23037. "value": "510132"
  23038. }, {
  23039. "label": "都江堰市",
  23040. "value": "510181"
  23041. }, {
  23042. "label": "彭州市",
  23043. "value": "510182"
  23044. }, {
  23045. "label": "邛崃市",
  23046. "value": "510183"
  23047. }, {
  23048. "label": "崇州市",
  23049. "value": "510184"
  23050. }, {
  23051. "label": "简阳市",
  23052. "value": "510185"
  23053. }], [{
  23054. "label": "自流井区",
  23055. "value": "510302"
  23056. }, {
  23057. "label": "贡井区",
  23058. "value": "510303"
  23059. }, {
  23060. "label": "大安区",
  23061. "value": "510304"
  23062. }, {
  23063. "label": "沿滩区",
  23064. "value": "510311"
  23065. }, {
  23066. "label": "荣县",
  23067. "value": "510321"
  23068. }, {
  23069. "label": "富顺县",
  23070. "value": "510322"
  23071. }], [{
  23072. "label": "东区",
  23073. "value": "510402"
  23074. }, {
  23075. "label": "西区",
  23076. "value": "510403"
  23077. }, {
  23078. "label": "仁和区",
  23079. "value": "510411"
  23080. }, {
  23081. "label": "米易县",
  23082. "value": "510421"
  23083. }, {
  23084. "label": "盐边县",
  23085. "value": "510422"
  23086. }], [{
  23087. "label": "江阳区",
  23088. "value": "510502"
  23089. }, {
  23090. "label": "纳溪区",
  23091. "value": "510503"
  23092. }, {
  23093. "label": "龙马潭区",
  23094. "value": "510504"
  23095. }, {
  23096. "label": "泸县",
  23097. "value": "510521"
  23098. }, {
  23099. "label": "合江县",
  23100. "value": "510522"
  23101. }, {
  23102. "label": "叙永县",
  23103. "value": "510524"
  23104. }, {
  23105. "label": "古蔺县",
  23106. "value": "510525"
  23107. }], [{
  23108. "label": "旌阳区",
  23109. "value": "510603"
  23110. }, {
  23111. "label": "罗江区",
  23112. "value": "510604"
  23113. }, {
  23114. "label": "中江县",
  23115. "value": "510623"
  23116. }, {
  23117. "label": "广汉市",
  23118. "value": "510681"
  23119. }, {
  23120. "label": "什邡市",
  23121. "value": "510682"
  23122. }, {
  23123. "label": "绵竹市",
  23124. "value": "510683"
  23125. }], [{
  23126. "label": "涪城区",
  23127. "value": "510703"
  23128. }, {
  23129. "label": "游仙区",
  23130. "value": "510704"
  23131. }, {
  23132. "label": "安州区",
  23133. "value": "510705"
  23134. }, {
  23135. "label": "三台县",
  23136. "value": "510722"
  23137. }, {
  23138. "label": "盐亭县",
  23139. "value": "510723"
  23140. }, {
  23141. "label": "梓潼县",
  23142. "value": "510725"
  23143. }, {
  23144. "label": "北川羌族自治县",
  23145. "value": "510726"
  23146. }, {
  23147. "label": "平武县",
  23148. "value": "510727"
  23149. }, {
  23150. "label": "江油市",
  23151. "value": "510781"
  23152. }], [{
  23153. "label": "利州区",
  23154. "value": "510802"
  23155. }, {
  23156. "label": "昭化区",
  23157. "value": "510811"
  23158. }, {
  23159. "label": "朝天区",
  23160. "value": "510812"
  23161. }, {
  23162. "label": "旺苍县",
  23163. "value": "510821"
  23164. }, {
  23165. "label": "青川县",
  23166. "value": "510822"
  23167. }, {
  23168. "label": "剑阁县",
  23169. "value": "510823"
  23170. }, {
  23171. "label": "苍溪县",
  23172. "value": "510824"
  23173. }], [{
  23174. "label": "船山区",
  23175. "value": "510903"
  23176. }, {
  23177. "label": "安居区",
  23178. "value": "510904"
  23179. }, {
  23180. "label": "蓬溪县",
  23181. "value": "510921"
  23182. }, {
  23183. "label": "射洪县",
  23184. "value": "510922"
  23185. }, {
  23186. "label": "大英县",
  23187. "value": "510923"
  23188. }], [{
  23189. "label": "市中区",
  23190. "value": "511002"
  23191. }, {
  23192. "label": "东兴区",
  23193. "value": "511011"
  23194. }, {
  23195. "label": "威远县",
  23196. "value": "511024"
  23197. }, {
  23198. "label": "资中县",
  23199. "value": "511025"
  23200. }, {
  23201. "label": "内江经济开发区",
  23202. "value": "511071"
  23203. }, {
  23204. "label": "隆昌市",
  23205. "value": "511083"
  23206. }], [{
  23207. "label": "市中区",
  23208. "value": "511102"
  23209. }, {
  23210. "label": "沙湾区",
  23211. "value": "511111"
  23212. }, {
  23213. "label": "五通桥区",
  23214. "value": "511112"
  23215. }, {
  23216. "label": "金口河区",
  23217. "value": "511113"
  23218. }, {
  23219. "label": "犍为县",
  23220. "value": "511123"
  23221. }, {
  23222. "label": "井研县",
  23223. "value": "511124"
  23224. }, {
  23225. "label": "夹江县",
  23226. "value": "511126"
  23227. }, {
  23228. "label": "沐川县",
  23229. "value": "511129"
  23230. }, {
  23231. "label": "峨边彝族自治县",
  23232. "value": "511132"
  23233. }, {
  23234. "label": "马边彝族自治县",
  23235. "value": "511133"
  23236. }, {
  23237. "label": "峨眉山市",
  23238. "value": "511181"
  23239. }], [{
  23240. "label": "顺庆区",
  23241. "value": "511302"
  23242. }, {
  23243. "label": "高坪区",
  23244. "value": "511303"
  23245. }, {
  23246. "label": "嘉陵区",
  23247. "value": "511304"
  23248. }, {
  23249. "label": "南部县",
  23250. "value": "511321"
  23251. }, {
  23252. "label": "营山县",
  23253. "value": "511322"
  23254. }, {
  23255. "label": "蓬安县",
  23256. "value": "511323"
  23257. }, {
  23258. "label": "仪陇县",
  23259. "value": "511324"
  23260. }, {
  23261. "label": "西充县",
  23262. "value": "511325"
  23263. }, {
  23264. "label": "阆中市",
  23265. "value": "511381"
  23266. }], [{
  23267. "label": "东坡区",
  23268. "value": "511402"
  23269. }, {
  23270. "label": "彭山区",
  23271. "value": "511403"
  23272. }, {
  23273. "label": "仁寿县",
  23274. "value": "511421"
  23275. }, {
  23276. "label": "洪雅县",
  23277. "value": "511423"
  23278. }, {
  23279. "label": "丹棱县",
  23280. "value": "511424"
  23281. }, {
  23282. "label": "青神县",
  23283. "value": "511425"
  23284. }], [{
  23285. "label": "翠屏区",
  23286. "value": "511502"
  23287. }, {
  23288. "label": "南溪区",
  23289. "value": "511503"
  23290. }, {
  23291. "label": "宜宾县",
  23292. "value": "511521"
  23293. }, {
  23294. "label": "江安县",
  23295. "value": "511523"
  23296. }, {
  23297. "label": "长宁县",
  23298. "value": "511524"
  23299. }, {
  23300. "label": "高县",
  23301. "value": "511525"
  23302. }, {
  23303. "label": "珙县",
  23304. "value": "511526"
  23305. }, {
  23306. "label": "筠连县",
  23307. "value": "511527"
  23308. }, {
  23309. "label": "兴文县",
  23310. "value": "511528"
  23311. }, {
  23312. "label": "屏山县",
  23313. "value": "511529"
  23314. }], [{
  23315. "label": "广安区",
  23316. "value": "511602"
  23317. }, {
  23318. "label": "前锋区",
  23319. "value": "511603"
  23320. }, {
  23321. "label": "岳池县",
  23322. "value": "511621"
  23323. }, {
  23324. "label": "武胜县",
  23325. "value": "511622"
  23326. }, {
  23327. "label": "邻水县",
  23328. "value": "511623"
  23329. }, {
  23330. "label": "华蓥市",
  23331. "value": "511681"
  23332. }], [{
  23333. "label": "通川区",
  23334. "value": "511702"
  23335. }, {
  23336. "label": "达川区",
  23337. "value": "511703"
  23338. }, {
  23339. "label": "宣汉县",
  23340. "value": "511722"
  23341. }, {
  23342. "label": "开江县",
  23343. "value": "511723"
  23344. }, {
  23345. "label": "大竹县",
  23346. "value": "511724"
  23347. }, {
  23348. "label": "渠县",
  23349. "value": "511725"
  23350. }, {
  23351. "label": "达州经济开发区",
  23352. "value": "511771"
  23353. }, {
  23354. "label": "万源市",
  23355. "value": "511781"
  23356. }], [{
  23357. "label": "雨城区",
  23358. "value": "511802"
  23359. }, {
  23360. "label": "名山区",
  23361. "value": "511803"
  23362. }, {
  23363. "label": "荥经县",
  23364. "value": "511822"
  23365. }, {
  23366. "label": "汉源县",
  23367. "value": "511823"
  23368. }, {
  23369. "label": "石棉县",
  23370. "value": "511824"
  23371. }, {
  23372. "label": "天全县",
  23373. "value": "511825"
  23374. }, {
  23375. "label": "芦山县",
  23376. "value": "511826"
  23377. }, {
  23378. "label": "宝兴县",
  23379. "value": "511827"
  23380. }], [{
  23381. "label": "巴州区",
  23382. "value": "511902"
  23383. }, {
  23384. "label": "恩阳区",
  23385. "value": "511903"
  23386. }, {
  23387. "label": "通江县",
  23388. "value": "511921"
  23389. }, {
  23390. "label": "南江县",
  23391. "value": "511922"
  23392. }, {
  23393. "label": "平昌县",
  23394. "value": "511923"
  23395. }, {
  23396. "label": "巴中经济开发区",
  23397. "value": "511971"
  23398. }], [{
  23399. "label": "雁江区",
  23400. "value": "512002"
  23401. }, {
  23402. "label": "安岳县",
  23403. "value": "512021"
  23404. }, {
  23405. "label": "乐至县",
  23406. "value": "512022"
  23407. }], [{
  23408. "label": "马尔康市",
  23409. "value": "513201"
  23410. }, {
  23411. "label": "汶川县",
  23412. "value": "513221"
  23413. }, {
  23414. "label": "理县",
  23415. "value": "513222"
  23416. }, {
  23417. "label": "茂县",
  23418. "value": "513223"
  23419. }, {
  23420. "label": "松潘县",
  23421. "value": "513224"
  23422. }, {
  23423. "label": "九寨沟县",
  23424. "value": "513225"
  23425. }, {
  23426. "label": "金川县",
  23427. "value": "513226"
  23428. }, {
  23429. "label": "小金县",
  23430. "value": "513227"
  23431. }, {
  23432. "label": "黑水县",
  23433. "value": "513228"
  23434. }, {
  23435. "label": "壤塘县",
  23436. "value": "513230"
  23437. }, {
  23438. "label": "阿坝县",
  23439. "value": "513231"
  23440. }, {
  23441. "label": "若尔盖县",
  23442. "value": "513232"
  23443. }, {
  23444. "label": "红原县",
  23445. "value": "513233"
  23446. }], [{
  23447. "label": "康定市",
  23448. "value": "513301"
  23449. }, {
  23450. "label": "泸定县",
  23451. "value": "513322"
  23452. }, {
  23453. "label": "丹巴县",
  23454. "value": "513323"
  23455. }, {
  23456. "label": "九龙县",
  23457. "value": "513324"
  23458. }, {
  23459. "label": "雅江县",
  23460. "value": "513325"
  23461. }, {
  23462. "label": "道孚县",
  23463. "value": "513326"
  23464. }, {
  23465. "label": "炉霍县",
  23466. "value": "513327"
  23467. }, {
  23468. "label": "甘孜县",
  23469. "value": "513328"
  23470. }, {
  23471. "label": "新龙县",
  23472. "value": "513329"
  23473. }, {
  23474. "label": "德格县",
  23475. "value": "513330"
  23476. }, {
  23477. "label": "白玉县",
  23478. "value": "513331"
  23479. }, {
  23480. "label": "石渠县",
  23481. "value": "513332"
  23482. }, {
  23483. "label": "色达县",
  23484. "value": "513333"
  23485. }, {
  23486. "label": "理塘县",
  23487. "value": "513334"
  23488. }, {
  23489. "label": "巴塘县",
  23490. "value": "513335"
  23491. }, {
  23492. "label": "乡城县",
  23493. "value": "513336"
  23494. }, {
  23495. "label": "稻城县",
  23496. "value": "513337"
  23497. }, {
  23498. "label": "得荣县",
  23499. "value": "513338"
  23500. }], [{
  23501. "label": "西昌市",
  23502. "value": "513401"
  23503. }, {
  23504. "label": "木里藏族自治县",
  23505. "value": "513422"
  23506. }, {
  23507. "label": "盐源县",
  23508. "value": "513423"
  23509. }, {
  23510. "label": "德昌县",
  23511. "value": "513424"
  23512. }, {
  23513. "label": "会理县",
  23514. "value": "513425"
  23515. }, {
  23516. "label": "会东县",
  23517. "value": "513426"
  23518. }, {
  23519. "label": "宁南县",
  23520. "value": "513427"
  23521. }, {
  23522. "label": "普格县",
  23523. "value": "513428"
  23524. }, {
  23525. "label": "布拖县",
  23526. "value": "513429"
  23527. }, {
  23528. "label": "金阳县",
  23529. "value": "513430"
  23530. }, {
  23531. "label": "昭觉县",
  23532. "value": "513431"
  23533. }, {
  23534. "label": "喜德县",
  23535. "value": "513432"
  23536. }, {
  23537. "label": "冕宁县",
  23538. "value": "513433"
  23539. }, {
  23540. "label": "越西县",
  23541. "value": "513434"
  23542. }, {
  23543. "label": "甘洛县",
  23544. "value": "513435"
  23545. }, {
  23546. "label": "美姑县",
  23547. "value": "513436"
  23548. }, {
  23549. "label": "雷波县",
  23550. "value": "513437"
  23551. }]], [[{
  23552. "label": "南明区",
  23553. "value": "520102"
  23554. }, {
  23555. "label": "云岩区",
  23556. "value": "520103"
  23557. }, {
  23558. "label": "花溪区",
  23559. "value": "520111"
  23560. }, {
  23561. "label": "乌当区",
  23562. "value": "520112"
  23563. }, {
  23564. "label": "白云区",
  23565. "value": "520113"
  23566. }, {
  23567. "label": "观山湖区",
  23568. "value": "520115"
  23569. }, {
  23570. "label": "开阳县",
  23571. "value": "520121"
  23572. }, {
  23573. "label": "息烽县",
  23574. "value": "520122"
  23575. }, {
  23576. "label": "修文县",
  23577. "value": "520123"
  23578. }, {
  23579. "label": "清镇市",
  23580. "value": "520181"
  23581. }], [{
  23582. "label": "钟山区",
  23583. "value": "520201"
  23584. }, {
  23585. "label": "六枝特区",
  23586. "value": "520203"
  23587. }, {
  23588. "label": "水城县",
  23589. "value": "520221"
  23590. }, {
  23591. "label": "盘州市",
  23592. "value": "520281"
  23593. }], [{
  23594. "label": "红花岗区",
  23595. "value": "520302"
  23596. }, {
  23597. "label": "汇川区",
  23598. "value": "520303"
  23599. }, {
  23600. "label": "播州区",
  23601. "value": "520304"
  23602. }, {
  23603. "label": "桐梓县",
  23604. "value": "520322"
  23605. }, {
  23606. "label": "绥阳县",
  23607. "value": "520323"
  23608. }, {
  23609. "label": "正安县",
  23610. "value": "520324"
  23611. }, {
  23612. "label": "道真仡佬族苗族自治县",
  23613. "value": "520325"
  23614. }, {
  23615. "label": "务川仡佬族苗族自治县",
  23616. "value": "520326"
  23617. }, {
  23618. "label": "凤冈县",
  23619. "value": "520327"
  23620. }, {
  23621. "label": "湄潭县",
  23622. "value": "520328"
  23623. }, {
  23624. "label": "余庆县",
  23625. "value": "520329"
  23626. }, {
  23627. "label": "习水县",
  23628. "value": "520330"
  23629. }, {
  23630. "label": "赤水市",
  23631. "value": "520381"
  23632. }, {
  23633. "label": "仁怀市",
  23634. "value": "520382"
  23635. }], [{
  23636. "label": "西秀区",
  23637. "value": "520402"
  23638. }, {
  23639. "label": "平坝区",
  23640. "value": "520403"
  23641. }, {
  23642. "label": "普定县",
  23643. "value": "520422"
  23644. }, {
  23645. "label": "镇宁布依族苗族自治县",
  23646. "value": "520423"
  23647. }, {
  23648. "label": "关岭布依族苗族自治县",
  23649. "value": "520424"
  23650. }, {
  23651. "label": "紫云苗族布依族自治县",
  23652. "value": "520425"
  23653. }], [{
  23654. "label": "七星关区",
  23655. "value": "520502"
  23656. }, {
  23657. "label": "大方县",
  23658. "value": "520521"
  23659. }, {
  23660. "label": "黔西县",
  23661. "value": "520522"
  23662. }, {
  23663. "label": "金沙县",
  23664. "value": "520523"
  23665. }, {
  23666. "label": "织金县",
  23667. "value": "520524"
  23668. }, {
  23669. "label": "纳雍县",
  23670. "value": "520525"
  23671. }, {
  23672. "label": "威宁彝族回族苗族自治县",
  23673. "value": "520526"
  23674. }, {
  23675. "label": "赫章县",
  23676. "value": "520527"
  23677. }], [{
  23678. "label": "碧江区",
  23679. "value": "520602"
  23680. }, {
  23681. "label": "万山区",
  23682. "value": "520603"
  23683. }, {
  23684. "label": "江口县",
  23685. "value": "520621"
  23686. }, {
  23687. "label": "玉屏侗族自治县",
  23688. "value": "520622"
  23689. }, {
  23690. "label": "石阡县",
  23691. "value": "520623"
  23692. }, {
  23693. "label": "思南县",
  23694. "value": "520624"
  23695. }, {
  23696. "label": "印江土家族苗族自治县",
  23697. "value": "520625"
  23698. }, {
  23699. "label": "德江县",
  23700. "value": "520626"
  23701. }, {
  23702. "label": "沿河土家族自治县",
  23703. "value": "520627"
  23704. }, {
  23705. "label": "松桃苗族自治县",
  23706. "value": "520628"
  23707. }], [{
  23708. "label": "兴义市",
  23709. "value": "522301"
  23710. }, {
  23711. "label": "兴仁县",
  23712. "value": "522322"
  23713. }, {
  23714. "label": "普安县",
  23715. "value": "522323"
  23716. }, {
  23717. "label": "晴隆县",
  23718. "value": "522324"
  23719. }, {
  23720. "label": "贞丰县",
  23721. "value": "522325"
  23722. }, {
  23723. "label": "望谟县",
  23724. "value": "522326"
  23725. }, {
  23726. "label": "册亨县",
  23727. "value": "522327"
  23728. }, {
  23729. "label": "安龙县",
  23730. "value": "522328"
  23731. }], [{
  23732. "label": "凯里市",
  23733. "value": "522601"
  23734. }, {
  23735. "label": "黄平县",
  23736. "value": "522622"
  23737. }, {
  23738. "label": "施秉县",
  23739. "value": "522623"
  23740. }, {
  23741. "label": "三穗县",
  23742. "value": "522624"
  23743. }, {
  23744. "label": "镇远县",
  23745. "value": "522625"
  23746. }, {
  23747. "label": "岑巩县",
  23748. "value": "522626"
  23749. }, {
  23750. "label": "天柱县",
  23751. "value": "522627"
  23752. }, {
  23753. "label": "锦屏县",
  23754. "value": "522628"
  23755. }, {
  23756. "label": "剑河县",
  23757. "value": "522629"
  23758. }, {
  23759. "label": "台江县",
  23760. "value": "522630"
  23761. }, {
  23762. "label": "黎平县",
  23763. "value": "522631"
  23764. }, {
  23765. "label": "榕江县",
  23766. "value": "522632"
  23767. }, {
  23768. "label": "从江县",
  23769. "value": "522633"
  23770. }, {
  23771. "label": "雷山县",
  23772. "value": "522634"
  23773. }, {
  23774. "label": "麻江县",
  23775. "value": "522635"
  23776. }, {
  23777. "label": "丹寨县",
  23778. "value": "522636"
  23779. }], [{
  23780. "label": "都匀市",
  23781. "value": "522701"
  23782. }, {
  23783. "label": "福泉市",
  23784. "value": "522702"
  23785. }, {
  23786. "label": "荔波县",
  23787. "value": "522722"
  23788. }, {
  23789. "label": "贵定县",
  23790. "value": "522723"
  23791. }, {
  23792. "label": "瓮安县",
  23793. "value": "522725"
  23794. }, {
  23795. "label": "独山县",
  23796. "value": "522726"
  23797. }, {
  23798. "label": "平塘县",
  23799. "value": "522727"
  23800. }, {
  23801. "label": "罗甸县",
  23802. "value": "522728"
  23803. }, {
  23804. "label": "长顺县",
  23805. "value": "522729"
  23806. }, {
  23807. "label": "龙里县",
  23808. "value": "522730"
  23809. }, {
  23810. "label": "惠水县",
  23811. "value": "522731"
  23812. }, {
  23813. "label": "三都水族自治县",
  23814. "value": "522732"
  23815. }]], [[{
  23816. "label": "五华区",
  23817. "value": "530102"
  23818. }, {
  23819. "label": "盘龙区",
  23820. "value": "530103"
  23821. }, {
  23822. "label": "官渡区",
  23823. "value": "530111"
  23824. }, {
  23825. "label": "西山区",
  23826. "value": "530112"
  23827. }, {
  23828. "label": "东川区",
  23829. "value": "530113"
  23830. }, {
  23831. "label": "呈贡区",
  23832. "value": "530114"
  23833. }, {
  23834. "label": "晋宁区",
  23835. "value": "530115"
  23836. }, {
  23837. "label": "富民县",
  23838. "value": "530124"
  23839. }, {
  23840. "label": "宜良县",
  23841. "value": "530125"
  23842. }, {
  23843. "label": "石林彝族自治县",
  23844. "value": "530126"
  23845. }, {
  23846. "label": "嵩明县",
  23847. "value": "530127"
  23848. }, {
  23849. "label": "禄劝彝族苗族自治县",
  23850. "value": "530128"
  23851. }, {
  23852. "label": "寻甸回族彝族自治县",
  23853. "value": "530129"
  23854. }, {
  23855. "label": "安宁市",
  23856. "value": "530181"
  23857. }], [{
  23858. "label": "麒麟区",
  23859. "value": "530302"
  23860. }, {
  23861. "label": "沾益区",
  23862. "value": "530303"
  23863. }, {
  23864. "label": "马龙县",
  23865. "value": "530321"
  23866. }, {
  23867. "label": "陆良县",
  23868. "value": "530322"
  23869. }, {
  23870. "label": "师宗县",
  23871. "value": "530323"
  23872. }, {
  23873. "label": "罗平县",
  23874. "value": "530324"
  23875. }, {
  23876. "label": "富源县",
  23877. "value": "530325"
  23878. }, {
  23879. "label": "会泽县",
  23880. "value": "530326"
  23881. }, {
  23882. "label": "宣威市",
  23883. "value": "530381"
  23884. }], [{
  23885. "label": "红塔区",
  23886. "value": "530402"
  23887. }, {
  23888. "label": "江川区",
  23889. "value": "530403"
  23890. }, {
  23891. "label": "澄江县",
  23892. "value": "530422"
  23893. }, {
  23894. "label": "通海县",
  23895. "value": "530423"
  23896. }, {
  23897. "label": "华宁县",
  23898. "value": "530424"
  23899. }, {
  23900. "label": "易门县",
  23901. "value": "530425"
  23902. }, {
  23903. "label": "峨山彝族自治县",
  23904. "value": "530426"
  23905. }, {
  23906. "label": "新平彝族傣族自治县",
  23907. "value": "530427"
  23908. }, {
  23909. "label": "元江哈尼族彝族傣族自治县",
  23910. "value": "530428"
  23911. }], [{
  23912. "label": "隆阳区",
  23913. "value": "530502"
  23914. }, {
  23915. "label": "施甸县",
  23916. "value": "530521"
  23917. }, {
  23918. "label": "龙陵县",
  23919. "value": "530523"
  23920. }, {
  23921. "label": "昌宁县",
  23922. "value": "530524"
  23923. }, {
  23924. "label": "腾冲市",
  23925. "value": "530581"
  23926. }], [{
  23927. "label": "昭阳区",
  23928. "value": "530602"
  23929. }, {
  23930. "label": "鲁甸县",
  23931. "value": "530621"
  23932. }, {
  23933. "label": "巧家县",
  23934. "value": "530622"
  23935. }, {
  23936. "label": "盐津县",
  23937. "value": "530623"
  23938. }, {
  23939. "label": "大关县",
  23940. "value": "530624"
  23941. }, {
  23942. "label": "永善县",
  23943. "value": "530625"
  23944. }, {
  23945. "label": "绥江县",
  23946. "value": "530626"
  23947. }, {
  23948. "label": "镇雄县",
  23949. "value": "530627"
  23950. }, {
  23951. "label": "彝良县",
  23952. "value": "530628"
  23953. }, {
  23954. "label": "威信县",
  23955. "value": "530629"
  23956. }, {
  23957. "label": "水富县",
  23958. "value": "530630"
  23959. }], [{
  23960. "label": "古城区",
  23961. "value": "530702"
  23962. }, {
  23963. "label": "玉龙纳西族自治县",
  23964. "value": "530721"
  23965. }, {
  23966. "label": "永胜县",
  23967. "value": "530722"
  23968. }, {
  23969. "label": "华坪县",
  23970. "value": "530723"
  23971. }, {
  23972. "label": "宁蒗彝族自治县",
  23973. "value": "530724"
  23974. }], [{
  23975. "label": "思茅区",
  23976. "value": "530802"
  23977. }, {
  23978. "label": "宁洱哈尼族彝族自治县",
  23979. "value": "530821"
  23980. }, {
  23981. "label": "墨江哈尼族自治县",
  23982. "value": "530822"
  23983. }, {
  23984. "label": "景东彝族自治县",
  23985. "value": "530823"
  23986. }, {
  23987. "label": "景谷傣族彝族自治县",
  23988. "value": "530824"
  23989. }, {
  23990. "label": "镇沅彝族哈尼族拉祜族自治县",
  23991. "value": "530825"
  23992. }, {
  23993. "label": "江城哈尼族彝族自治县",
  23994. "value": "530826"
  23995. }, {
  23996. "label": "孟连傣族拉祜族佤族自治县",
  23997. "value": "530827"
  23998. }, {
  23999. "label": "澜沧拉祜族自治县",
  24000. "value": "530828"
  24001. }, {
  24002. "label": "西盟佤族自治县",
  24003. "value": "530829"
  24004. }], [{
  24005. "label": "临翔区",
  24006. "value": "530902"
  24007. }, {
  24008. "label": "凤庆县",
  24009. "value": "530921"
  24010. }, {
  24011. "label": "云县",
  24012. "value": "530922"
  24013. }, {
  24014. "label": "永德县",
  24015. "value": "530923"
  24016. }, {
  24017. "label": "镇康县",
  24018. "value": "530924"
  24019. }, {
  24020. "label": "双江拉祜族佤族布朗族傣族自治县",
  24021. "value": "530925"
  24022. }, {
  24023. "label": "耿马傣族佤族自治县",
  24024. "value": "530926"
  24025. }, {
  24026. "label": "沧源佤族自治县",
  24027. "value": "530927"
  24028. }], [{
  24029. "label": "楚雄市",
  24030. "value": "532301"
  24031. }, {
  24032. "label": "双柏县",
  24033. "value": "532322"
  24034. }, {
  24035. "label": "牟定县",
  24036. "value": "532323"
  24037. }, {
  24038. "label": "南华县",
  24039. "value": "532324"
  24040. }, {
  24041. "label": "姚安县",
  24042. "value": "532325"
  24043. }, {
  24044. "label": "大姚县",
  24045. "value": "532326"
  24046. }, {
  24047. "label": "永仁县",
  24048. "value": "532327"
  24049. }, {
  24050. "label": "元谋县",
  24051. "value": "532328"
  24052. }, {
  24053. "label": "武定县",
  24054. "value": "532329"
  24055. }, {
  24056. "label": "禄丰县",
  24057. "value": "532331"
  24058. }], [{
  24059. "label": "个旧市",
  24060. "value": "532501"
  24061. }, {
  24062. "label": "开远市",
  24063. "value": "532502"
  24064. }, {
  24065. "label": "蒙自市",
  24066. "value": "532503"
  24067. }, {
  24068. "label": "弥勒市",
  24069. "value": "532504"
  24070. }, {
  24071. "label": "屏边苗族自治县",
  24072. "value": "532523"
  24073. }, {
  24074. "label": "建水县",
  24075. "value": "532524"
  24076. }, {
  24077. "label": "石屏县",
  24078. "value": "532525"
  24079. }, {
  24080. "label": "泸西县",
  24081. "value": "532527"
  24082. }, {
  24083. "label": "元阳县",
  24084. "value": "532528"
  24085. }, {
  24086. "label": "红河县",
  24087. "value": "532529"
  24088. }, {
  24089. "label": "金平苗族瑶族傣族自治县",
  24090. "value": "532530"
  24091. }, {
  24092. "label": "绿春县",
  24093. "value": "532531"
  24094. }, {
  24095. "label": "河口瑶族自治县",
  24096. "value": "532532"
  24097. }], [{
  24098. "label": "文山市",
  24099. "value": "532601"
  24100. }, {
  24101. "label": "砚山县",
  24102. "value": "532622"
  24103. }, {
  24104. "label": "西畴县",
  24105. "value": "532623"
  24106. }, {
  24107. "label": "麻栗坡县",
  24108. "value": "532624"
  24109. }, {
  24110. "label": "马关县",
  24111. "value": "532625"
  24112. }, {
  24113. "label": "丘北县",
  24114. "value": "532626"
  24115. }, {
  24116. "label": "广南县",
  24117. "value": "532627"
  24118. }, {
  24119. "label": "富宁县",
  24120. "value": "532628"
  24121. }], [{
  24122. "label": "景洪市",
  24123. "value": "532801"
  24124. }, {
  24125. "label": "勐海县",
  24126. "value": "532822"
  24127. }, {
  24128. "label": "勐腊县",
  24129. "value": "532823"
  24130. }], [{
  24131. "label": "大理市",
  24132. "value": "532901"
  24133. }, {
  24134. "label": "漾濞彝族自治县",
  24135. "value": "532922"
  24136. }, {
  24137. "label": "祥云县",
  24138. "value": "532923"
  24139. }, {
  24140. "label": "宾川县",
  24141. "value": "532924"
  24142. }, {
  24143. "label": "弥渡县",
  24144. "value": "532925"
  24145. }, {
  24146. "label": "南涧彝族自治县",
  24147. "value": "532926"
  24148. }, {
  24149. "label": "巍山彝族回族自治县",
  24150. "value": "532927"
  24151. }, {
  24152. "label": "永平县",
  24153. "value": "532928"
  24154. }, {
  24155. "label": "云龙县",
  24156. "value": "532929"
  24157. }, {
  24158. "label": "洱源县",
  24159. "value": "532930"
  24160. }, {
  24161. "label": "剑川县",
  24162. "value": "532931"
  24163. }, {
  24164. "label": "鹤庆县",
  24165. "value": "532932"
  24166. }], [{
  24167. "label": "瑞丽市",
  24168. "value": "533102"
  24169. }, {
  24170. "label": "芒市",
  24171. "value": "533103"
  24172. }, {
  24173. "label": "梁河县",
  24174. "value": "533122"
  24175. }, {
  24176. "label": "盈江县",
  24177. "value": "533123"
  24178. }, {
  24179. "label": "陇川县",
  24180. "value": "533124"
  24181. }], [{
  24182. "label": "泸水市",
  24183. "value": "533301"
  24184. }, {
  24185. "label": "福贡县",
  24186. "value": "533323"
  24187. }, {
  24188. "label": "贡山独龙族怒族自治县",
  24189. "value": "533324"
  24190. }, {
  24191. "label": "兰坪白族普米族自治县",
  24192. "value": "533325"
  24193. }], [{
  24194. "label": "香格里拉市",
  24195. "value": "533401"
  24196. }, {
  24197. "label": "德钦县",
  24198. "value": "533422"
  24199. }, {
  24200. "label": "维西傈僳族自治县",
  24201. "value": "533423"
  24202. }]], [[{
  24203. "label": "城关区",
  24204. "value": "540102"
  24205. }, {
  24206. "label": "堆龙德庆区",
  24207. "value": "540103"
  24208. }, {
  24209. "label": "林周县",
  24210. "value": "540121"
  24211. }, {
  24212. "label": "当雄县",
  24213. "value": "540122"
  24214. }, {
  24215. "label": "尼木县",
  24216. "value": "540123"
  24217. }, {
  24218. "label": "曲水县",
  24219. "value": "540124"
  24220. }, {
  24221. "label": "达孜县",
  24222. "value": "540126"
  24223. }, {
  24224. "label": "墨竹工卡县",
  24225. "value": "540127"
  24226. }, {
  24227. "label": "格尔木藏青工业园区",
  24228. "value": "540171"
  24229. }, {
  24230. "label": "拉萨经济技术开发区",
  24231. "value": "540172"
  24232. }, {
  24233. "label": "西藏文化旅游创意园区",
  24234. "value": "540173"
  24235. }, {
  24236. "label": "达孜工业园区",
  24237. "value": "540174"
  24238. }], [{
  24239. "label": "桑珠孜区",
  24240. "value": "540202"
  24241. }, {
  24242. "label": "南木林县",
  24243. "value": "540221"
  24244. }, {
  24245. "label": "江孜县",
  24246. "value": "540222"
  24247. }, {
  24248. "label": "定日县",
  24249. "value": "540223"
  24250. }, {
  24251. "label": "萨迦县",
  24252. "value": "540224"
  24253. }, {
  24254. "label": "拉孜县",
  24255. "value": "540225"
  24256. }, {
  24257. "label": "昂仁县",
  24258. "value": "540226"
  24259. }, {
  24260. "label": "谢通门县",
  24261. "value": "540227"
  24262. }, {
  24263. "label": "白朗县",
  24264. "value": "540228"
  24265. }, {
  24266. "label": "仁布县",
  24267. "value": "540229"
  24268. }, {
  24269. "label": "康马县",
  24270. "value": "540230"
  24271. }, {
  24272. "label": "定结县",
  24273. "value": "540231"
  24274. }, {
  24275. "label": "仲巴县",
  24276. "value": "540232"
  24277. }, {
  24278. "label": "亚东县",
  24279. "value": "540233"
  24280. }, {
  24281. "label": "吉隆县",
  24282. "value": "540234"
  24283. }, {
  24284. "label": "聂拉木县",
  24285. "value": "540235"
  24286. }, {
  24287. "label": "萨嘎县",
  24288. "value": "540236"
  24289. }, {
  24290. "label": "岗巴县",
  24291. "value": "540237"
  24292. }], [{
  24293. "label": "卡若区",
  24294. "value": "540302"
  24295. }, {
  24296. "label": "江达县",
  24297. "value": "540321"
  24298. }, {
  24299. "label": "贡觉县",
  24300. "value": "540322"
  24301. }, {
  24302. "label": "类乌齐县",
  24303. "value": "540323"
  24304. }, {
  24305. "label": "丁青县",
  24306. "value": "540324"
  24307. }, {
  24308. "label": "察雅县",
  24309. "value": "540325"
  24310. }, {
  24311. "label": "八宿县",
  24312. "value": "540326"
  24313. }, {
  24314. "label": "左贡县",
  24315. "value": "540327"
  24316. }, {
  24317. "label": "芒康县",
  24318. "value": "540328"
  24319. }, {
  24320. "label": "洛隆县",
  24321. "value": "540329"
  24322. }, {
  24323. "label": "边坝县",
  24324. "value": "540330"
  24325. }], [{
  24326. "label": "巴宜区",
  24327. "value": "540402"
  24328. }, {
  24329. "label": "工布江达县",
  24330. "value": "540421"
  24331. }, {
  24332. "label": "米林县",
  24333. "value": "540422"
  24334. }, {
  24335. "label": "墨脱县",
  24336. "value": "540423"
  24337. }, {
  24338. "label": "波密县",
  24339. "value": "540424"
  24340. }, {
  24341. "label": "察隅县",
  24342. "value": "540425"
  24343. }, {
  24344. "label": "朗县",
  24345. "value": "540426"
  24346. }], [{
  24347. "label": "乃东区",
  24348. "value": "540502"
  24349. }, {
  24350. "label": "扎囊县",
  24351. "value": "540521"
  24352. }, {
  24353. "label": "贡嘎县",
  24354. "value": "540522"
  24355. }, {
  24356. "label": "桑日县",
  24357. "value": "540523"
  24358. }, {
  24359. "label": "琼结县",
  24360. "value": "540524"
  24361. }, {
  24362. "label": "曲松县",
  24363. "value": "540525"
  24364. }, {
  24365. "label": "措美县",
  24366. "value": "540526"
  24367. }, {
  24368. "label": "洛扎县",
  24369. "value": "540527"
  24370. }, {
  24371. "label": "加查县",
  24372. "value": "540528"
  24373. }, {
  24374. "label": "隆子县",
  24375. "value": "540529"
  24376. }, {
  24377. "label": "错那县",
  24378. "value": "540530"
  24379. }, {
  24380. "label": "浪卡子县",
  24381. "value": "540531"
  24382. }], [{
  24383. "label": "那曲县",
  24384. "value": "542421"
  24385. }, {
  24386. "label": "嘉黎县",
  24387. "value": "542422"
  24388. }, {
  24389. "label": "比如县",
  24390. "value": "542423"
  24391. }, {
  24392. "label": "聂荣县",
  24393. "value": "542424"
  24394. }, {
  24395. "label": "安多县",
  24396. "value": "542425"
  24397. }, {
  24398. "label": "申扎县",
  24399. "value": "542426"
  24400. }, {
  24401. "label": "索县",
  24402. "value": "542427"
  24403. }, {
  24404. "label": "班戈县",
  24405. "value": "542428"
  24406. }, {
  24407. "label": "巴青县",
  24408. "value": "542429"
  24409. }, {
  24410. "label": "尼玛县",
  24411. "value": "542430"
  24412. }, {
  24413. "label": "双湖县",
  24414. "value": "542431"
  24415. }], [{
  24416. "label": "普兰县",
  24417. "value": "542521"
  24418. }, {
  24419. "label": "札达县",
  24420. "value": "542522"
  24421. }, {
  24422. "label": "噶尔县",
  24423. "value": "542523"
  24424. }, {
  24425. "label": "日土县",
  24426. "value": "542524"
  24427. }, {
  24428. "label": "革吉县",
  24429. "value": "542525"
  24430. }, {
  24431. "label": "改则县",
  24432. "value": "542526"
  24433. }, {
  24434. "label": "措勤县",
  24435. "value": "542527"
  24436. }]], [[{
  24437. "label": "新城区",
  24438. "value": "610102"
  24439. }, {
  24440. "label": "碑林区",
  24441. "value": "610103"
  24442. }, {
  24443. "label": "莲湖区",
  24444. "value": "610104"
  24445. }, {
  24446. "label": "灞桥区",
  24447. "value": "610111"
  24448. }, {
  24449. "label": "未央区",
  24450. "value": "610112"
  24451. }, {
  24452. "label": "雁塔区",
  24453. "value": "610113"
  24454. }, {
  24455. "label": "阎良区",
  24456. "value": "610114"
  24457. }, {
  24458. "label": "临潼区",
  24459. "value": "610115"
  24460. }, {
  24461. "label": "长安区",
  24462. "value": "610116"
  24463. }, {
  24464. "label": "高陵区",
  24465. "value": "610117"
  24466. }, {
  24467. "label": "鄠邑区",
  24468. "value": "610118"
  24469. }, {
  24470. "label": "蓝田县",
  24471. "value": "610122"
  24472. }, {
  24473. "label": "周至县",
  24474. "value": "610124"
  24475. }], [{
  24476. "label": "王益区",
  24477. "value": "610202"
  24478. }, {
  24479. "label": "印台区",
  24480. "value": "610203"
  24481. }, {
  24482. "label": "耀州区",
  24483. "value": "610204"
  24484. }, {
  24485. "label": "宜君县",
  24486. "value": "610222"
  24487. }], [{
  24488. "label": "渭滨区",
  24489. "value": "610302"
  24490. }, {
  24491. "label": "金台区",
  24492. "value": "610303"
  24493. }, {
  24494. "label": "陈仓区",
  24495. "value": "610304"
  24496. }, {
  24497. "label": "凤翔县",
  24498. "value": "610322"
  24499. }, {
  24500. "label": "岐山县",
  24501. "value": "610323"
  24502. }, {
  24503. "label": "扶风县",
  24504. "value": "610324"
  24505. }, {
  24506. "label": "眉县",
  24507. "value": "610326"
  24508. }, {
  24509. "label": "陇县",
  24510. "value": "610327"
  24511. }, {
  24512. "label": "千阳县",
  24513. "value": "610328"
  24514. }, {
  24515. "label": "麟游县",
  24516. "value": "610329"
  24517. }, {
  24518. "label": "凤县",
  24519. "value": "610330"
  24520. }, {
  24521. "label": "太白县",
  24522. "value": "610331"
  24523. }], [{
  24524. "label": "秦都区",
  24525. "value": "610402"
  24526. }, {
  24527. "label": "杨陵区",
  24528. "value": "610403"
  24529. }, {
  24530. "label": "渭城区",
  24531. "value": "610404"
  24532. }, {
  24533. "label": "三原县",
  24534. "value": "610422"
  24535. }, {
  24536. "label": "泾阳县",
  24537. "value": "610423"
  24538. }, {
  24539. "label": "乾县",
  24540. "value": "610424"
  24541. }, {
  24542. "label": "礼泉县",
  24543. "value": "610425"
  24544. }, {
  24545. "label": "永寿县",
  24546. "value": "610426"
  24547. }, {
  24548. "label": "彬县",
  24549. "value": "610427"
  24550. }, {
  24551. "label": "长武县",
  24552. "value": "610428"
  24553. }, {
  24554. "label": "旬邑县",
  24555. "value": "610429"
  24556. }, {
  24557. "label": "淳化县",
  24558. "value": "610430"
  24559. }, {
  24560. "label": "武功县",
  24561. "value": "610431"
  24562. }, {
  24563. "label": "兴平市",
  24564. "value": "610481"
  24565. }], [{
  24566. "label": "临渭区",
  24567. "value": "610502"
  24568. }, {
  24569. "label": "华州区",
  24570. "value": "610503"
  24571. }, {
  24572. "label": "潼关县",
  24573. "value": "610522"
  24574. }, {
  24575. "label": "大荔县",
  24576. "value": "610523"
  24577. }, {
  24578. "label": "合阳县",
  24579. "value": "610524"
  24580. }, {
  24581. "label": "澄城县",
  24582. "value": "610525"
  24583. }, {
  24584. "label": "蒲城县",
  24585. "value": "610526"
  24586. }, {
  24587. "label": "白水县",
  24588. "value": "610527"
  24589. }, {
  24590. "label": "富平县",
  24591. "value": "610528"
  24592. }, {
  24593. "label": "韩城市",
  24594. "value": "610581"
  24595. }, {
  24596. "label": "华阴市",
  24597. "value": "610582"
  24598. }], [{
  24599. "label": "宝塔区",
  24600. "value": "610602"
  24601. }, {
  24602. "label": "安塞区",
  24603. "value": "610603"
  24604. }, {
  24605. "label": "延长县",
  24606. "value": "610621"
  24607. }, {
  24608. "label": "延川县",
  24609. "value": "610622"
  24610. }, {
  24611. "label": "子长县",
  24612. "value": "610623"
  24613. }, {
  24614. "label": "志丹县",
  24615. "value": "610625"
  24616. }, {
  24617. "label": "吴起县",
  24618. "value": "610626"
  24619. }, {
  24620. "label": "甘泉县",
  24621. "value": "610627"
  24622. }, {
  24623. "label": "富县",
  24624. "value": "610628"
  24625. }, {
  24626. "label": "洛川县",
  24627. "value": "610629"
  24628. }, {
  24629. "label": "宜川县",
  24630. "value": "610630"
  24631. }, {
  24632. "label": "黄龙县",
  24633. "value": "610631"
  24634. }, {
  24635. "label": "黄陵县",
  24636. "value": "610632"
  24637. }], [{
  24638. "label": "汉台区",
  24639. "value": "610702"
  24640. }, {
  24641. "label": "南郑区",
  24642. "value": "610703"
  24643. }, {
  24644. "label": "城固县",
  24645. "value": "610722"
  24646. }, {
  24647. "label": "洋县",
  24648. "value": "610723"
  24649. }, {
  24650. "label": "西乡县",
  24651. "value": "610724"
  24652. }, {
  24653. "label": "勉县",
  24654. "value": "610725"
  24655. }, {
  24656. "label": "宁强县",
  24657. "value": "610726"
  24658. }, {
  24659. "label": "略阳县",
  24660. "value": "610727"
  24661. }, {
  24662. "label": "镇巴县",
  24663. "value": "610728"
  24664. }, {
  24665. "label": "留坝县",
  24666. "value": "610729"
  24667. }, {
  24668. "label": "佛坪县",
  24669. "value": "610730"
  24670. }], [{
  24671. "label": "榆阳区",
  24672. "value": "610802"
  24673. }, {
  24674. "label": "横山区",
  24675. "value": "610803"
  24676. }, {
  24677. "label": "府谷县",
  24678. "value": "610822"
  24679. }, {
  24680. "label": "靖边县",
  24681. "value": "610824"
  24682. }, {
  24683. "label": "定边县",
  24684. "value": "610825"
  24685. }, {
  24686. "label": "绥德县",
  24687. "value": "610826"
  24688. }, {
  24689. "label": "米脂县",
  24690. "value": "610827"
  24691. }, {
  24692. "label": "佳县",
  24693. "value": "610828"
  24694. }, {
  24695. "label": "吴堡县",
  24696. "value": "610829"
  24697. }, {
  24698. "label": "清涧县",
  24699. "value": "610830"
  24700. }, {
  24701. "label": "子洲县",
  24702. "value": "610831"
  24703. }, {
  24704. "label": "神木市",
  24705. "value": "610881"
  24706. }], [{
  24707. "label": "汉滨区",
  24708. "value": "610902"
  24709. }, {
  24710. "label": "汉阴县",
  24711. "value": "610921"
  24712. }, {
  24713. "label": "石泉县",
  24714. "value": "610922"
  24715. }, {
  24716. "label": "宁陕县",
  24717. "value": "610923"
  24718. }, {
  24719. "label": "紫阳县",
  24720. "value": "610924"
  24721. }, {
  24722. "label": "岚皋县",
  24723. "value": "610925"
  24724. }, {
  24725. "label": "平利县",
  24726. "value": "610926"
  24727. }, {
  24728. "label": "镇坪县",
  24729. "value": "610927"
  24730. }, {
  24731. "label": "旬阳县",
  24732. "value": "610928"
  24733. }, {
  24734. "label": "白河县",
  24735. "value": "610929"
  24736. }], [{
  24737. "label": "商州区",
  24738. "value": "611002"
  24739. }, {
  24740. "label": "洛南县",
  24741. "value": "611021"
  24742. }, {
  24743. "label": "丹凤县",
  24744. "value": "611022"
  24745. }, {
  24746. "label": "商南县",
  24747. "value": "611023"
  24748. }, {
  24749. "label": "山阳县",
  24750. "value": "611024"
  24751. }, {
  24752. "label": "镇安县",
  24753. "value": "611025"
  24754. }, {
  24755. "label": "柞水县",
  24756. "value": "611026"
  24757. }]], [[{
  24758. "label": "城关区",
  24759. "value": "620102"
  24760. }, {
  24761. "label": "七里河区",
  24762. "value": "620103"
  24763. }, {
  24764. "label": "西固区",
  24765. "value": "620104"
  24766. }, {
  24767. "label": "安宁区",
  24768. "value": "620105"
  24769. }, {
  24770. "label": "红古区",
  24771. "value": "620111"
  24772. }, {
  24773. "label": "永登县",
  24774. "value": "620121"
  24775. }, {
  24776. "label": "皋兰县",
  24777. "value": "620122"
  24778. }, {
  24779. "label": "榆中县",
  24780. "value": "620123"
  24781. }, {
  24782. "label": "兰州新区",
  24783. "value": "620171"
  24784. }], [{
  24785. "label": "嘉峪关市",
  24786. "value": "620201"
  24787. }], [{
  24788. "label": "金川区",
  24789. "value": "620302"
  24790. }, {
  24791. "label": "永昌县",
  24792. "value": "620321"
  24793. }], [{
  24794. "label": "白银区",
  24795. "value": "620402"
  24796. }, {
  24797. "label": "平川区",
  24798. "value": "620403"
  24799. }, {
  24800. "label": "靖远县",
  24801. "value": "620421"
  24802. }, {
  24803. "label": "会宁县",
  24804. "value": "620422"
  24805. }, {
  24806. "label": "景泰县",
  24807. "value": "620423"
  24808. }], [{
  24809. "label": "秦州区",
  24810. "value": "620502"
  24811. }, {
  24812. "label": "麦积区",
  24813. "value": "620503"
  24814. }, {
  24815. "label": "清水县",
  24816. "value": "620521"
  24817. }, {
  24818. "label": "秦安县",
  24819. "value": "620522"
  24820. }, {
  24821. "label": "甘谷县",
  24822. "value": "620523"
  24823. }, {
  24824. "label": "武山县",
  24825. "value": "620524"
  24826. }, {
  24827. "label": "张家川回族自治县",
  24828. "value": "620525"
  24829. }], [{
  24830. "label": "凉州区",
  24831. "value": "620602"
  24832. }, {
  24833. "label": "民勤县",
  24834. "value": "620621"
  24835. }, {
  24836. "label": "古浪县",
  24837. "value": "620622"
  24838. }, {
  24839. "label": "天祝藏族自治县",
  24840. "value": "620623"
  24841. }], [{
  24842. "label": "甘州区",
  24843. "value": "620702"
  24844. }, {
  24845. "label": "肃南裕固族自治县",
  24846. "value": "620721"
  24847. }, {
  24848. "label": "民乐县",
  24849. "value": "620722"
  24850. }, {
  24851. "label": "临泽县",
  24852. "value": "620723"
  24853. }, {
  24854. "label": "高台县",
  24855. "value": "620724"
  24856. }, {
  24857. "label": "山丹县",
  24858. "value": "620725"
  24859. }], [{
  24860. "label": "崆峒区",
  24861. "value": "620802"
  24862. }, {
  24863. "label": "泾川县",
  24864. "value": "620821"
  24865. }, {
  24866. "label": "灵台县",
  24867. "value": "620822"
  24868. }, {
  24869. "label": "崇信县",
  24870. "value": "620823"
  24871. }, {
  24872. "label": "华亭县",
  24873. "value": "620824"
  24874. }, {
  24875. "label": "庄浪县",
  24876. "value": "620825"
  24877. }, {
  24878. "label": "静宁县",
  24879. "value": "620826"
  24880. }, {
  24881. "label": "平凉工业园区",
  24882. "value": "620871"
  24883. }], [{
  24884. "label": "肃州区",
  24885. "value": "620902"
  24886. }, {
  24887. "label": "金塔县",
  24888. "value": "620921"
  24889. }, {
  24890. "label": "瓜州县",
  24891. "value": "620922"
  24892. }, {
  24893. "label": "肃北蒙古族自治县",
  24894. "value": "620923"
  24895. }, {
  24896. "label": "阿克塞哈萨克族自治县",
  24897. "value": "620924"
  24898. }, {
  24899. "label": "玉门市",
  24900. "value": "620981"
  24901. }, {
  24902. "label": "敦煌市",
  24903. "value": "620982"
  24904. }], [{
  24905. "label": "西峰区",
  24906. "value": "621002"
  24907. }, {
  24908. "label": "庆城县",
  24909. "value": "621021"
  24910. }, {
  24911. "label": "环县",
  24912. "value": "621022"
  24913. }, {
  24914. "label": "华池县",
  24915. "value": "621023"
  24916. }, {
  24917. "label": "合水县",
  24918. "value": "621024"
  24919. }, {
  24920. "label": "正宁县",
  24921. "value": "621025"
  24922. }, {
  24923. "label": "宁县",
  24924. "value": "621026"
  24925. }, {
  24926. "label": "镇原县",
  24927. "value": "621027"
  24928. }], [{
  24929. "label": "安定区",
  24930. "value": "621102"
  24931. }, {
  24932. "label": "通渭县",
  24933. "value": "621121"
  24934. }, {
  24935. "label": "陇西县",
  24936. "value": "621122"
  24937. }, {
  24938. "label": "渭源县",
  24939. "value": "621123"
  24940. }, {
  24941. "label": "临洮县",
  24942. "value": "621124"
  24943. }, {
  24944. "label": "漳县",
  24945. "value": "621125"
  24946. }, {
  24947. "label": "岷县",
  24948. "value": "621126"
  24949. }], [{
  24950. "label": "武都区",
  24951. "value": "621202"
  24952. }, {
  24953. "label": "成县",
  24954. "value": "621221"
  24955. }, {
  24956. "label": "文县",
  24957. "value": "621222"
  24958. }, {
  24959. "label": "宕昌县",
  24960. "value": "621223"
  24961. }, {
  24962. "label": "康县",
  24963. "value": "621224"
  24964. }, {
  24965. "label": "西和县",
  24966. "value": "621225"
  24967. }, {
  24968. "label": "礼县",
  24969. "value": "621226"
  24970. }, {
  24971. "label": "徽县",
  24972. "value": "621227"
  24973. }, {
  24974. "label": "两当县",
  24975. "value": "621228"
  24976. }], [{
  24977. "label": "临夏市",
  24978. "value": "622901"
  24979. }, {
  24980. "label": "临夏县",
  24981. "value": "622921"
  24982. }, {
  24983. "label": "康乐县",
  24984. "value": "622922"
  24985. }, {
  24986. "label": "永靖县",
  24987. "value": "622923"
  24988. }, {
  24989. "label": "广河县",
  24990. "value": "622924"
  24991. }, {
  24992. "label": "和政县",
  24993. "value": "622925"
  24994. }, {
  24995. "label": "东乡族自治县",
  24996. "value": "622926"
  24997. }, {
  24998. "label": "积石山保安族东乡族撒拉族自治县",
  24999. "value": "622927"
  25000. }], [{
  25001. "label": "合作市",
  25002. "value": "623001"
  25003. }, {
  25004. "label": "临潭县",
  25005. "value": "623021"
  25006. }, {
  25007. "label": "卓尼县",
  25008. "value": "623022"
  25009. }, {
  25010. "label": "舟曲县",
  25011. "value": "623023"
  25012. }, {
  25013. "label": "迭部县",
  25014. "value": "623024"
  25015. }, {
  25016. "label": "玛曲县",
  25017. "value": "623025"
  25018. }, {
  25019. "label": "碌曲县",
  25020. "value": "623026"
  25021. }, {
  25022. "label": "夏河县",
  25023. "value": "623027"
  25024. }]], [[{
  25025. "label": "城东区",
  25026. "value": "630102"
  25027. }, {
  25028. "label": "城中区",
  25029. "value": "630103"
  25030. }, {
  25031. "label": "城西区",
  25032. "value": "630104"
  25033. }, {
  25034. "label": "城北区",
  25035. "value": "630105"
  25036. }, {
  25037. "label": "大通回族土族自治县",
  25038. "value": "630121"
  25039. }, {
  25040. "label": "湟中县",
  25041. "value": "630122"
  25042. }, {
  25043. "label": "湟源县",
  25044. "value": "630123"
  25045. }], [{
  25046. "label": "乐都区",
  25047. "value": "630202"
  25048. }, {
  25049. "label": "平安区",
  25050. "value": "630203"
  25051. }, {
  25052. "label": "民和回族土族自治县",
  25053. "value": "630222"
  25054. }, {
  25055. "label": "互助土族自治县",
  25056. "value": "630223"
  25057. }, {
  25058. "label": "化隆回族自治县",
  25059. "value": "630224"
  25060. }, {
  25061. "label": "循化撒拉族自治县",
  25062. "value": "630225"
  25063. }], [{
  25064. "label": "门源回族自治县",
  25065. "value": "632221"
  25066. }, {
  25067. "label": "祁连县",
  25068. "value": "632222"
  25069. }, {
  25070. "label": "海晏县",
  25071. "value": "632223"
  25072. }, {
  25073. "label": "刚察县",
  25074. "value": "632224"
  25075. }], [{
  25076. "label": "同仁县",
  25077. "value": "632321"
  25078. }, {
  25079. "label": "尖扎县",
  25080. "value": "632322"
  25081. }, {
  25082. "label": "泽库县",
  25083. "value": "632323"
  25084. }, {
  25085. "label": "河南蒙古族自治县",
  25086. "value": "632324"
  25087. }], [{
  25088. "label": "共和县",
  25089. "value": "632521"
  25090. }, {
  25091. "label": "同德县",
  25092. "value": "632522"
  25093. }, {
  25094. "label": "贵德县",
  25095. "value": "632523"
  25096. }, {
  25097. "label": "兴海县",
  25098. "value": "632524"
  25099. }, {
  25100. "label": "贵南县",
  25101. "value": "632525"
  25102. }], [{
  25103. "label": "玛沁县",
  25104. "value": "632621"
  25105. }, {
  25106. "label": "班玛县",
  25107. "value": "632622"
  25108. }, {
  25109. "label": "甘德县",
  25110. "value": "632623"
  25111. }, {
  25112. "label": "达日县",
  25113. "value": "632624"
  25114. }, {
  25115. "label": "久治县",
  25116. "value": "632625"
  25117. }, {
  25118. "label": "玛多县",
  25119. "value": "632626"
  25120. }], [{
  25121. "label": "玉树市",
  25122. "value": "632701"
  25123. }, {
  25124. "label": "杂多县",
  25125. "value": "632722"
  25126. }, {
  25127. "label": "称多县",
  25128. "value": "632723"
  25129. }, {
  25130. "label": "治多县",
  25131. "value": "632724"
  25132. }, {
  25133. "label": "囊谦县",
  25134. "value": "632725"
  25135. }, {
  25136. "label": "曲麻莱县",
  25137. "value": "632726"
  25138. }], [{
  25139. "label": "格尔木市",
  25140. "value": "632801"
  25141. }, {
  25142. "label": "德令哈市",
  25143. "value": "632802"
  25144. }, {
  25145. "label": "乌兰县",
  25146. "value": "632821"
  25147. }, {
  25148. "label": "都兰县",
  25149. "value": "632822"
  25150. }, {
  25151. "label": "天峻县",
  25152. "value": "632823"
  25153. }, {
  25154. "label": "大柴旦行政委员会",
  25155. "value": "632857"
  25156. }, {
  25157. "label": "冷湖行政委员会",
  25158. "value": "632858"
  25159. }, {
  25160. "label": "茫崖行政委员会",
  25161. "value": "632859"
  25162. }]], [[{
  25163. "label": "兴庆区",
  25164. "value": "640104"
  25165. }, {
  25166. "label": "西夏区",
  25167. "value": "640105"
  25168. }, {
  25169. "label": "金凤区",
  25170. "value": "640106"
  25171. }, {
  25172. "label": "永宁县",
  25173. "value": "640121"
  25174. }, {
  25175. "label": "贺兰县",
  25176. "value": "640122"
  25177. }, {
  25178. "label": "灵武市",
  25179. "value": "640181"
  25180. }], [{
  25181. "label": "大武口区",
  25182. "value": "640202"
  25183. }, {
  25184. "label": "惠农区",
  25185. "value": "640205"
  25186. }, {
  25187. "label": "平罗县",
  25188. "value": "640221"
  25189. }], [{
  25190. "label": "利通区",
  25191. "value": "640302"
  25192. }, {
  25193. "label": "红寺堡区",
  25194. "value": "640303"
  25195. }, {
  25196. "label": "盐池县",
  25197. "value": "640323"
  25198. }, {
  25199. "label": "同心县",
  25200. "value": "640324"
  25201. }, {
  25202. "label": "青铜峡市",
  25203. "value": "640381"
  25204. }], [{
  25205. "label": "原州区",
  25206. "value": "640402"
  25207. }, {
  25208. "label": "西吉县",
  25209. "value": "640422"
  25210. }, {
  25211. "label": "隆德县",
  25212. "value": "640423"
  25213. }, {
  25214. "label": "泾源县",
  25215. "value": "640424"
  25216. }, {
  25217. "label": "彭阳县",
  25218. "value": "640425"
  25219. }], [{
  25220. "label": "沙坡头区",
  25221. "value": "640502"
  25222. }, {
  25223. "label": "中宁县",
  25224. "value": "640521"
  25225. }, {
  25226. "label": "海原县",
  25227. "value": "640522"
  25228. }]], [[{
  25229. "label": "天山区",
  25230. "value": "650102"
  25231. }, {
  25232. "label": "沙依巴克区",
  25233. "value": "650103"
  25234. }, {
  25235. "label": "新市区",
  25236. "value": "650104"
  25237. }, {
  25238. "label": "水磨沟区",
  25239. "value": "650105"
  25240. }, {
  25241. "label": "头屯河区",
  25242. "value": "650106"
  25243. }, {
  25244. "label": "达坂城区",
  25245. "value": "650107"
  25246. }, {
  25247. "label": "米东区",
  25248. "value": "650109"
  25249. }, {
  25250. "label": "乌鲁木齐县",
  25251. "value": "650121"
  25252. }, {
  25253. "label": "乌鲁木齐经济技术开发区",
  25254. "value": "650171"
  25255. }, {
  25256. "label": "乌鲁木齐高新技术产业开发区",
  25257. "value": "650172"
  25258. }], [{
  25259. "label": "独山子区",
  25260. "value": "650202"
  25261. }, {
  25262. "label": "克拉玛依区",
  25263. "value": "650203"
  25264. }, {
  25265. "label": "白碱滩区",
  25266. "value": "650204"
  25267. }, {
  25268. "label": "乌尔禾区",
  25269. "value": "650205"
  25270. }], [{
  25271. "label": "高昌区",
  25272. "value": "650402"
  25273. }, {
  25274. "label": "鄯善县",
  25275. "value": "650421"
  25276. }, {
  25277. "label": "托克逊县",
  25278. "value": "650422"
  25279. }], [{
  25280. "label": "伊州区",
  25281. "value": "650502"
  25282. }, {
  25283. "label": "巴里坤哈萨克自治县",
  25284. "value": "650521"
  25285. }, {
  25286. "label": "伊吾县",
  25287. "value": "650522"
  25288. }], [{
  25289. "label": "昌吉市",
  25290. "value": "652301"
  25291. }, {
  25292. "label": "阜康市",
  25293. "value": "652302"
  25294. }, {
  25295. "label": "呼图壁县",
  25296. "value": "652323"
  25297. }, {
  25298. "label": "玛纳斯县",
  25299. "value": "652324"
  25300. }, {
  25301. "label": "奇台县",
  25302. "value": "652325"
  25303. }, {
  25304. "label": "吉木萨尔县",
  25305. "value": "652327"
  25306. }, {
  25307. "label": "木垒哈萨克自治县",
  25308. "value": "652328"
  25309. }], [{
  25310. "label": "博乐市",
  25311. "value": "652701"
  25312. }, {
  25313. "label": "阿拉山口市",
  25314. "value": "652702"
  25315. }, {
  25316. "label": "精河县",
  25317. "value": "652722"
  25318. }, {
  25319. "label": "温泉县",
  25320. "value": "652723"
  25321. }], [{
  25322. "label": "库尔勒市",
  25323. "value": "652801"
  25324. }, {
  25325. "label": "轮台县",
  25326. "value": "652822"
  25327. }, {
  25328. "label": "尉犁县",
  25329. "value": "652823"
  25330. }, {
  25331. "label": "若羌县",
  25332. "value": "652824"
  25333. }, {
  25334. "label": "且末县",
  25335. "value": "652825"
  25336. }, {
  25337. "label": "焉耆回族自治县",
  25338. "value": "652826"
  25339. }, {
  25340. "label": "和静县",
  25341. "value": "652827"
  25342. }, {
  25343. "label": "和硕县",
  25344. "value": "652828"
  25345. }, {
  25346. "label": "博湖县",
  25347. "value": "652829"
  25348. }, {
  25349. "label": "库尔勒经济技术开发区",
  25350. "value": "652871"
  25351. }], [{
  25352. "label": "阿克苏市",
  25353. "value": "652901"
  25354. }, {
  25355. "label": "温宿县",
  25356. "value": "652922"
  25357. }, {
  25358. "label": "库车县",
  25359. "value": "652923"
  25360. }, {
  25361. "label": "沙雅县",
  25362. "value": "652924"
  25363. }, {
  25364. "label": "新和县",
  25365. "value": "652925"
  25366. }, {
  25367. "label": "拜城县",
  25368. "value": "652926"
  25369. }, {
  25370. "label": "乌什县",
  25371. "value": "652927"
  25372. }, {
  25373. "label": "阿瓦提县",
  25374. "value": "652928"
  25375. }, {
  25376. "label": "柯坪县",
  25377. "value": "652929"
  25378. }], [{
  25379. "label": "阿图什市",
  25380. "value": "653001"
  25381. }, {
  25382. "label": "阿克陶县",
  25383. "value": "653022"
  25384. }, {
  25385. "label": "阿合奇县",
  25386. "value": "653023"
  25387. }, {
  25388. "label": "乌恰县",
  25389. "value": "653024"
  25390. }], [{
  25391. "label": "喀什市",
  25392. "value": "653101"
  25393. }, {
  25394. "label": "疏附县",
  25395. "value": "653121"
  25396. }, {
  25397. "label": "疏勒县",
  25398. "value": "653122"
  25399. }, {
  25400. "label": "英吉沙县",
  25401. "value": "653123"
  25402. }, {
  25403. "label": "泽普县",
  25404. "value": "653124"
  25405. }, {
  25406. "label": "莎车县",
  25407. "value": "653125"
  25408. }, {
  25409. "label": "叶城县",
  25410. "value": "653126"
  25411. }, {
  25412. "label": "麦盖提县",
  25413. "value": "653127"
  25414. }, {
  25415. "label": "岳普湖县",
  25416. "value": "653128"
  25417. }, {
  25418. "label": "伽师县",
  25419. "value": "653129"
  25420. }, {
  25421. "label": "巴楚县",
  25422. "value": "653130"
  25423. }, {
  25424. "label": "塔什库尔干塔吉克自治县",
  25425. "value": "653131"
  25426. }], [{
  25427. "label": "和田市",
  25428. "value": "653201"
  25429. }, {
  25430. "label": "和田县",
  25431. "value": "653221"
  25432. }, {
  25433. "label": "墨玉县",
  25434. "value": "653222"
  25435. }, {
  25436. "label": "皮山县",
  25437. "value": "653223"
  25438. }, {
  25439. "label": "洛浦县",
  25440. "value": "653224"
  25441. }, {
  25442. "label": "策勒县",
  25443. "value": "653225"
  25444. }, {
  25445. "label": "于田县",
  25446. "value": "653226"
  25447. }, {
  25448. "label": "民丰县",
  25449. "value": "653227"
  25450. }], [{
  25451. "label": "伊宁市",
  25452. "value": "654002"
  25453. }, {
  25454. "label": "奎屯市",
  25455. "value": "654003"
  25456. }, {
  25457. "label": "霍尔果斯市",
  25458. "value": "654004"
  25459. }, {
  25460. "label": "伊宁县",
  25461. "value": "654021"
  25462. }, {
  25463. "label": "察布查尔锡伯自治县",
  25464. "value": "654022"
  25465. }, {
  25466. "label": "霍城县",
  25467. "value": "654023"
  25468. }, {
  25469. "label": "巩留县",
  25470. "value": "654024"
  25471. }, {
  25472. "label": "新源县",
  25473. "value": "654025"
  25474. }, {
  25475. "label": "昭苏县",
  25476. "value": "654026"
  25477. }, {
  25478. "label": "特克斯县",
  25479. "value": "654027"
  25480. }, {
  25481. "label": "尼勒克县",
  25482. "value": "654028"
  25483. }], [{
  25484. "label": "塔城市",
  25485. "value": "654201"
  25486. }, {
  25487. "label": "乌苏市",
  25488. "value": "654202"
  25489. }, {
  25490. "label": "额敏县",
  25491. "value": "654221"
  25492. }, {
  25493. "label": "沙湾县",
  25494. "value": "654223"
  25495. }, {
  25496. "label": "托里县",
  25497. "value": "654224"
  25498. }, {
  25499. "label": "裕民县",
  25500. "value": "654225"
  25501. }, {
  25502. "label": "和布克赛尔蒙古自治县",
  25503. "value": "654226"
  25504. }], [{
  25505. "label": "阿勒泰市",
  25506. "value": "654301"
  25507. }, {
  25508. "label": "布尔津县",
  25509. "value": "654321"
  25510. }, {
  25511. "label": "富蕴县",
  25512. "value": "654322"
  25513. }, {
  25514. "label": "福海县",
  25515. "value": "654323"
  25516. }, {
  25517. "label": "哈巴河县",
  25518. "value": "654324"
  25519. }, {
  25520. "label": "青河县",
  25521. "value": "654325"
  25522. }, {
  25523. "label": "吉木乃县",
  25524. "value": "654326"
  25525. }], [{
  25526. "label": "石河子市",
  25527. "value": "659001"
  25528. }, {
  25529. "label": "阿拉尔市",
  25530. "value": "659002"
  25531. }, {
  25532. "label": "图木舒克市",
  25533. "value": "659003"
  25534. }, {
  25535. "label": "五家渠市",
  25536. "value": "659004"
  25537. }, {
  25538. "label": "铁门关市",
  25539. "value": "659006"
  25540. }]], [[{
  25541. "label": "台北",
  25542. "value": "660101"
  25543. }], [{
  25544. "label": "高雄",
  25545. "value": "660201"
  25546. }], [{
  25547. "label": "基隆",
  25548. "value": "660301"
  25549. }], [{
  25550. "label": "台中",
  25551. "value": "660401"
  25552. }], [{
  25553. "label": "台南",
  25554. "value": "660501"
  25555. }], [{
  25556. "label": "新竹",
  25557. "value": "660601"
  25558. }], [{
  25559. "label": "嘉义",
  25560. "value": "660701"
  25561. }], [{
  25562. "label": "宜兰",
  25563. "value": "660801"
  25564. }], [{
  25565. "label": "桃园",
  25566. "value": "660901"
  25567. }], [{
  25568. "label": "苗栗",
  25569. "value": "661001"
  25570. }], [{
  25571. "label": "彰化",
  25572. "value": "661101"
  25573. }], [{
  25574. "label": "南投",
  25575. "value": "661201"
  25576. }], [{
  25577. "label": "云林",
  25578. "value": "661301"
  25579. }], [{
  25580. "label": "屏东",
  25581. "value": "661401"
  25582. }], [{
  25583. "label": "台东",
  25584. "value": "661501"
  25585. }], [{
  25586. "label": "花莲",
  25587. "value": "661601"
  25588. }], [{
  25589. "label": "澎湖",
  25590. "value": "661701"
  25591. }]], [[{
  25592. "label": "香港岛",
  25593. "value": "670101"
  25594. }], [{
  25595. "label": "九龙",
  25596. "value": "670201"
  25597. }], [{
  25598. "label": "新界",
  25599. "value": "670301"
  25600. }]], [[{
  25601. "label": "澳门半岛",
  25602. "value": "680101"
  25603. }], [{
  25604. "label": "氹仔岛",
  25605. "value": "680201"
  25606. }], [{
  25607. "label": "路环岛",
  25608. "value": "680301"
  25609. }], [{
  25610. "label": "路氹城",
  25611. "value": "680401"
  25612. }]]];
  25613. var _default = areaData;
  25614. exports.default = _default;
  25615. /***/ }),
  25616. /***/ 92:
  25617. /*!************************************!*\
  25618. !*** E:/书嗨项目/book-hi/utils/pub.js ***!
  25619. \************************************/
  25620. /*! no static exports found */
  25621. /***/ (function(module, exports, __webpack_require__) {
  25622. "use strict";
  25623. /* WEBPACK VAR INJECTION */(function(uni) {
  25624. Object.defineProperty(exports, "__esModule", {
  25625. value: true
  25626. });
  25627. exports.goType = void 0;
  25628. // 程序 内部数据解析过滤
  25629. // 按钮组,banner等,根据type进行逻辑处理,判断跳转方向
  25630. // 待完善补充
  25631. var goType = function goType(e) {
  25632. console.log(e);
  25633. //跳转类型:1=无跳转,2=跳转商品详情,3=三方小程序,4=内部小程序页面,5=分类,6=书名关键词搜索
  25634. /* 1=无跳转 target content无内容
  25635. 2=跳转商品详情 target content = 商品id
  25636. 3=三方小程序, target content = 手动输入
  25637. 4=指定路由跳转, target content = 手动输入
  25638. 5=分类 target content = 分类id
  25639. 6=关键词搜索 target content无内容 */
  25640. // .target_type,this.bannerSwiperList[e].target_content
  25641. switch (Number(e.target_type)) {
  25642. case 1:
  25643. break;
  25644. case 2:
  25645. // 跳转商品详情
  25646. uni.navigateTo({
  25647. url: '/pages-mall/pages/goods/detail?goodsId=' + e.target_content
  25648. });
  25649. break;
  25650. case 3:
  25651. return;
  25652. uni.navigateToMiniProgram({
  25653. appId: opar,
  25654. // path: 'pages/index/index?id=123',
  25655. // extraData: {
  25656. // 'data1': 'test'
  25657. // },
  25658. success: function success(res) {
  25659. // 打开成功
  25660. }
  25661. });
  25662. break;
  25663. case 4:
  25664. console.log(e.target_content);
  25665. uni.navigateTo({
  25666. url: e.target_content
  25667. });
  25668. break;
  25669. case 5:
  25670. var json = {
  25671. id: e.target_content,
  25672. name: e.target_name
  25673. };
  25674. uni.navigateTo({
  25675. url: '/pages/search-result?cateInfo=' + encodeURIComponent(JSON.stringify(json))
  25676. });
  25677. break;
  25678. case 6:
  25679. uni.navigateTo({
  25680. url: '/pages/search-result?key=' + e.button_name
  25681. });
  25682. break;
  25683. default:
  25684. break;
  25685. }
  25686. };
  25687. exports.goType = goType;
  25688. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25689. /***/ })
  25690. }]);
  25691. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map