vendor.js 776 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],{
  2. /***/ 1:
  3. /*!************************************************************!*\
  4. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  5. \************************************************************/
  6. /*! no static exports found */
  7. /***/ (function(module, exports, __webpack_require__) {
  8. "use strict";
  9. /* WEBPACK VAR INJECTION */(function(global) {Object.defineProperty(exports, "__esModule", { value: true });exports.createApp = createApp;exports.createComponent = createComponent;exports.createPage = createPage;exports.createPlugin = createPlugin;exports.createSubpackageApp = createSubpackageApp;exports.default = void 0;var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 3);
  10. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 4));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _slicedToArray(arr, i) {return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(arr, i) {if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;var _arr = [];var _n = true;var _d = false;var _e = undefined;try {for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {_arr.push(_s.value);if (i && _arr.length === i) break;}} catch (err) {_d = true;_e = err;} finally {try {if (!_n && _i["return"] != null) _i["return"]();} finally {if (_d) throw _e;}}return _arr;}function _arrayWithHoles(arr) {if (Array.isArray(arr)) return arr;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function _toConsumableArray(arr) {return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();}function _nonIterableSpread() {throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o, minLen) {if (!o) return;if (typeof o === "string") return _arrayLikeToArray(o, minLen);var n = Object.prototype.toString.call(o).slice(8, -1);if (n === "Object" && o.constructor) n = o.constructor.name;if (n === "Map" || n === "Set") return Array.from(o);if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);}function _iterableToArray(iter) {if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);}function _arrayWithoutHoles(arr) {if (Array.isArray(arr)) return _arrayLikeToArray(arr);}function _arrayLikeToArray(arr, len) {if (len == null || len > arr.length) len = arr.length;for (var i = 0, arr2 = new Array(len); i < len; i++) {arr2[i] = arr[i];}return arr2;}
  11. var realAtob;
  12. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  13. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  14. if (typeof atob !== 'function') {
  15. realAtob = function realAtob(str) {
  16. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  17. if (!b64re.test(str)) {throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");}
  18. // Adding the padding if missing, for semplicity
  19. str += '=='.slice(2 - (str.length & 3));
  20. var bitmap;var result = '';var r1;var r2;var i = 0;
  21. for (; i < str.length;) {
  22. bitmap = b64.indexOf(str.charAt(i++)) << 18 | b64.indexOf(str.charAt(i++)) << 12 |
  23. (r1 = b64.indexOf(str.charAt(i++))) << 6 | (r2 = b64.indexOf(str.charAt(i++)));
  24. result += r1 === 64 ? String.fromCharCode(bitmap >> 16 & 255) :
  25. r2 === 64 ? String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255) :
  26. String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255, bitmap & 255);
  27. }
  28. return result;
  29. };
  30. } else {
  31. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  32. realAtob = atob;
  33. }
  34. function b64DecodeUnicode(str) {
  35. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  36. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  37. }).join(''));
  38. }
  39. function getCurrentUserInfo() {
  40. var token = wx.getStorageSync('uni_id_token') || '';
  41. var tokenArr = token.split('.');
  42. if (!token || tokenArr.length !== 3) {
  43. return {
  44. uid: null,
  45. role: [],
  46. permission: [],
  47. tokenExpired: 0 };
  48. }
  49. var userInfo;
  50. try {
  51. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  52. } catch (error) {
  53. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  54. }
  55. userInfo.tokenExpired = userInfo.exp * 1000;
  56. delete userInfo.exp;
  57. delete userInfo.iat;
  58. return userInfo;
  59. }
  60. function uniIdMixin(Vue) {
  61. Vue.prototype.uniIDHasRole = function (roleId) {var _getCurrentUserInfo =
  62. getCurrentUserInfo(),role = _getCurrentUserInfo.role;
  63. return role.indexOf(roleId) > -1;
  64. };
  65. Vue.prototype.uniIDHasPermission = function (permissionId) {var _getCurrentUserInfo2 =
  66. getCurrentUserInfo(),permission = _getCurrentUserInfo2.permission;
  67. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  68. };
  69. Vue.prototype.uniIDTokenValid = function () {var _getCurrentUserInfo3 =
  70. getCurrentUserInfo(),tokenExpired = _getCurrentUserInfo3.tokenExpired;
  71. return tokenExpired > Date.now();
  72. };
  73. }
  74. var _toString = Object.prototype.toString;
  75. var hasOwnProperty = Object.prototype.hasOwnProperty;
  76. function isFn(fn) {
  77. return typeof fn === 'function';
  78. }
  79. function isStr(str) {
  80. return typeof str === 'string';
  81. }
  82. function isPlainObject(obj) {
  83. return _toString.call(obj) === '[object Object]';
  84. }
  85. function hasOwn(obj, key) {
  86. return hasOwnProperty.call(obj, key);
  87. }
  88. function noop() {}
  89. /**
  90. * Create a cached version of a pure function.
  91. */
  92. function cached(fn) {
  93. var cache = Object.create(null);
  94. return function cachedFn(str) {
  95. var hit = cache[str];
  96. return hit || (cache[str] = fn(str));
  97. };
  98. }
  99. /**
  100. * Camelize a hyphen-delimited string.
  101. */
  102. var camelizeRE = /-(\w)/g;
  103. var camelize = cached(function (str) {
  104. return str.replace(camelizeRE, function (_, c) {return c ? c.toUpperCase() : '';});
  105. });
  106. function sortObject(obj) {
  107. var sortObj = {};
  108. if (isPlainObject(obj)) {
  109. Object.keys(obj).sort().forEach(function (key) {
  110. sortObj[key] = obj[key];
  111. });
  112. }
  113. return !Object.keys(sortObj) ? obj : sortObj;
  114. }
  115. var HOOKS = [
  116. 'invoke',
  117. 'success',
  118. 'fail',
  119. 'complete',
  120. 'returnValue'];
  121. var globalInterceptors = {};
  122. var scopedInterceptors = {};
  123. function mergeHook(parentVal, childVal) {
  124. var res = childVal ?
  125. parentVal ?
  126. parentVal.concat(childVal) :
  127. Array.isArray(childVal) ?
  128. childVal : [childVal] :
  129. parentVal;
  130. return res ?
  131. dedupeHooks(res) :
  132. res;
  133. }
  134. function dedupeHooks(hooks) {
  135. var res = [];
  136. for (var i = 0; i < hooks.length; i++) {
  137. if (res.indexOf(hooks[i]) === -1) {
  138. res.push(hooks[i]);
  139. }
  140. }
  141. return res;
  142. }
  143. function removeHook(hooks, hook) {
  144. var index = hooks.indexOf(hook);
  145. if (index !== -1) {
  146. hooks.splice(index, 1);
  147. }
  148. }
  149. function mergeInterceptorHook(interceptor, option) {
  150. Object.keys(option).forEach(function (hook) {
  151. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  152. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  153. }
  154. });
  155. }
  156. function removeInterceptorHook(interceptor, option) {
  157. if (!interceptor || !option) {
  158. return;
  159. }
  160. Object.keys(option).forEach(function (hook) {
  161. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  162. removeHook(interceptor[hook], option[hook]);
  163. }
  164. });
  165. }
  166. function addInterceptor(method, option) {
  167. if (typeof method === 'string' && isPlainObject(option)) {
  168. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  169. } else if (isPlainObject(method)) {
  170. mergeInterceptorHook(globalInterceptors, method);
  171. }
  172. }
  173. function removeInterceptor(method, option) {
  174. if (typeof method === 'string') {
  175. if (isPlainObject(option)) {
  176. removeInterceptorHook(scopedInterceptors[method], option);
  177. } else {
  178. delete scopedInterceptors[method];
  179. }
  180. } else if (isPlainObject(method)) {
  181. removeInterceptorHook(globalInterceptors, method);
  182. }
  183. }
  184. function wrapperHook(hook) {
  185. return function (data) {
  186. return hook(data) || data;
  187. };
  188. }
  189. function isPromise(obj) {
  190. return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  191. }
  192. function queue(hooks, data) {
  193. var promise = false;
  194. for (var i = 0; i < hooks.length; i++) {
  195. var hook = hooks[i];
  196. if (promise) {
  197. promise = Promise.resolve(wrapperHook(hook));
  198. } else {
  199. var res = hook(data);
  200. if (isPromise(res)) {
  201. promise = Promise.resolve(res);
  202. }
  203. if (res === false) {
  204. return {
  205. then: function then() {} };
  206. }
  207. }
  208. }
  209. return promise || {
  210. then: function then(callback) {
  211. return callback(data);
  212. } };
  213. }
  214. function wrapperOptions(interceptor) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  215. ['success', 'fail', 'complete'].forEach(function (name) {
  216. if (Array.isArray(interceptor[name])) {
  217. var oldCallback = options[name];
  218. options[name] = function callbackInterceptor(res) {
  219. queue(interceptor[name], res).then(function (res) {
  220. /* eslint-disable no-mixed-operators */
  221. return isFn(oldCallback) && oldCallback(res) || res;
  222. });
  223. };
  224. }
  225. });
  226. return options;
  227. }
  228. function wrapperReturnValue(method, returnValue) {
  229. var returnValueHooks = [];
  230. if (Array.isArray(globalInterceptors.returnValue)) {
  231. returnValueHooks.push.apply(returnValueHooks, _toConsumableArray(globalInterceptors.returnValue));
  232. }
  233. var interceptor = scopedInterceptors[method];
  234. if (interceptor && Array.isArray(interceptor.returnValue)) {
  235. returnValueHooks.push.apply(returnValueHooks, _toConsumableArray(interceptor.returnValue));
  236. }
  237. returnValueHooks.forEach(function (hook) {
  238. returnValue = hook(returnValue) || returnValue;
  239. });
  240. return returnValue;
  241. }
  242. function getApiInterceptorHooks(method) {
  243. var interceptor = Object.create(null);
  244. Object.keys(globalInterceptors).forEach(function (hook) {
  245. if (hook !== 'returnValue') {
  246. interceptor[hook] = globalInterceptors[hook].slice();
  247. }
  248. });
  249. var scopedInterceptor = scopedInterceptors[method];
  250. if (scopedInterceptor) {
  251. Object.keys(scopedInterceptor).forEach(function (hook) {
  252. if (hook !== 'returnValue') {
  253. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  254. }
  255. });
  256. }
  257. return interceptor;
  258. }
  259. function invokeApi(method, api, options) {for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {params[_key - 3] = arguments[_key];}
  260. var interceptor = getApiInterceptorHooks(method);
  261. if (interceptor && Object.keys(interceptor).length) {
  262. if (Array.isArray(interceptor.invoke)) {
  263. var res = queue(interceptor.invoke, options);
  264. return res.then(function (options) {
  265. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  266. });
  267. } else {
  268. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  269. }
  270. }
  271. return api.apply(void 0, [options].concat(params));
  272. }
  273. var promiseInterceptor = {
  274. returnValue: function returnValue(res) {
  275. if (!isPromise(res)) {
  276. return res;
  277. }
  278. return new Promise(function (resolve, reject) {
  279. res.then(function (res) {
  280. if (res[0]) {
  281. reject(res[0]);
  282. } else {
  283. resolve(res[1]);
  284. }
  285. });
  286. });
  287. } };
  288. var SYNC_API_RE =
  289. /^\$|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/;
  290. var CONTEXT_API_RE = /^create|Manager$/;
  291. // Context例外情况
  292. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  293. // 同步例外情况
  294. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  295. var CALLBACK_API_RE = /^on|^off/;
  296. function isContextApi(name) {
  297. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  298. }
  299. function isSyncApi(name) {
  300. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  301. }
  302. function isCallbackApi(name) {
  303. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  304. }
  305. function handlePromise(promise) {
  306. return promise.then(function (data) {
  307. return [null, data];
  308. }).
  309. catch(function (err) {return [err];});
  310. }
  311. function shouldPromise(name) {
  312. if (
  313. isContextApi(name) ||
  314. isSyncApi(name) ||
  315. isCallbackApi(name))
  316. {
  317. return false;
  318. }
  319. return true;
  320. }
  321. /* eslint-disable no-extend-native */
  322. if (!Promise.prototype.finally) {
  323. Promise.prototype.finally = function (callback) {
  324. var promise = this.constructor;
  325. return this.then(
  326. function (value) {return promise.resolve(callback()).then(function () {return value;});},
  327. function (reason) {return promise.resolve(callback()).then(function () {
  328. throw reason;
  329. });});
  330. };
  331. }
  332. function promisify(name, api) {
  333. if (!shouldPromise(name)) {
  334. return api;
  335. }
  336. return function promiseApi() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {params[_key2 - 1] = arguments[_key2];}
  337. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  338. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  339. }
  340. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  341. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  342. success: resolve,
  343. fail: reject })].concat(
  344. params));
  345. })));
  346. };
  347. }
  348. var EPS = 1e-4;
  349. var BASE_DEVICE_WIDTH = 750;
  350. var isIOS = false;
  351. var deviceWidth = 0;
  352. var deviceDPR = 0;
  353. function checkDeviceWidth() {var _wx$getSystemInfoSync =
  354. wx.getSystemInfoSync(),platform = _wx$getSystemInfoSync.platform,pixelRatio = _wx$getSystemInfoSync.pixelRatio,windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  355. deviceWidth = windowWidth;
  356. deviceDPR = pixelRatio;
  357. isIOS = platform === 'ios';
  358. }
  359. function upx2px(number, newDeviceWidth) {
  360. if (deviceWidth === 0) {
  361. checkDeviceWidth();
  362. }
  363. number = Number(number);
  364. if (number === 0) {
  365. return 0;
  366. }
  367. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  368. if (result < 0) {
  369. result = -result;
  370. }
  371. result = Math.floor(result + EPS);
  372. if (result === 0) {
  373. if (deviceDPR === 1 || !isIOS) {
  374. result = 1;
  375. } else {
  376. result = 0.5;
  377. }
  378. }
  379. return number < 0 ? -result : result;
  380. }
  381. var LOCALE_ZH_HANS = 'zh-Hans';
  382. var LOCALE_ZH_HANT = 'zh-Hant';
  383. var LOCALE_EN = 'en';
  384. var LOCALE_FR = 'fr';
  385. var LOCALE_ES = 'es';
  386. var messages = {};
  387. var locale;
  388. {
  389. locale = normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  390. }
  391. function initI18nMessages() {
  392. if (!isEnableLocale()) {
  393. return;
  394. }
  395. var localeKeys = Object.keys(__uniConfig.locales);
  396. if (localeKeys.length) {
  397. localeKeys.forEach(function (locale) {
  398. var curMessages = messages[locale];
  399. var userMessages = __uniConfig.locales[locale];
  400. if (curMessages) {
  401. Object.assign(curMessages, userMessages);
  402. } else {
  403. messages[locale] = userMessages;
  404. }
  405. });
  406. }
  407. }
  408. initI18nMessages();
  409. var i18n = (0, _uniI18n.initVueI18n)(
  410. locale,
  411. {});
  412. var t = i18n.t;
  413. var i18nMixin = i18n.mixin = {
  414. beforeCreate: function beforeCreate() {var _this = this;
  415. var unwatch = i18n.i18n.watchLocale(function () {
  416. _this.$forceUpdate();
  417. });
  418. this.$once('hook:beforeDestroy', function () {
  419. unwatch();
  420. });
  421. },
  422. methods: {
  423. $$t: function $$t(key, values) {
  424. return t(key, values);
  425. } } };
  426. var setLocale = i18n.setLocale;
  427. var getLocale = i18n.getLocale;
  428. function initAppLocale(Vue, appVm, locale) {
  429. var state = Vue.observable({
  430. locale: locale || i18n.getLocale() });
  431. var localeWatchers = [];
  432. appVm.$watchLocale = function (fn) {
  433. localeWatchers.push(fn);
  434. };
  435. Object.defineProperty(appVm, '$locale', {
  436. get: function get() {
  437. return state.locale;
  438. },
  439. set: function set(v) {
  440. state.locale = v;
  441. localeWatchers.forEach(function (watch) {return watch(v);});
  442. } });
  443. }
  444. function isEnableLocale() {
  445. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  446. }
  447. function include(str, parts) {
  448. return !!parts.find(function (part) {return str.indexOf(part) !== -1;});
  449. }
  450. function startsWith(str, parts) {
  451. return parts.find(function (part) {return str.indexOf(part) === 0;});
  452. }
  453. function normalizeLocale(locale, messages) {
  454. if (!locale) {
  455. return;
  456. }
  457. locale = locale.trim().replace(/_/g, '-');
  458. if (messages && messages[locale]) {
  459. return locale;
  460. }
  461. locale = locale.toLowerCase();
  462. if (locale === 'chinese') {
  463. // 支付宝
  464. return LOCALE_ZH_HANS;
  465. }
  466. if (locale.indexOf('zh') === 0) {
  467. if (locale.indexOf('-hans') > -1) {
  468. return LOCALE_ZH_HANS;
  469. }
  470. if (locale.indexOf('-hant') > -1) {
  471. return LOCALE_ZH_HANT;
  472. }
  473. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  474. return LOCALE_ZH_HANT;
  475. }
  476. return LOCALE_ZH_HANS;
  477. }
  478. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  479. if (lang) {
  480. return lang;
  481. }
  482. }
  483. // export function initI18n() {
  484. // const localeKeys = Object.keys(__uniConfig.locales || {})
  485. // if (localeKeys.length) {
  486. // localeKeys.forEach((locale) =>
  487. // i18n.add(locale, __uniConfig.locales[locale])
  488. // )
  489. // }
  490. // }
  491. function getLocale$1() {
  492. // 优先使用 $locale
  493. var app = getApp({
  494. allowDefault: true });
  495. if (app && app.$vm) {
  496. return app.$vm.$locale;
  497. }
  498. return normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  499. }
  500. function setLocale$1(locale) {
  501. var app = getApp();
  502. if (!app) {
  503. return false;
  504. }
  505. var oldLocale = app.$vm.$locale;
  506. if (oldLocale !== locale) {
  507. app.$vm.$locale = locale;
  508. onLocaleChangeCallbacks.forEach(function (fn) {return fn({
  509. locale: locale });});
  510. return true;
  511. }
  512. return false;
  513. }
  514. var onLocaleChangeCallbacks = [];
  515. function onLocaleChange(fn) {
  516. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  517. onLocaleChangeCallbacks.push(fn);
  518. }
  519. }
  520. if (typeof global !== 'undefined') {
  521. global.getLocale = getLocale$1;
  522. }
  523. var interceptors = {
  524. promiseInterceptor: promiseInterceptor };
  525. var baseApi = /*#__PURE__*/Object.freeze({
  526. __proto__: null,
  527. upx2px: upx2px,
  528. getLocale: getLocale$1,
  529. setLocale: setLocale$1,
  530. onLocaleChange: onLocaleChange,
  531. addInterceptor: addInterceptor,
  532. removeInterceptor: removeInterceptor,
  533. interceptors: interceptors });
  534. function findExistsPageIndex(url) {
  535. var pages = getCurrentPages();
  536. var len = pages.length;
  537. while (len--) {
  538. var page = pages[len];
  539. if (page.$page && page.$page.fullPath === url) {
  540. return len;
  541. }
  542. }
  543. return -1;
  544. }
  545. var redirectTo = {
  546. name: function name(fromArgs) {
  547. if (fromArgs.exists === 'back' && fromArgs.delta) {
  548. return 'navigateBack';
  549. }
  550. return 'redirectTo';
  551. },
  552. args: function args(fromArgs) {
  553. if (fromArgs.exists === 'back' && fromArgs.url) {
  554. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  555. if (existsPageIndex !== -1) {
  556. var delta = getCurrentPages().length - 1 - existsPageIndex;
  557. if (delta > 0) {
  558. fromArgs.delta = delta;
  559. }
  560. }
  561. }
  562. } };
  563. var previewImage = {
  564. args: function args(fromArgs) {
  565. var currentIndex = parseInt(fromArgs.current);
  566. if (isNaN(currentIndex)) {
  567. return;
  568. }
  569. var urls = fromArgs.urls;
  570. if (!Array.isArray(urls)) {
  571. return;
  572. }
  573. var len = urls.length;
  574. if (!len) {
  575. return;
  576. }
  577. if (currentIndex < 0) {
  578. currentIndex = 0;
  579. } else if (currentIndex >= len) {
  580. currentIndex = len - 1;
  581. }
  582. if (currentIndex > 0) {
  583. fromArgs.current = urls[currentIndex];
  584. fromArgs.urls = urls.filter(
  585. function (item, index) {return index < currentIndex ? item !== urls[currentIndex] : true;});
  586. } else {
  587. fromArgs.current = urls[0];
  588. }
  589. return {
  590. indicator: false,
  591. loop: false };
  592. } };
  593. var UUID_KEY = '__DC_STAT_UUID';
  594. var deviceId;
  595. function useDeviceId(result) {
  596. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  597. if (!deviceId) {
  598. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  599. wx.setStorage({
  600. key: UUID_KEY,
  601. data: deviceId });
  602. }
  603. result.deviceId = deviceId;
  604. }
  605. function addSafeAreaInsets(result) {
  606. if (result.safeArea) {
  607. var safeArea = result.safeArea;
  608. result.safeAreaInsets = {
  609. top: safeArea.top,
  610. left: safeArea.left,
  611. right: result.windowWidth - safeArea.right,
  612. bottom: result.screenHeight - safeArea.bottom };
  613. }
  614. }
  615. function populateParameters(result) {var _result$brand =
  616. result.brand,brand = _result$brand === void 0 ? '' : _result$brand,_result$model = result.model,model = _result$model === void 0 ? '' : _result$model,_result$system = result.system,system = _result$system === void 0 ? '' : _result$system,_result$language = result.language,language = _result$language === void 0 ? '' : _result$language,theme = result.theme,version = result.version,platform = result.platform,fontSizeSetting = result.fontSizeSetting,SDKVersion = result.SDKVersion,pixelRatio = result.pixelRatio,deviceOrientation = result.deviceOrientation;
  617. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  618. // osName osVersion
  619. var osName = '';
  620. var osVersion = '';
  621. {
  622. osName = system.split(' ')[0] || '';
  623. osVersion = system.split(' ')[1] || '';
  624. }
  625. var hostVersion = version;
  626. // deviceType
  627. var deviceType = getGetDeviceType(result, model);
  628. // deviceModel
  629. var deviceBrand = getDeviceBrand(brand);
  630. // hostName
  631. var _hostName = getHostName(result);
  632. // deviceOrientation
  633. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  634. // devicePixelRatio
  635. var _devicePixelRatio = pixelRatio;
  636. // SDKVersion
  637. var _SDKVersion = SDKVersion;
  638. // hostLanguage
  639. var hostLanguage = language.replace(/_/g, '-');
  640. // wx.getAccountInfoSync
  641. var parameters = {
  642. appId: "__UNI__ED944FB",
  643. appName: "智能衣柜",
  644. appVersion: "1.0.0",
  645. appVersionCode: "100",
  646. appLanguage: getAppLanguage(hostLanguage),
  647. uniCompileVersion: "3.6.5",
  648. uniRuntimeVersion: "3.6.5",
  649. uniPlatform: undefined || "mp-weixin",
  650. deviceBrand: deviceBrand,
  651. deviceModel: model,
  652. deviceType: deviceType,
  653. devicePixelRatio: _devicePixelRatio,
  654. deviceOrientation: _deviceOrientation,
  655. osName: osName.toLocaleLowerCase(),
  656. osVersion: osVersion,
  657. hostTheme: theme,
  658. hostVersion: hostVersion,
  659. hostLanguage: hostLanguage,
  660. hostName: _hostName,
  661. hostSDKVersion: _SDKVersion,
  662. hostFontSizeSetting: fontSizeSetting,
  663. windowTop: 0,
  664. windowBottom: 0,
  665. // TODO
  666. osLanguage: undefined,
  667. osTheme: undefined,
  668. ua: undefined,
  669. hostPackageName: undefined,
  670. browserName: undefined,
  671. browserVersion: undefined };
  672. Object.assign(result, parameters);
  673. }
  674. function getGetDeviceType(result, model) {
  675. var deviceType = result.deviceType || 'phone';
  676. {
  677. var deviceTypeMaps = {
  678. ipad: 'pad',
  679. windows: 'pc',
  680. mac: 'pc' };
  681. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  682. var _model = model.toLocaleLowerCase();
  683. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  684. var _m = deviceTypeMapsKeys[index];
  685. if (_model.indexOf(_m) !== -1) {
  686. deviceType = deviceTypeMaps[_m];
  687. break;
  688. }
  689. }
  690. }
  691. return deviceType;
  692. }
  693. function getDeviceBrand(brand) {
  694. var deviceBrand = brand;
  695. if (deviceBrand) {
  696. deviceBrand = brand.toLocaleLowerCase();
  697. }
  698. return deviceBrand;
  699. }
  700. function getAppLanguage(defaultLanguage) {
  701. return getLocale$1 ?
  702. getLocale$1() :
  703. defaultLanguage;
  704. }
  705. function getHostName(result) {
  706. var _platform = 'WeChat';
  707. var _hostName = result.hostName || _platform; // mp-jd
  708. {
  709. if (result.environment) {
  710. _hostName = result.environment;
  711. } else if (result.host && result.host.env) {
  712. _hostName = result.host.env;
  713. }
  714. }
  715. return _hostName;
  716. }
  717. var getSystemInfo = {
  718. returnValue: function returnValue(result) {
  719. useDeviceId(result);
  720. addSafeAreaInsets(result);
  721. populateParameters(result);
  722. } };
  723. var showActionSheet = {
  724. args: function args(fromArgs) {
  725. if (typeof fromArgs === 'object') {
  726. fromArgs.alertText = fromArgs.title;
  727. }
  728. } };
  729. var getAppBaseInfo = {
  730. returnValue: function returnValue(result) {var _result =
  731. result,version = _result.version,language = _result.language,SDKVersion = _result.SDKVersion,theme = _result.theme;
  732. var _hostName = getHostName(result);
  733. var hostLanguage = language.replace('_', '-');
  734. result = sortObject(Object.assign(result, {
  735. appId: "__UNI__ED944FB",
  736. appName: "智能衣柜",
  737. appVersion: "1.0.0",
  738. appVersionCode: "100",
  739. appLanguage: getAppLanguage(hostLanguage),
  740. hostVersion: version,
  741. hostLanguage: hostLanguage,
  742. hostName: _hostName,
  743. hostSDKVersion: SDKVersion,
  744. hostTheme: theme }));
  745. } };
  746. var getDeviceInfo = {
  747. returnValue: function returnValue(result) {var _result2 =
  748. result,brand = _result2.brand,model = _result2.model;
  749. var deviceType = getGetDeviceType(result, model);
  750. var deviceBrand = getDeviceBrand(brand);
  751. useDeviceId(result);
  752. result = sortObject(Object.assign(result, {
  753. deviceType: deviceType,
  754. deviceBrand: deviceBrand,
  755. deviceModel: model }));
  756. } };
  757. var getWindowInfo = {
  758. returnValue: function returnValue(result) {
  759. addSafeAreaInsets(result);
  760. result = sortObject(Object.assign(result, {
  761. windowTop: 0,
  762. windowBottom: 0 }));
  763. } };
  764. var getAppAuthorizeSetting = {
  765. returnValue: function returnValue(result) {var
  766. locationReducedAccuracy = result.locationReducedAccuracy;
  767. result.locationAccuracy = 'unsupported';
  768. if (locationReducedAccuracy === true) {
  769. result.locationAccuracy = 'reduced';
  770. } else if (locationReducedAccuracy === false) {
  771. result.locationAccuracy = 'full';
  772. }
  773. } };
  774. // import navigateTo from 'uni-helpers/navigate-to'
  775. var protocols = {
  776. redirectTo: redirectTo,
  777. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  778. previewImage: previewImage,
  779. getSystemInfo: getSystemInfo,
  780. getSystemInfoSync: getSystemInfo,
  781. showActionSheet: showActionSheet,
  782. getAppBaseInfo: getAppBaseInfo,
  783. getDeviceInfo: getDeviceInfo,
  784. getWindowInfo: getWindowInfo,
  785. getAppAuthorizeSetting: getAppAuthorizeSetting };
  786. var todos = [
  787. 'vibrate',
  788. 'preloadPage',
  789. 'unPreloadPage',
  790. 'loadSubPackage'];
  791. var canIUses = [];
  792. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  793. function processCallback(methodName, method, returnValue) {
  794. return function (res) {
  795. return method(processReturnValue(methodName, res, returnValue));
  796. };
  797. }
  798. function processArgs(methodName, fromArgs) {var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  799. if (isPlainObject(fromArgs)) {// 一般 api 的参数解析
  800. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  801. if (isFn(argsOption)) {
  802. argsOption = argsOption(fromArgs, toArgs) || {};
  803. }
  804. for (var key in fromArgs) {
  805. if (hasOwn(argsOption, key)) {
  806. var keyOption = argsOption[key];
  807. if (isFn(keyOption)) {
  808. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  809. }
  810. if (!keyOption) {// 不支持的参数
  811. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  812. } else if (isStr(keyOption)) {// 重写参数 key
  813. toArgs[keyOption] = fromArgs[key];
  814. } else if (isPlainObject(keyOption)) {// {name:newName,value:value}可重新指定参数 key:value
  815. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  816. }
  817. } else if (CALLBACKS.indexOf(key) !== -1) {
  818. if (isFn(fromArgs[key])) {
  819. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  820. }
  821. } else {
  822. if (!keepFromArgs) {
  823. toArgs[key] = fromArgs[key];
  824. }
  825. }
  826. }
  827. return toArgs;
  828. } else if (isFn(fromArgs)) {
  829. fromArgs = processCallback(methodName, fromArgs, returnValue);
  830. }
  831. return fromArgs;
  832. }
  833. function processReturnValue(methodName, res, returnValue) {var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  834. if (isFn(protocols.returnValue)) {// 处理通用 returnValue
  835. res = protocols.returnValue(methodName, res);
  836. }
  837. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  838. }
  839. function wrapper(methodName, method) {
  840. if (hasOwn(protocols, methodName)) {
  841. var protocol = protocols[methodName];
  842. if (!protocol) {// 暂不支持的 api
  843. return function () {
  844. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  845. };
  846. }
  847. return function (arg1, arg2) {// 目前 api 最多两个参数
  848. var options = protocol;
  849. if (isFn(protocol)) {
  850. options = protocol(arg1);
  851. }
  852. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  853. var args = [arg1];
  854. if (typeof arg2 !== 'undefined') {
  855. args.push(arg2);
  856. }
  857. if (isFn(options.name)) {
  858. methodName = options.name(arg1);
  859. } else if (isStr(options.name)) {
  860. methodName = options.name;
  861. }
  862. var returnValue = wx[methodName].apply(wx, args);
  863. if (isSyncApi(methodName)) {// 同步 api
  864. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  865. }
  866. return returnValue;
  867. };
  868. }
  869. return method;
  870. }
  871. var todoApis = Object.create(null);
  872. var TODOS = [
  873. 'onTabBarMidButtonTap',
  874. 'subscribePush',
  875. 'unsubscribePush',
  876. 'onPush',
  877. 'offPush',
  878. 'share'];
  879. function createTodoApi(name) {
  880. return function todoApi(_ref)
  881. {var fail = _ref.fail,complete = _ref.complete;
  882. var res = {
  883. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported") };
  884. isFn(fail) && fail(res);
  885. isFn(complete) && complete(res);
  886. };
  887. }
  888. TODOS.forEach(function (name) {
  889. todoApis[name] = createTodoApi(name);
  890. });
  891. var providers = {
  892. oauth: ['weixin'],
  893. share: ['weixin'],
  894. payment: ['wxpay'],
  895. push: ['weixin'] };
  896. function getProvider(_ref2)
  897. {var service = _ref2.service,success = _ref2.success,fail = _ref2.fail,complete = _ref2.complete;
  898. var res = false;
  899. if (providers[service]) {
  900. res = {
  901. errMsg: 'getProvider:ok',
  902. service: service,
  903. provider: providers[service] };
  904. isFn(success) && success(res);
  905. } else {
  906. res = {
  907. errMsg: 'getProvider:fail service not found' };
  908. isFn(fail) && fail(res);
  909. }
  910. isFn(complete) && complete(res);
  911. }
  912. var extraApi = /*#__PURE__*/Object.freeze({
  913. __proto__: null,
  914. getProvider: getProvider });
  915. var getEmitter = function () {
  916. var Emitter;
  917. return function getUniEmitter() {
  918. if (!Emitter) {
  919. Emitter = new _vue.default();
  920. }
  921. return Emitter;
  922. };
  923. }();
  924. function apply(ctx, method, args) {
  925. return ctx[method].apply(ctx, args);
  926. }
  927. function $on() {
  928. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  929. }
  930. function $off() {
  931. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  932. }
  933. function $once() {
  934. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  935. }
  936. function $emit() {
  937. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  938. }
  939. var eventApi = /*#__PURE__*/Object.freeze({
  940. __proto__: null,
  941. $on: $on,
  942. $off: $off,
  943. $once: $once,
  944. $emit: $emit });
  945. /**
  946. * 框架内 try-catch
  947. */
  948. /**
  949. * 开发者 try-catch
  950. */
  951. function tryCatch(fn) {
  952. return function () {
  953. try {
  954. return fn.apply(fn, arguments);
  955. } catch (e) {
  956. // TODO
  957. console.error(e);
  958. }
  959. };
  960. }
  961. function getApiCallbacks(params) {
  962. var apiCallbacks = {};
  963. for (var name in params) {
  964. var param = params[name];
  965. if (isFn(param)) {
  966. apiCallbacks[name] = tryCatch(param);
  967. delete params[name];
  968. }
  969. }
  970. return apiCallbacks;
  971. }
  972. var cid;
  973. var cidErrMsg;
  974. var enabled;
  975. function normalizePushMessage(message) {
  976. try {
  977. return JSON.parse(message);
  978. } catch (e) {}
  979. return message;
  980. }
  981. function invokePushCallback(
  982. args)
  983. {
  984. if (args.type === 'enabled') {
  985. enabled = true;
  986. } else if (args.type === 'clientId') {
  987. cid = args.cid;
  988. cidErrMsg = args.errMsg;
  989. invokeGetPushCidCallbacks(cid, args.errMsg);
  990. } else if (args.type === 'pushMsg') {
  991. var message = {
  992. type: 'receive',
  993. data: normalizePushMessage(args.message) };
  994. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  995. var callback = onPushMessageCallbacks[i];
  996. callback(message);
  997. // 该消息已被阻止
  998. if (message.stopped) {
  999. break;
  1000. }
  1001. }
  1002. } else if (args.type === 'click') {
  1003. onPushMessageCallbacks.forEach(function (callback) {
  1004. callback({
  1005. type: 'click',
  1006. data: normalizePushMessage(args.message) });
  1007. });
  1008. }
  1009. }
  1010. var getPushCidCallbacks = [];
  1011. function invokeGetPushCidCallbacks(cid, errMsg) {
  1012. getPushCidCallbacks.forEach(function (callback) {
  1013. callback(cid, errMsg);
  1014. });
  1015. getPushCidCallbacks.length = 0;
  1016. }
  1017. function getPushClientId(args) {
  1018. if (!isPlainObject(args)) {
  1019. args = {};
  1020. }var _getApiCallbacks =
  1021. getApiCallbacks(args),success = _getApiCallbacks.success,fail = _getApiCallbacks.fail,complete = _getApiCallbacks.complete;
  1022. var hasSuccess = isFn(success);
  1023. var hasFail = isFn(fail);
  1024. var hasComplete = isFn(complete);
  1025. Promise.resolve().then(function () {
  1026. if (typeof enabled === 'undefined') {
  1027. enabled = false;
  1028. cid = '';
  1029. cidErrMsg = 'uniPush is not enabled';
  1030. }
  1031. getPushCidCallbacks.push(function (cid, errMsg) {
  1032. var res;
  1033. if (cid) {
  1034. res = {
  1035. errMsg: 'getPushClientId:ok',
  1036. cid: cid };
  1037. hasSuccess && success(res);
  1038. } else {
  1039. res = {
  1040. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '') };
  1041. hasFail && fail(res);
  1042. }
  1043. hasComplete && complete(res);
  1044. });
  1045. if (typeof cid !== 'undefined') {
  1046. invokeGetPushCidCallbacks(cid, cidErrMsg);
  1047. }
  1048. });
  1049. }
  1050. var onPushMessageCallbacks = [];
  1051. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  1052. var onPushMessage = function onPushMessage(fn) {
  1053. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  1054. onPushMessageCallbacks.push(fn);
  1055. }
  1056. };
  1057. var offPushMessage = function offPushMessage(fn) {
  1058. if (!fn) {
  1059. onPushMessageCallbacks.length = 0;
  1060. } else {
  1061. var index = onPushMessageCallbacks.indexOf(fn);
  1062. if (index > -1) {
  1063. onPushMessageCallbacks.splice(index, 1);
  1064. }
  1065. }
  1066. };
  1067. var api = /*#__PURE__*/Object.freeze({
  1068. __proto__: null,
  1069. getPushClientId: getPushClientId,
  1070. onPushMessage: onPushMessage,
  1071. offPushMessage: offPushMessage,
  1072. invokePushCallback: invokePushCallback });
  1073. var MPPage = Page;
  1074. var MPComponent = Component;
  1075. var customizeRE = /:/g;
  1076. var customize = cached(function (str) {
  1077. return camelize(str.replace(customizeRE, '-'));
  1078. });
  1079. function initTriggerEvent(mpInstance) {
  1080. var oldTriggerEvent = mpInstance.triggerEvent;
  1081. var newTriggerEvent = function newTriggerEvent(event) {for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {args[_key3 - 1] = arguments[_key3];}
  1082. // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
  1083. if (this.$vm || this.dataset && this.dataset.comType) {
  1084. event = customize(event);
  1085. } else {
  1086. // 针对微信/QQ小程序单独补充驼峰格式事件,以兼容历史项目
  1087. var newEvent = customize(event);
  1088. if (newEvent !== event) {
  1089. oldTriggerEvent.apply(this, [newEvent].concat(args));
  1090. }
  1091. }
  1092. return oldTriggerEvent.apply(this, [event].concat(args));
  1093. };
  1094. try {
  1095. // 京东小程序 triggerEvent 为只读
  1096. mpInstance.triggerEvent = newTriggerEvent;
  1097. } catch (error) {
  1098. mpInstance._triggerEvent = newTriggerEvent;
  1099. }
  1100. }
  1101. function initHook(name, options, isComponent) {
  1102. var oldHook = options[name];
  1103. if (!oldHook) {
  1104. options[name] = function () {
  1105. initTriggerEvent(this);
  1106. };
  1107. } else {
  1108. options[name] = function () {
  1109. initTriggerEvent(this);for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {args[_key4] = arguments[_key4];}
  1110. return oldHook.apply(this, args);
  1111. };
  1112. }
  1113. }
  1114. if (!MPPage.__$wrappered) {
  1115. MPPage.__$wrappered = true;
  1116. Page = function Page() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1117. initHook('onLoad', options);
  1118. return MPPage(options);
  1119. };
  1120. Page.after = MPPage.after;
  1121. Component = function Component() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1122. initHook('created', options);
  1123. return MPComponent(options);
  1124. };
  1125. }
  1126. var PAGE_EVENT_HOOKS = [
  1127. 'onPullDownRefresh',
  1128. 'onReachBottom',
  1129. 'onAddToFavorites',
  1130. 'onShareTimeline',
  1131. 'onShareAppMessage',
  1132. 'onPageScroll',
  1133. 'onResize',
  1134. 'onTabItemTap'];
  1135. function initMocks(vm, mocks) {
  1136. var mpInstance = vm.$mp[vm.mpType];
  1137. mocks.forEach(function (mock) {
  1138. if (hasOwn(mpInstance, mock)) {
  1139. vm[mock] = mpInstance[mock];
  1140. }
  1141. });
  1142. }
  1143. function hasHook(hook, vueOptions) {
  1144. if (!vueOptions) {
  1145. return true;
  1146. }
  1147. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  1148. return true;
  1149. }
  1150. vueOptions = vueOptions.default || vueOptions;
  1151. if (isFn(vueOptions)) {
  1152. if (isFn(vueOptions.extendOptions[hook])) {
  1153. return true;
  1154. }
  1155. if (vueOptions.super &&
  1156. vueOptions.super.options &&
  1157. Array.isArray(vueOptions.super.options[hook])) {
  1158. return true;
  1159. }
  1160. return false;
  1161. }
  1162. if (isFn(vueOptions[hook])) {
  1163. return true;
  1164. }
  1165. var mixins = vueOptions.mixins;
  1166. if (Array.isArray(mixins)) {
  1167. return !!mixins.find(function (mixin) {return hasHook(hook, mixin);});
  1168. }
  1169. }
  1170. function initHooks(mpOptions, hooks, vueOptions) {
  1171. hooks.forEach(function (hook) {
  1172. if (hasHook(hook, vueOptions)) {
  1173. mpOptions[hook] = function (args) {
  1174. return this.$vm && this.$vm.__call_hook(hook, args);
  1175. };
  1176. }
  1177. });
  1178. }
  1179. function initUnknownHooks(mpOptions, vueOptions) {var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1180. findHooks(vueOptions).forEach(function (hook) {return initHook$1(mpOptions, hook, excludes);});
  1181. }
  1182. function findHooks(vueOptions) {var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  1183. if (vueOptions) {
  1184. Object.keys(vueOptions).forEach(function (name) {
  1185. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  1186. hooks.push(name);
  1187. }
  1188. });
  1189. }
  1190. return hooks;
  1191. }
  1192. function initHook$1(mpOptions, hook, excludes) {
  1193. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  1194. mpOptions[hook] = function (args) {
  1195. return this.$vm && this.$vm.__call_hook(hook, args);
  1196. };
  1197. }
  1198. }
  1199. function initVueComponent(Vue, vueOptions) {
  1200. vueOptions = vueOptions.default || vueOptions;
  1201. var VueComponent;
  1202. if (isFn(vueOptions)) {
  1203. VueComponent = vueOptions;
  1204. } else {
  1205. VueComponent = Vue.extend(vueOptions);
  1206. }
  1207. vueOptions = VueComponent.options;
  1208. return [VueComponent, vueOptions];
  1209. }
  1210. function initSlots(vm, vueSlots) {
  1211. if (Array.isArray(vueSlots) && vueSlots.length) {
  1212. var $slots = Object.create(null);
  1213. vueSlots.forEach(function (slotName) {
  1214. $slots[slotName] = true;
  1215. });
  1216. vm.$scopedSlots = vm.$slots = $slots;
  1217. }
  1218. }
  1219. function initVueIds(vueIds, mpInstance) {
  1220. vueIds = (vueIds || '').split(',');
  1221. var len = vueIds.length;
  1222. if (len === 1) {
  1223. mpInstance._$vueId = vueIds[0];
  1224. } else if (len === 2) {
  1225. mpInstance._$vueId = vueIds[0];
  1226. mpInstance._$vuePid = vueIds[1];
  1227. }
  1228. }
  1229. function initData(vueOptions, context) {
  1230. var data = vueOptions.data || {};
  1231. var methods = vueOptions.methods || {};
  1232. if (typeof data === 'function') {
  1233. try {
  1234. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  1235. } catch (e) {
  1236. if (Object({"VUE_APP_NAME":"智能衣柜","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  1237. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  1238. }
  1239. }
  1240. } else {
  1241. try {
  1242. // 对 data 格式化
  1243. data = JSON.parse(JSON.stringify(data));
  1244. } catch (e) {}
  1245. }
  1246. if (!isPlainObject(data)) {
  1247. data = {};
  1248. }
  1249. Object.keys(methods).forEach(function (methodName) {
  1250. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  1251. data[methodName] = methods[methodName];
  1252. }
  1253. });
  1254. return data;
  1255. }
  1256. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  1257. function createObserver(name) {
  1258. return function observer(newVal, oldVal) {
  1259. if (this.$vm) {
  1260. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  1261. }
  1262. };
  1263. }
  1264. function initBehaviors(vueOptions, initBehavior) {
  1265. var vueBehaviors = vueOptions.behaviors;
  1266. var vueExtends = vueOptions.extends;
  1267. var vueMixins = vueOptions.mixins;
  1268. var vueProps = vueOptions.props;
  1269. if (!vueProps) {
  1270. vueOptions.props = vueProps = [];
  1271. }
  1272. var behaviors = [];
  1273. if (Array.isArray(vueBehaviors)) {
  1274. vueBehaviors.forEach(function (behavior) {
  1275. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  1276. if (behavior === 'uni://form-field') {
  1277. if (Array.isArray(vueProps)) {
  1278. vueProps.push('name');
  1279. vueProps.push('value');
  1280. } else {
  1281. vueProps.name = {
  1282. type: String,
  1283. default: '' };
  1284. vueProps.value = {
  1285. type: [String, Number, Boolean, Array, Object, Date],
  1286. default: '' };
  1287. }
  1288. }
  1289. });
  1290. }
  1291. if (isPlainObject(vueExtends) && vueExtends.props) {
  1292. behaviors.push(
  1293. initBehavior({
  1294. properties: initProperties(vueExtends.props, true) }));
  1295. }
  1296. if (Array.isArray(vueMixins)) {
  1297. vueMixins.forEach(function (vueMixin) {
  1298. if (isPlainObject(vueMixin) && vueMixin.props) {
  1299. behaviors.push(
  1300. initBehavior({
  1301. properties: initProperties(vueMixin.props, true) }));
  1302. }
  1303. });
  1304. }
  1305. return behaviors;
  1306. }
  1307. function parsePropType(key, type, defaultValue, file) {
  1308. // [String]=>String
  1309. if (Array.isArray(type) && type.length === 1) {
  1310. return type[0];
  1311. }
  1312. return type;
  1313. }
  1314. function initProperties(props) {var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';var options = arguments.length > 3 ? arguments[3] : undefined;
  1315. var properties = {};
  1316. if (!isBehavior) {
  1317. properties.vueId = {
  1318. type: String,
  1319. value: '' };
  1320. {
  1321. if (options.virtualHost) {
  1322. properties.virtualHostStyle = {
  1323. type: null,
  1324. value: '' };
  1325. properties.virtualHostClass = {
  1326. type: null,
  1327. value: '' };
  1328. }
  1329. }
  1330. // scopedSlotsCompiler auto
  1331. properties.scopedSlotsCompiler = {
  1332. type: String,
  1333. value: '' };
  1334. properties.vueSlots = { // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  1335. type: null,
  1336. value: [],
  1337. observer: function observer(newVal, oldVal) {
  1338. var $slots = Object.create(null);
  1339. newVal.forEach(function (slotName) {
  1340. $slots[slotName] = true;
  1341. });
  1342. this.setData({
  1343. $slots: $slots });
  1344. } };
  1345. }
  1346. if (Array.isArray(props)) {// ['title']
  1347. props.forEach(function (key) {
  1348. properties[key] = {
  1349. type: null,
  1350. observer: createObserver(key) };
  1351. });
  1352. } else if (isPlainObject(props)) {// {title:{type:String,default:''},content:String}
  1353. Object.keys(props).forEach(function (key) {
  1354. var opts = props[key];
  1355. if (isPlainObject(opts)) {// title:{type:String,default:''}
  1356. var value = opts.default;
  1357. if (isFn(value)) {
  1358. value = value();
  1359. }
  1360. opts.type = parsePropType(key, opts.type);
  1361. properties[key] = {
  1362. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  1363. value: value,
  1364. observer: createObserver(key) };
  1365. } else {// content:String
  1366. var type = parsePropType(key, opts);
  1367. properties[key] = {
  1368. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  1369. observer: createObserver(key) };
  1370. }
  1371. });
  1372. }
  1373. return properties;
  1374. }
  1375. function wrapper$1(event) {
  1376. // TODO 又得兼容 mpvue 的 mp 对象
  1377. try {
  1378. event.mp = JSON.parse(JSON.stringify(event));
  1379. } catch (e) {}
  1380. event.stopPropagation = noop;
  1381. event.preventDefault = noop;
  1382. event.target = event.target || {};
  1383. if (!hasOwn(event, 'detail')) {
  1384. event.detail = {};
  1385. }
  1386. if (hasOwn(event, 'markerId')) {
  1387. event.detail = typeof event.detail === 'object' ? event.detail : {};
  1388. event.detail.markerId = event.markerId;
  1389. }
  1390. if (isPlainObject(event.detail)) {
  1391. event.target = Object.assign({}, event.target, event.detail);
  1392. }
  1393. return event;
  1394. }
  1395. function getExtraValue(vm, dataPathsArray) {
  1396. var context = vm;
  1397. dataPathsArray.forEach(function (dataPathArray) {
  1398. var dataPath = dataPathArray[0];
  1399. var value = dataPathArray[2];
  1400. if (dataPath || typeof value !== 'undefined') {// ['','',index,'disable']
  1401. var propPath = dataPathArray[1];
  1402. var valuePath = dataPathArray[3];
  1403. var vFor;
  1404. if (Number.isInteger(dataPath)) {
  1405. vFor = dataPath;
  1406. } else if (!dataPath) {
  1407. vFor = context;
  1408. } else if (typeof dataPath === 'string' && dataPath) {
  1409. if (dataPath.indexOf('#s#') === 0) {
  1410. vFor = dataPath.substr(3);
  1411. } else {
  1412. vFor = vm.__get_value(dataPath, context);
  1413. }
  1414. }
  1415. if (Number.isInteger(vFor)) {
  1416. context = value;
  1417. } else if (!propPath) {
  1418. context = vFor[value];
  1419. } else {
  1420. if (Array.isArray(vFor)) {
  1421. context = vFor.find(function (vForItem) {
  1422. return vm.__get_value(propPath, vForItem) === value;
  1423. });
  1424. } else if (isPlainObject(vFor)) {
  1425. context = Object.keys(vFor).find(function (vForKey) {
  1426. return vm.__get_value(propPath, vFor[vForKey]) === value;
  1427. });
  1428. } else {
  1429. console.error('v-for 暂不支持循环数据:', vFor);
  1430. }
  1431. }
  1432. if (valuePath) {
  1433. context = vm.__get_value(valuePath, context);
  1434. }
  1435. }
  1436. });
  1437. return context;
  1438. }
  1439. function processEventExtra(vm, extra, event, __args__) {
  1440. var extraObj = {};
  1441. if (Array.isArray(extra) && extra.length) {
  1442. /**
  1443. *[
  1444. * ['data.items', 'data.id', item.data.id],
  1445. * ['metas', 'id', meta.id]
  1446. *],
  1447. *[
  1448. * ['data.items', 'data.id', item.data.id],
  1449. * ['metas', 'id', meta.id]
  1450. *],
  1451. *'test'
  1452. */
  1453. extra.forEach(function (dataPath, index) {
  1454. if (typeof dataPath === 'string') {
  1455. if (!dataPath) {// model,prop.sync
  1456. extraObj['$' + index] = vm;
  1457. } else {
  1458. if (dataPath === '$event') {// $event
  1459. extraObj['$' + index] = event;
  1460. } else if (dataPath === 'arguments') {
  1461. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  1462. } else if (dataPath.indexOf('$event.') === 0) {// $event.target.value
  1463. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1464. } else {
  1465. extraObj['$' + index] = vm.__get_value(dataPath);
  1466. }
  1467. }
  1468. } else {
  1469. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1470. }
  1471. });
  1472. }
  1473. return extraObj;
  1474. }
  1475. function getObjByArray(arr) {
  1476. var obj = {};
  1477. for (var i = 1; i < arr.length; i++) {
  1478. var element = arr[i];
  1479. obj[element[0]] = element[1];
  1480. }
  1481. return obj;
  1482. }
  1483. function processEventArgs(vm, event) {var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];var isCustom = arguments.length > 4 ? arguments[4] : undefined;var methodName = arguments.length > 5 ? arguments[5] : undefined;
  1484. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  1485. // fixed 用户直接触发 mpInstance.triggerEvent
  1486. var __args__ = isPlainObject(event.detail) ?
  1487. event.detail.__args__ || [event.detail] :
  1488. [event.detail];
  1489. if (isCustom) {// 自定义事件
  1490. isCustomMPEvent = event.currentTarget &&
  1491. event.currentTarget.dataset &&
  1492. event.currentTarget.dataset.comType === 'wx';
  1493. if (!args.length) {// 无参数,直接传入 event 或 detail 数组
  1494. if (isCustomMPEvent) {
  1495. return [event];
  1496. }
  1497. return __args__;
  1498. }
  1499. }
  1500. var extraObj = processEventExtra(vm, extra, event, __args__);
  1501. var ret = [];
  1502. args.forEach(function (arg) {
  1503. if (arg === '$event') {
  1504. if (methodName === '__set_model' && !isCustom) {// input v-model value
  1505. ret.push(event.target.value);
  1506. } else {
  1507. if (isCustom && !isCustomMPEvent) {
  1508. ret.push(__args__[0]);
  1509. } else {// wxcomponent 组件或内置组件
  1510. ret.push(event);
  1511. }
  1512. }
  1513. } else {
  1514. if (Array.isArray(arg) && arg[0] === 'o') {
  1515. ret.push(getObjByArray(arg));
  1516. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  1517. ret.push(extraObj[arg]);
  1518. } else {
  1519. ret.push(arg);
  1520. }
  1521. }
  1522. });
  1523. return ret;
  1524. }
  1525. var ONCE = '~';
  1526. var CUSTOM = '^';
  1527. function isMatchEventType(eventType, optType) {
  1528. return eventType === optType ||
  1529. optType === 'regionchange' && (
  1530. eventType === 'begin' ||
  1531. eventType === 'end');
  1532. }
  1533. function getContextVm(vm) {
  1534. var $parent = vm.$parent;
  1535. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  1536. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  1537. $parent = $parent.$parent;
  1538. }
  1539. return $parent && $parent.$parent;
  1540. }
  1541. function handleEvent(event) {var _this2 = this;
  1542. event = wrapper$1(event);
  1543. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  1544. var dataset = (event.currentTarget || event.target).dataset;
  1545. if (!dataset) {
  1546. return console.warn('事件信息不存在');
  1547. }
  1548. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  1549. if (!eventOpts) {
  1550. return console.warn('事件信息不存在');
  1551. }
  1552. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  1553. var eventType = event.type;
  1554. var ret = [];
  1555. eventOpts.forEach(function (eventOpt) {
  1556. var type = eventOpt[0];
  1557. var eventsArray = eventOpt[1];
  1558. var isCustom = type.charAt(0) === CUSTOM;
  1559. type = isCustom ? type.slice(1) : type;
  1560. var isOnce = type.charAt(0) === ONCE;
  1561. type = isOnce ? type.slice(1) : type;
  1562. if (eventsArray && isMatchEventType(eventType, type)) {
  1563. eventsArray.forEach(function (eventArray) {
  1564. var methodName = eventArray[0];
  1565. if (methodName) {
  1566. var handlerCtx = _this2.$vm;
  1567. if (handlerCtx.$options.generic) {// mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  1568. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  1569. }
  1570. if (methodName === '$emit') {
  1571. handlerCtx.$emit.apply(handlerCtx,
  1572. processEventArgs(
  1573. _this2.$vm,
  1574. event,
  1575. eventArray[1],
  1576. eventArray[2],
  1577. isCustom,
  1578. methodName));
  1579. return;
  1580. }
  1581. var handler = handlerCtx[methodName];
  1582. if (!isFn(handler)) {
  1583. var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
  1584. var path = _this2.route || _this2.is;
  1585. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  1586. }
  1587. if (isOnce) {
  1588. if (handler.once) {
  1589. return;
  1590. }
  1591. handler.once = true;
  1592. }
  1593. var params = processEventArgs(
  1594. _this2.$vm,
  1595. event,
  1596. eventArray[1],
  1597. eventArray[2],
  1598. isCustom,
  1599. methodName);
  1600. params = Array.isArray(params) ? params : [];
  1601. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  1602. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  1603. // eslint-disable-next-line no-sparse-arrays
  1604. params = params.concat([,,,,,,,,,, event]);
  1605. }
  1606. ret.push(handler.apply(handlerCtx, params));
  1607. }
  1608. });
  1609. }
  1610. });
  1611. if (
  1612. eventType === 'input' &&
  1613. ret.length === 1 &&
  1614. typeof ret[0] !== 'undefined')
  1615. {
  1616. return ret[0];
  1617. }
  1618. }
  1619. var eventChannels = {};
  1620. var eventChannelStack = [];
  1621. function getEventChannel(id) {
  1622. if (id) {
  1623. var eventChannel = eventChannels[id];
  1624. delete eventChannels[id];
  1625. return eventChannel;
  1626. }
  1627. return eventChannelStack.shift();
  1628. }
  1629. var hooks = [
  1630. 'onShow',
  1631. 'onHide',
  1632. 'onError',
  1633. 'onPageNotFound',
  1634. 'onThemeChange',
  1635. 'onUnhandledRejection'];
  1636. function initEventChannel() {
  1637. _vue.default.prototype.getOpenerEventChannel = function () {
  1638. // 微信小程序使用自身getOpenerEventChannel
  1639. {
  1640. return this.$scope.getOpenerEventChannel();
  1641. }
  1642. };
  1643. var callHook = _vue.default.prototype.__call_hook;
  1644. _vue.default.prototype.__call_hook = function (hook, args) {
  1645. if (hook === 'onLoad' && args && args.__id__) {
  1646. this.__eventChannel__ = getEventChannel(args.__id__);
  1647. delete args.__id__;
  1648. }
  1649. return callHook.call(this, hook, args);
  1650. };
  1651. }
  1652. function initScopedSlotsParams() {
  1653. var center = {};
  1654. var parents = {};
  1655. _vue.default.prototype.$hasScopedSlotsParams = function (vueId) {
  1656. var has = center[vueId];
  1657. if (!has) {
  1658. parents[vueId] = this;
  1659. this.$on('hook:destroyed', function () {
  1660. delete parents[vueId];
  1661. });
  1662. }
  1663. return has;
  1664. };
  1665. _vue.default.prototype.$getScopedSlotsParams = function (vueId, name, key) {
  1666. var data = center[vueId];
  1667. if (data) {
  1668. var object = data[name] || {};
  1669. return key ? object[key] : object;
  1670. } else {
  1671. parents[vueId] = this;
  1672. this.$on('hook:destroyed', function () {
  1673. delete parents[vueId];
  1674. });
  1675. }
  1676. };
  1677. _vue.default.prototype.$setScopedSlotsParams = function (name, value) {
  1678. var vueIds = this.$options.propsData.vueId;
  1679. if (vueIds) {
  1680. var vueId = vueIds.split(',')[0];
  1681. var object = center[vueId] = center[vueId] || {};
  1682. object[name] = value;
  1683. if (parents[vueId]) {
  1684. parents[vueId].$forceUpdate();
  1685. }
  1686. }
  1687. };
  1688. _vue.default.mixin({
  1689. destroyed: function destroyed() {
  1690. var propsData = this.$options.propsData;
  1691. var vueId = propsData && propsData.vueId;
  1692. if (vueId) {
  1693. delete center[vueId];
  1694. delete parents[vueId];
  1695. }
  1696. } });
  1697. }
  1698. function parseBaseApp(vm, _ref3)
  1699. {var mocks = _ref3.mocks,initRefs = _ref3.initRefs;
  1700. initEventChannel();
  1701. {
  1702. initScopedSlotsParams();
  1703. }
  1704. if (vm.$options.store) {
  1705. _vue.default.prototype.$store = vm.$options.store;
  1706. }
  1707. uniIdMixin(_vue.default);
  1708. _vue.default.prototype.mpHost = "mp-weixin";
  1709. _vue.default.mixin({
  1710. beforeCreate: function beforeCreate() {
  1711. if (!this.$options.mpType) {
  1712. return;
  1713. }
  1714. this.mpType = this.$options.mpType;
  1715. this.$mp = _defineProperty({
  1716. data: {} },
  1717. this.mpType, this.$options.mpInstance);
  1718. this.$scope = this.$options.mpInstance;
  1719. delete this.$options.mpType;
  1720. delete this.$options.mpInstance;
  1721. if (this.mpType === 'page' && typeof getApp === 'function') {// hack vue-i18n
  1722. var app = getApp();
  1723. if (app.$vm && app.$vm.$i18n) {
  1724. this._i18n = app.$vm.$i18n;
  1725. }
  1726. }
  1727. if (this.mpType !== 'app') {
  1728. initRefs(this);
  1729. initMocks(this, mocks);
  1730. }
  1731. } });
  1732. var appOptions = {
  1733. onLaunch: function onLaunch(args) {
  1734. if (this.$vm) {// 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  1735. return;
  1736. }
  1737. {
  1738. if (wx.canIUse && !wx.canIUse('nextTick')) {// 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  1739. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  1740. }
  1741. }
  1742. this.$vm = vm;
  1743. this.$vm.$mp = {
  1744. app: this };
  1745. this.$vm.$scope = this;
  1746. // vm 上也挂载 globalData
  1747. this.$vm.globalData = this.globalData;
  1748. this.$vm._isMounted = true;
  1749. this.$vm.__call_hook('mounted', args);
  1750. this.$vm.__call_hook('onLaunch', args);
  1751. } };
  1752. // 兼容旧版本 globalData
  1753. appOptions.globalData = vm.$options.globalData || {};
  1754. // 将 methods 中的方法挂在 getApp() 中
  1755. var methods = vm.$options.methods;
  1756. if (methods) {
  1757. Object.keys(methods).forEach(function (name) {
  1758. appOptions[name] = methods[name];
  1759. });
  1760. }
  1761. initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
  1762. initHooks(appOptions, hooks);
  1763. initUnknownHooks(appOptions, vm.$options);
  1764. return appOptions;
  1765. }
  1766. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1767. function findVmByVueId(vm, vuePid) {
  1768. var $children = vm.$children;
  1769. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1770. for (var i = $children.length - 1; i >= 0; i--) {
  1771. var childVm = $children[i];
  1772. if (childVm.$scope._$vueId === vuePid) {
  1773. return childVm;
  1774. }
  1775. }
  1776. // 反向递归查找
  1777. var parentVm;
  1778. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1779. parentVm = findVmByVueId($children[_i], vuePid);
  1780. if (parentVm) {
  1781. return parentVm;
  1782. }
  1783. }
  1784. }
  1785. function initBehavior(options) {
  1786. return Behavior(options);
  1787. }
  1788. function isPage() {
  1789. return !!this.route;
  1790. }
  1791. function initRelation(detail) {
  1792. this.triggerEvent('__l', detail);
  1793. }
  1794. function selectAllComponents(mpInstance, selector, $refs) {
  1795. var components = mpInstance.selectAllComponents(selector);
  1796. components.forEach(function (component) {
  1797. var ref = component.dataset.ref;
  1798. $refs[ref] = component.$vm || component;
  1799. {
  1800. if (component.dataset.vueGeneric === 'scoped') {
  1801. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1802. selectAllComponents(scopedComponent, selector, $refs);
  1803. });
  1804. }
  1805. }
  1806. });
  1807. }
  1808. function initRefs(vm) {
  1809. var mpInstance = vm.$scope;
  1810. Object.defineProperty(vm, '$refs', {
  1811. get: function get() {
  1812. var $refs = {};
  1813. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1814. // TODO 暂不考虑 for 中的 scoped
  1815. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for');
  1816. forComponents.forEach(function (component) {
  1817. var ref = component.dataset.ref;
  1818. if (!$refs[ref]) {
  1819. $refs[ref] = [];
  1820. }
  1821. $refs[ref].push(component.$vm || component);
  1822. });
  1823. return $refs;
  1824. } });
  1825. }
  1826. function handleLink(event) {var _ref4 =
  1827. event.detail || event.value,vuePid = _ref4.vuePid,vueOptions = _ref4.vueOptions; // detail 是微信,value 是百度(dipatch)
  1828. var parentVm;
  1829. if (vuePid) {
  1830. parentVm = findVmByVueId(this.$vm, vuePid);
  1831. }
  1832. if (!parentVm) {
  1833. parentVm = this.$vm;
  1834. }
  1835. vueOptions.parent = parentVm;
  1836. }
  1837. function parseApp(vm) {
  1838. return parseBaseApp(vm, {
  1839. mocks: mocks,
  1840. initRefs: initRefs });
  1841. }
  1842. function createApp(vm) {
  1843. App(parseApp(vm));
  1844. return vm;
  1845. }
  1846. var encodeReserveRE = /[!'()*]/g;
  1847. var encodeReserveReplacer = function encodeReserveReplacer(c) {return '%' + c.charCodeAt(0).toString(16);};
  1848. var commaRE = /%2C/g;
  1849. // fixed encodeURIComponent which is more conformant to RFC3986:
  1850. // - escapes [!'()*]
  1851. // - preserve commas
  1852. var encode = function encode(str) {return encodeURIComponent(str).
  1853. replace(encodeReserveRE, encodeReserveReplacer).
  1854. replace(commaRE, ',');};
  1855. function stringifyQuery(obj) {var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  1856. var res = obj ? Object.keys(obj).map(function (key) {
  1857. var val = obj[key];
  1858. if (val === undefined) {
  1859. return '';
  1860. }
  1861. if (val === null) {
  1862. return encodeStr(key);
  1863. }
  1864. if (Array.isArray(val)) {
  1865. var result = [];
  1866. val.forEach(function (val2) {
  1867. if (val2 === undefined) {
  1868. return;
  1869. }
  1870. if (val2 === null) {
  1871. result.push(encodeStr(key));
  1872. } else {
  1873. result.push(encodeStr(key) + '=' + encodeStr(val2));
  1874. }
  1875. });
  1876. return result.join('&');
  1877. }
  1878. return encodeStr(key) + '=' + encodeStr(val);
  1879. }).filter(function (x) {return x.length > 0;}).join('&') : null;
  1880. return res ? "?".concat(res) : '';
  1881. }
  1882. function parseBaseComponent(vueComponentOptions)
  1883. {var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},isPage = _ref5.isPage,initRelation = _ref5.initRelation;var _initVueComponent =
  1884. initVueComponent(_vue.default, vueComponentOptions),_initVueComponent2 = _slicedToArray(_initVueComponent, 2),VueComponent = _initVueComponent2[0],vueOptions = _initVueComponent2[1];
  1885. var options = _objectSpread({
  1886. multipleSlots: true,
  1887. addGlobalClass: true },
  1888. vueOptions.options || {});
  1889. {
  1890. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  1891. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  1892. Object.assign(options, vueOptions['mp-weixin'].options);
  1893. }
  1894. }
  1895. var componentOptions = {
  1896. options: options,
  1897. data: initData(vueOptions, _vue.default.prototype),
  1898. behaviors: initBehaviors(vueOptions, initBehavior),
  1899. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  1900. lifetimes: {
  1901. attached: function attached() {
  1902. var properties = this.properties;
  1903. var options = {
  1904. mpType: isPage.call(this) ? 'page' : 'component',
  1905. mpInstance: this,
  1906. propsData: properties };
  1907. initVueIds(properties.vueId, this);
  1908. // 处理父子关系
  1909. initRelation.call(this, {
  1910. vuePid: this._$vuePid,
  1911. vueOptions: options });
  1912. // 初始化 vue 实例
  1913. this.$vm = new VueComponent(options);
  1914. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  1915. initSlots(this.$vm, properties.vueSlots);
  1916. // 触发首次 setData
  1917. this.$vm.$mount();
  1918. },
  1919. ready: function ready() {
  1920. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  1921. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  1922. if (this.$vm) {
  1923. this.$vm._isMounted = true;
  1924. this.$vm.__call_hook('mounted');
  1925. this.$vm.__call_hook('onReady');
  1926. }
  1927. },
  1928. detached: function detached() {
  1929. this.$vm && this.$vm.$destroy();
  1930. } },
  1931. pageLifetimes: {
  1932. show: function show(args) {
  1933. this.$vm && this.$vm.__call_hook('onPageShow', args);
  1934. },
  1935. hide: function hide() {
  1936. this.$vm && this.$vm.__call_hook('onPageHide');
  1937. },
  1938. resize: function resize(size) {
  1939. this.$vm && this.$vm.__call_hook('onPageResize', size);
  1940. } },
  1941. methods: {
  1942. __l: handleLink,
  1943. __e: handleEvent } };
  1944. // externalClasses
  1945. if (vueOptions.externalClasses) {
  1946. componentOptions.externalClasses = vueOptions.externalClasses;
  1947. }
  1948. if (Array.isArray(vueOptions.wxsCallMethods)) {
  1949. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  1950. componentOptions.methods[callMethod] = function (args) {
  1951. return this.$vm[callMethod](args);
  1952. };
  1953. });
  1954. }
  1955. if (isPage) {
  1956. return componentOptions;
  1957. }
  1958. return [componentOptions, VueComponent];
  1959. }
  1960. function parseComponent(vueComponentOptions) {
  1961. return parseBaseComponent(vueComponentOptions, {
  1962. isPage: isPage,
  1963. initRelation: initRelation });
  1964. }
  1965. var hooks$1 = [
  1966. 'onShow',
  1967. 'onHide',
  1968. 'onUnload'];
  1969. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  1970. function parseBasePage(vuePageOptions, _ref6)
  1971. {var isPage = _ref6.isPage,initRelation = _ref6.initRelation;
  1972. var pageOptions = parseComponent(vuePageOptions);
  1973. initHooks(pageOptions.methods, hooks$1, vuePageOptions);
  1974. pageOptions.methods.onLoad = function (query) {
  1975. this.options = query;
  1976. var copyQuery = Object.assign({}, query);
  1977. delete copyQuery.__id__;
  1978. this.$page = {
  1979. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery) };
  1980. this.$vm.$mp.query = query; // 兼容 mpvue
  1981. this.$vm.__call_hook('onLoad', query);
  1982. };
  1983. {
  1984. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  1985. }
  1986. return pageOptions;
  1987. }
  1988. function parsePage(vuePageOptions) {
  1989. return parseBasePage(vuePageOptions, {
  1990. isPage: isPage,
  1991. initRelation: initRelation });
  1992. }
  1993. function createPage(vuePageOptions) {
  1994. {
  1995. return Component(parsePage(vuePageOptions));
  1996. }
  1997. }
  1998. function createComponent(vueOptions) {
  1999. {
  2000. return Component(parseComponent(vueOptions));
  2001. }
  2002. }
  2003. function createSubpackageApp(vm) {
  2004. var appOptions = parseApp(vm);
  2005. var app = getApp({
  2006. allowDefault: true });
  2007. vm.$scope = app;
  2008. var globalData = app.globalData;
  2009. if (globalData) {
  2010. Object.keys(appOptions.globalData).forEach(function (name) {
  2011. if (!hasOwn(globalData, name)) {
  2012. globalData[name] = appOptions.globalData[name];
  2013. }
  2014. });
  2015. }
  2016. Object.keys(appOptions).forEach(function (name) {
  2017. if (!hasOwn(app, name)) {
  2018. app[name] = appOptions[name];
  2019. }
  2020. });
  2021. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2022. wx.onAppShow(function () {for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {args[_key5] = arguments[_key5];}
  2023. vm.__call_hook('onShow', args);
  2024. });
  2025. }
  2026. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2027. wx.onAppHide(function () {for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {args[_key6] = arguments[_key6];}
  2028. vm.__call_hook('onHide', args);
  2029. });
  2030. }
  2031. if (isFn(appOptions.onLaunch)) {
  2032. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2033. vm.__call_hook('onLaunch', args);
  2034. }
  2035. return vm;
  2036. }
  2037. function createPlugin(vm) {
  2038. var appOptions = parseApp(vm);
  2039. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2040. wx.onAppShow(function () {for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {args[_key7] = arguments[_key7];}
  2041. vm.__call_hook('onShow', args);
  2042. });
  2043. }
  2044. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2045. wx.onAppHide(function () {for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {args[_key8] = arguments[_key8];}
  2046. vm.__call_hook('onHide', args);
  2047. });
  2048. }
  2049. if (isFn(appOptions.onLaunch)) {
  2050. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2051. vm.__call_hook('onLaunch', args);
  2052. }
  2053. return vm;
  2054. }
  2055. todos.forEach(function (todoApi) {
  2056. protocols[todoApi] = false;
  2057. });
  2058. canIUses.forEach(function (canIUseApi) {
  2059. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name :
  2060. canIUseApi;
  2061. if (!wx.canIUse(apiName)) {
  2062. protocols[canIUseApi] = false;
  2063. }
  2064. });
  2065. var uni = {};
  2066. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  2067. uni = new Proxy({}, {
  2068. get: function get(target, name) {
  2069. if (hasOwn(target, name)) {
  2070. return target[name];
  2071. }
  2072. if (baseApi[name]) {
  2073. return baseApi[name];
  2074. }
  2075. if (api[name]) {
  2076. return promisify(name, api[name]);
  2077. }
  2078. {
  2079. if (extraApi[name]) {
  2080. return promisify(name, extraApi[name]);
  2081. }
  2082. if (todoApis[name]) {
  2083. return promisify(name, todoApis[name]);
  2084. }
  2085. }
  2086. if (eventApi[name]) {
  2087. return eventApi[name];
  2088. }
  2089. if (!hasOwn(wx, name) && !hasOwn(protocols, name)) {
  2090. return;
  2091. }
  2092. return promisify(name, wrapper(name, wx[name]));
  2093. },
  2094. set: function set(target, name, value) {
  2095. target[name] = value;
  2096. return true;
  2097. } });
  2098. } else {
  2099. Object.keys(baseApi).forEach(function (name) {
  2100. uni[name] = baseApi[name];
  2101. });
  2102. {
  2103. Object.keys(todoApis).forEach(function (name) {
  2104. uni[name] = promisify(name, todoApis[name]);
  2105. });
  2106. Object.keys(extraApi).forEach(function (name) {
  2107. uni[name] = promisify(name, todoApis[name]);
  2108. });
  2109. }
  2110. Object.keys(eventApi).forEach(function (name) {
  2111. uni[name] = eventApi[name];
  2112. });
  2113. Object.keys(api).forEach(function (name) {
  2114. uni[name] = promisify(name, api[name]);
  2115. });
  2116. Object.keys(wx).forEach(function (name) {
  2117. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  2118. uni[name] = promisify(name, wrapper(name, wx[name]));
  2119. }
  2120. });
  2121. }
  2122. wx.createApp = createApp;
  2123. wx.createPage = createPage;
  2124. wx.createComponent = createComponent;
  2125. wx.createSubpackageApp = createSubpackageApp;
  2126. wx.createPlugin = createPlugin;
  2127. var uni$1 = uni;var _default =
  2128. uni$1;exports.default = _default;
  2129. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 2)))
  2130. /***/ }),
  2131. /***/ 109:
  2132. /*!****************************************************************!*\
  2133. !*** D:/yzm/worknew/wardrobe/js_sdk/mmmm-image-tools/index.js ***!
  2134. \****************************************************************/
  2135. /*! no static exports found */
  2136. /***/ (function(module, exports, __webpack_require__) {
  2137. "use strict";
  2138. Object.defineProperty(exports, "__esModule", { value: true });exports.pathToBase64 = pathToBase64;exports.base64ToPath = base64ToPath;function getLocalFilePath(path) {
  2139. if (path.indexOf('_www') === 0 || path.indexOf('_doc') === 0 || path.indexOf('_documents') === 0 || path.indexOf('_downloads') === 0) {
  2140. return path;
  2141. }
  2142. if (path.indexOf('file://') === 0) {
  2143. return path;
  2144. }
  2145. if (path.indexOf('/storage/emulated/0/') === 0) {
  2146. return path;
  2147. }
  2148. if (path.indexOf('/') === 0) {
  2149. var localFilePath = plus.io.convertAbsoluteFileSystem(path);
  2150. if (localFilePath !== path) {
  2151. return localFilePath;
  2152. } else {
  2153. path = path.substr(1);
  2154. }
  2155. }
  2156. return '_www/' + path;
  2157. }
  2158. function dataUrlToBase64(str) {
  2159. var array = str.split(',');
  2160. return array[array.length - 1];
  2161. }
  2162. var index = 0;
  2163. function getNewFileId() {
  2164. return Date.now() + String(index++);
  2165. }
  2166. function biggerThan(v1, v2) {
  2167. var v1Array = v1.split('.');
  2168. var v2Array = v2.split('.');
  2169. var update = false;
  2170. for (var index = 0; index < v2Array.length; index++) {
  2171. var diff = v1Array[index] - v2Array[index];
  2172. if (diff !== 0) {
  2173. update = diff > 0;
  2174. break;
  2175. }
  2176. }
  2177. return update;
  2178. }
  2179. function pathToBase64(path) {
  2180. return new Promise(function (resolve, reject) {
  2181. if (typeof window === 'object' && 'document' in window) {
  2182. if (typeof FileReader === 'function') {
  2183. var xhr = new XMLHttpRequest();
  2184. xhr.open('GET', path, true);
  2185. xhr.responseType = 'blob';
  2186. xhr.onload = function () {
  2187. if (this.status === 200) {
  2188. var fileReader = new FileReader();
  2189. fileReader.onload = function (e) {
  2190. resolve(e.target.result);
  2191. };
  2192. fileReader.onerror = reject;
  2193. fileReader.readAsDataURL(this.response);
  2194. }
  2195. };
  2196. xhr.onerror = reject;
  2197. xhr.send();
  2198. return;
  2199. }
  2200. var canvas = document.createElement('canvas');
  2201. var c2x = canvas.getContext('2d');
  2202. var img = new Image();
  2203. img.onload = function () {
  2204. canvas.width = img.width;
  2205. canvas.height = img.height;
  2206. c2x.drawImage(img, 0, 0);
  2207. resolve(canvas.toDataURL());
  2208. canvas.height = canvas.width = 0;
  2209. };
  2210. img.onerror = reject;
  2211. img.src = path;
  2212. return;
  2213. }
  2214. if (typeof plus === 'object') {
  2215. plus.io.resolveLocalFileSystemURL(getLocalFilePath(path), function (entry) {
  2216. entry.file(function (file) {
  2217. var fileReader = new plus.io.FileReader();
  2218. fileReader.onload = function (data) {
  2219. resolve(data.target.result);
  2220. };
  2221. fileReader.onerror = function (error) {
  2222. reject(error);
  2223. };
  2224. fileReader.readAsDataURL(file);
  2225. }, function (error) {
  2226. reject(error);
  2227. });
  2228. }, function (error) {
  2229. reject(error);
  2230. });
  2231. return;
  2232. }
  2233. if (typeof wx === 'object' && wx.canIUse('getFileSystemManager')) {
  2234. wx.getFileSystemManager().readFile({
  2235. filePath: path,
  2236. encoding: 'base64',
  2237. success: function success(res) {
  2238. resolve('data:image/png;base64,' + res.data);
  2239. },
  2240. fail: function fail(error) {
  2241. reject(error);
  2242. } });
  2243. return;
  2244. }
  2245. reject(new Error('not support'));
  2246. });
  2247. }
  2248. function base64ToPath(base64) {
  2249. return new Promise(function (resolve, reject) {
  2250. if (typeof window === 'object' && 'document' in window) {
  2251. base64 = base64.split(',');
  2252. var type = base64[0].match(/:(.*?);/)[1];
  2253. var str = atob(base64[1]);
  2254. var n = str.length;
  2255. var array = new Uint8Array(n);
  2256. while (n--) {
  2257. array[n] = str.charCodeAt(n);
  2258. }
  2259. return resolve((window.URL || window.webkitURL).createObjectURL(new Blob([array], { type: type })));
  2260. }
  2261. var extName = base64.split(',')[0].match(/data\:\S+\/(\S+);/);
  2262. if (extName) {
  2263. extName = extName[1];
  2264. } else {
  2265. reject(new Error('base64 error'));
  2266. }
  2267. var fileName = getNewFileId() + '.' + extName;
  2268. if (typeof plus === 'object') {
  2269. var basePath = '_doc';
  2270. var dirPath = 'uniapp_temp';
  2271. var filePath = basePath + '/' + dirPath + '/' + fileName;
  2272. if (!biggerThan(plus.os.name === 'Android' ? '1.9.9.80627' : '1.9.9.80472', plus.runtime.innerVersion)) {
  2273. plus.io.resolveLocalFileSystemURL(basePath, function (entry) {
  2274. entry.getDirectory(dirPath, {
  2275. create: true,
  2276. exclusive: false },
  2277. function (entry) {
  2278. entry.getFile(fileName, {
  2279. create: true,
  2280. exclusive: false },
  2281. function (entry) {
  2282. entry.createWriter(function (writer) {
  2283. writer.onwrite = function () {
  2284. resolve(filePath);
  2285. };
  2286. writer.onerror = reject;
  2287. writer.seek(0);
  2288. writer.writeAsBinary(dataUrlToBase64(base64));
  2289. }, reject);
  2290. }, reject);
  2291. }, reject);
  2292. }, reject);
  2293. return;
  2294. }
  2295. var bitmap = new plus.nativeObj.Bitmap(fileName);
  2296. bitmap.loadBase64Data(base64, function () {
  2297. bitmap.save(filePath, {}, function () {
  2298. bitmap.clear();
  2299. resolve(filePath);
  2300. }, function (error) {
  2301. bitmap.clear();
  2302. reject(error);
  2303. });
  2304. }, function (error) {
  2305. bitmap.clear();
  2306. reject(error);
  2307. });
  2308. return;
  2309. }
  2310. if (typeof wx === 'object' && wx.canIUse('getFileSystemManager')) {
  2311. var filePath = wx.env.USER_DATA_PATH + '/' + fileName;
  2312. wx.getFileSystemManager().writeFile({
  2313. filePath: filePath,
  2314. data: dataUrlToBase64(base64),
  2315. encoding: 'base64',
  2316. success: function success() {
  2317. resolve(filePath);
  2318. },
  2319. fail: function fail(error) {
  2320. reject(error);
  2321. } });
  2322. return;
  2323. }
  2324. reject(new Error('not support'));
  2325. });
  2326. }
  2327. /***/ }),
  2328. /***/ 11:
  2329. /*!**********************************************************************************************************!*\
  2330. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  2331. \**********************************************************************************************************/
  2332. /*! exports provided: default */
  2333. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2334. "use strict";
  2335. __webpack_require__.r(__webpack_exports__);
  2336. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  2337. /* globals __VUE_SSR_CONTEXT__ */
  2338. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  2339. // This module is a runtime utility for cleaner component module output and will
  2340. // be included in the final webpack user bundle.
  2341. function normalizeComponent (
  2342. scriptExports,
  2343. render,
  2344. staticRenderFns,
  2345. functionalTemplate,
  2346. injectStyles,
  2347. scopeId,
  2348. moduleIdentifier, /* server only */
  2349. shadowMode, /* vue-cli only */
  2350. components, // fixed by xxxxxx auto components
  2351. renderjs // fixed by xxxxxx renderjs
  2352. ) {
  2353. // Vue.extend constructor export interop
  2354. var options = typeof scriptExports === 'function'
  2355. ? scriptExports.options
  2356. : scriptExports
  2357. // fixed by xxxxxx auto components
  2358. if (components) {
  2359. if (!options.components) {
  2360. options.components = {}
  2361. }
  2362. var hasOwn = Object.prototype.hasOwnProperty
  2363. for (var name in components) {
  2364. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  2365. options.components[name] = components[name]
  2366. }
  2367. }
  2368. }
  2369. // fixed by xxxxxx renderjs
  2370. if (renderjs) {
  2371. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  2372. this[renderjs.__module] = this
  2373. });
  2374. (options.mixins || (options.mixins = [])).push(renderjs)
  2375. }
  2376. // render functions
  2377. if (render) {
  2378. options.render = render
  2379. options.staticRenderFns = staticRenderFns
  2380. options._compiled = true
  2381. }
  2382. // functional template
  2383. if (functionalTemplate) {
  2384. options.functional = true
  2385. }
  2386. // scopedId
  2387. if (scopeId) {
  2388. options._scopeId = 'data-v-' + scopeId
  2389. }
  2390. var hook
  2391. if (moduleIdentifier) { // server build
  2392. hook = function (context) {
  2393. // 2.3 injection
  2394. context =
  2395. context || // cached call
  2396. (this.$vnode && this.$vnode.ssrContext) || // stateful
  2397. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  2398. // 2.2 with runInNewContext: true
  2399. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  2400. context = __VUE_SSR_CONTEXT__
  2401. }
  2402. // inject component styles
  2403. if (injectStyles) {
  2404. injectStyles.call(this, context)
  2405. }
  2406. // register component module identifier for async chunk inferrence
  2407. if (context && context._registeredComponents) {
  2408. context._registeredComponents.add(moduleIdentifier)
  2409. }
  2410. }
  2411. // used by ssr in case component is cached and beforeCreate
  2412. // never gets called
  2413. options._ssrRegister = hook
  2414. } else if (injectStyles) {
  2415. hook = shadowMode
  2416. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  2417. : injectStyles
  2418. }
  2419. if (hook) {
  2420. if (options.functional) {
  2421. // for template-only hot-reload because in that case the render fn doesn't
  2422. // go through the normalizer
  2423. options._injectStyles = hook
  2424. // register for functioal component in vue file
  2425. var originalRender = options.render
  2426. options.render = function renderWithStyleInjection (h, context) {
  2427. hook.call(context)
  2428. return originalRender(h, context)
  2429. }
  2430. } else {
  2431. // inject component registration as beforeCreate hook
  2432. var existing = options.beforeCreate
  2433. options.beforeCreate = existing
  2434. ? [].concat(existing, hook)
  2435. : [hook]
  2436. }
  2437. }
  2438. return {
  2439. exports: scriptExports,
  2440. options: options
  2441. }
  2442. }
  2443. /***/ }),
  2444. /***/ 12:
  2445. /*!***************************************************!*\
  2446. !*** D:/yzm/worknew/wardrobe/tm-vuetify/index.js ***!
  2447. \***************************************************/
  2448. /*! no static exports found */
  2449. /***/ (function(module, exports, __webpack_require__) {
  2450. "use strict";
  2451. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  2452. var _mixin = _interopRequireDefault(__webpack_require__(/*! ./tool/mixin/mixin.js */ 13));
  2453. var _index = _interopRequireDefault(__webpack_require__(/*! ./tool/function/dayjs/index */ 17));
  2454. var _util = _interopRequireDefault(__webpack_require__(/*! ./tool/function/util */ 15));
  2455. var _guid = _interopRequireDefault(__webpack_require__(/*! ./tool/function/guid.js */ 23));
  2456. var _sleep = _interopRequireDefault(__webpack_require__(/*! ./tool/function/sleep.js */ 24));
  2457. var _randomArray = _interopRequireDefault(__webpack_require__(/*! ./tool/function/randomArray.js */ 25));
  2458. var _deepClone = _interopRequireDefault(__webpack_require__(/*! ./tool/function/deepClone.js */ 26));
  2459. var _deepMerge = _interopRequireDefault(__webpack_require__(/*! ./tool/function/deepMerge.js */ 27));
  2460. var _test = _interopRequireDefault(__webpack_require__(/*! ./tool/function/test.js */ 28));
  2461. var _random = _interopRequireDefault(__webpack_require__(/*! ./tool/function/random.js */ 29));
  2462. var _trim = _interopRequireDefault(__webpack_require__(/*! ./tool/function/trim.js */ 30));
  2463. var _toast = _interopRequireDefault(__webpack_require__(/*! ./tool/function/toast.js */ 31));
  2464. var _getParent = _interopRequireDefault(__webpack_require__(/*! ./tool/function/getParent.js */ 32));
  2465. var _getParentAttr = _interopRequireDefault(__webpack_require__(/*! ./tool/function/getParentAttr.js */ 33));
  2466. var _getParentAls = _interopRequireDefault(__webpack_require__(/*! ./tool/function/getParentAls.js */ 34));
  2467. var _upload = _interopRequireDefault(__webpack_require__(/*! ./tool/function/upload.js */ 35));
  2468. var _preview = _interopRequireDefault(__webpack_require__(/*! ./tool/function/preview.js */ 16));
  2469. var _objToString = __webpack_require__(/*! ./tool/function/objToString.js */ 39);
  2470. var _calendar = _interopRequireDefault(__webpack_require__(/*! ./tool/function/calendar.js */ 40));
  2471. var _signBoard = _interopRequireDefault(__webpack_require__(/*! ./tool/function/signBoard.js */ 41));
  2472. var _choujianggailv = _interopRequireDefault(__webpack_require__(/*! ./tool/function/choujianggailv.js */ 42));
  2473. var _config = _interopRequireDefault(__webpack_require__(/*! ./tool/config/config.js */ 43));
  2474. var _tmVuetify = _interopRequireDefault(__webpack_require__(/*! ./tool/store/tm-vuetify */ 44));
  2475. var _vuex = _interopRequireDefault(__webpack_require__(/*! ./tool/function/vuex.js */ 48));
  2476. var _theme = _interopRequireDefault(__webpack_require__(/*! ./tool/function/theme.js */ 49));
  2477. var _index2 = _interopRequireDefault(__webpack_require__(/*! ./tool/request/index */ 50));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}
  2478. var $tm = {
  2479. sleep: _sleep.default,
  2480. request: _index2.default,
  2481. objToString: _objToString.objToString,
  2482. dayjs: _index.default.dayjs,
  2483. guid: _guid.default,
  2484. upload: _upload.default,
  2485. preview: _preview.default,
  2486. randomArray: _randomArray.default,
  2487. test: _test.default,
  2488. random: _random.default,
  2489. deepClone: _deepClone.default,
  2490. deepMerge: _deepMerge.default,
  2491. getParent: _getParent.default,
  2492. getParentAttr: _getParentAttr.default,
  2493. getParentAls: _getParentAls.default,
  2494. trim: _trim.default,
  2495. toast: _toast.default,
  2496. config: _config.default,
  2497. calendar: _calendar.default,
  2498. HandwritingSelf: _signBoard.default,
  2499. choujiang: _choujianggailv.default,
  2500. vx: new _vuex.default(_tmVuetify.default),
  2501. theme: _theme.default,
  2502. u: _util.default };
  2503. uni.$tm = $tm;
  2504. var install = function install(Vue) {
  2505. Vue.mixin(_mixin.default);
  2506. Vue.prototype.$tm = _objectSpread({}, $tm);
  2507. // Vue.prototype.$store = store
  2508. };var _default =
  2509. {
  2510. install: install };exports.default = _default;
  2511. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  2512. /***/ }),
  2513. /***/ 13:
  2514. /*!**************************************************************!*\
  2515. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/mixin/mixin.js ***!
  2516. \**************************************************************/
  2517. /*! no static exports found */
  2518. /***/ (function(module, exports, __webpack_require__) {
  2519. "use strict";
  2520. /* WEBPACK VAR INJECTION */(function(uni) {var _wxshare = _interopRequireDefault(__webpack_require__(/*! ../function/wxshare.js */ 14));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}
  2521. module.exports = _objectSpread(_objectSpread({},
  2522. _wxshare.default.sharebywx), {}, {
  2523. data: function data() {
  2524. return {
  2525. tmVueTifly_pages: '' };
  2526. },
  2527. created: function created() {
  2528. this.setVueTiflyThemeBlack();
  2529. },
  2530. onShow: function onShow() {
  2531. var urls = getCurrentPages();
  2532. if (urls.length > 0) {
  2533. var url = urls[urls.length - 1].$page.fullPath;
  2534. if (url[0] != '/') url = '/' + url;
  2535. url = url.split('?')[0];
  2536. uni.$tm.vx.commit('setPageNow', url);
  2537. }
  2538. this.setVueTiflyThemeBlack();
  2539. },
  2540. onLoad: function onLoad() {
  2541. // this.$tm.vx.commit('setWxShare',{title:'hhhhh'})
  2542. },
  2543. methods: {
  2544. setVueTiflyThemeBlack: function setVueTiflyThemeBlack() {
  2545. var vueTifly_black = this.$tm.vx.state().tmVuetify.black;
  2546. if (vueTifly_black === true) {
  2547. uni.setTabBarStyle({
  2548. backgroundColor: "#1B1B1B" });
  2549. } else {
  2550. uni.setTabBarStyle({
  2551. backgroundColor: "#FFFFFF" });
  2552. }
  2553. },
  2554. // ...mapMutations(['setTmVuetifyColor', 'setTmVuetifyBlack']),
  2555. // 检测提供的字符串是否是颜色值还是颜色主题。true,表示颜色主题名称。否则为false.
  2556. $TestColor: function $TestColor(color) {
  2557. if (typeof color !== 'string') return false;
  2558. if (color.indexOf('rgb') > -1 || color.indexOf('rgba') > -1 || color.indexOf('#') > -1) {
  2559. return {
  2560. theme: false,
  2561. color: color };
  2562. } else {
  2563. return {
  2564. theme: true,
  2565. color: color };
  2566. }
  2567. },
  2568. // 检查给定的值。如果是带有vw,vh,rem,em,upx,rpx,%则返回.如果是px,或者45数字,则转换为upx单位的数值。
  2569. $TestUnit: function $TestUnit(n) {
  2570. if (typeof n !== 'string' && typeof n !== 'number') return 0;
  2571. if (typeof n === 'number') return {
  2572. type: 'number',
  2573. value: uni.upx2px(n) };
  2574. var reg = /(vw|vh|rem|em|\%|upx|rpx|auto|px)/g;
  2575. if (reg.test(n)) {
  2576. return {
  2577. type: 'string',
  2578. value: n };
  2579. }
  2580. var num = parseFloat(n);
  2581. if (isNaN(n)) return 0;
  2582. return {
  2583. type: 'number',
  2584. value: uni.upx2px(n) };
  2585. },
  2586. $Querey: function $Querey(clsaaName, t) {var _this = this;var ycnum = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 50;var isAll = arguments.length > 3 ? arguments[3] : undefined;
  2587. return new Promise(function (rs, rj) {
  2588. if (isAll == true) {
  2589. uni.$tm.sleep(ycnum).then(function (r) {
  2590. uni.createSelectorQuery().in(t ? t : _this).selectAll(clsaaName).
  2591. boundingClientRect().exec(
  2592. function (res) {
  2593. rs(res);
  2594. });
  2595. });
  2596. } else {
  2597. uni.$tm.sleep(ycnum).then(function (r) {
  2598. uni.createSelectorQuery().in(t ? t : _this).select(clsaaName).
  2599. boundingClientRect().exec(
  2600. function (res) {
  2601. rs(res);
  2602. });
  2603. });
  2604. }
  2605. // console.log(ycnum);
  2606. });
  2607. } },
  2608. onPageScroll: function onPageScroll(e) {
  2609. /**
  2610. * 此全局注册用于在组件顶部,监听下拉状况以解决渐变透明的功能。
  2611. * 组件:tm-menubars能用到。
  2612. */
  2613. uni.$emit('onPageScroll', e);
  2614. },
  2615. onReachBottom: function onReachBottom() {
  2616. },
  2617. beforeDestroy: function beforeDestroy() {
  2618. } });
  2619. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  2620. /***/ }),
  2621. /***/ 14:
  2622. /*!*******************************************************************!*\
  2623. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/function/wxshare.js ***!
  2624. \*******************************************************************/
  2625. /*! no static exports found */
  2626. /***/ (function(module, exports, __webpack_require__) {
  2627. "use strict";
  2628. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _util = _interopRequireDefault(__webpack_require__(/*! ./util */ 15));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}
  2629. /**
  2630. * 微信小程序分享功能。
  2631. */
  2632. var cfg = function cfg() {
  2633. var config = _objectSpread({},
  2634. this.$tm.vx.store.state.tmVuetify.wxshareConfig_miniMp || {});
  2635. if (typeof config.query !== 'object') config.query = {};
  2636. //获取当前路径。
  2637. if (!config.path) {
  2638. var cur = getCurrentPages();
  2639. config.path = cur[cur.length - 1].route;
  2640. config.path = (config.path[0] == '/' ? '' : '/') + config.path;
  2641. config.copyLink = config.path;
  2642. }
  2643. // util.httpUrlAddKey
  2644. var query = '';
  2645. for (var key in config.query) {
  2646. if (config.hasOwnProperty.call(config.query, key)) {
  2647. var element = config.query[key];
  2648. query = _util.default.httpUrlAddKey(query, key, element);
  2649. }
  2650. }
  2651. config.copyLink = config.path = config.path + query;
  2652. config.query = query;
  2653. return config;
  2654. };
  2655. var sharebywx = {
  2656. onShareAppMessage: function onShareAppMessage() {
  2657. var cg = cfg.call(this) || {};
  2658. return _objectSpread({}, cg);
  2659. },
  2660. onShareTimeline: function onShareTimeline() {
  2661. var cg = cfg.call(this) || {};
  2662. return _objectSpread({}, cg);
  2663. } };var _default =
  2664. { sharebywx: sharebywx };exports.default = _default;
  2665. /***/ }),
  2666. /***/ 15:
  2667. /*!****************************************************************!*\
  2668. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/function/util.js ***!
  2669. \****************************************************************/
  2670. /*! no static exports found */
  2671. /***/ (function(module, exports, __webpack_require__) {
  2672. "use strict";
  2673. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  2674. var _preview = __webpack_require__(/*! ./preview.js */ 16); /**
  2675. * 预览图片。
  2676. @param {Object} url 必填 当前预览的图片链接。
  2677. @param {Object} list 可以是url数组,也可以是对象,数据比如:["http:url"] or [{url:"https:url",...}]
  2678. @param {Object} rangKey 如果list是对象数组,需要提供url字段。
  2679. */ /**
  2680. * 数据分组
  2681. * @param {Array} oArr - 原数组列表
  2682. * @param {Number} length - 单个数组长度
  2683. * @return {Array} arr - 分组后的新数组
  2684. */function splitData() {var oArr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;var arr = [];var minArr = [];
  2685. oArr.forEach(function (c) {
  2686. if (minArr.length === length) {
  2687. minArr = [];
  2688. }
  2689. if (minArr.length === 0) {
  2690. arr.push(minArr);
  2691. }
  2692. minArr.push(c);
  2693. });
  2694. return arr;
  2695. }
  2696. /**
  2697. * 剩余时间格式化
  2698. * @param {Number} t - 剩余多少秒
  2699. * @return {Object} format - 格式后的天时分秒对象
  2700. */
  2701. function timeMuch(t) {
  2702. var format = {
  2703. d: '00',
  2704. h: '00',
  2705. m: '00',
  2706. s: '00' };
  2707. if (t > 0) {
  2708. var d = Math.floor(t / 86400);
  2709. var h = Math.floor(t / 3600 % 24);
  2710. var m = Math.floor(t / 60 % 60);
  2711. var s = Math.floor(t % 60);
  2712. format.d = d < 10 ? '0' + d : d;
  2713. format.h = h < 10 ? '0' + h : h;
  2714. format.m = m < 10 ? '0' + m : m;
  2715. format.s = s < 10 ? '0' + s : s;
  2716. }
  2717. return format;
  2718. }
  2719. /**
  2720. * 打电话
  2721. * @param {String<Number>} phoneNumber - 数字字符串
  2722. * @return {Promise}
  2723. */
  2724. function callPhone() {var phoneNumber = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  2725. var num = phoneNumber.toString();
  2726. return new Promise(function (rs, rj) {
  2727. uni.makePhoneCall({
  2728. phoneNumber: num,
  2729. success: function success() {return rs();},
  2730. fail: function fail(err) {return rj(err);} });
  2731. });
  2732. }
  2733. /**
  2734. * 调起客户端相机扫码。
  2735. * @param {Boolean} onlyFromCamera true 是否只允许相机扫码识别
  2736. * @param {Array<string>} scanType ['barCode', 'qrCode', 'datamatrix','datamatrix']
  2737. * @returns Promise 成功返回相关数据结构
  2738. */
  2739. function scanCode() {var onlyFromCamera = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;var scanType = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ['barCode', 'qrCode', 'datamatrix', 'datamatrix'];
  2740. return new Promise(function (rs, rj) {
  2741. uni.scanCode({
  2742. onlyFromCamera: onlyFromCamera,
  2743. scanType: scanType,
  2744. success: function success(res) {return rs(res);},
  2745. fail: function fail(error) {return rj(error);} });
  2746. });
  2747. }
  2748. /**
  2749. * 设置剪切板内容。
  2750. * @param {String} data
  2751. * @returns Promise true/false
  2752. */
  2753. function setClipboardData(data) {
  2754. return new Promise(function (rs, rj) {
  2755. uni.setClipboardData({
  2756. data: data,
  2757. success: function success() {return rs(true);},
  2758. fail: function fail(error) {return rj(error);} });
  2759. });
  2760. }
  2761. /**
  2762. * 获取剪切板内容
  2763. * @returns Promise 剪切板内容
  2764. */
  2765. function getClipboardData() {
  2766. return new Promise(function (rs, rj) {
  2767. uni.getClipboardData({
  2768. success: function success(res) {return rs(res.data);},
  2769. fail: function fail(error) {return rj(error);} });
  2770. });
  2771. }
  2772. /**
  2773. * 设置cookie数据
  2774. * @param {String} key 键值
  2775. * @param {String} data 值
  2776. * @returns Boolean
  2777. */
  2778. function setCookie(key, data) {
  2779. try {
  2780. uni.setStorageSync(key, data);
  2781. return true;
  2782. } catch (e) {
  2783. return false;
  2784. }
  2785. }
  2786. /**
  2787. * 删除一个本地cookie
  2788. * @param {String} key 键值
  2789. * @returns Boolean
  2790. */
  2791. function delCookie(key) {
  2792. try {
  2793. uni.removeStorageSync(key);
  2794. return true;
  2795. } catch (e) {
  2796. return false;
  2797. }
  2798. }
  2799. /**
  2800. * 获取一个cookie数据
  2801. * 如果存入的是对象,返回的也是对象。如果是string返回的也是字符串。
  2802. * @param {String} key 键
  2803. * @returns json/string
  2804. */
  2805. function getCookie(key) {
  2806. try {
  2807. var value = uni.getStorageSync(key);
  2808. try {
  2809. var val = JSON.parse(value);
  2810. return val;
  2811. } catch (e) {
  2812. return value;
  2813. }
  2814. } catch (e) {
  2815. return undefined;
  2816. }
  2817. }
  2818. /**
  2819. * 向地址连接追加参数。
  2820. * @param {string} uri 网址
  2821. * @param {string} key 字段
  2822. * @param {string} value 字段值
  2823. * @returns
  2824. */
  2825. function httpUrlAddKey(uri, key, value) {
  2826. if (!value) {
  2827. return uri;
  2828. }
  2829. var re = new RegExp("([?&])" + key + "=.*?(&|$)", "i");
  2830. var separator = uri.indexOf("?") !== -1 ? "&" : "?";
  2831. if (uri.match(re)) {
  2832. return uri.replace(re, "$1" + key + "=" + value + "$2");
  2833. } else {
  2834. return uri + separator + key + "=" + value;
  2835. }
  2836. }var _default =
  2837. {
  2838. previewImg: _preview.previewImg, //预览图片。
  2839. splitData: splitData, //数据分组
  2840. timeMuch: timeMuch, //剩余时间格式化
  2841. callPhone: callPhone, //打电话
  2842. scanCode: scanCode, //调起客户端相机扫码。
  2843. setClipboardData: setClipboardData, //设置剪切板内容。
  2844. getClipboardData: getClipboardData, //获取剪切板内容
  2845. setCookie: setCookie, //设置cookie数据
  2846. delCookie: delCookie, //删除一个本地cookie
  2847. getCookie: getCookie, //获取一个cookie数据
  2848. httpUrlAddKey: httpUrlAddKey //向地址连接追加参数
  2849. };exports.default = _default;
  2850. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  2851. /***/ }),
  2852. /***/ 16:
  2853. /*!*******************************************************************!*\
  2854. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/function/preview.js ***!
  2855. \*******************************************************************/
  2856. /*! no static exports found */
  2857. /***/ (function(module, exports, __webpack_require__) {
  2858. "use strict";
  2859. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /**
  2860. * 上传文件。
  2861. * 作者:tmzdy
  2862. * 时间:‎2021‎年‎7‎月‎28‎日,‏‎9:14:53
  2863. * 联系:zhongjihan@sina.com
  2864. * 预览图片。
  2865. * @param {Object} url 必填 当前预览的图片链接。
  2866. * @param {Object} list 可以是url数组,也可以是对象,数据比如:["http:url"] or [{url:"https:url",...}]
  2867. * @param {Object} rangKey 如果list是对象数组,需要提供url字段。
  2868. */
  2869. function previewImg(url, list, rangKey) {
  2870. if (!url) {
  2871. uni.$tm.toast("参数有误");
  2872. return;
  2873. }
  2874. if (arguments.length == 1) {
  2875. uni.previewImage({
  2876. current: url,
  2877. urls: list ? list : [url] });
  2878. } else if (arguments.length === 3) {
  2879. if (typeof list[0] === 'object' && typeof list[0] !== 'undefined') {
  2880. var urls = [];
  2881. list.forEach(function (item) {
  2882. urls.push(item[rangKey]);
  2883. });
  2884. uni.previewImage({
  2885. current: url,
  2886. urls: urls,
  2887. fail: function fail(er) {
  2888. console.warn(er);
  2889. } });
  2890. } else if (typeof list[0] === 'string') {
  2891. uni.previewImage({
  2892. current: url,
  2893. urls: list });
  2894. }
  2895. } else {
  2896. uni.$tm.toast("参数有误");
  2897. }
  2898. }var _default =
  2899. previewImg;exports.default = _default;
  2900. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  2901. /***/ }),
  2902. /***/ 17:
  2903. /*!***********************************************************************!*\
  2904. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/function/dayjs/index.js ***!
  2905. \***********************************************************************/
  2906. /*! no static exports found */
  2907. /***/ (function(module, exports, __webpack_require__) {
  2908. "use strict";
  2909. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var pc = __webpack_require__(/*! ./zh-cn.min */ 18);
  2910. var relativeTime = __webpack_require__(/*! ./relativeTime.min */ 20);
  2911. var isBetween = __webpack_require__(/*! ./isBetween.min */ 21);
  2912. var toObject = __webpack_require__(/*! ./toObject.min */ 22);
  2913. var dayjs = __webpack_require__(/*! ./dayjs.min */ 19);
  2914. dayjs.locale(pc);
  2915. // dayjs.locale('zh-cn')
  2916. dayjs.extend(relativeTime);
  2917. dayjs.extend(isBetween);
  2918. dayjs.extend(toObject);var _default =
  2919. { dayjs: dayjs };exports.default = _default;
  2920. /***/ }),
  2921. /***/ 18:
  2922. /*!***************************************************************************!*\
  2923. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/function/dayjs/zh-cn.min.js ***!
  2924. \***************************************************************************/
  2925. /*! no static exports found */
  2926. /***/ (function(module, exports, __webpack_require__) {
  2927. /**
  2928. * Skipped minification because the original files appears to be already minified.
  2929. * Original file: /npm/dayjs@1.10.7/locale/zh-cn.js
  2930. *
  2931. * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
  2932. */
  2933. !function (e, _) { true ? module.exports = _(__webpack_require__(/*! ./dayjs.min */ 19)) : undefined;}(this, function (e) {"use strict";function _(e) {return e && "object" == typeof e && "default" in e ? e : { default: e };}var t = _(e),d = { name: "zh-cn", weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"), weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"), weekdaysMin: "日_一_二_三_四_五_六".split("_"), months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"), monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), ordinal: function ordinal(e, _) {switch (_) {case "W":return e + "周";default:return e + "日";}}, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY年M月D日", LLL: "YYYY年M月D日Ah点mm分", LLLL: "YYYY年M月D日ddddAh点mm分", l: "YYYY/M/D", ll: "YYYY年M月D日", lll: "YYYY年M月D日 HH:mm", llll: "YYYY年M月D日dddd HH:mm" }, relativeTime: { future: "%s后", past: "%s前", s: "几秒", m: "1 分钟", mm: "%d 分钟", h: "1 小时", hh: "%d 小时", d: "1 天", dd: "%d 天", M: "1 个月", MM: "%d 个月", y: "1 年", yy: "%d 年" }, meridiem: function meridiem(e, _) {var t = 100 * e + _;return t < 600 ? "凌晨" : t < 900 ? "早上" : t < 1100 ? "上午" : t < 1300 ? "中午" : t < 1800 ? "下午" : "晚上";} };return t.default.locale(d, null, !0), d;});
  2934. /***/ }),
  2935. /***/ 19:
  2936. /*!***************************************************************************!*\
  2937. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/function/dayjs/dayjs.min.js ***!
  2938. \***************************************************************************/
  2939. /*! no static exports found */
  2940. /***/ (function(module, exports, __webpack_require__) {
  2941. !function (t, e) { true ? module.exports = e() : undefined;}(this, function () {"use strict";var t = 1e3,e = 6e4,n = 36e5,r = "millisecond",i = "second",s = "minute",u = "hour",a = "day",o = "week",f = "month",h = "quarter",c = "year",d = "date",$ = "Invalid Date",l = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_") },m = function m(t, e, n) {var r = String(t);return !r || r.length >= e ? t : "" + Array(e + 1 - r.length).join(n) + t;},g = { s: m, z: function z(t) {var e = -t.utcOffset(),n = Math.abs(e),r = Math.floor(n / 60),i = n % 60;return (e <= 0 ? "+" : "-") + m(r, 2, "0") + ":" + m(i, 2, "0");}, m: function t(e, n) {if (e.date() < n.date()) return -t(n, e);var r = 12 * (n.year() - e.year()) + (n.month() - e.month()),i = e.clone().add(r, f),s = n - i < 0,u = e.clone().add(r + (s ? -1 : 1), f);return +(-(r + (n - i) / (s ? i - u : u - i)) || 0);}, a: function a(t) {return t < 0 ? Math.ceil(t) || 0 : Math.floor(t);}, p: function p(t) {return { M: f, y: c, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: h }[t] || String(t || "").toLowerCase().replace(/s$/, "");}, u: function u(t) {return void 0 === t;} },D = "en",v = {};v[D] = M;var p = function p(t) {return t instanceof _;},S = function S(t, e, n) {var r;if (!t) return D;if ("string" == typeof t) v[t] && (r = t), e && (v[t] = e, r = t);else {var i = t.name;v[i] = t, r = i;}return !n && r && (D = r), r || !n && D;},w = function w(t, e) {if (p(t)) return t.clone();var n = "object" == typeof e ? e : {};return n.date = t, n.args = arguments, new _(n);},O = g;O.l = S, O.i = p, O.w = function (t, e) {return w(t, { locale: e.$L, utc: e.$u, x: e.$x, $offset: e.$offset });};var _ = function () {function M(t) {this.$L = S(t.locale, null, !0), this.parse(t);}var m = M.prototype;return m.parse = function (t) {this.$d = function (t) {var e = t.date,n = t.utc;if (null === e) return new Date(NaN);if (O.u(e)) return new Date();if (e instanceof Date) return new Date(e);if ("string" == typeof e && !/Z$/i.test(e)) {var r = e.match(l);if (r) {var i = r[2] - 1 || 0,s = (r[7] || "0").substring(0, 3);return n ? new Date(Date.UTC(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, s)) : new Date(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, s);}}return new Date(e);}(t), this.$x = t.x || {}, this.init();}, m.init = function () {var t = this.$d;this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();}, m.$utils = function () {return O;}, m.isValid = function () {return !(this.$d.toString() === $);}, m.isSame = function (t, e) {var n = w(t);return this.startOf(e) <= n && n <= this.endOf(e);}, m.isAfter = function (t, e) {return w(t) < this.startOf(e);}, m.isBefore = function (t, e) {return this.endOf(e) < w(t);}, m.$g = function (t, e, n) {return O.u(t) ? this[e] : this.set(n, t);}, m.unix = function () {return Math.floor(this.valueOf() / 1e3);}, m.valueOf = function () {return this.$d.getTime();}, m.startOf = function (t, e) {var n = this,r = !!O.u(e) || e,h = O.p(t),$ = function $(t, e) {var i = O.w(n.$u ? Date.UTC(n.$y, e, t) : new Date(n.$y, e, t), n);return r ? i : i.endOf(a);},l = function l(t, e) {return O.w(n.toDate()[t].apply(n.toDate("s"), (r ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e)), n);},y = this.$W,M = this.$M,m = this.$D,g = "set" + (this.$u ? "UTC" : "");switch (h) {case c:return r ? $(1, 0) : $(31, 11);case f:return r ? $(1, M) : $(0, M + 1);case o:var D = this.$locale().weekStart || 0,v = (y < D ? y + 7 : y) - D;return $(r ? m - v : m + (6 - v), M);case a:case d:return l(g + "Hours", 0);case u:return l(g + "Minutes", 1);case s:return l(g + "Seconds", 2);case i:return l(g + "Milliseconds", 3);default:return this.clone();}}, m.endOf = function (t) {return this.startOf(t, !1);}, m.$set = function (t, e) {var n,o = O.p(t),h = "set" + (this.$u ? "UTC" : ""),$ = (n = {}, n[a] = h + "Date", n[d] = h + "Date", n[f] = h + "Month", n[c] = h + "FullYear", n[u] = h + "Hours", n[s] = h + "Minutes", n[i] = h + "Seconds", n[r] = h + "Milliseconds", n)[o],l = o === a ? this.$D + (e - this.$W) : e;if (o === f || o === c) {var y = this.clone().set(d, 1);y.$d[$](l), y.init(), this.$d = y.set(d, Math.min(this.$D, y.daysInMonth())).$d;} else $ && this.$d[$](l);return this.init(), this;}, m.set = function (t, e) {return this.clone().$set(t, e);}, m.get = function (t) {return this[O.p(t)]();}, m.add = function (r, h) {var d,$ = this;r = Number(r);var l = O.p(h),y = function y(t) {var e = w($);return O.w(e.date(e.date() + Math.round(t * r)), $);};if (l === f) return this.set(f, this.$M + r);if (l === c) return this.set(c, this.$y + r);if (l === a) return y(1);if (l === o) return y(7);var M = (d = {}, d[s] = e, d[u] = n, d[i] = t, d)[l] || 1,m = this.$d.getTime() + r * M;return O.w(m, this);}, m.subtract = function (t, e) {return this.add(-1 * t, e);}, m.format = function (t) {var e = this,n = this.$locale();if (!this.isValid()) return n.invalidDate || $;var r = t || "YYYY-MM-DDTHH:mm:ssZ",i = O.z(this),s = this.$H,u = this.$m,a = this.$M,o = n.weekdays,f = n.months,h = function h(t, n, i, s) {return t && (t[n] || t(e, r)) || i[n].substr(0, s);},c = function c(t) {return O.s(s % 12 || 12, t, "0");},d = n.meridiem || function (t, e, n) {var r = t < 12 ? "AM" : "PM";return n ? r.toLowerCase() : r;},l = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: a + 1, MM: O.s(a + 1, 2, "0"), MMM: h(n.monthsShort, a, f, 3), MMMM: h(f, a), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: h(n.weekdaysMin, this.$W, o, 2), ddd: h(n.weekdaysShort, this.$W, o, 3), dddd: o[this.$W], H: String(s), HH: O.s(s, 2, "0"), h: c(1), hh: c(2), a: d(s, u, !0), A: d(s, u, !1), m: String(u), mm: O.s(u, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: i };return r.replace(y, function (t, e) {return e || l[t] || i.replace(":", "");});}, m.utcOffset = function () {return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);}, m.diff = function (r, d, $) {var l,y = O.p(d),M = w(r),m = (M.utcOffset() - this.utcOffset()) * e,g = this - M,D = O.m(this, M);return D = (l = {}, l[c] = D / 12, l[f] = D, l[h] = D / 3, l[o] = (g - m) / 6048e5, l[a] = (g - m) / 864e5, l[u] = g / n, l[s] = g / e, l[i] = g / t, l)[y] || g, $ ? D : O.a(D);}, m.daysInMonth = function () {return this.endOf(f).$D;}, m.$locale = function () {return v[this.$L];}, m.locale = function (t, e) {if (!t) return this.$L;var n = this.clone(),r = S(t, e, !0);return r && (n.$L = r), n;}, m.clone = function () {return O.w(this.$d, this);}, m.toDate = function () {return new Date(this.valueOf());}, m.toJSON = function () {return this.isValid() ? this.toISOString() : null;}, m.toISOString = function () {return this.$d.toISOString();}, m.toString = function () {return this.$d.toUTCString();}, M;}(),b = _.prototype;return w.prototype = b, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", f], ["$y", c], ["$D", d]].forEach(function (t) {b[t[1]] = function (e) {return this.$g(e, t[0], t[1]);};}), w.extend = function (t, e) {return t.$i || (t(e, _, w), t.$i = !0), w;}, w.locale = S, w.isDayjs = p, w.unix = function (t) {return w(1e3 * t);}, w.en = v[D], w.Ls = v, w.p = {}, w;});
  2942. /***/ }),
  2943. /***/ 2:
  2944. /*!***********************************!*\
  2945. !*** (webpack)/buildin/global.js ***!
  2946. \***********************************/
  2947. /*! no static exports found */
  2948. /***/ (function(module, exports) {
  2949. var g;
  2950. // This works in non-strict mode
  2951. g = (function() {
  2952. return this;
  2953. })();
  2954. try {
  2955. // This works if eval is allowed (see CSP)
  2956. g = g || new Function("return this")();
  2957. } catch (e) {
  2958. // This works if the window reference is available
  2959. if (typeof window === "object") g = window;
  2960. }
  2961. // g can still be undefined, but nothing to do about it...
  2962. // We return undefined, instead of nothing here, so it's
  2963. // easier to handle this case. if(!global) { ...}
  2964. module.exports = g;
  2965. /***/ }),
  2966. /***/ 20:
  2967. /*!**********************************************************************************!*\
  2968. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/function/dayjs/relativeTime.min.js ***!
  2969. \**********************************************************************************/
  2970. /*! no static exports found */
  2971. /***/ (function(module, exports, __webpack_require__) {
  2972. /**
  2973. * Skipped minification because the original files appears to be already minified.
  2974. * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
  2975. */
  2976. !function (r, e) { true ? module.exports = e() : undefined;}(this, function () {"use strict";return function (r, e, t) {r = r || {};var n = e.prototype,o = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };function i(r, e, t, o) {return n.fromToBase(r, e, t, o);}t.en.relativeTime = o, n.fromToBase = function (e, n, i, d, u) {for (var f, a, s, l = i.$locale().relativeTime || o, h = r.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], m = h.length, c = 0; c < m; c += 1) {var y = h[c];y.d && (f = d ? t(e).diff(i, y.d, !0) : i.diff(e, y.d, !0));var p = (r.rounding || Math.round)(Math.abs(f));if (s = f > 0, p <= y.r || !y.r) {p <= 1 && c > 0 && (y = h[c - 1]);var v = l[y.l];u && (p = u("" + p)), a = "string" == typeof v ? v.replace("%d", p) : v(p, n, y.l, s);break;}}if (n) return a;var M = s ? l.future : l.past;return "function" == typeof M ? M(a) : M.replace("%s", a);}, n.to = function (r, e) {return i(r, e, this, !0);}, n.from = function (r, e) {return i(r, e, this);};var d = function d(r) {return r.$u ? t.utc() : t();};n.toNow = function (r) {return this.to(d(this), r);}, n.fromNow = function (r) {return this.from(d(this), r);};};});
  2977. /***/ }),
  2978. /***/ 21:
  2979. /*!*******************************************************************************!*\
  2980. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/function/dayjs/isBetween.min.js ***!
  2981. \*******************************************************************************/
  2982. /*! no static exports found */
  2983. /***/ (function(module, exports, __webpack_require__) {
  2984. /**
  2985. * Skipped minification because the original files appears to be already minified.
  2986. * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
  2987. */
  2988. !function (e, i) { true ? module.exports = i() : undefined;}(this, function () {"use strict";return function (e, i, t) {i.prototype.isBetween = function (e, i, s, f) {var n = t(e),o = t(i),r = "(" === (f = f || "()")[0],u = ")" === f[1];return (r ? this.isAfter(n, s) : !this.isBefore(n, s)) && (u ? this.isBefore(o, s) : !this.isAfter(o, s)) || (r ? this.isBefore(n, s) : !this.isAfter(n, s)) && (u ? this.isAfter(o, s) : !this.isBefore(o, s));};};});
  2989. /***/ }),
  2990. /***/ 22:
  2991. /*!******************************************************************************!*\
  2992. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/function/dayjs/toObject.min.js ***!
  2993. \******************************************************************************/
  2994. /*! no static exports found */
  2995. /***/ (function(module, exports, __webpack_require__) {
  2996. /**
  2997. * Skipped minification because the original files appears to be already minified.
  2998. * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
  2999. */
  3000. !function (t, e) { true ? module.exports = e() : undefined;}(this, function () {"use strict";return function (t, e) {e.prototype.toObject = function () {return { years: this.$y, months: this.$M, date: this.$D, hours: this.$H, minutes: this.$m, seconds: this.$s, milliseconds: this.$ms };};};});
  3001. /***/ }),
  3002. /***/ 23:
  3003. /*!****************************************************************!*\
  3004. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/function/guid.js ***!
  3005. \****************************************************************/
  3006. /*! no static exports found */
  3007. /***/ (function(module, exports, __webpack_require__) {
  3008. "use strict";
  3009. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /**
  3010. * 本算法来源于简书开源代码,详见:https://www.jianshu.com/p/fdbf293d0a85
  3011. * 全局唯一标识符(uuid,Globally Unique Identifier),也称作 uuid(Universally Unique IDentifier)
  3012. * 一般用于多个组件之间,给它一个唯一的标识符,或者v-for循环的时候,如果使用数组的index可能会导致更新列表出现问题
  3013. * 最可能的情况是左滑删除item或者对某条信息流"不喜欢"并去掉它的时候,会导致组件内的数据可能出现错乱
  3014. * v-for的时候,推荐使用后端返回的id而不是循环的index
  3015. * @param {Number} len uuid的长度
  3016. * @param {Boolean} firstU 将返回的首字母置为"u"
  3017. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  3018. */
  3019. function guid() {var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  3020. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  3021. var uuid = [];
  3022. radix = radix || chars.length;
  3023. if (len) {
  3024. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  3025. for (var i = 0; i < len; i++) {uuid[i] = chars[0 | Math.random() * radix];}
  3026. } else {
  3027. var r;
  3028. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  3029. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  3030. uuid[14] = '4';
  3031. for (var _i = 0; _i < 36; _i++) {
  3032. if (!uuid[_i]) {
  3033. r = 0 | Math.random() * 16;
  3034. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  3035. }
  3036. }
  3037. }
  3038. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  3039. if (firstU) {
  3040. uuid.shift();
  3041. return 'u' + uuid.join('');
  3042. } else {
  3043. return uuid.join('');
  3044. }
  3045. }var _default =
  3046. guid;exports.default = _default;
  3047. /***/ }),
  3048. /***/ 24:
  3049. /*!*****************************************************************!*\
  3050. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/function/sleep.js ***!
  3051. \*****************************************************************/
  3052. /*! no static exports found */
  3053. /***/ (function(module, exports, __webpack_require__) {
  3054. "use strict";
  3055. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /**
  3056. * 作者:tmzdy
  3057. * 延时操作
  3058. * @param {Number} wait = [500] 延时
  3059. */
  3060. function sleep() {var wait = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 500;
  3061. var timid = null;
  3062. clearTimeout(timid);
  3063. return new Promise(function (res, rej) {
  3064. timid = setTimeout(function () {
  3065. res();
  3066. }, wait);
  3067. });
  3068. }var _default =
  3069. sleep;exports.default = _default;
  3070. /***/ }),
  3071. /***/ 25:
  3072. /*!***********************************************************************!*\
  3073. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/function/randomArray.js ***!
  3074. \***********************************************************************/
  3075. /*! no static exports found */
  3076. /***/ (function(module, exports, __webpack_require__) {
  3077. "use strict";
  3078. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; // 打乱数组
  3079. function randomArray() {var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  3080. // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
  3081. return array.sort(function () {return Math.random() - 0.5;});
  3082. }var _default =
  3083. randomArray;exports.default = _default;
  3084. /***/ }),
  3085. /***/ 26:
  3086. /*!*********************************************************************!*\
  3087. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/function/deepClone.js ***!
  3088. \*********************************************************************/
  3089. /*! no static exports found */
  3090. /***/ (function(module, exports, __webpack_require__) {
  3091. "use strict";
  3092. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; // 此库来自 https://www.uviewui.com/js/intro.html
  3093. // 判断arr是否为一个数组,返回一个bool值
  3094. function isArray(arr) {
  3095. return Object.prototype.toString.call(arr) === '[object Array]';
  3096. }
  3097. // 深度克隆
  3098. function deepClone(obj) {
  3099. // 对常见的“非”值,直接返回原来值
  3100. if ([null, undefined, NaN, false].includes(obj)) return obj;
  3101. if (typeof obj !== "object" && typeof obj !== 'function') {
  3102. //原始类型直接返回
  3103. return obj;
  3104. }
  3105. var o = isArray(obj) ? [] : {};
  3106. for (var i in obj) {
  3107. if (obj.hasOwnProperty(i)) {
  3108. o[i] = typeof obj[i] === "object" ? deepClone(obj[i]) : obj[i];
  3109. }
  3110. }
  3111. return o;
  3112. }var _default =
  3113. deepClone;exports.default = _default;
  3114. /***/ }),
  3115. /***/ 27:
  3116. /*!*********************************************************************!*\
  3117. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/function/deepMerge.js ***!
  3118. \*********************************************************************/
  3119. /*! no static exports found */
  3120. /***/ (function(module, exports, __webpack_require__) {
  3121. "use strict";
  3122. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  3123. var _deepClone = _interopRequireDefault(__webpack_require__(/*! ./deepClone */ 26));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} // 此库来自 https://www.uviewui.com/js/intro.html
  3124. // JS对象深度合并
  3125. function deepMerge() {var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3126. target = (0, _deepClone.default)(target);
  3127. if (typeof target !== 'object' || typeof source !== 'object') return false;
  3128. for (var prop in source) {
  3129. if (!source.hasOwnProperty(prop)) continue;
  3130. if (prop in target) {
  3131. if (typeof target[prop] !== 'object') {
  3132. target[prop] = source[prop];
  3133. } else {
  3134. if (typeof source[prop] !== 'object') {
  3135. target[prop] = source[prop];
  3136. } else {
  3137. if (target[prop].concat && source[prop].concat) {
  3138. target[prop] = target[prop].concat(source[prop]);
  3139. } else {
  3140. target[prop] = deepMerge(target[prop], source[prop]);
  3141. }
  3142. }
  3143. }
  3144. } else {
  3145. target[prop] = source[prop];
  3146. }
  3147. }
  3148. return target;
  3149. }var _default =
  3150. deepMerge;exports.default = _default;
  3151. /***/ }),
  3152. /***/ 28:
  3153. /*!****************************************************************!*\
  3154. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/function/test.js ***!
  3155. \****************************************************************/
  3156. /*! no static exports found */
  3157. /***/ (function(module, exports, __webpack_require__) {
  3158. "use strict";
  3159. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  3160. /**
  3161. * 验证电子邮箱格式
  3162. */
  3163. function email(value) {
  3164. return /\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/.test(value);
  3165. }
  3166. /**
  3167. * 验证手机格式
  3168. */
  3169. function mobile(value) {
  3170. return /^(0|86|17951)?(13[0-9]|15[012356789]|166|17[3678]|18[0-9]|14[57])[0-9]{8}$/.test(value);
  3171. }
  3172. /**
  3173. * 验证URL格式
  3174. */
  3175. function url(value) {
  3176. return /^https?:\/\/(([a-zA-Z0-9_-])+(\.)?)*(:\d+)?(\/((\.)?(\?)?=?&?[a-zA-Z0-9_-](\?)?)*)*$/i.test(value);
  3177. }
  3178. /**
  3179. * 验证日期格式
  3180. */
  3181. function date(value) {
  3182. return /^[1-2][0-9][0-9][0-9]-[0-1]{0,1}[0-9]-[0-3]{0,1}[0-9]$/.test(value);
  3183. }
  3184. /**
  3185. * 验证身份证号码
  3186. */
  3187. function idCard(value) {
  3188. return /^(^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$)|(^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[Xx])$)$/.test(
  3189. value);
  3190. }
  3191. /**
  3192. * 是否车牌号
  3193. */
  3194. function carNo(value) {
  3195. // 新能源车牌
  3196. var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
  3197. // 旧车牌
  3198. var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
  3199. if (value.length === 7) {
  3200. return creg.test(value);
  3201. } else if (value.length === 8) {
  3202. return xreg.test(value);
  3203. } else {
  3204. return false;
  3205. }
  3206. }
  3207. /**
  3208. * 中文
  3209. */
  3210. function chinese(value) {
  3211. var reg = /^[\u4e00-\u9fa5]+$/gi;
  3212. return reg.test(value);
  3213. }
  3214. /**
  3215. * 只能输入字母
  3216. */
  3217. function letter(value) {
  3218. return /^[a-zA-Z]*$/.test(value);
  3219. }
  3220. /**
  3221. * 只能是字母或者数字
  3222. */
  3223. function enOrNum(value) {
  3224. //英文或者数字
  3225. var reg = /^[0-9a-zA-Z]*$/g;
  3226. return reg.test(value);
  3227. }
  3228. /**
  3229. * 是否json字符串
  3230. */
  3231. function jsonString(value) {
  3232. if (typeof value == 'string') {
  3233. try {
  3234. var obj = JSON.parse(value);
  3235. if (typeof obj == 'object' && obj) {
  3236. return true;
  3237. } else {
  3238. return false;
  3239. }
  3240. } catch (e) {
  3241. return false;
  3242. }
  3243. }
  3244. return false;
  3245. }
  3246. /**
  3247. * 是否对象
  3248. */
  3249. function object(value) {
  3250. return Object.prototype.toString.call(value) === '[object Object]';
  3251. }
  3252. /**
  3253. * 检查对象或者数组的值, true表示通过,没有空;false表示有空值。
  3254. * @param {Object} obj 对象
  3255. * @param {Array<String>} filter 需要排除的字段以数组提供。 对象
  3256. */
  3257. function checkObject(obj) {var filter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  3258. var istrue = true;
  3259. function testObjec(obj) {
  3260. if (typeof obj !== 'object' || Array.isArray(obj) || obj == null) {
  3261. istrue = false;
  3262. return false;
  3263. }
  3264. for (var item in obj) {
  3265. if (filter.indexOf(item) === -1) {
  3266. if (typeof obj[item] === 'undefined' || obj[item] === null) {
  3267. istrue = false;
  3268. break;
  3269. return false;
  3270. }
  3271. if (typeof obj[item] === 'object') {
  3272. if (Array.isArray(obj[item])) {
  3273. if (obj[item].length == 0) {
  3274. istrue = false;
  3275. break;
  3276. return false;
  3277. }
  3278. } else {
  3279. testObjec(obj[item]);
  3280. }
  3281. } else if (typeof obj[item] === 'string') {
  3282. if (!uni.$tm.trim(obj[item])) {
  3283. istrue = false;
  3284. break;
  3285. return false;
  3286. }
  3287. }
  3288. }
  3289. }
  3290. }
  3291. testObjec(obj);
  3292. return istrue;
  3293. }
  3294. //中国邮政编码
  3295. function chinaPost(value) {
  3296. return /[1-9]\d{5}(?!\d)/.test(value);
  3297. }
  3298. //中国银行卡号
  3299. function bankCard(value) {
  3300. var p = /^([1-9]{1})(\d{15}|\d{16}|\d{18})$/;
  3301. var str = value.replace(/\s+/g, "");
  3302. return p.test(str);
  3303. }
  3304. //密码验证,只能字母字符和数字
  3305. //默认6位
  3306. function password(value) {var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  3307. var p = new RegExp("^[w+|-|+*.`!@#$%^&()_+,///]{" + len + ",}$");
  3308. return p.test(value);
  3309. }
  3310. //密码验证,只能字母字符和数字
  3311. //默认6位
  3312. //并且,大小写字母和数字必须至少要有1位。
  3313. function password2(value) {var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  3314. var p = new RegExp("^[w+|-|+*.`!@#$%^&()_+,///]{" + len + ",}$");
  3315. if (!p.test(value)) return false;
  3316. if (!/[a-z]{1,}/.test(value)) return false;
  3317. if (!/[A-Z]{1,}/.test(value)) return false;
  3318. if (!/[0-9]{1,}/.test(value)) return false;
  3319. return true;
  3320. }var _default =
  3321. {
  3322. email: email,
  3323. mobile: mobile,
  3324. url: url,
  3325. date: date,
  3326. idCard: idCard,
  3327. carNo: carNo,
  3328. chinese: chinese,
  3329. letter: letter,
  3330. enOrNum: enOrNum,
  3331. jsonString: jsonString,
  3332. object: object,
  3333. checkObject: checkObject,
  3334. chinaPost: chinaPost,
  3335. password: password,
  3336. password2: password2 };exports.default = _default;
  3337. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  3338. /***/ }),
  3339. /***/ 29:
  3340. /*!******************************************************************!*\
  3341. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/function/random.js ***!
  3342. \******************************************************************/
  3343. /*! no static exports found */
  3344. /***/ (function(module, exports, __webpack_require__) {
  3345. "use strict";
  3346. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;function random(min, max) {
  3347. if (min >= 0 && max > 0 && max >= min) {
  3348. var gab = max - min + 1;
  3349. return Math.floor(Math.random() * gab + min);
  3350. } else {
  3351. return 0;
  3352. }
  3353. }var _default =
  3354. random;exports.default = _default;
  3355. /***/ }),
  3356. /***/ 3:
  3357. /*!*************************************************************!*\
  3358. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  3359. \*************************************************************/
  3360. /*! no static exports found */
  3361. /***/ (function(module, exports, __webpack_require__) {
  3362. "use strict";
  3363. /* WEBPACK VAR INJECTION */(function(uni, global) {Object.defineProperty(exports, "__esModule", { value: true });exports.compileI18nJsonStr = compileI18nJsonStr;exports.hasI18nJson = hasI18nJson;exports.initVueI18n = initVueI18n;exports.isI18nStr = isI18nStr;exports.normalizeLocale = normalizeLocale;exports.parseI18nJson = parseI18nJson;exports.resolveLocale = resolveLocale;exports.isString = exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;function _slicedToArray(arr, i) {return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o, minLen) {if (!o) return;if (typeof o === "string") return _arrayLikeToArray(o, minLen);var n = Object.prototype.toString.call(o).slice(8, -1);if (n === "Object" && o.constructor) n = o.constructor.name;if (n === "Map" || n === "Set") return Array.from(o);if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);}function _arrayLikeToArray(arr, len) {if (len == null || len > arr.length) len = arr.length;for (var i = 0, arr2 = new Array(len); i < len; i++) {arr2[i] = arr[i];}return arr2;}function _iterableToArrayLimit(arr, i) {if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;var _arr = [];var _n = true;var _d = false;var _e = undefined;try {for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {_arr.push(_s.value);if (i && _arr.length === i) break;}} catch (err) {_d = true;_e = err;} finally {try {if (!_n && _i["return"] != null) _i["return"]();} finally {if (_d) throw _e;}}return _arr;}function _arrayWithHoles(arr) {if (Array.isArray(arr)) return arr;}function _classCallCheck(instance, Constructor) {if (!(instance instanceof Constructor)) {throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target, props) {for (var i = 0; i < props.length; i++) {var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);}}function _createClass(Constructor, protoProps, staticProps) {if (protoProps) _defineProperties(Constructor.prototype, protoProps);if (staticProps) _defineProperties(Constructor, staticProps);return Constructor;}var isArray = Array.isArray;
  3364. var isObject = function isObject(val) {return val !== null && typeof val === 'object';};
  3365. var defaultDelimiters = ['{', '}'];var
  3366. BaseFormatter = /*#__PURE__*/function () {
  3367. function BaseFormatter() {_classCallCheck(this, BaseFormatter);
  3368. this._caches = Object.create(null);
  3369. }_createClass(BaseFormatter, [{ key: "interpolate", value: function interpolate(
  3370. message, values) {var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  3371. if (!values) {
  3372. return [message];
  3373. }
  3374. var tokens = this._caches[message];
  3375. if (!tokens) {
  3376. tokens = parse(message, delimiters);
  3377. this._caches[message] = tokens;
  3378. }
  3379. return compile(tokens, values);
  3380. } }]);return BaseFormatter;}();exports.Formatter = BaseFormatter;
  3381. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  3382. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  3383. function parse(format, _ref) {var _ref2 = _slicedToArray(_ref, 2),startDelimiter = _ref2[0],endDelimiter = _ref2[1];
  3384. var tokens = [];
  3385. var position = 0;
  3386. var text = '';
  3387. while (position < format.length) {
  3388. var char = format[position++];
  3389. if (char === startDelimiter) {
  3390. if (text) {
  3391. tokens.push({ type: 'text', value: text });
  3392. }
  3393. text = '';
  3394. var sub = '';
  3395. char = format[position++];
  3396. while (char !== undefined && char !== endDelimiter) {
  3397. sub += char;
  3398. char = format[position++];
  3399. }
  3400. var isClosed = char === endDelimiter;
  3401. var type = RE_TOKEN_LIST_VALUE.test(sub) ?
  3402. 'list' :
  3403. isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ?
  3404. 'named' :
  3405. 'unknown';
  3406. tokens.push({ value: sub, type: type });
  3407. }
  3408. // else if (char === '%') {
  3409. // // when found rails i18n syntax, skip text capture
  3410. // if (format[position] !== '{') {
  3411. // text += char
  3412. // }
  3413. // }
  3414. else {
  3415. text += char;
  3416. }
  3417. }
  3418. text && tokens.push({ type: 'text', value: text });
  3419. return tokens;
  3420. }
  3421. function compile(tokens, values) {
  3422. var compiled = [];
  3423. var index = 0;
  3424. var mode = isArray(values) ?
  3425. 'list' :
  3426. isObject(values) ?
  3427. 'named' :
  3428. 'unknown';
  3429. if (mode === 'unknown') {
  3430. return compiled;
  3431. }
  3432. while (index < tokens.length) {
  3433. var token = tokens[index];
  3434. switch (token.type) {
  3435. case 'text':
  3436. compiled.push(token.value);
  3437. break;
  3438. case 'list':
  3439. compiled.push(values[parseInt(token.value, 10)]);
  3440. break;
  3441. case 'named':
  3442. if (mode === 'named') {
  3443. compiled.push(values[token.value]);
  3444. } else
  3445. {
  3446. if (true) {
  3447. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  3448. }
  3449. }
  3450. break;
  3451. case 'unknown':
  3452. if (true) {
  3453. console.warn("Detect 'unknown' type of token!");
  3454. }
  3455. break;}
  3456. index++;
  3457. }
  3458. return compiled;
  3459. }
  3460. var LOCALE_ZH_HANS = 'zh-Hans';exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  3461. var LOCALE_ZH_HANT = 'zh-Hant';exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  3462. var LOCALE_EN = 'en';exports.LOCALE_EN = LOCALE_EN;
  3463. var LOCALE_FR = 'fr';exports.LOCALE_FR = LOCALE_FR;
  3464. var LOCALE_ES = 'es';exports.LOCALE_ES = LOCALE_ES;
  3465. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3466. var hasOwn = function hasOwn(val, key) {return hasOwnProperty.call(val, key);};
  3467. var defaultFormatter = new BaseFormatter();
  3468. function include(str, parts) {
  3469. return !!parts.find(function (part) {return str.indexOf(part) !== -1;});
  3470. }
  3471. function startsWith(str, parts) {
  3472. return parts.find(function (part) {return str.indexOf(part) === 0;});
  3473. }
  3474. function normalizeLocale(locale, messages) {
  3475. if (!locale) {
  3476. return;
  3477. }
  3478. locale = locale.trim().replace(/_/g, '-');
  3479. if (messages && messages[locale]) {
  3480. return locale;
  3481. }
  3482. locale = locale.toLowerCase();
  3483. if (locale.indexOf('zh') === 0) {
  3484. if (locale.indexOf('-hans') > -1) {
  3485. return LOCALE_ZH_HANS;
  3486. }
  3487. if (locale.indexOf('-hant') > -1) {
  3488. return LOCALE_ZH_HANT;
  3489. }
  3490. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  3491. return LOCALE_ZH_HANT;
  3492. }
  3493. return LOCALE_ZH_HANS;
  3494. }
  3495. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  3496. if (lang) {
  3497. return lang;
  3498. }
  3499. }var
  3500. I18n = /*#__PURE__*/function () {
  3501. function I18n(_ref3) {var locale = _ref3.locale,fallbackLocale = _ref3.fallbackLocale,messages = _ref3.messages,watcher = _ref3.watcher,formater = _ref3.formater;_classCallCheck(this, I18n);
  3502. this.locale = LOCALE_EN;
  3503. this.fallbackLocale = LOCALE_EN;
  3504. this.message = {};
  3505. this.messages = {};
  3506. this.watchers = [];
  3507. if (fallbackLocale) {
  3508. this.fallbackLocale = fallbackLocale;
  3509. }
  3510. this.formater = formater || defaultFormatter;
  3511. this.messages = messages || {};
  3512. this.setLocale(locale || LOCALE_EN);
  3513. if (watcher) {
  3514. this.watchLocale(watcher);
  3515. }
  3516. }_createClass(I18n, [{ key: "setLocale", value: function setLocale(
  3517. locale) {var _this = this;
  3518. var oldLocale = this.locale;
  3519. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  3520. if (!this.messages[this.locale]) {
  3521. // 可能初始化时不存在
  3522. this.messages[this.locale] = {};
  3523. }
  3524. this.message = this.messages[this.locale];
  3525. // 仅发生变化时,通知
  3526. if (oldLocale !== this.locale) {
  3527. this.watchers.forEach(function (watcher) {
  3528. watcher(_this.locale, oldLocale);
  3529. });
  3530. }
  3531. } }, { key: "getLocale", value: function getLocale()
  3532. {
  3533. return this.locale;
  3534. } }, { key: "watchLocale", value: function watchLocale(
  3535. fn) {var _this2 = this;
  3536. var index = this.watchers.push(fn) - 1;
  3537. return function () {
  3538. _this2.watchers.splice(index, 1);
  3539. };
  3540. } }, { key: "add", value: function add(
  3541. locale, message) {var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3542. var curMessages = this.messages[locale];
  3543. if (curMessages) {
  3544. if (override) {
  3545. Object.assign(curMessages, message);
  3546. } else
  3547. {
  3548. Object.keys(message).forEach(function (key) {
  3549. if (!hasOwn(curMessages, key)) {
  3550. curMessages[key] = message[key];
  3551. }
  3552. });
  3553. }
  3554. } else
  3555. {
  3556. this.messages[locale] = message;
  3557. }
  3558. } }, { key: "f", value: function f(
  3559. message, values, delimiters) {
  3560. return this.formater.interpolate(message, values, delimiters).join('');
  3561. } }, { key: "t", value: function t(
  3562. key, locale, values) {
  3563. var message = this.message;
  3564. if (typeof locale === 'string') {
  3565. locale = normalizeLocale(locale, this.messages);
  3566. locale && (message = this.messages[locale]);
  3567. } else
  3568. {
  3569. values = locale;
  3570. }
  3571. if (!hasOwn(message, key)) {
  3572. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  3573. return key;
  3574. }
  3575. return this.formater.interpolate(message[key], values).join('');
  3576. } }]);return I18n;}();exports.I18n = I18n;
  3577. function watchAppLocale(appVm, i18n) {
  3578. // 需要保证 watch 的触发在组件渲染之前
  3579. if (appVm.$watchLocale) {
  3580. // vue2
  3581. appVm.$watchLocale(function (newLocale) {
  3582. i18n.setLocale(newLocale);
  3583. });
  3584. } else
  3585. {
  3586. appVm.$watch(function () {return appVm.$locale;}, function (newLocale) {
  3587. i18n.setLocale(newLocale);
  3588. });
  3589. }
  3590. }
  3591. function getDefaultLocale() {
  3592. if (typeof uni !== 'undefined' && uni.getLocale) {
  3593. return uni.getLocale();
  3594. }
  3595. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  3596. if (typeof global !== 'undefined' && global.getLocale) {
  3597. return global.getLocale();
  3598. }
  3599. return LOCALE_EN;
  3600. }
  3601. function initVueI18n(locale) {var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;var watcher = arguments.length > 3 ? arguments[3] : undefined;
  3602. // 兼容旧版本入参
  3603. if (typeof locale !== 'string') {var _ref4 =
  3604. [
  3605. messages,
  3606. locale];locale = _ref4[0];messages = _ref4[1];
  3607. }
  3608. if (typeof locale !== 'string') {
  3609. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  3610. locale = getDefaultLocale();
  3611. }
  3612. if (typeof fallbackLocale !== 'string') {
  3613. fallbackLocale =
  3614. typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale ||
  3615. LOCALE_EN;
  3616. }
  3617. var i18n = new I18n({
  3618. locale: locale,
  3619. fallbackLocale: fallbackLocale,
  3620. messages: messages,
  3621. watcher: watcher });
  3622. var _t = function t(key, values) {
  3623. if (typeof getApp !== 'function') {
  3624. // app view
  3625. /* eslint-disable no-func-assign */
  3626. _t = function t(key, values) {
  3627. return i18n.t(key, values);
  3628. };
  3629. } else
  3630. {
  3631. var isWatchedAppLocale = false;
  3632. _t = function t(key, values) {
  3633. var appVm = getApp().$vm;
  3634. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  3635. // options: {
  3636. // type: Array,
  3637. // default () {
  3638. // return [{
  3639. // icon: 'shop',
  3640. // text: t("uni-goods-nav.options.shop"),
  3641. // }, {
  3642. // icon: 'cart',
  3643. // text: t("uni-goods-nav.options.cart")
  3644. // }]
  3645. // }
  3646. // },
  3647. if (appVm) {
  3648. // 触发响应式
  3649. appVm.$locale;
  3650. if (!isWatchedAppLocale) {
  3651. isWatchedAppLocale = true;
  3652. watchAppLocale(appVm, i18n);
  3653. }
  3654. }
  3655. return i18n.t(key, values);
  3656. };
  3657. }
  3658. return _t(key, values);
  3659. };
  3660. return {
  3661. i18n: i18n,
  3662. f: function f(message, values, delimiters) {
  3663. return i18n.f(message, values, delimiters);
  3664. },
  3665. t: function t(key, values) {
  3666. return _t(key, values);
  3667. },
  3668. add: function add(locale, message) {var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3669. return i18n.add(locale, message, override);
  3670. },
  3671. watch: function watch(fn) {
  3672. return i18n.watchLocale(fn);
  3673. },
  3674. getLocale: function getLocale() {
  3675. return i18n.getLocale();
  3676. },
  3677. setLocale: function setLocale(newLocale) {
  3678. return i18n.setLocale(newLocale);
  3679. } };
  3680. }
  3681. var isString = function isString(val) {return typeof val === 'string';};exports.isString = isString;
  3682. var formater;
  3683. function hasI18nJson(jsonObj, delimiters) {
  3684. if (!formater) {
  3685. formater = new BaseFormatter();
  3686. }
  3687. return walkJsonObj(jsonObj, function (jsonObj, key) {
  3688. var value = jsonObj[key];
  3689. if (isString(value)) {
  3690. if (isI18nStr(value, delimiters)) {
  3691. return true;
  3692. }
  3693. } else
  3694. {
  3695. return hasI18nJson(value, delimiters);
  3696. }
  3697. });
  3698. }
  3699. function parseI18nJson(jsonObj, values, delimiters) {
  3700. if (!formater) {
  3701. formater = new BaseFormatter();
  3702. }
  3703. walkJsonObj(jsonObj, function (jsonObj, key) {
  3704. var value = jsonObj[key];
  3705. if (isString(value)) {
  3706. if (isI18nStr(value, delimiters)) {
  3707. jsonObj[key] = compileStr(value, values, delimiters);
  3708. }
  3709. } else
  3710. {
  3711. parseI18nJson(value, values, delimiters);
  3712. }
  3713. });
  3714. return jsonObj;
  3715. }
  3716. function compileI18nJsonStr(jsonStr, _ref5) {var locale = _ref5.locale,locales = _ref5.locales,delimiters = _ref5.delimiters;
  3717. if (!isI18nStr(jsonStr, delimiters)) {
  3718. return jsonStr;
  3719. }
  3720. if (!formater) {
  3721. formater = new BaseFormatter();
  3722. }
  3723. var localeValues = [];
  3724. Object.keys(locales).forEach(function (name) {
  3725. if (name !== locale) {
  3726. localeValues.push({
  3727. locale: name,
  3728. values: locales[name] });
  3729. }
  3730. });
  3731. localeValues.unshift({ locale: locale, values: locales[locale] });
  3732. try {
  3733. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  3734. }
  3735. catch (e) {}
  3736. return jsonStr;
  3737. }
  3738. function isI18nStr(value, delimiters) {
  3739. return value.indexOf(delimiters[0]) > -1;
  3740. }
  3741. function compileStr(value, values, delimiters) {
  3742. return formater.interpolate(value, values, delimiters).join('');
  3743. }
  3744. function compileValue(jsonObj, key, localeValues, delimiters) {
  3745. var value = jsonObj[key];
  3746. if (isString(value)) {
  3747. // 存在国际化
  3748. if (isI18nStr(value, delimiters)) {
  3749. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  3750. if (localeValues.length > 1) {
  3751. // 格式化国际化语言
  3752. var valueLocales = jsonObj[key + 'Locales'] = {};
  3753. localeValues.forEach(function (localValue) {
  3754. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  3755. });
  3756. }
  3757. }
  3758. } else
  3759. {
  3760. compileJsonObj(value, localeValues, delimiters);
  3761. }
  3762. }
  3763. function compileJsonObj(jsonObj, localeValues, delimiters) {
  3764. walkJsonObj(jsonObj, function (jsonObj, key) {
  3765. compileValue(jsonObj, key, localeValues, delimiters);
  3766. });
  3767. return jsonObj;
  3768. }
  3769. function walkJsonObj(jsonObj, walk) {
  3770. if (isArray(jsonObj)) {
  3771. for (var i = 0; i < jsonObj.length; i++) {
  3772. if (walk(jsonObj, i)) {
  3773. return true;
  3774. }
  3775. }
  3776. } else
  3777. if (isObject(jsonObj)) {
  3778. for (var key in jsonObj) {
  3779. if (walk(jsonObj, key)) {
  3780. return true;
  3781. }
  3782. }
  3783. }
  3784. return false;
  3785. }
  3786. function resolveLocale(locales) {
  3787. return function (locale) {
  3788. if (!locale) {
  3789. return locale;
  3790. }
  3791. locale = normalizeLocale(locale) || locale;
  3792. return resolveLocaleChain(locale).find(function (locale) {return locales.indexOf(locale) > -1;});
  3793. };
  3794. }
  3795. function resolveLocaleChain(locale) {
  3796. var chain = [];
  3797. var tokens = locale.split('-');
  3798. while (tokens.length) {
  3799. chain.push(tokens.join('-'));
  3800. tokens.pop();
  3801. }
  3802. return chain;
  3803. }
  3804. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 2)))
  3805. /***/ }),
  3806. /***/ 30:
  3807. /*!****************************************************************!*\
  3808. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/function/trim.js ***!
  3809. \****************************************************************/
  3810. /*! no static exports found */
  3811. /***/ (function(module, exports, __webpack_require__) {
  3812. "use strict";
  3813. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;function trim(str) {var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
  3814. if (pos == 'both') {
  3815. return str.replace(/^\s+|\s+$/g, "");
  3816. } else if (pos == "left") {
  3817. return str.replace(/^\s*/, '');
  3818. } else if (pos == 'right') {
  3819. return str.replace(/(\s*$)/g, "");
  3820. } else if (pos == 'all') {
  3821. return str.replace(/\s+/g, "");
  3822. } else {
  3823. return str;
  3824. }
  3825. }var _default =
  3826. trim;exports.default = _default;
  3827. /***/ }),
  3828. /***/ 31:
  3829. /*!*****************************************************************!*\
  3830. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/function/toast.js ***!
  3831. \*****************************************************************/
  3832. /*! no static exports found */
  3833. /***/ (function(module, exports, __webpack_require__) {
  3834. "use strict";
  3835. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;function toast(title) {var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1500;
  3836. uni.showToast({
  3837. title: title,
  3838. icon: 'none',
  3839. duration: duration });
  3840. }var _default =
  3841. toast;exports.default = _default;
  3842. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  3843. /***/ }),
  3844. /***/ 32:
  3845. /*!*********************************************************************!*\
  3846. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/function/getParent.js ***!
  3847. \*********************************************************************/
  3848. /*! no static exports found */
  3849. /***/ (function(module, exports, __webpack_require__) {
  3850. "use strict";
  3851. Object.defineProperty(exports, "__esModule", { value: true });exports.default = getParent; // 此库来自 https://www.uviewui.com/js/intro.html
  3852. // 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  3853. // this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  3854. function getParent(name, keys) {
  3855. var parent = this.$parent;
  3856. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  3857. while (parent) {var _parent$$options;
  3858. // 父组件
  3859. if (((_parent$$options = parent.$options) === null || _parent$$options === void 0 ? void 0 : _parent$$options.name) !== name) {
  3860. // 如果组件的name不相等,继续上一级寻找
  3861. parent = parent.$parent;
  3862. } else {var _ret = function () {
  3863. var data = {};
  3864. // 判断keys是否数组,如果传过来的是一个数组,那么直接使用数组元素值当做键值去父组件寻找
  3865. if (Array.isArray(keys)) {
  3866. keys.map(function (val) {
  3867. data[val] = parent[val] ? parent[val] : '';
  3868. });
  3869. } else {
  3870. // 历遍传过来的对象参数
  3871. for (var i in keys) {
  3872. // 如果子组件有此值则用,无此值则用父组件的值
  3873. // 判断是否空数组,如果是,则用父组件的值,否则用子组件的值
  3874. if (Array.isArray(keys[i])) {
  3875. if (keys[i].length) {
  3876. data[i] = keys[i];
  3877. } else {
  3878. data[i] = parent[i];
  3879. }
  3880. } else if (keys[i].constructor === Object) {
  3881. // 判断是否对象,如果是对象,且有属性,那么使用子组件的值,否则使用父组件的值
  3882. if (Object.keys(keys[i]).length) {
  3883. data[i] = keys[i];
  3884. } else {
  3885. data[i] = parent[i];
  3886. }
  3887. } else {
  3888. // 只要子组件有传值,即使是false值,也是“传值”了,也需要覆盖父组件的同名参数
  3889. data[i] = keys[i] || keys[i] === false ? keys[i] : parent[i];
  3890. }
  3891. }
  3892. }
  3893. return { v: data };}();if (typeof _ret === "object") return _ret.v;
  3894. }
  3895. }
  3896. return {};
  3897. }
  3898. /***/ }),
  3899. /***/ 33:
  3900. /*!*************************************************************************!*\
  3901. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/function/getParentAttr.js ***!
  3902. \*************************************************************************/
  3903. /*! no static exports found */
  3904. /***/ (function(module, exports, __webpack_require__) {
  3905. "use strict";
  3906. Object.defineProperty(exports, "__esModule", { value: true });exports.default = getParentAttr; // 使用时,node = this.$parent;
  3907. function getParentAttr(name, keys, node) {
  3908. var parent = node;
  3909. while (parent) {var _parent$$options;
  3910. // 父组件
  3911. if (((_parent$$options = parent.$options) === null || _parent$$options === void 0 ? void 0 : _parent$$options.name) !== name) {
  3912. // 如果组件的name不相等,继续上一级寻找
  3913. parent = parent.$parent;
  3914. } else {
  3915. return parent[keys];
  3916. }
  3917. }
  3918. return undefined;
  3919. }
  3920. /***/ }),
  3921. /***/ 34:
  3922. /*!************************************************************************!*\
  3923. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/function/getParentAls.js ***!
  3924. \************************************************************************/
  3925. /*! no static exports found */
  3926. /***/ (function(module, exports, __webpack_require__) {
  3927. "use strict";
  3928. Object.defineProperty(exports, "__esModule", { value: true });exports.default = getParentAls; // 使用时,node = this.$parent;
  3929. // 根据给定的父组件名,寻找它的上一级。
  3930. function getParentAls(name, node) {
  3931. var parent = node;
  3932. while (parent) {var _parent$$options;
  3933. // 父组件
  3934. if (((_parent$$options = parent.$options) === null || _parent$$options === void 0 ? void 0 : _parent$$options.name) !== name) {
  3935. // 如果组件的name不相等,继续上一级寻找
  3936. parent = parent.$parent;
  3937. } else {
  3938. return parent;
  3939. }
  3940. }
  3941. return undefined;
  3942. }
  3943. /***/ }),
  3944. /***/ 35:
  3945. /*!******************************************************************!*\
  3946. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/function/upload.js ***!
  3947. \******************************************************************/
  3948. /*! no static exports found */
  3949. /***/ (function(module, exports, __webpack_require__) {
  3950. "use strict";
  3951. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _regenerator = _interopRequireDefault(__webpack_require__(/*! ./node_modules/@babel/runtime/regenerator */ 36));var _guid = _interopRequireDefault(__webpack_require__(/*! ./guid */ 23));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function _toConsumableArray(arr) {return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();}function _nonIterableSpread() {throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o, minLen) {if (!o) return;if (typeof o === "string") return _arrayLikeToArray(o, minLen);var n = Object.prototype.toString.call(o).slice(8, -1);if (n === "Object" && o.constructor) n = o.constructor.name;if (n === "Map" || n === "Set") return Array.from(o);if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);}function _iterableToArray(iter) {if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);}function _arrayWithoutHoles(arr) {if (Array.isArray(arr)) return _arrayLikeToArray(arr);}function _arrayLikeToArray(arr, len) {if (len == null || len > arr.length) len = arr.length;for (var i = 0, arr2 = new Array(len); i < len; i++) {arr2[i] = arr[i];}return arr2;}function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {try {var info = gen[key](arg);var value = info.value;} catch (error) {reject(error);return;}if (info.done) {resolve(value);} else {Promise.resolve(value).then(_next, _throw);}}function _asyncToGenerator(fn) {return function () {var self = this,args = arguments;return new Promise(function (resolve, reject) {var gen = fn.apply(self, args);function _next(value) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);}function _throw(err) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);}_next(undefined);});};}function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _classCallCheck(instance, Constructor) {if (!(instance instanceof Constructor)) {throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target, props) {for (var i = 0; i < props.length; i++) {var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);}}function _createClass(Constructor, protoProps, staticProps) {if (protoProps) _defineProperties(Constructor.prototype, protoProps);if (staticProps) _defineProperties(Constructor, staticProps);return Constructor;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}
  3952. /**
  3953. * 上传文件。
  3954. * 作者:tmzdy
  3955. * 时间:‎2021‎年‎7‎月‎28‎日,‏‎9:14:53
  3956. * 联系:zhongjihan@sina.com
  3957. * @param {Function} chooesefile -- 选择图片上传
  3958. * @param {Function} selected -- 选择图片成功后触发。返回选择后的图片。
  3959. * @param {Function} addfile -- 动态加入预上传的文件。
  3960. * @param {Function} progress -- 进度。
  3961. * @param {Function} fail -- 失败。
  3962. * @param {Function} success -- 成功。
  3963. * @param {Function} complete -- 完成。
  3964. * @param {Function} start -- 开始上传。
  3965. * @param {Function} stop -- 停止上传。
  3966. */var
  3967. uploadfile = /*#__PURE__*/function () {
  3968. function uploadfile(_ref) {var _arguments$;var maxfile = _ref.maxfile,uploadUrl = _ref.uploadUrl,opts = _ref.opts,responseStu = _ref.responseStu,file_list = _ref.file_list,isAuto = _ref.isAuto;_classCallCheck(this, uploadfile);_defineProperty(this, "filelist", []);_defineProperty(this, "isStop", false);_defineProperty(this, "index", 0);
  3969. var arg = _objectSpread({
  3970. maxfile: 9,
  3971. uploadUrl: '',
  3972. file_list: [],
  3973. isAuto: true,
  3974. opts: {},
  3975. maxsize: 10 * 1024 * 1024,
  3976. code: 0, //定义成功的标志码
  3977. type: 'image', //文件选择的类型
  3978. extension: ['*'], //后缀过滤。
  3979. responseStu: {
  3980. code: 'code', //服务器返回的码的字段名称
  3981. data: 'data', //服务上传成功后返回 的数据字段名称
  3982. msg: 'msg' //服务器响应信息的字段名称。
  3983. } }, (_arguments$ =
  3984. arguments[0]) !== null && _arguments$ !== void 0 ? _arguments$ : {});
  3985. var ots = {
  3986. name: 'file', header: {} };
  3987. //配置{name: 'file', // 上传时的文件key名。默认file,header: {}, // 上传的头部参数。}
  3988. this.config = {
  3989. maxfile: arg.maxfile,
  3990. uploadUrl: arg.uploadUrl,
  3991. opts: _objectSpread(_objectSpread({}, ots), arg.opts),
  3992. file_list: arg.file_list, //默认提供的图片.
  3993. maxsize: arg.maxsize,
  3994. code: arg.code,
  3995. isAuto: arg.isAuto, //自动上传
  3996. type: arg.type, //文件选择的类型
  3997. extension: arg.extension, //后缀过滤。
  3998. responseStu: _objectSpread(_objectSpread({}, arg.responseStu), responseStu || {}) };
  3999. }
  4000. /**
  4001. * 成功后返回选择后的图片列表。
  4002. */_createClass(uploadfile, [{ key: "chooesefile", value: function () {var _chooesefile = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee() {var t;return _regenerator.default.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:
  4003. t = this;return _context.abrupt("return",
  4004. new Promise(function (rs, rj) {
  4005. uni.chooseImage({
  4006. count: t.config.maxfile,
  4007. type: t.config.type,
  4008. extension: t.config.extension,
  4009. fail: function fail(e) {
  4010. console.error(e);
  4011. uni.$tm.toast("已取消选择");
  4012. rj(e);
  4013. },
  4014. success: function success(res) {var _t$filelist;
  4015. console.log(res);
  4016. if (res.tempFilePaths.length == 0) {
  4017. uni.$tm.toast("未选择");
  4018. return;
  4019. }
  4020. console.log(res);
  4021. var imgarray = res.tempFilePaths;
  4022. var fielist = res.tempFiles;
  4023. var jgsk = [];
  4024. //0待上传,1上传中,2上传失败,3上传成功。4超过大小限制
  4025. imgarray.forEach(function (item, index) {
  4026. var isMaxsize = fielist[index].size > t.config.maxsize ? true : false;
  4027. jgsk.push({
  4028. url: item,
  4029. status: isMaxsize ? '超过大小' : "待上传",
  4030. progress: isMaxsize ? 100 : 0,
  4031. fileId: (0, _guid.default)(),
  4032. statusCode: isMaxsize ? 4 : 0,
  4033. data: null //上传成功后的回调数据。
  4034. });
  4035. });
  4036. (_t$filelist = t.filelist).push.apply(_t$filelist, jgsk);
  4037. t.selected(t.filelist);
  4038. if (t.config.isAuto) {
  4039. t.start();
  4040. }
  4041. rs(t.filelist);
  4042. } });
  4043. }));case 2:case "end":return _context.stop();}}}, _callee, this);}));function chooesefile() {return _chooesefile.apply(this, arguments);}return chooesefile;}() }, { key: "chooseMPH5weixinFile", value: function () {var _chooseMPH5weixinFile = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee2() {var t;return _regenerator.default.wrap(function _callee2$(_context2) {while (1) {switch (_context2.prev = _context2.next) {case 0:
  4044. t = this;return _context2.abrupt("return",
  4045. new Promise(function (rs, rj) {var _t$config$extension;
  4046. var fs = uni.chooseFile;
  4047. fs = uni.chooseMessageFile;
  4048. var config = {
  4049. count: t.config.maxfile,
  4050. type: t.config.type,
  4051. extension: t.config.extension };
  4052. if (!t.config.extension || !Array.isArray(t.config.extension) || ((_t$config$extension = t.config.extension) === null || _t$config$extension === void 0 ? void 0 : _t$config$extension.length) == 0) {
  4053. delete config.extension;
  4054. }
  4055. fs(_objectSpread(_objectSpread({},
  4056. config), {}, {
  4057. fail: function fail(e) {
  4058. console.error(e);
  4059. uni.$tm.toast("已取消选择");
  4060. rj(e);
  4061. },
  4062. success: function success(res) {var _t$filelist2;
  4063. if (res.tempFiles.length == 0) {
  4064. uni.$tm.toast("未选择");
  4065. return;
  4066. }
  4067. var fielist = res.tempFiles;
  4068. var jgsk = [];
  4069. //0待上传,1上传中,2上传失败,3上传成功。4超过大小限制
  4070. fielist.forEach(function (item, index) {
  4071. var isMaxsize = fielist[index].size > t.config.maxsize ? true : false;
  4072. var ftype = item.name || "";
  4073. if (ftype) {
  4074. ftype = ftype.substr(ftype.lastIndexOf(".") + 1).toLocaleLowerCase();
  4075. }
  4076. jgsk.push({
  4077. url: item.path,
  4078. name: item.name || '默认文件名称',
  4079. type: ftype,
  4080. status: isMaxsize ? '超过大小' : "待上传",
  4081. progress: isMaxsize ? 100 : 0,
  4082. fileId: (0, _guid.default)(),
  4083. statusCode: isMaxsize ? 4 : 0,
  4084. data: null //上传成功后的回调数据。
  4085. });
  4086. });
  4087. (_t$filelist2 = t.filelist).push.apply(_t$filelist2, jgsk);
  4088. t.selected(t.filelist);
  4089. if (t.config.isAuto) {
  4090. t.start();
  4091. }
  4092. rs(t.filelist);
  4093. } }));
  4094. }));case 2:case "end":return _context2.stop();}}}, _callee2, this);}));function chooseMPH5weixinFile() {return _chooseMPH5weixinFile.apply(this, arguments);}return chooseMPH5weixinFile;}() }, { key: "setConfig", value: function setConfig(_ref2)
  4095. {var maxfile = _ref2.maxfile,uploadUrl = _ref2.uploadUrl,opts = _ref2.opts,file_list = _ref2.file_list,isAuto = _ref2.isAuto,responseStu = _ref2.responseStu;
  4096. var arg = arguments.length == 0 ? {} : arguments[0];
  4097. this.config = _objectSpread(_objectSpread({}, this.config), arg);
  4098. }
  4099. // 动态加入预上传的文件。
  4100. /**
  4101. * 动态加入文件
  4102. * @param {Object} filelist
  4103. */ }, { key: "addfile", value: function addfile(
  4104. filelist) {var _this$filelist;
  4105. if (typeof filelist !== 'object' && !Array.isArray(filelist)) return;
  4106. (_this$filelist = this.filelist).push.apply(_this$filelist, _toConsumableArray(filelist));
  4107. }
  4108. // 选择图片成功后触发。返回选择后的图片。
  4109. }, { key: "selected", value: function selected(filelist) {}
  4110. // 进度。
  4111. }, { key: "progress", value: function progress(item) {}
  4112. // 失败
  4113. }, { key: "fail", value: function fail(item) {}
  4114. // 成功
  4115. }, { key: "success", value: function success(item) {}
  4116. // 完成。
  4117. }, { key: "complete", value: function complete(filelist) {}
  4118. // 开始上传。
  4119. }, { key: "start", value: function start() {
  4120. if (this.filelist.length <= 0) {
  4121. uni.$tm.toast("未选择图片");
  4122. return;
  4123. }
  4124. var t = this;
  4125. // t重新开始上传从头开始。
  4126. this.index = 0;
  4127. this.isStop = false;
  4128. function startupload() {var _t$config$opts$name, _t$config$opts, _t$config$opts$header, _t$config$opts2;
  4129. if (t.isStop) return;
  4130. var item = t.filelist[t.index];
  4131. if (!item || typeof item === 'undefined') {
  4132. // 文件不存在。直接结束。
  4133. t.complete(t.filelist);
  4134. return;
  4135. }
  4136. if (item.statusCode == 3 || item.statusCode == 1 || item.statusCode == 4) {
  4137. // 直接跳过。至下一个文件。
  4138. t.index++;
  4139. startupload();
  4140. return;
  4141. }
  4142. var upObj = uni.uploadFile({
  4143. url: t.config.uploadUrl,
  4144. name: (_t$config$opts$name = (_t$config$opts = t.config.opts) === null || _t$config$opts === void 0 ? void 0 : _t$config$opts.name) !== null && _t$config$opts$name !== void 0 ? _t$config$opts$name : 'file',
  4145. header: (_t$config$opts$header = (_t$config$opts2 = t.config.opts) === null || _t$config$opts2 === void 0 ? void 0 : _t$config$opts2.header) !== null && _t$config$opts$header !== void 0 ? _t$config$opts$header : {},
  4146. filePath: item.url,
  4147. formData: { file_name: item.name },
  4148. success: function success(res) {
  4149. if (res.statusCode != 200) {
  4150. item.statusCode = 2;
  4151. item.status = "上传失败";
  4152. uni.$tm.toast(String(res.statusCode));
  4153. t.fail(item);
  4154. t.index++;
  4155. return;
  4156. }
  4157. var jsd = {};
  4158. var isOk = true;
  4159. // 是否从服务器返回的是json。如果不是则表示fasle为string.
  4160. var isJsonCallbackData = true;
  4161. try {
  4162. jsd = JSON.parse(res.data);
  4163. } catch (e) {
  4164. isJsonCallbackData = false;
  4165. jsd = res.data;
  4166. item.data = res.data;
  4167. }
  4168. if (isJsonCallbackData) {
  4169. try {
  4170. item.data = jsd[t.config.responseStu.data];
  4171. if (typeof item.data == 'object') {
  4172. item.data['name'] = item.name;
  4173. item.data['id'] = item['id'] || "";
  4174. }
  4175. var itecode = jsd[t.config.responseStu.code];
  4176. if (itecode !== t.config.code) {
  4177. isOk = false;
  4178. }
  4179. } catch (e) {
  4180. isOk = false;
  4181. }
  4182. }
  4183. if (!isOk) {
  4184. uni.$tm.toast(jsd[t.config.responseStu.msg] || "失败");
  4185. item.statusCode = 2;
  4186. item.status = "上传失败";
  4187. t.fail(item);
  4188. t.index++;
  4189. return;
  4190. }
  4191. // 上传成功。
  4192. item.statusCode = 3;
  4193. item.status = "上传成功";
  4194. uni.$tm.toast("上传成功");
  4195. // t.filelist[t.index] = item;
  4196. // t.filelist.splice(t.index,1,item)
  4197. t.success(item);
  4198. },
  4199. fail: function fail(res) {
  4200. uni.$tm.toast(res.errMsg);
  4201. item.statusCode = 2;
  4202. item.status = "上传失败";
  4203. // t.filelist[t.index] = item;
  4204. t.fail(item);
  4205. t.index++;
  4206. },
  4207. complete: function complete(res) {
  4208. // 直接下一个文件。
  4209. startupload();
  4210. } });
  4211. if (upObj) {
  4212. upObj.onProgressUpdate(function (res) {
  4213. t.filelist[t.index].statusCode = 1;
  4214. t.filelist[t.index].status = "上传中";
  4215. t.filelist[t.index].progress = res.progress;
  4216. // t.filelist[t.index] = item;
  4217. t.progress(item);
  4218. });
  4219. }
  4220. }
  4221. startupload();
  4222. }
  4223. // 停止上传
  4224. }, { key: "stop", value: function stop() {
  4225. this.isStop = true;
  4226. } }]);return uploadfile;}();
  4227. /**
  4228. * 上传文件。
  4229. * 作者:tmzdy
  4230. * 时间:‎2021‎年‎7‎月‎28‎日,‏‎9:14:53
  4231. * 联系:zhongjihan@sina.com
  4232. * 选择图片上传,相册或者拍照。
  4233. * @param {Number} maxfile 最大上传的文件数量,默认为 9 ;
  4234. * @param {String} uploadUrl -- ""
  4235. * @param {Object} opts -- {}
  4236. * @param {Function} progress {} --上传中调用
  4237. * @param {Function} success {} --上传成功才会调用。
  4238. * @param {Function} selected {} --选完图片待上传调用。
  4239. * @param {Function} fail {} --上传失败时调用,返回文件相关
  4240. * @param {Function} complete {} -- 完成上传时触发,失败与成功都触发。
  4241. */
  4242. function chooseImgUpload() {var maxfile = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 9;var uploadUrl = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";var opts = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};var progress = arguments.length > 3 ? arguments[3] : undefined;var _success = arguments.length > 4 ? arguments[4] : undefined;var selected = arguments.length > 5 ? arguments[5] : undefined;var _fail = arguments.length > 6 ? arguments[6] : undefined;var complete = arguments.length > 7 ? arguments[7] : undefined;
  4243. uni.chooseImage({
  4244. count: maxfile,
  4245. fail: function fail(e) {
  4246. uni.$tm.toast("用户取消选择图片");
  4247. },
  4248. success: function success(res) {
  4249. if (res.tempFilePaths.length == 0) {
  4250. uni.$tm.toast("未选择图片");
  4251. return;
  4252. }
  4253. var imgarray = res.tempFilePaths;
  4254. var jgsk = [];
  4255. //0待上传,1上传中,2上传失败,3上传成功。
  4256. imgarray.forEach(function (item, index) {
  4257. jgsk.push({
  4258. url: item,
  4259. status: "待上传",
  4260. progress: 0,
  4261. fileId: (0, _guid.default)(),
  4262. statusCode: 0,
  4263. data: null //上传成功后的回调数据。
  4264. });
  4265. });
  4266. if (selected) {
  4267. selected(jgsk);
  4268. }
  4269. var index = 0;
  4270. function startupload() {var _opts$name, _opts$header;
  4271. var item = jgsk[index];
  4272. if (!item) {
  4273. // 文件不存在。直接结束。
  4274. if (complete) {
  4275. complete(jgsk);
  4276. }
  4277. return;
  4278. }
  4279. if (item.statusCode == 2 || item.statusCode == 1) {
  4280. // 直接跳过。至下一个文件。
  4281. index++;
  4282. startupload();
  4283. }
  4284. var upObj = uni.uploadFile({
  4285. url: uploadUrl,
  4286. name: (_opts$name = opts === null || opts === void 0 ? void 0 : opts.name) !== null && _opts$name !== void 0 ? _opts$name : 'file',
  4287. header: (_opts$header = opts === null || opts === void 0 ? void 0 : opts.header) !== null && _opts$header !== void 0 ? _opts$header : {},
  4288. filePath: item.url,
  4289. success: function success(res) {
  4290. if (res.statusCode != 200) {
  4291. item.statusCode = 2;
  4292. item.status = "上传失败";
  4293. uni.$tm.toast(res.errMsg);
  4294. if (_fail) {
  4295. _fail(item);
  4296. }
  4297. return;
  4298. }
  4299. try {
  4300. item.data = JSON.parse(res.data).data;
  4301. } catch (e) {
  4302. item.statusCode = 2;
  4303. item.status = "上传失败";
  4304. uni.$tm.toast(res.errMsg);
  4305. if (_fail) {
  4306. _fail(item);
  4307. }
  4308. return;
  4309. }
  4310. // 上传成功。
  4311. item.statusCode = 3;
  4312. item.status = "上传成功";
  4313. item.data = JSON.parse(res.data).data;
  4314. uni.$tm.toast("上传成功");
  4315. if (_success) {
  4316. _success(item);
  4317. }
  4318. },
  4319. fail: function fail(res) {
  4320. uni.$tm.toast(res.errMsg);
  4321. item.statusCode = 2;
  4322. item.status = "上传失败";
  4323. if (_fail) {
  4324. _fail(item);
  4325. }
  4326. },
  4327. complete: function complete(res) {
  4328. // 直接下一个文件。
  4329. index++;
  4330. startupload();
  4331. } });
  4332. if (upObj) {
  4333. upObj.onProgressUpdate(function (res) {
  4334. item.statusCode = 1;
  4335. item.status = "上传中";
  4336. item.progress = res.progress;
  4337. if (progress) {
  4338. progress(item);
  4339. }
  4340. });
  4341. }
  4342. }
  4343. startupload();
  4344. } });
  4345. }var _default =
  4346. {
  4347. chooseImgUpload: chooseImgUpload, uploadfile: uploadfile };exports.default = _default;
  4348. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  4349. /***/ }),
  4350. /***/ 36:
  4351. /*!**********************************************************!*\
  4352. !*** ./node_modules/@babel/runtime/regenerator/index.js ***!
  4353. \**********************************************************/
  4354. /*! no static exports found */
  4355. /***/ (function(module, exports, __webpack_require__) {
  4356. module.exports = __webpack_require__(/*! regenerator-runtime */ 37);
  4357. /***/ }),
  4358. /***/ 37:
  4359. /*!************************************************************!*\
  4360. !*** ./node_modules/regenerator-runtime/runtime-module.js ***!
  4361. \************************************************************/
  4362. /*! no static exports found */
  4363. /***/ (function(module, exports, __webpack_require__) {
  4364. /**
  4365. * Copyright (c) 2014-present, Facebook, Inc.
  4366. *
  4367. * This source code is licensed under the MIT license found in the
  4368. * LICENSE file in the root directory of this source tree.
  4369. */
  4370. // This method of obtaining a reference to the global object needs to be
  4371. // kept identical to the way it is obtained in runtime.js
  4372. var g = (function() {
  4373. return this || (typeof self === "object" && self);
  4374. })() || Function("return this")();
  4375. // Use `getOwnPropertyNames` because not all browsers support calling
  4376. // `hasOwnProperty` on the global `self` object in a worker. See #183.
  4377. var hadRuntime = g.regeneratorRuntime &&
  4378. Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0;
  4379. // Save the old regeneratorRuntime in case it needs to be restored later.
  4380. var oldRuntime = hadRuntime && g.regeneratorRuntime;
  4381. // Force reevalutation of runtime.js.
  4382. g.regeneratorRuntime = undefined;
  4383. module.exports = __webpack_require__(/*! ./runtime */ 38);
  4384. if (hadRuntime) {
  4385. // Restore the original runtime.
  4386. g.regeneratorRuntime = oldRuntime;
  4387. } else {
  4388. // Remove the global property added by runtime.js.
  4389. try {
  4390. delete g.regeneratorRuntime;
  4391. } catch(e) {
  4392. g.regeneratorRuntime = undefined;
  4393. }
  4394. }
  4395. /***/ }),
  4396. /***/ 38:
  4397. /*!*****************************************************!*\
  4398. !*** ./node_modules/regenerator-runtime/runtime.js ***!
  4399. \*****************************************************/
  4400. /*! no static exports found */
  4401. /***/ (function(module, exports) {
  4402. /**
  4403. * Copyright (c) 2014-present, Facebook, Inc.
  4404. *
  4405. * This source code is licensed under the MIT license found in the
  4406. * LICENSE file in the root directory of this source tree.
  4407. */
  4408. !(function(global) {
  4409. "use strict";
  4410. var Op = Object.prototype;
  4411. var hasOwn = Op.hasOwnProperty;
  4412. var undefined; // More compressible than void 0.
  4413. var $Symbol = typeof Symbol === "function" ? Symbol : {};
  4414. var iteratorSymbol = $Symbol.iterator || "@@iterator";
  4415. var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
  4416. var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  4417. var inModule = typeof module === "object";
  4418. var runtime = global.regeneratorRuntime;
  4419. if (runtime) {
  4420. if (inModule) {
  4421. // If regeneratorRuntime is defined globally and we're in a module,
  4422. // make the exports object identical to regeneratorRuntime.
  4423. module.exports = runtime;
  4424. }
  4425. // Don't bother evaluating the rest of this file if the runtime was
  4426. // already defined globally.
  4427. return;
  4428. }
  4429. // Define the runtime globally (as expected by generated code) as either
  4430. // module.exports (if we're in a module) or a new, empty object.
  4431. runtime = global.regeneratorRuntime = inModule ? module.exports : {};
  4432. function wrap(innerFn, outerFn, self, tryLocsList) {
  4433. // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
  4434. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
  4435. var generator = Object.create(protoGenerator.prototype);
  4436. var context = new Context(tryLocsList || []);
  4437. // The ._invoke method unifies the implementations of the .next,
  4438. // .throw, and .return methods.
  4439. generator._invoke = makeInvokeMethod(innerFn, self, context);
  4440. return generator;
  4441. }
  4442. runtime.wrap = wrap;
  4443. // Try/catch helper to minimize deoptimizations. Returns a completion
  4444. // record like context.tryEntries[i].completion. This interface could
  4445. // have been (and was previously) designed to take a closure to be
  4446. // invoked without arguments, but in all the cases we care about we
  4447. // already have an existing method we want to call, so there's no need
  4448. // to create a new function object. We can even get away with assuming
  4449. // the method takes exactly one argument, since that happens to be true
  4450. // in every case, so we don't have to touch the arguments object. The
  4451. // only additional allocation required is the completion record, which
  4452. // has a stable shape and so hopefully should be cheap to allocate.
  4453. function tryCatch(fn, obj, arg) {
  4454. try {
  4455. return { type: "normal", arg: fn.call(obj, arg) };
  4456. } catch (err) {
  4457. return { type: "throw", arg: err };
  4458. }
  4459. }
  4460. var GenStateSuspendedStart = "suspendedStart";
  4461. var GenStateSuspendedYield = "suspendedYield";
  4462. var GenStateExecuting = "executing";
  4463. var GenStateCompleted = "completed";
  4464. // Returning this object from the innerFn has the same effect as
  4465. // breaking out of the dispatch switch statement.
  4466. var ContinueSentinel = {};
  4467. // Dummy constructor functions that we use as the .constructor and
  4468. // .constructor.prototype properties for functions that return Generator
  4469. // objects. For full spec compliance, you may wish to configure your
  4470. // minifier not to mangle the names of these two functions.
  4471. function Generator() {}
  4472. function GeneratorFunction() {}
  4473. function GeneratorFunctionPrototype() {}
  4474. // This is a polyfill for %IteratorPrototype% for environments that
  4475. // don't natively support it.
  4476. var IteratorPrototype = {};
  4477. IteratorPrototype[iteratorSymbol] = function () {
  4478. return this;
  4479. };
  4480. var getProto = Object.getPrototypeOf;
  4481. var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  4482. if (NativeIteratorPrototype &&
  4483. NativeIteratorPrototype !== Op &&
  4484. hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
  4485. // This environment has a native %IteratorPrototype%; use it instead
  4486. // of the polyfill.
  4487. IteratorPrototype = NativeIteratorPrototype;
  4488. }
  4489. var Gp = GeneratorFunctionPrototype.prototype =
  4490. Generator.prototype = Object.create(IteratorPrototype);
  4491. GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
  4492. GeneratorFunctionPrototype.constructor = GeneratorFunction;
  4493. GeneratorFunctionPrototype[toStringTagSymbol] =
  4494. GeneratorFunction.displayName = "GeneratorFunction";
  4495. // Helper for defining the .next, .throw, and .return methods of the
  4496. // Iterator interface in terms of a single ._invoke method.
  4497. function defineIteratorMethods(prototype) {
  4498. ["next", "throw", "return"].forEach(function(method) {
  4499. prototype[method] = function(arg) {
  4500. return this._invoke(method, arg);
  4501. };
  4502. });
  4503. }
  4504. runtime.isGeneratorFunction = function(genFun) {
  4505. var ctor = typeof genFun === "function" && genFun.constructor;
  4506. return ctor
  4507. ? ctor === GeneratorFunction ||
  4508. // For the native GeneratorFunction constructor, the best we can
  4509. // do is to check its .name property.
  4510. (ctor.displayName || ctor.name) === "GeneratorFunction"
  4511. : false;
  4512. };
  4513. runtime.mark = function(genFun) {
  4514. if (Object.setPrototypeOf) {
  4515. Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
  4516. } else {
  4517. genFun.__proto__ = GeneratorFunctionPrototype;
  4518. if (!(toStringTagSymbol in genFun)) {
  4519. genFun[toStringTagSymbol] = "GeneratorFunction";
  4520. }
  4521. }
  4522. genFun.prototype = Object.create(Gp);
  4523. return genFun;
  4524. };
  4525. // Within the body of any async function, `await x` is transformed to
  4526. // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
  4527. // `hasOwn.call(value, "__await")` to determine if the yielded value is
  4528. // meant to be awaited.
  4529. runtime.awrap = function(arg) {
  4530. return { __await: arg };
  4531. };
  4532. function AsyncIterator(generator) {
  4533. function invoke(method, arg, resolve, reject) {
  4534. var record = tryCatch(generator[method], generator, arg);
  4535. if (record.type === "throw") {
  4536. reject(record.arg);
  4537. } else {
  4538. var result = record.arg;
  4539. var value = result.value;
  4540. if (value &&
  4541. typeof value === "object" &&
  4542. hasOwn.call(value, "__await")) {
  4543. return Promise.resolve(value.__await).then(function(value) {
  4544. invoke("next", value, resolve, reject);
  4545. }, function(err) {
  4546. invoke("throw", err, resolve, reject);
  4547. });
  4548. }
  4549. return Promise.resolve(value).then(function(unwrapped) {
  4550. // When a yielded Promise is resolved, its final value becomes
  4551. // the .value of the Promise<{value,done}> result for the
  4552. // current iteration.
  4553. result.value = unwrapped;
  4554. resolve(result);
  4555. }, function(error) {
  4556. // If a rejected Promise was yielded, throw the rejection back
  4557. // into the async generator function so it can be handled there.
  4558. return invoke("throw", error, resolve, reject);
  4559. });
  4560. }
  4561. }
  4562. var previousPromise;
  4563. function enqueue(method, arg) {
  4564. function callInvokeWithMethodAndArg() {
  4565. return new Promise(function(resolve, reject) {
  4566. invoke(method, arg, resolve, reject);
  4567. });
  4568. }
  4569. return previousPromise =
  4570. // If enqueue has been called before, then we want to wait until
  4571. // all previous Promises have been resolved before calling invoke,
  4572. // so that results are always delivered in the correct order. If
  4573. // enqueue has not been called before, then it is important to
  4574. // call invoke immediately, without waiting on a callback to fire,
  4575. // so that the async generator function has the opportunity to do
  4576. // any necessary setup in a predictable way. This predictability
  4577. // is why the Promise constructor synchronously invokes its
  4578. // executor callback, and why async functions synchronously
  4579. // execute code before the first await. Since we implement simple
  4580. // async functions in terms of async generators, it is especially
  4581. // important to get this right, even though it requires care.
  4582. previousPromise ? previousPromise.then(
  4583. callInvokeWithMethodAndArg,
  4584. // Avoid propagating failures to Promises returned by later
  4585. // invocations of the iterator.
  4586. callInvokeWithMethodAndArg
  4587. ) : callInvokeWithMethodAndArg();
  4588. }
  4589. // Define the unified helper method that is used to implement .next,
  4590. // .throw, and .return (see defineIteratorMethods).
  4591. this._invoke = enqueue;
  4592. }
  4593. defineIteratorMethods(AsyncIterator.prototype);
  4594. AsyncIterator.prototype[asyncIteratorSymbol] = function () {
  4595. return this;
  4596. };
  4597. runtime.AsyncIterator = AsyncIterator;
  4598. // Note that simple async functions are implemented on top of
  4599. // AsyncIterator objects; they just return a Promise for the value of
  4600. // the final result produced by the iterator.
  4601. runtime.async = function(innerFn, outerFn, self, tryLocsList) {
  4602. var iter = new AsyncIterator(
  4603. wrap(innerFn, outerFn, self, tryLocsList)
  4604. );
  4605. return runtime.isGeneratorFunction(outerFn)
  4606. ? iter // If outerFn is a generator, return the full iterator.
  4607. : iter.next().then(function(result) {
  4608. return result.done ? result.value : iter.next();
  4609. });
  4610. };
  4611. function makeInvokeMethod(innerFn, self, context) {
  4612. var state = GenStateSuspendedStart;
  4613. return function invoke(method, arg) {
  4614. if (state === GenStateExecuting) {
  4615. throw new Error("Generator is already running");
  4616. }
  4617. if (state === GenStateCompleted) {
  4618. if (method === "throw") {
  4619. throw arg;
  4620. }
  4621. // Be forgiving, per 25.3.3.3.3 of the spec:
  4622. // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
  4623. return doneResult();
  4624. }
  4625. context.method = method;
  4626. context.arg = arg;
  4627. while (true) {
  4628. var delegate = context.delegate;
  4629. if (delegate) {
  4630. var delegateResult = maybeInvokeDelegate(delegate, context);
  4631. if (delegateResult) {
  4632. if (delegateResult === ContinueSentinel) continue;
  4633. return delegateResult;
  4634. }
  4635. }
  4636. if (context.method === "next") {
  4637. // Setting context._sent for legacy support of Babel's
  4638. // function.sent implementation.
  4639. context.sent = context._sent = context.arg;
  4640. } else if (context.method === "throw") {
  4641. if (state === GenStateSuspendedStart) {
  4642. state = GenStateCompleted;
  4643. throw context.arg;
  4644. }
  4645. context.dispatchException(context.arg);
  4646. } else if (context.method === "return") {
  4647. context.abrupt("return", context.arg);
  4648. }
  4649. state = GenStateExecuting;
  4650. var record = tryCatch(innerFn, self, context);
  4651. if (record.type === "normal") {
  4652. // If an exception is thrown from innerFn, we leave state ===
  4653. // GenStateExecuting and loop back for another invocation.
  4654. state = context.done
  4655. ? GenStateCompleted
  4656. : GenStateSuspendedYield;
  4657. if (record.arg === ContinueSentinel) {
  4658. continue;
  4659. }
  4660. return {
  4661. value: record.arg,
  4662. done: context.done
  4663. };
  4664. } else if (record.type === "throw") {
  4665. state = GenStateCompleted;
  4666. // Dispatch the exception by looping back around to the
  4667. // context.dispatchException(context.arg) call above.
  4668. context.method = "throw";
  4669. context.arg = record.arg;
  4670. }
  4671. }
  4672. };
  4673. }
  4674. // Call delegate.iterator[context.method](context.arg) and handle the
  4675. // result, either by returning a { value, done } result from the
  4676. // delegate iterator, or by modifying context.method and context.arg,
  4677. // setting context.delegate to null, and returning the ContinueSentinel.
  4678. function maybeInvokeDelegate(delegate, context) {
  4679. var method = delegate.iterator[context.method];
  4680. if (method === undefined) {
  4681. // A .throw or .return when the delegate iterator has no .throw
  4682. // method always terminates the yield* loop.
  4683. context.delegate = null;
  4684. if (context.method === "throw") {
  4685. if (delegate.iterator.return) {
  4686. // If the delegate iterator has a return method, give it a
  4687. // chance to clean up.
  4688. context.method = "return";
  4689. context.arg = undefined;
  4690. maybeInvokeDelegate(delegate, context);
  4691. if (context.method === "throw") {
  4692. // If maybeInvokeDelegate(context) changed context.method from
  4693. // "return" to "throw", let that override the TypeError below.
  4694. return ContinueSentinel;
  4695. }
  4696. }
  4697. context.method = "throw";
  4698. context.arg = new TypeError(
  4699. "The iterator does not provide a 'throw' method");
  4700. }
  4701. return ContinueSentinel;
  4702. }
  4703. var record = tryCatch(method, delegate.iterator, context.arg);
  4704. if (record.type === "throw") {
  4705. context.method = "throw";
  4706. context.arg = record.arg;
  4707. context.delegate = null;
  4708. return ContinueSentinel;
  4709. }
  4710. var info = record.arg;
  4711. if (! info) {
  4712. context.method = "throw";
  4713. context.arg = new TypeError("iterator result is not an object");
  4714. context.delegate = null;
  4715. return ContinueSentinel;
  4716. }
  4717. if (info.done) {
  4718. // Assign the result of the finished delegate to the temporary
  4719. // variable specified by delegate.resultName (see delegateYield).
  4720. context[delegate.resultName] = info.value;
  4721. // Resume execution at the desired location (see delegateYield).
  4722. context.next = delegate.nextLoc;
  4723. // If context.method was "throw" but the delegate handled the
  4724. // exception, let the outer generator proceed normally. If
  4725. // context.method was "next", forget context.arg since it has been
  4726. // "consumed" by the delegate iterator. If context.method was
  4727. // "return", allow the original .return call to continue in the
  4728. // outer generator.
  4729. if (context.method !== "return") {
  4730. context.method = "next";
  4731. context.arg = undefined;
  4732. }
  4733. } else {
  4734. // Re-yield the result returned by the delegate method.
  4735. return info;
  4736. }
  4737. // The delegate iterator is finished, so forget it and continue with
  4738. // the outer generator.
  4739. context.delegate = null;
  4740. return ContinueSentinel;
  4741. }
  4742. // Define Generator.prototype.{next,throw,return} in terms of the
  4743. // unified ._invoke helper method.
  4744. defineIteratorMethods(Gp);
  4745. Gp[toStringTagSymbol] = "Generator";
  4746. // A Generator should always return itself as the iterator object when the
  4747. // @@iterator function is called on it. Some browsers' implementations of the
  4748. // iterator prototype chain incorrectly implement this, causing the Generator
  4749. // object to not be returned from this call. This ensures that doesn't happen.
  4750. // See https://github.com/facebook/regenerator/issues/274 for more details.
  4751. Gp[iteratorSymbol] = function() {
  4752. return this;
  4753. };
  4754. Gp.toString = function() {
  4755. return "[object Generator]";
  4756. };
  4757. function pushTryEntry(locs) {
  4758. var entry = { tryLoc: locs[0] };
  4759. if (1 in locs) {
  4760. entry.catchLoc = locs[1];
  4761. }
  4762. if (2 in locs) {
  4763. entry.finallyLoc = locs[2];
  4764. entry.afterLoc = locs[3];
  4765. }
  4766. this.tryEntries.push(entry);
  4767. }
  4768. function resetTryEntry(entry) {
  4769. var record = entry.completion || {};
  4770. record.type = "normal";
  4771. delete record.arg;
  4772. entry.completion = record;
  4773. }
  4774. function Context(tryLocsList) {
  4775. // The root entry object (effectively a try statement without a catch
  4776. // or a finally block) gives us a place to store values thrown from
  4777. // locations where there is no enclosing try statement.
  4778. this.tryEntries = [{ tryLoc: "root" }];
  4779. tryLocsList.forEach(pushTryEntry, this);
  4780. this.reset(true);
  4781. }
  4782. runtime.keys = function(object) {
  4783. var keys = [];
  4784. for (var key in object) {
  4785. keys.push(key);
  4786. }
  4787. keys.reverse();
  4788. // Rather than returning an object with a next method, we keep
  4789. // things simple and return the next function itself.
  4790. return function next() {
  4791. while (keys.length) {
  4792. var key = keys.pop();
  4793. if (key in object) {
  4794. next.value = key;
  4795. next.done = false;
  4796. return next;
  4797. }
  4798. }
  4799. // To avoid creating an additional object, we just hang the .value
  4800. // and .done properties off the next function object itself. This
  4801. // also ensures that the minifier will not anonymize the function.
  4802. next.done = true;
  4803. return next;
  4804. };
  4805. };
  4806. function values(iterable) {
  4807. if (iterable) {
  4808. var iteratorMethod = iterable[iteratorSymbol];
  4809. if (iteratorMethod) {
  4810. return iteratorMethod.call(iterable);
  4811. }
  4812. if (typeof iterable.next === "function") {
  4813. return iterable;
  4814. }
  4815. if (!isNaN(iterable.length)) {
  4816. var i = -1, next = function next() {
  4817. while (++i < iterable.length) {
  4818. if (hasOwn.call(iterable, i)) {
  4819. next.value = iterable[i];
  4820. next.done = false;
  4821. return next;
  4822. }
  4823. }
  4824. next.value = undefined;
  4825. next.done = true;
  4826. return next;
  4827. };
  4828. return next.next = next;
  4829. }
  4830. }
  4831. // Return an iterator with no values.
  4832. return { next: doneResult };
  4833. }
  4834. runtime.values = values;
  4835. function doneResult() {
  4836. return { value: undefined, done: true };
  4837. }
  4838. Context.prototype = {
  4839. constructor: Context,
  4840. reset: function(skipTempReset) {
  4841. this.prev = 0;
  4842. this.next = 0;
  4843. // Resetting context._sent for legacy support of Babel's
  4844. // function.sent implementation.
  4845. this.sent = this._sent = undefined;
  4846. this.done = false;
  4847. this.delegate = null;
  4848. this.method = "next";
  4849. this.arg = undefined;
  4850. this.tryEntries.forEach(resetTryEntry);
  4851. if (!skipTempReset) {
  4852. for (var name in this) {
  4853. // Not sure about the optimal order of these conditions:
  4854. if (name.charAt(0) === "t" &&
  4855. hasOwn.call(this, name) &&
  4856. !isNaN(+name.slice(1))) {
  4857. this[name] = undefined;
  4858. }
  4859. }
  4860. }
  4861. },
  4862. stop: function() {
  4863. this.done = true;
  4864. var rootEntry = this.tryEntries[0];
  4865. var rootRecord = rootEntry.completion;
  4866. if (rootRecord.type === "throw") {
  4867. throw rootRecord.arg;
  4868. }
  4869. return this.rval;
  4870. },
  4871. dispatchException: function(exception) {
  4872. if (this.done) {
  4873. throw exception;
  4874. }
  4875. var context = this;
  4876. function handle(loc, caught) {
  4877. record.type = "throw";
  4878. record.arg = exception;
  4879. context.next = loc;
  4880. if (caught) {
  4881. // If the dispatched exception was caught by a catch block,
  4882. // then let that catch block handle the exception normally.
  4883. context.method = "next";
  4884. context.arg = undefined;
  4885. }
  4886. return !! caught;
  4887. }
  4888. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  4889. var entry = this.tryEntries[i];
  4890. var record = entry.completion;
  4891. if (entry.tryLoc === "root") {
  4892. // Exception thrown outside of any try block that could handle
  4893. // it, so set the completion value of the entire function to
  4894. // throw the exception.
  4895. return handle("end");
  4896. }
  4897. if (entry.tryLoc <= this.prev) {
  4898. var hasCatch = hasOwn.call(entry, "catchLoc");
  4899. var hasFinally = hasOwn.call(entry, "finallyLoc");
  4900. if (hasCatch && hasFinally) {
  4901. if (this.prev < entry.catchLoc) {
  4902. return handle(entry.catchLoc, true);
  4903. } else if (this.prev < entry.finallyLoc) {
  4904. return handle(entry.finallyLoc);
  4905. }
  4906. } else if (hasCatch) {
  4907. if (this.prev < entry.catchLoc) {
  4908. return handle(entry.catchLoc, true);
  4909. }
  4910. } else if (hasFinally) {
  4911. if (this.prev < entry.finallyLoc) {
  4912. return handle(entry.finallyLoc);
  4913. }
  4914. } else {
  4915. throw new Error("try statement without catch or finally");
  4916. }
  4917. }
  4918. }
  4919. },
  4920. abrupt: function(type, arg) {
  4921. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  4922. var entry = this.tryEntries[i];
  4923. if (entry.tryLoc <= this.prev &&
  4924. hasOwn.call(entry, "finallyLoc") &&
  4925. this.prev < entry.finallyLoc) {
  4926. var finallyEntry = entry;
  4927. break;
  4928. }
  4929. }
  4930. if (finallyEntry &&
  4931. (type === "break" ||
  4932. type === "continue") &&
  4933. finallyEntry.tryLoc <= arg &&
  4934. arg <= finallyEntry.finallyLoc) {
  4935. // Ignore the finally entry if control is not jumping to a
  4936. // location outside the try/catch block.
  4937. finallyEntry = null;
  4938. }
  4939. var record = finallyEntry ? finallyEntry.completion : {};
  4940. record.type = type;
  4941. record.arg = arg;
  4942. if (finallyEntry) {
  4943. this.method = "next";
  4944. this.next = finallyEntry.finallyLoc;
  4945. return ContinueSentinel;
  4946. }
  4947. return this.complete(record);
  4948. },
  4949. complete: function(record, afterLoc) {
  4950. if (record.type === "throw") {
  4951. throw record.arg;
  4952. }
  4953. if (record.type === "break" ||
  4954. record.type === "continue") {
  4955. this.next = record.arg;
  4956. } else if (record.type === "return") {
  4957. this.rval = this.arg = record.arg;
  4958. this.method = "return";
  4959. this.next = "end";
  4960. } else if (record.type === "normal" && afterLoc) {
  4961. this.next = afterLoc;
  4962. }
  4963. return ContinueSentinel;
  4964. },
  4965. finish: function(finallyLoc) {
  4966. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  4967. var entry = this.tryEntries[i];
  4968. if (entry.finallyLoc === finallyLoc) {
  4969. this.complete(entry.completion, entry.afterLoc);
  4970. resetTryEntry(entry);
  4971. return ContinueSentinel;
  4972. }
  4973. }
  4974. },
  4975. "catch": function(tryLoc) {
  4976. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  4977. var entry = this.tryEntries[i];
  4978. if (entry.tryLoc === tryLoc) {
  4979. var record = entry.completion;
  4980. if (record.type === "throw") {
  4981. var thrown = record.arg;
  4982. resetTryEntry(entry);
  4983. }
  4984. return thrown;
  4985. }
  4986. }
  4987. // The context.catch method must only be called with a location
  4988. // argument that corresponds to a known catch block.
  4989. throw new Error("illegal catch attempt");
  4990. },
  4991. delegateYield: function(iterable, resultName, nextLoc) {
  4992. this.delegate = {
  4993. iterator: values(iterable),
  4994. resultName: resultName,
  4995. nextLoc: nextLoc
  4996. };
  4997. if (this.method === "next") {
  4998. // Deliberately forget the last sent value so that we don't
  4999. // accidentally pass it on to the delegate.
  5000. this.arg = undefined;
  5001. }
  5002. return ContinueSentinel;
  5003. }
  5004. };
  5005. })(
  5006. // In sloppy mode, unbound `this` refers to the global object, fallback to
  5007. // Function constructor if we're in global strict mode. That is sadly a form
  5008. // of indirect eval which violates Content Security Policy.
  5009. (function() {
  5010. return this || (typeof self === "object" && self);
  5011. })() || Function("return this")()
  5012. );
  5013. /***/ }),
  5014. /***/ 39:
  5015. /*!***********************************************************************!*\
  5016. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/function/objToString.js ***!
  5017. \***********************************************************************/
  5018. /*! no static exports found */
  5019. /***/ (function(module, exports) {
  5020. // 把对象转换为string,提供对象 和 分割符。
  5021. function objToString(obj) {var split = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ';';
  5022. if (typeof obj !== "object") return '';
  5023. var a = '';
  5024. for (var i in obj) {
  5025. a += i + ':' + obj[i] + split;
  5026. }
  5027. return a;
  5028. }
  5029. module.exports.objToString = objToString;
  5030. /***/ }),
  5031. /***/ 4:
  5032. /*!******************************************************************************************!*\
  5033. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  5034. \******************************************************************************************/
  5035. /*! exports provided: default */
  5036. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5037. "use strict";
  5038. __webpack_require__.r(__webpack_exports__);
  5039. /* WEBPACK VAR INJECTION */(function(global) {/*!
  5040. * Vue.js v2.6.11
  5041. * (c) 2014-2022 Evan You
  5042. * Released under the MIT License.
  5043. */
  5044. /* */
  5045. var emptyObject = Object.freeze({});
  5046. // These helpers produce better VM code in JS engines due to their
  5047. // explicitness and function inlining.
  5048. function isUndef (v) {
  5049. return v === undefined || v === null
  5050. }
  5051. function isDef (v) {
  5052. return v !== undefined && v !== null
  5053. }
  5054. function isTrue (v) {
  5055. return v === true
  5056. }
  5057. function isFalse (v) {
  5058. return v === false
  5059. }
  5060. /**
  5061. * Check if value is primitive.
  5062. */
  5063. function isPrimitive (value) {
  5064. return (
  5065. typeof value === 'string' ||
  5066. typeof value === 'number' ||
  5067. // $flow-disable-line
  5068. typeof value === 'symbol' ||
  5069. typeof value === 'boolean'
  5070. )
  5071. }
  5072. /**
  5073. * Quick object check - this is primarily used to tell
  5074. * Objects from primitive values when we know the value
  5075. * is a JSON-compliant type.
  5076. */
  5077. function isObject (obj) {
  5078. return obj !== null && typeof obj === 'object'
  5079. }
  5080. /**
  5081. * Get the raw type string of a value, e.g., [object Object].
  5082. */
  5083. var _toString = Object.prototype.toString;
  5084. function toRawType (value) {
  5085. return _toString.call(value).slice(8, -1)
  5086. }
  5087. /**
  5088. * Strict object type check. Only returns true
  5089. * for plain JavaScript objects.
  5090. */
  5091. function isPlainObject (obj) {
  5092. return _toString.call(obj) === '[object Object]'
  5093. }
  5094. function isRegExp (v) {
  5095. return _toString.call(v) === '[object RegExp]'
  5096. }
  5097. /**
  5098. * Check if val is a valid array index.
  5099. */
  5100. function isValidArrayIndex (val) {
  5101. var n = parseFloat(String(val));
  5102. return n >= 0 && Math.floor(n) === n && isFinite(val)
  5103. }
  5104. function isPromise (val) {
  5105. return (
  5106. isDef(val) &&
  5107. typeof val.then === 'function' &&
  5108. typeof val.catch === 'function'
  5109. )
  5110. }
  5111. /**
  5112. * Convert a value to a string that is actually rendered.
  5113. */
  5114. function toString (val) {
  5115. return val == null
  5116. ? ''
  5117. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  5118. ? JSON.stringify(val, null, 2)
  5119. : String(val)
  5120. }
  5121. /**
  5122. * Convert an input value to a number for persistence.
  5123. * If the conversion fails, return original string.
  5124. */
  5125. function toNumber (val) {
  5126. var n = parseFloat(val);
  5127. return isNaN(n) ? val : n
  5128. }
  5129. /**
  5130. * Make a map and return a function for checking if a key
  5131. * is in that map.
  5132. */
  5133. function makeMap (
  5134. str,
  5135. expectsLowerCase
  5136. ) {
  5137. var map = Object.create(null);
  5138. var list = str.split(',');
  5139. for (var i = 0; i < list.length; i++) {
  5140. map[list[i]] = true;
  5141. }
  5142. return expectsLowerCase
  5143. ? function (val) { return map[val.toLowerCase()]; }
  5144. : function (val) { return map[val]; }
  5145. }
  5146. /**
  5147. * Check if a tag is a built-in tag.
  5148. */
  5149. var isBuiltInTag = makeMap('slot,component', true);
  5150. /**
  5151. * Check if an attribute is a reserved attribute.
  5152. */
  5153. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  5154. /**
  5155. * Remove an item from an array.
  5156. */
  5157. function remove (arr, item) {
  5158. if (arr.length) {
  5159. var index = arr.indexOf(item);
  5160. if (index > -1) {
  5161. return arr.splice(index, 1)
  5162. }
  5163. }
  5164. }
  5165. /**
  5166. * Check whether an object has the property.
  5167. */
  5168. var hasOwnProperty = Object.prototype.hasOwnProperty;
  5169. function hasOwn (obj, key) {
  5170. return hasOwnProperty.call(obj, key)
  5171. }
  5172. /**
  5173. * Create a cached version of a pure function.
  5174. */
  5175. function cached (fn) {
  5176. var cache = Object.create(null);
  5177. return (function cachedFn (str) {
  5178. var hit = cache[str];
  5179. return hit || (cache[str] = fn(str))
  5180. })
  5181. }
  5182. /**
  5183. * Camelize a hyphen-delimited string.
  5184. */
  5185. var camelizeRE = /-(\w)/g;
  5186. var camelize = cached(function (str) {
  5187. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  5188. });
  5189. /**
  5190. * Capitalize a string.
  5191. */
  5192. var capitalize = cached(function (str) {
  5193. return str.charAt(0).toUpperCase() + str.slice(1)
  5194. });
  5195. /**
  5196. * Hyphenate a camelCase string.
  5197. */
  5198. var hyphenateRE = /\B([A-Z])/g;
  5199. var hyphenate = cached(function (str) {
  5200. return str.replace(hyphenateRE, '-$1').toLowerCase()
  5201. });
  5202. /**
  5203. * Simple bind polyfill for environments that do not support it,
  5204. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  5205. * since native bind is now performant enough in most browsers.
  5206. * But removing it would mean breaking code that was able to run in
  5207. * PhantomJS 1.x, so this must be kept for backward compatibility.
  5208. */
  5209. /* istanbul ignore next */
  5210. function polyfillBind (fn, ctx) {
  5211. function boundFn (a) {
  5212. var l = arguments.length;
  5213. return l
  5214. ? l > 1
  5215. ? fn.apply(ctx, arguments)
  5216. : fn.call(ctx, a)
  5217. : fn.call(ctx)
  5218. }
  5219. boundFn._length = fn.length;
  5220. return boundFn
  5221. }
  5222. function nativeBind (fn, ctx) {
  5223. return fn.bind(ctx)
  5224. }
  5225. var bind = Function.prototype.bind
  5226. ? nativeBind
  5227. : polyfillBind;
  5228. /**
  5229. * Convert an Array-like object to a real Array.
  5230. */
  5231. function toArray (list, start) {
  5232. start = start || 0;
  5233. var i = list.length - start;
  5234. var ret = new Array(i);
  5235. while (i--) {
  5236. ret[i] = list[i + start];
  5237. }
  5238. return ret
  5239. }
  5240. /**
  5241. * Mix properties into target object.
  5242. */
  5243. function extend (to, _from) {
  5244. for (var key in _from) {
  5245. to[key] = _from[key];
  5246. }
  5247. return to
  5248. }
  5249. /**
  5250. * Merge an Array of Objects into a single Object.
  5251. */
  5252. function toObject (arr) {
  5253. var res = {};
  5254. for (var i = 0; i < arr.length; i++) {
  5255. if (arr[i]) {
  5256. extend(res, arr[i]);
  5257. }
  5258. }
  5259. return res
  5260. }
  5261. /* eslint-disable no-unused-vars */
  5262. /**
  5263. * Perform no operation.
  5264. * Stubbing args to make Flow happy without leaving useless transpiled code
  5265. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  5266. */
  5267. function noop (a, b, c) {}
  5268. /**
  5269. * Always return false.
  5270. */
  5271. var no = function (a, b, c) { return false; };
  5272. /* eslint-enable no-unused-vars */
  5273. /**
  5274. * Return the same value.
  5275. */
  5276. var identity = function (_) { return _; };
  5277. /**
  5278. * Check if two values are loosely equal - that is,
  5279. * if they are plain objects, do they have the same shape?
  5280. */
  5281. function looseEqual (a, b) {
  5282. if (a === b) { return true }
  5283. var isObjectA = isObject(a);
  5284. var isObjectB = isObject(b);
  5285. if (isObjectA && isObjectB) {
  5286. try {
  5287. var isArrayA = Array.isArray(a);
  5288. var isArrayB = Array.isArray(b);
  5289. if (isArrayA && isArrayB) {
  5290. return a.length === b.length && a.every(function (e, i) {
  5291. return looseEqual(e, b[i])
  5292. })
  5293. } else if (a instanceof Date && b instanceof Date) {
  5294. return a.getTime() === b.getTime()
  5295. } else if (!isArrayA && !isArrayB) {
  5296. var keysA = Object.keys(a);
  5297. var keysB = Object.keys(b);
  5298. return keysA.length === keysB.length && keysA.every(function (key) {
  5299. return looseEqual(a[key], b[key])
  5300. })
  5301. } else {
  5302. /* istanbul ignore next */
  5303. return false
  5304. }
  5305. } catch (e) {
  5306. /* istanbul ignore next */
  5307. return false
  5308. }
  5309. } else if (!isObjectA && !isObjectB) {
  5310. return String(a) === String(b)
  5311. } else {
  5312. return false
  5313. }
  5314. }
  5315. /**
  5316. * Return the first index at which a loosely equal value can be
  5317. * found in the array (if value is a plain object, the array must
  5318. * contain an object of the same shape), or -1 if it is not present.
  5319. */
  5320. function looseIndexOf (arr, val) {
  5321. for (var i = 0; i < arr.length; i++) {
  5322. if (looseEqual(arr[i], val)) { return i }
  5323. }
  5324. return -1
  5325. }
  5326. /**
  5327. * Ensure a function is called only once.
  5328. */
  5329. function once (fn) {
  5330. var called = false;
  5331. return function () {
  5332. if (!called) {
  5333. called = true;
  5334. fn.apply(this, arguments);
  5335. }
  5336. }
  5337. }
  5338. var ASSET_TYPES = [
  5339. 'component',
  5340. 'directive',
  5341. 'filter'
  5342. ];
  5343. var LIFECYCLE_HOOKS = [
  5344. 'beforeCreate',
  5345. 'created',
  5346. 'beforeMount',
  5347. 'mounted',
  5348. 'beforeUpdate',
  5349. 'updated',
  5350. 'beforeDestroy',
  5351. 'destroyed',
  5352. 'activated',
  5353. 'deactivated',
  5354. 'errorCaptured',
  5355. 'serverPrefetch'
  5356. ];
  5357. /* */
  5358. var config = ({
  5359. /**
  5360. * Option merge strategies (used in core/util/options)
  5361. */
  5362. // $flow-disable-line
  5363. optionMergeStrategies: Object.create(null),
  5364. /**
  5365. * Whether to suppress warnings.
  5366. */
  5367. silent: false,
  5368. /**
  5369. * Show production mode tip message on boot?
  5370. */
  5371. productionTip: "development" !== 'production',
  5372. /**
  5373. * Whether to enable devtools
  5374. */
  5375. devtools: "development" !== 'production',
  5376. /**
  5377. * Whether to record perf
  5378. */
  5379. performance: false,
  5380. /**
  5381. * Error handler for watcher errors
  5382. */
  5383. errorHandler: null,
  5384. /**
  5385. * Warn handler for watcher warns
  5386. */
  5387. warnHandler: null,
  5388. /**
  5389. * Ignore certain custom elements
  5390. */
  5391. ignoredElements: [],
  5392. /**
  5393. * Custom user key aliases for v-on
  5394. */
  5395. // $flow-disable-line
  5396. keyCodes: Object.create(null),
  5397. /**
  5398. * Check if a tag is reserved so that it cannot be registered as a
  5399. * component. This is platform-dependent and may be overwritten.
  5400. */
  5401. isReservedTag: no,
  5402. /**
  5403. * Check if an attribute is reserved so that it cannot be used as a component
  5404. * prop. This is platform-dependent and may be overwritten.
  5405. */
  5406. isReservedAttr: no,
  5407. /**
  5408. * Check if a tag is an unknown element.
  5409. * Platform-dependent.
  5410. */
  5411. isUnknownElement: no,
  5412. /**
  5413. * Get the namespace of an element
  5414. */
  5415. getTagNamespace: noop,
  5416. /**
  5417. * Parse the real tag name for the specific platform.
  5418. */
  5419. parsePlatformTagName: identity,
  5420. /**
  5421. * Check if an attribute must be bound using property, e.g. value
  5422. * Platform-dependent.
  5423. */
  5424. mustUseProp: no,
  5425. /**
  5426. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  5427. * This will significantly reduce performance if set to false.
  5428. */
  5429. async: true,
  5430. /**
  5431. * Exposed for legacy reasons
  5432. */
  5433. _lifecycleHooks: LIFECYCLE_HOOKS
  5434. });
  5435. /* */
  5436. /**
  5437. * unicode letters used for parsing html tags, component names and property paths.
  5438. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  5439. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  5440. */
  5441. 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/;
  5442. /**
  5443. * Check if a string starts with $ or _
  5444. */
  5445. function isReserved (str) {
  5446. var c = (str + '').charCodeAt(0);
  5447. return c === 0x24 || c === 0x5F
  5448. }
  5449. /**
  5450. * Define a property.
  5451. */
  5452. function def (obj, key, val, enumerable) {
  5453. Object.defineProperty(obj, key, {
  5454. value: val,
  5455. enumerable: !!enumerable,
  5456. writable: true,
  5457. configurable: true
  5458. });
  5459. }
  5460. /**
  5461. * Parse simple path.
  5462. */
  5463. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  5464. function parsePath (path) {
  5465. if (bailRE.test(path)) {
  5466. return
  5467. }
  5468. var segments = path.split('.');
  5469. return function (obj) {
  5470. for (var i = 0; i < segments.length; i++) {
  5471. if (!obj) { return }
  5472. obj = obj[segments[i]];
  5473. }
  5474. return obj
  5475. }
  5476. }
  5477. /* */
  5478. // can we use __proto__?
  5479. var hasProto = '__proto__' in {};
  5480. // Browser environment sniffing
  5481. var inBrowser = typeof window !== 'undefined';
  5482. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  5483. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  5484. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  5485. var isIE = UA && /msie|trident/.test(UA);
  5486. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  5487. var isEdge = UA && UA.indexOf('edge/') > 0;
  5488. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  5489. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  5490. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  5491. var isPhantomJS = UA && /phantomjs/.test(UA);
  5492. var isFF = UA && UA.match(/firefox\/(\d+)/);
  5493. // Firefox has a "watch" function on Object.prototype...
  5494. var nativeWatch = ({}).watch;
  5495. if (inBrowser) {
  5496. try {
  5497. var opts = {};
  5498. Object.defineProperty(opts, 'passive', ({
  5499. get: function get () {
  5500. }
  5501. })); // https://github.com/facebook/flow/issues/285
  5502. window.addEventListener('test-passive', null, opts);
  5503. } catch (e) {}
  5504. }
  5505. // this needs to be lazy-evaled because vue may be required before
  5506. // vue-server-renderer can set VUE_ENV
  5507. var _isServer;
  5508. var isServerRendering = function () {
  5509. if (_isServer === undefined) {
  5510. /* istanbul ignore if */
  5511. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  5512. // detect presence of vue-server-renderer and avoid
  5513. // Webpack shimming the process
  5514. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  5515. } else {
  5516. _isServer = false;
  5517. }
  5518. }
  5519. return _isServer
  5520. };
  5521. // detect devtools
  5522. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  5523. /* istanbul ignore next */
  5524. function isNative (Ctor) {
  5525. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  5526. }
  5527. var hasSymbol =
  5528. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  5529. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  5530. var _Set;
  5531. /* istanbul ignore if */ // $flow-disable-line
  5532. if (typeof Set !== 'undefined' && isNative(Set)) {
  5533. // use native Set when available.
  5534. _Set = Set;
  5535. } else {
  5536. // a non-standard Set polyfill that only works with primitive keys.
  5537. _Set = /*@__PURE__*/(function () {
  5538. function Set () {
  5539. this.set = Object.create(null);
  5540. }
  5541. Set.prototype.has = function has (key) {
  5542. return this.set[key] === true
  5543. };
  5544. Set.prototype.add = function add (key) {
  5545. this.set[key] = true;
  5546. };
  5547. Set.prototype.clear = function clear () {
  5548. this.set = Object.create(null);
  5549. };
  5550. return Set;
  5551. }());
  5552. }
  5553. /* */
  5554. var warn = noop;
  5555. var tip = noop;
  5556. var generateComponentTrace = (noop); // work around flow check
  5557. var formatComponentName = (noop);
  5558. if (true) {
  5559. var hasConsole = typeof console !== 'undefined';
  5560. var classifyRE = /(?:^|[-_])(\w)/g;
  5561. var classify = function (str) { return str
  5562. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  5563. .replace(/[-_]/g, ''); };
  5564. warn = function (msg, vm) {
  5565. var trace = vm ? generateComponentTrace(vm) : '';
  5566. if (config.warnHandler) {
  5567. config.warnHandler.call(null, msg, vm, trace);
  5568. } else if (hasConsole && (!config.silent)) {
  5569. console.error(("[Vue warn]: " + msg + trace));
  5570. }
  5571. };
  5572. tip = function (msg, vm) {
  5573. if (hasConsole && (!config.silent)) {
  5574. console.warn("[Vue tip]: " + msg + (
  5575. vm ? generateComponentTrace(vm) : ''
  5576. ));
  5577. }
  5578. };
  5579. formatComponentName = function (vm, includeFile) {
  5580. if (vm.$root === vm) {
  5581. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  5582. return ('') + vm.$options.__file
  5583. }
  5584. return '<Root>'
  5585. }
  5586. var options = typeof vm === 'function' && vm.cid != null
  5587. ? vm.options
  5588. : vm._isVue
  5589. ? vm.$options || vm.constructor.options
  5590. : vm;
  5591. var name = options.name || options._componentTag;
  5592. var file = options.__file;
  5593. if (!name && file) {
  5594. var match = file.match(/([^/\\]+)\.vue$/);
  5595. name = match && match[1];
  5596. }
  5597. return (
  5598. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  5599. (file && includeFile !== false ? (" at " + file) : '')
  5600. )
  5601. };
  5602. var repeat = function (str, n) {
  5603. var res = '';
  5604. while (n) {
  5605. if (n % 2 === 1) { res += str; }
  5606. if (n > 1) { str += str; }
  5607. n >>= 1;
  5608. }
  5609. return res
  5610. };
  5611. generateComponentTrace = function (vm) {
  5612. if (vm._isVue && vm.$parent) {
  5613. var tree = [];
  5614. var currentRecursiveSequence = 0;
  5615. while (vm && vm.$options.name !== 'PageBody') {
  5616. if (tree.length > 0) {
  5617. var last = tree[tree.length - 1];
  5618. if (last.constructor === vm.constructor) {
  5619. currentRecursiveSequence++;
  5620. vm = vm.$parent;
  5621. continue
  5622. } else if (currentRecursiveSequence > 0) {
  5623. tree[tree.length - 1] = [last, currentRecursiveSequence];
  5624. currentRecursiveSequence = 0;
  5625. }
  5626. }
  5627. !vm.$options.isReserved && tree.push(vm);
  5628. vm = vm.$parent;
  5629. }
  5630. return '\n\nfound in\n\n' + tree
  5631. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  5632. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  5633. : formatComponentName(vm))); })
  5634. .join('\n')
  5635. } else {
  5636. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  5637. }
  5638. };
  5639. }
  5640. /* */
  5641. var uid = 0;
  5642. /**
  5643. * A dep is an observable that can have multiple
  5644. * directives subscribing to it.
  5645. */
  5646. var Dep = function Dep () {
  5647. this.id = uid++;
  5648. this.subs = [];
  5649. };
  5650. Dep.prototype.addSub = function addSub (sub) {
  5651. this.subs.push(sub);
  5652. };
  5653. Dep.prototype.removeSub = function removeSub (sub) {
  5654. remove(this.subs, sub);
  5655. };
  5656. Dep.prototype.depend = function depend () {
  5657. if (Dep.SharedObject.target) {
  5658. Dep.SharedObject.target.addDep(this);
  5659. }
  5660. };
  5661. Dep.prototype.notify = function notify () {
  5662. // stabilize the subscriber list first
  5663. var subs = this.subs.slice();
  5664. if ( true && !config.async) {
  5665. // subs aren't sorted in scheduler if not running async
  5666. // we need to sort them now to make sure they fire in correct
  5667. // order
  5668. subs.sort(function (a, b) { return a.id - b.id; });
  5669. }
  5670. for (var i = 0, l = subs.length; i < l; i++) {
  5671. subs[i].update();
  5672. }
  5673. };
  5674. // The current target watcher being evaluated.
  5675. // This is globally unique because only one watcher
  5676. // can be evaluated at a time.
  5677. // fixed by xxxxxx (nvue shared vuex)
  5678. /* eslint-disable no-undef */
  5679. Dep.SharedObject = {};
  5680. Dep.SharedObject.target = null;
  5681. Dep.SharedObject.targetStack = [];
  5682. function pushTarget (target) {
  5683. Dep.SharedObject.targetStack.push(target);
  5684. Dep.SharedObject.target = target;
  5685. Dep.target = target;
  5686. }
  5687. function popTarget () {
  5688. Dep.SharedObject.targetStack.pop();
  5689. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  5690. Dep.target = Dep.SharedObject.target;
  5691. }
  5692. /* */
  5693. var VNode = function VNode (
  5694. tag,
  5695. data,
  5696. children,
  5697. text,
  5698. elm,
  5699. context,
  5700. componentOptions,
  5701. asyncFactory
  5702. ) {
  5703. this.tag = tag;
  5704. this.data = data;
  5705. this.children = children;
  5706. this.text = text;
  5707. this.elm = elm;
  5708. this.ns = undefined;
  5709. this.context = context;
  5710. this.fnContext = undefined;
  5711. this.fnOptions = undefined;
  5712. this.fnScopeId = undefined;
  5713. this.key = data && data.key;
  5714. this.componentOptions = componentOptions;
  5715. this.componentInstance = undefined;
  5716. this.parent = undefined;
  5717. this.raw = false;
  5718. this.isStatic = false;
  5719. this.isRootInsert = true;
  5720. this.isComment = false;
  5721. this.isCloned = false;
  5722. this.isOnce = false;
  5723. this.asyncFactory = asyncFactory;
  5724. this.asyncMeta = undefined;
  5725. this.isAsyncPlaceholder = false;
  5726. };
  5727. var prototypeAccessors = { child: { configurable: true } };
  5728. // DEPRECATED: alias for componentInstance for backwards compat.
  5729. /* istanbul ignore next */
  5730. prototypeAccessors.child.get = function () {
  5731. return this.componentInstance
  5732. };
  5733. Object.defineProperties( VNode.prototype, prototypeAccessors );
  5734. var createEmptyVNode = function (text) {
  5735. if ( text === void 0 ) text = '';
  5736. var node = new VNode();
  5737. node.text = text;
  5738. node.isComment = true;
  5739. return node
  5740. };
  5741. function createTextVNode (val) {
  5742. return new VNode(undefined, undefined, undefined, String(val))
  5743. }
  5744. // optimized shallow clone
  5745. // used for static nodes and slot nodes because they may be reused across
  5746. // multiple renders, cloning them avoids errors when DOM manipulations rely
  5747. // on their elm reference.
  5748. function cloneVNode (vnode) {
  5749. var cloned = new VNode(
  5750. vnode.tag,
  5751. vnode.data,
  5752. // #7975
  5753. // clone children array to avoid mutating original in case of cloning
  5754. // a child.
  5755. vnode.children && vnode.children.slice(),
  5756. vnode.text,
  5757. vnode.elm,
  5758. vnode.context,
  5759. vnode.componentOptions,
  5760. vnode.asyncFactory
  5761. );
  5762. cloned.ns = vnode.ns;
  5763. cloned.isStatic = vnode.isStatic;
  5764. cloned.key = vnode.key;
  5765. cloned.isComment = vnode.isComment;
  5766. cloned.fnContext = vnode.fnContext;
  5767. cloned.fnOptions = vnode.fnOptions;
  5768. cloned.fnScopeId = vnode.fnScopeId;
  5769. cloned.asyncMeta = vnode.asyncMeta;
  5770. cloned.isCloned = true;
  5771. return cloned
  5772. }
  5773. /*
  5774. * not type checking this file because flow doesn't play well with
  5775. * dynamically accessing methods on Array prototype
  5776. */
  5777. var arrayProto = Array.prototype;
  5778. var arrayMethods = Object.create(arrayProto);
  5779. var methodsToPatch = [
  5780. 'push',
  5781. 'pop',
  5782. 'shift',
  5783. 'unshift',
  5784. 'splice',
  5785. 'sort',
  5786. 'reverse'
  5787. ];
  5788. /**
  5789. * Intercept mutating methods and emit events
  5790. */
  5791. methodsToPatch.forEach(function (method) {
  5792. // cache original method
  5793. var original = arrayProto[method];
  5794. def(arrayMethods, method, function mutator () {
  5795. var args = [], len = arguments.length;
  5796. while ( len-- ) args[ len ] = arguments[ len ];
  5797. var result = original.apply(this, args);
  5798. var ob = this.__ob__;
  5799. var inserted;
  5800. switch (method) {
  5801. case 'push':
  5802. case 'unshift':
  5803. inserted = args;
  5804. break
  5805. case 'splice':
  5806. inserted = args.slice(2);
  5807. break
  5808. }
  5809. if (inserted) { ob.observeArray(inserted); }
  5810. // notify change
  5811. ob.dep.notify();
  5812. return result
  5813. });
  5814. });
  5815. /* */
  5816. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  5817. /**
  5818. * In some cases we may want to disable observation inside a component's
  5819. * update computation.
  5820. */
  5821. var shouldObserve = true;
  5822. function toggleObserving (value) {
  5823. shouldObserve = value;
  5824. }
  5825. /**
  5826. * Observer class that is attached to each observed
  5827. * object. Once attached, the observer converts the target
  5828. * object's property keys into getter/setters that
  5829. * collect dependencies and dispatch updates.
  5830. */
  5831. var Observer = function Observer (value) {
  5832. this.value = value;
  5833. this.dep = new Dep();
  5834. this.vmCount = 0;
  5835. def(value, '__ob__', this);
  5836. if (Array.isArray(value)) {
  5837. if (hasProto) {
  5838. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  5839. if(value.push !== value.__proto__.push){
  5840. copyAugment(value, arrayMethods, arrayKeys);
  5841. } else {
  5842. protoAugment(value, arrayMethods);
  5843. }
  5844. }
  5845. } else {
  5846. copyAugment(value, arrayMethods, arrayKeys);
  5847. }
  5848. this.observeArray(value);
  5849. } else {
  5850. this.walk(value);
  5851. }
  5852. };
  5853. /**
  5854. * Walk through all properties and convert them into
  5855. * getter/setters. This method should only be called when
  5856. * value type is Object.
  5857. */
  5858. Observer.prototype.walk = function walk (obj) {
  5859. var keys = Object.keys(obj);
  5860. for (var i = 0; i < keys.length; i++) {
  5861. defineReactive$$1(obj, keys[i]);
  5862. }
  5863. };
  5864. /**
  5865. * Observe a list of Array items.
  5866. */
  5867. Observer.prototype.observeArray = function observeArray (items) {
  5868. for (var i = 0, l = items.length; i < l; i++) {
  5869. observe(items[i]);
  5870. }
  5871. };
  5872. // helpers
  5873. /**
  5874. * Augment a target Object or Array by intercepting
  5875. * the prototype chain using __proto__
  5876. */
  5877. function protoAugment (target, src) {
  5878. /* eslint-disable no-proto */
  5879. target.__proto__ = src;
  5880. /* eslint-enable no-proto */
  5881. }
  5882. /**
  5883. * Augment a target Object or Array by defining
  5884. * hidden properties.
  5885. */
  5886. /* istanbul ignore next */
  5887. function copyAugment (target, src, keys) {
  5888. for (var i = 0, l = keys.length; i < l; i++) {
  5889. var key = keys[i];
  5890. def(target, key, src[key]);
  5891. }
  5892. }
  5893. /**
  5894. * Attempt to create an observer instance for a value,
  5895. * returns the new observer if successfully observed,
  5896. * or the existing observer if the value already has one.
  5897. */
  5898. function observe (value, asRootData) {
  5899. if (!isObject(value) || value instanceof VNode) {
  5900. return
  5901. }
  5902. var ob;
  5903. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  5904. ob = value.__ob__;
  5905. } else if (
  5906. shouldObserve &&
  5907. !isServerRendering() &&
  5908. (Array.isArray(value) || isPlainObject(value)) &&
  5909. Object.isExtensible(value) &&
  5910. !value._isVue
  5911. ) {
  5912. ob = new Observer(value);
  5913. }
  5914. if (asRootData && ob) {
  5915. ob.vmCount++;
  5916. }
  5917. return ob
  5918. }
  5919. /**
  5920. * Define a reactive property on an Object.
  5921. */
  5922. function defineReactive$$1 (
  5923. obj,
  5924. key,
  5925. val,
  5926. customSetter,
  5927. shallow
  5928. ) {
  5929. var dep = new Dep();
  5930. var property = Object.getOwnPropertyDescriptor(obj, key);
  5931. if (property && property.configurable === false) {
  5932. return
  5933. }
  5934. // cater for pre-defined getter/setters
  5935. var getter = property && property.get;
  5936. var setter = property && property.set;
  5937. if ((!getter || setter) && arguments.length === 2) {
  5938. val = obj[key];
  5939. }
  5940. var childOb = !shallow && observe(val);
  5941. Object.defineProperty(obj, key, {
  5942. enumerable: true,
  5943. configurable: true,
  5944. get: function reactiveGetter () {
  5945. var value = getter ? getter.call(obj) : val;
  5946. if (Dep.SharedObject.target) { // fixed by xxxxxx
  5947. dep.depend();
  5948. if (childOb) {
  5949. childOb.dep.depend();
  5950. if (Array.isArray(value)) {
  5951. dependArray(value);
  5952. }
  5953. }
  5954. }
  5955. return value
  5956. },
  5957. set: function reactiveSetter (newVal) {
  5958. var value = getter ? getter.call(obj) : val;
  5959. /* eslint-disable no-self-compare */
  5960. if (newVal === value || (newVal !== newVal && value !== value)) {
  5961. return
  5962. }
  5963. /* eslint-enable no-self-compare */
  5964. if ( true && customSetter) {
  5965. customSetter();
  5966. }
  5967. // #7981: for accessor properties without setter
  5968. if (getter && !setter) { return }
  5969. if (setter) {
  5970. setter.call(obj, newVal);
  5971. } else {
  5972. val = newVal;
  5973. }
  5974. childOb = !shallow && observe(newVal);
  5975. dep.notify();
  5976. }
  5977. });
  5978. }
  5979. /**
  5980. * Set a property on an object. Adds the new property and
  5981. * triggers change notification if the property doesn't
  5982. * already exist.
  5983. */
  5984. function set (target, key, val) {
  5985. if ( true &&
  5986. (isUndef(target) || isPrimitive(target))
  5987. ) {
  5988. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  5989. }
  5990. if (Array.isArray(target) && isValidArrayIndex(key)) {
  5991. target.length = Math.max(target.length, key);
  5992. target.splice(key, 1, val);
  5993. return val
  5994. }
  5995. if (key in target && !(key in Object.prototype)) {
  5996. target[key] = val;
  5997. return val
  5998. }
  5999. var ob = (target).__ob__;
  6000. if (target._isVue || (ob && ob.vmCount)) {
  6001. true && warn(
  6002. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  6003. 'at runtime - declare it upfront in the data option.'
  6004. );
  6005. return val
  6006. }
  6007. if (!ob) {
  6008. target[key] = val;
  6009. return val
  6010. }
  6011. defineReactive$$1(ob.value, key, val);
  6012. ob.dep.notify();
  6013. return val
  6014. }
  6015. /**
  6016. * Delete a property and trigger change if necessary.
  6017. */
  6018. function del (target, key) {
  6019. if ( true &&
  6020. (isUndef(target) || isPrimitive(target))
  6021. ) {
  6022. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  6023. }
  6024. if (Array.isArray(target) && isValidArrayIndex(key)) {
  6025. target.splice(key, 1);
  6026. return
  6027. }
  6028. var ob = (target).__ob__;
  6029. if (target._isVue || (ob && ob.vmCount)) {
  6030. true && warn(
  6031. 'Avoid deleting properties on a Vue instance or its root $data ' +
  6032. '- just set it to null.'
  6033. );
  6034. return
  6035. }
  6036. if (!hasOwn(target, key)) {
  6037. return
  6038. }
  6039. delete target[key];
  6040. if (!ob) {
  6041. return
  6042. }
  6043. ob.dep.notify();
  6044. }
  6045. /**
  6046. * Collect dependencies on array elements when the array is touched, since
  6047. * we cannot intercept array element access like property getters.
  6048. */
  6049. function dependArray (value) {
  6050. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  6051. e = value[i];
  6052. e && e.__ob__ && e.__ob__.dep.depend();
  6053. if (Array.isArray(e)) {
  6054. dependArray(e);
  6055. }
  6056. }
  6057. }
  6058. /* */
  6059. /**
  6060. * Option overwriting strategies are functions that handle
  6061. * how to merge a parent option value and a child option
  6062. * value into the final value.
  6063. */
  6064. var strats = config.optionMergeStrategies;
  6065. /**
  6066. * Options with restrictions
  6067. */
  6068. if (true) {
  6069. strats.el = strats.propsData = function (parent, child, vm, key) {
  6070. if (!vm) {
  6071. warn(
  6072. "option \"" + key + "\" can only be used during instance " +
  6073. 'creation with the `new` keyword.'
  6074. );
  6075. }
  6076. return defaultStrat(parent, child)
  6077. };
  6078. }
  6079. /**
  6080. * Helper that recursively merges two data objects together.
  6081. */
  6082. function mergeData (to, from) {
  6083. if (!from) { return to }
  6084. var key, toVal, fromVal;
  6085. var keys = hasSymbol
  6086. ? Reflect.ownKeys(from)
  6087. : Object.keys(from);
  6088. for (var i = 0; i < keys.length; i++) {
  6089. key = keys[i];
  6090. // in case the object is already observed...
  6091. if (key === '__ob__') { continue }
  6092. toVal = to[key];
  6093. fromVal = from[key];
  6094. if (!hasOwn(to, key)) {
  6095. set(to, key, fromVal);
  6096. } else if (
  6097. toVal !== fromVal &&
  6098. isPlainObject(toVal) &&
  6099. isPlainObject(fromVal)
  6100. ) {
  6101. mergeData(toVal, fromVal);
  6102. }
  6103. }
  6104. return to
  6105. }
  6106. /**
  6107. * Data
  6108. */
  6109. function mergeDataOrFn (
  6110. parentVal,
  6111. childVal,
  6112. vm
  6113. ) {
  6114. if (!vm) {
  6115. // in a Vue.extend merge, both should be functions
  6116. if (!childVal) {
  6117. return parentVal
  6118. }
  6119. if (!parentVal) {
  6120. return childVal
  6121. }
  6122. // when parentVal & childVal are both present,
  6123. // we need to return a function that returns the
  6124. // merged result of both functions... no need to
  6125. // check if parentVal is a function here because
  6126. // it has to be a function to pass previous merges.
  6127. return function mergedDataFn () {
  6128. return mergeData(
  6129. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  6130. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  6131. )
  6132. }
  6133. } else {
  6134. return function mergedInstanceDataFn () {
  6135. // instance merge
  6136. var instanceData = typeof childVal === 'function'
  6137. ? childVal.call(vm, vm)
  6138. : childVal;
  6139. var defaultData = typeof parentVal === 'function'
  6140. ? parentVal.call(vm, vm)
  6141. : parentVal;
  6142. if (instanceData) {
  6143. return mergeData(instanceData, defaultData)
  6144. } else {
  6145. return defaultData
  6146. }
  6147. }
  6148. }
  6149. }
  6150. strats.data = function (
  6151. parentVal,
  6152. childVal,
  6153. vm
  6154. ) {
  6155. if (!vm) {
  6156. if (childVal && typeof childVal !== 'function') {
  6157. true && warn(
  6158. 'The "data" option should be a function ' +
  6159. 'that returns a per-instance value in component ' +
  6160. 'definitions.',
  6161. vm
  6162. );
  6163. return parentVal
  6164. }
  6165. return mergeDataOrFn(parentVal, childVal)
  6166. }
  6167. return mergeDataOrFn(parentVal, childVal, vm)
  6168. };
  6169. /**
  6170. * Hooks and props are merged as arrays.
  6171. */
  6172. function mergeHook (
  6173. parentVal,
  6174. childVal
  6175. ) {
  6176. var res = childVal
  6177. ? parentVal
  6178. ? parentVal.concat(childVal)
  6179. : Array.isArray(childVal)
  6180. ? childVal
  6181. : [childVal]
  6182. : parentVal;
  6183. return res
  6184. ? dedupeHooks(res)
  6185. : res
  6186. }
  6187. function dedupeHooks (hooks) {
  6188. var res = [];
  6189. for (var i = 0; i < hooks.length; i++) {
  6190. if (res.indexOf(hooks[i]) === -1) {
  6191. res.push(hooks[i]);
  6192. }
  6193. }
  6194. return res
  6195. }
  6196. LIFECYCLE_HOOKS.forEach(function (hook) {
  6197. strats[hook] = mergeHook;
  6198. });
  6199. /**
  6200. * Assets
  6201. *
  6202. * When a vm is present (instance creation), we need to do
  6203. * a three-way merge between constructor options, instance
  6204. * options and parent options.
  6205. */
  6206. function mergeAssets (
  6207. parentVal,
  6208. childVal,
  6209. vm,
  6210. key
  6211. ) {
  6212. var res = Object.create(parentVal || null);
  6213. if (childVal) {
  6214. true && assertObjectType(key, childVal, vm);
  6215. return extend(res, childVal)
  6216. } else {
  6217. return res
  6218. }
  6219. }
  6220. ASSET_TYPES.forEach(function (type) {
  6221. strats[type + 's'] = mergeAssets;
  6222. });
  6223. /**
  6224. * Watchers.
  6225. *
  6226. * Watchers hashes should not overwrite one
  6227. * another, so we merge them as arrays.
  6228. */
  6229. strats.watch = function (
  6230. parentVal,
  6231. childVal,
  6232. vm,
  6233. key
  6234. ) {
  6235. // work around Firefox's Object.prototype.watch...
  6236. if (parentVal === nativeWatch) { parentVal = undefined; }
  6237. if (childVal === nativeWatch) { childVal = undefined; }
  6238. /* istanbul ignore if */
  6239. if (!childVal) { return Object.create(parentVal || null) }
  6240. if (true) {
  6241. assertObjectType(key, childVal, vm);
  6242. }
  6243. if (!parentVal) { return childVal }
  6244. var ret = {};
  6245. extend(ret, parentVal);
  6246. for (var key$1 in childVal) {
  6247. var parent = ret[key$1];
  6248. var child = childVal[key$1];
  6249. if (parent && !Array.isArray(parent)) {
  6250. parent = [parent];
  6251. }
  6252. ret[key$1] = parent
  6253. ? parent.concat(child)
  6254. : Array.isArray(child) ? child : [child];
  6255. }
  6256. return ret
  6257. };
  6258. /**
  6259. * Other object hashes.
  6260. */
  6261. strats.props =
  6262. strats.methods =
  6263. strats.inject =
  6264. strats.computed = function (
  6265. parentVal,
  6266. childVal,
  6267. vm,
  6268. key
  6269. ) {
  6270. if (childVal && "development" !== 'production') {
  6271. assertObjectType(key, childVal, vm);
  6272. }
  6273. if (!parentVal) { return childVal }
  6274. var ret = Object.create(null);
  6275. extend(ret, parentVal);
  6276. if (childVal) { extend(ret, childVal); }
  6277. return ret
  6278. };
  6279. strats.provide = mergeDataOrFn;
  6280. /**
  6281. * Default strategy.
  6282. */
  6283. var defaultStrat = function (parentVal, childVal) {
  6284. return childVal === undefined
  6285. ? parentVal
  6286. : childVal
  6287. };
  6288. /**
  6289. * Validate component names
  6290. */
  6291. function checkComponents (options) {
  6292. for (var key in options.components) {
  6293. validateComponentName(key);
  6294. }
  6295. }
  6296. function validateComponentName (name) {
  6297. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  6298. warn(
  6299. 'Invalid component name: "' + name + '". Component names ' +
  6300. 'should conform to valid custom element name in html5 specification.'
  6301. );
  6302. }
  6303. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  6304. warn(
  6305. 'Do not use built-in or reserved HTML elements as component ' +
  6306. 'id: ' + name
  6307. );
  6308. }
  6309. }
  6310. /**
  6311. * Ensure all props option syntax are normalized into the
  6312. * Object-based format.
  6313. */
  6314. function normalizeProps (options, vm) {
  6315. var props = options.props;
  6316. if (!props) { return }
  6317. var res = {};
  6318. var i, val, name;
  6319. if (Array.isArray(props)) {
  6320. i = props.length;
  6321. while (i--) {
  6322. val = props[i];
  6323. if (typeof val === 'string') {
  6324. name = camelize(val);
  6325. res[name] = { type: null };
  6326. } else if (true) {
  6327. warn('props must be strings when using array syntax.');
  6328. }
  6329. }
  6330. } else if (isPlainObject(props)) {
  6331. for (var key in props) {
  6332. val = props[key];
  6333. name = camelize(key);
  6334. res[name] = isPlainObject(val)
  6335. ? val
  6336. : { type: val };
  6337. }
  6338. } else if (true) {
  6339. warn(
  6340. "Invalid value for option \"props\": expected an Array or an Object, " +
  6341. "but got " + (toRawType(props)) + ".",
  6342. vm
  6343. );
  6344. }
  6345. options.props = res;
  6346. }
  6347. /**
  6348. * Normalize all injections into Object-based format
  6349. */
  6350. function normalizeInject (options, vm) {
  6351. var inject = options.inject;
  6352. if (!inject) { return }
  6353. var normalized = options.inject = {};
  6354. if (Array.isArray(inject)) {
  6355. for (var i = 0; i < inject.length; i++) {
  6356. normalized[inject[i]] = { from: inject[i] };
  6357. }
  6358. } else if (isPlainObject(inject)) {
  6359. for (var key in inject) {
  6360. var val = inject[key];
  6361. normalized[key] = isPlainObject(val)
  6362. ? extend({ from: key }, val)
  6363. : { from: val };
  6364. }
  6365. } else if (true) {
  6366. warn(
  6367. "Invalid value for option \"inject\": expected an Array or an Object, " +
  6368. "but got " + (toRawType(inject)) + ".",
  6369. vm
  6370. );
  6371. }
  6372. }
  6373. /**
  6374. * Normalize raw function directives into object format.
  6375. */
  6376. function normalizeDirectives (options) {
  6377. var dirs = options.directives;
  6378. if (dirs) {
  6379. for (var key in dirs) {
  6380. var def$$1 = dirs[key];
  6381. if (typeof def$$1 === 'function') {
  6382. dirs[key] = { bind: def$$1, update: def$$1 };
  6383. }
  6384. }
  6385. }
  6386. }
  6387. function assertObjectType (name, value, vm) {
  6388. if (!isPlainObject(value)) {
  6389. warn(
  6390. "Invalid value for option \"" + name + "\": expected an Object, " +
  6391. "but got " + (toRawType(value)) + ".",
  6392. vm
  6393. );
  6394. }
  6395. }
  6396. /**
  6397. * Merge two option objects into a new one.
  6398. * Core utility used in both instantiation and inheritance.
  6399. */
  6400. function mergeOptions (
  6401. parent,
  6402. child,
  6403. vm
  6404. ) {
  6405. if (true) {
  6406. checkComponents(child);
  6407. }
  6408. if (typeof child === 'function') {
  6409. child = child.options;
  6410. }
  6411. normalizeProps(child, vm);
  6412. normalizeInject(child, vm);
  6413. normalizeDirectives(child);
  6414. // Apply extends and mixins on the child options,
  6415. // but only if it is a raw options object that isn't
  6416. // the result of another mergeOptions call.
  6417. // Only merged options has the _base property.
  6418. if (!child._base) {
  6419. if (child.extends) {
  6420. parent = mergeOptions(parent, child.extends, vm);
  6421. }
  6422. if (child.mixins) {
  6423. for (var i = 0, l = child.mixins.length; i < l; i++) {
  6424. parent = mergeOptions(parent, child.mixins[i], vm);
  6425. }
  6426. }
  6427. }
  6428. var options = {};
  6429. var key;
  6430. for (key in parent) {
  6431. mergeField(key);
  6432. }
  6433. for (key in child) {
  6434. if (!hasOwn(parent, key)) {
  6435. mergeField(key);
  6436. }
  6437. }
  6438. function mergeField (key) {
  6439. var strat = strats[key] || defaultStrat;
  6440. options[key] = strat(parent[key], child[key], vm, key);
  6441. }
  6442. return options
  6443. }
  6444. /**
  6445. * Resolve an asset.
  6446. * This function is used because child instances need access
  6447. * to assets defined in its ancestor chain.
  6448. */
  6449. function resolveAsset (
  6450. options,
  6451. type,
  6452. id,
  6453. warnMissing
  6454. ) {
  6455. /* istanbul ignore if */
  6456. if (typeof id !== 'string') {
  6457. return
  6458. }
  6459. var assets = options[type];
  6460. // check local registration variations first
  6461. if (hasOwn(assets, id)) { return assets[id] }
  6462. var camelizedId = camelize(id);
  6463. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  6464. var PascalCaseId = capitalize(camelizedId);
  6465. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  6466. // fallback to prototype chain
  6467. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  6468. if ( true && warnMissing && !res) {
  6469. warn(
  6470. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  6471. options
  6472. );
  6473. }
  6474. return res
  6475. }
  6476. /* */
  6477. function validateProp (
  6478. key,
  6479. propOptions,
  6480. propsData,
  6481. vm
  6482. ) {
  6483. var prop = propOptions[key];
  6484. var absent = !hasOwn(propsData, key);
  6485. var value = propsData[key];
  6486. // boolean casting
  6487. var booleanIndex = getTypeIndex(Boolean, prop.type);
  6488. if (booleanIndex > -1) {
  6489. if (absent && !hasOwn(prop, 'default')) {
  6490. value = false;
  6491. } else if (value === '' || value === hyphenate(key)) {
  6492. // only cast empty string / same name to boolean if
  6493. // boolean has higher priority
  6494. var stringIndex = getTypeIndex(String, prop.type);
  6495. if (stringIndex < 0 || booleanIndex < stringIndex) {
  6496. value = true;
  6497. }
  6498. }
  6499. }
  6500. // check default value
  6501. if (value === undefined) {
  6502. value = getPropDefaultValue(vm, prop, key);
  6503. // since the default value is a fresh copy,
  6504. // make sure to observe it.
  6505. var prevShouldObserve = shouldObserve;
  6506. toggleObserving(true);
  6507. observe(value);
  6508. toggleObserving(prevShouldObserve);
  6509. }
  6510. if (
  6511. true
  6512. ) {
  6513. assertProp(prop, key, value, vm, absent);
  6514. }
  6515. return value
  6516. }
  6517. /**
  6518. * Get the default value of a prop.
  6519. */
  6520. function getPropDefaultValue (vm, prop, key) {
  6521. // no default, return undefined
  6522. if (!hasOwn(prop, 'default')) {
  6523. return undefined
  6524. }
  6525. var def = prop.default;
  6526. // warn against non-factory defaults for Object & Array
  6527. if ( true && isObject(def)) {
  6528. warn(
  6529. 'Invalid default value for prop "' + key + '": ' +
  6530. 'Props with type Object/Array must use a factory function ' +
  6531. 'to return the default value.',
  6532. vm
  6533. );
  6534. }
  6535. // the raw prop value was also undefined from previous render,
  6536. // return previous default value to avoid unnecessary watcher trigger
  6537. if (vm && vm.$options.propsData &&
  6538. vm.$options.propsData[key] === undefined &&
  6539. vm._props[key] !== undefined
  6540. ) {
  6541. return vm._props[key]
  6542. }
  6543. // call factory function for non-Function types
  6544. // a value is Function if its prototype is function even across different execution context
  6545. return typeof def === 'function' && getType(prop.type) !== 'Function'
  6546. ? def.call(vm)
  6547. : def
  6548. }
  6549. /**
  6550. * Assert whether a prop is valid.
  6551. */
  6552. function assertProp (
  6553. prop,
  6554. name,
  6555. value,
  6556. vm,
  6557. absent
  6558. ) {
  6559. if (prop.required && absent) {
  6560. warn(
  6561. 'Missing required prop: "' + name + '"',
  6562. vm
  6563. );
  6564. return
  6565. }
  6566. if (value == null && !prop.required) {
  6567. return
  6568. }
  6569. var type = prop.type;
  6570. var valid = !type || type === true;
  6571. var expectedTypes = [];
  6572. if (type) {
  6573. if (!Array.isArray(type)) {
  6574. type = [type];
  6575. }
  6576. for (var i = 0; i < type.length && !valid; i++) {
  6577. var assertedType = assertType(value, type[i]);
  6578. expectedTypes.push(assertedType.expectedType || '');
  6579. valid = assertedType.valid;
  6580. }
  6581. }
  6582. if (!valid) {
  6583. warn(
  6584. getInvalidTypeMessage(name, value, expectedTypes),
  6585. vm
  6586. );
  6587. return
  6588. }
  6589. var validator = prop.validator;
  6590. if (validator) {
  6591. if (!validator(value)) {
  6592. warn(
  6593. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  6594. vm
  6595. );
  6596. }
  6597. }
  6598. }
  6599. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  6600. function assertType (value, type) {
  6601. var valid;
  6602. var expectedType = getType(type);
  6603. if (simpleCheckRE.test(expectedType)) {
  6604. var t = typeof value;
  6605. valid = t === expectedType.toLowerCase();
  6606. // for primitive wrapper objects
  6607. if (!valid && t === 'object') {
  6608. valid = value instanceof type;
  6609. }
  6610. } else if (expectedType === 'Object') {
  6611. valid = isPlainObject(value);
  6612. } else if (expectedType === 'Array') {
  6613. valid = Array.isArray(value);
  6614. } else {
  6615. valid = value instanceof type;
  6616. }
  6617. return {
  6618. valid: valid,
  6619. expectedType: expectedType
  6620. }
  6621. }
  6622. /**
  6623. * Use function string name to check built-in types,
  6624. * because a simple equality check will fail when running
  6625. * across different vms / iframes.
  6626. */
  6627. function getType (fn) {
  6628. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  6629. return match ? match[1] : ''
  6630. }
  6631. function isSameType (a, b) {
  6632. return getType(a) === getType(b)
  6633. }
  6634. function getTypeIndex (type, expectedTypes) {
  6635. if (!Array.isArray(expectedTypes)) {
  6636. return isSameType(expectedTypes, type) ? 0 : -1
  6637. }
  6638. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  6639. if (isSameType(expectedTypes[i], type)) {
  6640. return i
  6641. }
  6642. }
  6643. return -1
  6644. }
  6645. function getInvalidTypeMessage (name, value, expectedTypes) {
  6646. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  6647. " Expected " + (expectedTypes.map(capitalize).join(', '));
  6648. var expectedType = expectedTypes[0];
  6649. var receivedType = toRawType(value);
  6650. var expectedValue = styleValue(value, expectedType);
  6651. var receivedValue = styleValue(value, receivedType);
  6652. // check if we need to specify expected value
  6653. if (expectedTypes.length === 1 &&
  6654. isExplicable(expectedType) &&
  6655. !isBoolean(expectedType, receivedType)) {
  6656. message += " with value " + expectedValue;
  6657. }
  6658. message += ", got " + receivedType + " ";
  6659. // check if we need to specify received value
  6660. if (isExplicable(receivedType)) {
  6661. message += "with value " + receivedValue + ".";
  6662. }
  6663. return message
  6664. }
  6665. function styleValue (value, type) {
  6666. if (type === 'String') {
  6667. return ("\"" + value + "\"")
  6668. } else if (type === 'Number') {
  6669. return ("" + (Number(value)))
  6670. } else {
  6671. return ("" + value)
  6672. }
  6673. }
  6674. function isExplicable (value) {
  6675. var explicitTypes = ['string', 'number', 'boolean'];
  6676. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  6677. }
  6678. function isBoolean () {
  6679. var args = [], len = arguments.length;
  6680. while ( len-- ) args[ len ] = arguments[ len ];
  6681. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  6682. }
  6683. /* */
  6684. function handleError (err, vm, info) {
  6685. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  6686. // See: https://github.com/vuejs/vuex/issues/1505
  6687. pushTarget();
  6688. try {
  6689. if (vm) {
  6690. var cur = vm;
  6691. while ((cur = cur.$parent)) {
  6692. var hooks = cur.$options.errorCaptured;
  6693. if (hooks) {
  6694. for (var i = 0; i < hooks.length; i++) {
  6695. try {
  6696. var capture = hooks[i].call(cur, err, vm, info) === false;
  6697. if (capture) { return }
  6698. } catch (e) {
  6699. globalHandleError(e, cur, 'errorCaptured hook');
  6700. }
  6701. }
  6702. }
  6703. }
  6704. }
  6705. globalHandleError(err, vm, info);
  6706. } finally {
  6707. popTarget();
  6708. }
  6709. }
  6710. function invokeWithErrorHandling (
  6711. handler,
  6712. context,
  6713. args,
  6714. vm,
  6715. info
  6716. ) {
  6717. var res;
  6718. try {
  6719. res = args ? handler.apply(context, args) : handler.call(context);
  6720. if (res && !res._isVue && isPromise(res) && !res._handled) {
  6721. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  6722. // issue #9511
  6723. // avoid catch triggering multiple times when nested calls
  6724. res._handled = true;
  6725. }
  6726. } catch (e) {
  6727. handleError(e, vm, info);
  6728. }
  6729. return res
  6730. }
  6731. function globalHandleError (err, vm, info) {
  6732. if (config.errorHandler) {
  6733. try {
  6734. return config.errorHandler.call(null, err, vm, info)
  6735. } catch (e) {
  6736. // if the user intentionally throws the original error in the handler,
  6737. // do not log it twice
  6738. if (e !== err) {
  6739. logError(e, null, 'config.errorHandler');
  6740. }
  6741. }
  6742. }
  6743. logError(err, vm, info);
  6744. }
  6745. function logError (err, vm, info) {
  6746. if (true) {
  6747. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  6748. }
  6749. /* istanbul ignore else */
  6750. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  6751. console.error(err);
  6752. } else {
  6753. throw err
  6754. }
  6755. }
  6756. /* */
  6757. var callbacks = [];
  6758. var pending = false;
  6759. function flushCallbacks () {
  6760. pending = false;
  6761. var copies = callbacks.slice(0);
  6762. callbacks.length = 0;
  6763. for (var i = 0; i < copies.length; i++) {
  6764. copies[i]();
  6765. }
  6766. }
  6767. // Here we have async deferring wrappers using microtasks.
  6768. // In 2.5 we used (macro) tasks (in combination with microtasks).
  6769. // However, it has subtle problems when state is changed right before repaint
  6770. // (e.g. #6813, out-in transitions).
  6771. // Also, using (macro) tasks in event handler would cause some weird behaviors
  6772. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  6773. // So we now use microtasks everywhere, again.
  6774. // A major drawback of this tradeoff is that there are some scenarios
  6775. // where microtasks have too high a priority and fire in between supposedly
  6776. // sequential events (e.g. #4521, #6690, which have workarounds)
  6777. // or even between bubbling of the same event (#6566).
  6778. var timerFunc;
  6779. // The nextTick behavior leverages the microtask queue, which can be accessed
  6780. // via either native Promise.then or MutationObserver.
  6781. // MutationObserver has wider support, however it is seriously bugged in
  6782. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  6783. // completely stops working after triggering a few times... so, if native
  6784. // Promise is available, we will use it:
  6785. /* istanbul ignore next, $flow-disable-line */
  6786. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  6787. var p = Promise.resolve();
  6788. timerFunc = function () {
  6789. p.then(flushCallbacks);
  6790. // In problematic UIWebViews, Promise.then doesn't completely break, but
  6791. // it can get stuck in a weird state where callbacks are pushed into the
  6792. // microtask queue but the queue isn't being flushed, until the browser
  6793. // needs to do some other work, e.g. handle a timer. Therefore we can
  6794. // "force" the microtask queue to be flushed by adding an empty timer.
  6795. if (isIOS) { setTimeout(noop); }
  6796. };
  6797. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  6798. isNative(MutationObserver) ||
  6799. // PhantomJS and iOS 7.x
  6800. MutationObserver.toString() === '[object MutationObserverConstructor]'
  6801. )) {
  6802. // Use MutationObserver where native Promise is not available,
  6803. // e.g. PhantomJS, iOS7, Android 4.4
  6804. // (#6466 MutationObserver is unreliable in IE11)
  6805. var counter = 1;
  6806. var observer = new MutationObserver(flushCallbacks);
  6807. var textNode = document.createTextNode(String(counter));
  6808. observer.observe(textNode, {
  6809. characterData: true
  6810. });
  6811. timerFunc = function () {
  6812. counter = (counter + 1) % 2;
  6813. textNode.data = String(counter);
  6814. };
  6815. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  6816. // Fallback to setImmediate.
  6817. // Technically it leverages the (macro) task queue,
  6818. // but it is still a better choice than setTimeout.
  6819. timerFunc = function () {
  6820. setImmediate(flushCallbacks);
  6821. };
  6822. } else {
  6823. // Fallback to setTimeout.
  6824. timerFunc = function () {
  6825. setTimeout(flushCallbacks, 0);
  6826. };
  6827. }
  6828. function nextTick (cb, ctx) {
  6829. var _resolve;
  6830. callbacks.push(function () {
  6831. if (cb) {
  6832. try {
  6833. cb.call(ctx);
  6834. } catch (e) {
  6835. handleError(e, ctx, 'nextTick');
  6836. }
  6837. } else if (_resolve) {
  6838. _resolve(ctx);
  6839. }
  6840. });
  6841. if (!pending) {
  6842. pending = true;
  6843. timerFunc();
  6844. }
  6845. // $flow-disable-line
  6846. if (!cb && typeof Promise !== 'undefined') {
  6847. return new Promise(function (resolve) {
  6848. _resolve = resolve;
  6849. })
  6850. }
  6851. }
  6852. /* */
  6853. /* not type checking this file because flow doesn't play well with Proxy */
  6854. var initProxy;
  6855. if (true) {
  6856. var allowedGlobals = makeMap(
  6857. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  6858. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  6859. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  6860. 'require' // for Webpack/Browserify
  6861. );
  6862. var warnNonPresent = function (target, key) {
  6863. warn(
  6864. "Property or method \"" + key + "\" is not defined on the instance but " +
  6865. 'referenced during render. Make sure that this property is reactive, ' +
  6866. 'either in the data option, or for class-based components, by ' +
  6867. 'initializing the property. ' +
  6868. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  6869. target
  6870. );
  6871. };
  6872. var warnReservedPrefix = function (target, key) {
  6873. warn(
  6874. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  6875. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  6876. 'prevent conflicts with Vue internals. ' +
  6877. 'See: https://vuejs.org/v2/api/#data',
  6878. target
  6879. );
  6880. };
  6881. var hasProxy =
  6882. typeof Proxy !== 'undefined' && isNative(Proxy);
  6883. if (hasProxy) {
  6884. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  6885. config.keyCodes = new Proxy(config.keyCodes, {
  6886. set: function set (target, key, value) {
  6887. if (isBuiltInModifier(key)) {
  6888. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  6889. return false
  6890. } else {
  6891. target[key] = value;
  6892. return true
  6893. }
  6894. }
  6895. });
  6896. }
  6897. var hasHandler = {
  6898. has: function has (target, key) {
  6899. var has = key in target;
  6900. var isAllowed = allowedGlobals(key) ||
  6901. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  6902. if (!has && !isAllowed) {
  6903. if (key in target.$data) { warnReservedPrefix(target, key); }
  6904. else { warnNonPresent(target, key); }
  6905. }
  6906. return has || !isAllowed
  6907. }
  6908. };
  6909. var getHandler = {
  6910. get: function get (target, key) {
  6911. if (typeof key === 'string' && !(key in target)) {
  6912. if (key in target.$data) { warnReservedPrefix(target, key); }
  6913. else { warnNonPresent(target, key); }
  6914. }
  6915. return target[key]
  6916. }
  6917. };
  6918. initProxy = function initProxy (vm) {
  6919. if (hasProxy) {
  6920. // determine which proxy handler to use
  6921. var options = vm.$options;
  6922. var handlers = options.render && options.render._withStripped
  6923. ? getHandler
  6924. : hasHandler;
  6925. vm._renderProxy = new Proxy(vm, handlers);
  6926. } else {
  6927. vm._renderProxy = vm;
  6928. }
  6929. };
  6930. }
  6931. /* */
  6932. var seenObjects = new _Set();
  6933. /**
  6934. * Recursively traverse an object to evoke all converted
  6935. * getters, so that every nested property inside the object
  6936. * is collected as a "deep" dependency.
  6937. */
  6938. function traverse (val) {
  6939. _traverse(val, seenObjects);
  6940. seenObjects.clear();
  6941. }
  6942. function _traverse (val, seen) {
  6943. var i, keys;
  6944. var isA = Array.isArray(val);
  6945. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  6946. return
  6947. }
  6948. if (val.__ob__) {
  6949. var depId = val.__ob__.dep.id;
  6950. if (seen.has(depId)) {
  6951. return
  6952. }
  6953. seen.add(depId);
  6954. }
  6955. if (isA) {
  6956. i = val.length;
  6957. while (i--) { _traverse(val[i], seen); }
  6958. } else {
  6959. keys = Object.keys(val);
  6960. i = keys.length;
  6961. while (i--) { _traverse(val[keys[i]], seen); }
  6962. }
  6963. }
  6964. var mark;
  6965. var measure;
  6966. if (true) {
  6967. var perf = inBrowser && window.performance;
  6968. /* istanbul ignore if */
  6969. if (
  6970. perf &&
  6971. perf.mark &&
  6972. perf.measure &&
  6973. perf.clearMarks &&
  6974. perf.clearMeasures
  6975. ) {
  6976. mark = function (tag) { return perf.mark(tag); };
  6977. measure = function (name, startTag, endTag) {
  6978. perf.measure(name, startTag, endTag);
  6979. perf.clearMarks(startTag);
  6980. perf.clearMarks(endTag);
  6981. // perf.clearMeasures(name)
  6982. };
  6983. }
  6984. }
  6985. /* */
  6986. var normalizeEvent = cached(function (name) {
  6987. var passive = name.charAt(0) === '&';
  6988. name = passive ? name.slice(1) : name;
  6989. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  6990. name = once$$1 ? name.slice(1) : name;
  6991. var capture = name.charAt(0) === '!';
  6992. name = capture ? name.slice(1) : name;
  6993. return {
  6994. name: name,
  6995. once: once$$1,
  6996. capture: capture,
  6997. passive: passive
  6998. }
  6999. });
  7000. function createFnInvoker (fns, vm) {
  7001. function invoker () {
  7002. var arguments$1 = arguments;
  7003. var fns = invoker.fns;
  7004. if (Array.isArray(fns)) {
  7005. var cloned = fns.slice();
  7006. for (var i = 0; i < cloned.length; i++) {
  7007. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  7008. }
  7009. } else {
  7010. // return handler return value for single handlers
  7011. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  7012. }
  7013. }
  7014. invoker.fns = fns;
  7015. return invoker
  7016. }
  7017. function updateListeners (
  7018. on,
  7019. oldOn,
  7020. add,
  7021. remove$$1,
  7022. createOnceHandler,
  7023. vm
  7024. ) {
  7025. var name, def$$1, cur, old, event;
  7026. for (name in on) {
  7027. def$$1 = cur = on[name];
  7028. old = oldOn[name];
  7029. event = normalizeEvent(name);
  7030. if (isUndef(cur)) {
  7031. true && warn(
  7032. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  7033. vm
  7034. );
  7035. } else if (isUndef(old)) {
  7036. if (isUndef(cur.fns)) {
  7037. cur = on[name] = createFnInvoker(cur, vm);
  7038. }
  7039. if (isTrue(event.once)) {
  7040. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  7041. }
  7042. add(event.name, cur, event.capture, event.passive, event.params);
  7043. } else if (cur !== old) {
  7044. old.fns = cur;
  7045. on[name] = old;
  7046. }
  7047. }
  7048. for (name in oldOn) {
  7049. if (isUndef(on[name])) {
  7050. event = normalizeEvent(name);
  7051. remove$$1(event.name, oldOn[name], event.capture);
  7052. }
  7053. }
  7054. }
  7055. /* */
  7056. /* */
  7057. // fixed by xxxxxx (mp properties)
  7058. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  7059. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  7060. if (isUndef(propOptions)) {
  7061. return res
  7062. }
  7063. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  7064. var attrs = data.attrs;
  7065. var props = data.props;
  7066. if (isDef(attrs) || isDef(props)) {
  7067. for (var key in propOptions) {
  7068. var altKey = hyphenate(key);
  7069. var result = checkProp(res, props, key, altKey, true) ||
  7070. checkProp(res, attrs, key, altKey, false);
  7071. // externalClass
  7072. if (
  7073. result &&
  7074. res[key] &&
  7075. externalClasses.indexOf(altKey) !== -1 &&
  7076. context[camelize(res[key])]
  7077. ) {
  7078. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  7079. res[key] = context[camelize(res[key])];
  7080. }
  7081. }
  7082. }
  7083. return res
  7084. }
  7085. function extractPropsFromVNodeData (
  7086. data,
  7087. Ctor,
  7088. tag,
  7089. context// fixed by xxxxxx
  7090. ) {
  7091. // we are only extracting raw values here.
  7092. // validation and default values are handled in the child
  7093. // component itself.
  7094. var propOptions = Ctor.options.props;
  7095. if (isUndef(propOptions)) {
  7096. // fixed by xxxxxx
  7097. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  7098. }
  7099. var res = {};
  7100. var attrs = data.attrs;
  7101. var props = data.props;
  7102. if (isDef(attrs) || isDef(props)) {
  7103. for (var key in propOptions) {
  7104. var altKey = hyphenate(key);
  7105. if (true) {
  7106. var keyInLowerCase = key.toLowerCase();
  7107. if (
  7108. key !== keyInLowerCase &&
  7109. attrs && hasOwn(attrs, keyInLowerCase)
  7110. ) {
  7111. tip(
  7112. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  7113. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  7114. " \"" + key + "\". " +
  7115. "Note that HTML attributes are case-insensitive and camelCased " +
  7116. "props need to use their kebab-case equivalents when using in-DOM " +
  7117. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  7118. );
  7119. }
  7120. }
  7121. checkProp(res, props, key, altKey, true) ||
  7122. checkProp(res, attrs, key, altKey, false);
  7123. }
  7124. }
  7125. // fixed by xxxxxx
  7126. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  7127. }
  7128. function checkProp (
  7129. res,
  7130. hash,
  7131. key,
  7132. altKey,
  7133. preserve
  7134. ) {
  7135. if (isDef(hash)) {
  7136. if (hasOwn(hash, key)) {
  7137. res[key] = hash[key];
  7138. if (!preserve) {
  7139. delete hash[key];
  7140. }
  7141. return true
  7142. } else if (hasOwn(hash, altKey)) {
  7143. res[key] = hash[altKey];
  7144. if (!preserve) {
  7145. delete hash[altKey];
  7146. }
  7147. return true
  7148. }
  7149. }
  7150. return false
  7151. }
  7152. /* */
  7153. // The template compiler attempts to minimize the need for normalization by
  7154. // statically analyzing the template at compile time.
  7155. //
  7156. // For plain HTML markup, normalization can be completely skipped because the
  7157. // generated render function is guaranteed to return Array<VNode>. There are
  7158. // two cases where extra normalization is needed:
  7159. // 1. When the children contains components - because a functional component
  7160. // may return an Array instead of a single root. In this case, just a simple
  7161. // normalization is needed - if any child is an Array, we flatten the whole
  7162. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  7163. // because functional components already normalize their own children.
  7164. function simpleNormalizeChildren (children) {
  7165. for (var i = 0; i < children.length; i++) {
  7166. if (Array.isArray(children[i])) {
  7167. return Array.prototype.concat.apply([], children)
  7168. }
  7169. }
  7170. return children
  7171. }
  7172. // 2. When the children contains constructs that always generated nested Arrays,
  7173. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  7174. // with hand-written render functions / JSX. In such cases a full normalization
  7175. // is needed to cater to all possible types of children values.
  7176. function normalizeChildren (children) {
  7177. return isPrimitive(children)
  7178. ? [createTextVNode(children)]
  7179. : Array.isArray(children)
  7180. ? normalizeArrayChildren(children)
  7181. : undefined
  7182. }
  7183. function isTextNode (node) {
  7184. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  7185. }
  7186. function normalizeArrayChildren (children, nestedIndex) {
  7187. var res = [];
  7188. var i, c, lastIndex, last;
  7189. for (i = 0; i < children.length; i++) {
  7190. c = children[i];
  7191. if (isUndef(c) || typeof c === 'boolean') { continue }
  7192. lastIndex = res.length - 1;
  7193. last = res[lastIndex];
  7194. // nested
  7195. if (Array.isArray(c)) {
  7196. if (c.length > 0) {
  7197. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  7198. // merge adjacent text nodes
  7199. if (isTextNode(c[0]) && isTextNode(last)) {
  7200. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  7201. c.shift();
  7202. }
  7203. res.push.apply(res, c);
  7204. }
  7205. } else if (isPrimitive(c)) {
  7206. if (isTextNode(last)) {
  7207. // merge adjacent text nodes
  7208. // this is necessary for SSR hydration because text nodes are
  7209. // essentially merged when rendered to HTML strings
  7210. res[lastIndex] = createTextVNode(last.text + c);
  7211. } else if (c !== '') {
  7212. // convert primitive to vnode
  7213. res.push(createTextVNode(c));
  7214. }
  7215. } else {
  7216. if (isTextNode(c) && isTextNode(last)) {
  7217. // merge adjacent text nodes
  7218. res[lastIndex] = createTextVNode(last.text + c.text);
  7219. } else {
  7220. // default key for nested array children (likely generated by v-for)
  7221. if (isTrue(children._isVList) &&
  7222. isDef(c.tag) &&
  7223. isUndef(c.key) &&
  7224. isDef(nestedIndex)) {
  7225. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  7226. }
  7227. res.push(c);
  7228. }
  7229. }
  7230. }
  7231. return res
  7232. }
  7233. /* */
  7234. function initProvide (vm) {
  7235. var provide = vm.$options.provide;
  7236. if (provide) {
  7237. vm._provided = typeof provide === 'function'
  7238. ? provide.call(vm)
  7239. : provide;
  7240. }
  7241. }
  7242. function initInjections (vm) {
  7243. var result = resolveInject(vm.$options.inject, vm);
  7244. if (result) {
  7245. toggleObserving(false);
  7246. Object.keys(result).forEach(function (key) {
  7247. /* istanbul ignore else */
  7248. if (true) {
  7249. defineReactive$$1(vm, key, result[key], function () {
  7250. warn(
  7251. "Avoid mutating an injected value directly since the changes will be " +
  7252. "overwritten whenever the provided component re-renders. " +
  7253. "injection being mutated: \"" + key + "\"",
  7254. vm
  7255. );
  7256. });
  7257. } else {}
  7258. });
  7259. toggleObserving(true);
  7260. }
  7261. }
  7262. function resolveInject (inject, vm) {
  7263. if (inject) {
  7264. // inject is :any because flow is not smart enough to figure out cached
  7265. var result = Object.create(null);
  7266. var keys = hasSymbol
  7267. ? Reflect.ownKeys(inject)
  7268. : Object.keys(inject);
  7269. for (var i = 0; i < keys.length; i++) {
  7270. var key = keys[i];
  7271. // #6574 in case the inject object is observed...
  7272. if (key === '__ob__') { continue }
  7273. var provideKey = inject[key].from;
  7274. var source = vm;
  7275. while (source) {
  7276. if (source._provided && hasOwn(source._provided, provideKey)) {
  7277. result[key] = source._provided[provideKey];
  7278. break
  7279. }
  7280. source = source.$parent;
  7281. }
  7282. if (!source) {
  7283. if ('default' in inject[key]) {
  7284. var provideDefault = inject[key].default;
  7285. result[key] = typeof provideDefault === 'function'
  7286. ? provideDefault.call(vm)
  7287. : provideDefault;
  7288. } else if (true) {
  7289. warn(("Injection \"" + key + "\" not found"), vm);
  7290. }
  7291. }
  7292. }
  7293. return result
  7294. }
  7295. }
  7296. /* */
  7297. /**
  7298. * Runtime helper for resolving raw children VNodes into a slot object.
  7299. */
  7300. function resolveSlots (
  7301. children,
  7302. context
  7303. ) {
  7304. if (!children || !children.length) {
  7305. return {}
  7306. }
  7307. var slots = {};
  7308. for (var i = 0, l = children.length; i < l; i++) {
  7309. var child = children[i];
  7310. var data = child.data;
  7311. // remove slot attribute if the node is resolved as a Vue slot node
  7312. if (data && data.attrs && data.attrs.slot) {
  7313. delete data.attrs.slot;
  7314. }
  7315. // named slots should only be respected if the vnode was rendered in the
  7316. // same context.
  7317. if ((child.context === context || child.fnContext === context) &&
  7318. data && data.slot != null
  7319. ) {
  7320. var name = data.slot;
  7321. var slot = (slots[name] || (slots[name] = []));
  7322. if (child.tag === 'template') {
  7323. slot.push.apply(slot, child.children || []);
  7324. } else {
  7325. slot.push(child);
  7326. }
  7327. } else {
  7328. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  7329. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  7330. (slots['page'] || (slots['page'] = [])).push(child);
  7331. }else{
  7332. (slots.default || (slots.default = [])).push(child);
  7333. }
  7334. }
  7335. }
  7336. // ignore slots that contains only whitespace
  7337. for (var name$1 in slots) {
  7338. if (slots[name$1].every(isWhitespace)) {
  7339. delete slots[name$1];
  7340. }
  7341. }
  7342. return slots
  7343. }
  7344. function isWhitespace (node) {
  7345. return (node.isComment && !node.asyncFactory) || node.text === ' '
  7346. }
  7347. /* */
  7348. function normalizeScopedSlots (
  7349. slots,
  7350. normalSlots,
  7351. prevSlots
  7352. ) {
  7353. var res;
  7354. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  7355. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  7356. var key = slots && slots.$key;
  7357. if (!slots) {
  7358. res = {};
  7359. } else if (slots._normalized) {
  7360. // fast path 1: child component re-render only, parent did not change
  7361. return slots._normalized
  7362. } else if (
  7363. isStable &&
  7364. prevSlots &&
  7365. prevSlots !== emptyObject &&
  7366. key === prevSlots.$key &&
  7367. !hasNormalSlots &&
  7368. !prevSlots.$hasNormal
  7369. ) {
  7370. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  7371. // only need to normalize once
  7372. return prevSlots
  7373. } else {
  7374. res = {};
  7375. for (var key$1 in slots) {
  7376. if (slots[key$1] && key$1[0] !== '$') {
  7377. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  7378. }
  7379. }
  7380. }
  7381. // expose normal slots on scopedSlots
  7382. for (var key$2 in normalSlots) {
  7383. if (!(key$2 in res)) {
  7384. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  7385. }
  7386. }
  7387. // avoriaz seems to mock a non-extensible $scopedSlots object
  7388. // and when that is passed down this would cause an error
  7389. if (slots && Object.isExtensible(slots)) {
  7390. (slots)._normalized = res;
  7391. }
  7392. def(res, '$stable', isStable);
  7393. def(res, '$key', key);
  7394. def(res, '$hasNormal', hasNormalSlots);
  7395. return res
  7396. }
  7397. function normalizeScopedSlot(normalSlots, key, fn) {
  7398. var normalized = function () {
  7399. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  7400. res = res && typeof res === 'object' && !Array.isArray(res)
  7401. ? [res] // single vnode
  7402. : normalizeChildren(res);
  7403. return res && (
  7404. res.length === 0 ||
  7405. (res.length === 1 && res[0].isComment) // #9658
  7406. ) ? undefined
  7407. : res
  7408. };
  7409. // this is a slot using the new v-slot syntax without scope. although it is
  7410. // compiled as a scoped slot, render fn users would expect it to be present
  7411. // on this.$slots because the usage is semantically a normal slot.
  7412. if (fn.proxy) {
  7413. Object.defineProperty(normalSlots, key, {
  7414. get: normalized,
  7415. enumerable: true,
  7416. configurable: true
  7417. });
  7418. }
  7419. return normalized
  7420. }
  7421. function proxyNormalSlot(slots, key) {
  7422. return function () { return slots[key]; }
  7423. }
  7424. /* */
  7425. /**
  7426. * Runtime helper for rendering v-for lists.
  7427. */
  7428. function renderList (
  7429. val,
  7430. render
  7431. ) {
  7432. var ret, i, l, keys, key;
  7433. if (Array.isArray(val) || typeof val === 'string') {
  7434. ret = new Array(val.length);
  7435. for (i = 0, l = val.length; i < l; i++) {
  7436. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  7437. }
  7438. } else if (typeof val === 'number') {
  7439. ret = new Array(val);
  7440. for (i = 0; i < val; i++) {
  7441. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  7442. }
  7443. } else if (isObject(val)) {
  7444. if (hasSymbol && val[Symbol.iterator]) {
  7445. ret = [];
  7446. var iterator = val[Symbol.iterator]();
  7447. var result = iterator.next();
  7448. while (!result.done) {
  7449. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  7450. result = iterator.next();
  7451. }
  7452. } else {
  7453. keys = Object.keys(val);
  7454. ret = new Array(keys.length);
  7455. for (i = 0, l = keys.length; i < l; i++) {
  7456. key = keys[i];
  7457. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  7458. }
  7459. }
  7460. }
  7461. if (!isDef(ret)) {
  7462. ret = [];
  7463. }
  7464. (ret)._isVList = true;
  7465. return ret
  7466. }
  7467. /* */
  7468. /**
  7469. * Runtime helper for rendering <slot>
  7470. */
  7471. function renderSlot (
  7472. name,
  7473. fallback,
  7474. props,
  7475. bindObject
  7476. ) {
  7477. var scopedSlotFn = this.$scopedSlots[name];
  7478. var nodes;
  7479. if (scopedSlotFn) { // scoped slot
  7480. props = props || {};
  7481. if (bindObject) {
  7482. if ( true && !isObject(bindObject)) {
  7483. warn(
  7484. 'slot v-bind without argument expects an Object',
  7485. this
  7486. );
  7487. }
  7488. props = extend(extend({}, bindObject), props);
  7489. }
  7490. // fixed by xxxxxx app-plus scopedSlot
  7491. nodes = scopedSlotFn(props, this, props._i) || fallback;
  7492. } else {
  7493. nodes = this.$slots[name] || fallback;
  7494. }
  7495. var target = props && props.slot;
  7496. if (target) {
  7497. return this.$createElement('template', { slot: target }, nodes)
  7498. } else {
  7499. return nodes
  7500. }
  7501. }
  7502. /* */
  7503. /**
  7504. * Runtime helper for resolving filters
  7505. */
  7506. function resolveFilter (id) {
  7507. return resolveAsset(this.$options, 'filters', id, true) || identity
  7508. }
  7509. /* */
  7510. function isKeyNotMatch (expect, actual) {
  7511. if (Array.isArray(expect)) {
  7512. return expect.indexOf(actual) === -1
  7513. } else {
  7514. return expect !== actual
  7515. }
  7516. }
  7517. /**
  7518. * Runtime helper for checking keyCodes from config.
  7519. * exposed as Vue.prototype._k
  7520. * passing in eventKeyName as last argument separately for backwards compat
  7521. */
  7522. function checkKeyCodes (
  7523. eventKeyCode,
  7524. key,
  7525. builtInKeyCode,
  7526. eventKeyName,
  7527. builtInKeyName
  7528. ) {
  7529. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  7530. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  7531. return isKeyNotMatch(builtInKeyName, eventKeyName)
  7532. } else if (mappedKeyCode) {
  7533. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  7534. } else if (eventKeyName) {
  7535. return hyphenate(eventKeyName) !== key
  7536. }
  7537. }
  7538. /* */
  7539. /**
  7540. * Runtime helper for merging v-bind="object" into a VNode's data.
  7541. */
  7542. function bindObjectProps (
  7543. data,
  7544. tag,
  7545. value,
  7546. asProp,
  7547. isSync
  7548. ) {
  7549. if (value) {
  7550. if (!isObject(value)) {
  7551. true && warn(
  7552. 'v-bind without argument expects an Object or Array value',
  7553. this
  7554. );
  7555. } else {
  7556. if (Array.isArray(value)) {
  7557. value = toObject(value);
  7558. }
  7559. var hash;
  7560. var loop = function ( key ) {
  7561. if (
  7562. key === 'class' ||
  7563. key === 'style' ||
  7564. isReservedAttribute(key)
  7565. ) {
  7566. hash = data;
  7567. } else {
  7568. var type = data.attrs && data.attrs.type;
  7569. hash = asProp || config.mustUseProp(tag, type, key)
  7570. ? data.domProps || (data.domProps = {})
  7571. : data.attrs || (data.attrs = {});
  7572. }
  7573. var camelizedKey = camelize(key);
  7574. var hyphenatedKey = hyphenate(key);
  7575. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  7576. hash[key] = value[key];
  7577. if (isSync) {
  7578. var on = data.on || (data.on = {});
  7579. on[("update:" + key)] = function ($event) {
  7580. value[key] = $event;
  7581. };
  7582. }
  7583. }
  7584. };
  7585. for (var key in value) loop( key );
  7586. }
  7587. }
  7588. return data
  7589. }
  7590. /* */
  7591. /**
  7592. * Runtime helper for rendering static trees.
  7593. */
  7594. function renderStatic (
  7595. index,
  7596. isInFor
  7597. ) {
  7598. var cached = this._staticTrees || (this._staticTrees = []);
  7599. var tree = cached[index];
  7600. // if has already-rendered static tree and not inside v-for,
  7601. // we can reuse the same tree.
  7602. if (tree && !isInFor) {
  7603. return tree
  7604. }
  7605. // otherwise, render a fresh tree.
  7606. tree = cached[index] = this.$options.staticRenderFns[index].call(
  7607. this._renderProxy,
  7608. null,
  7609. this // for render fns generated for functional component templates
  7610. );
  7611. markStatic(tree, ("__static__" + index), false);
  7612. return tree
  7613. }
  7614. /**
  7615. * Runtime helper for v-once.
  7616. * Effectively it means marking the node as static with a unique key.
  7617. */
  7618. function markOnce (
  7619. tree,
  7620. index,
  7621. key
  7622. ) {
  7623. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  7624. return tree
  7625. }
  7626. function markStatic (
  7627. tree,
  7628. key,
  7629. isOnce
  7630. ) {
  7631. if (Array.isArray(tree)) {
  7632. for (var i = 0; i < tree.length; i++) {
  7633. if (tree[i] && typeof tree[i] !== 'string') {
  7634. markStaticNode(tree[i], (key + "_" + i), isOnce);
  7635. }
  7636. }
  7637. } else {
  7638. markStaticNode(tree, key, isOnce);
  7639. }
  7640. }
  7641. function markStaticNode (node, key, isOnce) {
  7642. node.isStatic = true;
  7643. node.key = key;
  7644. node.isOnce = isOnce;
  7645. }
  7646. /* */
  7647. function bindObjectListeners (data, value) {
  7648. if (value) {
  7649. if (!isPlainObject(value)) {
  7650. true && warn(
  7651. 'v-on without argument expects an Object value',
  7652. this
  7653. );
  7654. } else {
  7655. var on = data.on = data.on ? extend({}, data.on) : {};
  7656. for (var key in value) {
  7657. var existing = on[key];
  7658. var ours = value[key];
  7659. on[key] = existing ? [].concat(existing, ours) : ours;
  7660. }
  7661. }
  7662. }
  7663. return data
  7664. }
  7665. /* */
  7666. function resolveScopedSlots (
  7667. fns, // see flow/vnode
  7668. res,
  7669. // the following are added in 2.6
  7670. hasDynamicKeys,
  7671. contentHashKey
  7672. ) {
  7673. res = res || { $stable: !hasDynamicKeys };
  7674. for (var i = 0; i < fns.length; i++) {
  7675. var slot = fns[i];
  7676. if (Array.isArray(slot)) {
  7677. resolveScopedSlots(slot, res, hasDynamicKeys);
  7678. } else if (slot) {
  7679. // marker for reverse proxying v-slot without scope on this.$slots
  7680. if (slot.proxy) {
  7681. slot.fn.proxy = true;
  7682. }
  7683. res[slot.key] = slot.fn;
  7684. }
  7685. }
  7686. if (contentHashKey) {
  7687. (res).$key = contentHashKey;
  7688. }
  7689. return res
  7690. }
  7691. /* */
  7692. function bindDynamicKeys (baseObj, values) {
  7693. for (var i = 0; i < values.length; i += 2) {
  7694. var key = values[i];
  7695. if (typeof key === 'string' && key) {
  7696. baseObj[values[i]] = values[i + 1];
  7697. } else if ( true && key !== '' && key !== null) {
  7698. // null is a special value for explicitly removing a binding
  7699. warn(
  7700. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  7701. this
  7702. );
  7703. }
  7704. }
  7705. return baseObj
  7706. }
  7707. // helper to dynamically append modifier runtime markers to event names.
  7708. // ensure only append when value is already string, otherwise it will be cast
  7709. // to string and cause the type check to miss.
  7710. function prependModifier (value, symbol) {
  7711. return typeof value === 'string' ? symbol + value : value
  7712. }
  7713. /* */
  7714. function installRenderHelpers (target) {
  7715. target._o = markOnce;
  7716. target._n = toNumber;
  7717. target._s = toString;
  7718. target._l = renderList;
  7719. target._t = renderSlot;
  7720. target._q = looseEqual;
  7721. target._i = looseIndexOf;
  7722. target._m = renderStatic;
  7723. target._f = resolveFilter;
  7724. target._k = checkKeyCodes;
  7725. target._b = bindObjectProps;
  7726. target._v = createTextVNode;
  7727. target._e = createEmptyVNode;
  7728. target._u = resolveScopedSlots;
  7729. target._g = bindObjectListeners;
  7730. target._d = bindDynamicKeys;
  7731. target._p = prependModifier;
  7732. }
  7733. /* */
  7734. function FunctionalRenderContext (
  7735. data,
  7736. props,
  7737. children,
  7738. parent,
  7739. Ctor
  7740. ) {
  7741. var this$1 = this;
  7742. var options = Ctor.options;
  7743. // ensure the createElement function in functional components
  7744. // gets a unique context - this is necessary for correct named slot check
  7745. var contextVm;
  7746. if (hasOwn(parent, '_uid')) {
  7747. contextVm = Object.create(parent);
  7748. // $flow-disable-line
  7749. contextVm._original = parent;
  7750. } else {
  7751. // the context vm passed in is a functional context as well.
  7752. // in this case we want to make sure we are able to get a hold to the
  7753. // real context instance.
  7754. contextVm = parent;
  7755. // $flow-disable-line
  7756. parent = parent._original;
  7757. }
  7758. var isCompiled = isTrue(options._compiled);
  7759. var needNormalization = !isCompiled;
  7760. this.data = data;
  7761. this.props = props;
  7762. this.children = children;
  7763. this.parent = parent;
  7764. this.listeners = data.on || emptyObject;
  7765. this.injections = resolveInject(options.inject, parent);
  7766. this.slots = function () {
  7767. if (!this$1.$slots) {
  7768. normalizeScopedSlots(
  7769. data.scopedSlots,
  7770. this$1.$slots = resolveSlots(children, parent)
  7771. );
  7772. }
  7773. return this$1.$slots
  7774. };
  7775. Object.defineProperty(this, 'scopedSlots', ({
  7776. enumerable: true,
  7777. get: function get () {
  7778. return normalizeScopedSlots(data.scopedSlots, this.slots())
  7779. }
  7780. }));
  7781. // support for compiled functional template
  7782. if (isCompiled) {
  7783. // exposing $options for renderStatic()
  7784. this.$options = options;
  7785. // pre-resolve slots for renderSlot()
  7786. this.$slots = this.slots();
  7787. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  7788. }
  7789. if (options._scopeId) {
  7790. this._c = function (a, b, c, d) {
  7791. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  7792. if (vnode && !Array.isArray(vnode)) {
  7793. vnode.fnScopeId = options._scopeId;
  7794. vnode.fnContext = parent;
  7795. }
  7796. return vnode
  7797. };
  7798. } else {
  7799. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  7800. }
  7801. }
  7802. installRenderHelpers(FunctionalRenderContext.prototype);
  7803. function createFunctionalComponent (
  7804. Ctor,
  7805. propsData,
  7806. data,
  7807. contextVm,
  7808. children
  7809. ) {
  7810. var options = Ctor.options;
  7811. var props = {};
  7812. var propOptions = options.props;
  7813. if (isDef(propOptions)) {
  7814. for (var key in propOptions) {
  7815. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  7816. }
  7817. } else {
  7818. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  7819. if (isDef(data.props)) { mergeProps(props, data.props); }
  7820. }
  7821. var renderContext = new FunctionalRenderContext(
  7822. data,
  7823. props,
  7824. children,
  7825. contextVm,
  7826. Ctor
  7827. );
  7828. var vnode = options.render.call(null, renderContext._c, renderContext);
  7829. if (vnode instanceof VNode) {
  7830. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  7831. } else if (Array.isArray(vnode)) {
  7832. var vnodes = normalizeChildren(vnode) || [];
  7833. var res = new Array(vnodes.length);
  7834. for (var i = 0; i < vnodes.length; i++) {
  7835. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  7836. }
  7837. return res
  7838. }
  7839. }
  7840. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  7841. // #7817 clone node before setting fnContext, otherwise if the node is reused
  7842. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  7843. // that should not be matched to match.
  7844. var clone = cloneVNode(vnode);
  7845. clone.fnContext = contextVm;
  7846. clone.fnOptions = options;
  7847. if (true) {
  7848. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  7849. }
  7850. if (data.slot) {
  7851. (clone.data || (clone.data = {})).slot = data.slot;
  7852. }
  7853. return clone
  7854. }
  7855. function mergeProps (to, from) {
  7856. for (var key in from) {
  7857. to[camelize(key)] = from[key];
  7858. }
  7859. }
  7860. /* */
  7861. /* */
  7862. /* */
  7863. /* */
  7864. // inline hooks to be invoked on component VNodes during patch
  7865. var componentVNodeHooks = {
  7866. init: function init (vnode, hydrating) {
  7867. if (
  7868. vnode.componentInstance &&
  7869. !vnode.componentInstance._isDestroyed &&
  7870. vnode.data.keepAlive
  7871. ) {
  7872. // kept-alive components, treat as a patch
  7873. var mountedNode = vnode; // work around flow
  7874. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  7875. } else {
  7876. var child = vnode.componentInstance = createComponentInstanceForVnode(
  7877. vnode,
  7878. activeInstance
  7879. );
  7880. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  7881. }
  7882. },
  7883. prepatch: function prepatch (oldVnode, vnode) {
  7884. var options = vnode.componentOptions;
  7885. var child = vnode.componentInstance = oldVnode.componentInstance;
  7886. updateChildComponent(
  7887. child,
  7888. options.propsData, // updated props
  7889. options.listeners, // updated listeners
  7890. vnode, // new parent vnode
  7891. options.children // new children
  7892. );
  7893. },
  7894. insert: function insert (vnode) {
  7895. var context = vnode.context;
  7896. var componentInstance = vnode.componentInstance;
  7897. if (!componentInstance._isMounted) {
  7898. callHook(componentInstance, 'onServiceCreated');
  7899. callHook(componentInstance, 'onServiceAttached');
  7900. componentInstance._isMounted = true;
  7901. callHook(componentInstance, 'mounted');
  7902. }
  7903. if (vnode.data.keepAlive) {
  7904. if (context._isMounted) {
  7905. // vue-router#1212
  7906. // During updates, a kept-alive component's child components may
  7907. // change, so directly walking the tree here may call activated hooks
  7908. // on incorrect children. Instead we push them into a queue which will
  7909. // be processed after the whole patch process ended.
  7910. queueActivatedComponent(componentInstance);
  7911. } else {
  7912. activateChildComponent(componentInstance, true /* direct */);
  7913. }
  7914. }
  7915. },
  7916. destroy: function destroy (vnode) {
  7917. var componentInstance = vnode.componentInstance;
  7918. if (!componentInstance._isDestroyed) {
  7919. if (!vnode.data.keepAlive) {
  7920. componentInstance.$destroy();
  7921. } else {
  7922. deactivateChildComponent(componentInstance, true /* direct */);
  7923. }
  7924. }
  7925. }
  7926. };
  7927. var hooksToMerge = Object.keys(componentVNodeHooks);
  7928. function createComponent (
  7929. Ctor,
  7930. data,
  7931. context,
  7932. children,
  7933. tag
  7934. ) {
  7935. if (isUndef(Ctor)) {
  7936. return
  7937. }
  7938. var baseCtor = context.$options._base;
  7939. // plain options object: turn it into a constructor
  7940. if (isObject(Ctor)) {
  7941. Ctor = baseCtor.extend(Ctor);
  7942. }
  7943. // if at this stage it's not a constructor or an async component factory,
  7944. // reject.
  7945. if (typeof Ctor !== 'function') {
  7946. if (true) {
  7947. warn(("Invalid Component definition: " + (String(Ctor))), context);
  7948. }
  7949. return
  7950. }
  7951. // async component
  7952. var asyncFactory;
  7953. if (isUndef(Ctor.cid)) {
  7954. asyncFactory = Ctor;
  7955. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  7956. if (Ctor === undefined) {
  7957. // return a placeholder node for async component, which is rendered
  7958. // as a comment node but preserves all the raw information for the node.
  7959. // the information will be used for async server-rendering and hydration.
  7960. return createAsyncPlaceholder(
  7961. asyncFactory,
  7962. data,
  7963. context,
  7964. children,
  7965. tag
  7966. )
  7967. }
  7968. }
  7969. data = data || {};
  7970. // resolve constructor options in case global mixins are applied after
  7971. // component constructor creation
  7972. resolveConstructorOptions(Ctor);
  7973. // transform component v-model data into props & events
  7974. if (isDef(data.model)) {
  7975. transformModel(Ctor.options, data);
  7976. }
  7977. // extract props
  7978. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  7979. // functional component
  7980. if (isTrue(Ctor.options.functional)) {
  7981. return createFunctionalComponent(Ctor, propsData, data, context, children)
  7982. }
  7983. // extract listeners, since these needs to be treated as
  7984. // child component listeners instead of DOM listeners
  7985. var listeners = data.on;
  7986. // replace with listeners with .native modifier
  7987. // so it gets processed during parent component patch.
  7988. data.on = data.nativeOn;
  7989. if (isTrue(Ctor.options.abstract)) {
  7990. // abstract components do not keep anything
  7991. // other than props & listeners & slot
  7992. // work around flow
  7993. var slot = data.slot;
  7994. data = {};
  7995. if (slot) {
  7996. data.slot = slot;
  7997. }
  7998. }
  7999. // install component management hooks onto the placeholder node
  8000. installComponentHooks(data);
  8001. // return a placeholder vnode
  8002. var name = Ctor.options.name || tag;
  8003. var vnode = new VNode(
  8004. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  8005. data, undefined, undefined, undefined, context,
  8006. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  8007. asyncFactory
  8008. );
  8009. return vnode
  8010. }
  8011. function createComponentInstanceForVnode (
  8012. vnode, // we know it's MountedComponentVNode but flow doesn't
  8013. parent // activeInstance in lifecycle state
  8014. ) {
  8015. var options = {
  8016. _isComponent: true,
  8017. _parentVnode: vnode,
  8018. parent: parent
  8019. };
  8020. // check inline-template render functions
  8021. var inlineTemplate = vnode.data.inlineTemplate;
  8022. if (isDef(inlineTemplate)) {
  8023. options.render = inlineTemplate.render;
  8024. options.staticRenderFns = inlineTemplate.staticRenderFns;
  8025. }
  8026. return new vnode.componentOptions.Ctor(options)
  8027. }
  8028. function installComponentHooks (data) {
  8029. var hooks = data.hook || (data.hook = {});
  8030. for (var i = 0; i < hooksToMerge.length; i++) {
  8031. var key = hooksToMerge[i];
  8032. var existing = hooks[key];
  8033. var toMerge = componentVNodeHooks[key];
  8034. if (existing !== toMerge && !(existing && existing._merged)) {
  8035. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  8036. }
  8037. }
  8038. }
  8039. function mergeHook$1 (f1, f2) {
  8040. var merged = function (a, b) {
  8041. // flow complains about extra args which is why we use any
  8042. f1(a, b);
  8043. f2(a, b);
  8044. };
  8045. merged._merged = true;
  8046. return merged
  8047. }
  8048. // transform component v-model info (value and callback) into
  8049. // prop and event handler respectively.
  8050. function transformModel (options, data) {
  8051. var prop = (options.model && options.model.prop) || 'value';
  8052. var event = (options.model && options.model.event) || 'input'
  8053. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  8054. var on = data.on || (data.on = {});
  8055. var existing = on[event];
  8056. var callback = data.model.callback;
  8057. if (isDef(existing)) {
  8058. if (
  8059. Array.isArray(existing)
  8060. ? existing.indexOf(callback) === -1
  8061. : existing !== callback
  8062. ) {
  8063. on[event] = [callback].concat(existing);
  8064. }
  8065. } else {
  8066. on[event] = callback;
  8067. }
  8068. }
  8069. /* */
  8070. var SIMPLE_NORMALIZE = 1;
  8071. var ALWAYS_NORMALIZE = 2;
  8072. // wrapper function for providing a more flexible interface
  8073. // without getting yelled at by flow
  8074. function createElement (
  8075. context,
  8076. tag,
  8077. data,
  8078. children,
  8079. normalizationType,
  8080. alwaysNormalize
  8081. ) {
  8082. if (Array.isArray(data) || isPrimitive(data)) {
  8083. normalizationType = children;
  8084. children = data;
  8085. data = undefined;
  8086. }
  8087. if (isTrue(alwaysNormalize)) {
  8088. normalizationType = ALWAYS_NORMALIZE;
  8089. }
  8090. return _createElement(context, tag, data, children, normalizationType)
  8091. }
  8092. function _createElement (
  8093. context,
  8094. tag,
  8095. data,
  8096. children,
  8097. normalizationType
  8098. ) {
  8099. if (isDef(data) && isDef((data).__ob__)) {
  8100. true && warn(
  8101. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  8102. 'Always create fresh vnode data objects in each render!',
  8103. context
  8104. );
  8105. return createEmptyVNode()
  8106. }
  8107. // object syntax in v-bind
  8108. if (isDef(data) && isDef(data.is)) {
  8109. tag = data.is;
  8110. }
  8111. if (!tag) {
  8112. // in case of component :is set to falsy value
  8113. return createEmptyVNode()
  8114. }
  8115. // warn against non-primitive key
  8116. if ( true &&
  8117. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  8118. ) {
  8119. {
  8120. warn(
  8121. 'Avoid using non-primitive value as key, ' +
  8122. 'use string/number value instead.',
  8123. context
  8124. );
  8125. }
  8126. }
  8127. // support single function children as default scoped slot
  8128. if (Array.isArray(children) &&
  8129. typeof children[0] === 'function'
  8130. ) {
  8131. data = data || {};
  8132. data.scopedSlots = { default: children[0] };
  8133. children.length = 0;
  8134. }
  8135. if (normalizationType === ALWAYS_NORMALIZE) {
  8136. children = normalizeChildren(children);
  8137. } else if (normalizationType === SIMPLE_NORMALIZE) {
  8138. children = simpleNormalizeChildren(children);
  8139. }
  8140. var vnode, ns;
  8141. if (typeof tag === 'string') {
  8142. var Ctor;
  8143. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  8144. if (config.isReservedTag(tag)) {
  8145. // platform built-in elements
  8146. if ( true && isDef(data) && isDef(data.nativeOn)) {
  8147. warn(
  8148. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  8149. context
  8150. );
  8151. }
  8152. vnode = new VNode(
  8153. config.parsePlatformTagName(tag), data, children,
  8154. undefined, undefined, context
  8155. );
  8156. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  8157. // component
  8158. vnode = createComponent(Ctor, data, context, children, tag);
  8159. } else {
  8160. // unknown or unlisted namespaced elements
  8161. // check at runtime because it may get assigned a namespace when its
  8162. // parent normalizes children
  8163. vnode = new VNode(
  8164. tag, data, children,
  8165. undefined, undefined, context
  8166. );
  8167. }
  8168. } else {
  8169. // direct component options / constructor
  8170. vnode = createComponent(tag, data, context, children);
  8171. }
  8172. if (Array.isArray(vnode)) {
  8173. return vnode
  8174. } else if (isDef(vnode)) {
  8175. if (isDef(ns)) { applyNS(vnode, ns); }
  8176. if (isDef(data)) { registerDeepBindings(data); }
  8177. return vnode
  8178. } else {
  8179. return createEmptyVNode()
  8180. }
  8181. }
  8182. function applyNS (vnode, ns, force) {
  8183. vnode.ns = ns;
  8184. if (vnode.tag === 'foreignObject') {
  8185. // use default namespace inside foreignObject
  8186. ns = undefined;
  8187. force = true;
  8188. }
  8189. if (isDef(vnode.children)) {
  8190. for (var i = 0, l = vnode.children.length; i < l; i++) {
  8191. var child = vnode.children[i];
  8192. if (isDef(child.tag) && (
  8193. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  8194. applyNS(child, ns, force);
  8195. }
  8196. }
  8197. }
  8198. }
  8199. // ref #5318
  8200. // necessary to ensure parent re-render when deep bindings like :style and
  8201. // :class are used on slot nodes
  8202. function registerDeepBindings (data) {
  8203. if (isObject(data.style)) {
  8204. traverse(data.style);
  8205. }
  8206. if (isObject(data.class)) {
  8207. traverse(data.class);
  8208. }
  8209. }
  8210. /* */
  8211. function initRender (vm) {
  8212. vm._vnode = null; // the root of the child tree
  8213. vm._staticTrees = null; // v-once cached trees
  8214. var options = vm.$options;
  8215. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  8216. var renderContext = parentVnode && parentVnode.context;
  8217. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  8218. vm.$scopedSlots = emptyObject;
  8219. // bind the createElement fn to this instance
  8220. // so that we get proper render context inside it.
  8221. // args order: tag, data, children, normalizationType, alwaysNormalize
  8222. // internal version is used by render functions compiled from templates
  8223. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  8224. // normalization is always applied for the public version, used in
  8225. // user-written render functions.
  8226. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  8227. // $attrs & $listeners are exposed for easier HOC creation.
  8228. // they need to be reactive so that HOCs using them are always updated
  8229. var parentData = parentVnode && parentVnode.data;
  8230. /* istanbul ignore else */
  8231. if (true) {
  8232. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  8233. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  8234. }, true);
  8235. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  8236. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  8237. }, true);
  8238. } else {}
  8239. }
  8240. var currentRenderingInstance = null;
  8241. function renderMixin (Vue) {
  8242. // install runtime convenience helpers
  8243. installRenderHelpers(Vue.prototype);
  8244. Vue.prototype.$nextTick = function (fn) {
  8245. return nextTick(fn, this)
  8246. };
  8247. Vue.prototype._render = function () {
  8248. var vm = this;
  8249. var ref = vm.$options;
  8250. var render = ref.render;
  8251. var _parentVnode = ref._parentVnode;
  8252. if (_parentVnode) {
  8253. vm.$scopedSlots = normalizeScopedSlots(
  8254. _parentVnode.data.scopedSlots,
  8255. vm.$slots,
  8256. vm.$scopedSlots
  8257. );
  8258. }
  8259. // set parent vnode. this allows render functions to have access
  8260. // to the data on the placeholder node.
  8261. vm.$vnode = _parentVnode;
  8262. // render self
  8263. var vnode;
  8264. try {
  8265. // There's no need to maintain a stack because all render fns are called
  8266. // separately from one another. Nested component's render fns are called
  8267. // when parent component is patched.
  8268. currentRenderingInstance = vm;
  8269. vnode = render.call(vm._renderProxy, vm.$createElement);
  8270. } catch (e) {
  8271. handleError(e, vm, "render");
  8272. // return error render result,
  8273. // or previous vnode to prevent render error causing blank component
  8274. /* istanbul ignore else */
  8275. if ( true && vm.$options.renderError) {
  8276. try {
  8277. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  8278. } catch (e) {
  8279. handleError(e, vm, "renderError");
  8280. vnode = vm._vnode;
  8281. }
  8282. } else {
  8283. vnode = vm._vnode;
  8284. }
  8285. } finally {
  8286. currentRenderingInstance = null;
  8287. }
  8288. // if the returned array contains only a single node, allow it
  8289. if (Array.isArray(vnode) && vnode.length === 1) {
  8290. vnode = vnode[0];
  8291. }
  8292. // return empty vnode in case the render function errored out
  8293. if (!(vnode instanceof VNode)) {
  8294. if ( true && Array.isArray(vnode)) {
  8295. warn(
  8296. 'Multiple root nodes returned from render function. Render function ' +
  8297. 'should return a single root node.',
  8298. vm
  8299. );
  8300. }
  8301. vnode = createEmptyVNode();
  8302. }
  8303. // set parent
  8304. vnode.parent = _parentVnode;
  8305. return vnode
  8306. };
  8307. }
  8308. /* */
  8309. function ensureCtor (comp, base) {
  8310. if (
  8311. comp.__esModule ||
  8312. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  8313. ) {
  8314. comp = comp.default;
  8315. }
  8316. return isObject(comp)
  8317. ? base.extend(comp)
  8318. : comp
  8319. }
  8320. function createAsyncPlaceholder (
  8321. factory,
  8322. data,
  8323. context,
  8324. children,
  8325. tag
  8326. ) {
  8327. var node = createEmptyVNode();
  8328. node.asyncFactory = factory;
  8329. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  8330. return node
  8331. }
  8332. function resolveAsyncComponent (
  8333. factory,
  8334. baseCtor
  8335. ) {
  8336. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  8337. return factory.errorComp
  8338. }
  8339. if (isDef(factory.resolved)) {
  8340. return factory.resolved
  8341. }
  8342. var owner = currentRenderingInstance;
  8343. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  8344. // already pending
  8345. factory.owners.push(owner);
  8346. }
  8347. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  8348. return factory.loadingComp
  8349. }
  8350. if (owner && !isDef(factory.owners)) {
  8351. var owners = factory.owners = [owner];
  8352. var sync = true;
  8353. var timerLoading = null;
  8354. var timerTimeout = null
  8355. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  8356. var forceRender = function (renderCompleted) {
  8357. for (var i = 0, l = owners.length; i < l; i++) {
  8358. (owners[i]).$forceUpdate();
  8359. }
  8360. if (renderCompleted) {
  8361. owners.length = 0;
  8362. if (timerLoading !== null) {
  8363. clearTimeout(timerLoading);
  8364. timerLoading = null;
  8365. }
  8366. if (timerTimeout !== null) {
  8367. clearTimeout(timerTimeout);
  8368. timerTimeout = null;
  8369. }
  8370. }
  8371. };
  8372. var resolve = once(function (res) {
  8373. // cache resolved
  8374. factory.resolved = ensureCtor(res, baseCtor);
  8375. // invoke callbacks only if this is not a synchronous resolve
  8376. // (async resolves are shimmed as synchronous during SSR)
  8377. if (!sync) {
  8378. forceRender(true);
  8379. } else {
  8380. owners.length = 0;
  8381. }
  8382. });
  8383. var reject = once(function (reason) {
  8384. true && warn(
  8385. "Failed to resolve async component: " + (String(factory)) +
  8386. (reason ? ("\nReason: " + reason) : '')
  8387. );
  8388. if (isDef(factory.errorComp)) {
  8389. factory.error = true;
  8390. forceRender(true);
  8391. }
  8392. });
  8393. var res = factory(resolve, reject);
  8394. if (isObject(res)) {
  8395. if (isPromise(res)) {
  8396. // () => Promise
  8397. if (isUndef(factory.resolved)) {
  8398. res.then(resolve, reject);
  8399. }
  8400. } else if (isPromise(res.component)) {
  8401. res.component.then(resolve, reject);
  8402. if (isDef(res.error)) {
  8403. factory.errorComp = ensureCtor(res.error, baseCtor);
  8404. }
  8405. if (isDef(res.loading)) {
  8406. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  8407. if (res.delay === 0) {
  8408. factory.loading = true;
  8409. } else {
  8410. timerLoading = setTimeout(function () {
  8411. timerLoading = null;
  8412. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  8413. factory.loading = true;
  8414. forceRender(false);
  8415. }
  8416. }, res.delay || 200);
  8417. }
  8418. }
  8419. if (isDef(res.timeout)) {
  8420. timerTimeout = setTimeout(function () {
  8421. timerTimeout = null;
  8422. if (isUndef(factory.resolved)) {
  8423. reject(
  8424. true
  8425. ? ("timeout (" + (res.timeout) + "ms)")
  8426. : undefined
  8427. );
  8428. }
  8429. }, res.timeout);
  8430. }
  8431. }
  8432. }
  8433. sync = false;
  8434. // return in case resolved synchronously
  8435. return factory.loading
  8436. ? factory.loadingComp
  8437. : factory.resolved
  8438. }
  8439. }
  8440. /* */
  8441. function isAsyncPlaceholder (node) {
  8442. return node.isComment && node.asyncFactory
  8443. }
  8444. /* */
  8445. function getFirstComponentChild (children) {
  8446. if (Array.isArray(children)) {
  8447. for (var i = 0; i < children.length; i++) {
  8448. var c = children[i];
  8449. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  8450. return c
  8451. }
  8452. }
  8453. }
  8454. }
  8455. /* */
  8456. /* */
  8457. function initEvents (vm) {
  8458. vm._events = Object.create(null);
  8459. vm._hasHookEvent = false;
  8460. // init parent attached events
  8461. var listeners = vm.$options._parentListeners;
  8462. if (listeners) {
  8463. updateComponentListeners(vm, listeners);
  8464. }
  8465. }
  8466. var target;
  8467. function add (event, fn) {
  8468. target.$on(event, fn);
  8469. }
  8470. function remove$1 (event, fn) {
  8471. target.$off(event, fn);
  8472. }
  8473. function createOnceHandler (event, fn) {
  8474. var _target = target;
  8475. return function onceHandler () {
  8476. var res = fn.apply(null, arguments);
  8477. if (res !== null) {
  8478. _target.$off(event, onceHandler);
  8479. }
  8480. }
  8481. }
  8482. function updateComponentListeners (
  8483. vm,
  8484. listeners,
  8485. oldListeners
  8486. ) {
  8487. target = vm;
  8488. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  8489. target = undefined;
  8490. }
  8491. function eventsMixin (Vue) {
  8492. var hookRE = /^hook:/;
  8493. Vue.prototype.$on = function (event, fn) {
  8494. var vm = this;
  8495. if (Array.isArray(event)) {
  8496. for (var i = 0, l = event.length; i < l; i++) {
  8497. vm.$on(event[i], fn);
  8498. }
  8499. } else {
  8500. (vm._events[event] || (vm._events[event] = [])).push(fn);
  8501. // optimize hook:event cost by using a boolean flag marked at registration
  8502. // instead of a hash lookup
  8503. if (hookRE.test(event)) {
  8504. vm._hasHookEvent = true;
  8505. }
  8506. }
  8507. return vm
  8508. };
  8509. Vue.prototype.$once = function (event, fn) {
  8510. var vm = this;
  8511. function on () {
  8512. vm.$off(event, on);
  8513. fn.apply(vm, arguments);
  8514. }
  8515. on.fn = fn;
  8516. vm.$on(event, on);
  8517. return vm
  8518. };
  8519. Vue.prototype.$off = function (event, fn) {
  8520. var vm = this;
  8521. // all
  8522. if (!arguments.length) {
  8523. vm._events = Object.create(null);
  8524. return vm
  8525. }
  8526. // array of events
  8527. if (Array.isArray(event)) {
  8528. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  8529. vm.$off(event[i$1], fn);
  8530. }
  8531. return vm
  8532. }
  8533. // specific event
  8534. var cbs = vm._events[event];
  8535. if (!cbs) {
  8536. return vm
  8537. }
  8538. if (!fn) {
  8539. vm._events[event] = null;
  8540. return vm
  8541. }
  8542. // specific handler
  8543. var cb;
  8544. var i = cbs.length;
  8545. while (i--) {
  8546. cb = cbs[i];
  8547. if (cb === fn || cb.fn === fn) {
  8548. cbs.splice(i, 1);
  8549. break
  8550. }
  8551. }
  8552. return vm
  8553. };
  8554. Vue.prototype.$emit = function (event) {
  8555. var vm = this;
  8556. if (true) {
  8557. var lowerCaseEvent = event.toLowerCase();
  8558. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  8559. tip(
  8560. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  8561. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  8562. "Note that HTML attributes are case-insensitive and you cannot use " +
  8563. "v-on to listen to camelCase events when using in-DOM templates. " +
  8564. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  8565. );
  8566. }
  8567. }
  8568. var cbs = vm._events[event];
  8569. if (cbs) {
  8570. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  8571. var args = toArray(arguments, 1);
  8572. var info = "event handler for \"" + event + "\"";
  8573. for (var i = 0, l = cbs.length; i < l; i++) {
  8574. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  8575. }
  8576. }
  8577. return vm
  8578. };
  8579. }
  8580. /* */
  8581. var activeInstance = null;
  8582. var isUpdatingChildComponent = false;
  8583. function setActiveInstance(vm) {
  8584. var prevActiveInstance = activeInstance;
  8585. activeInstance = vm;
  8586. return function () {
  8587. activeInstance = prevActiveInstance;
  8588. }
  8589. }
  8590. function initLifecycle (vm) {
  8591. var options = vm.$options;
  8592. // locate first non-abstract parent
  8593. var parent = options.parent;
  8594. if (parent && !options.abstract) {
  8595. while (parent.$options.abstract && parent.$parent) {
  8596. parent = parent.$parent;
  8597. }
  8598. parent.$children.push(vm);
  8599. }
  8600. vm.$parent = parent;
  8601. vm.$root = parent ? parent.$root : vm;
  8602. vm.$children = [];
  8603. vm.$refs = {};
  8604. vm._watcher = null;
  8605. vm._inactive = null;
  8606. vm._directInactive = false;
  8607. vm._isMounted = false;
  8608. vm._isDestroyed = false;
  8609. vm._isBeingDestroyed = false;
  8610. }
  8611. function lifecycleMixin (Vue) {
  8612. Vue.prototype._update = function (vnode, hydrating) {
  8613. var vm = this;
  8614. var prevEl = vm.$el;
  8615. var prevVnode = vm._vnode;
  8616. var restoreActiveInstance = setActiveInstance(vm);
  8617. vm._vnode = vnode;
  8618. // Vue.prototype.__patch__ is injected in entry points
  8619. // based on the rendering backend used.
  8620. if (!prevVnode) {
  8621. // initial render
  8622. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  8623. } else {
  8624. // updates
  8625. vm.$el = vm.__patch__(prevVnode, vnode);
  8626. }
  8627. restoreActiveInstance();
  8628. // update __vue__ reference
  8629. if (prevEl) {
  8630. prevEl.__vue__ = null;
  8631. }
  8632. if (vm.$el) {
  8633. vm.$el.__vue__ = vm;
  8634. }
  8635. // if parent is an HOC, update its $el as well
  8636. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  8637. vm.$parent.$el = vm.$el;
  8638. }
  8639. // updated hook is called by the scheduler to ensure that children are
  8640. // updated in a parent's updated hook.
  8641. };
  8642. Vue.prototype.$forceUpdate = function () {
  8643. var vm = this;
  8644. if (vm._watcher) {
  8645. vm._watcher.update();
  8646. }
  8647. };
  8648. Vue.prototype.$destroy = function () {
  8649. var vm = this;
  8650. if (vm._isBeingDestroyed) {
  8651. return
  8652. }
  8653. callHook(vm, 'beforeDestroy');
  8654. vm._isBeingDestroyed = true;
  8655. // remove self from parent
  8656. var parent = vm.$parent;
  8657. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  8658. remove(parent.$children, vm);
  8659. }
  8660. // teardown watchers
  8661. if (vm._watcher) {
  8662. vm._watcher.teardown();
  8663. }
  8664. var i = vm._watchers.length;
  8665. while (i--) {
  8666. vm._watchers[i].teardown();
  8667. }
  8668. // remove reference from data ob
  8669. // frozen object may not have observer.
  8670. if (vm._data.__ob__) {
  8671. vm._data.__ob__.vmCount--;
  8672. }
  8673. // call the last hook...
  8674. vm._isDestroyed = true;
  8675. // invoke destroy hooks on current rendered tree
  8676. vm.__patch__(vm._vnode, null);
  8677. // fire destroyed hook
  8678. callHook(vm, 'destroyed');
  8679. // turn off all instance listeners.
  8680. vm.$off();
  8681. // remove __vue__ reference
  8682. if (vm.$el) {
  8683. vm.$el.__vue__ = null;
  8684. }
  8685. // release circular reference (#6759)
  8686. if (vm.$vnode) {
  8687. vm.$vnode.parent = null;
  8688. }
  8689. };
  8690. }
  8691. function updateChildComponent (
  8692. vm,
  8693. propsData,
  8694. listeners,
  8695. parentVnode,
  8696. renderChildren
  8697. ) {
  8698. if (true) {
  8699. isUpdatingChildComponent = true;
  8700. }
  8701. // determine whether component has slot children
  8702. // we need to do this before overwriting $options._renderChildren.
  8703. // check if there are dynamic scopedSlots (hand-written or compiled but with
  8704. // dynamic slot names). Static scoped slots compiled from template has the
  8705. // "$stable" marker.
  8706. var newScopedSlots = parentVnode.data.scopedSlots;
  8707. var oldScopedSlots = vm.$scopedSlots;
  8708. var hasDynamicScopedSlot = !!(
  8709. (newScopedSlots && !newScopedSlots.$stable) ||
  8710. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  8711. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  8712. );
  8713. // Any static slot children from the parent may have changed during parent's
  8714. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  8715. // update is necessary to ensure correctness.
  8716. var needsForceUpdate = !!(
  8717. renderChildren || // has new static slots
  8718. vm.$options._renderChildren || // has old static slots
  8719. hasDynamicScopedSlot
  8720. );
  8721. vm.$options._parentVnode = parentVnode;
  8722. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  8723. if (vm._vnode) { // update child tree's parent
  8724. vm._vnode.parent = parentVnode;
  8725. }
  8726. vm.$options._renderChildren = renderChildren;
  8727. // update $attrs and $listeners hash
  8728. // these are also reactive so they may trigger child update if the child
  8729. // used them during render
  8730. vm.$attrs = parentVnode.data.attrs || emptyObject;
  8731. vm.$listeners = listeners || emptyObject;
  8732. // update props
  8733. if (propsData && vm.$options.props) {
  8734. toggleObserving(false);
  8735. var props = vm._props;
  8736. var propKeys = vm.$options._propKeys || [];
  8737. for (var i = 0; i < propKeys.length; i++) {
  8738. var key = propKeys[i];
  8739. var propOptions = vm.$options.props; // wtf flow?
  8740. props[key] = validateProp(key, propOptions, propsData, vm);
  8741. }
  8742. toggleObserving(true);
  8743. // keep a copy of raw propsData
  8744. vm.$options.propsData = propsData;
  8745. }
  8746. // fixed by xxxxxx update properties(mp runtime)
  8747. vm._$updateProperties && vm._$updateProperties(vm);
  8748. // update listeners
  8749. listeners = listeners || emptyObject;
  8750. var oldListeners = vm.$options._parentListeners;
  8751. vm.$options._parentListeners = listeners;
  8752. updateComponentListeners(vm, listeners, oldListeners);
  8753. // resolve slots + force update if has children
  8754. if (needsForceUpdate) {
  8755. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  8756. vm.$forceUpdate();
  8757. }
  8758. if (true) {
  8759. isUpdatingChildComponent = false;
  8760. }
  8761. }
  8762. function isInInactiveTree (vm) {
  8763. while (vm && (vm = vm.$parent)) {
  8764. if (vm._inactive) { return true }
  8765. }
  8766. return false
  8767. }
  8768. function activateChildComponent (vm, direct) {
  8769. if (direct) {
  8770. vm._directInactive = false;
  8771. if (isInInactiveTree(vm)) {
  8772. return
  8773. }
  8774. } else if (vm._directInactive) {
  8775. return
  8776. }
  8777. if (vm._inactive || vm._inactive === null) {
  8778. vm._inactive = false;
  8779. for (var i = 0; i < vm.$children.length; i++) {
  8780. activateChildComponent(vm.$children[i]);
  8781. }
  8782. callHook(vm, 'activated');
  8783. }
  8784. }
  8785. function deactivateChildComponent (vm, direct) {
  8786. if (direct) {
  8787. vm._directInactive = true;
  8788. if (isInInactiveTree(vm)) {
  8789. return
  8790. }
  8791. }
  8792. if (!vm._inactive) {
  8793. vm._inactive = true;
  8794. for (var i = 0; i < vm.$children.length; i++) {
  8795. deactivateChildComponent(vm.$children[i]);
  8796. }
  8797. callHook(vm, 'deactivated');
  8798. }
  8799. }
  8800. function callHook (vm, hook) {
  8801. // #7573 disable dep collection when invoking lifecycle hooks
  8802. pushTarget();
  8803. var handlers = vm.$options[hook];
  8804. var info = hook + " hook";
  8805. if (handlers) {
  8806. for (var i = 0, j = handlers.length; i < j; i++) {
  8807. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  8808. }
  8809. }
  8810. if (vm._hasHookEvent) {
  8811. vm.$emit('hook:' + hook);
  8812. }
  8813. popTarget();
  8814. }
  8815. /* */
  8816. var MAX_UPDATE_COUNT = 100;
  8817. var queue = [];
  8818. var activatedChildren = [];
  8819. var has = {};
  8820. var circular = {};
  8821. var waiting = false;
  8822. var flushing = false;
  8823. var index = 0;
  8824. /**
  8825. * Reset the scheduler's state.
  8826. */
  8827. function resetSchedulerState () {
  8828. index = queue.length = activatedChildren.length = 0;
  8829. has = {};
  8830. if (true) {
  8831. circular = {};
  8832. }
  8833. waiting = flushing = false;
  8834. }
  8835. // Async edge case #6566 requires saving the timestamp when event listeners are
  8836. // attached. However, calling performance.now() has a perf overhead especially
  8837. // if the page has thousands of event listeners. Instead, we take a timestamp
  8838. // every time the scheduler flushes and use that for all event listeners
  8839. // attached during that flush.
  8840. var currentFlushTimestamp = 0;
  8841. // Async edge case fix requires storing an event listener's attach timestamp.
  8842. var getNow = Date.now;
  8843. // Determine what event timestamp the browser is using. Annoyingly, the
  8844. // timestamp can either be hi-res (relative to page load) or low-res
  8845. // (relative to UNIX epoch), so in order to compare time we have to use the
  8846. // same timestamp type when saving the flush timestamp.
  8847. // All IE versions use low-res event timestamps, and have problematic clock
  8848. // implementations (#9632)
  8849. if (inBrowser && !isIE) {
  8850. var performance = window.performance;
  8851. if (
  8852. performance &&
  8853. typeof performance.now === 'function' &&
  8854. getNow() > document.createEvent('Event').timeStamp
  8855. ) {
  8856. // if the event timestamp, although evaluated AFTER the Date.now(), is
  8857. // smaller than it, it means the event is using a hi-res timestamp,
  8858. // and we need to use the hi-res version for event listener timestamps as
  8859. // well.
  8860. getNow = function () { return performance.now(); };
  8861. }
  8862. }
  8863. /**
  8864. * Flush both queues and run the watchers.
  8865. */
  8866. function flushSchedulerQueue () {
  8867. currentFlushTimestamp = getNow();
  8868. flushing = true;
  8869. var watcher, id;
  8870. // Sort queue before flush.
  8871. // This ensures that:
  8872. // 1. Components are updated from parent to child. (because parent is always
  8873. // created before the child)
  8874. // 2. A component's user watchers are run before its render watcher (because
  8875. // user watchers are created before the render watcher)
  8876. // 3. If a component is destroyed during a parent component's watcher run,
  8877. // its watchers can be skipped.
  8878. queue.sort(function (a, b) { return a.id - b.id; });
  8879. // do not cache length because more watchers might be pushed
  8880. // as we run existing watchers
  8881. for (index = 0; index < queue.length; index++) {
  8882. watcher = queue[index];
  8883. if (watcher.before) {
  8884. watcher.before();
  8885. }
  8886. id = watcher.id;
  8887. has[id] = null;
  8888. watcher.run();
  8889. // in dev build, check and stop circular updates.
  8890. if ( true && has[id] != null) {
  8891. circular[id] = (circular[id] || 0) + 1;
  8892. if (circular[id] > MAX_UPDATE_COUNT) {
  8893. warn(
  8894. 'You may have an infinite update loop ' + (
  8895. watcher.user
  8896. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  8897. : "in a component render function."
  8898. ),
  8899. watcher.vm
  8900. );
  8901. break
  8902. }
  8903. }
  8904. }
  8905. // keep copies of post queues before resetting state
  8906. var activatedQueue = activatedChildren.slice();
  8907. var updatedQueue = queue.slice();
  8908. resetSchedulerState();
  8909. // call component updated and activated hooks
  8910. callActivatedHooks(activatedQueue);
  8911. callUpdatedHooks(updatedQueue);
  8912. // devtool hook
  8913. /* istanbul ignore if */
  8914. if (devtools && config.devtools) {
  8915. devtools.emit('flush');
  8916. }
  8917. }
  8918. function callUpdatedHooks (queue) {
  8919. var i = queue.length;
  8920. while (i--) {
  8921. var watcher = queue[i];
  8922. var vm = watcher.vm;
  8923. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  8924. callHook(vm, 'updated');
  8925. }
  8926. }
  8927. }
  8928. /**
  8929. * Queue a kept-alive component that was activated during patch.
  8930. * The queue will be processed after the entire tree has been patched.
  8931. */
  8932. function queueActivatedComponent (vm) {
  8933. // setting _inactive to false here so that a render function can
  8934. // rely on checking whether it's in an inactive tree (e.g. router-view)
  8935. vm._inactive = false;
  8936. activatedChildren.push(vm);
  8937. }
  8938. function callActivatedHooks (queue) {
  8939. for (var i = 0; i < queue.length; i++) {
  8940. queue[i]._inactive = true;
  8941. activateChildComponent(queue[i], true /* true */);
  8942. }
  8943. }
  8944. /**
  8945. * Push a watcher into the watcher queue.
  8946. * Jobs with duplicate IDs will be skipped unless it's
  8947. * pushed when the queue is being flushed.
  8948. */
  8949. function queueWatcher (watcher) {
  8950. var id = watcher.id;
  8951. if (has[id] == null) {
  8952. has[id] = true;
  8953. if (!flushing) {
  8954. queue.push(watcher);
  8955. } else {
  8956. // if already flushing, splice the watcher based on its id
  8957. // if already past its id, it will be run next immediately.
  8958. var i = queue.length - 1;
  8959. while (i > index && queue[i].id > watcher.id) {
  8960. i--;
  8961. }
  8962. queue.splice(i + 1, 0, watcher);
  8963. }
  8964. // queue the flush
  8965. if (!waiting) {
  8966. waiting = true;
  8967. if ( true && !config.async) {
  8968. flushSchedulerQueue();
  8969. return
  8970. }
  8971. nextTick(flushSchedulerQueue);
  8972. }
  8973. }
  8974. }
  8975. /* */
  8976. var uid$2 = 0;
  8977. /**
  8978. * A watcher parses an expression, collects dependencies,
  8979. * and fires callback when the expression value changes.
  8980. * This is used for both the $watch() api and directives.
  8981. */
  8982. var Watcher = function Watcher (
  8983. vm,
  8984. expOrFn,
  8985. cb,
  8986. options,
  8987. isRenderWatcher
  8988. ) {
  8989. this.vm = vm;
  8990. if (isRenderWatcher) {
  8991. vm._watcher = this;
  8992. }
  8993. vm._watchers.push(this);
  8994. // options
  8995. if (options) {
  8996. this.deep = !!options.deep;
  8997. this.user = !!options.user;
  8998. this.lazy = !!options.lazy;
  8999. this.sync = !!options.sync;
  9000. this.before = options.before;
  9001. } else {
  9002. this.deep = this.user = this.lazy = this.sync = false;
  9003. }
  9004. this.cb = cb;
  9005. this.id = ++uid$2; // uid for batching
  9006. this.active = true;
  9007. this.dirty = this.lazy; // for lazy watchers
  9008. this.deps = [];
  9009. this.newDeps = [];
  9010. this.depIds = new _Set();
  9011. this.newDepIds = new _Set();
  9012. this.expression = true
  9013. ? expOrFn.toString()
  9014. : undefined;
  9015. // parse expression for getter
  9016. if (typeof expOrFn === 'function') {
  9017. this.getter = expOrFn;
  9018. } else {
  9019. this.getter = parsePath(expOrFn);
  9020. if (!this.getter) {
  9021. this.getter = noop;
  9022. true && warn(
  9023. "Failed watching path: \"" + expOrFn + "\" " +
  9024. 'Watcher only accepts simple dot-delimited paths. ' +
  9025. 'For full control, use a function instead.',
  9026. vm
  9027. );
  9028. }
  9029. }
  9030. this.value = this.lazy
  9031. ? undefined
  9032. : this.get();
  9033. };
  9034. /**
  9035. * Evaluate the getter, and re-collect dependencies.
  9036. */
  9037. Watcher.prototype.get = function get () {
  9038. pushTarget(this);
  9039. var value;
  9040. var vm = this.vm;
  9041. try {
  9042. value = this.getter.call(vm, vm);
  9043. } catch (e) {
  9044. if (this.user) {
  9045. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  9046. } else {
  9047. throw e
  9048. }
  9049. } finally {
  9050. // "touch" every property so they are all tracked as
  9051. // dependencies for deep watching
  9052. if (this.deep) {
  9053. traverse(value);
  9054. }
  9055. popTarget();
  9056. this.cleanupDeps();
  9057. }
  9058. return value
  9059. };
  9060. /**
  9061. * Add a dependency to this directive.
  9062. */
  9063. Watcher.prototype.addDep = function addDep (dep) {
  9064. var id = dep.id;
  9065. if (!this.newDepIds.has(id)) {
  9066. this.newDepIds.add(id);
  9067. this.newDeps.push(dep);
  9068. if (!this.depIds.has(id)) {
  9069. dep.addSub(this);
  9070. }
  9071. }
  9072. };
  9073. /**
  9074. * Clean up for dependency collection.
  9075. */
  9076. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  9077. var i = this.deps.length;
  9078. while (i--) {
  9079. var dep = this.deps[i];
  9080. if (!this.newDepIds.has(dep.id)) {
  9081. dep.removeSub(this);
  9082. }
  9083. }
  9084. var tmp = this.depIds;
  9085. this.depIds = this.newDepIds;
  9086. this.newDepIds = tmp;
  9087. this.newDepIds.clear();
  9088. tmp = this.deps;
  9089. this.deps = this.newDeps;
  9090. this.newDeps = tmp;
  9091. this.newDeps.length = 0;
  9092. };
  9093. /**
  9094. * Subscriber interface.
  9095. * Will be called when a dependency changes.
  9096. */
  9097. Watcher.prototype.update = function update () {
  9098. /* istanbul ignore else */
  9099. if (this.lazy) {
  9100. this.dirty = true;
  9101. } else if (this.sync) {
  9102. this.run();
  9103. } else {
  9104. queueWatcher(this);
  9105. }
  9106. };
  9107. /**
  9108. * Scheduler job interface.
  9109. * Will be called by the scheduler.
  9110. */
  9111. Watcher.prototype.run = function run () {
  9112. if (this.active) {
  9113. var value = this.get();
  9114. if (
  9115. value !== this.value ||
  9116. // Deep watchers and watchers on Object/Arrays should fire even
  9117. // when the value is the same, because the value may
  9118. // have mutated.
  9119. isObject(value) ||
  9120. this.deep
  9121. ) {
  9122. // set new value
  9123. var oldValue = this.value;
  9124. this.value = value;
  9125. if (this.user) {
  9126. try {
  9127. this.cb.call(this.vm, value, oldValue);
  9128. } catch (e) {
  9129. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  9130. }
  9131. } else {
  9132. this.cb.call(this.vm, value, oldValue);
  9133. }
  9134. }
  9135. }
  9136. };
  9137. /**
  9138. * Evaluate the value of the watcher.
  9139. * This only gets called for lazy watchers.
  9140. */
  9141. Watcher.prototype.evaluate = function evaluate () {
  9142. this.value = this.get();
  9143. this.dirty = false;
  9144. };
  9145. /**
  9146. * Depend on all deps collected by this watcher.
  9147. */
  9148. Watcher.prototype.depend = function depend () {
  9149. var i = this.deps.length;
  9150. while (i--) {
  9151. this.deps[i].depend();
  9152. }
  9153. };
  9154. /**
  9155. * Remove self from all dependencies' subscriber list.
  9156. */
  9157. Watcher.prototype.teardown = function teardown () {
  9158. if (this.active) {
  9159. // remove self from vm's watcher list
  9160. // this is a somewhat expensive operation so we skip it
  9161. // if the vm is being destroyed.
  9162. if (!this.vm._isBeingDestroyed) {
  9163. remove(this.vm._watchers, this);
  9164. }
  9165. var i = this.deps.length;
  9166. while (i--) {
  9167. this.deps[i].removeSub(this);
  9168. }
  9169. this.active = false;
  9170. }
  9171. };
  9172. /* */
  9173. var sharedPropertyDefinition = {
  9174. enumerable: true,
  9175. configurable: true,
  9176. get: noop,
  9177. set: noop
  9178. };
  9179. function proxy (target, sourceKey, key) {
  9180. sharedPropertyDefinition.get = function proxyGetter () {
  9181. return this[sourceKey][key]
  9182. };
  9183. sharedPropertyDefinition.set = function proxySetter (val) {
  9184. this[sourceKey][key] = val;
  9185. };
  9186. Object.defineProperty(target, key, sharedPropertyDefinition);
  9187. }
  9188. function initState (vm) {
  9189. vm._watchers = [];
  9190. var opts = vm.$options;
  9191. if (opts.props) { initProps(vm, opts.props); }
  9192. if (opts.methods) { initMethods(vm, opts.methods); }
  9193. if (opts.data) {
  9194. initData(vm);
  9195. } else {
  9196. observe(vm._data = {}, true /* asRootData */);
  9197. }
  9198. if (opts.computed) { initComputed(vm, opts.computed); }
  9199. if (opts.watch && opts.watch !== nativeWatch) {
  9200. initWatch(vm, opts.watch);
  9201. }
  9202. }
  9203. function initProps (vm, propsOptions) {
  9204. var propsData = vm.$options.propsData || {};
  9205. var props = vm._props = {};
  9206. // cache prop keys so that future props updates can iterate using Array
  9207. // instead of dynamic object key enumeration.
  9208. var keys = vm.$options._propKeys = [];
  9209. var isRoot = !vm.$parent;
  9210. // root instance props should be converted
  9211. if (!isRoot) {
  9212. toggleObserving(false);
  9213. }
  9214. var loop = function ( key ) {
  9215. keys.push(key);
  9216. var value = validateProp(key, propsOptions, propsData, vm);
  9217. /* istanbul ignore else */
  9218. if (true) {
  9219. var hyphenatedKey = hyphenate(key);
  9220. if (isReservedAttribute(hyphenatedKey) ||
  9221. config.isReservedAttr(hyphenatedKey)) {
  9222. warn(
  9223. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  9224. vm
  9225. );
  9226. }
  9227. defineReactive$$1(props, key, value, function () {
  9228. if (!isRoot && !isUpdatingChildComponent) {
  9229. {
  9230. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  9231. return
  9232. }
  9233. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  9234. if(
  9235. key === 'value' &&
  9236. Array.isArray(vm.$options.behaviors) &&
  9237. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  9238. ){
  9239. return
  9240. }
  9241. if(vm._getFormData){
  9242. return
  9243. }
  9244. var $parent = vm.$parent;
  9245. while($parent){
  9246. if($parent.__next_tick_pending){
  9247. return
  9248. }
  9249. $parent = $parent.$parent;
  9250. }
  9251. }
  9252. warn(
  9253. "Avoid mutating a prop directly since the value will be " +
  9254. "overwritten whenever the parent component re-renders. " +
  9255. "Instead, use a data or computed property based on the prop's " +
  9256. "value. Prop being mutated: \"" + key + "\"",
  9257. vm
  9258. );
  9259. }
  9260. });
  9261. } else {}
  9262. // static props are already proxied on the component's prototype
  9263. // during Vue.extend(). We only need to proxy props defined at
  9264. // instantiation here.
  9265. if (!(key in vm)) {
  9266. proxy(vm, "_props", key);
  9267. }
  9268. };
  9269. for (var key in propsOptions) loop( key );
  9270. toggleObserving(true);
  9271. }
  9272. function initData (vm) {
  9273. var data = vm.$options.data;
  9274. data = vm._data = typeof data === 'function'
  9275. ? getData(data, vm)
  9276. : data || {};
  9277. if (!isPlainObject(data)) {
  9278. data = {};
  9279. true && warn(
  9280. 'data functions should return an object:\n' +
  9281. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  9282. vm
  9283. );
  9284. }
  9285. // proxy data on instance
  9286. var keys = Object.keys(data);
  9287. var props = vm.$options.props;
  9288. var methods = vm.$options.methods;
  9289. var i = keys.length;
  9290. while (i--) {
  9291. var key = keys[i];
  9292. if (true) {
  9293. if (methods && hasOwn(methods, key)) {
  9294. warn(
  9295. ("Method \"" + key + "\" has already been defined as a data property."),
  9296. vm
  9297. );
  9298. }
  9299. }
  9300. if (props && hasOwn(props, key)) {
  9301. true && warn(
  9302. "The data property \"" + key + "\" is already declared as a prop. " +
  9303. "Use prop default value instead.",
  9304. vm
  9305. );
  9306. } else if (!isReserved(key)) {
  9307. proxy(vm, "_data", key);
  9308. }
  9309. }
  9310. // observe data
  9311. observe(data, true /* asRootData */);
  9312. }
  9313. function getData (data, vm) {
  9314. // #7573 disable dep collection when invoking data getters
  9315. pushTarget();
  9316. try {
  9317. return data.call(vm, vm)
  9318. } catch (e) {
  9319. handleError(e, vm, "data()");
  9320. return {}
  9321. } finally {
  9322. popTarget();
  9323. }
  9324. }
  9325. var computedWatcherOptions = { lazy: true };
  9326. function initComputed (vm, computed) {
  9327. // $flow-disable-line
  9328. var watchers = vm._computedWatchers = Object.create(null);
  9329. // computed properties are just getters during SSR
  9330. var isSSR = isServerRendering();
  9331. for (var key in computed) {
  9332. var userDef = computed[key];
  9333. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  9334. if ( true && getter == null) {
  9335. warn(
  9336. ("Getter is missing for computed property \"" + key + "\"."),
  9337. vm
  9338. );
  9339. }
  9340. if (!isSSR) {
  9341. // create internal watcher for the computed property.
  9342. watchers[key] = new Watcher(
  9343. vm,
  9344. getter || noop,
  9345. noop,
  9346. computedWatcherOptions
  9347. );
  9348. }
  9349. // component-defined computed properties are already defined on the
  9350. // component prototype. We only need to define computed properties defined
  9351. // at instantiation here.
  9352. if (!(key in vm)) {
  9353. defineComputed(vm, key, userDef);
  9354. } else if (true) {
  9355. if (key in vm.$data) {
  9356. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  9357. } else if (vm.$options.props && key in vm.$options.props) {
  9358. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  9359. }
  9360. }
  9361. }
  9362. }
  9363. function defineComputed (
  9364. target,
  9365. key,
  9366. userDef
  9367. ) {
  9368. var shouldCache = !isServerRendering();
  9369. if (typeof userDef === 'function') {
  9370. sharedPropertyDefinition.get = shouldCache
  9371. ? createComputedGetter(key)
  9372. : createGetterInvoker(userDef);
  9373. sharedPropertyDefinition.set = noop;
  9374. } else {
  9375. sharedPropertyDefinition.get = userDef.get
  9376. ? shouldCache && userDef.cache !== false
  9377. ? createComputedGetter(key)
  9378. : createGetterInvoker(userDef.get)
  9379. : noop;
  9380. sharedPropertyDefinition.set = userDef.set || noop;
  9381. }
  9382. if ( true &&
  9383. sharedPropertyDefinition.set === noop) {
  9384. sharedPropertyDefinition.set = function () {
  9385. warn(
  9386. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  9387. this
  9388. );
  9389. };
  9390. }
  9391. Object.defineProperty(target, key, sharedPropertyDefinition);
  9392. }
  9393. function createComputedGetter (key) {
  9394. return function computedGetter () {
  9395. var watcher = this._computedWatchers && this._computedWatchers[key];
  9396. if (watcher) {
  9397. if (watcher.dirty) {
  9398. watcher.evaluate();
  9399. }
  9400. if (Dep.SharedObject.target) {// fixed by xxxxxx
  9401. watcher.depend();
  9402. }
  9403. return watcher.value
  9404. }
  9405. }
  9406. }
  9407. function createGetterInvoker(fn) {
  9408. return function computedGetter () {
  9409. return fn.call(this, this)
  9410. }
  9411. }
  9412. function initMethods (vm, methods) {
  9413. var props = vm.$options.props;
  9414. for (var key in methods) {
  9415. if (true) {
  9416. if (typeof methods[key] !== 'function') {
  9417. warn(
  9418. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  9419. "Did you reference the function correctly?",
  9420. vm
  9421. );
  9422. }
  9423. if (props && hasOwn(props, key)) {
  9424. warn(
  9425. ("Method \"" + key + "\" has already been defined as a prop."),
  9426. vm
  9427. );
  9428. }
  9429. if ((key in vm) && isReserved(key)) {
  9430. warn(
  9431. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  9432. "Avoid defining component methods that start with _ or $."
  9433. );
  9434. }
  9435. }
  9436. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  9437. }
  9438. }
  9439. function initWatch (vm, watch) {
  9440. for (var key in watch) {
  9441. var handler = watch[key];
  9442. if (Array.isArray(handler)) {
  9443. for (var i = 0; i < handler.length; i++) {
  9444. createWatcher(vm, key, handler[i]);
  9445. }
  9446. } else {
  9447. createWatcher(vm, key, handler);
  9448. }
  9449. }
  9450. }
  9451. function createWatcher (
  9452. vm,
  9453. expOrFn,
  9454. handler,
  9455. options
  9456. ) {
  9457. if (isPlainObject(handler)) {
  9458. options = handler;
  9459. handler = handler.handler;
  9460. }
  9461. if (typeof handler === 'string') {
  9462. handler = vm[handler];
  9463. }
  9464. return vm.$watch(expOrFn, handler, options)
  9465. }
  9466. function stateMixin (Vue) {
  9467. // flow somehow has problems with directly declared definition object
  9468. // when using Object.defineProperty, so we have to procedurally build up
  9469. // the object here.
  9470. var dataDef = {};
  9471. dataDef.get = function () { return this._data };
  9472. var propsDef = {};
  9473. propsDef.get = function () { return this._props };
  9474. if (true) {
  9475. dataDef.set = function () {
  9476. warn(
  9477. 'Avoid replacing instance root $data. ' +
  9478. 'Use nested data properties instead.',
  9479. this
  9480. );
  9481. };
  9482. propsDef.set = function () {
  9483. warn("$props is readonly.", this);
  9484. };
  9485. }
  9486. Object.defineProperty(Vue.prototype, '$data', dataDef);
  9487. Object.defineProperty(Vue.prototype, '$props', propsDef);
  9488. Vue.prototype.$set = set;
  9489. Vue.prototype.$delete = del;
  9490. Vue.prototype.$watch = function (
  9491. expOrFn,
  9492. cb,
  9493. options
  9494. ) {
  9495. var vm = this;
  9496. if (isPlainObject(cb)) {
  9497. return createWatcher(vm, expOrFn, cb, options)
  9498. }
  9499. options = options || {};
  9500. options.user = true;
  9501. var watcher = new Watcher(vm, expOrFn, cb, options);
  9502. if (options.immediate) {
  9503. try {
  9504. cb.call(vm, watcher.value);
  9505. } catch (error) {
  9506. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  9507. }
  9508. }
  9509. return function unwatchFn () {
  9510. watcher.teardown();
  9511. }
  9512. };
  9513. }
  9514. /* */
  9515. var uid$3 = 0;
  9516. function initMixin (Vue) {
  9517. Vue.prototype._init = function (options) {
  9518. var vm = this;
  9519. // a uid
  9520. vm._uid = uid$3++;
  9521. var startTag, endTag;
  9522. /* istanbul ignore if */
  9523. if ( true && config.performance && mark) {
  9524. startTag = "vue-perf-start:" + (vm._uid);
  9525. endTag = "vue-perf-end:" + (vm._uid);
  9526. mark(startTag);
  9527. }
  9528. // a flag to avoid this being observed
  9529. vm._isVue = true;
  9530. // merge options
  9531. if (options && options._isComponent) {
  9532. // optimize internal component instantiation
  9533. // since dynamic options merging is pretty slow, and none of the
  9534. // internal component options needs special treatment.
  9535. initInternalComponent(vm, options);
  9536. } else {
  9537. vm.$options = mergeOptions(
  9538. resolveConstructorOptions(vm.constructor),
  9539. options || {},
  9540. vm
  9541. );
  9542. }
  9543. /* istanbul ignore else */
  9544. if (true) {
  9545. initProxy(vm);
  9546. } else {}
  9547. // expose real self
  9548. vm._self = vm;
  9549. initLifecycle(vm);
  9550. initEvents(vm);
  9551. initRender(vm);
  9552. callHook(vm, 'beforeCreate');
  9553. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  9554. initState(vm);
  9555. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  9556. !vm._$fallback && callHook(vm, 'created');
  9557. /* istanbul ignore if */
  9558. if ( true && config.performance && mark) {
  9559. vm._name = formatComponentName(vm, false);
  9560. mark(endTag);
  9561. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  9562. }
  9563. if (vm.$options.el) {
  9564. vm.$mount(vm.$options.el);
  9565. }
  9566. };
  9567. }
  9568. function initInternalComponent (vm, options) {
  9569. var opts = vm.$options = Object.create(vm.constructor.options);
  9570. // doing this because it's faster than dynamic enumeration.
  9571. var parentVnode = options._parentVnode;
  9572. opts.parent = options.parent;
  9573. opts._parentVnode = parentVnode;
  9574. var vnodeComponentOptions = parentVnode.componentOptions;
  9575. opts.propsData = vnodeComponentOptions.propsData;
  9576. opts._parentListeners = vnodeComponentOptions.listeners;
  9577. opts._renderChildren = vnodeComponentOptions.children;
  9578. opts._componentTag = vnodeComponentOptions.tag;
  9579. if (options.render) {
  9580. opts.render = options.render;
  9581. opts.staticRenderFns = options.staticRenderFns;
  9582. }
  9583. }
  9584. function resolveConstructorOptions (Ctor) {
  9585. var options = Ctor.options;
  9586. if (Ctor.super) {
  9587. var superOptions = resolveConstructorOptions(Ctor.super);
  9588. var cachedSuperOptions = Ctor.superOptions;
  9589. if (superOptions !== cachedSuperOptions) {
  9590. // super option changed,
  9591. // need to resolve new options.
  9592. Ctor.superOptions = superOptions;
  9593. // check if there are any late-modified/attached options (#4976)
  9594. var modifiedOptions = resolveModifiedOptions(Ctor);
  9595. // update base extend options
  9596. if (modifiedOptions) {
  9597. extend(Ctor.extendOptions, modifiedOptions);
  9598. }
  9599. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  9600. if (options.name) {
  9601. options.components[options.name] = Ctor;
  9602. }
  9603. }
  9604. }
  9605. return options
  9606. }
  9607. function resolveModifiedOptions (Ctor) {
  9608. var modified;
  9609. var latest = Ctor.options;
  9610. var sealed = Ctor.sealedOptions;
  9611. for (var key in latest) {
  9612. if (latest[key] !== sealed[key]) {
  9613. if (!modified) { modified = {}; }
  9614. modified[key] = latest[key];
  9615. }
  9616. }
  9617. return modified
  9618. }
  9619. function Vue (options) {
  9620. if ( true &&
  9621. !(this instanceof Vue)
  9622. ) {
  9623. warn('Vue is a constructor and should be called with the `new` keyword');
  9624. }
  9625. this._init(options);
  9626. }
  9627. initMixin(Vue);
  9628. stateMixin(Vue);
  9629. eventsMixin(Vue);
  9630. lifecycleMixin(Vue);
  9631. renderMixin(Vue);
  9632. /* */
  9633. function initUse (Vue) {
  9634. Vue.use = function (plugin) {
  9635. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  9636. if (installedPlugins.indexOf(plugin) > -1) {
  9637. return this
  9638. }
  9639. // additional parameters
  9640. var args = toArray(arguments, 1);
  9641. args.unshift(this);
  9642. if (typeof plugin.install === 'function') {
  9643. plugin.install.apply(plugin, args);
  9644. } else if (typeof plugin === 'function') {
  9645. plugin.apply(null, args);
  9646. }
  9647. installedPlugins.push(plugin);
  9648. return this
  9649. };
  9650. }
  9651. /* */
  9652. function initMixin$1 (Vue) {
  9653. Vue.mixin = function (mixin) {
  9654. this.options = mergeOptions(this.options, mixin);
  9655. return this
  9656. };
  9657. }
  9658. /* */
  9659. function initExtend (Vue) {
  9660. /**
  9661. * Each instance constructor, including Vue, has a unique
  9662. * cid. This enables us to create wrapped "child
  9663. * constructors" for prototypal inheritance and cache them.
  9664. */
  9665. Vue.cid = 0;
  9666. var cid = 1;
  9667. /**
  9668. * Class inheritance
  9669. */
  9670. Vue.extend = function (extendOptions) {
  9671. extendOptions = extendOptions || {};
  9672. var Super = this;
  9673. var SuperId = Super.cid;
  9674. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  9675. if (cachedCtors[SuperId]) {
  9676. return cachedCtors[SuperId]
  9677. }
  9678. var name = extendOptions.name || Super.options.name;
  9679. if ( true && name) {
  9680. validateComponentName(name);
  9681. }
  9682. var Sub = function VueComponent (options) {
  9683. this._init(options);
  9684. };
  9685. Sub.prototype = Object.create(Super.prototype);
  9686. Sub.prototype.constructor = Sub;
  9687. Sub.cid = cid++;
  9688. Sub.options = mergeOptions(
  9689. Super.options,
  9690. extendOptions
  9691. );
  9692. Sub['super'] = Super;
  9693. // For props and computed properties, we define the proxy getters on
  9694. // the Vue instances at extension time, on the extended prototype. This
  9695. // avoids Object.defineProperty calls for each instance created.
  9696. if (Sub.options.props) {
  9697. initProps$1(Sub);
  9698. }
  9699. if (Sub.options.computed) {
  9700. initComputed$1(Sub);
  9701. }
  9702. // allow further extension/mixin/plugin usage
  9703. Sub.extend = Super.extend;
  9704. Sub.mixin = Super.mixin;
  9705. Sub.use = Super.use;
  9706. // create asset registers, so extended classes
  9707. // can have their private assets too.
  9708. ASSET_TYPES.forEach(function (type) {
  9709. Sub[type] = Super[type];
  9710. });
  9711. // enable recursive self-lookup
  9712. if (name) {
  9713. Sub.options.components[name] = Sub;
  9714. }
  9715. // keep a reference to the super options at extension time.
  9716. // later at instantiation we can check if Super's options have
  9717. // been updated.
  9718. Sub.superOptions = Super.options;
  9719. Sub.extendOptions = extendOptions;
  9720. Sub.sealedOptions = extend({}, Sub.options);
  9721. // cache constructor
  9722. cachedCtors[SuperId] = Sub;
  9723. return Sub
  9724. };
  9725. }
  9726. function initProps$1 (Comp) {
  9727. var props = Comp.options.props;
  9728. for (var key in props) {
  9729. proxy(Comp.prototype, "_props", key);
  9730. }
  9731. }
  9732. function initComputed$1 (Comp) {
  9733. var computed = Comp.options.computed;
  9734. for (var key in computed) {
  9735. defineComputed(Comp.prototype, key, computed[key]);
  9736. }
  9737. }
  9738. /* */
  9739. function initAssetRegisters (Vue) {
  9740. /**
  9741. * Create asset registration methods.
  9742. */
  9743. ASSET_TYPES.forEach(function (type) {
  9744. Vue[type] = function (
  9745. id,
  9746. definition
  9747. ) {
  9748. if (!definition) {
  9749. return this.options[type + 's'][id]
  9750. } else {
  9751. /* istanbul ignore if */
  9752. if ( true && type === 'component') {
  9753. validateComponentName(id);
  9754. }
  9755. if (type === 'component' && isPlainObject(definition)) {
  9756. definition.name = definition.name || id;
  9757. definition = this.options._base.extend(definition);
  9758. }
  9759. if (type === 'directive' && typeof definition === 'function') {
  9760. definition = { bind: definition, update: definition };
  9761. }
  9762. this.options[type + 's'][id] = definition;
  9763. return definition
  9764. }
  9765. };
  9766. });
  9767. }
  9768. /* */
  9769. function getComponentName (opts) {
  9770. return opts && (opts.Ctor.options.name || opts.tag)
  9771. }
  9772. function matches (pattern, name) {
  9773. if (Array.isArray(pattern)) {
  9774. return pattern.indexOf(name) > -1
  9775. } else if (typeof pattern === 'string') {
  9776. return pattern.split(',').indexOf(name) > -1
  9777. } else if (isRegExp(pattern)) {
  9778. return pattern.test(name)
  9779. }
  9780. /* istanbul ignore next */
  9781. return false
  9782. }
  9783. function pruneCache (keepAliveInstance, filter) {
  9784. var cache = keepAliveInstance.cache;
  9785. var keys = keepAliveInstance.keys;
  9786. var _vnode = keepAliveInstance._vnode;
  9787. for (var key in cache) {
  9788. var cachedNode = cache[key];
  9789. if (cachedNode) {
  9790. var name = getComponentName(cachedNode.componentOptions);
  9791. if (name && !filter(name)) {
  9792. pruneCacheEntry(cache, key, keys, _vnode);
  9793. }
  9794. }
  9795. }
  9796. }
  9797. function pruneCacheEntry (
  9798. cache,
  9799. key,
  9800. keys,
  9801. current
  9802. ) {
  9803. var cached$$1 = cache[key];
  9804. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  9805. cached$$1.componentInstance.$destroy();
  9806. }
  9807. cache[key] = null;
  9808. remove(keys, key);
  9809. }
  9810. var patternTypes = [String, RegExp, Array];
  9811. var KeepAlive = {
  9812. name: 'keep-alive',
  9813. abstract: true,
  9814. props: {
  9815. include: patternTypes,
  9816. exclude: patternTypes,
  9817. max: [String, Number]
  9818. },
  9819. created: function created () {
  9820. this.cache = Object.create(null);
  9821. this.keys = [];
  9822. },
  9823. destroyed: function destroyed () {
  9824. for (var key in this.cache) {
  9825. pruneCacheEntry(this.cache, key, this.keys);
  9826. }
  9827. },
  9828. mounted: function mounted () {
  9829. var this$1 = this;
  9830. this.$watch('include', function (val) {
  9831. pruneCache(this$1, function (name) { return matches(val, name); });
  9832. });
  9833. this.$watch('exclude', function (val) {
  9834. pruneCache(this$1, function (name) { return !matches(val, name); });
  9835. });
  9836. },
  9837. render: function render () {
  9838. var slot = this.$slots.default;
  9839. var vnode = getFirstComponentChild(slot);
  9840. var componentOptions = vnode && vnode.componentOptions;
  9841. if (componentOptions) {
  9842. // check pattern
  9843. var name = getComponentName(componentOptions);
  9844. var ref = this;
  9845. var include = ref.include;
  9846. var exclude = ref.exclude;
  9847. if (
  9848. // not included
  9849. (include && (!name || !matches(include, name))) ||
  9850. // excluded
  9851. (exclude && name && matches(exclude, name))
  9852. ) {
  9853. return vnode
  9854. }
  9855. var ref$1 = this;
  9856. var cache = ref$1.cache;
  9857. var keys = ref$1.keys;
  9858. var key = vnode.key == null
  9859. // same constructor may get registered as different local components
  9860. // so cid alone is not enough (#3269)
  9861. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  9862. : vnode.key;
  9863. if (cache[key]) {
  9864. vnode.componentInstance = cache[key].componentInstance;
  9865. // make current key freshest
  9866. remove(keys, key);
  9867. keys.push(key);
  9868. } else {
  9869. cache[key] = vnode;
  9870. keys.push(key);
  9871. // prune oldest entry
  9872. if (this.max && keys.length > parseInt(this.max)) {
  9873. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  9874. }
  9875. }
  9876. vnode.data.keepAlive = true;
  9877. }
  9878. return vnode || (slot && slot[0])
  9879. }
  9880. };
  9881. var builtInComponents = {
  9882. KeepAlive: KeepAlive
  9883. };
  9884. /* */
  9885. function initGlobalAPI (Vue) {
  9886. // config
  9887. var configDef = {};
  9888. configDef.get = function () { return config; };
  9889. if (true) {
  9890. configDef.set = function () {
  9891. warn(
  9892. 'Do not replace the Vue.config object, set individual fields instead.'
  9893. );
  9894. };
  9895. }
  9896. Object.defineProperty(Vue, 'config', configDef);
  9897. // exposed util methods.
  9898. // NOTE: these are not considered part of the public API - avoid relying on
  9899. // them unless you are aware of the risk.
  9900. Vue.util = {
  9901. warn: warn,
  9902. extend: extend,
  9903. mergeOptions: mergeOptions,
  9904. defineReactive: defineReactive$$1
  9905. };
  9906. Vue.set = set;
  9907. Vue.delete = del;
  9908. Vue.nextTick = nextTick;
  9909. // 2.6 explicit observable API
  9910. Vue.observable = function (obj) {
  9911. observe(obj);
  9912. return obj
  9913. };
  9914. Vue.options = Object.create(null);
  9915. ASSET_TYPES.forEach(function (type) {
  9916. Vue.options[type + 's'] = Object.create(null);
  9917. });
  9918. // this is used to identify the "base" constructor to extend all plain-object
  9919. // components with in Weex's multi-instance scenarios.
  9920. Vue.options._base = Vue;
  9921. extend(Vue.options.components, builtInComponents);
  9922. initUse(Vue);
  9923. initMixin$1(Vue);
  9924. initExtend(Vue);
  9925. initAssetRegisters(Vue);
  9926. }
  9927. initGlobalAPI(Vue);
  9928. Object.defineProperty(Vue.prototype, '$isServer', {
  9929. get: isServerRendering
  9930. });
  9931. Object.defineProperty(Vue.prototype, '$ssrContext', {
  9932. get: function get () {
  9933. /* istanbul ignore next */
  9934. return this.$vnode && this.$vnode.ssrContext
  9935. }
  9936. });
  9937. // expose FunctionalRenderContext for ssr runtime helper installation
  9938. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  9939. value: FunctionalRenderContext
  9940. });
  9941. Vue.version = '2.6.11';
  9942. /**
  9943. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  9944. */
  9945. var ARRAYTYPE = '[object Array]';
  9946. var OBJECTTYPE = '[object Object]';
  9947. // const FUNCTIONTYPE = '[object Function]'
  9948. function diff(current, pre) {
  9949. var result = {};
  9950. syncKeys(current, pre);
  9951. _diff(current, pre, '', result);
  9952. return result
  9953. }
  9954. function syncKeys(current, pre) {
  9955. if (current === pre) { return }
  9956. var rootCurrentType = type(current);
  9957. var rootPreType = type(pre);
  9958. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  9959. if(Object.keys(current).length >= Object.keys(pre).length){
  9960. for (var key in pre) {
  9961. var currentValue = current[key];
  9962. if (currentValue === undefined) {
  9963. current[key] = null;
  9964. } else {
  9965. syncKeys(currentValue, pre[key]);
  9966. }
  9967. }
  9968. }
  9969. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  9970. if (current.length >= pre.length) {
  9971. pre.forEach(function (item, index) {
  9972. syncKeys(current[index], item);
  9973. });
  9974. }
  9975. }
  9976. }
  9977. function _diff(current, pre, path, result) {
  9978. if (current === pre) { return }
  9979. var rootCurrentType = type(current);
  9980. var rootPreType = type(pre);
  9981. if (rootCurrentType == OBJECTTYPE) {
  9982. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  9983. setResult(result, path, current);
  9984. } else {
  9985. var loop = function ( key ) {
  9986. var currentValue = current[key];
  9987. var preValue = pre[key];
  9988. var currentType = type(currentValue);
  9989. var preType = type(preValue);
  9990. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  9991. if (currentValue !== pre[key]) {
  9992. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  9993. }
  9994. } else if (currentType == ARRAYTYPE) {
  9995. if (preType != ARRAYTYPE) {
  9996. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  9997. } else {
  9998. if (currentValue.length < preValue.length) {
  9999. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  10000. } else {
  10001. currentValue.forEach(function (item, index) {
  10002. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  10003. });
  10004. }
  10005. }
  10006. } else if (currentType == OBJECTTYPE) {
  10007. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  10008. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  10009. } else {
  10010. for (var subKey in currentValue) {
  10011. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  10012. }
  10013. }
  10014. }
  10015. };
  10016. for (var key in current) loop( key );
  10017. }
  10018. } else if (rootCurrentType == ARRAYTYPE) {
  10019. if (rootPreType != ARRAYTYPE) {
  10020. setResult(result, path, current);
  10021. } else {
  10022. if (current.length < pre.length) {
  10023. setResult(result, path, current);
  10024. } else {
  10025. current.forEach(function (item, index) {
  10026. _diff(item, pre[index], path + '[' + index + ']', result);
  10027. });
  10028. }
  10029. }
  10030. } else {
  10031. setResult(result, path, current);
  10032. }
  10033. }
  10034. function setResult(result, k, v) {
  10035. // if (type(v) != FUNCTIONTYPE) {
  10036. result[k] = v;
  10037. // }
  10038. }
  10039. function type(obj) {
  10040. return Object.prototype.toString.call(obj)
  10041. }
  10042. /* */
  10043. function flushCallbacks$1(vm) {
  10044. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  10045. if (Object({"VUE_APP_NAME":"智能衣柜","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  10046. var mpInstance = vm.$scope;
  10047. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  10048. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  10049. }
  10050. var copies = vm.__next_tick_callbacks.slice(0);
  10051. vm.__next_tick_callbacks.length = 0;
  10052. for (var i = 0; i < copies.length; i++) {
  10053. copies[i]();
  10054. }
  10055. }
  10056. }
  10057. function hasRenderWatcher(vm) {
  10058. return queue.find(function (watcher) { return vm._watcher === watcher; })
  10059. }
  10060. function nextTick$1(vm, cb) {
  10061. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  10062. //2.nextTick 之前存在 render watcher
  10063. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  10064. if(Object({"VUE_APP_NAME":"智能衣柜","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  10065. var mpInstance = vm.$scope;
  10066. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  10067. ']:nextVueTick');
  10068. }
  10069. return nextTick(cb, vm)
  10070. }else{
  10071. if(Object({"VUE_APP_NAME":"智能衣柜","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  10072. var mpInstance$1 = vm.$scope;
  10073. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  10074. ']:nextMPTick');
  10075. }
  10076. }
  10077. var _resolve;
  10078. if (!vm.__next_tick_callbacks) {
  10079. vm.__next_tick_callbacks = [];
  10080. }
  10081. vm.__next_tick_callbacks.push(function () {
  10082. if (cb) {
  10083. try {
  10084. cb.call(vm);
  10085. } catch (e) {
  10086. handleError(e, vm, 'nextTick');
  10087. }
  10088. } else if (_resolve) {
  10089. _resolve(vm);
  10090. }
  10091. });
  10092. // $flow-disable-line
  10093. if (!cb && typeof Promise !== 'undefined') {
  10094. return new Promise(function (resolve) {
  10095. _resolve = resolve;
  10096. })
  10097. }
  10098. }
  10099. /* */
  10100. function cloneWithData(vm) {
  10101. // 确保当前 vm 所有数据被同步
  10102. var ret = Object.create(null);
  10103. var dataKeys = [].concat(
  10104. Object.keys(vm._data || {}),
  10105. Object.keys(vm._computedWatchers || {}));
  10106. dataKeys.reduce(function(ret, key) {
  10107. ret[key] = vm[key];
  10108. return ret
  10109. }, ret);
  10110. // vue-composition-api
  10111. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  10112. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  10113. if (rawBindings) {
  10114. Object.keys(rawBindings).forEach(function (key) {
  10115. ret[key] = vm[key];
  10116. });
  10117. }
  10118. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  10119. Object.assign(ret, vm.$mp.data || {});
  10120. if (
  10121. Array.isArray(vm.$options.behaviors) &&
  10122. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  10123. ) { //form-field
  10124. ret['name'] = vm.name;
  10125. ret['value'] = vm.value;
  10126. }
  10127. return JSON.parse(JSON.stringify(ret))
  10128. }
  10129. var patch = function(oldVnode, vnode) {
  10130. var this$1 = this;
  10131. if (vnode === null) { //destroy
  10132. return
  10133. }
  10134. if (this.mpType === 'page' || this.mpType === 'component') {
  10135. var mpInstance = this.$scope;
  10136. var data = Object.create(null);
  10137. try {
  10138. data = cloneWithData(this);
  10139. } catch (err) {
  10140. console.error(err);
  10141. }
  10142. data.__webviewId__ = mpInstance.data.__webviewId__;
  10143. var mpData = Object.create(null);
  10144. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  10145. mpData[key] = mpInstance.data[key];
  10146. });
  10147. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  10148. if (Object.keys(diffData).length) {
  10149. if (Object({"VUE_APP_NAME":"智能衣柜","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  10150. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  10151. ']差量更新',
  10152. JSON.stringify(diffData));
  10153. }
  10154. this.__next_tick_pending = true;
  10155. mpInstance.setData(diffData, function () {
  10156. this$1.__next_tick_pending = false;
  10157. flushCallbacks$1(this$1);
  10158. });
  10159. } else {
  10160. flushCallbacks$1(this);
  10161. }
  10162. }
  10163. };
  10164. /* */
  10165. function createEmptyRender() {
  10166. }
  10167. function mountComponent$1(
  10168. vm,
  10169. el,
  10170. hydrating
  10171. ) {
  10172. if (!vm.mpType) {//main.js 中的 new Vue
  10173. return vm
  10174. }
  10175. if (vm.mpType === 'app') {
  10176. vm.$options.render = createEmptyRender;
  10177. }
  10178. if (!vm.$options.render) {
  10179. vm.$options.render = createEmptyRender;
  10180. if (true) {
  10181. /* istanbul ignore if */
  10182. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  10183. vm.$options.el || el) {
  10184. warn(
  10185. 'You are using the runtime-only build of Vue where the template ' +
  10186. 'compiler is not available. Either pre-compile the templates into ' +
  10187. 'render functions, or use the compiler-included build.',
  10188. vm
  10189. );
  10190. } else {
  10191. warn(
  10192. 'Failed to mount component: template or render function not defined.',
  10193. vm
  10194. );
  10195. }
  10196. }
  10197. }
  10198. !vm._$fallback && callHook(vm, 'beforeMount');
  10199. var updateComponent = function () {
  10200. vm._update(vm._render(), hydrating);
  10201. };
  10202. // we set this to vm._watcher inside the watcher's constructor
  10203. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  10204. // component's mounted hook), which relies on vm._watcher being already defined
  10205. new Watcher(vm, updateComponent, noop, {
  10206. before: function before() {
  10207. if (vm._isMounted && !vm._isDestroyed) {
  10208. callHook(vm, 'beforeUpdate');
  10209. }
  10210. }
  10211. }, true /* isRenderWatcher */);
  10212. hydrating = false;
  10213. return vm
  10214. }
  10215. /* */
  10216. function renderClass (
  10217. staticClass,
  10218. dynamicClass
  10219. ) {
  10220. if (isDef(staticClass) || isDef(dynamicClass)) {
  10221. return concat(staticClass, stringifyClass(dynamicClass))
  10222. }
  10223. /* istanbul ignore next */
  10224. return ''
  10225. }
  10226. function concat (a, b) {
  10227. return a ? b ? (a + ' ' + b) : a : (b || '')
  10228. }
  10229. function stringifyClass (value) {
  10230. if (Array.isArray(value)) {
  10231. return stringifyArray(value)
  10232. }
  10233. if (isObject(value)) {
  10234. return stringifyObject(value)
  10235. }
  10236. if (typeof value === 'string') {
  10237. return value
  10238. }
  10239. /* istanbul ignore next */
  10240. return ''
  10241. }
  10242. function stringifyArray (value) {
  10243. var res = '';
  10244. var stringified;
  10245. for (var i = 0, l = value.length; i < l; i++) {
  10246. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  10247. if (res) { res += ' '; }
  10248. res += stringified;
  10249. }
  10250. }
  10251. return res
  10252. }
  10253. function stringifyObject (value) {
  10254. var res = '';
  10255. for (var key in value) {
  10256. if (value[key]) {
  10257. if (res) { res += ' '; }
  10258. res += key;
  10259. }
  10260. }
  10261. return res
  10262. }
  10263. /* */
  10264. var parseStyleText = cached(function (cssText) {
  10265. var res = {};
  10266. var listDelimiter = /;(?![^(]*\))/g;
  10267. var propertyDelimiter = /:(.+)/;
  10268. cssText.split(listDelimiter).forEach(function (item) {
  10269. if (item) {
  10270. var tmp = item.split(propertyDelimiter);
  10271. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  10272. }
  10273. });
  10274. return res
  10275. });
  10276. // normalize possible array / string values into Object
  10277. function normalizeStyleBinding (bindingStyle) {
  10278. if (Array.isArray(bindingStyle)) {
  10279. return toObject(bindingStyle)
  10280. }
  10281. if (typeof bindingStyle === 'string') {
  10282. return parseStyleText(bindingStyle)
  10283. }
  10284. return bindingStyle
  10285. }
  10286. /* */
  10287. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  10288. function getTarget(obj, path) {
  10289. var parts = path.split('.');
  10290. var key = parts[0];
  10291. if (key.indexOf('__$n') === 0) { //number index
  10292. key = parseInt(key.replace('__$n', ''));
  10293. }
  10294. if (parts.length === 1) {
  10295. return obj[key]
  10296. }
  10297. return getTarget(obj[key], parts.slice(1).join('.'))
  10298. }
  10299. function internalMixin(Vue) {
  10300. Vue.config.errorHandler = function(err, vm, info) {
  10301. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  10302. console.error(err);
  10303. /* eslint-disable no-undef */
  10304. var app = typeof getApp === 'function' && getApp();
  10305. if (app && app.onError) {
  10306. app.onError(err);
  10307. }
  10308. };
  10309. var oldEmit = Vue.prototype.$emit;
  10310. Vue.prototype.$emit = function(event) {
  10311. if (this.$scope && event) {
  10312. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  10313. if (triggerEvent) {
  10314. triggerEvent.call(this.$scope, event, {
  10315. __args__: toArray(arguments, 1)
  10316. });
  10317. }
  10318. }
  10319. return oldEmit.apply(this, arguments)
  10320. };
  10321. Vue.prototype.$nextTick = function(fn) {
  10322. return nextTick$1(this, fn)
  10323. };
  10324. MP_METHODS.forEach(function (method) {
  10325. Vue.prototype[method] = function(args) {
  10326. if (this.$scope && this.$scope[method]) {
  10327. return this.$scope[method](args)
  10328. }
  10329. // mp-alipay
  10330. if (typeof my === 'undefined') {
  10331. return
  10332. }
  10333. if (method === 'createSelectorQuery') {
  10334. /* eslint-disable no-undef */
  10335. return my.createSelectorQuery(args)
  10336. } else if (method === 'createIntersectionObserver') {
  10337. /* eslint-disable no-undef */
  10338. return my.createIntersectionObserver(args)
  10339. }
  10340. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  10341. };
  10342. });
  10343. Vue.prototype.__init_provide = initProvide;
  10344. Vue.prototype.__init_injections = initInjections;
  10345. Vue.prototype.__call_hook = function(hook, args) {
  10346. var vm = this;
  10347. // #7573 disable dep collection when invoking lifecycle hooks
  10348. pushTarget();
  10349. var handlers = vm.$options[hook];
  10350. var info = hook + " hook";
  10351. var ret;
  10352. if (handlers) {
  10353. for (var i = 0, j = handlers.length; i < j; i++) {
  10354. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  10355. }
  10356. }
  10357. if (vm._hasHookEvent) {
  10358. vm.$emit('hook:' + hook, args);
  10359. }
  10360. popTarget();
  10361. return ret
  10362. };
  10363. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  10364. if (Array.isArray(modifiers)) {
  10365. if (modifiers.indexOf('trim') !== -1) {
  10366. value = value.trim();
  10367. }
  10368. if (modifiers.indexOf('number') !== -1) {
  10369. value = this._n(value);
  10370. }
  10371. }
  10372. if (!target) {
  10373. target = this;
  10374. }
  10375. // 解决动态属性添加
  10376. Vue.set(target, key, value);
  10377. };
  10378. Vue.prototype.__set_sync = function(target, key, value) {
  10379. if (!target) {
  10380. target = this;
  10381. }
  10382. // 解决动态属性添加
  10383. Vue.set(target, key, value);
  10384. };
  10385. Vue.prototype.__get_orig = function(item) {
  10386. if (isPlainObject(item)) {
  10387. return item['$orig'] || item
  10388. }
  10389. return item
  10390. };
  10391. Vue.prototype.__get_value = function(dataPath, target) {
  10392. return getTarget(target || this, dataPath)
  10393. };
  10394. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  10395. return renderClass(staticClass, dynamicClass)
  10396. };
  10397. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  10398. if (!dynamicStyle && !staticStyle) {
  10399. return ''
  10400. }
  10401. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  10402. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  10403. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  10404. };
  10405. Vue.prototype.__map = function(val, iteratee) {
  10406. //TODO 暂不考虑 string
  10407. var ret, i, l, keys, key;
  10408. if (Array.isArray(val)) {
  10409. ret = new Array(val.length);
  10410. for (i = 0, l = val.length; i < l; i++) {
  10411. ret[i] = iteratee(val[i], i);
  10412. }
  10413. return ret
  10414. } else if (isObject(val)) {
  10415. keys = Object.keys(val);
  10416. ret = Object.create(null);
  10417. for (i = 0, l = keys.length; i < l; i++) {
  10418. key = keys[i];
  10419. ret[key] = iteratee(val[key], key, i);
  10420. }
  10421. return ret
  10422. } else if (typeof val === 'number') {
  10423. ret = new Array(val);
  10424. for (i = 0, l = val; i < l; i++) {
  10425. // 第一个参数暂时仍和小程序一致
  10426. ret[i] = iteratee(i, i);
  10427. }
  10428. return ret
  10429. }
  10430. return []
  10431. };
  10432. }
  10433. /* */
  10434. var LIFECYCLE_HOOKS$1 = [
  10435. //App
  10436. 'onLaunch',
  10437. 'onShow',
  10438. 'onHide',
  10439. 'onUniNViewMessage',
  10440. 'onPageNotFound',
  10441. 'onThemeChange',
  10442. 'onError',
  10443. 'onUnhandledRejection',
  10444. //Page
  10445. 'onInit',
  10446. 'onLoad',
  10447. // 'onShow',
  10448. 'onReady',
  10449. // 'onHide',
  10450. 'onUnload',
  10451. 'onPullDownRefresh',
  10452. 'onReachBottom',
  10453. 'onTabItemTap',
  10454. 'onAddToFavorites',
  10455. 'onShareTimeline',
  10456. 'onShareAppMessage',
  10457. 'onResize',
  10458. 'onPageScroll',
  10459. 'onNavigationBarButtonTap',
  10460. 'onBackPress',
  10461. 'onNavigationBarSearchInputChanged',
  10462. 'onNavigationBarSearchInputConfirmed',
  10463. 'onNavigationBarSearchInputClicked',
  10464. //Component
  10465. // 'onReady', // 兼容旧版本,应该移除该事件
  10466. 'onPageShow',
  10467. 'onPageHide',
  10468. 'onPageResize',
  10469. 'onUploadDouyinVideo'
  10470. ];
  10471. function lifecycleMixin$1(Vue) {
  10472. //fixed vue-class-component
  10473. var oldExtend = Vue.extend;
  10474. Vue.extend = function(extendOptions) {
  10475. extendOptions = extendOptions || {};
  10476. var methods = extendOptions.methods;
  10477. if (methods) {
  10478. Object.keys(methods).forEach(function (methodName) {
  10479. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  10480. extendOptions[methodName] = methods[methodName];
  10481. delete methods[methodName];
  10482. }
  10483. });
  10484. }
  10485. return oldExtend.call(this, extendOptions)
  10486. };
  10487. var strategies = Vue.config.optionMergeStrategies;
  10488. var mergeHook = strategies.created;
  10489. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  10490. strategies[hook] = mergeHook;
  10491. });
  10492. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  10493. }
  10494. /* */
  10495. // install platform patch function
  10496. Vue.prototype.__patch__ = patch;
  10497. // public mount method
  10498. Vue.prototype.$mount = function(
  10499. el ,
  10500. hydrating
  10501. ) {
  10502. return mountComponent$1(this, el, hydrating)
  10503. };
  10504. lifecycleMixin$1(Vue);
  10505. internalMixin(Vue);
  10506. /* */
  10507. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  10508. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 2)))
  10509. /***/ }),
  10510. /***/ 40:
  10511. /*!********************************************************************!*\
  10512. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/function/calendar.js ***!
  10513. \********************************************************************/
  10514. /*! no static exports found */
  10515. /***/ (function(module, exports, __webpack_require__) {
  10516. "use strict";
  10517. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;function _classCallCheck(instance, Constructor) {if (!(instance instanceof Constructor)) {throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target, props) {for (var i = 0; i < props.length; i++) {var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);}}function _createClass(Constructor, protoProps, staticProps) {if (protoProps) _defineProperties(Constructor.prototype, protoProps);if (staticProps) _defineProperties(Constructor, staticProps);return Constructor;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;} /**
  10518. * 日历库
  10519. * 作者:tmzdy
  10520. * 时间:2021-7-27
  10521. * 联系:zhongjihan@sina.com
  10522. */var
  10523. calendar = /*#__PURE__*/function () {
  10524. /**
  10525. * value:初始化时间
  10526. * start:开始始间 ,提供了后,会在返回的日历上标记每个日期是否是在start 和 end之间。
  10527. * end:结束时间
  10528. */
  10529. function calendar(_ref) {var value = _ref.value,start = _ref.start,end = _ref.end;_classCallCheck(this, calendar);_defineProperty(this, "value", new Date());_defineProperty(this, "now_day_month", new Date());_defineProperty(this, "start_time", new Date(1900, 0, 1));_defineProperty(this, "end_time", new Date(2100, 11, 31));_defineProperty(this, "txtdateArray", []);
  10530. if (arguments.length === 1) {
  10531. var arg = arguments[0];
  10532. if (arg === null || arg === void 0 ? void 0 : arg.value) {
  10533. value = value.replace(/-/g, '/');
  10534. var dobj = new Date(value);
  10535. this.value = new Date(dobj.getFullYear(), dobj.getMonth(), dobj.getDate());
  10536. this.now_day_month = this.value;
  10537. }
  10538. if (arg === null || arg === void 0 ? void 0 : arg.start) {
  10539. var sv = start;
  10540. if (typeof sv === 'string') {
  10541. sv = new Date(sv.replace(/-/g, '/'));
  10542. } else if (typeof sv === 'object') {
  10543. sv = new Date(sv);
  10544. }
  10545. this.start_time = sv;
  10546. }
  10547. if (arg === null || arg === void 0 ? void 0 : arg.end) {
  10548. var _sv = end;
  10549. if (typeof _sv === 'string') {
  10550. _sv = new Date(_sv.replace(/-/g, '/'));
  10551. } else if (typeof _sv === 'object') {
  10552. _sv = new Date(_sv);
  10553. }
  10554. this.end_time = _sv;
  10555. }
  10556. }
  10557. }
  10558. /**
  10559. * 日期转化为字符串, 4位年+2位月+2位日
  10560. */_createClass(calendar, [{ key: "getDateStr", value: function getDateStr(
  10561. date) {
  10562. var _year = date.getFullYear();
  10563. var _month = date.getMonth(); // 月从0开始计数
  10564. var _d = date.getDate();
  10565. _month = _month > 9 ? "" + _month : "0" + _month;
  10566. _d = _d > 9 ? "" + _d : "0" + _d;
  10567. return _year + _month + _d;
  10568. }
  10569. // 设置当前计算的日历的时间 。格式为时间 格式。
  10570. }, { key: "setValue", value: function setValue(value) {
  10571. if (value) {
  10572. var dobj = new Date();
  10573. if (typeof value === 'object') {
  10574. dobj = new Date(value);
  10575. } else {
  10576. value = value.replace(/-/g, '/');
  10577. dobj = new Date(value);
  10578. }
  10579. this.value = new Date(dobj.getFullYear(), dobj.getMonth(), dobj.getDate());
  10580. this.now_day_month = this.value;
  10581. }
  10582. return this;
  10583. }
  10584. // 未设置
  10585. }, { key: "setStart", value: function setStart(start) {
  10586. var sv = start;
  10587. if (typeof sv === 'string') {
  10588. sv = new Date(sv.replace(/-/g, '/'));
  10589. } else if (typeof sv === 'object') {
  10590. sv = new Date(sv);
  10591. }
  10592. this.start_time = sv;
  10593. return this;
  10594. } }, { key: "setEnd", value: function setEnd(
  10595. end) {
  10596. var sv = end;
  10597. if (typeof sv === 'string') {
  10598. sv = new Date(sv.replace(/-/g, '/'));
  10599. } else if (typeof sv === 'object') {
  10600. sv = new Date(sv);
  10601. }
  10602. this.end_time = sv;
  10603. return this;
  10604. }
  10605. // 设置文本数据。携带在对象 中。
  10606. }, { key: "setTimeArrayText", value: function setTimeArrayText(textArray) {
  10607. if (!Array.isArray(textArray)) return;
  10608. /**
  10609. * textArray
  10610. * {date:"2021-7-1",text:"你好"}
  10611. */
  10612. this.txtdateArray = textArray;
  10613. return this;
  10614. } }, { key: "monthDay", value: function monthDay(
  10615. year, month) {
  10616. var date = new Date(year, month, 1, 0, 0, 0);
  10617. var yesterDay = new Date(date - 1000);
  10618. return yesterDay.getDate();
  10619. } }, { key: "nongli", value: function nongli(
  10620. year, month, day) {
  10621. var calendarobj = {
  10622. gregorianYear: null, //公历年
  10623. gregorianMonth: null, //公历月
  10624. gregorianDay: null, //公历日
  10625. weekday: null, //星期
  10626. hours: null,
  10627. minutes: null,
  10628. seconds: null,
  10629. lunarYear: null, //农历年
  10630. lunarMonth: null, //农历月
  10631. lunarDay: null, //农历日
  10632. lunarYearCn: '', //农历天干地支纪年
  10633. lunarMonthCn: '', //农历中文月
  10634. lunarDayCn: '', //农历中文日
  10635. zodiacYear: '', //农历生肖年
  10636. solarTerm: '', //节气
  10637. gregorianFestival: '', //公历节日
  10638. lunarFestival: '' //农历节日
  10639. };
  10640. var lunarInfo = [
  10641. 0x04bd8, 0x04ae0, 0x0a570, 0x054d5, 0x0d260, 0x0d950, 0x16554, 0x056a0, 0x09ad0, 0x055d2,
  10642. 0x04ae0, 0x0a5b6, 0x0a4d0, 0x0d250, 0x1d255, 0x0b540, 0x0d6a0, 0x0ada2, 0x095b0, 0x14977,
  10643. 0x04970, 0x0a4b0, 0x0b4b5, 0x06a50, 0x06d40, 0x1ab54, 0x02b60, 0x09570, 0x052f2, 0x04970,
  10644. 0x06566, 0x0d4a0, 0x0ea50, 0x06e95, 0x05ad0, 0x02b60, 0x186e3, 0x092e0, 0x1c8d7, 0x0c950,
  10645. 0x0d4a0, 0x1d8a6, 0x0b550, 0x056a0, 0x1a5b4, 0x025d0, 0x092d0, 0x0d2b2, 0x0a950, 0x0b557,
  10646. 0x06ca0, 0x0b550, 0x15355, 0x04da0, 0x0a5d0, 0x14573, 0x052d0, 0x0a9a8, 0x0e950, 0x06aa0,
  10647. 0x0aea6, 0x0ab50, 0x04b60, 0x0aae4, 0x0a570, 0x05260, 0x0f263, 0x0d950, 0x05b57, 0x056a0,
  10648. 0x096d0, 0x04dd5, 0x04ad0, 0x0a4d0, 0x0d4d4, 0x0d250, 0x0d558, 0x0b540, 0x0b5a0, 0x195a6,
  10649. 0x095b0, 0x049b0, 0x0a974, 0x0a4b0, 0x0b27a, 0x06a50, 0x06d40, 0x0af46, 0x0ab60, 0x09570,
  10650. 0x04af5, 0x04970, 0x064b0, 0x074a3, 0x0ea50, 0x06b58, 0x055c0, 0x0ab60, 0x096d5, 0x092e0,
  10651. 0x0c960, 0x0d954, 0x0d4a0, 0x0da50, 0x07552, 0x056a0, 0x0abb7, 0x025d0, 0x092d0, 0x0cab5,
  10652. 0x0a950, 0x0b4a0, 0x0baa4, 0x0ad50, 0x055d9, 0x04ba0, 0x0a5b0, 0x15176, 0x052b0, 0x0a930,
  10653. 0x07954, 0x06aa0, 0x0ad50, 0x05b52, 0x04b60, 0x0a6e6, 0x0a4e0, 0x0d260, 0x0ea65, 0x0d530,
  10654. 0x05aa0, 0x076a3, 0x096d0, 0x04bd7, 0x04ad0, 0x0a4d0, 0x1d0b6, 0x0d250, 0x0d520, 0x0dd45,
  10655. 0x0b5a0, 0x056d0, 0x055b2, 0x049b0, 0x0a577, 0x0a4b0, 0x0aa50, 0x1b255, 0x06d20, 0x0ada0];
  10656. var zodiacs = ['鼠', '牛', '虎', '兔', '龙', '蛇', '马', '羊', '猴', '鸡', '狗', '猪'];
  10657. var Gan = ['甲', '乙', '丙', '丁', '戊', '己', '庚', '辛', '壬', '癸'];
  10658. var Zhi = ['子', '丑', '寅', '卯', '辰', '巳', '午', '未', '申', '酉', '戌', '亥'];
  10659. var weekday = ['星期一', '星期二', '星期三', '星期四', '星期五', '星期六', '星期日'];
  10660. var now = new Date();
  10661. //用于计算农历年月日的数据
  10662. var GY = year;
  10663. var GM = month;
  10664. var GD = day;
  10665. //==== 传入 offset 传回干支, 0=甲子
  10666. function cyclical(num) {
  10667. return Gan[num % 10] + Zhi[num % 12];
  10668. }
  10669. //==== 传回农历 year年的总天数
  10670. function lYearDays(year) {
  10671. var i,sum = 348;
  10672. for (i = 0x8000; i > 0x8; i >>= 1) {
  10673. sum += lunarInfo[year - 1900] & i ? 1 : 0;
  10674. }
  10675. return sum + leapDays(year);
  10676. }
  10677. //==== 传回农历 year年闰月的天数
  10678. function leapDays(year) {
  10679. if (leapMonth(year)) {
  10680. return lunarInfo[year - 1900] & 0x10000 ? 30 : 29;
  10681. } else
  10682. {
  10683. return 0;
  10684. }
  10685. }
  10686. //==== 传回农历 year年闰哪个月 1-12 , 没闰传回 0
  10687. function leapMonth(year) {
  10688. return lunarInfo[year - 1900] & 0xf;
  10689. }
  10690. //==== 传回农历 year年month月的总天数
  10691. function monthDays(year, month) {
  10692. return lunarInfo[year - 1900] & 0x10000 >> month ? 30 : 29;
  10693. }
  10694. //==== 算出农历, 传入日期对象, 传回农历日期对象
  10695. // 该对象属性有 农历年year 农历月month 农历日day 是否闰年isLeap yearCyl dayCyl monCyl
  10696. function Lunar(objDate) {
  10697. var i,temp = 0;
  10698. var baseDate = new Date(1900, 0, 31);
  10699. var offset = Math.floor((objDate - baseDate) / 86400000);
  10700. var dayCyl = offset + 40;
  10701. var monCyl = 14;
  10702. for (i = 1900; i < 2050 && offset > 0; i++) {
  10703. temp = lYearDays(i);
  10704. offset -= temp;
  10705. monCyl += 12;
  10706. }
  10707. if (offset < 0) {
  10708. offset += temp;
  10709. i--;
  10710. monCyl -= 12;
  10711. }
  10712. //农历年
  10713. var year = i;
  10714. var yearCyl = i - 1864;
  10715. var leap = leapMonth(i); //闰哪个月
  10716. var isLeap = false; //是否闰年
  10717. for (i = 1; i < 13 && offset > 0; i++) {
  10718. //闰月
  10719. if (leap > 0 && i === leap + 1 && isLeap === false) {
  10720. --i;isLeap = true;temp = leapDays(year);
  10721. } else
  10722. {
  10723. temp = monthDays(year, i);
  10724. }
  10725. //解除闰月
  10726. if (isLeap === true && i === leap + 1) {
  10727. isLeap = false;
  10728. }
  10729. offset -= temp;
  10730. if (isLeap === false) {
  10731. monCyl++;
  10732. }
  10733. }
  10734. if (offset === 0 && leap > 0 && i === leap + 1)
  10735. if (isLeap) {
  10736. isLeap = false;
  10737. } else
  10738. {
  10739. isLeap = true;
  10740. --i;
  10741. --monCyl;
  10742. }
  10743. if (offset < 0) {
  10744. offset += temp;
  10745. --i;
  10746. --monCyl;
  10747. }
  10748. //农历月
  10749. var month = i;
  10750. //农历日
  10751. var day = offset + 1;
  10752. return {
  10753. year: year,
  10754. month: month,
  10755. day: day,
  10756. isLeap: isLeap,
  10757. leap: leap,
  10758. yearCyl: yearCyl,
  10759. dayCyl: dayCyl,
  10760. monCyl: monCyl };
  10761. }
  10762. //==== 中文日期 m为传入月份,d为传入日期
  10763. function cDay(m, d) {
  10764. var nStr1 = ['日', '一', '二', '三', '四', '五', '六', '七', '八', '九', '十'];
  10765. var nStr2 = ['初', '十', '廿', '卅', ''];
  10766. //农历中文月
  10767. var lunarMonthCn;
  10768. //农历中文日
  10769. var lunarDayCn;
  10770. if (m > 10) {
  10771. lunarMonthCn = '十' + nStr1[m - 10];
  10772. } else {
  10773. lunarMonthCn = nStr1[m];
  10774. }
  10775. lunarMonthCn += '月';
  10776. switch (d) {
  10777. case 10:lunarDayCn = '初十';break;
  10778. case 20:lunarDayCn = '二十';break;
  10779. case 30:lunarDayCn = '三十';break;
  10780. default:lunarDayCn = nStr2[Math.floor(d / 10)] + nStr1[d % 10];}
  10781. return {
  10782. lunarMonthCn: lunarMonthCn,
  10783. lunarDayCn: lunarDayCn };
  10784. }
  10785. //节气
  10786. function getSolarTerm() {
  10787. var sTermInfo = [
  10788. 0, 21208, 42467, 63836, 85337, 107014,
  10789. 128867, 150921, 173149, 195551, 218072, 240693,
  10790. 263343, 285989, 308563, 331033, 353350, 375494,
  10791. 397447, 419210, 440795, 462224, 483532, 504758];
  10792. var solarTerm = [
  10793. '小寒', '大寒', '立春', '雨水', '惊蛰', '春分',
  10794. '清明', '谷雨', '立夏', '小满', '芒种', '夏至',
  10795. '小暑', '大暑', '立秋', '处暑', '白露', '秋分',
  10796. '寒露', '霜降', '立冬', '小雪', '大雪', '冬至'];
  10797. var solarTerms = '';
  10798. var tmp1 = new Date(
  10799. 31556925974.7 * (GY - 1900) + sTermInfo[(GM - 1) * 2 + 1] * 60000 + Date.UTC(1900, 0, 6, 2, 5));
  10800. var tmp2 = tmp1.getUTCDate();
  10801. if (tmp2 === GD) solarTerms = solarTerm[(GM - 1) * 2 + 1];
  10802. tmp1 = new Date(
  10803. 31556925974.7 * (GY - 1900) + sTermInfo[(GM - 1) * 2] * 60000 + Date.UTC(1900, 0, 6, 2, 5));
  10804. tmp2 = tmp1.getUTCDate();
  10805. if (tmp2 === GD) solarTerms = solarTerm[(GM - 1) * 2];
  10806. return solarTerms;
  10807. }
  10808. //==== 中文日期 m为传入月份,d为传入日期
  10809. function cDay(m, d) {
  10810. var nStr1 = ['日', '一', '二', '三', '四', '五', '六', '七', '八', '九', '十'];
  10811. var nStr2 = ['初', '十', '廿', '卅', ''];
  10812. //农历中文月
  10813. var lunarMonthCn;
  10814. //农历中文日
  10815. var lunarDayCn;
  10816. if (m > 10) {
  10817. lunarMonthCn = '十' + nStr1[m - 10];
  10818. } else {
  10819. lunarMonthCn = nStr1[m];
  10820. }
  10821. lunarMonthCn += '月';
  10822. switch (d) {
  10823. case 10:lunarDayCn = '初十';break;
  10824. case 20:lunarDayCn = '二十';break;
  10825. case 30:lunarDayCn = '三十';break;
  10826. default:lunarDayCn = nStr2[Math.floor(d / 10)] + nStr1[d % 10];}
  10827. return {
  10828. lunarMonthCn: lunarMonthCn,
  10829. lunarDayCn: lunarDayCn };
  10830. }
  10831. //去掉时分秒的日期
  10832. var sDObj = new Date(GY, GM - 1, GD);
  10833. var lDObj = new Lunar(sDObj);
  10834. //节气
  10835. // calendar.solarTerm = getSolarTerm()
  10836. var n = cDay(lDObj.month, lDObj.day);
  10837. var y = cyclical(GY - 1900 + 36);
  10838. return {
  10839. year: y,
  10840. month: n.lunarMonthCn,
  10841. day: n.lunarDayCn,
  10842. shengxiao: zodiacs[(GY - 4) % 12],
  10843. jieqi: getSolarTerm() };
  10844. }
  10845. //下个月,可以一直操作
  10846. }, { key: "nextMonth", value: function nextMonth() {
  10847. this.value = new Date(this.value.getFullYear(), this.value.getMonth() + 1, 1);
  10848. return this;
  10849. }
  10850. //上个月,可以一直操作
  10851. }, { key: "prevMonth", value: function prevMonth() {
  10852. this.value = new Date(this.value.getFullYear(), this.value.getMonth() - 1, 1);
  10853. return this;
  10854. }
  10855. //下一年
  10856. }, { key: "nexYear", value: function nexYear() {
  10857. this.value = new Date(this.value.getFullYear() + 1, this.value.getMonth(), this.value.getDate());
  10858. return this;
  10859. }
  10860. //上一年
  10861. }, { key: "prevYear", value: function prevYear() {
  10862. this.value = new Date(this.value.getFullYear() - 1, this.value.getMonth(), this.value.getDate());
  10863. return this;
  10864. }
  10865. // 把之前设置的上一年,下一年,上一月下一月等数据清除,恢复 到最原始的月份年份数据。
  10866. }, { key: "setInit", value: function setInit() {
  10867. this.value = this.now_day_month;
  10868. return this;
  10869. }
  10870. // 返回初始化时的月份
  10871. }, { key: "getNowData", value: function getNowData() {
  10872. // 当前时间 。
  10873. var week = [7, 1, 2, 3, 4, 5, 6];
  10874. var text_week = ['周日', '周一', '周二', '周三', '周四', '周五', '周六'];
  10875. var _thisdateStr = this.now_day_month.toLocaleString();
  10876. var _thisMothn = this.now_day_month.getMonth(); //当前月
  10877. var _thisDay = this.now_day_month.getDate(); //当前日
  10878. var _thisYear = this.now_day_month.getFullYear(); //当前年
  10879. var _thisWeek = this.now_day_month.getDay(); //当前周
  10880. var _thisMothn_day = new Date(_thisYear, _thisMothn, 1); ///当月第一天数据。
  10881. var _thisDayDate = new Date(_thisYear, _thisMothn, _thisDay);
  10882. var months = [31, this.monthDay(_thisYear, _thisMothn), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
  10883. var _thisMothn_lastDay = new Date(_thisYear, _thisMothn, months[_thisMothn]); ///当月最后数据。
  10884. var dateArray = []; //当前日历表数据。
  10885. var llineDate = []; //行数据。
  10886. var j = 1;
  10887. var ishs = true; //如果第一排没有本月数据需要切换模式。把本月放第一位。
  10888. for (var i = 1; i < 8; i++) {
  10889. var tdy = new Date(_thisYear, _thisMothn, i - 6 - _thisMothn_day.getDay()); //当前循环日期。
  10890. if (i == 7) {
  10891. var tf = tdy.getTime() >= _thisMothn_day.getTime() && tdy.getTime() <= _thisMothn_lastDay.getTime() ? true : false;
  10892. if (!tf) {
  10893. ishs = false;
  10894. break;
  10895. }
  10896. }
  10897. }
  10898. for (var _i = 1; _i < 43; _i++) {
  10899. var Day = null;
  10900. if (!ishs) {
  10901. Day = new Date(_thisYear, _thisMothn, _i + 1 - _thisMothn_day.getDay()); //当前循环日期。
  10902. } else {
  10903. Day = new Date(_thisYear, _thisMothn, _i - 6 - _thisMothn_day.getDay()); //当前循环日期。
  10904. }
  10905. dateArray.push({
  10906. year: Day.getFullYear(), //年
  10907. month: Day.getMonth() + 1, //月1-12
  10908. week: week[Day.getDay()], //周的数字1~7
  10909. week_text: text_week[Day.getDay()], //周的中文
  10910. day: Day.getDate(), //几号
  10911. prevMoth: Day.getTime() < _thisMothn_day.getTime() ? true : false, //是否是上月。
  10912. nowMonth: Day.getTime() >= _thisMothn_day.getTime() && Day.getTime() <= _thisMothn_lastDay.getTime() ? true : false, //是否当月
  10913. nowDay: Day.getTime() == _thisDayDate.getTime() ? true : false, //是否是当天。
  10914. nowYear: 0, //是否当年
  10915. nextMoth: Day.getTime() > _thisMothn_lastDay.getTime() ? true : false, //是否下月
  10916. beginEnd: Day.getTime() >= this.start_time.getTime() && Day.getTime() <= this.end_time.getTime() ? true : false, //是否在开始和结束区间范围内。
  10917. nongli: this.nongli(Day.getFullYear(), Day.getMonth() + 1, Day.getDate()) });
  10918. }
  10919. return dateArray;
  10920. }
  10921. // 返回当前选中月的日历数组。如果你不设置value和数据getNowData和getData相等。
  10922. /**
  10923. * 返回当前月数据。
  10924. * @return {
  10925. beginEnd: false,//是否在规定范围时间内
  10926. day: 16,//日
  10927. month: 7,//月
  10928. nextMoth: false,//是否下月
  10929. nowDay: false,//是否当天
  10930. nowMonth: true,//是否当月
  10931. prevMoth: false,/是否下月
  10932. week: 5,//周1-7
  10933. week_text: "周五",//同上
  10934. year: 2021,//年
  10935. nongli:{ //农历
  10936. day: "初七",//日
  10937. jieqi: "",//节气
  10938. month: "六月",//月
  10939. shengxiao: "牛",//生肖
  10940. year: "辛丑" //农历年
  10941. }
  10942. }
  10943. */ }, { key: "getData", value: function getData()
  10944. {var _this = this;
  10945. // 当前时间 。
  10946. var week = [7, 1, 2, 3, 4, 5, 6];
  10947. var text_week = ['周日', '周一', '周二', '周三', '周四', '周五', '周六'];
  10948. var _thisdateStr = this.value.toLocaleString();
  10949. var _thisMothn = this.value.getMonth(); //当前月
  10950. var _thisDay = this.value.getDate(); //当前日
  10951. var _thisYear = this.value.getFullYear(); //当前年
  10952. var _thisWeek = this.value.getDay(); //当前周
  10953. var _thisMothn_day = new Date(_thisYear, _thisMothn, 1); ///当月第一天数据。
  10954. var _thisDayDate = new Date(_thisYear, _thisMothn, _thisDay);
  10955. var months = [31, this.monthDay(_thisYear, _thisMothn), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
  10956. var _thisMothn_lastDay = new Date(_thisYear, _thisMothn, months[_thisMothn]); ///当月最后数据。
  10957. var dateArray = []; //当前日历表数据。
  10958. var llineDate = []; //行数据。
  10959. var j = 1;
  10960. var ishs = true; //如果第一排没有本月数据需要切换模式。把本月放第一位。
  10961. for (var i = 1; i < 8; i++) {
  10962. var tdy = new Date(_thisYear, _thisMothn, i - 6 - _thisMothn_day.getDay()); //当前循环日期。
  10963. if (i == 7) {
  10964. var tf = tdy.getTime() >= _thisMothn_day.getTime() && tdy.getTime() <= _thisMothn_lastDay.getTime() ? true : false;
  10965. if (!tf) {
  10966. ishs = false;
  10967. break;
  10968. }
  10969. }
  10970. }var _loop = function _loop(
  10971. _i2) {
  10972. Day = null;
  10973. if (!ishs) {
  10974. Day = new Date(_thisYear, _thisMothn, _i2 + 1 - _thisMothn_day.getDay()); //当前循环日期。
  10975. } else {
  10976. Day = new Date(_thisYear, _thisMothn, _i2 - 6 - _thisMothn_day.getDay()); //当前循环日期。
  10977. }
  10978. var dstr = Day.getFullYear() + "-" + (Day.getMonth() + 1) + "-" + Day.getDate();
  10979. var TxtIndex = _this.txtdateArray.findIndex(function (item) {
  10980. return item.date == dstr;
  10981. });
  10982. dateArray.push({
  10983. year: Day.getFullYear(), //年
  10984. month: Day.getMonth() + 1, //月1-12
  10985. week: week[Day.getDay()], //周的数字1~7
  10986. week_text: text_week[Day.getDay()], //周的中文
  10987. day: Day.getDate(), //几号
  10988. prevMoth: Day.getTime() < _thisMothn_day.getTime() ? true : false, //是否是上月。
  10989. nowMonth: Day.getTime() >= _thisMothn_day.getTime() && Day.getTime() <= _thisMothn_lastDay.getTime() ? true : false, //是否当月
  10990. nowDay: Day.getTime() == _thisDayDate.getTime() ? true : false, //是否是当天。
  10991. nextMoth: Day.getTime() > _thisMothn_lastDay.getTime() ? true : false, //是否下月
  10992. beginEnd: Day.getTime() >= _this.start_time.getTime() && Day.getTime() <= _this.end_time.getTime() ? true : false, //是否在开始和结束区间范围内。
  10993. nongli: _this.nongli(Day.getFullYear(), Day.getMonth() + 1, Day.getDate()),
  10994. text: TxtIndex > -1 ? _this.txtdateArray[TxtIndex]['text'] : "" });};for (var _i2 = 1; _i2 < 43; _i2++) {var Day;_loop(_i2);
  10995. }
  10996. return dateArray;
  10997. } }]);return calendar;}();var _default =
  10998. calendar;exports.default = _default;
  10999. /***/ }),
  11000. /***/ 41:
  11001. /*!*********************************************************************!*\
  11002. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/function/signBoard.js ***!
  11003. \*********************************************************************/
  11004. /*! no static exports found */
  11005. /***/ (function(module, exports, __webpack_require__) {
  11006. "use strict";
  11007. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;function _toConsumableArray(arr) {return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();}function _nonIterableSpread() {throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o, minLen) {if (!o) return;if (typeof o === "string") return _arrayLikeToArray(o, minLen);var n = Object.prototype.toString.call(o).slice(8, -1);if (n === "Object" && o.constructor) n = o.constructor.name;if (n === "Map" || n === "Set") return Array.from(o);if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);}function _iterableToArray(iter) {if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);}function _arrayWithoutHoles(arr) {if (Array.isArray(arr)) return _arrayLikeToArray(arr);}function _arrayLikeToArray(arr, len) {if (len == null || len > arr.length) len = arr.length;for (var i = 0, arr2 = new Array(len); i < len; i++) {arr2[i] = arr[i];}return arr2;}function _defineProperties(target, props) {for (var i = 0; i < props.length; i++) {var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);}}function _createClass(Constructor, protoProps, staticProps) {if (protoProps) _defineProperties(Constructor.prototype, protoProps);if (staticProps) _defineProperties(Constructor, staticProps);return Constructor;}function _classCallCheck(instance, Constructor) {if (!(instance instanceof Constructor)) {throw new TypeError("Cannot call a class as a function");}}
  11008. /**
  11009. * 签名版,钢笔效果
  11010. * 源参考:https://www.cnblogs.com/fangsmile/p/14324460.html
  11011. */var
  11012. Point =
  11013. function Point(x, y, time) {_classCallCheck(this, Point);
  11014. this.x = x;
  11015. this.y = y;
  11016. this.isControl = false;
  11017. this.time = Date.now();
  11018. this.lineWidth = 0;
  11019. this.isAdd = false;
  11020. };var
  11021. Line =
  11022. function Line() {_classCallCheck(this, Line);
  11023. this.points = new Array();
  11024. this.changeWidthCount = 0;
  11025. this.lineWidth = 10;
  11026. };var
  11027. HandwritingSelf = /*#__PURE__*/function () {
  11028. function HandwritingSelf(canvas, w, h) {var line_w = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 8;var line_color = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : '#ff0000';_classCallCheck(this, HandwritingSelf);
  11029. this.canvas = { width: w, height: h };
  11030. this.ctx = canvas;
  11031. var context = this.ctx;
  11032. this.ctx.ellipse = function (x, y, a, b) {
  11033. } // ----
  11034. // this.points = new Array();
  11035. ;this.line = new Line();
  11036. this.pointLines = new Array(); //Line数组
  11037. this.k = 0.5;
  11038. this.begin = null;
  11039. this.middle = null;
  11040. this.end = null;
  11041. this.preTime = null;
  11042. this.lineWidth = line_w;
  11043. this.lineColor = line_color;
  11044. this.isDown = false;
  11045. }_createClass(HandwritingSelf, [{ key: "down", value: function down(
  11046. x, y) {
  11047. this.isDown = true;
  11048. this.line = new Line();
  11049. this.line.lineWidth = this.lineWidth;
  11050. var currentPoint = new Point(x, y, Date.now());
  11051. this.addPoint(currentPoint);
  11052. this.preTime = Date.now();
  11053. } }, { key: "move", value: function move(
  11054. x, y) {
  11055. // console.log("move:",x,y)
  11056. if (this.isDown) {
  11057. var currentPoint = new Point(x, y, Date.now());
  11058. this.addPoint(currentPoint);
  11059. this.draw();
  11060. }
  11061. } }, { key: "up", value: function up(
  11062. x, y) {
  11063. // if (e.touches.length > 0) {
  11064. var currentPoint = new Point(x, y, Date.now());
  11065. this.addPoint(currentPoint);
  11066. // }
  11067. this.draw(true);
  11068. this.pointLines.push(this.line);
  11069. this.begin = null;
  11070. this.middle = null;
  11071. this.end = null;
  11072. this.isDown = false;
  11073. } }, { key: "draw", value: function draw()
  11074. {var _this = this;var isUp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
  11075. // this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
  11076. this.ctx.setStrokeStyle(this.lineColor);
  11077. //绘制不包含this.line的线条
  11078. this.pointLines.forEach(function (line, index) {
  11079. var points = line.points;
  11080. _this.ctx.beginPath();
  11081. _this.ctx.ellipse(points[0].x - 1.5, points[0].y, 6, 3, Math.PI / 4, 0, Math.PI * 2);
  11082. _this.ctx.fill();
  11083. _this.ctx.beginPath();
  11084. _this.ctx.moveTo(points[0].x, points[0].y);
  11085. var lastW = line.lineWidth;
  11086. _this.ctx.setLineWidth(line.lineWidth);
  11087. _this.ctx.setLineJoin("round");
  11088. _this.ctx.setLineCap("round");
  11089. var minLineW = line.lineWidth / 4;
  11090. var isChangeW = false;
  11091. var changeWidthCount = line.changeWidthCount;
  11092. for (var _i = 1; _i <= points.length; _i++) {
  11093. if (_i == points.length) {
  11094. _this.ctx.stroke();
  11095. break;
  11096. }
  11097. if (_i > points.length - changeWidthCount) {
  11098. if (!isChangeW) {
  11099. _this.ctx.stroke(); //将之前的线条不变的path绘制完
  11100. isChangeW = true;
  11101. if (_i > 1 && points[_i - 1].isControl)
  11102. continue;
  11103. }
  11104. var w = (lastW - minLineW) / changeWidthCount * (points.length - _i) + minLineW;
  11105. points[_i - 1].lineWidth = w;
  11106. _this.ctx.beginPath(); //为了开启新的路径 否则每次stroke 都会把之前的路径在描一遍
  11107. // this.ctx.strokeStyle = "rgba("+Math.random()*255+","+Math.random()*255+","+Math.random()*255+",1)";
  11108. _this.ctx.setLineWidth(w);
  11109. _this.ctx.moveTo(points[_i - 1].x, points[_i - 1].y); //移动到之前的点
  11110. _this.ctx.lineTo(points[_i].x, points[_i].y);
  11111. _this.ctx.stroke(); //将之前的线条不变的path绘制完
  11112. } else {
  11113. if (points[_i].isControl && points[_i + 1]) {
  11114. _this.ctx.quadraticCurveTo(points[_i].x, points[_i].y, points[_i + 1].x, points[_i + 1].y);
  11115. } else if (_i >= 1 && points[_i - 1].isControl) {//上一个是控制点 当前点已经被绘制
  11116. } else
  11117. _this.ctx.lineTo(points[_i].x, points[_i].y);
  11118. }
  11119. }
  11120. });
  11121. //绘制this.line线条
  11122. var points;
  11123. if (isUp)
  11124. points = this.line.points;else
  11125. points = _toConsumableArray(this.line.points);
  11126. //当前绘制的线条最后几个补点 贝塞尔方式增加点
  11127. var count = 0;
  11128. var insertCount = 0;
  11129. var i = points.length - 1;
  11130. var endPoint = points[i];
  11131. var controlPoint;
  11132. var startPoint;
  11133. while (i >= 0) {
  11134. if (points[i].isControl == true) {
  11135. controlPoint = points[i];
  11136. count++;
  11137. } else {
  11138. startPoint = points[i];
  11139. }
  11140. if (startPoint && controlPoint && endPoint) {//使用贝塞尔计算补点
  11141. var dis = this.z_distance(startPoint, controlPoint) + this.z_distance(controlPoint, endPoint);
  11142. var insertPoints = this.BezierCalculate([startPoint, controlPoint, endPoint], Math.floor(dis / 6) + 1);
  11143. insertCount += insertPoints.length;
  11144. var index = i; //插入位置
  11145. // 把insertPoints 变成一个适合splice的数组(包含splice前2个参数的数组)
  11146. insertPoints.unshift(index, 1);
  11147. Array.prototype.splice.apply(points, insertPoints);
  11148. //补完点后
  11149. endPoint = startPoint;
  11150. startPoint = null;
  11151. }
  11152. if (count >= 6)
  11153. break;
  11154. i--;
  11155. }
  11156. //确定最后线宽变化的点数
  11157. var changeWidthCount = count + insertCount;
  11158. if (isUp)
  11159. this.line.changeWidthCount = changeWidthCount;
  11160. //制造椭圆头
  11161. this.ctx.fillStyle = "rgba(255,20,87,1)";
  11162. this.ctx.beginPath();
  11163. this.ctx.ellipse(points[0].x - 1.5, points[0].y, 6, 3, Math.PI / 4, 0, Math.PI * 2);
  11164. this.ctx.fill();
  11165. this.ctx.draw(true);
  11166. this.ctx.beginPath();
  11167. this.ctx.moveTo(points[0].x, points[0].y);
  11168. var lastW = this.line.lineWidth;
  11169. this.ctx.setLineWidth(this.line.lineWidth);
  11170. this.ctx.setLineJoin("round");
  11171. this.ctx.setLineCap("round");
  11172. var minLineW = this.line.lineWidth / 4;
  11173. var isChangeW = false;
  11174. for (var _i2 = 1; _i2 <= points.length; _i2++) {
  11175. if (_i2 == points.length) {
  11176. this.ctx.stroke();
  11177. break;
  11178. }
  11179. //最后的一些点线宽变细
  11180. if (_i2 > points.length - changeWidthCount) {
  11181. if (!isChangeW) {
  11182. this.ctx.stroke(); //将之前的线条不变的path绘制完
  11183. isChangeW = true;
  11184. if (_i2 > 1 && points[_i2 - 1].isControl)
  11185. continue;
  11186. }
  11187. //计算线宽
  11188. var w = (lastW - minLineW) / changeWidthCount * (points.length - _i2) + minLineW;
  11189. points[_i2 - 1].lineWidth = w;
  11190. this.ctx.beginPath(); //为了开启新的路径 否则每次stroke 都会把之前的路径在描一遍
  11191. // this.ctx.strokeStyle = "rgba(" + Math.random() * 255 + "," + Math.random() * 255 + "," + Math.random() * 255 + ",0.5)";
  11192. this.ctx.setLineWidth(w);
  11193. this.ctx.moveTo(points[_i2 - 1].x, points[_i2 - 1].y); //移动到之前的点
  11194. this.ctx.lineTo(points[_i2].x, points[_i2].y);
  11195. this.ctx.stroke(); //将之前的线条不变的path绘制完
  11196. } else {
  11197. if (points[_i2].isControl && points[_i2 + 1]) {
  11198. this.ctx.quadraticCurveTo(points[_i2].x, points[_i2].y, points[_i2 + 1].x, points[_i2 + 1].y);
  11199. } else if (_i2 >= 1 && points[_i2 - 1].isControl) {//上一个是控制点 当前点已经被绘制
  11200. } else
  11201. this.ctx.lineTo(points[_i2].x, points[_i2].y);
  11202. }
  11203. }
  11204. this.ctx.draw(true);
  11205. } }, { key: "addPoint", value: function addPoint(
  11206. p) {
  11207. if (this.line.points.length >= 1) {
  11208. var last_point = this.line.points[this.line.points.length - 1];
  11209. var distance = this.z_distance(p, last_point);
  11210. if (distance < 10) {
  11211. return;
  11212. }
  11213. }
  11214. if (this.line.points.length == 0) {
  11215. this.begin = p;
  11216. p.isControl = true;
  11217. this.pushPoint(p);
  11218. } else {
  11219. this.middle = p;
  11220. var controlPs = this.computeControlPoints(this.k, this.begin, this.middle, null);
  11221. this.pushPoint(controlPs.first);
  11222. this.pushPoint(p);
  11223. p.isControl = true;
  11224. this.begin = this.middle;
  11225. }
  11226. } }, { key: "addOtherPoint", value: function addOtherPoint(
  11227. p1, p2, w1, w2) {
  11228. var otherPoints = new Array();
  11229. var dis = this.z_distance(p1, p2);
  11230. if (dis >= 25) {
  11231. otherPoints.push(p1);
  11232. var insertPCount = Math.floor(dis / 20);
  11233. for (var j = 0; j < insertPCount; j++) {
  11234. var insertP = new Point(p1.x + (j + 1) / (insertPCount + 1) * (p2.x - p1.x), p1.y + (j + 1) / (insertPCount + 1) * (p2.y - p1.y));
  11235. insertP.isAdd = true;
  11236. otherPoints.push(insertP);
  11237. }
  11238. otherPoints.push(p2);
  11239. }
  11240. var count = otherPoints.length;
  11241. if (count > 0) {
  11242. console.log("addOtherPoint");
  11243. debugger;
  11244. var diffW = (w2 - w1) / (count - 1);
  11245. for (var i = 1; i < count; i++) {
  11246. var w = w1 + diffW * i;
  11247. this.ctx.beginPath();
  11248. this.ctx.setLineWidth(w);
  11249. this.ctx.moveTo(otherPoints[i - 1].x, otherPoints[i - 1].y);
  11250. this.ctx.lineTo(otherPoints[i].x, otherPoints[i].y);
  11251. this.ctx.stroke();
  11252. }
  11253. }
  11254. return otherPoints;
  11255. } }, { key: "pushPoint", value: function pushPoint(
  11256. p) {
  11257. //排除重复点
  11258. if (this.line.points.length >= 1 && this.line.points[this.line.points.length - 1].x == p.x && this.line.points[this.line.points.length - 1].y == p.y)
  11259. return;
  11260. this.line.points.push(p);
  11261. } }, { key: "computeControlPoints", value: function computeControlPoints(
  11262. k, begin, middle, end) {
  11263. if (k > 0.5 || k <= 0)
  11264. return;
  11265. var diff1 = new Point(middle.x - begin.x, middle.y - begin.y);
  11266. var diff2 = null;
  11267. if (end)
  11268. diff2 = new Point(end.x - middle.x, end.y - middle.y);
  11269. // let l1 = (diff1.x ** 2 + diff1.y ** 2) ** (1 / 2)
  11270. // let l2 = (diff2.x ** 2 + diff2.y ** 2) ** (1 / 2)
  11271. var first = new Point(middle.x - k * diff1.x, middle.y - k * diff1.y);
  11272. var second = null;
  11273. if (diff2)
  11274. second = new Point(middle.x + k * diff2.x, middle.y + k * diff2.y);
  11275. return { first: first, second: second };
  11276. }
  11277. // W_current =
  11278. //   W_previous + min( abs(k*s - W_previous), distance * K_width_unit_change) (k * s-W_previous) >= 0
  11279. //   W_previous - min( abs(k*s - W_previous), distance * K_width_unit_change) (k * s-W_previous) < 0
  11280. //   W_current      当前线段的宽度
  11281. //   W_previous    与当前线条相邻的前一条线段的宽度
  11282. //   distance       当前线条的长度
  11283. //   w_k         设定的一个固定阈值,表示:单位距离内, 笔迹的线条宽度可以变化的最大量.
  11284. //   distance * w_k    即为当前线段的长度内, 笔宽可以相对于前一条线段笔宽的基础上, 最多能够变宽或者可以变窄多少.
  11285. }, { key: "z_linewidth", value: function z_linewidth(b, e, bwidth, step) {
  11286. if (e.time == b.time)
  11287. return bwidth;
  11288. var max_speed = 2.0;
  11289. var d = this.z_distance(b, e);
  11290. var s = d / (e.time - b.time); //计算速度
  11291. console.log("s", e.time - b.time, s);
  11292. s = s > max_speed ? max_speed : s;
  11293. // let w = (max_speed - s) / max_speed;
  11294. var w = 0.5 / s;
  11295. var max_dif = d * step;
  11296. console.log(w, bwidth, max_dif);
  11297. if (w < 0.05) w = 0.05;
  11298. if (Math.abs(w - bwidth) > max_dif) {
  11299. if (w > bwidth)
  11300. w = bwidth + max_dif;else
  11301. w = bwidth - max_dif;
  11302. }
  11303. // printf("d:%.4f, time_diff:%lld, speed:%.4f, width:%.4f\n", d, e.t-b.t, s, w);
  11304. return w;
  11305. } }, { key: "z_distance", value: function z_distance(
  11306. b, e) {
  11307. return Math.sqrt(Math.pow(e.x - b.x, 2) + Math.pow(e.y - b.y, 2));
  11308. } }, { key: "BezierCalculate", value: function BezierCalculate(
  11309. poss, precision) {
  11310. //维度,坐标轴数(二维坐标,三维坐标...)
  11311. var dimersion = 2;
  11312. //贝塞尔曲线控制点数(阶数)
  11313. var number = poss.length;
  11314. //控制点数不小于 2 ,至少为二维坐标系
  11315. if (number < 2 || dimersion < 2)
  11316. return null;
  11317. var result = new Array();
  11318. //计算杨辉三角
  11319. var mi = new Array();
  11320. mi[0] = mi[1] = 1;
  11321. for (var i = 3; i <= number; i++) {
  11322. var t = new Array();
  11323. for (var j = 0; j < i - 1; j++) {
  11324. t[j] = mi[j];
  11325. }
  11326. mi[0] = mi[i - 1] = 1;
  11327. for (var _j = 0; _j < i - 2; _j++) {
  11328. mi[_j + 1] = t[_j] + t[_j + 1];
  11329. }
  11330. }
  11331. //计算坐标点
  11332. for (var _i3 = 0; _i3 < precision; _i3++) {
  11333. var _t = _i3 / precision;
  11334. var p = new Point(0, 0);
  11335. p.isAdd = true;
  11336. result.push(p);
  11337. for (var _j2 = 0; _j2 < dimersion; _j2++) {
  11338. var temp = 0.0;
  11339. for (var k = 0; k < number; k++) {
  11340. temp += Math.pow(1 - _t, number - k - 1) * (_j2 == 0 ? poss[k].x : poss[k].y) * Math.pow(_t, k) * mi[k];
  11341. }
  11342. _j2 == 0 ? p.x = temp : p.y = temp;
  11343. }
  11344. }
  11345. return result;
  11346. } }]);return HandwritingSelf;}();var _default =
  11347. HandwritingSelf;exports.default = _default;
  11348. /***/ }),
  11349. /***/ 411:
  11350. /*!****************************************************************!*\
  11351. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/util/province.js ***!
  11352. \****************************************************************/
  11353. /*! no static exports found */
  11354. /***/ (function(module, exports, __webpack_require__) {
  11355. "use strict";
  11356. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var provinceData = [{ "label": "北京市", "value": "11" }, { "label": "天津市", "value": "12" }, { "label": "河北省", "value": "13" }, { "label": "山西省", "value": "14" }, { "label": "内蒙古自治区", "value": "15" }, { "label": "辽宁省", "value": "21" }, { "label": "吉林省", "value": "22" }, { "label": "黑龙江省", "value": "23" }, { "label": "上海市", "value": "31" }, { "label": "江苏省", "value": "32" }, { "label": "浙江省", "value": "33" }, { "label": "安徽省", "value": "34" }, { "label": "福建省", "value": "35" }, { "label": "江西省", "value": "36" }, { "label": "山东省", "value": "37" }, { "label": "河南省", "value": "41" }, { "label": "湖北省", "value": "42" }, { "label": "湖南省", "value": "43" }, { "label": "广东省", "value": "44" }, { "label": "广西壮族自治区", "value": "45" }, { "label": "海南省", "value": "46" }, { "label": "重庆市", "value": "50" }, { "label": "四川省", "value": "51" }, { "label": "贵州省", "value": "52" }, { "label": "云南省", "value": "53" }, { "label": "西藏自治区", "value": "54" }, { "label": "陕西省", "value": "61" }, { "label": "甘肃省", "value": "62" }, { "label": "青海省", "value": "63" }, { "label": "宁夏回族自治区", "value": "64" }, { "label": "新疆维吾尔自治区", "value": "65" }, { "label": "台湾", "value": "66" }, { "label": "香港", "value": "67" }, { "label": "澳门", "value": "68" }];var _default =
  11357. provinceData;exports.default = _default;
  11358. /***/ }),
  11359. /***/ 412:
  11360. /*!************************************************************!*\
  11361. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/util/city.js ***!
  11362. \************************************************************/
  11363. /*! no static exports found */
  11364. /***/ (function(module, exports, __webpack_require__) {
  11365. "use strict";
  11366. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var cityData = [[{ "label": "市辖区", "value": "1101" }], [{ "label": "市辖区", "value": "1201" }], [{ "label": "石家庄市", "value": "1301" }, { "label": "唐山市", "value": "1302" }, { "label": "秦皇岛市", "value": "1303" }, { "label": "邯郸市", "value": "1304" }, { "label": "邢台市", "value": "1305" }, { "label": "保定市", "value": "1306" }, { "label": "张家口市", "value": "1307" }, { "label": "承德市", "value": "1308" }, { "label": "沧州市", "value": "1309" }, { "label": "廊坊市", "value": "1310" }, { "label": "衡水市", "value": "1311" }], [{ "label": "太原市", "value": "1401" }, { "label": "大同市", "value": "1402" }, { "label": "阳泉市", "value": "1403" }, { "label": "长治市", "value": "1404" }, { "label": "晋城市", "value": "1405" }, { "label": "朔州市", "value": "1406" }, { "label": "晋中市", "value": "1407" }, { "label": "运城市", "value": "1408" }, { "label": "忻州市", "value": "1409" }, { "label": "临汾市", "value": "1410" }, { "label": "吕梁市", "value": "1411" }], [{ "label": "呼和浩特市", "value": "1501" }, { "label": "包头市", "value": "1502" }, { "label": "乌海市", "value": "1503" }, { "label": "赤峰市", "value": "1504" }, { "label": "通辽市", "value": "1505" }, { "label": "鄂尔多斯市", "value": "1506" }, { "label": "呼伦贝尔市", "value": "1507" }, { "label": "巴彦淖尔市", "value": "1508" }, { "label": "乌兰察布市", "value": "1509" }, { "label": "兴安盟", "value": "1522" }, { "label": "锡林郭勒盟", "value": "1525" }, { "label": "阿拉善盟", "value": "1529" }], [{ "label": "沈阳市", "value": "2101" }, { "label": "大连市", "value": "2102" }, { "label": "鞍山市", "value": "2103" }, { "label": "抚顺市", "value": "2104" }, { "label": "本溪市", "value": "2105" }, { "label": "丹东市", "value": "2106" }, { "label": "锦州市", "value": "2107" }, { "label": "营口市", "value": "2108" }, { "label": "阜新市", "value": "2109" }, { "label": "辽阳市", "value": "2110" }, { "label": "盘锦市", "value": "2111" }, { "label": "铁岭市", "value": "2112" }, { "label": "朝阳市", "value": "2113" }, { "label": "葫芦岛市", "value": "2114" }], [{ "label": "长春市", "value": "2201" }, { "label": "吉林市", "value": "2202" }, { "label": "四平市", "value": "2203" }, { "label": "辽源市", "value": "2204" }, { "label": "通化市", "value": "2205" }, { "label": "白山市", "value": "2206" }, { "label": "松原市", "value": "2207" }, { "label": "白城市", "value": "2208" }, { "label": "延边朝鲜族自治州", "value": "2224" }], [{ "label": "哈尔滨市", "value": "2301" }, { "label": "齐齐哈尔市", "value": "2302" }, { "label": "鸡西市", "value": "2303" }, { "label": "鹤岗市", "value": "2304" }, { "label": "双鸭山市", "value": "2305" }, { "label": "大庆市", "value": "2306" }, { "label": "伊春市", "value": "2307" }, { "label": "佳木斯市", "value": "2308" }, { "label": "七台河市", "value": "2309" }, { "label": "牡丹江市", "value": "2310" }, { "label": "黑河市", "value": "2311" }, { "label": "绥化市", "value": "2312" }, { "label": "大兴安岭地区", "value": "2327" }], [{ "label": "市辖区", "value": "3101" }], [{ "label": "南京市", "value": "3201" }, { "label": "无锡市", "value": "3202" }, { "label": "徐州市", "value": "3203" }, { "label": "常州市", "value": "3204" }, { "label": "苏州市", "value": "3205" }, { "label": "南通市", "value": "3206" }, { "label": "连云港市", "value": "3207" }, { "label": "淮安市", "value": "3208" }, { "label": "盐城市", "value": "3209" }, { "label": "扬州市", "value": "3210" }, { "label": "镇江市", "value": "3211" }, { "label": "泰州市", "value": "3212" }, { "label": "宿迁市", "value": "3213" }], [{ "label": "杭州市", "value": "3301" }, { "label": "宁波市", "value": "3302" }, { "label": "温州市", "value": "3303" }, { "label": "嘉兴市", "value": "3304" }, { "label": "湖州市", "value": "3305" }, { "label": "绍兴市", "value": "3306" }, { "label": "金华市", "value": "3307" }, { "label": "衢州市", "value": "3308" }, { "label": "舟山市", "value": "3309" }, { "label": "台州市", "value": "3310" }, { "label": "丽水市", "value": "3311" }], [{ "label": "合肥市", "value": "3401" }, { "label": "芜湖市", "value": "3402" }, { "label": "蚌埠市", "value": "3403" }, { "label": "淮南市", "value": "3404" }, { "label": "马鞍山市", "value": "3405" }, { "label": "淮北市", "value": "3406" }, { "label": "铜陵市", "value": "3407" }, { "label": "安庆市", "value": "3408" }, { "label": "黄山市", "value": "3410" }, { "label": "滁州市", "value": "3411" }, { "label": "阜阳市", "value": "3412" }, { "label": "宿州市", "value": "3413" }, { "label": "六安市", "value": "3415" }, { "label": "亳州市", "value": "3416" }, { "label": "池州市", "value": "3417" }, { "label": "宣城市", "value": "3418" }], [{ "label": "福州市", "value": "3501" }, { "label": "厦门市", "value": "3502" }, { "label": "莆田市", "value": "3503" }, { "label": "三明市", "value": "3504" }, { "label": "泉州市", "value": "3505" }, { "label": "漳州市", "value": "3506" }, { "label": "南平市", "value": "3507" }, { "label": "龙岩市", "value": "3508" }, { "label": "宁德市", "value": "3509" }], [{ "label": "南昌市", "value": "3601" }, { "label": "景德镇市", "value": "3602" }, { "label": "萍乡市", "value": "3603" }, { "label": "九江市", "value": "3604" }, { "label": "新余市", "value": "3605" }, { "label": "鹰潭市", "value": "3606" }, { "label": "赣州市", "value": "3607" }, { "label": "吉安市", "value": "3608" }, { "label": "宜春市", "value": "3609" }, { "label": "抚州市", "value": "3610" }, { "label": "上饶市", "value": "3611" }], [{ "label": "济南市", "value": "3701" }, { "label": "青岛市", "value": "3702" }, { "label": "淄博市", "value": "3703" }, { "label": "枣庄市", "value": "3704" }, { "label": "东营市", "value": "3705" }, { "label": "烟台市", "value": "3706" }, { "label": "潍坊市", "value": "3707" }, { "label": "济宁市", "value": "3708" }, { "label": "泰安市", "value": "3709" }, { "label": "威海市", "value": "3710" }, { "label": "日照市", "value": "3711" }, { "label": "莱芜市", "value": "3712" }, { "label": "临沂市", "value": "3713" }, { "label": "德州市", "value": "3714" }, { "label": "聊城市", "value": "3715" }, { "label": "滨州市", "value": "3716" }, { "label": "菏泽市", "value": "3717" }], [{ "label": "郑州市", "value": "4101" }, { "label": "开封市", "value": "4102" }, { "label": "洛阳市", "value": "4103" }, { "label": "平顶山市", "value": "4104" }, { "label": "安阳市", "value": "4105" }, { "label": "鹤壁市", "value": "4106" }, { "label": "新乡市", "value": "4107" }, { "label": "焦作市", "value": "4108" }, { "label": "濮阳市", "value": "4109" }, { "label": "许昌市", "value": "4110" }, { "label": "漯河市", "value": "4111" }, { "label": "三门峡市", "value": "4112" }, { "label": "南阳市", "value": "4113" }, { "label": "商丘市", "value": "4114" }, { "label": "信阳市", "value": "4115" }, { "label": "周口市", "value": "4116" }, { "label": "驻马店市", "value": "4117" }, { "label": "省直辖县级行政区划", "value": "4190" }], [{ "label": "武汉市", "value": "4201" }, { "label": "黄石市", "value": "4202" }, { "label": "十堰市", "value": "4203" }, { "label": "宜昌市", "value": "4205" }, { "label": "襄阳市", "value": "4206" }, { "label": "鄂州市", "value": "4207" }, { "label": "荆门市", "value": "4208" }, { "label": "孝感市", "value": "4209" }, { "label": "荆州市", "value": "4210" }, { "label": "黄冈市", "value": "4211" }, { "label": "咸宁市", "value": "4212" }, { "label": "随州市", "value": "4213" }, { "label": "恩施土家族苗族自治州", "value": "4228" }, { "label": "省直辖县级行政区划", "value": "4290" }], [{ "label": "长沙市", "value": "4301" }, { "label": "株洲市", "value": "4302" }, { "label": "湘潭市", "value": "4303" }, { "label": "衡阳市", "value": "4304" }, { "label": "邵阳市", "value": "4305" }, { "label": "岳阳市", "value": "4306" }, { "label": "常德市", "value": "4307" }, { "label": "张家界市", "value": "4308" }, { "label": "益阳市", "value": "4309" }, { "label": "郴州市", "value": "4310" }, { "label": "永州市", "value": "4311" }, { "label": "怀化市", "value": "4312" }, { "label": "娄底市", "value": "4313" }, { "label": "湘西土家族苗族自治州", "value": "4331" }], [{ "label": "广州市", "value": "4401" }, { "label": "韶关市", "value": "4402" }, { "label": "深圳市", "value": "4403" }, { "label": "珠海市", "value": "4404" }, { "label": "汕头市", "value": "4405" }, { "label": "佛山市", "value": "4406" }, { "label": "江门市", "value": "4407" }, { "label": "湛江市", "value": "4408" }, { "label": "茂名市", "value": "4409" }, { "label": "肇庆市", "value": "4412" }, { "label": "惠州市", "value": "4413" }, { "label": "梅州市", "value": "4414" }, { "label": "汕尾市", "value": "4415" }, { "label": "河源市", "value": "4416" }, { "label": "阳江市", "value": "4417" }, { "label": "清远市", "value": "4418" }, { "label": "东莞市", "value": "4419" }, { "label": "中山市", "value": "4420" }, { "label": "潮州市", "value": "4451" }, { "label": "揭阳市", "value": "4452" }, { "label": "云浮市", "value": "4453" }], [{ "label": "南宁市", "value": "4501" }, { "label": "柳州市", "value": "4502" }, { "label": "桂林市", "value": "4503" }, { "label": "梧州市", "value": "4504" }, { "label": "北海市", "value": "4505" }, { "label": "防城港市", "value": "4506" }, { "label": "钦州市", "value": "4507" }, { "label": "贵港市", "value": "4508" }, { "label": "玉林市", "value": "4509" }, { "label": "百色市", "value": "4510" }, { "label": "贺州市", "value": "4511" }, { "label": "河池市", "value": "4512" }, { "label": "来宾市", "value": "4513" }, { "label": "崇左市", "value": "4514" }], [{ "label": "海口市", "value": "4601" }, { "label": "三亚市", "value": "4602" }, { "label": "三沙市", "value": "4603" }, { "label": "儋州市", "value": "4604" }, { "label": "省直辖县级行政区划", "value": "4690" }], [{ "label": "市辖区", "value": "5001" }, { "label": "县", "value": "5002" }], [{ "label": "成都市", "value": "5101" }, { "label": "自贡市", "value": "5103" }, { "label": "攀枝花市", "value": "5104" }, { "label": "泸州市", "value": "5105" }, { "label": "德阳市", "value": "5106" }, { "label": "绵阳市", "value": "5107" }, { "label": "广元市", "value": "5108" }, { "label": "遂宁市", "value": "5109" }, { "label": "内江市", "value": "5110" }, { "label": "乐山市", "value": "5111" }, { "label": "南充市", "value": "5113" }, { "label": "眉山市", "value": "5114" }, { "label": "宜宾市", "value": "5115" }, { "label": "广安市", "value": "5116" }, { "label": "达州市", "value": "5117" }, { "label": "雅安市", "value": "5118" }, { "label": "巴中市", "value": "5119" }, { "label": "资阳市", "value": "5120" }, { "label": "阿坝藏族羌族自治州", "value": "5132" }, { "label": "甘孜藏族自治州", "value": "5133" }, { "label": "凉山彝族自治州", "value": "5134" }], [{ "label": "贵阳市", "value": "5201" }, { "label": "六盘水市", "value": "5202" }, { "label": "遵义市", "value": "5203" }, { "label": "安顺市", "value": "5204" }, { "label": "毕节市", "value": "5205" }, { "label": "铜仁市", "value": "5206" }, { "label": "黔西南布依族苗族自治州", "value": "5223" }, { "label": "黔东南苗族侗族自治州", "value": "5226" }, { "label": "黔南布依族苗族自治州", "value": "5227" }], [{ "label": "昆明市", "value": "5301" }, { "label": "曲靖市", "value": "5303" }, { "label": "玉溪市", "value": "5304" }, { "label": "保山市", "value": "5305" }, { "label": "昭通市", "value": "5306" }, { "label": "丽江市", "value": "5307" }, { "label": "普洱市", "value": "5308" }, { "label": "临沧市", "value": "5309" }, { "label": "楚雄彝族自治州", "value": "5323" }, { "label": "红河哈尼族彝族自治州", "value": "5325" }, { "label": "文山壮族苗族自治州", "value": "5326" }, { "label": "西双版纳傣族自治州", "value": "5328" }, { "label": "大理白族自治州", "value": "5329" }, { "label": "德宏傣族景颇族自治州", "value": "5331" }, { "label": "怒江傈僳族自治州", "value": "5333" }, { "label": "迪庆藏族自治州", "value": "5334" }], [{ "label": "拉萨市", "value": "5401" }, { "label": "日喀则市", "value": "5402" }, { "label": "昌都市", "value": "5403" }, { "label": "林芝市", "value": "5404" }, { "label": "山南市", "value": "5405" }, { "label": "那曲地区", "value": "5424" }, { "label": "阿里地区", "value": "5425" }], [{ "label": "西安市", "value": "6101" }, { "label": "铜川市", "value": "6102" }, { "label": "宝鸡市", "value": "6103" }, { "label": "咸阳市", "value": "6104" }, { "label": "渭南市", "value": "6105" }, { "label": "延安市", "value": "6106" }, { "label": "汉中市", "value": "6107" }, { "label": "榆林市", "value": "6108" }, { "label": "安康市", "value": "6109" }, { "label": "商洛市", "value": "6110" }], [{ "label": "兰州市", "value": "6201" }, { "label": "嘉峪关市", "value": "6202" }, { "label": "金昌市", "value": "6203" }, { "label": "白银市", "value": "6204" }, { "label": "天水市", "value": "6205" }, { "label": "武威市", "value": "6206" }, { "label": "张掖市", "value": "6207" }, { "label": "平凉市", "value": "6208" }, { "label": "酒泉市", "value": "6209" }, { "label": "庆阳市", "value": "6210" }, { "label": "定西市", "value": "6211" }, { "label": "陇南市", "value": "6212" }, { "label": "临夏回族自治州", "value": "6229" }, { "label": "甘南藏族自治州", "value": "6230" }], [{ "label": "西宁市", "value": "6301" }, { "label": "海东市", "value": "6302" }, { "label": "海北藏族自治州", "value": "6322" }, { "label": "黄南藏族自治州", "value": "6323" }, { "label": "海南藏族自治州", "value": "6325" }, { "label": "果洛藏族自治州", "value": "6326" }, { "label": "玉树藏族自治州", "value": "6327" }, { "label": "海西蒙古族藏族自治州", "value": "6328" }], [{ "label": "银川市", "value": "6401" }, { "label": "石嘴山市", "value": "6402" }, { "label": "吴忠市", "value": "6403" }, { "label": "固原市", "value": "6404" }, { "label": "中卫市", "value": "6405" }], [{ "label": "乌鲁木齐市", "value": "6501" }, { "label": "克拉玛依市", "value": "6502" }, { "label": "吐鲁番市", "value": "6504" }, { "label": "哈密市", "value": "6505" }, { "label": "昌吉回族自治州", "value": "6523" }, { "label": "博尔塔拉蒙古自治州", "value": "6527" }, { "label": "巴音郭楞蒙古自治州", "value": "6528" }, { "label": "阿克苏地区", "value": "6529" }, { "label": "克孜勒苏柯尔克孜自治州", "value": "6530" }, { "label": "喀什地区", "value": "6531" }, { "label": "和田地区", "value": "6532" }, { "label": "伊犁哈萨克自治州", "value": "6540" }, { "label": "塔城地区", "value": "6542" }, { "label": "阿勒泰地区", "value": "6543" }, { "label": "自治区直辖县级行政区划", "value": "6590" }], [{ "label": "台北", "value": "6601" }, { "label": "高雄", "value": "6602" }, { "label": "基隆", "value": "6603" }, { "label": "台中", "value": "6604" }, { "label": "台南", "value": "6605" }, { "label": "新竹", "value": "6606" }, { "label": "嘉义", "value": "6607" }, { "label": "宜兰", "value": "6608" }, { "label": "桃园", "value": "6609" }, { "label": "苗栗", "value": "6610" }, { "label": "彰化", "value": "6611" }, { "label": "南投", "value": "6612" }, { "label": "云林", "value": "6613" }, { "label": "屏东", "value": "6614" }, { "label": "台东", "value": "6615" }, { "label": "花莲", "value": "6616" }, { "label": "澎湖", "value": "6617" }], [{ "label": "香港岛", "value": "6701" }, { "label": "九龙", "value": "6702" }, { "label": "新界", "value": "6703" }], [{ "label": "澳门半岛", "value": "6801" }, { "label": "氹仔岛", "value": "6802" }, { "label": "路环岛", "value": "6803" }, { "label": "路氹城", "value": "6804" }]];var _default = cityData;exports.default = _default;
  11367. /***/ }),
  11368. /***/ 413:
  11369. /*!************************************************************!*\
  11370. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/util/area.js ***!
  11371. \************************************************************/
  11372. /*! no static exports found */
  11373. /***/ (function(module, exports, __webpack_require__) {
  11374. "use strict";
  11375. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var areaData = [[[{ "label": "东城区", "value": "110101" }, { "label": "西城区", "value": "110102" }, { "label": "朝阳区", "value": "110105" }, { "label": "丰台区", "value": "110106" }, { "label": "石景山区", "value": "110107" }, { "label": "海淀区", "value": "110108" }, { "label": "门头沟区", "value": "110109" }, { "label": "房山区", "value": "110111" }, { "label": "通州区", "value": "110112" }, { "label": "顺义区", "value": "110113" }, { "label": "昌平区", "value": "110114" }, { "label": "大兴区", "value": "110115" }, { "label": "怀柔区", "value": "110116" }, { "label": "平谷区", "value": "110117" }, { "label": "密云区", "value": "110118" }, { "label": "延庆区", "value": "110119" }]], [[{ "label": "和平区", "value": "120101" }, { "label": "河东区", "value": "120102" }, { "label": "河西区", "value": "120103" }, { "label": "南开区", "value": "120104" }, { "label": "河北区", "value": "120105" }, { "label": "红桥区", "value": "120106" }, { "label": "东丽区", "value": "120110" }, { "label": "西青区", "value": "120111" }, { "label": "津南区", "value": "120112" }, { "label": "北辰区", "value": "120113" }, { "label": "武清区", "value": "120114" }, { "label": "宝坻区", "value": "120115" }, { "label": "滨海新区", "value": "120116" }, { "label": "宁河区", "value": "120117" }, { "label": "静海区", "value": "120118" }, { "label": "蓟州区", "value": "120119" }]], [[{ "label": "长安区", "value": "130102" }, { "label": "桥西区", "value": "130104" }, { "label": "新华区", "value": "130105" }, { "label": "井陉矿区", "value": "130107" }, { "label": "裕华区", "value": "130108" }, { "label": "藁城区", "value": "130109" }, { "label": "鹿泉区", "value": "130110" }, { "label": "栾城区", "value": "130111" }, { "label": "井陉县", "value": "130121" }, { "label": "正定县", "value": "130123" }, { "label": "行唐县", "value": "130125" }, { "label": "灵寿县", "value": "130126" }, { "label": "高邑县", "value": "130127" }, { "label": "深泽县", "value": "130128" }, { "label": "赞皇县", "value": "130129" }, { "label": "无极县", "value": "130130" }, { "label": "平山县", "value": "130131" }, { "label": "元氏县", "value": "130132" }, { "label": "赵县", "value": "130133" }, { "label": "石家庄高新技术产业开发区", "value": "130171" }, { "label": "石家庄循环化工园区", "value": "130172" }, { "label": "辛集市", "value": "130181" }, { "label": "晋州市", "value": "130183" }, { "label": "新乐市", "value": "130184" }], [{ "label": "路南区", "value": "130202" }, { "label": "路北区", "value": "130203" }, { "label": "古冶区", "value": "130204" }, { "label": "开平区", "value": "130205" }, { "label": "丰南区", "value": "130207" }, { "label": "丰润区", "value": "130208" }, { "label": "曹妃甸区", "value": "130209" }, { "label": "滦县", "value": "130223" }, { "label": "滦南县", "value": "130224" }, { "label": "乐亭县", "value": "130225" }, { "label": "迁西县", "value": "130227" }, { "label": "玉田县", "value": "130229" }, { "label": "唐山市芦台经济技术开发区", "value": "130271" }, { "label": "唐山市汉沽管理区", "value": "130272" }, { "label": "唐山高新技术产业开发区", "value": "130273" }, { "label": "河北唐山海港经济开发区", "value": "130274" }, { "label": "遵化市", "value": "130281" }, { "label": "迁安市", "value": "130283" }], [{ "label": "海港区", "value": "130302" }, { "label": "山海关区", "value": "130303" }, { "label": "北戴河区", "value": "130304" }, { "label": "抚宁区", "value": "130306" }, { "label": "青龙满族自治县", "value": "130321" }, { "label": "昌黎县", "value": "130322" }, { "label": "卢龙县", "value": "130324" }, { "label": "秦皇岛市经济技术开发区", "value": "130371" }, { "label": "北戴河新区", "value": "130372" }], [{ "label": "邯山区", "value": "130402" }, { "label": "丛台区", "value": "130403" }, { "label": "复兴区", "value": "130404" }, { "label": "峰峰矿区", "value": "130406" }, { "label": "肥乡区", "value": "130407" }, { "label": "永年区", "value": "130408" }, { "label": "临漳县", "value": "130423" }, { "label": "成安县", "value": "130424" }, { "label": "大名县", "value": "130425" }, { "label": "涉县", "value": "130426" }, { "label": "磁县", "value": "130427" }, { "label": "邱县", "value": "130430" }, { "label": "鸡泽县", "value": "130431" }, { "label": "广平县", "value": "130432" }, { "label": "馆陶县", "value": "130433" }, { "label": "魏县", "value": "130434" }, { "label": "曲周县", "value": "130435" }, { "label": "邯郸经济技术开发区", "value": "130471" }, { "label": "邯郸冀南新区", "value": "130473" }, { "label": "武安市", "value": "130481" }], [{ "label": "桥东区", "value": "130502" }, { "label": "桥西区", "value": "130503" }, { "label": "邢台县", "value": "130521" }, { "label": "临城县", "value": "130522" }, { "label": "内丘县", "value": "130523" }, { "label": "柏乡县", "value": "130524" }, { "label": "隆尧县", "value": "130525" }, { "label": "任县", "value": "130526" }, { "label": "南和县", "value": "130527" }, { "label": "宁晋县", "value": "130528" }, { "label": "巨鹿县", "value": "130529" }, { "label": "新河县", "value": "130530" }, { "label": "广宗县", "value": "130531" }, { "label": "平乡县", "value": "130532" }, { "label": "威县", "value": "130533" }, { "label": "清河县", "value": "130534" }, { "label": "临西县", "value": "130535" }, { "label": "河北邢台经济开发区", "value": "130571" }, { "label": "南宫市", "value": "130581" }, { "label": "沙河市", "value": "130582" }], [{ "label": "竞秀区", "value": "130602" }, { "label": "莲池区", "value": "130606" }, { "label": "满城区", "value": "130607" }, { "label": "清苑区", "value": "130608" }, { "label": "徐水区", "value": "130609" }, { "label": "涞水县", "value": "130623" }, { "label": "阜平县", "value": "130624" }, { "label": "定兴县", "value": "130626" }, { "label": "唐县", "value": "130627" }, { "label": "高阳县", "value": "130628" }, { "label": "容城县", "value": "130629" }, { "label": "涞源县", "value": "130630" }, { "label": "望都县", "value": "130631" }, { "label": "安新县", "value": "130632" }, { "label": "易县", "value": "130633" }, { "label": "曲阳县", "value": "130634" }, { "label": "蠡县", "value": "130635" }, { "label": "顺平县", "value": "130636" }, { "label": "博野县", "value": "130637" }, { "label": "雄县", "value": "130638" }, { "label": "保定高新技术产业开发区", "value": "130671" }, { "label": "保定白沟新城", "value": "130672" }, { "label": "涿州市", "value": "130681" }, { "label": "定州市", "value": "130682" }, { "label": "安国市", "value": "130683" }, { "label": "高碑店市", "value": "130684" }], [{ "label": "桥东区", "value": "130702" }, { "label": "桥西区", "value": "130703" }, { "label": "宣化区", "value": "130705" }, { "label": "下花园区", "value": "130706" }, { "label": "万全区", "value": "130708" }, { "label": "崇礼区", "value": "130709" }, { "label": "张北县", "value": "130722" }, { "label": "康保县", "value": "130723" }, { "label": "沽源县", "value": "130724" }, { "label": "尚义县", "value": "130725" }, { "label": "蔚县", "value": "130726" }, { "label": "阳原县", "value": "130727" }, { "label": "怀安县", "value": "130728" }, { "label": "怀来县", "value": "130730" }, { "label": "涿鹿县", "value": "130731" }, { "label": "赤城县", "value": "130732" }, { "label": "张家口市高新技术产业开发区", "value": "130771" }, { "label": "张家口市察北管理区", "value": "130772" }, { "label": "张家口市塞北管理区", "value": "130773" }], [{ "label": "双桥区", "value": "130802" }, { "label": "双滦区", "value": "130803" }, { "label": "鹰手营子矿区", "value": "130804" }, { "label": "承德县", "value": "130821" }, { "label": "兴隆县", "value": "130822" }, { "label": "滦平县", "value": "130824" }, { "label": "隆化县", "value": "130825" }, { "label": "丰宁满族自治县", "value": "130826" }, { "label": "宽城满族自治县", "value": "130827" }, { "label": "围场满族蒙古族自治县", "value": "130828" }, { "label": "承德高新技术产业开发区", "value": "130871" }, { "label": "平泉市", "value": "130881" }], [{ "label": "新华区", "value": "130902" }, { "label": "运河区", "value": "130903" }, { "label": "沧县", "value": "130921" }, { "label": "青县", "value": "130922" }, { "label": "东光县", "value": "130923" }, { "label": "海兴县", "value": "130924" }, { "label": "盐山县", "value": "130925" }, { "label": "肃宁县", "value": "130926" }, { "label": "南皮县", "value": "130927" }, { "label": "吴桥县", "value": "130928" }, { "label": "献县", "value": "130929" }, { "label": "孟村回族自治县", "value": "130930" }, { "label": "河北沧州经济开发区", "value": "130971" }, { "label": "沧州高新技术产业开发区", "value": "130972" }, { "label": "沧州渤海新区", "value": "130973" }, { "label": "泊头市", "value": "130981" }, { "label": "任丘市", "value": "130982" }, { "label": "黄骅市", "value": "130983" }, { "label": "河间市", "value": "130984" }], [{ "label": "安次区", "value": "131002" }, { "label": "广阳区", "value": "131003" }, { "label": "固安县", "value": "131022" }, { "label": "永清县", "value": "131023" }, { "label": "香河县", "value": "131024" }, { "label": "大城县", "value": "131025" }, { "label": "文安县", "value": "131026" }, { "label": "大厂回族自治县", "value": "131028" }, { "label": "廊坊经济技术开发区", "value": "131071" }, { "label": "霸州市", "value": "131081" }, { "label": "三河市", "value": "131082" }], [{ "label": "桃城区", "value": "131102" }, { "label": "冀州区", "value": "131103" }, { "label": "枣强县", "value": "131121" }, { "label": "武邑县", "value": "131122" }, { "label": "武强县", "value": "131123" }, { "label": "饶阳县", "value": "131124" }, { "label": "安平县", "value": "131125" }, { "label": "故城县", "value": "131126" }, { "label": "景县", "value": "131127" }, { "label": "阜城县", "value": "131128" }, { "label": "河北衡水经济开发区", "value": "131171" }, { "label": "衡水滨湖新区", "value": "131172" }, { "label": "深州市", "value": "131182" }]], [[{ "label": "小店区", "value": "140105" }, { "label": "迎泽区", "value": "140106" }, { "label": "杏花岭区", "value": "140107" }, { "label": "尖草坪区", "value": "140108" }, { "label": "万柏林区", "value": "140109" }, { "label": "晋源区", "value": "140110" }, { "label": "清徐县", "value": "140121" }, { "label": "阳曲县", "value": "140122" }, { "label": "娄烦县", "value": "140123" }, { "label": "山西转型综合改革示范区", "value": "140171" }, { "label": "古交市", "value": "140181" }], [{ "label": "城区", "value": "140202" }, { "label": "矿区", "value": "140203" }, { "label": "南郊区", "value": "140211" }, { "label": "新荣区", "value": "140212" }, { "label": "阳高县", "value": "140221" }, { "label": "天镇县", "value": "140222" }, { "label": "广灵县", "value": "140223" }, { "label": "灵丘县", "value": "140224" }, { "label": "浑源县", "value": "140225" }, { "label": "左云县", "value": "140226" }, { "label": "大同县", "value": "140227" }, { "label": "山西大同经济开发区", "value": "140271" }], [{ "label": "城区", "value": "140302" }, { "label": "矿区", "value": "140303" }, { "label": "郊区", "value": "140311" }, { "label": "平定县", "value": "140321" }, { "label": "盂县", "value": "140322" }, { "label": "山西阳泉经济开发区", "value": "140371" }], [{ "label": "城区", "value": "140402" }, { "label": "郊区", "value": "140411" }, { "label": "长治县", "value": "140421" }, { "label": "襄垣县", "value": "140423" }, { "label": "屯留县", "value": "140424" }, { "label": "平顺县", "value": "140425" }, { "label": "黎城县", "value": "140426" }, { "label": "壶关县", "value": "140427" }, { "label": "长子县", "value": "140428" }, { "label": "武乡县", "value": "140429" }, { "label": "沁县", "value": "140430" }, { "label": "沁源县", "value": "140431" }, { "label": "山西长治高新技术产业园区", "value": "140471" }, { "label": "潞城市", "value": "140481" }], [{ "label": "城区", "value": "140502" }, { "label": "沁水县", "value": "140521" }, { "label": "阳城县", "value": "140522" }, { "label": "陵川县", "value": "140524" }, { "label": "泽州县", "value": "140525" }, { "label": "高平市", "value": "140581" }], [{ "label": "朔城区", "value": "140602" }, { "label": "平鲁区", "value": "140603" }, { "label": "山阴县", "value": "140621" }, { "label": "应县", "value": "140622" }, { "label": "右玉县", "value": "140623" }, { "label": "怀仁县", "value": "140624" }, { "label": "山西朔州经济开发区", "value": "140671" }], [{ "label": "榆次区", "value": "140702" }, { "label": "榆社县", "value": "140721" }, { "label": "左权县", "value": "140722" }, { "label": "和顺县", "value": "140723" }, { "label": "昔阳县", "value": "140724" }, { "label": "寿阳县", "value": "140725" }, { "label": "太谷县", "value": "140726" }, { "label": "祁县", "value": "140727" }, { "label": "平遥县", "value": "140728" }, { "label": "灵石县", "value": "140729" }, { "label": "介休市", "value": "140781" }], [{ "label": "盐湖区", "value": "140802" }, { "label": "临猗县", "value": "140821" }, { "label": "万荣县", "value": "140822" }, { "label": "闻喜县", "value": "140823" }, { "label": "稷山县", "value": "140824" }, { "label": "新绛县", "value": "140825" }, { "label": "绛县", "value": "140826" }, { "label": "垣曲县", "value": "140827" }, { "label": "夏县", "value": "140828" }, { "label": "平陆县", "value": "140829" }, { "label": "芮城县", "value": "140830" }, { "label": "永济市", "value": "140881" }, { "label": "河津市", "value": "140882" }], [{ "label": "忻府区", "value": "140902" }, { "label": "定襄县", "value": "140921" }, { "label": "五台县", "value": "140922" }, { "label": "代县", "value": "140923" }, { "label": "繁峙县", "value": "140924" }, { "label": "宁武县", "value": "140925" }, { "label": "静乐县", "value": "140926" }, { "label": "神池县", "value": "140927" }, { "label": "五寨县", "value": "140928" }, { "label": "岢岚县", "value": "140929" }, { "label": "河曲县", "value": "140930" }, { "label": "保德县", "value": "140931" }, { "label": "偏关县", "value": "140932" }, { "label": "五台山风景名胜区", "value": "140971" }, { "label": "原平市", "value": "140981" }], [{ "label": "尧都区", "value": "141002" }, { "label": "曲沃县", "value": "141021" }, { "label": "翼城县", "value": "141022" }, { "label": "襄汾县", "value": "141023" }, { "label": "洪洞县", "value": "141024" }, { "label": "古县", "value": "141025" }, { "label": "安泽县", "value": "141026" }, { "label": "浮山县", "value": "141027" }, { "label": "吉县", "value": "141028" }, { "label": "乡宁县", "value": "141029" }, { "label": "大宁县", "value": "141030" }, { "label": "隰县", "value": "141031" }, { "label": "永和县", "value": "141032" }, { "label": "蒲县", "value": "141033" }, { "label": "汾西县", "value": "141034" }, { "label": "侯马市", "value": "141081" }, { "label": "霍州市", "value": "141082" }], [{ "label": "离石区", "value": "141102" }, { "label": "文水县", "value": "141121" }, { "label": "交城县", "value": "141122" }, { "label": "兴县", "value": "141123" }, { "label": "临县", "value": "141124" }, { "label": "柳林县", "value": "141125" }, { "label": "石楼县", "value": "141126" }, { "label": "岚县", "value": "141127" }, { "label": "方山县", "value": "141128" }, { "label": "中阳县", "value": "141129" }, { "label": "交口县", "value": "141130" }, { "label": "孝义市", "value": "141181" }, { "label": "汾阳市", "value": "141182" }]], [[{ "label": "新城区", "value": "150102" }, { "label": "回民区", "value": "150103" }, { "label": "玉泉区", "value": "150104" }, { "label": "赛罕区", "value": "150105" }, { "label": "土默特左旗", "value": "150121" }, { "label": "托克托县", "value": "150122" }, { "label": "和林格尔县", "value": "150123" }, { "label": "清水河县", "value": "150124" }, { "label": "武川县", "value": "150125" }, { "label": "呼和浩特金海工业园区", "value": "150171" }, { "label": "呼和浩特经济技术开发区", "value": "150172" }], [{ "label": "东河区", "value": "150202" }, { "label": "昆都仑区", "value": "150203" }, { "label": "青山区", "value": "150204" }, { "label": "石拐区", "value": "150205" }, { "label": "白云鄂博矿区", "value": "150206" }, { "label": "九原区", "value": "150207" }, { "label": "土默特右旗", "value": "150221" }, { "label": "固阳县", "value": "150222" }, { "label": "达尔罕茂明安联合旗", "value": "150223" }, { "label": "包头稀土高新技术产业开发区", "value": "150271" }], [{ "label": "海勃湾区", "value": "150302" }, { "label": "海南区", "value": "150303" }, { "label": "乌达区", "value": "150304" }], [{ "label": "红山区", "value": "150402" }, { "label": "元宝山区", "value": "150403" }, { "label": "松山区", "value": "150404" }, { "label": "阿鲁科尔沁旗", "value": "150421" }, { "label": "巴林左旗", "value": "150422" }, { "label": "巴林右旗", "value": "150423" }, { "label": "林西县", "value": "150424" }, { "label": "克什克腾旗", "value": "150425" }, { "label": "翁牛特旗", "value": "150426" }, { "label": "喀喇沁旗", "value": "150428" }, { "label": "宁城县", "value": "150429" }, { "label": "敖汉旗", "value": "150430" }], [{ "label": "科尔沁区", "value": "150502" }, { "label": "科尔沁左翼中旗", "value": "150521" }, { "label": "科尔沁左翼后旗", "value": "150522" }, { "label": "开鲁县", "value": "150523" }, { "label": "库伦旗", "value": "150524" }, { "label": "奈曼旗", "value": "150525" }, { "label": "扎鲁特旗", "value": "150526" }, { "label": "通辽经济技术开发区", "value": "150571" }, { "label": "霍林郭勒市", "value": "150581" }], [{ "label": "东胜区", "value": "150602" }, { "label": "康巴什区", "value": "150603" }, { "label": "达拉特旗", "value": "150621" }, { "label": "准格尔旗", "value": "150622" }, { "label": "鄂托克前旗", "value": "150623" }, { "label": "鄂托克旗", "value": "150624" }, { "label": "杭锦旗", "value": "150625" }, { "label": "乌审旗", "value": "150626" }, { "label": "伊金霍洛旗", "value": "150627" }], [{ "label": "海拉尔区", "value": "150702" }, { "label": "扎赉诺尔区", "value": "150703" }, { "label": "阿荣旗", "value": "150721" }, { "label": "莫力达瓦达斡尔族自治旗", "value": "150722" }, { "label": "鄂伦春自治旗", "value": "150723" }, { "label": "鄂温克族自治旗", "value": "150724" }, { "label": "陈巴尔虎旗", "value": "150725" }, { "label": "新巴尔虎左旗", "value": "150726" }, { "label": "新巴尔虎右旗", "value": "150727" }, { "label": "满洲里市", "value": "150781" }, { "label": "牙克石市", "value": "150782" }, { "label": "扎兰屯市", "value": "150783" }, { "label": "额尔古纳市", "value": "150784" }, { "label": "根河市", "value": "150785" }], [{ "label": "临河区", "value": "150802" }, { "label": "五原县", "value": "150821" }, { "label": "磴口县", "value": "150822" }, { "label": "乌拉特前旗", "value": "150823" }, { "label": "乌拉特中旗", "value": "150824" }, { "label": "乌拉特后旗", "value": "150825" }, { "label": "杭锦后旗", "value": "150826" }], [{ "label": "集宁区", "value": "150902" }, { "label": "卓资县", "value": "150921" }, { "label": "化德县", "value": "150922" }, { "label": "商都县", "value": "150923" }, { "label": "兴和县", "value": "150924" }, { "label": "凉城县", "value": "150925" }, { "label": "察哈尔右翼前旗", "value": "150926" }, { "label": "察哈尔右翼中旗", "value": "150927" }, { "label": "察哈尔右翼后旗", "value": "150928" }, { "label": "四子王旗", "value": "150929" }, { "label": "丰镇市", "value": "150981" }], [{ "label": "乌兰浩特市", "value": "152201" }, { "label": "阿尔山市", "value": "152202" }, { "label": "科尔沁右翼前旗", "value": "152221" }, { "label": "科尔沁右翼中旗", "value": "152222" }, { "label": "扎赉特旗", "value": "152223" }, { "label": "突泉县", "value": "152224" }], [{ "label": "二连浩特市", "value": "152501" }, { "label": "锡林浩特市", "value": "152502" }, { "label": "阿巴嘎旗", "value": "152522" }, { "label": "苏尼特左旗", "value": "152523" }, { "label": "苏尼特右旗", "value": "152524" }, { "label": "东乌珠穆沁旗", "value": "152525" }, { "label": "西乌珠穆沁旗", "value": "152526" }, { "label": "太仆寺旗", "value": "152527" }, { "label": "镶黄旗", "value": "152528" }, { "label": "正镶白旗", "value": "152529" }, { "label": "正蓝旗", "value": "152530" }, { "label": "多伦县", "value": "152531" }, { "label": "乌拉盖管委会", "value": "152571" }], [{ "label": "阿拉善左旗", "value": "152921" }, { "label": "阿拉善右旗", "value": "152922" }, { "label": "额济纳旗", "value": "152923" }, { "label": "内蒙古阿拉善经济开发区", "value": "152971" }]], [[{ "label": "和平区", "value": "210102" }, { "label": "沈河区", "value": "210103" }, { "label": "大东区", "value": "210104" }, { "label": "皇姑区", "value": "210105" }, { "label": "铁西区", "value": "210106" }, { "label": "苏家屯区", "value": "210111" }, { "label": "浑南区", "value": "210112" }, { "label": "沈北新区", "value": "210113" }, { "label": "于洪区", "value": "210114" }, { "label": "辽中区", "value": "210115" }, { "label": "康平县", "value": "210123" }, { "label": "法库县", "value": "210124" }, { "label": "新民市", "value": "210181" }], [{ "label": "中山区", "value": "210202" }, { "label": "西岗区", "value": "210203" }, { "label": "沙河口区", "value": "210204" }, { "label": "甘井子区", "value": "210211" }, { "label": "旅顺口区", "value": "210212" }, { "label": "金州区", "value": "210213" }, { "label": "普兰店区", "value": "210214" }, { "label": "长海县", "value": "210224" }, { "label": "瓦房店市", "value": "210281" }, { "label": "庄河市", "value": "210283" }], [{ "label": "铁东区", "value": "210302" }, { "label": "铁西区", "value": "210303" }, { "label": "立山区", "value": "210304" }, { "label": "千山区", "value": "210311" }, { "label": "台安县", "value": "210321" }, { "label": "岫岩满族自治县", "value": "210323" }, { "label": "海城市", "value": "210381" }], [{ "label": "新抚区", "value": "210402" }, { "label": "东洲区", "value": "210403" }, { "label": "望花区", "value": "210404" }, { "label": "顺城区", "value": "210411" }, { "label": "抚顺县", "value": "210421" }, { "label": "新宾满族自治县", "value": "210422" }, { "label": "清原满族自治县", "value": "210423" }], [{ "label": "平山区", "value": "210502" }, { "label": "溪湖区", "value": "210503" }, { "label": "明山区", "value": "210504" }, { "label": "南芬区", "value": "210505" }, { "label": "本溪满族自治县", "value": "210521" }, { "label": "桓仁满族自治县", "value": "210522" }], [{ "label": "元宝区", "value": "210602" }, { "label": "振兴区", "value": "210603" }, { "label": "振安区", "value": "210604" }, { "label": "宽甸满族自治县", "value": "210624" }, { "label": "东港市", "value": "210681" }, { "label": "凤城市", "value": "210682" }], [{ "label": "古塔区", "value": "210702" }, { "label": "凌河区", "value": "210703" }, { "label": "太和区", "value": "210711" }, { "label": "黑山县", "value": "210726" }, { "label": "义县", "value": "210727" }, { "label": "凌海市", "value": "210781" }, { "label": "北镇市", "value": "210782" }], [{ "label": "站前区", "value": "210802" }, { "label": "西市区", "value": "210803" }, { "label": "鲅鱼圈区", "value": "210804" }, { "label": "老边区", "value": "210811" }, { "label": "盖州市", "value": "210881" }, { "label": "大石桥市", "value": "210882" }], [{ "label": "海州区", "value": "210902" }, { "label": "新邱区", "value": "210903" }, { "label": "太平区", "value": "210904" }, { "label": "清河门区", "value": "210905" }, { "label": "细河区", "value": "210911" }, { "label": "阜新蒙古族自治县", "value": "210921" }, { "label": "彰武县", "value": "210922" }], [{ "label": "白塔区", "value": "211002" }, { "label": "文圣区", "value": "211003" }, { "label": "宏伟区", "value": "211004" }, { "label": "弓长岭区", "value": "211005" }, { "label": "太子河区", "value": "211011" }, { "label": "辽阳县", "value": "211021" }, { "label": "灯塔市", "value": "211081" }], [{ "label": "双台子区", "value": "211102" }, { "label": "兴隆台区", "value": "211103" }, { "label": "大洼区", "value": "211104" }, { "label": "盘山县", "value": "211122" }], [{ "label": "银州区", "value": "211202" }, { "label": "清河区", "value": "211204" }, { "label": "铁岭县", "value": "211221" }, { "label": "西丰县", "value": "211223" }, { "label": "昌图县", "value": "211224" }, { "label": "调兵山市", "value": "211281" }, { "label": "开原市", "value": "211282" }], [{ "label": "双塔区", "value": "211302" }, { "label": "龙城区", "value": "211303" }, { "label": "朝阳县", "value": "211321" }, { "label": "建平县", "value": "211322" }, { "label": "喀喇沁左翼蒙古族自治县", "value": "211324" }, { "label": "北票市", "value": "211381" }, { "label": "凌源市", "value": "211382" }], [{ "label": "连山区", "value": "211402" }, { "label": "龙港区", "value": "211403" }, { "label": "南票区", "value": "211404" }, { "label": "绥中县", "value": "211421" }, { "label": "建昌县", "value": "211422" }, { "label": "兴城市", "value": "211481" }]], [[{ "label": "南关区", "value": "220102" }, { "label": "宽城区", "value": "220103" }, { "label": "朝阳区", "value": "220104" }, { "label": "二道区", "value": "220105" }, { "label": "绿园区", "value": "220106" }, { "label": "双阳区", "value": "220112" }, { "label": "九台区", "value": "220113" }, { "label": "农安县", "value": "220122" }, { "label": "长春经济技术开发区", "value": "220171" }, { "label": "长春净月高新技术产业开发区", "value": "220172" }, { "label": "长春高新技术产业开发区", "value": "220173" }, { "label": "长春汽车经济技术开发区", "value": "220174" }, { "label": "榆树市", "value": "220182" }, { "label": "德惠市", "value": "220183" }], [{ "label": "昌邑区", "value": "220202" }, { "label": "龙潭区", "value": "220203" }, { "label": "船营区", "value": "220204" }, { "label": "丰满区", "value": "220211" }, { "label": "永吉县", "value": "220221" }, { "label": "吉林经济开发区", "value": "220271" }, { "label": "吉林高新技术产业开发区", "value": "220272" }, { "label": "吉林中国新加坡食品区", "value": "220273" }, { "label": "蛟河市", "value": "220281" }, { "label": "桦甸市", "value": "220282" }, { "label": "舒兰市", "value": "220283" }, { "label": "磐石市", "value": "220284" }], [{ "label": "铁西区", "value": "220302" }, { "label": "铁东区", "value": "220303" }, { "label": "梨树县", "value": "220322" }, { "label": "伊通满族自治县", "value": "220323" }, { "label": "公主岭市", "value": "220381" }, { "label": "双辽市", "value": "220382" }], [{ "label": "龙山区", "value": "220402" }, { "label": "西安区", "value": "220403" }, { "label": "东丰县", "value": "220421" }, { "label": "东辽县", "value": "220422" }], [{ "label": "东昌区", "value": "220502" }, { "label": "二道江区", "value": "220503" }, { "label": "通化县", "value": "220521" }, { "label": "辉南县", "value": "220523" }, { "label": "柳河县", "value": "220524" }, { "label": "梅河口市", "value": "220581" }, { "label": "集安市", "value": "220582" }], [{ "label": "浑江区", "value": "220602" }, { "label": "江源区", "value": "220605" }, { "label": "抚松县", "value": "220621" }, { "label": "靖宇县", "value": "220622" }, { "label": "长白朝鲜族自治县", "value": "220623" }, { "label": "临江市", "value": "220681" }], [{ "label": "宁江区", "value": "220702" }, { "label": "前郭尔罗斯蒙古族自治县", "value": "220721" }, { "label": "长岭县", "value": "220722" }, { "label": "乾安县", "value": "220723" }, { "label": "吉林松原经济开发区", "value": "220771" }, { "label": "扶余市", "value": "220781" }], [{ "label": "洮北区", "value": "220802" }, { "label": "镇赉县", "value": "220821" }, { "label": "通榆县", "value": "220822" }, { "label": "吉林白城经济开发区", "value": "220871" }, { "label": "洮南市", "value": "220881" }, { "label": "大安市", "value": "220882" }], [{ "label": "延吉市", "value": "222401" }, { "label": "图们市", "value": "222402" }, { "label": "敦化市", "value": "222403" }, { "label": "珲春市", "value": "222404" }, { "label": "龙井市", "value": "222405" }, { "label": "和龙市", "value": "222406" }, { "label": "汪清县", "value": "222424" }, { "label": "安图县", "value": "222426" }]], [[{ "label": "道里区", "value": "230102" }, { "label": "南岗区", "value": "230103" }, { "label": "道外区", "value": "230104" }, { "label": "平房区", "value": "230108" }, { "label": "松北区", "value": "230109" }, { "label": "香坊区", "value": "230110" }, { "label": "呼兰区", "value": "230111" }, { "label": "阿城区", "value": "230112" }, { "label": "双城区", "value": "230113" }, { "label": "依兰县", "value": "230123" }, { "label": "方正县", "value": "230124" }, { "label": "宾县", "value": "230125" }, { "label": "巴彦县", "value": "230126" }, { "label": "木兰县", "value": "230127" }, { "label": "通河县", "value": "230128" }, { "label": "延寿县", "value": "230129" }, { "label": "尚志市", "value": "230183" }, { "label": "五常市", "value": "230184" }], [{ "label": "龙沙区", "value": "230202" }, { "label": "建华区", "value": "230203" }, { "label": "铁锋区", "value": "230204" }, { "label": "昂昂溪区", "value": "230205" }, { "label": "富拉尔基区", "value": "230206" }, { "label": "碾子山区", "value": "230207" }, { "label": "梅里斯达斡尔族区", "value": "230208" }, { "label": "龙江县", "value": "230221" }, { "label": "依安县", "value": "230223" }, { "label": "泰来县", "value": "230224" }, { "label": "甘南县", "value": "230225" }, { "label": "富裕县", "value": "230227" }, { "label": "克山县", "value": "230229" }, { "label": "克东县", "value": "230230" }, { "label": "拜泉县", "value": "230231" }, { "label": "讷河市", "value": "230281" }], [{ "label": "鸡冠区", "value": "230302" }, { "label": "恒山区", "value": "230303" }, { "label": "滴道区", "value": "230304" }, { "label": "梨树区", "value": "230305" }, { "label": "城子河区", "value": "230306" }, { "label": "麻山区", "value": "230307" }, { "label": "鸡东县", "value": "230321" }, { "label": "虎林市", "value": "230381" }, { "label": "密山市", "value": "230382" }], [{ "label": "向阳区", "value": "230402" }, { "label": "工农区", "value": "230403" }, { "label": "南山区", "value": "230404" }, { "label": "兴安区", "value": "230405" }, { "label": "东山区", "value": "230406" }, { "label": "兴山区", "value": "230407" }, { "label": "萝北县", "value": "230421" }, { "label": "绥滨县", "value": "230422" }], [{ "label": "尖山区", "value": "230502" }, { "label": "岭东区", "value": "230503" }, { "label": "四方台区", "value": "230505" }, { "label": "宝山区", "value": "230506" }, { "label": "集贤县", "value": "230521" }, { "label": "友谊县", "value": "230522" }, { "label": "宝清县", "value": "230523" }, { "label": "饶河县", "value": "230524" }], [{ "label": "萨尔图区", "value": "230602" }, { "label": "龙凤区", "value": "230603" }, { "label": "让胡路区", "value": "230604" }, { "label": "红岗区", "value": "230605" }, { "label": "大同区", "value": "230606" }, { "label": "肇州县", "value": "230621" }, { "label": "肇源县", "value": "230622" }, { "label": "林甸县", "value": "230623" }, { "label": "杜尔伯特蒙古族自治县", "value": "230624" }, { "label": "大庆高新技术产业开发区", "value": "230671" }], [{ "label": "伊春区", "value": "230702" }, { "label": "南岔区", "value": "230703" }, { "label": "友好区", "value": "230704" }, { "label": "西林区", "value": "230705" }, { "label": "翠峦区", "value": "230706" }, { "label": "新青区", "value": "230707" }, { "label": "美溪区", "value": "230708" }, { "label": "金山屯区", "value": "230709" }, { "label": "五营区", "value": "230710" }, { "label": "乌马河区", "value": "230711" }, { "label": "汤旺河区", "value": "230712" }, { "label": "带岭区", "value": "230713" }, { "label": "乌伊岭区", "value": "230714" }, { "label": "红星区", "value": "230715" }, { "label": "上甘岭区", "value": "230716" }, { "label": "嘉荫县", "value": "230722" }, { "label": "铁力市", "value": "230781" }], [{ "label": "向阳区", "value": "230803" }, { "label": "前进区", "value": "230804" }, { "label": "东风区", "value": "230805" }, { "label": "郊区", "value": "230811" }, { "label": "桦南县", "value": "230822" }, { "label": "桦川县", "value": "230826" }, { "label": "汤原县", "value": "230828" }, { "label": "同江市", "value": "230881" }, { "label": "富锦市", "value": "230882" }, { "label": "抚远市", "value": "230883" }], [{ "label": "新兴区", "value": "230902" }, { "label": "桃山区", "value": "230903" }, { "label": "茄子河区", "value": "230904" }, { "label": "勃利县", "value": "230921" }], [{ "label": "东安区", "value": "231002" }, { "label": "阳明区", "value": "231003" }, { "label": "爱民区", "value": "231004" }, { "label": "西安区", "value": "231005" }, { "label": "林口县", "value": "231025" }, { "label": "牡丹江经济技术开发区", "value": "231071" }, { "label": "绥芬河市", "value": "231081" }, { "label": "海林市", "value": "231083" }, { "label": "宁安市", "value": "231084" }, { "label": "穆棱市", "value": "231085" }, { "label": "东宁市", "value": "231086" }], [{ "label": "爱辉区", "value": "231102" }, { "label": "嫩江县", "value": "231121" }, { "label": "逊克县", "value": "231123" }, { "label": "孙吴县", "value": "231124" }, { "label": "北安市", "value": "231181" }, { "label": "五大连池市", "value": "231182" }], [{ "label": "北林区", "value": "231202" }, { "label": "望奎县", "value": "231221" }, { "label": "兰西县", "value": "231222" }, { "label": "青冈县", "value": "231223" }, { "label": "庆安县", "value": "231224" }, { "label": "明水县", "value": "231225" }, { "label": "绥棱县", "value": "231226" }, { "label": "安达市", "value": "231281" }, { "label": "肇东市", "value": "231282" }, { "label": "海伦市", "value": "231283" }], [{ "label": "加格达奇区", "value": "232701" }, { "label": "松岭区", "value": "232702" }, { "label": "新林区", "value": "232703" }, { "label": "呼中区", "value": "232704" }, { "label": "呼玛县", "value": "232721" }, { "label": "塔河县", "value": "232722" }, { "label": "漠河县", "value": "232723" }]], [[{ "label": "黄浦区", "value": "310101" }, { "label": "徐汇区", "value": "310104" }, { "label": "长宁区", "value": "310105" }, { "label": "静安区", "value": "310106" }, { "label": "普陀区", "value": "310107" }, { "label": "虹口区", "value": "310109" }, { "label": "杨浦区", "value": "310110" }, { "label": "闵行区", "value": "310112" }, { "label": "宝山区", "value": "310113" }, { "label": "嘉定区", "value": "310114" }, { "label": "浦东新区", "value": "310115" }, { "label": "金山区", "value": "310116" }, { "label": "松江区", "value": "310117" }, { "label": "青浦区", "value": "310118" }, { "label": "奉贤区", "value": "310120" }, { "label": "崇明区", "value": "310151" }]], [[{ "label": "玄武区", "value": "320102" }, { "label": "秦淮区", "value": "320104" }, { "label": "建邺区", "value": "320105" }, { "label": "鼓楼区", "value": "320106" }, { "label": "浦口区", "value": "320111" }, { "label": "栖霞区", "value": "320113" }, { "label": "雨花台区", "value": "320114" }, { "label": "江宁区", "value": "320115" }, { "label": "六合区", "value": "320116" }, { "label": "溧水区", "value": "320117" }, { "label": "高淳区", "value": "320118" }], [{ "label": "锡山区", "value": "320205" }, { "label": "惠山区", "value": "320206" }, { "label": "滨湖区", "value": "320211" }, { "label": "梁溪区", "value": "320213" }, { "label": "新吴区", "value": "320214" }, { "label": "江阴市", "value": "320281" }, { "label": "宜兴市", "value": "320282" }], [{ "label": "鼓楼区", "value": "320302" }, { "label": "云龙区", "value": "320303" }, { "label": "贾汪区", "value": "320305" }, { "label": "泉山区", "value": "320311" }, { "label": "铜山区", "value": "320312" }, { "label": "丰县", "value": "320321" }, { "label": "沛县", "value": "320322" }, { "label": "睢宁县", "value": "320324" }, { "label": "徐州经济技术开发区", "value": "320371" }, { "label": "新沂市", "value": "320381" }, { "label": "邳州市", "value": "320382" }], [{ "label": "天宁区", "value": "320402" }, { "label": "钟楼区", "value": "320404" }, { "label": "新北区", "value": "320411" }, { "label": "武进区", "value": "320412" }, { "label": "金坛区", "value": "320413" }, { "label": "溧阳市", "value": "320481" }], [{ "label": "虎丘区", "value": "320505" }, { "label": "吴中区", "value": "320506" }, { "label": "相城区", "value": "320507" }, { "label": "姑苏区", "value": "320508" }, { "label": "吴江区", "value": "320509" }, { "label": "苏州工业园区", "value": "320571" }, { "label": "常熟市", "value": "320581" }, { "label": "张家港市", "value": "320582" }, { "label": "昆山市", "value": "320583" }, { "label": "太仓市", "value": "320585" }], [{ "label": "崇川区", "value": "320602" }, { "label": "港闸区", "value": "320611" }, { "label": "通州区", "value": "320612" }, { "label": "海安县", "value": "320621" }, { "label": "如东县", "value": "320623" }, { "label": "南通经济技术开发区", "value": "320671" }, { "label": "启东市", "value": "320681" }, { "label": "如皋市", "value": "320682" }, { "label": "海门市", "value": "320684" }], [{ "label": "连云区", "value": "320703" }, { "label": "海州区", "value": "320706" }, { "label": "赣榆区", "value": "320707" }, { "label": "东海县", "value": "320722" }, { "label": "灌云县", "value": "320723" }, { "label": "灌南县", "value": "320724" }, { "label": "连云港经济技术开发区", "value": "320771" }, { "label": "连云港高新技术产业开发区", "value": "320772" }], [{ "label": "淮安区", "value": "320803" }, { "label": "淮阴区", "value": "320804" }, { "label": "清江浦区", "value": "320812" }, { "label": "洪泽区", "value": "320813" }, { "label": "涟水县", "value": "320826" }, { "label": "盱眙县", "value": "320830" }, { "label": "金湖县", "value": "320831" }, { "label": "淮安经济技术开发区", "value": "320871" }], [{ "label": "亭湖区", "value": "320902" }, { "label": "盐都区", "value": "320903" }, { "label": "大丰区", "value": "320904" }, { "label": "响水县", "value": "320921" }, { "label": "滨海县", "value": "320922" }, { "label": "阜宁县", "value": "320923" }, { "label": "射阳县", "value": "320924" }, { "label": "建湖县", "value": "320925" }, { "label": "盐城经济技术开发区", "value": "320971" }, { "label": "东台市", "value": "320981" }], [{ "label": "广陵区", "value": "321002" }, { "label": "邗江区", "value": "321003" }, { "label": "江都区", "value": "321012" }, { "label": "宝应县", "value": "321023" }, { "label": "扬州经济技术开发区", "value": "321071" }, { "label": "仪征市", "value": "321081" }, { "label": "高邮市", "value": "321084" }], [{ "label": "京口区", "value": "321102" }, { "label": "润州区", "value": "321111" }, { "label": "丹徒区", "value": "321112" }, { "label": "镇江新区", "value": "321171" }, { "label": "丹阳市", "value": "321181" }, { "label": "扬中市", "value": "321182" }, { "label": "句容市", "value": "321183" }], [{ "label": "海陵区", "value": "321202" }, { "label": "高港区", "value": "321203" }, { "label": "姜堰区", "value": "321204" }, { "label": "泰州医药高新技术产业开发区", "value": "321271" }, { "label": "兴化市", "value": "321281" }, { "label": "靖江市", "value": "321282" }, { "label": "泰兴市", "value": "321283" }], [{ "label": "宿城区", "value": "321302" }, { "label": "宿豫区", "value": "321311" }, { "label": "沭阳县", "value": "321322" }, { "label": "泗阳县", "value": "321323" }, { "label": "泗洪县", "value": "321324" }, { "label": "宿迁经济技术开发区", "value": "321371" }]], [[{ "label": "上城区", "value": "330102" }, { "label": "下城区", "value": "330103" }, { "label": "江干区", "value": "330104" }, { "label": "拱墅区", "value": "330105" }, { "label": "西湖区", "value": "330106" }, { "label": "滨江区", "value": "330108" }, { "label": "萧山区", "value": "330109" }, { "label": "余杭区", "value": "330110" }, { "label": "富阳区", "value": "330111" }, { "label": "临安区", "value": "330112" }, { "label": "桐庐县", "value": "330122" }, { "label": "淳安县", "value": "330127" }, { "label": "建德市", "value": "330182" }], [{ "label": "海曙区", "value": "330203" }, { "label": "江北区", "value": "330205" }, { "label": "北仑区", "value": "330206" }, { "label": "镇海区", "value": "330211" }, { "label": "鄞州区", "value": "330212" }, { "label": "奉化区", "value": "330213" }, { "label": "象山县", "value": "330225" }, { "label": "宁海县", "value": "330226" }, { "label": "余姚市", "value": "330281" }, { "label": "慈溪市", "value": "330282" }], [{ "label": "鹿城区", "value": "330302" }, { "label": "龙湾区", "value": "330303" }, { "label": "瓯海区", "value": "330304" }, { "label": "洞头区", "value": "330305" }, { "label": "永嘉县", "value": "330324" }, { "label": "平阳县", "value": "330326" }, { "label": "苍南县", "value": "330327" }, { "label": "文成县", "value": "330328" }, { "label": "泰顺县", "value": "330329" }, { "label": "温州经济技术开发区", "value": "330371" }, { "label": "瑞安市", "value": "330381" }, { "label": "乐清市", "value": "330382" }], [{ "label": "南湖区", "value": "330402" }, { "label": "秀洲区", "value": "330411" }, { "label": "嘉善县", "value": "330421" }, { "label": "海盐县", "value": "330424" }, { "label": "海宁市", "value": "330481" }, { "label": "平湖市", "value": "330482" }, { "label": "桐乡市", "value": "330483" }], [{ "label": "吴兴区", "value": "330502" }, { "label": "南浔区", "value": "330503" }, { "label": "德清县", "value": "330521" }, { "label": "长兴县", "value": "330522" }, { "label": "安吉县", "value": "330523" }], [{ "label": "越城区", "value": "330602" }, { "label": "柯桥区", "value": "330603" }, { "label": "上虞区", "value": "330604" }, { "label": "新昌县", "value": "330624" }, { "label": "诸暨市", "value": "330681" }, { "label": "嵊州市", "value": "330683" }], [{ "label": "婺城区", "value": "330702" }, { "label": "金东区", "value": "330703" }, { "label": "武义县", "value": "330723" }, { "label": "浦江县", "value": "330726" }, { "label": "磐安县", "value": "330727" }, { "label": "兰溪市", "value": "330781" }, { "label": "义乌市", "value": "330782" }, { "label": "东阳市", "value": "330783" }, { "label": "永康市", "value": "330784" }], [{ "label": "柯城区", "value": "330802" }, { "label": "衢江区", "value": "330803" }, { "label": "常山县", "value": "330822" }, { "label": "开化县", "value": "330824" }, { "label": "龙游县", "value": "330825" }, { "label": "江山市", "value": "330881" }], [{ "label": "定海区", "value": "330902" }, { "label": "普陀区", "value": "330903" }, { "label": "岱山县", "value": "330921" }, { "label": "嵊泗县", "value": "330922" }], [{ "label": "椒江区", "value": "331002" }, { "label": "黄岩区", "value": "331003" }, { "label": "路桥区", "value": "331004" }, { "label": "三门县", "value": "331022" }, { "label": "天台县", "value": "331023" }, { "label": "仙居县", "value": "331024" }, { "label": "温岭市", "value": "331081" }, { "label": "临海市", "value": "331082" }, { "label": "玉环市", "value": "331083" }], [{ "label": "莲都区", "value": "331102" }, { "label": "青田县", "value": "331121" }, { "label": "缙云县", "value": "331122" }, { "label": "遂昌县", "value": "331123" }, { "label": "松阳县", "value": "331124" }, { "label": "云和县", "value": "331125" }, { "label": "庆元县", "value": "331126" }, { "label": "景宁畲族自治县", "value": "331127" }, { "label": "龙泉市", "value": "331181" }]], [[{ "label": "瑶海区", "value": "340102" }, { "label": "庐阳区", "value": "340103" }, { "label": "蜀山区", "value": "340104" }, { "label": "包河区", "value": "340111" }, { "label": "长丰县", "value": "340121" }, { "label": "肥东县", "value": "340122" }, { "label": "肥西县", "value": "340123" }, { "label": "庐江县", "value": "340124" }, { "label": "合肥高新技术产业开发区", "value": "340171" }, { "label": "合肥经济技术开发区", "value": "340172" }, { "label": "合肥新站高新技术产业开发区", "value": "340173" }, { "label": "巢湖市", "value": "340181" }], [{ "label": "镜湖区", "value": "340202" }, { "label": "弋江区", "value": "340203" }, { "label": "鸠江区", "value": "340207" }, { "label": "三山区", "value": "340208" }, { "label": "芜湖县", "value": "340221" }, { "label": "繁昌县", "value": "340222" }, { "label": "南陵县", "value": "340223" }, { "label": "无为县", "value": "340225" }, { "label": "芜湖经济技术开发区", "value": "340271" }, { "label": "安徽芜湖长江大桥经济开发区", "value": "340272" }], [{ "label": "龙子湖区", "value": "340302" }, { "label": "蚌山区", "value": "340303" }, { "label": "禹会区", "value": "340304" }, { "label": "淮上区", "value": "340311" }, { "label": "怀远县", "value": "340321" }, { "label": "五河县", "value": "340322" }, { "label": "固镇县", "value": "340323" }, { "label": "蚌埠市高新技术开发区", "value": "340371" }, { "label": "蚌埠市经济开发区", "value": "340372" }], [{ "label": "大通区", "value": "340402" }, { "label": "田家庵区", "value": "340403" }, { "label": "谢家集区", "value": "340404" }, { "label": "八公山区", "value": "340405" }, { "label": "潘集区", "value": "340406" }, { "label": "凤台县", "value": "340421" }, { "label": "寿县", "value": "340422" }], [{ "label": "花山区", "value": "340503" }, { "label": "雨山区", "value": "340504" }, { "label": "博望区", "value": "340506" }, { "label": "当涂县", "value": "340521" }, { "label": "含山县", "value": "340522" }, { "label": "和县", "value": "340523" }], [{ "label": "杜集区", "value": "340602" }, { "label": "相山区", "value": "340603" }, { "label": "烈山区", "value": "340604" }, { "label": "濉溪县", "value": "340621" }], [{ "label": "铜官区", "value": "340705" }, { "label": "义安区", "value": "340706" }, { "label": "郊区", "value": "340711" }, { "label": "枞阳县", "value": "340722" }], [{ "label": "迎江区", "value": "340802" }, { "label": "大观区", "value": "340803" }, { "label": "宜秀区", "value": "340811" }, { "label": "怀宁县", "value": "340822" }, { "label": "潜山县", "value": "340824" }, { "label": "太湖县", "value": "340825" }, { "label": "宿松县", "value": "340826" }, { "label": "望江县", "value": "340827" }, { "label": "岳西县", "value": "340828" }, { "label": "安徽安庆经济开发区", "value": "340871" }, { "label": "桐城市", "value": "340881" }], [{ "label": "屯溪区", "value": "341002" }, { "label": "黄山区", "value": "341003" }, { "label": "徽州区", "value": "341004" }, { "label": "歙县", "value": "341021" }, { "label": "休宁县", "value": "341022" }, { "label": "黟县", "value": "341023" }, { "label": "祁门县", "value": "341024" }], [{ "label": "琅琊区", "value": "341102" }, { "label": "南谯区", "value": "341103" }, { "label": "来安县", "value": "341122" }, { "label": "全椒县", "value": "341124" }, { "label": "定远县", "value": "341125" }, { "label": "凤阳县", "value": "341126" }, { "label": "苏滁现代产业园", "value": "341171" }, { "label": "滁州经济技术开发区", "value": "341172" }, { "label": "天长市", "value": "341181" }, { "label": "明光市", "value": "341182" }], [{ "label": "颍州区", "value": "341202" }, { "label": "颍东区", "value": "341203" }, { "label": "颍泉区", "value": "341204" }, { "label": "临泉县", "value": "341221" }, { "label": "太和县", "value": "341222" }, { "label": "阜南县", "value": "341225" }, { "label": "颍上县", "value": "341226" }, { "label": "阜阳合肥现代产业园区", "value": "341271" }, { "label": "阜阳经济技术开发区", "value": "341272" }, { "label": "界首市", "value": "341282" }], [{ "label": "埇桥区", "value": "341302" }, { "label": "砀山县", "value": "341321" }, { "label": "萧县", "value": "341322" }, { "label": "灵璧县", "value": "341323" }, { "label": "泗县", "value": "341324" }, { "label": "宿州马鞍山现代产业园区", "value": "341371" }, { "label": "宿州经济技术开发区", "value": "341372" }], [{ "label": "金安区", "value": "341502" }, { "label": "裕安区", "value": "341503" }, { "label": "叶集区", "value": "341504" }, { "label": "霍邱县", "value": "341522" }, { "label": "舒城县", "value": "341523" }, { "label": "金寨县", "value": "341524" }, { "label": "霍山县", "value": "341525" }], [{ "label": "谯城区", "value": "341602" }, { "label": "涡阳县", "value": "341621" }, { "label": "蒙城县", "value": "341622" }, { "label": "利辛县", "value": "341623" }], [{ "label": "贵池区", "value": "341702" }, { "label": "东至县", "value": "341721" }, { "label": "石台县", "value": "341722" }, { "label": "青阳县", "value": "341723" }], [{ "label": "宣州区", "value": "341802" }, { "label": "郎溪县", "value": "341821" }, { "label": "广德县", "value": "341822" }, { "label": "泾县", "value": "341823" }, { "label": "绩溪县", "value": "341824" }, { "label": "旌德县", "value": "341825" }, { "label": "宣城市经济开发区", "value": "341871" }, { "label": "宁国市", "value": "341881" }]], [[{ "label": "鼓楼区", "value": "350102" }, { "label": "台江区", "value": "350103" }, { "label": "仓山区", "value": "350104" }, { "label": "马尾区", "value": "350105" }, { "label": "晋安区", "value": "350111" }, { "label": "闽侯县", "value": "350121" }, { "label": "连江县", "value": "350122" }, { "label": "罗源县", "value": "350123" }, { "label": "闽清县", "value": "350124" }, { "label": "永泰县", "value": "350125" }, { "label": "平潭县", "value": "350128" }, { "label": "福清市", "value": "350181" }, { "label": "长乐市", "value": "350182" }], [{ "label": "思明区", "value": "350203" }, { "label": "海沧区", "value": "350205" }, { "label": "湖里区", "value": "350206" }, { "label": "集美区", "value": "350211" }, { "label": "同安区", "value": "350212" }, { "label": "翔安区", "value": "350213" }], [{ "label": "城厢区", "value": "350302" }, { "label": "涵江区", "value": "350303" }, { "label": "荔城区", "value": "350304" }, { "label": "秀屿区", "value": "350305" }, { "label": "仙游县", "value": "350322" }], [{ "label": "梅列区", "value": "350402" }, { "label": "三元区", "value": "350403" }, { "label": "明溪县", "value": "350421" }, { "label": "清流县", "value": "350423" }, { "label": "宁化县", "value": "350424" }, { "label": "大田县", "value": "350425" }, { "label": "尤溪县", "value": "350426" }, { "label": "沙县", "value": "350427" }, { "label": "将乐县", "value": "350428" }, { "label": "泰宁县", "value": "350429" }, { "label": "建宁县", "value": "350430" }, { "label": "永安市", "value": "350481" }], [{ "label": "鲤城区", "value": "350502" }, { "label": "丰泽区", "value": "350503" }, { "label": "洛江区", "value": "350504" }, { "label": "泉港区", "value": "350505" }, { "label": "惠安县", "value": "350521" }, { "label": "安溪县", "value": "350524" }, { "label": "永春县", "value": "350525" }, { "label": "德化县", "value": "350526" }, { "label": "金门县", "value": "350527" }, { "label": "石狮市", "value": "350581" }, { "label": "晋江市", "value": "350582" }, { "label": "南安市", "value": "350583" }], [{ "label": "芗城区", "value": "350602" }, { "label": "龙文区", "value": "350603" }, { "label": "云霄县", "value": "350622" }, { "label": "漳浦县", "value": "350623" }, { "label": "诏安县", "value": "350624" }, { "label": "长泰县", "value": "350625" }, { "label": "东山县", "value": "350626" }, { "label": "南靖县", "value": "350627" }, { "label": "平和县", "value": "350628" }, { "label": "华安县", "value": "350629" }, { "label": "龙海市", "value": "350681" }], [{ "label": "延平区", "value": "350702" }, { "label": "建阳区", "value": "350703" }, { "label": "顺昌县", "value": "350721" }, { "label": "浦城县", "value": "350722" }, { "label": "光泽县", "value": "350723" }, { "label": "松溪县", "value": "350724" }, { "label": "政和县", "value": "350725" }, { "label": "邵武市", "value": "350781" }, { "label": "武夷山市", "value": "350782" }, { "label": "建瓯市", "value": "350783" }], [{ "label": "新罗区", "value": "350802" }, { "label": "永定区", "value": "350803" }, { "label": "长汀县", "value": "350821" }, { "label": "上杭县", "value": "350823" }, { "label": "武平县", "value": "350824" }, { "label": "连城县", "value": "350825" }, { "label": "漳平市", "value": "350881" }], [{ "label": "蕉城区", "value": "350902" }, { "label": "霞浦县", "value": "350921" }, { "label": "古田县", "value": "350922" }, { "label": "屏南县", "value": "350923" }, { "label": "寿宁县", "value": "350924" }, { "label": "周宁县", "value": "350925" }, { "label": "柘荣县", "value": "350926" }, { "label": "福安市", "value": "350981" }, { "label": "福鼎市", "value": "350982" }]], [[{ "label": "东湖区", "value": "360102" }, { "label": "西湖区", "value": "360103" }, { "label": "青云谱区", "value": "360104" }, { "label": "湾里区", "value": "360105" }, { "label": "青山湖区", "value": "360111" }, { "label": "新建区", "value": "360112" }, { "label": "南昌县", "value": "360121" }, { "label": "安义县", "value": "360123" }, { "label": "进贤县", "value": "360124" }], [{ "label": "昌江区", "value": "360202" }, { "label": "珠山区", "value": "360203" }, { "label": "浮梁县", "value": "360222" }, { "label": "乐平市", "value": "360281" }], [{ "label": "安源区", "value": "360302" }, { "label": "湘东区", "value": "360313" }, { "label": "莲花县", "value": "360321" }, { "label": "上栗县", "value": "360322" }, { "label": "芦溪县", "value": "360323" }], [{ "label": "濂溪区", "value": "360402" }, { "label": "浔阳区", "value": "360403" }, { "label": "柴桑区", "value": "360404" }, { "label": "武宁县", "value": "360423" }, { "label": "修水县", "value": "360424" }, { "label": "永修县", "value": "360425" }, { "label": "德安县", "value": "360426" }, { "label": "都昌县", "value": "360428" }, { "label": "湖口县", "value": "360429" }, { "label": "彭泽县", "value": "360430" }, { "label": "瑞昌市", "value": "360481" }, { "label": "共青城市", "value": "360482" }, { "label": "庐山市", "value": "360483" }], [{ "label": "渝水区", "value": "360502" }, { "label": "分宜县", "value": "360521" }], [{ "label": "月湖区", "value": "360602" }, { "label": "余江县", "value": "360622" }, { "label": "贵溪市", "value": "360681" }], [{ "label": "章贡区", "value": "360702" }, { "label": "南康区", "value": "360703" }, { "label": "赣县区", "value": "360704" }, { "label": "信丰县", "value": "360722" }, { "label": "大余县", "value": "360723" }, { "label": "上犹县", "value": "360724" }, { "label": "崇义县", "value": "360725" }, { "label": "安远县", "value": "360726" }, { "label": "龙南县", "value": "360727" }, { "label": "定南县", "value": "360728" }, { "label": "全南县", "value": "360729" }, { "label": "宁都县", "value": "360730" }, { "label": "于都县", "value": "360731" }, { "label": "兴国县", "value": "360732" }, { "label": "会昌县", "value": "360733" }, { "label": "寻乌县", "value": "360734" }, { "label": "石城县", "value": "360735" }, { "label": "瑞金市", "value": "360781" }], [{ "label": "吉州区", "value": "360802" }, { "label": "青原区", "value": "360803" }, { "label": "吉安县", "value": "360821" }, { "label": "吉水县", "value": "360822" }, { "label": "峡江县", "value": "360823" }, { "label": "新干县", "value": "360824" }, { "label": "永丰县", "value": "360825" }, { "label": "泰和县", "value": "360826" }, { "label": "遂川县", "value": "360827" }, { "label": "万安县", "value": "360828" }, { "label": "安福县", "value": "360829" }, { "label": "永新县", "value": "360830" }, { "label": "井冈山市", "value": "360881" }], [{ "label": "袁州区", "value": "360902" }, { "label": "奉新县", "value": "360921" }, { "label": "万载县", "value": "360922" }, { "label": "上高县", "value": "360923" }, { "label": "宜丰县", "value": "360924" }, { "label": "靖安县", "value": "360925" }, { "label": "铜鼓县", "value": "360926" }, { "label": "丰城市", "value": "360981" }, { "label": "樟树市", "value": "360982" }, { "label": "高安市", "value": "360983" }], [{ "label": "临川区", "value": "361002" }, { "label": "东乡区", "value": "361003" }, { "label": "南城县", "value": "361021" }, { "label": "黎川县", "value": "361022" }, { "label": "南丰县", "value": "361023" }, { "label": "崇仁县", "value": "361024" }, { "label": "乐安县", "value": "361025" }, { "label": "宜黄县", "value": "361026" }, { "label": "金溪县", "value": "361027" }, { "label": "资溪县", "value": "361028" }, { "label": "广昌县", "value": "361030" }], [{ "label": "信州区", "value": "361102" }, { "label": "广丰区", "value": "361103" }, { "label": "上饶县", "value": "361121" }, { "label": "玉山县", "value": "361123" }, { "label": "铅山县", "value": "361124" }, { "label": "横峰县", "value": "361125" }, { "label": "弋阳县", "value": "361126" }, { "label": "余干县", "value": "361127" }, { "label": "鄱阳县", "value": "361128" }, { "label": "万年县", "value": "361129" }, { "label": "婺源县", "value": "361130" }, { "label": "德兴市", "value": "361181" }]], [[{ "label": "历下区", "value": "370102" }, { "label": "市中区", "value": "370103" }, { "label": "槐荫区", "value": "370104" }, { "label": "天桥区", "value": "370105" }, { "label": "历城区", "value": "370112" }, { "label": "长清区", "value": "370113" }, { "label": "章丘区", "value": "370114" }, { "label": "平阴县", "value": "370124" }, { "label": "济阳县", "value": "370125" }, { "label": "商河县", "value": "370126" }, { "label": "济南高新技术产业开发区", "value": "370171" }], [{ "label": "市南区", "value": "370202" }, { "label": "市北区", "value": "370203" }, { "label": "黄岛区", "value": "370211" }, { "label": "崂山区", "value": "370212" }, { "label": "李沧区", "value": "370213" }, { "label": "城阳区", "value": "370214" }, { "label": "即墨区", "value": "370215" }, { "label": "青岛高新技术产业开发区", "value": "370271" }, { "label": "胶州市", "value": "370281" }, { "label": "平度市", "value": "370283" }, { "label": "莱西市", "value": "370285" }], [{ "label": "淄川区", "value": "370302" }, { "label": "张店区", "value": "370303" }, { "label": "博山区", "value": "370304" }, { "label": "临淄区", "value": "370305" }, { "label": "周村区", "value": "370306" }, { "label": "桓台县", "value": "370321" }, { "label": "高青县", "value": "370322" }, { "label": "沂源县", "value": "370323" }], [{ "label": "市中区", "value": "370402" }, { "label": "薛城区", "value": "370403" }, { "label": "峄城区", "value": "370404" }, { "label": "台儿庄区", "value": "370405" }, { "label": "山亭区", "value": "370406" }, { "label": "滕州市", "value": "370481" }], [{ "label": "东营区", "value": "370502" }, { "label": "河口区", "value": "370503" }, { "label": "垦利区", "value": "370505" }, { "label": "利津县", "value": "370522" }, { "label": "广饶县", "value": "370523" }, { "label": "东营经济技术开发区", "value": "370571" }, { "label": "东营港经济开发区", "value": "370572" }], [{ "label": "芝罘区", "value": "370602" }, { "label": "福山区", "value": "370611" }, { "label": "牟平区", "value": "370612" }, { "label": "莱山区", "value": "370613" }, { "label": "长岛县", "value": "370634" }, { "label": "烟台高新技术产业开发区", "value": "370671" }, { "label": "烟台经济技术开发区", "value": "370672" }, { "label": "龙口市", "value": "370681" }, { "label": "莱阳市", "value": "370682" }, { "label": "莱州市", "value": "370683" }, { "label": "蓬莱市", "value": "370684" }, { "label": "招远市", "value": "370685" }, { "label": "栖霞市", "value": "370686" }, { "label": "海阳市", "value": "370687" }], [{ "label": "潍城区", "value": "370702" }, { "label": "寒亭区", "value": "370703" }, { "label": "坊子区", "value": "370704" }, { "label": "奎文区", "value": "370705" }, { "label": "临朐县", "value": "370724" }, { "label": "昌乐县", "value": "370725" }, { "label": "潍坊滨海经济技术开发区", "value": "370772" }, { "label": "青州市", "value": "370781" }, { "label": "诸城市", "value": "370782" }, { "label": "寿光市", "value": "370783" }, { "label": "安丘市", "value": "370784" }, { "label": "高密市", "value": "370785" }, { "label": "昌邑市", "value": "370786" }], [{ "label": "任城区", "value": "370811" }, { "label": "兖州区", "value": "370812" }, { "label": "微山县", "value": "370826" }, { "label": "鱼台县", "value": "370827" }, { "label": "金乡县", "value": "370828" }, { "label": "嘉祥县", "value": "370829" }, { "label": "汶上县", "value": "370830" }, { "label": "泗水县", "value": "370831" }, { "label": "梁山县", "value": "370832" }, { "label": "济宁高新技术产业开发区", "value": "370871" }, { "label": "曲阜市", "value": "370881" }, { "label": "邹城市", "value": "370883" }], [{ "label": "泰山区", "value": "370902" }, { "label": "岱岳区", "value": "370911" }, { "label": "宁阳县", "value": "370921" }, { "label": "东平县", "value": "370923" }, { "label": "新泰市", "value": "370982" }, { "label": "肥城市", "value": "370983" }], [{ "label": "环翠区", "value": "371002" }, { "label": "文登区", "value": "371003" }, { "label": "威海火炬高技术产业开发区", "value": "371071" }, { "label": "威海经济技术开发区", "value": "371072" }, { "label": "威海临港经济技术开发区", "value": "371073" }, { "label": "荣成市", "value": "371082" }, { "label": "乳山市", "value": "371083" }], [{ "label": "东港区", "value": "371102" }, { "label": "岚山区", "value": "371103" }, { "label": "五莲县", "value": "371121" }, { "label": "莒县", "value": "371122" }, { "label": "日照经济技术开发区", "value": "371171" }, { "label": "日照国际海洋城", "value": "371172" }], [{ "label": "莱城区", "value": "371202" }, { "label": "钢城区", "value": "371203" }], [{ "label": "兰山区", "value": "371302" }, { "label": "罗庄区", "value": "371311" }, { "label": "河东区", "value": "371312" }, { "label": "沂南县", "value": "371321" }, { "label": "郯城县", "value": "371322" }, { "label": "沂水县", "value": "371323" }, { "label": "兰陵县", "value": "371324" }, { "label": "费县", "value": "371325" }, { "label": "平邑县", "value": "371326" }, { "label": "莒南县", "value": "371327" }, { "label": "蒙阴县", "value": "371328" }, { "label": "临沭县", "value": "371329" }, { "label": "临沂高新技术产业开发区", "value": "371371" }, { "label": "临沂经济技术开发区", "value": "371372" }, { "label": "临沂临港经济开发区", "value": "371373" }], [{ "label": "德城区", "value": "371402" }, { "label": "陵城区", "value": "371403" }, { "label": "宁津县", "value": "371422" }, { "label": "庆云县", "value": "371423" }, { "label": "临邑县", "value": "371424" }, { "label": "齐河县", "value": "371425" }, { "label": "平原县", "value": "371426" }, { "label": "夏津县", "value": "371427" }, { "label": "武城县", "value": "371428" }, { "label": "德州经济技术开发区", "value": "371471" }, { "label": "德州运河经济开发区", "value": "371472" }, { "label": "乐陵市", "value": "371481" }, { "label": "禹城市", "value": "371482" }], [{ "label": "东昌府区", "value": "371502" }, { "label": "阳谷县", "value": "371521" }, { "label": "莘县", "value": "371522" }, { "label": "茌平县", "value": "371523" }, { "label": "东阿县", "value": "371524" }, { "label": "冠县", "value": "371525" }, { "label": "高唐县", "value": "371526" }, { "label": "临清市", "value": "371581" }], [{ "label": "滨城区", "value": "371602" }, { "label": "沾化区", "value": "371603" }, { "label": "惠民县", "value": "371621" }, { "label": "阳信县", "value": "371622" }, { "label": "无棣县", "value": "371623" }, { "label": "博兴县", "value": "371625" }, { "label": "邹平县", "value": "371626" }], [{ "label": "牡丹区", "value": "371702" }, { "label": "定陶区", "value": "371703" }, { "label": "曹县", "value": "371721" }, { "label": "单县", "value": "371722" }, { "label": "成武县", "value": "371723" }, { "label": "巨野县", "value": "371724" }, { "label": "郓城县", "value": "371725" }, { "label": "鄄城县", "value": "371726" }, { "label": "东明县", "value": "371728" }, { "label": "菏泽经济技术开发区", "value": "371771" }, { "label": "菏泽高新技术开发区", "value": "371772" }]], [[{ "label": "中原区", "value": "410102" }, { "label": "二七区", "value": "410103" }, { "label": "管城回族区", "value": "410104" }, { "label": "金水区", "value": "410105" }, { "label": "上街区", "value": "410106" }, { "label": "惠济区", "value": "410108" }, { "label": "中牟县", "value": "410122" }, { "label": "郑州经济技术开发区", "value": "410171" }, { "label": "郑州高新技术产业开发区", "value": "410172" }, { "label": "郑州航空港经济综合实验区", "value": "410173" }, { "label": "巩义市", "value": "410181" }, { "label": "荥阳市", "value": "410182" }, { "label": "新密市", "value": "410183" }, { "label": "新郑市", "value": "410184" }, { "label": "登封市", "value": "410185" }], [{ "label": "龙亭区", "value": "410202" }, { "label": "顺河回族区", "value": "410203" }, { "label": "鼓楼区", "value": "410204" }, { "label": "禹王台区", "value": "410205" }, { "label": "祥符区", "value": "410212" }, { "label": "杞县", "value": "410221" }, { "label": "通许县", "value": "410222" }, { "label": "尉氏县", "value": "410223" }, { "label": "兰考县", "value": "410225" }], [{ "label": "老城区", "value": "410302" }, { "label": "西工区", "value": "410303" }, { "label": "瀍河回族区", "value": "410304" }, { "label": "涧西区", "value": "410305" }, { "label": "吉利区", "value": "410306" }, { "label": "洛龙区", "value": "410311" }, { "label": "孟津县", "value": "410322" }, { "label": "新安县", "value": "410323" }, { "label": "栾川县", "value": "410324" }, { "label": "嵩县", "value": "410325" }, { "label": "汝阳县", "value": "410326" }, { "label": "宜阳县", "value": "410327" }, { "label": "洛宁县", "value": "410328" }, { "label": "伊川县", "value": "410329" }, { "label": "洛阳高新技术产业开发区", "value": "410371" }, { "label": "偃师市", "value": "410381" }], [{ "label": "新华区", "value": "410402" }, { "label": "卫东区", "value": "410403" }, { "label": "石龙区", "value": "410404" }, { "label": "湛河区", "value": "410411" }, { "label": "宝丰县", "value": "410421" }, { "label": "叶县", "value": "410422" }, { "label": "鲁山县", "value": "410423" }, { "label": "郏县", "value": "410425" }, { "label": "平顶山高新技术产业开发区", "value": "410471" }, { "label": "平顶山市新城区", "value": "410472" }, { "label": "舞钢市", "value": "410481" }, { "label": "汝州市", "value": "410482" }], [{ "label": "文峰区", "value": "410502" }, { "label": "北关区", "value": "410503" }, { "label": "殷都区", "value": "410505" }, { "label": "龙安区", "value": "410506" }, { "label": "安阳县", "value": "410522" }, { "label": "汤阴县", "value": "410523" }, { "label": "滑县", "value": "410526" }, { "label": "内黄县", "value": "410527" }, { "label": "安阳高新技术产业开发区", "value": "410571" }, { "label": "林州市", "value": "410581" }], [{ "label": "鹤山区", "value": "410602" }, { "label": "山城区", "value": "410603" }, { "label": "淇滨区", "value": "410611" }, { "label": "浚县", "value": "410621" }, { "label": "淇县", "value": "410622" }, { "label": "鹤壁经济技术开发区", "value": "410671" }], [{ "label": "红旗区", "value": "410702" }, { "label": "卫滨区", "value": "410703" }, { "label": "凤泉区", "value": "410704" }, { "label": "牧野区", "value": "410711" }, { "label": "新乡县", "value": "410721" }, { "label": "获嘉县", "value": "410724" }, { "label": "原阳县", "value": "410725" }, { "label": "延津县", "value": "410726" }, { "label": "封丘县", "value": "410727" }, { "label": "长垣县", "value": "410728" }, { "label": "新乡高新技术产业开发区", "value": "410771" }, { "label": "新乡经济技术开发区", "value": "410772" }, { "label": "新乡市平原城乡一体化示范区", "value": "410773" }, { "label": "卫辉市", "value": "410781" }, { "label": "辉县市", "value": "410782" }], [{ "label": "解放区", "value": "410802" }, { "label": "中站区", "value": "410803" }, { "label": "马村区", "value": "410804" }, { "label": "山阳区", "value": "410811" }, { "label": "修武县", "value": "410821" }, { "label": "博爱县", "value": "410822" }, { "label": "武陟县", "value": "410823" }, { "label": "温县", "value": "410825" }, { "label": "焦作城乡一体化示范区", "value": "410871" }, { "label": "沁阳市", "value": "410882" }, { "label": "孟州市", "value": "410883" }], [{ "label": "华龙区", "value": "410902" }, { "label": "清丰县", "value": "410922" }, { "label": "南乐县", "value": "410923" }, { "label": "范县", "value": "410926" }, { "label": "台前县", "value": "410927" }, { "label": "濮阳县", "value": "410928" }, { "label": "河南濮阳工业园区", "value": "410971" }, { "label": "濮阳经济技术开发区", "value": "410972" }], [{ "label": "魏都区", "value": "411002" }, { "label": "建安区", "value": "411003" }, { "label": "鄢陵县", "value": "411024" }, { "label": "襄城县", "value": "411025" }, { "label": "许昌经济技术开发区", "value": "411071" }, { "label": "禹州市", "value": "411081" }, { "label": "长葛市", "value": "411082" }], [{ "label": "源汇区", "value": "411102" }, { "label": "郾城区", "value": "411103" }, { "label": "召陵区", "value": "411104" }, { "label": "舞阳县", "value": "411121" }, { "label": "临颍县", "value": "411122" }, { "label": "漯河经济技术开发区", "value": "411171" }], [{ "label": "湖滨区", "value": "411202" }, { "label": "陕州区", "value": "411203" }, { "label": "渑池县", "value": "411221" }, { "label": "卢氏县", "value": "411224" }, { "label": "河南三门峡经济开发区", "value": "411271" }, { "label": "义马市", "value": "411281" }, { "label": "灵宝市", "value": "411282" }], [{ "label": "宛城区", "value": "411302" }, { "label": "卧龙区", "value": "411303" }, { "label": "南召县", "value": "411321" }, { "label": "方城县", "value": "411322" }, { "label": "西峡县", "value": "411323" }, { "label": "镇平县", "value": "411324" }, { "label": "内乡县", "value": "411325" }, { "label": "淅川县", "value": "411326" }, { "label": "社旗县", "value": "411327" }, { "label": "唐河县", "value": "411328" }, { "label": "新野县", "value": "411329" }, { "label": "桐柏县", "value": "411330" }, { "label": "南阳高新技术产业开发区", "value": "411371" }, { "label": "南阳市城乡一体化示范区", "value": "411372" }, { "label": "邓州市", "value": "411381" }], [{ "label": "梁园区", "value": "411402" }, { "label": "睢阳区", "value": "411403" }, { "label": "民权县", "value": "411421" }, { "label": "睢县", "value": "411422" }, { "label": "宁陵县", "value": "411423" }, { "label": "柘城县", "value": "411424" }, { "label": "虞城县", "value": "411425" }, { "label": "夏邑县", "value": "411426" }, { "label": "豫东综合物流产业聚集区", "value": "411471" }, { "label": "河南商丘经济开发区", "value": "411472" }, { "label": "永城市", "value": "411481" }], [{ "label": "浉河区", "value": "411502" }, { "label": "平桥区", "value": "411503" }, { "label": "罗山县", "value": "411521" }, { "label": "光山县", "value": "411522" }, { "label": "新县", "value": "411523" }, { "label": "商城县", "value": "411524" }, { "label": "固始县", "value": "411525" }, { "label": "潢川县", "value": "411526" }, { "label": "淮滨县", "value": "411527" }, { "label": "息县", "value": "411528" }, { "label": "信阳高新技术产业开发区", "value": "411571" }], [{ "label": "川汇区", "value": "411602" }, { "label": "扶沟县", "value": "411621" }, { "label": "西华县", "value": "411622" }, { "label": "商水县", "value": "411623" }, { "label": "沈丘县", "value": "411624" }, { "label": "郸城县", "value": "411625" }, { "label": "淮阳县", "value": "411626" }, { "label": "太康县", "value": "411627" }, { "label": "鹿邑县", "value": "411628" }, { "label": "河南周口经济开发区", "value": "411671" }, { "label": "项城市", "value": "411681" }], [{ "label": "驿城区", "value": "411702" }, { "label": "西平县", "value": "411721" }, { "label": "上蔡县", "value": "411722" }, { "label": "平舆县", "value": "411723" }, { "label": "正阳县", "value": "411724" }, { "label": "确山县", "value": "411725" }, { "label": "泌阳县", "value": "411726" }, { "label": "汝南县", "value": "411727" }, { "label": "遂平县", "value": "411728" }, { "label": "新蔡县", "value": "411729" }, { "label": "河南驻马店经济开发区", "value": "411771" }], [{ "label": "济源市", "value": "419001" }]], [[{ "label": "江岸区", "value": "420102" }, { "label": "江汉区", "value": "420103" }, { "label": "硚口区", "value": "420104" }, { "label": "汉阳区", "value": "420105" }, { "label": "武昌区", "value": "420106" }, { "label": "青山区", "value": "420107" }, { "label": "洪山区", "value": "420111" }, { "label": "东西湖区", "value": "420112" }, { "label": "汉南区", "value": "420113" }, { "label": "蔡甸区", "value": "420114" }, { "label": "江夏区", "value": "420115" }, { "label": "黄陂区", "value": "420116" }, { "label": "新洲区", "value": "420117" }], [{ "label": "黄石港区", "value": "420202" }, { "label": "西塞山区", "value": "420203" }, { "label": "下陆区", "value": "420204" }, { "label": "铁山区", "value": "420205" }, { "label": "阳新县", "value": "420222" }, { "label": "大冶市", "value": "420281" }], [{ "label": "茅箭区", "value": "420302" }, { "label": "张湾区", "value": "420303" }, { "label": "郧阳区", "value": "420304" }, { "label": "郧西县", "value": "420322" }, { "label": "竹山县", "value": "420323" }, { "label": "竹溪县", "value": "420324" }, { "label": "房县", "value": "420325" }, { "label": "丹江口市", "value": "420381" }], [{ "label": "西陵区", "value": "420502" }, { "label": "伍家岗区", "value": "420503" }, { "label": "点军区", "value": "420504" }, { "label": "猇亭区", "value": "420505" }, { "label": "夷陵区", "value": "420506" }, { "label": "远安县", "value": "420525" }, { "label": "兴山县", "value": "420526" }, { "label": "秭归县", "value": "420527" }, { "label": "长阳土家族自治县", "value": "420528" }, { "label": "五峰土家族自治县", "value": "420529" }, { "label": "宜都市", "value": "420581" }, { "label": "当阳市", "value": "420582" }, { "label": "枝江市", "value": "420583" }], [{ "label": "襄城区", "value": "420602" }, { "label": "樊城区", "value": "420606" }, { "label": "襄州区", "value": "420607" }, { "label": "南漳县", "value": "420624" }, { "label": "谷城县", "value": "420625" }, { "label": "保康县", "value": "420626" }, { "label": "老河口市", "value": "420682" }, { "label": "枣阳市", "value": "420683" }, { "label": "宜城市", "value": "420684" }], [{ "label": "梁子湖区", "value": "420702" }, { "label": "华容区", "value": "420703" }, { "label": "鄂城区", "value": "420704" }], [{ "label": "东宝区", "value": "420802" }, { "label": "掇刀区", "value": "420804" }, { "label": "京山县", "value": "420821" }, { "label": "沙洋县", "value": "420822" }, { "label": "钟祥市", "value": "420881" }], [{ "label": "孝南区", "value": "420902" }, { "label": "孝昌县", "value": "420921" }, { "label": "大悟县", "value": "420922" }, { "label": "云梦县", "value": "420923" }, { "label": "应城市", "value": "420981" }, { "label": "安陆市", "value": "420982" }, { "label": "汉川市", "value": "420984" }], [{ "label": "沙市区", "value": "421002" }, { "label": "荆州区", "value": "421003" }, { "label": "公安县", "value": "421022" }, { "label": "监利县", "value": "421023" }, { "label": "江陵县", "value": "421024" }, { "label": "荆州经济技术开发区", "value": "421071" }, { "label": "石首市", "value": "421081" }, { "label": "洪湖市", "value": "421083" }, { "label": "松滋市", "value": "421087" }], [{ "label": "黄州区", "value": "421102" }, { "label": "团风县", "value": "421121" }, { "label": "红安县", "value": "421122" }, { "label": "罗田县", "value": "421123" }, { "label": "英山县", "value": "421124" }, { "label": "浠水县", "value": "421125" }, { "label": "蕲春县", "value": "421126" }, { "label": "黄梅县", "value": "421127" }, { "label": "龙感湖管理区", "value": "421171" }, { "label": "麻城市", "value": "421181" }, { "label": "武穴市", "value": "421182" }], [{ "label": "咸安区", "value": "421202" }, { "label": "嘉鱼县", "value": "421221" }, { "label": "通城县", "value": "421222" }, { "label": "崇阳县", "value": "421223" }, { "label": "通山县", "value": "421224" }, { "label": "赤壁市", "value": "421281" }], [{ "label": "曾都区", "value": "421303" }, { "label": "随县", "value": "421321" }, { "label": "广水市", "value": "421381" }], [{ "label": "恩施市", "value": "422801" }, { "label": "利川市", "value": "422802" }, { "label": "建始县", "value": "422822" }, { "label": "巴东县", "value": "422823" }, { "label": "宣恩县", "value": "422825" }, { "label": "咸丰县", "value": "422826" }, { "label": "来凤县", "value": "422827" }, { "label": "鹤峰县", "value": "422828" }], [{ "label": "仙桃市", "value": "429004" }, { "label": "潜江市", "value": "429005" }, { "label": "天门市", "value": "429006" }, { "label": "神农架林区", "value": "429021" }]], [[{ "label": "芙蓉区", "value": "430102" }, { "label": "天心区", "value": "430103" }, { "label": "岳麓区", "value": "430104" }, { "label": "开福区", "value": "430105" }, { "label": "雨花区", "value": "430111" }, { "label": "望城区", "value": "430112" }, { "label": "长沙县", "value": "430121" }, { "label": "浏阳市", "value": "430181" }, { "label": "宁乡市", "value": "430182" }], [{ "label": "荷塘区", "value": "430202" }, { "label": "芦淞区", "value": "430203" }, { "label": "石峰区", "value": "430204" }, { "label": "天元区", "value": "430211" }, { "label": "株洲县", "value": "430221" }, { "label": "攸县", "value": "430223" }, { "label": "茶陵县", "value": "430224" }, { "label": "炎陵县", "value": "430225" }, { "label": "云龙示范区", "value": "430271" }, { "label": "醴陵市", "value": "430281" }], [{ "label": "雨湖区", "value": "430302" }, { "label": "岳塘区", "value": "430304" }, { "label": "湘潭县", "value": "430321" }, { "label": "湖南湘潭高新技术产业园区", "value": "430371" }, { "label": "湘潭昭山示范区", "value": "430372" }, { "label": "湘潭九华示范区", "value": "430373" }, { "label": "湘乡市", "value": "430381" }, { "label": "韶山市", "value": "430382" }], [{ "label": "珠晖区", "value": "430405" }, { "label": "雁峰区", "value": "430406" }, { "label": "石鼓区", "value": "430407" }, { "label": "蒸湘区", "value": "430408" }, { "label": "南岳区", "value": "430412" }, { "label": "衡阳县", "value": "430421" }, { "label": "衡南县", "value": "430422" }, { "label": "衡山县", "value": "430423" }, { "label": "衡东县", "value": "430424" }, { "label": "祁东县", "value": "430426" }, { "label": "衡阳综合保税区", "value": "430471" }, { "label": "湖南衡阳高新技术产业园区", "value": "430472" }, { "label": "湖南衡阳松木经济开发区", "value": "430473" }, { "label": "耒阳市", "value": "430481" }, { "label": "常宁市", "value": "430482" }], [{ "label": "双清区", "value": "430502" }, { "label": "大祥区", "value": "430503" }, { "label": "北塔区", "value": "430511" }, { "label": "邵东县", "value": "430521" }, { "label": "新邵县", "value": "430522" }, { "label": "邵阳县", "value": "430523" }, { "label": "隆回县", "value": "430524" }, { "label": "洞口县", "value": "430525" }, { "label": "绥宁县", "value": "430527" }, { "label": "新宁县", "value": "430528" }, { "label": "城步苗族自治县", "value": "430529" }, { "label": "武冈市", "value": "430581" }], [{ "label": "岳阳楼区", "value": "430602" }, { "label": "云溪区", "value": "430603" }, { "label": "君山区", "value": "430611" }, { "label": "岳阳县", "value": "430621" }, { "label": "华容县", "value": "430623" }, { "label": "湘阴县", "value": "430624" }, { "label": "平江县", "value": "430626" }, { "label": "岳阳市屈原管理区", "value": "430671" }, { "label": "汨罗市", "value": "430681" }, { "label": "临湘市", "value": "430682" }], [{ "label": "武陵区", "value": "430702" }, { "label": "鼎城区", "value": "430703" }, { "label": "安乡县", "value": "430721" }, { "label": "汉寿县", "value": "430722" }, { "label": "澧县", "value": "430723" }, { "label": "临澧县", "value": "430724" }, { "label": "桃源县", "value": "430725" }, { "label": "石门县", "value": "430726" }, { "label": "常德市西洞庭管理区", "value": "430771" }, { "label": "津市市", "value": "430781" }], [{ "label": "永定区", "value": "430802" }, { "label": "武陵源区", "value": "430811" }, { "label": "慈利县", "value": "430821" }, { "label": "桑植县", "value": "430822" }], [{ "label": "资阳区", "value": "430902" }, { "label": "赫山区", "value": "430903" }, { "label": "南县", "value": "430921" }, { "label": "桃江县", "value": "430922" }, { "label": "安化县", "value": "430923" }, { "label": "益阳市大通湖管理区", "value": "430971" }, { "label": "湖南益阳高新技术产业园区", "value": "430972" }, { "label": "沅江市", "value": "430981" }], [{ "label": "北湖区", "value": "431002" }, { "label": "苏仙区", "value": "431003" }, { "label": "桂阳县", "value": "431021" }, { "label": "宜章县", "value": "431022" }, { "label": "永兴县", "value": "431023" }, { "label": "嘉禾县", "value": "431024" }, { "label": "临武县", "value": "431025" }, { "label": "汝城县", "value": "431026" }, { "label": "桂东县", "value": "431027" }, { "label": "安仁县", "value": "431028" }, { "label": "资兴市", "value": "431081" }], [{ "label": "零陵区", "value": "431102" }, { "label": "冷水滩区", "value": "431103" }, { "label": "祁阳县", "value": "431121" }, { "label": "东安县", "value": "431122" }, { "label": "双牌县", "value": "431123" }, { "label": "道县", "value": "431124" }, { "label": "江永县", "value": "431125" }, { "label": "宁远县", "value": "431126" }, { "label": "蓝山县", "value": "431127" }, { "label": "新田县", "value": "431128" }, { "label": "江华瑶族自治县", "value": "431129" }, { "label": "永州经济技术开发区", "value": "431171" }, { "label": "永州市金洞管理区", "value": "431172" }, { "label": "永州市回龙圩管理区", "value": "431173" }], [{ "label": "鹤城区", "value": "431202" }, { "label": "中方县", "value": "431221" }, { "label": "沅陵县", "value": "431222" }, { "label": "辰溪县", "value": "431223" }, { "label": "溆浦县", "value": "431224" }, { "label": "会同县", "value": "431225" }, { "label": "麻阳苗族自治县", "value": "431226" }, { "label": "新晃侗族自治县", "value": "431227" }, { "label": "芷江侗族自治县", "value": "431228" }, { "label": "靖州苗族侗族自治县", "value": "431229" }, { "label": "通道侗族自治县", "value": "431230" }, { "label": "怀化市洪江管理区", "value": "431271" }, { "label": "洪江市", "value": "431281" }], [{ "label": "娄星区", "value": "431302" }, { "label": "双峰县", "value": "431321" }, { "label": "新化县", "value": "431322" }, { "label": "冷水江市", "value": "431381" }, { "label": "涟源市", "value": "431382" }], [{ "label": "吉首市", "value": "433101" }, { "label": "泸溪县", "value": "433122" }, { "label": "凤凰县", "value": "433123" }, { "label": "花垣县", "value": "433124" }, { "label": "保靖县", "value": "433125" }, { "label": "古丈县", "value": "433126" }, { "label": "永顺县", "value": "433127" }, { "label": "龙山县", "value": "433130" }, { "label": "湖南吉首经济开发区", "value": "433172" }, { "label": "湖南永顺经济开发区", "value": "433173" }]], [[{ "label": "荔湾区", "value": "440103" }, { "label": "越秀区", "value": "440104" }, { "label": "海珠区", "value": "440105" }, { "label": "天河区", "value": "440106" }, { "label": "白云区", "value": "440111" }, { "label": "黄埔区", "value": "440112" }, { "label": "番禺区", "value": "440113" }, { "label": "花都区", "value": "440114" }, { "label": "南沙区", "value": "440115" }, { "label": "从化区", "value": "440117" }, { "label": "增城区", "value": "440118" }], [{ "label": "武江区", "value": "440203" }, { "label": "浈江区", "value": "440204" }, { "label": "曲江区", "value": "440205" }, { "label": "始兴县", "value": "440222" }, { "label": "仁化县", "value": "440224" }, { "label": "翁源县", "value": "440229" }, { "label": "乳源瑶族自治县", "value": "440232" }, { "label": "新丰县", "value": "440233" }, { "label": "乐昌市", "value": "440281" }, { "label": "南雄市", "value": "440282" }], [{ "label": "罗湖区", "value": "440303" }, { "label": "福田区", "value": "440304" }, { "label": "南山区", "value": "440305" }, { "label": "宝安区", "value": "440306" }, { "label": "龙岗区", "value": "440307" }, { "label": "盐田区", "value": "440308" }, { "label": "龙华区", "value": "440309" }, { "label": "坪山区", "value": "440310" }], [{ "label": "香洲区", "value": "440402" }, { "label": "斗门区", "value": "440403" }, { "label": "金湾区", "value": "440404" }], [{ "label": "龙湖区", "value": "440507" }, { "label": "金平区", "value": "440511" }, { "label": "濠江区", "value": "440512" }, { "label": "潮阳区", "value": "440513" }, { "label": "潮南区", "value": "440514" }, { "label": "澄海区", "value": "440515" }, { "label": "南澳县", "value": "440523" }], [{ "label": "禅城区", "value": "440604" }, { "label": "南海区", "value": "440605" }, { "label": "顺德区", "value": "440606" }, { "label": "三水区", "value": "440607" }, { "label": "高明区", "value": "440608" }], [{ "label": "蓬江区", "value": "440703" }, { "label": "江海区", "value": "440704" }, { "label": "新会区", "value": "440705" }, { "label": "台山市", "value": "440781" }, { "label": "开平市", "value": "440783" }, { "label": "鹤山市", "value": "440784" }, { "label": "恩平市", "value": "440785" }], [{ "label": "赤坎区", "value": "440802" }, { "label": "霞山区", "value": "440803" }, { "label": "坡头区", "value": "440804" }, { "label": "麻章区", "value": "440811" }, { "label": "遂溪县", "value": "440823" }, { "label": "徐闻县", "value": "440825" }, { "label": "廉江市", "value": "440881" }, { "label": "雷州市", "value": "440882" }, { "label": "吴川市", "value": "440883" }], [{ "label": "茂南区", "value": "440902" }, { "label": "电白区", "value": "440904" }, { "label": "高州市", "value": "440981" }, { "label": "化州市", "value": "440982" }, { "label": "信宜市", "value": "440983" }], [{ "label": "端州区", "value": "441202" }, { "label": "鼎湖区", "value": "441203" }, { "label": "高要区", "value": "441204" }, { "label": "广宁县", "value": "441223" }, { "label": "怀集县", "value": "441224" }, { "label": "封开县", "value": "441225" }, { "label": "德庆县", "value": "441226" }, { "label": "四会市", "value": "441284" }], [{ "label": "惠城区", "value": "441302" }, { "label": "惠阳区", "value": "441303" }, { "label": "博罗县", "value": "441322" }, { "label": "惠东县", "value": "441323" }, { "label": "龙门县", "value": "441324" }], [{ "label": "梅江区", "value": "441402" }, { "label": "梅县区", "value": "441403" }, { "label": "大埔县", "value": "441422" }, { "label": "丰顺县", "value": "441423" }, { "label": "五华县", "value": "441424" }, { "label": "平远县", "value": "441426" }, { "label": "蕉岭县", "value": "441427" }, { "label": "兴宁市", "value": "441481" }], [{ "label": "城区", "value": "441502" }, { "label": "海丰县", "value": "441521" }, { "label": "陆河县", "value": "441523" }, { "label": "陆丰市", "value": "441581" }], [{ "label": "源城区", "value": "441602" }, { "label": "紫金县", "value": "441621" }, { "label": "龙川县", "value": "441622" }, { "label": "连平县", "value": "441623" }, { "label": "和平县", "value": "441624" }, { "label": "东源县", "value": "441625" }], [{ "label": "江城区", "value": "441702" }, { "label": "阳东区", "value": "441704" }, { "label": "阳西县", "value": "441721" }, { "label": "阳春市", "value": "441781" }], [{ "label": "清城区", "value": "441802" }, { "label": "清新区", "value": "441803" }, { "label": "佛冈县", "value": "441821" }, { "label": "阳山县", "value": "441823" }, { "label": "连山壮族瑶族自治县", "value": "441825" }, { "label": "连南瑶族自治县", "value": "441826" }, { "label": "英德市", "value": "441881" }, { "label": "连州市", "value": "441882" }], [{ "label": "东莞市", "value": "441900" }], [{ "label": "中山市", "value": "442000" }], [{ "label": "湘桥区", "value": "445102" }, { "label": "潮安区", "value": "445103" }, { "label": "饶平县", "value": "445122" }], [{ "label": "榕城区", "value": "445202" }, { "label": "揭东区", "value": "445203" }, { "label": "揭西县", "value": "445222" }, { "label": "惠来县", "value": "445224" }, { "label": "普宁市", "value": "445281" }], [{ "label": "云城区", "value": "445302" }, { "label": "云安区", "value": "445303" }, { "label": "新兴县", "value": "445321" }, { "label": "郁南县", "value": "445322" }, { "label": "罗定市", "value": "445381" }]], [[{ "label": "兴宁区", "value": "450102" }, { "label": "青秀区", "value": "450103" }, { "label": "江南区", "value": "450105" }, { "label": "西乡塘区", "value": "450107" }, { "label": "良庆区", "value": "450108" }, { "label": "邕宁区", "value": "450109" }, { "label": "武鸣区", "value": "450110" }, { "label": "隆安县", "value": "450123" }, { "label": "马山县", "value": "450124" }, { "label": "上林县", "value": "450125" }, { "label": "宾阳县", "value": "450126" }, { "label": "横县", "value": "450127" }], [{ "label": "城中区", "value": "450202" }, { "label": "鱼峰区", "value": "450203" }, { "label": "柳南区", "value": "450204" }, { "label": "柳北区", "value": "450205" }, { "label": "柳江区", "value": "450206" }, { "label": "柳城县", "value": "450222" }, { "label": "鹿寨县", "value": "450223" }, { "label": "融安县", "value": "450224" }, { "label": "融水苗族自治县", "value": "450225" }, { "label": "三江侗族自治县", "value": "450226" }], [{ "label": "秀峰区", "value": "450302" }, { "label": "叠彩区", "value": "450303" }, { "label": "象山区", "value": "450304" }, { "label": "七星区", "value": "450305" }, { "label": "雁山区", "value": "450311" }, { "label": "临桂区", "value": "450312" }, { "label": "阳朔县", "value": "450321" }, { "label": "灵川县", "value": "450323" }, { "label": "全州县", "value": "450324" }, { "label": "兴安县", "value": "450325" }, { "label": "永福县", "value": "450326" }, { "label": "灌阳县", "value": "450327" }, { "label": "龙胜各族自治县", "value": "450328" }, { "label": "资源县", "value": "450329" }, { "label": "平乐县", "value": "450330" }, { "label": "荔浦县", "value": "450331" }, { "label": "恭城瑶族自治县", "value": "450332" }], [{ "label": "万秀区", "value": "450403" }, { "label": "长洲区", "value": "450405" }, { "label": "龙圩区", "value": "450406" }, { "label": "苍梧县", "value": "450421" }, { "label": "藤县", "value": "450422" }, { "label": "蒙山县", "value": "450423" }, { "label": "岑溪市", "value": "450481" }], [{ "label": "海城区", "value": "450502" }, { "label": "银海区", "value": "450503" }, { "label": "铁山港区", "value": "450512" }, { "label": "合浦县", "value": "450521" }], [{ "label": "港口区", "value": "450602" }, { "label": "防城区", "value": "450603" }, { "label": "上思县", "value": "450621" }, { "label": "东兴市", "value": "450681" }], [{ "label": "钦南区", "value": "450702" }, { "label": "钦北区", "value": "450703" }, { "label": "灵山县", "value": "450721" }, { "label": "浦北县", "value": "450722" }], [{ "label": "港北区", "value": "450802" }, { "label": "港南区", "value": "450803" }, { "label": "覃塘区", "value": "450804" }, { "label": "平南县", "value": "450821" }, { "label": "桂平市", "value": "450881" }], [{ "label": "玉州区", "value": "450902" }, { "label": "福绵区", "value": "450903" }, { "label": "容县", "value": "450921" }, { "label": "陆川县", "value": "450922" }, { "label": "博白县", "value": "450923" }, { "label": "兴业县", "value": "450924" }, { "label": "北流市", "value": "450981" }], [{ "label": "右江区", "value": "451002" }, { "label": "田阳县", "value": "451021" }, { "label": "田东县", "value": "451022" }, { "label": "平果县", "value": "451023" }, { "label": "德保县", "value": "451024" }, { "label": "那坡县", "value": "451026" }, { "label": "凌云县", "value": "451027" }, { "label": "乐业县", "value": "451028" }, { "label": "田林县", "value": "451029" }, { "label": "西林县", "value": "451030" }, { "label": "隆林各族自治县", "value": "451031" }, { "label": "靖西市", "value": "451081" }], [{ "label": "八步区", "value": "451102" }, { "label": "平桂区", "value": "451103" }, { "label": "昭平县", "value": "451121" }, { "label": "钟山县", "value": "451122" }, { "label": "富川瑶族自治县", "value": "451123" }], [{ "label": "金城江区", "value": "451202" }, { "label": "宜州区", "value": "451203" }, { "label": "南丹县", "value": "451221" }, { "label": "天峨县", "value": "451222" }, { "label": "凤山县", "value": "451223" }, { "label": "东兰县", "value": "451224" }, { "label": "罗城仫佬族自治县", "value": "451225" }, { "label": "环江毛南族自治县", "value": "451226" }, { "label": "巴马瑶族自治县", "value": "451227" }, { "label": "都安瑶族自治县", "value": "451228" }, { "label": "大化瑶族自治县", "value": "451229" }], [{ "label": "兴宾区", "value": "451302" }, { "label": "忻城县", "value": "451321" }, { "label": "象州县", "value": "451322" }, { "label": "武宣县", "value": "451323" }, { "label": "金秀瑶族自治县", "value": "451324" }, { "label": "合山市", "value": "451381" }], [{ "label": "江州区", "value": "451402" }, { "label": "扶绥县", "value": "451421" }, { "label": "宁明县", "value": "451422" }, { "label": "龙州县", "value": "451423" }, { "label": "大新县", "value": "451424" }, { "label": "天等县", "value": "451425" }, { "label": "凭祥市", "value": "451481" }]], [[{ "label": "秀英区", "value": "460105" }, { "label": "龙华区", "value": "460106" }, { "label": "琼山区", "value": "460107" }, { "label": "美兰区", "value": "460108" }], [{ "label": "海棠区", "value": "460202" }, { "label": "吉阳区", "value": "460203" }, { "label": "天涯区", "value": "460204" }, { "label": "崖州区", "value": "460205" }], [{ "label": "西沙群岛", "value": "460321" }, { "label": "南沙群岛", "value": "460322" }, { "label": "中沙群岛的岛礁及其海域", "value": "460323" }], [{ "label": "儋州市", "value": "460400" }], [{ "label": "五指山市", "value": "469001" }, { "label": "琼海市", "value": "469002" }, { "label": "文昌市", "value": "469005" }, { "label": "万宁市", "value": "469006" }, { "label": "东方市", "value": "469007" }, { "label": "定安县", "value": "469021" }, { "label": "屯昌县", "value": "469022" }, { "label": "澄迈县", "value": "469023" }, { "label": "临高县", "value": "469024" }, { "label": "白沙黎族自治县", "value": "469025" }, { "label": "昌江黎族自治县", "value": "469026" }, { "label": "乐东黎族自治县", "value": "469027" }, { "label": "陵水黎族自治县", "value": "469028" }, { "label": "保亭黎族苗族自治县", "value": "469029" }, { "label": "琼中黎族苗族自治县", "value": "469030" }]], [[{ "label": "万州区", "value": "500101" }, { "label": "涪陵区", "value": "500102" }, { "label": "渝中区", "value": "500103" }, { "label": "大渡口区", "value": "500104" }, { "label": "江北区", "value": "500105" }, { "label": "沙坪坝区", "value": "500106" }, { "label": "九龙坡区", "value": "500107" }, { "label": "南岸区", "value": "500108" }, { "label": "北碚区", "value": "500109" }, { "label": "綦江区", "value": "500110" }, { "label": "大足区", "value": "500111" }, { "label": "渝北区", "value": "500112" }, { "label": "巴南区", "value": "500113" }, { "label": "黔江区", "value": "500114" }, { "label": "长寿区", "value": "500115" }, { "label": "江津区", "value": "500116" }, { "label": "合川区", "value": "500117" }, { "label": "永川区", "value": "500118" }, { "label": "南川区", "value": "500119" }, { "label": "璧山区", "value": "500120" }, { "label": "铜梁区", "value": "500151" }, { "label": "潼南区", "value": "500152" }, { "label": "荣昌区", "value": "500153" }, { "label": "开州区", "value": "500154" }, { "label": "梁平区", "value": "500155" }, { "label": "武隆区", "value": "500156" }], [{ "label": "城口县", "value": "500229" }, { "label": "丰都县", "value": "500230" }, { "label": "垫江县", "value": "500231" }, { "label": "忠县", "value": "500233" }, { "label": "云阳县", "value": "500235" }, { "label": "奉节县", "value": "500236" }, { "label": "巫山县", "value": "500237" }, { "label": "巫溪县", "value": "500238" }, { "label": "石柱土家族自治县", "value": "500240" }, { "label": "秀山土家族苗族自治县", "value": "500241" }, { "label": "酉阳土家族苗族自治县", "value": "500242" }, { "label": "彭水苗族土家族自治县", "value": "500243" }]], [[{ "label": "锦江区", "value": "510104" }, { "label": "青羊区", "value": "510105" }, { "label": "金牛区", "value": "510106" }, { "label": "武侯区", "value": "510107" }, { "label": "成华区", "value": "510108" }, { "label": "龙泉驿区", "value": "510112" }, { "label": "青白江区", "value": "510113" }, { "label": "新都区", "value": "510114" }, { "label": "温江区", "value": "510115" }, { "label": "双流区", "value": "510116" }, { "label": "郫都区", "value": "510117" }, { "label": "金堂县", "value": "510121" }, { "label": "大邑县", "value": "510129" }, { "label": "蒲江县", "value": "510131" }, { "label": "新津县", "value": "510132" }, { "label": "都江堰市", "value": "510181" }, { "label": "彭州市", "value": "510182" }, { "label": "邛崃市", "value": "510183" }, { "label": "崇州市", "value": "510184" }, { "label": "简阳市", "value": "510185" }], [{ "label": "自流井区", "value": "510302" }, { "label": "贡井区", "value": "510303" }, { "label": "大安区", "value": "510304" }, { "label": "沿滩区", "value": "510311" }, { "label": "荣县", "value": "510321" }, { "label": "富顺县", "value": "510322" }], [{ "label": "东区", "value": "510402" }, { "label": "西区", "value": "510403" }, { "label": "仁和区", "value": "510411" }, { "label": "米易县", "value": "510421" }, { "label": "盐边县", "value": "510422" }], [{ "label": "江阳区", "value": "510502" }, { "label": "纳溪区", "value": "510503" }, { "label": "龙马潭区", "value": "510504" }, { "label": "泸县", "value": "510521" }, { "label": "合江县", "value": "510522" }, { "label": "叙永县", "value": "510524" }, { "label": "古蔺县", "value": "510525" }], [{ "label": "旌阳区", "value": "510603" }, { "label": "罗江区", "value": "510604" }, { "label": "中江县", "value": "510623" }, { "label": "广汉市", "value": "510681" }, { "label": "什邡市", "value": "510682" }, { "label": "绵竹市", "value": "510683" }], [{ "label": "涪城区", "value": "510703" }, { "label": "游仙区", "value": "510704" }, { "label": "安州区", "value": "510705" }, { "label": "三台县", "value": "510722" }, { "label": "盐亭县", "value": "510723" }, { "label": "梓潼县", "value": "510725" }, { "label": "北川羌族自治县", "value": "510726" }, { "label": "平武县", "value": "510727" }, { "label": "江油市", "value": "510781" }], [{ "label": "利州区", "value": "510802" }, { "label": "昭化区", "value": "510811" }, { "label": "朝天区", "value": "510812" }, { "label": "旺苍县", "value": "510821" }, { "label": "青川县", "value": "510822" }, { "label": "剑阁县", "value": "510823" }, { "label": "苍溪县", "value": "510824" }], [{ "label": "船山区", "value": "510903" }, { "label": "安居区", "value": "510904" }, { "label": "蓬溪县", "value": "510921" }, { "label": "射洪县", "value": "510922" }, { "label": "大英县", "value": "510923" }], [{ "label": "市中区", "value": "511002" }, { "label": "东兴区", "value": "511011" }, { "label": "威远县", "value": "511024" }, { "label": "资中县", "value": "511025" }, { "label": "内江经济开发区", "value": "511071" }, { "label": "隆昌市", "value": "511083" }], [{ "label": "市中区", "value": "511102" }, { "label": "沙湾区", "value": "511111" }, { "label": "五通桥区", "value": "511112" }, { "label": "金口河区", "value": "511113" }, { "label": "犍为县", "value": "511123" }, { "label": "井研县", "value": "511124" }, { "label": "夹江县", "value": "511126" }, { "label": "沐川县", "value": "511129" }, { "label": "峨边彝族自治县", "value": "511132" }, { "label": "马边彝族自治县", "value": "511133" }, { "label": "峨眉山市", "value": "511181" }], [{ "label": "顺庆区", "value": "511302" }, { "label": "高坪区", "value": "511303" }, { "label": "嘉陵区", "value": "511304" }, { "label": "南部县", "value": "511321" }, { "label": "营山县", "value": "511322" }, { "label": "蓬安县", "value": "511323" }, { "label": "仪陇县", "value": "511324" }, { "label": "西充县", "value": "511325" }, { "label": "阆中市", "value": "511381" }], [{ "label": "东坡区", "value": "511402" }, { "label": "彭山区", "value": "511403" }, { "label": "仁寿县", "value": "511421" }, { "label": "洪雅县", "value": "511423" }, { "label": "丹棱县", "value": "511424" }, { "label": "青神县", "value": "511425" }], [{ "label": "翠屏区", "value": "511502" }, { "label": "南溪区", "value": "511503" }, { "label": "宜宾县", "value": "511521" }, { "label": "江安县", "value": "511523" }, { "label": "长宁县", "value": "511524" }, { "label": "高县", "value": "511525" }, { "label": "珙县", "value": "511526" }, { "label": "筠连县", "value": "511527" }, { "label": "兴文县", "value": "511528" }, { "label": "屏山县", "value": "511529" }], [{ "label": "广安区", "value": "511602" }, { "label": "前锋区", "value": "511603" }, { "label": "岳池县", "value": "511621" }, { "label": "武胜县", "value": "511622" }, { "label": "邻水县", "value": "511623" }, { "label": "华蓥市", "value": "511681" }], [{ "label": "通川区", "value": "511702" }, { "label": "达川区", "value": "511703" }, { "label": "宣汉县", "value": "511722" }, { "label": "开江县", "value": "511723" }, { "label": "大竹县", "value": "511724" }, { "label": "渠县", "value": "511725" }, { "label": "达州经济开发区", "value": "511771" }, { "label": "万源市", "value": "511781" }], [{ "label": "雨城区", "value": "511802" }, { "label": "名山区", "value": "511803" }, { "label": "荥经县", "value": "511822" }, { "label": "汉源县", "value": "511823" }, { "label": "石棉县", "value": "511824" }, { "label": "天全县", "value": "511825" }, { "label": "芦山县", "value": "511826" }, { "label": "宝兴县", "value": "511827" }], [{ "label": "巴州区", "value": "511902" }, { "label": "恩阳区", "value": "511903" }, { "label": "通江县", "value": "511921" }, { "label": "南江县", "value": "511922" }, { "label": "平昌县", "value": "511923" }, { "label": "巴中经济开发区", "value": "511971" }], [{ "label": "雁江区", "value": "512002" }, { "label": "安岳县", "value": "512021" }, { "label": "乐至县", "value": "512022" }], [{ "label": "马尔康市", "value": "513201" }, { "label": "汶川县", "value": "513221" }, { "label": "理县", "value": "513222" }, { "label": "茂县", "value": "513223" }, { "label": "松潘县", "value": "513224" }, { "label": "九寨沟县", "value": "513225" }, { "label": "金川县", "value": "513226" }, { "label": "小金县", "value": "513227" }, { "label": "黑水县", "value": "513228" }, { "label": "壤塘县", "value": "513230" }, { "label": "阿坝县", "value": "513231" }, { "label": "若尔盖县", "value": "513232" }, { "label": "红原县", "value": "513233" }], [{ "label": "康定市", "value": "513301" }, { "label": "泸定县", "value": "513322" }, { "label": "丹巴县", "value": "513323" }, { "label": "九龙县", "value": "513324" }, { "label": "雅江县", "value": "513325" }, { "label": "道孚县", "value": "513326" }, { "label": "炉霍县", "value": "513327" }, { "label": "甘孜县", "value": "513328" }, { "label": "新龙县", "value": "513329" }, { "label": "德格县", "value": "513330" }, { "label": "白玉县", "value": "513331" }, { "label": "石渠县", "value": "513332" }, { "label": "色达县", "value": "513333" }, { "label": "理塘县", "value": "513334" }, { "label": "巴塘县", "value": "513335" }, { "label": "乡城县", "value": "513336" }, { "label": "稻城县", "value": "513337" }, { "label": "得荣县", "value": "513338" }], [{ "label": "西昌市", "value": "513401" }, { "label": "木里藏族自治县", "value": "513422" }, { "label": "盐源县", "value": "513423" }, { "label": "德昌县", "value": "513424" }, { "label": "会理县", "value": "513425" }, { "label": "会东县", "value": "513426" }, { "label": "宁南县", "value": "513427" }, { "label": "普格县", "value": "513428" }, { "label": "布拖县", "value": "513429" }, { "label": "金阳县", "value": "513430" }, { "label": "昭觉县", "value": "513431" }, { "label": "喜德县", "value": "513432" }, { "label": "冕宁县", "value": "513433" }, { "label": "越西县", "value": "513434" }, { "label": "甘洛县", "value": "513435" }, { "label": "美姑县", "value": "513436" }, { "label": "雷波县", "value": "513437" }]], [[{ "label": "南明区", "value": "520102" }, { "label": "云岩区", "value": "520103" }, { "label": "花溪区", "value": "520111" }, { "label": "乌当区", "value": "520112" }, { "label": "白云区", "value": "520113" }, { "label": "观山湖区", "value": "520115" }, { "label": "开阳县", "value": "520121" }, { "label": "息烽县", "value": "520122" }, { "label": "修文县", "value": "520123" }, { "label": "清镇市", "value": "520181" }], [{ "label": "钟山区", "value": "520201" }, { "label": "六枝特区", "value": "520203" }, { "label": "水城县", "value": "520221" }, { "label": "盘州市", "value": "520281" }], [{ "label": "红花岗区", "value": "520302" }, { "label": "汇川区", "value": "520303" }, { "label": "播州区", "value": "520304" }, { "label": "桐梓县", "value": "520322" }, { "label": "绥阳县", "value": "520323" }, { "label": "正安县", "value": "520324" }, { "label": "道真仡佬族苗族自治县", "value": "520325" }, { "label": "务川仡佬族苗族自治县", "value": "520326" }, { "label": "凤冈县", "value": "520327" }, { "label": "湄潭县", "value": "520328" }, { "label": "余庆县", "value": "520329" }, { "label": "习水县", "value": "520330" }, { "label": "赤水市", "value": "520381" }, { "label": "仁怀市", "value": "520382" }], [{ "label": "西秀区", "value": "520402" }, { "label": "平坝区", "value": "520403" }, { "label": "普定县", "value": "520422" }, { "label": "镇宁布依族苗族自治县", "value": "520423" }, { "label": "关岭布依族苗族自治县", "value": "520424" }, { "label": "紫云苗族布依族自治县", "value": "520425" }], [{ "label": "七星关区", "value": "520502" }, { "label": "大方县", "value": "520521" }, { "label": "黔西县", "value": "520522" }, { "label": "金沙县", "value": "520523" }, { "label": "织金县", "value": "520524" }, { "label": "纳雍县", "value": "520525" }, { "label": "威宁彝族回族苗族自治县", "value": "520526" }, { "label": "赫章县", "value": "520527" }], [{ "label": "碧江区", "value": "520602" }, { "label": "万山区", "value": "520603" }, { "label": "江口县", "value": "520621" }, { "label": "玉屏侗族自治县", "value": "520622" }, { "label": "石阡县", "value": "520623" }, { "label": "思南县", "value": "520624" }, { "label": "印江土家族苗族自治县", "value": "520625" }, { "label": "德江县", "value": "520626" }, { "label": "沿河土家族自治县", "value": "520627" }, { "label": "松桃苗族自治县", "value": "520628" }], [{ "label": "兴义市", "value": "522301" }, { "label": "兴仁县", "value": "522322" }, { "label": "普安县", "value": "522323" }, { "label": "晴隆县", "value": "522324" }, { "label": "贞丰县", "value": "522325" }, { "label": "望谟县", "value": "522326" }, { "label": "册亨县", "value": "522327" }, { "label": "安龙县", "value": "522328" }], [{ "label": "凯里市", "value": "522601" }, { "label": "黄平县", "value": "522622" }, { "label": "施秉县", "value": "522623" }, { "label": "三穗县", "value": "522624" }, { "label": "镇远县", "value": "522625" }, { "label": "岑巩县", "value": "522626" }, { "label": "天柱县", "value": "522627" }, { "label": "锦屏县", "value": "522628" }, { "label": "剑河县", "value": "522629" }, { "label": "台江县", "value": "522630" }, { "label": "黎平县", "value": "522631" }, { "label": "榕江县", "value": "522632" }, { "label": "从江县", "value": "522633" }, { "label": "雷山县", "value": "522634" }, { "label": "麻江县", "value": "522635" }, { "label": "丹寨县", "value": "522636" }], [{ "label": "都匀市", "value": "522701" }, { "label": "福泉市", "value": "522702" }, { "label": "荔波县", "value": "522722" }, { "label": "贵定县", "value": "522723" }, { "label": "瓮安县", "value": "522725" }, { "label": "独山县", "value": "522726" }, { "label": "平塘县", "value": "522727" }, { "label": "罗甸县", "value": "522728" }, { "label": "长顺县", "value": "522729" }, { "label": "龙里县", "value": "522730" }, { "label": "惠水县", "value": "522731" }, { "label": "三都水族自治县", "value": "522732" }]], [[{ "label": "五华区", "value": "530102" }, { "label": "盘龙区", "value": "530103" }, { "label": "官渡区", "value": "530111" }, { "label": "西山区", "value": "530112" }, { "label": "东川区", "value": "530113" }, { "label": "呈贡区", "value": "530114" }, { "label": "晋宁区", "value": "530115" }, { "label": "富民县", "value": "530124" }, { "label": "宜良县", "value": "530125" }, { "label": "石林彝族自治县", "value": "530126" }, { "label": "嵩明县", "value": "530127" }, { "label": "禄劝彝族苗族自治县", "value": "530128" }, { "label": "寻甸回族彝族自治县", "value": "530129" }, { "label": "安宁市", "value": "530181" }], [{ "label": "麒麟区", "value": "530302" }, { "label": "沾益区", "value": "530303" }, { "label": "马龙县", "value": "530321" }, { "label": "陆良县", "value": "530322" }, { "label": "师宗县", "value": "530323" }, { "label": "罗平县", "value": "530324" }, { "label": "富源县", "value": "530325" }, { "label": "会泽县", "value": "530326" }, { "label": "宣威市", "value": "530381" }], [{ "label": "红塔区", "value": "530402" }, { "label": "江川区", "value": "530403" }, { "label": "澄江县", "value": "530422" }, { "label": "通海县", "value": "530423" }, { "label": "华宁县", "value": "530424" }, { "label": "易门县", "value": "530425" }, { "label": "峨山彝族自治县", "value": "530426" }, { "label": "新平彝族傣族自治县", "value": "530427" }, { "label": "元江哈尼族彝族傣族自治县", "value": "530428" }], [{ "label": "隆阳区", "value": "530502" }, { "label": "施甸县", "value": "530521" }, { "label": "龙陵县", "value": "530523" }, { "label": "昌宁县", "value": "530524" }, { "label": "腾冲市", "value": "530581" }], [{ "label": "昭阳区", "value": "530602" }, { "label": "鲁甸县", "value": "530621" }, { "label": "巧家县", "value": "530622" }, { "label": "盐津县", "value": "530623" }, { "label": "大关县", "value": "530624" }, { "label": "永善县", "value": "530625" }, { "label": "绥江县", "value": "530626" }, { "label": "镇雄县", "value": "530627" }, { "label": "彝良县", "value": "530628" }, { "label": "威信县", "value": "530629" }, { "label": "水富县", "value": "530630" }], [{ "label": "古城区", "value": "530702" }, { "label": "玉龙纳西族自治县", "value": "530721" }, { "label": "永胜县", "value": "530722" }, { "label": "华坪县", "value": "530723" }, { "label": "宁蒗彝族自治县", "value": "530724" }], [{ "label": "思茅区", "value": "530802" }, { "label": "宁洱哈尼族彝族自治县", "value": "530821" }, { "label": "墨江哈尼族自治县", "value": "530822" }, { "label": "景东彝族自治县", "value": "530823" }, { "label": "景谷傣族彝族自治县", "value": "530824" }, { "label": "镇沅彝族哈尼族拉祜族自治县", "value": "530825" }, { "label": "江城哈尼族彝族自治县", "value": "530826" }, { "label": "孟连傣族拉祜族佤族自治县", "value": "530827" }, { "label": "澜沧拉祜族自治县", "value": "530828" }, { "label": "西盟佤族自治县", "value": "530829" }], [{ "label": "临翔区", "value": "530902" }, { "label": "凤庆县", "value": "530921" }, { "label": "云县", "value": "530922" }, { "label": "永德县", "value": "530923" }, { "label": "镇康县", "value": "530924" }, { "label": "双江拉祜族佤族布朗族傣族自治县", "value": "530925" }, { "label": "耿马傣族佤族自治县", "value": "530926" }, { "label": "沧源佤族自治县", "value": "530927" }], [{ "label": "楚雄市", "value": "532301" }, { "label": "双柏县", "value": "532322" }, { "label": "牟定县", "value": "532323" }, { "label": "南华县", "value": "532324" }, { "label": "姚安县", "value": "532325" }, { "label": "大姚县", "value": "532326" }, { "label": "永仁县", "value": "532327" }, { "label": "元谋县", "value": "532328" }, { "label": "武定县", "value": "532329" }, { "label": "禄丰县", "value": "532331" }], [{ "label": "个旧市", "value": "532501" }, { "label": "开远市", "value": "532502" }, { "label": "蒙自市", "value": "532503" }, { "label": "弥勒市", "value": "532504" }, { "label": "屏边苗族自治县", "value": "532523" }, { "label": "建水县", "value": "532524" }, { "label": "石屏县", "value": "532525" }, { "label": "泸西县", "value": "532527" }, { "label": "元阳县", "value": "532528" }, { "label": "红河县", "value": "532529" }, { "label": "金平苗族瑶族傣族自治县", "value": "532530" }, { "label": "绿春县", "value": "532531" }, { "label": "河口瑶族自治县", "value": "532532" }], [{ "label": "文山市", "value": "532601" }, { "label": "砚山县", "value": "532622" }, { "label": "西畴县", "value": "532623" }, { "label": "麻栗坡县", "value": "532624" }, { "label": "马关县", "value": "532625" }, { "label": "丘北县", "value": "532626" }, { "label": "广南县", "value": "532627" }, { "label": "富宁县", "value": "532628" }], [{ "label": "景洪市", "value": "532801" }, { "label": "勐海县", "value": "532822" }, { "label": "勐腊县", "value": "532823" }], [{ "label": "大理市", "value": "532901" }, { "label": "漾濞彝族自治县", "value": "532922" }, { "label": "祥云县", "value": "532923" }, { "label": "宾川县", "value": "532924" }, { "label": "弥渡县", "value": "532925" }, { "label": "南涧彝族自治县", "value": "532926" }, { "label": "巍山彝族回族自治县", "value": "532927" }, { "label": "永平县", "value": "532928" }, { "label": "云龙县", "value": "532929" }, { "label": "洱源县", "value": "532930" }, { "label": "剑川县", "value": "532931" }, { "label": "鹤庆县", "value": "532932" }], [{ "label": "瑞丽市", "value": "533102" }, { "label": "芒市", "value": "533103" }, { "label": "梁河县", "value": "533122" }, { "label": "盈江县", "value": "533123" }, { "label": "陇川县", "value": "533124" }], [{ "label": "泸水市", "value": "533301" }, { "label": "福贡县", "value": "533323" }, { "label": "贡山独龙族怒族自治县", "value": "533324" }, { "label": "兰坪白族普米族自治县", "value": "533325" }], [{ "label": "香格里拉市", "value": "533401" }, { "label": "德钦县", "value": "533422" }, { "label": "维西傈僳族自治县", "value": "533423" }]], [[{ "label": "城关区", "value": "540102" }, { "label": "堆龙德庆区", "value": "540103" }, { "label": "林周县", "value": "540121" }, { "label": "当雄县", "value": "540122" }, { "label": "尼木县", "value": "540123" }, { "label": "曲水县", "value": "540124" }, { "label": "达孜县", "value": "540126" }, { "label": "墨竹工卡县", "value": "540127" }, { "label": "格尔木藏青工业园区", "value": "540171" }, { "label": "拉萨经济技术开发区", "value": "540172" }, { "label": "西藏文化旅游创意园区", "value": "540173" }, { "label": "达孜工业园区", "value": "540174" }], [{ "label": "桑珠孜区", "value": "540202" }, { "label": "南木林县", "value": "540221" }, { "label": "江孜县", "value": "540222" }, { "label": "定日县", "value": "540223" }, { "label": "萨迦县", "value": "540224" }, { "label": "拉孜县", "value": "540225" }, { "label": "昂仁县", "value": "540226" }, { "label": "谢通门县", "value": "540227" }, { "label": "白朗县", "value": "540228" }, { "label": "仁布县", "value": "540229" }, { "label": "康马县", "value": "540230" }, { "label": "定结县", "value": "540231" }, { "label": "仲巴县", "value": "540232" }, { "label": "亚东县", "value": "540233" }, { "label": "吉隆县", "value": "540234" }, { "label": "聂拉木县", "value": "540235" }, { "label": "萨嘎县", "value": "540236" }, { "label": "岗巴县", "value": "540237" }], [{ "label": "卡若区", "value": "540302" }, { "label": "江达县", "value": "540321" }, { "label": "贡觉县", "value": "540322" }, { "label": "类乌齐县", "value": "540323" }, { "label": "丁青县", "value": "540324" }, { "label": "察雅县", "value": "540325" }, { "label": "八宿县", "value": "540326" }, { "label": "左贡县", "value": "540327" }, { "label": "芒康县", "value": "540328" }, { "label": "洛隆县", "value": "540329" }, { "label": "边坝县", "value": "540330" }], [{ "label": "巴宜区", "value": "540402" }, { "label": "工布江达县", "value": "540421" }, { "label": "米林县", "value": "540422" }, { "label": "墨脱县", "value": "540423" }, { "label": "波密县", "value": "540424" }, { "label": "察隅县", "value": "540425" }, { "label": "朗县", "value": "540426" }], [{ "label": "乃东区", "value": "540502" }, { "label": "扎囊县", "value": "540521" }, { "label": "贡嘎县", "value": "540522" }, { "label": "桑日县", "value": "540523" }, { "label": "琼结县", "value": "540524" }, { "label": "曲松县", "value": "540525" }, { "label": "措美县", "value": "540526" }, { "label": "洛扎县", "value": "540527" }, { "label": "加查县", "value": "540528" }, { "label": "隆子县", "value": "540529" }, { "label": "错那县", "value": "540530" }, { "label": "浪卡子县", "value": "540531" }], [{ "label": "那曲县", "value": "542421" }, { "label": "嘉黎县", "value": "542422" }, { "label": "比如县", "value": "542423" }, { "label": "聂荣县", "value": "542424" }, { "label": "安多县", "value": "542425" }, { "label": "申扎县", "value": "542426" }, { "label": "索县", "value": "542427" }, { "label": "班戈县", "value": "542428" }, { "label": "巴青县", "value": "542429" }, { "label": "尼玛县", "value": "542430" }, { "label": "双湖县", "value": "542431" }], [{ "label": "普兰县", "value": "542521" }, { "label": "札达县", "value": "542522" }, { "label": "噶尔县", "value": "542523" }, { "label": "日土县", "value": "542524" }, { "label": "革吉县", "value": "542525" }, { "label": "改则县", "value": "542526" }, { "label": "措勤县", "value": "542527" }]], [[{ "label": "新城区", "value": "610102" }, { "label": "碑林区", "value": "610103" }, { "label": "莲湖区", "value": "610104" }, { "label": "灞桥区", "value": "610111" }, { "label": "未央区", "value": "610112" }, { "label": "雁塔区", "value": "610113" }, { "label": "阎良区", "value": "610114" }, { "label": "临潼区", "value": "610115" }, { "label": "长安区", "value": "610116" }, { "label": "高陵区", "value": "610117" }, { "label": "鄠邑区", "value": "610118" }, { "label": "蓝田县", "value": "610122" }, { "label": "周至县", "value": "610124" }], [{ "label": "王益区", "value": "610202" }, { "label": "印台区", "value": "610203" }, { "label": "耀州区", "value": "610204" }, { "label": "宜君县", "value": "610222" }], [{ "label": "渭滨区", "value": "610302" }, { "label": "金台区", "value": "610303" }, { "label": "陈仓区", "value": "610304" }, { "label": "凤翔县", "value": "610322" }, { "label": "岐山县", "value": "610323" }, { "label": "扶风县", "value": "610324" }, { "label": "眉县", "value": "610326" }, { "label": "陇县", "value": "610327" }, { "label": "千阳县", "value": "610328" }, { "label": "麟游县", "value": "610329" }, { "label": "凤县", "value": "610330" }, { "label": "太白县", "value": "610331" }], [{ "label": "秦都区", "value": "610402" }, { "label": "杨陵区", "value": "610403" }, { "label": "渭城区", "value": "610404" }, { "label": "三原县", "value": "610422" }, { "label": "泾阳县", "value": "610423" }, { "label": "乾县", "value": "610424" }, { "label": "礼泉县", "value": "610425" }, { "label": "永寿县", "value": "610426" }, { "label": "彬县", "value": "610427" }, { "label": "长武县", "value": "610428" }, { "label": "旬邑县", "value": "610429" }, { "label": "淳化县", "value": "610430" }, { "label": "武功县", "value": "610431" }, { "label": "兴平市", "value": "610481" }], [{ "label": "临渭区", "value": "610502" }, { "label": "华州区", "value": "610503" }, { "label": "潼关县", "value": "610522" }, { "label": "大荔县", "value": "610523" }, { "label": "合阳县", "value": "610524" }, { "label": "澄城县", "value": "610525" }, { "label": "蒲城县", "value": "610526" }, { "label": "白水县", "value": "610527" }, { "label": "富平县", "value": "610528" }, { "label": "韩城市", "value": "610581" }, { "label": "华阴市", "value": "610582" }], [{ "label": "宝塔区", "value": "610602" }, { "label": "安塞区", "value": "610603" }, { "label": "延长县", "value": "610621" }, { "label": "延川县", "value": "610622" }, { "label": "子长县", "value": "610623" }, { "label": "志丹县", "value": "610625" }, { "label": "吴起县", "value": "610626" }, { "label": "甘泉县", "value": "610627" }, { "label": "富县", "value": "610628" }, { "label": "洛川县", "value": "610629" }, { "label": "宜川县", "value": "610630" }, { "label": "黄龙县", "value": "610631" }, { "label": "黄陵县", "value": "610632" }], [{ "label": "汉台区", "value": "610702" }, { "label": "南郑区", "value": "610703" }, { "label": "城固县", "value": "610722" }, { "label": "洋县", "value": "610723" }, { "label": "西乡县", "value": "610724" }, { "label": "勉县", "value": "610725" }, { "label": "宁强县", "value": "610726" }, { "label": "略阳县", "value": "610727" }, { "label": "镇巴县", "value": "610728" }, { "label": "留坝县", "value": "610729" }, { "label": "佛坪县", "value": "610730" }], [{ "label": "榆阳区", "value": "610802" }, { "label": "横山区", "value": "610803" }, { "label": "府谷县", "value": "610822" }, { "label": "靖边县", "value": "610824" }, { "label": "定边县", "value": "610825" }, { "label": "绥德县", "value": "610826" }, { "label": "米脂县", "value": "610827" }, { "label": "佳县", "value": "610828" }, { "label": "吴堡县", "value": "610829" }, { "label": "清涧县", "value": "610830" }, { "label": "子洲县", "value": "610831" }, { "label": "神木市", "value": "610881" }], [{ "label": "汉滨区", "value": "610902" }, { "label": "汉阴县", "value": "610921" }, { "label": "石泉县", "value": "610922" }, { "label": "宁陕县", "value": "610923" }, { "label": "紫阳县", "value": "610924" }, { "label": "岚皋县", "value": "610925" }, { "label": "平利县", "value": "610926" }, { "label": "镇坪县", "value": "610927" }, { "label": "旬阳县", "value": "610928" }, { "label": "白河县", "value": "610929" }], [{ "label": "商州区", "value": "611002" }, { "label": "洛南县", "value": "611021" }, { "label": "丹凤县", "value": "611022" }, { "label": "商南县", "value": "611023" }, { "label": "山阳县", "value": "611024" }, { "label": "镇安县", "value": "611025" }, { "label": "柞水县", "value": "611026" }]], [[{ "label": "城关区", "value": "620102" }, { "label": "七里河区", "value": "620103" }, { "label": "西固区", "value": "620104" }, { "label": "安宁区", "value": "620105" }, { "label": "红古区", "value": "620111" }, { "label": "永登县", "value": "620121" }, { "label": "皋兰县", "value": "620122" }, { "label": "榆中县", "value": "620123" }, { "label": "兰州新区", "value": "620171" }], [{ "label": "嘉峪关市", "value": "620201" }], [{ "label": "金川区", "value": "620302" }, { "label": "永昌县", "value": "620321" }], [{ "label": "白银区", "value": "620402" }, { "label": "平川区", "value": "620403" }, { "label": "靖远县", "value": "620421" }, { "label": "会宁县", "value": "620422" }, { "label": "景泰县", "value": "620423" }], [{ "label": "秦州区", "value": "620502" }, { "label": "麦积区", "value": "620503" }, { "label": "清水县", "value": "620521" }, { "label": "秦安县", "value": "620522" }, { "label": "甘谷县", "value": "620523" }, { "label": "武山县", "value": "620524" }, { "label": "张家川回族自治县", "value": "620525" }], [{ "label": "凉州区", "value": "620602" }, { "label": "民勤县", "value": "620621" }, { "label": "古浪县", "value": "620622" }, { "label": "天祝藏族自治县", "value": "620623" }], [{ "label": "甘州区", "value": "620702" }, { "label": "肃南裕固族自治县", "value": "620721" }, { "label": "民乐县", "value": "620722" }, { "label": "临泽县", "value": "620723" }, { "label": "高台县", "value": "620724" }, { "label": "山丹县", "value": "620725" }], [{ "label": "崆峒区", "value": "620802" }, { "label": "泾川县", "value": "620821" }, { "label": "灵台县", "value": "620822" }, { "label": "崇信县", "value": "620823" }, { "label": "华亭县", "value": "620824" }, { "label": "庄浪县", "value": "620825" }, { "label": "静宁县", "value": "620826" }, { "label": "平凉工业园区", "value": "620871" }], [{ "label": "肃州区", "value": "620902" }, { "label": "金塔县", "value": "620921" }, { "label": "瓜州县", "value": "620922" }, { "label": "肃北蒙古族自治县", "value": "620923" }, { "label": "阿克塞哈萨克族自治县", "value": "620924" }, { "label": "玉门市", "value": "620981" }, { "label": "敦煌市", "value": "620982" }], [{ "label": "西峰区", "value": "621002" }, { "label": "庆城县", "value": "621021" }, { "label": "环县", "value": "621022" }, { "label": "华池县", "value": "621023" }, { "label": "合水县", "value": "621024" }, { "label": "正宁县", "value": "621025" }, { "label": "宁县", "value": "621026" }, { "label": "镇原县", "value": "621027" }], [{ "label": "安定区", "value": "621102" }, { "label": "通渭县", "value": "621121" }, { "label": "陇西县", "value": "621122" }, { "label": "渭源县", "value": "621123" }, { "label": "临洮县", "value": "621124" }, { "label": "漳县", "value": "621125" }, { "label": "岷县", "value": "621126" }], [{ "label": "武都区", "value": "621202" }, { "label": "成县", "value": "621221" }, { "label": "文县", "value": "621222" }, { "label": "宕昌县", "value": "621223" }, { "label": "康县", "value": "621224" }, { "label": "西和县", "value": "621225" }, { "label": "礼县", "value": "621226" }, { "label": "徽县", "value": "621227" }, { "label": "两当县", "value": "621228" }], [{ "label": "临夏市", "value": "622901" }, { "label": "临夏县", "value": "622921" }, { "label": "康乐县", "value": "622922" }, { "label": "永靖县", "value": "622923" }, { "label": "广河县", "value": "622924" }, { "label": "和政县", "value": "622925" }, { "label": "东乡族自治县", "value": "622926" }, { "label": "积石山保安族东乡族撒拉族自治县", "value": "622927" }], [{ "label": "合作市", "value": "623001" }, { "label": "临潭县", "value": "623021" }, { "label": "卓尼县", "value": "623022" }, { "label": "舟曲县", "value": "623023" }, { "label": "迭部县", "value": "623024" }, { "label": "玛曲县", "value": "623025" }, { "label": "碌曲县", "value": "623026" }, { "label": "夏河县", "value": "623027" }]], [[{ "label": "城东区", "value": "630102" }, { "label": "城中区", "value": "630103" }, { "label": "城西区", "value": "630104" }, { "label": "城北区", "value": "630105" }, { "label": "大通回族土族自治县", "value": "630121" }, { "label": "湟中县", "value": "630122" }, { "label": "湟源县", "value": "630123" }], [{ "label": "乐都区", "value": "630202" }, { "label": "平安区", "value": "630203" }, { "label": "民和回族土族自治县", "value": "630222" }, { "label": "互助土族自治县", "value": "630223" }, { "label": "化隆回族自治县", "value": "630224" }, { "label": "循化撒拉族自治县", "value": "630225" }], [{ "label": "门源回族自治县", "value": "632221" }, { "label": "祁连县", "value": "632222" }, { "label": "海晏县", "value": "632223" }, { "label": "刚察县", "value": "632224" }], [{ "label": "同仁县", "value": "632321" }, { "label": "尖扎县", "value": "632322" }, { "label": "泽库县", "value": "632323" }, { "label": "河南蒙古族自治县", "value": "632324" }], [{ "label": "共和县", "value": "632521" }, { "label": "同德县", "value": "632522" }, { "label": "贵德县", "value": "632523" }, { "label": "兴海县", "value": "632524" }, { "label": "贵南县", "value": "632525" }], [{ "label": "玛沁县", "value": "632621" }, { "label": "班玛县", "value": "632622" }, { "label": "甘德县", "value": "632623" }, { "label": "达日县", "value": "632624" }, { "label": "久治县", "value": "632625" }, { "label": "玛多县", "value": "632626" }], [{ "label": "玉树市", "value": "632701" }, { "label": "杂多县", "value": "632722" }, { "label": "称多县", "value": "632723" }, { "label": "治多县", "value": "632724" }, { "label": "囊谦县", "value": "632725" }, { "label": "曲麻莱县", "value": "632726" }], [{ "label": "格尔木市", "value": "632801" }, { "label": "德令哈市", "value": "632802" }, { "label": "乌兰县", "value": "632821" }, { "label": "都兰县", "value": "632822" }, { "label": "天峻县", "value": "632823" }, { "label": "大柴旦行政委员会", "value": "632857" }, { "label": "冷湖行政委员会", "value": "632858" }, { "label": "茫崖行政委员会", "value": "632859" }]], [[{ "label": "兴庆区", "value": "640104" }, { "label": "西夏区", "value": "640105" }, { "label": "金凤区", "value": "640106" }, { "label": "永宁县", "value": "640121" }, { "label": "贺兰县", "value": "640122" }, { "label": "灵武市", "value": "640181" }], [{ "label": "大武口区", "value": "640202" }, { "label": "惠农区", "value": "640205" }, { "label": "平罗县", "value": "640221" }], [{ "label": "利通区", "value": "640302" }, { "label": "红寺堡区", "value": "640303" }, { "label": "盐池县", "value": "640323" }, { "label": "同心县", "value": "640324" }, { "label": "青铜峡市", "value": "640381" }], [{ "label": "原州区", "value": "640402" }, { "label": "西吉县", "value": "640422" }, { "label": "隆德县", "value": "640423" }, { "label": "泾源县", "value": "640424" }, { "label": "彭阳县", "value": "640425" }], [{ "label": "沙坡头区", "value": "640502" }, { "label": "中宁县", "value": "640521" }, { "label": "海原县", "value": "640522" }]], [[{ "label": "天山区", "value": "650102" }, { "label": "沙依巴克区", "value": "650103" }, { "label": "新市区", "value": "650104" }, { "label": "水磨沟区", "value": "650105" }, { "label": "头屯河区", "value": "650106" }, { "label": "达坂城区", "value": "650107" }, { "label": "米东区", "value": "650109" }, { "label": "乌鲁木齐县", "value": "650121" }, { "label": "乌鲁木齐经济技术开发区", "value": "650171" }, { "label": "乌鲁木齐高新技术产业开发区", "value": "650172" }], [{ "label": "独山子区", "value": "650202" }, { "label": "克拉玛依区", "value": "650203" }, { "label": "白碱滩区", "value": "650204" }, { "label": "乌尔禾区", "value": "650205" }], [{ "label": "高昌区", "value": "650402" }, { "label": "鄯善县", "value": "650421" }, { "label": "托克逊县", "value": "650422" }], [{ "label": "伊州区", "value": "650502" }, { "label": "巴里坤哈萨克自治县", "value": "650521" }, { "label": "伊吾县", "value": "650522" }], [{ "label": "昌吉市", "value": "652301" }, { "label": "阜康市", "value": "652302" }, { "label": "呼图壁县", "value": "652323" }, { "label": "玛纳斯县", "value": "652324" }, { "label": "奇台县", "value": "652325" }, { "label": "吉木萨尔县", "value": "652327" }, { "label": "木垒哈萨克自治县", "value": "652328" }], [{ "label": "博乐市", "value": "652701" }, { "label": "阿拉山口市", "value": "652702" }, { "label": "精河县", "value": "652722" }, { "label": "温泉县", "value": "652723" }], [{ "label": "库尔勒市", "value": "652801" }, { "label": "轮台县", "value": "652822" }, { "label": "尉犁县", "value": "652823" }, { "label": "若羌县", "value": "652824" }, { "label": "且末县", "value": "652825" }, { "label": "焉耆回族自治县", "value": "652826" }, { "label": "和静县", "value": "652827" }, { "label": "和硕县", "value": "652828" }, { "label": "博湖县", "value": "652829" }, { "label": "库尔勒经济技术开发区", "value": "652871" }], [{ "label": "阿克苏市", "value": "652901" }, { "label": "温宿县", "value": "652922" }, { "label": "库车县", "value": "652923" }, { "label": "沙雅县", "value": "652924" }, { "label": "新和县", "value": "652925" }, { "label": "拜城县", "value": "652926" }, { "label": "乌什县", "value": "652927" }, { "label": "阿瓦提县", "value": "652928" }, { "label": "柯坪县", "value": "652929" }], [{ "label": "阿图什市", "value": "653001" }, { "label": "阿克陶县", "value": "653022" }, { "label": "阿合奇县", "value": "653023" }, { "label": "乌恰县", "value": "653024" }], [{ "label": "喀什市", "value": "653101" }, { "label": "疏附县", "value": "653121" }, { "label": "疏勒县", "value": "653122" }, { "label": "英吉沙县", "value": "653123" }, { "label": "泽普县", "value": "653124" }, { "label": "莎车县", "value": "653125" }, { "label": "叶城县", "value": "653126" }, { "label": "麦盖提县", "value": "653127" }, { "label": "岳普湖县", "value": "653128" }, { "label": "伽师县", "value": "653129" }, { "label": "巴楚县", "value": "653130" }, { "label": "塔什库尔干塔吉克自治县", "value": "653131" }], [{ "label": "和田市", "value": "653201" }, { "label": "和田县", "value": "653221" }, { "label": "墨玉县", "value": "653222" }, { "label": "皮山县", "value": "653223" }, { "label": "洛浦县", "value": "653224" }, { "label": "策勒县", "value": "653225" }, { "label": "于田县", "value": "653226" }, { "label": "民丰县", "value": "653227" }], [{ "label": "伊宁市", "value": "654002" }, { "label": "奎屯市", "value": "654003" }, { "label": "霍尔果斯市", "value": "654004" }, { "label": "伊宁县", "value": "654021" }, { "label": "察布查尔锡伯自治县", "value": "654022" }, { "label": "霍城县", "value": "654023" }, { "label": "巩留县", "value": "654024" }, { "label": "新源县", "value": "654025" }, { "label": "昭苏县", "value": "654026" }, { "label": "特克斯县", "value": "654027" }, { "label": "尼勒克县", "value": "654028" }], [{ "label": "塔城市", "value": "654201" }, { "label": "乌苏市", "value": "654202" }, { "label": "额敏县", "value": "654221" }, { "label": "沙湾县", "value": "654223" }, { "label": "托里县", "value": "654224" }, { "label": "裕民县", "value": "654225" }, { "label": "和布克赛尔蒙古自治县", "value": "654226" }], [{ "label": "阿勒泰市", "value": "654301" }, { "label": "布尔津县", "value": "654321" }, { "label": "富蕴县", "value": "654322" }, { "label": "福海县", "value": "654323" }, { "label": "哈巴河县", "value": "654324" }, { "label": "青河县", "value": "654325" }, { "label": "吉木乃县", "value": "654326" }], [{ "label": "石河子市", "value": "659001" }, { "label": "阿拉尔市", "value": "659002" }, { "label": "图木舒克市", "value": "659003" }, { "label": "五家渠市", "value": "659004" }, { "label": "铁门关市", "value": "659006" }]], [[{ "label": "台北", "value": "660101" }], [{ "label": "高雄", "value": "660201" }], [{ "label": "基隆", "value": "660301" }], [{ "label": "台中", "value": "660401" }], [{ "label": "台南", "value": "660501" }], [{ "label": "新竹", "value": "660601" }], [{ "label": "嘉义", "value": "660701" }], [{ "label": "宜兰", "value": "660801" }], [{ "label": "桃园", "value": "660901" }], [{ "label": "苗栗", "value": "661001" }], [{ "label": "彰化", "value": "661101" }], [{ "label": "南投", "value": "661201" }], [{ "label": "云林", "value": "661301" }], [{ "label": "屏东", "value": "661401" }], [{ "label": "台东", "value": "661501" }], [{ "label": "花莲", "value": "661601" }], [{ "label": "澎湖", "value": "661701" }]], [[{ "label": "香港岛", "value": "670101" }], [{ "label": "九龙", "value": "670201" }], [{ "label": "新界", "value": "670301" }]], [[{ "label": "澳门半岛", "value": "680101" }], [{ "label": "氹仔岛", "value": "680201" }], [{ "label": "路环岛", "value": "680301" }], [{ "label": "路氹城", "value": "680401" }]]];var _default = areaData;exports.default = _default;
  11376. /***/ }),
  11377. /***/ 414:
  11378. /*!***********************************************************************!*\
  11379. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/function/findCnChart.js ***!
  11380. \***********************************************************************/
  11381. /*! no static exports found */
  11382. /***/ (function(module, exports, __webpack_require__) {
  11383. "use strict";
  11384. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _oMultiDiff;function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;} /**
  11385. * 提取中文的首字母
  11386. * 创建时间:2021-9-24
  11387. * 来源版权:https://blog.csdn.net/testcs_dn/article/details/25116655
  11388. * 版本归原作者。
  11389. */
  11390. var strChineseFirstPY =
  11391. "YDYQSXMWZSSXJBYMGCCZQPSSQBYCDSCDQLDYLYBSSJGYZZJJFKCCLZDHWDWZJLJPFYYNWJJTMYHZWZHFLZPPQHGSCYYYNJQYXXGJHHSDSJNKKTMOMLCRXYPSNQSECCQZGGLLYJLMYZZSECYKYYHQWJSSGGYXYZYJWWKDJHYCHMYXJTLXJYQBYXZLDWRDJRWYSRLDZJPCBZJJBRCFTLECZSTZFXXZHTRQHYBDLYCZSSYMMRFMYQZPWWJJYFCRWFDFZQPYDDWYXKYJAWJFFXYPSFTZYHHYZYSWCJYXSCLCXXWZZXNBGNNXBXLZSZSBSGPYSYZDHMDZBQBZCWDZZYYTZHBTSYYBZGNTNXQYWQSKBPHHLXGYBFMJEBJHHGQTJCYSXSTKZHLYCKGLYSMZXYALMELDCCXGZYRJXSDLTYZCQKCNNJWHJTZZCQLJSTSTBNXBTYXCEQXGKWJYFLZQLYHYXSPSFXLMPBYSXXXYDJCZYLLLSJXFHJXPJBTFFYABYXBHZZBJYZLWLCZGGBTSSMDTJZXPTHYQTGLJSCQFZKJZJQNLZWLSLHDZBWJNCJZYZSQQYCQYRZCJJWYBRTWPYFTWEXCSKDZCTBZHYZZYYJXZCFFZZMJYXXSDZZOTTBZLQWFCKSZSXFYRLNYJMBDTHJXSQQCCSBXYYTSYFBXDZTGBCNSLCYZZPSAZYZZSCJCSHZQYDXLBPJLLMQXTYDZXSQJTZPXLCGLQTZWJBHCTSYJSFXYEJJTLBGXSXJMYJQQPFZASYJNTYDJXKJCDJSZCBARTDCLYJQMWNQNCLLLKBYBZZSYHQQLTWLCCXTXLLZNTYLNEWYZYXCZXXGRKRMTCNDNJTSYYSSDQDGHSDBJGHRWRQLYBGLXHLGTGXBQJDZPYJSJYJCTMRNYMGRZJCZGJMZMGXMPRYXKJNYMSGMZJYMKMFXMLDTGFBHCJHKYLPFMDXLQJJSMTQGZSJLQDLDGJYCALCMZCSDJLLNXDJFFFFJCZFMZFFPFKHKGDPSXKTACJDHHZDDCRRCFQYJKQCCWJDXHWJLYLLZGCFCQDSMLZPBJJPLSBCJGGDCKKDEZSQCCKJGCGKDJTJDLZYCXKLQSCGJCLTFPCQCZGWPJDQYZJJBYJHSJDZWGFSJGZKQCCZLLPSPKJGQJHZZLJPLGJGJJTHJJYJZCZMLZLYQBGJWMLJKXZDZNJQSYZMLJLLJKYWXMKJLHSKJGBMCLYYMKXJQLBMLLKMDXXKWYXYSLMLPSJQQJQXYXFJTJDXMXXLLCXQBSYJBGWYMBGGBCYXPJYGPEPFGDJGBHBNSQJYZJKJKHXQFGQZKFHYGKHDKLLSDJQXPQYKYBNQSXQNSZSWHBSXWHXWBZZXDMNSJBSBKBBZKLYLXGWXDRWYQZMYWSJQLCJXXJXKJEQXSCYETLZHLYYYSDZPAQYZCMTLSHTZCFYZYXYLJSDCJQAGYSLCQLYYYSHMRQQKLDXZSCSSSYDYCJYSFSJBFRSSZQSBXXPXJYSDRCKGJLGDKZJZBDKTCSYQPYHSTCLDJDHMXMCGXYZHJDDTMHLTXZXYLYMOHYJCLTYFBQQXPFBDFHHTKSQHZYYWCNXXCRWHOWGYJLEGWDQCWGFJYCSNTMYTOLBYGWQWESJPWNMLRYDZSZTXYQPZGCWXHNGPYXSHMYQJXZTDPPBFYHZHTJYFDZWKGKZBLDNTSXHQEEGZZYLZMMZYJZGXZXKHKSTXNXXWYLYAPSTHXDWHZYMPXAGKYDXBHNHXKDPJNMYHYLPMGOCSLNZHKXXLPZZLBMLSFBHHGYGYYGGBHSCYAQTYWLXTZQCEZYDQDQMMHTKLLSZHLSJZWFYHQSWSCWLQAZYNYTLSXTHAZNKZZSZZLAXXZWWCTGQQTDDYZTCCHYQZFLXPSLZYGPZSZNGLNDQTBDLXGTCTAJDKYWNSYZLJHHZZCWNYYZYWMHYCHHYXHJKZWSXHZYXLYSKQYSPSLYZWMYPPKBYGLKZHTYXAXQSYSHXASMCHKDSCRSWJPWXSGZJLWWSCHSJHSQNHCSEGNDAQTBAALZZMSSTDQJCJKTSCJAXPLGGXHHGXXZCXPDMMHLDGTYBYSJMXHMRCPXXJZCKZXSHMLQXXTTHXWZFKHCCZDYTCJYXQHLXDHYPJQXYLSYYDZOZJNYXQEZYSQYAYXWYPDGXDDXSPPYZNDLTWRHXYDXZZJHTCXMCZLHPYYYYMHZLLHNXMYLLLMDCPPXHMXDKYCYRDLTXJCHHZZXZLCCLYLNZSHZJZZLNNRLWHYQSNJHXYNTTTKYJPYCHHYEGKCTTWLGQRLGGTGTYGYHPYHYLQYQGCWYQKPYYYTTTTLHYHLLTYTTSPLKYZXGZWGPYDSSZZDQXSKCQNMJJZZBXYQMJRTFFBTKHZKBXLJJKDXJTLBWFZPPTKQTZTGPDGNTPJYFALQMKGXBDCLZFHZCLLLLADPMXDJHLCCLGYHDZFGYDDGCYYFGYDXKSSEBDHYKDKDKHNAXXYBPBYYHXZQGAFFQYJXDMLJCSQZLLPCHBSXGJYNDYBYQSPZWJLZKSDDTACTBXZDYZYPJZQSJNKKTKNJDJGYYPGTLFYQKASDNTCYHBLWDZHBBYDWJRYGKZYHEYYFJMSDTYFZJJHGCXPLXHLDWXXJKYTCYKSSSMTWCTTQZLPBSZDZWZXGZAGYKTYWXLHLSPBCLLOQMMZSSLCMBJCSZZKYDCZJGQQDSMCYTZQQLWZQZXSSFPTTFQMDDZDSHDTDWFHTDYZJYQJQKYPBDJYYXTLJHDRQXXXHAYDHRJLKLYTWHLLRLLRCXYLBWSRSZZSYMKZZHHKYHXKSMDSYDYCJPBZBSQLFCXXXNXKXWYWSDZYQOGGQMMYHCDZTTFJYYBGSTTTYBYKJDHKYXBELHTYPJQNFXFDYKZHQKZBYJTZBXHFDXKDASWTAWAJLDYJSFHBLDNNTNQJTJNCHXFJSRFWHZFMDRYJYJWZPDJKZYJYMPCYZNYNXFBYTFYFWYGDBNZZZDNYTXZEMMQBSQEHXFZMBMFLZZSRXYMJGSXWZJSPRYDJSJGXHJJGLJJYNZZJXHGXKYMLPYYYCXYTWQZSWHWLYRJLPXSLSXMFSWWKLCTNXNYNPSJSZHDZEPTXMYYWXYYSYWLXJQZQXZDCLEEELMCPJPCLWBXSQHFWWTFFJTNQJHJQDXHWLBYZNFJLALKYYJLDXHHYCSTYYWNRJYXYWTRMDRQHWQCMFJDYZMHMYYXJWMYZQZXTLMRSPWWCHAQBXYGZYPXYYRRCLMPYMGKSJSZYSRMYJSNXTPLNBAPPYPYLXYYZKYNLDZYJZCZNNLMZHHARQMPGWQTZMXXMLLHGDZXYHXKYXYCJMFFYYHJFSBSSQLXXNDYCANNMTCJCYPRRNYTYQNYYMBMSXNDLYLYSLJRLXYSXQMLLYZLZJJJKYZZCSFBZXXMSTBJGNXYZHLXNMCWSCYZYFZLXBRNNNYLBNRTGZQYSATSWRYHYJZMZDHZGZDWYBSSCSKXSYHYTXXGCQGXZZSHYXJSCRHMKKBXCZJYJYMKQHZJFNBHMQHYSNJNZYBKNQMCLGQHWLZNZSWXKHLJHYYBQLBFCDSXDLDSPFZPSKJYZWZXZDDXJSMMEGJSCSSMGCLXXKYYYLNYPWWWGYDKZJGGGZGGSYCKNJWNJPCXBJJTQTJWDSSPJXZXNZXUMELPXFSXTLLXCLJXJJLJZXCTPSWXLYDHLYQRWHSYCSQYYBYAYWJJJQFWQCQQCJQGXALDBZZYJGKGXPLTZYFXJLTPADKYQHPMATLCPDCKBMTXYBHKLENXDLEEGQDYMSAWHZMLJTWYGXLYQZLJEEYYBQQFFNLYXRDSCTGJGXYYNKLLYQKCCTLHJLQMKKZGCYYGLLLJDZGYDHZWXPYSJBZKDZGYZZHYWYFQYTYZSZYEZZLYMHJJHTSMQWYZLKYYWZCSRKQYTLTDXWCTYJKLWSQZWBDCQYNCJSRSZJLKCDCDTLZZZACQQZZDDXYPLXZBQJYLZLLLQDDZQJYJYJZYXNYYYNYJXKXDAZWYRDLJYYYRJLXLLDYXJCYWYWNQCCLDDNYYYNYCKCZHXXCCLGZQJGKWPPCQQJYSBZZXYJSQPXJPZBSBDSFNSFPZXHDWZTDWPPTFLZZBZDMYYPQJRSDZSQZSQXBDGCPZSWDWCSQZGMDHZXMWWFYBPDGPHTMJTHZSMMBGZMBZJCFZWFZBBZMQCFMBDMCJXLGPNJBBXGYHYYJGPTZGZMQBQTCGYXJXLWZKYDPDYMGCFTPFXYZTZXDZXTGKMTYBBCLBJASKYTSSQYYMSZXFJEWLXLLSZBQJJJAKLYLXLYCCTSXMCWFKKKBSXLLLLJYXTYLTJYYTDPJHNHNNKBYQNFQYYZBYYESSESSGDYHFHWTCJBSDZZTFDMXHCNJZYMQWSRYJDZJQPDQBBSTJGGFBKJBXTGQHNGWJXJGDLLTHZHHYYYYYYSXWTYYYCCBDBPYPZYCCZYJPZYWCBDLFWZCWJDXXHYHLHWZZXJTCZLCDPXUJCZZZLYXJJTXPHFXWPYWXZPTDZZBDZCYHJHMLXBQXSBYLRDTGJRRCTTTHYTCZWMXFYTWWZCWJWXJYWCSKYBZSCCTZQNHXNWXXKHKFHTSWOCCJYBCMPZZYKBNNZPBZHHZDLSYDDYTYFJPXYNGFXBYQXCBHXCPSXTYZDMKYSNXSXLHKMZXLYHDHKWHXXSSKQYHHCJYXGLHZXCSNHEKDTGZXQYPKDHEXTYKCNYMYYYPKQYYYKXZLTHJQTBYQHXBMYHSQCKWWYLLHCYYLNNEQXQWMCFBDCCMLJGGXDQKTLXKGNQCDGZJWYJJLYHHQTTTNWCHMXCXWHWSZJYDJCCDBQCDGDNYXZTHCQRXCBHZTQCBXWGQWYYBXHMBYMYQTYEXMQKYAQYRGYZSLFYKKQHYSSQYSHJGJCNXKZYCXSBXYXHYYLSTYCXQTHYSMGSCPMMGCCCCCMTZTASMGQZJHKLOSQYLSWTMXSYQKDZLJQQYPLSYCZTCQQPBBQJZCLPKHQZYYXXDTDDTSJCXFFLLCHQXMJLWCJCXTSPYCXNDTJSHJWXDQQJSKXYAMYLSJHMLALYKXCYYDMNMDQMXMCZNNCYBZKKYFLMCHCMLHXRCJJHSYLNMTJZGZGYWJXSRXCWJGJQHQZDQJDCJJZKJKGDZQGJJYJYLXZXXCDQHHHEYTMHLFSBDJSYYSHFYSTCZQLPBDRFRZTZYKYWHSZYQKWDQZRKMSYNBCRXQBJYFAZPZZEDZCJYWBCJWHYJBQSZYWRYSZPTDKZPFPBNZTKLQYHBBZPNPPTYZZYBQNYDCPJMMCYCQMCYFZZDCMNLFPBPLNGQJTBTTNJZPZBBZNJKLJQYLNBZQHKSJZNGGQSZZKYXSHPZSNBCGZKDDZQANZHJKDRTLZLSWJLJZLYWTJNDJZJHXYAYNCBGTZCSSQMNJPJYTYSWXZFKWJQTKHTZPLBHSNJZSYZBWZZZZLSYLSBJHDWWQPSLMMFBJDWAQYZTCJTBNNWZXQXCDSLQGDSDPDZHJTQQPSWLYYJZLGYXYZLCTCBJTKTYCZJTQKBSJLGMGZDMCSGPYNJZYQYYKNXRPWSZXMTNCSZZYXYBYHYZAXYWQCJTLLCKJJTJHGDXDXYQYZZBYWDLWQCGLZGJGQRQZCZSSBCRPCSKYDZNXJSQGXSSJMYDNSTZTPBDLTKZWXQWQTZEXNQCZGWEZKSSBYBRTSSSLCCGBPSZQSZLCCGLLLZXHZQTHCZMQGYZQZNMCOCSZJMMZSQPJYGQLJYJPPLDXRGZYXCCSXHSHGTZNLZWZKJCXTCFCJXLBMQBCZZWPQDNHXLJCTHYZLGYLNLSZZPCXDSCQQHJQKSXZPBAJYEMSMJTZDXLCJYRYYNWJBNGZZTMJXLTBSLYRZPYLSSCNXPHLLHYLLQQZQLXYMRSYCXZLMMCZLTZSDWTJJLLNZGGQXPFSKYGYGHBFZPDKMWGHCXMSGDXJMCJZDYCABXJDLNBCDQYGSKYDQTXDJJYXMSZQAZDZFSLQXYJSJZYLBTXXWXQQZBJZUFBBLYLWDSLJHXJYZJWTDJCZFQZQZZDZSXZZQLZCDZFJHYSPYMPQZMLPPLFFXJJNZZYLSJEYQZFPFZKSYWJJJHRDJZZXTXXGLGHYDXCSKYSWMMZCWYBAZBJKSHFHJCXMHFQHYXXYZFTSJYZFXYXPZLCHMZMBXHZZSXYFYMNCWDABAZLXKTCSHHXKXJJZJSTHYGXSXYYHHHJWXKZXSSBZZWHHHCWTZZZPJXSNXQQJGZYZYWLLCWXZFXXYXYHXMKYYSWSQMNLNAYCYSPMJKHWCQHYLAJJMZXHMMCNZHBHXCLXTJPLTXYJHDYYLTTXFSZHYXXSJBJYAYRSMXYPLCKDUYHLXRLNLLSTYZYYQYGYHHSCCSMZCTZQXKYQFPYYRPFFLKQUNTSZLLZMWWTCQQYZWTLLMLMPWMBZSSTZRBPDDTLQJJBXZCSRZQQYGWCSXFWZLXCCRSZDZMCYGGDZQSGTJSWLJMYMMZYHFBJDGYXCCPSHXNZCSBSJYJGJMPPWAFFYFNXHYZXZYLREMZGZCYZSSZDLLJCSQFNXZKPTXZGXJJGFMYYYSNBTYLBNLHPFZDCYFBMGQRRSSSZXYSGTZRNYDZZCDGPJAFJFZKNZBLCZSZPSGCYCJSZLMLRSZBZZLDLSLLYSXSQZQLYXZLSKKBRXBRBZCYCXZZZEEYFGKLZLYYHGZSGZLFJHGTGWKRAAJYZKZQTSSHJJXDCYZUYJLZYRZDQQHGJZXSSZBYKJPBFRTJXLLFQWJHYLQTYMBLPZDXTZYGBDHZZRBGXHWNJTJXLKSCFSMWLSDQYSJTXKZSCFWJLBXFTZLLJZLLQBLSQMQQCGCZFPBPHZCZJLPYYGGDTGWDCFCZQYYYQYSSCLXZSKLZZZGFFCQNWGLHQYZJJCZLQZZYJPJZZBPDCCMHJGXDQDGDLZQMFGPSYTSDYFWWDJZJYSXYYCZCYHZWPBYKXRYLYBHKJKSFXTZJMMCKHLLTNYYMSYXYZPYJQYCSYCWMTJJKQYRHLLQXPSGTLYYCLJSCPXJYZFNMLRGJJTYZBXYZMSJYJHHFZQMSYXRSZCWTLRTQZSSTKXGQKGSPTGCZNJSJCQCXHMXGGZTQYDJKZDLBZSXJLHYQGGGTHQSZPYHJHHGYYGKGGCWJZZYLCZLXQSFTGZSLLLMLJSKCTBLLZZSZMMNYTPZSXQHJCJYQXYZXZQZCPSHKZZYSXCDFGMWQRLLQXRFZTLYSTCTMJCXJJXHJNXTNRZTZFQYHQGLLGCXSZSJDJLJCYDSJTLNYXHSZXCGJZYQPYLFHDJSBPCCZHJJJQZJQDYBSSLLCMYTTMQTBHJQNNYGKYRQYQMZGCJKPDCGMYZHQLLSLLCLMHOLZGDYYFZSLJCQZLYLZQJESHNYLLJXGJXLYSYYYXNBZLJSSZCQQCJYLLZLTJYLLZLLBNYLGQCHXYYXOXCXQKYJXXXYKLXSXXYQXCYKQXQCSGYXXYQXYGYTQOHXHXPYXXXULCYEYCHZZCBWQBBWJQZSCSZSSLZYLKDESJZWMYMCYTSDSXXSCJPQQSQYLYYZYCMDJDZYWCBTJSYDJKCYDDJLBDJJSODZYSYXQQYXDHHGQQYQHDYXWGMMMAJDYBBBPPBCMUUPLJZSMTXERXJMHQNUTPJDCBSSMSSSTKJTSSMMTRCPLZSZMLQDSDMJMQPNQDXCFYNBFSDQXYXHYAYKQYDDLQYYYSSZBYDSLNTFQTZQPZMCHDHCZCWFDXTMYQSPHQYYXSRGJCWTJTZZQMGWJJTJHTQJBBHWZPXXHYQFXXQYWYYHYSCDYDHHQMNMTMWCPBSZPPZZGLMZFOLLCFWHMMSJZTTDHZZYFFYTZZGZYSKYJXQYJZQBHMBZZLYGHGFMSHPZFZSNCLPBQSNJXZSLXXFPMTYJYGBXLLDLXPZJYZJYHHZCYWHJYLSJEXFSZZYWXKZJLUYDTMLYMQJPWXYHXSKTQJEZRPXXZHHMHWQPWQLYJJQJJZSZCPHJLCHHNXJLQWZJHBMZYXBDHHYPZLHLHLGFWLCHYYTLHJXCJMSCPXSTKPNHQXSRTYXXTESYJCTLSSLSTDLLLWWYHDHRJZSFGXTSYCZYNYHTDHWJSLHTZDQDJZXXQHGYLTZPHCSQFCLNJTCLZPFSTPDYNYLGMJLLYCQHYSSHCHYLHQYQTMZYPBYWRFQYKQSYSLZDQJMPXYYSSRHZJNYWTQDFZBWWTWWRXCWHGYHXMKMYYYQMSMZHNGCEPMLQQMTCWCTMMPXJPJJHFXYYZSXZHTYBMSTSYJTTQQQYYLHYNPYQZLCYZHZWSMYLKFJXLWGXYPJYTYSYXYMZCKTTWLKSMZSYLMPWLZWXWQZSSAQSYXYRHSSNTSRAPXCPWCMGDXHXZDZYFJHGZTTSBJHGYZSZYSMYCLLLXBTYXHBBZJKSSDMALXHYCFYGMQYPJYCQXJLLLJGSLZGQLYCJCCZOTYXMTMTTLLWTGPXYMZMKLPSZZZXHKQYSXCTYJZYHXSHYXZKXLZWPSQPYHJWPJPWXQQYLXSDHMRSLZZYZWTTCYXYSZZSHBSCCSTPLWSSCJCHNLCGCHSSPHYLHFHHXJSXYLLNYLSZDHZXYLSXLWZYKCLDYAXZCMDDYSPJTQJZLNWQPSSSWCTSTSZLBLNXSMNYYMJQBQHRZWTYYDCHQLXKPZWBGQYBKFCMZWPZLLYYLSZYDWHXPSBCMLJBSCGBHXLQHYRLJXYSWXWXZSLDFHLSLYNJLZYFLYJYCDRJLFSYZFSLLCQYQFGJYHYXZLYLMSTDJCYHBZLLNWLXXYGYYHSMGDHXXHHLZZJZXCZZZCYQZFNGWPYLCPKPYYPMCLQKDGXZGGWQBDXZZKZFBXXLZXJTPJPTTBYTSZZDWSLCHZHSLTYXHQLHYXXXYYZYSWTXZKHLXZXZPYHGCHKCFSYHUTJRLXFJXPTZTWHPLYXFCRHXSHXKYXXYHZQDXQWULHYHMJTBFLKHTXCWHJFWJCFPQRYQXCYYYQYGRPYWSGSUNGWCHKZDXYFLXXHJJBYZWTSXXNCYJJYMSWZJQRMHXZWFQSYLZJZGBHYNSLBGTTCSYBYXXWXYHXYYXNSQYXMQYWRGYQLXBBZLJSYLPSYTJZYHYZAWLRORJMKSCZJXXXYXCHDYXRYXXJDTSQFXLYLTSFFYXLMTYJMJUYYYXLTZCSXQZQHZXLYYXZHDNBRXXXJCTYHLBRLMBRLLAXKYLLLJLYXXLYCRYLCJTGJCMTLZLLCYZZPZPCYAWHJJFYBDYYZSMPCKZDQYQPBPCJPDCYZMDPBCYYDYCNNPLMTMLRMFMMGWYZBSJGYGSMZQQQZTXMKQWGXLLPJGZBQCDJJJFPKJKCXBLJMSWMDTQJXLDLPPBXCWRCQFBFQJCZAHZGMYKPHYYHZYKNDKZMBPJYXPXYHLFPNYYGXJDBKXNXHJMZJXSTRSTLDXSKZYSYBZXJLXYSLBZYSLHXJPFXPQNBYLLJQKYGZMCYZZYMCCSLCLHZFWFWYXZMWSXTYNXJHPYYMCYSPMHYSMYDYSHQYZCHMJJMZCAAGCFJBBHPLYZYLXXSDJGXDHKXXTXXNBHRMLYJSLTXMRHNLXQJXYZLLYSWQGDLBJHDCGJYQYCMHWFMJYBMBYJYJWYMDPWHXQLDYGPDFXXBCGJSPCKRSSYZJMSLBZZJFLJJJLGXZGYXYXLSZQYXBEXYXHGCXBPLDYHWETTWWCJMBTXCHXYQXLLXFLYXLLJLSSFWDPZSMYJCLMWYTCZPCHQEKCQBWLCQYDPLQPPQZQFJQDJHYMMCXTXDRMJWRHXCJZYLQXDYYNHYYHRSLSRSYWWZJYMTLTLLGTQCJZYABTCKZCJYCCQLJZQXALMZYHYWLWDXZXQDLLQSHGPJFJLJHJABCQZDJGTKHSSTCYJLPSWZLXZXRWGLDLZRLZXTGSLLLLZLYXXWGDZYGBDPHZPBRLWSXQBPFDWOFMWHLYPCBJCCLDMBZPBZZLCYQXLDOMZBLZWPDWYYGDSTTHCSQSCCRSSSYSLFYBFNTYJSZDFNDPDHDZZMBBLSLCMYFFGTJJQWFTMTPJWFNLBZCMMJTGBDZLQLPYFHYYMJYLSDCHDZJWJCCTLJCLDTLJJCPDDSQDSSZYBNDBJLGGJZXSXNLYCYBJXQYCBYLZCFZPPGKCXZDZFZTJJFJSJXZBNZYJQTTYJYHTYCZHYMDJXTTMPXSPLZCDWSLSHXYPZGTFMLCJTYCBPMGDKWYCYZCDSZZYHFLYCTYGWHKJYYLSJCXGYWJCBLLCSNDDBTZBSCLYZCZZSSQDLLMQYYHFSLQLLXFTYHABXGWNYWYYPLLSDLDLLBJCYXJZMLHLJDXYYQYTDLLLBUGBFDFBBQJZZMDPJHGCLGMJJPGAEHHBWCQXAXHHHZCHXYPHJAXHLPHJPGPZJQCQZGJJZZUZDMQYYBZZPHYHYBWHAZYJHYKFGDPFQSDLZMLJXKXGALXZDAGLMDGXMWZQYXXDXXPFDMMSSYMPFMDMMKXKSYZYSHDZKXSYSMMZZZMSYDNZZCZXFPLSTMZDNMXCKJMZTYYMZMZZMSXHHDCZJEMXXKLJSTLWLSQLYJZLLZJSSDPPMHNLZJCZYHMXXHGZCJMDHXTKGRMXFWMCGMWKDTKSXQMMMFZZYDKMSCLCMPCGMHSPXQPZDSSLCXKYXTWLWJYAHZJGZQMCSNXYYMMPMLKJXMHLMLQMXCTKZMJQYSZJSYSZHSYJZJCDAJZYBSDQJZGWZQQXFKDMSDJLFWEHKZQKJPEYPZYSZCDWYJFFMZZYLTTDZZEFMZLBNPPLPLPEPSZALLTYLKCKQZKGENQLWAGYXYDPXLHSXQQWQCQXQCLHYXXMLYCCWLYMQYSKGCHLCJNSZKPYZKCQZQLJPDMDZHLASXLBYDWQLWDNBQCRYDDZTJYBKBWSZDXDTNPJDTCTQDFXQQMGNXECLTTBKPWSLCTYQLPWYZZKLPYGZCQQPLLKCCYLPQMZCZQCLJSLQZDJXLDDHPZQDLJJXZQDXYZQKZLJCYQDYJPPYPQYKJYRMPCBYMCXKLLZLLFQPYLLLMBSGLCYSSLRSYSQTMXYXZQZFDZUYSYZTFFMZZSMZQHZSSCCMLYXWTPZGXZJGZGSJSGKDDHTQGGZLLBJDZLCBCHYXYZHZFYWXYZYMSDBZZYJGTSMTFXQYXQSTDGSLNXDLRYZZLRYYLXQHTXSRTZNGZXBNQQZFMYKMZJBZYMKBPNLYZPBLMCNQYZZZSJZHJCTZKHYZZJRDYZHNPXGLFZTLKGJTCTSSYLLGZRZBBQZZKLPKLCZYSSUYXBJFPNJZZXCDWXZYJXZZDJJKGGRSRJKMSMZJLSJYWQSKYHQJSXPJZZZLSNSHRNYPZTWCHKLPSRZLZXYJQXQKYSJYCZTLQZYBBYBWZPQDWWYZCYTJCJXCKCWDKKZXSGKDZXWWYYJQYYTCYTDLLXWKCZKKLCCLZCQQDZLQLCSFQCHQHSFSMQZZLNBJJZBSJHTSZDYSJQJPDLZCDCWJKJZZLPYCGMZWDJJBSJQZSYZYHHXJPBJYDSSXDZNCGLQMBTSFSBPDZDLZNFGFJGFSMPXJQLMBLGQCYYXBQKDJJQYRFKZTJDHCZKLBSDZCFJTPLLJGXHYXZCSSZZXSTJYGKGCKGYOQXJPLZPBPGTGYJZGHZQZZLBJLSQFZGKQQJZGYCZBZQTLDXRJXBSXXPZXHYZYCLWDXJJHXMFDZPFZHQHQMQGKSLYHTYCGFRZGNQXCLPDLBZCSCZQLLJBLHBZCYPZZPPDYMZZSGYHCKCPZJGSLJLNSCDSLDLXBMSTLDDFJMKDJDHZLZXLSZQPQPGJLLYBDSZGQLBZLSLKYYHZTTNTJYQTZZPSZQZTLLJTYYLLQLLQYZQLBDZLSLYYZYMDFSZSNHLXZNCZQZPBWSKRFBSYZMTHBLGJPMCZZLSTLXSHTCSYZLZBLFEQHLXFLCJLYLJQCBZLZJHHSSTBRMHXZHJZCLXFNBGXGTQJCZTMSFZKJMSSNXLJKBHSJXNTNLZDNTLMSJXGZJYJCZXYJYJWRWWQNZTNFJSZPZSHZJFYRDJSFSZJZBJFZQZZHZLXFYSBZQLZSGYFTZDCSZXZJBQMSZKJRHYJZCKMJKHCHGTXKXQGLXPXFXTRTYLXJXHDTSJXHJZJXZWZLCQSBTXWXGXTXXHXFTSDKFJHZYJFJXRZSDLLLTQSQQZQWZXSYQTWGWBZCGZLLYZBCLMQQTZHZXZXLJFRMYZFLXYSQXXJKXRMQDZDMMYYBSQBHGZMWFWXGMXLZPYYTGZYCCDXYZXYWGSYJYZNBHPZJSQSYXSXRTFYZGRHZTXSZZTHCBFCLSYXZLZQMZLMPLMXZJXSFLBYZMYQHXJSXRXSQZZZSSLYFRCZJRCRXHHZXQYDYHXSJJHZCXZBTYNSYSXJBQLPXZQPYMLXZKYXLXCJLCYSXXZZLXDLLLJJYHZXGYJWKJRWYHCPSGNRZLFZWFZZNSXGXFLZSXZZZBFCSYJDBRJKRDHHGXJLJJTGXJXXSTJTJXLYXQFCSGSWMSBCTLQZZWLZZKXJMLTMJYHSDDBXGZHDLBMYJFRZFSGCLYJBPMLYSMSXLSZJQQHJZFXGFQFQBPXZGYYQXGZTCQWYLTLGWSGWHRLFSFGZJMGMGBGTJFSYZZGZYZAFLSSPMLPFLCWBJZCLJJMZLPJJLYMQDMYYYFBGYGYZMLYZDXQYXRQQQHSYYYQXYLJTYXFSFSLLGNQCYHYCWFHCCCFXPYLYPLLZYXXXXXKQHHXSHJZCFZSCZJXCPZWHHHHHAPYLQALPQAFYHXDYLUKMZQGGGDDESRNNZLTZGCHYPPYSQJJHCLLJTOLNJPZLJLHYMHEYDYDSQYCDDHGZUNDZCLZYZLLZNTNYZGSLHSLPJJBDGWXPCDUTJCKLKCLWKLLCASSTKZZDNQNTTLYYZSSYSSZZRYLJQKCQDHHCRXRZYDGRGCWCGZQFFFPPJFZYNAKRGYWYQPQXXFKJTSZZXSWZDDFBBXTBGTZKZNPZZPZXZPJSZBMQHKCYXYLDKLJNYPKYGHGDZJXXEAHPNZKZTZCMXCXMMJXNKSZQNMNLWBWWXJKYHCPSTMCSQTZJYXTPCTPDTNNPGLLLZSJLSPBLPLQHDTNJNLYYRSZFFJFQWDPHZDWMRZCCLODAXNSSNYZRESTYJWJYJDBCFXNMWTTBYLWSTSZGYBLJPXGLBOCLHPCBJLTMXZLJYLZXCLTPNCLCKXTPZJSWCYXSFYSZDKNTLBYJCYJLLSTGQCBXRYZXBXKLYLHZLQZLNZCXWJZLJZJNCJHXMNZZGJZZXTZJXYCYYCXXJYYXJJXSSSJSTSSTTPPGQTCSXWZDCSYFPTFBFHFBBLZJCLZZDBXGCXLQPXKFZFLSYLTUWBMQJHSZBMDDBCYSCCLDXYCDDQLYJJWMQLLCSGLJJSYFPYYCCYLTJANTJJPWYCMMGQYYSXDXQMZHSZXPFTWWZQSWQRFKJLZJQQYFBRXJHHFWJJZYQAZMYFRHCYYBYQWLPEXCCZSTYRLTTDMQLYKMBBGMYYJPRKZNPBSXYXBHYZDJDNGHPMFSGMWFZMFQMMBCMZZCJJLCNUXYQLMLRYGQZCYXZLWJGCJCGGMCJNFYZZJHYCPRRCMTZQZXHFQGTJXCCJEAQCRJYHPLQLSZDJRBCQHQDYRHYLYXJSYMHZYDWLDFRYHBPYDTSSCNWBXGLPZMLZZTQSSCPJMXXYCSJYTYCGHYCJWYRXXLFEMWJNMKLLSWTXHYYYNCMMCWJDQDJZGLLJWJRKHPZGGFLCCSCZMCBLTBHBQJXQDSPDJZZGKGLFQYWBZYZJLTSTDHQHCTCBCHFLQMPWDSHYYTQWCNZZJTLBYMBPDYYYXSQKXWYYFLXXNCWCXYPMAELYKKJMZZZBRXYYQJFLJPFHHHYTZZXSGQQMHSPGDZQWBWPJHZJDYSCQWZKTXXSQLZYYMYSDZGRXCKKUJLWPYSYSCSYZLRMLQSYLJXBCXTLWDQZPCYCYKPPPNSXFYZJJRCEMHSZMSXLXGLRWGCSTLRSXBZGBZGZTCPLUJLSLYLYMTXMTZPALZXPXJTJWTCYYZLBLXBZLQMYLXPGHDSLSSDMXMBDZZSXWHAMLCZCPJMCNHJYSNSYGCHSKQMZZQDLLKABLWJXSFMOCDXJRRLYQZKJMYBYQLYHETFJZFRFKSRYXFJTWDSXXSYSQJYSLYXWJHSNLXYYXHBHAWHHJZXWMYLJCSSLKYDZTXBZSYFDXGXZJKHSXXYBSSXDPYNZWRPTQZCZENYGCXQFJYKJBZMLJCMQQXUOXSLYXXLYLLJDZBTYMHPFSTTQQWLHOKYBLZZALZXQLHZWRRQHLSTMYPYXJJXMQSJFNBXYXYJXXYQYLTHYLQYFMLKLJTMLLHSZWKZHLJMLHLJKLJSTLQXYLMBHHLNLZXQJHXCFXXLHYHJJGBYZZKBXSCQDJQDSUJZYYHZHHMGSXCSYMXFEBCQWWRBPYYJQTYZCYQYQQZYHMWFFHGZFRJFCDPXNTQYZPDYKHJLFRZXPPXZDBBGZQSTLGDGYLCQMLCHHMFYWLZYXKJLYPQHSYWMQQGQZMLZJNSQXJQSYJYCBEHSXFSZPXZWFLLBCYYJDYTDTHWZSFJMQQYJLMQXXLLDTTKHHYBFPWTYYSQQWNQWLGWDEBZWCMYGCULKJXTMXMYJSXHYBRWFYMWFRXYQMXYSZTZZTFYKMLDHQDXWYYNLCRYJBLPSXCXYWLSPRRJWXHQYPHTYDNXHHMMYWYTZCSQMTSSCCDALWZTCPQPYJLLQZYJSWXMZZMMYLMXCLMXCZMXMZSQTZPPQQBLPGXQZHFLJJHYTJSRXWZXSCCDLXTYJDCQJXSLQYCLZXLZZXMXQRJMHRHZJBHMFLJLMLCLQNLDXZLLLPYPSYJYSXCQQDCMQJZZXHNPNXZMEKMXHYKYQLXSXTXJYYHWDCWDZHQYYBGYBCYSCFGPSJNZDYZZJZXRZRQJJYMCANYRJTLDPPYZBSTJKXXZYPFDWFGZZRPYMTNGXZQBYXNBUFNQKRJQZMJEGRZGYCLKXZDSKKNSXKCLJSPJYYZLQQJYBZSSQLLLKJXTBKTYLCCDDBLSPPFYLGYDTZJYQGGKQTTFZXBDKTYYHYBBFYTYYBCLPDYTGDHRYRNJSPTCSNYJQHKLLLZSLYDXXWBCJQSPXBPJZJCJDZFFXXBRMLAZHCSNDLBJDSZBLPRZTSWSBXBCLLXXLZDJZSJPYLYXXYFTFFFBHJJXGBYXJPMMMPSSJZJMTLYZJXSWXTYLEDQPJMYGQZJGDJLQJWJQLLSJGJGYGMSCLJJXDTYGJQJQJCJZCJGDZZSXQGSJGGCXHQXSNQLZZBXHSGZXCXYLJXYXYYDFQQJHJFXDHCTXJYRXYSQTJXYEFYYSSYYJXNCYZXFXMSYSZXYYSCHSHXZZZGZZZGFJDLTYLNPZGYJYZYYQZPBXQBDZTZCZYXXYHHSQXSHDHGQHJHGYWSZTMZMLHYXGEBTYLZKQWYTJZRCLEKYSTDBCYKQQSAYXCJXWWGSBHJYZYDHCSJKQCXSWXFLTYNYZPZCCZJQTZWJQDZZZQZLJJXLSBHPYXXPSXSHHEZTXFPTLQYZZXHYTXNCFZYYHXGNXMYWXTZSJPTHHGYMXMXQZXTSBCZYJYXXTYYZYPCQLMMSZMJZZLLZXGXZAAJZYXJMZXWDXZSXZDZXLEYJJZQBHZWZZZQTZPSXZTDSXJJJZNYAZPHXYYSRNQDTHZHYYKYJHDZXZLSWCLYBZYECWCYCRYLCXNHZYDZYDYJDFRJJHTRSQTXYXJRJHOJYNXELXSFSFJZGHPZSXZSZDZCQZBYYKLSGSJHCZSHDGQGXYZGXCHXZJWYQWGYHKSSEQZZNDZFKWYSSTCLZSTSYMCDHJXXYWEYXCZAYDMPXMDSXYBSQMJMZJMTZQLPJYQZCGQHXJHHLXXHLHDLDJQCLDWBSXFZZYYSCHTYTYYBHECXHYKGJPXHHYZJFXHWHBDZFYZBCAPNPGNYDMSXHMMMMAMYNBYJTMPXYYMCTHJBZYFCGTYHWPHFTWZZEZSBZEGPFMTSKFTYCMHFLLHGPZJXZJGZJYXZSBBQSCZZLZCCSTPGXMJSFTCCZJZDJXCYBZLFCJSYZFGSZLYBCWZZBYZDZYPSWYJZXZBDSYUXLZZBZFYGCZXBZHZFTPBGZGEJBSTGKDMFHYZZJHZLLZZGJQZLSFDJSSCBZGPDLFZFZSZYZYZSYGCXSNXXCHCZXTZZLJFZGQSQYXZJQDCCZTQCDXZJYQJQCHXZTDLGSCXZSYQJQTZWLQDQZTQCHQQJZYEZZZPBWKDJFCJPZTYPQYQTTYNLMBDKTJZPQZQZZFPZSBNJLGYJDXJDZZKZGQKXDLPZJTCJDQBXDJQJSTCKNXBXZMSLYJCQMTJQWWCJQNJNLLLHJCWQTBZQYDZCZPZZDZYDDCYZZZCCJTTJFZDPRRTZTJDCQTQZDTJNPLZBCLLCTZSXKJZQZPZLBZRBTJDCXFCZDBCCJJLTQQPLDCGZDBBZJCQDCJWYNLLZYZCCDWLLXWZLXRXNTQQCZXKQLSGDFQTDDGLRLAJJTKUYMKQLLTZYTDYYCZGJWYXDXFRSKSTQTENQMRKQZHHQKDLDAZFKYPBGGPZREBZZYKZZSPEGJXGYKQZZZSLYSYYYZWFQZYLZZLZHWCHKYPQGNPGBLPLRRJYXCCSYYHSFZFYBZYYTGZXYLXCZWXXZJZBLFFLGSKHYJZEYJHLPLLLLCZGXDRZELRHGKLZZYHZLYQSZZJZQLJZFLNBHGWLCZCFJYSPYXZLZLXGCCPZBLLCYBBBBUBBCBPCRNNZCZYRBFSRLDCGQYYQXYGMQZWTZYTYJXYFWTEHZZJYWLCCNTZYJJZDEDPZDZTSYQJHDYMBJNYJZLXTSSTPHNDJXXBYXQTZQDDTJTDYYTGWSCSZQFLSHLGLBCZPHDLYZJYCKWTYTYLBNYTSDSYCCTYSZYYEBHEXHQDTWNYGYCLXTSZYSTQMYGZAZCCSZZDSLZCLZRQXYYELJSBYMXSXZTEMBBLLYYLLYTDQYSHYMRQWKFKBFXNXSBYCHXBWJYHTQBPBSBWDZYLKGZSKYHXQZJXHXJXGNLJKZLYYCDXLFYFGHLJGJYBXQLYBXQPQGZTZPLNCYPXDJYQYDYMRBESJYYHKXXSTMXRCZZYWXYQYBMCLLYZHQYZWQXDBXBZWZMSLPDMYSKFMZKLZCYQYCZLQXFZZYDQZPZYGYJYZMZXDZFYFYTTQTZHGSPCZMLCCYTZXJCYTJMKSLPZHYSNZLLYTPZCTZZCKTXDHXXTQCYFKSMQCCYYAZHTJPCYLZLYJBJXTPNYLJYYNRXSYLMMNXJSMYBCSYSYLZYLXJJQYLDZLPQBFZZBLFNDXQKCZFYWHGQMRDSXYCYTXNQQJZYYPFZXDYZFPRXEJDGYQBXRCNFYYQPGHYJDYZXGRHTKYLNWDZNTSMPKLBTHBPYSZBZTJZSZZJTYYXZPHSSZZBZCZPTQFZMYFLYPYBBJQXZMXXDJMTSYSKKBJZXHJCKLPSMKYJZCXTMLJYXRZZQSLXXQPYZXMKYXXXJCLJPRMYYGADYSKQLSNDHYZKQXZYZTCGHZTLMLWZYBWSYCTBHJHJFCWZTXWYTKZLXQSHLYJZJXTMPLPYCGLTBZZTLZJCYJGDTCLKLPLLQPJMZPAPXYZLKKTKDZCZZBNZDYDYQZJYJGMCTXLTGXSZLMLHBGLKFWNWZHDXUHLFMKYSLGXDTWWFRJEJZTZHYDXYKSHWFZCQSHKTMQQHTZHYMJDJSKHXZJZBZZXYMPAGQMSTPXLSKLZYNWRTSQLSZBPSPSGZWYHTLKSSSWHZZLYYTNXJGMJSZSUFWNLSOZTXGXLSAMMLBWLDSZYLAKQCQCTMYCFJBSLXCLZZCLXXKSBZQCLHJPSQPLSXXCKSLNHPSFQQYTXYJZLQLDXZQJZDYYDJNZPTUZDSKJFSLJHYLZSQZLBTXYDGTQFDBYAZXDZHZJNHHQBYKNXJJQCZMLLJZKSPLDYCLBBLXKLELXJLBQYCXJXGCNLCQPLZLZYJTZLJGYZDZPLTQCSXFDMNYCXGBTJDCZNBGBQYQJWGKFHTNPYQZQGBKPBBYZMTJDYTBLSQMPSXTBNPDXKLEMYYCJYNZCTLDYKZZXDDXHQSHDGMZSJYCCTAYRZLPYLTLKXSLZCGGEXCLFXLKJRTLQJAQZNCMBYDKKCXGLCZJZXJHPTDJJMZQYKQSECQZDSHHADMLZFMMZBGNTJNNLGBYJBRBTMLBYJDZXLCJLPLDLPCQDHLXZLYCBLCXZZJADJLNZMMSSSMYBHBSQKBHRSXXJMXSDZNZPXLGBRHWGGFCXGMSKLLTSJYYCQLTSKYWYYHYWXBXQYWPYWYKQLSQPTNTKHQCWDQKTWPXXHCPTHTWUMSSYHBWCRWXHJMKMZNGWTMLKFGHKJYLSYYCXWHYECLQHKQHTTQKHFZLDXQWYZYYDESBPKYRZPJFYYZJCEQDZZDLATZBBFJLLCXDLMJSSXEGYGSJQXCWBXSSZPDYZCXDNYXPPZYDLYJCZPLTXLSXYZYRXCYYYDYLWWNZSAHJSYQYHGYWWAXTJZDAXYSRLTDPSSYYFNEJDXYZHLXLLLZQZSJNYQYQQXYJGHZGZCYJCHZLYCDSHWSHJZYJXCLLNXZJJYYXNFXMWFPYLCYLLABWDDHWDXJMCXZTZPMLQZHSFHZYNZTLLDYWLSLXHYMMYLMBWWKYXYADTXYLLDJPYBPWUXJMWMLLSAFDLLYFLBHHHBQQLTZJCQJLDJTFFKMMMBYTHYGDCQRDDWRQJXNBYSNWZDBYYTBJHPYBYTTJXAAHGQDQTMYSTQXKBTZPKJLZRBEQQSSMJJBDJOTGTBXPGBKTLHQXJJJCTHXQDWJLWRFWQGWSHCKRYSWGFTGYGBXSDWDWRFHWYTJJXXXJYZYSLPYYYPAYXHYDQKXSHXYXGSKQHYWFDDDPPLCJLQQEEWXKSYYKDYPLTJTHKJLTCYYHHJTTPLTZZCDLTHQKZXQYSTEEYWYYZYXXYYSTTJKLLPZMCYHQGXYHSRMBXPLLNQYDQHXSXXWGDQBSHYLLPJJJTHYJKYPPTHYYKTYEZYENMDSHLCRPQFDGFXZPSFTLJXXJBSWYYSKSFLXLPPLBBBLBSFXFYZBSJSSYLPBBFFFFSSCJDSTZSXZRYYSYFFSYZYZBJTBCTSBSDHRTJJBYTCXYJEYLXCBNEBJDSYXYKGSJZBXBYTFZWGENYHHTHZHHXFWGCSTBGXKLSXYWMTMBYXJSTZSCDYQRCYTWXZFHMYMCXLZNSDJTTTXRYCFYJSBSDYERXJLJXBBDEYNJGHXGCKGSCYMBLXJMSZNSKGXFBNBPTHFJAAFXYXFPXMYPQDTZCXZZPXRSYWZDLYBBKTYQPQJPZYPZJZNJPZJLZZFYSBTTSLMPTZRTDXQSJEHBZYLZDHLJSQMLHTXTJECXSLZZSPKTLZKQQYFSYGYWPCPQFHQHYTQXZKRSGTTSQCZLPTXCDYYZXSQZSLXLZMYCPCQBZYXHBSXLZDLTCDXTYLZJYYZPZYZLTXJSJXHLPMYTXCQRBLZSSFJZZTNJYTXMYJHLHPPLCYXQJQQKZZSCPZKSWALQSBLCCZJSXGWWWYGYKTJBBZTDKHXHKGTGPBKQYSLPXPJCKBMLLXDZSTBKLGGQKQLSBKKTFXRMDKBFTPZFRTBBRFERQGXYJPZSSTLBZTPSZQZSJDHLJQLZBPMSMMSXLQQNHKNBLRDDNXXDHDDJCYYGYLXGZLXSYGMQQGKHBPMXYXLYTQWLWGCPBMQXCYZYDRJBHTDJYHQSHTMJSBYPLWHLZFFNYPMHXXHPLTBQPFBJWQDBYGPNZTPFZJGSDDTQSHZEAWZZYLLTYYBWJKXXGHLFKXDJTMSZSQYNZGGSWQSPHTLSSKMCLZXYSZQZXNCJDQGZDLFNYKLJCJLLZLMZZNHYDSSHTHZZLZZBBHQZWWYCRZHLYQQJBEYFXXXWHSRXWQHWPSLMSSKZTTYGYQQWRSLALHMJTQJSMXQBJJZJXZYZKXBYQXBJXSHZTSFJLXMXZXFGHKZSZGGYLCLSARJYHSLLLMZXELGLXYDJYTLFBHBPNLYZFBBHPTGJKWETZHKJJXZXXGLLJLSTGSHJJYQLQZFKCGNNDJSSZFDBCTWWSEQFHQJBSAQTGYPQLBXBMMYWXGSLZHGLZGQYFLZBYFZJFRYSFMBYZHQGFWZSYFYJJPHZBYYZFFWODGRLMFTWLBZGYCQXCDJYGZYYYYTYTYDWEGAZYHXJLZYYHLRMGRXXZCLHNELJJTJTPWJYBJJBXJJTJTEEKHWSLJPLPSFYZPQQBDLQJJTYYQLYZKDKSQJYYQZLDQTGJQYZJSUCMRYQTHTEJMFCTYHYPKMHYZWJDQFHYYXWSHCTXRLJHQXHCCYYYJLTKTTYTMXGTCJTZAYYOCZLYLBSZYWJYTSJYHBYSHFJLYGJXXTMZYYLTXXYPZLXYJZYZYYPNHMYMDYYLBLHLSYYQQLLNJJYMSOYQBZGDLYXYLCQYXTSZEGXHZGLHWBLJHEYXTWQMAKBPQCGYSHHEGQCMWYYWLJYJHYYZLLJJYLHZYHMGSLJLJXCJJYCLYCJPCPZJZJMMYLCQLNQLJQJSXYJMLSZLJQLYCMMHCFMMFPQQMFYLQMCFFQMMMMHMZNFHHJGTTHHKHSLNCHHYQDXTMMQDCYZYXYQMYQYLTDCYYYZAZZCYMZYDLZFFFMMYCQZWZZMABTBYZTDMNZZGGDFTYPCGQYTTSSFFWFDTZQSSYSTWXJHXYTSXXYLBYQHWWKXHZXWZNNZZJZJJQJCCCHYYXBZXZCYZTLLCQXYNJYCYYCYNZZQYYYEWYCZDCJYCCHYJLBTZYYCQWMPWPYMLGKDLDLGKQQBGYCHJXY";
  11392. //此处收录了375个多音字
  11393. var oMultiDiff = (_oMultiDiff = {
  11394. "19969": "DZ",
  11395. "19975": "WM",
  11396. "19988": "QJ",
  11397. "20048": "YL",
  11398. "20056": "SC",
  11399. "20060": "NM",
  11400. "20094": "QG",
  11401. "20127": "QJ",
  11402. "20167": "QC",
  11403. "20193": "YG",
  11404. "20250": "KH",
  11405. "20256": "ZC",
  11406. "20282": "SC",
  11407. "20285": "QJG",
  11408. "20291": "TD",
  11409. "20314": "YD",
  11410. "20340": "NE",
  11411. "20375": "TD",
  11412. "20389": "YJ",
  11413. "20391": "CZ",
  11414. "20415": "PB",
  11415. "20446": "YS",
  11416. "20447": "SQ",
  11417. "20504": "TC",
  11418. "20608": "KG",
  11419. "20854": "QJ",
  11420. "20857": "ZC",
  11421. "20911": "PF" }, _defineProperty(_oMultiDiff, "20504",
  11422. "TC"), _defineProperty(_oMultiDiff, "20608",
  11423. "KG"), _defineProperty(_oMultiDiff, "20854",
  11424. "QJ"), _defineProperty(_oMultiDiff, "20857",
  11425. "ZC"), _defineProperty(_oMultiDiff, "20911",
  11426. "PF"), _defineProperty(_oMultiDiff,
  11427. "20985", "AW"), _defineProperty(_oMultiDiff,
  11428. "21032", "PB"), _defineProperty(_oMultiDiff,
  11429. "21048", "XQ"), _defineProperty(_oMultiDiff,
  11430. "21049", "SC"), _defineProperty(_oMultiDiff,
  11431. "21089", "YS"), _defineProperty(_oMultiDiff,
  11432. "21119", "JC"), _defineProperty(_oMultiDiff,
  11433. "21242", "SB"), _defineProperty(_oMultiDiff,
  11434. "21273", "SC"), _defineProperty(_oMultiDiff,
  11435. "21305", "YP"), _defineProperty(_oMultiDiff,
  11436. "21306", "QO"), _defineProperty(_oMultiDiff,
  11437. "21330", "ZC"), _defineProperty(_oMultiDiff,
  11438. "21333", "SDC"), _defineProperty(_oMultiDiff,
  11439. "21345", "QK"), _defineProperty(_oMultiDiff,
  11440. "21378", "CA"), _defineProperty(_oMultiDiff,
  11441. "21397", "SC"), _defineProperty(_oMultiDiff,
  11442. "21414", "XS"), _defineProperty(_oMultiDiff,
  11443. "21442", "SC"), _defineProperty(_oMultiDiff,
  11444. "21477", "JG"), _defineProperty(_oMultiDiff,
  11445. "21480", "TD"), _defineProperty(_oMultiDiff,
  11446. "21484", "ZS"), _defineProperty(_oMultiDiff,
  11447. "21494", "YX"), _defineProperty(_oMultiDiff,
  11448. "21505", "YX"), _defineProperty(_oMultiDiff,
  11449. "21512", "HG"), _defineProperty(_oMultiDiff,
  11450. "21523", "XH"), _defineProperty(_oMultiDiff,
  11451. "21537", "PB"), _defineProperty(_oMultiDiff,
  11452. "21542", "PF"), _defineProperty(_oMultiDiff,
  11453. "21549", "KH"), _defineProperty(_oMultiDiff,
  11454. "21571", "E"), _defineProperty(_oMultiDiff,
  11455. "21574", "DA"), _defineProperty(_oMultiDiff,
  11456. "21588", "TD"), _defineProperty(_oMultiDiff,
  11457. "21589", "O"), _defineProperty(_oMultiDiff,
  11458. "21618", "ZC"), _defineProperty(_oMultiDiff,
  11459. "21621", "KHA"), _defineProperty(_oMultiDiff,
  11460. "21632", "ZJ"), _defineProperty(_oMultiDiff,
  11461. "21654", "KG"), _defineProperty(_oMultiDiff,
  11462. "21679", "LKG"), _defineProperty(_oMultiDiff,
  11463. "21683", "KH"), _defineProperty(_oMultiDiff,
  11464. "21710", "A"), _defineProperty(_oMultiDiff,
  11465. "21719", "YH"), _defineProperty(_oMultiDiff,
  11466. "21734", "WOE"), _defineProperty(_oMultiDiff,
  11467. "21769", "A"), _defineProperty(_oMultiDiff,
  11468. "21780", "WN"), _defineProperty(_oMultiDiff,
  11469. "21804", "XH"), _defineProperty(_oMultiDiff,
  11470. "21834", "A"), _defineProperty(_oMultiDiff,
  11471. "21899", "ZD"), _defineProperty(_oMultiDiff,
  11472. "21903", "RN"), _defineProperty(_oMultiDiff,
  11473. "21908", "WO"), _defineProperty(_oMultiDiff,
  11474. "21939", "ZC"), _defineProperty(_oMultiDiff,
  11475. "21956", "SA"), _defineProperty(_oMultiDiff,
  11476. "21964", "YA"), _defineProperty(_oMultiDiff,
  11477. "21970", "TD"), _defineProperty(_oMultiDiff,
  11478. "22003", "A"), _defineProperty(_oMultiDiff,
  11479. "22031", "JG"), _defineProperty(_oMultiDiff,
  11480. "22040", "XS"), _defineProperty(_oMultiDiff,
  11481. "22060", "ZC"), _defineProperty(_oMultiDiff,
  11482. "22066", "ZC"), _defineProperty(_oMultiDiff,
  11483. "22079", "MH"), _defineProperty(_oMultiDiff,
  11484. "22129", "XJ"), _defineProperty(_oMultiDiff,
  11485. "22179", "XA"), _defineProperty(_oMultiDiff,
  11486. "22237", "NJ"), _defineProperty(_oMultiDiff,
  11487. "22244", "TD"), _defineProperty(_oMultiDiff,
  11488. "22280", "JQ"), _defineProperty(_oMultiDiff,
  11489. "22300", "YH"), _defineProperty(_oMultiDiff,
  11490. "22313", "XW"), _defineProperty(_oMultiDiff,
  11491. "22331", "YQ"), _defineProperty(_oMultiDiff,
  11492. "22343", "YJ"), _defineProperty(_oMultiDiff,
  11493. "22351", "PH"), _defineProperty(_oMultiDiff,
  11494. "22395", "DC"), _defineProperty(_oMultiDiff,
  11495. "22412", "TD"), _defineProperty(_oMultiDiff,
  11496. "22484", "PB"), _defineProperty(_oMultiDiff,
  11497. "22500", "PB"), _defineProperty(_oMultiDiff,
  11498. "22534", "ZD"), _defineProperty(_oMultiDiff,
  11499. "22549", "DH"), _defineProperty(_oMultiDiff,
  11500. "22561", "PB"), _defineProperty(_oMultiDiff,
  11501. "22612", "TD"), _defineProperty(_oMultiDiff,
  11502. "22771", "KQ"), _defineProperty(_oMultiDiff,
  11503. "22831", "HB"), _defineProperty(_oMultiDiff,
  11504. "22841", "JG"), _defineProperty(_oMultiDiff,
  11505. "22855", "QJ"), _defineProperty(_oMultiDiff,
  11506. "22865", "XQ"), _defineProperty(_oMultiDiff,
  11507. "23013", "ML"), _defineProperty(_oMultiDiff,
  11508. "23081", "WM"), _defineProperty(_oMultiDiff,
  11509. "23487", "SX"), _defineProperty(_oMultiDiff,
  11510. "23558", "QJ"), _defineProperty(_oMultiDiff,
  11511. "23561", "YW"), _defineProperty(_oMultiDiff,
  11512. "23586", "YW"), _defineProperty(_oMultiDiff,
  11513. "23614", "YW"), _defineProperty(_oMultiDiff,
  11514. "23615", "SN"), _defineProperty(_oMultiDiff,
  11515. "23631", "PB"), _defineProperty(_oMultiDiff,
  11516. "23646", "ZS"), _defineProperty(_oMultiDiff,
  11517. "23663", "ZT"), _defineProperty(_oMultiDiff,
  11518. "23673", "YG"), _defineProperty(_oMultiDiff,
  11519. "23762", "TD"), _defineProperty(_oMultiDiff,
  11520. "23769", "ZS"), _defineProperty(_oMultiDiff,
  11521. "23780", "QJ"), _defineProperty(_oMultiDiff,
  11522. "23884", "QK"), _defineProperty(_oMultiDiff,
  11523. "24055", "XH"), _defineProperty(_oMultiDiff,
  11524. "24113", "DC"), _defineProperty(_oMultiDiff,
  11525. "24162", "ZC"), _defineProperty(_oMultiDiff,
  11526. "24191", "GA"), _defineProperty(_oMultiDiff,
  11527. "24273", "QJ"), _defineProperty(_oMultiDiff,
  11528. "24324", "NL"), _defineProperty(_oMultiDiff,
  11529. "24377", "TD"), _defineProperty(_oMultiDiff,
  11530. "24378", "QJ"), _defineProperty(_oMultiDiff,
  11531. "24439", "PF"), _defineProperty(_oMultiDiff,
  11532. "24554", "ZS"), _defineProperty(_oMultiDiff,
  11533. "24683", "TD"), _defineProperty(_oMultiDiff,
  11534. "24694", "WE"), _defineProperty(_oMultiDiff,
  11535. "24733", "LK"), _defineProperty(_oMultiDiff,
  11536. "24925", "TN"), _defineProperty(_oMultiDiff,
  11537. "25094", "ZG"), _defineProperty(_oMultiDiff,
  11538. "25100", "XQ"), _defineProperty(_oMultiDiff,
  11539. "25103", "XH"), _defineProperty(_oMultiDiff,
  11540. "25153", "PB"), _defineProperty(_oMultiDiff,
  11541. "25170", "PB"), _defineProperty(_oMultiDiff,
  11542. "25179", "KG"), _defineProperty(_oMultiDiff,
  11543. "25203", "PB"), _defineProperty(_oMultiDiff,
  11544. "25240", "ZS"), _defineProperty(_oMultiDiff,
  11545. "25282", "FB"), _defineProperty(_oMultiDiff,
  11546. "25303", "NA"), _defineProperty(_oMultiDiff,
  11547. "25324", "KG"), _defineProperty(_oMultiDiff,
  11548. "25341", "ZY"), _defineProperty(_oMultiDiff,
  11549. "25373", "WZ"), _defineProperty(_oMultiDiff,
  11550. "25375", "XJ"), _defineProperty(_oMultiDiff,
  11551. "25384", "A"), _defineProperty(_oMultiDiff,
  11552. "25457", "A"), _defineProperty(_oMultiDiff,
  11553. "25528", "SD"), _defineProperty(_oMultiDiff,
  11554. "25530", "SC"), _defineProperty(_oMultiDiff,
  11555. "25552", "TD"), _defineProperty(_oMultiDiff,
  11556. "25774", "ZC"), _defineProperty(_oMultiDiff,
  11557. "25874", "ZC"), _defineProperty(_oMultiDiff,
  11558. "26044", "YW"), _defineProperty(_oMultiDiff,
  11559. "26080", "WM"), _defineProperty(_oMultiDiff,
  11560. "26292", "PB"), _defineProperty(_oMultiDiff,
  11561. "26333", "PB"), _defineProperty(_oMultiDiff,
  11562. "26355", "ZY"), _defineProperty(_oMultiDiff,
  11563. "26366", "CZ"), _defineProperty(_oMultiDiff,
  11564. "26397", "ZC"), _defineProperty(_oMultiDiff,
  11565. "26399", "QJ"), _defineProperty(_oMultiDiff,
  11566. "26415", "ZS"), _defineProperty(_oMultiDiff,
  11567. "26451", "SB"), _defineProperty(_oMultiDiff,
  11568. "26526", "ZC"), _defineProperty(_oMultiDiff,
  11569. "26552", "JG"), _defineProperty(_oMultiDiff,
  11570. "26561", "TD"), _defineProperty(_oMultiDiff,
  11571. "26588", "JG"), _defineProperty(_oMultiDiff,
  11572. "26597", "CZ"), _defineProperty(_oMultiDiff,
  11573. "26629", "ZS"), _defineProperty(_oMultiDiff,
  11574. "26638", "YL"), _defineProperty(_oMultiDiff,
  11575. "26646", "XQ"), _defineProperty(_oMultiDiff,
  11576. "26653", "KG"), _defineProperty(_oMultiDiff,
  11577. "26657", "XJ"), _defineProperty(_oMultiDiff,
  11578. "26727", "HG"), _defineProperty(_oMultiDiff,
  11579. "26894", "ZC"), _defineProperty(_oMultiDiff,
  11580. "26937", "ZS"), _defineProperty(_oMultiDiff,
  11581. "26946", "ZC"), _defineProperty(_oMultiDiff,
  11582. "26999", "KJ"), _defineProperty(_oMultiDiff,
  11583. "27099", "KJ"), _defineProperty(_oMultiDiff,
  11584. "27449", "YQ"), _defineProperty(_oMultiDiff,
  11585. "27481", "XS"), _defineProperty(_oMultiDiff,
  11586. "27542", "ZS"), _defineProperty(_oMultiDiff,
  11587. "27663", "ZS"), _defineProperty(_oMultiDiff,
  11588. "27748", "TS"), _defineProperty(_oMultiDiff,
  11589. "27784", "SC"), _defineProperty(_oMultiDiff,
  11590. "27788", "ZD"), _defineProperty(_oMultiDiff,
  11591. "27795", "TD"), _defineProperty(_oMultiDiff,
  11592. "27812", "O"), _defineProperty(_oMultiDiff,
  11593. "27850", "PB"), _defineProperty(_oMultiDiff,
  11594. "27852", "MB"), _defineProperty(_oMultiDiff,
  11595. "27895", "SL"), _defineProperty(_oMultiDiff,
  11596. "27898", "PL"), _defineProperty(_oMultiDiff,
  11597. "27973", "QJ"), _defineProperty(_oMultiDiff,
  11598. "27981", "KH"), _defineProperty(_oMultiDiff,
  11599. "27986", "HX"), _defineProperty(_oMultiDiff,
  11600. "27994", "XJ"), _defineProperty(_oMultiDiff,
  11601. "28044", "YC"), _defineProperty(_oMultiDiff,
  11602. "28065", "WG"), _defineProperty(_oMultiDiff,
  11603. "28177", "SM"), _defineProperty(_oMultiDiff,
  11604. "28267", "QJ"), _defineProperty(_oMultiDiff,
  11605. "28291", "KH"), _defineProperty(_oMultiDiff,
  11606. "28337", "ZQ"), _defineProperty(_oMultiDiff,
  11607. "28463", "TL"), _defineProperty(_oMultiDiff,
  11608. "28548", "DC"), _defineProperty(_oMultiDiff,
  11609. "28601", "TD"), _defineProperty(_oMultiDiff,
  11610. "28689", "PB"), _defineProperty(_oMultiDiff,
  11611. "28805", "JG"), _defineProperty(_oMultiDiff,
  11612. "28820", "QG"), _defineProperty(_oMultiDiff,
  11613. "28846", "PB"), _defineProperty(_oMultiDiff,
  11614. "28952", "TD"), _defineProperty(_oMultiDiff,
  11615. "28975", "ZC"), _defineProperty(_oMultiDiff,
  11616. "29100", "A"), _defineProperty(_oMultiDiff,
  11617. "29325", "QJ"), _defineProperty(_oMultiDiff,
  11618. "29575", "SL"), _defineProperty(_oMultiDiff,
  11619. "29602", "FB"), _defineProperty(_oMultiDiff,
  11620. "30010", "TD"), _defineProperty(_oMultiDiff,
  11621. "30044", "CX"), _defineProperty(_oMultiDiff,
  11622. "30058", "PF"), _defineProperty(_oMultiDiff,
  11623. "30091", "YSP"), _defineProperty(_oMultiDiff,
  11624. "30111", "YN"), _defineProperty(_oMultiDiff,
  11625. "30229", "XJ"), _defineProperty(_oMultiDiff,
  11626. "30427", "SC"), _defineProperty(_oMultiDiff,
  11627. "30465", "SX"), _defineProperty(_oMultiDiff,
  11628. "30631", "YQ"), _defineProperty(_oMultiDiff,
  11629. "30655", "QJ"), _defineProperty(_oMultiDiff,
  11630. "30684", "QJG"), _defineProperty(_oMultiDiff,
  11631. "30707", "SD"), _defineProperty(_oMultiDiff,
  11632. "30729", "XH"), _defineProperty(_oMultiDiff,
  11633. "30796", "LG"), _defineProperty(_oMultiDiff,
  11634. "30917", "PB"), _defineProperty(_oMultiDiff,
  11635. "31074", "NM"), _defineProperty(_oMultiDiff,
  11636. "31085", "JZ"), _defineProperty(_oMultiDiff,
  11637. "31109", "SC"), _defineProperty(_oMultiDiff,
  11638. "31181", "ZC"), _defineProperty(_oMultiDiff,
  11639. "31192", "MLB"), _defineProperty(_oMultiDiff,
  11640. "31293", "JQ"), _defineProperty(_oMultiDiff,
  11641. "31400", "YX"), _defineProperty(_oMultiDiff,
  11642. "31584", "YJ"), _defineProperty(_oMultiDiff,
  11643. "31896", "ZN"), _defineProperty(_oMultiDiff,
  11644. "31909", "ZY"), _defineProperty(_oMultiDiff,
  11645. "31995", "XJ"), _defineProperty(_oMultiDiff,
  11646. "32321", "PF"), _defineProperty(_oMultiDiff,
  11647. "32327", "ZY"), _defineProperty(_oMultiDiff,
  11648. "32418", "HG"), _defineProperty(_oMultiDiff,
  11649. "32420", "XQ"), _defineProperty(_oMultiDiff,
  11650. "32421", "HG"), _defineProperty(_oMultiDiff,
  11651. "32438", "LG"), _defineProperty(_oMultiDiff,
  11652. "32473", "GJ"), _defineProperty(_oMultiDiff,
  11653. "32488", "TD"), _defineProperty(_oMultiDiff,
  11654. "32521", "QJ"), _defineProperty(_oMultiDiff,
  11655. "32527", "PB"), _defineProperty(_oMultiDiff,
  11656. "32562", "ZSQ"), _defineProperty(_oMultiDiff,
  11657. "32564", "JZ"), _defineProperty(_oMultiDiff,
  11658. "32735", "ZD"), _defineProperty(_oMultiDiff,
  11659. "32793", "PB"), _defineProperty(_oMultiDiff,
  11660. "33071", "PF"), _defineProperty(_oMultiDiff,
  11661. "33098", "XL"), _defineProperty(_oMultiDiff,
  11662. "33100", "YA"), _defineProperty(_oMultiDiff,
  11663. "33152", "PB"), _defineProperty(_oMultiDiff,
  11664. "33261", "CX"), _defineProperty(_oMultiDiff,
  11665. "33324", "BP"), _defineProperty(_oMultiDiff,
  11666. "33333", "TD"), _defineProperty(_oMultiDiff,
  11667. "33406", "YA"), _defineProperty(_oMultiDiff,
  11668. "33426", "WM"), _defineProperty(_oMultiDiff,
  11669. "33432", "PB"), _defineProperty(_oMultiDiff,
  11670. "33445", "JG"), _defineProperty(_oMultiDiff,
  11671. "33486", "ZN"), _defineProperty(_oMultiDiff,
  11672. "33493", "TS"), _defineProperty(_oMultiDiff,
  11673. "33507", "QJ"), _defineProperty(_oMultiDiff,
  11674. "33540", "QJ"), _defineProperty(_oMultiDiff,
  11675. "33544", "ZC"), _defineProperty(_oMultiDiff,
  11676. "33564", "XQ"), _defineProperty(_oMultiDiff,
  11677. "33617", "YT"), _defineProperty(_oMultiDiff,
  11678. "33632", "QJ"), _defineProperty(_oMultiDiff,
  11679. "33636", "XH"), _defineProperty(_oMultiDiff,
  11680. "33637", "YX"), _defineProperty(_oMultiDiff,
  11681. "33694", "WG"), _defineProperty(_oMultiDiff,
  11682. "33705", "PF"), _defineProperty(_oMultiDiff,
  11683. "33728", "YW"), _defineProperty(_oMultiDiff,
  11684. "33882", "SR"), _defineProperty(_oMultiDiff,
  11685. "34067", "WM"), _defineProperty(_oMultiDiff,
  11686. "34074", "YW"), _defineProperty(_oMultiDiff,
  11687. "34121", "QJ"), _defineProperty(_oMultiDiff,
  11688. "34255", "ZC"), _defineProperty(_oMultiDiff,
  11689. "34259", "XL"), _defineProperty(_oMultiDiff,
  11690. "34425", "JH"), _defineProperty(_oMultiDiff,
  11691. "34430", "XH"), _defineProperty(_oMultiDiff,
  11692. "34485", "KH"), _defineProperty(_oMultiDiff,
  11693. "34503", "YS"), _defineProperty(_oMultiDiff,
  11694. "34532", "HG"), _defineProperty(_oMultiDiff,
  11695. "34552", "XS"), _defineProperty(_oMultiDiff,
  11696. "34558", "YE"), _defineProperty(_oMultiDiff,
  11697. "34593", "ZL"), _defineProperty(_oMultiDiff,
  11698. "34660", "YQ"), _defineProperty(_oMultiDiff,
  11699. "34892", "XH"), _defineProperty(_oMultiDiff,
  11700. "34928", "SC"), _defineProperty(_oMultiDiff,
  11701. "34999", "QJ"), _defineProperty(_oMultiDiff,
  11702. "35048", "PB"), _defineProperty(_oMultiDiff,
  11703. "35059", "SC"), _defineProperty(_oMultiDiff,
  11704. "35098", "ZC"), _defineProperty(_oMultiDiff,
  11705. "35203", "TQ"), _defineProperty(_oMultiDiff,
  11706. "35265", "JX"), _defineProperty(_oMultiDiff,
  11707. "35299", "JX"), _defineProperty(_oMultiDiff,
  11708. "35782", "SZ"), _defineProperty(_oMultiDiff,
  11709. "35828", "YS"), _defineProperty(_oMultiDiff,
  11710. "35830", "E"), _defineProperty(_oMultiDiff,
  11711. "35843", "TD"), _defineProperty(_oMultiDiff,
  11712. "35895", "YG"), _defineProperty(_oMultiDiff,
  11713. "35977", "MH"), _defineProperty(_oMultiDiff,
  11714. "36158", "JG"), _defineProperty(_oMultiDiff,
  11715. "36228", "QJ"), _defineProperty(_oMultiDiff,
  11716. "36426", "XQ"), _defineProperty(_oMultiDiff,
  11717. "36466", "DC"), _defineProperty(_oMultiDiff,
  11718. "36710", "JC"), _defineProperty(_oMultiDiff,
  11719. "36711", "ZYG"), _defineProperty(_oMultiDiff,
  11720. "36767", "PB"), _defineProperty(_oMultiDiff,
  11721. "36866", "SK"), _defineProperty(_oMultiDiff,
  11722. "36951", "YW"), _defineProperty(_oMultiDiff,
  11723. "37034", "YX"), _defineProperty(_oMultiDiff,
  11724. "37063", "XH"), _defineProperty(_oMultiDiff,
  11725. "37218", "ZC"), _defineProperty(_oMultiDiff,
  11726. "37325", "ZC"), _defineProperty(_oMultiDiff,
  11727. "38063", "PB"), _defineProperty(_oMultiDiff,
  11728. "38079", "TD"), _defineProperty(_oMultiDiff,
  11729. "38085", "QY"), _defineProperty(_oMultiDiff,
  11730. "38107", "DC"), _defineProperty(_oMultiDiff,
  11731. "38116", "TD"), _defineProperty(_oMultiDiff,
  11732. "38123", "YD"), _defineProperty(_oMultiDiff,
  11733. "38224", "HG"), _defineProperty(_oMultiDiff,
  11734. "38241", "XTC"), _defineProperty(_oMultiDiff,
  11735. "38271", "ZC"), _defineProperty(_oMultiDiff,
  11736. "38415", "YE"), _defineProperty(_oMultiDiff,
  11737. "38426", "KH"), _defineProperty(_oMultiDiff,
  11738. "38461", "YD"), _defineProperty(_oMultiDiff,
  11739. "38463", "AE"), _defineProperty(_oMultiDiff,
  11740. "38466", "PB"), _defineProperty(_oMultiDiff,
  11741. "38477", "XJ"), _defineProperty(_oMultiDiff,
  11742. "38518", "YT"), _defineProperty(_oMultiDiff,
  11743. "38551", "WK"), _defineProperty(_oMultiDiff,
  11744. "38585", "ZC"), _defineProperty(_oMultiDiff,
  11745. "38704", "XS"), _defineProperty(_oMultiDiff,
  11746. "38739", "LJ"), _defineProperty(_oMultiDiff,
  11747. "38761", "GJ"), _defineProperty(_oMultiDiff,
  11748. "38808", "SQ"), _defineProperty(_oMultiDiff,
  11749. "39048", "JG"), _defineProperty(_oMultiDiff,
  11750. "39049", "XJ"), _defineProperty(_oMultiDiff,
  11751. "39052", "HG"), _defineProperty(_oMultiDiff,
  11752. "39076", "CZ"), _defineProperty(_oMultiDiff,
  11753. "39271", "XT"), _defineProperty(_oMultiDiff,
  11754. "39534", "TD"), _defineProperty(_oMultiDiff,
  11755. "39552", "TD"), _defineProperty(_oMultiDiff,
  11756. "39584", "PB"), _defineProperty(_oMultiDiff,
  11757. "39647", "SB"), _defineProperty(_oMultiDiff,
  11758. "39730", "LG"), _defineProperty(_oMultiDiff,
  11759. "39748", "TPB"), _defineProperty(_oMultiDiff,
  11760. "40109", "ZQ"), _defineProperty(_oMultiDiff,
  11761. "40479", "ND"), _defineProperty(_oMultiDiff,
  11762. "40516", "HG"), _defineProperty(_oMultiDiff,
  11763. "40536", "HG"), _defineProperty(_oMultiDiff,
  11764. "40583", "QJ"), _defineProperty(_oMultiDiff,
  11765. "40765", "YQ"), _defineProperty(_oMultiDiff,
  11766. "40784", "QJ"), _defineProperty(_oMultiDiff,
  11767. "40840", "YK"), _defineProperty(_oMultiDiff,
  11768. "40863", "QJG"), _oMultiDiff);
  11769. //参数,中文字符串
  11770. //返回值:拼音首字母串数组
  11771. function makePy(str) {
  11772. if (typeof str != "string")
  11773. throw new Error(-1, "函数makePy需要字符串类型参数!");
  11774. var arrResult = new Array(); //保存中间结果的数组
  11775. for (var i = 0, len = str.length; i < len; i++) {
  11776. //获得unicode码
  11777. var ch = str.charAt(i);
  11778. //检查该unicode码是否在处理范围之内,在则返回该码对映汉字的拼音首字母,不在则调用其它函数处理
  11779. arrResult.push(checkCh(ch));
  11780. }
  11781. //处理arrResult,返回所有可能的拼音首字母串数组
  11782. return mkRslt(arrResult);
  11783. }
  11784. function checkCh(ch) {
  11785. var uni = ch.charCodeAt(0);
  11786. //如果不在汉字处理范围之内,返回原字符,也可以调用自己的处理函数
  11787. if (uni > 40869 || uni < 19968)
  11788. return ch; //dealWithOthers(ch);
  11789. //检查是否是多音字,是按多音字处理,不是就直接在strChineseFirstPY字符串中找对应的首字母
  11790. return oMultiDiff[uni] ? oMultiDiff[uni] : strChineseFirstPY.charAt(uni - 19968);
  11791. }
  11792. function mkRslt(arr) {
  11793. var arrRslt = [""];
  11794. for (var i = 0, len = arr.length; i < len; i++) {
  11795. var str = arr[i];
  11796. var strlen = str.length;
  11797. if (strlen == 1) {
  11798. for (var k = 0; k < arrRslt.length; k++) {
  11799. arrRslt[k] += str;
  11800. }
  11801. } else {
  11802. var tmpArr = arrRslt.slice(0);
  11803. arrRslt = [];
  11804. for (k = 0; k < strlen; k++) {
  11805. //复制一个相同的arrRslt
  11806. var tmp = tmpArr.slice(0);
  11807. //把当前字符str[k]添加到每个元素末尾
  11808. for (var j = 0; j < tmp.length; j++) {
  11809. tmp[j] += str.charAt(k);
  11810. }
  11811. //把复制并修改后的数组连接到arrRslt上
  11812. arrRslt = arrRslt.concat(tmp);
  11813. }
  11814. }
  11815. }
  11816. return arrRslt;
  11817. }
  11818. //两端去空格函数
  11819. String.prototype.trim = function () {
  11820. return this.replace(/(^\s*)|(\s*$)/g, "");
  11821. };
  11822. //查看拼音首字母缩写
  11823. function queryCnChart(cnChart) {
  11824. var str = cnChart.trim();
  11825. if (str == "") return;
  11826. var arrRslt = makePy(str);
  11827. return arrRslt["0"];
  11828. }var _default =
  11829. queryCnChart;exports.default = _default;
  11830. /***/ }),
  11831. /***/ 42:
  11832. /*!**************************************************************************!*\
  11833. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/function/choujianggailv.js ***!
  11834. \**************************************************************************/
  11835. /*! no static exports found */
  11836. /***/ (function(module, exports, __webpack_require__) {
  11837. "use strict";
  11838. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function choujiang(prizes) {
  11839. var prizeList = []; //按照权重分解后的奖品数组
  11840. prizes.map(function (item) {
  11841. prizeList.push(_objectSpread({},
  11842. item));
  11843. for (var i = 0; i < item.gailv; i++) {
  11844. prizeList.push(_objectSpread({},
  11845. item));
  11846. }
  11847. });
  11848. prizeList = reset(prizeList);
  11849. // 范围随机数
  11850. function randomFrom(lowerValue, upperValue) {
  11851. return Math.floor(Math.random() * (upperValue - lowerValue + 1) + lowerValue);
  11852. };
  11853. // 随机打乱数组
  11854. function reset(arr) {
  11855. var eachArr = arr.concat([]);
  11856. var lastArr = [];
  11857. function deepEach(deepArr) {
  11858. if (deepArr.length) {
  11859. var randomIndex = randomFrom(0, eachArr.length - 1);
  11860. lastArr.push(eachArr[randomIndex]);
  11861. eachArr.splice(randomIndex, 1);
  11862. deepEach(eachArr);
  11863. }
  11864. }
  11865. deepEach(eachArr);
  11866. return lastArr;
  11867. }
  11868. this.getResult = function () {
  11869. var random = randomFrom(0, prizeList.length - 1);
  11870. return prizeList[random];
  11871. };
  11872. }var _default =
  11873. choujiang;exports.default = _default;
  11874. /***/ }),
  11875. /***/ 43:
  11876. /*!****************************************************************!*\
  11877. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/config/config.js ***!
  11878. \****************************************************************/
  11879. /*! no static exports found */
  11880. /***/ (function(module, exports, __webpack_require__) {
  11881. "use strict";
  11882. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /**
  11883. * 创建时间:2021年7月2日11:24:23
  11884. * 作者:tmzdy
  11885. */
  11886. var ver = '1.2.30';var _default =
  11887. {
  11888. v: ver,
  11889. version: ver,
  11890. V: ver,
  11891. ver: ver };exports.default = _default;
  11892. /***/ }),
  11893. /***/ 44:
  11894. /*!*******************************************************************!*\
  11895. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/store/tm-vuetify.js ***!
  11896. \*******************************************************************/
  11897. /*! no static exports found */
  11898. /***/ (function(module, exports, __webpack_require__) {
  11899. "use strict";
  11900. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 4));
  11901. var _vuex = _interopRequireDefault(__webpack_require__(/*! vuex */ 45));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}
  11902. _vue.default.use(_vuex.default);
  11903. var moduleTrue = {};
  11904. // 为了兼容如果用户,不按规范创建,或者不使用vuex时就可略过导入用户的模块。
  11905. try {
  11906. var modulesList = __webpack_require__(46);
  11907. if (typeof modulesList === 'function' && typeof modulesList !== 'undefined') {
  11908. // 加载modules目录下所有文件(分模块)
  11909. var modules = modulesList.keys().reduce(function (modules, modulePath) {
  11910. var moduleName = modulePath.replace(/^\.\/(.*)\.\w+$/, '$1');
  11911. var value = modulesList(modulePath);
  11912. modules[moduleName] = _objectSpread({ namespaced: true }, value.default);
  11913. return modules;
  11914. }, {});
  11915. moduleTrue = modules;
  11916. }
  11917. } catch (e) {
  11918. //TODO handle the exception
  11919. // console.warn('tmui提醒:用户未使用vuex')
  11920. console.error('如果未使用vuex,不用理会,如果使用了vuex报错请检错误信息:', e);
  11921. }
  11922. var pdefault_cookies_color = uni.getStorageSync('setTmVuetifyColor');
  11923. var pdefault_cookies_black = uni.getStorageSync('setTmVuetifyBlack');
  11924. var store = new _vuex.default.Store({
  11925. modules: _objectSpread({},
  11926. moduleTrue),
  11927. state: {
  11928. tmVuetify: {
  11929. color: typeof pdefault_cookies_color === 'string' ? pdefault_cookies_color : '',
  11930. black: typeof pdefault_cookies_black === 'boolean' ? pdefault_cookies_black : false,
  11931. tmVueTifly_pages: '',
  11932. tmVueTifly_pagesIndex: '',
  11933. //这里是微信小程序和微信H5的配置资料。
  11934. wxshareConfig_miniMp: {
  11935. title: '', // 分享标题
  11936. desc: '', // 描述
  11937. imageUrl: '', // 分享图片
  11938. path: '', // 分享路径
  11939. copyLink: '', // 复制链接
  11940. query: {} // 分享参数
  11941. } } },
  11942. getters: {
  11943. // $tm:state=>{
  11944. // return $tm;
  11945. // }
  11946. },
  11947. mutations: {
  11948. setTmVuetifyColor: function setTmVuetifyColor(state, color) {
  11949. _vue.default.set(state.tmVuetify, 'color', color);
  11950. },
  11951. setPageNow: function setPageNow(state, url) {
  11952. _vue.default.set(state.tmVuetify, 'tmVueTifly_pages', url);
  11953. },
  11954. setPageNowIndex: function setPageNowIndex(state, index) {
  11955. _vue.default.set(state.tmVuetify, 'tmVueTifly_pagesIndex', index);
  11956. },
  11957. setTmVuetifyBlack: function setTmVuetifyBlack(state, black) {
  11958. _vue.default.set(state.tmVuetify, 'black', black);
  11959. if (black === true) {
  11960. uni.setTabBarStyle({
  11961. backgroundColor: "#1B1B1B" });
  11962. } else {
  11963. uni.setTabBarStyle({
  11964. backgroundColor: "#FFFFFF" });
  11965. }
  11966. },
  11967. setWxShare: function setWxShare(state, cfg) {
  11968. var pcf = cfg || {};
  11969. if (typeof pcf !== 'object' || Array.isArray(cfg)) pcf = {};
  11970. _vue.default.set(state.tmVuetify, 'wxshareConfig_miniMp', _objectSpread(_objectSpread({}, state.tmVuetify.wxshareConfig_miniMp), pcf));
  11971. } } });var _default =
  11972. store;exports.default = _default;
  11973. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  11974. /***/ }),
  11975. /***/ 45:
  11976. /*!**************************************************************************************!*\
  11977. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vuex3/dist/vuex.common.js ***!
  11978. \**************************************************************************************/
  11979. /*! no static exports found */
  11980. /***/ (function(module, exports, __webpack_require__) {
  11981. "use strict";
  11982. /* WEBPACK VAR INJECTION */(function(global) {/*!
  11983. * vuex v3.6.2
  11984. * (c) 2021 Evan You
  11985. * @license MIT
  11986. */
  11987. function applyMixin (Vue) {
  11988. var version = Number(Vue.version.split('.')[0]);
  11989. if (version >= 2) {
  11990. Vue.mixin({ beforeCreate: vuexInit });
  11991. } else {
  11992. // override init and inject vuex init procedure
  11993. // for 1.x backwards compatibility.
  11994. var _init = Vue.prototype._init;
  11995. Vue.prototype._init = function (options) {
  11996. if ( options === void 0 ) options = {};
  11997. options.init = options.init
  11998. ? [vuexInit].concat(options.init)
  11999. : vuexInit;
  12000. _init.call(this, options);
  12001. };
  12002. }
  12003. /**
  12004. * Vuex init hook, injected into each instances init hooks list.
  12005. */
  12006. function vuexInit () {
  12007. var options = this.$options;
  12008. // store injection
  12009. if (options.store) {
  12010. this.$store = typeof options.store === 'function'
  12011. ? options.store()
  12012. : options.store;
  12013. } else if (options.parent && options.parent.$store) {
  12014. this.$store = options.parent.$store;
  12015. }
  12016. }
  12017. }
  12018. var target = typeof window !== 'undefined'
  12019. ? window
  12020. : typeof global !== 'undefined'
  12021. ? global
  12022. : {};
  12023. var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  12024. function devtoolPlugin (store) {
  12025. if (!devtoolHook) { return }
  12026. store._devtoolHook = devtoolHook;
  12027. devtoolHook.emit('vuex:init', store);
  12028. devtoolHook.on('vuex:travel-to-state', function (targetState) {
  12029. store.replaceState(targetState);
  12030. });
  12031. store.subscribe(function (mutation, state) {
  12032. devtoolHook.emit('vuex:mutation', mutation, state);
  12033. }, { prepend: true });
  12034. store.subscribeAction(function (action, state) {
  12035. devtoolHook.emit('vuex:action', action, state);
  12036. }, { prepend: true });
  12037. }
  12038. /**
  12039. * Get the first item that pass the test
  12040. * by second argument function
  12041. *
  12042. * @param {Array} list
  12043. * @param {Function} f
  12044. * @return {*}
  12045. */
  12046. function find (list, f) {
  12047. return list.filter(f)[0]
  12048. }
  12049. /**
  12050. * Deep copy the given object considering circular structure.
  12051. * This function caches all nested objects and its copies.
  12052. * If it detects circular structure, use cached copy to avoid infinite loop.
  12053. *
  12054. * @param {*} obj
  12055. * @param {Array<Object>} cache
  12056. * @return {*}
  12057. */
  12058. function deepCopy (obj, cache) {
  12059. if ( cache === void 0 ) cache = [];
  12060. // just return if obj is immutable value
  12061. if (obj === null || typeof obj !== 'object') {
  12062. return obj
  12063. }
  12064. // if obj is hit, it is in circular structure
  12065. var hit = find(cache, function (c) { return c.original === obj; });
  12066. if (hit) {
  12067. return hit.copy
  12068. }
  12069. var copy = Array.isArray(obj) ? [] : {};
  12070. // put the copy into cache at first
  12071. // because we want to refer it in recursive deepCopy
  12072. cache.push({
  12073. original: obj,
  12074. copy: copy
  12075. });
  12076. Object.keys(obj).forEach(function (key) {
  12077. copy[key] = deepCopy(obj[key], cache);
  12078. });
  12079. return copy
  12080. }
  12081. /**
  12082. * forEach for object
  12083. */
  12084. function forEachValue (obj, fn) {
  12085. Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
  12086. }
  12087. function isObject (obj) {
  12088. return obj !== null && typeof obj === 'object'
  12089. }
  12090. function isPromise (val) {
  12091. return val && typeof val.then === 'function'
  12092. }
  12093. function assert (condition, msg) {
  12094. if (!condition) { throw new Error(("[vuex] " + msg)) }
  12095. }
  12096. function partial (fn, arg) {
  12097. return function () {
  12098. return fn(arg)
  12099. }
  12100. }
  12101. // Base data struct for store's module, package with some attribute and method
  12102. var Module = function Module (rawModule, runtime) {
  12103. this.runtime = runtime;
  12104. // Store some children item
  12105. this._children = Object.create(null);
  12106. // Store the origin module object which passed by programmer
  12107. this._rawModule = rawModule;
  12108. var rawState = rawModule.state;
  12109. // Store the origin module's state
  12110. this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
  12111. };
  12112. var prototypeAccessors = { namespaced: { configurable: true } };
  12113. prototypeAccessors.namespaced.get = function () {
  12114. return !!this._rawModule.namespaced
  12115. };
  12116. Module.prototype.addChild = function addChild (key, module) {
  12117. this._children[key] = module;
  12118. };
  12119. Module.prototype.removeChild = function removeChild (key) {
  12120. delete this._children[key];
  12121. };
  12122. Module.prototype.getChild = function getChild (key) {
  12123. return this._children[key]
  12124. };
  12125. Module.prototype.hasChild = function hasChild (key) {
  12126. return key in this._children
  12127. };
  12128. Module.prototype.update = function update (rawModule) {
  12129. this._rawModule.namespaced = rawModule.namespaced;
  12130. if (rawModule.actions) {
  12131. this._rawModule.actions = rawModule.actions;
  12132. }
  12133. if (rawModule.mutations) {
  12134. this._rawModule.mutations = rawModule.mutations;
  12135. }
  12136. if (rawModule.getters) {
  12137. this._rawModule.getters = rawModule.getters;
  12138. }
  12139. };
  12140. Module.prototype.forEachChild = function forEachChild (fn) {
  12141. forEachValue(this._children, fn);
  12142. };
  12143. Module.prototype.forEachGetter = function forEachGetter (fn) {
  12144. if (this._rawModule.getters) {
  12145. forEachValue(this._rawModule.getters, fn);
  12146. }
  12147. };
  12148. Module.prototype.forEachAction = function forEachAction (fn) {
  12149. if (this._rawModule.actions) {
  12150. forEachValue(this._rawModule.actions, fn);
  12151. }
  12152. };
  12153. Module.prototype.forEachMutation = function forEachMutation (fn) {
  12154. if (this._rawModule.mutations) {
  12155. forEachValue(this._rawModule.mutations, fn);
  12156. }
  12157. };
  12158. Object.defineProperties( Module.prototype, prototypeAccessors );
  12159. var ModuleCollection = function ModuleCollection (rawRootModule) {
  12160. // register root module (Vuex.Store options)
  12161. this.register([], rawRootModule, false);
  12162. };
  12163. ModuleCollection.prototype.get = function get (path) {
  12164. return path.reduce(function (module, key) {
  12165. return module.getChild(key)
  12166. }, this.root)
  12167. };
  12168. ModuleCollection.prototype.getNamespace = function getNamespace (path) {
  12169. var module = this.root;
  12170. return path.reduce(function (namespace, key) {
  12171. module = module.getChild(key);
  12172. return namespace + (module.namespaced ? key + '/' : '')
  12173. }, '')
  12174. };
  12175. ModuleCollection.prototype.update = function update$1 (rawRootModule) {
  12176. update([], this.root, rawRootModule);
  12177. };
  12178. ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
  12179. var this$1 = this;
  12180. if ( runtime === void 0 ) runtime = true;
  12181. if ((true)) {
  12182. assertRawModule(path, rawModule);
  12183. }
  12184. var newModule = new Module(rawModule, runtime);
  12185. if (path.length === 0) {
  12186. this.root = newModule;
  12187. } else {
  12188. var parent = this.get(path.slice(0, -1));
  12189. parent.addChild(path[path.length - 1], newModule);
  12190. }
  12191. // register nested modules
  12192. if (rawModule.modules) {
  12193. forEachValue(rawModule.modules, function (rawChildModule, key) {
  12194. this$1.register(path.concat(key), rawChildModule, runtime);
  12195. });
  12196. }
  12197. };
  12198. ModuleCollection.prototype.unregister = function unregister (path) {
  12199. var parent = this.get(path.slice(0, -1));
  12200. var key = path[path.length - 1];
  12201. var child = parent.getChild(key);
  12202. if (!child) {
  12203. if ((true)) {
  12204. console.warn(
  12205. "[vuex] trying to unregister module '" + key + "', which is " +
  12206. "not registered"
  12207. );
  12208. }
  12209. return
  12210. }
  12211. if (!child.runtime) {
  12212. return
  12213. }
  12214. parent.removeChild(key);
  12215. };
  12216. ModuleCollection.prototype.isRegistered = function isRegistered (path) {
  12217. var parent = this.get(path.slice(0, -1));
  12218. var key = path[path.length - 1];
  12219. if (parent) {
  12220. return parent.hasChild(key)
  12221. }
  12222. return false
  12223. };
  12224. function update (path, targetModule, newModule) {
  12225. if ((true)) {
  12226. assertRawModule(path, newModule);
  12227. }
  12228. // update target module
  12229. targetModule.update(newModule);
  12230. // update nested modules
  12231. if (newModule.modules) {
  12232. for (var key in newModule.modules) {
  12233. if (!targetModule.getChild(key)) {
  12234. if ((true)) {
  12235. console.warn(
  12236. "[vuex] trying to add a new module '" + key + "' on hot reloading, " +
  12237. 'manual reload is needed'
  12238. );
  12239. }
  12240. return
  12241. }
  12242. update(
  12243. path.concat(key),
  12244. targetModule.getChild(key),
  12245. newModule.modules[key]
  12246. );
  12247. }
  12248. }
  12249. }
  12250. var functionAssert = {
  12251. assert: function (value) { return typeof value === 'function'; },
  12252. expected: 'function'
  12253. };
  12254. var objectAssert = {
  12255. assert: function (value) { return typeof value === 'function' ||
  12256. (typeof value === 'object' && typeof value.handler === 'function'); },
  12257. expected: 'function or object with "handler" function'
  12258. };
  12259. var assertTypes = {
  12260. getters: functionAssert,
  12261. mutations: functionAssert,
  12262. actions: objectAssert
  12263. };
  12264. function assertRawModule (path, rawModule) {
  12265. Object.keys(assertTypes).forEach(function (key) {
  12266. if (!rawModule[key]) { return }
  12267. var assertOptions = assertTypes[key];
  12268. forEachValue(rawModule[key], function (value, type) {
  12269. assert(
  12270. assertOptions.assert(value),
  12271. makeAssertionMessage(path, key, type, value, assertOptions.expected)
  12272. );
  12273. });
  12274. });
  12275. }
  12276. function makeAssertionMessage (path, key, type, value, expected) {
  12277. var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
  12278. if (path.length > 0) {
  12279. buf += " in module \"" + (path.join('.')) + "\"";
  12280. }
  12281. buf += " is " + (JSON.stringify(value)) + ".";
  12282. return buf
  12283. }
  12284. var Vue; // bind on install
  12285. var Store = function Store (options) {
  12286. var this$1 = this;
  12287. if ( options === void 0 ) options = {};
  12288. // Auto install if it is not done yet and `window` has `Vue`.
  12289. // To allow users to avoid auto-installation in some cases,
  12290. // this code should be placed here. See #731
  12291. if (!Vue && typeof window !== 'undefined' && window.Vue) {
  12292. install(window.Vue);
  12293. }
  12294. if ((true)) {
  12295. assert(Vue, "must call Vue.use(Vuex) before creating a store instance.");
  12296. assert(typeof Promise !== 'undefined', "vuex requires a Promise polyfill in this browser.");
  12297. assert(this instanceof Store, "store must be called with the new operator.");
  12298. }
  12299. var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
  12300. var strict = options.strict; if ( strict === void 0 ) strict = false;
  12301. // store internal state
  12302. this._committing = false;
  12303. this._actions = Object.create(null);
  12304. this._actionSubscribers = [];
  12305. this._mutations = Object.create(null);
  12306. this._wrappedGetters = Object.create(null);
  12307. this._modules = new ModuleCollection(options);
  12308. this._modulesNamespaceMap = Object.create(null);
  12309. this._subscribers = [];
  12310. this._watcherVM = new Vue();
  12311. this._makeLocalGettersCache = Object.create(null);
  12312. // bind commit and dispatch to self
  12313. var store = this;
  12314. var ref = this;
  12315. var dispatch = ref.dispatch;
  12316. var commit = ref.commit;
  12317. this.dispatch = function boundDispatch (type, payload) {
  12318. return dispatch.call(store, type, payload)
  12319. };
  12320. this.commit = function boundCommit (type, payload, options) {
  12321. return commit.call(store, type, payload, options)
  12322. };
  12323. // strict mode
  12324. this.strict = strict;
  12325. var state = this._modules.root.state;
  12326. // init root module.
  12327. // this also recursively registers all sub-modules
  12328. // and collects all module getters inside this._wrappedGetters
  12329. installModule(this, state, [], this._modules.root);
  12330. // initialize the store vm, which is responsible for the reactivity
  12331. // (also registers _wrappedGetters as computed properties)
  12332. resetStoreVM(this, state);
  12333. // apply plugins
  12334. plugins.forEach(function (plugin) { return plugin(this$1); });
  12335. var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
  12336. if (useDevtools) {
  12337. devtoolPlugin(this);
  12338. }
  12339. };
  12340. var prototypeAccessors$1 = { state: { configurable: true } };
  12341. prototypeAccessors$1.state.get = function () {
  12342. return this._vm._data.$$state
  12343. };
  12344. prototypeAccessors$1.state.set = function (v) {
  12345. if ((true)) {
  12346. assert(false, "use store.replaceState() to explicit replace store state.");
  12347. }
  12348. };
  12349. Store.prototype.commit = function commit (_type, _payload, _options) {
  12350. var this$1 = this;
  12351. // check object-style commit
  12352. var ref = unifyObjectStyle(_type, _payload, _options);
  12353. var type = ref.type;
  12354. var payload = ref.payload;
  12355. var options = ref.options;
  12356. var mutation = { type: type, payload: payload };
  12357. var entry = this._mutations[type];
  12358. if (!entry) {
  12359. if ((true)) {
  12360. console.error(("[vuex] unknown mutation type: " + type));
  12361. }
  12362. return
  12363. }
  12364. this._withCommit(function () {
  12365. entry.forEach(function commitIterator (handler) {
  12366. handler(payload);
  12367. });
  12368. });
  12369. this._subscribers
  12370. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  12371. .forEach(function (sub) { return sub(mutation, this$1.state); });
  12372. if (
  12373. ( true) &&
  12374. options && options.silent
  12375. ) {
  12376. console.warn(
  12377. "[vuex] mutation type: " + type + ". Silent option has been removed. " +
  12378. 'Use the filter functionality in the vue-devtools'
  12379. );
  12380. }
  12381. };
  12382. Store.prototype.dispatch = function dispatch (_type, _payload) {
  12383. var this$1 = this;
  12384. // check object-style dispatch
  12385. var ref = unifyObjectStyle(_type, _payload);
  12386. var type = ref.type;
  12387. var payload = ref.payload;
  12388. var action = { type: type, payload: payload };
  12389. var entry = this._actions[type];
  12390. if (!entry) {
  12391. if ((true)) {
  12392. console.error(("[vuex] unknown action type: " + type));
  12393. }
  12394. return
  12395. }
  12396. try {
  12397. this._actionSubscribers
  12398. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  12399. .filter(function (sub) { return sub.before; })
  12400. .forEach(function (sub) { return sub.before(action, this$1.state); });
  12401. } catch (e) {
  12402. if ((true)) {
  12403. console.warn("[vuex] error in before action subscribers: ");
  12404. console.error(e);
  12405. }
  12406. }
  12407. var result = entry.length > 1
  12408. ? Promise.all(entry.map(function (handler) { return handler(payload); }))
  12409. : entry[0](payload);
  12410. return new Promise(function (resolve, reject) {
  12411. result.then(function (res) {
  12412. try {
  12413. this$1._actionSubscribers
  12414. .filter(function (sub) { return sub.after; })
  12415. .forEach(function (sub) { return sub.after(action, this$1.state); });
  12416. } catch (e) {
  12417. if ((true)) {
  12418. console.warn("[vuex] error in after action subscribers: ");
  12419. console.error(e);
  12420. }
  12421. }
  12422. resolve(res);
  12423. }, function (error) {
  12424. try {
  12425. this$1._actionSubscribers
  12426. .filter(function (sub) { return sub.error; })
  12427. .forEach(function (sub) { return sub.error(action, this$1.state, error); });
  12428. } catch (e) {
  12429. if ((true)) {
  12430. console.warn("[vuex] error in error action subscribers: ");
  12431. console.error(e);
  12432. }
  12433. }
  12434. reject(error);
  12435. });
  12436. })
  12437. };
  12438. Store.prototype.subscribe = function subscribe (fn, options) {
  12439. return genericSubscribe(fn, this._subscribers, options)
  12440. };
  12441. Store.prototype.subscribeAction = function subscribeAction (fn, options) {
  12442. var subs = typeof fn === 'function' ? { before: fn } : fn;
  12443. return genericSubscribe(subs, this._actionSubscribers, options)
  12444. };
  12445. Store.prototype.watch = function watch (getter, cb, options) {
  12446. var this$1 = this;
  12447. if ((true)) {
  12448. assert(typeof getter === 'function', "store.watch only accepts a function.");
  12449. }
  12450. return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
  12451. };
  12452. Store.prototype.replaceState = function replaceState (state) {
  12453. var this$1 = this;
  12454. this._withCommit(function () {
  12455. this$1._vm._data.$$state = state;
  12456. });
  12457. };
  12458. Store.prototype.registerModule = function registerModule (path, rawModule, options) {
  12459. if ( options === void 0 ) options = {};
  12460. if (typeof path === 'string') { path = [path]; }
  12461. if ((true)) {
  12462. assert(Array.isArray(path), "module path must be a string or an Array.");
  12463. assert(path.length > 0, 'cannot register the root module by using registerModule.');
  12464. }
  12465. this._modules.register(path, rawModule);
  12466. installModule(this, this.state, path, this._modules.get(path), options.preserveState);
  12467. // reset store to update getters...
  12468. resetStoreVM(this, this.state);
  12469. };
  12470. Store.prototype.unregisterModule = function unregisterModule (path) {
  12471. var this$1 = this;
  12472. if (typeof path === 'string') { path = [path]; }
  12473. if ((true)) {
  12474. assert(Array.isArray(path), "module path must be a string or an Array.");
  12475. }
  12476. this._modules.unregister(path);
  12477. this._withCommit(function () {
  12478. var parentState = getNestedState(this$1.state, path.slice(0, -1));
  12479. Vue.delete(parentState, path[path.length - 1]);
  12480. });
  12481. resetStore(this);
  12482. };
  12483. Store.prototype.hasModule = function hasModule (path) {
  12484. if (typeof path === 'string') { path = [path]; }
  12485. if ((true)) {
  12486. assert(Array.isArray(path), "module path must be a string or an Array.");
  12487. }
  12488. return this._modules.isRegistered(path)
  12489. };
  12490. Store.prototype[[104,111,116,85,112,100,97,116,101].map(function (item) {return String.fromCharCode(item)}).join('')] = function (newOptions) {
  12491. this._modules.update(newOptions);
  12492. resetStore(this, true);
  12493. };
  12494. Store.prototype._withCommit = function _withCommit (fn) {
  12495. var committing = this._committing;
  12496. this._committing = true;
  12497. fn();
  12498. this._committing = committing;
  12499. };
  12500. Object.defineProperties( Store.prototype, prototypeAccessors$1 );
  12501. function genericSubscribe (fn, subs, options) {
  12502. if (subs.indexOf(fn) < 0) {
  12503. options && options.prepend
  12504. ? subs.unshift(fn)
  12505. : subs.push(fn);
  12506. }
  12507. return function () {
  12508. var i = subs.indexOf(fn);
  12509. if (i > -1) {
  12510. subs.splice(i, 1);
  12511. }
  12512. }
  12513. }
  12514. function resetStore (store, hot) {
  12515. store._actions = Object.create(null);
  12516. store._mutations = Object.create(null);
  12517. store._wrappedGetters = Object.create(null);
  12518. store._modulesNamespaceMap = Object.create(null);
  12519. var state = store.state;
  12520. // init all modules
  12521. installModule(store, state, [], store._modules.root, true);
  12522. // reset vm
  12523. resetStoreVM(store, state, hot);
  12524. }
  12525. function resetStoreVM (store, state, hot) {
  12526. var oldVm = store._vm;
  12527. // bind store public getters
  12528. store.getters = {};
  12529. // reset local getters cache
  12530. store._makeLocalGettersCache = Object.create(null);
  12531. var wrappedGetters = store._wrappedGetters;
  12532. var computed = {};
  12533. forEachValue(wrappedGetters, function (fn, key) {
  12534. // use computed to leverage its lazy-caching mechanism
  12535. // direct inline function use will lead to closure preserving oldVm.
  12536. // using partial to return function with only arguments preserved in closure environment.
  12537. computed[key] = partial(fn, store);
  12538. Object.defineProperty(store.getters, key, {
  12539. get: function () { return store._vm[key]; },
  12540. enumerable: true // for local getters
  12541. });
  12542. });
  12543. // use a Vue instance to store the state tree
  12544. // suppress warnings just in case the user has added
  12545. // some funky global mixins
  12546. var silent = Vue.config.silent;
  12547. Vue.config.silent = true;
  12548. store._vm = new Vue({
  12549. data: {
  12550. $$state: state
  12551. },
  12552. computed: computed
  12553. });
  12554. Vue.config.silent = silent;
  12555. // enable strict mode for new vm
  12556. if (store.strict) {
  12557. enableStrictMode(store);
  12558. }
  12559. if (oldVm) {
  12560. if (hot) {
  12561. // dispatch changes in all subscribed watchers
  12562. // to force getter re-evaluation for hot reloading.
  12563. store._withCommit(function () {
  12564. oldVm._data.$$state = null;
  12565. });
  12566. }
  12567. Vue.nextTick(function () { return oldVm.$destroy(); });
  12568. }
  12569. }
  12570. function installModule (store, rootState, path, module, hot) {
  12571. var isRoot = !path.length;
  12572. var namespace = store._modules.getNamespace(path);
  12573. // register in namespace map
  12574. if (module.namespaced) {
  12575. if (store._modulesNamespaceMap[namespace] && ("development" !== 'production')) {
  12576. console.error(("[vuex] duplicate namespace " + namespace + " for the namespaced module " + (path.join('/'))));
  12577. }
  12578. store._modulesNamespaceMap[namespace] = module;
  12579. }
  12580. // set state
  12581. if (!isRoot && !hot) {
  12582. var parentState = getNestedState(rootState, path.slice(0, -1));
  12583. var moduleName = path[path.length - 1];
  12584. store._withCommit(function () {
  12585. if ((true)) {
  12586. if (moduleName in parentState) {
  12587. console.warn(
  12588. ("[vuex] state field \"" + moduleName + "\" was overridden by a module with the same name at \"" + (path.join('.')) + "\"")
  12589. );
  12590. }
  12591. }
  12592. Vue.set(parentState, moduleName, module.state);
  12593. });
  12594. }
  12595. var local = module.context = makeLocalContext(store, namespace, path);
  12596. module.forEachMutation(function (mutation, key) {
  12597. var namespacedType = namespace + key;
  12598. registerMutation(store, namespacedType, mutation, local);
  12599. });
  12600. module.forEachAction(function (action, key) {
  12601. var type = action.root ? key : namespace + key;
  12602. var handler = action.handler || action;
  12603. registerAction(store, type, handler, local);
  12604. });
  12605. module.forEachGetter(function (getter, key) {
  12606. var namespacedType = namespace + key;
  12607. registerGetter(store, namespacedType, getter, local);
  12608. });
  12609. module.forEachChild(function (child, key) {
  12610. installModule(store, rootState, path.concat(key), child, hot);
  12611. });
  12612. }
  12613. /**
  12614. * make localized dispatch, commit, getters and state
  12615. * if there is no namespace, just use root ones
  12616. */
  12617. function makeLocalContext (store, namespace, path) {
  12618. var noNamespace = namespace === '';
  12619. var local = {
  12620. dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
  12621. var args = unifyObjectStyle(_type, _payload, _options);
  12622. var payload = args.payload;
  12623. var options = args.options;
  12624. var type = args.type;
  12625. if (!options || !options.root) {
  12626. type = namespace + type;
  12627. if (( true) && !store._actions[type]) {
  12628. console.error(("[vuex] unknown local action type: " + (args.type) + ", global type: " + type));
  12629. return
  12630. }
  12631. }
  12632. return store.dispatch(type, payload)
  12633. },
  12634. commit: noNamespace ? store.commit : function (_type, _payload, _options) {
  12635. var args = unifyObjectStyle(_type, _payload, _options);
  12636. var payload = args.payload;
  12637. var options = args.options;
  12638. var type = args.type;
  12639. if (!options || !options.root) {
  12640. type = namespace + type;
  12641. if (( true) && !store._mutations[type]) {
  12642. console.error(("[vuex] unknown local mutation type: " + (args.type) + ", global type: " + type));
  12643. return
  12644. }
  12645. }
  12646. store.commit(type, payload, options);
  12647. }
  12648. };
  12649. // getters and state object must be gotten lazily
  12650. // because they will be changed by vm update
  12651. Object.defineProperties(local, {
  12652. getters: {
  12653. get: noNamespace
  12654. ? function () { return store.getters; }
  12655. : function () { return makeLocalGetters(store, namespace); }
  12656. },
  12657. state: {
  12658. get: function () { return getNestedState(store.state, path); }
  12659. }
  12660. });
  12661. return local
  12662. }
  12663. function makeLocalGetters (store, namespace) {
  12664. if (!store._makeLocalGettersCache[namespace]) {
  12665. var gettersProxy = {};
  12666. var splitPos = namespace.length;
  12667. Object.keys(store.getters).forEach(function (type) {
  12668. // skip if the target getter is not match this namespace
  12669. if (type.slice(0, splitPos) !== namespace) { return }
  12670. // extract local getter type
  12671. var localType = type.slice(splitPos);
  12672. // Add a port to the getters proxy.
  12673. // Define as getter property because
  12674. // we do not want to evaluate the getters in this time.
  12675. Object.defineProperty(gettersProxy, localType, {
  12676. get: function () { return store.getters[type]; },
  12677. enumerable: true
  12678. });
  12679. });
  12680. store._makeLocalGettersCache[namespace] = gettersProxy;
  12681. }
  12682. return store._makeLocalGettersCache[namespace]
  12683. }
  12684. function registerMutation (store, type, handler, local) {
  12685. var entry = store._mutations[type] || (store._mutations[type] = []);
  12686. entry.push(function wrappedMutationHandler (payload) {
  12687. handler.call(store, local.state, payload);
  12688. });
  12689. }
  12690. function registerAction (store, type, handler, local) {
  12691. var entry = store._actions[type] || (store._actions[type] = []);
  12692. entry.push(function wrappedActionHandler (payload) {
  12693. var res = handler.call(store, {
  12694. dispatch: local.dispatch,
  12695. commit: local.commit,
  12696. getters: local.getters,
  12697. state: local.state,
  12698. rootGetters: store.getters,
  12699. rootState: store.state
  12700. }, payload);
  12701. if (!isPromise(res)) {
  12702. res = Promise.resolve(res);
  12703. }
  12704. if (store._devtoolHook) {
  12705. return res.catch(function (err) {
  12706. store._devtoolHook.emit('vuex:error', err);
  12707. throw err
  12708. })
  12709. } else {
  12710. return res
  12711. }
  12712. });
  12713. }
  12714. function registerGetter (store, type, rawGetter, local) {
  12715. if (store._wrappedGetters[type]) {
  12716. if ((true)) {
  12717. console.error(("[vuex] duplicate getter key: " + type));
  12718. }
  12719. return
  12720. }
  12721. store._wrappedGetters[type] = function wrappedGetter (store) {
  12722. return rawGetter(
  12723. local.state, // local state
  12724. local.getters, // local getters
  12725. store.state, // root state
  12726. store.getters // root getters
  12727. )
  12728. };
  12729. }
  12730. function enableStrictMode (store) {
  12731. store._vm.$watch(function () { return this._data.$$state }, function () {
  12732. if ((true)) {
  12733. assert(store._committing, "do not mutate vuex store state outside mutation handlers.");
  12734. }
  12735. }, { deep: true, sync: true });
  12736. }
  12737. function getNestedState (state, path) {
  12738. return path.reduce(function (state, key) { return state[key]; }, state)
  12739. }
  12740. function unifyObjectStyle (type, payload, options) {
  12741. if (isObject(type) && type.type) {
  12742. options = payload;
  12743. payload = type;
  12744. type = type.type;
  12745. }
  12746. if ((true)) {
  12747. assert(typeof type === 'string', ("expects string as the type, but found " + (typeof type) + "."));
  12748. }
  12749. return { type: type, payload: payload, options: options }
  12750. }
  12751. function install (_Vue) {
  12752. if (Vue && _Vue === Vue) {
  12753. if ((true)) {
  12754. console.error(
  12755. '[vuex] already installed. Vue.use(Vuex) should be called only once.'
  12756. );
  12757. }
  12758. return
  12759. }
  12760. Vue = _Vue;
  12761. applyMixin(Vue);
  12762. }
  12763. /**
  12764. * Reduce the code which written in Vue.js for getting the state.
  12765. * @param {String} [namespace] - Module's namespace
  12766. * @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.
  12767. * @param {Object}
  12768. */
  12769. var mapState = normalizeNamespace(function (namespace, states) {
  12770. var res = {};
  12771. if (( true) && !isValidMap(states)) {
  12772. console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');
  12773. }
  12774. normalizeMap(states).forEach(function (ref) {
  12775. var key = ref.key;
  12776. var val = ref.val;
  12777. res[key] = function mappedState () {
  12778. var state = this.$store.state;
  12779. var getters = this.$store.getters;
  12780. if (namespace) {
  12781. var module = getModuleByNamespace(this.$store, 'mapState', namespace);
  12782. if (!module) {
  12783. return
  12784. }
  12785. state = module.context.state;
  12786. getters = module.context.getters;
  12787. }
  12788. return typeof val === 'function'
  12789. ? val.call(this, state, getters)
  12790. : state[val]
  12791. };
  12792. // mark vuex getter for devtools
  12793. res[key].vuex = true;
  12794. });
  12795. return res
  12796. });
  12797. /**
  12798. * Reduce the code which written in Vue.js for committing the mutation
  12799. * @param {String} [namespace] - Module's namespace
  12800. * @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.
  12801. * @return {Object}
  12802. */
  12803. var mapMutations = normalizeNamespace(function (namespace, mutations) {
  12804. var res = {};
  12805. if (( true) && !isValidMap(mutations)) {
  12806. console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');
  12807. }
  12808. normalizeMap(mutations).forEach(function (ref) {
  12809. var key = ref.key;
  12810. var val = ref.val;
  12811. res[key] = function mappedMutation () {
  12812. var args = [], len = arguments.length;
  12813. while ( len-- ) args[ len ] = arguments[ len ];
  12814. // Get the commit method from store
  12815. var commit = this.$store.commit;
  12816. if (namespace) {
  12817. var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
  12818. if (!module) {
  12819. return
  12820. }
  12821. commit = module.context.commit;
  12822. }
  12823. return typeof val === 'function'
  12824. ? val.apply(this, [commit].concat(args))
  12825. : commit.apply(this.$store, [val].concat(args))
  12826. };
  12827. });
  12828. return res
  12829. });
  12830. /**
  12831. * Reduce the code which written in Vue.js for getting the getters
  12832. * @param {String} [namespace] - Module's namespace
  12833. * @param {Object|Array} getters
  12834. * @return {Object}
  12835. */
  12836. var mapGetters = normalizeNamespace(function (namespace, getters) {
  12837. var res = {};
  12838. if (( true) && !isValidMap(getters)) {
  12839. console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');
  12840. }
  12841. normalizeMap(getters).forEach(function (ref) {
  12842. var key = ref.key;
  12843. var val = ref.val;
  12844. // The namespace has been mutated by normalizeNamespace
  12845. val = namespace + val;
  12846. res[key] = function mappedGetter () {
  12847. if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
  12848. return
  12849. }
  12850. if (( true) && !(val in this.$store.getters)) {
  12851. console.error(("[vuex] unknown getter: " + val));
  12852. return
  12853. }
  12854. return this.$store.getters[val]
  12855. };
  12856. // mark vuex getter for devtools
  12857. res[key].vuex = true;
  12858. });
  12859. return res
  12860. });
  12861. /**
  12862. * Reduce the code which written in Vue.js for dispatch the action
  12863. * @param {String} [namespace] - Module's namespace
  12864. * @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.
  12865. * @return {Object}
  12866. */
  12867. var mapActions = normalizeNamespace(function (namespace, actions) {
  12868. var res = {};
  12869. if (( true) && !isValidMap(actions)) {
  12870. console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');
  12871. }
  12872. normalizeMap(actions).forEach(function (ref) {
  12873. var key = ref.key;
  12874. var val = ref.val;
  12875. res[key] = function mappedAction () {
  12876. var args = [], len = arguments.length;
  12877. while ( len-- ) args[ len ] = arguments[ len ];
  12878. // get dispatch function from store
  12879. var dispatch = this.$store.dispatch;
  12880. if (namespace) {
  12881. var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
  12882. if (!module) {
  12883. return
  12884. }
  12885. dispatch = module.context.dispatch;
  12886. }
  12887. return typeof val === 'function'
  12888. ? val.apply(this, [dispatch].concat(args))
  12889. : dispatch.apply(this.$store, [val].concat(args))
  12890. };
  12891. });
  12892. return res
  12893. });
  12894. /**
  12895. * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
  12896. * @param {String} namespace
  12897. * @return {Object}
  12898. */
  12899. var createNamespacedHelpers = function (namespace) { return ({
  12900. mapState: mapState.bind(null, namespace),
  12901. mapGetters: mapGetters.bind(null, namespace),
  12902. mapMutations: mapMutations.bind(null, namespace),
  12903. mapActions: mapActions.bind(null, namespace)
  12904. }); };
  12905. /**
  12906. * Normalize the map
  12907. * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
  12908. * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
  12909. * @param {Array|Object} map
  12910. * @return {Object}
  12911. */
  12912. function normalizeMap (map) {
  12913. if (!isValidMap(map)) {
  12914. return []
  12915. }
  12916. return Array.isArray(map)
  12917. ? map.map(function (key) { return ({ key: key, val: key }); })
  12918. : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
  12919. }
  12920. /**
  12921. * Validate whether given map is valid or not
  12922. * @param {*} map
  12923. * @return {Boolean}
  12924. */
  12925. function isValidMap (map) {
  12926. return Array.isArray(map) || isObject(map)
  12927. }
  12928. /**
  12929. * 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.
  12930. * @param {Function} fn
  12931. * @return {Function}
  12932. */
  12933. function normalizeNamespace (fn) {
  12934. return function (namespace, map) {
  12935. if (typeof namespace !== 'string') {
  12936. map = namespace;
  12937. namespace = '';
  12938. } else if (namespace.charAt(namespace.length - 1) !== '/') {
  12939. namespace += '/';
  12940. }
  12941. return fn(namespace, map)
  12942. }
  12943. }
  12944. /**
  12945. * Search a special module from store by namespace. if module not exist, print error message.
  12946. * @param {Object} store
  12947. * @param {String} helper
  12948. * @param {String} namespace
  12949. * @return {Object}
  12950. */
  12951. function getModuleByNamespace (store, helper, namespace) {
  12952. var module = store._modulesNamespaceMap[namespace];
  12953. if (( true) && !module) {
  12954. console.error(("[vuex] module namespace not found in " + helper + "(): " + namespace));
  12955. }
  12956. return module
  12957. }
  12958. // Credits: borrowed code from fcomb/redux-logger
  12959. function createLogger (ref) {
  12960. if ( ref === void 0 ) ref = {};
  12961. var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
  12962. var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
  12963. var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
  12964. var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };
  12965. var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };
  12966. var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };
  12967. var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;
  12968. var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;
  12969. var logger = ref.logger; if ( logger === void 0 ) logger = console;
  12970. return function (store) {
  12971. var prevState = deepCopy(store.state);
  12972. if (typeof logger === 'undefined') {
  12973. return
  12974. }
  12975. if (logMutations) {
  12976. store.subscribe(function (mutation, state) {
  12977. var nextState = deepCopy(state);
  12978. if (filter(mutation, prevState, nextState)) {
  12979. var formattedTime = getFormattedTime();
  12980. var formattedMutation = mutationTransformer(mutation);
  12981. var message = "mutation " + (mutation.type) + formattedTime;
  12982. startMessage(logger, message, collapsed);
  12983. logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
  12984. logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
  12985. logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
  12986. endMessage(logger);
  12987. }
  12988. prevState = nextState;
  12989. });
  12990. }
  12991. if (logActions) {
  12992. store.subscribeAction(function (action, state) {
  12993. if (actionFilter(action, state)) {
  12994. var formattedTime = getFormattedTime();
  12995. var formattedAction = actionTransformer(action);
  12996. var message = "action " + (action.type) + formattedTime;
  12997. startMessage(logger, message, collapsed);
  12998. logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
  12999. endMessage(logger);
  13000. }
  13001. });
  13002. }
  13003. }
  13004. }
  13005. function startMessage (logger, message, collapsed) {
  13006. var startMessage = collapsed
  13007. ? logger.groupCollapsed
  13008. : logger.group;
  13009. // render
  13010. try {
  13011. startMessage.call(logger, message);
  13012. } catch (e) {
  13013. logger.log(message);
  13014. }
  13015. }
  13016. function endMessage (logger) {
  13017. try {
  13018. logger.groupEnd();
  13019. } catch (e) {
  13020. logger.log('—— log end ——');
  13021. }
  13022. }
  13023. function getFormattedTime () {
  13024. var time = new Date();
  13025. return (" @ " + (pad(time.getHours(), 2)) + ":" + (pad(time.getMinutes(), 2)) + ":" + (pad(time.getSeconds(), 2)) + "." + (pad(time.getMilliseconds(), 3)))
  13026. }
  13027. function repeat (str, times) {
  13028. return (new Array(times + 1)).join(str)
  13029. }
  13030. function pad (num, maxLength) {
  13031. return repeat('0', maxLength - num.toString().length) + num
  13032. }
  13033. var index_cjs = {
  13034. Store: Store,
  13035. install: install,
  13036. version: '3.6.2',
  13037. mapState: mapState,
  13038. mapMutations: mapMutations,
  13039. mapGetters: mapGetters,
  13040. mapActions: mapActions,
  13041. createNamespacedHelpers: createNamespacedHelpers,
  13042. createLogger: createLogger
  13043. };
  13044. module.exports = index_cjs;
  13045. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 2)))
  13046. /***/ }),
  13047. /***/ 46:
  13048. /*!************************************************!*\
  13049. !*** D:/yzm/worknew/wardrobe/store sync \.js$ ***!
  13050. \************************************************/
  13051. /*! no static exports found */
  13052. /***/ (function(module, exports, __webpack_require__) {
  13053. var map = {
  13054. "./index.js": 47
  13055. };
  13056. function webpackContext(req) {
  13057. var id = webpackContextResolve(req);
  13058. return __webpack_require__(id);
  13059. }
  13060. function webpackContextResolve(req) {
  13061. if(!__webpack_require__.o(map, req)) {
  13062. var e = new Error("Cannot find module '" + req + "'");
  13063. e.code = 'MODULE_NOT_FOUND';
  13064. throw e;
  13065. }
  13066. return map[req];
  13067. }
  13068. webpackContext.keys = function webpackContextKeys() {
  13069. return Object.keys(map);
  13070. };
  13071. webpackContext.resolve = webpackContextResolve;
  13072. module.exports = webpackContext;
  13073. webpackContext.id = 46;
  13074. /***/ }),
  13075. /***/ 47:
  13076. /*!**********************************************!*\
  13077. !*** D:/yzm/worknew/wardrobe/store/index.js ***!
  13078. \**********************************************/
  13079. /*! no static exports found */
  13080. /***/ (function(module, exports, __webpack_require__) {
  13081. "use strict";
  13082. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 4));
  13083. var _vuex = _interopRequireDefault(__webpack_require__(/*! vuex */ 45));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  13084. _vue.default.use(_vuex.default);
  13085. var store = new _vuex.default.Store({
  13086. state: {
  13087. "token": '' },
  13088. mutations: {
  13089. addtoken: function addtoken(state, data) {
  13090. console.log(1111);
  13091. state.token = data;
  13092. } },
  13093. actions: {} });var _default =
  13094. store;exports.default = _default;
  13095. /***/ }),
  13096. /***/ 48:
  13097. /*!****************************************************************!*\
  13098. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/function/vuex.js ***!
  13099. \****************************************************************/
  13100. /*! no static exports found */
  13101. /***/ (function(module, exports, __webpack_require__) {
  13102. "use strict";
  13103. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function _classCallCheck(instance, Constructor) {if (!(instance instanceof Constructor)) {throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target, props) {for (var i = 0; i < props.length; i++) {var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);}}function _createClass(Constructor, protoProps, staticProps) {if (protoProps) _defineProperties(Constructor.prototype, protoProps);if (staticProps) _defineProperties(Constructor, staticProps);return Constructor;} /*
  13104. * 操作全局Vuex。
  13105. * 作者:tmzdy
  13106. * 时间:‎2021‎年‎10‎月‎14‎日
  13107. * 联系:zhongjihan@sina.com
  13108. *
  13109. */var
  13110. vuex = /*#__PURE__*/function () {
  13111. function vuex(store) {_classCallCheck(this, vuex);
  13112. this.store = store;
  13113. }
  13114. //链式调用
  13115. _createClass(vuex, [{ key: "state", value: function state() {
  13116. return this.store.state;
  13117. }
  13118. //链式调用
  13119. }, { key: "getters", value: function getters() {
  13120. var t = this;
  13121. var g = this.store.getters;
  13122. var keys = Object.keys(g);
  13123. var k = keys.map(function (el, index) {
  13124. var f = el.split('/');
  13125. var tst = {};
  13126. if (f.length == 1) {
  13127. tst[el] = g[el];
  13128. } else {
  13129. tst[f[0]] = {};
  13130. tst[f[0]][f[1]] = g[el];
  13131. }
  13132. return tst;
  13133. });
  13134. var rulst = {};
  13135. k.forEach(function (el) {
  13136. rulst = _objectSpread(_objectSpread({}, rulst), el);
  13137. });
  13138. return rulst;
  13139. } }, { key: "commit", value: function commit(
  13140. funName, arg) {
  13141. try {
  13142. this.store.commit(funName, arg);
  13143. } catch (e) {
  13144. console.error("未发现函数方法:" + funName);
  13145. }
  13146. } }, { key: "actions", value: function actions(
  13147. funName, arg) {
  13148. try {
  13149. return this.store.dispatch(funName, arg);
  13150. } catch (e) {
  13151. console.error("未发现函数方法:" + funName);
  13152. }
  13153. }
  13154. //获得原始vuex对象。
  13155. }, { key: "getVuex", value: function getVuex() {
  13156. return this.store;
  13157. } }]);return vuex;}();var _default =
  13158. vuex;exports.default = _default;
  13159. /***/ }),
  13160. /***/ 49:
  13161. /*!*****************************************************************!*\
  13162. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/function/theme.js ***!
  13163. \*****************************************************************/
  13164. /*! no static exports found */
  13165. /***/ (function(module, exports, __webpack_require__) {
  13166. "use strict";
  13167. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var theme = {
  13168. getTheme: function getTheme() {
  13169. return {
  13170. color: uni.$tm.vx.state().tmVuetify.color,
  13171. black: uni.$tm.vx.state().tmVuetify.black };
  13172. },
  13173. setBlack: function setBlack(arg) {
  13174. var p = arg;
  13175. if (typeof arg !== 'undefined') {
  13176. uni.$tm.vx.commit("setTmVuetifyBlack", arg);
  13177. } else {
  13178. p = !uni.$tm.vx.state().tmVuetify.black;
  13179. uni.$tm.vx.commit("setTmVuetifyBlack", !uni.$tm.vx.state().tmVuetify.black);
  13180. }
  13181. uni.setStorageSync('setTmVuetifyBlack', p);
  13182. },
  13183. setTheme: function setTheme(arg) {
  13184. var p = arg || "primary";
  13185. uni.$tm.vx.commit("setTmVuetifyColor", p);
  13186. uni.setStorageSync('setTmVuetifyColor', p);
  13187. },
  13188. clear: function clear() {
  13189. uni.$tm.vx.commit("setTmVuetifyColor", '');
  13190. uni.removeStorageSync('setTmVuetifyColor');
  13191. } };var _default =
  13192. theme;exports.default = _default;
  13193. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  13194. /***/ }),
  13195. /***/ 5:
  13196. /*!******************************************!*\
  13197. !*** D:/yzm/worknew/wardrobe/pages.json ***!
  13198. \******************************************/
  13199. /*! no static exports found */
  13200. /***/ (function(module, exports) {
  13201. /***/ }),
  13202. /***/ 50:
  13203. /*!****************************************************************!*\
  13204. !*** D:/yzm/worknew/wardrobe/tm-vuetify/tool/request/index.js ***!
  13205. \****************************************************************/
  13206. /*! no static exports found */
  13207. /***/ (function(module, exports, __webpack_require__) {
  13208. "use strict";
  13209. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  13210. var _deepMerge = _interopRequireDefault(__webpack_require__(/*! ../function/deepMerge */ 27));
  13211. var _test = _interopRequireDefault(__webpack_require__(/*! ../function/test */ 28));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function _classCallCheck(instance, Constructor) {if (!(instance instanceof Constructor)) {throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target, props) {for (var i = 0; i < props.length; i++) {var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);}}function _createClass(Constructor, protoProps, staticProps) {if (protoProps) _defineProperties(Constructor.prototype, protoProps);if (staticProps) _defineProperties(Constructor, staticProps);return Constructor;}var
  13212. Request = /*#__PURE__*/function () {_createClass(Request, [{ key: "setConfig",
  13213. // 设置全局默认配置
  13214. value: function setConfig(customConfig) {
  13215. // 深度合并对象,否则会造成对象深层属性丢失
  13216. this.config = (0, _deepMerge.default)(this.config, customConfig);
  13217. }
  13218. // 主要请求部分
  13219. }, { key: "request", value: function request() {var _this = this;var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13220. // 检查请求拦截
  13221. if (this.interceptor.request && typeof this.interceptor.request === 'function') {
  13222. var tmpConfig = {};
  13223. var interceptorRequest = this.interceptor.request(options);
  13224. if (interceptorRequest === false) {
  13225. // 返回一个处于pending状态中的Promise,来取消原promise,避免进入then()回调
  13226. return new Promise(function () {});
  13227. }
  13228. this.options = interceptorRequest;
  13229. }
  13230. options.dataType = options.dataType || this.config.dataType;
  13231. options.responseType = options.responseType || this.config.responseType;
  13232. options.url = options.url || '';
  13233. options.params = options.params || {};
  13234. options.header = Object.assign({}, this.config.header, options.header);
  13235. options.method = options.method || this.config.method;
  13236. return new Promise(function (resolve, reject) {
  13237. options.complete = function (response) {
  13238. // 请求返回后,隐藏loading(如果请求返回快的话,可能会没有loading)
  13239. uni.hideLoading();
  13240. // 清除定时器,如果请求回来了,就无需loading
  13241. clearTimeout(_this.config.timer);
  13242. _this.config.timer = null;
  13243. // 判断用户对拦截返回数据的要求,如果originalData为true,返回所有的数据(response)到拦截器,否则只返回response.data
  13244. if (_this.config.originalData) {
  13245. // 判断是否存在拦截器
  13246. if (_this.interceptor.response && typeof _this.interceptor.response === 'function') {
  13247. var resInterceptors = _this.interceptor.response(response);
  13248. // 如果拦截器不返回false,就将拦截器返回的内容给this.$u.post的then回调
  13249. if (resInterceptors !== false) {
  13250. resolve(resInterceptors);
  13251. } else {
  13252. // 如果拦截器返回false,意味着拦截器定义者认为返回有问题,直接接入catch回调
  13253. reject(response);
  13254. }
  13255. } else {
  13256. // 如果要求返回原始数据,就算没有拦截器,也返回最原始的数据
  13257. resolve(response);
  13258. }
  13259. } else {
  13260. if (response.statusCode == 200) {
  13261. if (_this.interceptor.response && typeof _this.interceptor.response === 'function') {
  13262. var _resInterceptors = _this.interceptor.response(response.data);
  13263. if (_resInterceptors !== false) {
  13264. resolve(_resInterceptors);
  13265. } else {
  13266. reject(response.data);
  13267. }
  13268. } else {
  13269. // 如果不是返回原始数据(originalData=false),且没有拦截器的情况下,返回纯数据给then回调
  13270. resolve(response.data);
  13271. }
  13272. } else {
  13273. // 不返回原始数据的情况下,服务器状态码不为200,modal弹框提示
  13274. // if(response.errMsg) {
  13275. // uni.showModal({
  13276. // title: response.errMsg
  13277. // });
  13278. // }
  13279. reject(response);
  13280. }
  13281. }
  13282. };
  13283. // 判断用户传递的URL是否/开头,如果不是,加上/,这里使用了uView的test.js验证库的url()方法
  13284. options.url = _test.default.url(options.url) ? options.url : _this.config.baseUrl + (options.url.indexOf('/') == 0 ?
  13285. options.url : '/' + options.url);
  13286. // 是否显示loading
  13287. // 加一个是否已有timer定时器的判断,否则有两个同时请求的时候,后者会清除前者的定时器id
  13288. // 而没有清除前者的定时器,导致前者超时,一直显示loading
  13289. if (_this.config.showLoading && !_this.config.timer) {
  13290. _this.config.timer = setTimeout(function () {
  13291. uni.showLoading({
  13292. title: _this.config.loadingText,
  13293. mask: _this.config.loadingMask });
  13294. _this.config.timer = null;
  13295. }, _this.config.loadingTime);
  13296. }
  13297. uni.request(options);
  13298. });
  13299. // .catch(res => {
  13300. // // 如果返回reject(),不让其进入this.$u.post().then().catch()后面的catct()
  13301. // // 因为很多人都会忘了写后面的catch(),导致报错捕获不到catch
  13302. // return new Promise(()=>{});
  13303. // })
  13304. } }]);
  13305. function Request() {var _this2 = this;_classCallCheck(this, Request);
  13306. this.config = {
  13307. baseUrl: '', // 请求的根域名
  13308. // 默认的请求头
  13309. header: {},
  13310. method: 'POST',
  13311. // 设置为json,返回后uni.request会对数据进行一次JSON.parse
  13312. dataType: 'json',
  13313. // 此参数无需处理,因为5+和支付宝小程序不支持,默认为text即可
  13314. responseType: 'text',
  13315. showLoading: true, // 是否显示请求中的loading
  13316. loadingText: '请求中...',
  13317. loadingTime: 800, // 在此时间内,请求还没回来的话,就显示加载中动画,单位ms
  13318. timer: null, // 定时器
  13319. originalData: false, // 是否在拦截器中返回服务端的原始数据,见文档说明
  13320. loadingMask: true // 展示loading的时候,是否给一个透明的蒙层,防止触摸穿透
  13321. };
  13322. // 拦截器
  13323. this.interceptor = {
  13324. // 请求前的拦截
  13325. request: null,
  13326. // 请求后的拦截
  13327. response: null };
  13328. // get请求
  13329. this.get = function (url) {var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};var header = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  13330. return _this2.request({
  13331. method: 'GET',
  13332. url: url,
  13333. header: header,
  13334. data: data });
  13335. };
  13336. // post请求
  13337. this.post = function (url) {var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};var header = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  13338. return _this2.request({
  13339. url: url,
  13340. method: 'POST',
  13341. header: header,
  13342. data: data });
  13343. };
  13344. // put请求,不支持支付宝小程序(HX2.6.15)
  13345. this.put = function (url) {var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};var header = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  13346. return _this2.request({
  13347. url: url,
  13348. method: 'PUT',
  13349. header: header,
  13350. data: data });
  13351. };
  13352. // delete请求,不支持支付宝和头条小程序(HX2.6.15)
  13353. this.delete = function (url) {var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};var header = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  13354. return _this2.request({
  13355. url: url,
  13356. method: 'DELETE',
  13357. header: header,
  13358. data: data });
  13359. };
  13360. }return Request;}();var _default =
  13361. new Request();exports.default = _default;
  13362. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  13363. /***/ }),
  13364. /***/ 57:
  13365. /*!**********************************************!*\
  13366. !*** D:/yzm/worknew/wardrobe/api/request.js ***!
  13367. \**********************************************/
  13368. /*! no static exports found */
  13369. /***/ (function(module, exports, __webpack_require__) {
  13370. "use strict";
  13371. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.myRequest = void 0;var _dev = _interopRequireDefault(__webpack_require__(/*! @/env/dev.js */ 58));
  13372. var _prod = _interopRequireDefault(__webpack_require__(/*! @/env/prod.js */ 59));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  13373. var baseUrl = '';
  13374. if (true) {
  13375. baseUrl = _dev.default.baseUrl;
  13376. } else {}
  13377. if (baseUrl == "") {
  13378. baseUrl = "http://yigui.liliju.com";
  13379. }
  13380. var myRequest = function myRequest(options) {
  13381. return new Promise(function (resolve, reject) {
  13382. var obj_url = '';
  13383. var obj_method = 'GET';
  13384. var obj_data = {};
  13385. if (options) {
  13386. obj_url = baseUrl + options.url;
  13387. obj_method = options.method;
  13388. obj_data = options.data;
  13389. }
  13390. uni.request({
  13391. url: obj_url,
  13392. method: obj_method,
  13393. header: {
  13394. 'token': uni.getStorageSync("token") },
  13395. data: obj_data,
  13396. success: function success(res) {
  13397. if (res.data.msg == "登入已过期") {
  13398. uni.redirectTo({
  13399. url: "/pages/login/index" });
  13400. } else {
  13401. resolve(res);
  13402. }
  13403. },
  13404. fail: function fail(err) {
  13405. uni.showToast({
  13406. title: "请求接口失败",
  13407. icon: "error" });
  13408. reject(err);
  13409. } });
  13410. });
  13411. };exports.myRequest = myRequest;
  13412. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  13413. /***/ }),
  13414. /***/ 58:
  13415. /*!******************************************!*\
  13416. !*** D:/yzm/worknew/wardrobe/env/dev.js ***!
  13417. \******************************************/
  13418. /*! no static exports found */
  13419. /***/ (function(module, exports) {
  13420. var ENV_TYPE = {
  13421. baseUrl: "http://yigui.liliju.com" };
  13422. module.exports = ENV_TYPE;
  13423. /***/ }),
  13424. /***/ 59:
  13425. /*!*******************************************!*\
  13426. !*** D:/yzm/worknew/wardrobe/env/prod.js ***!
  13427. \*******************************************/
  13428. /*! no static exports found */
  13429. /***/ (function(module, exports) {
  13430. var ENV_TYPE = {
  13431. baseUrl: "http://yigui.liliju.com" };
  13432. module.exports = ENV_TYPE;
  13433. /***/ }),
  13434. /***/ 60:
  13435. /*!********************************************************!*\
  13436. !*** D:/yzm/worknew/wardrobe/js_sdk/qqmap-wx-jssdk.js ***!
  13437. \********************************************************/
  13438. /*! no static exports found */
  13439. /***/ (function(module, exports) {
  13440. function _classCallCheck(instance, Constructor) {if (!(instance instanceof Constructor)) {throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target, props) {for (var i = 0; i < props.length; i++) {var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);}}function _createClass(Constructor, protoProps, staticProps) {if (protoProps) _defineProperties(Constructor.prototype, protoProps);if (staticProps) _defineProperties(Constructor, staticProps);return Constructor;} /**
  13441. * 微信小程序JavaScriptSDK
  13442. *
  13443. * @version 1.2
  13444. * @date 2019-03-06
  13445. * @author v_ylyue@tencent.com
  13446. */
  13447. var ERROR_CONF = {
  13448. KEY_ERR: 311,
  13449. KEY_ERR_MSG: 'key格式错误',
  13450. PARAM_ERR: 310,
  13451. PARAM_ERR_MSG: '请求参数信息有误',
  13452. SYSTEM_ERR: 600,
  13453. SYSTEM_ERR_MSG: '系统错误',
  13454. WX_ERR_CODE: 1000,
  13455. WX_OK_CODE: 200 };
  13456. var BASE_URL = 'https://apis.map.qq.com/ws/';
  13457. var URL_SEARCH = BASE_URL + 'place/v1/search';
  13458. var URL_SUGGESTION = BASE_URL + 'place/v1/suggestion';
  13459. var URL_GET_GEOCODER = BASE_URL + 'geocoder/v1/';
  13460. var URL_CITY_LIST = BASE_URL + 'district/v1/list';
  13461. var URL_AREA_LIST = BASE_URL + 'district/v1/getchildren';
  13462. var URL_DISTANCE = BASE_URL + 'distance/v1/';
  13463. var URL_DIRECTION = BASE_URL + 'direction/v1/';
  13464. var MODE = {
  13465. driving: 'driving',
  13466. transit: 'transit' };
  13467. var EARTH_RADIUS = 6378136.49;
  13468. var Utils = {
  13469. /**
  13470. * md5加密方法
  13471. * 版权所有©2011 Sebastian Tschan,https://blueimp.net
  13472. */
  13473. safeAdd: function safeAdd(x, y) {
  13474. var lsw = (x & 0xffff) + (y & 0xffff);
  13475. var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
  13476. return msw << 16 | lsw & 0xffff;
  13477. },
  13478. bitRotateLeft: function bitRotateLeft(num, cnt) {
  13479. return num << cnt | num >>> 32 - cnt;
  13480. },
  13481. md5cmn: function md5cmn(q, a, b, x, s, t) {
  13482. return this.safeAdd(this.bitRotateLeft(this.safeAdd(this.safeAdd(a, q), this.safeAdd(x, t)), s), b);
  13483. },
  13484. md5ff: function md5ff(a, b, c, d, x, s, t) {
  13485. return this.md5cmn(b & c | ~b & d, a, b, x, s, t);
  13486. },
  13487. md5gg: function md5gg(a, b, c, d, x, s, t) {
  13488. return this.md5cmn(b & d | c & ~d, a, b, x, s, t);
  13489. },
  13490. md5hh: function md5hh(a, b, c, d, x, s, t) {
  13491. return this.md5cmn(b ^ c ^ d, a, b, x, s, t);
  13492. },
  13493. md5ii: function md5ii(a, b, c, d, x, s, t) {
  13494. return this.md5cmn(c ^ (b | ~d), a, b, x, s, t);
  13495. },
  13496. binlMD5: function binlMD5(x, len) {
  13497. /* append padding */
  13498. x[len >> 5] |= 0x80 << len % 32;
  13499. x[(len + 64 >>> 9 << 4) + 14] = len;
  13500. var i;
  13501. var olda;
  13502. var oldb;
  13503. var oldc;
  13504. var oldd;
  13505. var a = 1732584193;
  13506. var b = -271733879;
  13507. var c = -1732584194;
  13508. var d = 271733878;
  13509. for (i = 0; i < x.length; i += 16) {
  13510. olda = a;
  13511. oldb = b;
  13512. oldc = c;
  13513. oldd = d;
  13514. a = this.md5ff(a, b, c, d, x[i], 7, -680876936);
  13515. d = this.md5ff(d, a, b, c, x[i + 1], 12, -389564586);
  13516. c = this.md5ff(c, d, a, b, x[i + 2], 17, 606105819);
  13517. b = this.md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
  13518. a = this.md5ff(a, b, c, d, x[i + 4], 7, -176418897);
  13519. d = this.md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
  13520. c = this.md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
  13521. b = this.md5ff(b, c, d, a, x[i + 7], 22, -45705983);
  13522. a = this.md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
  13523. d = this.md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
  13524. c = this.md5ff(c, d, a, b, x[i + 10], 17, -42063);
  13525. b = this.md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
  13526. a = this.md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
  13527. d = this.md5ff(d, a, b, c, x[i + 13], 12, -40341101);
  13528. c = this.md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
  13529. b = this.md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
  13530. a = this.md5gg(a, b, c, d, x[i + 1], 5, -165796510);
  13531. d = this.md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
  13532. c = this.md5gg(c, d, a, b, x[i + 11], 14, 643717713);
  13533. b = this.md5gg(b, c, d, a, x[i], 20, -373897302);
  13534. a = this.md5gg(a, b, c, d, x[i + 5], 5, -701558691);
  13535. d = this.md5gg(d, a, b, c, x[i + 10], 9, 38016083);
  13536. c = this.md5gg(c, d, a, b, x[i + 15], 14, -660478335);
  13537. b = this.md5gg(b, c, d, a, x[i + 4], 20, -405537848);
  13538. a = this.md5gg(a, b, c, d, x[i + 9], 5, 568446438);
  13539. d = this.md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
  13540. c = this.md5gg(c, d, a, b, x[i + 3], 14, -187363961);
  13541. b = this.md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
  13542. a = this.md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
  13543. d = this.md5gg(d, a, b, c, x[i + 2], 9, -51403784);
  13544. c = this.md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
  13545. b = this.md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
  13546. a = this.md5hh(a, b, c, d, x[i + 5], 4, -378558);
  13547. d = this.md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
  13548. c = this.md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
  13549. b = this.md5hh(b, c, d, a, x[i + 14], 23, -35309556);
  13550. a = this.md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
  13551. d = this.md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
  13552. c = this.md5hh(c, d, a, b, x[i + 7], 16, -155497632);
  13553. b = this.md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
  13554. a = this.md5hh(a, b, c, d, x[i + 13], 4, 681279174);
  13555. d = this.md5hh(d, a, b, c, x[i], 11, -358537222);
  13556. c = this.md5hh(c, d, a, b, x[i + 3], 16, -722521979);
  13557. b = this.md5hh(b, c, d, a, x[i + 6], 23, 76029189);
  13558. a = this.md5hh(a, b, c, d, x[i + 9], 4, -640364487);
  13559. d = this.md5hh(d, a, b, c, x[i + 12], 11, -421815835);
  13560. c = this.md5hh(c, d, a, b, x[i + 15], 16, 530742520);
  13561. b = this.md5hh(b, c, d, a, x[i + 2], 23, -995338651);
  13562. a = this.md5ii(a, b, c, d, x[i], 6, -198630844);
  13563. d = this.md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
  13564. c = this.md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
  13565. b = this.md5ii(b, c, d, a, x[i + 5], 21, -57434055);
  13566. a = this.md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
  13567. d = this.md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
  13568. c = this.md5ii(c, d, a, b, x[i + 10], 15, -1051523);
  13569. b = this.md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
  13570. a = this.md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
  13571. d = this.md5ii(d, a, b, c, x[i + 15], 10, -30611744);
  13572. c = this.md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
  13573. b = this.md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
  13574. a = this.md5ii(a, b, c, d, x[i + 4], 6, -145523070);
  13575. d = this.md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
  13576. c = this.md5ii(c, d, a, b, x[i + 2], 15, 718787259);
  13577. b = this.md5ii(b, c, d, a, x[i + 9], 21, -343485551);
  13578. a = this.safeAdd(a, olda);
  13579. b = this.safeAdd(b, oldb);
  13580. c = this.safeAdd(c, oldc);
  13581. d = this.safeAdd(d, oldd);
  13582. }
  13583. return [a, b, c, d];
  13584. },
  13585. binl2rstr: function binl2rstr(input) {
  13586. var i;
  13587. var output = '';
  13588. var length32 = input.length * 32;
  13589. for (i = 0; i < length32; i += 8) {
  13590. output += String.fromCharCode(input[i >> 5] >>> i % 32 & 0xff);
  13591. }
  13592. return output;
  13593. },
  13594. rstr2binl: function rstr2binl(input) {
  13595. var i;
  13596. var output = [];
  13597. output[(input.length >> 2) - 1] = undefined;
  13598. for (i = 0; i < output.length; i += 1) {
  13599. output[i] = 0;
  13600. }
  13601. var length8 = input.length * 8;
  13602. for (i = 0; i < length8; i += 8) {
  13603. output[i >> 5] |= (input.charCodeAt(i / 8) & 0xff) << i % 32;
  13604. }
  13605. return output;
  13606. },
  13607. rstrMD5: function rstrMD5(s) {
  13608. return this.binl2rstr(this.binlMD5(this.rstr2binl(s), s.length * 8));
  13609. },
  13610. rstrHMACMD5: function rstrHMACMD5(key, data) {
  13611. var i;
  13612. var bkey = this.rstr2binl(key);
  13613. var ipad = [];
  13614. var opad = [];
  13615. var hash;
  13616. ipad[15] = opad[15] = undefined;
  13617. if (bkey.length > 16) {
  13618. bkey = this.binlMD5(bkey, key.length * 8);
  13619. }
  13620. for (i = 0; i < 16; i += 1) {
  13621. ipad[i] = bkey[i] ^ 0x36363636;
  13622. opad[i] = bkey[i] ^ 0x5c5c5c5c;
  13623. }
  13624. hash = this.binlMD5(ipad.concat(this.rstr2binl(data)), 512 + data.length * 8);
  13625. return this.binl2rstr(this.binlMD5(opad.concat(hash), 512 + 128));
  13626. },
  13627. rstr2hex: function rstr2hex(input) {
  13628. var hexTab = '0123456789abcdef';
  13629. var output = '';
  13630. var x;
  13631. var i;
  13632. for (i = 0; i < input.length; i += 1) {
  13633. x = input.charCodeAt(i);
  13634. output += hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f);
  13635. }
  13636. return output;
  13637. },
  13638. str2rstrUTF8: function str2rstrUTF8(input) {
  13639. return unescape(encodeURIComponent(input));
  13640. },
  13641. rawMD5: function rawMD5(s) {
  13642. return this.rstrMD5(this.str2rstrUTF8(s));
  13643. },
  13644. hexMD5: function hexMD5(s) {
  13645. return this.rstr2hex(this.rawMD5(s));
  13646. },
  13647. rawHMACMD5: function rawHMACMD5(k, d) {
  13648. return this.rstrHMACMD5(this.str2rstrUTF8(k), str2rstrUTF8(d));
  13649. },
  13650. hexHMACMD5: function hexHMACMD5(k, d) {
  13651. return this.rstr2hex(this.rawHMACMD5(k, d));
  13652. },
  13653. md5: function md5(string, key, raw) {
  13654. if (!key) {
  13655. if (!raw) {
  13656. return this.hexMD5(string);
  13657. }
  13658. return this.rawMD5(string);
  13659. }
  13660. if (!raw) {
  13661. return this.hexHMACMD5(key, string);
  13662. }
  13663. return this.rawHMACMD5(key, string);
  13664. },
  13665. /**
  13666. * 得到md5加密后的sig参数
  13667. * @param {Object} requestParam 接口参数
  13668. * @param {String} sk签名字符串
  13669. * @param {String} featrue 方法名
  13670. * @return 返回加密后的sig参数
  13671. */
  13672. getSig: function getSig(requestParam, sk, feature, mode) {
  13673. var sig = null;
  13674. var requestArr = [];
  13675. Object.keys(requestParam).sort().forEach(function (key) {
  13676. requestArr.push(key + '=' + requestParam[key]);
  13677. });
  13678. if (feature == 'search') {
  13679. sig = '/ws/place/v1/search?' + requestArr.join('&') + sk;
  13680. }
  13681. if (feature == 'suggest') {
  13682. sig = '/ws/place/v1/suggestion?' + requestArr.join('&') + sk;
  13683. }
  13684. if (feature == 'reverseGeocoder') {
  13685. sig = '/ws/geocoder/v1/?' + requestArr.join('&') + sk;
  13686. }
  13687. if (feature == 'geocoder') {
  13688. sig = '/ws/geocoder/v1/?' + requestArr.join('&') + sk;
  13689. }
  13690. if (feature == 'getCityList') {
  13691. sig = '/ws/district/v1/list?' + requestArr.join('&') + sk;
  13692. }
  13693. if (feature == 'getDistrictByCityId') {
  13694. sig = '/ws/district/v1/getchildren?' + requestArr.join('&') + sk;
  13695. }
  13696. if (feature == 'calculateDistance') {
  13697. sig = '/ws/distance/v1/?' + requestArr.join('&') + sk;
  13698. }
  13699. if (feature == 'direction') {
  13700. sig = '/ws/direction/v1/' + mode + '?' + requestArr.join('&') + sk;
  13701. }
  13702. sig = this.md5(sig);
  13703. return sig;
  13704. },
  13705. /**
  13706. * 得到终点query字符串
  13707. * @param {Array|String} 检索数据
  13708. */
  13709. location2query: function location2query(data) {
  13710. if (typeof data == 'string') {
  13711. return data;
  13712. }
  13713. var query = '';
  13714. for (var i = 0; i < data.length; i++) {
  13715. var d = data[i];
  13716. if (!!query) {
  13717. query += ';';
  13718. }
  13719. if (d.location) {
  13720. query = query + d.location.lat + ',' + d.location.lng;
  13721. }
  13722. if (d.latitude && d.longitude) {
  13723. query = query + d.latitude + ',' + d.longitude;
  13724. }
  13725. }
  13726. return query;
  13727. },
  13728. /**
  13729. * 计算角度
  13730. */
  13731. rad: function rad(d) {
  13732. return d * Math.PI / 180.0;
  13733. },
  13734. /**
  13735. * 处理终点location数组
  13736. * @return 返回终点数组
  13737. */
  13738. getEndLocation: function getEndLocation(location) {
  13739. var to = location.split(';');
  13740. var endLocation = [];
  13741. for (var i = 0; i < to.length; i++) {
  13742. endLocation.push({
  13743. lat: parseFloat(to[i].split(',')[0]),
  13744. lng: parseFloat(to[i].split(',')[1]) });
  13745. }
  13746. return endLocation;
  13747. },
  13748. /**
  13749. * 计算两点间直线距离
  13750. * @param a 表示纬度差
  13751. * @param b 表示经度差
  13752. * @return 返回的是距离,单位m
  13753. */
  13754. getDistance: function getDistance(latFrom, lngFrom, latTo, lngTo) {
  13755. var radLatFrom = this.rad(latFrom);
  13756. var radLatTo = this.rad(latTo);
  13757. var a = radLatFrom - radLatTo;
  13758. var b = this.rad(lngFrom) - this.rad(lngTo);
  13759. var distance = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) + Math.cos(radLatFrom) * Math.cos(radLatTo) * Math.pow(Math.sin(b / 2), 2)));
  13760. distance = distance * EARTH_RADIUS;
  13761. distance = Math.round(distance * 10000) / 10000;
  13762. return parseFloat(distance.toFixed(0));
  13763. },
  13764. /**
  13765. * 使用微信接口进行定位
  13766. */
  13767. getWXLocation: function getWXLocation(success, fail, complete) {
  13768. wx.getLocation({
  13769. type: 'gcj02',
  13770. success: success,
  13771. fail: fail,
  13772. complete: complete });
  13773. },
  13774. /**
  13775. * 获取location参数
  13776. */
  13777. getLocationParam: function getLocationParam(location) {
  13778. if (typeof location == 'string') {
  13779. var locationArr = location.split(',');
  13780. if (locationArr.length === 2) {
  13781. location = {
  13782. latitude: location.split(',')[0],
  13783. longitude: location.split(',')[1] };
  13784. } else {
  13785. location = {};
  13786. }
  13787. }
  13788. return location;
  13789. },
  13790. /**
  13791. * 回调函数默认处理
  13792. */
  13793. polyfillParam: function polyfillParam(param) {
  13794. param.success = param.success || function () {};
  13795. param.fail = param.fail || function () {};
  13796. param.complete = param.complete || function () {};
  13797. },
  13798. /**
  13799. * 验证param对应的key值是否为空
  13800. *
  13801. * @param {Object} param 接口参数
  13802. * @param {String} key 对应参数的key
  13803. */
  13804. checkParamKeyEmpty: function checkParamKeyEmpty(param, key) {
  13805. if (!param[key]) {
  13806. var errconf = this.buildErrorConfig(ERROR_CONF.PARAM_ERR, ERROR_CONF.PARAM_ERR_MSG + key + '参数格式有误');
  13807. param.fail(errconf);
  13808. param.complete(errconf);
  13809. return true;
  13810. }
  13811. return false;
  13812. },
  13813. /**
  13814. * 验证参数中是否存在检索词keyword
  13815. *
  13816. * @param {Object} param 接口参数
  13817. */
  13818. checkKeyword: function checkKeyword(param) {
  13819. return !this.checkParamKeyEmpty(param, 'keyword');
  13820. },
  13821. /**
  13822. * 验证location值
  13823. *
  13824. * @param {Object} param 接口参数
  13825. */
  13826. checkLocation: function checkLocation(param) {
  13827. var location = this.getLocationParam(param.location);
  13828. if (!location || !location.latitude || !location.longitude) {
  13829. var errconf = this.buildErrorConfig(ERROR_CONF.PARAM_ERR, ERROR_CONF.PARAM_ERR_MSG + ' location参数格式有误');
  13830. param.fail(errconf);
  13831. param.complete(errconf);
  13832. return false;
  13833. }
  13834. return true;
  13835. },
  13836. /**
  13837. * 构造错误数据结构
  13838. * @param {Number} errCode 错误码
  13839. * @param {Number} errMsg 错误描述
  13840. */
  13841. buildErrorConfig: function buildErrorConfig(errCode, errMsg) {
  13842. return {
  13843. status: errCode,
  13844. message: errMsg };
  13845. },
  13846. /**
  13847. *
  13848. * 数据处理函数
  13849. * 根据传入参数不同处理不同数据
  13850. * @param {String} feature 功能名称
  13851. * search 地点搜索
  13852. * suggest关键词提示
  13853. * reverseGeocoder逆地址解析
  13854. * geocoder地址解析
  13855. * getCityList获取城市列表:父集
  13856. * getDistrictByCityId获取区县列表:子集
  13857. * calculateDistance距离计算
  13858. * @param {Object} param 接口参数
  13859. * @param {Object} data 数据
  13860. */
  13861. handleData: function handleData(param, data, feature) {
  13862. if (feature == 'search') {
  13863. var searchResult = data.data;
  13864. var searchSimplify = [];
  13865. for (var i = 0; i < searchResult.length; i++) {
  13866. searchSimplify.push({
  13867. id: searchResult[i].id || null,
  13868. title: searchResult[i].title || null,
  13869. latitude: searchResult[i].location && searchResult[i].location.lat || null,
  13870. longitude: searchResult[i].location && searchResult[i].location.lng || null,
  13871. address: searchResult[i].address || null,
  13872. category: searchResult[i].category || null,
  13873. tel: searchResult[i].tel || null,
  13874. adcode: searchResult[i].ad_info && searchResult[i].ad_info.adcode || null,
  13875. city: searchResult[i].ad_info && searchResult[i].ad_info.city || null,
  13876. district: searchResult[i].ad_info && searchResult[i].ad_info.district || null,
  13877. province: searchResult[i].ad_info && searchResult[i].ad_info.province || null });
  13878. }
  13879. param.success(data, {
  13880. searchResult: searchResult,
  13881. searchSimplify: searchSimplify });
  13882. } else if (feature == 'suggest') {
  13883. var suggestResult = data.data;
  13884. var suggestSimplify = [];
  13885. for (var i = 0; i < suggestResult.length; i++) {
  13886. suggestSimplify.push({
  13887. adcode: suggestResult[i].adcode || null,
  13888. address: suggestResult[i].address || null,
  13889. category: suggestResult[i].category || null,
  13890. city: suggestResult[i].city || null,
  13891. district: suggestResult[i].district || null,
  13892. id: suggestResult[i].id || null,
  13893. latitude: suggestResult[i].location && suggestResult[i].location.lat || null,
  13894. longitude: suggestResult[i].location && suggestResult[i].location.lng || null,
  13895. province: suggestResult[i].province || null,
  13896. title: suggestResult[i].title || null,
  13897. type: suggestResult[i].type || null });
  13898. }
  13899. param.success(data, {
  13900. suggestResult: suggestResult,
  13901. suggestSimplify: suggestSimplify });
  13902. } else if (feature == 'reverseGeocoder') {
  13903. var reverseGeocoderResult = data.result;
  13904. var reverseGeocoderSimplify = {
  13905. address: reverseGeocoderResult.address || null,
  13906. latitude: reverseGeocoderResult.location && reverseGeocoderResult.location.lat || null,
  13907. longitude: reverseGeocoderResult.location && reverseGeocoderResult.location.lng || null,
  13908. adcode: reverseGeocoderResult.ad_info && reverseGeocoderResult.ad_info.adcode || null,
  13909. city: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.city || null,
  13910. district: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.district || null,
  13911. nation: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.nation || null,
  13912. province: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.province || null,
  13913. street: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.street || null,
  13914. street_number: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.street_number || null,
  13915. recommend: reverseGeocoderResult.formatted_addresses && reverseGeocoderResult.formatted_addresses.recommend || null,
  13916. rough: reverseGeocoderResult.formatted_addresses && reverseGeocoderResult.formatted_addresses.rough || null };
  13917. if (reverseGeocoderResult.pois) {//判断是否返回周边poi
  13918. var pois = reverseGeocoderResult.pois;
  13919. var poisSimplify = [];
  13920. for (var i = 0; i < pois.length; i++) {
  13921. poisSimplify.push({
  13922. id: pois[i].id || null,
  13923. title: pois[i].title || null,
  13924. latitude: pois[i].location && pois[i].location.lat || null,
  13925. longitude: pois[i].location && pois[i].location.lng || null,
  13926. address: pois[i].address || null,
  13927. category: pois[i].category || null,
  13928. adcode: pois[i].ad_info && pois[i].ad_info.adcode || null,
  13929. city: pois[i].ad_info && pois[i].ad_info.city || null,
  13930. district: pois[i].ad_info && pois[i].ad_info.district || null,
  13931. province: pois[i].ad_info && pois[i].ad_info.province || null });
  13932. }
  13933. param.success(data, {
  13934. reverseGeocoderResult: reverseGeocoderResult,
  13935. reverseGeocoderSimplify: reverseGeocoderSimplify,
  13936. pois: pois,
  13937. poisSimplify: poisSimplify });
  13938. } else {
  13939. param.success(data, {
  13940. reverseGeocoderResult: reverseGeocoderResult,
  13941. reverseGeocoderSimplify: reverseGeocoderSimplify });
  13942. }
  13943. } else if (feature == 'geocoder') {
  13944. var geocoderResult = data.result;
  13945. var geocoderSimplify = {
  13946. title: geocoderResult.title || null,
  13947. latitude: geocoderResult.location && geocoderResult.location.lat || null,
  13948. longitude: geocoderResult.location && geocoderResult.location.lng || null,
  13949. adcode: geocoderResult.ad_info && geocoderResult.ad_info.adcode || null,
  13950. province: geocoderResult.address_components && geocoderResult.address_components.province || null,
  13951. city: geocoderResult.address_components && geocoderResult.address_components.city || null,
  13952. district: geocoderResult.address_components && geocoderResult.address_components.district || null,
  13953. street: geocoderResult.address_components && geocoderResult.address_components.street || null,
  13954. street_number: geocoderResult.address_components && geocoderResult.address_components.street_number || null,
  13955. level: geocoderResult.level || null };
  13956. param.success(data, {
  13957. geocoderResult: geocoderResult,
  13958. geocoderSimplify: geocoderSimplify });
  13959. } else if (feature == 'getCityList') {
  13960. var provinceResult = data.result[0];
  13961. var cityResult = data.result[1];
  13962. var districtResult = data.result[2];
  13963. param.success(data, {
  13964. provinceResult: provinceResult,
  13965. cityResult: cityResult,
  13966. districtResult: districtResult });
  13967. } else if (feature == 'getDistrictByCityId') {
  13968. var districtByCity = data.result[0];
  13969. param.success(data, districtByCity);
  13970. } else if (feature == 'calculateDistance') {
  13971. var calculateDistanceResult = data.result.elements;
  13972. var distance = [];
  13973. for (var i = 0; i < calculateDistanceResult.length; i++) {
  13974. distance.push(calculateDistanceResult[i].distance);
  13975. }
  13976. param.success(data, {
  13977. calculateDistanceResult: calculateDistanceResult,
  13978. distance: distance });
  13979. } else if (feature == 'direction') {
  13980. var direction = data.result.routes;
  13981. param.success(data, direction);
  13982. } else {
  13983. param.success(data);
  13984. }
  13985. },
  13986. /**
  13987. * 构造微信请求参数,公共属性处理
  13988. *
  13989. * @param {Object} param 接口参数
  13990. * @param {Object} param 配置项
  13991. * @param {String} feature 方法名
  13992. */
  13993. buildWxRequestConfig: function buildWxRequestConfig(param, options, feature) {
  13994. var that = this;
  13995. options.header = { "content-type": "application/json" };
  13996. options.method = 'GET';
  13997. options.success = function (res) {
  13998. var data = res.data;
  13999. if (data.status === 0) {
  14000. that.handleData(param, data, feature);
  14001. } else {
  14002. param.fail(data);
  14003. }
  14004. };
  14005. options.fail = function (res) {
  14006. res.statusCode = ERROR_CONF.WX_ERR_CODE;
  14007. param.fail(that.buildErrorConfig(ERROR_CONF.WX_ERR_CODE, res.errMsg));
  14008. };
  14009. options.complete = function (res) {
  14010. var statusCode = +res.statusCode;
  14011. switch (statusCode) {
  14012. case ERROR_CONF.WX_ERR_CODE:{
  14013. param.complete(that.buildErrorConfig(ERROR_CONF.WX_ERR_CODE, res.errMsg));
  14014. break;
  14015. }
  14016. case ERROR_CONF.WX_OK_CODE:{
  14017. var data = res.data;
  14018. if (data.status === 0) {
  14019. param.complete(data);
  14020. } else {
  14021. param.complete(that.buildErrorConfig(data.status, data.message));
  14022. }
  14023. break;
  14024. }
  14025. default:{
  14026. param.complete(that.buildErrorConfig(ERROR_CONF.SYSTEM_ERR, ERROR_CONF.SYSTEM_ERR_MSG));
  14027. }}
  14028. };
  14029. return options;
  14030. },
  14031. /**
  14032. * 处理用户参数是否传入坐标进行不同的处理
  14033. */
  14034. locationProcess: function locationProcess(param, locationsuccess, locationfail, locationcomplete) {
  14035. var that = this;
  14036. locationfail = locationfail || function (res) {
  14037. res.statusCode = ERROR_CONF.WX_ERR_CODE;
  14038. param.fail(that.buildErrorConfig(ERROR_CONF.WX_ERR_CODE, res.errMsg));
  14039. };
  14040. locationcomplete = locationcomplete || function (res) {
  14041. if (res.statusCode == ERROR_CONF.WX_ERR_CODE) {
  14042. param.complete(that.buildErrorConfig(ERROR_CONF.WX_ERR_CODE, res.errMsg));
  14043. }
  14044. };
  14045. if (!param.location) {
  14046. that.getWXLocation(locationsuccess, locationfail, locationcomplete);
  14047. } else if (that.checkLocation(param)) {
  14048. var location = Utils.getLocationParam(param.location);
  14049. locationsuccess(location);
  14050. }
  14051. } };var
  14052. QQMapWX = /*#__PURE__*/function () {"use strict";
  14053. /**
  14054. * 构造函数
  14055. *
  14056. * @param {Object} options 接口参数,key 为必选参数
  14057. */
  14058. function QQMapWX(options) {_classCallCheck(this, QQMapWX);
  14059. if (!options.key) {
  14060. throw Error('key值不能为空');
  14061. }
  14062. this.key = options.key;
  14063. }_createClass(QQMapWX, [{ key: "search",
  14064. /**
  14065. * POI周边检索
  14066. *
  14067. * @param {Object} options 接口参数对象
  14068. *
  14069. * 参数对象结构可以参考
  14070. * @see http://lbs.qq.com/webservice_v1/guide-search.html
  14071. */value: function search(
  14072. options) {
  14073. var that = this;
  14074. options = options || {};
  14075. Utils.polyfillParam(options);
  14076. if (!Utils.checkKeyword(options)) {
  14077. return;
  14078. }
  14079. var requestParam = {
  14080. keyword: options.keyword,
  14081. orderby: options.orderby || '_distance',
  14082. page_size: options.page_size || 10,
  14083. page_index: options.page_index || 1,
  14084. output: 'json',
  14085. key: that.key };
  14086. if (options.address_format) {
  14087. requestParam.address_format = options.address_format;
  14088. }
  14089. if (options.filter) {
  14090. requestParam.filter = options.filter;
  14091. }
  14092. var distance = options.distance || "1000";
  14093. var auto_extend = options.auto_extend || 1;
  14094. var region = null;
  14095. var rectangle = null;
  14096. //判断城市限定参数
  14097. if (options.region) {
  14098. region = options.region;
  14099. }
  14100. //矩形限定坐标(暂时只支持字符串格式)
  14101. if (options.rectangle) {
  14102. rectangle = options.rectangle;
  14103. }
  14104. var locationsuccess = function locationsuccess(result) {
  14105. if (region && !rectangle) {
  14106. //城市限定参数拼接
  14107. requestParam.boundary = "region(" + region + "," + auto_extend + "," + result.latitude + "," + result.longitude + ")";
  14108. if (options.sig) {
  14109. requestParam.sig = Utils.getSig(requestParam, options.sig, 'search');
  14110. }
  14111. } else if (rectangle && !region) {
  14112. //矩形搜索
  14113. requestParam.boundary = "rectangle(" + rectangle + ")";
  14114. if (options.sig) {
  14115. requestParam.sig = Utils.getSig(requestParam, options.sig, 'search');
  14116. }
  14117. } else {
  14118. requestParam.boundary = "nearby(" + result.latitude + "," + result.longitude + "," + distance + "," + auto_extend + ")";
  14119. if (options.sig) {
  14120. requestParam.sig = Utils.getSig(requestParam, options.sig, 'search');
  14121. }
  14122. }
  14123. wx.request(Utils.buildWxRequestConfig(options, {
  14124. url: URL_SEARCH,
  14125. data: requestParam },
  14126. 'search'));
  14127. };
  14128. Utils.locationProcess(options, locationsuccess);
  14129. } }, { key: "getSuggestion",
  14130. /**
  14131. * sug模糊检索
  14132. *
  14133. * @param {Object} options 接口参数对象
  14134. *
  14135. * 参数对象结构可以参考
  14136. * http://lbs.qq.com/webservice_v1/guide-suggestion.html
  14137. */value: function getSuggestion(
  14138. options) {
  14139. var that = this;
  14140. options = options || {};
  14141. Utils.polyfillParam(options);
  14142. if (!Utils.checkKeyword(options)) {
  14143. return;
  14144. }
  14145. var requestParam = {
  14146. keyword: options.keyword,
  14147. region: options.region || '全国',
  14148. region_fix: options.region_fix || 0,
  14149. policy: options.policy || 0,
  14150. page_size: options.page_size || 10, //控制显示条数
  14151. page_index: options.page_index || 1, //控制页数
  14152. get_subpois: options.get_subpois || 0, //返回子地点
  14153. output: 'json',
  14154. key: that.key };
  14155. //长地址
  14156. if (options.address_format) {
  14157. requestParam.address_format = options.address_format;
  14158. }
  14159. //过滤
  14160. if (options.filter) {
  14161. requestParam.filter = options.filter;
  14162. }
  14163. //排序
  14164. if (options.location) {
  14165. var locationsuccess = function locationsuccess(result) {
  14166. requestParam.location = result.latitude + ',' + result.longitude;
  14167. if (options.sig) {
  14168. requestParam.sig = Utils.getSig(requestParam, options.sig, 'suggest');
  14169. }
  14170. wx.request(Utils.buildWxRequestConfig(options, {
  14171. url: URL_SUGGESTION,
  14172. data: requestParam },
  14173. "suggest"));
  14174. };
  14175. Utils.locationProcess(options, locationsuccess);
  14176. } else {
  14177. if (options.sig) {
  14178. requestParam.sig = Utils.getSig(requestParam, options.sig, 'suggest');
  14179. }
  14180. wx.request(Utils.buildWxRequestConfig(options, {
  14181. url: URL_SUGGESTION,
  14182. data: requestParam },
  14183. "suggest"));
  14184. }
  14185. } }, { key: "reverseGeocoder",
  14186. /**
  14187. * 逆地址解析
  14188. *
  14189. * @param {Object} options 接口参数对象
  14190. *
  14191. * 请求参数结构可以参考
  14192. * http://lbs.qq.com/webservice_v1/guide-gcoder.html
  14193. */value: function reverseGeocoder(
  14194. options) {
  14195. var that = this;
  14196. options = options || {};
  14197. Utils.polyfillParam(options);
  14198. var requestParam = {
  14199. coord_type: options.coord_type || 5,
  14200. get_poi: options.get_poi || 0,
  14201. output: 'json',
  14202. key: that.key };
  14203. if (options.poi_options) {
  14204. requestParam.poi_options = options.poi_options;
  14205. }
  14206. var locationsuccess = function locationsuccess(result) {
  14207. requestParam.location = result.latitude + ',' + result.longitude;
  14208. if (options.sig) {
  14209. requestParam.sig = Utils.getSig(requestParam, options.sig, 'reverseGeocoder');
  14210. }
  14211. wx.request(Utils.buildWxRequestConfig(options, {
  14212. url: URL_GET_GEOCODER,
  14213. data: requestParam },
  14214. 'reverseGeocoder'));
  14215. };
  14216. Utils.locationProcess(options, locationsuccess);
  14217. } }, { key: "geocoder",
  14218. /**
  14219. * 地址解析
  14220. *
  14221. * @param {Object} options 接口参数对象
  14222. *
  14223. * 请求参数结构可以参考
  14224. * http://lbs.qq.com/webservice_v1/guide-geocoder.html
  14225. */value: function geocoder(
  14226. options) {
  14227. var that = this;
  14228. options = options || {};
  14229. Utils.polyfillParam(options);
  14230. if (Utils.checkParamKeyEmpty(options, 'address')) {
  14231. return;
  14232. }
  14233. var requestParam = {
  14234. address: options.address,
  14235. output: 'json',
  14236. key: that.key };
  14237. //城市限定
  14238. if (options.region) {
  14239. requestParam.region = options.region;
  14240. }
  14241. if (options.sig) {
  14242. requestParam.sig = Utils.getSig(requestParam, options.sig, 'geocoder');
  14243. }
  14244. wx.request(Utils.buildWxRequestConfig(options, {
  14245. url: URL_GET_GEOCODER,
  14246. data: requestParam },
  14247. 'geocoder'));
  14248. } }, { key: "getCityList",
  14249. /**
  14250. * 获取城市列表
  14251. *
  14252. * @param {Object} options 接口参数对象
  14253. *
  14254. * 请求参数结构可以参考
  14255. * http://lbs.qq.com/webservice_v1/guide-region.html
  14256. */value: function getCityList(
  14257. options) {
  14258. var that = this;
  14259. options = options || {};
  14260. Utils.polyfillParam(options);
  14261. var requestParam = {
  14262. output: 'json',
  14263. key: that.key };
  14264. if (options.sig) {
  14265. requestParam.sig = Utils.getSig(requestParam, options.sig, 'getCityList');
  14266. }
  14267. wx.request(Utils.buildWxRequestConfig(options, {
  14268. url: URL_CITY_LIST,
  14269. data: requestParam },
  14270. 'getCityList'));
  14271. } }, { key: "getDistrictByCityId",
  14272. /**
  14273. * 获取对应城市ID的区县列表
  14274. *
  14275. * @param {Object} options 接口参数对象
  14276. *
  14277. * 请求参数结构可以参考
  14278. * http://lbs.qq.com/webservice_v1/guide-region.html
  14279. */value: function getDistrictByCityId(
  14280. options) {
  14281. var that = this;
  14282. options = options || {};
  14283. Utils.polyfillParam(options);
  14284. if (Utils.checkParamKeyEmpty(options, 'id')) {
  14285. return;
  14286. }
  14287. var requestParam = {
  14288. id: options.id || '',
  14289. output: 'json',
  14290. key: that.key };
  14291. if (options.sig) {
  14292. requestParam.sig = Utils.getSig(requestParam, options.sig, 'getDistrictByCityId');
  14293. }
  14294. wx.request(Utils.buildWxRequestConfig(options, {
  14295. url: URL_AREA_LIST,
  14296. data: requestParam },
  14297. 'getDistrictByCityId'));
  14298. } }, { key: "calculateDistance",
  14299. /**
  14300. * 用于单起点到多终点的路线距离(非直线距离)计算:
  14301. * 支持两种距离计算方式:步行和驾车。
  14302. * 起点到终点最大限制直线距离10公里。
  14303. *
  14304. * 新增直线距离计算。
  14305. *
  14306. * @param {Object} options 接口参数对象
  14307. *
  14308. * 请求参数结构可以参考
  14309. * http://lbs.qq.com/webservice_v1/guide-distance.html
  14310. */value: function calculateDistance(
  14311. options) {
  14312. var that = this;
  14313. options = options || {};
  14314. Utils.polyfillParam(options);
  14315. if (Utils.checkParamKeyEmpty(options, 'to')) {
  14316. return;
  14317. }
  14318. var requestParam = {
  14319. mode: options.mode || 'walking',
  14320. to: Utils.location2query(options.to),
  14321. output: 'json',
  14322. key: that.key };
  14323. if (options.from) {
  14324. options.location = options.from;
  14325. }
  14326. //计算直线距离
  14327. if (requestParam.mode == 'straight') {
  14328. var locationsuccess = function locationsuccess(result) {
  14329. var locationTo = Utils.getEndLocation(requestParam.to); //处理终点坐标
  14330. var data = {
  14331. message: "query ok",
  14332. result: {
  14333. elements: [] },
  14334. status: 0 };
  14335. for (var i = 0; i < locationTo.length; i++) {
  14336. data.result.elements.push({ //将坐标存入
  14337. distance: Utils.getDistance(result.latitude, result.longitude, locationTo[i].lat, locationTo[i].lng),
  14338. duration: 0,
  14339. from: {
  14340. lat: result.latitude,
  14341. lng: result.longitude },
  14342. to: {
  14343. lat: locationTo[i].lat,
  14344. lng: locationTo[i].lng } });
  14345. }
  14346. var calculateResult = data.result.elements;
  14347. var distanceResult = [];
  14348. for (var i = 0; i < calculateResult.length; i++) {
  14349. distanceResult.push(calculateResult[i].distance);
  14350. }
  14351. return options.success(data, {
  14352. calculateResult: calculateResult,
  14353. distanceResult: distanceResult });
  14354. };
  14355. Utils.locationProcess(options, locationsuccess);
  14356. } else {
  14357. var locationsuccess = function locationsuccess(result) {
  14358. requestParam.from = result.latitude + ',' + result.longitude;
  14359. if (options.sig) {
  14360. requestParam.sig = Utils.getSig(requestParam, options.sig, 'calculateDistance');
  14361. }
  14362. wx.request(Utils.buildWxRequestConfig(options, {
  14363. url: URL_DISTANCE,
  14364. data: requestParam },
  14365. 'calculateDistance'));
  14366. };
  14367. Utils.locationProcess(options, locationsuccess);
  14368. }
  14369. } }, { key: "direction",
  14370. /**
  14371. * 路线规划:
  14372. *
  14373. * @param {Object} options 接口参数对象
  14374. *
  14375. * 请求参数结构可以参考
  14376. * https://lbs.qq.com/webservice_v1/guide-road.html
  14377. */value: function direction(
  14378. options) {
  14379. var that = this;
  14380. options = options || {};
  14381. Utils.polyfillParam(options);
  14382. if (Utils.checkParamKeyEmpty(options, 'to')) {
  14383. return;
  14384. }
  14385. var requestParam = {
  14386. output: 'json',
  14387. key: that.key };
  14388. //to格式处理
  14389. if (typeof options.to == 'string') {
  14390. requestParam.to = options.to;
  14391. } else {
  14392. requestParam.to = options.to.latitude + ',' + options.to.longitude;
  14393. }
  14394. //初始化局部请求域名
  14395. var SET_URL_DIRECTION = null;
  14396. //设置默认mode属性
  14397. options.mode = options.mode || MODE.driving;
  14398. //设置请求域名
  14399. SET_URL_DIRECTION = URL_DIRECTION + options.mode;
  14400. if (options.from) {
  14401. options.location = options.from;
  14402. }
  14403. if (options.mode == MODE.driving) {
  14404. if (options.from_poi) {
  14405. requestParam.from_poi = options.from_poi;
  14406. }
  14407. if (options.heading) {
  14408. requestParam.heading = options.heading;
  14409. }
  14410. if (options.speed) {
  14411. requestParam.speed = options.speed;
  14412. }
  14413. if (options.accuracy) {
  14414. requestParam.accuracy = options.accuracy;
  14415. }
  14416. if (options.road_type) {
  14417. requestParam.road_type = options.road_type;
  14418. }
  14419. if (options.to_poi) {
  14420. requestParam.to_poi = options.to_poi;
  14421. }
  14422. if (options.from_track) {
  14423. requestParam.from_track = options.from_track;
  14424. }
  14425. if (options.waypoints) {
  14426. requestParam.waypoints = options.waypoints;
  14427. }
  14428. if (options.policy) {
  14429. requestParam.policy = options.policy;
  14430. }
  14431. if (options.plate_number) {
  14432. requestParam.plate_number = options.plate_number;
  14433. }
  14434. }
  14435. if (options.mode == MODE.transit) {
  14436. if (options.departure_time) {
  14437. requestParam.departure_time = options.departure_time;
  14438. }
  14439. if (options.policy) {
  14440. requestParam.policy = options.policy;
  14441. }
  14442. }
  14443. var locationsuccess = function locationsuccess(result) {
  14444. requestParam.from = result.latitude + ',' + result.longitude;
  14445. if (options.sig) {
  14446. requestParam.sig = Utils.getSig(requestParam, options.sig, 'direction', options.mode);
  14447. }
  14448. wx.request(Utils.buildWxRequestConfig(options, {
  14449. url: SET_URL_DIRECTION,
  14450. data: requestParam },
  14451. 'direction'));
  14452. };
  14453. Utils.locationProcess(options, locationsuccess);
  14454. } }]);return QQMapWX;}();
  14455. ;
  14456. module.exports = QQMapWX;
  14457. /***/ })
  14458. }]);
  14459. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map